4 lines
1.3 MiB
4 lines
1.3 MiB
!function(){"use strict";var e,n={},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var u=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}t.m=n,e=[],t.O=function(n,r,o,u){if(!r){var i=1/0;for(c=0;c<e.length;c++){r=e[c][0],o=e[c][1],u=e[c][2];for(var l=!0,f=0;f<r.length;f++)(!1&u||i>=u)&&Object.keys(t.O).every(function(e){return t.O[e](r[f])})?r.splice(f--,1):(l=!1,u<i&&(i=u));l&&(e.splice(c--,1),n=o())}return n}u=u||0;for(var c=e.length;c>0&&e[c-1][2]>u;c--)e[c]=e[c-1];e[c]=[r,o,u]},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={666:0};t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,u,i=r[0],l=r[1],f=r[2],c=0;for(o in l)t.o(l,o)&&(t.m[o]=l[o]);if(f)var a=f(t);for(n&&n(r);c<i.length;c++)t.o(e,u=i[c])&&e[u]&&e[u][0](),e[i[c]]=0;return t.O(a)},r=self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}()}();
|
|
(self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[]).push([[429],{21843:function(){!function(){"use strict";!function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var e=HTMLElement;window.HTMLElement={HTMLElement:function(){return Reflect.construct(e,[],this.constructor)}}.HTMLElement,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}()}()},20228:function(e,t,n){"use strict";var r,o;void 0===(o="function"==typeof(r=function(){!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return o+e}var a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var c=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==j.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(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return Z.zone},enumerable:!1,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return C},enumerable:!1,configurable:!0}),t.__load_patch=function(o,i,c){if(void 0===c&&(c=!1),j.hasOwnProperty(o)){if(!c&&a)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var u="Zone:"+o;n(u),j[o]=i(e,t,D),r(u,u)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){Z={parent:Z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{Z=Z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),Z={parent:Z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{Z=Z.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");if(e.state!==_||e.type!==P&&e.type!==x){var r=e.state!=E;r&&e._transitionTo(E,T),e.runCount++;var o=C;C=e,Z={parent:Z,zone:this};try{e.type==x&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==_&&e.state!==O&&(e.type==P||e.data&&e.data.isPeriodic?r&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(_,E,_))),Z=Z.parent,C=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(k,_);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(O,k,_),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(T,k),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new f(S,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new f(x,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new f(P,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||m).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(O,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(_,w),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t}();c.__symbol__=i;var u,s={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,i){return e.invokeTask(n,r,o,i)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},l=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:s,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new c(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");y(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),f=function(){function t(n,r,o,i,a,c){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,!o)throw new Error("callback is not defined");this.callback=o;var u=this;this.invoke=n===P&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==z&&b(),z--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(_,k)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==_&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),p=i("setTimeout"),h=i("Promise"),v=i("then"),d=[],g=!1;function y(t){if(0===z&&0===d.length)if(u||e[h]&&(u=e[h].resolve(0)),u){var n=u[v];n||(n=u.then),n.call(u,b)}else e[p](b,0);t&&d.push(t)}function b(){if(!g){for(g=!0;d.length;){var e=d;d=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){D.onUnhandledError(r)}}}D.microtaskDrainDone(),g=!1}}var m={name:"NO ZONE"},_="notScheduled",k="scheduling",T="scheduled",E="running",w="canceling",O="unknown",S="microTask",x="macroTask",P="eventTask",j={},D={symbol:i,currentZoneFrame:function(){return Z},onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:y,showUncaughtError:function(){return!c[i("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:M,patchMethod:function(){return M},bindArguments:function(){return[]},patchThen:function(){return M},patchMacroTask:function(){return M},patchEventPrototype:function(){return M},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return M},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return M},wrapWithCurrentZone:function(){return M},filterProperties:function(){return[]},attachOriginToPatched:function(){return M},_redefineProperty:function(){return M},patchCallbacks:function(){return M}},Z={parent:null,zone:new c(null,null)},C=null,z=0;function M(){}r("Zone","Zone"),e.Zone=c}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,r=Object.create,o=Array.prototype.slice,i="addEventListener",a="removeEventListener",c=Zone.__symbol__(i),u=Zone.__symbol__(a),s="true",l="false",f=Zone.__symbol__("");function p(e,t){return Zone.current.wrap(e,t)}function h(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var v=Zone.__symbol__,d="undefined"!=typeof window,g=d?window:void 0,y=d&&g||"object"==typeof self&&self||global,b=[null];function m(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!T&&!k&&!(!d||!g.HTMLElement),w=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!k&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n,r=this||e.target||y,o=r[t];return E&&r===g&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null==(n=o&&o.apply(this,arguments))||n||e.preventDefault(),n}};function x(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){var a=v("on"+r+"patched");if(!n.hasOwnProperty(a)||!n[a]){delete i.writable,delete i.value;var c=i.get,u=i.set,s=r.substr(2),l=O[s];l||(l=O[s]=v("ON_PROPERTY"+s)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[l]&&t.removeEventListener(s,S),u&&u.apply(t,b),"function"==typeof e?(t[l]=e,t.addEventListener(s,S,!1)):t[l]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[l];if(t)return t;if(c){var o=c&&c.call(this);if(o)return i.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,i),n[a]=!0}}}function P(e,t,n){if(t)for(var r=0;r<t.length;r++)x(e,"on"+t[r],n);else{var o=[];for(var i in e)"on"==i.substr(0,2)&&o.push(i);for(var a=0;a<o.length;a++)x(e,o[a],n)}}var j=v("originalInstance");function D(e){var n=y[e];if(n){y[v(e)]=n,y[e]=function(){var t=m(arguments,e);switch(t.length){case 0:this[j]=new n;break;case 1:this[j]=new n(t[0]);break;case 2:this[j]=new n(t[0],t[1]);break;case 3:this[j]=new n(t[0],t[1],t[2]);break;case 4:this[j]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},z(y[e],n);var r,o=new n(function(){});for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?y[e].prototype[n]=function(){return this[j][n].apply(this[j],arguments)}:t(y[e].prototype,n,{set:function(t){"function"==typeof t?(this[j][n]=p(t,e+"."+n),z(this[j][n],t)):this[j][n]=t},get:function(){return this[j][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(y[e][r]=n[r])}}function Z(t,r,o){for(var i=t;i&&!i.hasOwnProperty(r);)i=n(i);!i&&t[r]&&(i=t);var a=v(r),c=null;if(i&&(!(c=i[a])||!i.hasOwnProperty(a))&&(c=i[a]=i[r],_(i&&e(i,r)))){var u=o(c,a,r);i[r]=function(){return u(this,arguments)},z(i[r],c)}return c}function C(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=Z(e,t,function(e){return function(t,r){var i=n(t,r);return i.cbIdx>=0&&"function"==typeof r[i.cbIdx]?h(i.name,r[i.cbIdx],i,o):e.apply(t,r)}})}function z(e,t){e[v("OriginalDelegate")]=t}var M=!1,I=!1;function R(){if(M)return I;M=!0;try{var e=g.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(I=!0)}catch(t){}return I}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var r=Object.getOwnPropertyDescriptor,o=Object.defineProperty,i=n.symbol,a=[],c=!0===e[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],u=i("Promise"),s=i("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(var e=function(){var e=a.shift();try{e.zone.runGuarded(function(){if(e.throwOriginal)throw e.rejection;throw e})}catch(r){!function(e){n.onUnhandledError(e);try{var r=t[l];"function"==typeof r&&r.call(this,e)}catch(o){}}(r)}};a.length;)e()};var l=i("unhandledPromiseRejectionHandler");function f(e){return e&&e.then}function p(e){return e}function h(e){return j.reject(e)}var v=i("state"),d=i("value"),g=i("finally"),y=i("parentPromiseValue"),b=i("parentPromiseState"),m=null,_=!0,k=!1;function T(e,t){return function(n){try{w(e,t,n)}catch(r){w(e,!1,r)}}}var E=i("currentTaskTrace");function w(e,r,i){var u,s,l=(u=!1,function(e){return function(){u||(u=!0,e.apply(null,arguments))}});if(e===i)throw new TypeError("Promise resolved with itself");if(e[v]===m){var f=null;try{"object"!=typeof i&&"function"!=typeof i||(f=i&&i.then)}catch(D){return l(function(){w(e,!1,D)})(),e}if(r!==k&&i instanceof j&&i.hasOwnProperty(v)&&i.hasOwnProperty(d)&&i[v]!==m)S(i),w(e,i[v],i[d]);else if(r!==k&&"function"==typeof f)try{f.call(i,l(T(e,r)),l(T(e,!1)))}catch(D){l(function(){w(e,!1,D)})()}else{e[v]=r;var p=e[d];if(e[d]=i,e[g]===g&&r===_&&(e[v]=e[b],e[d]=e[y]),r===k&&i instanceof Error){var h=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;h&&o(i,E,{configurable:!0,enumerable:!1,writable:!0,value:h})}for(var O=0;O<p.length;)x(e,p[O++],p[O++],p[O++],p[O++]);if(0==p.length&&r==k){e[v]=0;var P=i;try{throw new Error("Uncaught (in promise): "+((s=i)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(i&&i.stack?"\n"+i.stack:""))}catch(D){P=D}c&&(P.throwOriginal=!0),P.rejection=i,P.promise=e,P.zone=t.current,P.task=t.currentTask,a.push(P),n.scheduleMicroTask()}}}return e}var O=i("rejectionHandledHandler");function S(e){if(0===e[v]){try{var n=t[O];n&&"function"==typeof n&&n.call(this,{rejection:e[d],promise:e})}catch(o){}e[v]=k;for(var r=0;r<a.length;r++)e===a[r].promise&&a.splice(r,1)}}function x(e,t,n,r,o){S(e);var i=e[v],a=i?"function"==typeof r?r:p:"function"==typeof o?o:h;t.scheduleMicroTask("Promise.then",function(){try{var r=e[d],o=!!n&&g===n[g];o&&(n[y]=r,n[b]=i);var c=t.run(a,void 0,o&&a!==h&&a!==p?[]:[r]);w(n,!0,c)}catch(u){w(n,!1,u)}},n)}var P=function(){},j=function(){function e(t){var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[v]=m,n[d]=[];try{t&&t(T(n,_),T(n,k))}catch(r){w(n,!1,r)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return w(new this(null),_,e)},e.reject=function(e){return w(new this(null),k,e)},e.race=function(e){var t,n,r=new this(function(e,r){t=e,n=r});function o(e){t(e)}function i(e){n(e)}for(var a=0,c=e;a<c.length;a++){var u=c[a];f(u)||(u=this.resolve(u)),u.then(o,i)}return r},e.all=function(t){return e.allWithCallback(t)},e.allSettled=function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})},e.allWithCallback=function(e,t){for(var n,r,o=new this(function(e,t){n=e,r=t}),i=2,a=0,c=[],u=function(e){f(e)||(e=s.resolve(e));var o=a;try{e.then(function(e){c[o]=t?t.thenCallback(e):e,0==--i&&n(c)},function(e){t?(c[o]=t.errorCallback(e),0==--i&&n(c)):r(e)})}catch(u){r(u)}i++,a++},s=this,l=0,p=e;l<p.length;l++)u(p[l]);return 0==(i-=2)&&n(c),o},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.then=function(n,r){var o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||e);var i=new o(P),a=t.current;return this[v]==m?this[d].push(a,i,n,r):x(this,a,i,n,r),i},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(n){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=e);var o=new r(P);o[g]=g;var i=t.current;return this[v]==m?this[d].push(i,o,n,n):x(this,i,o,n,n),o},e}();j.resolve=j.resolve,j.reject=j.reject,j.race=j.race,j.all=j.all;var D=e[u]=e.Promise;e.Promise=j;var C=i("thenPatched");function z(e){var t=e.prototype,n=r(t,"then");if(!n||!1!==n.writable&&n.configurable){var o=t.then;t[s]=o,e.prototype.then=function(e,t){var n=this;return new j(function(e,t){o.call(n,e,t)}).then(e,t)},e[C]=!0}}return n.patchThen=z,D&&(z(D),Z(e,"fetch",function(e){return t=e,function(e,n){var r=t.apply(e,n);if(r instanceof j)return r;var o=r.constructor;return o[C]||z(o),r};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,j}),Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=v("OriginalDelegate"),r=v("Promise"),o=v("Error"),i=function(){if("function"==typeof this){var i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){var a=e[r];if(a)return t.call(a)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;var a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});var L=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){L=!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(Ee){L=!1}var N={useG:!0},F={},H={},W=new RegExp("^"+f+"(\\w+)(true|false)$"),G=v("propagationStopped");function B(e,t){var n=(t?t(e):e)+l,r=(t?t(e):e)+s,o=f+n,i=f+r;F[e]={},F[e].false=o,F[e].true=i}function U(e,t,r){var o=r&&r.add||i,c=r&&r.rm||a,u=r&&r.listeners||"eventListeners",p=r&&r.rmAll||"removeAllListeners",h=v(o),d="."+o+":",g=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[c].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},y=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[F[t.type].false];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[G]);i++)g(o[i],n,t)}},b=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[F[t.type].true];if(r)if(1===r.length)g(r[0],n,t);else for(var o=r.slice(),i=0;i<o.length&&(!t||!0!==t[G]);i++)g(o[i],n,t)}};function m(t,r){if(!t)return!1;var i=!0;r&&void 0!==r.useG&&(i=r.useG);var a=r&&r.vh,g=!0;r&&void 0!==r.chkDup&&(g=r.chkDup);var m=!1;r&&void 0!==r.rt&&(m=r.rt);for(var _=t;_&&!_.hasOwnProperty(o);)_=n(_);if(!_&&t[o]&&(_=t),!_)return!1;if(_[h])return!1;var k,E=r&&r.eventNameToString,w={},O=_[h]=_[o],S=_[v(c)]=_[c],x=_[v(u)]=_[u],P=_[v(p)]=_[p];function j(e,t){return!L&&"object"==typeof e&&e?!!e.capture:L&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}r&&r.prepend&&(k=_[v(r.prepend)]=_[r.prepend]);var D=i?function(e){if(!w.isExisting)return O.call(w.target,w.eventName,w.capture?b:y,w.options)}:function(e){return O.call(w.target,w.eventName,e.invoke,w.options)},Z=i?function(e){if(!e.isRemoved){var t=F[e.eventName],n=void 0;t&&(n=t[e.capture?s:l]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return S.call(e.target,e.eventName,e.capture?b:y,e.options)}:function(e){return S.call(e.target,e.eventName,e.invoke,e.options)},C=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},M=Zone[v("UNPATCHED_EVENTS")],I=e[v("PASSIVE_EVENTS")],R=function(t,n,o,c,u,f){return void 0===u&&(u=!1),void 0===f&&(f=!1),function(){var p=this||e,h=arguments[0];r&&r.transferEventName&&(h=r.transferEventName(h));var v=arguments[1];if(!v)return t.apply(this,arguments);if(T&&"uncaughtException"===h)return t.apply(this,arguments);var d=!1;if("function"!=typeof v){if(!v.handleEvent)return t.apply(this,arguments);d=!0}if(!a||a(t,v,p,arguments)){var y=L&&!!I&&-1!==I.indexOf(h),b=j(arguments[2],y);if(M)for(var m=0;m<M.length;m++)if(h===M[m])return y?t.call(p,h,v,b):t.apply(this,arguments);var _=!!b&&("boolean"==typeof b||b.capture),k=!(!b||"object"!=typeof b)&&b.once,O=Zone.current,S=F[h];S||(B(h,E),S=F[h]);var x,P=S[_?s:l],D=p[P],Z=!1;if(D){if(Z=!0,g)for(m=0;m<D.length;m++)if(C(D[m],v))return}else D=p[P]=[];var z=p.constructor.name,R=H[z];R&&(x=R[h]),x||(x=z+n+(E?E(h):h)),w.options=b,k&&(w.options.once=!1),w.target=p,w.capture=_,w.eventName=h,w.isExisting=Z;var A=i?N:void 0;A&&(A.taskData=w);var W=O.scheduleEventTask(x,v,A,o,c);return w.target=null,A&&(A.taskData=null),k&&(b.once=!0),(L||"boolean"!=typeof W.options)&&(W.options=b),W.target=p,W.capture=_,W.eventName=h,d&&(W.originalDelegate=v),f?D.unshift(W):D.push(W),u?p:void 0}}};return _[o]=R(O,d,D,Z,m),k&&(_.prependListener=R(k,".prependListener:",function(e){return k.call(w.target,w.eventName,e.invoke,w.options)},Z,m,!0)),_[c]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));var o=arguments[2],i=!!o&&("boolean"==typeof o||o.capture),c=arguments[1];if(!c)return S.apply(this,arguments);if(!a||a(S,c,t,arguments)){var u,p=F[n];p&&(u=p[i?s:l]);var h=u&&t[u];if(h)for(var v=0;v<h.length;v++){var d=h[v];if(C(d,c))return h.splice(v,1),d.isRemoved=!0,0===h.length&&(d.allRemoved=!0,t[u]=null,"string"==typeof n&&(t[f+"ON_PROPERTY"+n]=null)),d.zone.cancelTask(d),m?t:void 0}return S.apply(this,arguments)}},_[u]=function(){var t=this||e,n=arguments[0];r&&r.transferEventName&&(n=r.transferEventName(n));for(var o=[],i=q(t,E?E(n):n),a=0;a<i.length;a++){var c=i[a];o.push(c.originalDelegate?c.originalDelegate:c.callback)}return o},_[p]=function(){var t=this||e,n=arguments[0];if(n){r&&r.transferEventName&&(n=r.transferEventName(n));var o=F[n];if(o){var i=t[o.false],a=t[o.true];if(i){var u=i.slice();for(f=0;f<u.length;f++)this[c].call(this,n,(s=u[f]).originalDelegate?s.originalDelegate:s.callback,s.options)}if(a)for(u=a.slice(),f=0;f<u.length;f++){var s;this[c].call(this,n,(s=u[f]).originalDelegate?s.originalDelegate:s.callback,s.options)}}}else{for(var l=Object.keys(t),f=0;f<l.length;f++){var h=W.exec(l[f]),v=h&&h[1];v&&"removeListener"!==v&&this[p].call(this,v)}this[p].call(this,"removeListener")}if(m)return this},z(_[o],O),z(_[c],S),P&&z(_[p],P),x&&z(_[u],x),!0}for(var _=[],k=0;k<t.length;k++)_[k]=m(t[k],r);return _}function q(e,t){if(!t){var n=[];for(var r in e){var o=W.exec(r),i=o&&o[1];if(i&&(!t||i===t)){var a=e[r];if(a)for(var c=0;c<a.length;c++)n.push(a[c])}}return n}var u=F[t];u||(B(t),u=F[t]);var s=e[u.false],l=e[u.true];return s?l?s.concat(l):s.slice():l?l.slice():[]}function K(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[G]=!0,e&&e.apply(t,n)}})}function X(e,t,n,r,o){var i=Zone.__symbol__(r);if(!t[i]){var a=t[i]=t[r];t[r]=function(i,c,u){return c&&c.prototype&&o.forEach(function(t){var o=n+"."+r+"::"+t,i=c.prototype;if(i.hasOwnProperty(t)){var a=e.ObjectGetOwnPropertyDescriptor(i,t);a&&a.value?(a.value=e.wrapWithCurrentZone(a.value,o),e._redefineProperty(c.prototype,t,a)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],o))}),a.call(t,i,c,u)},e.attachOriginToPatched(t[r],a)}}var V,Y,Q,J,$,ee=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],te=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],ne=["load"],re=["blur","error","focus","load","resize","scroll","messageerror"],oe=["bounce","finish","start"],ie=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ae=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ce=["close","error","open","message"],ue=["error","message"],se=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],ee,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function le(e,t,n){if(!n||0===n.length)return t;var r=n.filter(function(t){return t.target===e});if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter(function(e){return-1===o.indexOf(e)})}function fe(e,t,n,r){e&&P(e,le(e,t,n),r)}function pe(e,t){if((!T||w)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(E){var i=window,a=function(){try{var e=g.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:i,ignoreProperties:["error"]}]:[];fe(i,se.concat(["messageerror"]),o?o.concat(a):o,n(i)),fe(Document.prototype,se,o),void 0!==i.SVGElement&&fe(i.SVGElement.prototype,se,o),fe(Element.prototype,se,o),fe(HTMLElement.prototype,se,o),fe(HTMLMediaElement.prototype,te,o),fe(HTMLFrameSetElement.prototype,ee.concat(re),o),fe(HTMLBodyElement.prototype,ee.concat(re),o),fe(HTMLFrameElement.prototype,ne,o),fe(HTMLIFrameElement.prototype,ne,o);var c=i.HTMLMarqueeElement;c&&fe(c.prototype,oe,o);var u=i.Worker;u&&fe(u.prototype,ue,o)}var s=t.XMLHttpRequest;s&&fe(s.prototype,ie,o);var l=t.XMLHttpRequestEventTarget;l&&fe(l&&l.prototype,ie,o),"undefined"!=typeof IDBIndex&&(fe(IDBIndex.prototype,ae,o),fe(IDBRequest.prototype,ae,o),fe(IDBOpenDBRequest.prototype,ae,o),fe(IDBDatabase.prototype,ae,o),fe(IDBTransaction.prototype,ae,o),fe(IDBCursor.prototype,ae,o)),r&&fe(WebSocket.prototype,ce,o)}}function he(){V=Zone.__symbol__,Y=Object[V("defineProperty")]=Object.defineProperty,Q=Object[V("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,J=Object.create,$=V("unconfigurables"),Object.defineProperty=function(e,t,n){if(de(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=ge(e,t,n)),ye(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=ge(e,n,t[n])}),J(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=Q(e,t);return n&&de(e,t)&&(n.configurable=!1),n}}function ve(e,t,n){var r=n.configurable;return ye(e,t,n=ge(e,t,n),r)}function de(e,t){return e&&e[$]&&e[$][t]}function ge(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[$]||Object.isFrozen(e)||Y(e,$,{writable:!0,value:{}}),e[$]&&(e[$][t]=!0)),n}function ye(e,t,n,r){try{return Y(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return Y(e,t,n)}catch(a){var o=!1;if("createdCallback"!==t&&"attachedCallback"!==t&&"detachedCallback"!==t&&"attributeChangedCallback"!==t||(o=!0),!o)throw a;var i=null;try{i=JSON.stringify(n)}catch(a){i=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+i+"' on object '"+e+"' and got error, giving up: "+a)}}}function be(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,i=n.zoneSymbolEventNames,a=n.TRUE_STR,c=n.FALSE_STR,u=n.ZONE_SYMBOL_PREFIX,s="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(","),l=[],f=e.wtf,p="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(",");f?l=p.map(function(e){return"HTML"+e+"Element"}).concat(s):e.EventTarget?l.push("EventTarget"):l=s;for(var h=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,d=t.isIEOrEdge(),g="[object FunctionWrapper]",y="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",b={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},m=0;m<r.length;m++){var _=u+((O=r[m])+c),k=u+(O+a);i[O]={},i[O][c]=_,i[O][a]=k}for(m=0;m<p.length;m++)for(var T=p[m],E=o[T]={},w=0;w<r.length;w++){var O;E[O=r[w]]=T+".addEventListener:"+O}var S=[];for(m=0;m<l.length;m++){var x=e[l[m]];S.push(x&&x.prototype)}return t.patchEventTarget(e,S,{vh:function(e,t,n,r){if(!h&&d){if(v)try{var o;if((o=t.toString())===g||o==y)return e.apply(n,r),!1}catch(i){return e.apply(n,r),!1}else if((o=t.toString())===g||o==y)return e.apply(n,r),!1}else if(v)try{t.toString()}catch(i){return e.apply(n,r),!1}return!0},transferEventName:function(e){return b[e]||e}}),Zone[t.symbol("patchEventTarget")]=!!e.EventTarget,!0}function me(e,t){var n=e.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(e,t){var n=e.getGlobalObjects();if((n.isBrowser||n.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var i=t.XMLHttpRequest;if(!i)return!1;var a="onreadystatechange",c=i.prototype,u=e.ObjectGetOwnPropertyDescriptor(c,a);if(u)return e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(l=new i).onreadystatechange,e.ObjectDefineProperty(c,a,u||{}),o;var s=e.symbol("fake");e.ObjectDefineProperty(c,a,{enumerable:!0,configurable:!0,get:function(){return this[s]},set:function(e){this[s]=e}});var l,f=function(){};return(l=new i).onreadystatechange=f,o=l[s]===f,l.onreadystatechange=null,o}(e,t)){var r="undefined"!=typeof WebSocket;(function(e){for(var t=e.getGlobalObjects().eventNames,n=e.symbol("unbound"),r=function(r){var o=t[r],i="on"+o;self.addEventListener(o,function(t){var r,o,a=t.target;for(o=a?a.constructor.name+"."+i:"unknown."+i;a;)a[i]&&!a[i][n]&&((r=e.wrapWithCurrentZone(a[i],o))[n]=a[i],a[i]=r),a=a.parentElement},!0)},o=0;o<t.length;o++)r(o)})(e),e.patchClass("XMLHttpRequest"),r&&function(e,t){var n=e.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,i=t.WebSocket;t.EventTarget||e.patchEventTarget(t,[i.prototype]),t.WebSocket=function(t,n){var a,c,u=arguments.length>1?new i(t,n):new i(t),s=e.ObjectGetOwnPropertyDescriptor(u,"onmessage");return s&&!1===s.configurable?(a=e.ObjectCreate(u),c=u,[r,o,"send","close"].forEach(function(t){a[t]=function(){var n=e.ArraySlice.call(arguments);if(t===r||t===o){var i=n.length>0?n[0]:void 0;if(i){var c=Zone.__symbol__("ON_PROPERTY"+i);u[c]=a[c]}}return u[t].apply(u,n)}})):a=u,e.patchOnProperties(a,["close","error","message","open"],c),a};var a=t.WebSocket;for(var c in i)a[c]=i[c]}(e,t),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(n,c,u){u.patchOnProperties=P,u.patchMethod=Z,u.bindArguments=m,u.patchMacroTask=C;var h=c.__symbol__("BLACK_LISTED_EVENTS"),v=c.__symbol__("UNPATCHED_EVENTS");n[v]&&(n[h]=n[v]),n[h]&&(c[h]=c[v]=n[h]),u.patchEventPrototype=K,u.patchEventTarget=U,u.isIEOrEdge=R,u.ObjectDefineProperty=t,u.ObjectGetOwnPropertyDescriptor=e,u.ObjectCreate=r,u.ArraySlice=o,u.patchClass=D,u.wrapWithCurrentZone=p,u.filterProperties=le,u.attachOriginToPatched=z,u._redefineProperty=Object.defineProperty,u.patchCallbacks=X,u.getGlobalObjects=function(){return{globalSources:H,zoneSymbolEventNames:F,eventNames:se,isBrowser:E,isMix:w,isNode:T,TRUE_STR:s,FALSE_STR:l,ZONE_SYMBOL_PREFIX:f,ADD_EVENT_LISTENER_STR:i,REMOVE_EVENT_LISTENER_STR:a}}}),function(e){e[("legacyPatch",(e.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch")]=function(){var t=e.Zone;t.__load_patch("defineProperty",function(e,t,n){n._redefineProperty=ve,he()}),t.__load_patch("registerElement",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in e.document&&t.patchCallbacks(t,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,n)}),t.__load_patch("EventTargetLegacy",function(e,t,n){be(e,n),me(n,e)})}}("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});var _e=v("zoneTask");function ke(e,t,n,r){var o=null,i=null;n+=r;var a={};function c(t){var n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=o.apply(e,n.args),t}function u(t){return i.call(e,t.data.handleId)}o=Z(e,t+=r,function(n){return function(o,i){if("function"==typeof i[0]){var s={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?i[1]||0:void 0,args:i},l=i[0];i[0]=function(){try{return l.apply(this,arguments)}finally{s.isPeriodic||("number"==typeof s.handleId?delete a[s.handleId]:s.handleId&&(s.handleId[_e]=null))}};var f=h(t,i[0],s,c,u);if(!f)return f;var p=f.data.handleId;return"number"==typeof p?a[p]=f:p&&(p[_e]=f),p&&p.ref&&p.unref&&"function"==typeof p.ref&&"function"==typeof p.unref&&(f.ref=p.ref.bind(p),f.unref=p.unref.bind(p)),"number"==typeof p||p?p:f}return n.apply(e,i)}}),i=Z(e,n,function(t){return function(n,r){var o,i=r[0];"number"==typeof i?o=a[i]:(o=i&&i[_e])||(o=i),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof i?delete a[i]:i&&(i[_e]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}function Te(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,i=n.TRUE_STR,a=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,u=0;u<r.length;u++){var s=r[u],l=c+(s+a),f=c+(s+i);o[s]={},o[s][a]=l,o[s][i]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="set",n="clear";ke(e,t,n,"Timeout"),ke(e,t,n,"Interval"),ke(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){ke(e,"request","cancel","AnimationFrame"),ke(e,"mozRequest","mozCancel","AnimationFrame"),ke(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)Z(e,n[r],function(n,r,o){return function(r,i){return t.current.run(n,e,i,o)}})}),Zone.__load_patch("EventTarget",function(e,t,n){(function(e,t){t.patchEventPrototype(e,t)})(e,n),Te(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype])}),Zone.__load_patch("MutationObserver",function(e,t,n){D("MutationObserver"),D("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,n){D("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,n){D("FileReader")}),Zone.__load_patch("on_property",function(e,t,n){pe(n,e)}),Zone.__load_patch("customElements",function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",function(e,t){!function(e){var l=e.XMLHttpRequest;if(l){var f=l.prototype,p=f[c],d=f[u];if(!p){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;p=y[c],d=y[u]}}var b="readystatechange",m="scheduled",_=Z(f,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],_.apply(e,t)}}),k=v("fetchTaskAborting"),T=v("fetchTaskScheduling"),E=Z(f,"send",function(){return function(e,n){if(!0===t.current[T])return E.apply(e,n);if(e[r])return E.apply(e,n);var o={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},i=h("XMLHttpRequest.send",S,o,O,x);e&&!0===e[s]&&!o.aborted&&i.state===m&&i.invoke()}}),w=Z(f,"abort",function(){return function(e,r){var o=e[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[k])return w.apply(e,r)}})}function O(e){var r=e.data,a=r.target;a[i]=!1,a[s]=!1;var l=a[o];p||(p=a[c],d=a[u]),l&&d.call(a,b,l);var f=a[o]=function(){if(a.readyState===a.DONE)if(!r.aborted&&a[i]&&e.state===m){var n=a[t.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=a[t.__symbol__("loadfalse")],i=0;i<n.length;i++)n[i]===e&&n.splice(i,1);r.aborted||e.state!==m||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==a[i]||(a[s]=!0)};return p.call(a,b,f),a[n]||(a[n]=e),E.apply(a,r.args),a[i]=!0,e}function S(){}function x(e){var t=e.data;return t.aborted=!0,w.apply(t.target,t.args)}}(e);var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL"),s=v("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!_(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,m(arguments,r+"."+i))};return z(t,e),t}(a)}},i=0;i<n.length;i++)o(i)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){q(e,t).forEach(function(r){var o=e.PromiseRejectionEvent;if(o){var i=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(i)}})}}e.PromiseRejectionEvent&&(t[v("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[v("rejectionHandledHandler")]=n("rejectionhandled"))})})?r.call(t,n,t,e):r)||(e.exports=o)},71796:function(e,t,n){"use strict";n(17168),n(20228),n(21843),window.global=window},97625:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},95143:function(e,t,n){var r=n(60726);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},86063:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},21099:function(e,t,n){var r=n(60726);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},70452:function(e,t,n){var r=n(8643),o=n(15902),i=n(20222),a=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},94115:function(e,t,n){var r=n(29727),o=n(56169),i=n(16174),a=n(15902),c=n(62889),u=[].push,s=function(e){var t=1==e,n=2==e,s=3==e,l=4==e,f=6==e,p=7==e,h=5==e||f;return function(v,d,g,y){for(var b,m,_=i(v),k=o(_),T=r(d,g,3),E=a(k.length),w=0,O=y||c,S=t?O(v,E):n||p?O(v,0):void 0;E>w;w++)if((h||w in k)&&(m=T(b=k[w],w,_),e))if(t)S[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u.call(S,b)}else switch(e){case 4:return!1;case 7:u.call(S,b)}return f?-1:s||l?l:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterOut:s(7)}},62889:function(e,t,n){var r=n(60726),o=n(47883),i=n(84563)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},56297:function(e,t,n){var r=n(84563)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(c){}return n}},96644:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},99420:function(e,t,n){var r=n(72900),o=n(96644),i=n(84563)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},5692:function(e,t,n){"use strict";var r=n(83202).f,o=n(38724),i=n(78715),a=n(29727),c=n(86063),u=n(53284),s=n(66038),l=n(37374),f=n(47012),p=n(64238).fastKey,h=n(52493),v=h.set,d=h.getterFor;e.exports={getConstructor:function(e,t,n,s){var l=e(function(e,r){c(e,l,t),v(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})}),h=d(t),g=function(e,t,n){var r,o,i=h(e),a=y(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},y=function(e,t){var n,r=h(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.prototype,{clear:function(){for(var e=h(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=h(t),r=y(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=h(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(l.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),f&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=d(t),i=d(r);s(e,t,function(e,t){v(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),l(t)}}},96491:function(e,t,n){"use strict";var r=n(78715),o=n(64238).getWeakData,i=n(21099),a=n(60726),c=n(86063),u=n(53284),s=n(94115),l=n(67791),f=n(52493),p=f.set,h=f.getterFor,v=s.find,d=s.findIndex,g=0,y=function(e){return e.frozen||(e.frozen=new b)},b=function(){this.entries=[]},m=function(e,t){return v(e.entries,function(e){return e[0]===t})};b.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=d(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,s){var f=e(function(e,r){c(e,f,t),p(e,{type:t,id:g++,frozen:void 0}),null!=r&&u(r,e[s],{that:e,AS_ENTRIES:n})}),v=h(t),d=function(e,t,n){var r=v(e),a=o(i(t),!0);return!0===a?y(r).set(t,n):a[r.id]=n,e};return r(f.prototype,{delete:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=v(this);if(!a(e))return!1;var n=o(e);return!0===n?y(t).has(e):n&&l(n,t.id)}}),r(f.prototype,n?{get:function(e){var t=v(this);if(a(e)){var n=o(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return d(this,e,t)}}:{add:function(e){return d(this,e,!0)}}),f}}},41603:function(e,t,n){"use strict";var r=n(51163),o=n(31864),i=n(87215),a=n(87763),c=n(64238),u=n(53284),s=n(86063),l=n(60726),f=n(8597),p=n(56297),h=n(58242),v=n(38267);e.exports=function(e,t,n){var d=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),y=d?"set":"add",b=o[e],m=b&&b.prototype,_=b,k={},T=function(e){var t=m[e];a(m,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!l(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof b||!(g||m.forEach&&!f(function(){(new b).entries().next()}))))_=n.getConstructor(t,e,d,y),c.REQUIRED=!0;else if(i(e,!0)){var E=new _,w=E[y](g?{}:-0,1)!=E,O=f(function(){E.has(1)}),S=p(function(e){new b(e)}),x=!g&&f(function(){for(var e=new b,t=5;t--;)e[y](t,t);return!e.has(-0)});S||((_=t(function(t,n){s(t,_,e);var r=v(new b,t,_);return null!=n&&u(n,r[y],{that:r,AS_ENTRIES:d}),r})).prototype=m,m.constructor=_),(O||x)&&(T("delete"),T("has"),d&&T("get")),(x||w)&&T(y),g&&m.clear&&delete m.clear}return k[e]=_,r({global:!0,forced:_!=b},k),h(_,e),g||n.setStrong(_,e,d),_}},30009:function(e,t,n){var r=n(67791),o=n(99376),i=n(93099),a=n(83202);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;s<n.length;s++){var l=n[s];r(e,l)||c(e,l,u(t,l))}}},51335:function(e,t,n){var r=n(8597);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},17453:function(e,t,n){"use strict";var r=n(92053).IteratorPrototype,o=n(38724),i=n(53203),a=n(58242),c=n(72339),u=function(){return this};e.exports=function(e,t,n){var s=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,s,!1,!0),c[s]=u,e}},815:function(e,t,n){var r=n(47012),o=n(83202),i=n(53203);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},53203:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},66038:function(e,t,n){"use strict";var r=n(51163),o=n(17453),i=n(3963),a=n(91464),c=n(58242),u=n(815),s=n(87763),l=n(84563),f=n(97515),p=n(72339),h=n(92053),v=h.IteratorPrototype,d=h.BUGGY_SAFARI_ITERATORS,g=l("iterator"),y="keys",b="values",m="entries",_=function(){return this};e.exports=function(e,t,n,l,h,k,T){o(n,t,l);var E,w,O,S=function(e){if(e===h&&Z)return Z;if(!d&&e in j)return j[e];switch(e){case y:case b:case m:return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",P=!1,j=e.prototype,D=j[g]||j["@@iterator"]||h&&j[h],Z=!d&&D||S(h),C="Array"==t&&j.entries||D;if(C&&(E=i(C.call(new e)),v!==Object.prototype&&E.next&&(f||i(E)===v||(a?a(E,v):"function"!=typeof E[g]&&u(E,g,_)),c(E,x,!0,!0),f&&(p[x]=_))),h==b&&D&&D.name!==b&&(P=!0,Z=function(){return D.call(this)}),f&&!T||j[g]===Z||u(j,g,Z),p[t]=Z,h)if(w={values:S(b),keys:k?Z:S(y),entries:S(m)},T)for(O in w)(d||P||!(O in j))&&s(j,O,w[O]);else r({target:t,proto:!0,forced:d||P},w);return w}},47012:function(e,t,n){var r=n(8597);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},85815:function(e,t,n){var r=n(31864),o=n(60726),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},71001:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},51163:function(e,t,n){var r=n(31864),o=n(93099).f,i=n(815),a=n(87763),c=n(22341),u=n(30009),s=n(87215);e.exports=function(e,t){var n,l,f,p,h,v=e.target,d=e.global,g=e.stat;if(n=d?r:g?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!s(d?l:v+(g?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},8597:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},39352:function(e,t,n){var r=n(8597);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},29727:function(e,t,n){var r=n(97625);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},73626:function(e,t,n){var r=n(86950),o=n(31864),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},63076:function(e,t,n){var r=n(99420),o=n(72339),i=n(84563)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},31864:function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},67791:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3536:function(e){e.exports={}},67538:function(e,t,n){var r=n(73626);e.exports=r("document","documentElement")},27091:function(e,t,n){var r=n(47012),o=n(8597),i=n(85815);e.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},56169:function(e,t,n){var r=n(8597),o=n(96644),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},38267:function(e,t,n){var r=n(60726),o=n(91464);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},87720:function(e,t,n){var r=n(59941),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},64238:function(e,t,n){var r=n(3536),o=n(60726),i=n(67791),a=n(83202).f,c=n(94295),u=n(39352),s=c("meta"),l=0,f=Object.isExtensible||function(){return!0},p=function(e){a(e,s,{value:{objectID:"O"+ ++l,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,s)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[s].objectID},getWeakData:function(e,t){if(!i(e,s)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[s].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!i(e,s)&&p(e),e}};r[s]=!0},52493:function(e,t,n){var r,o,i,a=n(51635),c=n(31864),u=n(60726),s=n(815),l=n(67791),f=n(59941),p=n(42650),h=n(3536);if(a){var v=f.state||(f.state=new(0,c.WeakMap)),d=v.get,g=v.has,y=v.set;r=function(e,t){return t.facade=e,y.call(v,e,t),t},o=function(e){return d.call(v,e)||{}},i=function(e){return g.call(v,e)}}else{var b=p("state");h[b]=!0,r=function(e,t){return t.facade=e,s(e,b,t),t},o=function(e){return l(e,b)?e[b]:{}},i=function(e){return l(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},81643:function(e,t,n){var r=n(84563),o=n(72339),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},47883:function(e,t,n){var r=n(96644);e.exports=Array.isArray||function(e){return"Array"==r(e)}},87215:function(e,t,n){var r=n(8597),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},60726:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},97515:function(e){e.exports=!1},53284:function(e,t,n){var r=n(21099),o=n(81643),i=n(15902),a=n(29727),c=n(63076),u=n(87883),s=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var l,f,p,h,v,d,g,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),_=a(t,n&&n.that,1+y+m),k=function(e){return l&&u(l),new s(!0,e)},T=function(e){return y?(r(e),m?_(e[0],e[1],k):_(e[0],e[1])):m?_(e,k):_(e)};if(b)l=e;else{if("function"!=typeof(f=c(e)))throw TypeError("Target is not iterable");if(o(f)){for(p=0,h=i(e.length);h>p;p++)if((v=T(e[p]))&&v instanceof s)return v;return new s(!1)}l=f.call(e)}for(d=l.next;!(g=d.call(l)).done;){try{v=T(g.value)}catch(E){throw u(l),E}if("object"==typeof v&&v&&v instanceof s)return v}return new s(!1)}},87883:function(e,t,n){var r=n(21099);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},92053:function(e,t,n){"use strict";var r,o,i,a=n(8597),c=n(3963),u=n(815),s=n(67791),l=n(84563),f=n(97515),p=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):h=!0);var v=null==r||a(function(){var e={};return r[p].call(e)!==e});v&&(r={}),f&&!v||s(r,p)||u(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},72339:function(e){e.exports={}},77040:function(e,t,n){var r=n(8597);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},51635:function(e,t,n){var r=n(31864),o=n(87720),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},38724:function(e,t,n){var r,o=n(21099),i=n(10988),a=n(71001),c=n(3536),u=n(67538),s=n(85815),l=n(42650)("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=s("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};c[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},10988:function(e,t,n){var r=n(47012),o=n(83202),i=n(21099),a=n(68032);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),c=r.length,u=0;c>u;)o.f(e,n=r[u++],t[n]);return e}},83202:function(e,t,n){var r=n(47012),o=n(27091),i=n(21099),a=n(28495),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},93099:function(e,t,n){var r=n(47012),o=n(5600),i=n(53203),a=n(8643),c=n(28495),u=n(67791),s=n(27091),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=c(t,!0),s)try{return l(e,t)}catch(n){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},94564:function(e,t,n){var r=n(77759),o=n(71001).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},77593:function(e,t){t.f=Object.getOwnPropertySymbols},3963:function(e,t,n){var r=n(67791),o=n(16174),i=n(42650),a=n(51335),c=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},77759:function(e,t,n){var r=n(67791),o=n(8643),i=n(70452).indexOf,a=n(3536);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},68032:function(e,t,n){var r=n(77759),o=n(71001);e.exports=Object.keys||function(e){return r(e,o)}},5600:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},91464:function(e,t,n){var r=n(21099),o=n(95143);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},99376:function(e,t,n){var r=n(73626),o=n(94564),i=n(77593),a=n(21099);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},86950:function(e,t,n){var r=n(31864);e.exports=r},78715:function(e,t,n){var r=n(87763);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},87763:function(e,t,n){var r=n(31864),o=n(815),i=n(67791),a=n(22341),c=n(87720),u=n(52493),s=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u,s=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(u=l(n)).source||(u.source=f.join("string"==typeof t?t:""))),e!==r?(s?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||c(this)})},54230:function(e,t,n){var r=n(88854),o=n(63438),i=n(77719)("metadata"),a=i.store||(i.store=new o),c=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,getMap:c,has:function(e,t,n){var r=c(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=c(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){c(n,r,!0).set(e,t)},keys:function(e,t){var n=c(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},95025:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},22341:function(e,t,n){var r=n(31864),o=n(815);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},37374:function(e,t,n){"use strict";var r=n(73626),o=n(83202),i=n(84563),a=n(47012),c=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[c]&&(0,o.f)(t,c,{configurable:!0,get:function(){return this}})}},58242:function(e,t,n){var r=n(83202).f,o=n(67791),i=n(84563)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},42650:function(e,t,n){var r=n(77719),o=n(94295),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},59941:function(e,t,n){var r=n(31864),o=n(22341),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},77719:function(e,t,n){var r=n(97515),o=n(59941);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.3",mode:r?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},20222:function(e,t,n){var r=n(59463),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},8643:function(e,t,n){var r=n(56169),o=n(95025);e.exports=function(e){return r(o(e))}},59463:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},15902:function(e,t,n){var r=n(59463),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},16174:function(e,t,n){var r=n(95025);e.exports=function(e){return Object(r(e))}},28495:function(e,t,n){var r=n(60726);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},72900:function(e,t,n){var r={};r[n(84563)("toStringTag")]="z",e.exports="[object z]"===String(r)},94295:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},24431:function(e,t,n){var r=n(77040);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},84563:function(e,t,n){var r=n(31864),o=n(77719),i=n(67791),a=n(94295),c=n(77040),u=n(24431),s=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;e.exports=function(e){return i(s,e)||(s[e]=c&&i(l,e)?l[e]:f("Symbol."+e)),s[e]}},88854:function(e,t,n){"use strict";var r=n(41603),o=n(5692);e.exports=r("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},43014:function(e,t,n){"use strict";var r=n(41603),o=n(5692);e.exports=r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},o)},63438:function(e,t,n){"use strict";var r,o=n(31864),i=n(78715),a=n(64238),c=n(41603),u=n(96491),s=n(60726),l=n(52493).enforce,f=n(51635),p=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,v=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},d=e.exports=c("WeakMap",v,u);if(f&&p){r=u.getConstructor(v,"WeakMap",!0),a.REQUIRED=!0;var g=d.prototype,y=g.delete,b=g.has,m=g.get,_=g.set;i(g,{delete:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.delete(e)}return y.call(this,e)},has:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)||t.frozen.has(e)}return b.call(this,e)},get:function(e){if(s(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),b.call(this,e)?m.call(this,e):t.frozen.get(e)}return m.call(this,e)},set:function(e,t){if(s(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),b.call(this,e)?_.call(this,e,t):n.frozen.set(e,t)}else _.call(this,e,t);return this}})}},37935:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);c(e,t,i(n),r)}})},13199:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.toKey,c=o.getMap,u=o.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=c(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var o=u.get(t);return o.delete(n),!!o.size||u.delete(t)}})},11304:function(e,t,n){var r=n(51163),o=n(43014),i=n(54230),a=n(21099),c=n(3963),u=n(53284),s=i.keys,l=i.toKey,f=function(e,t){var n=s(e,t),r=c(e);if(null===r)return n;var i,a,l=f(r,t);return l.length?n.length?(i=new o(n.concat(l)),u(i,(a=[]).push,{that:a}),a):l:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:l(arguments[1]);return f(a(e),t)}})},47545:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=n(3963),c=o.has,u=o.get,s=o.toKey,l=function(e,t,n){if(c(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return l(e,i(t),n)}})},87067:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.keys,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:c(arguments[1]);return a(i(e),t)}})},40110:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.get,c=o.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},78527:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=n(3963),c=o.has,u=o.toKey,s=function(e,t,n){if(c(e,t,n))return!0;var r=a(t);return null!==r&&s(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return s(e,i(t),n)}})},3166:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.has,c=o.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return a(e,i(t),n)}})},5551:function(e,t,n){var r=n(51163),o=n(54230),i=n(21099),a=o.toKey,c=o.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){c(e,t,i(n),a(r))}}})},17168:function(e,t,n){n(37935),n(13199),n(47545),n(11304),n(40110),n(87067),n(78527),n(3166),n(5551)}},function(e){"use strict";e(e.s=71796)}]);
|
|
!function(e,t){"use strict";function n(){var e=C.splice(0,C.length);for(We=0;e.length;)e.shift().call(null,e.shift())}function r(e,t){for(var n=0,r=e.length;n<r;n++)p(e[n],t)}function o(e){return function(t){Re(t)&&(p(t,e),le.length&&r(t.querySelectorAll(le),e))}}function l(e){var t=Be.call(e,"is"),n=e.nodeName.toUpperCase(),r=ie.call(re,t?ee+t.toUpperCase():J+n);return t&&-1<r&&!a(n,t)?-1:r}function a(e,t){return-1<le.indexOf(e+'[is="'+t+'"]')}function i(e){var t=e.currentTarget,n=e.attrChange,r=e.attrName,o=e.target,l=e[X]||2,a=e[$]||3;!rt||o&&o!==t||!t[B]||"style"===r||e.prevValue===e.newValue&&(""!==e.newValue||n!==l&&n!==a)||t[B](r,n===l?null:e.prevValue,n===a?null:e.newValue)}function u(e){var t=o(e);return function(e){C.push(t,e.target),We&&clearTimeout(We),We=setTimeout(n,1)}}function c(e){nt&&(nt=!1,e.currentTarget.removeEventListener(W,c)),le.length&&r((e.target||g).querySelectorAll(le),e.detail===x?x:_),Ve&&function(){for(var e,t=0,n=Ue.length;t<n;t++)ae.contains(e=Ue[t])||(n--,Ue.splice(t--,1),p(e,x))}()}function s(e,t){var n=this;Ge.call(n,e,t),w.call(n,{target:n})}function m(e,t,n){var r=t.apply(e,n),o=l(r);return-1<o&&F(r,oe[o]),n.pop()&&le.length&&function(e){for(var t,n=0,r=e.length;n<r;n++)F(t=e[n],oe[l(t)])}(r.querySelectorAll(le)),r}function f(e,t){De(e,t),N?N.observe(e,$e):(tt&&(e.setAttribute=s,e[R]=O(e),e[U](Y,w)),e[U](Q,i)),e[z]&&rt&&(e.created=!0,e[z](),e.created=!1)}function d(e){throw new Error("A "+e+" type is already registered")}function p(e,t){var n,r,o=l(e);-1<o&&!xe.call(e,"TEMPLATE")&&(I(e,oe[o]),o=0,t!==_||e[_]?t!==x||e[x]||(e[_]=!1,e[x]=!0,r="disconnected",o=1):(e[x]=!1,e[_]=!0,r="connected",o=1,Ve&&ie.call(Ue,e)<0&&Ue.push(e)),o&&(n=e[t+k]||e[r+k])&&n.call(e))}function h(){}function T(e,t,n){var r=n&&n[q]||"",o=t.prototype,l=Ne(o),a=t.observedAttributes||fe,i={prototype:l};Pe(l,z,{value:function(){if(ye)ye=!1;else if(!this[Me]){this[Me]=!0,new t(this),o[z]&&o[z].call(this);var e=Ce[Ae.get(t)];(!ve||e.create.length>1)&&E(this)}}}),Pe(l,B,{value:function(e){-1<ie.call(a,e)&&o[B]&&o[B].apply(this,arguments)}}),o[j]&&Pe(l,Z,{value:o[j]}),o[G]&&Pe(l,K,{value:o[G]}),r&&(i[q]=r),e=e.toUpperCase(),Ce[e]={constructor:t,create:r?[r,Oe(e)]:[e]},Ae.set(t,e),g[V](e.toLowerCase(),i),v(e),we[e].r()}function L(e){var t=Ce[e.toUpperCase()];return t&&t.constructor}function M(e){return"string"==typeof e?e:e&&e.is||""}function E(e){for(var t,n=e[B],r=n?e.attributes:fe,o=r.length;o--;)n.call(e,(t=r[o]).name||t.nodeName,null,t.value||t.nodeValue)}function v(e){return(e=e.toUpperCase())in we||(we[e]={},we[e].p=new be(function(t){we[e].r=t})),we[e].p}function H(){Ee&&delete e.customElements,me(e,"customElements",{configurable:!0,value:new h}),me(e,"CustomElementRegistry",{configurable:!0,value:h});for(var t=y.get(/^HTML[A-Z]*[a-z]/),n=t.length;n--;function(t){var n=e[t];if(n){e[t]=function(e){var t,r;return e||(e=this),e[Me]||(ye=!0,t=Ce[Ae.get(e.constructor)],(e=(r=ve&&1===t.create.length)?Reflect.construct(n,fe,t.constructor):g.createElement.apply(g,t.create))[Me]=!0,ye=!1,r||E(e)),e},e[t].prototype=n.prototype;try{n.prototype.constructor=e[t]}catch(r){me(n,Me,{value:e[t]})}}}(t[n]));g.createElement=function(e,t){var n=M(t);return n?Xe.call(this,e,Oe(n)):Xe.call(this,e)},Ye||(et=!0,g[V](""))}var g=e.document,b=e.Object,y=function(e){var t,n,r,o,l=/^[A-Z]+[a-z]/,a=function(e,t){(t=t.toLowerCase())in i||(i[e]=(i[e]||[]).concat(t),i[t]=i[t.toUpperCase()]=e)},i=(b.create||b)(null),u={};for(n in e)for(o in e[n])for(i[o]=r=e[n][o],t=0;t<r.length;t++)i[r[t].toLowerCase()]=i[r[t].toUpperCase()]=o;return u.get=function(e){return"string"==typeof e?i[e]||(l.test(e)?[]:""):function(e){var t,n=[];for(t in i)e.test(t)&&n.push(t);return n}(e)},u.set=function(e,t){return l.test(e)?a(e,t):a(t,e),u},u}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof t&&(t={type:t||"auto"});var C,w,A,O,N,D,I,F,S,V="registerElement",P=1e5*e.Math.random()>>0,R="__"+V+P,U="addEventListener",_="attached",k="Callback",x="detached",q="extends",B="attributeChanged"+k,Z=_+k,j="connected"+k,G="disconnected"+k,z="created"+k,K=x+k,X="ADDITION",$="REMOVAL",Q="DOMAttrModified",W="DOMContentLoaded",Y="DOMSubtreeModified",J="<",ee="=",te=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,ne=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],re=[],oe=[],le="",ae=g.documentElement,ie=re.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},ue=b.prototype,ce=ue.hasOwnProperty,se=ue.isPrototypeOf,me=b.defineProperty,fe=[],de=b.getOwnPropertyDescriptor,pe=b.getOwnPropertyNames,he=b.getPrototypeOf,Te=b.setPrototypeOf,Le=!!b.__proto__,Me="__dreCEv1",Ee=e.customElements,ve=!/^force/.test(t.type)&&!!(Ee&&Ee.define&&Ee.get&&Ee.whenDefined),He=b.create||b,ge=e.Map||function(){var e,t=[],n=[];return{get:function(e){return n[ie.call(t,e)]},set:function(r,o){(e=ie.call(t,r))<0?n[t.push(r)-1]=o:n[e]=o}}},be=e.Promise||function(e){function t(e){for(r=!0;n.length;)n.shift()(e)}var n=[],r=!1,o={catch:function(){return o},then:function(e){return n.push(e),r&&setTimeout(t,1),o}};return e(t),o},ye=!1,Ce=He(null),we=He(null),Ae=new ge,Oe=function(e){return e.toLowerCase()},Ne=b.create||function e(t){return t?(e.prototype=t,new e):this},De=Te||(Le?function(e,t){return e.__proto__=t,e}:pe&&de?function(){function e(e,t){for(var n,r=pe(t),o=0,l=r.length;o<l;o++)ce.call(e,n=r[o])||me(e,n,de(t,n))}return function(t,n){do{e(t,n)}while((n=he(n))&&!se.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),Ie=e.MutationObserver||e.WebKitMutationObserver,Fe=e.HTMLAnchorElement,Se=(e.HTMLElement||e.Element||e.Node).prototype,Ve=!se.call(Se,ae),Pe=Ve?function(e,t,n){return e[t]=n.value,e}:me,Re=Ve?function(e){return 1===e.nodeType}:function(e){return se.call(Se,e)},Ue=Ve&&[],_e=Se.attachShadow,ke=Se.cloneNode,xe=Se.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},qe=Se.dispatchEvent,Be=Se.getAttribute,Ze=Se.hasAttribute,je=Se.removeAttribute,Ge=Se.setAttribute,ze=g.createElement,Ke=g.importNode,Xe=ze,$e=Ie&&{attributes:!0,characterData:!0,attributeOldValue:!0},Qe=Ie||function(e){tt=!1,ae.removeEventListener(Q,Qe)},We=0,Ye=V in g&&!/^force-all/.test(t.type),Je=!0,et=!1,tt=!0,nt=!0,rt=!0;if(Ie&&((S=g.createElement("div")).innerHTML="<div><div></div></div>",new Ie(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(S=de(Se,"innerHTML"))&&S.set;n&&me(Se,"innerHTML",{set:function(e){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,e)}})}t.disconnect(),S=null}).observe(S,{childList:!0,subtree:!0}),S.innerHTML=""),Ye||(Te||Le?(I=function(e,t){se.call(t,e)||f(e,t)},F=f):F=I=function(e,t){e[R]||(e[R]=b(!0),f(e,t))},Ve?(tt=!1,function(){var e=de(Se,U),t=e.value,n=function(e){var t=new CustomEvent(Q,{bubbles:!0});t.attrName=e,t.prevValue=Be.call(this,e),t.newValue=null,t[$]=t.attrChange=2,je.call(this,e),qe.call(this,t)},r=function(e,t){var n=Ze.call(this,e),r=n&&Be.call(this,e),o=new CustomEvent(Q,{bubbles:!0});Ge.call(this,e,t),o.attrName=e,o.prevValue=n?r:null,o.newValue=t,n?o.MODIFICATION=o.attrChange=1:o[X]=o.attrChange=0,qe.call(this,o)},o=function(e){var t,n=e.currentTarget,r=n[R],o=e.propertyName;r.hasOwnProperty(o)&&(r=r[o],(t=new CustomEvent(Q,{bubbles:!0})).attrName=r.name,t.prevValue=r.value||null,t.newValue=r.value=n[o]||null,null==t.prevValue?t[X]=t.attrChange=0:t.MODIFICATION=t.attrChange=1,qe.call(n,t))};e.value=function(e,l,a){e===Q&&this[B]&&this.setAttribute!==r&&(this[R]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,t.call(this,"propertychange",o)),t.call(this,e,l,a)},me(Se,U,e)}()):Ie||(ae[U](Q,Qe),ae.setAttribute(R,1),ae.removeAttribute(R),tt&&(w=function(e){var t,n,r,o=this;if(o===e.target){for(r in t=o[R],o[R]=n=O(o),n){if(!(r in t))return A(0,o,r,t[r],n[r],X);if(n[r]!==t[r])return A(1,o,r,t[r],n[r],"MODIFICATION")}for(r in t)if(!(r in n))return A(2,o,r,t[r],n[r],$)}},A=function(e,t,n,r,o,l){var a={attrChange:e,currentTarget:t,attrName:n,prevValue:r,newValue:o};a[l]=e,i(a)},O=function(e){for(var t,n,r={},o=e.attributes,l=0,a=o.length;l<a;l++)"setAttribute"!==(n=(t=o[l]).name)&&(r[n]=t.value);return r})),g[V]=function(e,t){if(n=e.toUpperCase(),Je&&(Je=!1,Ie?(N=function(e,t){function n(e,t){for(var n=0,r=e.length;n<r;t(e[n++]));}return new Ie(function(r){for(var o,l,a,i=0,u=r.length;i<u;i++)"childList"===(o=r[i]).type?(n(o.addedNodes,e),n(o.removedNodes,t)):(l=o.target,rt&&l[B]&&"style"!==o.attributeName&&(a=Be.call(l,o.attributeName))!==o.oldValue&&l[B](o.attributeName,o.oldValue,a))})}(o(_),o(x)),(D=function(e){return N.observe(e,{childList:!0,subtree:!0}),e})(g),_e&&(Se.attachShadow=function(){return D(_e.apply(this,arguments))})):(C=[],g[U]("DOMNodeInserted",u(_)),g[U]("DOMNodeRemoved",u(x))),g[U](W,c),g[U]("readystatechange",c),g.importNode=function(e,t){switch(e.nodeType){case 1:return m(g,Ke,[e,!!t]);case 11:for(var n=g.createDocumentFragment(),r=e.childNodes,o=r.length,l=0;l<o;l++)n.appendChild(g.importNode(r[l],!!t));return n;default:return ke.call(e,!!t)}},Se.cloneNode=function(e){return m(this,ke,[!!e])}),et)return et=!1;if(-2<ie.call(re,ee+n)+ie.call(re,J+n)&&d(e),!te.test(n)||-1<ie.call(ne,n))throw new Error("The type "+e+" is invalid");var n,l,a=function(){return s?g.createElement(f,n):g.createElement(f)},i=t||ue,s=ce.call(i,q),f=s?t[q].toUpperCase():n;return s&&-1<ie.call(re,J+f)&&d(f),l=re.push((s?ee:J)+n)-1,le=le.concat(le.length?",":"",s?f+'[is="'+e.toLowerCase()+'"]':f),a.prototype=oe[l]=ce.call(i,"prototype")?i.prototype:Ne(Se),le.length&&r(g.querySelectorAll(le),_),a},g.createElement=Xe=function(e,t){var n=M(t),r=n?ze.call(g,e,Oe(n)):ze.call(g,e),o=""+e,l=ie.call(re,(n?ee:J)+(n||o).toUpperCase()),i=-1<l;return n&&(r.setAttribute("is",n=n.toLowerCase()),i&&(i=a(o.toUpperCase(),n))),rt=!g.createElement.innerHTMLHelper,i&&F(r,oe[l]),r}),addEventListener("beforeunload",function(){delete g.createElement,delete g.importNode,delete g[V]},!1),h.prototype={constructor:h,define:ve?function(e,t,n){if(n)T(e,t,n);else{var r=e.toUpperCase();Ce[r]={constructor:t,create:[r]},Ae.set(t,r),Ee.define(e,t)}}:T,get:ve?function(e){return Ee.get(e)||L(e)}:L,whenDefined:ve?function(e){return be.race([Ee.whenDefined(e),v(e)])}:v},!Ee||/^force/.test(t.type))H();else if(!t.noBuiltIn)try{!function(t,n,r){var o=new RegExp("^<a\\s+is=('|\")"+r+"\\1></a>$");if(n[q]="a",(t.prototype=Ne(Fe.prototype)).constructor=t,e.customElements.define(r,t,n),!o.test(g.createElement("a",{is:r}).outerHTML)||!o.test((new t).outerHTML))throw n}(function e(){return Reflect.construct(Fe,[],e)},{},"document-register-element-a"+P)}catch(ot){H()}if(!t.noBuiltIn)try{if(ze.call(g,"a","a").outerHTML.indexOf("is")<0)throw{}}catch(lt){Oe=function(e){return{is:e.toLowerCase()}}}}(window);
|
|
(self.webpackChunkopenvidu_call=self.webpackChunkopenvidu_call||[]).push([[179],{98255:function(e){function t(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=function(){return[]},t.resolve=t,t.id=98255,e.exports=t},55068:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&v(e,"error",t,{once:!0})}(e,r)})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,i){var r,o,a;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=c(e))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function l(){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 h(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(i);return r.listener=n,i.wrapFn=r,r}function d(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):p(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function v(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function r(o){i.once&&e.removeEventListener(t,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var u=c.length,l=p(c,u);for(n=0;n<u;++n)i(l[n],this,t)}return!0},o.prototype.on=o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,h(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,h(this,e,t)),this},o.prototype.off=o.prototype.removeListener=function(e,t){var n,i,r,o,a;if(s(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},42596:function(e,t,n){"use strict";var i=n(82111);e.exports=function(e){var t,r={stun:(e||{}).stun||n(48798),turn:(e||{}).turn||n(39642)},o=(e||{}).turnCount||0;function a(e,t){for(var n,o=[],a=[].concat(r[e]);a.length&&o.length<t;)n=Math.random()*a.length|0,o=o.concat(a.splice(n,1));return o.map(function(t){return"string"==typeof t||t instanceof String?i(e+":"+t):t})}return t=[].concat(a("stun",(e||{}).stunCount||2)),o&&(t=t.concat(a("turn",o))),t}},92812:function(e,t,n){var i,r=n(39270);"undefined"!=typeof window&&(i=window.AudioContext||window.webkitAudioContext);var o=null;e.exports=function(e,t){var n=new r;if(!i)return n;var a,s,c,u=(t=t||{}).smoothing||.1,l=t.interval||50,h=t.threshold,d=t.play,f=t.history||10,p=!0;o=t.audioContext||o||new i,(c=o.createAnalyser()).fftSize=512,c.smoothingTimeConstant=u,s=new Float32Array(c.frequencyBinCount),e.jquery&&(e=e[0]),e instanceof HTMLAudioElement||e instanceof HTMLVideoElement?(a=o.createMediaElementSource(e),void 0===d&&(d=!0),h=h||-50):(a=o.createMediaStreamSource(e),h=h||-50),a.connect(c),d&&c.connect(o.destination),n.speaking=!1,n.suspend=function(){return o.suspend()},n.resume=function(){return o.resume()},Object.defineProperty(n,"state",{get:function(){return o.state}}),o.onstatechange=function(){n.emit("state_change",o.state)},n.setThreshold=function(e){h=e},n.setInterval=function(e){l=e},n.stop=function(){p=!1,n.emit("volume_change",-100,h),n.speaking&&(n.speaking=!1,n.emit("stopped_speaking")),c.disconnect(),a.disconnect()},n.speakingHistory=[];for(var v=0;v<f;v++)n.speakingHistory.push(0);return function e(){setTimeout(function(){if(p){var t=function(e,t){var n=-1/0;e.getFloatFrequencyData(t);for(var i=4,r=t.length;i<r;i++)t[i]>n&&t[i]<0&&(n=t[i]);return n}(c,s);n.emit("volume_change",t,h);var i=0;if(t>h&&!n.speaking){for(var r=n.speakingHistory.length-3;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];i>=2&&(n.speaking=!0,n.emit("speaking"))}else if(t<h&&n.speaking){for(r=0;r<n.speakingHistory.length;r++)i+=n.speakingHistory[r];0==i&&(n.speaking=!1,n.emit("stopped_speaking"))}n.speakingHistory.shift(),n.speakingHistory.push(0+(t>h)),e()}},l)}(),n}},5457:function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},95784:function(e,t){var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});function r(e){if(!e)return r.__;Array.prototype.reduce||(Array.prototype.reduce=function(e,t){for(var n=t,i=0;i<this.length;i++)n=e(n,this[i],i,this);return n});var t="";return("."+e).split(".").reduce(function(e,n,i,o){t?t+="."+n:t=n;var a=e["__"+t];return void 0===a&&(r.Logger.prototype=e,a=new r.Logger(t),e["__"+t]=a),a},r.__)}!function(e){function t(e,t,n){void 0!==t[e]&&(null!==t[e]?n[e]=t[e]:delete n[e])}function n(t){if(null!=e.enabled&&!e.enabled)return!1;try{if(t.userAgentRegex&&!new RegExp(t.userAgentRegex).test(navigator.userAgent))return!1}catch(n){}try{if(t.ipRegex&&e.clientIP&&!new RegExp(t.ipRegex).test(e.clientIP))return!1}catch(n){}return!0}function r(e,t){try{if(e.disallow&&new RegExp(e.disallow).test(t))return!1}catch(n){}return!0}function o(e){return"function"==typeof e?e instanceof RegExp?e.toString():e():e}e.requestId="",e.entryId=0,e._createXMLHttpRequest=function(){return new XMLHttpRequest},e._getTime=function(){return(new Date).getTime()},e._console=console,e._appenderNames=[];var a=function(e,t,n){this.msg=e,this.meta=t,this.finalString=n};function s(t){var n,i=o(t);switch(typeof i){case"string":return new a(i,null,i);case"number":case"boolean":return n=i.toString(),new a(n,null,n);case"undefined":return new a("undefined",null,"undefined");case"object":return i instanceof RegExp||i instanceof String||i instanceof Number||i instanceof Boolean?(n=i.toString(),new a(n,null,n)):(n="function"==typeof e.serialize?e.serialize.call(this,i):JSON.stringify(i),new a("",i,n));default:return new a("unknown",null,"unknown")}}function c(e){return e<=1e3?"trace":e<=2e3?"debug":e<=3e3?"info":e<=4e3?"warn":e<=5e3?"error":"fatal"}e.setOptions=function(e){return t("enabled",e,this),t("maxMessages",e,this),t("defaultAjaxUrl",e,this),t("clientIP",e,this),t("requestId",e,this),t("defaultBeforeSend",e,this),t("serialize",e,this),this},e.getAllLevel=function(){return-2147483648},e.getTraceLevel=function(){return 1e3},e.getDebugLevel=function(){return 2e3},e.getInfoLevel=function(){return 3e3},e.getWarnLevel=function(){return 4e3},e.getErrorLevel=function(){return 5e3},e.getFatalLevel=function(){return 6e3},e.getOffLevel=function(){return 2147483647};var u=function(e,t){this.inner=t,this.name="JL.Exception",this.message=s(e).finalString};e.Exception=u,u.prototype=new Error;var l=function(e,t,n,i,r){this.l=e,this.m=t,this.n=n,this.t=i,this.u=r};function h(t,n,i){return e.entryId++,new l(t,n,i,e._getTime(),e.entryId)}function d(e){e.id&&(clearTimeout(e.id),e.id=null)}function f(e,t,n){var i=this;e.id||(e.id=setTimeout(function(){n.call(i)},t))}e.LogItem=l;var p=function(){function i(t,n){this.appenderName=t,this.sendLogItems=n,this.level=e.getTraceLevel(),this.sendWithBufferLevel=2147483647,this.storeInBufferLevel=-2147483648,this.bufferSize=0,this.batchSize=1,this.maxBatchSize=20,this.batchTimeout=2147483647,this.sendTimeout=5e3,this.buffer=[],this.batchBuffer=[],this.batchTimeoutTimer={id:null},this.sendTimeoutTimer={id:null},this.nbrLogItemsSkipped=0,this.nbrLogItemsBeingSent=0;var i="Trying to create an appender without a name or with an empty name";if(null==t)throw i;if(-1!=e._appenderNames.indexOf(t)){if(!t)throw i;throw"Multiple appenders use the same name "+t}e._appenderNames.push(t)}return i.prototype.addLogItemsToBuffer=function(t){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=t.length;else{if(null!=e.maxMessages){if(e.maxMessages<1)return;e.maxMessages-=t.length}this.batchBuffer=this.batchBuffer.concat(t);var n=this;f(this.batchTimeoutTimer,this.batchTimeout,function(){n.sendBatch.call(n)})}},i.prototype.batchBufferHasOverdueMessages=function(){for(var t=0;t<this.batchBuffer.length;t++)if(e._getTime()-this.batchBuffer[t].t>this.batchTimeout)return!0;return!1},i.prototype.batchBufferHasStrandedMessage=function(){return!(null==e.maxMessages)&&e.maxMessages<1&&this.batchBuffer.length>0},i.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},i.prototype.onSendingEnded=function(){d(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},i.prototype.setOptions=function(n){if(t("level",n,this),t("ipRegex",n,this),t("userAgentRegex",n,this),t("disallow",n,this),t("sendWithBufferLevel",n,this),t("storeInBufferLevel",n,this),t("bufferSize",n,this),t("batchSize",n,this),t("maxBatchSize",n,this),t("batchTimeout",n,this),t("sendTimeout",n,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new e.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},i.prototype.log=function(e,t,i,o,a,s,c){var u;n(this)&&r(this,s)&&(a<this.storeInBufferLevel||(u=h(a,s,c),a<this.level?this.bufferSize>0&&(this.buffer.push(u),this.buffer.length>this.bufferSize&&this.buffer.shift()):(this.addLogItemsToBuffer([u]),a>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete())))},i.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(d(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var e=this;f(this.sendTimeoutTimer,this.sendTimeout,function(){e.onSendingEnded.call(e)}),this.sendLogItems(this.batchBuffer,function(){e.batchBuffer.splice(0,e.nbrLogItemsBeingSent),e.nbrLogItemsSkipped>0&&(e.batchBuffer.push(h(4e3,"Lost "+e.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.",e.appenderName)),e.nbrLogItemsSkipped=0),e.onSendingEnded.call(e)})}},i}();e.Appender=p;var v=function(r){function o(e){return r.call(this,e,o.prototype.sendLogItemsAjax)||this}return i(o,r),o.prototype.setOptions=function(e){return t("url",e,this),t("beforeSend",e,this),r.prototype.setOptions.call(this,e),this},o.prototype.sendLogItemsAjax=function(t,i){try{if(!n(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=e._createXMLHttpRequest();var r="/jsnlog.logger";null!=e.defaultAjaxUrl&&(r=e.defaultAjaxUrl),this.url&&(r=this.url),this.xhr.open("POST",r),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",e.requestId);var o=this;this.xhr.onreadystatechange=function(){4==o.xhr.readyState&&o.xhr.status>=200&&o.xhr.status<300&&i()};var a={r:e.requestId,lg:t};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,a):"function"==typeof e.defaultBeforeSend&&e.defaultBeforeSend.call(this,this.xhr,a);var s=JSON.stringify(a);this.xhr.send(s)}catch(c){}},o}(p);e.AjaxAppender=v;var m=function(t){function r(e){return t.call(this,e,r.prototype.sendLogItemsConsole)||this}return i(r,t),r.prototype.clog=function(t){e._console.log(t)},r.prototype.cerror=function(t){e._console.error?e._console.error(t):this.clog(t)},r.prototype.cwarn=function(t){e._console.warn?e._console.warn(t):this.clog(t)},r.prototype.cinfo=function(t){e._console.info?e._console.info(t):this.clog(t)},r.prototype.cdebug=function(t){e._console.debug?e._console.debug(t):this.cinfo(t)},r.prototype.sendLogItemsConsole=function(t,i){try{if(!n(this))return;if(!e._console)return;var r;for(r=0;r<t.length;++r){var o=t[r],a=o.n+": "+o.m;"undefined"==typeof window&&(a=new Date(o.t)+" | "+a),o.l<=e.getDebugLevel()?this.cdebug(a):o.l<=e.getInfoLevel()?this.cinfo(a):o.l<=e.getWarnLevel()?this.cwarn(a):this.cerror(a)}}catch(s){}i()},r}(p);e.ConsoleAppender=m;var g,y=function(){function e(e){this.loggerName=e,this.seenRegexes=[]}return e.prototype.setOptions=function(e){return t("level",e,this),t("userAgentRegex",e,this),t("disallow",e,this),t("ipRegex",e,this),t("appenders",e,this),t("onceOnly",e,this),this.seenRegexes=[],this},e.prototype.buildExceptionObject=function(e){var t={};return e.stack?t.stack=e.stack:t.e=e,e.message&&(t.message=e.message),e.name&&(t.name=e.name),e.data&&(t.data=e.data),e.inner&&(t.inner=this.buildExceptionObject(e.inner)),t},e.prototype.log=function(e,t,i){var a,u,l=0;if(!this.appenders)return this;if(e>=this.level&&n(this)&&(i?(u=this.buildExceptionObject(i)).logData=o(t):u=t,r(this,(a=s(u)).finalString))){if(this.onceOnly)for(l=this.onceOnly.length-1;l>=0;){if(new RegExp(this.onceOnly[l]).test(a.finalString)){if(this.seenRegexes[l])return this;this.seenRegexes[l]=!0}l--}for(a.meta=a.meta||{},l=this.appenders.length-1;l>=0;)this.appenders[l].log(c(e),a.msg,a.meta,function(){},e,a.finalString,this.loggerName),l--}return this},e.prototype.trace=function(e){return this.log(1e3,e)},e.prototype.debug=function(e){return this.log(2e3,e)},e.prototype.info=function(e){return this.log(3e3,e)},e.prototype.warn=function(e){return this.log(4e3,e)},e.prototype.error=function(e){return this.log(5e3,e)},e.prototype.fatal=function(e){return this.log(6e3,e)},e.prototype.fatalException=function(e,t){return this.log(6e3,e,t)},e}();e.Logger=y,e.createAjaxAppender=function(e){return new v(e)},e.createConsoleAppender=function(e){return new m(e)},g="undefined"!=typeof window?new v(""):new m(""),e.__=new e.Logger(""),e.__.setOptions({level:e.getDebugLevel(),appenders:[g]})}(r||(r={})),t.__esModule=!0,t.JL=r,"function"==typeof __jsnlog_configure&&__jsnlog_configure(r),"undefined"==typeof window||window.onerror||(window.onerror=function(e,t,n,i,o){return r("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:e?e.message||e:"",url:t,"line number":n,column:i},o),!1}),"undefined"==typeof window||window.onunhandledrejection||(window.onunhandledrejection=function(e){r("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:e.reason?e.reason.message:e.message||null},e.reason)})},75275:function(e,t,n){"use strict";var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(94140)),r=i.tokenize,o=i.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}function c(e){if(!e)return"";var t=[];for(var n in e)t.push(n+'="'+s(e[n]+"")+'"');return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=r(e),i=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)i.push("<br>\n");else if(l.isLink&&t.check(l)){var h=t.resolve(l),d=h.formatted,f=h.formattedHref,p=h.tagName,v=h.className,m=h.target,g=h.attributes,y="<"+p+' href="'+s(f)+'"';v&&(y+=' class="'+s(v)+'"'),m&&(y+=' target="'+s(m)+'"'),g&&(y+=" "+c(g)),y+=">"+a(d)+"</"+p+">",i.push(y)}else i.push(a(l.toString()))}return i.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(l){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},94140:function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var i=n(29073),r=s(n(68601)),o=s(n(44272)),a=s(n(33403));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),i=[],r=0;r<n.length;r++){var o=n[r];!o.isLink||t&&o.type!==t||i.push(o.toObject())}return i},t.inherits=i.inherits,t.options=r,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},33403:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n(73314),r=n(37102),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(22040),s=function(e){return new i.TokenState(e)},c=s(),u=s(),l=s(),h=s(),d=s(),f=s(),p=s(),v=s(r.URL),m=s(),g=s(r.URL),y=s(r.URL),b=s(),_=s(),k=s(),w=s(),S=s(),C=s(r.URL),E=s(r.URL),x=s(r.URL),O=s(r.URL),T=s(),I=s(),P=s(),M=s(),A=s(),R=s(),N=s(r.EMAIL),L=s(),D=s(r.EMAIL),V=s(r.MAILTOEMAIL),j=s(),F=s(),B=s(),U=s(),z=s(r.NL);c.on(a.NL,z).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,h),u.on(a.SLASH,h),h.on(a.SLASH,d),c.on(a.TLD,f).on(a.DOMAIN,f).on(a.LOCALHOST,v).on(a.NUM,f),d.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),f.on(a.DOT,p),A.on(a.DOT,R),p.on(a.TLD,v).on(a.DOMAIN,f).on(a.NUM,f).on(a.LOCALHOST,f),R.on(a.TLD,N).on(a.DOMAIN,A).on(a.NUM,A).on(a.LOCALHOST,A),v.on(a.DOT,p),N.on(a.DOT,R),v.on(a.COLON,m).on(a.SLASH,y),m.on(a.NUM,g),g.on(a.SLASH,y),N.on(a.COLON,L),L.on(a.NUM,D);var H=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),b.on(a.OPENBRACE,_).on(a.OPENBRACKET,k).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,S),_.on(a.CLOSEBRACE,y),k.on(a.CLOSEBRACKET,y),w.on(a.CLOSEANGLEBRACKET,y),S.on(a.CLOSEPAREN,y),C.on(a.CLOSEBRACE,y),E.on(a.CLOSEBRACKET,y),x.on(a.CLOSEANGLEBRACKET,y),O.on(a.CLOSEPAREN,y),T.on(a.CLOSEBRACE,y),I.on(a.CLOSEBRACKET,y),P.on(a.CLOSEANGLEBRACKET,y),M.on(a.CLOSEPAREN,y),_.on(H,C),k.on(H,E),w.on(H,x),S.on(H,O),_.on(W,T),k.on(W,I),w.on(W,P),S.on(W,M),C.on(H,C),E.on(H,E),x.on(H,x),O.on(H,O),C.on(W,C),E.on(W,E),x.on(W,x),O.on(W,O),T.on(H,C),I.on(H,E),P.on(H,x),M.on(H,O),T.on(W,T),I.on(W,I),P.on(W,P),M.on(W,M),y.on(H,y),b.on(H,y),y.on(W,b),b.on(W,b),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(H,V).on(W,j),j.on(H,V).on(W,j);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];f.on(G,F).on(a.AT,B),v.on(G,F).on(a.AT,B),p.on(G,F),F.on(G,F).on(a.AT,B).on(a.DOT,U),U.on(G,F),B.on(a.TLD,A).on(a.DOMAIN,A).on(a.LOCALHOST,N),t.State=i.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,i=[],o=[];n<t;){for(var a=c,s=null,u=null,l=0,h=null,d=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(d=0,h=a):d>=0&&d++,n++,l++;if(d<0)for(var f=n-l;f<n;f++)o.push(e[f]);else{o.length>0&&(i.push(new r.TEXT(o)),o=[]),n-=d,l-=d;var p=h.emit();i.push(new p(e.slice(n-l,n)))}}return o.length>0&&i.push(new r.TEXT(o)),i},t.start=c},44272:function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var i=n(73314),r=n(22040),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v","\xa0","\u1680","\u180e"],l=[],h=function(e){return new i.CharacterState(e)},d=h(),f=h(r.NUM),p=h(r.DOMAIN),v=h(),m=h(r.WS);d.on("@",h(r.AT)).on(".",h(r.DOT)).on("+",h(r.PLUS)).on("#",h(r.POUND)).on("?",h(r.QUERY)).on("/",h(r.SLASH)).on("_",h(r.UNDERSCORE)).on(":",h(r.COLON)).on("{",h(r.OPENBRACE)).on("[",h(r.OPENBRACKET)).on("<",h(r.OPENANGLEBRACKET)).on("(",h(r.OPENPAREN)).on("}",h(r.CLOSEBRACE)).on("]",h(r.CLOSEBRACKET)).on(">",h(r.CLOSEANGLEBRACKET)).on(")",h(r.CLOSEPAREN)).on("&",h(r.AMPERSAND)).on([",",";","!",'"',"'"],h(r.PUNCTUATION)),d.on("\n",h(r.NL)).on(u,m),m.on(u,m);for(var g=0;g<a.length;g++){var y=(0,i.stateify)(a[g],d,r.TLD,r.DOMAIN);l.push.apply(l,y)}var b=(0,i.stateify)("file",d,r.DOMAIN,r.DOMAIN),_=(0,i.stateify)("ftp",d,r.DOMAIN,r.DOMAIN),k=(0,i.stateify)("http",d,r.DOMAIN,r.DOMAIN),w=(0,i.stateify)("mailto",d,r.DOMAIN,r.DOMAIN);l.push.apply(l,b),l.push.apply(l,_),l.push.apply(l,k),l.push.apply(l,w);var S=b.pop(),C=_.pop(),E=k.pop(),x=w.pop(),O=h(r.DOMAIN),T=h(r.PROTOCOL),I=h(r.MAILTO);C.on("s",O).on(":",T),E.on("s",O).on(":",T),l.push(O),S.on(":",T),O.on(":",T),x.on(":",I);var P=(0,i.stateify)("localhost",d,r.LOCALHOST,r.DOMAIN);l.push.apply(l,P),d.on(s,f),f.on("-",v).on(s,f).on(c,p),p.on("-",v).on(c,p);for(var M=0;M<l.length;M++)l[M].on("-",v).on(c,p);v.on("-",v).on(s,p).on(c,p),d.defaultTransition=h(r.SYM);var A=d;t.State=i.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,function(e){return e.toLowerCase()}),n=e.length,i=[],r=0;r<n;){for(var o=d,a=null,s=0,c=null,u=-1;r<n&&(a=o.next(t[r]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,r++;if(!(u<0)){r-=u,s-=u;var l=c.emit();i.push(new l(e.substr(r-s,s)))}}return i},t.start=A},73314:function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var i=n(29073),r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],i=n[1];if(this.test(e,n[0]))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var o=(0,i.inherits)(r,function(e){this.j=[],this.T=e||null},{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,i.inherits)(r,function(e){this.j=[],this.T=e||null},{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=o,t.TokenState=a,t.stateify=function(e,t,n,i){for(var r=0,a=e.length,s=t,c=[],u=void 0;r<a&&(u=s.next(e[r]));)s=u,r++;if(r>=a)return[];for(;r<a-1;)u=new o(i),c.push(u),s.on(e[r],u),s=u,r++;return u=new o(n),c.push(u),s.on(e[a-1],u),c}},78127:function(e,t){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},37102:function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var i=n(78127),r=n(29073),o=n(22040);function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,i.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0}),u=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"text"}),h=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"nl"}),d=(0,r.inherits)(s,(0,i.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,i=this.v,r=[],s=0;i[s]instanceof o.PROTOCOL;)t=!0,r.push(i[s].toString().toLowerCase()),s++;for(;i[s]instanceof o.SLASH;)n=!0,r.push(i[s].toString()),s++;for(;a(i[s]);)r.push(i[s].toString().toLowerCase()),s++;for(;s<i.length;s++)r.push(i[s].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=u,t.NL=h,t.TEXT=l,t.URL=d},22040:function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var i=n(78127),r=n(29073),o=(0,i.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(o,(0,i.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),u=a(":"),l=a("."),h=a(),d=a(),f=a("\n"),p=a(),v=a("+"),m=a("#"),g=a(),y=a("mailto:"),b=a("?"),_=a("/"),k=a("_"),w=a(),S=a(),C=a(),E=a("{"),x=a("["),O=a("<"),T=a("("),I=a("}"),P=a("]"),M=a(">"),A=a(")"),R=a("&");t.Base=o,t.DOMAIN=s,t.AT=c,t.COLON=u,t.DOT=l,t.PUNCTUATION=h,t.LOCALHOST=d,t.NL=f,t.NUM=p,t.PLUS=v,t.POUND=m,t.QUERY=b,t.PROTOCOL=g,t.MAILTO=y,t.SLASH=_,t.UNDERSCORE=k,t.SYM=w,t.TLD=S,t.WS=C,t.OPENBRACE=E,t.OPENBRACKET=x,t.OPENANGLEBRACKET=O,t.OPENPAREN=T,t.CLOSEBRACE=I,t.CLOSEBRACKET=P,t.CLOSEANGLEBRACKET=M,t.CLOSEPAREN=A,t.AMPERSAND=R},29073:function(e,t){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(e.prototype);for(var r in n)i[r]=n[r];return i.constructor=t,t.prototype=i,t}},68601:function(e,t){"use strict";t.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={defaultProtocol:"http",events:null,format:o,formatHref:o,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function r(e){this.defaultProtocol=(e=e||{}).hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function o(e){return e}t.defaults=i,t.Options=r,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},r.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,r){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":n(a)){case"function":return a(t,r.type);case"object":return"function"==typeof(o=a.hasOwnProperty(r.type)?a[r.type]:i[e])?o(t,r.type):o}return a},getObject:function(e,t,n){var i=this[e];return"function"==typeof i?i(t,n.type):i}}},90272:function(e,t,n){e.exports=n(75275).default},82111:function(e){var t=["stun:","turn:"];e.exports=function(e){var n,i,r=(e||{}).url||e,o={};return"string"==typeof r||r instanceof String?(r=r.trim(),(n=t[t.indexOf(r.slice(0,5))])?(i=(r=r.slice(5)).split("@"),o.username=e.username,o.credential=e.credential,i.length>1&&(r=i[1],i=i[0].split(":"),o.username=i[0],o.credential=(e||{}).credential||i[1]||""),o.url=n+r,o.urls=[o.url],o):e):e}},38213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=void 0;var i=n(97558),r=n(39040),o=n(90250),a=r.OpenViduLogger.getInstance(),s=function(){function e(e,t){this.session=e,this.disposed=!1;var n="'Connection' created ";t.role?(this.localOptions=t,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,n+="(local)"):(this.remoteOptions=t,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),n+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),a.info(n)}return e.prototype.sendIceCandidate=function(e){var t=this;a.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,e),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:e.candidate,sdpMid:e.sdpMid,sdpMLineIndex:e.sdpMLineIndex},function(e,n){e&&(a.error("Error sending ICE candidate: "+JSON.stringify(e)),t.session.emitEvent("exception",[new o.ExceptionEvent(t.session,o.ExceptionEventName.ICE_CANDIDATE_ERROR,t.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",e)]))})},e.prototype.initRemoteStreams=function(e){var t=this;e.forEach(function(e){var n={id:e.id,createdAt:e.createdAt,connection:t,hasAudio:e.hasAudio,hasVideo:e.hasVideo,audioActive:e.audioActive,videoActive:e.videoActive,typeOfVideo:e.typeOfVideo,frameRate:e.frameRate,videoDimensions:e.videoDimensions?JSON.parse(e.videoDimensions):void 0,filter:e.filter?e.filter:void 0},r=new i.Stream(t.session,n);t.addStream(r)}),a.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},e.prototype.addStream=function(e){e.connection=this,this.stream=e},e.prototype.removeStream=function(e){delete this.stream},e.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},e}();t.Connection=s},62288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventDispatcher=void 0;var i=n(59901),r=n(39040).OpenViduLogger.getInstance(),o=function(){function e(){this.userHandlerArrowHandler=new WeakMap,this.ee=new i}return e.prototype.onAux=function(e,t,n){var i=function(e){e?r.info(t,e):r.info(t),n(e)};return this.userHandlerArrowHandler.set(n,i),this.ee.on(e,i),this},e.prototype.onceAux=function(e,t,n){var i=this,o=function(e){e?r.info(t,e):r.info(t),n(e),i.userHandlerArrowHandler.delete(n)};return this.userHandlerArrowHandler.set(n,o),this.ee.once(e,o),this},e.prototype.offAux=function(e,t){if(t){var n=this.userHandlerArrowHandler.get(t);n&&this.ee.off(e,n),this.userHandlerArrowHandler.delete(t)}else this.ee.removeAllListeners(e);return this},e}();t.EventDispatcher=o},22212:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Filter=void 0;var i=n(15486),r=n(51860),o=n(39040).OpenViduLogger.getInstance(),a=function(){function e(e,t){this.handlers=new Map,this.type=e,this.options=t}return e.prototype.execMethod=function(e,t){var n=this;return new Promise(function(a,s){var c;if(o.info("Executing filter method to stream "+n.stream.streamId),"string"!=typeof t)try{c=JSON.stringify(t)}catch(l){var u="'params' property must be a JSON formatted object";return o.error(u),s(u)}else c=t;n.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:n.stream.streamId,method:e,params:c},function(t,u){if(t)return o.error("Error executing filter method for Stream "+n.stream.streamId,t),s(401===t.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):t);o.info("Filter method successfully executed on Stream "+n.stream.streamId);var l=Object.assign({},n.stream.filter);return n.stream.filter.lastExecMethod={method:e,params:JSON.parse(c)},n.stream.session.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.session,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),n.stream.streamManager.emitEvent("streamPropertyChanged",[new i.StreamPropertyChangedEvent(n.stream.streamManager,n.stream,"filter",n.stream.filter,l,"execFilterMethod")]),a()})})},e.prototype.addEventListener=function(e,t){var n=this;return new Promise(function(i,a){o.info("Adding filter event listener to event "+e+" to stream "+n.stream.streamId),n.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:n.stream.streamId,eventType:e},function(s,c){return s?(o.error("Error adding filter event listener to event "+e+"for Stream "+n.stream.streamId,s),a(401===s.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):s)):(n.handlers.set(e,t),o.info("Filter event listener to event "+e+" successfully applied on Stream "+n.stream.streamId),i())})})},e.prototype.removeEventListener=function(e){var t=this;return new Promise(function(n,i){o.info("Removing filter event listener to event "+e+" to stream "+t.stream.streamId),t.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:t.stream.streamId,eventType:e},function(a,s){return a?(o.error("Error removing filter event listener to event "+e+"for Stream "+t.stream.streamId,a),i(401===a.code?new r.OpenViduError(r.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):a)):(t.handlers.delete(e),o.info("Filter event listener to event "+e+" successfully removed on Stream "+t.stream.streamId),n())})})},e}();t.Filter=a},98905:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalRecorder=void 0;var i,r=n(34222),o=n(39040),a=n(63053),s=n(6298),c=o.OpenViduLogger.getInstance(),u=function(){function e(e){this.stream=e,this.chunks=[],i=a.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=r.LocalRecorderState.READY}return e.prototype.record=function(e){var t=this;return new Promise(function(n,i){try{if("string"==typeof e||e instanceof String)return i("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(e,'" }'));if("undefined"==typeof MediaRecorder)throw c.error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder"),Error("MediaRecorder not supported on your device. See compatibility in https://caniuse.com/#search=MediaRecorder");if(t.state!==r.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+t.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");c.log("Starting local recording of stream '"+t.stream.streamId+"' of connection '"+t.connectionId+"'"),e?e.mimeType||(e.mimeType="video/webm"):e={mimeType:"video/webm"},t.mediaRecorder=new MediaRecorder(t.stream.getMediaStream(),e),t.mediaRecorder.start()}catch(o){return i(o)}return t.mediaRecorder.ondataavailable=function(e){e.data.size>0&&t.chunks.push(e.data)},t.mediaRecorder.onerror=function(e){c.error("MediaRecorder error: ",e)},t.mediaRecorder.onstart=function(){c.log("MediaRecorder started (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onstop=function(){t.onStopDefault()},t.mediaRecorder.onpause=function(){c.log("MediaRecorder paused (state="+t.mediaRecorder.state+")")},t.mediaRecorder.onresume=function(){c.log("MediaRecorder resumed (state="+t.mediaRecorder.state+")")},t.state=r.LocalRecorderState.RECORDING,n()})},e.prototype.stop=function(){var e=this;return new Promise(function(t,n){try{if(e.state===r.LocalRecorderState.READY||e.state===r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' before");e.mediaRecorder.onstop=function(){return e.onStopDefault(),t()},e.mediaRecorder.stop()}catch(i){return n(i)}})},e.prototype.pause=function(){var e=this;return new Promise(function(t,n){try{return e.state!==r.LocalRecorderState.RECORDING?n(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+e.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(e.mediaRecorder.pause(),e.state=r.LocalRecorderState.PAUSED,t())}catch(i){return n(i)}})},e.prototype.resume=function(){var e=this;return new Promise(function(t,n){try{if(e.state!==r.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+e.state+"'). Call 'LocalRecorder.pause()' before");return e.mediaRecorder.resume(),e.state=r.LocalRecorderState.RECORDING,t()}catch(i){return n(i)}})},e.prototype.preview=function(e){if(this.state!==r.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,i.isSafariBrowser()&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof e){var t=document.getElementById(e);t&&(this.videoPreview=t.appendChild(this.videoPreview))}else this.videoPreview=e.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},e.prototype.clean=function(){var e=this,t=function(){delete e.blob,e.chunks=[],e.state=r.LocalRecorderState.READY};this.state===r.LocalRecorderState.RECORDING||this.state===r.LocalRecorderState.PAUSED?this.stop().then(function(){return t()}).catch(function(){return t()}):t()},e.prototype.download=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var e=document.createElement("a");e.style.display="none",document.body.appendChild(e);var t=window.URL.createObjectURL(this.blob);e.href=t,e.download=this.id+"."+s.getExtension(this.blob.type),e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)},e.prototype.getBlob=function(){if(this.state!==r.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},e.prototype.uploadAsBinary=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)return o(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var s=0,c=Object.keys(t);s<c.length;s++){var u=c[s];a.setRequestHeader(u,t[u])}a.onreadystatechange=function(){if(4===a.readyState)return"2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status)},a.send(n.blob)})},e.prototype.uploadAsMultipartfile=function(e,t){var n=this;return new Promise(function(i,o){if(n.state!==r.LocalRecorderState.FINISHED)return o(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+n.state+"'). Call 'LocalRecorder.stop()' before"));var a=new XMLHttpRequest;if(a.open("POST",e,!0),"object"==typeof t)for(var c=0,u=Object.keys(t);c<u.length;c++){var l=u[c];a.setRequestHeader(l,t[l])}var h=new FormData;h.append("file",n.blob,n.id+"."+s.getExtension(n.blob.type)),a.onreadystatechange=function(){if(4===a.readyState)return"2"===a.status.toString().charAt(0)?i(a.responseText):o(a.status)},a.send(h)})},e.prototype.onStopDefault=function(){c.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:this.mediaRecorder.mimeType}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=r.LocalRecorderState.FINISHED},e}();t.LocalRecorder=u},34051:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenVidu=void 0;var i,r=n(98905),o=n(10920),a=n(35996),s=n(87355),c=n(15486),u=n(51860),l=n(86634),h=n(39040),d=n(63053),f=n(77228),p=n(23543),v=n(85214),m=n(59901),g=n(31111),y=n(5713),b=h.OpenViduLogger.getInstance(),_=function(){function e(){var e=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=v.OpenViduLoggerConfiguration.disabled,this.isPro=!1,this.ee=new m,i=d.PlatformUtils.getInstance(),this.libraryVersion=y.version,b.info("OpenVidu initialized"),b.info("Platform detected: "+i.getDescription()),b.info("openvidu-browser version: "+this.libraryVersion),(i.isMobileDevice()||i.isReactNative())&&this.onOrientationChanged(function(){e.publishers.forEach(function(t){t.stream.isLocalStreamPublished&&t.stream&&t.stream.hasVideo&&e.sendNewVideoDimensionsIfRequired(t,"deviceRotated",75,10)})})}return e.prototype.initSession=function(){return this.session=new a.Session(this),this.session},e.prototype.initPublisher=function(e,t,n){var i;i=t&&"function"!=typeof t?{audioSource:void 0!==(i=t).audioSource?i.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.frameRate?i.frameRate:void 0,insertMode:void 0!==i.insertMode?"string"==typeof i.insertMode?l.VideoInsertMode[i.insertMode]:i.insertMode:l.VideoInsertMode.APPEND,mirror:void 0===i.mirror||i.mirror,publishAudio:void 0===i.publishAudio||i.publishAudio,publishVideo:void 0===i.publishVideo||i.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&i.videoSource instanceof MediaStreamTrack?void 0:void 0!==i.resolution?i.resolution:"640x480",videoSource:void 0!==i.videoSource?i.videoSource:void 0,videoSimulcast:i.videoSimulcast,filter:i.filter}:{insertMode:l.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var r,a=new o.Publisher(e,i,this);return t&&"function"==typeof t?r=t:n&&(r=n),a.initialize().then(function(){void 0!==r&&r(void 0),a.emitEvent("accessAllowed",[])}).catch(function(e){void 0!==r&&r(e),a.emitEvent("accessDenied",[e])}),this.publishers.push(a),a},e.prototype.initPublisherAsync=function(e,t){var n=this;return new Promise(function(i,r){var o,a=function(e){return e?r(e):i(o)};o=t?n.initPublisher(e,t,a):n.initPublisher(e,a)})},e.prototype.initLocalRecorder=function(e){return new r.LocalRecorder(e)},e.prototype.checkSystemRequirements=function(){return i.isIPhoneOrIPad()?i.isIOSWithSafari()||i.isIonicIos()||i.isChromeMobileBrowser()||i.isEdgeMobileBrowser()||i.isOperaMobileBrowser()||i.isFirefoxMobileBrowser()?1:0:i.isChromeBrowser()||i.isChromeMobileBrowser()||i.isFirefoxBrowser()||i.isFirefoxMobileBrowser()||i.isOperaBrowser()||i.isOperaMobileBrowser()||i.isEdgeBrowser()||i.isEdgeMobileBrowser()||i.isSafariBrowser()||i.isAndroidBrowser()||i.isElectron()||i.isSamsungBrowser()?1:0},e.prototype.checkScreenSharingCapabilities=function(){return i.canScreenShare()},e.prototype.getDevices=function(){return new Promise(function(e,t){navigator.mediaDevices.enumerateDevices().then(function(t){var n,r=[];if(!i.isIonicAndroid()||"undefined"==typeof cordova||!(null===(n=null===cordova||void 0===cordova?void 0:cordova.plugins)||void 0===n?void 0:n.EnumerateDevicesPlugin))return t.forEach(function(e){"audioinput"!==e.kind&&"videoinput"!==e.kind||r.push({kind:e.kind,deviceId:e.deviceId,label:e.label})}),e(r);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(n){var i=[],o=[],a=[];return i=n.filter(function(e){return"audioinput"===e.kind}),o=t.filter(function(e){return"videoinput"===e.kind}),a=t.filter(function(e){return"audioinput"===e.kind}),o.forEach(function(e,t){r.push(e.label?{kind:e.kind,deviceId:e.deviceId,label:e.label}:{kind:e.kind,deviceId:e.deviceId,label:0===t?"Front Camera":1===t?"Back Camera":"Unknown Camera"})}),a.forEach(function(e,t){if(e.label)r.push({kind:e.kind,deviceId:e.deviceId,label:e.label});else{var n="";switch(t){case 0:n="Default";break;case 1:var o=i.filter(function(e){return e.label.includes("Built")})[0];n=o?o.label:"Built-in Microphone";break;case 2:var a=i.filter(function(e){return e.label.includes("Wired")})[0];n=a?a.label:"Headset earpiece";break;case 3:var s=i.filter(function(e){return e.label.includes("Bluetooth")})[0];n=s?s.label:"Wireless";break;default:n="Unknown Microphone"}r.push({kind:e.kind,deviceId:e.deviceId,label:n})}}),e(r)})}).catch(function(e){return b.error("Error getting devices",e),t(e)})})},e.prototype.getUserMedia=function(e){var t=this;return new Promise(function(n,r){var o=function(e,i){var o={audio:void 0===i.audio||i.audio,video:!1};navigator.mediaDevices.getUserMedia(o).then(function(t){return e.addTrack(t.getAudioTracks()[0]),n(e)}).catch(function(n){return e.getAudioTracks().forEach(function(e){e.stop()}),e.getVideoTracks().forEach(function(e){e.stop()}),r(t.generateAudioDeviceError(n,o))})};t.generateMediaConstraints(e).then(function(a){var s,c;if(a.videoTrack&&a.audioTrack||a.audioTrack&&!1===(null===(s=a.constraints)||void 0===s?void 0:s.video)||a.videoTrack&&!1===(null===(c=a.constraints)||void 0===c?void 0:c.audio))return n(t.addAlreadyProvidedTracks(a,new MediaStream));a.videoTrack&&delete a.constraints.video,a.audioTrack&&delete a.constraints.audio;var l=!1;"string"==typeof e.videoSource&&("screen"===e.videoSource||"window"===e.videoSource||i.isElectron()&&e.videoSource.startsWith("screen:"))&&(l=!a.audioTrack&&null!==e.audioSource&&!1!==e.audioSource,navigator.mediaDevices.getDisplayMedia&&!i.isElectron())?navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(e){return t.addAlreadyProvidedTracks(a,e),l?void o(e,a.constraints):n(e)}).catch(function(e){var t=u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n=e.toString();return r(new u.OpenViduError(t,n))}):navigator.mediaDevices.getUserMedia(l?{video:a.constraints.video}:a.constraints).then(function(e){return t.addAlreadyProvidedTracks(a,e),l?void o(e,a.constraints):n(e)}).catch(function(t){var n=t.toString();return r(new u.OpenViduError("screen"!==e.videoSource?u.OpenViduErrorName.DEVICE_ACCESS_DENIED:u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,n))})}).catch(function(e){return r(e)})})},e.prototype.enableProdMode=function(){b.enableProdMode()},e.prototype.setAdvancedConfiguration=function(e){this.advancedConfiguration=e},e.prototype.onOrientationChanged=function(e){window.addEventListener("orientationchange",e)},e.prototype.sendNewVideoDimensionsIfRequired=function(e,t,n,i){var r=this,o=0,a=e.stream.videoDimensions.width,s=e.stream.videoDimensions.height,c=setInterval(function(){++o>i&&clearTimeout(c),e.getVideoDimensions(e.stream.getMediaStream()).then(function(n){n.width===a&&n.height===s||(clearTimeout(c),r.sendVideoDimensionsChangedEvent(e,t,a,s,n.width,n.height))})},n)},e.prototype.sendVideoDimensionsChangedEvent=function(e,t,n,i,r,o){var a=this;e.stream.videoDimensions={width:r||0,height:o||0},this.sendRequest("streamPropertyChanged",{streamId:e.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(e.stream.videoDimensions),reason:t},function(r,o){r?b.error("Error sending 'streamPropertyChanged' event",r):(a.session.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(a.session,e.stream,"videoDimensions",e.stream.videoDimensions,{width:n,height:i},t)]),e.emitEvent("streamPropertyChanged",[new c.StreamPropertyChangedEvent(e,e.stream,"videoDimensions",e.stream.videoDimensions,{width:n,height:i},t)]),a.session.sendVideoData(e))})},e.prototype.generateMediaConstraints=function(e){var t=this;return new Promise(function(n,i){var r={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},o=e.audioSource,a=e.videoSource;if(null!==o&&!1!==o||(r.constraints.audio=!1),null!==a&&!1!==a||(r.constraints.video=!1),!1===r.constraints.audio&&!1===r.constraints.video)return i(new u.OpenViduError(u.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&o instanceof MediaStreamTrack&&(r.audioTrack=o),"undefined"!=typeof MediaStreamTrack&&a instanceof MediaStreamTrack&&(r.videoTrack=a),void 0===o&&(r.constraints.audio=!0),void 0===a&&(r.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==a&&!1!==a){if(e.resolution){var s=e.resolution.toLowerCase().split("x"),c=Number(s[0]),l=Number(s[1]);r.constraints.video={width:{ideal:c},height:{ideal:l}}}e.frameRate&&(r.constraints.video.frameRate={ideal:e.frameRate})}return t.configureDeviceIdOrScreensharing(r,e,n,i),n(r)})},e.prototype.startWs=function(e){var t={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:e,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new g.clients.JsonRpcClient(t)},e.prototype.onMasterNodeCrashedNotification=function(e){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},e.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},e.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},e.prototype.sendRequest=function(e,t,n){t&&t instanceof Function&&(n=t,t={}),b.debug('Sending request: {method:"'+e+'", params: '+JSON.stringify(t)+"}"),this.jsonRpcClient.send(e,t,n)},e.prototype.getWsUri=function(){return this.wsUri},e.prototype.getSecret=function(){return this.secret},e.prototype.getRecorder=function(){return this.recorder},e.prototype.generateAudioDeviceError=function(e,t){var n,i;switch("Error"===e.name&&(e.name=e.constructor.name),e.name.toLowerCase()){case"notfounderror":return n=u.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i=e.toString(),new u.OpenViduError(n,i);case"notallowederror":return n=u.OpenViduErrorName.DEVICE_ACCESS_DENIED,i=e.toString(),new u.OpenViduError(n,i);case"overconstrainederror":return"deviceid"===e.constraint.toLowerCase()?(n=u.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,i="Audio input device with deviceId '"+t.audio.deviceId.exact+"' not found"):(n=u.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,i="Audio input device doesn't support the value passed for constraint '"+e.constraint+"'"),new u.OpenViduError(n,i);case"notreadableerror":return n=u.OpenViduErrorName.DEVICE_ALREADY_IN_USE,i=e.toString(),new u.OpenViduError(n,i);default:return new u.OpenViduError(u.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,e.toString())}},e.prototype.addAlreadyProvidedTracks=function(e,t){return e.videoTrack&&t.addTrack(e.videoTrack),e.audioTrack&&t.addTrack(e.audioTrack),t},e.prototype.configureDeviceIdOrScreensharing=function(e,t,n,r){var o=this,a=t.audioSource,s=t.videoSource;if("string"==typeof a&&(e.constraints.audio={deviceId:{exact:a}}),"string"==typeof s){if(this.isScreenShare(s)){if(this.checkScreenSharingCapabilities()){if(i.isElectron()){var c="screen:",l=s.substr(s.indexOf(c)+c.length);return e.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:l}},n(e)}if(!this.advancedConfiguration.screenShareChromeExtension||i.isFirefoxBrowser()||i.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return n(e);var h=i.isFirefoxBrowser()||i.isFirefoxMobileBrowser()?t.videoSource:void 0;return void f.getScreenId(h,function(t,i,a){if(t){if("not-installed"===t){var s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,o.advancedConfiguration.screenShareChromeExtension?o.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return b.error(s),r(s)}return"installed-disabled"===t?(s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),b.error(s),r(s)):"permission-denied"===t?(s=new u.OpenViduError(u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),b.error(s),r(s)):(s=new u.OpenViduError(u.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),b.error(s),b.error(t),r(s))}return e.constraints.video=a.video,n(e)})}return void p.getScreenConstraints(function(t,i){if(!(t||i.mandatory&&"screen"===i.mandatory.chromeMediaSource))return e.constraints.video=i,n(e);if("permission-denied"===t||"PermissionDeniedError"===t){var a=new u.OpenViduError(u.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return b.error(a),r(a)}var s=o.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();p.getChromeExtensionStatus(s,function(e){if("installed-disabled"===e){var t=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return b.error(t),r(t)}if("not-installed"===e){var n=new u.OpenViduError(u.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,o.advancedConfiguration.screenShareChromeExtension);return b.error(n),r(n)}})})}var d=new u.OpenViduError(u.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+i.getName()+" "+i.getVersion());return b.error(d),r(d)}this.setVideoSource(e,s)}},e.prototype.setVideoSource=function(e,t){e.constraints.video||(e.constraints.video={}),e.constraints.video.deviceId={exact:t}},e.prototype.disconnectCallback=function(){b.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},e.prototype.reconnectingCallback=function(){b.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},e.prototype.reconnectWebsocketThroughRpcConnectMethod=function(e){var t=this;this.sendRequest("connect",{sessionId:e,reconnect:!0},function(e,n){if(e)if(t.isMasterNodeCrashed())b.warn("Master Node has crashed!");else{b.error(e);var i=function(e,n){b.warn(n),t.session.onLostConnection(e),t.jsonRpcClient.close(4101,"Reconnection fault: "+n)},r=function(){-1===t.life?i("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):t.sendRequest("sessionStatus",{sessionId:t.session.sessionId},function(e,n){null!=e?console.error("Error checking session status",e):t.life===n.life?i("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):i("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})};40007===e.code&&"reconnection error"===e.message?(console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),r()):r()}else t.jsonRpcClient.resetPing(),t.session.onRecoveredConnection()})},e.prototype.reconnectedCallback=function(){if(b.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{b.warn("There was no previous connection when running reconnection callback");var e=new s.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[e]),e.callDefaultBehavior()}else alert("Connection error. Please reload page.")},e.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},e.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof a.Session||(b.warn("Session instance not found"),!1)},e.prototype.isScreenShare=function(e){return"screen"===e||"window"===e||i.isElectron()&&e.startsWith("screen:")},e}();t.OpenVidu=_},10920:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Publisher=void 0;var s,c=n(35996),u=n(97558),l=n(83239),h=n(54638),d=n(15486),f=n(51860),p=n(39040),v=n(63053),m=n(93913),g=p.OpenViduLogger.getInstance(),y=function(e){function t(t,n,i){var r=e.call(this,new u.Stream(i.session?i.session:new c.Session(i),{publisherProperties:n,mediaConstraints:{}}),t)||this;return r.accessAllowed=!1,r.isSubscribedToRemote=!1,r.accessDenied=!1,s=v.PlatformUtils.getInstance(),r.properties=n,r.openvidu=i,r.stream.ee.on("local-stream-destroyed",function(e){r.stream.isLocalStreamPublished=!1;var t=new h.StreamEvent(!0,r,"streamDestroyed",r.stream,e);r.emitEvent("streamDestroyed",[t]),t.callDefaultBehavior()}),r}return r(t,e),t.prototype.publishAudio=function(e){var t=this;this.stream.audioActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(t){t.enabled=e}),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:e,reason:"publishAudio"},function(n,i){n?g.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t.session,t.stream,"audioActive",e,!e,"publishAudio")]),t.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t,t.stream,"audioActive",e,!e,"publishAudio")]),t.session.sendVideoData(t.stream.streamManager))}),this.stream.audioActive=e,g.info("'Publisher' has "+(e?"published":"unpublished")+" its audio stream"))},t.prototype.publishVideo=function(e){var t=this;this.stream.videoActive!==e&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getVideoTracks().forEach(function(t){t.enabled=e}),this.session&&this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:e,reason:"publishVideo"},function(n,i){n?g.error("Error sending 'streamPropertyChanged' event",n):(t.session.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t.session,t.stream,"videoActive",e,!e,"publishVideo")]),t.emitEvent("streamPropertyChanged",[new d.StreamPropertyChangedEvent(t,t.stream,"videoActive",e,!e,"publishVideo")]),t.session.sendVideoData(t.stream.streamManager))}),this.stream.videoActive=e,g.info("'Publisher' has "+(e?"published":"unpublished")+" its video stream"))},t.prototype.subscribeToRemote=function(e){this.isSubscribedToRemote=e=void 0===e||e,this.stream.subscribeToMyRemote(e)},t.prototype.on=function(t,n){var i=this;return e.prototype.on.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new h.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){i.emitEvent("streamCreated",[new h.StreamEvent(!1,i,"streamCreated",i.stream,"")])})),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.once=function(t,n){var i=this;return e.prototype.once.call(this,t,n),"streamCreated"===t&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new h.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){i.emitEvent("streamCreated",[new h.StreamEvent(!1,i,"streamCreated",i.stream,"")])})),"accessAllowed"===t&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===t&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},t.prototype.off=function(t,n){return e.prototype.off.call(this,t,n),this},t.prototype.replaceTrack=function(e){return o(this,void 0,void 0,function(){var t,n,i,r,o=this;return a(this,function(a){switch(a.label){case 0:t=function(){return new Promise(function(t,n){var i,r=o.stream.displayMyRemote()?o.stream.localMediaStreamWhenSubscribedToRemote:o.stream.getMediaStream();return i="video"===e.kind?r.getVideoTracks()[0]:r.getAudioTracks()[0],r.removeTrack(i),i.stop(),r.addTrack(e),"video"===e.kind&&o.stream.isLocalStreamPublished&&(o.openvidu.sendNewVideoDimensionsIfRequired(o,"trackReplaced",50,30),o.session.sendVideoData(o.stream.streamManager,5,!0,5)),t()})},n=function(){return new Promise(function(t,n){var i,r=o.stream.getRTCPeerConnection().getSenders();if("video"===e.kind){if(!(i=r.find(function(e){return!!e.track&&"video"===e.track.kind})))return n(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object"))}else{if("audio"!==e.kind)return n(new Error("Unknown track kind "+e.kind));if(!(i=r.find(function(e){return!!e.track&&"audio"===e.track.kind})))return n(new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object"))}i.replaceTrack(e).then(function(){return t()}).catch(function(e){return n(e)})})},i=e.enabled,"video"===e.kind?e.enabled=this.stream.videoActive:"audio"===e.kind&&(e.enabled=this.stream.audioActive),a.label=1;case 1:return a.trys.push([1,7,,8]),this.stream.isLocalStreamPublished?[4,n()]:[3,4];case 2:return a.sent(),[4,t()];case 3:return[2,a.sent()];case 4:return[4,t()];case 5:return[2,a.sent()];case 6:return[3,8];case 7:throw r=a.sent(),e.enabled=i,r;case 8:return[2]}})})},t.prototype.initialize=function(){var e=this;return new Promise(function(t,n){var i,r={},o={},a=2e3,c=function(t){return e.accessDenied=!0,e.accessAllowed=!1,g.error("Publisher initialization failed. ".concat(t.name,": ").concat(t.message)),n(t)},u=function(n){var i,r;if(e.accessAllowed=!0,e.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&e.properties.audioSource instanceof MediaStreamTrack&&(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(e.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&e.properties.videoSource instanceof MediaStreamTrack&&(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(e.properties.videoSource)),n.getAudioTracks()[0]){var o=null!=e.stream.audioActive?e.stream.audioActive:!!e.stream.outboundStreamOpts.publisherProperties.publishAudio;n.getAudioTracks()[0].enabled=o}n.getVideoTracks()[0]&&(o=null!=e.stream.videoActive?e.stream.videoActive:!!e.stream.outboundStreamOpts.publisherProperties.publishVideo,n.getVideoTracks()[0].enabled=o);for(var a=0,s=n.getAudioTracks();a<s.length;a++)(null===(i=(l=s[a]).contentHint)||void 0===i?void 0:i.length)||(l.contentHint="",g.info("Audio track Content Hint set: '".concat(l.contentHint,"'")));for(var c=0,u=n.getVideoTracks();c<u.length;c++){var l;if(!(null===(r=(l=u[c]).contentHint)||void 0===r?void 0:r.length)){switch(e.stream.typeOfVideo){case m.TypeOfVideo.SCREEN:l.contentHint="detail";break;case m.TypeOfVideo.CUSTOM:g.warn("CUSTOM type video track was provided without Content Hint!"),l.contentHint="motion";break;case m.TypeOfVideo.CAMERA:case m.TypeOfVideo.IPCAM:default:l.contentHint="motion"}g.info("Video track Content Hint set: '".concat(l.contentHint,"'"))}}return e.initializeVideoReference(n),e.stream.displayMyRemote()||e.stream.updateMediaStreamInVideos(),delete e.firstVideoElement,e.stream.isSendVideo()?e.getVideoDimensions(n).then(function(t){e.stream.videoDimensions={width:t.width,height:t.height},e.stream.isSendScreen()&&(e.screenShareResizeInterval=setInterval(function(){var t=n.getVideoTracks()[0].getSettings(),i=t.width,r=t.height;!e.stream.isLocalStreamPublished||i===e.stream.videoDimensions.width&&r===e.stream.videoDimensions.height||e.openvidu.sendVideoDimensionsChangedEvent(e,"screenResized",e.stream.videoDimensions.width,e.stream.videoDimensions.height,i||0,r||0)},650)),e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])}):(e.stream.isLocalStreamReadyToPublish=!0,e.stream.ee.emitEvent("stream-ready-to-publish",[])),t()},l=function(t,n){e.clearPermissionDialogTimer(i,a),e.stream.isSendScreen()&&e.stream.isSendAudio()?(o.audio=n,o.video=!1,i=Date.now(),e.setPermissionDialogTimer(a),navigator.mediaDevices.getUserMedia(o).then(function(n){e.clearPermissionDialogTimer(i,a),t.addTrack(n.getAudioTracks()[0]),u(t)}).catch(function(n){e.clearPermissionDialogTimer(i,a),t.getAudioTracks().forEach(function(e){e.stop()}),t.getVideoTracks().forEach(function(e){e.stop()}),c(e.openvidu.generateAudioDeviceError(n,r))})):u(t)},h=function(t){var n,o;switch(g.error("getMediaError: ".concat(t.toString())),e.clearPermissionDialogTimer(i,a),"Error"===t.name&&(t.name=t.constructor.name),t.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),n=f.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o=t.toString(),c(new f.OpenViduError(n,o))}).catch(function(e){n=f.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o=t.toString(),c(new f.OpenViduError(n,o))});break;case"notallowederror":n=e.stream.isSendScreen()?f.OpenViduErrorName.SCREEN_CAPTURE_DENIED:f.OpenViduErrorName.DEVICE_ACCESS_DENIED,o=t.toString(),c(new f.OpenViduError(n,o));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:r.video}).then(function(e){e.getVideoTracks().forEach(function(e){e.stop()}),"deviceid"===t.constraint.toLowerCase()?(n=f.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,o="Audio input device with deviceId '"+r.audio.deviceId.exact+"' not found"):(n=f.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Audio input device doesn't support the value passed for constraint '"+t.constraint+"'"),c(new f.OpenViduError(n,o))}).catch(function(e){"deviceid"===t.constraint.toLowerCase()?(n=f.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,o="Video input device with deviceId '"+r.video.deviceId.exact+"' not found"):(n=f.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,o="Video input device doesn't support the value passed for constraint '"+t.constraint+"'"),c(new f.OpenViduError(n,o))});break;case"aborterror":case"notreadableerror":n=f.OpenViduErrorName.DEVICE_ALREADY_IN_USE,o=t.toString(),c(new f.OpenViduError(n,o));break;default:n=f.OpenViduErrorName.GENERIC_ERROR,o=t.toString(),c(new f.OpenViduError(n,o))}};e.openvidu.generateMediaConstraints(e.properties).then(function(t){var n,c;if(t.videoTrack&&t.audioTrack||t.audioTrack&&!1===(null===(n=t.constraints)||void 0===n?void 0:n.video)||t.videoTrack&&!1===(null===(c=t.constraints)||void 0===c?void 0:c.audio))u(e.openvidu.addAlreadyProvidedTracks(t,new MediaStream));else{e.stream.setOutboundStreamOptions({mediaConstraints:r=t.constraints,publisherProperties:e.properties});var d=void 0===r.audio||r.audio;o.audio=!e.stream.isSendScreen()&&d,o.video=r.video,i=Date.now(),e.setPermissionDialogTimer(a),e.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!s.isElectron()?navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,d)}).catch(function(e){h(e)}):navigator.mediaDevices.getUserMedia(o).then(function(n){e.openvidu.addAlreadyProvidedTracks(t,n),l(n,d)}).catch(function(e){h(e)})}}).catch(function(e){c(e)})})},t.prototype.getVideoDimensions=function(e){var t=this;return new Promise(function(e,n){var i,r=s.isIonicIos()||s.isIOSWithSafari(),o=function(){var n,o;if("function"==typeof t.stream.getMediaStream().getVideoTracks()[0].getSettings){var a=t.stream.getMediaStream().getVideoTracks()[0].getSettings();n=a.width||t.videoReference.videoWidth,o=a.height||t.videoReference.videoHeight}else g.warn("MediaStreamTrack does not have getSettings method on "+s.getDescription()),n=t.videoReference.videoWidth,o=t.videoReference.videoHeight;return null!=i&&t.videoReference.removeEventListener("loadedmetadata",i),r&&document.body.removeChild(t.videoReference),e({width:n,height:o})};t.videoReference.readyState>=1?o():(t.videoReference.addEventListener("loadedmetadata",i=function(){if(t.videoReference.videoWidth)o();else var e=setInterval(function(){t.videoReference.videoWidth&&(clearInterval(e),o())},40)}),r&&document.body.appendChild(t.videoReference))})},t.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},t.prototype.initializeVideoReference=function(e){this.videoReference=document.createElement("video"),this.videoReference.setAttribute("muted","true"),this.videoReference.style.display="none",(s.isSafariBrowser()||s.isIPhoneOrIPad()&&(s.isChromeMobileBrowser()||s.isEdgeMobileBrowser()||s.isOperaMobileBrowser()||s.isFirefoxMobileBrowser()))&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(e),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=e},t.prototype.setPermissionDialogTimer=function(e){var t=this;this.permissionDialogTimeout=setTimeout(function(){t.emitEvent("accessDialogOpened",[])},e)},t.prototype.clearPermissionDialogTimer=function(e,t){clearTimeout(this.permissionDialogTimeout),Date.now()-e>t&&this.emitEvent("accessDialogClosed",[])},t}(l.StreamManager);t.Publisher=y},35996:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;var s,c=n(38213),u=n(22212),l=n(13591),h=n(62288),d=n(27299),f=n(18820),p=n(95028),v=n(87355),m=n(16464),g=n(54638),y=n(15486),b=n(68206),_=n(75428),k=n(51860),w=n(86634),S=n(39040),C=n(63053),E=n(73601),x=n(33944),O=S.OpenViduLogger.getInstance(),T=function(e){function t(t){var n=e.call(this)||this;return n.streamManagers=[],n.remoteStreamsCreated=new Map,n.remoteConnections=new Map,s=C.PlatformUtils.getInstance(),n.openvidu=t,n}return r(t,e),t.prototype.connect=function(e,t){var n=this;return new Promise(function(i,r){if(n.processToken(e),!n.openvidu.checkSystemRequirements())return r(new k.OpenViduError(k.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+s.getName()+" (version "+s.getVersion()+") for "+s.getFamily()+" is not supported in OpenVidu"));n.options={sessionId:n.sessionId,participantId:e,metadata:t?n.stringClientMetadata(t):""},n.connectAux(e).then(function(){return i()}).catch(function(e){return r(e)})})},t.prototype.disconnect=function(){this.leave(!1,"disconnect")},t.prototype.subscribe=function(e,t,n,i){var r={};r=n&&"function"!=typeof n?{insertMode:void 0!==n.insertMode?"string"==typeof n.insertMode?w.VideoInsertMode[n.insertMode]:r.insertMode:w.VideoInsertMode.APPEND,subscribeToAudio:void 0===n.subscribeToAudio||n.subscribeToAudio,subscribeToVideo:void 0===n.subscribeToVideo||n.subscribeToVideo}:{insertMode:w.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var o=void 0;if(n&&"function"==typeof n?o=n:i&&(o=i),!this.sessionConnected())throw void 0!==o&&o(this.notConnectedError()),this.notConnectedError();O.info("Subscribing to "+e.connection.connectionId),e.subscribe().then(function(){O.info("Subscribed correctly to "+e.connection.connectionId),void 0!==o&&o(void 0)}).catch(function(e){void 0!==o&&o(e)});var a=new l.Subscriber(e,t,r);return a.targetElement&&e.streamManager.createVideoElement(a.targetElement,r.insertMode),a},t.prototype.subscribeAsync=function(e,t,n){var i=this;return new Promise(function(r,o){if(!i.sessionConnected())return o(i.notConnectedError());var a,s=function(e){return e?o(e):r(a)};a=n?i.subscribe(e,t,n,s):i.subscribe(e,t,s)})},t.prototype.unsubscribe=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())return i(t.notConnectedError());var r=e.stream.connection.connectionId;O.info("Unsubscribing from "+r),t.openvidu.sendRequest("unsubscribeFromVideo",{sender:e.stream.connection.connectionId},function(t,o){return t?(O.error("Error unsubscribing from "+r),i(t)):(O.info("Unsubscribed correctly from "+r),e.stream.streamManager.removeAllVideos(),e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),n())})})},t.prototype.publish=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())return i(t.notConnectedError());e.session=t,e.stream.session=t,e.stream.publishedOnce?e.initialize().then(function(){t.connection.addStream(e.stream),e.reestablishStreamPlayingEvent(),e.stream.publish().then(function(){return t.sendVideoData(e,8,!0,5),n()}).catch(function(e){return i(e)})}).catch(function(e){return i(e)}):(t.connection.addStream(e.stream),e.stream.publish().then(function(){return t.sendVideoData(e,8,!0,5),n()}).catch(function(e){return i(e)}))})},t.prototype.unpublish=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())throw t.notConnectedError();var r=e.stream;return r.connection?r.connection!==t.connection?i(new Error("The associated Connection object of this Publisher is not your local Connection.Only moderators can force unpublish on remote Streams via 'forceUnpublish' method")):(O.info("Unpublishing local media ("+r.connection.connectionId+")"),void t.openvidu.sendRequest("unpublishVideo",function(t,o){if(t)return i(t);O.info("Media unpublished correctly"),r.disposeWebRtcPeer(),r.connection.stream==r&&delete r.connection.stream;var a=new g.StreamEvent(!0,e,"streamDestroyed",e.stream,"unpublish");return e.emitEvent("streamDestroyed",[a]),a.callDefaultBehavior(),n()})):i(new Error("The associated Connection object of this Publisher is null"))})},t.prototype.forceDisconnect=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())return i(t.notConnectedError());O.info("Forcing disconnect for connection "+e.connectionId),t.openvidu.sendRequest("forceDisconnect",{connectionId:e.connectionId},function(t,r){return t?(O.error("Error forcing disconnect for Connection "+e.connectionId,t),i(401===t.code?new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):t)):(O.info("Forcing disconnect correctly for Connection "+e.connectionId),n())})})},t.prototype.forceUnpublish=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())return i(t.notConnectedError());O.info("Forcing unpublish for stream "+e.streamId),t.openvidu.sendRequest("forceUnpublish",{streamId:e.streamId},function(t,r){return t?(O.error("Error forcing unpublish for Stream "+e.streamId,t),i(401===t.code?new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):t)):(O.info("Forcing unpublish correctly for Stream "+e.streamId),n())})})},t.prototype.signal=function(e){var t=this;return new Promise(function(n,i){if(!t.sessionConnected())return i(t.notConnectedError());var r={};if(e.to&&e.to.length>0){var o=[];e.to.forEach(function(e){e.connectionId&&o.push(e.connectionId)}),r.to=o}else r.to=[];r.data=e.data?e.data:"";var a=e.type?e.type:"signal";a&&"signal:"!==a.substring(0,7)&&(a="signal:"+a),r.type=a,t.openvidu.sendRequest("sendMessage",{message:JSON.stringify(r)},function(e,t){return e?i(e):n()})})},t.prototype.on=function(t,n){var i,r,o,a;return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by 'Session'",n),"publisherStartSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableHarkSpeakingEvent()}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableHarkStoppedSpeakingEvent()}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},t.prototype.once=function(t,n){var i,r,o,a;return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by 'Session'",n),"publisherStartSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableOnceHarkSpeakingEvent()}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===t&&(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.hasAudio)&&e.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},t.prototype.off=function(t,n){var i,r,o,a,s=this;return e.prototype.offAux.call(this,t,n),"publisherStartSpeaking"===t&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.streamManager)&&(s.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,e.stream.streamManager)||e.stream.disableHarkSpeakingEvent(!1))}),(null===(r=null===(i=this.connection)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===t&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(e){var t;(null===(t=e.stream)||void 0===t?void 0:t.streamManager)&&(s.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,e.stream.streamManager)||e.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(a=null===(o=this.connection)||void 0===o?void 0:o.stream)||void 0===a?void 0:a.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},t.prototype.onParticipantJoined=function(e){var t=this;this.getConnection(e.id,"").then(function(e){O.warn("Connection "+e.connectionId+" already exists in connections list")}).catch(function(n){var i=new c.Connection(t,e);t.remoteConnections.set(e.id,i),t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",i,"")])})},t.prototype.onParticipantLeft=function(e){var t=this;this.getRemoteConnection(e.connectionId,"onParticipantLeft").then(function(n){if(n.stream){var i=n.stream,r=new g.StreamEvent(!0,t,"streamDestroyed",i,e.reason);t.ee.emitEvent("streamDestroyed",[r]),r.callDefaultBehavior(),t.remoteStreamsCreated.delete(i.streamId)}t.remoteConnections.delete(n.connectionId),t.ee.emitEvent("connectionDestroyed",[new d.ConnectionEvent(!1,t,"connectionDestroyed",n,e.reason)])}).catch(function(e){O.error(e)})},t.prototype.onParticipantPublished=function(e){var t,n=this,i=function(e){n.remoteConnections.set(e.connectionId,e),n.remoteStreamsCreated.get(e.stream.streamId)||n.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,n,"streamCreated",e.stream,"")]),n.remoteStreamsCreated.set(e.stream.streamId,!0)};this.getRemoteConnection(e.id,"onParticipantPublished").then(function(n){t=n,e.metadata=n.data,t.remoteOptions=e,t.initRemoteStreams(e.streams),i(t)}).catch(function(r){t=new c.Connection(n,e),i(t)})},t.prototype.onParticipantUnpublished=function(e){var t=this;e.connectionId===this.connection.connectionId?this.stopPublisherStream(e.reason):this.getRemoteConnection(e.connectionId,"onParticipantUnpublished").then(function(n){var i=new g.StreamEvent(!0,t,"streamDestroyed",n.stream,e.reason);t.ee.emitEvent("streamDestroyed",[i]),i.callDefaultBehavior();var r=n.stream.streamId;t.remoteStreamsCreated.delete(r),n.removeStream(r)}).catch(function(e){O.error(e)})},t.prototype.onParticipantEvicted=function(e){e.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,e.reason)},t.prototype.onNewMessage=function(e){var t=this;O.info("New signal: "+JSON.stringify(e));var n=e.type?e.type.replace(/^(signal:)/,""):void 0;e.from?this.getConnection(e.from,"Connection '"+e.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(i){t.ee.emitEvent("signal",[new m.SignalEvent(t,n,e.data,i)]),e.type&&"signal"!==e.type&&t.ee.emitEvent(e.type,[new m.SignalEvent(t,n,e.data,i)])}).catch(function(e){O.error(e)}):(this.ee.emitEvent("signal",[new m.SignalEvent(this,n,e.data,void 0)]),e.type&&"signal"!==e.type&&this.ee.emitEvent(e.type,[new m.SignalEvent(this,n,e.data,void 0)]))},t.prototype.onStreamPropertyChanged=function(e){var t=this,n=function(n){if(n.stream&&n.stream.streamId===e.streamId){var i=n.stream,r=void 0;switch(e.property){case"audioActive":r=i.audioActive,e.newValue="true"===e.newValue,i.audioActive=e.newValue;break;case"videoActive":r=i.videoActive,e.newValue="true"===e.newValue,i.videoActive=e.newValue;break;case"videoDimensions":r=i.videoDimensions,e.newValue=JSON.parse(JSON.parse(e.newValue)),i.videoDimensions=e.newValue;break;case"filter":r=i.filter,e.newValue=Object.keys(e.newValue).length>0?e.newValue:void 0,void 0!==e.newValue?(i.filter=new u.Filter(e.newValue.type,e.newValue.options),i.filter.stream=i,e.newValue.lastExecMethod&&(i.filter.lastExecMethod=e.newValue.lastExecMethod)):delete i.filter,e.newValue=i.filter}t.ee.emitEvent("streamPropertyChanged",[new y.StreamPropertyChangedEvent(t,i,e.property,e.newValue,r,e.reason)]),i.streamManager&&i.streamManager.emitEvent("streamPropertyChanged",[new y.StreamPropertyChangedEvent(i.streamManager,i,e.property,e.newValue,r,e.reason)])}else O.error("No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event")};e.connectionId===this.connection.connectionId?n(this.connection):this.getRemoteConnection(e.connectionId,"onStreamPropertyChanged").then(function(e){n(e)}).catch(function(e){O.error(e)})},t.prototype.onConnectionPropertyChanged=function(e){var t;switch(e.property){case"role":t=this.connection.role.slice(),this.connection.role=e.newValue,this.connection.localOptions.role=e.newValue;break;case"record":t=this.connection.record,e.newValue="true"===e.newValue,this.connection.record=e.newValue,this.connection.localOptions.record=e.newValue}this.ee.emitEvent("connectionPropertyChanged",[new b.ConnectionPropertyChangedEvent(this,this.connection,e.property,e.newValue,t)])},t.prototype.onNetworkQualityLevelChangedChanged=function(e){var t=this;e.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new _.NetworkQualityLevelChangedEvent(this,e.newValue,e.oldValue,this.connection)]):this.getConnection(e.connectionId,"Connection not found for connectionId "+e.connectionId).then(function(n){t.ee.emitEvent("networkQualityLevelChanged",[new _.NetworkQualityLevelChangedEvent(t,e.newValue,e.oldValue,n)])}).catch(function(e){O.error(e)})},t.prototype.recvIceCandidate=function(e){var t=new RTCIceCandidate({candidate:e.candidate,sdpMLineIndex:e.sdpMLineIndex,sdpMid:e.sdpMid});this.getConnection(e.senderConnectionId,"Connection not found for connectionId "+e.senderConnectionId+" owning endpoint "+e.endpointName+". Ice candidate will be ignored: "+t).then(function(n){var i=n.stream;i.getWebRtcPeer().addIceCandidate(t).catch(function(t){O.error("Error adding candidate for "+i.streamId+" stream of endpoint "+e.endpointName+": "+t)})}).catch(function(e){O.error(e)})},t.prototype.onSessionClosed=function(e){O.info("Session closed: "+JSON.stringify(e));var t=e.sessionId;void 0!==t?this.ee.emitEvent("session-closed",[{session:t}]):O.warn("Session undefined on session closed",e)},t.prototype.onLostConnection=function(e){O.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,e)},t.prototype.onRecoveredConnection=function(){O.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},t.prototype.onMediaError=function(e){O.error("Media error: "+JSON.stringify(e));var t=e.error;t?this.ee.emitEvent("error-media",[{error:t}]):O.warn("Received undefined media error:",e)},t.prototype.onRecordingStarted=function(e){this.ee.emitEvent("recordingStarted",[new p.RecordingEvent(this,"recordingStarted",e.id,e.name)])},t.prototype.onRecordingStopped=function(e){this.ee.emitEvent("recordingStopped",[new p.RecordingEvent(this,"recordingStopped",e.id,e.name,e.reason)])},t.prototype.onFilterEventDispatched=function(e){var t=this,n=e.connectionId;this.getConnection(n,"No connection found for connectionId "+n).then(function(n){var i;O.info("Filter event dispatched");var r=n.stream;null===(i=r.filter.handlers.get(e.eventType))||void 0===i||i.call(t,new f.FilterEvent(r.filter,e.eventType,e.data))})},t.prototype.onForciblyReconnectSubscriber=function(e){var t=this;return new Promise(function(n,i){t.getRemoteConnection(e.connectionId,"onForciblyReconnectSubscriber").then(function(r){if(!r.stream||r.stream.streamId!==e.streamId){var o="No stream with streamId '"+e.streamId+"' found for connection '"+e.connectionId+"' on 'streamPropertyChanged' event";return O.error(o),i(o)}var a=r.stream;if(a.setupReconnectionEventEmitter(n,i)){if(null!=a.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return a.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=e,i("Ongoing forced subscriber reconnection");a.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=e;var s=function(){var e=a.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete a.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,t.onForciblyReconnectSubscriber(e)};return a.reconnectionEventEmitter.once("success",function(){s()}),void a.reconnectionEventEmitter.once("error",function(){s()})}a.completeWebRtcPeerReceive(!0,!0,e.sdpOffer).then(function(){return a.finalResolveForSubscription(!0,n)}).catch(function(t){return a.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(e.streamId,": ").concat(t.toString()),i)})}).catch(function(e){return O.error(e),i(e)})})},t.prototype.reconnectBrokenStreams=function(){O.info("Re-establishing media connections...");var e=!1;this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(O.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),e=!0),this.remoteConnections.forEach(function(t){t.stream&&t.stream.streamIceConnectionStateBroken()&&(O.warn("Re-establishing Subscriber "+t.stream.streamId),t.stream.initWebRtcPeerReceive(!0),e=!0)}),e||O.info("There were no media streams in need of a reconnection")},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.leave=function(e,t){var n=this;if(O.info("Leaving Session (forced="+(e=!!e)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||e?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(e,t){e&&O.error("leaveRoom error: ".concat(JSON.stringify(e))),n.openvidu.closeWs()}),this.stopPublisherStream(t),!this.connection.disposed){var i=new v.SessionDisconnectedEvent(this,t);this.ee.emitEvent("sessionDisconnected",[i]),i.callDefaultBehavior()}}else O.warn("You were not connected to the session "+this.sessionId);O.flush()},t.prototype.initializeParams=function(e){return{token:e||"",session:this.sessionId,platform:s.getDescription()?s.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},t.prototype.sendVideoData=function(e,t,n,i){var r,c,u=this;if(void 0===t&&(t=1),void 0===n&&(n=!1),void 0===i&&(i=1),s.isChromeBrowser()||s.isChromeMobileBrowser()||s.isOperaBrowser()||s.isOperaMobileBrowser()||s.isEdgeBrowser()||s.isEdgeMobileBrowser()||s.isElectron()||s.isSafariBrowser()&&!s.isIonicIos()||s.isAndroidBrowser()||s.isSamsungBrowser()||s.isIonicAndroid()||s.isIOSWithSafari()){var l=function(){return o(u,void 0,void 0,function(){var t,n,i;return a(this,function(r){switch(r.label){case 0:return"connected"!==(t=e.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,t.getStats()];case 1:n=r.sent(),i=[],n.forEach(function(e){"frameWidth"in e&&"frameHeight"in e&&0===i.length&&i.push(e)}),i.length>0&&this.openvidu.sendRequest("videoData",{height:i[0].frameHeight,width:i[0].frameWidth,videoActive:null!=e.stream.videoActive&&e.stream.videoActive,audioActive:null!=e.stream.audioActive&&e.stream.audioActive},function(e,t){e&&O.error("Error sending 'videoData' event",e)}),r.label=2;case 2:return[2]}})})};if(n){var h=1;this.videoDataInterval=setInterval(function(){h<i?(h++,l()):clearInterval(u.videoDataInterval)},1e3*t)}else this.videoDataTimeout=setTimeout(l,1e3*t)}else s.isFirefoxBrowser()||s.isFirefoxMobileBrowser()||s.isIonicIos()||s.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(r=e.stream.videoDimensions)||void 0===r?void 0:r.height)||0,width:(null===(c=e.stream.videoDimensions)||void 0===c?void 0:c.width)||0,videoActive:null!=e.stream.videoActive&&e.stream.videoActive,audioActive:null!=e.stream.audioActive&&e.stream.audioActive},function(e,t){e&&O.error("Error sending 'videoData' event",e)}):O.error("Browser "+s.getName()+" (version "+s.getVersion()+") for "+s.getFamily()+" is not supported in OpenVidu for Network Quality")},t.prototype.sessionConnected=function(){return null!=this.connection},t.prototype.notConnectedError=function(){return new k.OpenViduError(k.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},t.prototype.anySpeechEventListenerEnabled=function(e,t,n){var i=this.ee.getListeners(e);if(t&&(i=i.filter(function(e){return e.once})),i.length>0)return!0;var r=0;if(n){var o=n.ee.getListeners(e);t&&(o=o.filter(function(e){return e.once})),r=o.length}return r>0},t.prototype.connectAux=function(e){var t=this;return new Promise(function(n,i){t.openvidu.startWs(function(r){if(r)return i(r);var o=t.initializeParams(e);t.openvidu.sendRequest("joinRoom",o,function(r,o){if(r)return i(r);t.processJoinRoomResponse(o),S.OpenViduLogger.configureJSNLog(t.openvidu,e),t.connection=new c.Connection(t,o);var a={connections:new Array,streams:new Array};return o.value.forEach(function(e){var n=new c.Connection(t,e);t.remoteConnections.set(n.connectionId,n),a.connections.push(n),n.stream&&(t.remoteStreamsCreated.set(n.stream.streamId,!0),a.streams.push(n.stream))}),t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",t.connection,"")]),a.connections.forEach(function(e){t.ee.emitEvent("connectionCreated",[new d.ConnectionEvent(!1,t,"connectionCreated",e,"")])}),a.streams.forEach(function(e){t.ee.emitEvent("streamCreated",[new g.StreamEvent(!1,t,"streamCreated",e,"")])}),n()})})})},t.prototype.stopPublisherStream=function(e){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[e]))},t.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},t.prototype.stringClientMetadata=function(e){return"string"!=typeof e?JSON.stringify(e):e},t.prototype.getConnection=function(e,t){var n=this;return new Promise(function(i,r){var o=n.remoteConnections.get(e);return o?i(o):n.connection.connectionId===e?i(n.connection):r(new k.OpenViduError(k.OpenViduErrorName.GENERIC_ERROR,t))})},t.prototype.getRemoteConnection=function(e,t){var n=this;return new Promise(function(i,r){var o=n.remoteConnections.get(e);if(o)return i(o);var a="Remote connection "+e+" unknown when '"+t+"'. Existing remote connections: "+JSON.stringify(n.remoteConnections.keys());return r(new k.OpenViduError(k.OpenViduErrorName.GENERIC_ERROR,a))})},t.prototype.processToken=function(e){var t=e.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(t){var n={protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]},i=e.split("?"),r=decodeURI(i[1]).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){return e[t[0]]=t[1],e},{});this.sessionId=r.sessionId;var o=r.secret,a=r.recorder,s=r.webrtcStatsInterval,c=r.sendBrowserLogs;o&&(this.openvidu.secret=o),a&&(this.openvidu.recorder=!0),s&&(this.openvidu.webrtcStatsInterval=+s),c&&(this.openvidu.sendBrowserLogs=c),this.openvidu.isPro=!!s&&!!c,this.openvidu.wsUri="wss://"+n.host+"/openvidu",this.openvidu.httpUri="https://"+n.host}else O.error('Token "'+e+'" is not valid')},t.prototype.processJoinRoomResponse=function(e){if(this.sessionId=e.session,null!=e.customIceServers&&e.customIceServers.length>0){this.openvidu.iceServers=[];for(var t=0,n=e.customIceServers;t<n.length;t++){var i=n[t],r={urls:[i.url]};O.log("STUN/TURN server IP: "+i.url),null!=i.username&&null!=i.credential&&(r.username=i.username,r.credential=i.credential,O.log("TURN credentials ["+i.username+":"+i.credential+"]")),this.openvidu.iceServers.push(r)}}else null!=e.coturnIp&&null!=e.coturnPort&&null!=e.turnUsername&&null!=e.turnCredential&&(this.openvidu.iceServers=[{urls:["turn:"+e.coturnIp+":"+e.coturnPort],username:e.turnUsername,credential:e.turnCredential}],O.log("STUN/TURN server IP: "+e.coturnIp),O.log("TURN temp credentials ["+e.turnUsername+":"+e.turnCredential+"]"));this.openvidu.role=e.role,this.openvidu.finalUserId=e.finalUserId,this.openvidu.mediaServer=e.mediaServer,this.openvidu.videoSimulcast=e.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},O.info("openvidu-server version: "+e.version),null!=e.life&&(this.openvidu.life=e.life);var o=x(e.version)-x(this.openvidu.libraryVersion);E(e.version)!==E(this.openvidu.libraryVersion)||0!=o&&1!=o?O.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(e.version,") versions are incompatible. ")+"Errors are likely to occur. openvidu-browser SDK is only compatible with the same version or the immediately following minor version of an OpenVidu deployment"):1==o&&O.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(e.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(E(e.version),".").concat(x(e.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server"))},t}(h.EventDispatcher);t.Session=T},97558:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Stream=void 0;var o,a=n(22212),s=n(13591),c=n(85245),u=n(63230),l=n(90250),h=n(15646),d=n(39402),f=n(15486),p=n(51860),v=n(93913),m=n(39040),g=n(63053),y=n(92812),b=n(59901),_=m.OpenViduLogger.getInstance(),k=function(){function e(e,t){var n=this;this.isSubscribeToRemote=!1,this.isLocalStreamReadyToPublish=!1,this.isLocalStreamPublished=!1,this.publishedOnce=!1,this.harkSpeakingEnabled=!1,this.harkSpeakingEnabledOnce=!1,this.harkStoppedSpeakingEnabled=!1,this.harkStoppedSpeakingEnabledOnce=!1,this.harkVolumeChangeEnabled=!1,this.harkVolumeChangeEnabledOnce=!1,this.ee=new b,o=g.PlatformUtils.getInstance(),this.session=e,t.hasOwnProperty("id")?(this.inboundStreamOpts=t,this.streamId=this.inboundStreamOpts.id,this.creationTime=this.inboundStreamOpts.createdAt,this.hasAudio=this.inboundStreamOpts.hasAudio,this.hasVideo=this.inboundStreamOpts.hasVideo,this.hasAudio&&(this.audioActive=this.inboundStreamOpts.audioActive),this.hasVideo&&(this.videoActive=this.inboundStreamOpts.videoActive,this.typeOfVideo=this.inboundStreamOpts.typeOfVideo?this.inboundStreamOpts.typeOfVideo:void 0,this.frameRate=-1===this.inboundStreamOpts.frameRate?void 0:this.inboundStreamOpts.frameRate,this.videoDimensions=this.inboundStreamOpts.videoDimensions),this.inboundStreamOpts.filter&&Object.keys(this.inboundStreamOpts.filter).length>0&&(this.inboundStreamOpts.filter.lastExecMethod&&0===Object.keys(this.inboundStreamOpts.filter.lastExecMethod).length&&delete this.inboundStreamOpts.filter.lastExecMethod,this.filter=this.inboundStreamOpts.filter)):(this.outboundStreamOpts=t,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?v.TypeOfVideo.CUSTOM:this.isSendScreen()?v.TypeOfVideo.SCREEN:v.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var e;n.streamManager.updateMediaStream(n.mediaStream),_.debug("Video srcObject ["+(null===(e=n.mediaStream)||void 0===e?void 0:e.id)+"] updated in stream ["+n.streamId+"]")})}return e.prototype.reconnect=function(){return this.reconnectStream("API")},e.prototype.applyFilter=function(e,t){var n=this;return new Promise(function(i,r){if(!n.session.sessionConnected())return r(n.session.notConnectedError());_.info("Applying filter to stream "+n.streamId);var o=t=null!=t?t:{};"string"!=typeof o&&(o=JSON.stringify(o)),n.session.openvidu.sendRequest("applyFilter",{streamId:n.streamId,type:e,options:o},function(o,s){if(o)return _.error("Error applying filter for Stream "+n.streamId,o),r(401===o.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):o);_.info("Filter successfully applied on Stream "+n.streamId);var c=n.filter;return n.filter=new a.Filter(e,t),n.filter.stream=n,n.session.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(n.session,n,"filter",n.filter,c,"applyFilter")]),n.streamManager.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(n.streamManager,n,"filter",n.filter,c,"applyFilter")]),i(n.filter)})})},e.prototype.removeFilter=function(){var e=this;return new Promise(function(t,n){if(!e.session.sessionConnected())return n(e.session.notConnectedError());_.info("Removing filter of stream "+e.streamId),e.session.openvidu.sendRequest("removeFilter",{streamId:e.streamId},function(i,r){if(i)return _.error("Error removing filter for Stream "+e.streamId,i),n(401===i.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):i);_.info("Filter successfully removed from Stream "+e.streamId);var o=e.filter;return delete e.filter,e.session.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(e.session,e,"filter",e.filter,o,"applyFilter")]),e.streamManager.emitEvent("streamPropertyChanged",[new f.StreamPropertyChangedEvent(e.streamManager,e,"filter",e.filter,o,"applyFilter")]),t()})})},e.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},e.prototype.getMediaStream=function(){return this.mediaStream},e.prototype.setMediaStream=function(e){this.mediaStream=e},e.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},e.prototype.getWebRtcPeer=function(){return this.webRtcPeer},e.prototype.subscribeToMyRemote=function(e){this.isSubscribeToRemote=e},e.prototype.setOutboundStreamOptions=function(e){this.outboundStreamOpts=e},e.prototype.subscribe=function(){var e=this;return new Promise(function(t,n){e.initWebRtcPeerReceive(!1).then(function(){return t()}).catch(function(e){return n(e)})})},e.prototype.publish=function(){var e=this;return new Promise(function(t,n){e.isLocalStreamReadyToPublish?e.initWebRtcPeerSend(!1).then(function(){return t()}).catch(function(e){return n(e)}):e.ee.once("stream-ready-to-publish",function(){e.publish().then(function(){return t()}).catch(function(e){return n(e)})})})},e.prototype.disposeWebRtcPeer=function(){var e;this.webRtcPeer&&(this.webRtcPeer.dispose(),e=this.webRtcPeer.getId()),this.stopWebRtcStats(),_.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+e+"] from 'Stream' with id ["+this.streamId+"] is now closed")},e.prototype.disposeMediaStream=function(){this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(e){e.stop()}),this.mediaStream.getVideoTracks().forEach(function(e){e.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(e){e.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(e){e.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),_.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed")},e.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},e.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},e.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},e.prototype.isSendScreen=function(){var e="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return o.isElectron()&&(e="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&e},e.prototype.enableHarkSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){e.session.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStartSpeaking",e.connection,e.streamId)]),e.harkSpeakingEnabledOnce=!1}))},e.prototype.enableOnceHarkSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){e.harkSpeakingEnabledOnce&&(e.session.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStartSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStartSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStartSpeaking",e.connection,e.streamId)])),e.disableHarkSpeakingEvent(!0)}))},e.prototype.disableHarkSpeakingEvent=function(e){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,e){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)}},e.prototype.enableHarkStoppedSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){e.session.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStopSpeaking",e.connection,e.streamId)]),e.harkStoppedSpeakingEnabledOnce=!1}))},e.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var e=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){e.harkStoppedSpeakingEnabledOnce&&(e.session.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.session,"publisherStopSpeaking",e.connection,e.streamId)]),e.streamManager.emitEvent("publisherStopSpeaking",[new h.PublisherSpeakingEvent(e.streamManager,"publisherStopSpeaking",e.connection,e.streamId)])),e.disableHarkStoppedSpeakingEvent(!0)}))},e.prototype.disableHarkStoppedSpeakingEvent=function(e){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,e){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)}},e.prototype.enableHarkVolumeChangeEvent=function(e){var t=this;this.setHarkListenerIfNotExists()?this.harkVolumeChangeEnabled&&!e||(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])})):this.harkVolumeChangeEnabled=!0},e.prototype.enableOnceHarkVolumeChangeEvent=function(e){var t=this;this.setHarkListenerIfNotExists()?this.harkVolumeChangeEnabledOnce&&!e||(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(e){var n={newValue:e,oldValue:t.speechEvent.oldVolumeValue};t.speechEvent.oldVolumeValue=e,t.disableHarkVolumeChangeEvent(!0),t.streamManager.emitEvent("streamAudioVolumeChange",[new d.StreamManagerEvent(t.streamManager,"streamAudioVolumeChange",n)])})):this.harkVolumeChangeEnabledOnce=!0},e.prototype.disableHarkVolumeChangeEvent=function(e){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,e){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)}},e.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},e.prototype.getSelectedIceCandidate=function(){var e=this;return new Promise(function(t,n){e.webRtcStats.getSelectedIceCandidateInfo().then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},e.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},e.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return _.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var e=this.getRTCPeerConnection().iceConnectionState;return"connected"!==e&&"completed"!==e},e.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var e=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};e.interval="number"==typeof e.interval?e.interval:100,e.threshold="number"==typeof e.threshold?e.threshold:-50,this.speechEvent=y(this.mediaStream,e)}return!0}return!1},e.prototype.setupReconnectionEventEmitter=function(e,t){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new b,!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 e()}),this.reconnectionEventEmitter.once("error",function(e){return t(e)}),!0)},e.prototype.initWebRtcPeerSend=function(e){var t=this;return new Promise(function(n,i){var r;if(e){if(t.setupReconnectionEventEmitter(n,i))return}else t.initHarkEvents();var o=function(n){var r;return e&&(null===(r=t.reconnectionEventEmitter)||void 0===r||r.emitEvent("error",[n]),delete t.reconnectionEventEmitter),i(n)},a={mediaConstraints:{audio:t.hasAudio,video:t.hasVideo},simulcast:null!==(r=t.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==r?r:t.session.openvidu.videoSimulcast,onIceCandidate:t.connection.sendIceCandidate.bind(t.connection),onIceConnectionStateException:function(e,n,i){t.session.emitEvent("exception",[new l.ExceptionEvent(t.session,e,t,n,i)])},iceServers:t.getIceServersConf(),mediaStream:t.mediaStream,mediaServer:t.session.openvidu.mediaServer,typeOfVideo:t.typeOfVideo?v.TypeOfVideo[t.typeOfVideo]:void 0};"mediasoup"!==t.session.openvidu.mediaServer&&(a.simulcast=!1),e&&t.disposeWebRtcPeer(),t.webRtcPeer=t.displayMyRemote()?new c.WebRtcPeerSendrecv(a):new c.WebRtcPeerSendonly(a),t.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+t.connection.connectionId),t.webRtcPeer.createOffer().then(function(i){t.webRtcPeer.processLocalOffer(i).then(function(){!function(i){_.debug("Sending SDP offer to publish as "+t.streamId,i);var r,a=e?"reconnectStream":"publishVideo";if(e)r={stream:t.streamId,sdpString:i};else{var s=void 0;t.isSendVideo()&&(s="undefined"!=typeof MediaStreamTrack&&t.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?v.TypeOfVideo.CUSTOM:t.isSendScreen()?v.TypeOfVideo.SCREEN:v.TypeOfVideo.CAMERA),r={doLoopback:t.displayMyRemote()||!1,hasAudio:t.isSendAudio(),hasVideo:t.isSendVideo(),audioActive:t.audioActive,videoActive:t.videoActive,typeOfVideo:s,frameRate:t.frameRate?t.frameRate:-1,videoDimensions:JSON.stringify(t.videoDimensions),filter:t.outboundStreamOpts.publisherProperties.filter,sdpOffer:i}}t.session.openvidu.sendRequest(a,r,function(i,r){i?o(401===i.code?new p.OpenViduError(p.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(i)):t.webRtcPeer.processRemoteAnswer(r.sdpAnswer).then(function(){t.streamId=r.id,t.creationTime=r.createdAt,t.isLocalStreamPublished=!0,t.publishedOnce=!0,t.displayMyRemote()&&(t.localMediaStreamWhenSubscribedToRemote=t.mediaStream,t.remotePeerSuccessfullyEstablished(e)),t.ee.emitEvent(e?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),t.initWebRtcStats(),_.info("'Publisher' ("+t.streamId+") successfully "+(e?"reconnected":"published")+" to session"),function(){var i;e&&(null===(i=t.reconnectionEventEmitter)||void 0===i||i.emitEvent("success"),delete t.reconnectionEventEmitter),n()}()}).catch(function(e){o(e)})})}(i.sdp)}).catch(function(e){o(new Error("(publish) SDP process local offer error: "+JSON.stringify(e)))})}).catch(function(e){o(new Error("(publish) SDP create offer error: "+JSON.stringify(e)))})})},e.prototype.finalResolveForSubscription=function(e,t){var n;return _.info("'Subscriber' ("+this.streamId+") successfully "+(e?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(e),this.initWebRtcStats(),e&&(null===(n=this.reconnectionEventEmitter)||void 0===n||n.emitEvent("success"),delete this.reconnectionEventEmitter),t()},e.prototype.finalRejectForSubscription=function(e,t,n){var i;return _.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(e?"reconnect":"subscribe")+": "+t.toString()),e&&(null===(i=this.reconnectionEventEmitter)||void 0===i||i.emitEvent("error",[t]),delete this.reconnectionEventEmitter),n(t)},e.prototype.initWebRtcPeerReceive=function(e){var t=this;return new Promise(function(n,i){e&&t.setupReconnectionEventEmitter(n,i)||("mediasoup"===t.session.openvidu.mediaServer?t.initWebRtcPeerReceiveFromServer(e).then(function(){return t.finalResolveForSubscription(e,n)}).catch(function(n){return t.finalRejectForSubscription(e,n,i)}):t.initWebRtcPeerReceiveFromClient(e).then(function(){return t.finalResolveForSubscription(e,n)}).catch(function(n){return t.finalRejectForSubscription(e,n,i)}))})},e.prototype.initWebRtcPeerReceiveFromClient=function(e){var t=this;return new Promise(function(n,i){t.completeWebRtcPeerReceive(e,!1).then(function(e){t.webRtcPeer.processRemoteAnswer(e.sdpAnswer).then(function(){return n()}).catch(function(e){return i(e)})}).catch(function(e){return i(e)})})},e.prototype.initWebRtcPeerReceiveFromServer=function(e){var t=this;return new Promise(function(n,i){t.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:t.streamId,reconnect:e},function(r,o){if(r)return i(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(r)));t.completeWebRtcPeerReceive(e,!1,o.sdpOffer).then(function(){return n()}).catch(function(e){return i(e)})})})},e.prototype.completeWebRtcPeerReceive=function(e,t,n){var i=this;return new Promise(function(r,o){_.debug("'Session.subscribe(Stream)' called");var a=function(a){_.debug("Sending local SDP ".concat(n?"answer":"offer"," to subscribe to ").concat(i.streamId),a);var s=e?"reconnectStream":"receiveVideoFrom",c={};c[e?"stream":"sender"]=i.streamId,n?c[e?"sdpString":"sdpAnswer"]=a:c.sdpOffer=a,e&&(c.forciblyReconnect=t),i.session.openvidu.sendRequest(s,c,function(e,t){return e?o(new Error("Error on "+s+" : "+JSON.stringify(e))):r(t)})},s={mediaConstraints:{audio:i.hasAudio,video:i.hasVideo},simulcast:!1,onIceCandidate:i.connection.sendIceCandidate.bind(i.connection),onIceConnectionStateException:function(e,t,n){i.session.emitEvent("exception",[new l.ExceptionEvent(i.session,e,i,t,n)])},iceServers:i.getIceServersConf(),mediaServer:i.session.openvidu.mediaServer,typeOfVideo:i.typeOfVideo?v.TypeOfVideo[i.typeOfVideo]:void 0};e&&i.disposeWebRtcPeer(),i.webRtcPeer=new c.WebRtcPeerRecvonly(s),i.webRtcPeer.addIceConnectionStateChangeListener(i.streamId),n?i.webRtcPeer.processRemoteOffer(n).then(function(){i.webRtcPeer.createAnswer().then(function(e){i.webRtcPeer.processLocalAnswer(e).then(function(){a(e.sdp)}).catch(function(e){return o(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(e)))})}).catch(function(e){return o(new Error("(subscribe) SDP create answer error: "+JSON.stringify(e)))})}).catch(function(e){return o(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(e)))}):i.webRtcPeer.createOffer().then(function(e){i.webRtcPeer.processLocalOffer(e).then(function(){a(e.sdp)}).catch(function(e){return o(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(e)))})}).catch(function(e){return o(new Error("(subscribe) SDP create offer error: "+JSON.stringify(e)))})})},e.prototype.remotePeerSuccessfullyEstablished=function(e){var t;e&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var n=0,i=this.webRtcPeer.pc.getReceivers();n<i.length;n++)(t=i[n]).track&&this.mediaStream.addTrack(t.track);if(_.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof s.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var r=e?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=r}this.mediaStream.getVideoTracks()[0]&&(r=e?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=r)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},e.prototype.initHarkEvents=function(){this.mediaStream.getAudioTracks()[0]&&(this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!0,this.streamManager)&&this.enableOnceHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.streamManager)&&this.enableHarkSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!0,this.streamManager)&&this.enableOnceHarkStoppedSpeakingEvent(),this.session.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.streamManager)&&this.enableHarkStoppedSpeakingEvent(),this.harkVolumeChangeEnabledOnce&&this.enableOnceHarkVolumeChangeEvent(!0),this.harkVolumeChangeEnabled&&this.enableHarkVolumeChangeEvent(!0))},e.prototype.onIceConnectionStateExceptionHandler=function(e,t,n){switch(e){case l.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new l.ExceptionEvent(this.session,e,this,t,n)])},e.prototype.onIceConnectionFailed=function(){_.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(l.ExceptionEventName.ICE_CONNECTION_FAILED)},e.prototype.onIceConnectionDisconnected=function(){var e=this;_.log("[ICE_CONNECTION_DISCONNECTED] Handling ICE_CONNECTION_DISCONNECTED event. Waiting for ICE to be restored and reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") if not possible"));var t=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(t).then(function(n){switch(n){case"failed":_.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(e.streamId," (").concat(e.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":_.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(e.streamId," (").concat(e.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(n));break;case"closed":case"checking":case"new":case"disconnected":_.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(e.streamId," (").concat(e.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(t," ms: ").concat(n)),e.reconnectStreamAndLogResultingIceConnectionState(l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},e.prototype.reconnectStreamAndLogResultingIceConnectionState=function(e){return i(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(e)];case 1:switch(t=i.sent()){case"connected":case"completed":_.log("[".concat(e,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(e,". Current ICE connection state: ").concat(t));break;default:_.error("[".concat(e,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(e,". Current ICE connection state: ").concat(t))}return[3,3];case 2:return n=i.sent(),_.error("[".concat(e,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(e,": ").concat(n)),[3,3];case 3:return[2]}})})},e.prototype.reconnectStreamAndReturnIceConnectionState=function(e){return i(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:_.log("[".concat(e,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(e)),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.reconnectStream(e)];case 2:return n.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return t=n.sent(),_.warn("[".concat(e,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(t)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},e.prototype.reconnectStream=function(e){return i(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return[4,this.isWebsocketConnected(e,3e3)];case 1:if(n.sent())return _.log("[".concat(e,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") and the websocket is opened")),this.isLocal()?[2,this.initWebRtcPeerSend(!0)]:[2,this.initWebRtcPeerReceive(!0)];throw t="[".concat(e,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),_.error(t),Error(t)}})})},e.prototype.isWebsocketConnected=function(e,t){var n=this;return new Promise(function(i,r){var o=n.session.openvidu.getWsReadyState();if(1!==o)return console.warn("[".concat(e,"] Websocket readyState is ").concat(o)),i(!1);var a=setTimeout(function(){return console.warn("[".concat(e,"] Websocket timeout of ").concat(t,"ms")),i(!1)},t);n.session.openvidu.sendRequest("echo",{},function(t,n){return clearTimeout(a),t?(console.warn("[".concat(e,"] Websocket 'echo' returned error: ").concat(t)),i(!1)):i(!0)})})},e.prototype.awaitWebRtcPeerConnectionState=function(e){return i(this,void 0,void 0,function(){var t,n,i,o;return r(this,function(r){switch(r.label){case 0:t=this.getRTCPeerConnection().iceConnectionState,n=150,i=Math.ceil(e/n),o=0,r.label=1;case 1:return o<i?"connected"===(t=this.getRTCPeerConnection().iceConnectionState)||"completed"===t?[3,4]:[4,new Promise(function(e){return setTimeout(e,n)})]:[3,4];case 2:r.sent(),r.label=3;case 3:return o++,[3,1];case 4:return[2,t]}})})},e.prototype.initWebRtcStats=function(){this.webRtcStats=new u.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},e.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},e.prototype.getIceServersConf=function(){return this.session.openvidu.advancedConfiguration.iceServers?"freeice"===this.session.openvidu.advancedConfiguration.iceServers?void 0:this.session.openvidu.advancedConfiguration.iceServers:this.session.openvidu.iceServers?this.session.openvidu.iceServers:void 0},e.prototype.gatherStatsForPeer=function(){var e=this;return new Promise(function(t,n){e.isLocal()?e.getRTCPeerConnection().getSenders().forEach(function(t){return t.getStats().then(function(t){t.forEach(function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"outbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesEncoded=t.framesEncoded),n.packetsSent=t.packetsSent,n.bytesSent=t.bytesSent),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableOutgoingBitrate=t.availableOutgoingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),_.log(n)}})})}):e.getRTCPeerConnection().getReceivers().forEach(function(t){return t.getStats().then(function(t){t.forEach(function(t){if(e.isReportWanted(t)){var n={};n.type=t.type,n.timestamp=t.timestamp,n.id=t.id,"inbound-rtp"===t.type&&(n.ssrc=t.ssrc,n.firCount=t.firCount,n.pliCount=t.pliCount,n.nackCount=t.nackCount,n.qpSum=t.qpSum,n.mediaType=t.kind?t.kind:t.mediaType?t.mediaType:-1!==t.id.indexOf("VideoStream")?"video":"audio","video"===n.mediaType&&(n.framesDecoded=t.framesDecoded),n.packetsReceived=t.packetsReceived,n.packetsLost=t.packetsLost,n.jitter=t.jitter,n.bytesReceived=t.bytesReceived),"candidate-pair"===t.type&&void 0!==t.totalRoundTripTime&&(n.availableIncomingBitrate=t.availableIncomingBitrate,n.rtt=t.currentRoundTripTime,n.averageRtt=t.totalRoundTripTime/t.responsesReceived),_.log(n)}})})})})},e.prototype.isReportWanted=function(e){return"inbound-rtp"===e.type&&!this.isLocal()||"outbound-rtp"===e.type&&this.isLocal()||"candidate-pair"===e.type&&e.nominated&&e.bytesSent>0},e}();t.Stream=k},83239:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamManager=void 0;var o,a=n(62288),s=n(39402),c=n(976),u=n(90250),l=n(86634),h=n(39040),d=n(63053),f=h.OpenViduLogger.getInstance(),p=function(e){function t(t,n){var i=e.call(this)||this;if(i.videos=[],i.lazyLaunchVideoElementCreatedEvent=!1,o=d.PlatformUtils.getInstance(),i.stream=t,i.stream.streamManager=i,i.remote=!i.stream.isLocal(),n){var r=void 0;"string"==typeof n?r=document.getElementById(n):n instanceof HTMLElement&&(r=n),r&&(i.firstVideoElement={targetElement:r,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(o.isSafariBrowser()||o.isIPhoneOrIPad()&&(o.isChromeMobileBrowser()||o.isEdgeMobileBrowser()||o.isOperaMobileBrowser()||o.isFirefoxMobileBrowser()))&&i.firstVideoElement.video.setAttribute("playsinline","true"),i.targetElement=r,i.element=r)}return i.canPlayListener=function(){i.deactivateStreamPlayingEventExceptionTimeout(),i.ee.emitEvent("streamPlaying",[new s.StreamManagerEvent(i,"streamPlaying",void 0)])},i}return r(t,e),t.prototype.on=function(t,n){return e.prototype.onAux.call(this,t,"Event '"+t+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new c.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===t&&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 s.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===t&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===t&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===t&&this.stream.enableHarkVolumeChangeEvent(!1)),this},t.prototype.once=function(t,n){return e.prototype.onceAux.call(this,t,"Event '"+t+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",n),"videoElementCreated"===t&&this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new c.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===t&&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 s.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===t&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===t&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===t&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},t.prototype.off=function(t,n){return e.prototype.offAux.call(this,t,n),"publisherStartSpeaking"===t&&0===this.ee.getListeners(t).length+this.stream.session.ee.getListeners(t).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===t&&0===this.ee.getListeners(t).length+this.stream.session.ee.getListeners(t).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===t&&0===this.ee.getListeners(t).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},t.prototype.addVideoElement=function(e){this.initializeVideoProperties(e),!this.remote&&this.stream.displayMyRemote()&&e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream());for(var t=0,n=this.videos;t<n.length;t++)if(n[t].video===e)return 0;for(var i=1,r=0,o=this.stream.session.streamManagers;r<o.length;r++)if(o[r].disassociateVideo(e)){i=-1;break}return this.stream.session.streamManagers.forEach(function(t){t.disassociateVideo(e)}),this.pushNewStreamManagerVideo({video:e,id:e.id,canplayListenerAdded:!1}),f.info("New video element associated to ",this),i},t.prototype.createVideoElement=function(e,t){var n;if("string"==typeof e){if(!(n=document.getElementById(e)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e)}else{if(!(e instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+e);n=e}var i=this.createVideo();this.initializeVideoProperties(i);var r=t||l.VideoInsertMode.APPEND;switch(r){case l.VideoInsertMode.AFTER:n.parentNode.insertBefore(i,n.nextSibling);break;case l.VideoInsertMode.APPEND:n.appendChild(i);break;case l.VideoInsertMode.BEFORE:n.parentNode.insertBefore(i,n);break;case l.VideoInsertMode.PREPEND:n.insertBefore(i,n.childNodes[0]);break;case l.VideoInsertMode.REPLACE:n.parentNode.replaceChild(i,n);break;default:r=l.VideoInsertMode.APPEND,n.appendChild(i)}var o={targetElement:n,video:i,insertMode:r,id:i.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(o),this.ee.emitEvent("videoElementCreated",[new c.VideoElementEvent(o.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,i},t.prototype.updatePublisherSpeakingEventsOptions=function(e){var t=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},n="number"==typeof e.interval?e.interval:"number"==typeof t.interval?t.interval:100,i="number"==typeof e.threshold?e.threshold:"number"==typeof t.threshold?t.threshold:-50;this.stream.harkOptions={interval:n,threshold:i},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(n),this.stream.speechEvent.setThreshold(i))},t.prototype.initializeVideoProperties=function(e){!this.remote&&this.stream.displayMyRemote()||e.srcObject!==this.stream.getMediaStream()&&(e.srcObject=this.stream.getMediaStream()),e.autoplay=!0,e.controls=!1,(o.isSafariBrowser()||o.isIPhoneOrIPad()&&(o.isChromeMobileBrowser()||o.isEdgeMobileBrowser()||o.isOperaMobileBrowser()||o.isFirefoxMobileBrowser()))&&e.setAttribute("playsinline","true"),e.id||(e.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&this.targetElement&&(this.id=e.id)),this.remote||this.stream.displayMyRemote()||(e.muted=!0,"rotateY(180deg)"!==e.style.transform||this.stream.outboundStreamOpts.publisherProperties.mirror?this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(e):this.removeMirrorVideo(e))},t.prototype.removeAllVideos=function(){for(var e=this,t=this.stream.session.streamManagers.length-1;t>=0;--t)this.stream.session.streamManagers[t]===this&&this.stream.session.streamManagers.splice(t,1);this.videos.forEach(function(t){t.video&&t.video.removeEventListener&&t.video.removeEventListener("canplay",e.canPlayListener),t.canplayListenerAdded=!1,t.targetElement&&(t.video.parentNode.removeChild(t.video),e.ee.emitEvent("videoElementDestroyed",[new c.VideoElementEvent(t.video,e,"videoElementDestroyed")])),e.removeSrcObject(t),e.videos.filter(function(e){return!e.targetElement})})},t.prototype.disassociateVideo=function(e){for(var t=!1,n=0;n<this.videos.length;n++)if(this.videos[n].video===e){this.videos[n].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(n,1),t=!0,f.info("Video element disassociated from ",this);break}return t},t.prototype.addPlayEventToFirstVideo=function(){this.videos[0]&&this.videos[0].video&&!this.videos[0].canplayListenerAdded&&(this.activateStreamPlayingEventExceptionTimeout(),this.videos[0].video.addEventListener("canplay",this.canPlayListener),this.videos[0].canplayListenerAdded=!0)},t.prototype.updateMediaStream=function(e){this.videos.forEach(function(t){if(t.video.srcObject=e,o.isIonicIos()){var n=t.video;t.video.parentElement.replaceChild(n,t.video),t.video=n}})},t.prototype.emitEvent=function(e,t){this.ee.emitEvent(e,t)},t.prototype.createVideo=function(){return document.createElement("video")},t.prototype.removeSrcObject=function(e){e.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},t.prototype.pushNewStreamManagerVideo=function(e){this.videos.push(e),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},t.prototype.mirrorVideo=function(e){o.isIonicIos()||(e.style.transform="rotateY(180deg)",e.style.webkitTransform="rotateY(180deg)")},t.prototype.removeMirrorVideo=function(e){e.style.transform="unset",e.style.webkitTransform="unset"},t.prototype.activateStreamPlayingEventExceptionTimeout=function(){var e=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var t=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var n="StreamManager of Stream "+e.stream.streamId+" ("+(e.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+t+" ms";f.warn(n),e.stream.session.emitEvent("exception",[new u.ExceptionEvent(e.stream.session,u.ExceptionEventName.NO_STREAM_PLAYING_EVENT,e,n)]),delete e.streamPlayingEventExceptionTimeout},t)}},t.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},t}(a.EventDispatcher);t.StreamManager=p},13591:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Subscriber=void 0;var o=n(83239),a=n(39040).OpenViduLogger.getInstance(),s=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r.element=r.targetElement,r.stream=t,r.properties=i,r}return r(t,e),t.prototype.subscribeToAudio=function(e){return this.stream.getMediaStream().getAudioTracks().forEach(function(t){t.enabled=e}),this.stream.audioActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its audio stream"),this},t.prototype.subscribeToVideo=function(e){return this.stream.getMediaStream().getVideoTracks().forEach(function(t){t.enabled=e}),this.stream.videoActive=e,a.info("'Subscriber' has "+(e?"subscribed to":"unsubscribed from")+" its video stream"),this},t}(o.StreamManager);t.Subscriber=s},34222:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LocalRecorderState=void 0,(n=t.LocalRecorderState||(t.LocalRecorderState={})).READY="READY",n.RECORDING="RECORDING",n.PAUSED="PAUSED",n.FINISHED="FINISHED"},51860:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduError=t.OpenViduErrorName=void 0,(n=t.OpenViduErrorName||(t.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",n.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",n.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",n.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",n.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",n.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",n.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",n.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",n.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",n.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",n.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",n.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",n.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",n.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",n.GENERIC_ERROR="GENERIC_ERROR",t.OpenViduError=function(e,t){this.name=e,this.message=t}},93913:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TypeOfVideo=void 0,(n=t.TypeOfVideo||(t.TypeOfVideo={})).CAMERA="CAMERA",n.SCREEN="SCREEN",n.CUSTOM="CUSTOM",n.IPCAM="IPCAM"},86634:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoInsertMode=void 0,(n=t.VideoInsertMode||(t.VideoInsertMode={})).AFTER="AFTER",n.APPEND="APPEND",n.BEFORE="BEFORE",n.PREPEND="PREPEND",n.REPLACE="REPLACE"},27299:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.connection=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.ConnectionEvent=o},68206:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,"connectionPropertyChanged")||this;return a.connection=n,a.changedProperty=i,a.newValue=r,a.oldValue=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.ConnectionPropertyChangedEvent=o},28866:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var n=function(){function e(e,t,n){this.hasBeenPrevented=!1,this.cancelable=e,this.target=t,this.type=n}return e.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},e.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},e}();t.Event=n},90250:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionEvent=t.ExceptionEventName=void 0;var o,a=n(28866);(o=t.ExceptionEventName||(t.ExceptionEventName={})).ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",o.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",o.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",o.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT";var s=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,"exception")||this;return a.name=n,a.origin=i,a.message=r,a.data=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(a.Event);t.ExceptionEvent=s},18820:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FilterEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.data=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.FilterEvent=o},75428:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkQualityLevelChangedEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"networkQualityLevelChanged")||this;return o.newValue=n,o.oldValue=i,o.connection=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.NetworkQualityLevelChangedEvent=o},15646:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PublisherSpeakingEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,n)||this;return o.type=n,o.connection=i,o.streamId=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.PublisherSpeakingEvent=o},95028:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RecordingEvent=void 0;var o=function(e){function t(t,n,i,r,o){var a=e.call(this,!1,t,n)||this;return a.id=i,r!==i&&(a.name=r),a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.RecordingEvent=o},87355:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SessionDisconnectedEvent=void 0;var o=n(28866),a=n(39040).OpenViduLogger.getInstance(),s=function(e){function t(t,n){var i=e.call(this,!0,t,"sessionDisconnected")||this;return i.reason=n,i}return r(t,e),t.prototype.callDefaultBehavior=function(){a.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var e=this.target;e.remoteConnections.forEach(function(t){var n,i,r,o,a,s,c,u,l=t.connectionId;if(null===(n=e.remoteConnections.get(l))||void 0===n?void 0:n.stream){null===(i=e.remoteConnections.get(l))||void 0===i||i.stream.disposeWebRtcPeer(),null===(r=e.remoteConnections.get(l))||void 0===r||r.stream.disposeMediaStream(),(null===(o=e.remoteConnections.get(l))||void 0===o?void 0:o.stream.streamManager)&&(null===(a=e.remoteConnections.get(l))||void 0===a||a.stream.streamManager.removeAllVideos());var h=null===(c=null===(s=e.remoteConnections.get(l))||void 0===s?void 0:s.stream)||void 0===c?void 0:c.streamId;h&&e.remoteStreamsCreated.delete(h),null===(u=e.remoteConnections.get(l))||void 0===u||u.dispose()}e.remoteConnections.delete(l)})},t}(o.Event);t.SessionDisconnectedEvent=s},16464:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SignalEvent=void 0;var o=function(e){function t(t,n,i,r){var o=e.call(this,!1,t,"signal")||this;return n&&(o.type="signal:"+n),o.data=i,o.from=r,o}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.SignalEvent=o},54638:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamEvent=void 0;var o=n(28866),a=n(10920),s=n(35996),c=n(39040).OpenViduLogger.getInstance(),u=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.stream=r,a.reason=o,a}return r(t,e),t.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof s.Session)c.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof a.Publisher){c.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var e=this.target.openvidu.publishers,t=0;t<e.length;t++)if(e[t]===this.target){e.splice(t,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var n=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(n&&n.remoteOptions){var i=n.remoteOptions.streams;for(t=i.length-1;t>=0;--t)i[t].id===this.stream.streamId&&i.splice(t,1)}}},t}(o.Event);t.StreamEvent=u},39402:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamManagerEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,t,n)||this;return r.value=i,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.StreamManagerEvent=o},15486:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StreamPropertyChangedEvent=void 0;var o=function(e){function t(t,n,i,r,o,a){var s=e.call(this,!1,t,"streamPropertyChanged")||this;return s.stream=n,s.changedProperty=i,s.newValue=r,s.oldValue=o,s.reason=a,s}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.StreamPropertyChangedEvent=o},976:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.VideoElementEvent=void 0;var o=function(e){function t(t,n,i){var r=e.call(this,!1,n,i)||this;return r.element=t,r}return r(t,e),t.prototype.callDefaultBehavior=function(){},t}(n(28866).Event);t.VideoElementEvent=o},7480:function(e){function t(){var e={};this.forEach=function(t){for(var n in e){var i=e[n];for(var r in i)t(i[r])}},this.get=function(t,n){var i=e[n];if(null!=i)return i[t]},this.remove=function(t,n){var i=e[n];if(null!=i){for(var r in delete i[t],i)return!1;delete e[n]}},this.set=function(t,n,i){if(null==t)return this.remove(n,i);var r=e[i];null==r&&(e[i]=r={}),r[n]=t}}t.prototype.pop=function(e,t){var n=this.get(e,t);if(null!=n)return this.remove(e,t),n},e.exports=t},99454:function(e,t,n){var i=n(75894);t.JsonRpcClient=i},75894:function(e,t,n){var i=n(31111),r=n(65368),o=n(39040).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var a="RECONNECTING",s="CONNECTED",c="DISCONNECTED",u=o.getInstance();e.exports=function(e){var t,n=this,o=e.ws,l=-1,h=0,d=!0,f=!1,p=c,v=o.onreconnecting,m=o.onreconnected,g=o.onconnected,y=o.onerror;e.rpc.pull=function(e,t){t.reply(null,"push")},o.onreconnecting=function(){u.debug("--------- ONRECONNECTING -----------"),p!==a?(C(),p=a,v&&v()):u.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},o.onreconnected=function(){u.debug("--------- ONRECONNECTED -----------"),p!==s?(p=s,k(),m&&m()):u.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},o.onconnected=function(){u.debug("--------- ONCONNECTED -----------"),p!==s?(p=s,d=!0,S(),g&&g()):u.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},o.onerror=function(e){u.debug("--------- ONERROR -----------"),p=c,C(),y&&y(e)};var b=new r(o);u.debug("Connecting websocket to URI: "+o.uri);var _=new i(i.packers.JsonRPC,{request_timeout:e.rpc.requestTimeout,ping_request_timeout:e.rpc.heartbeatRequestTimeout},b,function(t){u.debug("Received request: "+JSON.stringify(t));try{var n=e.rpc[t.method];void 0===n?u.error("Method "+t.method+" not registered in client"):n(t.params,t)}catch(i){u.error("Exception processing request: "+JSON.stringify(t)),u.error(i)}});function k(){u.debug("notReconnectIfNumLessThan = "+h+" (old="+l+")"),l=h}function w(){if(d){var t=null;0!=h&&h!=l||(t={interval:e.heartbeat||5e3}),h++,n.send("ping",t,(i=h,function(e,t){e&&(u.debug("Error in ping request #"+i+" ("+e.message+")"),i>l&&(d=!1,k(),u.debug("Server did not respond to ping message #"+i+". Reconnecting... "),b.reconnectWs()))}))}else u.debug("Trying to send ping, but ping is not enabled");var i}function S(){f||(u.debug("Starting ping (if configured)"),f=!0,null!=e.heartbeat&&(t=setInterval(w,e.heartbeat),w()))}function C(){clearInterval(t),f=!1,d=!1,h=-1,_.cancel()}this.send=function(e,t,n){var i=Date.now();_.encode(e,t,function(r,o){if(r){try{u.error("ERROR:"+r.message+" in Request: method:"+e+" params:"+JSON.stringify(t)+" request:"+r.request),r.data&&u.error("ERROR DATA:"+JSON.stringify(r.data))}catch(a){}r.requestTime=i}n&&(null!=o&&"pong"!==o.value&&u.debug("Response: "+JSON.stringify(o)),n(r,o))})},this.close=function(e,n){u.debug("Closing with code: "+e+" because: "+n),null!=t&&(u.debug("Clearing ping interval"),clearInterval(t)),f=!1,d=!1,b.close(e,n)},this.reconnect=function(){b.reconnectWs()},this.resetPing=function(){d=!0,h=0,S()},this.getReadyState=function(){return b.getReadyState()}}},19315:function(e,t,n){var i=n(65368);t.WebSocketWithReconnection=i},65368:function(e,t,n){"use strict";var i=n(39040).OpenViduLogger.getInstance();e.exports=function(e){var t,n=!1,r=e.uri,o=!1,a=new WebSocket(r);a.onopen=function(){i.debug("WebSocket connected to "+r),e.onconnected&&e.onconnected()},a.onerror=function(t){i.error("Could not connect to "+r+" (invoking onerror if defined)",t),e.onerror&&e.onerror(t)};var s=function(){3===a.readyState?n?i.debug("Connection closed by user"):e.ismasternodecrashed()?i.error("Master Node has crashed. Stopping reconnection process"):(i.debug("Connection closed unexpectedly. Reconnecting..."),c(2e3,1)):i.debug("Close callback from previous websocket. Ignoring it")};function c(n,u){if(i.debug("reconnect (attempt #"+u+", max="+n+")"),1===u){if(o)return void i.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");o=!0,e.onreconnecting&&e.onreconnecting()}!function(n,u){var l,h;i.debug("Reconnection attempt #"+u),a.close(4104,"Connection closed for reconnection"),l=r,(h=new URLSearchParams(new URL(l).search)).has("reconnect")||(l=Array.from(h).length>0?l+"&reconnect=true":l+"?reconnect=true"),r=l,(a=new WebSocket(r)).onopen=function(){i.debug("Reconnected to "+r+" after "+u+" attempts..."),o=!1,t(),e.onreconnected()&&e.onreconnected(),a.onclose=s},a.onerror=function(t){i.warn("Reconnection error: ",t),u===n?e.ondisconnect&&e.ondisconnect():setTimeout(function(){c(n,u+1)},3e3)}}(n,u)}a.onclose=s,this.close=function(e,t){n=!0,a.close(e,t)},this.reconnectWs=function(){i.debug("reconnectWs"),c(2e3,1)},this.send=function(e){a.send(e)},this.addEventListener=function(e,n){(t=function(){a.addEventListener(e,n)})()},this.getReadyState=function(){return a.readyState}}},31111:function(e,t,n){var i=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(p){i=!0}Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,r.prototype=new i,r});var r=n(55068).EventEmitter,o=n(5457),a=n(35983),s=n(7480),c=5e3;function u(e){if(e){if(e instanceof Function)return{send:e};if(e.send instanceof Function)return e;if(e.postMessage instanceof Function)return e.send=e.postMessage,e;if(e.write instanceof Function)return e.send=e.write,e;if(void 0===e.onmessage&&!(e.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function l(e,t){i?(this.method=e,this.params=t):(Object.defineProperty(this,"method",{value:e,enumerable:!0}),Object.defineProperty(this,"params",{value:t,enumerable:!0}))}function h(e,t,n,a){var h=this;if(!e)throw new SyntaxError("Packer is not defined");if(!e.pack||!e.unpack)throw new SyntaxError("Packer is invalid");var d=function(e){if(!e)return{};for(var t in e){var n=e[t];"string"==typeof n&&(e[t]={response:n})}return e}(e.responseMethods);if(t instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after onRequest");a=t,n=void 0,t=void 0}if(t&&t.send instanceof Function){if(n&&!(n instanceof Function))throw new SyntaxError("Only a function can be after transport");a=n,n=t,t=void 0}if(n instanceof Function){if(null!=a)throw new SyntaxError("There can't be parameters after onRequest");a=n,n=void 0}if(n&&n.send instanceof Function&&a&&!(a instanceof Function))throw new SyntaxError("Only a function can be after transport");t=t||{},r.call(this),a&&this.on("request",a),i?this.peerID=t.peerID:Object.defineProperty(this,"peerID",{value:t.peerID});var f=t.max_retries||0;function v(e){h.decode(e.data||e)}this.getTransport=function(){return n},this.setTransport=function(e){n&&(n.removeEventListener?n.removeEventListener("message",v):n.removeListener&&n.removeListener("data",v)),e&&(e.addEventListener?e.addEventListener("message",v):e.addListener&&e.addListener("data",v)),n=u(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(n);var m=t.request_timeout||c,g=t.ping_request_timeout||m,y=t.response_timeout||c,b=t.duplicates_timeout||c,_=0,k=new s,w=new s,S=new s,C={};function E(e,t){var n=setTimeout(function(){S.remove(e,t)},b);S.set(n,e,t)}function x(t,n,r,o,a){l.call(this,t,n),this.getTransport=function(){return a},this.setTransport=function(e){a=u(e)},i||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var s=w.get(r,o);a||h.getTransport()||(i?this.duplicated=Boolean(s):Object.defineProperty(this,"duplicated",{value:Boolean(s)}));var c=d[t];this.pack=e.pack.bind(e,this,r),this.reply=function(t,n,i){if(t instanceof Function||t&&t.send instanceof Function){if(null!=n)throw new SyntaxError("There can't be parameters after callback");i=t,n=null,t=void 0}else if(n instanceof Function||n&&n.send instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");i=n,n=null}var a;return i=u(i),s&&clearTimeout(s.timeout),null!=o&&(t&&(t.dest=o),n&&(n.dest=o)),t||null!=n?(null!=h.peerID&&(t?t.from=h.peerID:n.from=h.peerID),a=e.pack(a=c?null==c.error&&t?{error:t}:{method:t?c.error:c.response,params:t||n}:{error:t,result:n},r)):a=s?s.message:e.pack({result:null},r),function(e,t,n){var i={message:e,timeout:setTimeout(function(){w.remove(t,n)},y)};w.set(i,t,n)}(a,r,o),(i=i||this.getTransport()||h.getTransport())?i.send(a):a}}function O(e){var t=C[e];if(t){delete C[e];var n=k.pop(t.id,t.dest);n&&(clearTimeout(n.timeout),E(t.id,t.dest))}}o(x,l),this.cancel=function(e){if(e)return O(e);for(var e in C)O(e)},this.close=function(){var e=this.getTransport();e&&e.close&&e.close(4003,"Cancel request"),this.cancel(),S.forEach(clearTimeout),w.forEach(function(e){clearTimeout(e.timeout)})},this.encode=function(t,n,i,r,o){if(n instanceof Function){if(null!=i)throw new SyntaxError("There can't be parameters after callback");o=n,r=void 0,i=void 0,n=void 0}else if(i instanceof Function){if(null!=r)throw new SyntaxError("There can't be parameters after callback");o=i,r=void 0,i=void 0}else if(r instanceof Function){if(null!=o)throw new SyntaxError("There can't be parameters after callback");o=r,r=void 0}null!=h.peerID&&((n=n||{}).from=h.peerID),null!=i&&((n=n||{}).dest=i);var a={method:t,params:n};if(o){var s=function(e,t){h.cancel(a),o(e,t)},c=function(e){return b.timeout=setTimeout(p,("ping"===t?g:m)*Math.pow(2,y++)),C[a]={id:v,dest:i},k.set(b,v,i),(e=e||w||h.getTransport())?e.send(a):a},l=function(e){e=u(e),console.warn(y+" retry for request message:",a);var t=S.pop(v,i);return clearTimeout(t),c(e)},p=function(){if(y<f)return l(r);var e=new Error("Request has timed out");e.request=a,e.retry=l,s(e)},v=_++,y=0,b={message:a=e.pack(a,v),callback:s,responseMethods:d[t]||{}},w=u(r);return c(r)}return a=e.pack(a),(r=r||this.getTransport())?r.send(a):a},this.decode=function(t,n){if(!t)throw new TypeError("Message is not defined");try{t=e.unpack(t)}catch(p){return console.debug(p,t)}var i=t.id,r=t.ack,o=t.method,a=t.params||{},s=a.from,c=a.dest;if(null==h.peerID||s!=h.peerID){if(null==i&&null==r){var d=new l(o,a);if(h.emit("request",d))return;return d}if(o){if(null==c||c==h.peerID){if(g=k.get(r,s)){var f=g.responseMethods;return o==f.error?_(g,a):o==f.response?_(g,null,a):b()}if(y=S.get(r,s))return C(y)}return b()}var v=t.error,m=t.result;if(!(v&&v.dest&&v.dest!=h.peerID||m&&m.dest&&m.dest!=h.peerID)){var g,y;if(!(g=k.get(r,s)))return(y=S.get(r,s))?C(y):console.warn("No callback was defined for this message",t);_(g,v,m)}}function b(){if(n=u(n)||h.getTransport()){var e=w.get(i,s);if(e)return n.send(e.message)}var t=new x(o,a,null!=i?i:r,s,n);if(!h.emit("request",t))return t}function _(e,t,n){e.callback(t,n)}function C(e){console.warn("Response already processed",t),clearTimeout(e),E(r,s)}}}o(h,r),h.RpcNotification=l,e.exports=h;var d=n(99454),f=n(19315);(h.clients=d).transports=f,h.packers=a},29510:function(e,t){t.pack=function(e,t){var n={jsonrpc:"2.0"};if(e.method)n.method=e.method,e.params&&(n.params=e.params),null!=t&&(n.id=t);else if(null!=t){if(e.error){if(void 0!==e.result)throw new TypeError("Both result and error are defined");n.error=e.error}else{if(void 0===e.result)throw new TypeError("No result or error is defined");n.result=e.result}n.id=t}return JSON.stringify(n)},t.unpack=function(e){var t=e;("string"==typeof e||e instanceof String)&&(t=JSON.parse(e));var n=t.jsonrpc;if("2.0"!==n)throw new TypeError("Invalid JsonRPC version '"+n+"': "+e);if(null==t.method){if(null==t.id)throw new TypeError("Invalid message: "+e);var i=void 0!==t.result,r=void 0!==t.error;if(i&&r)throw new TypeError("Both result and error are defined: "+e);if(!i&&!r)throw new TypeError("No result or error is defined: "+e);t.ack=t.id,delete t.id}return t}},3999:function(e,t){t.pack=function(e){throw new TypeError("Not yet implemented")},t.unpack=function(e){throw new TypeError("Not yet implemented")}},35983:function(e,t,n){var i=n(29510),r=n(3999);t.JsonRPC=i,t.XmlRPC=r},96568:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=void 0,t.ConsoleLogger=function(e){this.logger=e,this.log=window.console.log,this.info=window.console.info,this.debug=window.console.debug,this.warn=window.console.warn,this.error=window.console.error}},39040:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduLogger=void 0;var i=n(95784),r=n(96568),o=n(85214),a=function(){function e(){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 r.ConsoleLogger(window.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return e.configureJSNLog=function(e,t){var n=this;try{if(window.LOG_JSNLOG_RESULTS||this.instance&&e.isPro&&this.instance.isOpenViduBrowserLogsDebugActive(e)&&this.instance.canConfigureJSNLog(e,this.instance)){e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var r=e.finalUserId,a=e.session.sessionId;this.instance.currentAppender=i.JL.createAjaxAppender("appender-".concat(r,"-").concat(a)),this.instance.currentAppender.setOptions({beforeSend:function(e){var i=e.onreadystatechange;e.onreadystatechange=function(){n.isInvalidResponse(e)&&(Object.defineProperty(e,"readyState",{value:4}),Object.defineProperty(e,"status",{value:200}),n.instance.disableLogger()),i()},e.setRequestHeader("Authorization","Basic "+btoa("".concat(r,"%/%").concat(a)+":"+t)),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.setRequestHeader("OV-Final-User-Id",r),e.setRequestHeader("OV-Session-Id",a),e.setRequestHeader("OV-Token",t)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),i.JL.setOptions({defaultAjaxUrl:e.httpUri+this.instance.JSNLOG_URL,serialize:function(e){var t,i=JSON.stringify(e,(t=new WeakSet,function(e,n){if("object"==typeof n&&null!=n){if(t.has(n)||HTMLElement&&n instanceof HTMLElement)return;t.add(n)}return n}));return i.length>n.instance.MAX_LENGTH_STRING_JSON&&(i="".concat(i.substring(0,n.instance.MAX_LENGTH_STRING_JSON),"...")),window.LOG_JSNLOG_RESULTS&&console.log(i),i},enabled:!0}),(0,i.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=a,this.instance.info("JSNLog configured.")}}catch(s){console.error("Error configuring JSNLog: "),console.error(s),this.instance.disableLogger()}},e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.isInvalidResponse=function(e){return 401==e.status||403==e.status||404==e.status||0==e.status},e.prototype.canConfigureJSNLog=function(e,t){return e.session.sessionId!=t.loggingSessionId},e.prototype.isOpenViduBrowserLogsDebugActive=function(e){return e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug||e.sendBrowserLogs===o.OpenViduLoggerConfiguration.debug_app},e.prototype.getConsoleWithJSNLog=function(){return e=this,{log:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.log.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&(0,i.JL)().info(arguments)},info:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.info.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&(0,i.JL)().info(arguments)},debug:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.debug.apply(e.defaultConsoleLogger.logger,arguments)},warn:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.warn.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&(0,i.JL)().warn(arguments)},error:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.defaultConsoleLogger.error.apply(e.defaultConsoleLogger.logger,arguments),e.isJSNLogSetup&&(0,i.JL)().error(arguments)}};var e},e.prototype.replaceWindowConsole=function(){window.console=this.defaultConsoleLogger.logger,window.console.log=this.getConsoleWithJSNLog().log,window.console.info=this.getConsoleWithJSNLog().info,window.console.debug=this.getConsoleWithJSNLog().debug,window.console.warn=this.getConsoleWithJSNLog().warn,window.console.error=this.getConsoleWithJSNLog().error},e.prototype.disableLogger=function(){i.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,window.console=this.defaultConsoleLogger.logger,window.console.log=this.defaultConsoleLogger.log,window.console.info=this.defaultConsoleLogger.info,window.console.debug=this.defaultConsoleLogger.debug,window.console.warn=this.defaultConsoleLogger.warn,window.console.error=this.defaultConsoleLogger.error},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,i.JL)().info(arguments)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,i.JL)().info(arguments)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,i.JL)().warn(arguments)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,i.JL)().error(arguments)},e.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},e.prototype.enableProdMode=function(){this.isProdMode=!0},e}();t.OpenViduLogger=a},85214:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenViduLoggerConfiguration=void 0,(n=t.OpenViduLoggerConfiguration||(t.OpenViduLoggerConfiguration={})).disabled="disabled",n.debug="debug",n.debug_app="debug_app"},77228:function(e,t){function n(e,t,n){var i={audio:!1,video:{mandatory:{chromeMediaSource:e?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return n&&(i.audio={mandatory:{chromeMediaSource:e?"screen":"desktop"},optional:[]}),t&&(i.video.mandatory.chromeMediaSourceId=t,i.audio&&i.audio.mandatory&&(i.audio.mandatory.chromeMediaSourceId=t)),i}function i(e){r?r.isLoaded?r.contentWindow.postMessage(e?e.forEach?{captureCustomSourceId:e}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){i(e)},100):o(function(){i(e)})}var r;function o(e){r?e():((r=document.createElement("iframe")).onload=function(){r.isLoaded=!0,e()},r.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",r.style.display="none",(document.body||document.documentElement).appendChild(r))}function a(){r?r.isLoaded?r.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(a,100):o(a)}window.getScreenId=function(e,t,r){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?t(null,"firefox",{video:{mozMediaSource:e,mediaSource:e}}):(window.addEventListener("message",function e(i){i.data&&(i.data.chromeMediaSourceId&&("PermissionDeniedError"===i.data.chromeMediaSourceId?t("permission-denied"):t(null,i.data.chromeMediaSourceId,n(null,i.data.chromeMediaSourceId,i.data.canRequestAudioTrack)),window.removeEventListener("message",e)),i.data.chromeExtensionStatus&&(t(i.data.chromeExtensionStatus,null,n(i.data.chromeExtensionStatus)),window.removeEventListener("message",e)))}),r?setTimeout(function(){i(r)},100):setTimeout(i,100)):t({video:!0})},window.getScreenConstraints=function(e){o(function(){getScreenId(function(t,n,i){i||(i={video:!0}),e(t,i.video)})})},window.getChromeExtensionStatus=function(e){navigator.mozGetUserMedia?e("installed-enabled"):(window.addEventListener("message",function t(n){n.data&&n.data.chromeExtensionStatus&&(e(n.data.chromeExtensionStatus),window.removeEventListener("message",t))}),setTimeout(a,100))},t.getScreenId=window.getScreenId},23543:function(e,t){var n,i,r="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var o=void 0!==window.InstallTrigger;window.opera||navigator.userAgent.indexOf(" OPR/"),window,window.addEventListener("message",function(e){e.origin==window.location.origin&&function(e){if("PermissionDeniedError"==e){if(i)return i("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==e&&(r="desktop"),e.sourceId&&i&&i(n=e.sourceId,!0===e.canRequestAudioTrack)}(e.data)})}function a(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("get-sourceId","*")}function s(e,t){if(n="",o)return e(null,{mozMediaSource:"window",mediaSource:"window"});var s={mandatory:{chromeMediaSource:r,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=r||n?("desktop"==r&&(s.mandatory.chromeMediaSourceId=n),e(null,s)):t?function(e){if(!e)throw'"callback" parameter is mandatory.';if(n)return e(n);i=e,window.postMessage("audio-plus-tab","*")}(function(t,n){s.mandatory.chromeMediaSourceId=t,n&&(s.canRequestAudioTrack=!0),e("PermissionDeniedError"==t?t:null,s)}):a(function(t){s.mandatory.chromeMediaSourceId=t,e("PermissionDeniedError"==t?t:null,s)})}t.getScreenConstraints=s,t.getScreenConstraintsWithAudio=function(e){s(e,!0)},t.isChromeExtensionAvailable=function(e){if(e){if("desktop"==r)return e(!0);window.postMessage("are-you-there","*"),setTimeout(function(){e("screen"!=r)},2e3)}},t.getChromeExtensionStatus=function(e,t){if(o)return t("not-chrome");2!=arguments.length&&(t=e,e="lfcgfepafnobdloecchnfaclibenjold");var n=document.createElement("img");n.src="chrome-extension://"+e+"/icon.png",n.onload=function(){r="screen",window.postMessage("are-you-there","*"),setTimeout(function(){t("screen"==r?"installed-disabled":"installed-enabled")},2e3)},n.onerror=function(){t("not-installed")}},t.getSourceId=a},63053:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformUtils=void 0;var i=n(53896),r=function(){function e(){}return e.getInstance=function(){return this.instance||(this.instance=new e),e.instance},e.prototype.isChromeBrowser=function(){return"Chrome"===i.name},e.prototype.isSafariBrowser=function(){return"Safari"===i.name},e.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===i.name},e.prototype.isFirefoxBrowser=function(){return"Firefox"===i.name},e.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===i.name||"Firefox for iOS"===i.name},e.prototype.isOperaBrowser=function(){return"Opera"===i.name},e.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===i.name},e.prototype.isEdgeBrowser=function(){var e=(null==i?void 0:i.version)?parseFloat(i.version):-1;return"Microsoft Edge"===i.name&&e>=80},e.prototype.isEdgeMobileBrowser=function(){var e,t,n=(null==i?void 0:i.version)?parseFloat(i.version):-1;return"Microsoft Edge"===i.name&&("Android"===(null===(e=i.os)||void 0===e?void 0:e.family)||"iOS"===(null===(t=i.os)||void 0===t?void 0:t.family))&&n>45},e.prototype.isAndroidBrowser=function(){return"Android Browser"===i.name},e.prototype.isElectron=function(){return"Electron"===i.name},e.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===i.name||"Samsung Internet"===i.name},e.prototype.isIPhoneOrIPad=function(){var e=i.ua?i.ua:navigator.userAgent,t="ontouchend"in document,n=/\b(\w*Macintosh\w*)\b/.test(e)&&t,r=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e)&&t;return n||r},e.prototype.isIOSWithSafari=function(){var e=i.ua?i.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\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)},e.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===i.ua.indexOf("Safari")},e.prototype.isIonicAndroid=function(){return"Android"===i.os.family&&"Android Browser"==i.name},e.prototype.isMobileDevice=function(){return"iOS"===i.os.family||"Android"===i.os.family},e.prototype.isReactNative=function(){return!1},e.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},e.prototype.canScreenShare=function(){var e=(null==i?void 0:i.version)?parseFloat(i.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&e>=13)},e.prototype.getName=function(){return i.name||""},e.prototype.getVersion=function(){return i.version||""},e.prototype.getFamily=function(){return i.os.family||""},e.prototype.getDescription=function(){return i.description||""},e}();t.PlatformUtils=r},85245:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcPeerSendrecv=t.WebRtcPeerSendonly=t.WebRtcPeerRecvonly=t.WebRtcPeer=void 0;var c=n(42596),u=n(79148),l=n(90250),h=n(39040),d=n(63053),f=h.OpenViduLogger.getInstance(),p=function(){function e(e){var t=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,d.PlatformUtils.getInstance(),this.configuration=o(o({},e),{iceServers:e.iceServers&&e.iceServers.length>0?e.iceServers:c(),mediaStream:void 0!==e.mediaStream?e.mediaStream:null,mode:e.mode?e.mode:"sendrecv",id:e.id?e.id:this.generateUniqueId()}),f.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(e){if(null!==e.candidate){var n=new RTCIceCandidate(e.candidate);t.configuration.onIceCandidate(n),""!==n.candidate&&t.localCandidatesQueue.push(n)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===t.pc.signalingState)for(;t.iceCandidateList.length>0;){var e=t.iceCandidateList.shift();t.pc.addIceCandidate(e)}})}return e.prototype.getId=function(){return this.configuration.id},e.prototype.dispose=function(){if(f.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},e.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var e={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return f.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(e)),this.pc.createOffer(e)},e.prototype.createOffer=function(){var e,t,n,i,r,o,c,u;return a(this,void 0,void 0,function(){var a,l,h,d,p,v,m,g,y,b,_,k,w,S,C,E,x,O,T,I,P,M,A;return s(this,function(s){switch(s.label){case 0:if(!("addTransceiver"in this.pc))return f.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(f.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"));a=0,l=this.configuration.mediaStream.getTracks(),s.label=1;case 1:if(!(a<l.length))return[3,6];if(d={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(h=l[a]).kind&&this.configuration.simulcast)for(p=h.getSettings(),v=h.getConstraints(),m=null!==(n=null!==(t=null!==(e=p.width)&&void 0!==e?e:v.width.ideal)&&void 0!==t?t:v.width)&&void 0!==n?n:0,g=null!==(o=null!==(r=null!==(i=p.height)&&void 0!==i?i:v.height.ideal)&&void 0!==r?r:v.height)&&void 0!==o?o:0,f.info("[createOffer] Video track dimensions: ".concat(m,"x").concat(g)),b=(y=m*g)>=518400?3:y>=129600?2:1,d.sendEncodings=[],_=0;_<b;_++)k=Math.pow(2,b-_-1),w={rid:"rdiv"+k.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(h.contentHint)?(w.scaleResolutionDownBy=1,w.maxFramerate=Math.floor(30/k)):w.scaleResolutionDownBy=k,d.sendEncodings.push(w);if(S=this.pc.addTransceiver(h,d),"video"!==h.kind)return[3,5];if(C=S.sender.getParameters(),E=!1,(null===(c=C.degradationPreference)||void 0===c?void 0:c.length)||(C.degradationPreference=["detail","text"].includes(h.contentHint)?"maintain-resolution":"balanced",f.info("[createOffer] Video sender Degradation Preference set: ".concat(C.degradationPreference)),E=!0),this.configuration.simulcast&&(null===(u=C.encodings)||void 0===u?void 0:u.length)!==d.sendEncodings.length&&(C.encodings=d.sendEncodings,E=!0),!E)return[3,5];f.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,S.sender.setParameters(C)];case 3:return s.sent(),[3,5];case 4:throw x=s.sent(),A="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",x instanceof Error&&(A+=": ".concat(x.message)),new Error(A);case 5:return a++,[3,1];case 6:return[3,8];case 7:for(O=0,T=["audio","video"];O<T.length;O++)this.configuration.mediaConstraints[I=T[O]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(I,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));s.label=8;case 8:return s.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return P=s.sent(),[3,11];case 10:throw M=s.sent(),A="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",M instanceof Error&&(A+=": ".concat(M.message)),new Error(A);case 11:return[2,P]}})})},e.prototype.deprecatedPeerConnectionTrackApi=function(){for(var e=0,t=this.configuration.mediaStream.getTracks();e<t.length;e++)this.pc.addTrack(t[e],this.configuration.mediaStream)},e.prototype.createAnswer=function(){var e=this;return new Promise(function(t,n){if("getTransceivers"in e.pc){f.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var i=function(t){if(!e.configuration.mediaConstraints[t])return"continue";var i=e.pc.getTransceivers().find(function(e){return e.receiver.track.kind===t});if(!i)return{value:n(new Error("".concat(t," requested, but no transceiver was created from remote description")))};i.direction=e.configuration.mode},r=0,o=["audio","video"];r<o.length;r++){var a=i(o[r]);if("object"==typeof a)return a.value}e.pc.createAnswer().then(function(e){return t(e)}).catch(function(e){return n(e)})}else e.configuration.mediaConstraints&&e.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof e.configuration.mediaConstraints.audio||e.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof e.configuration.mediaConstraints.video||e.configuration.mediaConstraints.video}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},e.prototype.processLocalOffer=function(e){var t=this;return new Promise(function(n,i){t.pc.setLocalDescription(e).then(function(){var e=t.pc.localDescription;return e?(f.debug("Local description set",e.sdp),n()):i("Local description is not defined")}).catch(function(e){return i(e)})})},e.prototype.processRemoteOffer=function(e){var t=this;return new Promise(function(n,i){var r={type:"offer",sdp:e};if(f.debug("SDP offer received, setting remote description",r),"closed"===t.pc.signalingState)return i("RTCPeerConnection is closed when trying to set remote description");t.setRemoteDescription(r).then(function(){return n()}).catch(function(e){return i(e)})})},e.prototype.processLocalAnswer=function(e){var t=this;return new Promise(function(n,i){if(f.debug("SDP answer created, setting local description"),"closed"===t.pc.signalingState)return i("RTCPeerConnection is closed when trying to set local description");t.pc.setLocalDescription(e).then(function(){return n()}).catch(function(e){return i(e)})})},e.prototype.processRemoteAnswer=function(e){var t=this;return new Promise(function(n,i){var r={type:"answer",sdp:e};if(f.debug("SDP answer received, setting remote description"),"closed"===t.pc.signalingState)return i("RTCPeerConnection is closed when trying to set remote description");t.setRemoteDescription(r).then(function(){n()}).catch(function(e){return i(e)})})},e.prototype.setRemoteDescription=function(e){return a(this,void 0,void 0,function(){return s(this,function(t){return[2,this.pc.setRemoteDescription(e)]})})},e.prototype.addIceCandidate=function(e){var t=this;return new Promise(function(n,i){switch(f.debug("Remote ICE candidate received",e),t.remoteCandidatesQueue.push(e),t.pc.signalingState){case"closed":i(new Error("PeerConnection object is closed"));break;case"stable":t.pc.remoteDescription?t.pc.addIceCandidate(e).then(function(){return n()}).catch(function(e){return i(e)}):(t.iceCandidateList.push(e),n());break;default:t.iceCandidateList.push(e),n()}})},e.prototype.addIceConnectionStateChangeListener=function(e){var t=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(t.pc.iceConnectionState){case"disconnected":var n="IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "disconnected". Possible network disconnection';f.warn(n),t.configuration.onIceConnectionStateException(l.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,n);break;case"failed":var i="IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') to "failed"';f.error(i),t.configuration.onIceConnectionStateException(l.ExceptionEventName.ICE_CONNECTION_FAILED,i);break;case"closed":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "closed"');break;case"new":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "new"');break;case"checking":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "checking"');break;case"connected":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "connected"');break;case"completed":f.log("IceConnectionState of RTCPeerConnection "+t.configuration.id+" ("+e+') change to "completed"')}})},e.prototype.generateUniqueId=function(){return(0,u.v4)()},e}();t.WebRtcPeer=p;var v=function(e){function t(t){return t.mode="recvonly",e.call(this,t)||this}return r(t,e),t}(p);t.WebRtcPeerRecvonly=v;var m=function(e){function t(t){return t.mode="sendonly",e.call(this,t)||this}return r(t,e),t}(p);t.WebRtcPeerSendonly=m;var g=function(e){function t(t){return t.mode="sendrecv",e.call(this,t)||this}return r(t,e),t}(p);t.WebRtcPeerSendrecv=g},63230:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(t){o(t)}}function s(e){try{c(i.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRtcStats=void 0;var o,a=n(39040),s=n(63053),c=a.OpenViduLogger.getInstance(),u=function(){function e(e){this.stream=e,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,o=s.PlatformUtils.getInstance()}return e.prototype.isEnabled=function(){return this.webRtcStatsEnabled},e.prototype.initWebRtcStats=function(){var e=this,t=localStorage.getItem(this.STATS_ITEM_NAME);if(t){this.webRtcStatsEnabled=!0;var n=JSON.parse(t);c.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),c.warn("localStorage item: "+JSON.stringify(n)),this.POST_URL=n.httpEndpoint,this.statsInterval=n.interval,this.webRtcStatsIntervalId=setInterval(function(){return i(e,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return e.sent(),[2]}})})},1e3*this.statsInterval)}else c.debug("WebRtc stats not enabled")},e.prototype.getSelectedIceCandidateInfo=function(){var e=this;return new Promise(function(t,n){return i(e,void 0,void 0,function(){var e,n,i,a,s,c,u,l,h,d,f,p,v,m,g,y,b,_,k;return r(this,function(r){switch(r.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(e=r.sent(),i=new Map,a=new Map,s=new Map,e.forEach(function(e){switch("transport"===e.type&&(o.isChromium()||o.isSafariBrowser()||o.isReactNative())&&(n=e),e.type){case"candidate-pair":i.set(e.id,e);break;case"local-candidate":a.set(e.id,e);break;case"remote-candidate":s.set(e.id,e)}}),null!=n)c=i.get(n.selectedCandidatePairId);else for(u=i.size,l=i.values(),h=0;h<u;h++)if((d=l.next().value).selected){c=d;break}if(f=c.remoteCandidateId,p=a.get(c.localCandidateId))for(y=this.stream.getLocalIceCandidateList(),b=y.filter(function(e){return!!e.candidate&&(e.candidate.indexOf(p.ip)>=0||e.candidate.indexOf(p.address)>=0)&&e.candidate.indexOf(p.port)>=0}),p.raw=[],v=0,m=b;v<m.length;v++)p.raw.push(m[v].candidate);else p="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(g=s.get(f))for(y=this.stream.getRemoteIceCandidateList(),b=y.filter(function(e){return!!e.candidate&&(e.candidate.indexOf(g.ip)>=0||e.candidate.indexOf(g.address)>=0)&&e.candidate.indexOf(g.port)>=0}),g.raw=[],_=0,k=b;_<k.length;_++)g.raw.push(k[_].candidate);else g="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,t({localCandidate:p,remoteCandidate:g})]}})})})},e.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),c.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},e.prototype.sendStats=function(e,t){return i(this,void 0,void 0,function(){var n,i;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),n={headers:{"Content-type":"application/json"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,n)];case 1:return r.sent(),[3,3];case 2:return i=r.sent(),c.error("sendStats error: ".concat(JSON.stringify(i))),[3,3];case 3:return[2]}})})},e.prototype.sendStatsToHttpEndpoint=function(){return i(this,void 0,void 0,function(){var e,t,n;return r(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return e=i.sent(),t=this.generateJSONStatsResponse(e),[4,this.sendStats(this.POST_URL,t)];case 2:return i.sent(),[3,4];case 3:return n=i.sent(),c.log(n),[3,4];case 4:return[2]}})})},e.prototype.getCommonStats=function(){return i(this,void 0,void 0,function(){var e=this;return r(this,function(t){return[2,new Promise(function(t,n){return i(e,void 0,void 0,function(){var e,i,o,a,s,u=this;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return e=r.sent(),i=this.getWebRtcStatsResponseOutline(),o=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],a=["availableOutgoingBitrate","currentRoundTripTime"],e.forEach(function(e){var t=null!=e.mediaType?e.mediaType:e.kind,n=function(n,r){null!=e[r]&&null!=i[n]&&(!t&&o.indexOf(r)>-1&&(t="video"),null!=n&&null!=t&&null!=r&&null!=i[n][t]?i[n][t][r]=Number(e[r]):null!=n&&null!=r&&a.includes(r)&&(i[n][r]=Number(e[r])))};switch(e.type){case"outbound-rtp":n("outbound","bytesSent"),n("outbound","packetsSent"),n("outbound","framesEncoded"),n("outbound","nackCount"),n("outbound","firCount"),n("outbound","pliCount"),n("outbound","qpSum");break;case"inbound-rtp":n("inbound","bytesReceived"),n("inbound","packetsReceived"),n("inbound","packetsLost"),n("inbound","jitter"),n("inbound","framesDecoded"),n("inbound","nackCount"),n("inbound","firCount"),n("inbound","pliCount");break;case"track":n("inbound","jitterBufferDelay"),n("inbound","framesReceived"),n("outbound","framesDropped"),n("outbound","framesSent"),n(u.stream.isLocal()?"outbound":"inbound","frameHeight"),n(u.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":n("candidatepair","currentRoundTripTime"),n("candidatepair","availableOutgoingBitrate")}}),(null==i?void 0:i.candidatepair)&&0!==Object.keys(i.candidatepair).length||delete i.candidatepair,[2,t(i)];case 2:return s=r.sent(),c.error("Error getting common stats: ",s),[2,n(s)];case 3:return[2]}})})})]})})},e.prototype.generateJSONStatsResponse=function(e){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:o.getName(),platform_description:o.getDescription(),stream:"webRTC",webrtc_stats:e}},e.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},e}();t.WebRtcStats=u},15904:function(e,t,n){"use strict";t.Dn=void 0;var i=n(95784),r=n(34051);Object.defineProperty(t,"Dn",{enumerable:!0,get:function(){return r.OpenVidu}}),n(35996),n(10920),n(13591),n(83239),n(97558),n(38213),n(98905),n(22212),n(34222),n(51860),n(93913),n(86634),n(28866),n(27299),n(15646),n(95028),n(87355),n(16464),n(54638),n(39402),n(976),n(15486),n(68206),n(18820),n(75428),n(90250),n(62288),i.JL.setOptions({enabled:!1})},39757:function(e){"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(var n in e){var i=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(var r=0;r<i.length;r++){var o=i[r];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){var a=i[0];this._extensions[n]="*"!==a[0]?a:a.substr(1)}}},t.prototype.getType=function(e){var t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase();return(n.length<t.length-1||!(t.length<e.length))&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},6298:function(e,t,n){"use strict";var i=n(39757);e.exports=new i(n(88958))},88958:function(e){e.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"]}},53896:function(e,t,n){var i;e=n.nmd(e),(function(){"use strict";var r={function:!0,object:!0},o=r[typeof window]&&window||this,a=r[typeof t]&&t&&r.object&&e&&!e.nodeType&&e&&"object"==typeof global&&global;!a||a.global!==a&&a.window!==a&&a.self!==a||(o=a);var s=Math.pow(2,53)-1,c=/\bOpera/,u=Object.prototype,l=u.hasOwnProperty,h=u.toString;function d(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function f(e){return e=y(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:d(e)}function p(e,t){for(var n in e)l.call(e,n)&&t(e[n],n,e)}function v(e){return null==e?d(e):h.call(e).slice(8,-1)}function m(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function g(e,t){var n=null;return function(e,t){var n=-1,i=e?e.length:0;if("number"==typeof i&&i>-1&&i<=s)for(;++n<i;)t(e[n],n);else p(e,t)}(e,function(i,r){n=t(n,i,r,e)}),n}function y(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=o,i=t&&"object"==typeof t&&"String"!=v(t);i&&(n=t,t=null);var r=n.navigator||{},a=r.userAgent||"";t||(t=a);var s,u,l,d,b=i?!!r.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(h.toString()),_="Object",k=i?_:"ScriptBridgingProxyObject",w=i?_:"Environment",S=i&&n.java?"JavaPackage":v(n.java),C=i?_:"RuntimeObject",E=/\bJava/.test(S)&&n.java,x=E&&v(n.environment)==w,O=E?"a":"\u03b1",T=E?"b":"\u03b2",I=n.document||{},P=n.operamini||n.opera,M=c.test(M=i&&P?P["[[Class]]"]:v(P))?M:P=null,A=t,R=[],N=null,L=t==a,D=L&&P&&"function"==typeof P.version&&P.version(),V=g([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)}),j=g(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"],function(e,n){return e||RegExp("\\b"+(n.pattern||m(n))+"\\b","i").exec(t)&&(n.label||n)}),F=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),B=g({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}},function(e,n,i){return e||(n[F]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(F)]||RegExp("\\b"+m(i)+"(?:\\b|\\w*\\d)","i").exec(t))&&i}),U=g(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "],function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var i={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(i=i[/[\d.]+$/.exec(e)])&&(e="Windows "+i),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),f(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,i,n.label||n)),e});function z(e){return g(e,function(e,n){var i=n.pattern||m(n);return!e&&(e=RegExp("\\b"+i+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+i+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+i+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(i,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=f(e[0].replace(RegExp(i,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e})}function H(e){return g(e,function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null})}if(V&&(V=[V]),/\bAndroid\b/.test(U)&&!F&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(t))&&(F=y(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),B&&!F?F=z([B]):B&&F&&(F=F.replace(RegExp("^("+m(B)+")[-_.\\s]","i"),B+" ").replace(RegExp("^("+m(B)+")[-_.]?(\\w)","i"),B+" $2")),(s=/\bGoogle TV\b/.exec(F))&&(F=s[0]),/\bSimulator\b/i.test(t)&&(F=(F?F+" ":"")+"Simulator"),"Opera Mini"==j&&/\bOPiOS\b/.test(t)&&R.push("running in Turbo/Uncompressed mode"),"IE"==j&&/\blike iPhone OS\b/.test(t)?(B=(s=e(t.replace(/like iPhone OS/,""))).manufacturer,F=s.product):/^iP/.test(F)?(j||(j="Safari"),U="iOS"+((s=/ OS ([\d_]+)/i.exec(t))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==j&&/^Linux\b/i.test(U)?U="Kubuntu":B&&"Google"!=B&&(/Chrome/.test(j)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(F))||/\bAndroid\b/.test(U)&&/^Chrome/.test(j)&&/\bVersion\//i.test(t)?(j="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==j?(/\bMobi/i.test(t)||(U="Android",R.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&R.unshift("accelerated")):"UC Browser"==j&&/\bUCWEB\b/.test(t)?R.push("speed mode"):"PaleMoon"==j&&(s=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+s[1]):"Firefox"==j&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(U||(U="Firefox OS"),F||(F=s[1])):!j||(s=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(j))?(j&&!F&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(s+"/")+8))&&(j=null),(s=F||B||U)&&(F||B||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(j=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:s)+" Browser")):"Electron"==j&&(s=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+s),D||(D=H(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",m(j),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==V&&parseFloat(D)>3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(V)&&"WebKit"||!V&&/\bMSIE\b/i.test(t)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==V&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(V=[s]),"IE"==j&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(j+=" Mobile",U="Windows Phone "+(/\+$/.test(s)?s:s+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(j="IE Mobile",U="Windows Phone 8.x",R.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=j&&"Trident"==V&&(s=/\brv:([\d.]+)/.exec(t))&&(j&&R.push("identifying as "+j+(D?" "+D:"")),j="IE",D=s[1]),L){if(/^(?:boolean|number|string|undefined)$/.test(d=null!=(l=n)?typeof l.global:"number")||"object"==d&&!l.global)v(s=n.runtime)==k?(j="Adobe AIR",U=s.flash.system.Capabilities.os):v(s=n.phantom)==C?(j="PhantomJS",D=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof I.documentMode&&(s=/\bTrident\/(\d+)/i.exec(t))?((s=+s[1]+4)!=(D=[D,I.documentMode])[1]&&(R.push("IE "+D[1]+" mode"),V&&(V[1]=""),D[1]=s),D="IE"==j?String(D[1].toFixed(1)):D[0]):"number"==typeof I.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(R.push("masking as "+j+" "+D),j="IE",D="11.0",V=["Trident"],U="Windows");else if(E&&(A=(s=E.lang.System).getProperty("os.arch"),U=U||s.getProperty("os.name")+" "+s.getProperty("os.version")),x){try{D=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(G){(s=n.system)&&s.global.system==n.system&&(j="Narwhal",U||(U=s[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(R.push("Node "+s.versions.node),j="Electron",D=s.versions.electron):"string"==typeof s.versions.nw&&(R.push("Chromium "+D,"Node "+s.versions.node),j="NW.js",D=s.versions.nw)),j||(j="Node.js",A=s.arch,U=s.platform,D=(D=/[\d.]+/.exec(s.version))?D[0]:null));U=U&&f(U)}if(D&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(L&&r.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(N=/b/i.test(s)?"beta":"alpha",D=D.replace(RegExp(s+"\\+?$"),"")+("beta"==N?T:O)+(/\d+\+?/.exec(s)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))j="Firefox Mobile";else if("Maxthon"==j&&D)D=D.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(F))"Xbox 360"==F&&(U=null),"Xbox 360"==F&&/\bIEMobile\b/.test(t)&&R.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||F||/Browser|Mobi/.test(j))||"Windows CE"!=U&&!/Mobi/i.test(t))if("IE"==j&&L)try{null===n.external&&R.unshift("platform preview")}catch(G){R.unshift("embedded")}else(/\bBlackBerry\b/.test(F)||/\bBB10\b/.test(t))&&(s=(RegExp(F.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||D)?(U=((s=[s,/BB10/.test(t)])[1]?(F=null,B="BlackBerry"):"Device Software")+" "+s[0],D=null):this!=p&&"Wii"!=F&&(L&&P||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==j&&(U&&!/^Win/.test(U)&&D>5.5||/\bWindows XP\b/.test(U)&&D>8||8==D&&!/\bTrident\b/.test(t)))&&!c.test(s=e.call(p,t.replace(c,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),c.test(j)?(/\bIE\b/.test(s)&&"Mac OS"==U&&(U=null),s="identify"+s):(s="mask"+s,j=M?f(M.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(U=null),L||(D=null)),V=["Presto"],R.push(s));else j+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==j&&"+"==s[1].slice(-1)?(j="WebKit Nightly",N="alpha",D=s[1].slice(0,-1)):D!=s[1]&&D!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(D=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==V&&(V=["Blink"]),L&&(b||s[1])?(V&&(V[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=V?"27":"28")):(V&&(V[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),V&&(V[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==j&&(!D||parseInt(D)>45)?D=s:"Chrome"==j&&/\bHeadlessChrome/i.test(t)&&R.unshift("headless")),"Opera"==j&&(s=/\bzbov|zvav$/.exec(U))?(j+=" ",R.unshift("desktop mode"),"zvav"==s?(j+="Mini",D=null):j+="Mobile",U=U.replace(RegExp(" *"+s+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(V&&V[1])?(R.unshift("desktop mode"),j="Chrome Mobile",D=null,/\bOS X\b/.test(U)?(B="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(j)&&!D&&(D=H("Chrome")),D&&0==D.indexOf(s=/[\d.]+$/.exec(U))&&t.indexOf("/"+s+"-")>-1&&(U=y(U.replace(s,""))),U&&-1!=U.indexOf(j)&&!RegExp(j+" OS").test(U)&&(U=U.replace(RegExp(" *"+m(j)+" *"),"")),V&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(U)&&/\bSafari\b/.test(V[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(j)&&V[1])&&(s=V[V.length-1])&&R.push(s),R.length&&(R=["("+R.join("; ")+")"]),B&&F&&F.indexOf(B)<0&&R.push("on "+B),F&&R.push((/^on /.test(R[R.length-1])?"":"on ")+F),U&&(s=/ ([\d.+]+)$/.exec(U),u=s&&"/"==U.charAt(U.length-s[0].length-1),U={architecture:32,family:s&&!u?U.replace(s[0],""):U,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!u?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(A))&&!/\bi686\b/i.test(A)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+s),"")),j&&(/\bWOW64\b/i.test(t)||L&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(t))&&R.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==j&&parseFloat(D)>=39&&(U.architecture=64),t||(t=null);var W={};return W.description=t,W.layout=V&&V[0],W.manufacturer=B,W.name=j,W.prerelease=N,W.product=F,W.ua=t,W.version=j&&D,W.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},W.parse=e,W.toString=function(){return this.description||""},W.version&&R.unshift(D),W.name&&R.unshift(j),U&&j&&(U!=String(U).split(" ")[0]||U!=j.split(" ")[0]&&!F)&&R.push(F?"("+U+")":"on "+U),R.length&&(W.description=R.join(" ")),W}();o.platform=b,void 0===(i=(function(){return b}).call(t,n,t,e))||(e.exports=i)}).call(this)},45796:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n(81847),o=n(53101),a=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r.Subject);t.BehaviorSubject=a},33594:function(e,t,n){"use strict";var i=n(35177),r=n(16847),o=n(68760),a=n(73395),s=n(29599),c=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i=this.operator,o=r.toSubscriber(e,t,n);if(o.add(i?i.call(o,this.source):this.source||s.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),s.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){s.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),i.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=u(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[o.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=u(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function u(e){if(e||(e=s.config.Promise||Promise),!e)throw new Error("no Promise impl found");return e}t.Observable=c},41117:function(e,t,n){"use strict";var i=n(29599),r=n(90159);t.empty={closed:!0,next:function(e){},error:function(e){if(i.config.useDeprecatedSynchronousErrorHandling)throw e;r.hostReportError(e)},complete:function(){}}},81847:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n(33594),o=n(77900),a=n(11147),s=n(53101),c=n(73868),u=n(44775),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return i(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype[u.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(e.complete(),a.Subscription.EMPTY):(this.observers.push(e),new c.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new r.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(r.Observable);t.Subject=h;var d=function(e){function t(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.Subscription.EMPTY},t}(h);t.AnonymousSubject=d},73868:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(e){function t(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n(11147).Subscription);t.SubjectSubscription=r},77900:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n(50381),o=n(41117),a=n(11147),s=n(44775),c=n(29599),u=n(90159),l=function(e){function t(n,i,r){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.empty;break;case 1:if(!n){a.destination=o.empty;break}if("object"==typeof n){n instanceof t?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new h(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new h(a,n,i,r)}return a}return i(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,i){var r=new t(e,n,i);return r.syncErrorThrowable=!1,r},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(a.Subscription);t.Subscriber=l;var h=function(e){function t(t,n,i,a){var s,c=e.call(this)||this;c._parentSubscriber=t;var u=c;return r.isFunction(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.empty&&(u=Object.create(n),r.isFunction(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=s,c._error=i,c._complete=a,c}return i(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):u.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;u.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw n;u.hostReportError(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return c.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(u.hostReportError(i),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l);t.SafeSubscriber=h},11147:function(e,t,n){"use strict";var i=n(76546),r=n(4593),o=n(50381),a=n(19132),s=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,s=n._parentOrParents,u=n._ctorUnsubscribe,l=n._unsubscribe,h=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof e)s.remove(this);else if(null!==s)for(var d=0;d<s.length;++d)s[d].remove(this);if(o.isFunction(l)){u&&(this._unsubscribe=void 0);try{l.call(this)}catch(v){t=v instanceof a.UnsubscriptionError?c(v.errors):[v]}}if(i.isArray(h)){d=-1;for(var f=h.length;++d<f;){var p=h[d];if(r.isObject(p))try{p.unsubscribe()}catch(v){t=t||[],v instanceof a.UnsubscriptionError?t=t.concat(c(v.errors)):t.push(v)}}}if(t)throw new a.UnsubscriptionError(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=s},29599:function(e,t){"use strict";var n=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},87683:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n(77900),o=n(33594),a=n(71771),s=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(r.Subscriber);t.SimpleInnerSubscriber=s;var c=function(e){function t(t,n,i){var r=e.call(this)||this;return r.parent=t,r.outerValue=n,r.outerIndex=i,r}return i(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r.Subscriber);t.ComplexInnerSubscriber=c;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(r.Subscriber);t.SimpleOuterSubscriber=u;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.notifyNext=function(e,t,n,i){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r.Subscriber);t.ComplexOuterSubscriber=l,t.innerSubscribe=function(e,t){if(!t.closed)return e instanceof o.Observable?e.subscribe(t):a.subscribeTo(e)(t)}},36969:function(e,t,n){"use strict";var i=n(33594);function r(e){e.subscriber.error(e.error)}t._=function(e,t){return new i.Observable(t?function(n){return t.schedule(r,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}},41331:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n(87683);t.catchError=function(e){return function(t){var n=new o(e),i=t.lift(n);return n.caught=i}};var o=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.selector,this.caught))},e}(),a=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.selector=n,r.caught=i,r}return i(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(a){return void e.prototype.error.call(this,a)}this._unsubscribeAndRecycle();var i=new r.SimpleInnerSubscriber(this);this.add(i);var o=r.innerSubscribe(n,i);o!==i&&this.add(o)}},t}(r.SimpleOuterSubscriber)},25073:function(e,t){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}t.getSymbolIterator=n,t.iterator=n(),t.$$iterator=t.iterator},68760:function(e,t){"use strict";t.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},44775:function(e,t){"use strict";t.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),t.$$rxSubscriber=t.rxSubscriber},53101:function(e,t){"use strict";t.ObjectUnsubscribedError=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},19132:function(e,t){"use strict";t.UnsubscriptionError=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},35177:function(e,t,n){"use strict";var i=n(77900);t.canReportError=function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof i.Subscriber?t:null}return!0}},90159:function(e,t){"use strict";t.hostReportError=function(e){setTimeout(function(){throw e},0)}},74446:function(e,t){"use strict";t.identity=function(e){return e}},76546:function(e,t){"use strict";t.isArray=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},49536:function(e,t){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},50381:function(e,t){"use strict";t.isFunction=function(e){return"function"==typeof e}},4593:function(e,t){"use strict";t.isObject=function(e){return null!==e&&"object"==typeof e}},14273:function(e,t){"use strict";t.isPromise=function(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},73395:function(e,t,n){"use strict";var i=n(74446);function r(e){return 0===e.length?i.identity:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},t.pipeFromArray=r},71771:function(e,t,n){"use strict";var i=n(91923),r=n(59970),o=n(41721),a=n(32909),s=n(49536),c=n(14273),u=n(4593),l=n(25073),h=n(68760);t.subscribeTo=function(e){if(e&&"function"==typeof e[h.observable])return a.subscribeToObservable(e);if(s.isArrayLike(e))return i.subscribeToArray(e);if(c.isPromise(e))return r.subscribeToPromise(e);if(e&&"function"==typeof e[l.iterator])return o.subscribeToIterable(e);var t=u.isObject(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},91923:function(e,t){"use strict";t.subscribeToArray=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},41721:function(e,t,n){"use strict";var i=n(25073);t.subscribeToIterable=function(e){return function(t){for(var n=e[i.iterator]();;){var r=void 0;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}}},32909:function(e,t,n){"use strict";var i=n(68760);t.subscribeToObservable=function(e){return function(t){var n=e[i.observable]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}}},59970:function(e,t,n){"use strict";var i=n(90159);t.subscribeToPromise=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.hostReportError),t}}},16847:function(e,t,n){"use strict";var i=n(77900),r=n(44775),o=n(41117);t.toSubscriber=function(e,t,n){if(e){if(e instanceof i.Subscriber)return e;if(e[r.rxSubscriber])return e[r.rxSubscriber]()}return e||t||n?new i.Subscriber(e,t,n):new i.Subscriber(o.empty)}},12579:function(e,t,n){var i=n(75725).default,r=n(73560).default,o=n(10794),a=n(38450),s=a.MAX_LENGTH,c=a.MAX_SAFE_INTEGER,u=n(56059),l=u.re,h=u.t,d=n(86265),f=n(99482).compareIdentifiers;e.exports=function(){"use strict";function e(t,n){if(i(this,e),n=d(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError("Invalid Version: ".concat(t));if(t.length>s)throw new TypeError("version is longer than ".concat(s," characters"));o("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var r=t.trim().match(n.loose?l[h.LOOSE]:l[h.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>c||this.major<0)throw new TypeError("Invalid major version");if(this.minor>c||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>c||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=r[4]?r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<c)return t}return e}):[],this.build=r[5]?r[5].split("."):[],this.format()}return r(e,[{key:"format",value:function(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}},{key:"toString",value:function(){return this.version}},{key:"compare",value:function(t){if(o("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}},{key:"compareMain",value:function(t){return t instanceof e||(t=new e(t,this.options)),f(this.major,t.major)||f(this.minor,t.minor)||f(this.patch,t.patch)}},{key:"comparePre",value:function(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;var n=0;do{var i=this.prerelease[n],r=t.prerelease[n];if(o("prerelease compare",n,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return f(i,r)}while(++n)}},{key:"compareBuild",value:function(t){t instanceof e||(t=new e(t,this.options));var n=0;do{var i=this.build[n],r=t.build[n];if(o("prerelease compare",n,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return f(i,r)}while(++n)}},{key:"inc",value:function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}]),e}()},73601:function(e,t,n){var i=n(12579);e.exports=function(e,t){return new i(e,t).major}},33944:function(e,t,n){var i=n(12579);e.exports=function(e,t){return new i(e,t).minor}},38450:function(e){e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},10794:function(e){var t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(e=console).error.apply(e,["SEMVER"].concat(n))}:function(){};e.exports=t},99482:function(e){var t=/^[0-9]+$/,n=function(e,n){var i=t.test(e),r=t.test(n);return i&&r&&(e=+e,n=+n),e===n?0:i&&!r?-1:r&&!i?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:function(e,t){return n(t,e)}}},86265:function(e){var t=["includePrerelease","loose","rtl"];e.exports=function(e){return e?"object"!=typeof e?{loose:!0}:t.filter(function(t){return e[t]}).reduce(function(e,t){return e[t]=!0,e},{}):{}}},56059:function(e,t,n){var i=n(38450).MAX_SAFE_COMPONENT_LENGTH,r=n(10794),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={},c=0,u=function(e,t,n){var i=c++;r(i,t),s[e]=i,a[i]=t,o[i]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION","(".concat(a[s.NUMERICIDENTIFIER],")\\.")+"(".concat(a[s.NUMERICIDENTIFIER],")\\.")+"(".concat(a[s.NUMERICIDENTIFIER],")")),u("MAINVERSIONLOOSE","(".concat(a[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[s.NUMERICIDENTIFIERLOOSE],")")),u("PRERELEASEIDENTIFIER","(?:".concat(a[s.NUMERICIDENTIFIER],"|").concat(a[s.NONNUMERICIDENTIFIER],")")),u("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[s.NUMERICIDENTIFIERLOOSE],"|").concat(a[s.NONNUMERICIDENTIFIER],")")),u("PRERELEASE","(?:-(".concat(a[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[s.PRERELEASEIDENTIFIER],")*))")),u("PRERELEASELOOSE","(?:-?(".concat(a[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[s.PRERELEASEIDENTIFIERLOOSE],")*))")),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD","(?:\\+(".concat(a[s.BUILDIDENTIFIER],"(?:\\.").concat(a[s.BUILDIDENTIFIER],")*))")),u("FULLPLAIN","v?".concat(a[s.MAINVERSION]).concat(a[s.PRERELEASE],"?").concat(a[s.BUILD],"?")),u("FULL","^".concat(a[s.FULLPLAIN],"$")),u("LOOSEPLAIN","[v=\\s]*".concat(a[s.MAINVERSIONLOOSE]).concat(a[s.PRERELEASELOOSE],"?").concat(a[s.BUILD],"?")),u("LOOSE","^".concat(a[s.LOOSEPLAIN],"$")),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(a[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(a[s.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIER],")")+"(?:".concat(a[s.PRERELEASE],")?").concat(a[s.BUILD],"?")+")?)?"),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[s.PRERELEASELOOSE],")?").concat(a[s.BUILD],"?")+")?)?"),u("XRANGE","^".concat(a[s.GTLT],"\\s*").concat(a[s.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(a[s.GTLT],"\\s*").concat(a[s.XRANGEPLAINLOOSE],"$")),u("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(i,"})")+"(?:\\.(\\d{1,".concat(i,"}))?")+"(?:\\.(\\d{1,".concat(i,"}))?")+"(?:$|[^\\d])"),u("COERCERTL",a[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM","(\\s*)".concat(a[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",u("TILDE","^".concat(a[s.LONETILDE]).concat(a[s.XRANGEPLAIN],"$")),u("TILDELOOSE","^".concat(a[s.LONETILDE]).concat(a[s.XRANGEPLAINLOOSE],"$")),u("LONECARET","(?:\\^)"),u("CARETTRIM","(\\s*)".concat(a[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",u("CARET","^".concat(a[s.LONECARET]).concat(a[s.XRANGEPLAIN],"$")),u("CARETLOOSE","^".concat(a[s.LONECARET]).concat(a[s.XRANGEPLAINLOOSE],"$")),u("COMPARATORLOOSE","^".concat(a[s.GTLT],"\\s*(").concat(a[s.LOOSEPLAIN],")$|^$")),u("COMPARATOR","^".concat(a[s.GTLT],"\\s*(").concat(a[s.FULLPLAIN],")$|^$")),u("COMPARATORTRIM","(\\s*)".concat(a[s.GTLT],"\\s*(").concat(a[s.LOOSEPLAIN],"|").concat(a[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE","^\\s*(".concat(a[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[s.XRANGEPLAIN],")")+"\\s*$"),u("HYPHENRANGELOOSE","^\\s*(".concat(a[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[s.XRANGEPLAINLOOSE],")")+"\\s*$"),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},79148:function(e,t,n){"use strict";var i;n.r(t),n.d(t,{NIL:function(){return P},parse:function(){return m},stringify:function(){return d},v1:function(){return v},v3:function(){return E},v4:function(){return x},v5:function(){return I},validate:function(){return s},version:function(){return M}});var r=new Uint8Array(16);function o(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(r)}for(var a=/^(?:[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,s=function(e){return"string"==typeof e&&a.test(e)},c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));var l,h,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},f=0,p=0,v=function(e,t,n){var i=t&&n||0,r=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:h;if(null==a||null==s){var c=e.random||(e.rng||o)();null==a&&(a=l=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==s&&(s=h=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,m=u-f+(v-p)/1e4;if(m<0&&void 0===e.clockseq&&(s=s+1&16383),(m<0||u>f)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=u,p=v,h=s;var g=(1e4*(268435455&(u+=122192928e5))+v)%4294967296;r[i++]=g>>>24&255,r[i++]=g>>>16&255,r[i++]=g>>>8&255,r[i++]=255&g;var y=u/4294967296*1e4&268435455;r[i++]=y>>>8&255,r[i++]=255&y,r[i++]=y>>>24&15|16,r[i++]=y>>>16&255,r[i++]=s>>>8|128,r[i++]=255&s;for(var b=0;b<6;++b)r[i+b]=a[b];return t||d(r)},m=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function g(e,t,n){function i(e,i,r,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof i&&(i=m(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(i),a.set(e,i.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,r){o=o||0;for(var s=0;s<16;++s)r[o+s]=a[s];return r}return d(a)}try{i.name=e}catch(r){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function _(e,t,n,i,r,o){return b((a=b(b(t,e),b(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function k(e,t,n,i,r,o,a){return _(t&n|~t&i,e,t,r,o,a)}function w(e,t,n,i,r,o,a){return _(t&i|n&~i,e,t,r,o,a)}function S(e,t,n,i,r,o,a){return _(t^n^i,e,t,r,o,a)}function C(e,t,n,i,r,o,a){return _(n^(t|~i),e,t,r,o,a)}var E=g("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,i="0123456789abcdef",r=0;r<n;r+=8){var o=e[r>>5]>>>r%32&255,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,u=r,l=o;n=k(n,i,r,o,e[a],7,-680876936),o=k(o,n,i,r,e[a+1],12,-389564586),r=k(r,o,n,i,e[a+2],17,606105819),i=k(i,r,o,n,e[a+3],22,-1044525330),n=k(n,i,r,o,e[a+4],7,-176418897),o=k(o,n,i,r,e[a+5],12,1200080426),r=k(r,o,n,i,e[a+6],17,-1473231341),i=k(i,r,o,n,e[a+7],22,-45705983),n=k(n,i,r,o,e[a+8],7,1770035416),o=k(o,n,i,r,e[a+9],12,-1958414417),r=k(r,o,n,i,e[a+10],17,-42063),i=k(i,r,o,n,e[a+11],22,-1990404162),n=k(n,i,r,o,e[a+12],7,1804603682),o=k(o,n,i,r,e[a+13],12,-40341101),r=k(r,o,n,i,e[a+14],17,-1502002290),n=w(n,i=k(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=w(o,n,i,r,e[a+6],9,-1069501632),r=w(r,o,n,i,e[a+11],14,643717713),i=w(i,r,o,n,e[a],20,-373897302),n=w(n,i,r,o,e[a+5],5,-701558691),o=w(o,n,i,r,e[a+10],9,38016083),r=w(r,o,n,i,e[a+15],14,-660478335),i=w(i,r,o,n,e[a+4],20,-405537848),n=w(n,i,r,o,e[a+9],5,568446438),o=w(o,n,i,r,e[a+14],9,-1019803690),r=w(r,o,n,i,e[a+3],14,-187363961),i=w(i,r,o,n,e[a+8],20,1163531501),n=w(n,i,r,o,e[a+13],5,-1444681467),o=w(o,n,i,r,e[a+2],9,-51403784),r=w(r,o,n,i,e[a+7],14,1735328473),n=S(n,i=w(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=S(o,n,i,r,e[a+8],11,-2022574463),r=S(r,o,n,i,e[a+11],16,1839030562),i=S(i,r,o,n,e[a+14],23,-35309556),n=S(n,i,r,o,e[a+1],4,-1530992060),o=S(o,n,i,r,e[a+4],11,1272893353),r=S(r,o,n,i,e[a+7],16,-155497632),i=S(i,r,o,n,e[a+10],23,-1094730640),n=S(n,i,r,o,e[a+13],4,681279174),o=S(o,n,i,r,e[a],11,-358537222),r=S(r,o,n,i,e[a+3],16,-722521979),i=S(i,r,o,n,e[a+6],23,76029189),n=S(n,i,r,o,e[a+9],4,-640364487),o=S(o,n,i,r,e[a+12],11,-421815835),r=S(r,o,n,i,e[a+15],16,530742520),n=C(n,i=S(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=C(o,n,i,r,e[a+7],10,1126891415),r=C(r,o,n,i,e[a+14],15,-1416354905),i=C(i,r,o,n,e[a+5],21,-57434055),n=C(n,i,r,o,e[a+12],6,1700485571),o=C(o,n,i,r,e[a+3],10,-1894986606),r=C(r,o,n,i,e[a+10],15,-1051523),i=C(i,r,o,n,e[a+1],21,-2054922799),n=C(n,i,r,o,e[a+8],6,1873313359),o=C(o,n,i,r,e[a+15],10,-30611744),r=C(r,o,n,i,e[a+6],15,-1560198380),i=C(i,r,o,n,e[a+13],21,1309151649),n=C(n,i,r,o,e[a+4],6,-145523070),o=C(o,n,i,r,e[a+11],10,-1120210379),r=C(r,o,n,i,e[a+2],15,718787259),i=C(i,r,o,n,e[a+9],21,-343485551),n=b(n,s),i=b(i,c),r=b(r,u),o=b(o,l)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}),x=function(e,t,n){var i=(e=e||{}).random||(e.rng||o)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=i[r];return t}return d(i)};function O(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function T(e,t){return e<<t|e>>>32-t}var I=g("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var r=0;r<i.length;++r)e.push(i.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=new Array(o),s=0;s<o;++s){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*s+4*u]<<24|e[64*s+4*u+1]<<16|e[64*s+4*u+2]<<8|e[64*s+4*u+3];a[s]=c}a[o-1][14]=8*(e.length-1)/Math.pow(2,32),a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=8*(e.length-1)&4294967295;for(var l=0;l<o;++l){for(var h=new Uint32Array(80),d=0;d<16;++d)h[d]=a[l][d];for(var f=16;f<80;++f)h[f]=T(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var p=n[0],v=n[1],m=n[2],g=n[3],y=n[4],b=0;b<80;++b){var _=Math.floor(b/20),k=T(p,5)+O(_,v,m,g)+y+t[_]+h[b]>>>0;y=g,g=m,m=T(v,30)>>>0,v=p,p=k}n[0]=n[0]+p>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+g>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),P="00000000-0000-0000-0000-000000000000",M=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},39270:function(e){function t(){}e.exports=t,t.mixin=function(e){var t=e.prototype||e;t.isWildEmitter=!0,t.on=function(e,t,n){this.callbacks=this.callbacks||{};var i=3===arguments.length,r=i?arguments[1]:void 0,o=i?arguments[2]:arguments[1];return o._groupName=r,(this.callbacks[e]=this.callbacks[e]||[]).push(o),this},t.once=function(e,t,n){var i=this,r=3===arguments.length,o=r?arguments[1]:void 0,a=r?arguments[2]:arguments[1];function s(){i.off(e,s),a.apply(this,arguments)}return this.on(e,o,s),this},t.releaseGroup=function(e){var t,n,i,r;for(t in this.callbacks=this.callbacks||{},this.callbacks)for(n=0,i=(r=this.callbacks[t]).length;n<i;n++)r[n]._groupName===e&&(r.splice(n,1),n--,i--);return this},t.off=function(e,t){this.callbacks=this.callbacks||{};var n,i=this.callbacks[e];return i?1===arguments.length?(delete this.callbacks[e],this):(-1!==(n=i.indexOf(t))&&(i.splice(n,1),0===i.length&&delete this.callbacks[e]),this):this},t.emit=function(e){this.callbacks=this.callbacks||{};var t,n,i,r=[].slice.call(arguments,1),o=this.callbacks[e],a=this.getWildcardCallbacks(e);if(o)for(t=0,n=(i=o.slice()).length;t<n&&i[t];++t)i[t].apply(this,r);if(a)for(n=a.length,t=0,n=(i=a.slice()).length;t<n&&i[t];++t)i[t].apply(this,[e].concat(r));return this},t.getWildcardCallbacks=function(e){this.callbacks=this.callbacks||{};var t,n,i=[];for(t in this.callbacks)n=t.split("*"),("*"===t||2===n.length&&e.slice(0,n[0].length)===n[0])&&(i=i.concat(this.callbacks[t]));return i}},t.mixin(t)},59901:function(e,t,n){var i;!function(t){"use strict";function r(){}var o=r.prototype,a=t.EventEmitter;function s(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function c(e){return function(){return this[e].apply(this,arguments)}}function u(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&u(e.listener)}o.getListeners=function(e){var t,n,i=this._getEvents();if(e instanceof RegExp)for(n in t={},i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n]);else t=i[e]||(i[e]=[]);return t},o.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},o.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},o.addListener=function(e,t){if(!u(t))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(e),r="object"==typeof t;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],t)&&i[n].push(r?t:{listener:t,once:!1});return this},o.on=c("addListener"),o.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},o.once=c("addOnceListener"),o.defineEvent=function(e){return this.getListeners(e),this},o.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},o.removeListener=function(e,t){var n,i,r=this.getListenersAsObject(e);for(i in r)r.hasOwnProperty(i)&&-1!==(n=s(r[i],t))&&r[i].splice(n,1);return this},o.off=c("removeListener"),o.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},o.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},o.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):a.call(this,i,r));return this},o.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if(e instanceof RegExp)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},o.removeAllListeners=c("removeEvent"),o.emitEvent=function(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(e,i.listener),i.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,i.listener);return this},o.trigger=c("emitEvent"),o.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},o.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return t.EventEmitter=a,r},void 0===(i=(function(){return r}).call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof window?window:this||{})},48711:function(e,t,n){"use strict";function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(WP){return!1}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?d(e):t}function p(e){var t=l();return function(){var n,r=i(e);if(t){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(e){if(Array.isArray(e))return e}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){return y(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(c){s=!0,r=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||m(e,t)||b()}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function S(e){return y(e)||w(e)||m(e)||b()}function C(e){return function(e){if(Array.isArray(e))return v(e)}(e)||w(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t,n){return(E=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&c(r,n.prototype),r}).apply(null,arguments)}function x(e){var t="function"==typeof Map?new Map:void 0;return(x=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return E(e,arguments,i(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}var O=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function T(e){return null!==e&&"object"==typeof e}function I(e){return"function"==typeof e}var P=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),M=function(){var e=function(){function e(t){s(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return a(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(I(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(WP){t=WP instanceof P?A(WP.errors):[WP]}}if(O(o))for(var s=-1,c=o.length;++s<c;){var u=o[s];if(T(u))try{u.unsubscribe()}catch(WP){t=t||[],WP instanceof P?t=t.concat(A(WP.errors)):t.push(WP)}}if(t)throw new P(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}();return e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function A(e){return e.reduce(function(e,t){return e.concat(t instanceof P?t.errors:t)},[])}var R=!1,N={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else R&&console.log("RxJS: Back to a better error behavior. Thank you. <3");R=e},get useDeprecatedSynchronousErrorHandling(){return R}};function L(e){setTimeout(function(){throw e},0)}var D={closed:!0,next:function(e){},error:function(e){if(N.useDeprecatedSynchronousErrorHandling)throw e;L(e)},complete:function(){}},V=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),j=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;switch(s(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=D;break;case 1:if(!e){o.destination=D;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(d(o))):(o.syncErrorThrowable=!0,o.destination=new F(d(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new F(d(o),e,i,r)}return o}return a(n,[{key:V,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,r(i(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(M),F=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a,c;s(this,n),(a=t.call(this))._parentSubscriber=e;var u=d(a);return I(i)?c=i:i&&(c=i.next,r=i.error,o=i.complete,i!==D&&(I((u=Object.create(i)).unsubscribe)&&a.add(u.unsubscribe.bind(u)),u.unsubscribe=a.unsubscribe.bind(d(a)))),a._context=u,a._next=c,a._error=r,a._complete=o,a}return a(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;N.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=N.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):L(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;L(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};N.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),N.useDeprecatedSynchronousErrorHandling)throw n;L(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!N.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return N.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(L(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(j),B=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function U(e){return e}function z(e){return 0===e.length?U:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var H=function(){var e=function(){function e(t){s(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return a(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var i=this.operator,r=function(e,t,n){if(e){if(e instanceof j)return e;if(e[V])return e[V]()}return e||t||n?new j(e,t,n):new j(D)}(e,t,n);if(r.add(i?i.call(r,this.source):this.source||N.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),N.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){N.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof j?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=W(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:B,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:z(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=W(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}();return e.create=function(t){return new e(t)},e}();function W(e){if(e||(e=N.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var G=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),q=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return a(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(M),Z=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e)).destination=e,i}return n}(j),Y=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return a(n,[{key:V,value:function(){return new Z(this)}},{key:"lift",value:function(e){var t=new Q(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new G;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new G;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new G;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new G;return r(i(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new G;return this.hasError?(e.error(this.thrownError),M.EMPTY):this.isStopped?(e.complete(),M.EMPTY):(this.observers.push(e),new q(this,e))}},{key:"asObservable",value:function(){var e=new H;return e.source=this,e}}]),n}(H);return e.create=function(e,t){return new Q(e,t)},e}(),Q=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).destination=e,r.source=i,r}return a(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):M.EMPTY}}]),n}(Y);function K(e){return e&&"function"==typeof e.schedule}function J(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new X(e,t))}}var X=function(){function e(t,n){s(this,e),this.project=t,this.thisArg=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new $(e,this.project,this.thisArg))}}]),e}(),$=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).project=i,o.count=0,o.thisArg=r||d(o),o}return a(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(j),ee=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};function te(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var ne=te(),ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function re(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var oe=function(e){if(e&&"function"==typeof e[B])return n=e,function(e){var t=n[B]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(ie(e))return ee(e);if(re(e))return function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,L),t}}(e);if(e&&"function"==typeof e[ne])return t=e,function(e){for(var n=t[ne]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,i=T(e)?"an invalid object":"'".concat(e,"'"),r="You provided ".concat(i," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(r)};function ae(e,t){return new H(function(n){var i=new M,r=0;return i.add(t.schedule(function(){r!==e.length?(n.next(e[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}function se(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[B]}(e))return function(e,t){return new H(function(n){var i=new M;return i.add(t.schedule(function(){var r=e[B]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i})}(e,t);if(re(e))return function(e,t){return new H(function(n){var i=new M;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(ie(e))return ae(e,t);if(function(e){return e&&"function"==typeof e[ne]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new H(function(n){var i,r=new M;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[ne](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof H?e:new H(oe(e))}var ce=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this)).parent=e,i}return a(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(j),ue=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(j);function le(e,t){if(!t.closed)return e instanceof H?e.subscribe(t):oe(e)(t)}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(he(function(n,i){return se(e(n,i)).pipe(J(function(e,r){return t(n,e,i,r)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new de(e,n))})}var de=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;s(this,e),this.project=t,this.concurrent=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new fe(e,this.project,this.concurrent))}}]),e}(),fe=function(e){u(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return s(this,n),(r=t.call(this,e)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return a(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new ce(this),n=this.destination;n.add(t);var i=le(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ue);function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return he(U,e)}function ve(e,t){return t?ae(e,t):new H(ee(e))}function me(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=i[i.length-1];return K(o)?(t=i.pop(),i.length>1&&"number"==typeof i[i.length-1]&&(e=i.pop())):"number"==typeof o&&(e=i.pop()),null===t&&1===i.length&&i[0]instanceof H?i[0]:pe(e)(ve(i,t))}function ge(){return function(e){return e.lift(new ye(e))}}var ye=function(){function e(t){s(this,e),this.connectable=t}return a(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new be(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),be=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).connectable=i,r}return a(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(j),_e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return a(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new M).add(this.source.subscribe(new we(this.getSubject(),this))),e.closed&&(this._connection=null,e=M.EMPTY)),e}},{key:"refCount",value:function(){return ge()(this)}}]),n}(H),ke=function(){var e=_e.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),we=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).connectable=i,r}return a(n,[{key:"_error",value:function(e){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(Z);function Se(){return new Y}function Ce(){return function(e){return ge()((t=Se,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,ke);return i.source=e,i.subjectFactory=n,i})(e));var t}}function Ee(e){for(var t in e)if(e[t]===Ee)return t;throw Error("Could not find renamed property on target object.")}function xe(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Oe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Oe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Te(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Ie=Ee({__forward_ref__:Ee});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Oe(this())},e}function Me(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(Ie)&&e.__forward_ref__===Pe}var Re=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,i))).code=e,r}return n}(x(Error));function Ne(e){return"string"==typeof e?e:null==e?"":String(e)}function Le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ne(e)}function De(e,t){var n=t?" in ".concat(t):"";throw new Re("201","No provider for ".concat(Le(e)," found").concat(n))}function Ve(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function je(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fe(e){return Be(e,He)||Be(e,Ge)}function Be(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ue(e){return e&&(e.hasOwnProperty(We)||e.hasOwnProperty(qe))?e[We]:null}var ze,He=Ee({"\u0275prov":Ee}),We=Ee({"\u0275inj":Ee}),Ge=Ee({ngInjectableDef:Ee}),qe=Ee({ngInjectorDef:Ee}),Ze=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Ye(){return ze}function Qe(e){var t=ze;return ze=e,t}function Ke(e,t,n){var i=Fe(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&Ze.Optional?null:void 0!==t?t:void De(Oe(e),"Injector")}function Je(e){return{toString:e}.toString()}var Xe=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),$e=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),et="undefined"!=typeof globalThis&&globalThis,tt="undefined"!=typeof window&&window,nt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,it="undefined"!=typeof global&&global,rt=et||it||tt||nt,ot={},at=[],st=Ee({"\u0275cmp":Ee}),ct=Ee({"\u0275dir":Ee}),ut=Ee({"\u0275pipe":Ee}),lt=Ee({"\u0275mod":Ee}),ht=Ee({"\u0275loc":Ee}),dt=Ee({"\u0275fac":Ee}),ft=Ee({__NG_ELEMENT_ID__:Ee}),pt=0;function vt(e){return Je(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Xe.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||at,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||$e.Emulated,id:"c",styles:e.styles||at,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,o=e.pipes;return n.id+=pt++,n.inputs=_t(e.inputs,t),n.outputs=_t(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(mt)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(gt)}:null,n})}function mt(e){return St(e)||function(e){return e[ct]||null}(e)}function gt(e){return function(e){return e[ut]||null}(e)}var yt={};function bt(e){return Je(function(){var t={type:e.type,bootstrap:e.bootstrap||at,declarations:e.declarations||at,imports:e.imports||at,exports:e.exports||at,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(yt[e.id]=e.type),t})}function _t(e,t){if(null==e)return ot;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,t&&(t[r]=o)}return n}var kt=vt;function wt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function St(e){return e[st]||null}function Ct(e,t){var n=e[lt]||null;if(!n&&!0===t)throw new Error("Type ".concat(Oe(e)," does not have '\u0275mod' property."));return n}var Et=20,xt=10;function Ot(e){return Array.isArray(e)&&"object"==typeof e[1]}function Tt(e){return Array.isArray(e)&&!0===e[1]}function It(e){return 0!=(8&e.flags)}function Pt(e){return 2==(2&e.flags)}function Mt(e){return 1==(1&e.flags)}function At(e){return null!==e.template}function Rt(e,t){return e.hasOwnProperty(dt)?e[dt]:null}var Nt=function(){function e(t,n,i){s(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return a(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Lt(){return Dt}function Dt(e){return e.type.prototype.ngOnChanges&&(e.setInput=jt),Vt}function Vt(){var e=Ft(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===ot)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function jt(e,t,n,i){var r=Ft(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:ot,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],c=a[s];o[s]=new Nt(c&&c.currentValue,t,a===ot),e[i]=t}function Ft(e){return e.__ngSimpleChanges__||null}Lt.ngInherit=!0;var Bt=void 0;function Ut(){return void 0!==Bt?Bt:"undefined"!=typeof document?document:void 0}function zt(e){return!!e.listen}var Ht={createRenderer:function(e,t){return Ut()}};function Wt(e){for(;Array.isArray(e);)e=e[0];return e}function Gt(e,t){return Wt(t[e])}function qt(e,t){return Wt(t[e.index])}function Zt(e,t){return e.data[t]}function Yt(e,t){return e[t]}function Qt(e,t){var n=t[e];return Ot(n)?n:n[0]}function Kt(e){return 4==(4&e[2])}function Jt(e){return 128==(128&e[2])}function Xt(e,t){return null==t?null:e[t]}function $t(e){e[18]=0}function en(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var tn={lFrame:En(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function nn(){return tn.bindingsEnabled}function rn(){return tn.lFrame.lView}function on(){return tn.lFrame.tView}function an(e){return tn.lFrame.contextLView=e,e[8]}function sn(){for(var e=cn();null!==e&&64===e.type;)e=e.parent;return e}function cn(){return tn.lFrame.currentTNode}function un(e,t){var n=tn.lFrame;n.currentTNode=e,n.isParent=t}function ln(){return tn.lFrame.isParent}function hn(){tn.lFrame.isParent=!1}function dn(){return tn.isInCheckNoChangesMode}function fn(e){tn.isInCheckNoChangesMode=e}function pn(){var e=tn.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function vn(){return tn.lFrame.bindingIndex++}function mn(e){var t=tn.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gn(e){tn.lFrame.currentDirectiveIndex=e}function yn(e){var t=tn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function bn(){return tn.lFrame.currentQueryIndex}function _n(e){tn.lFrame.currentQueryIndex=e}function kn(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function wn(e,t,n){if(n&Ze.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&Ze.Host||null===(i=kn(r))||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var o=tn.lFrame=Cn();return o.currentTNode=t,o.lView=e,!0}function Sn(e){var t=Cn(),n=e[1];tn.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Cn(){var e=tn.lFrame,t=null===e?null:e.child;return null===t?En(e):t}function En(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function xn(){var e=tn.lFrame;return tn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var On=xn;function Tn(){var e=xn();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function In(e){return(tn.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,tn.lFrame.contextLView))[8]}function Pn(){return tn.lFrame.selectedIndex}function Mn(e){tn.lFrame.selectedIndex=e}function An(){var e=tn.lFrame;return Zt(e.tView,e.selectedIndex)}function Rn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,o=r.ngAfterContentInit,a=r.ngAfterContentChecked,s=r.ngAfterViewInit,c=r.ngAfterViewChecked,u=r.ngOnDestroy;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),c&&((e.viewHooks||(e.viewHooks=[])).push(n,c),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,c)),null!=u&&(e.destroyHooks||(e.destroyHooks=[])).push(n,u)}}function Nn(e,t,n){Vn(e,t,3,n)}function Ln(e,t,n,i){(3&e[2])===n&&Vn(e,t,n,i)}function Dn(e,t){var n=e[2];(3&n)===t&&(n&=2047,e[2]=n+=1)}function Vn(e,t,n,i){for(var r=null!=i?i:-1,o=t.length-1,a=0,s=void 0!==i?65535&e[18]:0;s<o;s++)if("number"==typeof t[s+1]){if(a=t[s],null!=i&&a>=i)break}else t[s]<0&&(e[18]+=65536),(a<r||-1==r)&&(jn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function jn(e,t,n,i){var r=n[i]<0,o=n[i+1],a=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Fn=-1,Bn=function e(t,n,i){s(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Un(e,t,n){for(var i=zt(e),r=0;r<n.length;){var o=n[r];if("number"==typeof o){if(0!==o)break;r++;var a=n[r++],s=n[r++],c=n[r++];i?e.setAttribute(t,s,c,a):t.setAttributeNS(a,s,c)}else{var u=o,l=n[++r];Hn(u)?i&&e.setProperty(t,u,l):i?e.setAttribute(t,u,l):t.setAttribute(u,l),r++}}return r}function zn(e){return 3===e||4===e||6===e}function Hn(e){return 64===e.charCodeAt(0)}function Wn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||Gn(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function Gn(e,t,n,i,r){var o=0,a=e.length;if(-1===t)a=-1;else for(;o<e.length;){var s=e[o++];if("number"==typeof s){if(s===t){a=-1;break}if(s>t){a=o-1;break}}}for(;o<e.length;){var c=e[o];if("number"==typeof c)break;if(c===n){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(e.splice(a,0,t),o=a+1),e.splice(o++,0,n),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}function qn(e){return e!==Fn}function Zn(e){return 32767&e}function Yn(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Qn=!0;function Kn(e){var t=Qn;return Qn=e,t}var Jn=0;function Xn(e,t){var n=ei(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,$n(i.data,e),$n(t,null),$n(i.blueprint,null));var r=ti(e,t),o=e.injectorIndex;if(qn(r))for(var a=Zn(r),s=Yn(r,t),c=s[1].data,u=0;u<8;u++)t[o+u]=s[a+u]|c[a+u];return t[o+8]=r,o}function $n(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ei(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ti(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return Fn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Fn}function ni(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(ft)&&(i=n[ft]),null==i&&(i=n[ft]=Jn++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function ii(e,t,n){if(n&Ze.Optional)return e;De(t,"NodeInjector")}function ri(e,t,n,i){if(n&Ze.Optional&&void 0===i&&(i=null),0==(n&(Ze.Self|Ze.Host))){var r=e[9],o=Qe(void 0);try{return r?r.get(t,i,n&Ze.Optional):Ke(t,i,n&Ze.Optional)}finally{Qe(o)}}return ii(i,t,n)}function oi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ze.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=hi(n);if("function"==typeof o){if(!wn(t,e,i))return i&Ze.Host?ii(r,n,i):ri(t,n,i,r);try{var a=o(i);if(null!=a||i&Ze.Optional)return a;De(n)}finally{On()}}else if("number"==typeof o){var s=null,c=ei(e,t),u=Fn,l=i&Ze.Host?t[16][6]:null;for((-1===c||i&Ze.SkipSelf)&&((u=-1===c?ti(e,t):t[c+8])!==Fn&&fi(i,!1)?(s=t[1],c=Zn(u),t=Yn(u,t)):c=-1);-1!==c;){var h=t[1];if(di(o,c,h.data)){var d=ci(c,t,n,s,i,l);if(d!==ai)return d}(u=t[c+8])!==Fn&&fi(i,t[1].data[c+8]===l)&&di(o,c,t)?(s=h,c=Zn(u),t=Yn(u,t)):c=-1}}}return ri(t,n,i,r)}var ai={};function si(){return new pi(sn(),rn())}function ci(e,t,n,i,r,o){var a=t[1],s=a.data[e+8],c=ui(s,a,n,null==i?Pt(s)&&Qn:i!=a&&0!=(3&s.type),r&Ze.Host&&o===s);return null!==c?li(t,a,c,s):ai}function ui(e,t,n,i,r){for(var o=e.providerIndexes,a=t.data,s=1048575&o,c=e.directiveStart,u=o>>20,l=r?s+u:e.directiveEnd,h=i?s:s+u;h<l;h++){var d=a[h];if(h<c&&n===d||h>=c&&d.type===n)return h}if(r){var f=a[c];if(f&&At(f)&&f.type===n)return c}return null}function li(e,t,n,i){var r=e[n],o=t.data;if(r instanceof Bn){var a=r;a.resolving&&function(e,t){throw new Re("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Le(o[n]));var s=Kn(a.canSeeViewProviders);a.resolving=!0;var c=a.injectImpl?Qe(a.injectImpl):null;wn(e,i,Ze.Default);try{r=e[n]=a.factory(void 0,o,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=Dt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{null!==c&&Qe(c),Kn(s),a.resolving=!1,On()}}return r}function hi(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(ft)?e[ft]:void 0;return"number"==typeof t?t>=0?255&t:si:t}function di(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function fi(e,t){return!(e&Ze.Self||e&Ze.Host&&t)}var pi=function(){function e(t,n){s(this,e),this._tNode=t,this._lView=n}return a(e,[{key:"get",value:function(e,t){return oi(this._tNode,this._lView,e,void 0,t)}}]),e}();function vi(e){return Je(function(){for(var t=e.prototype.constructor,n=t[dt]||mi(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var o=r[dt]||mi(r);if(o&&o!==n)return o;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function mi(e){return Ae(e)?function(){var t=mi(Me(e));return t&&t()}:Rt(e)}function gi(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var o=n[r];if(zn(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(o===t)return n[r+1];r+=2}}return null}(sn(),e)}var yi="__parameters__";function bi(e,t,n){return Je(function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=E(r,t);return a.annotation=o,a;function a(e,t,n){for(var i=e.hasOwnProperty(yi)?e[yi]:Object.defineProperty(e,yi,{value:[]})[yi];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(o),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}var _i=function(){function e(t,n){s(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ve({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return a(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),ki=new _i("AnalyzeForEntryComponents"),wi=Function;function Si(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Si(i,t)):t!==e&&t.push(i)}return t}function Ci(e,t){e.forEach(function(e){return Array.isArray(e)?Ci(e,t):t(e)})}function Ei(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Oi(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function Ti(e,t,n){var i=Pi(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Ii(e,t){var n=Pi(e,t);if(n>=0)return e[1|n]}function Pi(e,t){return function(e,t,n){for(var i=0,r=e.length>>1;r!==i;){var o=i+(r-i>>1),a=e[o<<1];if(t===a)return o<<1;a>t?r=o:i=o+1}return~(r<<1)}(e,t)}var Mi={},Ai=/\n/gm,Ri="__source",Ni=Ee({provide:String,useValue:Ee}),Li=void 0;function Di(e){var t=Li;return Li=e,t}function Vi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default;if(void 0===Li)throw new Error("inject() must be called from an injection context");return null===Li?Ke(e,void 0,t):Li.get(e,t&Ze.Optional?null:void 0,t)}function ji(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default;return(Ye()||Vi)(Me(e),t)}var Fi=ji;function Bi(e){for(var t=[],n=0;n<e.length;n++){var i=Me(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=Ze.Default,a=0;a<i.length;a++){var s=i[a],c=s.__NG_DI_FLAG__;"number"==typeof c?-1===c?r=s.token:o|=c:r=s}t.push(ji(r,o))}else t.push(ji(i))}return t}function Ui(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}function zi(e,t,n,i){var r=e.ngTempTokenPath;throw t[Ri]&&r.unshift(t[Ri]),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=Oe(t);if(Array.isArray(t))r=t.map(Oe).join(" -> ");else if("object"==typeof t){var o=[];for(var a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Oe(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Ai,"\n "))}("\n"+e.message,r,n,i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}var Hi,Wi,Gi=Ui(bi("Inject",function(e){return{token:e}}),-1),qi=Ui(bi("Optional"),8),Zi=Ui(bi("SkipSelf"),4);function Yi(e){var t;return(null===(t=function(){if(void 0===Hi&&(Hi=null,rt.trustedTypes))try{Hi=rt.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Hi}())||void 0===t?void 0:t.createHTML(e))||e}function Qi(e){var t;return(null===(t=function(){if(void 0===Wi&&(Wi=null,rt.trustedTypes))try{Wi=rt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Wi}())||void 0===t?void 0:t.createHTML(e))||e}var Ki=function(){function e(t){s(this,e),this.changingThisBreaksApplicationSecurity=t}return a(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),Ji=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Ki),Xi=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Ki),$i=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Ki),er=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Ki),tr=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Ki);function nr(e){return e instanceof Ki?e.changingThisBreaksApplicationSecurity:e}function ir(e,t){var n=rr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function rr(e){return e instanceof Ki&&e.getTypeName()||null}var or=function(){function e(t){s(this,e),this.inertDocumentHelper=t}return a(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(Yi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),ar=function(){function e(t){if(s(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return a(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Yi(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=Yi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),sr=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,cr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ur(e){return(e=String(e)).match(sr)||e.match(cr)?e:"unsafe:"+e}function lr(e){var t,n={},i=g(e.split(","));try{for(i.s();!(t=i.n()).done;)n[t.value]=!0}catch(r){i.e(r)}finally{i.f()}return n}function hr(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a)a.hasOwnProperty(s)&&(e[s]=!0)}return e}var dr,fr=lr("area,br,col,hr,img,wbr"),pr=lr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),vr=lr("rp,rt"),mr=hr(vr,pr),gr=hr(fr,hr(pr,lr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),hr(vr,lr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),mr),yr=lr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),br=lr("srcset"),_r=hr(yr,br,lr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),lr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),kr=lr("script,style,template"),wr=function(){function e(){s(this,e),this.sanitizedSomething=!1,this.buf=[]}return a(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t,n=e.nodeName.toLowerCase();if(!gr.hasOwnProperty(n))return this.sanitizedSomething=!0,!kr.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var i=e.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(_r.hasOwnProperty(s)){var c=o.value;yr[s]&&(c=ur(c)),br[s]&&(t=c,c=(t=String(t)).split(",").map(function(e){return ur(e.trim())}).join(", ")),this.buf.push(" ",a,'="',Er(c),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();gr.hasOwnProperty(t)&&!fr.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(Er(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/([^\#-~ |!])/g;function Er(e){return e.replace(/&/g,"&").replace(Sr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Cr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function xr(e,t){var n=null;try{dr=dr||function(e){var t=new ar(e);return function(){try{return!!(new window.DOMParser).parseFromString(Yi(""),"text/html")}catch(e){return!1}}()?new or(t):t}(e);var i=t?String(t):"";n=dr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=dr.getInertBodyElement(i)}while(i!==o);return Yi((new wr).sanitizeChildren(Or(n)||n))}finally{if(n)for(var a=Or(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Or(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Tr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ir(e){var t=Mr();return t?Qi(t.sanitize(Tr.HTML,e)||""):ir(e,"HTML")?Qi(nr(e)):xr(Ut(),Ne(e))}function Pr(e){var t=Mr();return t?t.sanitize(Tr.URL,e)||"":ir(e,"URL")?nr(e):ur(Ne(e))}function Mr(){var e=rn();return e&&e[12]}function Ar(e,t){e.__ngContext__=t}function Rr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Nr(e){return e.ngOriginalError}function Lr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var Dr=function(){function e(){s(this,e),this._console=console}return a(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Lr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?function(e){return e.ngDebugContext}(e)||this._findContext(Nr(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Nr(e);t&&Nr(t);)t=Nr(t);return t}}]),e}(),Vr=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(rt)}();function jr(e){return e.ownerDocument.defaultView}function Fr(e){return e.ownerDocument}function Br(e){return e instanceof Function?e():e}var Ur=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function zr(e,t){return(void 0)(e,t)}function Hr(e){var t=e[3];return Tt(t)?t[3]:t}function Wr(e){return qr(e[13])}function Gr(e){return qr(e[4])}function qr(e){for(;null!==e&&!Tt(e);)e=e[4];return e}function Zr(e,t,n,i,r){if(null!=i){var o,a=!1;Tt(i)?o=i:Ot(i)&&(a=!0,i=i[0]);var s=Wt(i);0===e&&null!==n?null==r?no(t,n,s):to(t,n,s,r||null,!0):1===e&&null!==n?to(t,n,s,r||null,!0):2===e?function(e,t,n){var i=ro(e,t);i&&function(e,t,n,i){zt(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,a):3===e&&t.destroyNode(s),null!=o&&function(e,t,n,i,r){var o=n[7];o!==Wt(n)&&Zr(t,e,i,o,r);for(var a=xt;a<n.length;a++){var s=n[a];fo(s[1],s,e,t,i,o)}}(t,e,o,n,r)}}function Yr(e,t){return zt(e)?e.createText(t):e.createTextNode(t)}function Qr(e,t,n){return zt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Kr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,en(r,-1)),n.splice(i,1)}function Jr(e,t){if(!(e.length<=xt)){var n,i=xt+t,r=e[i];if(r){var o=r[17];null!==o&&o!==e&&Kr(o,r),t>0&&(e[i-1][4]=r[4]);var a=xi(e,xt+t);fo(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Xr(e,t){if(!(256&t[2])){var n=t[11];zt(n)&&n.destroyNode&&fo(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return $r(e[1],e);for(;t;){var n=null;if(Ot(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)Ot(t)&&$r(t[1],t),t=t[3];null===t&&(t=e),Ot(t)&&$r(t[1],t),n=t&&t[4]}t=n}}(t)}}function $r(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Bn)){var o=n[i+1];if(Array.isArray(o))for(var a=0;a<o.length;a+=2){var s=r[o[a]],c=o[a+1];try{c.call(s)}finally{}}else try{o.call(r)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],s="function"==typeof a?a(t):Wt(t[a]),c=i[r=n[o+2]],u=n[o+3];"boolean"==typeof u?s.removeEventListener(n[o],c,u):u>=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var l=i[r=n[o+1]];n[o].call(l)}if(null!==i){for(var h=r+1;h<i.length;h++)(0,i[h])();t[7]=null}}(e,t),1===t[1].type&&zt(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&Tt(t[3])){n!==t[3]&&Kr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function eo(e,t,n){return function(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===$e.None||r===$e.Emulated)return null}return qt(i,n)}(e,t.parent,n)}function to(e,t,n,i,r){zt(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function no(e,t,n){zt(e)?e.appendChild(t,n):t.appendChild(n)}function io(e,t,n,i,r){null!==i?to(e,t,n,i,r):no(e,t,n)}function ro(e,t){return zt(e)?e.parentNode(t):t.parentNode}function oo(e,t,n){return ao(e,t,n)}var ao=function(e,t,n){return 40&e.type?qt(e,n):null};function so(e,t,n,i){var r=eo(e,i,t),o=t[11],a=oo(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)io(o,r,n[s],a,!1);else io(o,r,n,a,!1)}function co(e,t){if(null!==t){var n=t.type;if(3&n)return qt(t,e);if(4&n)return lo(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return co(e,i);var r=e[t.index];return Tt(r)?lo(-1,r):Wt(r)}if(32&n)return zr(t,e)()||Wt(e[t.index]);var o=uo(e,t);return null!==o?Array.isArray(o)?o[0]:co(Hr(e[16]),o):co(e,t.next)}return null}function uo(e,t){return null!==t?e[16][6].projection[t.projection]:null}function lo(e,t){var n=xt+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return co(i,r)}return t[7]}function ho(e,t,n,i,r,o,a){for(;null!=n;){var s=i[n.index],c=n.type;if(a&&0===t&&(s&&Ar(Wt(s),i),n.flags|=4),64!=(64&n.flags))if(8&c)ho(e,t,n.child,i,r,o,!1),Zr(t,e,r,s,o);else if(32&c){for(var u=zr(n,i),l=void 0;l=u();)Zr(t,e,r,l,o);Zr(t,e,r,s,o)}else 16&c?vo(e,t,i,n,r,o):Zr(t,e,r,s,o);n=a?n.projectionNext:n.next}}function fo(e,t,n,i,r,o){ho(n,i,e.firstChild,t,r,o,!1)}function po(e,t,n){vo(t[11],0,t,n,eo(e,n,t),oo(n.parent||t[6],n,t))}function vo(e,t,n,i,r,o){var a=n[16],s=a[6].projection[i.projection];if(Array.isArray(s))for(var c=0;c<s.length;c++)Zr(t,e,r,s[c],o);else ho(e,t,s,a[3],r,o,!0)}function mo(e,t,n){zt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function go(e,t,n){zt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function yo(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var o=t.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}n=r+1}}var bo="ng-template";function _o(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==yo((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function ko(e){return 4===e.type&&e.value!==bo}function wo(e,t,n){return t===(4!==e.type||n?e.value:bo)}function So(e,t,n){for(var i=4,r=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(zn(e[t]))return t;return e.length}(r),a=!1,s=0;s<t.length;s++){var c=t[s];if("number"!=typeof c){if(!a)if(4&i){if(i=2|1&i,""!==c&&!wo(e,c,n)||""===c&&1===t.length){if(Co(i))return!1;a=!0}}else{var u=8&i?c:t[++s];if(8&i&&null!==e.attrs){if(!_o(e.attrs,u,n)){if(Co(i))return!1;a=!0}continue}var l=Eo(8&i?"class":c,r,ko(e),n);if(-1===l){if(Co(i))return!1;a=!0;continue}if(""!==u){var h;h=l>o?"":r[l+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==yo(d,u,0)||2&i&&u!==h){if(Co(i))return!1;a=!0}}}}else{if(!a&&!Co(i)&&!Co(c))return!1;if(a&&Co(c))continue;a=!1,i=c|1&i}}return Co(i)||a}function Co(e){return 0==(1&e)}function Eo(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var o=!1;r<t.length;){var a=t[r];if(a===e)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function xo(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(So(e,t[i],n))return!0;return!1}function Oo(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function To(e,t){return e?":not("+t.trim()+")":t}function Io(e){for(var t=e[0],n=1,i=2,r="",o=!1;n<e.length;){var a=e[n];if("string"==typeof a)if(2&i){var s=e[++n];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||Co(a)||(t+=To(o,r),r=""),i=a,o=o||!Co(i);n++}return""!==r&&(t+=To(o,r)),t}var Po={};function Mo(e){Ao(on(),rn(),Pn()+e,dn())}function Ao(e,t,n,i){if(!i)if(3==(3&t[2])){var r=e.preOrderCheckHooks;null!==r&&Nn(t,r,n)}else{var o=e.preOrderHooks;null!==o&&Ln(t,o,0,n)}Mn(n)}function Ro(e,t){return e<<17|t<<2}function No(e){return e>>17&32767}function Lo(e){return 2|e}function Do(e){return(131068&e)>>2}function Vo(e,t){return-131069&e|t<<2}function jo(e){return 1|e}function Fo(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var o=e.data[r];_n(n[i]),o.contentQueries(2,t[r],r)}}}function Bo(e,t,n,i,r,o,a,s,c,u){var l=t.blueprint.slice();return l[0]=r,l[2]=140|i,$t(l),l[3]=l[15]=e,l[8]=n,l[10]=a||e&&e[10],l[11]=s||e&&e[11],l[12]=c||e&&e[12]||null,l[9]=u||e&&e[9]||null,l[6]=o,l[16]=2==t.type?e[16]:l,l}function Uo(e,t,n,i,r){var o,a,s=e.data[t];if(null===s)s=function(e,t,n,i,r){var o=cn(),a=ln(),s=e.data[t]=function(e,t,n,i,r,o){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==o&&(a?null==o.child&&null!==s.parent&&(o.child=s):null===o.next&&(o.next=s)),s}(e,t,n,i,r),tn.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;var c=(a=(o=tn.lFrame).currentTNode,o.isParent?a:a.parent);s.injectorIndex=null===c?-1:c.injectorIndex}return un(s,!0),s}function zo(e,t,n,i){if(0===n)return-1;for(var r=t.length,o=0;o<n;o++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Ho(e,t,n){Sn(t);try{var i=e.viewQuery;null!==i&&ba(1,i,n);var r=e.template;null!==r&&qo(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Fo(e,t),e.staticViewQueries&&ba(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)pa(e,t[n])}(t,o)}catch(a){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),a}finally{t[2]&=-5,Tn()}}function Wo(e,t,n,i){var r=t[2];if(256!=(256&r)){Sn(t);var o=dn();try{$t(t),tn.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&qo(e,t,n,2,i);var a=3==(3&r);if(!o)if(a){var s=e.preOrderCheckHooks;null!==s&&Nn(t,s,null)}else{var c=e.preOrderHooks;null!==c&&Ln(t,c,0,null),Dn(t,0)}if(function(e){for(var t=Wr(e);null!==t;t=Gr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];0==(1024&r[2])&&en(r[3],1),r[2]|=1024}}(t),function(e){for(var t=Wr(e);null!==t;t=Gr(t))for(var n=xt;n<t.length;n++){var i=t[n],r=i[1];Jt(i)&&Wo(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Fo(e,t),!o)if(a){var u=e.contentCheckHooks;null!==u&&Nn(t,u)}else{var l=e.contentHooks;null!==l&&Ln(t,l,1),Dn(t,1)}!function(e,t){var n,i,r=e.hostBindingOpCodes;if(null!==r)try{for(var o=0;o<r.length;o++){var a=r[o];if(a<0)Mn(~a);else{var s=a,c=r[++o],u=r[++o];n=s,i=void 0,(i=tn.lFrame).bindingIndex=i.bindingRootIndex=c,gn(n),u(2,t[s])}}}finally{Mn(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)da(e,t[n])}(t,h);var d=e.viewQuery;if(null!==d&&ba(2,d,i),!o)if(a){var f=e.viewCheckHooks;null!==f&&Nn(t,f)}else{var p=e.viewHooks;null!==p&&Ln(t,p,2),Dn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,en(t[3],-1))}finally{Tn()}}}function Go(e,t,n,i){var r=t[10],o=!dn(),a=Kt(t);try{o&&!a&&r.begin&&r.begin(),a&&Ho(e,t,i),Wo(e,t,n,i)}finally{o&&!a&&r.end&&r.end()}}function qo(e,t,n,i,r){var o=Pn(),a=2&i;try{Mn(-1),a&&t.length>Et&&Ao(e,t,Et,dn()),n(i,r)}finally{Mn(o)}}function Zo(e,t,n){if(It(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var o=e.data[r];o.contentQueries&&o.contentQueries(1,n[r],r)}}function Yo(e,t,n){nn()&&(function(e,t,n,i){var r=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Xn(n,t),Ar(i,t);for(var a=n.initialInputs,s=r;s<o;s++){var c=e.data[s],u=At(c);u&&ca(t,n,c);var l=li(t,e,s,n);Ar(l,t),null!==a&&ua(0,s-r,l,c,0,a),u&&(Qt(n.index,t)[8]=l)}}(e,t,n,qt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,o=n.index,a=tn.lFrame.currentDirectiveIndex;try{Mn(o);for(var s=i;s<r;s++){var c=e.data[s],u=t[s];gn(s),null===c.hostBindings&&0===c.hostVars&&null===c.hostAttrs||ia(c,u)}}finally{Mn(-1),gn(a)}}(e,t,n))}function Qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qt,i=t.localNames;if(null!==i)for(var r=t.index+1,o=0;o<i.length;o+=2){var a=i[o+1],s=-1===a?n(t,e):e[a];e[r++]=s}}function Ko(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Jo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Jo(e,t,n,i,r,o,a,s,c,u){var l=Et+i,h=l+r,d=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Po);return n}(l,h),f="function"==typeof u?u():u;return d[1]={type:e,blueprint:d,template:n,queries:null,viewQuery:s,declTNode:t,data:d.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1}}function Xo(e,t,n,i){var r=ka(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&wa(e).push(i,r.length-1))}function $o(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function ea(e,t,n,i,r,o,a,s){var c,u,l=qt(t,n),h=t.inputs;!s&&null!=h&&(c=h[i])?(Ea(e,n,c,i,r),Pt(t)&&function(e,t){var n=Qt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=a?a(r,t.value||"",i):r,zt(o)?o.setProperty(l,i,r):Hn(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function ta(e,t,n,i){var r=!1;if(nn()){var o=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var o=0;o<i.length;o++){var a=i[o];xo(n,a.selectors,!1)&&(r||(r=[]),ni(Xn(n,t),e,a.type),At(a)?(ra(e,n),r.unshift(a)):r.push(a))}return r}(e,t,n),a=null===i?null:{"":-1};if(null!==o){r=!0,aa(n,e.data.length,o.length);for(var s=0;s<o.length;s++){var c=o[s];c.providersResolver&&c.providersResolver(c)}for(var u=!1,l=!1,h=zo(e,t,o.length,null),d=0;d<o.length;d++){var f=o[d];n.mergedAttrs=Wn(n.mergedAttrs,f.hostAttrs),sa(e,n,t,h,f),oa(h,f,a),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),l||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),h++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,o=[],a=null,s=null,c=t.directiveStart;c<n;c++){var u=i[c],l=u.inputs,h=null===r||ko(t)?null:la(l,r);o.push(h),a=$o(l,c,a),s=$o(u.outputs,c,s)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=a,t.outputs=s}(e,n)}a&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var o=n[t[r+1]];if(null==o)throw new Re("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],o)}}(n,i,a)}return n.mergedAttrs=Wn(n.mergedAttrs,n.attrs),r}function na(e,t,n,i,r,o){var a=o.hostBindings;if(a){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var c=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=c&&s.push(c),s.push(i,r,a)}}function ia(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ra(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function oa(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;At(t)&&(n[""]=e)}}function aa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function sa(e,t,n,i,r){e.data[i]=r;var o=r.factory||(r.factory=Rt(r.type)),a=new Bn(o,At(r),null);e.blueprint[i]=a,n[i]=a,na(e,t,0,i,zo(e,n,r.hostVars,Po),r)}function ca(e,t,n){var i=qt(t,e),r=Ko(n),o=e[10],a=va(e,Bo(e,r,null,n.onPush?64:16,i,t,o,o.createRenderer(i,n),null,null));e[t.index]=a}function ua(e,t,n,i,r,o){var a=o[t];if(null!==a)for(var s=i.setInput,c=0;c<a.length;){var u=a[c++],l=a[c++],h=a[c++];null!==s?i.setInput(n,h,u,l):n[l]=h}}function la(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ha(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function da(e,t){var n=Qt(t,e);if(Jt(n)){var i=n[1];80&n[2]?Wo(i,n,i.template,n[8]):n[5]>0&&fa(n)}}function fa(e){for(var t=Wr(e);null!==t;t=Gr(t))for(var n=xt;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Wo(r,i,r.template,i[8])}else i[5]>0&&fa(i)}var o=e[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Qt(o[a],e);Jt(s)&&s[5]>0&&fa(s)}}function pa(e,t){var n=Qt(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Ho(i,n,n[8])}function va(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ma(e){for(;e;){e[2]|=64;var t=Hr(e);if(0!=(512&e[2])&&!t)return e;e=t}return null}function ga(e,t,n){var i=t[10];i.begin&&i.begin();try{Wo(e,t,e.template,n)}catch(r){throw Ca(t,r),r}finally{i.end&&i.end()}}function ya(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=Rr(n),r=i[1];Go(r,i,r.template,n)}}(e[8])}function ba(e,t,n){_n(0),t(e,n)}var _a=function(){return Promise.resolve(null)}();function ka(e){return e[7]||(e[7]=[])}function wa(e){return e.cleanup||(e.cleanup=[])}function Sa(e,t,n){return(null===e||At(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Ca(e,t){var n=e[9],i=n?n.get(Dr,null):null;i&&i.handleError(t)}function Ea(e,t,n,i,r){for(var o=0;o<n.length;){var a=n[o++],s=n[o++],c=t[a],u=e.data[a];null!==u.setInput?u.setInput(c,r,i,s):c[s]=r}}function xa(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,o=0;if(null!==t)for(var a=0;a<t.length;a++){var s=t[a];"number"==typeof s?o=s:1==o?r=Te(r,s):2==o&&(i=Te(i,s+": "+t[++a]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var Oa=new _i("INJECTOR",-1),Ta=function(){function e(){s(this,e)}return a(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mi;if(t===Mi){var n=new Error("NullInjectorError: No provider for ".concat(Oe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Ia=new _i("Set Injector scope."),Pa={},Ma={},Aa=void 0;function Ra(){return void 0===Aa&&(Aa=new Ta),Aa}function Na(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new La(e,n,t||Ra(),i)}var La=function(){function e(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&Ci(n,function(e){return r.processProvider(e,t,n)}),Ci([t],function(e){return r.processInjectorType(e,[],a)}),this.records.set(Oa,ja(void 0,this));var c=this.records.get(Ia);this.scope=null!=c?c.value:null,this.source=o||("object"==typeof t?null:Oe(t))}return a(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ze.Default;this.assertNotDestroyed();var i=Di(this),r=Qe(void 0);try{if(!(n&Ze.SkipSelf)){var o=this.records.get(e);if(void 0===o){var a=Ua(e)&&Fe(e);o=a&&this.injectableDefInScope(a)?ja(Da(e),Pa):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}var s=n&Ze.Self?Ra():this.parent;return s.get(e,t=n&Ze.Optional&&t===Mi?null:t)}catch(WP){if("NullInjectorError"===WP.name){var c=WP.ngTempTokenPath=WP.ngTempTokenPath||[];if(c.unshift(Oe(e)),i)throw WP;return zi(WP,e,"R3InjectorError",this.source)}throw WP}finally{Qe(r),Di(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(Oe(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=Me(e)))return!1;var r=Ue(e),o=null==r&&e.ngModule||void 0,a=void 0===o?e:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Ue(o)),null==r)return!1;if(null!=r.imports&&!s){var c;n.push(a);try{Ci(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===c&&(c=[]),c.push(e))})}finally{}if(void 0!==c)for(var u=function(e){var t=c[e],n=t.ngModule,r=t.providers;Ci(r,function(e){return i.processProvider(e,n,r||at)})},l=0;l<c.length;l++)u(l)}this.injectorDefTypes.add(a);var h=Rt(a)||function(){return new a};this.records.set(a,ja(h,Pa));var d=r.providers;if(null!=d&&!s){var f=e;Ci(d,function(e){return i.processProvider(e,f,d)})}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Ba(e=Me(e))?e:Me(e&&e.provide),r=function(e,t,n){return Fa(e)?ja(void 0,e.useValue):ja(Va(e),Pa)}(e);if(Ba(e)||!0!==e.multi)this.records.get(i);else{var o=this.records.get(i);o||((o=ja(void 0,Pa,!0)).factory=function(){return Bi(o.multi)},this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Pa&&(t.value=Ma,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){if(!e.providedIn)return!1;var t=Me(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}]),e}();function Da(e){var t=Fe(e),n=null!==t?t.factory:Rt(e);if(null!==n)return n;if(e instanceof _i)throw new Error("Token ".concat(Oe(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Oi(t,"?");throw new Error("Can't resolve all parameters for ".concat(Oe(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[He]||e[Ge]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Va(e,t,n){var i,r=void 0;if(Ba(e)){var o=Me(e);return Rt(o)||Da(o)}if(Fa(e))r=function(){return Me(e.useValue)};else if((i=e)&&i.useFactory)r=function(){return e.useFactory.apply(e,C(Bi(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))r=function(){return ji(Me(e.useExisting))};else{var a=Me(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Rt(a)||Da(a);r=function(){return E(a,C(Bi(e.deps)))}}return r}function ja(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Fa(e){return null!==e&&"object"==typeof e&&Ni in e}function Ba(e){return"function"==typeof e}function Ua(e){return"function"==typeof e||"object"==typeof e&&e instanceof _i}var za=function(e,t,n){return function(e){var t=Na(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ha=function(){var e=function(){function e(){s(this,e)}return a(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?za(e,t,""):za(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Mi,e.NULL=new Ta,e.\u0275prov=Ve({token:e,providedIn:"any",factory:function(){return ji(Oa)}}),e.__NG_ELEMENT_ID__=-1,e}();function Wa(e,t){Rn(Rr(e)[1],sn())}function Ga(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var r=void 0;if(At(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var o=e;o.inputs=qa(e.inputs),o.declaredInputs=qa(e.declaredInputs),o.outputs=qa(e.outputs);var a=r.hostBindings;a&&Qa(e,a);var s=r.viewQuery,c=r.contentQueries;if(s&&Za(e,s),c&&Ya(e,c),xe(e.inputs,r.inputs),xe(e.declaredInputs,r.declaredInputs),xe(e.outputs,r.outputs),At(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var l=r.features;if(l)for(var h=0;h<l.length;h++){var d=l[h];d&&d.ngInherit&&d(e),d===Ga&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Wn(r.hostAttrs,n=Wn(n,r.hostAttrs))}}(i)}function qa(e){return e===ot?{}:e===at?[]:e}function Za(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Ya(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Qa(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ka=null;function Ja(){if(!Ka){var e=rt.Symbol;if(e&&e.iterator)Ka=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ka=i)}}return Ka}var Xa=function(){function e(t){s(this,e),this.wrapped=t}return a(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function $a(e){return!!es(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ja()in e)}function es(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ts(e,t,n){return e[t]=n}function ns(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function is(e,t,n,i){var r=rn();return ns(r,vn(),t)&&(on(),function(e,t,n,i,r,o){var a=qt(e,t);!function(e,t,n,i,r,o,a){if(null==o)zt(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==a?Ne(o):a(o,i||"",r);zt(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}(t[11],a,o,e.value,n,i,r)}(An(),r,e,t,n,i)),is}function rs(e,t,n,i){return ns(e,vn(),n)?t+Ne(n)+i:Po}function os(e,t,n,i,r,o,a,s){var c=rn(),u=on(),l=e+Et,h=u.firstCreatePass?function(e,t,n,i,r,o,a,s,c){var u=t.consts,l=Uo(t,e,4,a||null,Xt(u,s));ta(t,n,l,Xt(u,c)),Rn(t,l);var h=l.tViews=Jo(2,l,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,l),h.queries=t.queries.embeddedTView(l)),l}(l,u,c,t,n,i,r,o,a):u.data[l];un(h,!1);var d=c[11].createComment("");so(u,c,d,h),Ar(d,c),va(c,c[l]=ha(d,c,d,h)),Mt(h)&&Yo(u,c,h),null!=a&&Qo(c,h,s)}function as(e){return Yt(tn.lFrame.contextLView,Et+e)}function ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze.Default,n=rn();if(null===n)return ji(e,t);var i=sn();return oi(i,n,Me(e),t)}function cs(e,t,n){var i=rn();return ns(i,vn(),t)&&ea(on(),An(),i,e,t,i[11],n,!1),cs}function us(e,t,n,i,r){var o=r?"class":"style";Ea(e,n,t.inputs[o],o,i)}function ls(e,t,n,i){var r=rn(),o=on(),a=Et+e,s=r[11],c=r[a]=Qr(s,t,tn.lFrame.currentNamespace),u=o.firstCreatePass?function(e,t,n,i,r,o,a){var s=t.consts,c=Uo(t,e,2,r,Xt(s,o));return ta(t,n,c,Xt(s,a)),null!==c.attrs&&xa(c,c.attrs,!1),null!==c.mergedAttrs&&xa(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(a,o,r,0,t,n,i):o.data[a];un(u,!0);var l=u.mergedAttrs;null!==l&&Un(s,c,l);var h=u.classes;null!==h&&go(s,c,h);var d=u.styles;null!==d&&mo(s,c,d),64!=(64&u.flags)&&so(o,r,c,u),0===tn.lFrame.elementDepthCount&&Ar(c,r),tn.lFrame.elementDepthCount++,Mt(u)&&(Yo(o,r,u),Zo(o,u,r)),null!==i&&Qo(r,u)}function hs(){var e=sn();ln()?hn():un(e=e.parent,!1);var t=e;tn.lFrame.elementDepthCount--;var n=on();n.firstCreatePass&&(Rn(n,e),It(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&us(n,t,rn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&us(n,t,rn(),t.stylesWithoutHost,!1)}function ds(e,t,n,i){ls(e,t,n,i),hs()}function fs(e,t,n){var i=rn(),r=on(),o=e+Et,a=r.firstCreatePass?function(e,t,n,i,r){var o=t.consts,a=Xt(o,i),s=Uo(t,e,8,"ng-container",a);return null!==a&&xa(s,a,!0),ta(t,n,s,Xt(o,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(o,r,i,t,n):r.data[o];un(a,!0);var s=i[o]=i[11].createComment("");so(r,i,s,a),Ar(s,i),Mt(a)&&(Yo(r,i,a),Zo(r,a,i)),null!=n&&Qo(i,a)}function ps(){var e=sn(),t=on();ln()?hn():un(e=e.parent,!1),t.firstCreatePass&&(Rn(t,e),It(e)&&t.queries.elementEnd(e))}function vs(){return rn()}function ms(e){return!!e&&"function"==typeof e.then}function gs(e){return!!e&&"function"==typeof e.subscribe}var ys=gs;function bs(e,t,n,i){var r=rn(),o=on(),a=sn();return ks(o,r,r[11],a,e,t,!!n,i),bs}function _s(e,t){var n=sn(),i=rn(),r=on();return ks(r,i,Sa(yn(r.data),n,i),n,e,t,!1),_s}function ks(e,t,n,i,r,o,a,s){var c=Mt(i),u=e.firstCreatePass&&wa(e),l=ka(t),h=!0;if(3&i.type||s){var d=qt(i,t),f=s?s(d):d,p=l.length,v=s?function(e){return s(Wt(e[i.index]))}:i.index;if(zt(n)){var m=null;if(!s&&c&&(m=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var o=0;o<r.length-1;o+=2){var a=r[o];if(a===n&&r[o+1]===i){var s=t[7],c=r[o+2];return s.length>c?s[c]:null}"string"==typeof a&&(o+=2)}return null}(e,t,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=Ss(i,t,0,o,!1);var g=n.listen(f,r,o);l.push(o,g),u&&u.push(r,v,p,p+1)}}else o=Ss(i,t,0,o,!0),f.addEventListener(r,o,a),l.push(o),u&&u.push(r,v,p,a)}else o=Ss(i,t,0,o,!1);var y,b=i.outputs;if(h&&null!==b&&(y=b[r])){var _=y.length;if(_)for(var k=0;k<_;k+=2){var w=t[y[k]][y[k+1]].subscribe(o),S=l.length;l.push(o,w),u&&u.push(r,i.index,S,-(S+1))}}}function ws(e,t,n,i){try{return!1!==n(i)}catch(r){return Ca(e,r),!1}}function Ss(e,t,n,i,r){return function n(o){if(o===Function)return i;var a=2&e.flags?Qt(e.index,t):t;0==(32&t[2])&&ma(a);for(var s=ws(t,0,i,o),c=n.__ngNextListenerFn__;c;)s=ws(t,0,c,o)&&s,c=c.__ngNextListenerFn__;return r&&!1===s&&(o.preventDefault(),o.returnValue=!1),s}}function Cs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return In(e)}function Es(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var o=t[r];if("*"!==o){if(null===i?xo(e,o,!0):Oo(i,o))return r}else n=r}return n}function xs(e){var t=rn()[16][6];if(!t.projection)for(var n=t.projection=Oi(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var o=e?Es(r,e):0;null!==o&&(i[o]?i[o].projectionNext=r:n[o]=r,i[o]=r),r=r.next}}function Os(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=rn(),r=on(),o=Uo(r,Et+e,16,null,n||null);null===o.projection&&(o.projection=t),hn(),64!=(64&o.flags)&&po(r,i,o)}function Ts(e,t,n){return Is(e,"",t,"",n),Ts}function Is(e,t,n,i,r){var o=rn(),a=rs(o,t,n,i);return a!==Po&&ea(on(),An(),o,e,a,o[11],r,!1),Is}function Ps(e,t,n,i,r){for(var o=e[n+1],a=null===t,s=i?No(o):Do(o),c=!1;0!==s&&(!1===c||a);){var u=e[s+1];Ms(e[s],t)&&(c=!0,e[s+1]=i?jo(u):Lo(u)),s=i?No(u):Do(u)}c&&(e[n+1]=i?Lo(o):jo(o))}function Ms(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Pi(e,t)>=0}var As={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rs(e){return e.substring(As.key,As.keyEnd)}function Ns(e,t){var n=As.textEnd;return n===t?-1:(t=As.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,As.key=t,n),Ls(e,t,n))}function Ls(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ds(e,t,n){return Fs(e,t,n,!1),Ds}function Vs(e,t){return Fs(e,t,null,!0),Vs}function js(e,t){for(var n=function(e){return function(e){As.key=0,As.keyEnd=0,As.value=0,As.valueEnd=0,As.textEnd=e.length}(e),Ns(e,Ls(e,0,As.textEnd))}(t);n>=0;n=Ns(t,n))Ti(e,Rs(t),!0)}function Fs(e,t,n,i){var r=rn(),o=on(),a=mn(2);o.firstUpdatePass&&Us(o,e,a,i),t!==Po&&ns(r,a,t)&&Ws(o,o.data[Pn()],r,r[11],e,r[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Oe(nr(e)))),e}(t,n),i,a)}function Bs(e,t){return t>=e.expandoStartIndex}function Us(e,t,n,i){var r=e.data;if(null===r[n+1]){var o=r[Pn()],a=Bs(e,n);Zs(o,i)&&null===t&&!a&&(t=!1),t=function(e,t,n,i){var r=yn(e),o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=zs(null,e,t,n,i),t.attrs,i),o=null);else{var a=t.directiveStylingLast;if(-1===a||e[a]!==r)if(n=zs(r,e,t,n,i),null===o){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Do(i))return e[No(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[No(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Hs(s=zs(null,e,t,s[1],i),t.attrs,i))}else o=function(e,t,n){for(var i=void 0,r=t.directiveEnd,o=1+t.directiveStylingLast;o<r;o++)i=Hs(i,e[o].hostAttrs,n);return Hs(i,t.attrs,n)}(e,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),n}(r,o,t,i),function(e,t,n,i,r,o){var a=o?t.classBindings:t.styleBindings,s=No(a),c=Do(a);e[i]=n;var u,l=!1;if(Array.isArray(n)?(null===(u=n[1])||Pi(n,u)>0)&&(l=!0):u=n,r)if(0!==c){var h=No(e[s+1]);e[i+1]=Ro(h,s),0!==h&&(e[h+1]=Vo(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ro(s,0),0!==s&&(e[s+1]=Vo(e[s+1],i)),s=i;else e[i+1]=Ro(c,0),0===s?s=i:e[c+1]=Vo(e[c+1],i),c=i;l&&(e[i+1]=Lo(e[i+1])),Ps(e,u,i,!0),Ps(e,u,i,!1),function(e,t,n,i,r){var o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Pi(o,t)>=0&&(n[i+1]=jo(n[i+1]))}(t,u,e,i,o),a=Ro(s,c),o?t.classBindings=a:t.styleBindings=a}(r,o,t,n,a,i)}}function zs(e,t,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<a&&(i=Hs(i,(o=t[s]).hostAttrs,r),o!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Hs(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var o=0;o<t.length;o++){var a=t[o];"number"==typeof a?r=a:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ti(e,a,!!n||t[++o]))}return void 0===e?null:e}function Ws(e,t,n,i,r,o,a,s){if(3&t.type){var c=e.data,u=c[s+1];qs(1==(1&u)?Gs(c,t,n,r,Do(u),a):void 0)||(qs(o)||2==(2&u)&&(o=Gs(c,null,n,r,s,a)),function(e,t,n,i,r){var o=zt(e);if(t)r?o?e.addClass(n,i):n.classList.add(i):o?e.removeClass(n,i):n.classList.remove(i);else{var a=-1===i.indexOf("-")?void 0:Ur.DashCase;if(null==r)o?e.removeStyle(n,i,a):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),a|=Ur.Important),o?e.setStyle(n,i,r,a):n.style.setProperty(i,r,s?"important":"")}}}(i,a,Gt(Pn(),n),r,o))}}function Gs(e,t,n,i,r,o){for(var a=null===t,s=void 0;r>0;){var c=e[r],u=Array.isArray(c),l=u?c[1]:c,h=null===l,d=n[r+1];d===Po&&(d=h?at:void 0);var f=h?Ii(d,i):l===i?d:void 0;if(u&&!qs(f)&&(f=Ii(c,i)),qs(f)&&(s=f,a))return s;var p=e[r+1];r=a?No(p):Do(p)}if(null!==t){var v=o?t.residualClasses:t.residualStyles;null!=v&&(s=Ii(v,i))}return s}function qs(e){return void 0!==e}function Zs(e,t){return 0!=(e.flags&(t?16:32))}function Ys(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=rn(),i=on(),r=e+Et,o=i.firstCreatePass?Uo(i,r,1,t,null):i.data[r],a=n[r]=Yr(n[11],t);so(i,n,a,o),un(o,!1)}function Qs(e){return Ks("",e,""),Qs}function Ks(e,t,n){var i=rn(),r=rs(i,e,t,n);return r!==Po&&function(e,t,n){var i=Gt(t,e);!function(e,t,n){zt(e)?e.setValue(t,n):t.textContent=n}(e[11],i,n)}(i,Pn(),r),Ks}function Js(e,t,n){var i=rn();return ns(i,vn(),t)&&ea(on(),An(),i,e,t,i[11],n,!0),Js}function Xs(e,t,n){var i=rn();if(ns(i,vn(),t)){var r=on(),o=An();ea(r,o,i,e,t,Sa(yn(r.data),o,i),n,!0)}return Xs}var $s=void 0,ec=["en",[["a","p"],["AM","PM"],$s],[["AM","PM"],$s,$s],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$s,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$s,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$s,"{1} 'at' {0}",$s],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],tc={};function nc(e){return e in tc||(tc[e]=rt.ng&&rt.ng.common&&rt.ng.common.locales&&rt.ng.common.locales[e]),tc[e]}var ic=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),rc="en-US";function oc(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function ac(e,t,n){var i=on();if(i.firstCreatePass){var r=At(e);sc(n,i.data,i.blueprint,r,!0),sc(t,i.data,i.blueprint,r,!1)}}function sc(e,t,n,i,r){if(e=Me(e),Array.isArray(e))for(var o=0;o<e.length;o++)sc(e[o],t,n,i,r);else{var a=on(),s=rn(),c=Ba(e)?e:Me(e.provide),u=Va(e),l=sn(),h=1048575&l.providerIndexes,d=l.directiveStart,f=l.providerIndexes>>20;if(Ba(e)||!e.multi){var p=new Bn(u,r,ss),v=lc(c,t,r?h:h+f,d);-1===v?(ni(Xn(l,s),a,c),cc(a,e,t.length),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var m=lc(c,t,h+f,d),g=lc(c,t,h,h+f),y=g>=0&&n[g];if(r&&!y||!r&&!(m>=0&&n[m])){ni(Xn(l,s),a,c);var b=function(e,t,n,i,r){var o=new Bn(e,n,ss);return o.multi=[],o.index=t,o.componentProviders=0,uc(o,r,i&&!n),o}(r?dc:hc,n.length,r,i,u);!r&&y&&(n[g].providerFactory=b),cc(a,e,t.length,0),t.push(c),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else cc(a,e,m>-1?m:g,uc(n[r?g:m],u,!r&&i));!r&&i&&y&&n[g].componentProviders++}}}function cc(e,t,n,i){var r=Ba(t);if(r||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var a=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function uc(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function lc(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function hc(e,t,n,i){return fc(this.multi,[])}function dc(e,t,n,i){var r,o=this.multi;if(this.providerFactory){var a=this.providerFactory.componentProviders,s=li(n,n[1],this.providerFactory.index,i);fc(o,r=s.slice(0,a));for(var c=a;c<s.length;c++)r.push(s[c])}else fc(o,r=[]);return r}function fc(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function pc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return ac(n,i?i(e):e,t)}}}var vc=function e(){s(this,e)},mc=function e(){s(this,e)},gc=function(){function e(){s(this,e)}return a(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Oe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),yc=function(){var e=function e(){s(this,e)};return e.NULL=new gc,e}();function bc(){}function _c(e,t){return new wc(qt(e,t))}var kc=function(){return _c(sn(),rn())},wc=function(){var e=function e(t){s(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=kc,e}();function Sc(e){return e instanceof wc?e.nativeElement:e}var Cc=function e(){s(this,e)},Ec=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=function(){return xc()},e}(),xc=function(){var e=rn(),t=Qt(sn().index,e);return function(e){return e[11]}(Ot(t)?t:e)},Oc=function(){var e=function e(){s(this,e)};return e.\u0275prov=Ve({token:e,providedIn:"root",factory:function(){return null}}),e}(),Tc=function e(t){s(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Ic=new Tc("12.1.3"),Pc=function(){function e(){s(this,e)}return a(e,[{key:"supports",value:function(e){return $a(e)}},{key:"create",value:function(e){return new Ac(e)}}]),e}(),Mc=function(e,t){return t},Ac=function(){function e(t){s(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Mc}return a(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var o=!n||t&&t.currentIndex<Dc(n,i,r)?t:n,a=Dc(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)i++;else{r||(r=[]);var c=a-i,u=s-i;if(c!=u){for(var l=0;l<c;l++){var h=l<r.length?r[l]:r[l]=0,d=h+l;u<=d&&d<c&&(r[l]=h+1)}r[o.previousIndex]=u-c}}a!==s&&e(o,a,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!$a(e))throw new Error("Error trying to diff '".concat(Oe(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=e[s]),null!==o&&Object.is(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),Object.is(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[Ja()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,r)?(a&&(o=t._verifyReinsertion(o,e,r,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new Rc(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Lc),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Lc),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),Rc=function e(t,n){s(this,e),this.item=t,this.trackById=n,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},Nc=function(){function e(){s(this,e),this._head=null,this._tail=null}return a(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Lc=function(){function e(){s(this,e),this.map=new Map}return a(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Nc,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function Dc(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var Vc=function(){function e(){s(this,e)}return a(e,[{key:"supports",value:function(e){return e instanceof Map||es(e)}},{key:"create",value:function(){return new jc}}]),e}(),jc=function(){function e(){s(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return a(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||es(e)))throw new Error("Error trying to diff '".concat(Oe(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;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}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new Fc(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),Fc=function e(t){s(this,e),this.key=t,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 Bc(){return new Uc([new Pc])}var Uc=function(){var e=function(){function e(t){s(this,e),this.factories=t}return a(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||Bc())},deps:[[e,new Zi,new qi]]}}}]),e}();return e.\u0275prov=Ve({token:e,providedIn:"root",factory:Bc}),e}();function zc(){return new Hc([new Vc])}var Hc=function(){var e=function(){function e(t){s(this,e),this.factories=t}return a(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||zc())},deps:[[e,new Zi,new qi]]}}}]),e}();return e.\u0275prov=Ve({token:e,providedIn:"root",factory:zc}),e}();function Wc(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=t[n.index];if(null!==o&&i.push(Wt(o)),Tt(o))for(var a=xt;a<o.length;a++){var s=o[a],c=s[1].firstChild;null!==c&&Wc(s[1],s,c,i)}var u=n.type;if(8&u)Wc(e,t,n.child,i);else if(32&u)for(var l=zr(n,t),h=void 0;h=l();)i.push(h);else if(16&u){var d=uo(t,n);if(Array.isArray(d))i.push.apply(i,C(d));else{var f=Hr(t[16]);Wc(f[1],f,d,i,!0)}}n=r?n.projectionNext:n.next}return i}var Gc=function(){function e(t,n){s(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return a(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Wc(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(Tt(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Jr(e,n),xi(t,n))}this._attachedToViewContainer=!1}Xr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Xo(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ma(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ga(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){fn(!0);try{ga(e,t,n)}finally{fn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,fo(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}]),e}(),qc=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e))._view=e,i}return a(n,[{key:"detectChanges",value:function(){ya(this._view)}},{key:"checkNoChanges",value:function(){!function(e){fn(!0);try{ya(e)}finally{fn(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Gc),Zc=function(e){return function(e,t,n){if(Pt(e)&&!n){var i=Qt(e.index,t);return new Gc(i,i)}return 47&e.type?new Gc(t[16],t):null}(sn(),rn(),16==(16&e))},Yc=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=Zc,e}(),Qc=[new Vc],Kc=new Uc([new Pc]),Jc=new Hc(Qc),Xc=function(){return tu(sn(),rn())},$c=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=Xc,e}(),eu=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this))._declarationLView=e,o._declarationTContainer=i,o.elementRef=r,o}return a(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Bo(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ho(t,n,e),new Gc(n)}}]),n}($c);function tu(e,t){return 4&e.type?new eu(t,e,_c(e,t)):null}var nu=function e(){s(this,e)},iu=function e(){s(this,e)},ru=function(){return uu(sn(),rn())},ou=function(){var e=function e(){s(this,e)};return e.__NG_ELEMENT_ID__=ru,e}(),au=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this))._lContainer=e,o._hostTNode=i,o._hostLView=r,o}return a(n,[{key:"element",get:function(){return _c(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new pi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=ti(this._hostTNode,this._hostLView);if(qn(e)){var t=Yn(e,this._hostLView),n=Zn(e);return new pi(t[1].data[n+8],t)}return new pi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=su(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-xt}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var o=n||this.parentInjector;if(!r&&null==e.ngModule&&o){var a=o.get(nu,null);a&&(r=a)}var s=e.create(o,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(Tt(n[3])){var r=this.indexOf(e);if(-1!==r)this.detach(r);else{var o=n[3],a=new au(o,o[6],o[3]);a.detach(a.indexOf(e))}}var s=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=xt+i,o=n.length;i>0&&(n[r-1][4]=t),i<o-xt?(t[4]=n[r],Ei(n,xt+i,t)):(n.push(t),t[4]=null),t[3]=n;var a=t[17];null!==a&&n!==a&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,c,s);var u=lo(s,c),l=n[11],h=ro(l,c[7]);return null!==h&&function(e,t,n,i,r,o){i[0]=r,i[6]=t,fo(e,i,n,1,r,o)}(i,c[6],l,n,h,u),e.attachToViewContainerRef(),Ei(cu(c),s,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=su(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Jr(this._lContainer,t);n&&(xi(cu(this._lContainer),t),Xr(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Jr(this._lContainer,t);return n&&null!=xi(cu(this._lContainer),t)?new Gc(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(ou);function su(e){return e[8]}function cu(e){return e[8]||(e[8]=[])}function uu(e,t){var n,i=t[e.index];if(Tt(i))n=i;else{var r;if(8&e.type)r=Wt(i);else{var o=t[11];r=o.createComment("");var a=qt(e,t);to(o,ro(o,a),r,function(e,t){return zt(e)?e.nextSibling(t):t.nextSibling}(o,a),!1)}t[e.index]=n=ha(i,t,r,e),va(t,n)}return new au(n,e,t)}var lu={},hu=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this)).ngModule=e,i}return a(n,[{key:"resolveComponentFactory",value:function(e){var t=St(e);return new pu(t,this.ngModule)}}]),n}(yc);function du(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var fu=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Vr}}),pu=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Io).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return a(n,[{key:"inputs",get:function(){return du(this.componentDef.inputs)}},{key:"outputs",get:function(){return du(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,o,a=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var o=e.get(n,lu,r);return o!==lu||i===lu?o:t.get(n,i,r)}}}(e,i.injector):e,s=a.get(Cc,Ht),c=a.get(Oc,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(zt(e))return e.selectRootElement(t,n===$e.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Qr(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Vr,clean:_a,playerHandler:null,flags:0},p=Jo(0,null,null,1,0,null,null,null,null,null),v=Bo(null,p,f,d,null,null,s,u,c,a);Sn(v);try{var m=function(e,t,n,i,r,o){var a=n[1];n[20]=e;var s=Uo(a,20,2,"#host",null),c=s.mergedAttrs=t.hostAttrs;null!==c&&(xa(s,c,!0),null!==e&&(Un(r,e,c),null!==s.classes&&go(r,e,s.classes),null!==s.styles&&mo(r,e,s.styles)));var u=i.createRenderer(e,t),l=Bo(n,Ko(t),null,t.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ni(Xn(s,n),a,t.type),ra(a,s),aa(s,n.length,1)),va(n,l),n[20]=l}(h,this.componentDef,v,s,u);if(h)if(n)Un(u,h,["ng-version",Ic.full]);else{var g=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var o=e[i];if("string"==typeof o)2===r?""!==o&&t.push(o,e[++i]):8===r&&n.push(o);else{if(!Co(r))break;r=o}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=g.attrs,b=g.classes;y&&Un(u,h,y),b&&b.length>0&&go(u,h,b.join(" "))}if(o=Zt(p,Et),void 0!==t)for(var _=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var w=t[k];_.push(null!=w?Array.from(w):null)}r=function(e,t,n,i,r){var o=n[1],a=function(e,t,n){var i=sn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),sa(e,i,t,zo(e,t,1,null),n));var r=li(t,e,i.directiveStart,i);Ar(r,t);var o=qt(i,t);return o&&Ar(o,t),r}(o,n,t);if(i.components.push(a),e[8]=a,r&&r.forEach(function(e){return e(a,t)}),t.contentQueries){var s=sn();t.contentQueries(1,a,s.directiveStart)}var c=sn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Mn(c.index),na(n[1],c,0,c.directiveStart,c.directiveEnd,t),ia(t,a)),a}(m,this.componentDef,v,f,[Wa]),Ho(p,v,null)}finally{Tn()}return new vu(this.componentType,r,_c(o,v),v,o)}}]),n}(mc),vu=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this)).location=r,c._rootLView=o,c._tNode=a,c.instance=i,c.hostView=c.changeDetectorRef=new qc(o),c.componentType=e,c}return a(n,[{key:"injector",get:function(){return new pi(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(vc),mu=new Map,gu=function(e){u(n,e);var t=p(n);function n(e,i){var r;s(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=d(r),r.destroyCbs=[],r.componentFactoryResolver=new hu(d(r));var o=Ct(e),a=e[ht]||null;return a&&oc(a),r._bootstrapComponents=Br(o.bootstrap),r._r3Injector=Na(e,i,[{provide:nu,useValue:d(r)},{provide:yc,useValue:r.componentFactoryResolver}],Oe(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return a(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ha.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ze.Default;return e===Ha||e===nu||e===Oa?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(nu),yu=function(e){u(n,e);var t=p(n);function n(e){var i,r,o;return s(this,n),(i=t.call(this)).moduleType=e,null!==Ct(e)&&(r=e,o=new Set,function e(t){var n=Ct(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Oe(t)," vs ").concat(Oe(t.name)))}(i,mu.get(i),t),mu.set(i,t));var r,a=g(Br(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),e(s))}}catch(c){a.e(c)}finally{a.f()}}(r)),i}return a(n,[{key:"create",value:function(e){return new gu(this.moduleType,e)}}]),n}(iu);function bu(e,t,n,i){return ku(rn(),pn(),e,t,n,i)}function _u(e,t){var n=e[t];return n===Po?void 0:n}function ku(e,t,n,i,r,o){var a=t+n;return ns(e,a,r)?ts(e,a+1,o?i.call(o,r):i(r)):_u(e,a+1)}function wu(e,t){var n,i=on(),r=e+Et;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new Re("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Rt(n.type)),a=Qe(ss);try{var s=Kn(!1),c=o();return Kn(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,rn(),r,c),c}finally{Qe(a)}}function Su(e,t,n){var i=e+Et,r=rn(),o=Yt(r,i);return function(e,t){return Xa.isWrapped(t)&&(t=Xa.unwrap(t),e[tn.lFrame.bindingIndex]=Po),t}(r,function(e,t){return e[1].data[t].pure}(r,i)?ku(r,pn(),t,o.transform,n,o):o.transform(n))}function Cu(e){return function(t){setTimeout(e,void 0,t)}}var Eu=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s(this,n),(e=t.call(this)).__isAsync=i,e}return a(n,[{key:"emit",value:function(e){r(i(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,o){var a,s,c,u=e,l=t||function(){return null},h=o;if(e&&"object"==typeof e){var d=e;u=null===(a=d.next)||void 0===a?void 0:a.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),h=null===(c=d.complete)||void 0===c?void 0:c.bind(d)}this.__isAsync&&(l=Cu(l),u&&(u=Cu(u)),h&&(h=Cu(h)));var f=r(i(n.prototype),"subscribe",this).call(this,{next:u,error:l,complete:h});return e instanceof M&&e.add(f),f}}]),n}(Y);function xu(){return this._results[Ja()]()}var Ou=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ja(),i=e.prototype;i[n]||(i[n]=xu)}return a(e,[{key:"changes",get:function(){return this._changes||(this._changes=new Eu)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var i=Si(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],o=t[i];if(n&&(r=n(r),o=n(o)),o!==r)return!1}return!0}(n._results,i,t))&&(n._results=i,n.length=i.length,n.last=i[this.length-1],n.first=i[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}();Symbol;var Tu=function(){function e(t){s(this,e),this.queryList=t,this.matches=null}return a(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Iu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e),this.queries=t}return a(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],o=0;o<i;o++){var a=n.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==Hu(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Pu=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;s(this,e),this.predicate=t,this.flags=n,this.read=i},Mu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,e),this.queries=t}return a(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==n?n.push(o):n=[o])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Au=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;s(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return a(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Ru(t,r)),this.matchTNodeWithReadOption(e,t,ui(t,e,r,!1,!1))}else n===$c?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,ui(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===wc||i===ou||i===$c&&4&t.type)this.addMatch(t.index,-2);else{var r=ui(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Ru(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Nu(e,t,n,i){return-1===n?function(e,t){return 11&e.type?_c(e,t):4&e.type?tu(e,t):null}(t,e):-2===n?function(e,t,n){return n===wc?_c(t,e):n===$c?tu(t,e):n===ou?uu(t,e):void 0}(e,t,i):li(e,e[1],n,t)}function Lu(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var o=e.data,a=n.matches,s=[],c=0;c<a.length;c+=2){var u=a[c];s.push(u<0?null:Nu(t,o[u],a[c+1],n.metadata.read))}r.matches=s}return r.matches}function Du(e,t,n,i){var r=e.queries.getByIndex(n),o=r.matches;if(null!==o)for(var a=Lu(e,t,r,n),s=0;s<o.length;s+=2){var c=o[s];if(c>0)i.push(a[s/2]);else{for(var u=o[s+1],l=t[-c],h=xt;h<l.length;h++){var d=l[h];d[17]===d[3]&&Du(d[1],d,u,i)}if(null!==l[9])for(var f=l[9],p=0;p<f.length;p++){var v=f[p];Du(v[1],v,u,i)}}}return i}function Vu(e){var t=rn(),n=on(),i=bn();_n(i+1);var r=Hu(n,i);if(e.dirty&&Kt(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{var o=r.crossesNgTemplate?Du(n,t,i,[]):Lu(n,t,r,i);e.reset(o,Sc),e.notifyOnChanges()}return!0}return!1}function ju(e,t,n){var i=on();i.firstCreatePass&&(zu(i,new Pu(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Uu(i,rn(),t)}function Fu(e,t,n,i){var r=on();if(r.firstCreatePass){var o=sn();zu(r,new Pu(t,n,i),o.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Uu(r,rn(),n)}function Bu(){return e=rn(),t=bn(),e[19].queries[t].queryList;var e,t}function Uu(e,t,n){var i=new Ou(4==(4&n));Xo(e,t,i,i.destroy),null===t[19]&&(t[19]=new Iu),t[19].queries.push(new Tu(i))}function zu(e,t,n){null===e.queries&&(e.queries=new Mu),e.queries.track(new Au(t,n))}function Hu(e,t){return e.queries.getByIndex(t)}var Wu=new _i("Application Initializer"),Gu=function(){var e=function(){function e(t){var n=this;s(this,e),this.appInits=t,this.resolve=bc,this.reject=bc,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return a(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=function(n){var i=e.appInits[n]();if(ms(i))t.push(i);else if(ys(i)){var r=new Promise(function(e,t){i.subscribe({complete:e,error:t})});t.push(r)}},r=0;r<this.appInits.length;r++)i(r);Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Wu,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),qu=new _i("AppId"),Zu={provide:qu,useFactory:function(){return"".concat(Yu()).concat(Yu()).concat(Yu())},deps:[]};function Yu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Qu=new _i("Platform Initializer"),Ku=new _i("Platform ID"),Ju=new _i("appBootstrapListener"),Xu=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),$u=new _i("LocaleId"),el=new _i("DefaultCurrencyCode"),tl=function e(t,n){s(this,e),this.ngModuleFactory=t,this.componentFactories=n},nl=function(e){return new yu(e)},il=nl,rl=function(e){return Promise.resolve(nl(e))},ol=function(e){var t=nl(e),n=Br(Ct(e).declarations).reduce(function(e,t){var n=St(t);return n&&e.push(new pu(n)),e},[]);return new tl(t,n)},al=ol,sl=function(e){return Promise.resolve(ol(e))},cl=function(){var e=function(){function e(){s(this,e),this.compileModuleSync=il,this.compileModuleAsync=rl,this.compileModuleAndAllComponentsSync=al,this.compileModuleAndAllComponentsAsync=sl}return a(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),ul=function(){return Promise.resolve(0)}();function ll(e){"undefined"==typeof Zone?ul.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var hl=function(){function e(t){var n=t.enableLongStackTrace,i=void 0!==n&&n,r=t.shouldCoalesceEventChangeDetection,o=void 0!==r&&r,a=t.shouldCoalesceRunChangeDetection,c=void 0!==a&&a;if(s(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Eu(!1),this.onMicrotaskEmpty=new Eu(!1),this.onStable=new Eu(!1),this.onError=new Eu(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();var u,l,h=this;h._nesting=0,h._outer=h._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(h._inner=h._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(h._inner=h._inner.fork(Zone.longStackTraceZoneSpec)),h.shouldCoalesceEventChangeDetection=!c&&o,h.shouldCoalesceRunChangeDetection=c,h.lastRequestAnimationFrameId=-1,h.nativeRequestAnimationFrame=function(){var e=rt.requestAnimationFrame,t=rt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,l=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(rt,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,pl(e),e.isCheckStableRunning=!0,fl(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),pl(e))}(u)},(u=h)._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,n,i,r,o){try{return vl(u),e.invokeTask(n,i,r,o)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||u.shouldCoalesceRunChangeDetection)&&l(),ml(u)}},onInvoke:function(e,t,n,i,r,o,a){try{return vl(u),e.invoke(n,i,r,o,a)}finally{u.shouldCoalesceRunChangeDetection&&l(),ml(u)}},onHasTask:function(e,t,n,i){e.hasTask(n,i),t===n&&("microTask"==i.change?(u._hasPendingMicrotasks=i.microTask,pl(u),fl(u)):"macroTask"==i.change&&(u.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,n,i){return e.handleError(n,i),u.runOutsideAngular(function(){return u.onError.emit(i)}),!1}})}return a(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,e,dl,bc,bc);try{return r.runTask(o,t,n)}finally{r.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),dl={};function fl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function pl(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ml(e){e._nesting--,fl(e)}var gl,yl=function(){function e(){s(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Eu,this.onMicrotaskEmpty=new Eu,this.onStable=new Eu,this.onError=new Eu}return a(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),bl=function(){var e=function(){function e(t){var n=this;s(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return a(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){hl.assertNotInAngularZone(),ll(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())ll(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),_l=function(){var e=function(){function e(){s(this,e),this._applications=new Map,kl.addToWindow(this)}return a(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return kl.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),kl=new(function(){function e(){s(this,e)}return a(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),wl=!0,Sl=!1;function Cl(){return Sl=!0,wl}var El=function(e,t,n){var i=new yu(n);return Promise.resolve(i)},xl=new _i("AllowMultipleToken"),Ol=function e(t,n){s(this,e),this.name=t,this.token=n};function Tl(e){if(gl&&!gl.destroyed&&!gl.injector.get(xl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");gl=e.get(Al);var t=e.get(Qu,null);return t&&t.forEach(function(e){return e()}),gl}function Il(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new _i(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ml();if(!o||o.injector.get(xl,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var a=n.concat(t).concat({provide:r,useValue:!0},{provide:Ia,useValue:"platform"});Tl(Ha.create({providers:a,name:i}))}return Pl(r)}}function Pl(e){var t=Ml();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Ml(){return gl&&!gl.destroyed?gl:null}var Al=function(){var e=function(){function e(t){s(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return a(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,o=(i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new yl:("zone.js"===n?void 0:n)||new hl({enableLongStackTrace:Cl(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:hl,useValue:o}];return o.run(function(){var t=Ha.create({providers:a,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Dr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var e=o.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){Ll(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var o=((a=n.injector.get(Gu)).runInitializers(),a.donePromise.then(function(){return oc(n.injector.get($u,rc)||rc),r._moduleDoBootstrap(n),n}));return ms(o)?o.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):o}catch(WP){throw t.runOutsideAngular(function(){return e.handleError(WP)}),WP}var a}(i,o)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Rl({},n);return El(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Nl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(Oe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Ha))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Rl(e,t){return Array.isArray(t)?t.reduce(Rl,e):Object.assign(Object.assign({},e),t)}var Nl=function(){var e=function(){function e(t,n,i,r,o){var a=this;s(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var c=new H(function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){e.next(a._stable),e.complete()})}),u=new H(function(e){var t;a._zone.runOutsideAngular(function(){t=a._zone.onStable.subscribe(function(){hl.assertNotInAngularZone(),ll(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){hl.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=me(c,u.pipe(Ce()))}return a(e,[{key:"bootstrap",value:function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof mc?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(nu),o=n.create(Ha.NULL,[],t||n.selector,r),a=o.location.nativeElement,s=o.injector.get(bl,null),c=s&&o.injector.get(_l);return s&&c&&c.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Ll(i.components,o),c&&c.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=g(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(WP){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(WP)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;Ll(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Ju,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Ha),ji(Dr),ji(yc),ji(Gu))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Ll(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Dl=function e(){s(this,e)},Vl=function e(){s(this,e)},jl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Fl=function(){var e=function(){function e(t,n){s(this,e),this._compiler=t,this._config=n||jl}return a(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_(e.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(98255)(r).then(function(e){return e[o]}).then(function(e){return Bl(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_(e.split("#"),2),i=t[0],r=t[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(98255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+o]}).then(function(e){return Bl(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(cl),ji(Vl,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Bl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Ul=Il(null,"core",[{provide:Ku,useValue:"unknown"},{provide:Al,deps:[Ha]},{provide:_l,deps:[]},{provide:Xu,deps:[]}]),zl=[{provide:Nl,useClass:Nl,deps:[hl,Ha,Dr,yc,Gu]},{provide:fu,deps:[hl],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Gu,useClass:Gu,deps:[[new qi,Wu]]},{provide:cl,useClass:cl,deps:[]},Zu,{provide:Uc,useFactory:function(){return Kc},deps:[]},{provide:Hc,useFactory:function(){return Jc},deps:[]},{provide:$u,useFactory:function(e){return oc(e=e||"undefined"!=typeof $localize&&$localize.locale||rc),e},deps:[[new Gi($u),new qi,new Zi]]},{provide:el,useValue:"USD"}],Hl=function(){var e=function e(t){s(this,e)};return e.\u0275fac=function(t){return new(t||e)(ji(Nl))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:zl}),e}(),Wl=null;function Gl(){return Wl}var ql=function e(){s(this,e)},Zl=new _i("DocumentToken"),Yl=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:Ql,token:e,providedIn:"platform"}),e}();function Ql(){return ji(Jl)}var Kl=new _i("Location Initialized"),Jl=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this))._doc=e,i._init(),i}return a(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return Gl().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=Gl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=Gl().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){Xl()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){Xl()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(Yl);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:$l,token:e,providedIn:"platform"}),e}();function Xl(){return!!window.history.pushState}function $l(){return new Jl(ji(Zl))}function eh(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function th(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function nh(e){return e&&"?"!==e[0]?"?"+e:e}var ih=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:rh,token:e,providedIn:"root"}),e}();function rh(e){var t=ji(Zl).location;return new ah(ji(Yl),t&&t.origin||"")}var oh=new _i("appBaseHref"),ah=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;if(s(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=i,r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return eh(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+nh(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(ih);return e.\u0275fac=function(t){return new(t||e)(ji(Yl),ji(oh,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),sh=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=eh(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+nh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(ih);return e.\u0275fac=function(t){return new(t||e)(ji(Yl),ji(oh,8))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),ch=function(){var e=function(){function e(t,n){var i=this;s(this,e),this._subject=new Eu,this._urlChangeListeners=[],this._platformStrategy=t;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=th(lh(r)),this._platformStrategy.onPopState(function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})})}return a(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+nh(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,lh(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+nh(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+nh(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(ih),ji(Yl))},e.normalizeQueryParams=nh,e.joinWithSlash=eh,e.stripTrailingSlash=th,e.\u0275prov=Ve({factory:uh,token:e,providedIn:"root"}),e}();function uh(){return new ch(ji(ih),ji(Yl))}function lh(e){return e.replace(/\/index.html$/,"")}var hh=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),dh=function e(){s(this,e)},fh=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this)).locale=e,i}return a(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=nc(t);if(n)return n;var i=t.split("-")[0];if(n=nc(i))return n;if("en"===i)return ec;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[ic.PluralCase]}(t||this.locale)(e)){case hh.Zero:return"zero";case hh.One:return"one";case hh.Two:return"two";case hh.Few:return"few";case hh.Many:return"many";default:return"other"}}}]),n}(dh);return e.\u0275fac=function(t){return new(t||e)(ji($u))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function ph(e,t){t=encodeURIComponent(t);var n,i=g(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=_(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===t)return decodeURIComponent(s)}}catch(c){i.e(c)}finally{i.f()}return null}var vh=function(){var e=function(){function e(t,n,i,r){s(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return a(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Oe(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Uc),ss(Hc),ss(wc),ss(Ec))},e.\u0275dir=kt({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),mh=function(){function e(t,n,i,r){s(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return a(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),gh=function(){var e=function(){function e(t,n,i){s(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return a(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new mh(null,t._ngForOf,-1,-1),null===r?void 0:r),a=new yh(e,o);n.push(a)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var c=new yh(e,s);n.push(c)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var a=this._viewContainer.get(r);a.context.index=r,a.context.count=o,a.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(ou),ss($c),ss(Uc))},e.\u0275dir=kt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),yh=function e(t,n){s(this,e),this.record=t,this.view=n},bh=function(){var e=function(){function e(t,n){s(this,e),this._viewContainer=t,this._context=new _h,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return a(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){kh("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){kh("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){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)))}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(ou),ss($c))},e.\u0275dir=kt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),_h=function e(){s(this,e),this.$implicit=null,this.ngIf=null};function kh(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Oe(t),"'."))}var wh=function(){function e(t,n){s(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}return a(e,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}]),e}(),Sh=function(){var e=function(){function e(){s(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return a(e,[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),e}(),Ch=function(){var e=function(){function e(t,n,i){s(this,e),this.ngSwitch=i,i._addCase(),this._view=new wh(t,n)}return a(e,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(ou),ss($c),ss(Sh,9))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),e}(),Eh=function(){var e=function e(t,n,i){s(this,e),i._addDefault(new wh(t,n))};return e.\u0275fac=function(t){return new(t||e)(ss(ou),ss($c),ss(Sh,9))},e.\u0275dir=kt({type:e,selectors:[["","ngSwitchDefault",""]]}),e}(),xh=function(){var e=function(){function e(t,n,i){s(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return a(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=_(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Hc),ss(Ec))},e.\u0275dir=kt({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),Oh=function(){function e(){s(this,e)}return a(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Th=new(function(){function e(){s(this,e)}return a(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),Ih=new Oh,Ph=function(){var e=function(){function e(t){s(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return a(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(ms(t))return Th;if(gs(t))return Ih;throw n=e,Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Oe(n),"'"));var n}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Yc,16))},e.\u0275pipe=wt({name:"async",type:e,pure:!1}),e}(),Mh=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[{provide:dh,useClass:fh}]}),e}();function Ah(e){return"browser"===e}function Rh(e){return"server"===e}var Nh=function(){var e=function e(){s(this,e)};return e.\u0275prov=Ve({token:e,providedIn:"root",factory:function(){return new Lh(ji(Zl),window)}}),e}(),Lh=function(){function e(t,n){s(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return a(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var o=r.shadowRoot;if(o){var a=o.getElementById(t)||o.querySelector('[name="'.concat(t,'"]'));if(a)return a}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Dh(this.window.history)||Dh(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Dh(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Vh,jh=function e(){s(this,e)},Fh=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(Bh=Bh||document.querySelector("base"))?Bh.getAttribute("href"):null;return null==t?null:function(e){(Vh=Vh||document.createElement("a")).setAttribute("href",e);var t=Vh.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){Bh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return ph(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,Wl||(Wl=e)}}]),n}(function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(ql)),Bh=null,Uh=new _i("TRANSITION_ID"),zh=[{provide:Wu,useFactory:function(e,t,n){return function(){n.get(Gu).donePromise.then(function(){var n=Gl();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Uh,Zl,Ha],multi:!0}],Hh=function(){function e(){s(this,e)}return a(e,[{key:"addToWindow",value:function(e){rt.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},rt.getAllAngularTestabilities=function(){return e.getAllTestabilities()},rt.getAllAngularRootElements=function(){return e.getAllRootElements()},rt.frameworkStabilizers||(rt.frameworkStabilizers=[]),rt.frameworkStabilizers.push(function(e){var t=rt.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Gl().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,kl=t}}]),e}(),Wh=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Gh=new _i("EventManagerPlugins"),qh=function(){var e=function(){function e(t,n){var i=this;s(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return a(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Gh),ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Zh=function(){function e(t){s(this,e),this._doc=t}return a(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Gl().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),Yh=function(){var e=function(){function e(){s(this,e),this._stylesSet=new Set}return a(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Qh=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return a(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(Kh),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(Kh)})}}]),n}(Yh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function Kh(e){Gl().remove(e)}var Jh={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/"},Xh=/%COMP%/g,$h="%COMP%",ed="_nghost-".concat($h),td="_ngcontent-".concat($h);function nd(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?nd(e,r,n):(r=r.replace(Xh,e),n.push(r))}return n}function id(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var rd=function(){var e=function(){function e(t,n,i){s(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new od(t)}return a(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case $e.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ad(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case $e.ShadowDom:return new sd(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=nd(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(qh),ji(Qh),ji(qu))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),od=function(){function e(t){s(this,e),this.eventManager=t,this.data=Object.create(null)}return a(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Jh[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=Jh[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Jh[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(Ur.DashCase|Ur.Important)?e.style.setProperty(t,n,i&Ur.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Ur.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,id(n)):this.eventManager.addEventListener(e,t,id(n))}}]),e}(),ad=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;s(this,n),(a=t.call(this,e)).component=r;var c=nd(o+"-"+r.id,r.styles,[]);return i.addStyles(c),a.contentAttr=td.replace(Xh,o+"-"+r.id),a.hostAttr=ed.replace(Xh,o+"-"+r.id),a}return a(n,[{key:"applyToHost",value:function(e){r(i(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var o=r(i(n.prototype),"createElement",this).call(this,e,t);return r(i(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}]),n}(od),sd=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;s(this,n),(a=t.call(this,e)).sharedStylesHost=i,a.hostEl=r,a.shadowRoot=r.attachShadow({mode:"open"}),a.sharedStylesHost.addHost(a.shadowRoot);for(var c=nd(o.id,o.styles,[]),u=0;u<c.length;u++){var l=document.createElement("style");l.textContent=c[u],a.shadowRoot.appendChild(l)}return a}return a(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return r(i(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,o){return r(i(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,o)}},{key:"removeChild",value:function(e,t){return r(i(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(r(i(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(od),cd=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return s(this,n),t.call(this,e)}return a(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(Zh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),ud=["alt","control","meta","shift"],ld={"\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"},hd={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},dd={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},fd=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return s(this,n),t.call(this,e)}return a(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),o=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Gl().onAndCancel(e,r.domEventName,o)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),o="";if(ud.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")}),o+=r,0!=t.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&hd.hasOwnProperty(t)&&(t=hd[t]))}return ld[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ud.forEach(function(i){i!=n&&(0,dd[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(Zh);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),pd=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return ji(md)},token:e,providedIn:"root"}),e}();function vd(e){return new md(e.get(Zl))}var md=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this))._doc=e,i}return a(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case Tr.NONE:return t;case Tr.HTML:return ir(t,"HTML")?nr(t):xr(this._doc,String(t)).toString();case Tr.STYLE:return ir(t,"Style")?nr(t):t;case Tr.SCRIPT:if(ir(t,"Script"))return nr(t);throw new Error("unsafe value used in a script context");case Tr.URL:return rr(t),ir(t,"URL")?nr(t):ur(String(t));case Tr.RESOURCE_URL:if(ir(t,"ResourceURL"))return nr(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Ji(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Xi(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new $i(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new er(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new tr(e)}}]),n}(pd);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return vd(ji(Oa))},token:e,providedIn:"root"}),e}(),gd=Il(Ul,"browser",[{provide:Ku,useValue:"browser"},{provide:Qu,useValue:function(){Fh.makeCurrent(),Hh.init()},multi:!0},{provide:Zl,useFactory:function(){return function(e){Bt=e}(document),document},deps:[]}]),yd=[[],{provide:Ia,useValue:"root"},{provide:Dr,useFactory:function(){return new Dr},deps:[]},{provide:Gh,useClass:cd,multi:!0,deps:[Zl,hl,Ku]},{provide:Gh,useClass:fd,multi:!0,deps:[Zl]},[],{provide:rd,useClass:rd,deps:[qh,Qh,qu]},{provide:Cc,useExisting:rd},{provide:Yh,useExisting:Qh},{provide:Qh,useClass:Qh,deps:[Zl]},{provide:bl,useClass:bl,deps:[hl]},{provide:qh,useClass:qh,deps:[Gh,hl]},{provide:jh,useClass:Wh,deps:[]},[]],bd=function(){var e=function(){function e(t){if(s(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return a(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:qu,useValue:t.appId},{provide:Uh,useExisting:qu},zh]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(e,12))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:yd,imports:[Mh,Hl]}),e}();function _d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(O(i))return kd(i,null);if(T(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return kd(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var o=t.pop();return kd(t=1===t.length&&O(t[0])?t[0]:t,null).pipe(J(function(e){return o.apply(void 0,C(e))}))}return kd(t,null)}function kd(e,t){return new H(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var c=se(e[s]),u=!1;n.add(c.subscribe({next:function(e){u||(u=!0,a++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&u||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},c=0;c<i;c++)s(c);else n.complete()})}"undefined"!=typeof window&&window;var wd=function(){var e=function(){function e(t,n){s(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return a(e,[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Ec),ss(wc))},e.\u0275dir=kt({type:e}),e}(),Sd=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(wd);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,features:[Ga]}),e}(),Cd=new _i("NgValueAccessor"),Ed={provide:Cd,useExisting:Pe(function(){return Od}),multi:!0},xd=new _i("CompositionEventMode"),Od=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){var o,a;return s(this,n),(o=t.call(this,e,i))._compositionMode=r,o._composing=!1,null==o._compositionMode&&(o._compositionMode=(a=Gl()?Gl().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase()))),o}return a(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),n}(wd);return e.\u0275fac=function(t){return new(t||e)(ss(Ec),ss(wc),ss(xd,8))},e.\u0275dir=kt({type:e,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,t){1&e&&bs("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[pc([Ed]),Ga]}),e}();function Td(e){return null==e||0===e.length}function Id(e){return null!=e&&"number"==typeof e.length}var Pd=new _i("NgValidators"),Md=new _i("NgAsyncValidators"),Ad=/^(?=.{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])?)*$/,Rd=function(){function e(){s(this,e)}return a(e,null,[{key:"min",value:function(e){return t=e,function(e){if(Td(e.value)||Td(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null};var t}},{key:"max",value:function(e){return t=e,function(e){if(Td(e.value)||Td(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null};var t}},{key:"required",value:function(e){return function(e){return Td(e.value)?{required:!0}:null}(e)}},{key:"requiredTrue",value:function(e){return function(e){return!0===e.value?null:{required:!0}}(e)}},{key:"email",value:function(e){return function(e){return Td(e.value)||Ad.test(e.value)?null:{email:!0}}(e)}},{key:"minLength",value:function(e){return t=e,function(e){return Td(e.value)||!Id(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"maxLength",value:function(e){return t=e,function(e){return Id(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null};var t}},{key:"pattern",value:function(e){return(t=e)?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Td(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):Nd;var t,n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){return Bd(e)}},{key:"composeAsync",value:function(e){return zd(e)}}]),e}();function Nd(e){return null}function Ld(e){return null!=e}function Dd(e){var t=ms(e)?se(e):e;return ys(t),t}function Vd(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function jd(e,t){return t.map(function(t){return t(e)})}function Fd(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Bd(e){if(!e)return null;var t=e.filter(Ld);return 0==t.length?null:function(e){return Vd(jd(e,t))}}function Ud(e){return null!=e?Bd(Fd(e)):null}function zd(e){if(!e)return null;var t=e.filter(Ld);return 0==t.length?null:function(e){return _d(jd(e,t).map(Dd)).pipe(J(Vd))}}function Hd(e){return null!=e?zd(Fd(e)):null}function Wd(e,t){return null===e?[t]:Array.isArray(e)?[].concat(C(e),[t]):[e,t]}function Gd(e){return e._rawValidators}function qd(e){return e._rawAsyncValidators}var Zd=function(){var e=function(){function e(){s(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return a(e,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Ud(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Hd(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e}),e}(),Yd=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Zd);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,features:[Ga]}),e}(),Qd=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Zd),Kd=function(){function e(t){s(this,e),this._cd=t}return a(e,[{key:"is",value:function(e){var t,n,i;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[e])}}]),e}(),Jd=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return s(this,n),t.call(this,e)}return n}(Kd);return e.\u0275fac=function(t){return new(t||e)(ss(Qd,2))},e.\u0275dir=kt({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Vs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[Ga]}),e}(),Xd=function(){var e=function(e){u(n,e);var t=p(n);function n(e){return s(this,n),t.call(this,e)}return n}(Kd);return e.\u0275fac=function(t){return new(t||e)(ss(Yd,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&Vs("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[Ga]}),e}();function $d(e,t){nf(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&of(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&of(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function ef(e,t){var n=function(){};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),rf(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(function(){}))}function tf(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function nf(e,t){var n=Gd(e);null!==t.validator?e.setValidators(Wd(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=qd(e);null!==t.asyncValidator?e.setAsyncValidators(Wd(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};tf(t._rawValidators,r),tf(t._rawAsyncValidators,r)}function rf(e,t){var n=!1;if(null!==e){if(null!==t.validator){var i=Gd(e);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(e){return e!==t.validator});r.length!==i.length&&(n=!0,e.setValidators(r))}}if(null!==t.asyncValidator){var o=qd(e);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(e){return e!==t.asyncValidator});a.length!==o.length&&(n=!0,e.setAsyncValidators(a))}}}var s=function(){};return tf(t._rawValidators,s),tf(t._rawAsyncValidators,s),n}function of(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function af(e,t){nf(e,t)}function sf(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function cf(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function uf(e,t){if(!t)return null;Array.isArray(t);var n=void 0,i=void 0,r=void 0;return t.forEach(function(e){e.constructor===Od?n=e:Object.getPrototypeOf(e.constructor)===Sd?i=e:r=e}),r||i||n||null}function lf(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hf="VALID",df="INVALID",ff="PENDING",pf="DISABLED";function vf(e){return(bf(e)?e.validators:e)||null}function mf(e){return Array.isArray(e)?Ud(e):e||null}function gf(e,t){return(bf(t)?t.asyncValidators:e)||null}function yf(e){return Array.isArray(e)?Hd(e):e||null}function bf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var _f=function(){function e(t,n){s(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=mf(this._rawValidators),this._composedAsyncValidatorFn=yf(this._rawAsyncValidators)}return a(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===hf}},{key:"invalid",get:function(){return this.status===df}},{key:"pending",get:function(){return this.status==ff}},{key:"disabled",get:function(){return this.status===pf}},{key:"enabled",get:function(){return this.status!==pf}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(e){this._rawValidators=e,this._composedValidatorFn=mf(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=yf(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=ff,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=pf,this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status=hf,this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==hf&&this.status!==ff||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?pf:hf}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status=ff,this._hasOwnPendingAsyncValidator=!0;var n=Dd(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach(function(e){i=i instanceof wf?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Sf&&i.at(e)||null}),i}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new Eu,this.statusChanges=new Eu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?pf:this.errors?df:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ff)?ff:this._anyControlsHaveStatus(df)?df:hf}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){bf(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),kf=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return s(this,n),(e=t.call(this,vf(r),gf(o,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return a(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){lf(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){lf(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(_f),wf=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,vf(i),gf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof kf?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(_f),Sf=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,vf(i),gf(r,i))).controls=e,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof kf?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=g(this.controls);try{for(t.s();!(e=t.n()).done;)if(e.value.enabled)return!1}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(_f),Cf={provide:Yd,useExisting:Pe(function(){return xf})},Ef=function(){return Promise.resolve(null)}(),xf=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Eu,r.form=new wf({},Ud(e),Hd(i)),r}return a(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(e){var t=this;Ef.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),$d(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Ef.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),lf(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Ef.then(function(){var n=t._findContainer(e.path),i=new wf({});af(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Ef.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Ef.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,cf(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Yd);return e.\u0275fac=function(t){return new(t||e)(ss(Pd,10),ss(Md,10))},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&bs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pc([Cf]),Ga]}),e}(),Of={provide:Qd,useExisting:Pe(function(){return If})},Tf=function(){return Promise.resolve(null)}(),If=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this)).control=new kf,a._registered=!1,a.update=new Eu,a._parent=e,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=uf(d(a),o),a}return a(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),sf(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?(e=this.name,[].concat(C(this._parent.path),[e])):[this.name];var e}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){$d(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(e){var t=this;Tf.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;Tf.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Qd);return e.\u0275fac=function(t){return new(t||e)(ss(Yd,9),ss(Pd,10),ss(Md,10),ss(Cd,10))},e.\u0275dir=kt({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[pc([Of]),Ga,Lt]}),e}(),Pf=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e}(),Mf=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),Af=new _i("NgModelWithFormControlWarning"),Rf={provide:Qd,useExisting:Pe(function(){return Nf})},Nf=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this))._ngModelWarningConfig=o,a.update=new Eu,a._ngModelWarningSent=!1,a._setValidators(e),a._setAsyncValidators(i),a.valueAccessor=uf(d(a),r),a}return a(n,[{key:"isDisabled",set:function(e){}},{key:"ngOnChanges",value:function(e){if(this._isControlChanged(e)){var t=e.form.previousValue;t&&ef(t,this),$d(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}sf(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&ef(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_isControlChanged",value:function(e){return e.hasOwnProperty("form")}}]),n}(Qd);return e.\u0275fac=function(t){return new(t||e)(ss(Pd,10),ss(Md,10),ss(Cd,10),ss(Af,8))},e.\u0275dir=kt({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[pc([Rf]),Ga,Lt]}),e._ngModelWarningSentOnce=!1,e}(),Lf={provide:Yd,useExisting:Pe(function(){return Df})},Df=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).validators=e,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Eu,r._setValidators(e),r._setAsyncValidators(i),r}return a(n,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(rf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return $d(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){ef(e.control||null,e),lf(this.directives,e)}},{key:"addFormGroup",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormGroup",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){this._setUpFormContainer(e)}},{key:"removeFormArray",value:function(e){this._cleanUpFormContainer(e)}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,cf(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach(function(t){var n=t.control,i=e.form.get(t.path);n!==i&&(ef(n||null,t),i instanceof kf&&($d(i,t),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(e){var t=this.form.get(e.path);af(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(e){if(this.form){var t=this.form.get(e.path);t&&function(e,t){return rf(e,t)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){nf(this.form,this),this._oldForm&&rf(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(Yd);return e.\u0275fac=function(t){return new(t||e)(ss(Pd,10),ss(Md,10))},e.\u0275dir=kt({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&bs("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pc([Lf]),Ga,Lt]}),e}(),Vf=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Mf]]}),e}(),jf=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[Vf]}),e}(),Ff=function(){var e=function(){function e(){s(this,e)}return a(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:Af,useValue:t.warnOnNgModelWithFormControl}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[Vf]}),e}();function Bf(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}var Uf=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,r=null,o=void 0;return null!=t&&(Bf(t)?(i=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new wf(n,{asyncValidators:r,updateOn:o,validators:i})}},{key:"control",value:function(e,t,n){return new kf(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,r=e.map(function(e){return i._createControl(e)});return new Sf(r,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach(function(i){n[i]=t._createControl(e[i])}),n}},{key:"_createControl",value:function(e){return e instanceof kf||e instanceof wf||e instanceof Sf?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:Ff}),e}(),zf=function e(){s(this,e)},Hf=function e(){s(this,e)},Wf="*";function Gf(e,t){return{type:7,name:e,definitions:t,options:{}}}function qf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Zf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function Yf(e){return{type:6,styles:e,offset:null}}function Qf(e,t,n){return{type:0,name:e,styles:t,options:n}}function Kf(e){return{type:5,steps:e}}function Jf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Xf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}function $f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}function ep(e){Promise.resolve(null).then(e)}var tp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return a(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;ep(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),np=function(){function e(t){var n=this;s(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,o=0,a=this.players.length;0==a?ep(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==a&&n._onFinish()}),e.onDestroy(function(){++r==a&&n._onDestroy()}),e.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return a(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),ip="!";function rp(){return"undefined"!=typeof window&&void 0!==window.document}function op(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ap(e){switch(e.length){case 0:return new tp;case 1:return e[0];default:return new np(e)}}function sp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],c=-1,u=null;if(i.forEach(function(e){var n=e.offset,i=n==c,l=i&&u||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,a),s){case ip:s=r[n];break;case Wf:s=o[n];break;default:s=t.normalizeStyleValue(n,i,s,a)}l[i]=s}),i||s.push(l),u=l,c=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function cp(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&up(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&up(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&up(n,"destroy",e))})}}function up(e,t,n){var i=n.totalTime,r=lp(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),o=e._data;return null!=o&&(r._data=o),r}function lp(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function hp(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function dp(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var fp=function(e,t){return!1},pp=function(e,t){return!1},vp=function(e,t,n){return[]},mp=op();(mp||"undefined"!=typeof Element)&&(fp=rp()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},pp=function(){if(mp||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:pp}(),vp=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),o=0;o<r.length;o++)i.push(r[o]);else{var a=e.querySelector(t);a&&i.push(a)}return i});var gp=null,yp=!1;function bp(e){gp||(gp=("undefined"!=typeof document?document.body:null)||{},yp=!!gp.style&&"WebkitAppearance"in gp.style);var t=!0;return gp.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in gp.style)&&yp&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in gp.style),t}var _p=pp,kp=fp,wp=vp;function Sp(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var Cp=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new tp(n,i)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Ep=function(){var e=function e(){s(this,e)};return e.NOOP=new Cp,e}(),xp="ng-enter",Op="ng-leave",Tp="ng-trigger",Ip=".ng-trigger",Pp="ng-animating",Mp=".ng-animating";function Ap(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Rp(parseFloat(t[1]),t[2])}function Rp(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Np(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,o="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=Rp(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=Rp(parseFloat(s),a[4]));var c=a[5];c&&(o=c)}else i=e;if(!n){var u=!1,l=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(l,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:o}}(e,t,n)}function Lp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Dp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Lp(e,n);return n}function Vp(e,t,n){return n?t+":"+n+";":""}function jp(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Vp(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Vp(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function Fp(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=Zp(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),op()&&jp(e))}function Bp(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=Zp(t);e.style[n]=""}),op()&&jp(e))}function Up(e){return Array.isArray(e)?1==e.length?e[0]:Zf(e):e}var zp=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function Hp(e){var t=[];if("string"==typeof e){for(var n;n=zp.exec(e);)t.push(n[1]);zp.lastIndex=0}return t}function Wp(e,t,n){var i=e.toString(),r=i.replace(zp,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function Gp(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var qp=/-+([a-z0-9])/g;function Zp(e){return e.replace(qp,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function Yp(e,t){return 0===e||0===t}function Qp(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],o=[];if(i.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=n[e]}),o.length)for(var a=function(){var n=t[s];o.forEach(function(t){n[t]=Jp(e,t)})},s=1;s<t.length;s++)a()}return t}function Kp(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function Jp(e,t){return window.getComputedStyle(e)[t]}var Xp="*",$p=new Set(["true","1"]),ev=new Set(["false","0"]);function tv(e,t){var n=$p.has(e)||ev.has(e),i=$p.has(t)||ev.has(t);return function(r,o){var a=e==Xp||e==r,s=t==Xp||t==o;return!a&&n&&"boolean"==typeof r&&(a=r?$p.has(e):ev.has(e)),!s&&i&&"boolean"==typeof o&&(s=o?$p.has(t):ev.has(t)),a&&s}}var nv=":self",iv=new RegExp("s*".concat(nv,"s*,?"),"g");function rv(e,t,n){return new ov(e).build(t,n)}var ov=function(){function e(t){s(this,e),this._driver=t}return a(e,[{key:"build",value:function(e,t){var n=new av(t);return this._resetContextStyleTimingState(n),Kp(this,Up(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,o=[],a=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,c=s.name;c.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,o.push(n.visitState(s,t))}),s.name=c}else if(1==e.type){var u=n.visitTransition(e,t);i+=u.queryCount,r+=u.depCount,a.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(e){if(sv(e)){var t=e;Object.keys(t).forEach(function(e){Hp(t[e]).forEach(function(e){o.hasOwnProperty(e)||r.add(e)})})}}),r.size){var a=Gp(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(a.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,o=Kp(this,Up(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var o=r[1],a=r[2],s=r[3];t.push(tv(o,s)),"<"!=a[0]||o==Xp&&s==Xp||t.push(tv(s,o))}(e,r,i)}):r.push(n),r),animation:o,queryCount:t.queryCount,depCount:t.depCount,options:cv(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Kp(n,e,t)}),options:cv(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,o=e.steps.map(function(e){t.currentTime=i;var o=Kp(n,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:cv(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return uv(Np(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=uv(0,0,"");return r.dynamic=!0,r.strValue=i,r}return uv((n=n||Np(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:Yf({});if(5==r.type)n=this.visitKeyframes(r,t);else{var o=e.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Yf(s)}t.currentTime+=i.duration+i.delay;var c=this.visitStyle(o,t);c.isEmptyStep=a,n=c}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==Wf?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(sv(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var o in t)if(t[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=t.collectedStyles[t.currentQuerySelector],s=a[i],c=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),c=!1),o=s.startTime),c&&(a[i]={startTime:o,endTime:r}),t.options&&(u=t.errors,l=t.options.params||{},(h=Hp(e[i])).length&&h.forEach(function(e){l.hasOwnProperty(e)||u.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'));var u,l,h})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,c=0,u=e.steps.map(function(e){var i=n._makeStyleAst(e,t),u=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(sv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(sv(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),l=0;return null!=u&&(r++,l=i.offset=u),s=s||l<0||l>1,a=a||l<c,c=l,o.push(l),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,h=0;r>0&&r<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(l-1));var d=l-1,f=t.currentTime,p=t.currentAnimateTimings,v=p.duration;return u.forEach(function(e,r){var a=h>0?r==d?1:h*r:o[r],s=a*v;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=a,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Kp(this,Up(e.animation),t),options:cv(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:cv(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:cv(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==nv});return t&&(e=e.replace(iv,"")),[e=e.replace(/@\*/g,Ip).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,Mp),t]}(e.selector),2),o=r[0],a=r[1];t.currentQuerySelector=n.length?n+" "+o:o,hp(t.collectedStyles,t.currentQuerySelector,{});var s=Kp(this,Up(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:e.selector,options:cv(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Np(e.timings,t.errors,!0);return{type:12,animation:Kp(this,Up(e.animation),t),timings:n,options:null}}}]),e}(),av=function e(t){s(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function sv(e){return!Array.isArray(e)&&"object"==typeof e}function cv(e){var t;return e?(e=Lp(e)).params&&(e.params=(t=e.params)?Lp(t):null):e={},e}function uv(e,t,n){return{duration:e,delay:t,easing:n}}function lv(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var hv=function(){function e(){s(this,e),this._map=new Map}return a(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,C(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),dv=new RegExp(":enter","g"),fv=new RegExp(":leave","g");function pv(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new vv).buildKeyframes(e,t,n,i,r,o,a,s,c,u)}var vv=function(){function e(){s(this,e)}return a(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new hv;var l=new gv(e,t,c,i,r,u,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),Kp(this,n,l);var h=l.timelines.filter(function(e){return e.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,l.errors,s)}return h.length?h.map(function(e){return e.buildKeyframes()}):[lv(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Ap(n.duration):null,o=null!=n.delay?Ap(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Kp(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=mv);var a=Ap(o.delay);r.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return Kp(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,o=e.options&&e.options.delay?Ap(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);o&&s.delayNextStep(o),Kp(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Np(t.params?Wp(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(function(e){o.forwardTime((e.offset||0)*r),o.setStyles(e.styles,e.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?Ap(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mv);var a=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var c=null;s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);o&&s.delayNextStep(o),i===t.element&&(c=s.currentTimeline),Kp(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),s=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var c=t.currentTimeline;s&&c.delayNextStep(s);var u=c.currentTime;Kp(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),e}(),mv={},gv=function(){function e(t,n,i,r,o,a,c,u){s(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=c,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mv,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new yv(this._driver,n,0),c.push(this.currentTimeline)}return a(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Ap(i.duration)),null!=i.delay&&(r.delay=Ap(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=Wp(o[e],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new e(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(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=mv,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new bv(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,o){var a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(dv,"."+this._enterClassName)).replace(fv,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,C(s))}return r||0!=a.length||o.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),a}}]),e}(),yv=function(){function e(t,n,i,r){s(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return a(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||Wf,t._currentKeyframe[e]=Wf}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var o=i&&i.params||{},a=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]=Wf}):Dp(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(a).forEach(function(e){var t=Wp(a[e],o,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:Wf),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=Dp(o,!0);Object.keys(s).forEach(function(e){var i=s[e];i==ip?t.add(e):i==Wf&&n.add(e)}),i||(s.offset=a/e.duration),r.push(s)});var o=t.size?Gp(t.values()):[],a=n.size?Gp(n.values()):[];if(i){var s=r[0],c=Lp(s);s.offset=0,c.offset=1,r=[s,c]}return lv(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),e}(),bv=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return s(this,n),(u=t.call(this,e,i,c.delay)).keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:c.duration,delay:c.delay,easing:c.easing},u}return a(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,c=Dp(e[0],!1);c.offset=0,o.push(c);var u=Dp(e[0],!1);u.offset=_v(s),o.push(u);for(var l=e.length-1,h=1;h<=l;h++){var d=Dp(e[h],!1);d.offset=_v((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",e=o}return lv(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(yv);function _v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var kv=function e(){s(this,e)},wv=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"normalizePropertyName",value:function(e,t){return Zp(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",o=n.toString().trim();if(Sv[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return o+r}}]),n}(kv),Sv=function(){return e="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function Cv(e,t,n,i,r,o,a,s,c,u,l,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:h,errors:d}}var Ev={},xv=function(){function e(t,n,i){s(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return a(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],o=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):o}},{key:"build",value:function(e,t,n,i,r,o,a,s,c,u){var l=[],h=this.ast.options&&this.ast.options.params||Ev,d=this.buildStyles(n,a&&a.params||Ev,l),f=s&&s.params||Ev,p=this.buildStyles(i,f,l),v=new Set,m=new Map,g=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),f)},_=u?[]:pv(e,t,this.ast.animation,r,o,d,p,b,c,l),k=0;if(_.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),l.length)return Cv(t,this._triggerName,n,i,y,d,p,[],[],m,g,k,l);_.forEach(function(e){var n=e.element,i=hp(m,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=hp(g,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&v.add(n)});var w=Gp(v.values());return Cv(t,this._triggerName,n,i,y,d,p,_,w,m,g,k)}}]),e}(),Ov=function(){function e(t,n,i){s(this,e),this.styles=t,this.defaultParams=n,this.normalizer=i}return a(e,[{key:"buildStyles",value:function(e,t){var n=this,i={},r=Lp(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var a=o[e];a.length>1&&(a=Wp(a,r,t));var s=n.normalizer.normalizePropertyName(e,t);a=n.normalizer.normalizeStyleValue(e,s,a,t),i[s]=a})}}),i}}]),e}(),Tv=function(){function e(t,n,i){var r=this;s(this,e),this.name=t,this.ast=n,this._normalizer=i,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new Ov(e.style,e.options&&e.options.params||{},i)}),Iv(this.states,"true","1"),Iv(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new xv(t,e,r.states))}),this.fallbackTransition=new xv(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return a(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Iv(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Pv=new hv,Mv=function(){function e(t,n,i){s(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return a(e,[{key:"register",value:function(e,t){var n=[],i=rv(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=sp(this._driver,this._normalizer,i,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[e],s=new Map;if(a?(n=pv(this._driver,t,a,xp,Op,{},{},r,Pv,o)).forEach(function(e){var t=hp(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,Wf)})});var c=n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}),u=ap(c);return this._playersById[e]=u,u.onDestroy(function(){return i.destroy(e)}),this.players.push(u),u}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=lp(t,"","","");return cp(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Av="ng-animate-queued",Rv="ng-animate-disabled",Nv=".ng-animate-disabled",Lv="ng-star-inserted",Dv=[],Vv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fv=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";s(this,e),this.namespaceId=n;var i=t&&t.hasOwnProperty("value"),r=i?t.value:t;if(this.value=Gv(r),i){var o=Lp(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return a(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Bv="void",Uv=new Fv(Bv),zv=function(){function e(t,n,i){s(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Kv(n,this._hostClassName)}return a(e,[{key:"listen",value:function(e,t,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var a=hp(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};a.push(s);var c=hp(this._engine.statesByElement,e,{});return c.hasOwnProperty(t)||(Kv(e,Tp),Kv(e,"ng-trigger-"+t),c[t]=Uv),function(){o._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),o._triggers[t]||delete c[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(t),a=new Wv(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Kv(e,Tp),Kv(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var c=s[t],u=new Fv(n,this.id),l=n&&n.hasOwnProperty("value");!l&&c&&u.absorbOptions(c.options),s[t]=u,c||(c=Uv);var h=u.value===Bv;if(h||c.value!==u.value){var d=hp(this._engine.playersByElement,e,[]);d.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var f=o.matchTransition(c.value,u.value,e,u.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:c,toState:u,player:a,isFallbackTransition:p}),p||(Kv(e,Av),a.onStart(function(){Jv(e,Av)})),a.onDone(function(){var t=i.players.indexOf(a);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),d.push(a),a}if(!em(c.params,u.params)){var v=[],m=o.matchStyles(c.value,c.params,v),g=o.matchStyles(u.value,u.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(function(){Bp(e,m),Fp(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,Ip,!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,o=this._engine.statesByElement.get(e);if(o){var a=[];if(Object.keys(o).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,Bv,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&ap(a).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=t._triggers[o].fallbackTransition,s=i[o]||Uv,c=new Fv(Bv),u=new Wv(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:s,toState:c,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(e):[];if(o&&o.length)r=!0;else for(var a=e;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Vv||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Kv(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=t._elementListeners.get(o);a&&a.forEach(function(t){if(t.name==i.triggerName){var n=lp(o,i.triggerName,i.fromState.value,i.toState.value);n._data=e,cp(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Hv=function(){function e(t,n,i){s(this,e),this.bodyNode=t,this.driver=n,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=function(e,t){}}return a(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new zv(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&t.add(a)}}return t}},{key:"trigger",value:function(e,t,n,i){if(qv(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(qv(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){var a=this._fetchNamespace(e);a&&a.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Kv(e,Rv)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Jv(e,Rv))}},{key:"removeNode",value:function(e,t,n,i){if(qv(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return qv(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,Ip,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,Mp,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return ap(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Vv,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,Nv)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Nv,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++){var r=this.collectedEnterElements[i];Kv(r,Lv)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var s=0;s<this.collectedLeaveElements.length;s++){var c=this.collectedLeaveElements[s];this.processLeaveNode(c)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var u=this._whenQuietFns;this._whenQuietFns=[],n.length?ap(n).onDone(function(){u.forEach(function(e){return e()})}):u.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new hv,r=[],o=new Map,a=[],s=new Map,c=new Map,u=new Map,l=new Set;this.disabledNodes.forEach(function(e){l.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)l.add(t[i])});var h=this.bodyNode,d=Array.from(this.statesByElement.keys()),f=Qv(d,this.collectedEnterElements),p=new Map,v=0;f.forEach(function(e,t){var n=xp+v++;p.set(t,n),e.forEach(function(e){return Kv(e,n)})});for(var m=[],g=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++){var _=this.collectedLeaveElements[b],k=_.__ng_removed;k&&k.setForRemoval&&(m.push(_),g.add(_),k.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach(function(e){return g.add(e)}):y.add(_))}var w=new Map,S=Qv(d,Array.from(g));S.forEach(function(e,t){var n=Op+v++;w.set(t,n),e.forEach(function(e){return Kv(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return Jv(e,n)})}),S.forEach(function(e,t){var n=w.get(t);e.forEach(function(e){return Jv(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var E=[],x=[],O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(t).forEach(function(e){var t=e.player,o=e.element;if(E.push(t),n.collectedEnterElements.length){var l=o.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,o),f=w.get(o),v=p.get(o),m=n._buildInstruction(e,i,v,f,d);if(m.errors&&m.errors.length)x.push(m);else{if(d)return t.onStart(function(){return Bp(o,m.fromStyles)}),t.onDestroy(function(){return Fp(o,m.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Bp(o,m.fromStyles)}),t.onDestroy(function(){return Fp(o,m.toStyles)}),void r.push(t);m.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:t,element:o}),m.queriedElements.forEach(function(e){return hp(s,e,[]).push(t)}),m.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),m.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=u.get(t);i||u.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(x.length){var T=[];x.forEach(function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return T.push("- ".concat(e,"\n"))})}),E.forEach(function(e){return e.destroy()}),this.reportError(T)}var I=new Map,P=new Map;a.forEach(function(e){var t=e.element;i.has(t)&&(P.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){hp(I,t,[]).push(e),e.destroy()})});var M=m.filter(function(e){return tm(e,c,u)}),A=new Map;Yv(A,this.driver,y,u,Wf).forEach(function(e){tm(e,c,u)&&M.push(e)});var R=new Map;f.forEach(function(e,t){Yv(R,n.driver,new Set(e),c,ip)}),M.forEach(function(e){var t=A.get(e),n=R.get(e);A.set(e,Object.assign(Object.assign({},t),n))});var N=[],L=[],D={};a.forEach(function(e){var t=e.element,a=e.player,s=e.instruction;if(i.has(t)){if(l.has(t))return a.onDestroy(function(){return Fp(t,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var c=D;if(P.size>1){for(var u=t,h=[];u=u.parentNode;){var d=P.get(u);if(d){c=d;break}h.push(u)}h.forEach(function(e){return P.set(e,c)})}var f=n._buildAnimation(a.namespaceId,s,I,o,R,A);if(a.setRealPlayer(f),c===D)N.push(a);else{var p=n.playersByElement.get(c);p&&p.length&&(a.parentPlayer=ap(p)),r.push(a)}}else Bp(t,s.fromStyles),a.onDestroy(function(){return Fp(t,s.toStyles)}),L.push(a),l.has(t)&&r.push(a)}),L.forEach(function(e){var t=o.get(e.element);if(t&&t.length){var n=ap(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var V=0;V<m.length;V++){var j=m[V],F=j.__ng_removed;if(Jv(j,Op),!F||!F.hasAnimation){var B=[];if(s.size){var U=s.get(j);U&&U.length&&B.push.apply(B,C(U));for(var z=this.driver.query(j,Mp,!0),H=0;H<z.length;H++){var W=s.get(z[H]);W&&W.length&&B.push.apply(B,C(W))}}var G=B.filter(function(e){return!e.destroyed});G.length?Xv(this,j,G):this.processLeaveNode(j)}}return m.length=0,N.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),N}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var o=[];if(t){var a=this.playersByQueriedElement.get(e);a&&(o=a)}else{var s=this.playersByElement.get(e);if(s){var c=!r||r==Bv;s.forEach(function(e){e.queued||(c||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),o}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,o=t.element,a=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,c=g(t.timelines);try{var u=function(){var e=i.value.element,c=e!==o,u=hp(n,e,[]);r._getPreviousPlayers(e,c,a,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})};for(c.s();!(i=c.n()).done;)u()}catch(l){c.e(l)}finally{c.f()}Bp(o,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,o){var a=this,s=t.triggerName,c=t.element,u=[],l=new Set,h=new Set,d=t.timelines.map(function(t){var d=t.element;l.add(d);var f=d.__ng_removed;if(f&&f.removedBeforeQueried)return new tp(t.duration,t.delay);var p,v,m=d!==c,g=(p=(n.get(d)||Dv).map(function(e){return e.getRealPlayer()}),v=[],$v(p,v),v).filter(function(e){return!!e.element&&e.element===d}),y=r.get(d),b=o.get(d),_=sp(a.driver,a._normalizer,d,t.keyframes,y,b),k=a._buildPlayer(t,_,g);if(t.subTimeline&&i&&h.add(d),m){var w=new Wv(e,s,d);w.setRealPlayer(k),u.push(w)}return k});u.forEach(function(e){hp(a.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var o=i.indexOf(n);i.splice(o,1)}0==i.length&&delete e[t]}return i}(a.playersByQueriedElement,e.element,e)})}),l.forEach(function(e){return Kv(e,Pp)});var f=ap(d);return f.onDestroy(function(){l.forEach(function(e){return Jv(e,Pp)}),Fp(c,t.toStyles)}),h.forEach(function(e){hp(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new tp(e.duration,e.delay)}}]),e}(),Wv=function(){function e(t,n,i){s(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new tp,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return a(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return cp(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){hp(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Gv(e){return null!=e?e:null}function qv(e){return e&&1===e.nodeType}function Zv(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Yv(e,t,n,i,r){var o=[];n.forEach(function(e){return o.push(Zv(e))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(e){var n=o[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=jv,a.push(i))}),e.set(i,o)});var s=0;return n.forEach(function(e){return Zv(e,o[s++])}),a}function Qv(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function o(e){if(!e)return 1;var t=r.get(e);if(t)return t;var a=e.parentNode;return t=n.has(a)?a:i.has(a)?1:o(a),r.set(e,t),t}return t.forEach(function(e){var t=o(e);1!==t&&n.get(t).push(e)}),n}function Kv(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Jv(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Xv(e,t,n){ap(n).onDone(function(){return e.processLeaveNode(t)})}function $v(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof np?$v(i.players,t):t.push(i)}}function em(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}function tm(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var nm=function(){function e(t,n,i){var r=this;s(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Hv(t,n,i),this._timelineEngine=new Mv(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return a(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var o=e+"-"+i,a=this._triggerCache[o];if(!a){var s=[],c=rv(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(e,t,n){return new Tv(e,t,n)}(i,c,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=_(dp(n),2);this._timelineEngine.command(r[0],t,r[1],i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var o=_(dp(n),2);return this._timelineEngine.listen(o[0],t,o[1],r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function im(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=om(t[0]),t.length>1&&(i=om(t[t.length-1]))):t&&(n=om(t)),n||i?new rm(e,n,i):null}var rm=function(){var e=function(){function e(t,n,i){s(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return a(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Fp(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Fp(this._element,this._initialStyles),this._endStyles&&(Fp(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Bp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bp(this._element,this._endStyles),this._endStyles=null),Fp(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function om(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];am(r)&&((t=t||{})[r]=e[r])}return t}function am(e){return"display"===e||"position"===e}var sm="animation",cm="animationend",um=function(){function e(t,n,i,r,o,a,c){var u=this;s(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=o,this._fillMode=a,this._onDoneFn=c,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return u._handleCallback(e)}}return a(e,[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=vm(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)","===e.charAt(n)&&0}(n),t="".concat(n,", ").concat(t)),pm(e,"",t),fm(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){lm(this._element,this._name,"paused")}},{key:"resume",value:function(){lm(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=hm(this._element,this._name);this._position=e*this._duration,pm(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),fm(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(i=dm(n=vm(e=this._element,"").split(","),t))>=0&&(n.splice(i,1),pm(e,"",n.join(","))))}}]),e}();function lm(e,t,n){pm(e,"PlayState",n,hm(e,t))}function hm(e,t){var n=vm(e,"");return n.indexOf(",")>0?dm(n.split(","),t):dm([n],t)}function dm(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function fm(e,t,n){n?e.removeEventListener(cm,t):e.addEventListener(cm,t)}function pm(e,t,n,i){var r=sm+t;if(null!=i){var o=e.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}e.style[r]=n}function vm(e,t){return e.style[sm+t]||""}var mm=function(){function e(t,n,i,r,o,a,c,u){s(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return a(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new um(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Jp(e.element,i))})}this.currentSnapshot=t}}]),e}(),gm=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Sp(i),r}return a(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(tp),ym="gen_css_kf_",bm=function(){function e(){s(this,e),this._count=0}return a(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Sp(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(e){return e instanceof mm}),s={};Yp(n,i)&&a.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var c=km(t=Qp(e,t,s));if(0==n)return new gm(e,c);var u="".concat(ym).concat(this._count++),l=this.buildKeyframeElement(e,u,t),h=_m(e);h.appendChild(l);var d=im(e,t),f=new mm(e,t,u,n,i,r,c,d);return f.onDestroy(function(){return wm(l)}),f}}]),e}();function _m(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function km(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}function wm(e){e.parentNode.removeChild(e)}var Sm=function(){function e(t,n,i,r){s(this,e),this.element=t,this.keyframes=n,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.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return a(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Jp(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Cm=function(){function e(){s(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Em().toString()),this._cssKeyframesDriver=new bm}return a(e,[{key:"validateStyleProperty",value:function(e){return bp(e)}},{key:"matchesElement",value:function(e,t){return _p(e,t)}},{key:"containsElement",value:function(e,t){return kp(e,t)}},{key:"query",value:function(e,t,n){return wp(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,i,r,o);var c=0==i?"both":"forwards",u={duration:n,delay:i,fill:c};r&&(u.easing=r);var l={},h=o.filter(function(e){return e instanceof Sm});Yp(n,i)&&h.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var d=im(e,t=Qp(e,t=t.map(function(e){return Dp(e,!1)}),l));return new Sm(e,t,u,d)}}]),e}();function Em(){return rp()&&Element.prototype.animate||{}}var xm=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:$e.None,styles:[],data:{animation:[]}}),r}return a(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Zf(e):e;return Im(this._renderer,null,t,"register",[n]),new Om(t,this._renderer)}}]),n}(zf);return e.\u0275fac=function(t){return new(t||e)(ji(Cc),ji(Zl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Om=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return a(n,[{key:"create",value:function(e,t){return new Tm(this._id,e,t||{},this._renderer)}}]),n}(Hf),Tm=function(){function e(t,n,i,r){s(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return a(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Im(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Im(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Pm="@",Mm="@.disabled",Am=function(){var e=function(){function e(t,n,i){s(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return a(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Rm("",i,this.engine),this._rendererCache.set(i,r)),r}var o=t.id,a=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(o,a,e,i.name,i)}),new Nm(this,a,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=_(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Cc),ji(nm),ji(hl))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Rm=function(){function e(t,n,i){s(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return a(e,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==Pm&&t==Mm?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Nm=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,i,r,o)).factory=e,a.namespaceId=i,a}return a(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==Pm?"."==t.charAt(1)&&t==Mm?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,o=this;if(t.charAt(0)==Pm){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),c="";if(s.charAt(0)!=Pm){var u=_((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],c=u[1]}return this.engine.listen(this.namespaceId,a,s,c,function(e){o.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Rm),Lm=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){return s(this,n),t.call(this,e.body,i,r)}return a(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(nm);return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Ep),ji(kv))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Dm=new _i("AnimationModuleType"),Vm=[{provide:zf,useClass:xm},{provide:kv,useFactory:function(){return new wv}},{provide:nm,useClass:Lm},{provide:Cc,useFactory:function(e,t,n){return new Am(e,t,n)},deps:[rd,nm,hl]}],jm=[{provide:Ep,useFactory:function(){return"function"==typeof Em()?new Cm:new bm}},{provide:Dm,useValue:"BrowserAnimations"}].concat(Vm),Fm=[{provide:Ep,useClass:Cp},{provide:Dm,useValue:"NoopAnimations"}].concat(Vm),Bm=function(){var e=function(){function e(){s(this,e)}return a(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Fm:jm}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:jm,imports:[bd]}),e}(),Um=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this))._value=e,i}return a(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=r(i(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new G;return this._value}},{key:"next",value:function(e){r(i(n.prototype),"next",this).call(this,this._value=e)}}]),n}(Y);function zm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return K(i)?(t.pop(),ae(t,i)):ve(t)}var Hm=27;function Wm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length?n.some(function(t){return e[t]}):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}function Gm(){}function qm(e,t,n){return function(i){return i.lift(new Zm(e,t,n))}}var Zm=function(){function e(t,n,i){s(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Ym(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),Ym=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e))._tapNext=Gm,a._tapError=Gm,a._tapComplete=Gm,a._tapError=r||Gm,a._tapComplete=o||Gm,I(i)?(a._context=d(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||Gm,a._tapError=i.error||Gm,a._tapComplete=i.complete||Gm),a}return a(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(j),Qm=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return a(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(WP){n=!0,i=!!WP&&WP||new Error(WP)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){u(n,e);var t=p(n);function n(e,i){return s(this,n),t.call(this)}return a(n,[{key:"schedule",value:function(e){return this}}]),n}(M)),Km=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;s(this,e),this.SchedulerAction=t,this.now=n}return a(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),Jm=function(e){u(n,e);var t=p(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Km.now;return s(this,n),(i=t.call(this,e,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return a(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,o):r(i(n.prototype),"schedule",this).call(this,e,t,o)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(Km),Xm=new Jm(Qm);function $m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm;return function(n){return n.lift(new eg(e,t))}}var eg=function(){function e(t,n){s(this,e),this.dueTime=t,this.scheduler=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new tg(e,this.dueTime,this.scheduler))}}]),e}(),tg=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return a(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ng,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(j);function ng(e){e.debouncedNext()}function ig(e,t){return function(n){return n.lift(new rg(e,t))}}var rg=function(){function e(t,n){s(this,e),this.predicate=t,this.thisArg=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new og(e,this.predicate,this.thisArg))}}]),e}(),og=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).predicate=i,o.thisArg=r,o.count=0,o}return a(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(j),ag=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}(),sg=new H(function(e){return e.complete()});function cg(e){return e?function(e){return new H(function(t){return e.schedule(function(){return t.complete()})})}(e):sg}function ug(e){return function(t){return 0===e?cg():t.lift(new lg(e))}}var lg=function(){function e(t){if(s(this,e),this.total=t,this.total<0)throw new ag}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new hg(e,this.total))}}]),e}(),hg=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return a(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(j);function dg(e){return function(t){return t.lift(new fg(e))}}var fg=function(){function e(t){s(this,e),this.total=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new pg(e,this.total))}}]),e}(),pg=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return a(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(j);function vg(e,t){return function(n){return n.lift(new mg(e,t))}}var mg=function(){function e(t,n){s(this,e),this.compare=t,this.keySelector=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new gg(e,this.compare,this.keySelector))}}]),e}(),gg=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).keySelector=r,o.hasKey=!1,"function"==typeof i&&(o.compare=i),o}return a(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(j);function yg(e){return function(t){return t.lift(new _g(e))}}var bg,_g=function(){function e(t){s(this,e),this.notifier=t}return a(e,[{key:"call",value:function(e,t){var n=new kg(e),i=le(this.notifier,new ce(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),kg=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e)).seenValue=!1,i}return a(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ue);function wg(e){return null!=e&&"false"!=="".concat(e)}function Sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Cg(e)?Number(e):t}function Cg(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}function Eg(e){return Array.isArray(e)?e:[e]}function xg(e){return null==e?"":"string"==typeof e?e:"".concat(e,"px")}function Og(e){return e instanceof wc?e.nativeElement:e}try{bg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch($R){bg=!1}var Tg,Ig,Pg,Mg,Ag,Rg=function(){var e=function e(t){s(this,e),this._platformId=t,this.isBrowser=this._platformId?Ah(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&&!bg)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return e.\u0275fac=function(t){return new(t||e)(ji(Ku))},e.\u0275prov=Ve({factory:function(){return new e(ji(Ku))},token:e,providedIn:"root"}),e}(),Ng=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),Lg=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Dg(){if(Tg)return Tg;if("object"!=typeof document||!document)return Tg=new Set(Lg);var e=document.createElement("input");return Tg=new Set(Lg.filter(function(t){return e.setAttribute("type",t),e.type===t}))}function Vg(e){return function(){if(null==Ig&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ig=!0}}))}finally{Ig=Ig||!1}return Ig}()?e:!!e.capture}function jg(){if(null==Mg){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Mg=!1;if("scrollBehavior"in document.documentElement.style)Mg=!0;else{var e=Element.prototype.scrollTo;Mg=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Mg}function Fg(){if("object"!=typeof document||!document)return 0;if(null==Pg){var e=document.createElement("div"),t=e.style;e.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";var n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",e.appendChild(n),document.body.appendChild(e),Pg=0,0===e.scrollLeft&&(e.scrollLeft=1,Pg=0===e.scrollLeft?1:2),e.parentNode.removeChild(e)}return Pg}function Bg(e){if(function(){if(null==Ag){var e="undefined"!=typeof document?document.head:null;Ag=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Ag}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function Ug(){for(var e="undefined"!=typeof document&&document?document.activeElement:null;e&&e.shadowRoot;){var t=e.shadowRoot.activeElement;if(t===e)break;e=t}return e}function zg(e){return e.composedPath?e.composedPath()[0]:e.target}var Hg=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Wg=function(){var e=function(){function e(t){s(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return a(e,[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=Og(e);return new H(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new Y,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Hg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Hg))},token:e,providedIn:"root"}),e}(),Gg=function(){var e=function(){function e(t,n,i){s(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Eu,this._disabled=!1,this._currentSubscription=null}return a(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=Sg(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe($m(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Wg),ss(wc),ss(hl))},e.\u0275dir=kt({type:e,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),e}(),qg=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Hg]}),e}();function Zg(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Yg="cdk-describedby-message-container",Qg="cdk-describedby-message",Kg="cdk-describedby-host",Jg=0,Xg=new Map,$g=null,ey=function(){var e=function(){function e(t){s(this,e),this._document=t}return a(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=ty(t,n);"string"!=typeof t?(ny(t),Xg.set(i,{messageElement:t,referenceCount:0})):Xg.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=ty(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=Xg.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}$g&&0===$g.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[".concat(Kg,"]")),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute(Kg);$g&&this._deleteMessagesContainer(),Xg.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");ny(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),$g.appendChild(n),Xg.set(ty(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=Xg.get(e),n=t&&t.messageElement;$g&&n&&$g.removeChild(n),Xg.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!$g){var e=this._document.getElementById(Yg);e&&e.parentNode&&e.parentNode.removeChild(e),($g=this._document.createElement("div")).id=Yg,$g.style.visibility="hidden",$g.classList.add("cdk-visually-hidden"),this._document.body.appendChild($g)}}},{key:"_deleteMessagesContainer",value:function(){$g&&$g.parentNode&&($g.parentNode.removeChild($g),$g=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Zg(e,"aria-describedby").filter(function(e){return 0!=e.indexOf(Qg)});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,o=Xg.get(t);i=o.messageElement.id,(r=Zg(n=e,"aria-describedby")).some(function(e){return e.trim()==i.trim()})||(r.push(i.trim()),n.setAttribute("aria-describedby",r.join(" "))),e.setAttribute(Kg,""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,o,a=Xg.get(t);a.referenceCount--,r=a.messageElement.id,(o=Zg(n=e,i="aria-describedby").filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,o.join(" ")):n.removeAttribute(i),e.removeAttribute(Kg)}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=Zg(e,"aria-describedby"),i=Xg.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}();function ty(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function ny(e){e.id||(e.id="".concat(Qg,"-").concat(Jg++))}var iy=function(){function e(t){var n=this;s(this,e),this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Y,this._typeaheadSubscription=M.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(e){return e.disabled},this._pressedLetters=[],this.tabOut=new Y,this.change=new Y,t instanceof Ou&&t.changes.subscribe(function(e){if(n._activeItem){var t=e.toArray().indexOf(n._activeItem);t>-1&&t!==n._activeItemIndex&&(n._activeItemIndex=t)}})}return a(e,[{key:"skipPredicate",value:function(e){return this._skipPredicateFn=e,this}},{key:"withWrap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=e,this}},{key:"withVerticalOrientation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=e,this}},{key:"withHorizontalOrientation",value:function(e){return this._horizontal=e,this}},{key:"withAllowedModifierKeys",value:function(e){return this._allowedModifierKeys=e,this}},{key:"withTypeAhead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(qm(function(t){return e._pressedLetters.push(t)}),$m(t),ig(function(){return e._pressedLetters.length>0}),J(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),i=1;i<n.length+1;i++){var r=(e._activeItemIndex+i)%n.length,o=n[r];if(!e._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){e.setActiveItem(r);break}}e._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=e,this}},{key:"setActiveItem",value:function(e){var t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(e){var t=this,n=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!e[n]||t._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Wm(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],e.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(e){var t=this._getItemsArray(),n="number"==typeof e?e:t.indexOf(e),i=t[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}},{key:"_setActiveInWrapMode",value:function(e){for(var t=this._getItemsArray(),n=1;n<=t.length;n++){var i=(this._activeItemIndex+e*n+t.length)%t.length;if(!this._skipPredicateFn(t[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}},{key:"_setActiveItemByIndex",value:function(e,t){var n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(!n[e+=t])return;this.setActiveItem(e)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Ou?this._items.toArray():this._items}}]),e}(),ry=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"setActiveItem",value:function(e){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(iy),oy=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments))._origin="program",e}return a(n,[{key:"setFocusOrigin",value:function(e){return this._origin=e,this}},{key:"setActiveItem",value:function(e){r(i(n.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(iy),ay=function(){var e=function(){function e(t){s(this,e),this._platform=t}return a(e,[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch($R){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){if(-1===cy(n))return!1;if(!this.isVisible(n))return!1}var i=e.nodeName.toLowerCase(),r=cy(e);return e.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&("audio"===i?!!e.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}},{key:"isFocusable",value:function(e,t){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||sy(e))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg))},token:e,providedIn:"root"}),e}();function sy(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function cy(e){if(!sy(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var uy=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return a(e,[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement(e))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement(e))})})}},{key:"focusLastTabbableElementWhenReady",value:function(e){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement(e))})})}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], ")+"[cdkFocusRegion".concat(e,"], ")+"[cdk-focus-".concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-".concat(e))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",t[n]):t[n].hasAttribute("cdk-focus-region-".concat(e))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', ")+"use 'cdkFocusRegion".concat(e,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(e){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){var n=this._getFirstTabbableElement(t);return null==n||n.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}},{key:"focusFirstTabbableElement",value:function(e){var t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}},{key:"focusLastTabbableElement",value:function(e){var t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(ug(1)).subscribe(e)}}]),e}(),ly=function(){var e=function(){function e(t,n,i){s(this,e),this._checker=t,this._ngZone=n,this._document=i}return a(e,[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new uy(e,this._checker,this._ngZone,this._document,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(ay),ji(hl),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(ay),ji(hl),ji(Zl))},token:e,providedIn:"root"}),e}();function hy(e){return 0===e.offsetX&&0===e.offsetY}function dy(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var fy=new _i("cdk-input-modality-detector-options"),py={ignoreKeys:[18,17,224,91,16]},vy=Vg({passive:!0,capture:!0}),my=function(){var e=function(){function e(t,n,i,r){var o=this;s(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new Um(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=o._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=zg(e))},this._onMousedown=function(e){Date.now()-o._lastTouchMs<650||(o._modality.next(hy(e)?"keyboard":"mouse"),o._mostRecentTarget=zg(e))},this._onTouchstart=function(e){dy(e)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=zg(e))},this._options=Object.assign(Object.assign({},py),r),this.modalityDetected=this._modality.pipe(dg(1)),this.modalityChanged=this.modalityDetected.pipe(vg()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,vy),i.addEventListener("mousedown",o._onMousedown,vy),i.addEventListener("touchstart",o._onTouchstart,vy)})}return a(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,vy),document.removeEventListener("mousedown",this._onMousedown,vy),document.removeEventListener("touchstart",this._onTouchstart,vy))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(hl),ji(Zl),ji(fy,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl),ji(Zl),ji(fy,8))},token:e,providedIn:"root"}),e}(),gy=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),yy=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),by=function(){var e=function(){function e(t,n,i,r){s(this,e),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=t||this._createLiveElement()}return a(e,[{key:"announce",value:function(e){for(var t,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return 1===a.length&&"number"==typeof a[0]?n=a[0]:(t=a[0],n=a[1]),this.clear(),clearTimeout(this._previousTimeout),t||(t=r&&r.politeness?r.politeness:"polite"),null==n&&r&&(n=r.duration),this._liveElement.setAttribute("aria-live",t),this._ngZone.runOutsideAngular(function(){return new Promise(function(t){clearTimeout(i._previousTimeout),i._previousTimeout=setTimeout(function(){i._liveElement.textContent=e,t(),"number"==typeof n&&(i._previousTimeout=setTimeout(function(){return i.clear()},n))},100)})})}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div"),i=0;i<t.length;i++)t[i].parentNode.removeChild(t[i]);return n.classList.add(e),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(gy,8),ji(hl),ji(Zl),ji(yy,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(gy,8),ji(hl),ji(Zl),ji(yy,8))},token:e,providedIn:"root"}),e}(),_y=new _i("cdk-focus-monitor-default-options"),ky=Vg({passive:!0,capture:!0}),wy=function(){var e=function(){function e(t,n,i,r,o){var a=this;s(this,e),this._ngZone=t,this._platform=n,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout(function(){return a._windowFocused=!1})},this._stopInputModalityDetector=new Y,this._rootNodeFocusAndBlurListener=function(e){for(var t=zg(e),n="focus"===e.type?a._onFocus:a._onBlur,i=t;i;i=i.parentElement)n.call(a,e,i)},this._document=r,this._detectionMode=(null==o?void 0:o.detectionMode)||0}return a(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Og(e);if(!this._platform.isBrowser||1!==n.nodeType)return zm(null);var i=Bg(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var o={checkChildren:t,subject:new Y,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(e){var t=Og(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=Og(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_(e,2);return i._originChanged(n[0],t,n[1])}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=zg(e);n&&(n.checkChildren||t===i)&&this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,ky),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,ky)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(yg(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ky),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ky),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Rg),ji(my),ji(Zl,8),ji(_y,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Rg),ji(my),ji(Zl,8),ji(_y,8))},token:e,providedIn:"root"}),e}(),Sy="cdk-high-contrast-black-on-white",Cy="cdk-high-contrast-white-on-black",Ey="cdk-high-contrast-active",xy=function(){var e=function(){function e(t,n){s(this,e),this._platform=t,this._document=n}return a(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove(Ey),e.remove(Sy),e.remove(Cy),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add(Ey),e.add(Sy)):2===t&&(e.add(Ey),e.add(Cy))}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(Zl))},token:e,providedIn:"root"}),e}(),Oy=function(){var e=function e(t){s(this,e),t._applyBodyHighContrastModeCssClasses()};return e.\u0275fac=function(t){return new(t||e)(ji(xy))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Ng,qg]]}),e}(),Ty=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return Fi(Zl)}}),Iy=function(){var e=function(){function e(t){if(s(this,e),this.value="ltr",this.change=new Eu,t){var n=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return a(e,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Ty,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Ty,8))},token:e,providedIn:"root"}),e}(),Py=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),My=new Tc("12.1.3");function Ay(){return pe(1)}function Ry(){return Ay()(zm.apply(void 0,arguments))}function Ny(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return K(i)?(t.pop(),function(e){return Ry(t,e,i)}):function(e){return Ry(t,e)}}function Ly(e,t){if(1&e&&ds(0,"mat-pseudo-checkbox",4),2&e){var n=Cs();cs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Dy(e,t){if(1&e&&(ls(0,"span",5),Ys(1),hs()),2&e){var n=Cs();Mo(1),Ks("(",n.group.label,")")}}var Vy=["*"],jy=new Tc("12.1.3"),Fy=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),By=function(){var e=function(){function e(t,n,i){s(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return a(e,[{key:"_getWindow",value:function(){var e=this._document.defaultView||window;return"object"==typeof e&&e?e:null}},{key:"_checksAreEnabled",value:function(){return Cl()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&jy.full!==My.full&&console.warn("The Angular Material version ("+jy.full+") does not match the Angular CDK version ("+My.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(xy),ji(Fy,8),ji(Zl))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Py],Py]}),e}();function Uy(e){return function(e){u(n,e);var t=p(n);function n(){var e;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return a(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(e)}}]),n}(e)}function zy(e,t){return function(e){u(i,e);var n=p(i);function i(){var e;s(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o))).defaultColor=t,e.color=t,e}return a(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}function Hy(e){return function(e){u(n,e);var t=p(n);function n(){var e;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return a(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=wg(e)}}]),n}(e)}function Wy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){u(i,e);var n=p(i);function i(){var e;s(this,i);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=n.call.apply(n,[this].concat(o)))._tabIndex=t,e.defaultTabIndex=t,e}return a(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?Sg(e):this.defaultTabIndex}}]),i}(e)}function Gy(e){return function(e){u(n,e);var t=p(n);function n(){var e;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).stateChanges=new Y,e.errorState=!1,e}return a(n,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}]),n}(e)}var qy=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Zy=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),Yy=function(){function e(t,n,i){s(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return a(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),Qy={enterDuration:225,exitDuration:150},Ky=Vg({passive:!0}),Jy=["mousedown","touchstart"],Xy=["mouseup","mouseleave","touchend","touchcancel"],$y=function(){function e(t,n,i,r){s(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Og(i))}return a(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Qy),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var a=i.radius||tb(e,t,r),s=e-r.left,c=t-r.top,u=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left="".concat(s-a,"px"),l.style.top="".concat(c-a,"px"),l.style.height="".concat(2*a,"px"),l.style.width="".concat(2*a,"px"),null!=i.color&&(l.style.backgroundColor=i.color),l.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(l),eb(l),l.style.transform="scale(1)";var h=new Yy(this,l,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var e=h===n._mostRecentTransientRipple;h.state=1,i.persistent||e&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},Qy),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=Og(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(Jy))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Xy),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=hy(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!dy(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,Ky)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(Jy.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ky)}),this._pointerUpEventsRegistered&&Xy.forEach(function(t){e._triggerElement.removeEventListener(t,e,Ky)}))}}]),e}();function eb(e){window.getComputedStyle(e).getPropertyValue("opacity")}function tb(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}var nb=new _i("mat-ripple-global-options"),ib=function(){var e=function(){function e(t,n,i,r,o){s(this,e),this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new $y(this,n,t,i)}return a(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(hl),ss(Rg),ss(nb,8),ss(Dm,8))},e.\u0275dir=kt({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Vs("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),e}(),rb=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By,Ng],By]}),e}(),ob=function(){var e=function e(t){s(this,e),this._animationMode=t,this.state="unchecked",this.disabled=!1};return e.\u0275fac=function(t){return new(t||e)(ss(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&Vs("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),e}(),ab=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By]]}),e}(),sb=new _i("MAT_OPTION_PARENT_COMPONENT"),cb=Uy(function(){return function e(){s(this,e)}}()),ub=0,lb=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i,r;return s(this,n),(i=t.call(this))._labelId="mat-optgroup-label-".concat(ub++),i._inert=null!==(r=null==e?void 0:e.inertGroups)&&void 0!==r&&r,i}return n}(cb);return e.\u0275fac=function(t){return new(t||e)(ss(sb,8))},e.\u0275dir=kt({type:e,inputs:{label:"label"},features:[Ga]}),e}(),hb=new _i("MatOptgroup"),db=0,fb=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,e),this.source=t,this.isUserInput=n},pb=function(){var e=function(){function e(t,n,i,r){s(this,e),this._element=t,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(db++),this.onSelectionChange=new Eu,this._stateChanges=new Y}return a(e,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(e){this._disabled=wg(e)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(e,t){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(t)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(e){13!==e.keyCode&&32!==e.keyCode||Wm(e)||(this._selectViaInteraction(),e.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new fb(this,e))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Yc),ss(void 0),ss(lb))},e.\u0275dir=kt({type:e,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),e}(),vb=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){return s(this,n),t.call(this,e,i,r,o)}return n}(pb);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Yc),ss(sb,8),ss(hb,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&bs("click",function(){return t._selectViaInteraction()})("keydown",function(e){return t._handleKeydown(e)}),2&e&&(Js("id",t.id),is("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),Vs("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[Ga],ngContentSelectors:Vy,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,t){1&e&&(xs(),os(0,Ly,1,2,"mat-pseudo-checkbox",0),ls(1,"span",1),Os(2),hs(),os(3,Dy,2,1,"span",2),ds(4,"div",3)),2&e&&(cs("ngIf",t.multiple),Mo(3),cs("ngIf",t.group&&t.group._inert),Mo(1),cs("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[bh,ib,ob],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}\n"],encapsulation:2,changeDetection:0}),e}();function mb(e,t,n){if(n.length){for(var i=t.toArray(),r=n.toArray(),o=0,a=0;a<e+1;a++)i[a].group&&i[a].group===r[o]&&o++;return o}return 0}var gb=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[rb,Mh,By,ab]]}),e}(),yb=0,bb=Uy(function(){return function e(){s(this,e)}}()),_b=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this))._ngZone=e,c._elementRef=i,c._ariaDescriber=r,c._renderer=o,c._animationMode=a,c._hasContent=!1,c._color="primary",c._overlap=!0,c.position="above after",c.size="medium",c._id=yb++,c}return a(n,[{key:"color",get:function(){return this._color},set:function(e){this._setColor(e),this._color=e}},{key:"overlap",get:function(){return this._overlap},set:function(e){this._overlap=wg(e)}},{key:"description",get:function(){return this._description},set:function(e){if(e!==this._description){var t=this._badgeElement;this._updateHostAriaDescription(e,this._description),this._description=e,t&&(e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label"))}}},{key:"hidden",get:function(){return this._hidden},set:function(e){this._hidden=wg(e)}},{key:"isAbove",value:function(){return-1===this.position.indexOf("below")}},{key:"isAfter",value:function(){return-1===this.position.indexOf("before")}},{key:"ngOnChanges",value:function(e){var t=e.content;if(t){var n=t.currentValue;this._hasContent=null!=n&&"".concat(n).trim().length>0,this._updateTextContent()}}},{key:"ngOnDestroy",value:function(){var e=this._badgeElement;e&&(this.description&&this._ariaDescriber.removeDescription(e,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(e))}},{key:"getBadgeElement",value:function(){return this._badgeElement}},{key:"_updateTextContent",value:function(){return this._badgeElement?this._badgeElement.textContent=this._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}},{key:"_createBadgeElement",value:function(){var e=this._renderer.createElement("span"),t="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),e.setAttribute("id","mat-badge-content-".concat(this._id)),e.classList.add(n),e.textContent=this._stringifyContent(),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this.description&&e.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e.classList.add(t)})}):e.classList.add(t),e}},{key:"_updateHostAriaDescription",value:function(e,t){var n=this._updateTextContent();t&&this._ariaDescriber.removeDescription(n,t),e&&this._ariaDescriber.describe(n,e)}},{key:"_setColor",value:function(e){if(e!==this._color){var t=this._elementRef.nativeElement.classList;this._color&&t.remove("mat-badge-".concat(this._color)),e&&t.add("mat-badge-".concat(e))}}},{key:"_clearExistingBadges",value:function(e){for(var t=this._elementRef.nativeElement,n=t.children.length;n--;){var i=t.children[n];i.classList.contains(e)&&t.removeChild(i)}}},{key:"_stringifyContent",value:function(){var e=this.content;return null==e?"":"".concat(e)}}]),n}(bb);return e.\u0275fac=function(t){return new(t||e)(ss(hl),ss(wc),ss(ey),ss(Ec),ss(Dm,8))},e.\u0275dir=kt({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,t){2&e&&Vs("mat-badge-overlap",t.overlap)("mat-badge-above",t.isAbove())("mat-badge-below",!t.isAbove())("mat-badge-before",!t.isAfter())("mat-badge-after",t.isAfter())("mat-badge-small","small"===t.size)("mat-badge-medium","medium"===t.size)("mat-badge-large","large"===t.size)("mat-badge-hidden",t.hidden||!t._hasContent)("mat-badge-disabled",t.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[Ga,Lt]}),e}(),kb=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Oy,By],By]}),e}(),wb=["mat-button",""],Sb=["*"],Cb=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Eb=zy(Uy(Hy(function(){return function e(t){s(this,e),this._elementRef=t}}()))),xb=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;s(this,n),(o=t.call(this,e))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,c=g(Cb);try{for(c.s();!(a=c.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(l){c.e(l)}finally{c.f()}return e.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return a(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some(function(t){return e._getHostElement().hasAttribute(t)})}}]),n}(Eb);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(wy),ss(Dm,8))},e.\u0275cmp=vt({type:e,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,t){var n;1&e&&ju(ib,5),2&e&&Vu(n=Bu())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(is("disabled",t.disabled||null),Vs("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Ga],attrs:wb,ngContentSelectors:Sb,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,t){1&e&&(xs(),ls(0,"span",0),Os(1),hs(),ds(2,"span",1),ds(3,"span",2)),2&e&&(Mo(2),Vs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),cs("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[ib],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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.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;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.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-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.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-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.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-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.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}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),e}(),Ob=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[rb,By],By]}),e}(),Tb=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}();function Ib(e,t,n,i){return I(n)&&(i=n,n=void 0),i?Ib(e,t,n).pipe(J(function(e){return O(e)?i.apply(void 0,C(e)):i(e)})):new H(function(i){Pb(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function Pb(e,t,n,i,r){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var a=e;e.addEventListener(t,n,r),o=function(){return a.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),o=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,n),o=function(){return c.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u<l;u++)Pb(e[u],t,n,i,r)}i.add(o)}var Mb=1,Ab=function(){return Promise.resolve()}(),Rb={};function Nb(e){return e in Rb&&(delete Rb[e],!0)}var Lb=function(e){var t=Mb++;return Rb[t]=!0,Ab.then(function(){return Nb(t)&&e()}),t},Db=function(e){Nb(e)},Vb=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return a(n,[{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):(e.actions.push(this),e.scheduled||(e.scheduled=Lb(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,e,t,o);0===e.actions.length&&(Db(t),e.scheduled=void 0)}}]),n}(Qm),jb=new(function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(Jm))(Vb);function Fb(e){return function(t){return t.lift(new Bb(e))}}var Bb=function(){function e(t){s(this,e),this.durationSelector=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Ub(e,this.durationSelector))}}]),e}(),Ub=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return a(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=le(t,new ce(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(ue);function zb(e){return!O(e)&&e-parseFloat(e)+1>=0}function Hb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return zb(t)?i=Number(t)<1?1:Number(t):K(t)&&(n=t),K(n)||(n=Xm),new H(function(t){var r=zb(e)?e:+e-n.now();return n.schedule(Wb,r,{index:0,period:i,subscriber:t})})}function Wb(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}function Gb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm;return Fb(function(){return Hb(e,t)})}function qb(e,t){return"function"==typeof t?function(n){return n.pipe(qb(function(n,i){return se(e(n,i)).pipe(J(function(e,r){return t(n,e,i,r)}))}))}:function(t){return t.lift(new Zb(e))}}var Zb=function(){function e(t){s(this,e),this.project=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Yb(e,this.project))}}]),e}(),Yb=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return a(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new ce(this),i=this.destination;i.add(n),this.innerSubscription=le(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||r(i(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&r(i(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(ue),Qb=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return a(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?r(i(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?r(i(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0||null===o&&this.delay>0?r(i(n.prototype),"requestAsyncId",this).call(this,e,t,o):e.flush(this)}}]),n}(Qm),Kb=new(function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(Jm))(Qb);function Jb(e,t){return new H(t?function(n){return t.schedule(Xb,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function Xb(e){e.subscriber.error(e.error)}var $b=function(){var e=function(){function e(t,n,i){s(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return a(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return zm(this.value);case"E":return Jb(this.error);case"C":return cg()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),e_=function(e){u(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return s(this,n),(r=t.call(this,e)).scheduler=i,r.delay=o,r}return a(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new t_(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage($b.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage($b.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage($b.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){e.notification.observe(e.destination),this.unsubscribe()}}]),n}(j),t_=function e(t,n){s(this,e),this.notification=t,this.destination=n},n_=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return s(this,n),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return a(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}r(i(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new i_(this._getNow(),e)),this._trimBufferThenGetEvents()),r(i(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new G;if(this.isStopped||this.hasError?t=M.EMPTY:(this.observers.push(e),t=new q(this,e)),r&&e.add(e=new e_(e,r)),n)for(var a=0;a<o&&!e.closed;a++)e.next(i[a]);else for(var s=0;s<o&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Kb).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(e-i[o].time<n);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&i.splice(0,o),i}}]),n}(Y),i_=function e(t,n){s(this,e),this.time=t,this.value=n},r_=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s(this,e),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Y,i&&i.length&&(n?i.forEach(function(e){return t._markSelected(e)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return a(e,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._markSelected(t)}),this._emitChangeEvent()}},{key:"deselect",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];this._verifyValueAssignment(n),n.forEach(function(t){return e._unmarkSelected(t)}),this._emitChangeEvent()}},{key:"toggle",value:function(e){this.isSelected(e)?this.deselect(e):this.select(e)}},{key:"clear",value:function(){this._unmarkAll(),this._emitChangeEvent()}},{key:"isSelected",value:function(e){return this._selection.has(e)}},{key:"isEmpty",value:function(){return 0===this._selection.size}},{key:"hasValue",value:function(){return!this.isEmpty()}},{key:"sort",value:function(e){this._multiple&&this.selected&&this._selected.sort(e)}},{key:"isMultipleSelection",value:function(){return this._multiple}},{key:"_emitChangeEvent",value:function(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}},{key:"_markSelected",value:function(e){this.isSelected(e)||(this._multiple||this._unmarkAll(),this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}},{key:"_unmarkSelected",value:function(e){this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}},{key:"_unmarkAll",value:function(){var e=this;this.isEmpty()||this._selection.forEach(function(t){return e._unmarkSelected(t)})}},{key:"_verifyValueAssignment",value:function(e){}}]),e}(),o_=function(){var e=function(){function e(t,n,i){s(this,e),this._ngZone=t,this._platform=n,this._scrolled=new Y,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}return a(e,[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(function(){return t._scrolled.next(e)}))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new H(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Gb(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):zm()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(t,n){return e.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(ig(function(e){return!e||n.indexOf(e)>-1}))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach(function(i,r){t._scrollableContainsElement(r,e)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=Og(t),i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Ib(e._getWindow().document,"scroll").subscribe(function(){return e._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Rg),ji(Zl,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Rg),ji(Zl,8))},token:e,providedIn:"root"}),e}(),a_=function(){var e=function(){function e(t,n,i,r){var o=this;s(this,e),this.elementRef=t,this.scrollDispatcher=n,this.ngZone=i,this.dir=r,this._destroyed=new Y,this._elementScrolled=new H(function(e){return o.ngZone.runOutsideAngular(function(){return Ib(o.elementRef.nativeElement,"scroll").pipe(yg(o._destroyed)).subscribe(e)})})}return a(e,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(e){var t=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=n?e.end:e.start),null==e.right&&(e.right=n?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),n&&0!=Fg()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Fg()?e.left=e.right:1==Fg()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}},{key:"_applyScrollToOptions",value:function(e){var t=this.elementRef.nativeElement;jg()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}},{key:"measureScrollOffset",value:function(e){var t="left",n="right",i=this.elementRef.nativeElement;if("top"==e)return i.scrollTop;if("bottom"==e)return i.scrollHeight-i.clientHeight-i.scrollTop;var r=this.dir&&"rtl"==this.dir.value;return"start"==e?e=r?n:t:"end"==e&&(e=r?t:n),r&&2==Fg()?e==t?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==Fg()?e==t?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==t?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(o_),ss(hl),ss(Iy,8))},e.\u0275dir=kt({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),e}(),s_=function(){var e=function(){function e(t,n,i){var r=this;s(this,e),this._platform=t,this._change=new Y,this._changeListener=function(e){r._change.next(e)},this._document=i,n.runOutsideAngular(function(){if(t.isBrowser){var e=r._getWindow();e.addEventListener("resize",r._changeListener),e.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._viewportSize=null})})}return a(e,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._document,t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(Gb(e)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(hl),ji(Zl,8))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl),ji(Zl,8))},token:e,providedIn:"root"}),e}(),c_=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),u_=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Py,Ng,c_],Py,c_]}),e}(),l_=function(){function e(){s(this,e)}return a(e,[{key:"attach",value:function(e){return this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}]),e}(),h_=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this)).component=e,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(l_),d_=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this)).templateRef=e,o.viewContainerRef=i,o.context=r,o}return a(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=t,r(i(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(l_),f_=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this)).element=e instanceof wc?e.nativeElement:e,i}return n}(l_),p_=function(){function e(){s(this,e),this._isDisposed=!1,this.attachDomPortal=null}return a(e,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e instanceof h_?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof d_?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof f_?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),e}(),v_=function(e){u(n,e);var t=p(n);function n(e,o,a,c,u){var l,h;return s(this,n),(h=t.call(this)).outletElement=e,h._componentFactoryResolver=o,h._appRef=a,h._defaultInjector=c,h.attachDomPortal=function(e){var t=e.element,o=h._document.createComment("dom-portal");t.parentNode.insertBefore(o,t),h.outletElement.appendChild(t),h._attachedPortal=e,r((l=d(h),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},h._document=u,h}return a(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(function(){return t.destroy()})):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn(function(){n._appRef.detachView(t.hostView),t.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(function(e){return t.outletElement.appendChild(e)}),i.detectChanges(),this.setDisposeFn(function(){var e=n.indexOf(i);-1!==e&&n.remove(e)}),this._attachedPortal=e,i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}]),n}(p_),m_=function(){var e=function(e){u(n,e);var t=p(n);function n(e,o,a){var c,u;return s(this,n),(u=t.call(this))._componentFactoryResolver=e,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Eu,u.attachDomPortal=function(e){var t=e.element,o=u._document.createComment("dom-portal");e.setAttachedHost(d(u)),t.parentNode.insertBefore(o,t),u._getRootNode().appendChild(t),u._attachedPortal=e,r((c=d(u),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(t,o)})},u._document=a,u}return a(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),e&&r(i(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=t.createComponent(o,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var t=this;e.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return t._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}]),n}(p_);return e.\u0275fac=function(t){return new(t||e)(ss(yc),ss(ou),ss(Zl))},e.\u0275dir=kt({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ga]}),e}(),g_=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}(),y_=function(){function e(t,n){s(this,e),this.predicate=t,this.inclusive=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new b_(e,this.predicate,this.inclusive))}}]),e}(),b_=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).predicate=i,o.inclusive=r,o.index=0,o}return a(n,[{key:"_next",value:function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(e,t)}},{key:"nextOrComplete",value:function(e,t){var n=this.destination;Boolean(t)?n.next(e):(this.inclusive&&n.next(e),n.complete())}}]),n}(j),__=jg(),k_=function(){function e(t,n){s(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return a(e,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=xg(-this._previousScrollPosition.left),e.style.top=xg(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),__&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),__&&(t.scrollBehavior=i,n.scrollBehavior=r)}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}]),e}(),w_=function(){function e(t,n,i,r){var o=this;s(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return a(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),S_=function(){function e(){s(this,e)}return a(e,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),e}();function C_(e,t){return t.some(function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right})}function E_(e,t){return t.some(function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right})}var x_=function(){function e(t,n,i,r){s(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return a(e,[{key:"attach",value:function(e){this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,r=n.height;C_(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run(function(){return e._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),e}(),O_=function(){var e=function e(t,n,i,r){var o=this;s(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new S_},this.close=function(e){return new w_(o._scrollDispatcher,o._ngZone,o._viewportRuler,e)},this.block=function(){return new k_(o._viewportRuler,o._document)},this.reposition=function(e){return new x_(o._scrollDispatcher,o._viewportRuler,o._ngZone,e)},this._document=r};return e.\u0275fac=function(t){return new(t||e)(ji(o_),ji(s_),ji(hl),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(o_),ji(s_),ji(hl),ji(Zl))},token:e,providedIn:"root"}),e}(),T_=function e(t){if(s(this,e),this.scrollStrategy=new S_,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];void 0!==t[r]&&(this[r]=t[r])}},I_=function e(t,n,i,r,o){s(this,e),this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY},P_=function e(t,n){s(this,e),this.connectionPair=t,this.scrollableViewProperties=n},M_=function(){var e=function(){function e(t){s(this,e),this._attachedOverlays=[],this._document=t}return a(e,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(e){this.remove(e),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}(),A_=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e))._keydownListener=function(e){for(var t=i._attachedOverlays,n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){t[n]._keydownEvents.next(e);break}},i}return a(n,[{key:"add",value:function(e){r(i(n.prototype),"add",this).call(this,e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(M_);return e.\u0275fac=function(t){return new(t||e)(ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl))},token:e,providedIn:"root"}),e}(),R_=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(e){for(var t=zg(e),n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(t))break;o._outsidePointerEvents.next(e)}}},r}return a(n,[{key:"add",value:function(e){if(r(i(n.prototype),"add",this).call(this,e),!this._isAttached){var t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var e=this._document.body;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}}}]),n}(M_);return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl),ji(Rg))},token:e,providedIn:"root"}),e}(),N_="undefined"!=typeof window?window:{},L_=void 0!==N_.__karma__&&!!N_.__karma__||void 0!==N_.jasmine&&!!N_.jasmine||void 0!==N_.jest&&!!N_.jest||void 0!==N_.Mocha&&!!N_.Mocha,D_=function(){var e=function(){function e(t,n){s(this,e),this._platform=n,this._document=t}return a(e,[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e="cdk-overlay-container";if(this._platform.isBrowser||L_)for(var t=this._document.querySelectorAll(".".concat(e,'[platform="server"], ')+".".concat(e,'[platform="test"]')),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add(e),L_?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Zl),ji(Rg))},token:e,providedIn:"root"}),e}(),V_=function(){function e(t,n,i,r,o,a,c,u,l){var h=this;s(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=c,this._location=u,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new Y,this._attachments=new Y,this._detachments=new Y,this._locationChanges=M.EMPTY,this._backdropClickHandler=function(e){return h._backdropClick.next(e)},this._keydownEvents=new Y,this._outsidePointerEvents=new Y,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}return a(e,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ug(1)).subscribe(function(){t.hasAttached()&&t.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(function(){return t.dispose()})),this._outsideClickDispatcher.add(this),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick}},{key:"attachments",value:function(){return this._attachments}},{key:"detachments",value:function(){return this._detachments}},{key:"keydownEvents",value:function(){return this._keydownEvents}},{key:"outsidePointerEvents",value:function(){return this._outsidePointerEvents}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=xg(this._config.width),e.height=xg(this._config.height),e.minWidth=xg(this._config.minWidth),e.minHeight=xg(this._config.minHeight),e.maxWidth=xg(this._config.maxWidth),e.maxHeight=xg(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"":"none"}},{key:"_attachBackdrop",value:function(){var e=this,t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._backdropElement&&e._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e=this,t=this._backdropElement;if(t){var n,i=function i(){t&&(t.removeEventListener("click",e._backdropClickHandler),t.removeEventListener("transitionend",i),t.parentNode&&t.parentNode.removeChild(t)),e._backdropElement==t&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(t,e._config.backdropClass,!1),clearTimeout(n)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(function(){t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(i,500)})}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;Eg(t).forEach(function(e){e&&(n?i.add(e):i.remove(e))})}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular(function(){var t=e._ngZone.onStable.pipe(yg(me(e._attachments,e._detachments))).subscribe(function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())})})}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}]),e}(),j_="cdk-overlay-connected-position-bounding-box",F_=/([A-Za-z%]+)$/,B_=function(){function e(t,n,i,r,o){s(this,e),this._viewportRuler=n,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Y,this._resizeSubscription=M.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}return a(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;this._validatePositions(),e.hostElement.classList.add(j_),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){t._isInitialRender=!0,t.apply()})}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,r=this._viewportRect,o=[],a=g(this._preferredPositions);try{for(a.s();!(t=a.n()).done;){var s=t.value,c=this._getOriginPoint(n,s),u=this._getOverlayPoint(c,i,s),l=this._getOverlayFit(u,i,r,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,c);this._canFitWithFlexibleDimensions(l,u,r)?o.push({position:s,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,s)}):(!e||e.overlayFit.visibleArea<l.visibleArea)&&(e={overlayFit:l,overlayPoint:u,originPoint:c,position:s,overlayRect:i})}}catch(y){a.e(y)}finally{a.f()}if(o.length){var h,d=null,f=-1,p=g(o);try{for(p.s();!(h=p.n()).done;){var v=h.value,m=v.boundingBoxRect.width*v.boundingBoxRect.height*(v.position.weight||1);m>f&&(f=m,d=v)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&U_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(j_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,r=this._isRtl()?e.left:e.right;n="start"==t.originX?i:r}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,{x:e.x+i,y:e.y+("center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height)}}},{key:"_getOverlayFit",value:function(e,t,n,i){var r=H_(t),o=e.x,a=e.y,s=this._getOffset(i,"x"),c=this._getOffset(i,"y");s&&(o+=s),c&&(a+=c);var u=0-a,l=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,u,l),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,r=n.right-t.x,o=z_(this._overlayRef.getConfig().minHeight),a=z_(this._overlayRef.getConfig().minWidth);return(e.fitsInViewportVertically||null!=o&&o<=i)&&(e.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,r,o=H_(t),a=this._viewportRect,s=Math.max(e.x+o.width-a.width,0),c=Math.max(e.y+o.height-a.height,0),u=Math.max(a.top-n.top-e.y,0),l=Math.max(a.left-n.left-e.x,0);return this._previousPushAmount={x:i=o.width<=a.width?l||-s:e.x<this._viewportMargin?a.left-n.left-e.x:0,y:r=o.height<=a.height?u||-c:e.y<this._viewportMargin?a.top-n.top-e.y:0},{x:e.x+i,y:e.y+r}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new P_(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,r,o,a,s,c=this._viewportRect,u=this._isRtl();if("top"===t.overlayY)n=c.height-(i=e.y)+this._viewportMargin;else if("bottom"===t.overlayY)n=c.height-(r=c.height-e.y+2*this._viewportMargin)+this._viewportMargin;else{var l=Math.min(c.bottom-e.y+c.top,e.y),h=this._lastBoundingBoxSize.height;i=e.y-l,(n=2*l)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-h/2)}if("end"===t.overlayX&&!u||"start"===t.overlayX&&u)s=c.width-e.x+this._viewportMargin,o=e.x-this._viewportMargin;else if("start"===t.overlayX&&!u||"end"===t.overlayX&&u)a=e.x,o=c.right-e.x;else{var d=Math.min(c.right-e.x+c.left,e.x),f=this._lastBoundingBoxSize.width;a=e.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=xg(n.height),i.top=xg(n.top),i.bottom=xg(n.bottom),i.width=xg(n.width),i.left=xg(n.left),i.right=xg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=xg(r)),o&&(i.maxWidth=xg(o))}this._lastBoundingBoxSize=n,U_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){U_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){U_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();U_(n,this._getExactOverlayY(t,e,a)),U_(n,this._getExactOverlayX(t,e,a))}else n.position="static";var s="",c=this._getOffset(t,"x"),u=this._getOffset(t,"y");c&&(s+="translateX(".concat(c,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=xg(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=xg(o.maxWidth):r&&(n.maxWidth="")),U_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===e.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=xg(r.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=xg(r.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(e){return e.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:E_(e,n),isOriginOutsideView:C_(e,n),isOverlayClipped:E_(t,n),isOverlayOutsideView:C_(t,n)}}},{key:"_subtractOverflows",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.reduce(function(e,t){return e-Math.max(t,0)},e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&Eg(e).forEach(function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))})}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach(function(t){e._pane.classList.remove(t)}),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof wc)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}]),e}();function U_(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function z_(e){if("number"!=typeof e&&null!=e){var t=_(e.split(F_),2),n=t[1];return n&&"px"!==n?null:parseFloat(t[0])}return e||null}function H_(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}var W_=function(){function e(t,n,i,r,o,a,c){s(this,e),this._preferredPositions=[],this._positionStrategy=new B_(i,r,o,a,c).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n),this.onPositionChange=this._positionStrategy.positionChanges}return a(e,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var r=new I_(e,t,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}]),e}(),G_="cdk-global-overlay-wrapper",q_=function(){function e(){s(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return a(e,[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(G_),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(G_),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}]),e}(),Z_=function(){var e=function(){function e(t,n,i,r){s(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=r}return a(e,[{key:"global",value:function(){return new q_}},{key:"connectedTo",value:function(e,t,n){return new W_(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new B_(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(s_),ji(Zl),ji(Rg),ji(D_))},e.\u0275prov=Ve({factory:function(){return new e(ji(s_),ji(Zl),ji(Rg),ji(D_))},token:e,providedIn:"root"}),e}(),Y_=0,Q_=function(){var e=function(){function e(t,n,i,r,o,a,c,u,l,h,d){s(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=c,this._document=u,this._directionality=l,this._location=h,this._outsideClickDispatcher=d}return a(e,[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),r=new T_(e);return r.direction=r.direction||this._directionality.value,new V_(i,t,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-".concat(Y_++),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Nl)),new v_(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(O_),ji(D_),ji(yc),ji(Z_),ji(A_),ji(Ha),ji(hl),ji(Zl),ji(Iy),ji(ch),ji(R_))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),K_=[{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"}],J_=new _i("cdk-connected-overlay-scroll-strategy"),X_=function(){var e=function e(t){s(this,e),this.elementRef=t};return e.\u0275fac=function(t){return new(t||e)(ss(wc))},e.\u0275dir=kt({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),e}(),$_=function(){var e=function(){function e(t,n,i,r,o){s(this,e),this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=M.EMPTY,this._attachSubscription=M.EMPTY,this._detachSubscription=M.EMPTY,this._positionSubscription=M.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Eu,this.positionChange=new Eu,this.attach=new Eu,this.detach=new Eu,this.overlayKeydown=new Eu,this.overlayOutsideClick=new Eu,this._templatePortal=new d_(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return a(e,[{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=wg(e)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(e){this._lockPosition=wg(e)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(e){this._flexibleDimensions=wg(e)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(e){this._growAfterOpen=wg(e)}},{key:"push",get:function(){return this._push},set:function(e){this._push=wg(e)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(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())}},{key:"_createOverlay",value:function(){var e=this;this.positions&&this.positions.length||(this.positions=K_);var t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(function(){return e.attach.emit()}),this._detachSubscription=t.detachments().subscribe(function(){return e.detach.emit()}),t.keydownEvents().subscribe(function(t){e.overlayKeydown.next(t),t.keyCode!==Hm||e.disableClose||Wm(t)||(t.preventDefault(),e._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(t){e.overlayOutsideClick.next(t)})}},{key:"_buildConfig",value:function(){var e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new T_({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}},{key:"_updatePositionStrategy",value:function(e){var t=this,n=this.positions.map(function(e){return{originX:e.originX,originY:e.originY,overlayX:e.overlayX,overlayY:e.overlayY,offsetX:e.offsetX||t.offsetX,offsetY:e.offsetY||t.offsetY,panelClass:e.panelClass||void 0}});return e.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var e=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(e),e}},{key:"_attachOverlay",value:function(){var e=this;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(function(t){e.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new y_(e,t))}}(function(){return e.positionChange.observers.length>0})).subscribe(function(t){e.positionChange.emit(t),0===e.positionChange.observers.length&&e._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Q_),ss($c),ss(ou),ss(J_),ss(Iy,8))},e.\u0275dir=kt({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Lt]}),e}(),ek={provide:J_,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},tk=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Q_,ek],imports:[[Py,g_,u_],u_]}),e}();function nk(e){return new H(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?se(n):cg()).subscribe(t)})}function ik(e,t){}var rk=function e(){s(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},ok={dialogContainer:Gf("dialogContainer",[Qf("void, exit",Yf({opacity:0,transform:"scale(0.7)"})),Qf("enter",Yf({transform:"none"})),Jf("* => enter",qf("150ms cubic-bezier(0, 0, 0.2, 1)",Yf({transform:"none",opacity:1}))),Jf("* => void, * => exit",qf("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Yf({opacity:0})))])},ak=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c){var u;return s(this,n),(u=t.call(this))._elementRef=e,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=c,u._animationStateChanged=new Eu,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(e){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(e)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return a(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=Ug(),n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ug())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=Ug();return e===t||e.contains(t)}}]),n}(p_);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(ly),ss(Yc),ss(Zl,8),ss(rk),ss(wy))},e.\u0275dir=kt({type:e,viewQuery:function(e,t){var n;1&e&&ju(m_,7),2&e&&Vu(n=Bu())&&(t._portalOutlet=n.first)},features:[Ga]}),e}(),sk=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments))._state="enter",e}return a(n,[{key:"_onAnimationDone",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(e){var t=e.toState,n=e.totalTime;"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(ak);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&_s("@dialogContainer.start",function(e){return t._onAnimationStart(e)})("@dialogContainer.done",function(e){return t._onAnimationDone(e)}),2&e&&(Js("id",t._id),is("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),Xs("@dialogContainer",t._state))},features:[Ga],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&os(0,ik,0,0,"ng-template",0)},directives:[m_],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[ok.dialogContainer]}}),e}(),ck=0,uk=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(ck++);s(this,e),this._overlayRef=t,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Y,this._afterClosed=new Y,this._beforeClosed=new Y,this._state=0,n._id=r,n._animationStateChanged.pipe(ig(function(e){return"opened"===e.state}),ug(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(ig(function(e){return"closed"===e.state}),ug(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),t.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(ig(function(e){return e.keyCode===Hm&&!i.disableClose&&!Wm(e)})).subscribe(function(e){e.preventDefault(),lk(i,"keyboard")}),t.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():lk(i,"mouse")})}return a(e,[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(ig(function(e){return"closing"===e.state}),ug(1)).subscribe(function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout(function(){return t._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:e,height:t}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),e}();function lk(e,t,n){return void 0!==e._containerInstance&&(e._containerInstance._closeInteractionType=t),e.close(n)}var hk=new _i("MatDialogData"),dk=new _i("mat-dialog-default-options"),fk=new _i("mat-dialog-scroll-strategy"),pk={provide:fk,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},vk=function(){var e=function(){function e(t,n,i,r,o,a,c,u,l){var h=this;s(this,e),this._overlay=t,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=c,this._dialogContainerType=u,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Y,this._afterOpenedAtThisLevel=new Y,this._ariaHiddenElements=new Map,this.afterAllClosed=nk(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Ny(void 0))}),this._scrollStrategy=a}return a(e,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;(t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new rk)).id&&this.getDialogById(t.id);var i=this._createOverlay(t),r=this._attachDialogContainer(i,t),o=this._attachDialogContent(e,r,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find(function(t){return t.id===e})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new T_({positionStrategy:this._overlay.position().global(),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,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Ha.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:rk,useValue:t}]}),i=new h_(this._dialogContainerType,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var r=new this._dialogRefConstructor(n,t,i.id);if(e instanceof $c)t.attachTemplatePortal(new d_(e,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,t),a=t.attachComponentPortal(new h_(e,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return!e.direction||i&&i.get(Iy,null,Ze.Optional)||r.push({provide:Iy,useValue:{value:e.direction,change:zm()}}),Ha.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Q_),ss(Ha),ss(void 0),ss(void 0),ss(D_),ss(void 0),ss(wi),ss(wi),ss(_i))},e.\u0275dir=kt({type:e}),e}(),mk=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u){return s(this,n),t.call(this,e,i,o,c,u,a,uk,sk,hk)}return n}(vk);return e.\u0275fac=function(t){return new(t||e)(ji(Q_),ji(Ha),ji(ch,8),ji(dk,8),ji(fk),ji(e,12),ji(D_))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),gk=0,yk=function(){var e=function(){function e(t,n,i){s(this,e),this._dialogRef=t,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(gk++)}return a(e,[{key:"ngOnInit",value:function(){var e=this;this._dialogRef||(this._dialogRef=function(e,t){for(var n=e.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?t.find(function(e){return e.id===n.id}):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var t=e._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=e.id)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(uk,8),ss(wc),ss(mk))},e.\u0275dir=kt({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&Js("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),e}(),bk=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[mk,pk],imports:[[tk,g_,By],By]}),e}();function _k(e){return e instanceof Date&&!isNaN(+e)}function kk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xm,n=_k(e),i=n?+e-t.now():Math.abs(e);return function(e){return e.lift(new wk(i,t))}}var wk=function(){function e(t,n){s(this,e),this.delay=t,this.scheduler=n}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Sk(e,this.delay,this.scheduler))}}]),e}(),Sk=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return a(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new Ck(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification($b.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification($b.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}}]),n}(j),Ck=function e(t,n){s(this,e),this.time=t,this.notification=n},Ek=["mat-menu-item",""],xk=["*"];function Ok(e,t){if(1&e){var n=vs();ls(0,"div",0),bs("keydown",function(e){return an(n),Cs()._handleKeydown(e)})("click",function(){return an(n),Cs().closed.emit("click")})("@transformMenu.start",function(e){return an(n),Cs()._onAnimationStart(e)})("@transformMenu.done",function(e){return an(n),Cs()._onAnimationDone(e)}),ls(1,"div",1),Os(2),hs(),hs()}if(2&e){var i=Cs();cs("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),is("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var Tk={transformMenu:Gf("transformMenu",[Qf("void",Yf({opacity:0,transform:"scale(0.8)"})),Jf("void => enter",qf("120ms cubic-bezier(0, 0, 0.2, 1)",Yf({opacity:1,transform:"scale(1)"}))),Jf("* => void",qf("100ms 25ms linear",Yf({opacity:0})))]),fadeInItems:Gf("fadeInItems",[Qf("showing",Yf({opacity:1})),Jf("void => *",[Yf({opacity:0}),qf("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ik=new _i("MatMenuContent"),Pk=new _i("MAT_MENU_PANEL"),Mk=Hy(Uy(function(){return function e(){s(this,e)}}())),Ak=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this))._elementRef=e,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new Y,a._focused=new Y,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(d(a)),a}return a(n,[{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var e,t,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r<i.length;r++){var o=i[r];null===(e=o.parentNode)||void 0===e||e.removeChild(o)}return(null===(t=n.textContent)||void 0===t?void 0:t.trim())||""}}]),n}(Mk);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Zl),ss(wy),ss(Pk,8))},e.\u0275cmp=vt({type:e,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,t){1&e&&bs("click",function(e){return t._checkDisabled(e)})("mouseenter",function(){return t._handleMouseEnter()}),2&e&&(is("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled.toString())("disabled",t.disabled||null),Vs("mat-menu-item",!0)("mat-menu-item-highlighted",t._highlighted)("mat-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Ga],attrs:Ek,ngContentSelectors:xk,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(e,t){1&e&&(xs(),Os(0),ds(1,"div",0)),2&e&&(Mo(1),cs("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()))},directives:[ib],encapsulation:2,changeDetection:0}),e}(),Rk=new _i("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),Nk=0,Lk=function(){var e=function(){function e(t,n,i){s(this,e),this._elementRef=t,this._ngZone=n,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new Ou,this._tabSubscription=M.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Y,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Eu,this.close=this.closed,this.panelId="mat-menu-panel-".concat(Nk++)}return a(e,[{key:"xPosition",get:function(){return this._xPosition},set:function(e){this._xPosition=e,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(e){this._yPosition=e,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=wg(e)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(e){this._hasBackdrop=wg(e)}},{key:"panelClass",set:function(e){var t=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(e){t._classList[e]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(function(e){t._classList[e]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(e){this.panelClass=e}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var e=this;this._updateDirectDescendants(),this._keyManager=new oy(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return e.closed.emit("tab")}),this._directDescendantItems.changes.pipe(Ny(this._directDescendantItems),qb(function(e){return me.apply(void 0,C(e.map(function(e){return e._focused})))})).subscribe(function(t){return e._keyManager.updateActiveItem(t)})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(Ny(this._directDescendantItems),qb(function(e){return me.apply(void 0,C(e.map(function(e){return e._hovered})))}))}},{key:"addItem",value:function(e){}},{key:"removeItem",value:function(e){}},{key:"_handleKeydown",value:function(e){var t=e.keyCode,n=this._keyManager;switch(t){case Hm:Wm(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:38!==t&&40!==t||n.setFocusOrigin("keyboard"),n.onKeydown(e)}}},{key:"focusFirstItem",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(ug(1)).subscribe(function(){return e._focusFirstItem(t)}):this._focusFirstItem(t)}},{key:"_focusFirstItem",value:function(e){var t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(e){var t=this,n=Math.min(this._baseElevation+e,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(e){return e.startsWith(t._elevationPrefix)});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===e,n["mat-menu-after"]="after"===e,n["mat-menu-above"]="above"===t,n["mat-menu-below"]="below"===t}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(e){this._animationDone.next(e),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var e=this;this._allItems.changes.pipe(Ny(this._allItems)).subscribe(function(t){e._directDescendantItems.reset(t.filter(function(t){return t._parentMenu===e})),e._directDescendantItems.notifyOnChanges()})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(hl),ss(Rk))},e.\u0275dir=kt({type:e,contentQueries:function(e,t,n){var i;1&e&&(Fu(n,Ik,5),Fu(n,Ak,5),Fu(n,Ak,4)),2&e&&(Vu(i=Bu())&&(t.lazyContent=i.first),Vu(i=Bu())&&(t._allItems=i),Vu(i=Bu())&&(t.items=i))},viewQuery:function(e,t){var n;1&e&&ju($c,5),2&e&&Vu(n=Bu())&&(t.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),e}(),Dk=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(Lk);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(hl),ss(Rk))},e.\u0275cmp=vt({type:e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&is("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[pc([{provide:Pk,useExisting:e}]),Ga],ngContentSelectors:xk,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,t){1&e&&(xs(),os(0,Ok,3,6,"ng-template"))},directives:[vh],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}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[Tk.transformMenu,Tk.fadeInItems]},changeDetection:0}),e}(),Vk=new _i("mat-menu-scroll-strategy"),jk={provide:Vk,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},Fk=Vg({passive:!0}),Bk=function(){var e=function(){function e(t,n,i,r,o,a,c,u){var l=this;s(this,e),this._overlay=t,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=c,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.EMPTY,this._hoverSubscription=M.EMPTY,this._menuCloseSubscription=M.EMPTY,this._handleTouchStart=function(e){dy(e)||(l._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Eu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Eu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof Lk?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,Fk),a&&(a._triggersSubmenu=this.triggersSubmenu())}return a(e,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(e){this.menu=e}},{key:"menu",get:function(){return this._menu},set:function(e){var t=this;e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(function(e){t._destroyMenu(e),"click"!==e&&"tab"!==e||!t._parentMaterialMenu||t._parentMaterialMenu.closed.emit(e)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Fk),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var e=this;if(!this._menuOpen){this._checkMenu();var t=this._createOverlay(),n=t.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return e.closeMenu()}),this._initMenu(),this.menu instanceof Lk&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}},{key:"updatePosition",value:function(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}},{key:"_destroyMenu",value:function(e){var t=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==e&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof Lk?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(ig(function(e){return"void"===e.toState}),ug(1),yg(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var e=0,t=this.menu.parentMenu;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}},{key:"_setIsMenuOpen",value:function(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=e)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new T_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(e){var t=this;this.menu.setPositionClasses&&e.positionChanges.subscribe(function(e){t.menu.setPositionClasses("start"===e.connectionPair.overlayX?"after":"before","top"===e.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(e){var t=_("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=t[0],i=t[1],r=_("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,c=a,u=n,l=i,h=0;this.triggersSubmenu()?(l=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",c="top"===a?"bottom":"top"),e.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:l,overlayY:o,offsetY:h},{originX:n,originY:c,overlayX:u,overlayY:a,offsetY:-h},{originX:i,originY:c,overlayX:l,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var e=this,t=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return me(t,this._parentMaterialMenu?this._parentMaterialMenu.closed:zm(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(ig(function(t){return t!==e._menuItemInstance}),ig(function(){return e._menuOpen})):zm(),n)}},{key:"_handleMousedown",value:function(e){hy(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;13!==t&&32!==t||(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var e=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(ig(function(t){return t===e._menuItemInstance&&!t.disabled}),kk(0,jb)).subscribe(function(){e._openedBy="mouse",e.menu instanceof Lk&&e.menu._isAnimating?e.menu._animationDone.pipe(ug(1),kk(0,jb),yg(e._parentMaterialMenu._hovered())).subscribe(function(){return e.openMenu()}):e.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new d_(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Q_),ss(wc),ss(ou),ss(Vk),ss(Pk,8),ss(Ak,10),ss(Iy,8),ss(wy))},e.\u0275dir=kt({type:e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(e,t){1&e&&bs("mousedown",function(e){return t._handleMousedown(e)})("keydown",function(e){return t._handleKeydown(e)})("click",function(e){return t._handleClick(e)}),2&e&&is("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),e}(),Uk=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[jk],imports:[By]}),e}(),zk=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[jk],imports:[[Mh,By,rb,tk,Uk],c_,By,Uk]}),e}(),Hk=["underline"],Wk=["connectionContainer"],Gk=["inputContainer"],qk=["label"];function Zk(e,t){1&e&&(fs(0),ls(1,"div",14),ds(2,"div",15),ds(3,"div",16),ds(4,"div",17),hs(),ls(5,"div",18),ds(6,"div",15),ds(7,"div",16),ds(8,"div",17),hs(),ps())}function Yk(e,t){1&e&&(ls(0,"div",19),Os(1,1),hs())}function Qk(e,t){if(1&e&&(fs(0),Os(1,2),ls(2,"span"),Ys(3),hs(),ps()),2&e){var n=Cs(2);Mo(3),Qs(n._control.placeholder)}}function Kk(e,t){1&e&&Os(0,3,["*ngSwitchCase","true"])}function Jk(e,t){1&e&&(ls(0,"span",23),Ys(1," *"),hs())}function Xk(e,t){if(1&e){var n=vs();ls(0,"label",20,21),bs("cdkObserveContent",function(){return an(n),Cs().updateOutlineGap()}),os(2,Qk,4,1,"ng-container",12),os(3,Kk,1,0,"ng-content",12),os(4,Jk,2,0,"span",22),hs()}if(2&e){var i=Cs();Vs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat())("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),cs("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),is("for",i._control.id)("aria-owns",i._control.id),Mo(2),cs("ngSwitchCase",!1),Mo(1),cs("ngSwitchCase",!0),Mo(1),cs("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function $k(e,t){1&e&&(ls(0,"div",24),Os(1,4),hs())}function ew(e,t){if(1&e&&(ls(0,"div",25,26),ds(2,"span",27),hs()),2&e){var n=Cs();Mo(2),Vs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function tw(e,t){1&e&&(ls(0,"div"),Os(1,5),hs()),2&e&&cs("@transitionMessages",Cs()._subscriptAnimationState)}function nw(e,t){if(1&e&&(ls(0,"div",31),Ys(1),hs()),2&e){var n=Cs(2);cs("id",n._hintLabelId),Mo(1),Qs(n.hintLabel)}}function iw(e,t){if(1&e&&(ls(0,"div",28),os(1,nw,2,2,"div",29),Os(2,6),ds(3,"div",30),Os(4,7),hs()),2&e){var n=Cs();cs("@transitionMessages",n._subscriptAnimationState),Mo(1),cs("ngIf",n.hintLabel)}}var rw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ow=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],aw=0,sw=new _i("MatError"),cw=function(){var e=function e(t,n){s(this,e),this.id="mat-error-".concat(aw++),t||n.nativeElement.setAttribute("aria-live","polite")};return e.\u0275fac=function(t){return new(t||e)(gi("aria-live"),ss(wc))},e.\u0275dir=kt({type:e,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&is("id",t.id)},inputs:{id:"id"},features:[pc([{provide:sw,useExisting:e}])]}),e}(),uw={transitionMessages:Gf("transitionMessages",[Qf("enter",Yf({opacity:1,transform:"translateY(0%)"})),Jf("void => enter",[Yf({opacity:0,transform:"translateY(-5px)"}),qf("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},lw=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e}),e}(),hw=new _i("MatHint"),dw=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-label"]]}),e}(),fw=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-placeholder"]]}),e}(),pw=new _i("MatPrefix"),vw=new _i("MatSuffix"),mw=0,gw=zy(function(){return function e(t){s(this,e),this._elementRef=t}}(),"primary"),yw=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),bw=new _i("MatFormField"),_w=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u,l){var h;return s(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=c,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new Y,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(mw++),h._labelId="mat-form-field-label-".concat(mw++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==l,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return a(n,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=wg(e)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(t.controlType)),t.stateChanges.pipe(Ny(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(yg(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(yg(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),me(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ny(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ny(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yg(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ib(this._label.nativeElement,"transitionend").pipe(ug(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,C(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,C(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),c=e.children,u=this._getStartEnd(c[0].getBoundingClientRect()),l=0,h=0;h<c.length;h++)l+=c[h].offsetWidth;t=Math.abs(u-s)-5,n=l>0?.75*l+10:0}for(var d=0;d<r.length;d++)r[d].style.width="".concat(t,"px");for(var f=0;f<o.length;f++)o[f].style.width="".concat(n,"px");this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}]),n}(gw);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Yc),ss(wc),ss(Iy,8),ss(yw,8),ss(Rg),ss(hl),ss(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(Fu(n,lw,5),Fu(n,lw,7),Fu(n,dw,5),Fu(n,dw,7),Fu(n,fw,5),Fu(n,sw,5),Fu(n,hw,5),Fu(n,pw,5),Fu(n,vw,5)),2&e&&(Vu(i=Bu())&&(t._controlNonStatic=i.first),Vu(i=Bu())&&(t._controlStatic=i.first),Vu(i=Bu())&&(t._labelChildNonStatic=i.first),Vu(i=Bu())&&(t._labelChildStatic=i.first),Vu(i=Bu())&&(t._placeholderChild=i.first),Vu(i=Bu())&&(t._errorChildren=i),Vu(i=Bu())&&(t._hintChildren=i),Vu(i=Bu())&&(t._prefixChildren=i),Vu(i=Bu())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(ju(Hk,5),ju(Wk,7),ju(Gk,5),ju(qk,5)),2&e&&(Vu(n=Bu())&&(t.underlineRef=n.first),Vu(n=Bu())&&(t._connectionContainerRef=n.first),Vu(n=Bu())&&(t._inputContainerRef=n.first),Vu(n=Bu())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,t){2&e&&Vs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[pc([{provide:bw,useExisting:e}]),Ga],ngContentSelectors:ow,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(xs(rw),ls(0,"div",0),ls(1,"div",1,2),bs("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),os(3,Zk,9,0,"ng-container",3),os(4,Yk,2,0,"div",4),ls(5,"div",5,6),Os(7),ls(8,"span",7),os(9,Xk,5,16,"label",8),hs(),hs(),os(10,$k,2,0,"div",9),hs(),os(11,ew,3,4,"div",10),ls(12,"div",11),os(13,tw,2,1,"div",12),os(14,iw,5,2,"div",13),hs(),hs()),2&e&&(Mo(3),cs("ngIf","outline"==t.appearance),Mo(1),cs("ngIf",t._prefixChildren.length),Mo(5),cs("ngIf",t._hasFloatingLabel()),Mo(1),cs("ngIf",t._suffixChildren.length),Mo(1),cs("ngIf","outline"!=t.appearance),Mo(1),cs("ngSwitch",t._getDisplayedMessages()),Mo(1),cs("ngSwitchCase","error"),Mo(1),cs("ngSwitchCase","hint"))},directives:[bh,Sh,Ch,Gg],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[uw.transitionMessages]},changeDetection:0}),e}(),kw=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Mh,By,qg],By]}),e}(),ww=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Zy,By],Zy,By]}),e}();function Sw(e){return function(t){var n=new Cw(e),i=t.lift(n);return n.caught=i}}var Cw=function(){function e(t){s(this,e),this.selector=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Ew(e,this.selector,this.caught))}}]),e}(),Ew=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e)).selector=i,o.caught=r,o}return a(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new ce(this);this.add(o);var a=le(t,o);a!==o&&this.add(a)}}}]),n}(ue);function xw(e){return function(t){return t.lift(new Ow(e))}}var Ow=function(){function e(t){s(this,e),this.callback=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new Tw(e,this.callback))}}]),e}(),Tw=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).add(new M(i)),r}return n}(j);function Iw(e,t){return he(e,t,1)}var Pw=function e(){s(this,e)},Mw=function e(){s(this,e)},Aw=function(){function e(t){var n=this;s(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),o=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return a(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,C(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var o=this.headers.get(t);if(!o)return;0===(o=o.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),Rw=function(){function e(){s(this,e)}return a(e,[{key:"encodeKey",value:function(e){return Lw(e)}},{key:"encodeValue",value:function(e){return Lw(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function Nw(e,t){var n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(function(e){var i=e.indexOf("="),r=_(-1==i?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,i)),t.decodeValue(e.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function Lw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function Dw(e){return"".concat(e)}var Vw=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,e),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Rw,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Nw(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(e){var i=n.fromObject[e];t.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}return a(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(Dw(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(Dw(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),jw=function(){function e(){s(this,e),this.map=new Map}return a(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function Fw(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Bw(e){return"undefined"!=typeof Blob&&e instanceof Blob}function Uw(e){return"undefined"!=typeof FormData&&e instanceof FormData}var zw=function(){function e(t,n,i,r){var o;if(s(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){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 Aw),this.context||(this.context=new jw),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var c=n.indexOf("?");this.urlWithParams=n+(-1===c?"?":c<n.length-1?"&":"")+a}}else this.params=new Vw,this.urlWithParams=n}return a(e,[{key:"serializeBody",value:function(){return null===this.body?null:Fw(this.body)||Bw(this.body)||Uw(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Vw?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body||Uw(this.body)?null:Bw(this.body)?this.body.type||null:Fw(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Vw?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,c=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,h=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},u)),n.setParams&&(l=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},l)),new e(i,r,a,{params:l,headers:u,context:h,reportProgress:c,responseType:o,withCredentials:s})}}]),e}(),Hw=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),Ww=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s(this,e),this.headers=t.headers||new Aw,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},Gw=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(e=t.call(this,i)).type=Hw.ResponseHeader,e}return a(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Ww),qw=function(e){u(n,e);var t=p(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(e=t.call(this,i)).type=Hw.Response,e.body=void 0!==i.body?i.body:null,e}return a(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(Ww),Zw=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(Ww);function Yw(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Qw=function(){var e=function(){function e(t){s(this,e),this.handler=t}return a(e,[{key:"request",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof zw)n=e;else{var o=void 0;o=r.headers instanceof Aw?r.headers:new Aw(r.headers);var a=void 0;r.params&&(a=r.params instanceof Vw?r.params:new Vw({fromObject:r.params})),n=new zw(e,t,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=zm(n).pipe(Iw(function(e){return i.handler.handle(e)}));if(e instanceof zw||"events"===r.observe)return s;var c=s.pipe(ig(function(e){return e instanceof qw}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(J(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return c.pipe(J(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return c.pipe(J(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return c.pipe(J(function(e){return e.body}))}case"response":return c;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new Vw).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,Yw(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Yw(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Yw(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Pw))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),Kw=function(){function e(t,n){s(this,e),this.next=t,this.interceptor=n}return a(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),Jw=new _i("HTTP_INTERCEPTORS"),Xw=function(){var e=function(){function e(){s(this,e)}return a(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),$w=/^\)\]\}',?\n/,eS=function(){var e=function(){function e(t){s(this,e),this.xhrFactory=t}return a(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new H(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var o=e.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=e.serializeBody(),s=null,c=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Aw(i.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new Gw({headers:r,status:t,statusText:n,url:o})},u=function(){var t=c(),r=t.headers,o=t.status,a=t.statusText,s=t.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var l=o>=200&&o<300;if("json"===e.responseType&&"string"==typeof u){var h=u;u=u.replace($w,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,l&&(l=!1,u={error:d,text:u})}}l?(n.next(new qw({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Zw({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},l=function(e){var t=c(),r=new Zw({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t.url||void 0});n.error(r)},h=!1,d=function(t){h||(n.next(c()),h=!0);var r={type:Hw.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(e){var t={type:Hw.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",u),i.addEventListener("error",l),i.addEventListener("timeout",l),i.addEventListener("abort",l),e.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:Hw.Sent}),function(){i.removeEventListener("error",l),i.removeEventListener("abort",l),i.removeEventListener("load",u),i.removeEventListener("timeout",l),e.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(jh))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),tS=new _i("XSRF_COOKIE_NAME"),nS=new _i("XSRF_HEADER_NAME"),iS=function e(){s(this,e)},rS=function(){var e=function(){function e(t,n,i){s(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return a(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ph(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Zl),ji(Ku),ji(tS))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),oS=function(){var e=function(){function e(t,n){s(this,e),this.tokenService=t,this.headerName=n}return a(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(iS),ji(nS))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),aS=function(){var e=function(){function e(t,n){s(this,e),this.backend=t,this.injector=n,this.chain=null}return a(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(Jw,[]);this.chain=t.reduceRight(function(e,t){return new Kw(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Mw),ji(Ha))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),sS=function(){var e=function(){function e(){s(this,e)}return a(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:oS,useClass:Xw}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:tS,useValue:t.cookieName}:[],t.headerName?{provide:nS,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[oS,{provide:Jw,useExisting:oS,multi:!0},{provide:iS,useClass:rS},{provide:tS,useValue:"XSRF-TOKEN"},{provide:nS,useValue:"X-XSRF-TOKEN"}]}),e}(),cS=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[Qw,{provide:Pw,useClass:aS},eS,{provide:Mw,useExisting:eS}],imports:[[sS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}(),uS=["*"];function lS(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function hS(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL "+"via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function dS(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by "+"Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var fS=function e(t,n,i){s(this,e),this.url=t,this.svgText=n,this.options=i},pS=function(){var e=function(){function e(t,n,i,r){s(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=i}return a(e,[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new fS(n,null,i))}},{key:"addSvgIconResolver",value:function(e){return this._resolvers.push(e),this}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var r=this._sanitizer.sanitize(Tr.HTML,n);if(!r)throw dS(n);return this._addSvgIconConfig(e,t,new fS("",r,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new fS(t,null,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(Tr.HTML,t);if(!i)throw dS(t);return this._addSvgIconSetConfig(e,new fS("",i,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(Tr.RESOURCE_URL,e);if(!n)throw hS(e);var i=this._cachedIconsByUrl.get(n);return i?zm(vS(i)):this._loadSvgIconFromConfig(new fS(e,null)).pipe(qm(function(e){return t._cachedIconsByUrl.set(n,e)}),J(function(e){return vS(e)}))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=mS(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(t,e))return this._svgIconConfigs.set(n,i),this._getSvgFromConfig(i);var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):Jb(lS(n))}},{key:"ngOnDestroy",value:function(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgText?zm(vS(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(J(function(e){return vS(e)}))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?zm(i):_d(t.filter(function(e){return!e.svgText}).map(function(e){return n._loadSvgIconSetFromConfig(e).pipe(Sw(function(t){var i=n._sanitizer.sanitize(Tr.RESOURCE_URL,e.url),r="Loading icon set URL: ".concat(i," failed: ").concat(t.message);return n._errorHandler.handleError(new Error(r)),zm(null)}))})).pipe(J(function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw lS(e);return i}))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgText&&i.svgText.indexOf(e)>-1){var r=this._svgElementFromConfig(i),o=this._extractSvgIconFromSet(r,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchIcon(e).pipe(qm(function(t){return e.svgText=t}),J(function(){return t._svgElementFromConfig(e)}))}},{key:"_loadSvgIconSetFromConfig",value:function(e){return e.svgText?zm(null):this._fetchIcon(e).pipe(qm(function(t){return e.svgText=t}))}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);var o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var r=n[i],o=r.name;"id"!==o&&t.setAttribute(o,r.value)}for(var a=0;a<e.childNodes.length;a++)e.childNodes[a].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[a].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchIcon",value:function(e){var t,n=this,i=e.url,r=e.options,o=null!==(t=null==r?void 0:r.withCredentials)&&void 0!==t&&t;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==i)throw Error('Cannot fetch icon from URL "'.concat(i,'".'));var a=this._sanitizer.sanitize(Tr.RESOURCE_URL,i);if(!a)throw hS(i);var s=this._inProgressUrlFetches.get(a);if(s)return s;var c=this._httpClient.get(a,{responseType:"text",withCredentials:o}).pipe(xw(function(){return n._inProgressUrlFetches.delete(a)}),Ce());return this._inProgressUrlFetches.set(a,c),c}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(mS(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}},{key:"_svgElementFromConfig",value:function(e){if(!e.svgElement){var t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}},{key:"_getIconConfigFromResolvers",value:function(e,t){for(var n=0;n<this._resolvers.length;n++){var i=this._resolvers[n](t,e);if(i)return(r=i).url&&r.options?new fS(i.url,null,i.options):new fS(i,null)}var r}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Qw,8),ji(pd),ji(Zl,8),ji(Dr))},e.\u0275prov=Ve({factory:function(){return new e(ji(Qw,8),ji(pd),ji(Zl,8),ji(Dr))},token:e,providedIn:"root"}),e}();function vS(e){return e.cloneNode(!0)}function mS(e,t){return e+":"+t}var gS=zy(function(){return function e(t){s(this,e),this._elementRef=t}}()),yS=new _i("mat-icon-location",{providedIn:"root",factory:function(){var e=Fi(Zl),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),bS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_S=bS.map(function(e){return"[".concat(e,"]")}).join(", "),kS=/^url\(['"]?#(.*?)['"]?\)$/,wS=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this,e))._iconRegistry=i,c._location=o,c._errorHandler=a,c._inline=!1,c._currentIconFetch=M.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true"),c}return a(n,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=wg(e)}},{key:"svgIcon",get:function(){return this._svgIcon},set:function(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){var t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnInit",value:function(){this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach(function(t,n){t.forEach(function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))})})}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(_S),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){bS.forEach(function(i){var r=t[e],o=r.getAttribute(i),a=o?o.match(kS):null;if(a){var s=n.get(r);s||n.set(r,s=[]),s.push({name:i,value:a[1]})}})},r=0;r<t.length;r++)i(r)}},{key:"_updateSvgIcon",value:function(e){var t=this;if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){var n=_(this._splitIconName(e),2),i=n[0],r=n[1];i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(ug(1)).subscribe(function(e){return t._setSvgElement(e)},function(e){var n="Error retrieving icon ".concat(i,":").concat(r,"! ").concat(e.message);t._errorHandler.handleError(new Error(n))})}}}]),n}(gS);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(pS),gi("aria-hidden"),ss(yS),ss(Dr))},e.\u0275cmp=vt({type:e,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(is("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),Vs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[Ga],ngContentSelectors:uS,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Os(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),e}(),SS=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),CS=Vg({passive:!0}),ES=function(){var e=function(){function e(t,n){s(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}return a(e,[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return sg;var n=Og(e),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new Y,o="cdk-text-field-autofilled",a=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(o)&&(n.classList.remove(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!1})})):(n.classList.add(o),t._ngZone.run(function(){return r.next({target:e.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,CS),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,CS)}}),r}},{key:"stopMonitoring",value:function(e){var t=Og(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach(function(t,n){return e.stopMonitoring(n)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg),ji(hl))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg),ji(hl))},token:e,providedIn:"root"}),e}(),xS=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Ng]]}),e}(),OS=new _i("MAT_INPUT_VALUE_ACCESSOR"),TS=["button","checkbox","file","hidden","image","radio","range","reset","submit"],IS=0,PS=Gy(function(){return function e(t,n,i,r){s(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),MS=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u,l,h,d){var f;s(this,n),(f=t.call(this,c,o,a,r))._elementRef=e,f._platform=i,f._autofillMonitor=l,f._formField=d,f._uid="mat-input-".concat(IS++),f.focused=!1,f.stateChanges=new Y,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(e){return Dg().has(e)});var p=f._elementRef.nativeElement,v=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(e){var t=e.target;t.value||0!==t.selectionStart||0!==t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===v,f._isTextarea="textarea"===v,f._isInFormField=!!d,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return a(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=wg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=wg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Dg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=wg(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var e,t,n=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){TS.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(PS);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Rg),ss(Qd,10),ss(xf,8),ss(Df,8),ss(qy),ss(OS,10),ss(ES),ss(hl),ss(bw,8))},e.\u0275dir=kt({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(e,t){1&e&&bs("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(Js("disabled",t.disabled)("required",t.required),is("id",t.id)("data-placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),Vs("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[pc([{provide:lw,useExisting:e}]),Ga,Lt]}),e}(),AS=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[qy],imports:[[xS,kw,By],xS,kw]}),e}(),RS=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By,Mh],By]}),e}(),NS=["trigger"],LS=["panel"];function DS(e,t){if(1&e&&(ls(0,"span",8),Ys(1),hs()),2&e){var n=Cs();Mo(1),Qs(n.placeholder)}}function VS(e,t){if(1&e&&(ls(0,"span",12),Ys(1),hs()),2&e){var n=Cs(2);Mo(1),Qs(n.triggerValue)}}function jS(e,t){1&e&&Os(0,0,["*ngSwitchCase","true"])}function FS(e,t){1&e&&(ls(0,"span",9),os(1,VS,2,1,"span",10),os(2,jS,1,0,"ng-content",11),hs()),2&e&&(cs("ngSwitch",!!Cs().customTrigger),Mo(2),cs("ngSwitchCase",!0))}function BS(e,t){if(1&e){var n=vs();ls(0,"div",13),ls(1,"div",14,15),bs("@transformPanel.done",function(e){return an(n),Cs()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return an(n),Cs()._handleKeydown(e)}),Os(3,1),hs(),hs()}if(2&e){var i=Cs();cs("@transformPanelWrap",void 0),Mo(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(e,t,n,i){var r=on(),o=mn(2);r.firstUpdatePass&&Us(r,null,o,i);var a=rn();if(n!==Po&&ns(a,o,n)){var s=r.data[Pn()];if(Zs(s,i)&&!Bs(r,o)){var c=s.classesWithoutHost;null!==c&&(n=Te(c,n||"")),us(r,s,a,n,i)}else!function(e,t,n,i,r,o,a,s){r===Po&&(r=at);for(var c=0,u=0,l=0<r.length?r[0]:null,h=0<o.length?o[0]:null;null!==l||null!==h;){var d=c<r.length?r[c+1]:void 0,f=u<o.length?o[u+1]:void 0,p=null,v=void 0;l===h?(c+=2,u+=2,d!==f&&(p=h,v=f)):null===h||null!==l&&l<h?(c+=2,p=l):(u+=2,p=h,v=f),null!==p&&Ws(e,t,n,i,p,v,!0,s),l=c<r.length?r[c]:null,h=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function(e,t,n){if(null==n||""===n)return at;var i=[],r=nr(n);if(Array.isArray(r))for(var o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(var a in r)r.hasOwnProperty(a)&&e(i,a,r[a]);else"string"==typeof r&&t(i,r);return i}(e,t,n),0,o)}}(Ti,js,rs(rn(),r,o,a),!0),Ds("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),cs("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),is("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}var r,o,a}var US=[[["mat-select-trigger"]],"*"],zS=["mat-select-trigger","*"],HS={transformPanelWrap:Gf("transformPanelWrap",[Jf("* => void",$f("@transformPanel",[Xf()],{optional:!0}))]),transformPanel:Gf("transformPanel",[Qf("void",Yf({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Qf("showing",Yf({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Qf("showing-multiple",Yf({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Jf("void => *",qf("120ms cubic-bezier(0, 0, 0.2, 1)")),Jf("* => void",qf("100ms 25ms linear",Yf({opacity:0})))])},WS=0,GS=256,qS=new _i("mat-select-scroll-strategy"),ZS=new _i("MAT_SELECT_CONFIG"),YS={provide:qS,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},QS=function e(t,n){s(this,e),this.source=t,this.value=n},KS=Hy(Wy(Uy(Gy(function(){return function e(t,n,i,r,o){s(this,e),this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),JS=new _i("MatSelectTrigger"),XS=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u,l,h,f,p,v,m,g){var y,b,_,k;return s(this,n),(y=t.call(this,a,o,u,l,f))._viewportRuler=e,y._changeDetectorRef=i,y._ngZone=r,y._dir=c,y._parentFormField=h,y._liveAnnouncer=m,y._defaultOptions=g,y._panelOpen=!1,y._compareWith=function(e,t){return e===t},y._uid="mat-select-".concat(WS++),y._triggerAriaLabelledBy=null,y._destroy=new Y,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(WS++),y._panelDoneAnimatingStream=new Y,y._overlayPanelClass=(null===(b=y._defaultOptions)||void 0===b?void 0:b.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(k=null===(_=y._defaultOptions)||void 0===_?void 0:_.disableOptionCentering)&&void 0!==k&&k,y.ariaLabel="",y.optionSelectionChanges=nk(function(){var e=y.options;return e?e.changes.pipe(Ny(e),qb(function(){return me.apply(void 0,C(e.map(function(e){return e.onSelectionChange})))})):y._ngZone.onStable.pipe(ug(1),qb(function(){return y.optionSelectionChanges}))}),y.openedChange=new Eu,y._openedStream=y.openedChange.pipe(ig(function(e){return e}),J(function(){})),y._closedStream=y.openedChange.pipe(ig(function(e){return!e}),J(function(){})),y.selectionChange=new Eu,y.valueChange=new Eu,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==g?void 0:g.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=g.typeaheadDebounceInterval),y._scrollStrategyFactory=v,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return a(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(e){this._required=wg(e),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=wg(e)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(e){this._disableOptionCentering=wg(e)}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(e){this._typeaheadDebounceInterval=Sg(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var e=this;this._selectionModel=new r_(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(vg(),yg(this._destroy)).subscribe(function(){return e._panelDoneAnimating(e.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var e=this;this._initKeyManager(),this._selectionModel.changed.pipe(yg(this._destroy)).subscribe(function(e){e.added.forEach(function(e){return e.select()}),e.removed.forEach(function(e){return e.deselect()})}),this.options.changes.pipe(Ny(null),yg(this._destroy)).subscribe(function(){e._resetOptions(),e._initializeSelection()})}},{key:"ngDoCheck",value:function(){var e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){var t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var e=this._selectionModel.selected.map(function(e){return e.viewValue});return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}},{key:"_handleClosedKeydown",value:function(e){var t=e.keyCode,n=40===t||38===t||37===t||39===t,i=13===t||32===t,r=this._keyManager;if(!r.isTyping()&&i&&!Wm(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(e);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(e){var t=this._keyManager,n=e.keyCode,i=40===n||38===n,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(r||13!==n&&32!==n||!t.activeItem||Wm(e))if(!r&&this._multiple&&65===n&&e.ctrlKey){e.preventDefault();var o=this.options.some(function(e){return!e.disabled&&!e.selected});this.options.forEach(function(e){e.disabled||(o?e.select():e.deselect())})}else{var a=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==a&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var e=this;this._overlayDir.positionChange.pipe(ug(1)).subscribe(function(){e._changeDetectorRef.detectChanges(),e._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value),e.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(e){var t=this;if(this._selectionModel.selected.forEach(function(e){return e.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(function(e){return t._selectValue(e)}),this._sortValues();else{var n=this._selectValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(e){var t=this,n=this.options.find(function(n){if(t._selectionModel.isSelected(n))return!1;try{return null!=n.value&&t._compareWith(n.value,e)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var e=this;this._keyManager=new ry(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(yg(this._destroy)).subscribe(function(){e.panelOpen&&(!e.multiple&&e._keyManager.activeItem&&e._keyManager.activeItem._selectViaInteraction(),e.focus(),e.close())}),this._keyManager.change.pipe(yg(this._destroy)).subscribe(function(){e._panelOpen&&e.panel?e._scrollOptionIntoView(e._keyManager.activeItemIndex||0):e._panelOpen||e.multiple||!e._keyManager.activeItem||e._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var e=this,t=me(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yg(t)).subscribe(function(t){e._onSelect(t.source,t.isUserInput),t.isUserInput&&!e.multiple&&e._panelOpen&&(e.close(),e.focus())}),me.apply(void 0,C(this.options.map(function(e){return e._stateChanges}))).pipe(yg(t)).subscribe(function(){e._changeDetectorRef.markForCheck(),e.stateChanges.next()})}},{key:"_onSelect",value:function(e,t){var n=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(n,i){return e.sortComparator?e.sortComparator(n,i,t):t.indexOf(n)-t.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(e){var t;t=this.multiple?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_getPanelAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var e;if(this.ariaLabel)return null;var t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId(),n=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(e){this.openedChange.emit(e)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(KS);return e.\u0275fac=function(t){return new(t||e)(ss(s_),ss(Yc),ss(hl),ss(qy),ss(wc),ss(Iy,8),ss(xf,8),ss(Df,8),ss(bw,8),ss(Qd,10),gi("tabindex"),ss(qS),ss(by),ss(ZS,8))},e.\u0275dir=kt({type:e,viewQuery:function(e,t){var n;1&e&&(ju(NS,5),ju(LS,5),ju($_,5)),2&e&&(Vu(n=Bu())&&(t.trigger=n.first),Vu(n=Bu())&&(t.panel=n.first),Vu(n=Bu())&&(t._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Ga,Lt]}),e}(),$S=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments))._scrollTop=0,e._triggerFontSize=0,e._transformOrigin="top",e._offsetY=0,e._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],e}return a(n,[{key:"_calculateOverlayScroll",value:function(e,t,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*e-t+i/2),n)}},{key:"ngOnInit",value:function(){var e=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(yg(this._destroy)).subscribe(function(){e.panelOpen&&(e._triggerRect=e.trigger.nativeElement.getBoundingClientRect(),e._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var e=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(ug(1)).subscribe(function(){e._triggerFontSize&&e._overlayDir.overlayRef&&e._overlayDir.overlayRef.overlayElement&&(e._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(e._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(e){var t,n,i,r=mb(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===r?0:(n=o,(t=(e+r)*o)<(i=this.panel.nativeElement.scrollTop)?t:t+n>i+256?Math.max(0,t-256+n):i)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,e)}},{key:"_getChangeEvent",value:function(e){return new QS(this,e)}},{key:"_calculateOverlayOffsetX",value:function(){var e,t=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)e=40;else if(this.disableOptionCentering)e=16;else{var o=this._selectionModel.selected[0]||this.options.first;e=o&&o.group?32:16}i||(e*=-1);var a=0-(t.left+e-(i?r:0)),s=t.right+e-n.width+(i?0:r);a>0?e+=a+8:s>0&&(e-=s+8),this._overlayDir.offsetX=Math.round(e),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(e,t,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(GS/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?e*r:this._scrollTop===n?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-GS)%r):t-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(e){var t=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*t,GS)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,e):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(e,t){var n=Math.round(e-t);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(e,t,n){var i=Math.round(e-t);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var e,t=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*t,GS),r=n*t-i;e=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),e+=mb(e,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(e,o,r),this._offsetY=this._calculateOverlayOffsetY(e,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var e=this._getItemHeight(),t=(e-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-t+e/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(XS);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-select"]],contentQueries:function(e,t,n){var i;1&e&&(Fu(n,JS,5),Fu(n,vb,5),Fu(n,hb,5)),2&e&&(Vu(i=Bu())&&(t.customTrigger=i.first),Vu(i=Bu())&&(t.options=i),Vu(i=Bu())&&(t.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&bs("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(is("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),Vs("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[pc([{provide:lw,useExisting:e},{provide:sb,useExisting:e}]),Ga],ngContentSelectors:zS,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,t){if(1&e&&(xs(US),ls(0,"div",0,1),bs("click",function(){return t.toggle()}),ls(3,"div",2),os(4,DS,2,1,"span",3),os(5,FS,3,2,"span",4),hs(),ls(6,"div",5),ds(7,"div",6),hs(),hs(),os(8,BS,4,14,"ng-template",7),bs("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){var n=as(1);is("aria-owns",t.panelOpen?t.id+"-panel":null),Mo(3),cs("ngSwitch",t.empty),is("id",t._valueId),Mo(1),cs("ngSwitchCase",!0),Mo(1),cs("ngSwitchCase",!1),Mo(3),cs("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[X_,Sh,Ch,$_,Eh,vh],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;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:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[HS.transformPanelWrap,HS.transformPanel]},changeDetection:0}),e}(),eC=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[YS],imports:[[Mh,tk,gb,By],c_,kw,gb,By]}),e}();function tC(e){return function(t){return t.lift(new nC(e))}}var nC=function(){function e(t){s(this,e),this.value=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new iC(e,this.value))}}]),e}(),iC=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).value=i,r}return a(n,[{key:"_next",value:function(e){this.destination.next(this.value)}}]),n}(j),rC=["*"];function oC(e,t){if(1&e){var n=vs();ls(0,"div",2),bs("click",function(){return an(n),Cs()._onBackdropClicked()}),hs()}2&e&&Vs("mat-drawer-shown",Cs()._isShowingBackdrop())}function aC(e,t){1&e&&(ls(0,"mat-drawer-content"),Os(1,2),hs())}var sC=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],cC=["mat-drawer","mat-drawer-content","*"];function uC(e,t){if(1&e){var n=vs();ls(0,"div",2),bs("click",function(){return an(n),Cs()._onBackdropClicked()}),hs()}2&e&&Vs("mat-drawer-shown",Cs()._isShowingBackdrop())}function lC(e,t){1&e&&(ls(0,"mat-sidenav-content",3),Os(1,2),hs())}var hC=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],dC=["mat-sidenav","mat-sidenav-content","*"],fC=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",pC={transformDrawer:Gf("transform",[Qf("open, open-instant",Yf({transform:"none",visibility:"visible"})),Qf("void",Yf({"box-shadow":"none",visibility:"hidden"})),Jf("void => open-instant",qf("0ms")),Jf("void <=> open, open-instant => void",qf("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},vC=new _i("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),mC=new _i("MAT_DRAWER_CONTAINER"),gC=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this,r,o,a))._changeDetectorRef=e,c._container=i,c}return a(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._container._contentMarginChanges.subscribe(function(){e._changeDetectorRef.markForCheck()})}}]),n}(a_);return e.\u0275fac=function(t){return new(t||e)(ss(Yc),ss(Pe(function(){return bC})),ss(wc),ss(o_),ss(hl))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&Ds("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Ga],ngContentSelectors:rC,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Os(0))},encapsulation:2,changeDetection:0}),e}(),yC=function(){var e=function(){function e(t,n,i,r,o,a,c){var u=this;s(this,e),this._elementRef=t,this._focusTrapFactory=n,this._focusMonitor=i,this._platform=r,this._ngZone=o,this._doc=a,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Y,this._animationEnd=new Y,this._animationState="void",this.openedChange=new Eu(!0),this._openedStream=this.openedChange.pipe(ig(function(e){return e}),J(function(){})),this.openedStart=this._animationStarted.pipe(ig(function(e){return e.fromState!==e.toState&&0===e.toState.indexOf("open")}),tC(void 0)),this._closedStream=this.openedChange.pipe(ig(function(e){return!e}),J(function(){})),this.closedStart=this._animationStarted.pipe(ig(function(e){return e.fromState!==e.toState&&"void"===e.toState}),tC(void 0)),this._destroyed=new Y,this.onPositionChanged=new Eu,this._modeChanged=new Y,this.openedChange.subscribe(function(e){e?(u._doc&&(u._elementFocusedBeforeDrawerWasOpened=u._doc.activeElement),u._takeFocus()):u._isFocusWithinDrawer()&&u._restoreFocus()}),this._ngZone.runOutsideAngular(function(){Ib(u._elementRef.nativeElement,"keydown").pipe(ig(function(e){return e.keyCode===Hm&&!u.disableClose&&!Wm(e)}),yg(u._destroyed)).subscribe(function(e){return u._ngZone.run(function(){u.close(),e.stopPropagation(),e.preventDefault()})})}),this._animationEnd.pipe(vg(function(e,t){return e.fromState===t.fromState&&e.toState===t.toState})).subscribe(function(e){var t=e.fromState,n=e.toState;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&u.openedChange.emit(u._opened)})}return a(e,[{key:"position",get:function(){return this._position},set:function(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(e){this._disableClose=wg(e)}},{key:"autoFocus",get:function(){var e=this._autoFocus;return null==e?"side"!==this.mode:e},set:function(e){this._autoFocus=wg(e)}},{key:"opened",get:function(){return this._opened},set:function(e){this.toggle(wg(e))}},{key:"_takeFocus",value:function(){var e=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(t){t||"function"!=typeof e._elementRef.nativeElement.focus||e._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var e,t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(e){return this.toggle(!0,e)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,t=arguments.length>1?arguments[1]:void 0;return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}},{key:"_setOpen",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(e){n.openedChange.pipe(ug(1)).subscribe(function(t){return e(t?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(e){this._animationStarted.next(e)}},{key:"_animationDoneListener",value:function(e){this._animationEnd.next(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(ly),ss(wy),ss(Rg),ss(hl),ss(Zl,8),ss(mC,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&_s("@transform.start",function(e){return t._animationStartListener(e)})("@transform.done",function(e){return t._animationDoneListener(e)}),2&e&&(is("align",null),Xs("@transform",t._animationState),Vs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.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:rC,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(xs(),ls(0,"div",0),Os(1),hs())},directives:[a_],encapsulation:2,data:{animation:[pC.transformDrawer]},changeDetection:0}),e}(),bC=function(){var e=function(){function e(t,n,i,r,o){var a=this,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0;s(this,e),this._dir=t,this._element=n,this._ngZone=i,this._changeDetectorRef=r,this._animationMode=u,this._drawers=new Ou,this.backdropClick=new Eu,this._destroyed=new Y,this._doCheckSubject=new Y,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Y,t&&t.change.pipe(yg(this._destroyed)).subscribe(function(){a._validateDrawers(),a.updateContentMargins()}),o.change().pipe(yg(this._destroyed)).subscribe(function(){return a.updateContentMargins()}),this._autosize=c}return a(e,[{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(e){this._autosize=wg(e)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(e){this._backdropOverride=null==e?null:wg(e)}},{key:"scrollable",get:function(){return this._userContent||this._content}},{key:"ngAfterContentInit",value:function(){var e=this;this._allDrawers.changes.pipe(Ny(this._allDrawers),yg(this._destroyed)).subscribe(function(t){e._drawers.reset(t.filter(function(t){return!t._container||t._container===e})),e._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ny(null)).subscribe(function(){e._validateDrawers(),e._drawers.forEach(function(t){e._watchDrawerToggle(t),e._watchDrawerPosition(t),e._watchDrawerMode(t)}),(!e._drawers.length||e._isDrawerOpen(e._start)||e._isDrawerOpen(e._end))&&e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._doCheckSubject.pipe($m(10),yg(e._destroyed)).subscribe(function(){return e.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(e){return e.open()})}},{key:"close",value:function(){this._drawers.forEach(function(e){return e.close()})}},{key:"updateContentMargins",value:function(){var e=this,t=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){var i=this._left._getWidth();t+=i,n-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r=this._right._getWidth();n+=r,t-=r}n=n||null,(t=t||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:t,right:n},this._ngZone.run(function(){return e._contentMarginChanges.next(e._contentMargins)}))}},{key:"ngDoCheck",value:function(){var e=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return e._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(e){var t=this;e._animationStarted.pipe(ig(function(e){return e.fromState!==e.toState}),yg(this._drawers.changes)).subscribe(function(e){"open-instant"!==e.toState&&"NoopAnimations"!==t._animationMode&&t._element.nativeElement.classList.add("mat-drawer-transition"),t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(yg(this._drawers.changes)).subscribe(function(){return t._setContainerClass(e.opened)})}},{key:"_watchDrawerPosition",value:function(e){var t=this;e&&e.onPositionChanged.pipe(yg(this._drawers.changes)).subscribe(function(){t._ngZone.onMicrotaskEmpty.pipe(ug(1)).subscribe(function(){t._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(e){var t=this;e&&e._modeChanged.pipe(yg(me(this._drawers.changes,this._destroyed))).subscribe(function(){t.updateContentMargins(),t._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(e){var t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}},{key:"_validateDrawers",value:function(){var e=this;this._start=this._end=null,this._drawers.forEach(function(t){"end"==t.position?e._end=t:e._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var e=this;[this._start,this._end].filter(function(t){return t&&!t.disableClose&&e._canHaveBackdrop(t)}).forEach(function(e){return e._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(e){return"side"!==e.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(e){return null!=e&&e.opened}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Iy,8),ss(wc),ss(hl),ss(Yc),ss(s_),ss(vC),ss(Dm,8))},e.\u0275cmp=vt({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(Fu(n,gC,5),Fu(n,yC,5)),2&e&&(Vu(i=Bu())&&(t._content=i.first),Vu(i=Bu())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&ju(gC,5),2&e&&Vu(n=Bu())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&Vs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[pc([{provide:mC,useExisting:e}])],ngContentSelectors:cC,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,t){1&e&&(xs(sC),os(0,oC,1,2,"div",0),Os(1),Os(2,1),os(3,aC,2,0,"mat-drawer-content",1)),2&e&&(cs("ngIf",t.hasBackdrop),Mo(3),cs("ngIf",!t._content))},directives:[bh,gC],styles:[fC],encapsulation:2,changeDetection:0}),e}(),_C=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){return s(this,n),t.call(this,e,i,r,o,a)}return n}(gC);return e.\u0275fac=function(t){return new(t||e)(ss(Yc),ss(Pe(function(){return wC})),ss(wc),ss(o_),ss(hl))},e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&Ds("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[Ga],ngContentSelectors:rC,decls:1,vars:0,template:function(e,t){1&e&&(xs(),Os(0))},encapsulation:2,changeDetection:0}),e}(),kC=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments))._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return a(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(e){this._fixedInViewport=wg(e)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(e){this._fixedTopGap=Sg(e)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(e){this._fixedBottomGap=Sg(e)}}]),n}(yC);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(is("align",null),Ds("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),Vs("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[Ga],ngContentSelectors:rC,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(xs(),ls(0,"div",0),Os(1),hs())},directives:[a_],encapsulation:2,data:{animation:[pC.transformDrawer]},changeDetection:0}),e}(),wC=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(bC);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275cmp=vt({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(Fu(n,_C,5),Fu(n,kC,5)),2&e&&(Vu(i=Bu())&&(t._content=i.first),Vu(i=Bu())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&Vs("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[pc([{provide:mC,useExisting:e}]),Ga],ngContentSelectors:dC,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(xs(hC),os(0,uC,1,2,"div",0),Os(1),Os(2,1),os(3,lC,2,0,"mat-sidenav-content",1)),2&e&&(cs("ngIf",t.hasBackdrop),Mo(3),cs("ngIf",!t._content))},directives:[bh,_C,a_],styles:[fC],encapsulation:2,changeDetection:0}),e}(),SC=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Mh,By,Ng,c_],c_,By]}),e}(),CC=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[Mh,By],By]}),e}(),EC=["*",[["mat-toolbar-row"]]],xC=["*","mat-toolbar-row"],OC=zy(function(){return function e(t){s(this,e),this._elementRef=t}}()),TC=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=kt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),e}(),IC=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e))._platform=i,o._document=r,o}return a(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return e._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(OC);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(Rg),ss(Zl))},e.\u0275cmp=vt({type:e,selectors:[["mat-toolbar"]],contentQueries:function(e,t,n){var i;1&e&&Fu(n,TC,5),2&e&&Vu(i=Bu())&&(t._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&Vs("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Ga],ngContentSelectors:xC,decls:2,vars:0,template:function(e,t){1&e&&(xs(EC),Os(0),Os(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),e}(),PC=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[By],By]}),e}(),MC=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(j),AC=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this)).parent=e,o.outerValue=i,o.outerIndex=r,o.index=0,o}return a(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(j);function RC(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new AC(e,n,i);if(!r.closed)return t instanceof H?t.subscribe(r):oe(t)(r)}var NC={};function LC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0;return K(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&O(t[0])&&(t=t[0]),ve(t,r).lift(new VC(i))}var DC,VC=function(){function e(t){s(this,e),this.resultSelector=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new jC(e,this.resultSelector))}}]),e}(),jC=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return a(n,[{key:"_next",value:function(e){this.values.push(NC),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++)this.add(RC(this,e[n],void 0,n))}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===NC?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(MC),FC=new Set,BC=function(){var e=function(){function e(t){s(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):UC}return a(e,[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!FC.has(e))try{DC||((DC=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(DC)),DC.sheet&&(DC.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),FC.add(e))}catch(WP){console.error(WP)}}(e),this._matchMedia(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Rg))},e.\u0275prov=Ve({factory:function(){return new e(ji(Rg))},token:e,providedIn:"root"}),e}();function UC(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var zC=function(){var e=function(){function e(t,n){s(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new Y}return a(e,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return HC(Eg(e)).some(function(e){return t._registerQuery(e).mql.matches})}},{key:"observe",value:function(e){var t=this,n=LC(HC(Eg(e)).map(function(e){return t._registerQuery(e).observable}));return(n=Ry(n.pipe(ug(1)),n.pipe(dg(1),$m(0)))).pipe(J(function(e){var t={matches:!1,breakpoints:{}};return e.forEach(function(e){var n=e.matches,i=e.query;t.matches=t.matches||n,t.breakpoints[i]=n}),t}))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new H(function(e){var i=function(n){return t._zone.run(function(){return e.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Ny(n),J(function(t){return{query:e,matches:t.matches}}),yg(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(BC),ji(hl))},e.\u0275prov=Ve({factory:function(){return new e(ji(BC),ji(hl))},token:e,providedIn:"root"}),e}();function HC(e){return e.map(function(e){return e.split(",")}).reduce(function(e,t){return e.concat(t)}).map(function(e){return e.trim()})}var WC={tooltipState:Gf("state",[Qf("initial, void, hidden",Yf({opacity:0,transform:"scale(0)"})),Qf("visible",Yf({transform:"scale(1)"})),Jf("* => visible",qf("200ms cubic-bezier(0, 0, 0.2, 1)",Kf([Yf({opacity:0,transform:"scale(0)",offset:0}),Yf({opacity:.5,transform:"scale(0.99)",offset:.5}),Yf({opacity:1,transform:"scale(1)",offset:1})]))),Jf("* => hidden",qf("100ms cubic-bezier(0, 0, 0.2, 1)",Yf({opacity:0})))])},GC="tooltip-panel",qC=Vg({passive:!0}),ZC=new _i("mat-tooltip-scroll-strategy"),YC={provide:ZC,deps:[Q_],useFactory:function(e){return function(){return e.scrollStrategies.reposition({scrollThrottle:20})}}},QC=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),KC=function(){var e=function(){function e(t,n,i,r,o,a,c,u,l,h,d,f){var p=this;s(this,e),this._overlay=t,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=c,this._focusMonitor=u,this._dir=h,this._defaultOptions=d,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 Y,this._handleKeydown=function(e){p._isTooltipVisible()&&e.keyCode===Hm&&!Wm(e)&&(e.preventDefault(),e.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=l,this._document=f,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),h.change.pipe(yg(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return a(e,[{key:"position",get:function(){return this._position},set:function(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=wg(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(e){var t=this;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(function(){Promise.resolve().then(function(){t._ariaDescriber.describe(t._elementRef.nativeElement,t.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var e=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(yg(this._destroyed)).subscribe(function(t){t?"keyboard"===t&&e._ngZone.run(function(){return e.show()}):e._ngZone.run(function(){return e.hide(0)})})}},{key:"ngOnDestroy",value:function(){var e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(t){var n=_(t,2);e.removeEventListener(n[0],n[1],qC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new h_(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(yg(this._destroyed)).subscribe(function(){return e._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(e)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var e=this;if(this._overlayRef)return this._overlayRef;var t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return n.positionChanges.pipe(yg(this._destroyed)).subscribe(function(t){e._updateCurrentPositionClass(t.connectionPair),e._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&e._tooltipInstance.isVisible()&&e._ngZone.run(function(){return e.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(GC),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(yg(this._destroyed)).subscribe(function(){return e._detach()}),this._overlayRef.outsidePointerEvents().pipe(yg(this._destroyed)).subscribe(function(){var t;return null===(t=e._tooltipInstance)||void 0===t?void 0:t._handleBodyInteraction()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(e){var t=e.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(e){return e}},{key:"_getOrigin",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?e={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={originX:"start",originY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={originX:"end",originY:"center"});var i=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var e,t=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?e={overlayX:"center",overlayY:"bottom"}:"below"==n?e={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&t||"right"==n&&!t?e={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&t||"left"==n&&!t)&&(e={overlayX:"start",overlayY:"center"});var i=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(ug(1),yg(this._destroyed)).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}},{key:"_updateCurrentPositionClass",value:function(e){var t,n=e.overlayY,i=e.originX;if((t="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===e.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(GC,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+t)}this._currentPosition=t}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var e=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){e._setupPointerExitEventsIfNeeded(),e.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){e._setupPointerExitEventsIfNeeded(),clearTimeout(e._touchstartTimeout),e._touchstartTimeout=setTimeout(function(){return e.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var e,t=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return t.hide()}],["wheel",function(e){return t._wheelListener(e)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(t._touchstartTimeout),t.hide(t._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(e=this._passiveListeners).push.apply(e,n)}}},{key:"_addListeners",value:function(e){var t=this;e.forEach(function(e){var n=_(e,2);t._elementRef.nativeElement.addEventListener(n[0],n[1],qC)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(e){if(this._isTooltipVisible()){var t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t===n||n.contains(t)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var e=this.touchGestures;if("off"!==e){var t=this._elementRef.nativeElement,n=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==e&&t.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Q_),ss(wc),ss(o_),ss(ou),ss(hl),ss(Rg),ss(ey),ss(wy),ss(void 0),ss(Iy),ss(void 0),ss(Zl))},e.\u0275dir=kt({type:e,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),e}(),JC=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u,l,h,d,f,p){var v;return s(this,n),(v=t.call(this,e,i,r,o,a,c,u,l,h,d,f,p))._tooltipComponent=$C,v}return n}(KC);return e.\u0275fac=function(t){return new(t||e)(ss(Q_),ss(wc),ss(o_),ss(ou),ss(hl),ss(Rg),ss(ey),ss(wy),ss(ZC),ss(Iy,8),ss(QC,8),ss(Zl))},e.\u0275dir=kt({type:e,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Ga]}),e}(),XC=function(){var e=function(){function e(t){s(this,e),this._changeDetectorRef=t,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Y}return a(e,[{key:"show",value:function(e){var t=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){t._visibility="visible",t._showTimeoutId=void 0,t._onShow(),t._markForCheck()},e)}},{key:"hide",value:function(e){var t=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){t._visibility="hidden",t._hideTimeoutId=void 0,t._markForCheck()},e)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(e){var t=e.toState;"hidden"!==t||this.isVisible()||this._onHide.next(),"visible"!==t&&"hidden"!==t||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(Yc))},e.\u0275dir=kt({type:e}),e}(),$C=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(XC);return e.\u0275fac=function(t){return new(t||e)(ss(Yc),ss(zC))},e.\u0275cmp=vt({type:e,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&Ds("zoom","visible"===t._visibility?1:null)},features:[Ga],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){var n;1&e&&(ls(0,"div",0),bs("@state.start",function(){return t._animationStart()})("@state.done",function(e){return t._animationDone(e)}),wu(1,"async"),Ys(2),hs()),2&e&&(Vs("mat-tooltip-handset",null==(n=Su(1,5,t._isHandset))?null:n.matches),cs("ngClass",t.tooltipClass)("@state",t._visibility),Mo(2),Qs(t.message))},directives:[vh],pipes:[Ph],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[WC.tooltipState]},changeDetection:0}),e}(),eE=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[YC],imports:[[Oy,Mh,tk,By],By,c_]}),e}();function tE(e,t){if(1&e){var n=vs();ls(0,"div",1),ls(1,"button",2),bs("click",function(){return an(n),Cs().action()}),Ys(2),hs(),hs()}if(2&e){var i=Cs();Mo(2),Qs(i.data.action)}}function nE(e,t){}var iE,rE=new _i("MatSnackBarData"),oE=function e(){s(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},aE=Math.pow(2,31)-1,sE=function(){function e(t,n){var i=this;s(this,e),this._overlayRef=n,this._afterDismissed=new Y,this._afterOpened=new Y,this._onAction=new Y,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return i.dismiss()}),t._onExit.subscribe(function(){return i._finishDismiss()})}return a(e,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout(function(){return t.dismiss()},Math.min(e,aE))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),e}(),cE=function(){var e=function(){function e(t,n){s(this,e),this.snackBarRef=t,this.data=n}return a(e,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(sE),ss(rE))},e.\u0275cmp=vt({type:e,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(ls(0,"span"),Ys(1),hs(),os(2,tE,3,1,"div",0)),2&e&&(Mo(1),Qs(t.data.message),Mo(1),cs("ngIf",t.hasAction))},directives:[bh,xb],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),e}(),uE={snackBarState:Gf("state",[Qf("void, hidden",Yf({transform:"scale(0.8)",opacity:0})),Qf("visible",Yf({transform:"scale(1)",opacity:1})),Jf("* => visible",qf("150ms cubic-bezier(0, 0, 0.2, 1)")),Jf("* => void, * => hidden",qf("75ms cubic-bezier(0.4, 0.0, 1, 1)",Yf({opacity:0})))])},lE=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this))._ngZone=e,c._elementRef=i,c._changeDetectorRef=r,c._platform=o,c.snackBarConfig=a,c._announceDelay=150,c._destroyed=!1,c._onAnnounce=new Y,c._onExit=new Y,c._onEnter=new Y,c._animationState="void",c.attachDomPortal=function(e){return c._assertNotAttached(),c._applySnackBarClasses(),c._portalOutlet.attachDomPortal(e)},c._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",c._platform.FIREFOX&&("polite"===c._live&&(c._role="status"),"assertive"===c._live&&(c._role="alert")),c}return a(n,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.toState;if(("void"===t&&"void"!==e.fromState||"hidden"===t)&&this._completeExit(),"visible"===t){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.pipe(ug(1)).subscribe(function(){e._onExit.next(),e._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(function(t){return e.classList.add(t)}):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var e=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){e._announceTimeoutId=setTimeout(function(){var t=e._elementRef.nativeElement.querySelector("[aria-hidden]"),n=e._elementRef.nativeElement.querySelector("[aria-live]");if(t&&n){var i=null;e._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),null==i||i.focus(),e._onAnnounce.next(),e._onAnnounce.complete()}},e._announceDelay)})}}]),n}(p_);return e.\u0275fac=function(t){return new(t||e)(ss(hl),ss(wc),ss(Yc),ss(Rg),ss(oE))},e.\u0275cmp=vt({type:e,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&ju(m_,7),2&e&&Vu(n=Bu())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,t){1&e&&_s("@state.done",function(e){return t.onAnimationEnd(e)}),2&e&&Xs("@state",t._animationState)},features:[Ga],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,t){1&e&&(ls(0,"div",0),os(1,nE,0,0,"ng-template",1),hs(),ds(2,"div")),2&e&&(Mo(2),is("aria-live",t._live)("role",t._role))},directives:[m_],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[uE.snackBarState]}}),e}(),hE=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[tk,g_,Mh,Ob,By],By]}),e}(),dE=new _i("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new oE}}),fE=function(){var e=function(){function e(t,n,i,r,o,a){s(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=cE,this.snackBarContainerComponent=lE,this.handsetCssClass="mat-snack-bar-handset"}return a(e,[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage===e&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=Ha.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:oE,useValue:t}]}),i=new h_(this.snackBarContainerComponent,t.viewContainerRef,n),r=e.attach(i);return r.instance.snackBarConfig=t,r.instance}},{key:"_attach",value:function(e,t){var n=this,i=Object.assign(Object.assign(Object.assign({},new oE),this._defaultConfig),t),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new sE(o,r);if(e instanceof $c){var s=new d_(e,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var c=this._createInjector(i,a),u=new h_(e,void 0,c),l=o.attachComponentPortal(u);a.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yg(r.detachments())).subscribe(function(e){var t=r.overlayElement.classList;e.matches?t.add(n.handsetCssClass):t.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe(function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe(function(){return e._dismissAfter(t.duration)})}},{key:"_createOverlay",value:function(e){var t=new T_;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,r="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,o=!r&&"center"!==e.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return Ha.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:sE,useValue:t},{provide:rE,useValue:e.data}]})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Q_),ji(by),ji(Ha),ji(zC),ji(e,12),ji(dE))},e.\u0275prov=Ve({factory:function(){return new e(ji(Q_),ji(by),ji(Oa),ji(zC),ji(e,12),ji(dE))},token:e,providedIn:hE}),e}(),pE={schedule:function(e,t){var n=setTimeout(e,t);return function(){return clearTimeout(n)}},scheduleBeforeRender:function(e){if("undefined"==typeof window)return pE.schedule(e,0);if(void 0===window.requestAnimationFrame)return pE.schedule(e,16);var t=window.requestAnimationFrame(e);return function(){return window.cancelAnimationFrame(t)}}};function vE(e,t,n){var i=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some(function(t,n){return!("*"===t||!function(e,t){if(!iE){var n=Element.prototype;iE=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&iE.call(e,t)}(e,t)||(i=n,0))}),i}var mE=function(){function e(t,n){s(this,e),this.componentFactory=n.get(yc).resolveComponentFactory(t)}return a(e,[{key:"create",value:function(e){return new gE(this.componentFactory,e)}}]),e}(),gE=function(){function e(t,n){s(this,e),this.componentFactory=t,this.injector=n,this.eventEmitters=new n_(1),this.events=this.eventEmitters.pipe(qb(function(e){return me.apply(void 0,C(e))})),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(function(e){return e.propName})),this.ngZone=this.injector.get(hl),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(function(){return Zone.current})}return a(e,[{key:"connect",value:function(e){var t=this;this.runInZone(function(){if(null!==t.scheduledDestroyFn)return t.scheduledDestroyFn(),void(t.scheduledDestroyFn=null);null===t.componentRef&&t.initializeComponent(e)})}},{key:"disconnect",value:function(){var e=this;this.runInZone(function(){null!==e.componentRef&&null===e.scheduledDestroyFn&&(e.scheduledDestroyFn=pE.schedule(function(){null!==e.componentRef&&(e.componentRef.destroy(),e.componentRef=null,e.viewChangeDetectorRef=null)},10))})}},{key:"getInputValue",value:function(e){var t=this;return this.runInZone(function(){return null===t.componentRef?t.initialInputValues.get(e):t.componentRef.instance[e]})}},{key:"setInputValue",value:function(e,t){var n=this;this.runInZone(function(){var i,r;null!==n.componentRef?((i=t)!==(r=n.getInputValue(e))&&(i==i||r==r)||void 0===t&&n.unchangedInputs.has(e))&&(n.recordInputChange(e,t),n.unchangedInputs.delete(e),n.hasInputChanges=!0,n.componentRef.instance[e]=t,n.scheduleDetectChanges()):n.initialInputValues.set(e,t)})}},{key:"initializeComponent",value:function(e){var t=Ha.create({providers:[],parent:this.injector}),n=function(e,t){var n=e.childNodes,i=t.map(function(){return[]}),r=-1;t.some(function(e,t){return"*"===e&&(r=t,!0)});for(var o=0,a=n.length;o<a;++o){var s=n[o],c=vE(s,t,r);-1!==c&&i[c].push(s)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.viewChangeDetectorRef=this.componentRef.injector.get(Yc),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Nl).attachView(this.componentRef.hostView)}},{key:"initializeInputs",value:function(){var e=this;this.componentFactory.inputs.forEach(function(t){var n=t.propName;e.initialInputValues.has(n)&&e.setInputValue(n,e.initialInputValues.get(n))}),this.initialInputValues.clear()}},{key:"initializeOutputs",value:function(e){var t=this.componentFactory.outputs.map(function(t){var n=t.templateName;return e.instance[t.propName].pipe(J(function(e){return{name:n,value:e}}))});this.eventEmitters.next(t)}},{key:"callNgOnChanges",value:function(e){if(this.implementsOnChanges&&null!==this.inputChanges){var t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}}},{key:"markViewForCheck",value:function(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}},{key:"scheduleDetectChanges",value:function(){var e=this;this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=pE.scheduleBeforeRender(function(){e.scheduledChangeDetectionFn=null,e.detectChanges()}))}},{key:"recordInputChange",value:function(e,t){if(this.implementsOnChanges){null===this.inputChanges&&(this.inputChanges={});var n=this.inputChanges[e];if(n)n.currentValue=t;else{var i=this.unchangedInputs.has(e),r=i?void 0:this.getInputValue(e);this.inputChanges[e]=new Nt(r,t,i)}}}},{key:"detectChanges",value:function(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}},{key:"runInZone",value:function(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}]),e}(),yE=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).ngElementEventsSubscription=null,e}return n}(x(HTMLElement));new Tc("12.1.3");var bE={provide:Ju,useFactory:function(e,t){return function(){if(Ah(t)){var n=Array.from(e.querySelectorAll("[class*=".concat(_E,"]"))),i=/\bflex-layout-.+?\b/g;n.forEach(function(e){e.classList.contains("".concat(_E,"ssr"))&&e.parentNode?e.parentNode.removeChild(e):e.className.replace(i,"")})}}},deps:[Zl,Ku],multi:!0},_E="flex-layout-",kE=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[bE]}),e}(),wE=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;s(this,e),this.matches=t,this.mediaQuery=n,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}return a(e,[{key:"clone",value:function(){return new e(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}]),e}(),SE=function(){var e=function(){function e(){s(this,e),this.stylesheet=new Map}return a(e,[{key:"addStyleToElement",value:function(e,t,n){var i=this.stylesheet.get(e);i?i.set(t,n):this.stylesheet.set(e,new Map([[t,n]]))}},{key:"clearStyles",value:function(){this.stylesheet.clear()}},{key:"getStyleForElement",value:function(e,t){var n=this.stylesheet.get(e),i="";if(n){var r=n.get(t);"number"!=typeof r&&"string"!=typeof r||(i=r+"")}return i}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),CE={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},EE=new _i("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return CE}}),xE=new _i("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),OE=new _i("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}});function TE(e,t){return e=e?e.clone():new wE,t&&(e.mqAlias=t.alias,e.mediaQuery=t.mediaQuery,e.suffix=t.suffix,e.priority=t.priority),e}var IE="inline",PE=["row","column","row-reverse","column-reverse"];function ME(e){var t=function(e){var t=_((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return PE.find(function(e){return e===n})||(n=PE[0]),i===IE&&(i=r!==IE?r:"",r=IE),[n,AE(i),!!r]}(e),n=_(t,3);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":t||null}}(n[0],n[1],n[2])}function AE(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var RE=function(){var e=function(){function e(t,n,i,r){s(this,e),this.elementRef=t,this.styleBuilder=n,this.styler=i,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Y,this.styleCache=new Map}return a(e,[{key:"parentElement",get:function(){return this.elementRef.nativeElement.parentElement}},{key:"nativeElement",get:function(){return this.elementRef.nativeElement}},{key:"activatedValue",get:function(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)},set:function(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}},{key:"ngOnChanges",value:function(e){var t=this;Object.keys(e).forEach(function(n){if(-1!==t.inputs.indexOf(n)){var i=n.split(".").slice(1).join(".");t.setValue(e[n].currentValue,i)}})}},{key:"ngOnDestroy",value:function(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}},{key:"addStyles",value:function(e,t){var n=this.styleBuilder,i=n.shouldCache,r=this.styleCache.get(e);r&&i||(r=n.buildStyles(e,t),i&&this.styleCache.set(e,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(e,r,t)}},{key:"clearStyles",value:function(){var e=this;Object.keys(this.mru).forEach(function(t){e.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}},{key:"triggerUpdate",value:function(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}},{key:"getFlexFlowDirection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.styler.getFlowDirection(e),i=_(n,2),r=i[0],o=i[1];if(!o&&t){var a=ME(r),s=[e];this.styler.applyStyleToElements(a,s)}return r.trim()}return"row"}},{key:"hasWrap",value:function(e){return this.styler.hasWrap(e)}},{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nativeElement;this.styler.applyStyleToElement(n,e,t)}},{key:"setValue",value:function(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}},{key:"updateWithValue",value:function(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}]),e}();return e.\u0275fac=function(e){!function(){throw new Error("invalid")}()},e.\u0275dir=kt({type:e,features:[Lt]}),e}(),NE=[{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}],LE="(orientation: portrait) and (max-width: 599.98px)",DE="(orientation: landscape) and (max-width: 959.98px)",VE="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",jE="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",FE="(orientation: portrait) and (min-width: 840px)",BE="(orientation: landscape) and (min-width: 1280px)",UE={HANDSET:"".concat(LE,", ").concat(DE),TABLET:"".concat(VE," , ").concat(jE),WEB:"".concat(FE,", ").concat(BE," "),HANDSET_PORTRAIT:"".concat(LE),TABLET_PORTRAIT:"".concat(VE," "),WEB_PORTRAIT:"".concat(FE),HANDSET_LANDSCAPE:"".concat(DE),TABLET_LANDSCAPE:"".concat(jE),WEB_LANDSCAPE:"".concat(BE)},zE=[{alias:"handset",priority:2e3,mediaQuery:UE.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:UE.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:UE.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:UE.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:UE.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:UE.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:UE.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:UE.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:UE.WEB_PORTRAIT,overlapping:!0}];function HE(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var WE=/(\.|-|_)/g;function GE(e){var t=e.length>0?e.charAt(0):"",n=e.length>1?e.slice(1):"";return t.toUpperCase()+n}function qE(e){return e.forEach(function(e){e.suffix||(e.suffix=e.alias.replace(WE,"|").split("|").map(GE).join(""),e.overlapping=!!e.overlapping)}),e}var ZE=new _i("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var e=Fi(OE),t=Fi(EE),n=[].concat.apply([],(e||[]).map(function(e){return Array.isArray(e)?e:[e]}));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return e.forEach(function(e){n[e.alias]=e}),t.forEach(function(e){n[e.alias]?HE(n[e.alias],e):n[e.alias]=e}),qE(Object.keys(n).map(function(e){return n[e]}))}((t.disableDefaultBps?[]:NE).concat(t.addOrientationBps?zE:[]),n)}});function YE(e,t){return(t&&t.priority||0)-(e&&e.priority||0)}function QE(e,t){return(e.priority||0)-(t.priority||0)}var KE=function(){var e=function(){function e(t){s(this,e),this.findByMap=new Map,this.items=C(t).sort(QE)}return a(e,[{key:"findByAlias",value:function(e){return e?this.findWithPredicate(e,function(t){return t.alias==e}):null}},{key:"findByQuery",value:function(e){return this.findWithPredicate(e,function(t){return t.mediaQuery==e})}},{key:"overlappings",get:function(){return this.items.filter(function(e){return 1==e.overlapping})}},{key:"aliases",get:function(){return this.items.map(function(e){return e.alias})}},{key:"suffixes",get:function(){return this.items.map(function(e){return e.suffix?e.suffix:""})}},{key:"findWithPredicate",value:function(e,t){var n=this.findByMap.get(e);return n||(n=this.items.find(t)||null,this.findByMap.set(e,n)),n||null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(ZE))},e.\u0275prov=Ve({factory:function(){return new e(ji(ZE))},token:e,providedIn:"root"}),e}(),JE=function(){var e=function(){function e(t,n,i){s(this,e),this._zone=t,this._platformId=n,this._document=i,this.source=new Um(new wE(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}return a(e,[{key:"activations",get:function(){var e=[];return this.registry.forEach(function(t,n){t.matches&&e.push(n)}),e}},{key:"isActive",value:function(e){var t=this.registry.get(e);return t?t.matches:this.registerQuery(e).some(function(e){return e.matches})}},{key:"observe",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&e.length){var i=this._observable$.pipe(ig(function(t){return!n||e.indexOf(t.mediaQuery)>-1})),r=new H(function(n){var i=t.registerQuery(e);if(i.length){var r=i.pop();i.forEach(function(e){n.next(e)}),t.source.next(r)}n.complete()});return me(r,i)}return this._observable$}},{key:"registerQuery",value:function(e){var t=this,n=Array.isArray(e)?e:[e],i=[];return function(e,t){var n=e.filter(function(e){return!XE[e]});if(n.length>0){var i=n.join(", ");try{var r=t.createElement("style");if(r.setAttribute("type","text/css"),!r.styleSheet){var o="\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ".concat(i," {.fx-query-test{ }}\n");r.appendChild(t.createTextNode(o))}t.head.appendChild(r),n.forEach(function(e){return XE[e]=r})}catch(WP){console.error(WP)}}}(n,this._document),n.forEach(function(e){var n=function(n){t._zone.run(function(){return t.source.next(new wE(n.matches,e))})},r=t.registry.get(e);r||((r=t.buildMQL(e)).addListener(n),t.pendingRemoveListenerFns.push(function(){return r.removeListener(n)}),t.registry.set(e,r)),r.matches&&i.push(new wE(!0,e))}),i}},{key:"ngOnDestroy",value:function(){for(var e;e=this.pendingRemoveListenerFns.pop();)e()}},{key:"buildMQL",value:function(e){return function(e,t){return t&&window.matchMedia("all").addListener?window.matchMedia(e):{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){},onchange:null,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){return!1}}}(e,Ah(this._platformId))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(hl),ji(Ku),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(hl),ji(Ku),ji(Zl))},token:e,providedIn:"root"}),e}(),XE={},$E="print",ex={alias:$E,mediaQuery:$E,priority:1e3},tx=function(){var e=function(){function e(t,n,i){s(this,e),this.breakpoints=t,this.layoutConfig=n,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new nx,this.deactivations=[]}return a(e,[{key:"withPrintQuery",value:function(e){return[].concat(C(e),[$E])}},{key:"isPrintEvent",value:function(e){return e.mediaQuery.startsWith($E)}},{key:"printAlias",get:function(){return this.layoutConfig.printWithBreakpoints||[]}},{key:"printBreakPoints",get:function(){var e=this;return this.printAlias.map(function(t){return e.breakpoints.findByAlias(t)}).filter(function(e){return null!==e})}},{key:"getEventBreakpoints",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return(t?[].concat(C(this.printBreakPoints),[t]):this.printBreakPoints).sort(YE)}},{key:"updateEvent",value:function(e){var t=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(t=this.getEventBreakpoints(e)[0],e.mediaQuery=t?t.mediaQuery:""),TE(e,t)}},{key:"registerBeforeAfterPrintHooks",value:function(e){var t=this;if(this._document.defaultView&&!this.registeredBeforeAfterPrintHooks){this.registeredBeforeAfterPrintHooks=!0;var n=function(){t.isPrinting||(t.isPrintingBeforeAfterEvent=!0,t.startPrinting(e,t.getEventBreakpoints(new wE(!0,$E))),e.updateStyles())},i=function(){t.isPrintingBeforeAfterEvent=!1,t.isPrinting&&(t.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",n),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(n),this.afterPrintEventListeners.push(i)}}},{key:"interceptEvents",value:function(e){var t=this;return this.registerBeforeAfterPrintHooks(e),function(n){t.isPrintEvent(n)?n.matches&&!t.isPrinting?(t.startPrinting(e,t.getEventBreakpoints(n)),e.updateStyles()):n.matches||!t.isPrinting||t.isPrintingBeforeAfterEvent||(t.stopPrinting(e),e.updateStyles()):t.collectActivations(n)}}},{key:"blockPropagation",value:function(){var e=this;return function(t){return!(e.isPrinting||e.isPrintEvent(t))}}},{key:"startPrinting",value:function(e,t){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}},{key:"stopPrinting",value:function(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}},{key:"collectActivations",value:function(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{var t=this.breakpoints.findByQuery(e.mediaQuery);t&&(this.deactivations.push(t),this.deactivations.sort(YE))}}},{key:"ngOnDestroy",value:function(){var e=this;this._document.defaultView&&(this.beforePrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("beforeprint",t)}),this.afterPrintEventListeners.forEach(function(t){return e._document.defaultView.removeEventListener("afterprint",t)}))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(KE),ji(EE),ji(Zl))},e.\u0275prov=Ve({factory:function(){return new e(ji(KE),ji(EE),ji(Zl))},token:e,providedIn:"root"}),e}(),nx=function(){function e(){s(this,e),this.printBreakpoints=[]}return a(e,[{key:"addPrintBreakpoints",value:function(e){var t=this;return e.push(ex),e.sort(YE),e.forEach(function(e){return t.addBreakpoint(e)}),this.printBreakpoints}},{key:"addBreakpoint",value:function(e){e&&void 0===this.printBreakpoints.find(function(t){return t.mediaQuery===e.mediaQuery})&&(this.printBreakpoints=function(e){return!!e&&e.mediaQuery.startsWith($E)}(e)?[e].concat(C(this.printBreakpoints)):[].concat(C(this.printBreakpoints),[e]))}},{key:"clear",value:function(){this.printBreakpoints=[]}}]),e}();function ix(e){for(var t in e){var n=e[t]||"";switch(t){case"display":e.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":e["-webkit-"+t]=n;break;case"flex-direction":e["-webkit-flex-direction"]=n=n||"row",e["flex-direction"]=n;break;case"order":e.order=e["-webkit-"+t]=isNaN(+n)?"0":n}}return e}var rx=function(){var e=function(){function e(t,n,i,r){s(this,e),this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=i,this.layoutConfig=r}return a(e,[{key:"applyStyleToElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i={};"string"==typeof t&&(i[t]=n,t=i),i=this.layoutConfig.disableVendorPrefixes?t:ix(t),this._applyMultiValueStyleToElement(i,e)}},{key:"applyStyleToElements",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.layoutConfig.disableVendorPrefixes?e:ix(e);n.forEach(function(e){t._applyMultiValueStyleToElement(i,e)})}},{key:"getFlowDirection",value:function(e){var t="flex-direction",n=this.lookupStyle(e,t);return[n||"row",this.lookupInlineStyle(e,t)||Rh(this._platformId)&&this._serverModuleLoaded?n:""]}},{key:"hasWrap",value:function(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}},{key:"lookupAttributeValue",value:function(e,t){return e.getAttribute(t)||""}},{key:"lookupInlineStyle",value:function(e,t){return Ah(this._platformId)?e.style.getPropertyValue(t):this._getServerStyle(e,t)}},{key:"lookupStyle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i="";if(e){var r=i=this.lookupInlineStyle(e,t);r||(Ah(this._platformId)?n||(i=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(e,t)))}return i?i.trim():""}},{key:"_applyMultiValueStyleToElement",value:function(e,t){var n=this;Object.keys(e).sort().forEach(function(i){var r=e[i],o=Array.isArray(r)?r:[r];o.sort();var a,s=g(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;c=c?c+"":"",Ah(n._platformId)||!n._serverModuleLoaded?Ah(n._platformId)?t.style.setProperty(i,c):n._setServerStyle(t,i,c):n._serverStylesheet.addStyleToElement(t,i,c)}}catch(u){s.e(u)}finally{s.f()}})}},{key:"_setServerStyle",value:function(e,t,n){t=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(e);i[t]=n||"",this._writeStyleAttribute(e,i)}},{key:"_getServerStyle",value:function(e,t){return this._readStyleAttribute(e)[t]||""}},{key:"_readStyleAttribute",value:function(e){var t={},n=e.getAttribute("style");if(n)for(var i=n.split(/;+/g),r=0;r<i.length;r++){var o=i[r].trim();if(o.length>0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: ".concat(o));t[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return t}},{key:"_writeStyleAttribute",value:function(e,t){var n="";for(var i in t)t[i]&&(n+=i+":"+t[i]+";");e.setAttribute("style",n)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(SE),ji(xE),ji(Ku),ji(EE))},e.\u0275prov=Ve({factory:function(){return new e(ji(SE),ji(xE),ji(Ku),ji(EE))},token:e,providedIn:"root"}),e}(),ox=function(){function e(){s(this,e),this.shouldCache=!0}return a(e,[{key:"sideEffect",value:function(e,t,n){}}]),e}();function ax(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"1",i=[t,n,e],r=e.indexOf("calc");if(r>0){i[2]=sx(e.substring(r).trim());var o=e.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=sx(e.trim());else{var a=e.split(" ");i=3===a.length?a:[t,n,e]}return i}function sx(e){return e.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var cx=function(){var e=function(){function e(t,n,i){s(this,e),this.matchMedia=t,this.breakpoints=n,this.hook=i,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 Y,this.observeActivations()}return a(e,[{key:"activatedAlias",get:function(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}},{key:"onMediaChange",value:function(e){var t=this.findByQuery(e.mediaQuery);t&&((e=TE(e,t)).matches&&-1===this.activatedBreakpoints.indexOf(t)?(this.activatedBreakpoints.push(t),this.activatedBreakpoints.sort(YE),this.updateStyles()):e.matches||-1===this.activatedBreakpoints.indexOf(t)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(t),1),this.activatedBreakpoints.sort(YE),this.updateStyles()))}},{key:"init",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];ux(this.updateMap,e,t,n),ux(this.clearMap,e,t,i),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,r)}},{key:"getValue",value:function(e,t,n){var i=this.elementMap.get(e);if(i){var r=void 0!==n?i.get(n):this.getActivatedValues(i,t);if(r)return r.get(t)}}},{key:"hasValue",value:function(e,t){var n=this.elementMap.get(e);if(n){var i=this.getActivatedValues(n,t);if(i)return void 0!==i.get(t)||!1}return!1}},{key:"setValue",value:function(e,t,n,i){var r=this.elementMap.get(e);if(r){var o=(r.get(i)||new Map).set(t,n);r.set(i,o),this.elementMap.set(e,r)}else r=(new Map).set(i,(new Map).set(t,n)),this.elementMap.set(e,r);var a=this.getValue(e,t);void 0!==a&&this.updateElement(e,t,a)}},{key:"trackValue",value:function(e,t){return this.subject.asObservable().pipe(ig(function(n){return n.element===e&&n.key===t}))}},{key:"updateStyles",value:function(){var e=this;this.elementMap.forEach(function(t,n){var i=new Set(e.elementKeyMap.get(n)),r=e.getActivatedValues(t);r&&r.forEach(function(t,r){e.updateElement(n,r,t),i.delete(r)}),i.forEach(function(i){if(r=e.getActivatedValues(t,i)){var o=r.get(i);e.updateElement(n,i,o)}else e.clearElement(n,i)})})}},{key:"clearElement",value:function(e,t){var n=this.clearMap.get(e);if(n){var i=n.get(t);i&&(i(),this.subject.next({element:e,key:t,value:""}))}}},{key:"updateElement",value:function(e,t,n){var i=this.updateMap.get(e);if(i){var r=i.get(t);r&&(r(n),this.subject.next({element:e,key:t,value:n}))}}},{key:"releaseElement",value:function(e){var t=this.watcherMap.get(e);t&&(t.forEach(function(e){return e.unsubscribe()}),this.watcherMap.delete(e));var n=this.elementMap.get(e);n&&(n.forEach(function(e,t){return n.delete(t)}),this.elementMap.delete(e))}},{key:"triggerUpdate",value:function(e,t){var n=this,i=this.elementMap.get(e);if(i){var r=this.getActivatedValues(i,t);r&&(t?this.updateElement(e,t,r.get(t)):r.forEach(function(t,i){return n.updateElement(e,i,t)}))}}},{key:"buildElementKeyMap",value:function(e,t){var n=this.elementKeyMap.get(e);n||(n=new Set,this.elementKeyMap.set(e,n)),n.add(t)}},{key:"watchExtraTriggers",value:function(e,t,n){var i=this;if(n&&n.length){var r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(t)){var o=me.apply(void 0,C(n)).subscribe(function(){var n=i.getValue(e,t);i.updateElement(e,t,n)});r.set(t,o)}}}},{key:"findByQuery",value:function(e){return this.breakpoints.findByQuery(e)}},{key:"getActivatedValues",value:function(e,t){for(var n=0;n<this.activatedBreakpoints.length;n++){var i=e.get(this.activatedBreakpoints[n].alias);if(i&&(void 0===t||i.has(t)&&null!=i.get(t)))return i}var r=e.get("");return void 0===t||r&&r.has(t)?r:void 0}},{key:"observeActivations",value:function(){var e=this.breakpoints.items.map(function(e){return e.mediaQuery});this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(qm(this.hook.interceptEvents(this)),ig(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(JE),ji(KE),ji(tx))},e.\u0275prov=Ve({factory:function(){return new e(ji(JE),ji(KE),ji(tx))},token:e,providedIn:"root"}),e}();function ux(e,t,n,i){if(void 0!==i){var r=e.get(t);r||(r=new Map,e.set(t,r)),r.set(n,i)}}new Map;var lx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u){var l;return s(this,n),(l=t.call(this,e,null,i,r)).ngClassInstance=u,l.DIRECTIVE_KEY="ngClass",l.ngClassInstance||(l.ngClassInstance=new vh(o,a,e,c)),l.init(),l.setValue("",""),l}return a(n,[{key:"klass",set:function(e){this.ngClassInstance.klass=e,this.setValue(e,"")}},{key:"updateWithValue",value:function(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}},{key:"ngDoCheck",value:function(){this.ngClassInstance.ngDoCheck()}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(cx),ss(Uc),ss(Hc),ss(Ec),ss(vh,10))},e.\u0275dir=kt({type:e,inputs:{klass:["class","klass"]},features:[Ga]}),e}(),hx=["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"],dx=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=hx,e}return n}(lx);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[Ga]}),e}(),fx=(new WeakMap,function e(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s(this,e),this.key=t,this.value=n,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=this.value.replace(/;/,"")});function px(e){var t=typeof e;return"object"===t?e.constructor===Array?"array":e.constructor===Set?"set":"object":t}function vx(e){var t=S(e.split(":")),n=t[0],i=t.slice(1);return new fx(n,i.join(":"))}function mx(e,t){return t.key&&(e[t.key]=t.value),e}var gx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c,u,l,h){var d;s(this,n),(d=t.call(this,e,null,i,r)).sanitizer=o,d.ngStyleInstance=u,d.DIRECTIVE_KEY="ngStyle",d.ngStyleInstance||(d.ngStyleInstance=new xh(e,a,c)),d.init();var f=d.nativeElement.getAttribute("style")||"";return d.fallbackStyles=d.buildStyleMap(f),d.isServer=l&&Rh(h),d}return a(n,[{key:"updateWithValue",value:function(e){var t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}},{key:"clearStyles",value:function(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}},{key:"buildStyleMap",value:function(e){var t,n,i,r=this,o=function(e){return r.sanitizer.sanitize(Tr.STYLE,e)||""};if(e)switch(px(e)){case"string":return _x(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:";";return String(e).trim().split(t).map(function(e){return e.trim()}).filter(function(e){return""!==e})}(e),o);case"array":return _x(e,o);case"set":default:return n=o,i=[],"set"===px(t=e)?t.forEach(function(e){return i.push(e)}):Object.keys(t).forEach(function(e){i.push("".concat(e,":").concat(t[e]))}),function(e,t){return e.map(vx).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(mx,{})}(i,n)}return{}}},{key:"ngDoCheck",value:function(){this.ngStyleInstance.ngDoCheck()}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(cx),ss(pd),ss(Hc),ss(Ec),ss(xh,10),ss(xE),ss(Ku))},e.\u0275dir=kt({type:e,features:[Ga]}),e}(),yx=["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"],bx=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=yx,e}return n}(gx);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,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:[Ga]}),e}();function _x(e,t){return e.map(vx).filter(function(e){return!!e}).map(function(e){return t&&(e.value=t(e.value)),e}).reduce(mx,{})}var kx=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE]]}),e}(),wx="inline",Sx=["row","column","row-reverse","column-reverse"];function Cx(e){var t=_((e=e?e.toLowerCase():"").split(" "),3),n=t[0],i=t[1],r=t[2];return Sx.find(function(e){return e===n})||(n=Sx[0]),i===wx&&(i=r!==wx?r:"",r=wx),[n,xx(i),!!r]}function Ex(e){return _(Cx(e),1)[0].indexOf("row")>-1}function xx(e){if(e)switch(e.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":e="wrap-reverse";break;case"no":case"none":case"nowrap":e="nowrap";break;default:e="wrap"}return e}var Ox=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"buildStyles",value:function(e){return function(e){return{display:arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e,"flex-wrap":(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||null}}((t=_(Cx(e),3))[0],t[1],t[2]);var t}}]),n}(ox);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Tx=["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"],Ix=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout",a.styleCache=Mx,a.init(),a}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(Ox),ss(cx))},e.\u0275dir=kt({type:e,features:[Ga]}),e}(),Px=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=Tx,e}return n}(Ix);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Ga]}),e}(),Mx=new Map,Ax={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Rx=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this))._styler=e,i}return a(n,[{key:"buildStyles",value:function(e,t){return e.endsWith(Ux)?(n=e=e.slice(0,e.indexOf(Ux)),i=t.directionality,o=(r=_(n.split(" "),2))[0],s="0px",c=(a=function(e){return"-".concat(e)})(r[1]||o),u="0px","rtl"===i?u=a(o):s=a(o),{margin:"0px ".concat(s," ").concat(c," ").concat(u)}):{};var n,i,r,o,a,s,c,u}},{key:"sideEffect",value:function(e,t,n){var i,r,o,a,s,c,u,l=n.items;if(e.endsWith(Ux)){var h=(i=e=e.slice(0,e.indexOf(Ux)),r=n.directionality,a=(o=_(i.split(" "),2))[0],s="0px",c=o[1]||a,u="0px","rtl"===r?u=a:s=a,{padding:"0px ".concat(s," ").concat(c," ").concat(u)});this._styler.applyStyleToElements(h,n.items)}else{var d=l.pop(),f=function(e,t){var n=zx(t.directionality,t.layout),i=Object.assign({},Ax);return i[n]=e,i}(e,n);this._styler.applyStyleToElements(f,l),this._styler.applyStyleToElements(Ax,[d])}}}]),n}(ox);return e.\u0275fac=function(t){return new(t||e)(ji(rx))},e.\u0275prov=Ve({factory:function(){return new e(ji(rx))},token:e,providedIn:"root"}),e}(),Nx=["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"],Lx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a,c){var u;s(this,n),(u=t.call(this,e,a,o,c)).zone=i,u.directionality=r,u.styleUtils=o,u.layout="row",u.DIRECTIVE_KEY="layout-gap",u.observerSubject=new Y;var l=[u.directionality.change,u.observerSubject.asObservable()];return u.init(l),u.marshal.trackValue(u.nativeElement,"layout").pipe(yg(u.destroySubject)).subscribe(u.onLayoutChange.bind(d(u))),u}return a(n,[{key:"childrenNodes",get:function(){for(var e=this.nativeElement.children,t=[],n=e.length;n--;)t[n]=e[n];return t}},{key:"ngAfterContentInit",value:function(){this.buildChildObservable(),this.triggerUpdate()}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this.observer&&this.observer.disconnect()}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],Sx.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}},{key:"updateWithValue",value:function(e){var t=this,n=this.childrenNodes.filter(function(e){return 1===e.nodeType&&t.willDisplay(e)}).sort(function(e,n){var i=+t.styler.lookupStyle(e,"order"),r=+t.styler.lookupStyle(n,"order");return isNaN(i)||isNaN(r)||i===r?0:i>r?1:-1});if(n.length>0){var i=this.directionality.value,r=this.layout;"row"===r&&"rtl"===i?this.styleCache=Vx:"row"===r&&"rtl"!==i?this.styleCache=Fx:"column"===r&&"rtl"===i?this.styleCache=jx:"column"===r&&"rtl"!==i&&(this.styleCache=Bx),this.addStyles(e,{directionality:i,items:n,layout:r})}}},{key:"clearStyles",value:function(){var e=Object.keys(this.mru).length>0,t=e?"padding":zx(this.directionality.value,this.layout);e&&r(i(n.prototype),"clearStyles",this).call(this),this.styleUtils.applyStyleToElements(k({},t,""),this.childrenNodes)}},{key:"willDisplay",value:function(e){var t=this.marshal.getValue(e,"show-hide");return!0===t||void 0===t&&"none"!==this.styleUtils.lookupStyle(e,"display")}},{key:"buildChildObservable",value:function(){var e=this;this.zone.runOutsideAngular(function(){"undefined"!=typeof MutationObserver&&(e.observer=new MutationObserver(function(t){t.some(function(e){return e.addedNodes&&e.addedNodes.length>0||e.removedNodes&&e.removedNodes.length>0})&&e.observerSubject.next()}),e.observer.observe(e.nativeElement,{childList:!0}))})}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(hl),ss(Iy),ss(rx),ss(Rx),ss(cx))},e.\u0275dir=kt({type:e,features:[Ga]}),e}(),Dx=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=Nx,e}return n}(Lx);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[Ga]}),e}(),Vx=new Map,jx=new Map,Fx=new Map,Bx=new Map,Ux=" grid";function zx(e,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===e?"margin-left":"margin-right";case"row-reverse":return"rtl"===e?"margin-right":"margin-left";default:return"rtl"===e?"margin-left":"margin-right"}}function Hx(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];if(null!=a)for(var s in a)a.hasOwnProperty(s)&&(e[s]=a[s])}return e}var Wx=function(){var e=function(e){u(n,e);var t=p(n);function n(e){var i;return s(this,n),(i=t.call(this)).layoutConfig=e,i}return a(n,[{key:"buildStyles",value:function(e,t){var n=S(e.split(" ")),i=n[0],r=n[1],o=n.slice(2).join(" "),a=t.direction.indexOf("column")>-1?"column":"row",s=Ex(a)?"max-width":"max-height",c=Ex(a)?"min-width":"min-height",u=String(o).indexOf("calc")>-1,l=u||"auto"===o,h=String(o).indexOf("%")>-1&&!u,d=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1,f=u||d;r="0"==r?0:r;var p=!(i="0"==i?0:i)&&!r,v={},m={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":o="row"===a?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,o="auto";break;case"grow":o="100%";break;case"noshrink":r=0,o="auto";break;case"auto":break;case"none":i=0,r=0,o="auto";break;default:f||h||isNaN(o)||(o+="%"),"0%"===o&&(f=!0),"0px"===o&&(o="0%"),v=Hx(m,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":f?o:"100%"}:{flex:"".concat(i," ").concat(r," ").concat(f?o:"100%")})}return v.flex||v["flex-grow"]||(v=Hx(m,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(v[c]=p||f&&i?o:null,v[s]=p||!l&&r?o:null),v[c]||v[s]?t.hasWrap&&(v[u?"flex-basis":"flex"]=v[s]?u?v[s]:"".concat(i," ").concat(r," ").concat(v[s]):u?v[c]:"".concat(i," ").concat(r," ").concat(v[c])):v=Hx(m,u?{"flex-grow":i,"flex-shrink":r,"flex-basis":o}:{flex:"".concat(i," ").concat(r," ").concat(o)}),Hx(v,{"box-sizing":"border-box"})}}]),n}(ox);return e.\u0275fac=function(t){return new(t||e)(ji(EE))},e.\u0275prov=Ve({factory:function(){return new e(ji(EE))},token:e,providedIn:"root"}),e}(),Gx=["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"],qx=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this,e,o,i,a)).layoutConfig=r,c.marshal=a,c.DIRECTIVE_KEY="flex",c.direction=void 0,c.wrap=void 0,c.flexGrow="1",c.flexShrink="1",c.init(),c}return a(n,[{key:"shrink",get:function(){return this.flexShrink},set:function(e){this.flexShrink=e||"1",this.triggerReflow()}},{key:"grow",get:function(){return this.flexGrow},set:function(e){this.flexGrow=e||"1",this.triggerReflow()}},{key:"ngOnInit",value:function(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(yg(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(yg(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}},{key:"onLayoutChange",value:function(e){var t=e.value.split(" ");this.direction=t[0],this.wrap=void 0!==t[1]&&"wrap"===t[1],this.triggerUpdate()}},{key:"updateWithValue",value:function(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));var t=this.direction,n=t.startsWith("row"),i=this.wrap;n&&i?this.styleCache=Kx:n&&!i?this.styleCache=Yx:!n&&i?this.styleCache=Jx:n||i||(this.styleCache=Qx);var r=ax(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:t,hasWrap:i})}},{key:"triggerReflow",value:function(){var e=this.activatedValue;if(void 0!==e){var t=ax(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,t.join(" "))}}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(EE),ss(Wx),ss(cx))},e.\u0275dir=kt({type:e,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[Ga]}),e}(),Zx=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=Gx,e}return n}(qx);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[Ga]}),e}(),Yx=new Map,Qx=new Map,Kx=new Map,Jx=new Map,Xx=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"buildStyles",value:function(e){return{order:e&&parseInt(e,10)||""}}}]),n}(ox);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),$x=["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"],eO=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="flex-order",a.styleCache=tO,a.init(),a}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(Xx),ss(cx))},e.\u0275dir=kt({type:e,features:[Ga]}),e}(),tO=new Map,nO=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=$x,e}return n}(eO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,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:[Ga]}),e}(),iO=(new Map,new Map,new Map,new Map,new Map,{margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"}),rO=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"buildStyles",value:function(e){return iO}}]),n}(ox);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),oO=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).styleCache=aO,a.addStyles(""),a}return n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(rO),ss(cx))},e.\u0275dir=kt({type:e,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[Ga]}),e}(),aO=new Map,sO=function(){var e=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return a(n,[{key:"buildStyles",value:function(e,t){var n={},i=_(e.split(" "),2),r=i[1];switch(i[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return Hx(n,{display:t.inline?"inline-flex":"flex","flex-direction":t.layout,"box-sizing":"border-box","max-width":"stretch"===r?Ex(t.layout)?null:"100%":null,"max-height":"stretch"===r&&Ex(t.layout)?"100%":null})}}]),n}(ox);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275prov=Ve({factory:function(){return new e},token:e,providedIn:"root"}),e}(),cO=["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"],uO=function(){var e=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,r,i,o)).DIRECTIVE_KEY="layout-align",a.layout="row",a.inline=!1,a.init(),a.marshal.trackValue(a.nativeElement,"layout").pipe(yg(a.destroySubject)).subscribe(a.onLayoutChange.bind(d(a))),a}return a(n,[{key:"updateWithValue",value:function(e){var t=this.layout||"row",n=this.inline;"row"===t&&n?this.styleCache=vO:"row"!==t||n?"row-reverse"===t&&n?this.styleCache=gO:"row-reverse"!==t||n?"column"===t&&n?this.styleCache=mO:"column"!==t||n?"column-reverse"===t&&n?this.styleCache=yO:"column-reverse"!==t||n||(this.styleCache=pO):this.styleCache=dO:this.styleCache=fO:this.styleCache=hO,this.addStyles(e,{layout:t,inline:n})}},{key:"onLayoutChange",value:function(e){var t=this,n=e.value.split(" ");this.layout=n[0],this.inline=e.value.includes("inline"),Sx.find(function(e){return e===t.layout})||(this.layout="row"),this.triggerUpdate()}}]),n}(RE);return e.\u0275fac=function(t){return new(t||e)(ss(wc),ss(rx),ss(sO),ss(cx))},e.\u0275dir=kt({type:e,features:[Ga]}),e}(),lO=function(){var e=function(e){u(n,e);var t=p(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).inputs=cO,e}return n}(uO);return e.\u0275fac=function(){var t;return function(n){return(t||(t=vi(e)))(n||e)}}(),e.\u0275dir=kt({type:e,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[Ga]}),e}(),hO=new Map,dO=new Map,fO=new Map,pO=new Map,vO=new Map,mO=new Map,gO=new Map,yO=new Map,bO=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE,Py]]}),e}();new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;var _O=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[kE]]}),e}(),kO=(new Tc("12.0.0-beta.34"),function(){var e=function(){function e(t,n){s(this,e),Rh(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return a(e,null,[{key:"withConfig",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{ngModule:e,providers:t.serverLoaded?[{provide:EE,useValue:Object.assign(Object.assign({},CE),t)},{provide:OE,useValue:n,multi:!0},{provide:xE,useValue:!0}]:[{provide:EE,useValue:Object.assign(Object.assign({},CE),t)},{provide:OE,useValue:n,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(xE),ji(Ku))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[bO,kx,_O],bO,kx,_O]}),e}()),wO=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}();function SO(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new CO(e,t,n))}}var CO=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new EO(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),EO=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return a(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(j);function xO(e){return function(t){return 0===e?cg():t.lift(new OO(e))}}var OO=function(){function e(t){if(s(this,e),this.total=t,this.total<0)throw new ag}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new TO(e,this.total))}}]),e}(),TO=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return a(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=t++%n;e.next(i[o])}e.complete()}}]),n}(j);function IO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:AO;return function(t){return t.lift(new PO(e))}}var PO=function(){function e(t){s(this,e),this.errorFactory=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new MO(e,this.errorFactory))}}]),e}(),MO=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return a(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(WP){e=WP}this.destination.error(e)}}]),n}(j);function AO(){return new wO}function RO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new NO(e))}}var NO=function(){function e(t){s(this,e),this.defaultValue=t}return a(e,[{key:"call",value:function(e,t){return t.subscribe(new LO(e,this.defaultValue))}}]),e}(),LO=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return a(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(j);function DO(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?ig(function(t,n){return e(t,n,i)}):U,ug(1),n?RO(t):IO(function(){return new wO}))}}var VO=function e(t,n){s(this,e),this.id=t,this.url=n},jO=function(e){u(n,e);var t=p(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(r=t.call(this,e,i)).navigationTrigger=o,r.restoredState=a,r}return a(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(VO),FO=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,o}return a(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(VO),BO=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e,i)).reason=r,o}return a(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(VO),UO=function(e){u(n,e);var t=p(n);function n(e,i,r){var o;return s(this,n),(o=t.call(this,e,i)).error=r,o}return a(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(VO),zO=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(VO),HO=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(VO),WO=function(e){u(n,e);var t=p(n);function n(e,i,r,o,a){var c;return s(this,n),(c=t.call(this,e,i)).urlAfterRedirects=r,c.state=o,c.shouldActivate=a,c}return a(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(VO),GO=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(VO),qO=function(e){u(n,e);var t=p(n);function n(e,i,r,o){var a;return s(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(VO),ZO=function(){function e(t){s(this,e),this.route=t}return a(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),YO=function(){function e(t){s(this,e),this.route=t}return a(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),QO=function(){function e(t){s(this,e),this.snapshot=t}return a(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),KO=function(){function e(t){s(this,e),this.snapshot=t}return a(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),JO=function(){function e(t){s(this,e),this.snapshot=t}return a(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),XO=function(){function e(t){s(this,e),this.snapshot=t}return a(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),$O=function(){function e(t,n,i){s(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return a(e,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),e}(),eT="primary",tT=function(){function e(t){s(this,e),this.params=t||{}}return a(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function nT(e){return new tT(e)}function iT(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function rT(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},o=0;o<i.length;o++){var a=i[o],s=e[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function oT(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var o=0;o<i.length;o++)if(!aT(e[n=i[o]],t[n]))return!1;return!0}function aT(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=C(e).sort(),i=C(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function sT(e){return Array.prototype.concat.apply([],e)}function cT(e){return e.length>0?e[e.length-1]:null}function uT(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function lT(e){return ys(e)?e:ms(e)?se(Promise.resolve(e)):zm(e)}var hT={exact:function e(t,n,i){if(!_T(t.segments,n.segments))return!1;if(!mT(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:pT},dT={exact:function(e,t){return oT(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return aT(e[n],t[n])})},ignored:function(){return!0}};function fT(e,t,n){return hT[n.paths](e.root,t.root,n.matrixParams)&&dT[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function pT(e,t,n){return vT(e,t,t.segments,n)}function vT(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!_T(r,n)&&!t.hasChildren()&&!!mT(r,n,i)}if(e.segments.length===n.length){if(!_T(e.segments,n))return!1;if(!mT(e.segments,n,i))return!1;for(var o in t.children){if(!e.children[o])return!1;if(!pT(e.children[o],t.children[o],i))return!1}return!0}var a=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!_T(e.segments,a)&&!!mT(e.segments,a,i)&&!!e.children.primary&&vT(e.children.primary,t,s,i)}function mT(e,t,n){return t.every(function(t,i){return dT[n](e[i].parameters,t.parameters)})}var gT=function(){function e(t,n,i){s(this,e),this.root=t,this.queryParams=n,this.fragment=i}return a(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return ST.serialize(this)}}]),e}(),yT=function(){function e(t,n){var i=this;s(this,e),this.segments=t,this.children=n,this.parent=null,uT(n,function(e,t){return e.parent=i})}return a(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return CT(this)}}]),e}(),bT=function(){function e(t,n){s(this,e),this.path=t,this.parameters=n}return a(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=nT(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return MT(this)}}]),e}();function _T(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var kT=function e(){s(this,e)},wT=function(){function e(){s(this,e)}return a(e,[{key:"parse",value:function(e){var t=new DT(e);return new gT(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i="/".concat(ET(e.root,!0)),r=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(OT(e),"=").concat(OT(t))}).join("&"):"".concat(OT(e),"=").concat(OT(n))}).filter(function(e){return!!e})).length?"?".concat(n.join("&")):""),o="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),e}(),ST=new wT;function CT(e){return e.segments.map(function(e){return MT(e)}).join("/")}function ET(e,t){if(!e.hasChildren())return CT(e);if(t){var n=e.children.primary?ET(e.children.primary,!1):"",i=[];return uT(e.children,function(e,t){t!==eT&&i.push("".concat(t,":").concat(ET(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return uT(e.children,function(e,i){i===eT&&(n=n.concat(t(e,i)))}),uT(e.children,function(e,i){i!==eT&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return n===eT?[ET(e.children.primary,!1)]:["".concat(n,":").concat(ET(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(CT(e),"/").concat(r[0]):"".concat(CT(e),"/(").concat(r.join("//"),")")}function xT(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function OT(e){return xT(e).replace(/%3B/gi,";")}function TT(e){return xT(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function IT(e){return decodeURIComponent(e)}function PT(e){return IT(e.replace(/\+/g,"%20"))}function MT(e){return"".concat(TT(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(TT(e),"=").concat(TT(t[e]))}).join("")));var t}var AT=/^[^\/()?;=#]+/;function RT(e){var t=e.match(AT);return t?t[0]:""}var NT=/^[^=?&#]+/,LT=/^[^?&#]+/,DT=function(){function e(t){s(this,e),this.url=t,this.remaining=t}return a(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yT([],{}):new yT([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new yT(e,t)),n}},{key:"parseSegment",value:function(){var e=RT(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new bT(IT(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=RT(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=RT(this.remaining);i&&this.capture(n=i)}e[IT(t)]=IT(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(NT);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(LT);return t?t[0]:""}(this.remaining);i&&this.capture(n=i)}var r=PT(t),o=PT(n);if(e.hasOwnProperty(r)){var a=e[r];Array.isArray(a)||(e[r]=a=[a]),a.push(o)}else e[r]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=RT(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=eT);var o=this.parseChildren();t[r]=1===Object.keys(o).length?o.primary:new yT([],o),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),VT=function(){function e(t){s(this,e),this._root=t}return a(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=jT(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=jT(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=FT(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return FT(e,this._root).map(function(e){return e.value})}}]),e}();function jT(e,t){if(e===t.value)return t;var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=jT(e,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function FT(e,t){if(e===t.value)return[t];var n,i=g(t.children);try{for(i.s();!(n=i.n()).done;){var r=FT(e,n.value);if(r.length)return r.unshift(t),r}}catch(o){i.e(o)}finally{i.f()}return[]}var BT=function(){function e(t,n){s(this,e),this.value=t,this.children=n}return a(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function UT(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var zT=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,e)).snapshot=i,QT(d(r),e),r}return a(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(VT);function HT(e,t){var n=function(e,t){var n=new ZT([],{},{},"",{},eT,t,null,e.root,-1,{});return new YT("",new BT(n,[]))}(e,t),i=new Um([new bT("",{})]),r=new Um({}),o=new Um({}),a=new Um({}),s=new Um(""),c=new WT(i,r,a,s,o,eT,t,n.root);return c.snapshot=n.root,new zT(new BT(c,[]),n)}var WT=function(){function e(t,n,i,r,o,a,c,u){s(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this._futureSnapshot=u}return a(e,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(J(function(e){return nT(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(e){return nT(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function GT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return qT(n.slice(i))}function qT(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var ZT=function(){function e(t,n,i,r,o,a,c,u,l,h,d){s(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=c,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=h,this._resolve=d}return a(e,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=nT(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=nT(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var e=this.url.map(function(e){return e.toString()}).join("/"),t=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(t,"')")}}]),e}(),YT=function(e){u(n,e);var t=p(n);function n(e,i){var r;return s(this,n),(r=t.call(this,i)).url=e,QT(d(r),i),r}return a(n,[{key:"toString",value:function(){return KT(this._root)}}]),n}(VT);function QT(e,t){t.value._routerState=e,t.children.forEach(function(t){return QT(e,t)})}function KT(e){var t=e.children.length>0?" { ".concat(e.children.map(KT).join(", ")," } "):"";return"".concat(e.value).concat(t)}function JT(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,oT(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),oT(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!oT(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),oT(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function XT(e,t){var n,i;return oT(e.params,t.params)&&_T(n=e.url,i=t.url)&&n.every(function(e,t){return oT(e.parameters,i[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||XT(e.parent,t.parent))}function $T(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=g(n.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(e.shouldReuseRoute(t.value,o.value.snapshot))return $T(e,t,o)}}catch(a){r.e(a)}finally{r.f()}return $T(e,t)})}(e,t,n);return new BT(i,r)}if(e.shouldAttach(t.value)){var o=e.retrieve(t.value);if(null!==o){var a=o.route;return eI(t,a),a}}var s,c=new WT(new Um((s=t.value).url),new Um(s.params),new Um(s.queryParams),new Um(s.fragment),new Um(s.data),s.outlet,s.component,s),u=t.children.map(function(t){return $T(e,t)});return new BT(c,u)}function eI(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)eI(e.children[n],t.children[n])}function tI(e,t,n,i,r){if(0===n.length)return rI(t.root,t.root,t,i,r);var o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new aI(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var o={};return uT(i.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),[].concat(C(e),[{outlets:o}])}if(i.segmentPath)return[].concat(C(e),[i.segmentPath])}return"string"!=typeof i?[].concat(C(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(C(e),[i])},[]);return new aI(n,t,i)}(n);if(o.toRoot())return rI(t.root,new yT([],{}),t,i,r);var a=function(e,t,n){if(e.isAbsolute)return new sI(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new sI(i,i===t.root,0)}var r=nI(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,o=n;o>r;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new sI(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(o,t,e),s=a.processChildren?uI(a.segmentGroup,a.index,o.commands):cI(a.segmentGroup,a.index,o.commands);return rI(a.segmentGroup,s,t,i,r)}function nI(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function iI(e){return"object"==typeof e&&null!=e&&e.outlets}function rI(e,t,n,i,r){var o={};return i&&uT(i,function(e,t){o[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new gT(n.root===e?t:oI(n.root,e,t),o,r)}function oI(e,t,n){var i={};return uT(e.children,function(e,r){i[r]=e===t?n:oI(e,t,n)}),new yT(e.segments,i)}var aI=function(){function e(t,n,i){if(s(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&nI(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(iI);if(r&&r!==cT(i))throw new Error("{outlets:{}} has to be the last command")}return a(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),sI=function e(t,n,i){s(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function cI(e,t,n){if(e||(e=new yT([],{})),0===e.segments.length&&e.hasChildren())return uI(e,t,n);var i=function(e,t,n){for(var i=0,r=t,o={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return o;var a=e.segments[r],s=n[i];if(iI(s))break;var c="".concat(s),u=i<n.length-1?n[i+1]:null;if(r>0&&void 0===c)break;if(c&&u&&"object"==typeof u&&void 0===u.outlets){if(!fI(c,u,a))return o;i+=2}else{if(!fI(c,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var o=new yT(e.segments.slice(0,i.pathIndex),{});return o.children.primary=new yT(e.segments.slice(i.pathIndex),e.children),uI(o,0,r)}return i.match&&0===r.length?new yT(e.segments,{}):i.match&&!e.hasChildren()?lI(e,t,n):i.match?uI(e,0,r):lI(e,t,n)}function uI(e,t,n){if(0===n.length)return new yT(e.segments,{});var i=function(e){return iI(e[0])?e[0].outlets:k({},eT,e)}(n),r={};return uT(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=cI(e.children[i],t,n))}),uT(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new yT(e.segments,r)}function lI(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var o=n[r];if(iI(o)){var a=hI(o.outlets);return new yT(i,a)}if(0===r&&nI(n[0]))i.push(new bT(e.segments[t].path,dI(n[0]))),r++;else{var s=iI(o)?o.outlets.primary:"".concat(o),c=r<n.length-1?n[r+1]:null;s&&c&&nI(c)?(i.push(new bT(s,dI(c))),r+=2):(i.push(new bT(s,{})),r++)}}return new yT(i,{})}function hI(e){var t={};return uT(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=lI(new yT([],{}),0,e))}),t}function dI(e){var t={};return uT(e,function(e,n){return t[n]="".concat(e)}),t}function fI(e,t,n){return e==n.path&&oT(t,n.parameters)}var pI=function(){function e(t,n,i,r){s(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return a(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),JT(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=UT(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),uT(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=UT(e),o=0,a=Object.keys(r);o<a.length;o++)this.deactivateRouteAndItsChildren(r[a[o]],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=UT(t);e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new XO(e.value.snapshot))}),e.children.length&&this.forwardEvent(new KO(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(JT(i),i===r)if(i.component){var o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),vI(s.route)}else{var c=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),u=c?c.module.componentFactoryResolver:null;a.attachRef=null,a.route=i,a.resolver=u,a.outlet&&a.outlet.activateWith(i,u),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function vI(e){JT(e.value),e.children.forEach(vI)}var mI=function e(t,n){s(this,e),this.routes=t,this.module=n};function gI(e){return"function"==typeof e}function yI(e){return e instanceof gT}var bI=Symbol("INITIAL_VALUE");function _I(){return qb(function(e){return LC(e.map(function(e){return e.pipe(ug(1),Ny(bI))})).pipe(SO(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==bI)return e;if(i===bI&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||yI(i))return i}return e},e)},bI),ig(function(e){return e!==bI}),J(function(e){return yI(e)?e:!0===e}),ug(1))})}var kI=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ds(0,"router-outlet")},directives:function(){return[_P]},encapsulation:2}),e}();function wI(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n],r=CI(t,i);SI(i,r)}}function SI(e,t){e.children&&wI(e.children,t)}function CI(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function EI(e){var t=e.children&&e.children.map(EI),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==eT&&(n.component=kI),n}function xI(e){return e.outlet||eT}function OI(e,t){var n=e.filter(function(e){return xI(e)===t});return n.push.apply(n,C(e.filter(function(e){return xI(e)!==t}))),n}var TI={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function II(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},TI):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||rT)(n,e,t);if(!r)return Object.assign({},TI);var o={};uT(r.posParams,function(e,t){o[t]=e.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function PI(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&RI(e,n,i)){var o=new yT(t,AI(e,t,i,new yT(n,e.children)));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&NI(e,n,i)){var a=new yT(e.segments,MI(e,t,n,i,e.children,r));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:n}}var s=new yT(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function MI(e,t,n,i,r,o){var a,s={},c=g(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(LI(e,n,u)&&!r[xI(u)]){var l=new yT([],{});l._sourceSegment=e,l._segmentIndexShift="legacy"===o?e.segments.length:t.length,s[xI(u)]=l}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},r),s)}function AI(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var o,a=g(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&xI(s)!==eT){var c=new yT([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,r[xI(s)]=c}}}catch(u){a.e(u)}finally{a.f()}return r}function RI(e,t,n){return n.some(function(n){return LI(e,t,n)&&xI(n)!==eT})}function NI(e,t,n){return n.some(function(n){return LI(e,t,n)})}function LI(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function DI(e,t,n,i){return!!(xI(e)===i||i!==eT&&LI(t,n,e))&&("**"===e.path||II(t,e,n).matched)}function VI(e,t,n){return 0===t.length&&!e.children[n]}var jI=function e(t){s(this,e),this.segmentGroup=t||null},FI=function e(t){s(this,e),this.urlTree=t};function BI(e){return new H(function(t){return t.error(new jI(e))})}function UI(e){return new H(function(t){return t.error(new FI(e))})}function zI(e){return new H(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var HI=function(){function e(t,n,i,r,o){s(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(nu)}return a(e,[{key:"apply",value:function(){var e=this,t=PI(this.urlTree.root,[],[],this.config).segmentGroup,n=new yT(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,eT).pipe(J(function(t){return e.createUrlTree(WI(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Sw(function(t){if(t instanceof FI)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof jI)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,eT).pipe(J(function(n){return t.createUrlTree(WI(n),e.queryParams,e.fragment)})).pipe(Sw(function(e){if(e instanceof jI)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new yT([],k({},eT,e)):e;return new gT(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(J(function(e){return new yT([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o<a.length;o++){var s=a[o];"primary"===s?r.unshift(s):r.push(s)}return se(r).pipe(Iw(function(r){var o=n.children[r],a=OI(t,r);return i.expandSegmentGroup(e,a,o,r).pipe(J(function(e){return{segment:e,outlet:r}}))}),SO(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?ig(function(t,n){return e(t,n,i)}):U,xO(1),n?RO(t):IO(function(){return new wO}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,o){var a=this;return se(n).pipe(Iw(function(s){return a.expandSegmentAgainstRoute(e,t,n,s,i,r,o).pipe(Sw(function(e){if(e instanceof jI)return zm(null);throw e}))}),DO(function(e){return!!e}),Sw(function(e,n){if(e instanceof wO||"EmptyError"===e.name){if(VI(t,i,r))return zm(new yT([],{}));throw new jI(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,o,a){return DI(i,t,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o):BI(t):BI(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?UI(o):this.lineralizeSegments(n,o).pipe(he(function(n){var o=new yT(n,{});return r.expandSegment(e,o,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,o){var a=this,s=II(t,i,r),c=s.consumedSegments,u=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return BI(t);var h=this.applyRedirectCommands(c,i.redirectTo,l);return i.redirectTo.startsWith("/")?UI(h):this.lineralizeSegments(i,h).pipe(he(function(i){return a.expandSegment(e,t,n,i.concat(r.slice(u)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?zm(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(J(function(e){return n._loadedConfig=e,new yT(i,{})})):zm(new yT(i,{}));var a=II(t,n,i),s=a.consumedSegments,c=a.lastChild;if(!a.matched)return BI(t);var u=i.slice(c);return this.getChildConfig(e,n,i).pipe(he(function(e){var i=e.module,a=e.routes,c=PI(t,s,u,a),l=c.segmentGroup,h=c.slicedSegments,d=new yT(l.segments,l.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(J(function(e){return new yT(s,e)}));if(0===a.length&&0===h.length)return zm(new yT(s,{}));var f=xI(n)===r;return o.expandSegment(i,d,a,h,f?eT:r,!0).pipe(J(function(e){return new yT(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?zm(new mI(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?zm(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(he(function(n){return n?i.configLoader.load(e.injector,t).pipe(J(function(e){return t._loadedConfig=e,e})):function(e){return new H(function(t){return t.error(iT("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):zm(new mI([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;return r&&0!==r.length?zm(r.map(function(i){var r,o=e.get(i);if(function(e){return e&&gI(e.canLoad)}(o))r=o.canLoad(t,n);else{if(!gI(o))throw new Error("Invalid CanLoad guard");r=o(t,n)}return lT(r)})).pipe(_I(),qm(function(e){if(yI(e)){var t=iT('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),J(function(e){return!0===e})):zm(!0)}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return zm(n);if(i.numberOfChildren>1||!i.children.primary)return zI(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new gT(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return uT(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,o=this.createSegments(e,t.segments,n,i),a={};return uT(t.children,function(t,o){a[o]=r.createSegmentGroup(e,t,n,i)}),new yT(o,a)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=g(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return e}}]),e}();function WI(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],o=WI(e.children[r]);(o.segments.length>0||o.hasChildren())&&(t[r]=o)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new yT(e.segments.concat(t.segments),t.children)}return e}(new yT(e.segments,t))}var GI=function e(t){s(this,e),this.path=t,this.route=this.path[this.path.length-1]},qI=function e(t,n){s(this,e),this.component=t,this.route=n};function ZI(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function YI(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=UT(t);return e.children.forEach(function(e){QI(e,o[e.value.outlet],n,i.concat([e.value]),r),delete o[e.value.outlet]}),uT(o,function(e,t){return JI(e,n.getContext(t),r)}),r}function QI(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,a=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var c=KI(a,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new GI(i)):(o.data=a.data,o._resolvedData=a._resolvedData),YI(e,t,o.component?s?s.children:null:n,i,r),c&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new qI(s.outlet.component,a))}else a&&JI(t,s,r),r.canActivateChecks.push(new GI(i)),YI(e,null,o.component?s?s.children:null:n,i,r);return r}function KI(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!_T(e.url,t.url);case"pathParamsOrQueryParamsChange":return!_T(e.url,t.url)||!oT(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XT(e,t)||!oT(e.queryParams,t.queryParams);case"paramsChange":default:return!XT(e,t)}}function JI(e,t,n){var i=UT(e),r=e.value;uT(i,function(e,i){JI(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new qI(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var XI=function e(){s(this,e)};function $I(e){return new H(function(t){return t.error(e)})}var eP=function(){function e(t,n,i,r,o,a){s(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return a(e,[{key:"recognize",value:function(){var e=PI(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,eT);if(null===t)return null;var n=new ZT([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},eT,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new BT(n,t),r=new YT(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=GT(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var o=r[i],a=t.children[o],s=OI(e,o),c=this.processSegmentGroup(s,a,o);if(null===c)return null;n.push.apply(n,C(c))}var u=tP(n);return u.sort(function(e,t){return e.value.outlet===eT?-1:t.value.outlet===eT?1:e.value.outlet.localeCompare(t.value.outlet)}),u}},{key:"processSegment",value:function(e,t,n,i){var r,o=g(e);try{for(o.s();!(r=o.n()).done;){var a=this.processSegmentAgainstRoute(r.value,t,n,i);if(null!==a)return a}}catch(s){o.e(s)}finally{o.f()}return VI(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!DI(e,t,n,i))return null;var r,o=[],a=[];if("**"===e.path){var s=n.length>0?cT(n).parameters:{};r=new ZT(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rP(e),xI(e),e.component,e,nP(t),iP(t)+n.length,oP(e))}else{var c=II(t,e,n);if(!c.matched)return null;o=c.consumedSegments,a=n.slice(c.lastChild),r=new ZT(o,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rP(e),xI(e),e.component,e,nP(t),iP(t)+o.length,oP(e))}var u=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=PI(t,o,a,u.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),h=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new BT(r,f)]}if(0===u.length&&0===d.length)return[new BT(r,[])];var p=xI(e)===i,v=this.processSegment(u,h,d,p?eT:i);return null===v?null:[new BT(r,v)]}}]),e}();function tP(e){var t,n=[],i=new Set,r=g(e);try{var o=function(){var e=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(e))return n.push(e),"continue";var r,o=n.find(function(t){return e.value.routeConfig===t.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,C(e.children)),i.add(o)):n.push(e)};for(r.s();!(t=r.n()).done;)o()}catch(l){r.e(l)}finally{r.f()}var a,s=g(i);try{for(s.s();!(a=s.n()).done;){var c=a.value,u=tP(c.children);n.push(new BT(c.value,u))}}catch(l){s.e(l)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function nP(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function iP(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function rP(e){return e.data||{}}function oP(e){return e.resolve||{}}function aP(e){return qb(function(t){var n=e(t);return n?se(n).pipe(J(function(){return t})):zm(t)})}var sP=function(e){u(n,e);var t=p(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(function(){function e(){s(this,e)}return a(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),cP=new _i("ROUTES"),uP=function(){function e(t,n,i,r){s(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return a(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(J(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new mI(sT(r.injector.get(cP,void 0,Ze.Self|Ze.Optional)).map(EI),r)}),Sw(function(e){throw t._loader$=void 0,e}));return t._loader$=new _e(i,function(){return new Y}).pipe(ge()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?se(this.loader.load(e)):lT(e()).pipe(he(function(e){return e instanceof iu?zm(e):se(t.compiler.compileModuleAsync(e))}))}}]),e}(),lP=function e(){s(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new hP,this.attachRef=null},hP=function(){function e(){s(this,e),this.contexts=new Map}return a(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new lP,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),dP=function(){function e(){s(this,e)}return a(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function fP(e){throw e}function pP(e,t,n){return t.parse("/")}function vP(e,t){return zm(null)}var mP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yP=function(){var e=function(){function e(t,n,i,r,o,a,c,u){var l=this;s(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Y,this.errorHandler=fP,this.malformedUriErrorHandler=pP,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vP,afterPreactivation:vP},this.urlHandlingStrategy=new dP,this.routeReuseStrategy=new sP,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(nu),this.console=o.get(Xu);var h=o.get(hl);this.isNgZoneEnabled=h instanceof hl&&hl.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new gT(new yT([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uP(a,c,function(e){return l.triggerEvent(new ZO(e))},function(e){return l.triggerEvent(new YO(e))}),this.routerState=HT(this.currentUrlTree,this.rootComponentType),this.transitions=new Um({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return a(e,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(ig(function(e){return 0!==e.id}),J(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),qb(function(e){var i,r,o,a=!1,s=!1;return zm(e).pipe(qm(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),qb(function(e){var i=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||i)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return zm(e).pipe(qb(function(e){var i=t.transitions.getValue();return n.next(new jO(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?sg:Promise.resolve(e)}),function(e,t,n,i){return qb(function(r){return function(e,t,n,i,r){return new HI(e,t,n,i,r).apply()}(e,t,n,r.extractedUrl,i).pipe(J(function(e){return Object.assign(Object.assign({},r),{urlAfterRedirects:e})}))})}(t.ngModule.injector,t.configLoader,t.urlSerializer,t.config),qm(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,o){return he(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new eP(e,t,n,i,r,o).recognize();return null===a?$I(new XI):zm(a)}catch(WP){return $I(WP)}}(e,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,t.serializeUrl(a)),r,o).pipe(J(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var a})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),qm(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new zO(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(i&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var r=e.extractedUrl,o=e.source,a=e.restoredState,s=e.extras,c=new jO(e.id,t.serializeUrl(r),o,a);n.next(c);var u=HT(r,t.rootComponentType).snapshot;return zm(Object.assign(Object.assign({},e),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),sg}),aP(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),qm(function(e){var n=new HO(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),J(function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,i=e.currentSnapshot,r=t.rootContexts,o=n._root,YI(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(e,t){return he(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?zm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return se(e).pipe(he(function(e){return function(e,t,n,i,r){var o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?zm(o.map(function(o){var a,s=ZI(o,t,r);if(function(e){return e&&gI(e.canDeactivate)}(s))a=lT(s.canDeactivate(e,t,n,i));else{if(!gI(s))throw new Error("Invalid CanDeactivate guard");a=lT(s(e,t,n,i))}return a.pipe(DO())})).pipe(_I()):zm(!0)}(e.component,e.route,n,t,i)}),DO(function(e){return!0!==e},!0))}(s,i,r,e).pipe(he(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return se(t).pipe(Iw(function(t){return Ry(function(e,t){return null!==e&&t&&t(new QO(e)),zm(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new JO(e)),zm(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return nk(function(){return zm(t.guards.map(function(r){var o,a=ZI(r,t.node,n);if(function(e){return e&&gI(e.canActivateChild)}(a))o=lT(a.canActivateChild(i,e));else{if(!gI(a))throw new Error("Invalid CanActivateChild guard");o=lT(a(i,e))}return o.pipe(DO())})).pipe(_I())})});return zm(r).pipe(_I())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?zm(i.map(function(i){return nk(function(){var r,o=ZI(i,t,n);if(function(e){return e&&gI(e.canActivate)}(o))r=lT(o.canActivate(t,e));else{if(!gI(o))throw new Error("Invalid CanActivate guard");r=lT(o(t,e))}return r.pipe(DO())})})).pipe(_I()):zm(!0)}(e,t.route,n))}),DO(function(e){return!0!==e},!0))}(i,a,e,t):zm(n)}),J(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),qm(function(e){if(yI(e.guardsResult)){var n=iT('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new WO(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),ig(function(e){return!!e.guardsResult||(t.cancelNavigationTransitionRestoreHistory(e,""),!1)}),aP(function(e){if(e.guards.canActivateChecks.length)return zm(e).pipe(qm(function(e){var n=new GO(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),qb(function(e){var n,i,r=!1;return zm(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,he(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return zm(e);var o=0;return se(r).pipe(Iw(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return zm({});var o={};return se(r).pipe(he(function(r){return function(e,t,n,i){var r=ZI(e,t,i);return lT(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(qm(function(e){o[r]=e}))}),xO(1),he(function(){return Object.keys(o).length===r.length?zm(o):sg}))}(e._resolve,e,t,i).pipe(J(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),GT(e,n).resolve),null}))}(e.route,t,n,i)}),qm(function(){return o++}),xO(1),he(function(t){return o===r.length?zm(e):sg}))})),qm({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransitionRestoreHistory(e,"At least one route resolver didn't emit any value.")}}))}),qm(function(e){var n=new qO(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),aP(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),J(function(e){var n,i,r,o=(r=$T(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(i=e.currentRouterState)?i._root:void 0),new zT(r,n));return Object.assign(Object.assign({},e),{targetRouterState:o})}),qm(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,r=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},J(function(e){return new pI(r,e.targetRouterState,e.currentRouterState,o).activate(i),e})),qm({next:function(){a=!0},complete:function(){a=!0}}),xw(function(){if(!a&&!s){var n="Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId);"replace"===t.canceledNavigationResolution?t.cancelNavigationTransitionRestoreHistory(e,n):t.cancelNavigationTransition(e,n)}t.currentNavigation=null}),Sw(function(i){if(s=!0,(c=i)&&c.ngNavigationCancelingError){var r=yI(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var o=new BO(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var a=new UO(e.id,t.serializeUrl(e.extractedUrl),i);n.next(a);try{e.resolve(t.errorHandler(i))}catch(u){e.reject(u)}}var c;return sg}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}e.scheduleNavigation(r,t,i,o)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){wI(e),this.config=e.map(EI),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,o=t.queryParamsHandling,a=t.preserveFragment,s=n||this.routerState.root,c=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),tI(s,this.currentUrlTree,e,u,null!=c?c:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=yI(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return bP(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(WP){t=this.malformedUriErrorHandler(WP,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){var n;if(n=!0===t?Object.assign({},mP):!1===t?Object.assign({},gP):t,yI(e))return fT(this.currentUrlTree,e,n);var i=this.parseUrl(e);return fT(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.currentPageId=t.targetPageId,e.events.next(new FO(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){var o,a;if(this.disposed)return Promise.resolve(!1);var s,c,u,l=this.getTransition(),h="imperative"!==t&&"imperative"===(null==l?void 0:l.source),d=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(h&&d)return Promise.resolve(!0);r?(s=r.resolve,c=r.reject,u=r.promise):u=new Promise(function(e,t){s=e,c=t});var f,p=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(a=this.browserPageId)&&void 0!==a?a:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:s,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t){var n=this.urlSerializer.serialize(e),i=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransitionRestoreHistory",value:function(e,t){"computed"===this.canceledNavigationResolution?"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-e.targetPageId):this.resetUrlToCurrentUrlTree(),this.cancelNavigationTransition(e,t)}},{key:"cancelNavigationTransition",value:function(e,t){var n=new BO(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(wi),ji(kT),ji(hP),ji(ch),ji(Ha),ji(Dl),ji(cl),ji(void 0))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function bP(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}var _P=function(){var e=function(){function e(t,n,i,r,o){s(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Eu,this.deactivateEvents=new Eu,this.name=r||eT,t.onChildOutletCreated(this.name,this)}return a(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new kP(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ss(hP),ss(ou),ss(yc),gi("name"),ss(Yc))},e.\u0275dir=kt({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),e}(),kP=function(){function e(t,n,i){s(this,e),this.route=t,this.childContexts=n,this.parent=i}return a(e,[{key:"get",value:function(e,t){return e===WT?this.route:e===hP?this.childContexts:this.parent.get(e,t)}}]),e}(),wP=function e(){s(this,e)},SP=function(){function e(){s(this,e)}return a(e,[{key:"preload",value:function(e,t){return t().pipe(Sw(function(){return zm(null)}))}}]),e}(),CP=function(){function e(){s(this,e)}return a(e,[{key:"preload",value:function(e,t){return zm(null)}}]),e}(),EP=function(){var e=function(){function e(t,n,i,r,o){s(this,e),this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new uP(n,i,function(e){return t.triggerEvent(new ZO(e))},function(e){return t.triggerEvent(new YO(e))})}return a(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(ig(function(e){return e instanceof FO}),Iw(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(nu);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=g(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var a=o._loadedConfig;i.push(this.processRoutes(a.module,a.routes))}else o.loadChildren&&!o.canLoad?i.push(this.preloadConfig(e,o)):o.children&&i.push(this.processRoutes(e,o.children))}}catch(s){r.e(s)}finally{r.f()}return se(i).pipe(pe(),J(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?zm(t._loadedConfig):n.loader.load(e.injector,t)).pipe(he(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(yP),ji(Dl),ji(cl),ji(Ha),ji(wP))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),xP=function(){var e=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return a(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof jO?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof FO&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof $O&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new $O(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(yP),ji(Nh),ji(void 0))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}(),OP=new _i("ROUTER_CONFIGURATION"),TP=new _i("ROUTER_FORROOT_GUARD"),IP=[ch,{provide:kT,useClass:wT},{provide:yP,useFactory:function(e,t,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,l=new yP(null,e,t,n,i,r,o,sT(a));return c&&(l.urlHandlingStrategy=c),u&&(l.routeReuseStrategy=u),DP(s,l),s.enableTracing&&l.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),l},deps:[kT,hP,ch,Ha,Dl,cl,cP,OP,[function e(){s(this,e)},new qi],[function e(){s(this,e)},new qi]]},hP,{provide:WT,useFactory:function(e){return e.routerState.root},deps:[yP]},{provide:Dl,useClass:Fl},EP,CP,SP,{provide:OP,useValue:{enableTracing:!1}}];function PP(){return new Ol("Router",yP)}var MP=function(){var e=function(){function e(t,n){s(this,e)}return a(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[IP,LP(t),{provide:TP,useFactory:NP,deps:[[yP,new qi,new Zi]]},{provide:OP,useValue:n||{}},{provide:ih,useFactory:RP,deps:[Yl,[new Gi(oh),new qi],OP]},{provide:xP,useFactory:AP,deps:[yP,Nh,OP]},{provide:wP,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:CP},{provide:Ol,multi:!0,useFactory:PP},[VP,{provide:Wu,multi:!0,useFactory:jP,deps:[VP]},{provide:BP,useFactory:FP,deps:[VP]},{provide:Ju,multi:!0,useExisting:BP}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[LP(t)]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(TP,8),ji(yP,8))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({}),e}();function AP(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new xP(e,t,n)}function RP(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new sh(e,t):new ah(e,t)}function NP(e){return"guarded"}function LP(e){return[{provide:ki,multi:!0,useValue:e},{provide:cP,multi:!0,useValue:e}]}function DP(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}var VP=function(){var e=function(){function e(t){s(this,e),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Y}return a(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(Kl,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(yP),r=e.injector.get(OP);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?zm(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(OP),n=this.injector.get(EP),i=this.injector.get(xP),r=this.injector.get(yP),o=this.injector.get(Nl);e===o.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(ji(Ha))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac}),e}();function jP(e){return e.appInitializer.bind(e)}function FP(e){return e.bootstrapListener.bind(e)}var BP=new _i("Router Initializer");function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function zP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var HP=function(){function e(t){s(this,e),this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;var n=t.length,i=t.separator,r=t.style,o=t.seed;this.dictionaries=t.dictionaries,this.separator=i,this.length=n,this.style=r,this.seed=o}return a(e,[{key:"generate",value:function(){var e=this;if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error("The length cannot be bigger than the number of dictionaries.\nLength provided: ".concat(this.length,". Number of dictionaries provided: ").concat(this.dictionaries.length));return this.dictionaries.slice(0,this.length).reduce(function(t,n){var i,r=n[Math.floor((e.seed?(i=e.seed,function(e){e=1831565813+(e|=0)|0;var t=Math.imul(e^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/4294967296}(i)):Math.random())*n.length)]||"";if("lowerCase"===e.style)r=r.toLowerCase();else if("capital"===e.style){var o=S(r.split("")),a=o[0],s=o.slice(1);r=a.toUpperCase()+s.join("")}else"upperCase"===e.style&&(r=r.toUpperCase());return t?"".concat(t).concat(e.separator).concat(r):"".concat(r)},"")}}]),e}(),WP={separator:"_",dictionaries:[]},GP=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],qP=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"],ZP=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];function YP(e,t){1&e&&(ls(0,"div",18),Ys(1," Room name is "),ls(2,"strong"),Ys(3,"required"),hs(),hs())}function QP(e,t){1&e&&(ls(0,"div",19),Ys(1," Room name is "),ls(2,"strong"),Ys(3,"too short!"),hs(),hs())}var KP=function(){function e(e,t){this.router=e,this.formBuilder=t,this.version=n(60306).i8}return e.prototype.ngOnInit=function(){var e=function(e){var t=C(e&&e.dictionaries||WP.dictionaries),n=zP(zP(zP({},WP),e),{},{length:e&&e.length||t.length,dictionaries:t});if(!e||!e.dictionaries||!e.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new HP(n).generate()}({dictionaries:[GP,ZP,qP],separator:"-"});this.roomForm=new kf(e,[Rd.minLength(4),Rd.required])},e.prototype.goToVideoCall=function(){if(this.roomForm.valid){var e=this.roomForm.value.replace(/ /g,"-");this.roomForm.setValue(e),this.router.navigate(["/",e])}},e.\u0275fac=function(t){return new(t||e)(ss(yP),ss(Uf))},e.\u0275cmp=vt({type:e,selectors:[["app-home"]],decls:28,vars:5,consts:[[1,"section1"],["id","header"],["href","https://openvidu.io/","target","_blank"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo.png"],[1,"ovVersion"],[1,"container"],[1,"ovInfo"],["alt","OpenVidu Logo","src","assets/images/openvidu_logo.png",1,"ovLogo"],[1,"formContainer"],["class","roomError","id","requiredNameError",4,"ngIf"],["class","roomError","id","shortNameError",4,"ngIf"],["novalidate","",3,"formGroup","ngSubmit"],[1,"joinForm"],["matInput","","type","text","autocomplete","off","id","roomInput",1,"inputForm",3,"formControl"],["type","submit","id","joinButton",1,"joinButton"],[1,"footer"],["rel","noopener noreferrer","target","_blank","href","https://unsplash.com/@danielleone?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"],["href","https://unsplash.com/s/photos/mountain?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText","target","_blank"],["id","requiredNameError",1,"roomError"],["id","shortNameError",1,"roomError"]],template:function(e,t){1&e&&(ls(0,"div",0),ls(1,"mat-toolbar",1),ls(2,"a",2),ds(3,"img",3),hs(),ls(4,"div",4),ls(5,"span"),Ys(6),hs(),hs(),hs(),ls(7,"div",5),ls(8,"div",6),ds(9,"img",7),ls(10,"h4"),Ys(11,"Videoconference rooms in one click"),hs(),hs(),ls(12,"div",8),os(13,YP,4,0,"div",9),os(14,QP,4,0,"div",10),ls(15,"form",11),bs("ngSubmit",function(){return t.goToVideoCall()}),ls(16,"div",12),ds(17,"input",13),ls(18,"button",14),Ys(19,"JOIN"),hs(),hs(),hs(),hs(),hs(),ls(20,"mat-toolbar",15),ls(21,"span"),Ys(22," Photo by "),ls(23,"a",16),Ys(24," Daniel Leone "),hs(),Ys(25," on "),ls(26,"a",17),Ys(27," Unsplash "),hs(),hs(),hs(),hs()),2&e&&(Mo(6),Qs(t.version),Mo(7),cs("ngIf",t.roomForm.hasError("required")),Mo(1),cs("ngIf",t.roomForm.hasError("minlength")),Mo(1),cs("formGroup",t.roomForm),Mo(2),cs("formControl",t.roomForm))},directives:[IC,bh,Pf,Xd,Df,MS,Od,Jd,Nf],styles:[".section1[_ngcontent-%COMP%]{background:url(bg.webp) top no-repeat;background-size:cover;height:100%;text-align:center;position:relative;color:#fff}#header[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%]{background-color:transparent;color:#fff}.roomError[_ngcontent-%COMP%]{font-size:16px;color:#c01515}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;font-size:9px;height:auto}.footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}#header_img[_ngcontent-%COMP%]{max-width:150px;margin-right:10px;margin-top:10px;padding:15px}.ovVersion[_ngcontent-%COMP%]{position:absolute;right:15px;font-size:16px;font-weight:700}.ovLogo[_ngcontent-%COMP%]{margin:auto}#card_content[_ngcontent-%COMP%]{height:50%}h4[_ngcontent-%COMP%]{font-size:25px;font-weight:500;color:#fff;position:relative;padding-bottom:5px}#room_card[_ngcontent-%COMP%]{color:#303030;position:inherit;max-width:700px;width:75%;margin:auto;background:hsla(0,0%,87%,.856)}#room_card[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:auto;padding:0 5px}@media only screen and (max-width: 600px){#header_img[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%], .ovVersion[_ngcontent-%COMP%]{display:none}.joinForm[_ngcontent-%COMP%], .ovLogo[_ngcontent-%COMP%]{max-width:80%}.inputForm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:16px}}.container[_ngcontent-%COMP%]{position:relative;width:100%;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.formContainer[_ngcontent-%COMP%]{font-size:20px;text-align:center}.joinForm[_ngcontent-%COMP%]{min-width:300px;margin:10px auto;max-width:50%;background:#fff;padding:6px 10px;position:relative;border-radius:10px 5px 10px 0;text-align:left}.inputForm[_ngcontent-%COMP%]{border:0;padding:4px 8px;font-size:17px;width:calc(100% - 90px);outline:none;caret-color:#000;color:#303030}.joinButton[_ngcontent-%COMP%]{position:absolute;top:0;right:-2px;bottom:0;border:0;background:none;font-size:16px;font-weight:700;padding:0 20px;background:#00ad4e;color:#fff;border-radius:0 5px 10px 0;transition:.3s;box-shadow:0 2px 15px rgba(0,0,0,.1);margin:0}.joinButton[_ngcontent-%COMP%]:hover{background:#009242}@media only screen and (min-width: 600px){.ovLogo[_ngcontent-%COMP%]{max-width:75%}}@media only screen and (min-width: 992px){.ovLogo[_ngcontent-%COMP%]{max-width:60%}.inputForm[_ngcontent-%COMP%]{font-size:20px!important}}@media only screen and (min-width: 1200px){.section1[_ngcontent-%COMP%]{background-attachment:fixed}.ovLogo[_ngcontent-%COMP%]{max-width:50%}}"]}),e}(),JP=function(e){return e.CAMERA="CAMERA",e.SCREEN="SCREEN",e.CUSTOM="CUSTOM",e}({}),XP=function(e){return e.WINDOW="window",e.SCREEN="screen",e}({}),$P=function(){function e(e,t,n){this.connectionId=e||"",this.nickname=n||"OpenVidu",this.streamManager=t||null}return e.prototype.isAudioActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.audioActive},e.prototype.isVideoActive=function(){var e,t;return null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.videoActive},e.prototype.getConnectionId=function(){var e,t,n;return(null===(n=null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)||this.connectionId},e.prototype.getNickname=function(){return this.nickname},e.prototype.getStreamManager=function(){return this.streamManager},e.prototype.getAvatar=function(){return this.avatar},e.prototype.setAvatar=function(e){this.avatar=e},e.prototype.isLocal=function(){return this.local},e.prototype.isRemote=function(){var e;return null===(e=this.streamManager)||void 0===e?void 0:e.remote},e.prototype.isScreen=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===JP.SCREEN},e.prototype.isCamera=function(){var e,t;return(null===(t=null===(e=this.streamManager)||void 0===e?void 0:e.stream)||void 0===t?void 0:t.typeOfVideo)===JP.CAMERA||this.isLocal()&&!this.isScreen()},e.prototype.setStreamManager=function(e){this.streamManager=e},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.isVideoSizeBig=function(){return this.videoSizeBig},e.prototype.setVideoSizeBig=function(e){this.videoSizeBig=e},e.prototype.setLocal=function(e){this.local=e},e}(),eM=function(){function e(){this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}return e.prototype.getLoggerFns=function(e){var t=this;return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map(function(n,i){return n.bind(t.log,t.MSG_PREFIXES[i][0]+e+t.MSG_PREFIXES[i][1])})},e.prototype.get=function(e){var t=this;return{d:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},w:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];t.getLoggerFns(e)[2].apply(this.log,arguments)}}},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),tM=function(){function e(e,t){this.dialogRef=e,this.data=t}return e.prototype.ngOnInit=function(){},e.\u0275fac=function(t){return new(t||e)(ss(uk),ss(hk))},e.\u0275cmp=vt({type:e,selectors:[["app-dialog-error"]],decls:5,vars:2,consts:[["mat-dialog-title",""]],template:function(e,t){1&e&&(ls(0,"div"),ls(1,"h1",0),Ys(2),hs(),ls(3,"span"),Ys(4),hs(),hs()),2&e&&(Mo(2),Qs(t.data.header),Mo(2),Ks(" ",t.data.message," "))},directives:[yk],styles:["h1[_ngcontent-%COMP%]{color:#a30101}"]}),e}(),nM=function(e){return e.ROOT_CLASS="OT_root",e}({}),iM=function(e){return e.BIG_ELEMENT="OV_big",e.SMALL_ELEMENT="OV_small",e}({}),rM=n(90272),oM=n.n(rM),aM=function(){function e(e){this.dialog=e}return e.prototype.toggleFullscreen=function(e){var t=window.document,n=t.getElementById(e);t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement?t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen():n.requestFullscreen?n.requestFullscreen():n.msRequestFullscreen?n.msRequestFullscreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen&&n.webkitRequestFullscreen()},e.prototype.handlerScreenShareError=function(e){e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name?alert("Your browser does not support screen sharing"):e&&"SCREEN_EXTENSION_DISABLED"===e.name&&alert("You need to enable screen sharing extension")},e.prototype.generateNickname=function(){return"OpenVidu_User"+Math.floor(100*Math.random())},e.prototype.isFirefox=function(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)},e.prototype.isMobile=function(){return this.isAndroid()||this.isIos()},e.prototype.showErrorMessage=function(e,t,n){void 0===n&&(n=!1),this.dialogRef=this.dialog.open(tM,{data:{header:e,message:t},disableClose:n})},e.prototype.closeDialog=function(){var e;null===(e=this.dialogRef)||void 0===e||e.close()},e.prototype.getHTMLElementByClassName=function(e,t){for(;e&&e!==document.body;){if(e.className.includes(t))return e;e=e.parentElement}return null},e.prototype.toggleBigElementClass=function(e){(null==e?void 0:e.className.includes(iM.BIG_ELEMENT))?this.removeBigElementClass(e):e.classList.add(iM.BIG_ELEMENT)},e.prototype.removeBigElementClass=function(e){null==e||e.classList.remove(iM.BIG_ELEMENT)},e.prototype.removeAllBigElementClass=function(){for(var e=document.getElementsByClassName(iM.BIG_ELEMENT);e.length>0;)this.removeBigElementClass(e[0])},e.prototype.isSmallElement=function(e){return null==e?void 0:e.className.includes(iM.SMALL_ELEMENT)},e.prototype.getNicknameFromConnectionData=function(e){var t;try{t=JSON.parse(e).clientData}catch(n){t="Unknown"}return t},e.prototype.linkify=function(e,t){return oM()(e,t)},e.prototype.isAndroid=function(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)},e.prototype.isIos=function(){return this.isIPhoneOrIPad(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&this.isIOSWithSafari(null===navigator||void 0===navigator?void 0:navigator.userAgent)},e.prototype.isIPhoneOrIPad=function(e){var t=/\b(\w*Macintosh\w*)\b/.test(e),n=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),i="ontouchend"in document;return(t||n)&&i},e.prototype.isIOSWithSafari=function(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)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(mk))},providedIn:"root"}),e}(),sM=function(){function e(e){this.loggerSrv=e,this._OVUsers=new Um([]),this._screenShareState=new Um(!1),this._webcamVideoActive=new Um(!0),this.webcamUser=null,this.screenUser=null,this.log=this.loggerSrv.get("LocalUsersService")}return e.prototype.initialize=function(){this.OVUsers=this._OVUsers.asObservable(),this.screenShareState=this._screenShareState.asObservable(),this.webcamVideoActive=this._webcamVideoActive.asObservable(),this.webcamUser=new $P,this.webcamUser.setLocal(!0),this._OVUsers.next([this.webcamUser])},e.prototype.getWebcamPublisher=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setWebcamPublisher=function(e){this.webcamUser.setStreamManager(e)},e.prototype.getScreenPublisher=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.getStreamManager()},e.prototype.setScreenPublisher=function(e){this.screenUser.setStreamManager(e)},e.prototype.enableWebcamUser=function(){this._OVUsers.next([this.webcamUser,this.screenUser])},e.prototype.disableWebcamUser=function(){this._OVUsers.next([this.screenUser])},e.prototype.enableScreenUser=function(e){var t,n;this.log.d("Enabling screen publisher");var i=null===(n=null===(t=null==e?void 0:e.session)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId;this.screenUser=new $P(i,e,this.getScreenUserName()),this.screenUser.setAvatar(this.webcamUser.getAvatar()),this._screenShareState.next(!0),this.isWebCamEnabled()?this._OVUsers.next([this.webcamUser,this.screenUser]):this._OVUsers.next([this.screenUser])},e.prototype.disableScreenUser=function(){this._OVUsers.next([this.webcamUser]),this._screenShareState.next(!1)},e.prototype.updateUsersStatus=function(){this._webcamVideoActive.next(this.webcamUser.isVideoActive())},e.prototype.clear=function(){this.screenUser=null,this.webcamUser=new $P,this.disableScreenUser()},e.prototype.isWebCamEnabled=function(){return this._OVUsers.getValue()[0].isCamera()},e.prototype.isOnlyScreenConnected=function(){return this._OVUsers.getValue()[0].isScreen()},e.prototype.hasWebcamVideoActive=function(){return this.webcamUser.isVideoActive()},e.prototype.hasWebcamAudioActive=function(){var e;return null===(e=this.webcamUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.hasScreenAudioActive=function(){var e;return null===(e=this.screenUser)||void 0===e?void 0:e.isAudioActive()},e.prototype.areBothConnected=function(){return 2===this._OVUsers.getValue().length},e.prototype.isOnlyWebcamConnected=function(){return this.isWebCamEnabled()&&!this.areBothConnected()},e.prototype.isScreenShareEnabled=function(){return this.areBothConnected()||this.isOnlyScreenConnected()},e.prototype.setAvatar=function(e){var t,n;null===(t=this.webcamUser)||void 0===t||t.setAvatar(e),null===(n=this.screenUser)||void 0===n||n.setAvatar(e)},e.prototype.updateUsersNickname=function(e){var t;this.webcamUser.setNickname(e),null===(t=this.screenUser)||void 0===t||t.setNickname(this.getScreenUserName())},e.prototype.getAvatar=function(){return this.webcamUser.getAvatar()},e.prototype.getWebcamUserName=function(){return this.webcamUser.getNickname()},e.prototype.getScreenUserName=function(){return this.getWebcamUserName()+"_SCREEN"},e.prototype.resetUsersZoom=function(){var e,t;null===(e=this.webcamUser)||void 0===e||e.setVideoSizeBig(!1),null===(t=this.screenUser)||void 0===t||t.setVideoSizeBig(!1)},e.prototype.toggleZoom=function(e){this.webcamUser.getConnectionId()!==e?this.screenUser.setVideoSizeBig(!this.screenUser.isVideoSizeBig()):this.webcamUser.setVideoSizeBig(!this.webcamUser.isVideoSizeBig())},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM))},providedIn:"root"}),e}(),cM=function(e){return e.DEFAULT="default",e.CAPTURED="captured",e}({}),uM=function(){function e(e,t){this.localUsersService=e,this.loggerSrv=t,this.openviduAvatar="assets/images/openvidu_globe.png",this.capturedAvatar="",this.log=this.loggerSrv.get("ChatService")}return e.prototype.setCaputedAvatar=function(e){this.capturedAvatar=e},e.prototype.setFinalAvatar=function(e){this.localUsersService.setAvatar(e!==cM.CAPTURED?this.openviduAvatar:this.capturedAvatar)},e.prototype.getOpenViduAvatar=function(){return this.openviduAvatar},e.prototype.getCapturedAvatar=function(){return this.capturedAvatar},e.prototype.createCapture=function(){this.log.d("Capturing avatar ...");var e=document.createElement("canvas"),t=this.localUsersService.getWebcamPublisher().videos[0].video;return e.className="user-img",e.width=100,e.height=100,t&&(e.getContext("2d").drawImage(t,200,120,285,285,0,0,100,100),this.capturedAvatar=e.toDataURL()),this.capturedAvatar},e.prototype.getAvatarFromConnectionData=function(e){var t;try{t=JSON.parse(e).avatar}catch(n){t=this.getOpenViduAvatar()}return t},e.prototype.clear=function(){this.capturedAvatar=""},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(sM),ji(eM))},providedIn:"root"}),e}(),lM=function(){function e(e,t,n){this.loggerSrv=e,this.utilsSrv=t,this.avatarService=n,this._remoteUsers=new Um([]),this._remoteUserNameList=new Um([]),this.users=[],this.log=this.loggerSrv.get("RemoteService"),this.remoteUsers=this._remoteUsers.asObservable(),this.remoteUserNameList=this._remoteUserNameList.asObservable()}return e.prototype.updateUsers=function(){this._remoteUsers.next(this.users)},e.prototype.add=function(e,t){var n,i,r,o,a,s,c,u,l,h,d,f,p=(null===(r=null===(i=null===(n=e)||void 0===n?void 0:n.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)||(null===(a=null===(o=e)||void 0===o?void 0:o.connection)||void 0===a?void 0:a.connectionId),v=(null===(u=null===(c=null===(s=e)||void 0===s?void 0:s.stream)||void 0===c?void 0:c.connection)||void 0===u?void 0:u.data)||(null===(h=null===(l=e)||void 0===l?void 0:l.connection)||void 0===h?void 0:h.data);d=this.utilsSrv.getNicknameFromConnectionData(v),f=this.avatarService.getAvatarFromConnectionData(v);var m=new $P(p,t,d);m.setAvatar(f),this.addUser(m),this.updateUsers()},e.prototype.removeUserByConnectionId=function(e){this.log.w("Deleting user: ",e);var t=this.getRemoteUserByConnectionId(e),n=this.users.indexOf(t,0);n>-1&&(this.users.splice(n,1),this.updateUsers())},e.prototype.someoneIsSharingScreen=function(){return this.users.some(function(e){return e.isScreen()})},e.prototype.toggleUserZoom=function(e){var t=this.getRemoteUserByConnectionId(e);t.setVideoSizeBig(!t.isVideoSizeBig())},e.prototype.resetUsersZoom=function(){this.users.forEach(function(e){return e.setVideoSizeBig(!1)})},e.prototype.setUserZoom=function(e,t){var n;null===(n=this.getRemoteUserByConnectionId(e))||void 0===n||n.setVideoSizeBig(t)},e.prototype.getRemoteUserByConnectionId=function(e){return this.users.find(function(t){return t.getConnectionId()===e})},e.prototype.updateNickname=function(e,t){var n=this.getRemoteUserByConnectionId(e);null==n||n.setNickname(t),this._remoteUsers.next(this.users);var i=this._remoteUserNameList.getValue();i.forEach(function(n){n.connectionId!==e||(n.nickname=t)}),this._remoteUserNameList.next(i)},e.prototype.clear=function(){this._remoteUsers=new Um([]),this.remoteUsers=this._remoteUsers.asObservable(),this._remoteUserNameList=new Um([]),this.remoteUserNameList=this._remoteUserNameList.asObservable(),this.users=[]},e.prototype.getUserAvatar=function(e){var t;return(null===(t=this.getRemoteUserByConnectionId(e))||void 0===t?void 0:t.getAvatar())||this.avatarService.getOpenViduAvatar()},e.prototype.addUserName=function(e){var t=this.utilsSrv.getNicknameFromConnectionData(e.connection.data),n=e.connection.connectionId,i=this._remoteUserNameList.getValue();i.push({nickname:t,connectionId:n}),this._remoteUserNameList.next(i)},e.prototype.deleteUserName=function(e){var t=this._remoteUserNameList.getValue().filter(function(t){return t.connectionId!==e.connection.connectionId});this._remoteUserNameList.next(t)},e.prototype.addUser=function(e){var t=this.getRemoteUserByConnectionId(e.connectionId);t?t.setStreamManager(e.getStreamManager()):this.users.push(e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM),ji(aM),ji(uM))},providedIn:"root"}),e}(),hM=n(15904),dM=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(WP){o(WP)}}function s(e){try{c(i.throw(e))}catch(WP){o(WP)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},fM=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},pM=function(){function e(e,t){this.loggerSrv=e,this.localUsersSrv=t,this.OV=null,this.OVScreen=null,this.webcamSession=null,this.screenSession=null,this.videoSource=void 0,this.audioSource=void 0,this.screenMediaStream=null,this.webcamMediaStream=null,this.log=this.loggerSrv.get("OpenViduWebRTCService")}return e.prototype.initialize=function(){this.OV=new hM.Dn,this.OVScreen=new hM.Dn,this.OV.enableProdMode(),this.OVScreen.enableProdMode()},e.prototype.initSessions=function(){this.initializeWebcamSession(),this.initializeScreenSession()},e.prototype.getWebcamSession=function(){return this.webcamSession},e.prototype.isWebcamSessionConnected=function(){return!!this.webcamSession.capabilities},e.prototype.initializeWebcamSession=function(){this.webcamSession=this.OV.initSession()},e.prototype.initializeScreenSession=function(){this.screenSession=this.OVScreen.initSession()},e.prototype.getScreenSession=function(){return this.screenSession},e.prototype.isScreenSessionConnected=function(){return!!this.screenSession.capabilities},e.prototype.connectWebcamSession=function(e){return dM(this,void 0,void 0,function(){var t,n;return fM(this,function(i){switch(i.label){case 0:return e?(this.log.d("Connecting webcam session"),t=this.localUsersSrv.getWebcamUserName(),n=this.localUsersSrv.getAvatar(),[4,this.webcamSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.disconnectWebcamSession=function(){this.webcamSession&&(this.log.d("Disconnecting webcam session"),this.webcamSession.disconnect(),this.webcamSession=null)},e.prototype.connectScreenSession=function(e){return dM(this,void 0,void 0,function(){var t,n;return fM(this,function(i){switch(i.label){case 0:return e?(this.log.d("Connecting screen session"),t=this.localUsersSrv.getScreenUserName(),n=this.localUsersSrv.getAvatar(),[4,this.screenSession.connect(e,{clientData:t,avatar:n})]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.disconnectScreenSession=function(){this.screenSession&&(this.log.d("Disconnecting screen session"),this.screenSession.disconnect(),this.screenSession=null)},e.prototype.disconnect=function(){var e,t,n,i,r,o,a,s;this.disconnectWebcamSession(),this.disconnectScreenSession(),this.videoSource=void 0,this.audioSource=void 0,this.stopVideoTracks(null===(t=null===(e=this.localUsersSrv.getWebcamPublisher())||void 0===e?void 0:e.stream)||void 0===t?void 0:t.getMediaStream()),this.stopVideoTracks(null===(i=null===(n=this.localUsersSrv.getScreenPublisher())||void 0===n?void 0:n.stream)||void 0===i?void 0:i.getMediaStream()),this.stopAudioTracks(null===(o=null===(r=this.localUsersSrv.getWebcamPublisher())||void 0===r?void 0:r.stream)||void 0===o?void 0:o.getMediaStream()),this.stopAudioTracks(null===(s=null===(a=this.localUsersSrv.getScreenPublisher())||void 0===a?void 0:a.stream)||void 0===s?void 0:s.getMediaStream())},e.prototype.initPublisher=function(e,t){this.log.d("Initializing publisher with properties: ",t);var n=this.OV.initPublisher(e,t);return n.once("streamPlaying",function(){n.videos[0].video.parentElement.classList.remove("custom-class")}),n},e.prototype.initPublisherAsync=function(e,t){return dM(this,void 0,void 0,function(){var n;return fM(this,function(i){switch(i.label){case 0:return this.log.d("Initializing publisher with properties: ",t),[4,this.OV.initPublisherAsync(e,t)];case 1:return(n=i.sent()).once("streamPlaying",function(){n.videos[0].video.parentElement.classList.remove("custom-class")}),[2,n]}})})},e.prototype.destroyWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(e.stream.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setWebcamPublisher(e))},e.prototype.destroyScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&(e.stream.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),this.localUsersSrv.setScreenPublisher(e))},e.prototype.publishWebcamPublisher=function(){var e,t;return dM(this,void 0,void 0,function(){var n;return fM(this,function(i){switch(i.label){case 0:return(null===(t=null===(e=this.webcamSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getWebcamPublisher())?[4,this.webcamSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Webcam publisher cannot be published"),[2]}})})},e.prototype.unpublishWebcamPublisher=function(){var e=this.localUsersSrv.getWebcamPublisher();e&&(this.publishScreenAudio(this.localUsersSrv.hasWebcamAudioActive()),this.webcamSession.unpublish(e))},e.prototype.publishScreenPublisher=function(){var e,t;return dM(this,void 0,void 0,function(){var n;return fM(this,function(i){switch(i.label){case 0:return(null===(t=null===(e=this.screenSession)||void 0===e?void 0:e.capabilities)||void 0===t?void 0:t.publish)&&(n=this.localUsersSrv.getScreenPublisher())?[4,this.screenSession.publish(n)]:[3,2];case 1:return[2,i.sent()];case 2:return this.log.e("Screen publisher cannot be published"),[2]}})})},e.prototype.unpublishScreenPublisher=function(){var e=this.localUsersSrv.getScreenPublisher();e&&this.screenSession.unpublish(e)},e.prototype.publishWebcamVideo=function(e){this.localUsersSrv.getWebcamPublisher().publishVideo(e),this.localUsersSrv.updateUsersStatus()},e.prototype.publishWebcamAudio=function(e){var t=this.localUsersSrv.getWebcamPublisher();t&&t.publishAudio(e)},e.prototype.publishScreenAudio=function(e){var t=this.localUsersSrv.getScreenPublisher();t&&t.publishAudio(e)},e.prototype.replaceTrack=function(e,t,n){var i=this;return void 0===n&&(n=!0),new Promise(function(r,o){e&&(i.log.d("Replacing video track "+e),i.videoSource=e),t&&(i.log.d("Replacing audio track "+t),i.audioSource=t),i.destroyWebcamPublisher();var a=i.createPublisherProperties(i.videoSource,i.audioSource,i.localUsersSrv.hasWebcamVideoActive(),i.localUsersSrv.hasWebcamAudioActive(),n),s=i.initPublisher(void 0,a);i.localUsersSrv.setWebcamPublisher(s),s.once("streamPlaying",function(){i.localUsersSrv.setWebcamPublisher(s),r()}),s.once("accessDenied",function(){o()})})},e.prototype.sendSignal=function(e,t,n){var i={data:JSON.stringify(n),type:e,to:t?[t]:void 0};this.webcamSession.signal(i)},e.prototype.sendNicknameSignal=function(e){var t,n;if(this.needSendNicknameSignal()){var i={data:JSON.stringify({clientData:this.localUsersSrv.getWebcamUserName()}),type:"nicknameChanged",to:e?[e]:void 0};null===(t=this.getWebcamSession())||void 0===t||t.signal(i),i.data=JSON.stringify({clientData:this.localUsersSrv.getScreenUserName()}),null===(n=this.getScreenSession())||void 0===n||n.signal(i)}},e.prototype.createPublisherProperties=function(e,t,n,i,r){return{videoSource:e,audioSource:t,publishVideo:n,publishAudio:i,mirror:r}},e.prototype.replaceScreenTrack=function(){return dM(this,void 0,void 0,function(){var e,t,n,i;return fM(this,function(r){switch(r.label){case 0:return e=XP.SCREEN,t=!this.localUsersSrv.isWebCamEnabled(),n=this.createPublisherProperties(e,void 0,!0,t,!1),this.stopScreenTracks(),i=this,[4,this.OVScreen.getUserMedia(n)];case 1:return i.screenMediaStream=r.sent(),[4,this.localUsersSrv.getScreenPublisher().replaceTrack(this.screenMediaStream.getVideoTracks()[0])];case 2:return r.sent(),[2]}})})},e.prototype.stopAudioTracks=function(e){var t;null==e||e.getAudioTracks().forEach(function(e){e.stop(),e.enabled=!1}),null===(t=this.webcamMediaStream)||void 0===t||t.getAudioTracks().forEach(function(e){e.stop()})},e.prototype.stopVideoTracks=function(e){null==e||e.getVideoTracks().forEach(function(e){e.stop()})},e.prototype.needSendNicknameSignal=function(){return JSON.parse(this.webcamSession.connection.data).clientData!==this.localUsersSrv.getWebcamUserName()},e.prototype.isMyOwnConnection=function(e){var t,n,i,r;return(null===(n=null===(t=this.webcamSession)||void 0===t?void 0:t.connection)||void 0===n?void 0:n.connectionId)===e||(null===(r=null===(i=this.screenSession)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)===e},e.prototype.getSessionOfUserConnected=function(){return this.localUsersSrv.isWebCamEnabled()?this.webcamSession:this.screenSession},e.prototype.stopScreenTracks=function(){this.screenMediaStream&&(this.stopAudioTracks(this.screenMediaStream),this.stopVideoTracks(this.screenMediaStream))},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM),ji(sM))},providedIn:"root"}),e}(),vM=n(45796),mM=function(){function e(e){this.snackBar=e}return e.prototype.newMessage=function(e,t){this.launchNotification(e+" sent a message","OPEN","messageSnackbar",3e3).onAction().subscribe(function(){t()})},e.prototype.launchNotification=function(e,t,n,i){return this.snackBar.open(e,t,{duration:i,verticalPosition:"top",horizontalPosition:"end",panelClass:n})},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(fE))},providedIn:"root"}),e}(),gM=function(){function e(e,t,n,i,r){this.loggerSrv=e,this.openViduWebRTCService=t,this.localUsersService=n,this.remoteUsersService=i,this.notificationService=r,this._messageList=new vM.BehaviorSubject([]),this._toggleChat=new vM.BehaviorSubject(!1),this.messageList=[],this.messagesUnread=0,this._messagesUnread=new vM.BehaviorSubject(0),this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.toggleChatObs=this._toggleChat.asObservable(),this.messagesUnreadObs=this._messagesUnread.asObservable()}return e.prototype.setChatComponent=function(e){this.chatComponent=e},e.prototype.subscribeToChat=function(){var e=this;this.openViduWebRTCService.getWebcamSession().on("signal:chat",function(t){var n=t.from.connectionId,i=JSON.parse(t.data),r=e.openViduWebRTCService.isMyOwnConnection(n);e.messageList.push({isLocal:r,nickname:i.nickname,message:i.message,userAvatar:r?e.localUsersService.getAvatar():e.remoteUsersService.getUserAvatar(n)}),e.isChatOpened()||(e.addMessageUnread(),e.notificationService.newMessage(i.nickname.toUpperCase(),e.toggleChat.bind(e))),e._messageList.next(e.messageList)})},e.prototype.sendMessage=function(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){var t={message:e,nickname:this.localUsersService.getWebcamUserName()};this.openViduWebRTCService.getSessionOfUserConnected().signal({data:JSON.stringify(t),type:"chat"})}},e.prototype.toggleChat=function(){var e=this;this.log.d("Toggling chat"),this.chatComponent.toggle().then(function(){e.chatOpened=e.chatComponent.opened,e._toggleChat.next(e.chatOpened),e.chatOpened&&e.resetUnreadMessages()})},e.prototype.resetUnreadMessages=function(){this.messagesUnread=0,this._messagesUnread.next(this.messagesUnread)},e.prototype.isChatOpened=function(){return this.chatOpened},e.prototype.addMessageUnread=function(){this.messagesUnread++,this._messagesUnread.next(this.messagesUnread)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM),ji(pM),ji(sM),ji(lM),ji(mM))},providedIn:"root"}),e}(),yM=function(){function e(e){this.utilsSrv=e}return e.prototype.transform=function(e){return e?this.utilsSrv.linkify(e):e},e.\u0275fac=function(t){return new(t||e)(ss(aM,16))},e.\u0275pipe=wt({name:"linkify",type:e,pure:!0}),e}(),bM=["chatScroll"],_M=["chatInput"];function kM(e,t){if(1&e&&(ls(0,"div",13),ds(1,"img",14),ls(2,"div",15),ls(3,"div",16),ls(4,"p"),Ys(5),hs(),hs(),ls(6,"div",17),ds(7,"span",18),ds(8,"p",19),wu(9,"linkify"),hs(),hs(),hs()),2&e){var n=t.$implicit;cs("ngClass",n.isLocal?"right":"left"),Mo(1),cs("src",n.userAvatar,Pr),Mo(4),Qs(n.nickname),Mo(3),cs("innerHTML",Su(9,4,n.message),Ir)}}var wM=function(){function e(e){this.chatService=e,this.messageList=[]}return e.prototype.onKeydownHandler=function(e){console.log(e),this.chatOpened&&this.close()},e.prototype.ngOnInit=function(){this.subscribeToMessages(),this.subscribeToToggleChat()},e.prototype.ngOnDestroy=function(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe(),this.chatToggleSubscription&&this.chatToggleSubscription.unsubscribe()},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.sendMessage()},e.prototype.sendMessage=function(){this.chatService.sendMessage(this.message),this.message=""},e.prototype.scrollToBottom=function(){var e=this;setTimeout(function(){try{e.chatScroll.nativeElement.scrollTop=e.chatScroll.nativeElement.scrollHeight}catch(t){}},20)},e.prototype.close=function(){this.chatService.toggleChat()},e.prototype.subscribeToMessages=function(){var e=this;this.chatMessageSubscription=this.chatService.messagesObs.subscribe(function(t){e.messageList=t,e.scrollToBottom()})},e.prototype.subscribeToToggleChat=function(){var e=this;this.chatToggleSubscription=this.chatService.toggleChatObs.subscribe(function(t){e.chatOpened=t,e.chatOpened&&(e.scrollToBottom(),setTimeout(function(){e.chatInput.nativeElement.focus()}))})},e.\u0275fac=function(t){return new(t||e)(ss(gM))},e.\u0275cmp=vt({type:e,selectors:[["chat-component"]],viewQuery:function(e,t){if(1&e&&(ju(bM,5),ju(_M,5)),2&e){var n=void 0;Vu(n=Bu())&&(t.chatScroll=n.first),Vu(n=Bu())&&(t.chatInput=n.first)}},hostBindings:function(e,t){1&e&&bs("keydown.escape",function(e){return t.onKeydownHandler(e)},!1,Fr)},inputs:{lightTheme:"lightTheme"},decls:17,vars:4,consts:[["id","chatContainer"],["id","chatComponent"],["id","chatToolbar"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close","color","warn"],[1,"message-wrap"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["id","messageInput"],["placeholder","Send a message","autocomplete","off","id","chatInput",3,"ngModel","keypress","ngModelChange"],["chatInput",""],["mat-mini-fab","","id","sendButton",3,"click"],["matTooltip","Send"],[1,"message",3,"ngClass"],[1,"user-img",3,"src"],[1,"msg-detail"],[1,"msg-info"],[1,"msg-content"],[1,"triangle"],[1,"text",3,"innerHTML"]],template:function(e,t){1&e&&(ls(0,"div",0),ls(1,"div",1),ls(2,"div",2),ls(3,"span"),Ys(4," CHAT"),hs(),ls(5,"button",3),bs("click",function(){return t.close()}),ls(6,"mat-icon",4),Ys(7,"highlight_off"),hs(),hs(),hs(),ls(8,"div",5,6),os(10,kM,10,6,"div",7),hs(),ls(11,"div",8),ls(12,"input",9,10),bs("keypress",function(e){return t.eventKeyPress(e)})("ngModelChange",function(e){return t.message=e}),hs(),ls(14,"button",11),bs("click",function(){return t.sendMessage()}),ls(15,"mat-icon",12),Ys(16,"send"),hs(),hs(),hs(),hs(),hs()),2&e&&(Mo(1),Vs("chatComponentLight",t.lightTheme),Mo(9),cs("ngForOf",t.messageList),Mo(2),cs("ngModel",t.message))},directives:[xb,wS,JC,gh,Od,Jd,If,vh,dx],pipes:[yM],styles:["#chatContainer[_ngcontent-%COMP%]{position:absolute;z-index:0;width:100%;height:calc(100% - 20px)}input[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif}#chatToolbar[_ngcontent-%COMP%]{height:30px;background-color:#3d3d3d;box-sizing:border-box;font-weight:700;font-size:14px;text-align:center;padding-top:4px;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff}#closeButton[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px}#chatComponent[_ngcontent-%COMP%]{background-color:#b8b8b8;position:absolute;z-index:99999;top:0;left:0;right:0;bottom:0;margin:auto;height:calc(100% - 30px);width:calc(100% - 30px);border-radius:20px}.message-wrap[_ngcontent-%COMP%]{padding:0 15px;height:calc(100% - 80px);overflow:auto}.message[_ngcontent-%COMP%]{position:relative;padding:7px 0}.user-img[_ngcontent-%COMP%]{position:absolute;border-radius:45px;width:60px;height:60px;top:15px}.msg-detail[_ngcontent-%COMP%]{width:calc(100% - 65px);display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:15px}.msg-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.8em;color:#000;font-style:italic}.msg-content[_ngcontent-%COMP%]{position:relative;margin-top:5px;border-radius:5px;padding:8px;color:#000;width:auto;max-width:95%}span.triangle[_ngcontent-%COMP%]{border-radius:2px;height:8px;width:8px;top:12px;display:block;transform:rotate(45deg);position:absolute}.text[_ngcontent-%COMP%]{word-break:break-all}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%]{padding-left:65px}.message.left[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{left:-5px;border:1px solid #f0f0f094}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#f0f0f0;float:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#f0f0f0;border-bottom-width:0;border-left-width:0;left:-5px}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-info[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .user-img[_ngcontent-%COMP%]{right:-5px;border:1px solid #c8ffe8ab}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{background-color:#c8ffe8;float:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%] span.triangle[_ngcontent-%COMP%]{background-color:#c8ffe8;border-bottom-width:0;border-left-width:0;right:-5px}#messageInput[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;background-color:#fff;text-align:center;padding:10px 0;height:30px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}#messageInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:90%;height:100%;border:none;outline:none;font-size:14px;margin-left:-6%}#sendButton[_ngcontent-%COMP%]{background-color:#81e9b0;position:absolute;right:10px;top:0;bottom:0;margin:auto;border:1px solid #7ae2a9;box-shadow:none!important}#sendButton[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-left:3px!important;margin-bottom:2px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#6b6b6b}.chatComponentLight[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#eee!important}"]}),e}(),SM=function(){function e(){this.ovSettings={chat:!0,autopublish:!1,toolbar:!0,footer:!0,toolbarButtons:{video:!0,audio:!0,fullscreen:!0,screenShare:!0,layoutSpeaking:!0,exit:!0}}}return e.prototype.set=function(e){this.ovSettings=e},e.prototype.isAutoPublish=function(){return this.ovSettings.autopublish},e.prototype.hasVideo=function(){return this.ovSettings.toolbarButtons.video},e.prototype.hasScreenSharing=function(){return this.ovSettings.toolbarButtons.screenShare},e.prototype.hasLayoutSpeaking=function(){return this.ovSettings.toolbarButtons.layoutSpeaking},e.prototype.hasFullscreen=function(){return this.ovSettings.toolbarButtons.fullscreen},e.prototype.hasAudio=function(){return this.ovSettings.toolbarButtons.audio},e.prototype.hasChat=function(){return this.ovSettings.chat},e.prototype.hasExit=function(){return this.ovSettings.toolbarButtons.exit},e.prototype.setScreenSharing=function(e){this.ovSettings.toolbarButtons.screenShare=e},e.prototype.hasFooter=function(){return this.ovSettings.footer},e.prototype.hasToolbar=function(){return this.ovSettings.toolbar},e}(),CM=function(e){return e.DARK="dark",e.LIGHT="light",e}({}),EM=function(){function e(){this.theme=CM.DARK,this.ovSettings=new SM}return e.prototype.getComponentName=function(){},e.prototype.getOvSettings=function(){return this.ovSettings},e.prototype.getSessionName=function(){return this.sessionName},e.prototype.getOvServerUrl=function(){return this.ovServerUrl},e.prototype.getOvSecret=function(){return this.ovSecret},e.prototype.getTheme=function(){return this.theme},e.prototype.getNickname=function(){return this.nickname},e.prototype.getTokens=function(){return this.tokens},e.prototype.getScreenToken=function(){return this.tokens[1]},e.prototype.getWebcamToken=function(){return this.tokens[0]},e.prototype.setOvSettings=function(e){e&&this.ovSettings.set(e)},e.prototype.setSessionName=function(e){this.sessionName=e},e.prototype.setOvServerUrl=function(e){this.ovServerUrl=e},e.prototype.setOvSecret=function(e){this.ovSecret=e},e.prototype.setTheme=function(e){Object.values(CM).includes(e)&&(this.theme=e===CM.DARK?CM.DARK:CM.LIGHT)},e.prototype.setNickname=function(e){this.nickname=e},e.prototype.setTokens=function(e){this.tokens=e},e.prototype.canJoinToSession=function(){return this.canOVCallGenerateToken()||this.hasReceivedToken()},e.prototype.hasTokens=function(){var e;return(null===(e=this.tokens)||void 0===e?void 0:e.length)>0},e.prototype.canOVCallGenerateToken=function(){return!!(this.sessionName&&this.ovServerUrl&&this.ovSecret&&this.nickname)},e.prototype.hasReceivedToken=function(){return!!this.tokens&&this.tokens.length>0&&!!this.nickname},e}(),xM=function(e){return e.USER_NICKNAME="openviduCallNickname",e.VIDEO_DEVICE="openviduCallVideoDevice",e.AUDIO_DEVICE="openviduCallAudioDevice",e}({}),OM=function(e){return e.FRONT="FRONT",e.BACK="BACK",e}({}),TM=function(){function e(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}return e.prototype.set=function(e,t){var n=JSON.stringify({item:t});this.storage.setItem(e,n)},e.prototype.get=function(e){var t=JSON.parse(this.storage.getItem(e));return(null==t?void 0:t.item)?t.item:null},e.prototype.clear=function(){this.log.d("Clearing localStorage"),this.storage.clear()},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM))},providedIn:"root"}),e}(),IM=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(WP){o(WP)}}function s(e){try{c(i.throw(e))}catch(WP){o(WP)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},PM=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},MM=function(){function e(e,t,n){this.loggerSrv=e,this.utilSrv=t,this.storageSrv=n,this.OV=null,this.cameras=[],this.microphones=[],this.log=this.loggerSrv.get("DevicesService"),this.OV=new hM.Dn}return e.prototype.initDevices=function(){return IM(this,void 0,void 0,function(){return PM(this,function(e){switch(e.label){case 0:return[4,this.initOpenViduDevices()];case 1:return e.sent(),this.devices.length>0?this.log.d("Devices found: ",this.devices):this.log.w("No devices found!"),this.resetDevicesArray(),this.hasAudioDeviceAvailable()&&(this.initAudioDevices(),this.micSelected=this.getMicSelected()),this.hasVideoDeviceAvailable()&&(this.initVideoDevices(),this.camSelected=this.cameras.find(function(e){return e.type===OM.FRONT})),[2]}})})},e.prototype.initOpenViduDevices=function(){return IM(this,void 0,void 0,function(){var e;return PM(this,function(t){switch(t.label){case 0:return e=this,[4,this.OV.getDevices()];case 1:return e.devices=t.sent(),[2]}})})},e.prototype.initAudioDevices=function(){var e=this;this.devices.filter(function(e){return"audioinput"===e.kind}).forEach(function(t){e.microphones.push({label:t.label,device:t.deviceId})})},e.prototype.initVideoDevices=function(){var e=this;this.devices.filter(function(e){return"videoinput"===e.kind}).forEach(function(t,n){var i={label:t.label,device:t.deviceId,type:OM.BACK};e.utilSrv.isMobile()?i.label.toLowerCase().includes(OM.FRONT.toLowerCase())&&(i.type=OM.FRONT):0===n&&(i.type=OM.FRONT),e.cameras.push(i)}),this.log.d("Camera selected",this.camSelected)},e.prototype.getCamSelected=function(){if(0!==this.cameras.length)return this.getCamFromStorage()||this.camSelected||this.cameras[0];this.log.e("No video devices found!")},e.prototype.getCamFromStorage=function(){var e=this.storageSrv.get(xM.VIDEO_DEVICE);if(e=this.getCameraByDeviceField(null==e?void 0:e.device))return e},e.prototype.getMicSelected=function(){if(0!==this.microphones.length)return this.getMicFromStogare()||this.micSelected||this.microphones[0];this.log.e("No audio devices found!")},e.prototype.getMicFromStogare=function(){var e=this.storageSrv.get(xM.AUDIO_DEVICE);if(e=this.getMicrophoneByDeviceField(null==e?void 0:e.device))return e},e.prototype.setCamSelected=function(e){this.camSelected=this.getCameraByDeviceField(e),this.saveCamToStorage(this.camSelected)},e.prototype.saveCamToStorage=function(e){this.storageSrv.set(xM.VIDEO_DEVICE,e)},e.prototype.setMicSelected=function(e){this.micSelected=this.getMicrophoneByDeviceField(e),this.saveMicToStorage(this.micSelected)},e.prototype.saveMicToStorage=function(e){this.storageSrv.set(xM.AUDIO_DEVICE,e)},e.prototype.needUpdateVideoTrack=function(e){return this.getCamSelected().device!==e},e.prototype.needUpdateAudioTrack=function(e){return this.getMicSelected().device!==e},e.prototype.getCameras=function(){return this.cameras},e.prototype.getMicrophones=function(){return this.microphones},e.prototype.hasVideoDeviceAvailable=function(){var e;return!this.videoDevicesDisabled&&!!(null===(e=this.devices)||void 0===e?void 0:e.find(function(e){return"videoinput"===e.kind}))},e.prototype.hasAudioDeviceAvailable=function(){var e;return!this.audioDevicesDisabled&&!!(null===(e=this.devices)||void 0===e?void 0:e.find(function(e){return"audioinput"===e.kind}))},e.prototype.cameraNeedsMirror=function(e){var t;return(null===(t=this.getCameraByDeviceField(e))||void 0===t?void 0:t.type)===OM.FRONT},e.prototype.areEmptyLabels=function(){return!!this.cameras.find(function(e){return""===e.label})||!!this.microphones.find(function(e){return""===e.label})},e.prototype.disableVideoDevices=function(){this.videoDevicesDisabled=!0},e.prototype.disableAudioDevices=function(){this.audioDevicesDisabled=!0},e.prototype.clear=function(){this.OV=new hM.Dn,this.devices=[],this.cameras=[],this.microphones=[],this.camSelected=null,this.micSelected=null,this.videoDevicesDisabled=!1,this.audioDevicesDisabled=!1},e.prototype.getCameraByDeviceField=function(e){return this.cameras.find(function(t){return t.device===e||t.label===e})},e.prototype.getMicrophoneByDeviceField=function(e){return this.microphones.find(function(t){return t.device===e||t.label===e})},e.prototype.resetDevicesArray=function(){this.cameras=[{label:"None",device:null,type:null}],this.microphones=[{label:"None",device:null,type:null}]},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM),ji(aM),ji(TM))},providedIn:"root"}),e}(),AM=function(){function e(){}return e.prototype.updateLayout=function(){var e=this;setTimeout(function(){var t,n;if("none"!==(null===(n=null===(t=e.layoutContainer)||void 0===t?void 0:t.style)||void 0===n?void 0:n.display)){var i=e.layoutContainer.id;i||(i="OT_"+e.cheapUUID(),e.layoutContainer.id=i);var r=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">."+e.opts.smallClass),e.filterDisplayNone),o=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">."+e.opts.bigClass),e.filterDisplayNone).filter(function(e){return!r.includes(e)}),a=Array.prototype.filter.call(e.layoutContainer.querySelectorAll("#"+i+">*:not(."+e.opts.bigClass+")"),e.filterDisplayNone).filter(function(e){return!r.includes(e)});e.attachElements(o,a,r)}},50)},e.prototype.initLayoutContainer=function(e,t){this.opts={maxRatio:null!=t.maxRatio?t.maxRatio:1.5,minRatio:null!=t.minRatio?t.minRatio:9/16,fixedRatio:null!=t.fixedRatio&&t.fixedRatio,animate:null!=t.animate&&t.animate,bigClass:null!=t.bigClass?t.bigClass:"OT_big",smallClass:null!=t.smallClass?t.smallClass:"OT_small",bigPercentage:null!=t.bigPercentage?t.bigPercentage:.8,bigFixedRatio:null!=t.bigFixedRatio&&t.bigFixedRatio,bigMaxRatio:null!=t.bigMaxRatio?t.bigMaxRatio:1.5,bigMinRatio:null!=t.bigMinRatio?t.bigMinRatio:9/16,bigFirst:null==t.bigFirst||t.bigFirst},this.layoutContainer=e},e.prototype.setLayoutOptions=function(e){this.opts=e},e.prototype.fixAspectRatio=function(e,t){var n=e.querySelector(".OT_root");if(n){var i=n.style.width;n.style.width=t+"px",n.style.width=i||""}},e.prototype.positionElement=function(e,t,n,i,r,o){var a=this,s={left:t+"px",top:n+"px",width:i+"px",height:r+"px"};this.fixAspectRatio(e,i),setTimeout(function(){e.style.left=s.left,e.style.top=s.top,e.style.width=s.width,e.style.height=s.height,a.fixAspectRatio(e,i)},10)},e.prototype.getVideoRatio=function(e){if(!e)return 3/4;var t=e.querySelector("video");return t&&t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:3/4},e.prototype.getCSSNumber=function(e,t){var n=window.getComputedStyle(e)[t];return n?parseInt(n,10):0},e.prototype.cheapUUID=function(){return(1e8*Math.random()).toFixed(0)},e.prototype.getHeight=function(e){var t=window.getComputedStyle(e).height;return t?parseInt(t,10):0},e.prototype.getWidth=function(e){var t=window.getComputedStyle(e).width;return t?parseInt(t,10):0},e.prototype.getBestDimensions=function(e,t,n,i,r,o){for(var a,s,c,u,l,h,d,f=1;f<=n;f++){var p=f,v=Math.ceil(n/p);(d=(h=Math.floor(r/v))/(l=Math.floor(i/p)))>t?h=l*(d=t):d<e&&(l=h/(d=e));var m=l*h*n;(void 0===a||m>a)&&(a=m,o=h,u=l,s=p,c=v)}return{maxArea:a,targetCols:s,targetRows:c,targetHeight:o,targetWidth:u,ratio:o/u}},e.prototype.arrange=function(e,t,n,i,r,o,a,s,c){var u,l,h=e.length;if(o){var d=this.getVideoRatio(e.length>0?e[0]:null);l=this.getBestDimensions(d,d,h,t,n,u)}else l=this.getBestDimensions(a,s,h,t,n,u);for(var f,p=0,v=0,m=[],g=0;g<e.length;g++){g%l.targetCols==0&&m.push(f={children:[],width:0,height:0}),f.children.push(C=e[g]);var y=l.targetWidth;u=l.targetHeight,o&&(y=u/this.getVideoRatio(C)),f.width+=y,f.height=u}var b=0,_=0;for(g=0;g<m.length;g++)(f=m[g]).width>t?(f.height=Math.floor(f.height*(t/f.width)),f.width=t):f.width<t&&(_+=1),b+=f.height;if(b<n&&_>0){var k=n-b;for(b=0,g=0;g<m.length;g++){if((f=m[g]).width<t){var w=k/_;w/f.height>(t-f.width)/f.width&&(w=Math.floor((t-f.width)/f.width*f.height)),f.width+=Math.floor(w/f.height*f.width),f.height+=w,k-=w,_-=1}b+=f.height}}for(v=(n-b)/2,g=0;g<m.length;g++){p=(t-(f=m[g]).width)/2;for(var S=0;S<f.children.length;S++){var C=f.children[S];y=l.targetWidth,u=f.height,o&&(y=Math.floor(u/this.getVideoRatio(C))),C.style.position="absolute";var E=y-this.getCSSNumber(C,"paddingLeft")-this.getCSSNumber(C,"paddingRight")-this.getCSSNumber(C,"marginLeft")-this.getCSSNumber(C,"marginRight")-this.getCSSNumber(C,"borderLeft")-this.getCSSNumber(C,"borderRight"),x=u-this.getCSSNumber(C,"paddingTop")-this.getCSSNumber(C,"paddingBottom")-this.getCSSNumber(C,"marginTop")-this.getCSSNumber(C,"marginBottom")-this.getCSSNumber(C,"borderTop")-this.getCSSNumber(C,"borderBottom");this.positionElement(C,p+i,v+r,E,x,c),p+=y}v+=u}},e.prototype.attachElements=function(e,t,n){var i=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),r=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight");if(this.existBigAndNormalOnes(e,t,n))this.arrangeBigAndSmallOnes(e.length>0?e:t,n.length>0?n:t);else if(this.onlyExistBigOnes(e,t,n))this.arrange(e,r,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate);else if(this.existBigAndNormalAndSmallOnes(e,t,n))this.arrangeBigAndSmallOnes(e,t.concat(n));else{var o=t.concat(n);this.arrange(o,r-0,i-0,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}},e.prototype.arrangeBigAndSmallOnes=function(e,t){var n,i,r=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),o=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight"),a=0,s=0,c=0,u=0;r/o>this.getVideoRatio(e[0])?(n=o,c=r-(s=i=Math.floor(r*this.opts.bigPercentage))):(i=r,u=o-(a=n=Math.floor(o*this.opts.bigPercentage))),this.opts.bigFirst?(this.arrange(e,n,i,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(t,o-a,r-s,a,s,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(t,o-a,r-s,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(e,n,i,u,c,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))},e.prototype.existBigAndNormalOnes=function(e,t,n){return e.length>0&&t.length>0&&0===n.length||e.length>0&&0===t.length&&n.length>0||0===e.length&&t.length>0&&n.length>0},e.prototype.onlyExistBigOnes=function(e,t,n){return e.length>0&&0===t.length&&0===n.length},e.prototype.existBigAndNormalAndSmallOnes=function(e,t,n){return e.length>0&&t.length>0&&n.length>0},e.prototype.filterDisplayNone=function(e){return"none"!==e.style.display},e}(),RM=function(){function e(){}return e.prototype.initialize=function(e){var t=this;void 0===e&&(e=null),e?setTimeout(function(){t._initialize()},e):this._initialize()},e.prototype._initialize=function(){this.openviduLayout=new AM,this.openviduLayoutOptions=this.getOptions(),this.openviduLayout.initLayoutContainer(document.getElementById("layout"),this.openviduLayoutOptions)},e.prototype.getOptions=function(){return{maxRatio:1.5,minRatio:.6,fixedRatio:!1,bigClass:iM.BIG_ELEMENT,smallClass:iM.SMALL_ELEMENT,bigPercentage:.85,bigFixedRatio:!1,bigMaxRatio:1.5,bigMinRatio:9/16,bigFirst:!0,animate:!0}},e.prototype.update=function(e){var t=this;if(this.openviduLayout){if(!e)return void this.openviduLayout.updateLayout();setTimeout(function(){t.openviduLayout.updateLayout()},e)}},e.prototype.getLayout=function(){return this.openviduLayout},e.prototype.clear=function(){this.openviduLayout=null},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}(),NM=n(36969),LM=n(41331),DM=function(){function e(e,t){this.http=e,this.loggerSrv=t,this.log=this.loggerSrv.get("NetworkService"),this.baseHref="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":"")}return e.prototype.getToken=function(e,t,n){return i=this,void 0,o=function(){var i,r;return function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(o){switch(o.label){case 0:return t&&n?[4,this.createSession(e,t,n)]:[3,3];case 1:return i=o.sent(),[4,this.createToken(i,t,n)];case 2:return[2,o.sent()];case 3:return o.trys.push([3,5,,6]),this.log.d("Getting token from backend"),[4,this.http.post(this.baseHref+"call",{sessionId:e}).toPromise()];case 4:return[2,o.sent()];case 5:if(404===(r=o.sent()).status)throw{status:r.status,message:"Cannot connect with backend. "+r.url+" not found"};throw r;case 6:return[2]}})},new((r=void 0)||(r=Promise))(function(e,t){function n(e){try{s(o.next(e))}catch(WP){t(WP)}}function a(e){try{s(o.throw(e))}catch(WP){t(WP)}}function s(t){var i;t.done?e(t.value):(i=t.value,i instanceof r?i:new r(function(e){e(i)})).then(n,a)}s((o=o.apply(i,[])).next())});var i,r,o},e.prototype.createSession=function(e,t,n){var i=this;return new Promise(function(r,o){var a=JSON.stringify({customSessionId:e}),s={headers:new Aw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions",a,s).pipe((0,LM.catchError)(function(t){return 409===t.status&&r(e),"Unknown Error"===t.statusText&&o({status:401,message:"ERR_CERT_AUTHORITY_INVALID"}),(0,NM._)(t)})).subscribe(function(e){r(e.id)})})},e.prototype.createToken=function(e,t,n){var i=this;return new Promise(function(r,o){var a=JSON.stringify({}),s={headers:new Aw({Authorization:"Basic "+btoa("OPENVIDUAPP:"+n),"Content-Type":"application/json"})};return i.http.post(t+"/openvidu/api/sessions/"+e+"/connection",a,s).pipe((0,LM.catchError)(function(e){return o(e),(0,NM._)(e)})).subscribe(function(e){i.log.d(e),r(e.token)})})},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(Qw),ji(eM))},providedIn:"root"}),e}(),VM=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(WP){o(WP)}}function s(e){try{c(i.throw(e))}catch(WP){o(WP)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},jM=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},FM=function(){function e(e,t){this.loggerSrv=e,this.networkSrv=t,this.webcamToken="",this.screenToken="",this.sessionId="",this.log=this.loggerSrv.get("TokenService")}return e.prototype.initialize=function(e){this.ovSettings=e},e.prototype.setSessionId=function(e){this.sessionId=e},e.prototype.getSessionId=function(){return this.sessionId},e.prototype.initTokens=function(e){var t,n;return VM(this,void 0,void 0,function(){return jM(this,function(i){switch(i.label){case 0:return e&&e.hasTokens()?(this.log.d("Received external tokens from "+e.getComponentName()),this.webcamToken=e.getWebcamToken(),this.screenToken=(null===(t=this.ovSettings)||void 0===t?void 0:t.hasScreenSharing())?e.getScreenToken():void 0,[2]):(this.log.d("No external tokens received. Generating token..."),[4,this.generateWebcamToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]);case 1:return i.sent(),(null===(n=this.ovSettings)||void 0===n?void 0:n.hasScreenSharing())?[4,this.generateScreenToken(this.sessionId,null==e?void 0:e.getOvServerUrl(),null==e?void 0:e.getOvSecret())]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.getWebcamToken=function(){return this.webcamToken},e.prototype.getScreenToken=function(){return this.screenToken},e.prototype.generateWebcamToken=function(e,t,n){return VM(this,void 0,void 0,function(){var i;return jM(this,function(r){switch(r.label){case 0:return this.log.d("Generating webcam token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.webcamToken=r.sent(),[2]}})})},e.prototype.generateScreenToken=function(e,t,n){return VM(this,void 0,void 0,function(){var i;return jM(this,function(r){switch(r.label){case 0:return this.log.d("Generating screen token..."),i=this,[4,this.networkSrv.getToken(e,t,n)];case 1:return i.screenToken=r.sent(),[2]}})})},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(eM),ji(DM))},providedIn:"root"}),e}(),BM=function(){function e(){}return e.prototype.isErrorState=function(e,t){return!!(e&&e.invalid&&(e.dirty||e.touched||t&&t.submitted))},e}(),UM=n(51860),zM=["videoElement"];function HM(e,t){1&e&&ds(0,"img",3)}var WM=function(){function e(){this.toggleVideoSizeEvent=new Eu}return e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e._streamManager&&e._videoElement&&e._streamManager.addVideoElement(e._videoElement.nativeElement)})},Object.defineProperty(e.prototype,"videoElement",{set:function(e){this._videoElement=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"streamManager",{set:function(e){var t=this;setTimeout(function(){t._streamManager=e,t._videoElement&&t._streamManager&&(t._streamManager.stream.typeOfVideo===JP.SCREEN?(t._videoElement.nativeElement.style.objectFit="contain",t._videoElement.nativeElement.style.background="#272727",t.enableVideoSizeBig()):t._videoElement.nativeElement.style.objectFit="cover",t._streamManager.addVideoElement(t._videoElement.nativeElement))})},enumerable:!1,configurable:!0}),e.prototype.enableVideoSizeBig=function(){var e=this;setTimeout(function(){e.toggleVideoSizeEvent.emit(!0)},590)},e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({type:e,selectors:[["ov-video"]],viewQuery:function(e,t){var n;1&e&&ju(zM,5),2&e&&Vu(n=Bu())&&(t.videoElement=n.first)},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},outputs:{toggleVideoSizeEvent:"toggleVideoSizeEvent"},decls:3,vars:3,consts:[["class","poster_img","alt","OpenVidu Logo","src","assets/images/poster.png",4,"ngIf"],[3,"muted"],["videoElement",""],["alt","OpenVidu Logo","src","assets/images/poster.png",1,"poster_img"]],template:function(e,t){1&e&&(os(0,HM,1,0,"img",0),ds(1,"video",1,2)),2&e&&(cs("ngIf",!(null!=t._streamManager&&null!=t._streamManager.stream&&t._streamManager.stream.videoActive)),Mo(1),cs("muted",t.mutedSound),is("id",t.streamManager&&t._streamManager.stream?"video-"+t._streamManager.stream.streamId:"video-undefined"))},directives:[bh],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:#0000005e;border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0px}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),GM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasChat()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasChat",type:e,pure:!0}),e}(),qM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasAudio()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasAudio",type:e,pure:!0}),e}(),ZM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasVideo()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasVideo",type:e,pure:!0}),e}(),YM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.isAutoPublish()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"isAutoPublish",type:e,pure:!0}),e}(),QM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasScreenSharing()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasScreenSharing",type:e,pure:!0}),e}(),KM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFullscreen()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasFullscreen",type:e,pure:!0}),e}(),JM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasLayoutSpeaking()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasLayoutSpeaking",type:e,pure:!0}),e}(),XM=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasExit()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasExit",type:e,pure:!0}),e}(),$M=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasToolbar()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasToolbar",type:e,pure:!0}),e}(),eA=function(){function e(){}return e.prototype.transform=function(e){return!e||e.hasFooter()},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"hasFooter",type:e,pure:!0}),e}(),tA=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(WP){o(WP)}}function s(e){try{c(i.throw(e))}catch(WP){o(WP)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},nA=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},iA=["bodyCard"];function rA(e,t){if(1&e&&ds(0,"ov-video",35),2&e){var n=Cs(),i=n.$implicit,r=n.index,o=Cs(2);cs("streamManager",i.streamManager)("className",o.localUsers.length>1&&0===r?"ovVideoSmall":"")}}function oA(e,t){1&e&&(ls(0,"span"),Ys(1,"Oops! Camera and microphone are not available"),hs())}function aA(e,t){1&e&&(ls(0,"span"),Ys(1,"Oops! Camera is not available"),hs())}function sA(e,t){1&e&&(ls(0,"span"),Ys(1,"Oops! Microphone is not available"),hs())}function cA(e,t){if(1&e&&(ls(0,"div",36),os(1,oA,2,0,"span",29),os(2,aA,2,0,"span",29),os(3,sA,2,0,"span",29),hs()),2&e){var n=Cs(3);Mo(1),cs("ngIf",!n.hasVideoDevices&&!n.hasAudioDevices),Mo(1),cs("ngIf",!n.hasVideoDevices&&n.hasAudioDevices),Mo(1),cs("ngIf",n.hasVideoDevices&&!n.hasAudioDevices)}}function uA(e,t){if(1&e&&(ls(0,"div"),os(1,rA,1,2,"ov-video",33),os(2,cA,4,3,"div",34),hs()),2&e){var n=t.$implicit,i=Cs(2);Mo(1),cs("ngIf",n.isCamera()&&i.hasVideoDevices||n.isScreen()),Mo(1),cs("ngIf",n.isCamera()&&!i.hasVideoDevices)}}function lA(e,t){if(1&e){var n=vs();ls(0,"div",37),ls(1,"button",38),bs("click",function(){return an(n),Cs(2).captureAvatar()}),ls(2,"mat-icon",39),Ys(3,"photo_camera"),hs(),ls(4,"span",40),Ys(5,"Capture Avatar"),hs(),hs(),hs()}}function hA(e,t){1&e&&(ls(0,"div",41),ls(1,"h3"),Ys(2,"Avatar"),hs(),hs())}function dA(e,t){1&e&&(ls(0,"div",47),ls(1,"span"),Ys(2,"Press Avatar Button"),hs(),hs())}function fA(e,t){1&e&&ds(0,"img",48),2&e&&cs("src",Cs(3).capturedAvatar,Pr)}function pA(e,t){1&e&&ds(0,"img",48),2&e&&cs("src",Cs(3).openviduAvatar,Pr)}function vA(e,t){if(1&e){var n=vs();ls(0,"div",42),ls(1,"div",43),ls(2,"div",44),bs("click",function(){an(n);var e=Cs(2);return e.onSelectAvatar(e.avatarTypeEnum.CAPTURED)}),os(3,dA,3,0,"div",45),os(4,fA,1,1,"img",46),hs(),ls(5,"div",44),bs("click",function(){an(n);var e=Cs(2);return e.onSelectAvatar(e.avatarTypeEnum.DEFAULT)}),os(6,pA,1,1,"img",46),hs(),hs(),hs()}if(2&e){var i=Cs(2);Mo(2),Ds("background",i.avatarSelected===i.avatarTypeEnum.CAPTURED?"lightgreen":"transparent"),Mo(1),cs("ngIf",!i.capturedAvatar),Mo(1),cs("ngIf",i.capturedAvatar),Mo(1),Ds("background",i.avatarSelected===i.avatarTypeEnum.DEFAULT?"lightgreen":"transparent"),Mo(1),cs("ngIf",i.openviduAvatar)}}function mA(e,t){1&e&&(ls(0,"mat-error"),Ys(1," Nickname is "),ls(2,"strong"),Ys(3,"required"),hs(),hs())}function gA(e,t){1&e&&(ls(0,"mat-error"),Ys(1," Nickname is "),ls(2,"strong"),Ys(3,"too long!"),hs(),hs())}function yA(e,t){1&e&&(ls(0,"mat-icon",55),Ys(1,"mic"),hs())}function bA(e,t){1&e&&(ls(0,"mat-icon",56),Ys(1,"mic_off"),hs())}function _A(e,t){if(1&e&&(ls(0,"mat-option",57),Ys(1),hs()),2&e){var n=t.$implicit;cs("value",n.device),Mo(1),Ks(" ",n.label," ")}}function kA(e,t){if(1&e){var n=vs();ls(0,"div",21),ls(1,"div",22),ls(2,"div",23),ls(3,"button",49),bs("click",function(){return an(n),Cs(2).toggleMic()}),os(4,yA,2,0,"mat-icon",50),os(5,bA,2,0,"mat-icon",51),hs(),hs(),ls(6,"div",26),ls(7,"mat-form-field",52),ls(8,"mat-select",53),bs("selectionChange",function(e){return an(n),Cs(2).onMicrophoneSelected(e)}),os(9,_A,2,2,"mat-option",54),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=Cs(2);Mo(4),cs("ngIf",i.isAudioActive),Mo(1),cs("ngIf",!i.isAudioActive),Mo(3),cs("ngModel",i.isAudioActive&&i.micSelected?i.micSelected.device:"None"),Mo(1),cs("ngForOf",i.microphones)}}function wA(e,t){1&e&&(ls(0,"mat-icon",62),Ys(1,"videocam"),hs())}function SA(e,t){1&e&&(ls(0,"mat-icon",63),Ys(1,"videocam_off"),hs())}function CA(e,t){if(1&e&&(ls(0,"mat-option",57),Ys(1),hs()),2&e){var n=t.$implicit;cs("value",n.device),Mo(1),Ks(" ",n.label," ")}}function EA(e,t){if(1&e){var n=vs();ls(0,"div",21),ls(1,"div",22),ls(2,"div",23),ls(3,"button",58),bs("click",function(){return an(n),Cs(2).toggleCam()}),os(4,wA,2,0,"mat-icon",59),os(5,SA,2,0,"mat-icon",60),hs(),hs(),ls(6,"div",26),ls(7,"mat-form-field",52),ls(8,"mat-select",61),bs("selectionChange",function(e){return an(n),Cs(2).onCameraSelected(e)}),os(9,CA,2,2,"mat-option",54),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=Cs(2);Mo(4),cs("ngIf",i.isVideoActive),Mo(1),cs("ngIf",!i.isVideoActive),Mo(3),cs("ngModel",i.isVideoActive&&i.camSelected?i.camSelected.device:"None"),Mo(1),cs("ngForOf",i.cameras)}}function xA(e,t){1&e&&(ls(0,"mat-icon",68),Ys(1,"screen_share"),hs())}function OA(e,t){1&e&&(ls(0,"mat-icon",69),Ys(1," stop_screen_share"),hs())}function TA(e,t){if(1&e){var n=vs();ls(0,"div",21),ls(1,"div",22),ls(2,"div",23),ls(3,"button",64),bs("click",function(){return an(n),Cs(2).toggleScreenShare()}),os(4,xA,2,0,"mat-icon",65),os(5,OA,2,0,"mat-icon",66),hs(),hs(),ls(6,"div",26),ls(7,"mat-form-field",52),ds(8,"input",67),hs(),hs(),hs(),hs()}if(2&e){var i=Cs(2);Mo(4),cs("ngIf",i.screenShareEnabled),Mo(1),cs("ngIf",!i.screenShareEnabled),Mo(3),cs("ngModel",i.screenShareEnabled?"Screen":"None")}}function IA(e,t){if(1&e){var n=vs();ls(0,"div",2),ls(1,"div",3),ls(2,"div",4),ls(3,"div",5),ls(4,"div",6),ds(5,"img",7),hs(),ls(6,"h3",8),Ys(7),hs(),ls(8,"button",9),bs("click",function(){return an(n),Cs().close()}),ls(9,"mat-icon",10),Ys(10,"highlight_off"),hs(),hs(),hs(),ls(11,"div",11,12),ls(13,"div",13),ls(14,"div",14),ls(15,"div",15),os(16,uA,3,2,"div",16),hs(),os(17,lA,6,0,"div",17),hs(),ls(18,"div",18),os(19,hA,3,0,"div",19),os(20,vA,7,7,"div",20),ls(21,"div",21),ls(22,"div",22),ls(23,"div",23),ls(24,"button",24),ls(25,"mat-icon",25),Ys(26,"person"),hs(),hs(),hs(),ls(27,"div",26),ls(28,"form",27),ls(29,"mat-form-field"),ls(30,"input",28),bs("keypress",function(e){return an(n),Cs().eventKeyPress(e)}),hs(),os(31,mA,4,0,"mat-error",29),os(32,gA,4,0,"mat-error",29),hs(),hs(),hs(),hs(),hs(),os(33,kA,10,4,"div",30),wu(34,"hasAudio"),os(35,EA,10,4,"div",30),wu(36,"hasVideo"),os(37,TA,9,3,"div",30),wu(38,"hasScreenSharing"),hs(),hs(),hs(),ls(39,"div",31),ls(40,"button",32),bs("click",function(){return an(n),Cs().joinSession()}),Ys(41,"JOIN"),hs(),hs(),hs(),hs(),hs()}if(2&e){var i=Cs();Mo(7),Qs(i.mySessionId),Mo(9),cs("ngForOf",i.localUsers),Mo(1),cs("ngIf",i.hasVideoDevices),Mo(2),cs("ngIf",i.hasVideoDevices),Mo(1),cs("ngIf",i.hasVideoDevices),Mo(10),cs("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Mo(1),cs("ngIf",i.nicknameFormControl.hasError("required")),Mo(1),cs("ngIf",i.nicknameFormControl.hasError("maxlength")),Mo(1),cs("ngIf",i.hasAudioDevices&&Su(34,12,i.ovSettings)),Mo(2),cs("ngIf",i.hasVideoDevices&&Su(36,14,i.ovSettings)),Mo(2),cs("ngIf",Su(38,16,i.ovSettings))}}var PA=function(e){return{display:e}},MA=function(){function e(e,t,n,i,r,o,a,s,c){this.route=e,this.utilsSrv=t,this.openViduWebRTCService=n,this.localUsersService=i,this.tokenService=r,this.oVDevicesService=o,this.loggerSrv=a,this.storageSrv=s,this.avatarService=c,this.join=new Eu,this.leaveSession=new Eu,this.publisherCreated=new Eu,this.isVideoActive=!0,this.isAudioActive=!0,this.localUsers=[],this.avatarTypeEnum=cM,this.nicknameFormControl=new kf("",[Rd.maxLength(25),Rd.required]),this.matcher=new BM,this.log=this.loggerSrv.get("RoomConfigComponent")}return e.prototype.beforeunloadHandler=function(){this.close()},e.prototype.ngOnInit=function(){return tA(this,void 0,void 0,function(){return nA(this,function(e){switch(e.label){case 0:return this.subscribeToLocalUsersEvents(),this.initNicknameAndSubscribeToChanges(),this.openviduAvatar=this.avatarService.getOpenViduAvatar(),this.columns=window.innerWidth>900?2:1,this.setSessionName(),[4,this.oVDevicesService.initDevices()];case 1:return e.sent(),this.setDevicesInfo(),this.hasAudioDevices||this.hasVideoDevices?[4,this.initwebcamPublisher()]:[3,3];case 2:return e.sent(),[3,4];case 3:this.emitPublisher(null),this.showConfigCard=!0,e.label=4;case 4:return[2]}})})},e.prototype.ngOnDestroy=function(){this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.oVDevicesService.clear()},e.prototype.onCameraSelected=function(e){return tA(this,void 0,void 0,function(){var t,n;return nA(this,function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateVideoTrack(t)?(n=this.oVDevicesService.cameraNeedsMirror(t),[4,this.openViduWebRTCService.replaceTrack(t,null,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setCamSelected(t),this.camSelected=this.oVDevicesService.getCamSelected(),i.label=2;case 2:return this.openViduWebRTCService.publishWebcamVideo(!0),this.isVideoActive=!0,[2];case 3:return this.openViduWebRTCService.publishWebcamVideo(!1),this.isVideoActive=!1,[2]}})})},e.prototype.onMicrophoneSelected=function(e){return tA(this,void 0,void 0,function(){var t,n;return nA(this,function(i){switch(i.label){case 0:return(t=null==e?void 0:e.value)?this.oVDevicesService.needUpdateAudioTrack(t)?(console.log(this.camSelected),n=this.oVDevicesService.cameraNeedsMirror(this.camSelected.device),[4,this.openViduWebRTCService.replaceTrack(null,t,n)]):[3,2]:[3,3];case 1:i.sent(),this.oVDevicesService.setMicSelected(t),this.micSelected=this.oVDevicesService.getMicSelected(),i.label=2;case 2:return this.publishAudio(!0),this.isAudioActive=!0,[2];case 3:return this.publishAudio(!1),this.isAudioActive=!1,[2]}})})},e.prototype.toggleCam=function(){this.isVideoActive=!this.isVideoActive,this.openViduWebRTCService.publishWebcamVideo(this.isVideoActive),this.localUsersService.areBothConnected()?(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.publishScreenAudio(this.isAudioActive)):this.localUsersService.isOnlyScreenConnected()&&this.localUsersService.enableWebcamUser()},e.prototype.toggleScreenShare=function(){var e=this;if(this.localUsersService.areBothConnected())this.localUsersService.disableScreenUser();else{if(this.localUsersService.isOnlyWebcamConnected()){var t=this.initScreenPublisher();return t.on("accessAllowed",function(n){t.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",function(){e.log.d("Clicked native stop button. Stopping screen sharing"),e.toggleScreenShare()}),e.localUsersService.enableScreenUser(t),e.localUsersService.hasWebcamVideoActive()||e.localUsersService.disableWebcamUser()}),void t.on("accessDenied",function(t){e.log.w("ScreenShare: Access Denied")})}this.localUsersService.enableWebcamUser(),this.localUsersService.disableScreenUser()}},e.prototype.toggleMic=function(){this.isAudioActive=!this.isAudioActive,this.publishAudio(this.isAudioActive)},e.prototype.captureAvatar=function(){this.capturedAvatar=this.avatarService.createCapture()},e.prototype.initNicknameAndSubscribeToChanges=function(){var e=this;if(this.externalConfig)return this.nicknameFormControl.setValue(this.externalConfig.getNickname()),void this.localUsersService.updateUsersNickname(this.externalConfig.getNickname());var t=this.storageSrv.get(xM.USER_NICKNAME)||this.utilsSrv.generateNickname();this.nicknameFormControl.setValue(t),this.localUsersService.updateUsersNickname(t),this.nicknameFormControl.valueChanges.subscribe(function(t){e.localUsersService.updateUsersNickname(t),e.storageSrv.set(xM.USER_NICKNAME,t)})},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&this.joinSession()},e.prototype.onResize=function(e){this.columns=e.target.innerWidth>900?2:1},e.prototype.joinSession=function(){if(this.nicknameFormControl.valid)return this.avatarService.setFinalAvatar(this.avatarSelected),this.join.emit();this.scrollToBottom()},e.prototype.close=function(){this.leaveSession.emit(),this.showConfigCard=!1},e.prototype.onSelectAvatar=function(e){this.avatarSelected=e},e.prototype.setDevicesInfo=function(){this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.microphones=this.oVDevicesService.getMicrophones(),this.cameras=this.oVDevicesService.getCameras(),this.camSelected=this.oVDevicesService.getCamSelected(),this.micSelected=this.oVDevicesService.getMicSelected()},e.prototype.setSessionName=function(){var e=this;this.route.params.subscribe(function(t){e.mySessionId=e.externalConfig?e.externalConfig.getSessionName():t.roomName,e.tokenService.setSessionId(e.mySessionId)})},e.prototype.scrollToBottom=function(){try{this.bodyCard.nativeElement.scrollTop=this.bodyCard.nativeElement.scrollHeight}catch(e){}},e.prototype.initScreenPublisher=function(){var e=XP.SCREEN,t=this.hasAudioDevices?void 0:null,n=this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,!n&&this.hasAudioDevices&&this.isAudioActive,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.publishAudio=function(e){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(e):this.openViduWebRTCService.publishScreenAudio(e)},e.prototype.subscribeToLocalUsersEvents=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe(function(t){e.localUsers=t}),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe(function(t){e.screenShareEnabled=t})},e.prototype.initwebcamPublisher=function(){var e,t;return tA(this,void 0,void 0,function(){var n,i,r,o;return nA(this,function(a){if(n=(null===(e=this.micSelected)||void 0===e?void 0:e.device)||void 0,i=(null===(t=this.camSelected)||void 0===t?void 0:t.device)||void 0,r=this.openViduWebRTCService.createPublisherProperties(!!this.hasVideoDevices&&i,!!this.hasAudioDevices&&n,!!this.hasVideoDevices&&this.isVideoActive,!!this.hasAudioDevices&&this.isAudioActive,this.camSelected&&this.camSelected.type===OM.FRONT),this.hasAudioDevices||this.hasVideoDevices)o=this.openViduWebRTCService.initPublisher(void 0,r),this.localUsersService.setWebcamPublisher(o),this.handlePublisherSuccess(o),this.handlePublisherError(o);else{if(this.localUsersService.setWebcamPublisher(null),this.ovSettings.isAutoPublish())return this.joinSession(),[2];this.showConfigCard=!0}return[2]})})},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.handlePublisherSuccess=function(e){var t=this;e.once("accessAllowed",function(){return tA(t,void 0,void 0,function(){var t,n,i,r,o,a,s,c;return nA(this,function(u){switch(u.label){case 0:return this.emitPublisher(e),this.ovSettings.isAutoPublish()?(this.joinSession(),[2]):this.oVDevicesService.areEmptyLabels()?[4,this.oVDevicesService.initDevices()]:[3,2];case 1:u.sent(),this.hasAudioDevices&&(t=null===(o=null===(r=null===(i=null==e?void 0:e.stream)||void 0===i?void 0:i.getMediaStream())||void 0===r?void 0:r.getAudioTracks()[0])||void 0===o?void 0:o.label,this.oVDevicesService.setMicSelected(t)),this.hasVideoDevices&&(n=null===(c=null===(s=null===(a=null==e?void 0:e.stream)||void 0===a?void 0:a.getMediaStream())||void 0===s?void 0:s.getVideoTracks()[0])||void 0===c?void 0:c.label,this.oVDevicesService.setCamSelected(n)),this.setDevicesInfo(),u.label=2;case 2:return this.showConfigCard=!0,[2]}})})})},e.prototype.handlePublisherError=function(e){var t=this;e.once("accessDenied",function(e){var n;return e.name===UM.OpenViduErrorName.DEVICE_ALREADY_IN_USE?(t.log.w("Video device already in use. Disabling video device..."),t.hasVideoDevices=!1,t.oVDevicesService.disableVideoDevices(),t.initwebcamPublisher()):e.name===UM.OpenViduErrorName.DEVICE_ACCESS_DENIED?(n="Access to media devices was not allowed.",t.hasVideoDevices=!1,t.hasAudioDevices=!1,t.oVDevicesService.disableVideoDevices(),t.oVDevicesService.disableAudioDevices(),t.initwebcamPublisher()):(e.name===UM.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(n="No video or audio devices have been found. Please, connect at least one."),t.utilsSrv.showErrorMessage(e.name.replace(/_/g," "),n,!0),void t.log.e(e.message))})},e.\u0275fac=function(t){return new(t||e)(ss(WT),ss(aM),ss(pM),ss(sM),ss(FM),ss(MM),ss(eM),ss(TM),ss(uM))},e.\u0275cmp=vt({type:e,selectors:[["app-room-config"]],viewQuery:function(e,t){var n;1&e&&ju(iA,5),2&e&&Vu(n=Bu())&&(t.bodyCard=n.first)},hostBindings:function(e,t){1&e&&bs("beforeunload",function(){return t.beforeunloadHandler()},!1,jr)},inputs:{externalConfig:"externalConfig",ovSettings:"ovSettings"},outputs:{join:"join",leaveSession:"leaveSession",publisherCreated:"publisherCreated"},decls:3,vars:6,consts:[["id","roomConfig",3,"ngStyle"],["class","modal",4,"ngIf"],[1,"modal"],[1,"modal-dialog","modal-xl"],[1,"modal-content","cardContainer"],[1,"modal-header","cardHeader"],[1,"headerLogo"],["id","header_img","alt","OpenVidu Logo","src","assets/images/openvidu_logo_grey.png"],[1,"headerTitle"],["mat-mini-fab","","id","closeButton",1,"closeButton",3,"click"],["color","warn","matTooltip","Close"],[1,"modal-body"],["bodyCard",""],[1,"row","align-items-center"],[1,"col-sm-6","col-md-6","col-lg-6","leftSection"],[1,"videoContainer"],[4,"ngFor","ngForOf"],["class","avatarButton",4,"ngIf"],[1,"col-sm-6","col-md-6","col-lg-6","rightSection"],["class","avatarContainer",4,"ngIf"],["fxLayout","row","fxFill","","id","avatarSection",4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection"],["fxLayout","","fxFlex",""],["fxFlex","20","fxLayoutAlign","center center",1,"one"],["mat-mini-fab","",1,"deviceButton"],["matTooltip","Nickname"],["fxFlex","80","fxLayoutAlign","center center",1,"two"],["id","nicknameForm",1,"alternate-theme"],["matInput","","placeholder","Nickname","autocomplete","off",3,"formControl","errorStateMatcher","keypress"],[4,"ngIf"],["fxLayout","row","fxFill","","id","devicesSection",4,"ngIf"],[1,"modal-footer",2,"justify-content","center"],["mat-flat-button","","color","accent","form","nicknameForm","id","joinButton",3,"click"],[3,"streamManager","className",4,"ngIf"],["class","cameraMessageContainer",4,"ngIf"],[3,"streamManager","className"],[1,"cameraMessageContainer"],[1,"avatarButton"],["mat-stroked-button","",3,"click"],["matTooltip","Take Photo"],[2,"margin-left","5px"],[1,"avatarContainer"],["fxLayout","row","fxFill","","id","avatarSection"],["fxFlex","100","fxLayoutAlign","center center",1,""],["id","avatarContainer",3,"click"],["id","imgText",4,"ngIf"],["id","avatarImg",3,"src",4,"ngIf"],["id","imgText"],["id","avatarImg",3,"src"],["mat-mini-fab","","id","configCardMicrophoneButton",1,"deviceButton",3,"click"],["matTooltip","Microphone Enabled",4,"ngIf"],["color","warn","matTooltip","Microphone Disabled",4,"ngIf"],[1,"alternate-theme"],["placeholder","Microphone Options",3,"ngModel","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltip","Microphone Enabled"],["color","warn","matTooltip","Microphone Disabled"],[3,"value"],["mat-mini-fab","","id","configCardCameraButton",1,"deviceButton",3,"click"],["matTooltip","Camera Enabled",4,"ngIf"],["color","warn","matTooltip","Camera Disabled",4,"ngIf"],["placeholder","Camera Options",3,"ngModel","selectionChange"],["matTooltip","Camera Enabled"],["color","warn","matTooltip","Camera Disabled"],["mat-mini-fab","","id","configCardScreenButton",1,"deviceButton",3,"click"],["matTooltip","Screen Share Enabled",4,"ngIf"],["color","warn","matTooltip","Screen Share Disabled",4,"ngIf"],["matInput","","disabled","","placeholder","Screen",3,"ngModel"],["matTooltip","Screen Share Enabled"],["color","warn","matTooltip","Screen Share Disabled"]],template:function(e,t){1&e&&(ls(0,"div",0),wu(1,"isAutoPublish"),os(2,IA,42,18,"div",1),hs()),2&e&&(cs("ngStyle",bu(4,PA,Su(1,2,t.ovSettings)?"none":"block")),Mo(2),cs("ngIf",t.showConfigCard))},directives:[xh,bx,bh,xb,wS,JC,gh,Px,oO,Zx,lO,Pf,Xd,xf,_w,MS,Od,Jd,Nf,WM,cw,$S,If,vb],pipes:[YM,qM,ZM,QM],styles:[".cardHeader[_ngcontent-%COMP%]{background-color:#ccc;border-radius:14px 14px 0 0;text-align:center;height:50px}.headerLogo[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:inherit}.headerTitle[_ngcontent-%COMP%]{font-size:large;margin:auto}.videoContainer[_ngcontent-%COMP%]{width:100%;height:calc(100% - 50px);text-align:center;margin:auto}.avatarButton[_ngcontent-%COMP%]{text-align:center;margin-top:10px}.videoContainer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline}.ovVideoSmall[_ngcontent-%COMP%]{position:absolute;width:30%;left:15px;bottom:46px}.cameraMessageContainer[_ngcontent-%COMP%]{height:100%;width:100%;text-align:center;border:2px solid;font-size:large;display:table}.cameraMessageContainer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.deviceButton[_ngcontent-%COMP%]{box-shadow:none;background-color:#f5f5f5}.rightSection[_ngcontent-%COMP%]{padding-left:0!important;text-align:center}.avatarContainer[_ngcontent-%COMP%]{background-color:#f5f5f5;height:40px;text-align:center;display:flex}.avatarContainer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:auto}.closeButton[_ngcontent-%COMP%]{position:absolute;top:5px;right:7px;box-shadow:none;background-color:transparent}#roomConfig[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%}#header_img[_ngcontent-%COMP%]{max-width:150px}#sessionInfo[_ngcontent-%COMP%]{margin-top:0}#joinButton[_ngcontent-%COMP%]{margin:15px;width:80%}#photoButton[_ngcontent-%COMP%]{margin:10px;text-align:center}#avatarContainer[_ngcontent-%COMP%]{border:1px solid #b6b6b6;width:100px;height:100px;margin:10px;position:relative;cursor:pointer;display:inline-block}#devicesSection[_ngcontent-%COMP%]{margin:15px 0}#avatarSection[_ngcontent-%COMP%], #devicesSection[_ngcontent-%COMP%]{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;min-height:auto!important}#imgText[_ngcontent-%COMP%]{display:table}#avatarImg[_ngcontent-%COMP%], #imgText[_ngcontent-%COMP%]{text-align:center;position:absolute;margin:auto;top:25%;left:0;right:0;bottom:25%}#avatarImg[_ngcontent-%COMP%]{height:83%;width:83%}#avatarContainer[_ngcontent-%COMP%], #avatarImg[_ngcontent-%COMP%]{border-radius:25%}#optionsContent[_ngcontent-%COMP%]{position:static}#nicknameForm[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]{width:100%}mat-card[_ngcontent-%COMP%]{max-width:85%!important;position:absolute;top:0;bottom:0;left:0;right:0;max-height:90%;margin:auto;padding:20px;overflow:auto;border:2px solid #fff;border-right-width:4px}@media only screen and (max-width: 959px){mat-card[_ngcontent-%COMP%]{max-width:80%!important;max-height:80%!important}} .mat-option-text{color:#000!important} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#b8afaf;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#888}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:4px}\n\n\n*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:after, [_ngcontent-%COMP%]:before{box-sizing:border-box}.container[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width: 768px){.container[_ngcontent-%COMP%]{width:750px}}@media (min-width: 992px){.container[_ngcontent-%COMP%]{width:970px}}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{width:1170px}}.container-fluid[_ngcontent-%COMP%]{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row[_ngcontent-%COMP%]{margin-right:-15px;margin-left:-15px}.row-no-gutters[_ngcontent-%COMP%]{margin-right:0;margin-left:0}.row-no-gutters[_ngcontent-%COMP%] [class*=col-][_ngcontent-%COMP%]{padding-right:0;padding-left:0}.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1[_ngcontent-%COMP%], .col-xs-2[_ngcontent-%COMP%], .col-xs-3[_ngcontent-%COMP%], .col-xs-4[_ngcontent-%COMP%], .col-xs-5[_ngcontent-%COMP%], .col-xs-6[_ngcontent-%COMP%], .col-xs-7[_ngcontent-%COMP%], .col-xs-8[_ngcontent-%COMP%], .col-xs-9[_ngcontent-%COMP%], .col-xs-10[_ngcontent-%COMP%], .col-xs-11[_ngcontent-%COMP%], .col-xs-12[_ngcontent-%COMP%]{float:left}.col-xs-12[_ngcontent-%COMP%]{width:100%}.col-xs-11[_ngcontent-%COMP%]{width:91.66666667%}.col-xs-10[_ngcontent-%COMP%]{width:83.33333333%}.col-xs-9[_ngcontent-%COMP%]{width:75%}.col-xs-8[_ngcontent-%COMP%]{width:66.66666667%}.col-xs-7[_ngcontent-%COMP%]{width:58.33333333%}.col-xs-6[_ngcontent-%COMP%]{width:50%}.col-xs-5[_ngcontent-%COMP%]{width:41.66666667%}.col-xs-4[_ngcontent-%COMP%]{width:33.33333333%}.col-xs-3[_ngcontent-%COMP%]{width:25%}.col-xs-2[_ngcontent-%COMP%]{width:16.66666667%}.col-xs-1[_ngcontent-%COMP%]{width:8.33333333%}.col-xs-pull-12[_ngcontent-%COMP%]{right:100%}.col-xs-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-xs-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-xs-pull-9[_ngcontent-%COMP%]{right:75%}.col-xs-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-xs-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-xs-pull-6[_ngcontent-%COMP%]{right:50%}.col-xs-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-xs-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-xs-pull-3[_ngcontent-%COMP%]{right:25%}.col-xs-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-xs-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-xs-pull-0[_ngcontent-%COMP%]{right:auto}.col-xs-push-12[_ngcontent-%COMP%]{left:100%}.col-xs-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-xs-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-xs-push-9[_ngcontent-%COMP%]{left:75%}.col-xs-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-xs-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-xs-push-6[_ngcontent-%COMP%]{left:50%}.col-xs-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-xs-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-xs-push-3[_ngcontent-%COMP%]{left:25%}.col-xs-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-xs-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-xs-push-0[_ngcontent-%COMP%]{left:auto}.col-xs-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-xs-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-xs-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-xs-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-xs-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-xs-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-xs-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-xs-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-xs-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-xs-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-xs-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-xs-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-xs-offset-0[_ngcontent-%COMP%]{margin-left:0}@media (min-width: 768px){.col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%]{float:left}.col-sm-12[_ngcontent-%COMP%]{width:100%}.col-sm-11[_ngcontent-%COMP%]{width:91.66666667%}.col-sm-10[_ngcontent-%COMP%]{width:83.33333333%}.col-sm-9[_ngcontent-%COMP%]{width:75%}.col-sm-8[_ngcontent-%COMP%]{width:66.66666667%}.col-sm-7[_ngcontent-%COMP%]{width:58.33333333%}.col-sm-6[_ngcontent-%COMP%]{width:50%}.col-sm-5[_ngcontent-%COMP%]{width:41.66666667%}.col-sm-4[_ngcontent-%COMP%]{width:33.33333333%}.col-sm-3[_ngcontent-%COMP%]{width:25%}.col-sm-2[_ngcontent-%COMP%]{width:16.66666667%}.col-sm-1[_ngcontent-%COMP%]{width:8.33333333%}.col-sm-pull-12[_ngcontent-%COMP%]{right:100%}.col-sm-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-sm-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-sm-pull-9[_ngcontent-%COMP%]{right:75%}.col-sm-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-sm-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-sm-pull-6[_ngcontent-%COMP%]{right:50%}.col-sm-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-sm-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-sm-pull-3[_ngcontent-%COMP%]{right:25%}.col-sm-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-sm-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-sm-pull-0[_ngcontent-%COMP%]{right:auto}.col-sm-push-12[_ngcontent-%COMP%]{left:100%}.col-sm-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-sm-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-sm-push-9[_ngcontent-%COMP%]{left:75%}.col-sm-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-sm-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-sm-push-6[_ngcontent-%COMP%]{left:50%}.col-sm-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-sm-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-sm-push-3[_ngcontent-%COMP%]{left:25%}.col-sm-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-sm-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-sm-push-0[_ngcontent-%COMP%]{left:auto}.col-sm-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-sm-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-sm-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-sm-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-sm-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-sm-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-sm-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-sm-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-sm-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-sm-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-sm-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-sm-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-sm-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 992px){.col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%]{float:left}.col-md-12[_ngcontent-%COMP%]{width:100%}.col-md-11[_ngcontent-%COMP%]{width:91.66666667%}.col-md-10[_ngcontent-%COMP%]{width:83.33333333%}.col-md-9[_ngcontent-%COMP%]{width:75%}.col-md-8[_ngcontent-%COMP%]{width:66.66666667%}.col-md-7[_ngcontent-%COMP%]{width:58.33333333%}.col-md-6[_ngcontent-%COMP%]{width:50%}.col-md-5[_ngcontent-%COMP%]{width:41.66666667%}.col-md-4[_ngcontent-%COMP%]{width:33.33333333%}.col-md-3[_ngcontent-%COMP%]{width:25%}.col-md-2[_ngcontent-%COMP%]{width:16.66666667%}.col-md-1[_ngcontent-%COMP%]{width:8.33333333%}.col-md-pull-12[_ngcontent-%COMP%]{right:100%}.col-md-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-md-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-md-pull-9[_ngcontent-%COMP%]{right:75%}.col-md-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-md-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-md-pull-6[_ngcontent-%COMP%]{right:50%}.col-md-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-md-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-md-pull-3[_ngcontent-%COMP%]{right:25%}.col-md-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-md-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-md-pull-0[_ngcontent-%COMP%]{right:auto}.col-md-push-12[_ngcontent-%COMP%]{left:100%}.col-md-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-md-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-md-push-9[_ngcontent-%COMP%]{left:75%}.col-md-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-md-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-md-push-6[_ngcontent-%COMP%]{left:50%}.col-md-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-md-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-md-push-3[_ngcontent-%COMP%]{left:25%}.col-md-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-md-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-md-push-0[_ngcontent-%COMP%]{left:auto}.col-md-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-md-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-md-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-md-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-md-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-md-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-md-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-md-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-md-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-md-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-md-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-md-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-md-offset-0[_ngcontent-%COMP%]{margin-left:0}}@media (min-width: 1200px){.col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%]{float:left}.col-lg-12[_ngcontent-%COMP%]{width:100%}.col-lg-11[_ngcontent-%COMP%]{width:91.66666667%}.col-lg-10[_ngcontent-%COMP%]{width:83.33333333%}.col-lg-9[_ngcontent-%COMP%]{width:75%}.col-lg-8[_ngcontent-%COMP%]{width:66.66666667%}.col-lg-7[_ngcontent-%COMP%]{width:58.33333333%}.col-lg-6[_ngcontent-%COMP%]{width:50%}.col-lg-5[_ngcontent-%COMP%]{width:41.66666667%}.col-lg-4[_ngcontent-%COMP%]{width:33.33333333%}.col-lg-3[_ngcontent-%COMP%]{width:25%}.col-lg-2[_ngcontent-%COMP%]{width:16.66666667%}.col-lg-1[_ngcontent-%COMP%]{width:8.33333333%}.col-lg-pull-12[_ngcontent-%COMP%]{right:100%}.col-lg-pull-11[_ngcontent-%COMP%]{right:91.66666667%}.col-lg-pull-10[_ngcontent-%COMP%]{right:83.33333333%}.col-lg-pull-9[_ngcontent-%COMP%]{right:75%}.col-lg-pull-8[_ngcontent-%COMP%]{right:66.66666667%}.col-lg-pull-7[_ngcontent-%COMP%]{right:58.33333333%}.col-lg-pull-6[_ngcontent-%COMP%]{right:50%}.col-lg-pull-5[_ngcontent-%COMP%]{right:41.66666667%}.col-lg-pull-4[_ngcontent-%COMP%]{right:33.33333333%}.col-lg-pull-3[_ngcontent-%COMP%]{right:25%}.col-lg-pull-2[_ngcontent-%COMP%]{right:16.66666667%}.col-lg-pull-1[_ngcontent-%COMP%]{right:8.33333333%}.col-lg-pull-0[_ngcontent-%COMP%]{right:auto}.col-lg-push-12[_ngcontent-%COMP%]{left:100%}.col-lg-push-11[_ngcontent-%COMP%]{left:91.66666667%}.col-lg-push-10[_ngcontent-%COMP%]{left:83.33333333%}.col-lg-push-9[_ngcontent-%COMP%]{left:75%}.col-lg-push-8[_ngcontent-%COMP%]{left:66.66666667%}.col-lg-push-7[_ngcontent-%COMP%]{left:58.33333333%}.col-lg-push-6[_ngcontent-%COMP%]{left:50%}.col-lg-push-5[_ngcontent-%COMP%]{left:41.66666667%}.col-lg-push-4[_ngcontent-%COMP%]{left:33.33333333%}.col-lg-push-3[_ngcontent-%COMP%]{left:25%}.col-lg-push-2[_ngcontent-%COMP%]{left:16.66666667%}.col-lg-push-1[_ngcontent-%COMP%]{left:8.33333333%}.col-lg-push-0[_ngcontent-%COMP%]{left:auto}.col-lg-offset-12[_ngcontent-%COMP%]{margin-left:100%}.col-lg-offset-11[_ngcontent-%COMP%]{margin-left:91.66666667%}.col-lg-offset-10[_ngcontent-%COMP%]{margin-left:83.33333333%}.col-lg-offset-9[_ngcontent-%COMP%]{margin-left:75%}.col-lg-offset-8[_ngcontent-%COMP%]{margin-left:66.66666667%}.col-lg-offset-7[_ngcontent-%COMP%]{margin-left:58.33333333%}.col-lg-offset-6[_ngcontent-%COMP%]{margin-left:50%}.col-lg-offset-5[_ngcontent-%COMP%]{margin-left:41.66666667%}.col-lg-offset-4[_ngcontent-%COMP%]{margin-left:33.33333333%}.col-lg-offset-3[_ngcontent-%COMP%]{margin-left:25%}.col-lg-offset-2[_ngcontent-%COMP%]{margin-left:16.66666667%}.col-lg-offset-1[_ngcontent-%COMP%]{margin-left:8.33333333%}.col-lg-offset-0[_ngcontent-%COMP%]{margin-left:0}}.modal[_ngcontent-%COMP%], .modal-open[_ngcontent-%COMP%]{overflow:hidden}.modal[_ngcontent-%COMP%]{top:0;right:0;bottom:0;left:0;z-index:1050;display:none;-webkit-overflow-scrolling:touch;outline:0;display:block;height:100%}.modal.fade[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translateY(-25%);transition:transform .3s ease-out}.modal.in[_ngcontent-%COMP%] .modal-dialog[_ngcontent-%COMP%]{transform:translate(0)}.modal-open[_ngcontent-%COMP%] .modal[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto}.modal-dialog[_ngcontent-%COMP%]{width:auto;margin:30px;padding:100px 0;position:absolute;top:40%;left:50%;transform:translate(-50%,-50%)}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 3px 9px rgba(0,0,0,.5);outline:0;border-radius:15px}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade[_ngcontent-%COMP%]{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in[_ngcontent-%COMP%]{filter:alpha(opacity=50);opacity:.5}.modal-header[_ngcontent-%COMP%]{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{margin-top:-2px}.modal-title[_ngcontent-%COMP%]{margin:0;line-height:1.42857143}.modal-body[_ngcontent-%COMP%]{position:relative;padding:15px}.modal-footer[_ngcontent-%COMP%]{padding:1px;text-align:center;border-top:1px solid #e5e5e5}.modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-bottom:0;margin-left:5px}.modal-footer[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] + .btn[_ngcontent-%COMP%]{margin-left:-1px}.modal-footer[_ngcontent-%COMP%] .btn-block[_ngcontent-%COMP%] + .btn-block[_ngcontent-%COMP%]{margin-left:0}.modal-scrollbar-measure[_ngcontent-%COMP%]{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (max-width: 600px){.headerTitle[_ngcontent-%COMP%]{display:none}.headerLogo[_ngcontent-%COMP%]{right:0}}@media (max-width: 767px){.row[_ngcontent-%COMP%]{height:100%}.leftSection[_ngcontent-%COMP%]{height:60%}.rightSection[_ngcontent-%COMP%]{padding-right:0!important}.headerTitle[_ngcontent-%COMP%]{font-size:medium}.modal-content[_ngcontent-%COMP%]{max-height:100%;height:100%}.modal-dialog[_ngcontent-%COMP%]{height:calc(100% - 10px);margin:5px;padding:0;position:relative;top:0;left:0;transform:none}.modal-body[_ngcontent-%COMP%]{padding:10px 20px;overflow:auto;height:calc(100% - 120px);overflow:-moz-scrollbars-vertical;overflow-x:hidden;overflow-y:scroll}.modal[_ngcontent-%COMP%]{max-height:100%}.videoContainer[_ngcontent-%COMP%]{width:90%}}@media (min-width: 768px){.ovVideoSmall[_ngcontent-%COMP%]{width:40%}.row[_ngcontent-%COMP%]{display:flex!important}.modal-dialog[_ngcontent-%COMP%]{width:90%;margin:55px auto}.modal-content[_ngcontent-%COMP%]{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm[_ngcontent-%COMP%]{width:300px}}@media (min-width: 992px){.modal-lg[_ngcontent-%COMP%]{width:75%}}@media (min-width: 1440px){.modal-xl[_ngcontent-%COMP%]{width:75%}}"]}),e}(),AA=function(e){return e.BIG="zoom_in",e.NORMAL="zoom_out",e}({}),RA=function(e){return e.BIG="fullscreen",e.NORMAL="fullscreen_exit",e}({}),NA=function(e,t){return{titleContent:!0,titleContentLight:e,titleContentDark:t}};function LA(e,t){if(1&e&&(ls(0,"div",3),ls(1,"span",4),Ys(2),hs(),hs()),2&e){var n=Cs();cs("ngClass",(i=2,r=NA,o=n.lightTheme,a=!n.lightTheme,function(e,t,n,i,r,o,a){var s=t+n;return function(e,t,n,i){var r=ns(e,t,n);return ns(e,t+1,i)||r}(e,s,r,o)?ts(e,s+2,a?i.call(a,r,o):i(r,o)):_u(e,s+2)}(rn(),pn(),i,r,o,a,s))),Mo(2),Qs(n.sessionId)}var i,r,o,a,s}var DA=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({type:e,selectors:[["app-toolbar-logo"]],inputs:{lightTheme:"lightTheme",compact:"compact",sessionId:"sessionId",logoUrl:"logoUrl"},decls:4,vars:2,consts:[["id","navSessionInfo"],["id","header_img","alt","OpenVidu Logo",3,"src"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["id","session-title"]],template:function(e,t){1&e&&(ls(0,"div",0),ls(1,"a"),ds(2,"img",1),hs(),os(3,LA,3,5,"div",2),hs()),2&e&&(Mo(2),cs("src",t.logoUrl,Pr),Mo(1),cs("ngIf",!t.compact&&t.sessionId))},directives:[bh,vh,dx],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#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}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width: 600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}();function VA(e,t){1&e&&(ls(0,"mat-icon",14),Ys(1,"mic"),hs())}function jA(e,t){1&e&&(ls(0,"mat-icon",15),Ys(1,"mic_off"),hs())}function FA(e,t){if(1&e){var n=vs();ls(0,"button",11),bs("click",function(){return an(n),Cs().toggleMicrophone()}),os(1,VA,2,0,"mat-icon",12),os(2,jA,2,0,"mat-icon",13),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(1),cs("ngIf",i.isWebcamAudioEnabled),Mo(1),cs("ngIf",!i.isWebcamAudioEnabled)}}function BA(e,t){1&e&&(ls(0,"mat-icon",19),Ys(1,"videocam"),hs())}function UA(e,t){1&e&&(ls(0,"mat-icon",20),Ys(1,"videocam_off"),hs())}function zA(e,t){if(1&e){var n=vs();ls(0,"button",16),bs("click",function(){return an(n),Cs().toggleCamera()}),os(1,BA,2,0,"mat-icon",17),os(2,UA,2,0,"mat-icon",18),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(1),cs("ngIf",i.isWebcamVideoEnabled),Mo(1),cs("ngIf",!i.isWebcamVideoEnabled)}}function HA(e,t){1&e&&(ls(0,"mat-icon",24),Ys(1,"stop_screen_share"),hs())}function WA(e,t){1&e&&(ls(0,"mat-icon",25),Ys(1,"screen_share"),hs())}function GA(e,t){if(1&e){var n=vs();ls(0,"button",21),bs("click",function(){return an(n),Cs().toggleScreenShare()}),os(1,HA,2,0,"mat-icon",22),os(2,WA,2,0,"mat-icon",23),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(1),cs("ngIf",!i.isScreenShareEnabled),Mo(1),cs("ngIf",i.isScreenShareEnabled)}}function qA(e,t){if(1&e){var n=vs();ls(0,"button",26),bs("click",function(){return an(n),Cs().toggleFullscreen()}),ls(1,"mat-icon",27),Ys(2),hs(),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(2),Qs(i.fullscreenIcon)}}function ZA(e,t){1&e&&(ls(0,"mat-icon",30),Ys(1,"voice_over_off"),hs())}function YA(e,t){1&e&&(ls(0,"mat-icon",31),Ys(1,"record_voice_over"),hs())}function QA(e,t){if(1&e){var n=vs();ls(0,"button",26),bs("click",function(){return an(n),Cs().toggleSpeakerLayout()}),os(1,ZA,2,0,"mat-icon",28),os(2,YA,2,0,"mat-icon",29),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(1),cs("ngIf",!i.isAutoLayout),Mo(1),cs("ngIf",i.isAutoLayout)}}function KA(e,t){if(1&e){var n=vs();ls(0,"button",32),bs("click",function(){return an(n),Cs().leaveSession()}),ls(1,"mat-icon",33),Ys(2,"power_settings_new"),hs(),hs()}}function JA(e,t){if(1&e){var n=vs();ls(0,"button",26),bs("click",function(){return an(n),Cs().toggleChat()}),ls(1,"mat-icon",34),Ys(2,"chat"),hs(),hs()}if(2&e){var i=Cs();cs("disabled",i.isConnectionLost),Mo(1),Ts("matBadge",i.newMessagesNum),cs("matBadgeHidden",0===i.newMessagesNum)}}var XA,$A=function(){function e(e,t,n,i){this.utilsSrv=e,this.chatService=t,this.tokenService=n,this.localUsersService=i,this.micButtonClicked=new Eu,this.camButtonClicked=new Eu,this.screenShareClicked=new Eu,this.layoutButtonClicked=new Eu,this.leaveSessionButtonClicked=new Eu,this.fullscreenIcon=RA.BIG,this.logoUrl="assets/images/openvidu_logo.png",this.participantsNames=[]}return e.prototype.ngOnDestroy=function(){this.chatServiceSubscription&&this.chatServiceSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.webcamVideoStateSubscription&&this.webcamVideoStateSubscription.unsubscribe()},e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.fullscreenIcon=RA.BIG)},e.prototype.ngOnInit=function(){var e=this;this.mySessionId=this.tokenService.getSessionId(),this.chatServiceSubscription=this.chatService.messagesUnreadObs.subscribe(function(t){e.newMessagesNum=t}),this.screenShareStateSubscription=this.localUsersService.screenShareState.subscribe(function(t){e.isScreenShareEnabled=t}),this.webcamVideoStateSubscription=this.localUsersService.webcamVideoActive.subscribe(function(t){e.isWebcamVideoEnabled=t}),this.lightTheme&&(this.logoUrl="assets/images/openvidu_logo_grey.png")},e.prototype.toggleMicrophone=function(){this.micButtonClicked.emit()},e.prototype.toggleCamera=function(){this.camButtonClicked.emit()},e.prototype.toggleScreenShare=function(){this.screenShareClicked.emit()},e.prototype.toggleSpeakerLayout=function(){this.layoutButtonClicked.emit()},e.prototype.leaveSession=function(){this.leaveSessionButtonClicked.emit()},e.prototype.toggleChat=function(){this.chatService.toggleChat()},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("videoRoomNavBar"),this.fullscreenIcon=this.fullscreenIcon===RA.BIG?RA.NORMAL:RA.BIG},e.\u0275fac=function(t){return new(t||e)(ss(aM),ss(gM),ss(FM),ss(sM))},e.\u0275cmp=vt({type:e,selectors:[["app-toolbar"]],hostBindings:function(e,t){1&e&&bs("resize",function(e){return t.sizeChange(e)},!1,jr)},inputs:{lightTheme:"lightTheme",compact:"compact",showNotification:"showNotification",ovSettings:"ovSettings",isWebcamAudioEnabled:"isWebcamAudioEnabled",isAutoLayout:"isAutoLayout",isConnectionLost:"isConnectionLost",hasVideoDevices:"hasVideoDevices",hasAudioDevices:"hasAudioDevices"},outputs:{micButtonClicked:"micButtonClicked",camButtonClicked:"camButtonClicked",screenShareClicked:"screenShareClicked",layoutButtonClicked:"layoutButtonClicked",leaveSessionButtonClicked:"leaveSessionButtonClicked"},decls:20,vars:27,consts:[["id","header","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","10px",1,"container"],["fxFlex","20%"],[3,"lightTheme","sessionId","compact","logoUrl"],["fxFlex","70%","fxFlexOrder","2"],["align","center",1,"buttonsContainer"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navCameraButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["id","navScreenButton","mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","","id","navLeaveButton",3,"click",4,"ngIf"],["fxFlex","10%","fxFlexOrder","3","align","end"],["id","navMicrophoneButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your audio",4,"ngIf"],["color","warn","matTooltip","Unmute your audio",4,"ngIf"],["matTooltip","Mute your audio"],["color","warn","matTooltip","Unmute your audio"],["id","navCameraButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your cam",4,"ngIf"],["color","warn","matTooltip","Unmute your cam",4,"ngIf"],["matTooltip","Mute your cam"],["color","warn","matTooltip","Unmute your cam"],["id","navScreenButton","mat-icon-button","",3,"disabled","click"],["matTooltip","Screen share","color","warn",4,"ngIf"],["matTooltip","Stop sharing",4,"ngIf"],["matTooltip","Screen share","color","warn"],["matTooltip","Stop sharing"],["mat-icon-button","",3,"disabled","click"],["matTooltip","Fullscreen"],["matTooltip","Enable speaker layout","color","warn",4,"ngIf"],["matTooltip","Disable speaker layout",4,"ngIf"],["matTooltip","Enable speaker layout","color","warn"],["matTooltip","Disable speaker layout"],["mat-icon-button","","id","navLeaveButton",3,"click"],["color","warn","matTooltip","Leave the session"],["matBadgePosition","above before","matTooltip","Chat","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,t){1&e&&(ls(0,"mat-toolbar",0),ls(1,"div",1),ds(2,"app-toolbar-logo",2),hs(),ls(3,"div",3),ls(4,"div",4),os(5,FA,3,3,"button",5),wu(6,"hasAudio"),os(7,zA,3,3,"button",6),wu(8,"hasVideo"),os(9,GA,3,3,"button",7),wu(10,"hasScreenSharing"),os(11,qA,3,2,"button",8),wu(12,"hasFullscreen"),os(13,QA,3,3,"button",8),wu(14,"hasLayoutSpeaking"),os(15,KA,3,0,"button",9),wu(16,"hasExit"),hs(),hs(),ls(17,"div",10),os(18,JA,3,3,"button",8),wu(19,"hasChat"),hs(),hs()),2&e&&(Vs("headerLight",t.lightTheme),Mo(2),cs("lightTheme",t.lightTheme)("sessionId",t.mySessionId)("compact",t.compact)("logoUrl",t.logoUrl),Mo(3),cs("ngIf",t.hasAudioDevices&&Su(6,13,t.ovSettings)),Mo(2),cs("ngIf",!t.ovSettings||t.hasVideoDevices&&Su(8,15,t.ovSettings)),Mo(2),cs("ngIf",Su(10,17,t.ovSettings)),Mo(2),cs("ngIf",Su(12,19,t.ovSettings)),Mo(2),cs("ngIf",Su(14,21,t.ovSettings)),Mo(2),cs("ngIf",Su(16,23,t.ovSettings)),Mo(3),cs("ngIf",Su(19,25,t.ovSettings)))},directives:[IC,Px,lO,Dx,Zx,DA,nO,bh,xb,wS,JC,_b],pipes:[qM,ZM,QM,KM,JM,XM,GM],styles:["#header[_ngcontent-%COMP%]{color:#fff;height:40px;background-color:#333;padding:0 14px 0 0;position:absolute;top:0;left:0;z-index:999999;min-width:400px!important}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}.headerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}#navSessionInfo[_ngcontent-%COMP%]{height:100%;display:inline-flex}#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}.titleContent[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;max-width:100px;margin:5px -18px;padding:0 15px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.titleContentDark[_ngcontent-%COMP%]{background-color:#494949;color:#fff}.titleContentLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important;color:#000}#header_img[_ngcontent-%COMP%]{max-width:130px;margin:0 20px 0 5px;padding:5px}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:50%;background-color:#ffa600;border:1px solid #000;z-index:99999}.pointLight[_ngcontent-%COMP%]{border:1px solid #fff!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}@media (max-width: 600px){#navSessionInfo[_ngcontent-%COMP%]{display:none}}"]}),e}(),eR=(XA=function(e,t){return(XA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}XA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.containerSelector=".sidenav-main",t.customClass="cdk-overlay-container",t}return eR(t,e),t.prototype._createContainer=function(){var e=document.createElement("div");e.classList.add(this.customClass);var t=this.getElement(this.containerSelector);t||(t=this.getElement("body")),this._containerElement=t.appendChild(e)},t.prototype.setSelector=function(e){var t=this.getElement("."+this.customClass);if(t&&this.containerSelector!==e){var n=this.getElement(e);this.containerSelector=e,null==n||n.appendChild(t)}},t.prototype.getElement=function(e){return document.querySelector(e)},t.\u0275prov=Ve({token:t,factory:t.\u0275fac=function(){var e;return function(n){return(e||(e=vi(t)))(n||t)}}()}),t}(D_),nR=function(){function e(e){this.cdkOverlayModel=e}return e.prototype.setSelector=function(e){this.cdkOverlayModel.setSelector(e)},e.\u0275prov=Ve({token:e,factory:e.\u0275fac=function(t){return new(t||e)(ji(tR))},providedIn:"root"}),e}(),iR=["streamComponent"],rR=["menu"],oR=["nicknameInput"];function aR(e,t){1&e&&(ls(0,"span"),Ys(1," (edit)"),hs())}function sR(e,t){if(1&e){var n=vs();ls(0,"div",10),bs("click",function(){return an(n),Cs(2).toggleNicknameForm()}),ls(1,"span",11),Ys(2),hs(),os(3,aR,2,0,"span",12),hs()}if(2&e){var i=Cs(2);Mo(2),Qs(i._user.nickname),Mo(1),cs("ngIf",i._user.local||i._user.streamManager&&!(null!=i._user.streamManager&&i._user.streamManager.remote))}}function cR(e,t){1&e&&(ls(0,"mat-error"),Ys(1," Nickname is "),ls(2,"strong"),Ys(3,"required"),hs(),hs())}function uR(e,t){1&e&&(ls(0,"mat-error"),Ys(1," Nickname is "),ls(2,"strong"),Ys(3,"too long!"),hs(),hs())}function lR(e,t){if(1&e){var n=vs();ls(0,"div",13),ls(1,"button",14),bs("click",function(){return an(n),Cs(2).toggleNicknameForm()}),ls(2,"mat-icon",15),Ys(3,"highlight_off"),hs(),hs(),ls(4,"form",16),ls(5,"mat-form-field",17),ls(6,"input",18,19),bs("keypress",function(e){return an(n),Cs(2).eventKeyPress(e)}),hs(),os(8,cR,4,0,"mat-error",12),os(9,uR,4,0,"mat-error",12),hs(),hs(),hs()}if(2&e){var i=Cs(2);Vs("fullscreen",i.isFullscreen),Mo(6),Is("placeholder","Nick: ",i._user.nickname,""),cs("formControl",i.nicknameFormControl)("errorStateMatcher",i.matcher),Mo(2),cs("ngIf",i.nicknameFormControl.hasError("required")),Mo(1),cs("ngIf",i.nicknameFormControl.hasError("maxlength"))}}function hR(e,t){1&e&&(ls(0,"div",20),ls(1,"mat-icon"),Ys(2,"mic_off"),hs(),hs())}function dR(e,t){1&e&&(ls(0,"span"),Ys(1,"Zoom out"),hs())}function fR(e,t){1&e&&(ls(0,"span"),Ys(1,"Zoom in"),hs())}function pR(e,t){if(1&e){var n=vs();ls(0,"button",30),bs("click",function(){return an(n),Cs(3).toggleVideoSize()}),ls(1,"mat-icon"),Ys(2),hs(),os(3,dR,2,0,"span",12),os(4,fR,2,0,"span",12),hs()}if(2&e){var i=Cs(3);Mo(2),Qs(i.videoSizeIcon),Mo(1),cs("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),Mo(1),cs("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG)}}function vR(e,t){1&e&&(ls(0,"mat-icon"),Ys(1,"volume_up"),hs())}function mR(e,t){1&e&&(ls(0,"span"),Ys(1,"Mute sound"),hs())}function gR(e,t){1&e&&(ls(0,"mat-icon"),Ys(1,"volume_off"),hs())}function yR(e,t){1&e&&(ls(0,"span"),Ys(1,"Unmute sound"),hs())}function bR(e,t){if(1&e){var n=vs();ls(0,"button",31),bs("click",function(){return an(n),Cs(3).toggleSound()}),os(1,vR,2,0,"mat-icon",12),os(2,mR,2,0,"span",12),os(3,gR,2,0,"mat-icon",12),os(4,yR,2,0,"span",12),hs()}if(2&e){var i=Cs(3);Mo(1),cs("ngIf",!i.mutedSound),Mo(1),cs("ngIf",!i.mutedSound),Mo(1),cs("ngIf",i.mutedSound),Mo(1),cs("ngIf",i.mutedSound)}}function _R(e,t){1&e&&(ls(0,"span"),Ys(1,"Exit fullscreen"),hs())}function kR(e,t){1&e&&(ls(0,"span"),Ys(1,"Go to fullscreen"),hs())}function wR(e,t){if(1&e){var n=vs();ls(0,"button",32),bs("click",function(){return an(n),Cs(3).toggleFullscreen()}),ls(1,"mat-icon"),Ys(2),hs(),os(3,_R,2,0,"span",12),os(4,kR,2,0,"span",12),hs()}if(2&e){var i=Cs(3);Mo(2),Qs(i.fullscreenIcon),Mo(1),cs("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.NORMAL),Mo(1),cs("ngIf",i.fullscreenIcon===i.videoFullscreenIconEnum.BIG)}}function SR(e,t){if(1&e){var n=vs();ls(0,"button",33),bs("click",function(){return an(n),Cs(3).replaceScreenTrack()}),ls(1,"mat-icon"),Ys(2,"picture_in_picture"),hs(),ls(3,"span"),Ys(4,"Replace screen"),hs(),hs()}}function CR(e,t){if(1&e){var n=vs();ls(0,"div",21),ls(1,"button",22),bs("click",function(e){return an(n),Cs(2).toggleVideoMenu(e)}),ls(2,"mat-icon"),Ys(3,"more_vert"),hs(),hs(),ds(4,"span",23),ls(5,"mat-menu",24,25),os(7,pR,5,3,"button",26),os(8,bR,5,4,"button",27),os(9,wR,5,3,"button",28),os(10,SR,5,0,"button",29),hs(),hs()}if(2&e){var i=as(6),r=Cs(2);Mo(4),cs("matMenuTriggerFor",i),Mo(3),cs("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Mo(1),cs("ngIf",null==r._user.streamManager?null:r._user.streamManager.remote),Mo(1),cs("ngIf",null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.videoActive),Mo(1),cs("ngIf",!(null!=r._user.streamManager&&r._user.streamManager.remote)&&(null==r._user.streamManager||null==r._user.streamManager.stream?null:r._user.streamManager.stream.typeOfVideo)===r.videoTypeEnum.SCREEN)}}function ER(e,t){if(1&e){var n=vs();ls(0,"div",1,2),bs("dblclick",function(){return an(n),Cs().toggleVideoSize()}),ls(2,"div",3),os(3,sR,4,2,"div",4),os(4,lR,10,7,"div",5),hs(),ls(5,"ov-video",6),bs("toggleVideoSizeEvent",function(e){return an(n),Cs().toggleVideoSize(e)}),hs(),ls(6,"div",7),os(7,hR,3,0,"div",8),hs(),os(8,CR,11,5,"div",9),hs()}if(2&e){var i=Cs();cs("id","container-"+(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.streamId)),Mo(2),Vs("fullscreen",i.isFullscreen),Mo(1),cs("ngIf",!i.toggleNickname),Mo(1),cs("ngIf",i.toggleNickname&&!(null!=i._user.streamManager&&i._user.streamManager.remote)),Mo(1),cs("streamManager",i._user.streamManager)("mutedSound",i.mutedSound),Mo(2),cs("ngIf",!(null!=i._user.streamManager&&null!=i._user.streamManager.stream&&i._user.streamManager.stream.audioActive)),Mo(1),cs("ngIf",i._user.local&&(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||!i._user.local&&((null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.videoActive)||(null==i._user.streamManager||null==i._user.streamManager.stream?null:i._user.streamManager.stream.audioActive)))}}var xR=function(){function e(e,t){this.utilsSrv=e,this.cdkSrv=t,this.videoSizeIconEnum=AA,this.videoFullscreenIconEnum=RA,this.videoTypeEnum=JP,this.videoSizeIcon=AA.BIG,this.fullscreenIcon=RA.BIG,this.nicknameClicked=new Eu,this.replaceScreenTrackClicked=new Eu,this.toggleVideoSizeClicked=new Eu,this.ESCAPE_KEY="Escape"}return e.prototype.sizeChange=function(e){var t=window.screen.height,n=window.screen.width,i=window.innerHeight;n!==window.innerWidth&&t!==i&&(this.isFullscreen=!1,this.videoSizeIcon=AA.BIG)},e.prototype.onFullscreenHandler=function(e){this.toggleFullscreenIcon()},Object.defineProperty(e.prototype,"videoSizeBig",{set:function(e){this.checkVideoSizeBigIcon(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"user",{set:function(e){this._user=e,this.nicknameFormControl=new kf(this._user.getNickname(),[Rd.maxLength(25),Rd.required])},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nicknameInputElement",{set:function(e){setTimeout(function(){null==e||e.nativeElement.focus()})},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.matcher=new BM},e.prototype.ngOnDestroy=function(){this.cdkSrv.setSelector("body")},e.prototype.toggleVideoSize=function(e){var t=this.utilsSrv.getHTMLElementByClassName(this.streamComponent.element.nativeElement,nM.ROOT_CLASS);this.toggleVideoSizeClicked.emit({element:t,connectionId:this._user.getConnectionId(),resetAll:e})},e.prototype.toggleFullscreen=function(){this.utilsSrv.toggleFullscreen("container-"+this._user.getStreamManager().stream.streamId)},e.prototype.toggleVideoMenu=function(e){var t,n;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(n=null===(t=this._user.streamManager)||void 0===t?void 0:t.stream)||void 0===n?void 0:n.streamId)),this.menuTrigger.openMenu())},e.prototype.toggleSound=function(){this.mutedSound=!this.mutedSound},e.prototype.toggleNicknameForm=function(){this._user.isLocal()&&(this.toggleNickname=!this.toggleNickname)},e.prototype.eventKeyPress=function(e){e&&13===e.keyCode&&this.nicknameFormControl.valid&&(this.nicknameClicked.emit(this.nicknameFormControl.value),this.toggleNicknameForm())},e.prototype.replaceScreenTrack=function(){this.replaceScreenTrackClicked.emit()},e.prototype.checkVideoSizeBigIcon=function(e){this.videoSizeIcon=e?AA.NORMAL:AA.BIG},e.prototype.toggleFullscreenIcon=function(){this.fullscreenIcon=this.fullscreenIcon===RA.BIG?RA.NORMAL:RA.BIG},e.\u0275fac=function(t){return new(t||e)(ss(aM),ss(nR))},e.\u0275cmp=vt({type:e,selectors:[["stream-component"]],viewQuery:function(e,t){if(1&e&&(ju(iR,5,ou),ju(Bk,5),ju(rR,5),ju(oR,5)),2&e){var n=void 0;Vu(n=Bu())&&(t.streamComponent=n.first),Vu(n=Bu())&&(t.menuTrigger=n.first),Vu(n=Bu())&&(t.menu=n.first),Vu(n=Bu())&&(t.nicknameInputElement=n.first)}},hostBindings:function(e,t){1&e&&bs("resize",function(e){return t.sizeChange(e)},!1,jr)("fullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("webkitfullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("mozfullscreenchange",function(e){return t.onFullscreenHandler(e)},!1,Fr)("MSFullscreenChange",function(e){return t.onFullscreenHandler(e)},!1,Fr)},inputs:{videoSizeBig:"videoSizeBig",user:"user"},outputs:{nicknameClicked:"nicknameClicked",replaceScreenTrackClicked:"replaceScreenTrackClicked",toggleVideoSizeClicked:"toggleVideoSizeClicked"},decls:1,vars:1,consts:[["class","OT_widget-container",3,"id","dblclick",4,"ngIf"],[1,"OT_widget-container",3,"id","dblclick"],["streamComponent",""],[1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","dialogNickname",3,"fullscreen",4,"ngIf"],[3,"streamManager","mutedSound","toggleVideoSizeEvent"],[1,"statusIcons"],["id","statusMic",4,"ngIf"],["class","videoButtons",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname"],[4,"ngIf"],["id","dialogNickname"],["mat-icon-button","","id","closeButton",3,"click"],["matTooltip","Close"],["id","nicknameForm"],["color","primary"],["matInput","","autocomplete","off",3,"placeholder","formControl","errorStateMatcher","keypress"],["nicknameInput",""],["id","statusMic"],[1,"videoButtons"],["mat-icon-button","","matTooltip","Settings","aria-label","Video settings menu",3,"click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","fullscreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","videoZoomButton",3,"click"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","fullscreenButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,t){1&e&&os(0,ER,9,9,"div",0),2&e&&cs("ngIf",t._user)},directives:[bh,WM,xb,wS,JC,Pf,Xd,xf,_w,MS,Od,Jd,Nf,cw,Bk,Dk,Ak],styles:[".nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:5px;color:#fff;font-family:Ubuntu,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:#424242;padding:5px;color:#fff;font-weight:700}#dialogNickname[_ngcontent-%COMP%]{background-color:#0000005e;border-radius:5px}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}.fullscreen[_ngcontent-%COMP%]{top:40px}mat-error[_ngcontent-%COMP%]{text-align:center;color:#353535}video[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.statusIcons[_ngcontent-%COMP%]{bottom:0;left:5px;width:40px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;position:absolute;color:#fff;z-index:999}.statusIcons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;font-size:20px}.videoButtons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}.videoButtons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0px}#camStatus[_ngcontent-%COMP%]{bottom:43px}#statusCam[_ngcontent-%COMP%], #statusMic[_ngcontent-%COMP%]{text-align:center;width:28px;height:28px;border-radius:50%;background:#c71100;margin:5px auto}.videoButtons[_ngcontent-%COMP%]{right:0;position:absolute;bottom:0;z-index:10;width:50px;text-align:center}.videoButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#000;width:30px;height:30px;margin:1px}.OT_widget-container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;overflow:hidden;background-color:#000} .mat-focused .mat-form-field-label, .mat-form-field-appearance-legacy .mat-form-field-label, mat-error[_ngcontent-%COMP%]{color:#cacaca!important} .mat-form-field-appearance-legacy .mat-form-field-underline, .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#cacaca!important}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;bottom:0;top:0;margin:auto;right:0;left:0}"]}),e}(),OR=function(){function e(){}return e.prototype.transform=function(e){var t="";return e.forEach(function(e){t+="\u2022 "+e+"\n"}),t},e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=wt({name:"tooltipList",type:e,pure:!0}),e}(),TR=function(){function e(){this.participantsNames=[]}return Object.defineProperty(e.prototype,"participants",{set:function(e){var t=this;this.participantsNames=[],e.forEach(function(e){e.nickname.includes(JP.SCREEN)||t.participantsNames.push(e.nickname)}),this.participantsNames=function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}([],this.participantsNames)},enumerable:!1,configurable:!0}),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=vt({type:e,selectors:[["app-footer"]],inputs:{lightTheme:"lightTheme",participants:"participants"},decls:9,vars:6,consts:[["fxLayout","","fxLayout.xs","row","fxLayoutAlign","center center","fxLayoutGap","2px","id","footer","role","heading",1,"container"],[1,"participantsButtonContainer"],["mat-icon-button","","matTooltip","Remote participants",1,""],["matBadgeSize","small","matBadgePosition","above after","matBadgeColor","accent",3,"matBadge"],["fxFlex","calc(100% - 40px)","fxFlexOrder","2"],[1,"participantNames"]],template:function(e,t){1&e&&(ls(0,"mat-toolbar",0),ls(1,"div",1),ls(2,"button",2),ls(3,"mat-icon",3),Ys(4,"people"),hs(),hs(),hs(),ls(5,"div",4),ls(6,"span",5),Ys(7),wu(8,"tooltipList"),hs(),hs(),hs()),2&e&&(Vs("headerLight",t.lightTheme),Mo(3),Ts("matBadge",null==t.participantsNames?null:t.participantsNames.length),Mo(4),Qs(Su(8,4,t.participantsNames)))},directives:[IC,Px,lO,Dx,xb,JC,wS,_b,Zx,nO],pipes:[OR],styles:["#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999;min-width:400px!important}.footerLight[_ngcontent-%COMP%]{color:#706969!important;background-color:#eee!important}.participantNames[_ngcontent-%COMP%]{font-size:small;height:inherit}.participantsButton[_ngcontent-%COMP%]{position:absolute;left:5px;top:none}.participantsButton[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%]{height:-webkit-fill-available;height:-moz-available}.mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .participantsButtonContainer[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{line-height:18px}"]}),e}(),IR=function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(WP){o(WP)}}function s(e){try{c(i.throw(e))}catch(WP){o(WP)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})},PR=function(e,t){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(WP){o=[6,WP],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},MR=function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e},AR=["chatComponent"],RR=["sidenav"];function NR(e,t){if(1&e){var n=vs();ls(0,"app-room-config",4),bs("join",function(){return an(n),Cs(2).onConfigRoomJoin()})("leaveSession",function(){return an(n),Cs(2).leaveSession()})("publisherCreated",function(e){return an(n),Cs(2).emitPublisher(e)}),hs()}if(2&e){var i=Cs(2);cs("ovSettings",i.ovSettings)("externalConfig",i.externalConfig)}}function LR(e,t){1&e&&ds(0,"div",14)}function DR(e,t){if(1&e){var n=vs();ls(0,"app-toolbar",15),bs("camButtonClicked",function(){return an(n),Cs(3).toggleCam()})("micButtonClicked",function(){return an(n),Cs(3).toggleMic()})("screenShareClicked",function(){return an(n),Cs(3).toggleScreenShare()})("layoutButtonClicked",function(){return an(n),Cs(3).toggleSpeakerLayout()})("leaveSessionButtonClicked",function(){return an(n),Cs(3).leaveSession()}),hs()}if(2&e){var i=Cs(3);cs("lightTheme",i.lightTheme)("compact",i.compact)("ovSettings",i.ovSettings)("hasVideoDevices",i.hasVideoDevices)("hasAudioDevices",i.hasAudioDevices)("isWebcamAudioEnabled",i.toolbarMicIconEnabled())("isAutoLayout",i.isAutoLayout)("isConnectionLost",i.isConnectionLost)}}function VR(e,t){if(1&e&&(ls(0,"mat-sidenav",16,17),ds(2,"chat-component",18,19),hs()),2&e){var n=Cs(3);Vs("boundsLight",n.lightTheme),Ts("mode",n.sidenavMode),Mo(2),cs("lightTheme",n.lightTheme)}}var jR=function(e){return{OV_small:e}};function FR(e,t){if(1&e){var n=vs();ls(0,"div",20),ls(1,"stream-component",21),bs("nicknameClicked",function(e){return an(n),Cs(3).onNicknameUpdate(e)})("replaceScreenTrackClicked",function(e){return an(n),Cs(3).onReplaceScreenTrack(e)})("toggleVideoSizeClicked",function(e){return an(n),Cs(3).onToggleVideoSize(e)}),hs(),hs()}if(2&e){var i=t.$implicit;cs("ngClass",bu(3,jR,!(null!=i&&null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Mo(1),cs("user",i)("videoSizeBig",i.videoSizeBig)}}function BR(e,t){if(1&e){var n=vs();ls(0,"div",22),ls(1,"stream-component",23),bs("toggleVideoSizeClicked",function(e){return an(n),Cs(3).onToggleVideoSize(e)}),hs(),hs()}if(2&e){var i=t.$implicit;cs("ngClass",bu(3,jR,!(null!=i.streamManager&&null!=i.streamManager.stream&&i.streamManager.stream.videoActive))),Mo(1),cs("user",i)("videoSizeBig",i.videoSizeBig)}}function UR(e,t){if(1&e&&ds(0,"app-footer",24),2&e){var n=Cs(3);cs("lightTheme",n.lightTheme)("participants",n.participantsNameList)}}function zR(e,t){if(1&e&&(ls(0,"div"),os(1,LR,1,0,"div",5),os(2,DR,1,8,"app-toolbar",6),wu(3,"hasToolbar"),ls(4,"mat-sidenav-container",7),os(5,VR,4,4,"mat-sidenav",8),wu(6,"hasChat"),ls(7,"mat-sidenav-content",9),ls(8,"div",10),wu(9,"hasToolbar"),wu(10,"hasFooter"),os(11,FR,2,5,"div",11),os(12,BR,2,5,"div",12),hs(),hs(),hs(),os(13,UR,1,2,"app-footer",13),wu(14,"hasFooter"),hs()),2&e){var n=Cs(2);Mo(1),cs("ngIf",n.isConnectionLost),Mo(1),cs("ngIf",Su(3,14,n.ovSettings)),Mo(2),Vs("boundsLight",n.lightTheme),Mo(1),cs("ngIf",Su(6,16,n.ovSettings)),Mo(3),Ds("top",Su(9,18,n.ovSettings)?"40px":"0px")("bottom",Su(10,20,n.ovSettings)?"25px":"0px"),Vs("boundsLight",n.lightTheme),Mo(3),cs("ngForOf",n.localUsers),Mo(1),cs("ngForOf",n.remoteUsers),Mo(1),cs("ngIf",Su(14,22,n.ovSettings))}}function HR(e,t){if(1&e&&(ls(0,"div",1),os(1,NR,1,2,"app-room-config",2),os(2,zR,15,24,"div",3),hs()),2&e){var n=Cs();Vs("boundsLight",n.lightTheme),Mo(1),cs("ngIf",n.showConfigRoomCard),Mo(1),cs("ngIf",n.localUsers&&n.localUsers.length>0)}}var WR=function(){function e(e,t,n,i,r,o,a,s,c,u,l){this.router=e,this.utilsSrv=t,this.remoteUsersService=n,this.openViduWebRTCService=i,this.localUsersService=r,this.oVDevicesService=o,this.loggerSrv=a,this.chatService=s,this.storageSrv=c,this.oVLayout=u,this.tokenService=l,this._session=new Eu,this._publisher=new Eu,this._error=new Eu,this._joinSession=new Eu,this._leaveSession=new Eu,this.compact=!1,this.sidenavMode="side",this.showConfigRoomCard=!0,this.localUsers=[],this.remoteUsers=[],this.participantsNameList=[],this.isAutoLayout=!1,this.log=this.loggerSrv.get("VideoRoomComponent")}return e.prototype.beforeunloadHandler=function(){this.leaveSession()},e.prototype.sizeChange=function(){this.oVLayout.update(),this.checkSizeComponent()},e.prototype.ngOnInit=function(){var e;return IR(this,void 0,void 0,function(){return PR(this,function(t){return this.localUsersService.initialize(),this.openViduWebRTCService.initialize(),this.lightTheme=(null===(e=this.externalConfig)||void 0===e?void 0:e.getTheme())===CM.LIGHT,this.ovSettings=this.externalConfig?this.externalConfig.getOvSettings():new SM,this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&!this.utilsSrv.isMobile()),[2]})})},e.prototype.ngOnDestroy=function(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.remoteUsersService.clear(),this.oVLayout.clear(),this.localUsersService.clear(),this.session=null,this.sessionScreen=null,this.localUsers=[],this.remoteUsers=[],this.oVUsersSubscription&&this.oVUsersSubscription.unsubscribe(),this.remoteUsersSubscription&&this.remoteUsersSubscription.unsubscribe(),this.chatSubscription&&this.chatSubscription.unsubscribe(),this.remoteUserNameSubscription&&this.remoteUserNameSubscription.unsubscribe()},e.prototype.onConfigRoomJoin=function(){var e=this;this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.showConfigRoomCard=!1,this.subscribeToLocalUsers(),this.subscribeToRemoteUsers(),this.tokenService.initialize(this.ovSettings),setTimeout(function(){e.oVLayout.initialize(),e.checkSizeComponent(),e.joinToSession()},50)},e.prototype.joinToSession=function(){return IR(this,void 0,void 0,function(){return PR(this,function(e){switch(e.label){case 0:return this.openViduWebRTCService.initSessions(),this.session=this.openViduWebRTCService.getWebcamSession(),this._session.emit(this.session),this.sessionScreen=this.openViduWebRTCService.getScreenSession(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.setChatComponent(this.chatSidenav),this.chatService.subscribeToChat(),this.subscribeToChatComponent(),this.subscribeToReconnection(),[4,this.connectToSession()];case 1:return e.sent(),this.utilsSrv.isFirefox()&&!this.localUsersService.hasWebcamVideoActive()&&(this.openViduWebRTCService.publishWebcamVideo(!0),this.openViduWebRTCService.publishWebcamVideo(!1)),[2]}})})},e.prototype.leaveSession=function(){this.log.d("Leaving session..."),this.openViduWebRTCService.disconnect(),this.router.navigate([""]),this._leaveSession.emit()},e.prototype.onNicknameUpdate=function(e){this.localUsersService.updateUsersNickname(e),this.storageSrv.set(xM.USER_NICKNAME,e),this.openViduWebRTCService.sendNicknameSignal()},e.prototype.toggleMic=function(){this.localUsersService.isWebCamEnabled()?this.openViduWebRTCService.publishWebcamAudio(!this.localUsersService.hasWebcamAudioActive()):this.openViduWebRTCService.publishScreenAudio(!this.localUsersService.hasScreenAudioActive())},e.prototype.toggleCam=function(){return IR(this,void 0,void 0,function(){var e,t;return PR(this,function(n){switch(n.label){case 0:return e=!this.localUsersService.hasWebcamVideoActive(),this.localUsersService.areBothConnected()?(this.openViduWebRTCService.publishWebcamVideo(e),this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher(),[2]):this.localUsersService.isOnlyScreenConnected()?(t=this.localUsersService.hasScreenAudioActive(),this.openViduWebRTCService.isWebcamSessionConnected()?[3,2]:[4,this.connectWebcamSession()]):[3,4];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishWebcamPublisher()];case 3:n.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),n.label=4;case 4:return this.openViduWebRTCService.publishWebcamVideo(e),[2]}})})},e.prototype.toggleScreenShare=function(){return IR(this,void 0,void 0,function(){var e,t,n=this;return PR(this,function(i){switch(i.label){case 0:return this.localUsersService.areBothConnected()?(this.removeScreen(),[2]):this.localUsersService.isOnlyWebcamConnected()?((e=this.initScreenPublisher()).once("accessAllowed",function(t){return IR(n,void 0,void 0,function(){var t=this;return PR(this,function(n){switch(n.label){case 0:return e.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",function(){t.log.d("Clicked native stop button. Stopping screen sharing"),t.toggleScreenShare()}),this.log.d("ACCESS ALOWED screenPublisher"),this.localUsersService.enableScreenUser(e),this.openViduWebRTCService.isScreenSessionConnected()?[3,2]:[4,this.connectScreenSession()];case 1:n.sent(),n.label=2;case 2:return[4,this.openViduWebRTCService.publishScreenPublisher()];case 3:return n.sent(),this.openViduWebRTCService.sendNicknameSignal(),this.localUsersService.hasWebcamVideoActive()||(this.localUsersService.disableWebcamUser(),this.openViduWebRTCService.unpublishWebcamPublisher()),[2]}})})}),e.once("accessDenied",function(e){n.log.w("ScreenShare: Access Denied")}),[2]):(t=this.localUsersService.hasScreenAudioActive(),[4,this.openViduWebRTCService.publishWebcamPublisher()]);case 1:return i.sent(),this.openViduWebRTCService.publishScreenAudio(!1),this.openViduWebRTCService.publishWebcamAudio(t),this.localUsersService.enableWebcamUser(),this.removeScreen(),[2]}})})},e.prototype.toggleSpeakerLayout=function(){if(!this.localUsersService.isScreenShareEnabled())return this.isAutoLayout=!this.isAutoLayout,this.log.d("Automatic Layout ",this.isAutoLayout?"Disabled":"Enabled"),this.isAutoLayout?void this.subscribeToSpeechDetection():(this.log.d("Unsubscribe to speech detection"),this.session.off("publisherStartSpeaking"),this.resetAllBigElements(),void this.oVLayout.update());this.log.w("Screen is enabled. Speech detection has been rejected")},e.prototype.onReplaceScreenTrack=function(e){this.openViduWebRTCService.replaceScreenTrack()},e.prototype.checkSizeComponent=function(){var e;this.compact=(null===(e=document.getElementById("room-container"))||void 0===e?void 0:e.offsetWidth)<=790,this.sidenavMode=this.compact?"over":"side"},e.prototype.onToggleVideoSize=function(e){var t=e.element;e.resetAll&&this.resetAllBigElements(),this.utilsSrv.toggleBigElementClass(t),(null==e?void 0:e.connectionId)&&(this.openViduWebRTCService.isMyOwnConnection(e.connectionId)?this.localUsersService.toggleZoom(e.connectionId):this.remoteUsersService.toggleUserZoom(e.connectionId)),this.oVLayout.update()},e.prototype.toolbarMicIconEnabled=function(){return this.localUsersService.isWebCamEnabled()?this.localUsersService.hasWebcamAudioActive():this.localUsersService.hasScreenAudioActive()},e.prototype.connectToSession=function(){return IR(this,void 0,void 0,function(){var e;return PR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.tokenService.initTokens(this.externalConfig)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.log.e("There was an error initializing the token:",e.status,e.message),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.utilsSrv.showErrorMessage("There was an error initializing the token:",e.error||e.message),[3,3];case 3:return this.localUsersService.areBothConnected()?[4,this.connectWebcamSession()]:[3,8];case 4:return t.sent(),[4,this.connectScreenSession()];case 5:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 6:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 7:return t.sent(),[3,14];case 8:return this.localUsersService.isOnlyScreenConnected()?[4,this.connectScreenSession()]:[3,11];case 9:return t.sent(),[4,this.openViduWebRTCService.publishScreenPublisher()];case 10:return t.sent(),[3,14];case 11:return[4,this.connectWebcamSession()];case 12:return t.sent(),[4,this.openViduWebRTCService.publishWebcamPublisher()];case 13:t.sent(),t.label=14;case 14:return this._joinSession.emit(),this.oVLayout.update(),[2]}})})},e.prototype.connectScreenSession=function(){return IR(this,void 0,void 0,function(){var e;return PR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectScreenSession(this.tokenService.getScreenToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}})})},e.prototype.connectWebcamSession=function(){return IR(this,void 0,void 0,function(){var e;return PR(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.openViduWebRTCService.connectWebcamSession(this.tokenService.getWebcamToken())];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this._error.emit({error:e.error,messgae:e.message,code:e.code,status:e.status}),this.log.e("There was an error connecting to the session:",e.code,e.message),this.utilsSrv.showErrorMessage("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message)),[3,3];case 3:return[2]}})})},e.prototype.subscribeToConnectionCreatedAndDestroyed=function(){var e=this;this.session.on("connectionCreated",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);e.remoteUsersService.addUserName(t),(null==n?void 0:n.includes("_"+JP.SCREEN))||(e.remoteUsersService.add(t,null),e.openViduWebRTCService.sendNicknameSignal(t.connection))}}),this.session.on("connectionDestroyed",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.connection.connectionId)){e.remoteUsersService.deleteUserName(t);var n=e.utilsSrv.getNicknameFromConnectionData(t.connection.data);(null==n?void 0:n.includes("_"+JP.SCREEN))||e.remoteUsersService.removeUserByConnectionId(t.connection.connectionId)}})},e.prototype.subscribeToStreamCreated=function(){var e=this;this.session.on("streamCreated",function(t){if(!e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)){var n=e.session.subscribe(t.stream,void 0);e.remoteUsersService.add(t,n)}})},e.prototype.subscribeToStreamDestroyed=function(){var e=this;this.session.on("streamDestroyed",function(t){e.remoteUsersService.removeUserByConnectionId(t.stream.connection.connectionId)})},e.prototype.emitPublisher=function(e){this._publisher.emit(e)},e.prototype.subscribeToStreamPropertyChange=function(){var e=this;this.session.on("streamPropertyChanged",function(t){e.openViduWebRTCService.isMyOwnConnection(t.stream.connection.connectionId)||"videoActive"===t.changedProperty&&e.remoteUsersService.updateUsers()})},e.prototype.subscribeToNicknameChanged=function(){var e=this;this.session.on("signal:nicknameChanged",function(t){var n=t.from.connectionId;if(!e.openViduWebRTCService.isMyOwnConnection(n)){var i=e.utilsSrv.getNicknameFromConnectionData(t.data);e.remoteUsersService.updateNickname(n,i)}})},e.prototype.subscribeToSpeechDetection=function(){var e=this;this.log.d("Subscribe to speech detection",this.session),this.session.on("publisherStartSpeaking",function(t){var n=e.remoteUsersService.someoneIsSharingScreen();if(!e.localUsersService.isScreenShareEnabled()&&!n){var i=e.utilsSrv.getHTMLElementByClassName(t.connection.stream.streamManager.videos[0].video,nM.ROOT_CLASS);e.resetAllBigElements(),e.remoteUsersService.setUserZoom(t.connection.connectionId,!0),e.onToggleVideoSize({element:i})}})},e.prototype.removeScreen=function(){this.localUsersService.disableScreenUser(),this.openViduWebRTCService.unpublishScreenPublisher()},e.prototype.subscribeToChatComponent=function(){var e=this;this.chatSubscription=this.chatService.toggleChatObs.subscribe(function(t){e.oVLayout.update(e.externalConfig?300:0)})},e.prototype.subscribeToReconnection=function(){var e=this;this.session.on("reconnecting",function(){e.log.w("Connection lost: Reconnecting"),e.isConnectionLost=!0,e.utilsSrv.showErrorMessage("Connection Problem","Oops! Trying to reconnect to the session ...",!0)}),this.session.on("reconnected",function(){e.log.w("Connection lost: Reconnected"),e.isConnectionLost=!1,e.utilsSrv.closeDialog()}),this.session.on("sessionDisconnected",function(t){"networkDisconnect"===t.reason&&(e.utilsSrv.closeDialog(),e.leaveSession())})},e.prototype.initScreenPublisher=function(){var e=XP.SCREEN,t=this.hasAudioDevices?void 0:null,n=!(this.localUsersService.isWebCamEnabled()&&this.localUsersService.hasWebcamVideoActive())&&this.hasAudioDevices&&this.localUsersService.hasWebcamAudioActive(),i=this.openViduWebRTCService.createPublisherProperties(e,t,!0,n,!1);try{return this.openViduWebRTCService.initPublisher(void 0,i)}catch(r){this.log.e(r),this.utilsSrv.handlerScreenShareError(r)}},e.prototype.resetAllBigElements=function(){this.utilsSrv.removeAllBigElementClass(),this.remoteUsersService.resetUsersZoom(),this.localUsersService.resetUsersZoom()},e.prototype.subscribeToLocalUsers=function(){var e=this;this.oVUsersSubscription=this.localUsersService.OVUsers.subscribe(function(t){e.localUsers=t,e.oVLayout.update()})},e.prototype.subscribeToRemoteUsers=function(){var e=this;this.remoteUsersSubscription=this.remoteUsersService.remoteUsers.subscribe(function(t){e.remoteUsers=MR([],t),e.oVLayout.update()}),this.remoteUserNameSubscription=this.remoteUsersService.remoteUserNameList.subscribe(function(t){e.participantsNameList=MR([],t)})},e.\u0275fac=function(t){return new(t||e)(ss(yP),ss(aM),ss(lM),ss(pM),ss(sM),ss(MM),ss(eM),ss(gM),ss(TM),ss(RM),ss(FM))},e.\u0275cmp=vt({type:e,selectors:[["app-video-room"]],viewQuery:function(e,t){if(1&e&&(ju(AR,5),ju(RR,5)),2&e){var n=void 0;Vu(n=Bu())&&(t.chatComponent=n.first),Vu(n=Bu())&&(t.chatSidenav=n.first)}},hostBindings:function(e,t){1&e&&bs("beforeunload",function(){return t.beforeunloadHandler()},!1,jr)("resize",function(){return t.sizeChange()},!1,jr)},inputs:{externalConfig:"externalConfig"},outputs:{_session:"_session",_publisher:"_publisher",_error:"_error",_joinSession:"_joinSession",_leaveSession:"_leaveSession"},decls:1,vars:1,consts:[["id","videoRoomNavBar",3,"boundsLight",4,"ngIf"],["id","videoRoomNavBar"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated",4,"ngIf"],[4,"ngIf"],[3,"ovSettings","externalConfig","join","leaveSession","publisherCreated"],["class","reconnecting-container",4,"ngIf"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked",4,"ngIf"],["id","room-container","fullscreen","",1,"sidenav-container"],["position","end","class","sidenav-chat","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",3,"mode","boundsLight",4,"ngIf"],[1,"sidenav-main"],["id","layout",1,"bounds"],["class","OT_root OT_publisher custom-class","id","localUser",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher custom-class","id","remoteUsers",3,"ngClass",4,"ngFor","ngForOf"],[3,"lightTheme","participants",4,"ngIf"],[1,"reconnecting-container"],[3,"lightTheme","compact","ovSettings","hasVideoDevices","hasAudioDevices","isWebcamAudioEnabled","isAutoLayout","isConnectionLost","camButtonClicked","micButtonClicked","screenShareClicked","layoutButtonClicked","leaveSessionButtonClicked"],["position","end","fixedInViewport","true","fixedTopGap","40","fixedBottomGap","0",1,"sidenav-chat",3,"mode"],["sidenav",""],[3,"lightTheme"],["chatComponent",""],["id","localUser",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","nicknameClicked","replaceScreenTrackClicked","toggleVideoSizeClicked"],["id","remoteUsers",1,"OT_root","OT_publisher","custom-class",3,"ngClass"],[3,"user","videoSizeBig","toggleVideoSizeClicked"],[3,"lightTheme","participants"]],template:function(e,t){1&e&&os(0,HR,3,4,"div",0),2&e&&cs("ngIf",!!t.ovSettings)},directives:[bh,MA,wC,_C,gh,$A,kC,wM,vh,dx,xR,TR],pipes:[$M,GM,eA],styles:['#videoRoomNavBar[_ngcontent-%COMP%]{min-width:400px;background-color:#494949;height:100%}.stream-container[_ngcontent-%COMP%]{padding:0}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:80%;position:absolute}.sidenav-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;min-height:-webkit-fill-available;overflow:hidden}.sidenav-chat[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:450px;border-left:none;position:absolute}.mat-drawer-container[_ngcontent-%COMP%], .sidenav-chat[_ngcontent-%COMP%]{background-color:#494949}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}.bounds[_ngcontent-%COMP%]{background-color:#494949;position:absolute;left:0;right:0;min-width:350px!important;width:inherit}.boundsLight[_ngcontent-%COMP%]{background-color:#dfdfdf!important}\n\n.custom-class[_ngcontent-%COMP%]{min-height:0!important}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;font-family:Ubuntu,sans-serif;vertical-align:baseline;transition:all .1s linear}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:48px;min-height:48px}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_publisher.OT_mirrored[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{transform:scaleX(-1);transform-origin:50% 50%}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:hsla(0,0%,100%,.8);font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}@-webkit-keyframes OT_pulse{0%{box-shadow:0 0 0 0 #c70019}30%{box-shadow:0 0 5px 1px #c70019}50%{box-shadow:0 0 5px 1px #c70019}80%{box-shadow:0 0 0 0 #c70019}to{box-shadow:0 0 0 0 #c70019}}.OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat;right:0;top:0;border-left:1px solid hsla(0,0%,100%,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:rgba(0,0,0,.75)}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;-webkit-animation:OT_spin 2s linear infinite;animation:OT_spin 2s linear infinite}@-webkit-keyframes OT_spin{to{-webkit-transform:rotate(1turn)}}@keyframes OT_spin{to{transform:rotate(1turn)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover}@media only screen and (orientation: portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain!important;object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:50%}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat 50%}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,#97ce00 0,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:100% 100%;pointer-events:none;top:0;left:0;bottom:3px;right:3px}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;pointer-events:none;top:0;left:0;bottom:0;right:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:50%;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;top:0;left:0;bottom:0;right:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:rgba(0,0,0,.8)}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:50%;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}@media only screen and (max-width: 600px){#videoRoomNavBar[_ngcontent-%COMP%]{width:100%}}']}),e}(),GR=[{path:"",component:KP},{path:":roomName",component:WR}],qR=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=bt({type:e}),e.\u0275inj=je({imports:[[MP.forRoot(GR,{useHash:!0})],MP]}),e}(),ZR=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),YR=function(e){function t(){var t=e.call(this)||this;return t.NAME="WebComponent",t}return ZR(t,e),t.prototype.setSessionConfig=function(e){var t;this.sessionConfig=e,this.sessionConfig&&(this.sessionName=this.sessionConfig.sessionName,this.nickname=this.sessionConfig.user,this.tokens=this.sessionConfig.tokens,this.sessionConfig.ovSettings&&this.isOvSettingsType(this.sessionConfig.ovSettings)&&this.ovSettings.set(this.sessionConfig.ovSettings),this.ovSettings.setScreenSharing(this.ovSettings.hasScreenSharing()&&(null===(t=this.tokens)||void 0===t?void 0:t.length)>1),this.ovSettings.hasScreenSharing()||console.warn("ScreenSharing has been disabled. OpenVidu Angular has received only one token."))},t.prototype.getComponentName=function(){return this.NAME},t.prototype.isOvSettingsType=function(e){return"chat"in e&&"boolean"==typeof e.chat&&"autopublish"in e&&"boolean"==typeof e.autopublish&&"toolbar"in e&&"boolean"==typeof e.toolbar&&"footer"in e&&"boolean"==typeof e.footer&&"toolbarButtons"in e&&"object"==typeof e.toolbarButtons&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"audio"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.audio&&"video"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.video&&"screenShare"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.screenShare&&"fullscreen"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.fullscreen&&"layoutSpeaking"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.layoutSpeaking&&"exit"in e.toolbarButtons&&"boolean"==typeof e.toolbarButtons.exit},t}(EM),QR=["videoRoom"];function KR(e,t){if(1&e){var n=vs();ls(0,"app-video-room",1,2),bs("_error",function(e){return an(n),Cs().emitErrorEvent(e)})("_session",function(e){return an(n),Cs().emitSession(e)})("_publisher",function(e){return an(n),Cs().emitPublisher(e)})("_leaveSession",function(e){return an(n),Cs().emitLeaveSessionEvent(e)})("_joinSession",function(e){return an(n),Cs().emitJoinSessionEvent(e)}),hs()}2&e&&cs("externalConfig",Cs().webComponent)}var JR=function(){function e(e){this.loggerSrv=e,this.sessionCreated=new Eu,this.publisherCreated=new Eu,this.error=new Eu,this.joinSession=new Eu,this.leaveSession=new Eu,this.display=!1,this.webComponent=new YR,this.log=this.loggerSrv.get("WebComponentComponent")}return Object.defineProperty(e.prototype,"sessionConfig",{set:function(e){var t=this;this.log.d("Webcomponent sessionConfig: ",e),setTimeout(function(){var n;if("string"==typeof e)try{e=JSON.parse(e)}catch(i){return void t.log.e("Unexpected JSON",i)}if(t.isEmpty(e))return t.log.w("Parameters received are incorrect.",e),t.log.w("Exit session"),void(null===(n=t.videoRoom)||void 0===n||n.leaveSession());t.webComponent.setSessionConfig(e),t.display=t.webComponent.canJoinToSession()},200)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{set:function(e){this.webComponent.setTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduServerUrl",{set:function(e){this.webComponent.setOvServerUrl(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openviduSecret",{set:function(e){this.webComponent.setOvSecret(e)},enumerable:!1,configurable:!0}),e.prototype.emitErrorEvent=function(e){var t=this;setTimeout(function(){return t.error.emit(e)},20)},e.prototype.emitSession=function(e){var t=this;e.on("sessionDisconnected",function(e){return t.display=!1}),e.on("connectionCreated",function(e){t.videoRoom.checkSizeComponent()}),this.sessionCreated.emit(e)},e.prototype.emitPublisher=function(e){this.publisherCreated.emit(e)},e.prototype.emitJoinSessionEvent=function(e){this.joinSession.emit(e)},e.prototype.emitLeaveSessionEvent=function(e){this.leaveSession.emit(e)},e.prototype.isEmpty=function(e){return 0===Object.keys(e).length},e.\u0275fac=function(t){return new(t||e)(ss(eM))},e.\u0275cmp=vt({type:e,selectors:[["app-web-component"]],viewQuery:function(e,t){var n;1&e&&ju(QR,5),2&e&&Vu(n=Bu())&&(t.videoRoom=n.first)},inputs:{ovSettings:"ovSettings",sessionConfig:"sessionConfig",theme:"theme",openviduServerUrl:"openviduServerUrl",openviduSecret:"openviduSecret"},outputs:{sessionCreated:"sessionCreated",publisherCreated:"publisherCreated",error:"error",joinSession:"joinSession",leaveSession:"leaveSession"},decls:1,vars:1,consts:[[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession",4,"ngIf"],[3,"externalConfig","_error","_session","_publisher","_leaveSession","_joinSession"],["videoRoom",""]],template:function(e,t){1&e&&os(0,KR,2,1,"app-video-room",0),2&e&&cs("ngIf",t.display)},directives:[bh,WR],styles:["app-web-component[_ngcontent-%COMP%]{z-index:2147483647}"]}),e}(),XR=function(){function e(e){this.injector=e;var t=function(e,t){var n=function(e,t){return t.get(yc).resolveComponentFactory(e).inputs}(e,t.injector),i=t.strategyFactory||new mE(e,t.injector),r=function(e){var t={};return e.forEach(function(e){var n,i=e.propName;t[(n=e.templateName,n.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}))]=i}),t}(n),o=function(e){u(c,e);var o=p(c);function c(e){var t;return s(this,c),(t=o.call(this)).injector=e,t}return a(c,[{key:"ngElementStrategy",get:function(){var e=this;if(!this._ngElementStrategy){var r=this._ngElementStrategy=i.create(this.injector||t.injector);n.forEach(function(t){var n=t.propName;if(e.hasOwnProperty(n)){var i=e[n];delete e[n],r.setInputValue(n,i)}})}return this._ngElementStrategy}},{key:"attributeChangedCallback",value:function(e,t,n,i){this.ngElementStrategy.setInputValue(r[e],n)}},{key:"connectedCallback",value:function(){var e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}},{key:"disconnectedCallback",value:function(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}},{key:"subscribeToEvents",value:function(){var e=this;this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(function(t){var n=function(e,t,n){if("function"!=typeof CustomEvent){var i=e.createEvent("CustomEvent");return i.initCustomEvent(t,!1,!1,n),i}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(e.ownerDocument,t.name,t.value);e.dispatchEvent(n)})}}]),c}(yE);return o.observedAttributes=Object.keys(r),n.forEach(function(e){var t=e.propName;Object.defineProperty(o.prototype,t,{get:function(){return this.ngElementStrategy.getInputValue(t)},set:function(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})}),o}(JR,{injector:this.injector});customElements.define("openvidu-webcomponent",t)}return e.prototype.ngDoBootstrap=function(){},e.\u0275fac=function(t){return new(t||e)(ji(Ha))},e.\u0275mod=bt({type:e}),e.\u0275inj=je({providers:[DM,pM,sM,aM,lM,MM,eM,gM,mM,TM,tR,{provide:D_,useClass:tR}],imports:[[jf,Ff,bd,Bm,Ob,Tb,PC,SS,AS,kw,bk,eE,kb,ww,eC,gb,RS,CC,SC,hE,qR,cS,kO,zk]]}),e}();(function(){if(Sl)throw new Error("Cannot enable prod mode after platform setup.");wl=!1})(),gd().bootstrapModule(XR).catch(function(e){return console.log(e)})},75725:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},73560:function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0},48798:function(e){"use strict";e.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"]')},39642:function(e){"use strict";e.exports=[]},5713:function(e){"use strict";e.exports=JSON.parse('{"_from":"openvidu-browser@2.21.0","_id":"openvidu-browser@2.21.0","_inBundle":false,"_integrity":"sha512-dQZ8lsvt7zydklG/naHtaWpnhRo5ErTjEkWslmg6e2fjFVy+GmGVrJBeMJrJDM2FrOWv8aH86fRNR+P7eESB9g==","_location":"/openvidu-browser","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"openvidu-browser@2.21.0","name":"openvidu-browser","escapedName":"openvidu-browser","rawSpec":"2.21.0","saveSpec":null,"fetchSpec":"2.21.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/openvidu-browser/-/openvidu-browser-2.21.0.tgz","_shasum":"45824755633aadbd07bf09437f42fee473249847","_spec":"openvidu-browser@2.21.0","_where":"/opt/openvidu-call-front","author":{"name":"OpenVidu"},"bugs":{"url":"https://github.com/OpenVidu/openvidu/issues"},"bundleDependencies":false,"dependencies":{"events":"3.3.0","freeice":"2.2.2","hark":"1.2.3","inherits":"2.0.4","jsnlog":"2.30.0","mime":"3.0.0","platform":"1.3.6","semver":"7.3.5","uuid":"8.3.2","wolfy87-eventemitter":"5.2.9"},"deprecated":false,"description":"OpenVidu Browser","devDependencies":{"@types/node":"17.0.8","@types/platform":"1.3.4","browserify":"17.0.0","grunt":"1.4.1","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.0.1","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.1","grunt-ts":"6.0.0-beta.22","terser":"5.10.0","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.22.10","typescript":"4.5.4"},"homepage":"https://github.com/OpenVidu/openvidu#readme","license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu.git"},"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.21.0"}')},60306:function(e){"use strict";e.exports={i8:"2.21.0"}}},function(e){"use strict";e(e.s=48711)}]); |