3 lines
1.4 MiB
3 lines
1.4 MiB
(()=>{"use strict";var e,s={},v={};function n(e){var a=v[e];if(void 0!==a)return a.exports;var r=v[e]={id:e,loaded:!1,exports:{}};return s[e].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.m=s,e=[],n.O=(a,r,f,o)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,f,o]=e[t],i=!0,l=0;l<r.length;l++)(!1&o||c>=o)&&Object.keys(n.O).every(_=>n.O[_](r[l]))?r.splice(l--,1):(i=!1,o<c&&(c=o));if(i){e.splice(t--,1);var u=f();void 0!==u&&(a=u)}}return a}o=o||0;for(var t=e.length;t>0&&e[t-1][2]>o;t--)e[t]=e[t-1];e[t]=[r,f,o]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};n.O.j=f=>0===e[f];var a=(f,o)=>{var l,u,[t,c,i]=o,d=0;if(t.some(b=>0!==e[b])){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(i)var p=i(n)}for(f&&f(o);d<t.length;d++)n.o(e,u=t[d])&&e[u]&&e[u][0](),e[u]=0;return n.O(p)},r=self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[];r.forEach(a.bind(null,0)),r.push=a.bind(null,r.push.bind(r))})()})();
|
|
(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[179],{7576:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.Connection=void 0;var k=j(8770),z=j(1829),V=j(4131),_=z.OpenViduLogger.getInstance(),E=function(){function P(v,m){this.session=v,this.disposed=!1;var x="'Connection' created ";m.role?(this.localOptions=m,this.connectionId=this.localOptions.id,this.creationTime=this.localOptions.createdAt,this.data=this.localOptions.metadata,this.rpcSessionId=this.localOptions.sessionId,this.role=this.localOptions.role,this.record=this.localOptions.record,x+="(local)"):(this.remoteOptions=m,this.connectionId=this.remoteOptions.id,this.creationTime=this.remoteOptions.createdAt,this.remoteOptions.metadata&&(this.data=this.remoteOptions.metadata),this.remoteOptions.streams&&this.initRemoteStreams(this.remoteOptions.streams),x+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),_.info(x)}return P.prototype.sendIceCandidate=function(v){var m=this;this.disposed?_.warn("Connection ".concat(this.connectionId," disposed when trying to send an ICE candidate. ICE candidate not sent")):(_.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,v),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:v.candidate,sdpMid:v.sdpMid,sdpMLineIndex:v.sdpMLineIndex},function(x,M){x&&(_.error("Error sending ICE candidate: "+JSON.stringify(x)),m.session.emitEvent("exception",[new V.ExceptionEvent(m.session,V.ExceptionEventName.ICE_CANDIDATE_ERROR,m.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",x)]))}))},P.prototype.initRemoteStreams=function(v){var m=this;v.forEach(function(x){var M={id:x.id,createdAt:x.createdAt,connection:m,hasAudio:x.hasAudio,hasVideo:x.hasVideo,audioActive:x.audioActive,videoActive:x.videoActive,typeOfVideo:x.typeOfVideo,frameRate:x.frameRate,videoDimensions:x.videoDimensions?JSON.parse(x.videoDimensions):void 0,filter:x.filter?x.filter:void 0},W=new k.Stream(m.session,M);m.addStream(W)}),_.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},P.prototype.addStream=function(v){v.connection=this,this.stream=v},P.prototype.removeStream=function(){delete this.stream},P.prototype.dispose=function(){this.disposed=!0,this.removeStream()},P}();H.Connection=E},2768:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.EventDispatcher=void 0;var k=j(1829),z=j(2937),V=k.OpenViduLogger.getInstance(),_=function(){function E(){this.userHandlerArrowHandler=new WeakMap,this.ee=new z}return E.prototype.onAux=function(P,v,m){var x=function(M){M?V.debug(v,M):V.debug(v),m(M)};return this.userHandlerArrowHandler.set(m,x),this.ee.on(P,x),this},E.prototype.onceAux=function(P,v,m){var x=this,M=function(W){W?V.debug(v,W):V.debug(v),m(W),x.userHandlerArrowHandler.delete(m)};return this.userHandlerArrowHandler.set(m,M),this.ee.once(P,M),this},E.prototype.offAux=function(P,v){if(v){var m=this.userHandlerArrowHandler.get(v);m&&this.ee.off(P,m),this.userHandlerArrowHandler.delete(v)}else this.ee.removeAllListeners(P);return this},E}();H.EventDispatcher=_},5481:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.Filter=void 0;var k=j(9383),z=j(9303),_=j(1829).OpenViduLogger.getInstance(),E=function(){function P(v,m){this.handlers=new Map,this.type=v,this.options=m}return P.prototype.execMethod=function(v,m){var x=this;return new Promise(function(M,W){var te;_.info("Executing filter method to stream "+x.stream.streamId);var Y,U=function(G){_.info("Filter method successfully executed on Stream "+x.stream.streamId);var D=Object.assign({},x.stream.filter);return x.stream.filter.lastExecMethod={method:v,params:Y},G&&(x.stream.session.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(x.stream.session,x.stream,"filter",x.stream.filter,D,"execFilterMethod")]),x.stream.streamManager.emitEvent("streamPropertyChanged",[new k.StreamPropertyChangedEvent(x.stream.streamManager,x.stream,"filter",x.stream.filter,D,"execFilterMethod")])),M()};if(x.type.startsWith("VB:")){if("string"==typeof m)try{m=JSON.parse(m)}catch(G){return W(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+G))}if(Y=m,"update"!==v)return W(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(v,'"')));if(null===(te=x.stream.virtualBackgroundSinkElements)||void 0===te||!te.VB)return W(new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));x.stream.virtualBackgroundSinkElements.VB.updateValues(m).then(function(){return U(!1)}).catch(function(G){return W(G.name===z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new z.OpenViduError(G.name,G.message):new z.OpenViduError(z.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+G))})}else{var ge=void 0;if("string"!=typeof m)try{ge=JSON.stringify(m)}catch(G){var le="'params' property must be a JSON formatted object";return _.error(le),W(le)}else ge=m;Y=ge,x.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:x.stream.streamId,method:v,params:ge},function(G,D){return G?(_.error("Error executing filter method for Stream "+x.stream.streamId,G),W(401===G.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):G)):U(!0)})}})},P.prototype.addEventListener=function(v,m){var x=this;return new Promise(function(M,W){_.info("Adding filter event listener to event "+v+" to stream "+x.stream.streamId),x.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:x.stream.streamId,eventType:v},function(te,Y){return te?(_.error("Error adding filter event listener to event "+v+"for Stream "+x.stream.streamId,te),W(401===te.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):te)):(x.handlers.set(v,m),_.info("Filter event listener to event "+v+" successfully applied on Stream "+x.stream.streamId),M())})})},P.prototype.removeEventListener=function(v){var m=this;return new Promise(function(x,M){_.info("Removing filter event listener to event "+v+" to stream "+m.stream.streamId),m.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:m.stream.streamId,eventType:v},function(W,te){return W?(_.error("Error removing filter event listener to event "+v+"for Stream "+m.stream.streamId,W),M(401===W.code?new z.OpenViduError(z.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):W)):(m.handlers.delete(v),_.info("Filter event listener to event "+v+" successfully removed on Stream "+m.stream.streamId),x())})})},P}();H.Filter=E},8499:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.LocalRecorder=void 0;var P,k=j(1216),z=j(1829),V=j(1171),_=j(1397),E=z.OpenViduLogger.getInstance(),v=function(){function m(x){this.stream=x,this.chunks=[],P=V.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=k.LocalRecorderState.READY}return m.prototype.record=function(x){var M=this;return new Promise(function(W,te){try{if("string"==typeof x||x instanceof String)return te("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(x,'" }'));if("undefined"==typeof MediaRecorder)throw E.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(M.state!==k.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+M.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");E.log("Starting local recording of stream '"+M.stream.streamId+"' of connection '"+M.connectionId+"'"),x?x.mimeType||(x.mimeType="video/webm"):x={mimeType:"video/webm"},M.mediaRecorder=new MediaRecorder(M.stream.getMediaStream(),x),M.mediaRecorder.start()}catch(Y){return te(Y)}return M.mediaRecorder.ondataavailable=function(Y){Y.data.size>0&&M.chunks.push(Y.data)},M.mediaRecorder.onerror=function(Y){E.error("MediaRecorder error: ",Y)},M.mediaRecorder.onstart=function(){E.log("MediaRecorder started (state="+M.mediaRecorder.state+")")},M.mediaRecorder.onstop=function(){M.onStopDefault()},M.mediaRecorder.onpause=function(){E.log("MediaRecorder paused (state="+M.mediaRecorder.state+")")},M.mediaRecorder.onresume=function(){E.log("MediaRecorder resumed (state="+M.mediaRecorder.state+")")},M.state=k.LocalRecorderState.RECORDING,W()})},m.prototype.stop=function(){var x=this;return new Promise(function(M,W){try{if(x.state===k.LocalRecorderState.READY||x.state===k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+x.state+"'). Call 'LocalRecorder.start()' before");x.mediaRecorder.onstop=function(){return x.onStopDefault(),M()},x.mediaRecorder.stop()}catch(te){return W(te)}})},m.prototype.pause=function(){var x=this;return new Promise(function(M,W){try{return x.state!==k.LocalRecorderState.RECORDING?W(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+x.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(x.mediaRecorder.pause(),x.state=k.LocalRecorderState.PAUSED,M())}catch(te){return W(te)}})},m.prototype.resume=function(){var x=this;return new Promise(function(M,W){try{if(x.state!==k.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+x.state+"'). Call 'LocalRecorder.pause()' before");return x.mediaRecorder.resume(),x.state=k.LocalRecorderState.RECORDING,M()}catch(te){return W(te)}})},m.prototype.preview=function(x){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.preview()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");if(this.videoPreview=document.createElement("video"),this.videoPreview.id=this.id,this.videoPreview.autoplay=!0,P.isSafariBrowser()&&(this.videoPreview.playsInline=!0),"string"==typeof x){var M=document.getElementById(x);M&&(this.videoPreview=M.appendChild(this.videoPreview))}else this.videoPreview=x.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},m.prototype.clean=function(){var x=this,M=function(){delete x.blob,x.chunks=[],x.state=k.LocalRecorderState.READY};this.state===k.LocalRecorderState.RECORDING||this.state===k.LocalRecorderState.PAUSED?this.stop().then(function(){return M()}).catch(function(){return M()}):M()},m.prototype.download=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var x=document.createElement("a");x.style.display="none",document.body.appendChild(x);var M=globalThis.URL.createObjectURL(this.blob);x.href=M,x.download=this.id+"."+_.getExtension(this.blob.type),x.click(),globalThis.URL.revokeObjectURL(M),document.body.removeChild(x)},m.prototype.getBlob=function(){if(this.state!==k.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},m.prototype.uploadAsBinary=function(x,M){var W=this;return new Promise(function(te,Y){if(W.state!==k.LocalRecorderState.FINISHED)return Y(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+W.state+"'). Call 'LocalRecorder.stop()' before"));var U=new XMLHttpRequest;if(U.open("POST",x,!0),"object"==typeof M)for(var ge=0,le=Object.keys(M);ge<le.length;ge++){var G=le[ge];U.setRequestHeader(G,M[G])}U.onreadystatechange=function(){if(4===U.readyState)return"2"===U.status.toString().charAt(0)?te(U.responseText):Y(U.status)},U.send(W.blob)})},m.prototype.uploadAsMultipartfile=function(x,M){var W=this;return new Promise(function(te,Y){if(W.state!==k.LocalRecorderState.FINISHED)return Y(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+W.state+"'). Call 'LocalRecorder.stop()' before"));var U=new XMLHttpRequest;if(U.open("POST",x,!0),"object"==typeof M)for(var ge=0,le=Object.keys(M);ge<le.length;ge++){var G=le[ge];U.setRequestHeader(G,M[G])}var D=new FormData;D.append("file",W.blob,W.id+"."+_.getExtension(W.blob.type)),U.onreadystatechange=function(){if(4===U.readyState)return"2"===U.status.toString().charAt(0)?te(U.responseText):Y(U.status)},U.send(D)})},m.prototype.onStopDefault=function(){E.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:this.mediaRecorder.mimeType}),this.chunks=[],this.videoPreviewSrc=globalThis.URL.createObjectURL(this.blob),this.state=k.LocalRecorderState.FINISHED},m}();H.LocalRecorder=v},3634:function(Fe,H,j){"use strict";var k=this&&this.__awaiter||function(S,p,T,Z){return new(T||(T=Promise))(function(A,Q){function ne(O){try{g(Z.next(O))}catch(F){Q(F)}}function se(O){try{g(Z.throw(O))}catch(F){Q(F)}}function g(O){O.done?A(O.value):function C(A){return A instanceof T?A:new T(function(Q){Q(A)})}(O.value).then(ne,se)}g((Z=Z.apply(S,p||[])).next())})},z=this&&this.__generator||function(S,p){var Z,C,A,Q,T={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return Q={next:ne(0),throw:ne(1),return:ne(2)},"function"==typeof Symbol&&(Q[Symbol.iterator]=function(){return this}),Q;function ne(g){return function(O){return function se(g){if(Z)throw new TypeError("Generator is already executing.");for(;T;)try{if(Z=1,C&&(A=2&g[0]?C.return:g[0]?C.throw||((A=C.return)&&A.call(C),0):C.next)&&!(A=A.call(C,g[1])).done)return A;switch(C=0,A&&(g=[2&g[0],A.value]),g[0]){case 0:case 1:A=g;break;case 4:return T.label++,{value:g[1],done:!1};case 5:T.label++,C=g[1],g=[0];continue;case 7:g=T.ops.pop(),T.trys.pop();continue;default:if(!(A=(A=T.trys).length>0&&A[A.length-1])&&(6===g[0]||2===g[0])){T=0;continue}if(3===g[0]&&(!A||g[1]>A[0]&&g[1]<A[3])){T.label=g[1];break}if(6===g[0]&&T.label<A[1]){T.label=A[1],A=g;break}if(A&&T.label<A[2]){T.label=A[2],T.ops.push(g);break}A[2]&&T.ops.pop(),T.trys.pop();continue}g=p.call(S,T)}catch(O){g=[6,O],C=0}finally{Z=A=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,O])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.OpenVidu=void 0;var q,V=j(8499),_=j(4302),E=j(5607),P=j(1690),v=j(9383),m=j(9303),x=j(7167),M=j(1829),W=j(1171),te=j(467),Y=j(48),U=j(1438),ge=j(2937),le=j(4940),G=j(9469),D=M.OpenViduLogger.getInstance(),K=function(){function S(){var p=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.stt=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=U.OpenViduLoggerConfiguration.disabled,this.isAtLeastPro=!1,this.isEnterprise=!1,this.ee=new ge,q=W.PlatformUtils.getInstance(),this.libraryVersion=G.version,D.info("OpenVidu initialized"),D.info("Platform detected: "+q.getDescription()),D.info("openvidu-browser version: "+this.libraryVersion),(q.isMobileDevice()||q.isReactNative())&&this.onOrientationChanged(function(){p.publishers.forEach(function(T){T.stream.isLocalStreamPublished&&T.stream&&T.stream.hasVideo&&p.sendNewVideoDimensionsIfRequired(T,"deviceRotated",75,10)})})}return S.prototype.initSession=function(){return this.session=new E.Session(this),this.session},S.prototype.initPublisher=function(p,T,Z){var C;C=T&&"function"!=typeof T?{audioSource:void 0!==(C=T).audioSource?C.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&C.videoSource instanceof MediaStreamTrack?void 0:void 0!==C.frameRate?C.frameRate:void 0,insertMode:void 0!==C.insertMode?"string"==typeof C.insertMode?x.VideoInsertMode[C.insertMode]:C.insertMode:x.VideoInsertMode.APPEND,mirror:void 0===C.mirror||C.mirror,publishAudio:void 0===C.publishAudio||C.publishAudio,publishVideo:void 0===C.publishVideo||C.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&C.videoSource instanceof MediaStreamTrack?void 0:void 0!==C.resolution?C.resolution:"640x480",videoSource:void 0!==C.videoSource?C.videoSource:void 0,videoSimulcast:C.videoSimulcast,filter:C.filter}:{insertMode:x.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var Q,A=new _.Publisher(p,C,this);return T&&"function"==typeof T?Q=T:Z&&(Q=Z),A.initialize().then(function(){void 0!==Q&&Q(void 0),A.emitEvent("accessAllowed",[])}).catch(function(ne){void 0!==Q&&Q(ne),A.emitEvent("accessDenied",[ne])}),this.publishers.push(A),A},S.prototype.initPublisherAsync=function(p,T){var Z=this;return new Promise(function(C,A){var Q,ne=function(se){return se?A(se):C(Q)};Q=T?Z.initPublisher(p,T,ne):Z.initPublisher(p,ne)})},S.prototype.initLocalRecorder=function(p){return new V.LocalRecorder(p)},S.prototype.checkSystemRequirements=function(){return q.isIPhoneOrIPad()?q.isIOSWithSafari()||q.isChromeMobileBrowser()||q.isFirefoxMobileBrowser()||q.isOperaMobileBrowser()||q.isEdgeMobileBrowser()||q.isIonicIos():q.isChromeBrowser()||q.isChromeMobileBrowser()||q.isFirefoxBrowser()||q.isFirefoxMobileBrowser()||q.isOperaBrowser()||q.isOperaMobileBrowser()||q.isEdgeBrowser()||q.isEdgeMobileBrowser()||q.isSamsungBrowser()||q.isSafariBrowser()||q.isAndroidBrowser()||q.isElectron()||q.isNodeJs()},S.prototype.checkScreenSharingCapabilities=function(){return q.canScreenShare()},S.prototype.getDevices=function(){return new Promise(function(p,T){navigator.mediaDevices.enumerateDevices().then(function(Z){var C,A=[];if(!q.isIonicAndroid()||"undefined"==typeof cordova||!(null===(C=null==cordova?void 0:cordova.plugins)||void 0===C?void 0:C.EnumerateDevicesPlugin))return Z.forEach(function(Q){("audioinput"===Q.kind||"videoinput"===Q.kind)&&A.push({kind:Q.kind,deviceId:Q.deviceId,label:Q.label})}),p(A);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(Q){var ne=[],se=[],g=[];return ne=Q.filter(function(O){return"audioinput"===O.kind}),se=Z.filter(function(O){return"videoinput"===O.kind}),g=Z.filter(function(O){return"audioinput"===O.kind}),se.forEach(function(O,F){A.push(O.label?{kind:O.kind,deviceId:O.deviceId,label:O.label}:{kind:O.kind,deviceId:O.deviceId,label:0===F?"Front Camera":1===F?"Back Camera":"Unknown Camera"})}),g.forEach(function(O,F){if(O.label)A.push({kind:O.kind,deviceId:O.deviceId,label:O.label});else{var b="";switch(F){case 0:b="Default";break;case 1:var I=ne.filter(function(de){return de.label.includes("Built")})[0];b=I?I.label:"Built-in Microphone";break;case 2:var $=ne.filter(function(de){return de.label.includes("Wired")})[0];b=$?$.label:"Headset earpiece";break;case 3:var Ce=ne.filter(function(de){return de.label.includes("Bluetooth")})[0];b=Ce?Ce.label:"Wireless";break;default:b="Unknown Microphone"}A.push({kind:O.kind,deviceId:O.deviceId,label:b})}}),p(A)})}).catch(function(Z){return D.error("Error getting devices",Z),T(Z)})})},S.prototype.getUserMedia=function(p){var T=this;return new Promise(function(Z,C){return k(T,void 0,void 0,function(){var A,Q,ne,se,g,O,F,b,I,$,de,ce,Ce=this;return z(this,function(Te){switch(Te.label){case 0:A=function(Xe,je){return k(Ce,void 0,void 0,function(){var ht,$e,he;return z(this,function($t){switch($t.label){case 0:ht={audio:void 0===je.audio||je.audio,video:!1},$t.label=1;case 1:return $t.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(ht)];case 2:return $e=$t.sent(),Xe.addTrack($e.getAudioTracks()[0]),[2,Z(Xe)];case 3:return he=$t.sent(),Xe.getAudioTracks().forEach(function(Ke){Ke.stop()}),Xe.getVideoTracks().forEach(function(Ke){Ke.stop()}),[2,C(this.generateAudioDeviceError(he,ht))];case 4:return[2]}})})},Te.label=1;case 1:return Te.trys.push([1,20,,21]),[4,this.generateMediaConstraints(p)];case 2:return(Q=Te.sent()).videoTrack&&Q.audioTrack||Q.audioTrack&&!1===(null===(de=Q.constraints)||void 0===de?void 0:de.video)||Q.videoTrack&&!1===(null===(ce=Q.constraints)||void 0===ce?void 0:ce.audio)?[2,Z(this.addAlreadyProvidedTracks(Q,new MediaStream))]:[3,3];case 3:if(Q.videoTrack&&delete Q.constraints.video,Q.audioTrack&&delete Q.constraints.audio,ne=!1,"string"!=typeof p.videoSource)return[3,12];if(!("screen"===p.videoSource||"window"===p.videoSource||q.isElectron()&&p.videoSource.startsWith("screen:")))return[3,12];if(ne=!Q.audioTrack&&null!==p.audioSource&&!1!==p.audioSource,!navigator.mediaDevices.getDisplayMedia||q.isElectron())return[3,11];Te.label=4;case 4:return Te.trys.push([4,9,,10]),[4,navigator.mediaDevices.getDisplayMedia({video:!0})];case 5:return O=Te.sent(),this.addAlreadyProvidedTracks(Q,O),ne?[4,A(O,Q.constraints)]:[3,7];case 6:return Te.sent(),[2];case 7:return[2,Z(O)];case 8:return[3,10];case 9:return se=Te.sent(),b=m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,I=se.toString(),[2,C(new m.OpenViduError(b,I))];case 10:return[3,11];case 11:return[3,12];case 12:g=ne?{video:Q.constraints.video}:Q.constraints,Te.label=13;case 13:return Te.trys.push([13,18,,19]),[4,navigator.mediaDevices.getUserMedia(g)];case 14:return O=Te.sent(),this.addAlreadyProvidedTracks(Q,O),ne?[4,A(O,Q.constraints)]:[3,16];case 15:return Te.sent(),[3,17];case 16:return[2,Z(O)];case 17:return[3,19];case 18:return F=Te.sent(),b=void 0,I=F.toString(),[2,C(new m.OpenViduError(b="screen"!==p.videoSource?m.OpenViduErrorName.DEVICE_ACCESS_DENIED:m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,I))];case 19:return[3,21];case 20:return $=Te.sent(),C($),[3,21];case 21:return[2]}})})})},S.prototype.enableProdMode=function(){D.enableProdMode()},S.prototype.setAdvancedConfiguration=function(p){this.advancedConfiguration=p},S.prototype.onOrientationChanged=function(p){globalThis.addEventListener("orientationchange",p)},S.prototype.sendNewVideoDimensionsIfRequired=function(p,T,Z,C){var Q,ne,se,g,A=this,O=0,F=(null===(ne=null===(Q=null==p?void 0:p.stream)||void 0===Q?void 0:Q.videoDimensions)||void 0===ne?void 0:ne.width)||0,b=(null===(g=null===(se=null==p?void 0:p.stream)||void 0===se?void 0:se.videoDimensions)||void 0===g?void 0:g.height)||0,I=setInterval(function(){++O>C&&clearTimeout(I),p.getVideoDimensions().then(function($){($.width!==F||$.height!==b)&&(clearTimeout(I),A.sendVideoDimensionsChangedEvent(p,T,F,b,$.width,$.height))})},Z)},S.prototype.sendVideoDimensionsChangedEvent=function(p,T,Z,C,A,Q){var ne=this;p.stream.videoDimensions={width:A||0,height:Q||0},this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(p.stream.videoDimensions),reason:T},function(se,g){se?D.error("Error sending 'streamPropertyChanged' event",se):(ne.session.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(ne.session,p.stream,"videoDimensions",p.stream.videoDimensions,{width:Z,height:C},T)]),p.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(p,p.stream,"videoDimensions",p.stream.videoDimensions,{width:Z,height:C},T)]),ne.session.sendVideoData(p))})},S.prototype.sendTrackChangedEvent=function(p,T,Z,C){var A=this,Q={label:T},ne={label:Z},se="trackReplaced";p.stream.isLocalStreamPublished?this.sendRequest("streamPropertyChanged",{streamId:p.stream.streamId,property:C,newValue:ne,reason:se},function(g,O){g?D.error("Error sending 'streamPropertyChanged' event",g):(A.session.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(A.session,p.stream,C,ne,Q,se)]),p.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(p,p.stream,C,ne,Q,se)]))}):(this.session.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(this.session,p.stream,C,ne,Q,se)]),p.emitEvent("streamPropertyChanged",[new v.StreamPropertyChangedEvent(p,p.stream,C,ne,Q,se)]))},S.prototype.generateMediaConstraints=function(p){var T=this;return new Promise(function(Z,C){var A={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},Q=p.audioSource,ne=p.videoSource;if((null===Q||!1===Q)&&(A.constraints.audio=!1),(null===ne||!1===ne)&&(A.constraints.video=!1),!1===A.constraints.audio&&!1===A.constraints.video)return C(new m.OpenViduError(m.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&Q instanceof MediaStreamTrack&&(A.audioTrack=Q),"undefined"!=typeof MediaStreamTrack&&ne instanceof MediaStreamTrack&&(A.videoTrack=ne),void 0===Q&&(A.constraints.audio=!0),void 0===ne&&(A.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==ne&&!1!==ne){if(p.resolution){var se=p.resolution.toLowerCase().split("x"),g=Number(se[0]),O=Number(se[1]);A.constraints.video={width:{ideal:g},height:{ideal:O}}}p.frameRate&&(A.constraints.video.frameRate={ideal:p.frameRate})}return T.configureDeviceIdOrScreensharing(A,p,Z,C),Z(A)})},S.prototype.startWs=function(p){var T={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:p,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session),speechToTextMessage:this.session.onSpeechToTextMessage.bind(this.session),speechToTextDisconnected:this.session.onSpeechToTextDisconnected.bind(this.session)}};this.jsonRpcClient=new le.clients.JsonRpcClient(T)},S.prototype.onMasterNodeCrashedNotification=function(p){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},S.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},S.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},S.prototype.sendRequest=function(p,T,Z){var C;T&&T instanceof Function&&(Z=T,T={}),D.debug('Sending request: {method:"'+p+'", params: '+JSON.stringify(T)+"}"),null===(C=this.jsonRpcClient)||void 0===C||C.send(p,T,Z)},S.prototype.getWsUri=function(){return this.wsUri},S.prototype.getSecret=function(){return this.secret},S.prototype.getRecorder=function(){return this.recorder},S.prototype.getStt=function(){return this.stt},S.prototype.generateAudioDeviceError=function(p,T){var Z,C;switch("Error"===p.name&&(p.name=p.constructor.name),p.name.toLowerCase()){case"notfounderror":return Z=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,C=p.toString(),new m.OpenViduError(Z,C);case"notallowederror":return Z=m.OpenViduErrorName.DEVICE_ACCESS_DENIED,C=p.toString(),new m.OpenViduError(Z,C);case"overconstrainederror":return"deviceid"===p.constraint.toLowerCase()?(Z=m.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,C="Audio input device with deviceId '"+T.audio.deviceId.exact+"' not found"):(Z=m.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,C="Audio input device doesn't support the value passed for constraint '"+p.constraint+"'"),new m.OpenViduError(Z,C);case"notreadableerror":return Z=m.OpenViduErrorName.DEVICE_ALREADY_IN_USE,C=p.toString(),new m.OpenViduError(Z,C);default:return new m.OpenViduError(m.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,p.toString())}},S.prototype.addAlreadyProvidedTracks=function(p,T,Z){return p.videoTrack&&(T.addTrack(p.videoTrack),Z&&(Z.lastVideoTrackConstraints=p.constraints.video?p.constraints.video:p.videoTrack.getConstraints())),p.audioTrack&&T.addTrack(p.audioTrack),T},S.prototype.configureDeviceIdOrScreensharing=function(p,T,Z,C){var A=this,Q=T.audioSource,ne=T.videoSource;if("string"==typeof Q&&(p.constraints.audio={deviceId:{exact:Q}}),"string"==typeof ne){if(this.isScreenShare(ne)){if(this.checkScreenSharingCapabilities()){if(q.isElectron()){var g="screen:",F=ne.substr(ne.indexOf(g)+g.length);return p.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:F}},Z(p)}if(!this.advancedConfiguration.screenShareChromeExtension||q.isFirefoxBrowser()||q.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return Z(p);var b=q.isFirefoxBrowser()||q.isFirefoxMobileBrowser()?T.videoSource:void 0;return void te.getScreenId(b,function(I,$,Ce){if(I){if("not-installed"===I){var ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,A.advancedConfiguration.screenShareChromeExtension?A.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return D.error(ce),C(ce)}return"installed-disabled"===I?(ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),D.error(ce),C(ce)):"permission-denied"===I?(ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),D.error(ce),C(ce)):(ce=new m.OpenViduError(m.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),D.error(ce),D.error(I),C(ce))}return p.constraints.video=Ce.video,Z(p)})}return void Y.getScreenConstraints(function(I,$){if(!(I||$.mandatory&&"screen"===$.mandatory.chromeMediaSource))return p.constraints.video=$,Z(p);if("permission-denied"===I||"PermissionDeniedError"===I){var Ce=new m.OpenViduError(m.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return D.error(Ce),C(Ce)}var de=A.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();Y.getChromeExtensionStatus(de,function(ce){if("installed-disabled"===ce){var Te=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return D.error(Te),C(Te)}if("not-installed"===ce){var Xe=new m.OpenViduError(m.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,A.advancedConfiguration.screenShareChromeExtension);return D.error(Xe),C(Xe)}})})}var se=new m.OpenViduError(m.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+q.getName()+" "+q.getVersion());return D.error(se),C(se)}this.setVideoSource(p,ne)}},S.prototype.setVideoSource=function(p,T){p.constraints.video||(p.constraints.video={}),p.constraints.video.deviceId={exact:T}},S.prototype.disconnectCallback=function(){D.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},S.prototype.reconnectingCallback=function(){D.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},S.prototype.reconnectWebsocketThroughRpcConnectMethod=function(p){var T=this;this.sendRequest("connect",{sessionId:p,reconnect:!0},function(Z,C){if(Z)if(T.isMasterNodeCrashed())D.warn("Master Node has crashed!");else{D.error(Z);var A=function(ne,se){D.warn(se),T.session.onLostConnection(ne),T.jsonRpcClient.close(4101,"Reconnection fault: "+se)};40007===Z.code&&"reconnection error"===Z.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===T.life?A("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):T.sendRequest("sessionStatus",{sessionId:T.session.sessionId},function(ne,se){null!=ne?console.error("Error checking session status",ne):T.life===se.life?A("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):A("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else T.jsonRpcClient.resetPing(),T.session.onRecoveredConnection()})},S.prototype.reconnectedCallback=function(){if(D.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{D.warn("There was no previous connection when running reconnection callback");var p=new P.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[p]),p.callDefaultBehavior()}else alert("Connection error. Please reload page.")},S.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},S.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof E.Session||(D.warn("Session instance not found"),!1)},S.prototype.isScreenShare=function(p){return"screen"===p||"window"===p||q.isElectron()&&p.startsWith("screen:")},S}();H.OpenVidu=K},4302:function(Fe,H,j){"use strict";var le,k=this&&this.__extends||(le=function(G,D){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,K){q.__proto__=K}||function(q,K){for(var S in K)Object.prototype.hasOwnProperty.call(K,S)&&(q[S]=K[S])})(G,D)},function(G,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function q(){this.constructor=G}le(G,D),G.prototype=null===D?Object.create(D):(q.prototype=D.prototype,new q)}),z=this&&this.__awaiter||function(le,G,D,q){return new(D||(D=Promise))(function(S,p){function T(A){try{C(q.next(A))}catch(Q){p(Q)}}function Z(A){try{C(q.throw(A))}catch(Q){p(Q)}}function C(A){A.done?S(A.value):function K(S){return S instanceof D?S:new D(function(p){p(S)})}(A.value).then(T,Z)}C((q=q.apply(le,G||[])).next())})},V=this&&this.__generator||function(le,G){var q,K,S,p,D={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return p={next:T(0),throw:T(1),return:T(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function T(C){return function(A){return function Z(C){if(q)throw new TypeError("Generator is already executing.");for(;D;)try{if(q=1,K&&(S=2&C[0]?K.return:C[0]?K.throw||((S=K.return)&&S.call(K),0):K.next)&&!(S=S.call(K,C[1])).done)return S;switch(K=0,S&&(C=[2&C[0],S.value]),C[0]){case 0:case 1:S=C;break;case 4:return D.label++,{value:C[1],done:!1};case 5:D.label++,K=C[1],C=[0];continue;case 7:C=D.ops.pop(),D.trys.pop();continue;default:if(!(S=(S=D.trys).length>0&&S[S.length-1])&&(6===C[0]||2===C[0])){D=0;continue}if(3===C[0]&&(!S||C[1]>S[0]&&C[1]<S[3])){D.label=C[1];break}if(6===C[0]&&D.label<S[1]){D.label=S[1],S=C;break}if(S&&D.label<S[2]){D.label=S[2],D.ops.push(C);break}S[2]&&D.ops.pop(),D.trys.pop();continue}C=G.call(le,D)}catch(A){C=[6,A],K=0}finally{q=S=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,A])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.Publisher=void 0;var U,_=j(5607),E=j(8770),P=j(7373),v=j(3980),m=j(9383),x=j(9303),M=j(1829),W=j(1171),te=j(7879),Y=M.OpenViduLogger.getInstance(),ge=function(le){function G(D,q,K){var S=le.call(this,new E.Stream(K.session?K.session:new _.Session(K),{publisherProperties:q,mediaConstraints:{}}),D)||this;return S.accessAllowed=!1,S.isSubscribedToRemote=!1,S.accessDenied=!1,U=W.PlatformUtils.getInstance(),S.properties=q,S.openvidu=K,S.stream.ee.on("local-stream-destroyed",function(p){S.stream.isLocalStreamPublished=!1;var T=new v.StreamEvent(!0,S,"streamDestroyed",S.stream,p);S.emitEvent("streamDestroyed",[T]),T.callDefaultBehavior()}),S}return k(G,le),G.prototype.publishAudio=function(D){var q=this;this.stream.audioActive!==D&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(S){S.enabled=D}),!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:D,reason:"publishAudio"},function(S,p){S?Y.error("Error sending 'streamPropertyChanged' event",S):(q.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(q.session,q.stream,"audioActive",D,!D,"publishAudio")]),q.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(q,q.stream,"audioActive",D,!D,"publishAudio")]),q.session.sendVideoData(q.stream.streamManager))}),this.stream.audioActive=D,Y.info("'Publisher' has "+(D?"published":"unpublished")+" its audio stream"))},G.prototype.publishVideo=function(D,q){var K=this;return new Promise(function(S,p){return z(K,void 0,void 0,function(){var T,Z,C,A,Q,ne,se=this;return V(this,function(g){switch(g.label){case 0:return this.stream.videoActive===D?[3,9]:(T=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),Z=!1,T.getVideoTracks().forEach(function(O){O.enabled=D,D||!0!==q?D&&"ended"===O.readyState&&(Z=!0):O.stop()}),!D&&!0===q&&this.stream.filter&&this.stream.filter.type.startsWith("VB:")?(this.stream.lastVBFilter=this.stream.filter,[4,this.stream.removeFilterAux(!0)]):[3,2]);case 1:g.sent(),g.label=2;case 2:return Z?(C=T.getVideoTracks()[0],T.removeTrack(C),A=function(O){return z(se,void 0,void 0,function(){var F=this;return V(this,function(b){switch(b.label){case 0:return T.addTrack(O),this.stream.isLocalStreamPublished?[4,this.replaceTrackInRtcRtpSender(O)]:[3,2];case 1:b.sent(),b.label=2;case 2:return this.stream.lastVBFilter&&setTimeout(function(){return z(F,void 0,void 0,function(){var I,$;return V(this,function(Ce){switch(Ce.label){case 0:return I=this.stream.lastVBFilter.options,!!($=this.stream.lastVBFilter.lastExecMethod)&&"update"===$.method&&(I=Object.assign({},I,$.params)),[4,this.stream.applyFilter(this.stream.lastVBFilter.type,I)];case 1:return Ce.sent(),delete this.stream.lastVBFilter,[2]}})})},1),[2]}})})},q&&q instanceof MediaStreamTrack?[4,A(q)]:[3,4]):[3,8];case 3:return g.sent(),[3,8];case 4:return g.trys.push([4,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:this.stream.lastVideoTrackConstraints})];case 5:return Q=g.sent(),[4,A(Q.getVideoTracks()[0])];case 6:return g.sent(),[3,8];case 7:return ne=g.sent(),[2,p(ne)];case 8:return!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:D,reason:"publishVideo"},function(O,F){O?Y.error("Error sending 'streamPropertyChanged' event",O):(se.session.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(se.session,se.stream,"videoActive",D,!D,"publishVideo")]),se.emitEvent("streamPropertyChanged",[new m.StreamPropertyChangedEvent(se,se.stream,"videoActive",D,!D,"publishVideo")]),se.session.sendVideoData(se.stream.streamManager))}),this.stream.videoActive=D,Y.info("'Publisher' has "+(D?"published":"unpublished")+" its video stream"),[2,S()];case 9:return[2]}})})})},G.prototype.subscribeToRemote=function(D){this.isSubscribedToRemote=D=void 0===D||D,this.stream.subscribeToMyRemote(D)},G.prototype.on=function(D,q){var K=this;return le.prototype.on.call(this,D,q),"streamCreated"===D&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new v.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){K.emitEvent("streamCreated",[new v.StreamEvent(!1,K,"streamCreated",K.stream,"")])})),"accessAllowed"===D&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===D&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},G.prototype.once=function(D,q){var K=this;return le.prototype.once.call(this,D,q),"streamCreated"===D&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new v.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){K.emitEvent("streamCreated",[new v.StreamEvent(!1,K,"streamCreated",K.stream,"")])})),"accessAllowed"===D&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===D&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},G.prototype.off=function(D,q){return le.prototype.off.call(this,D,q),this},G.prototype.replaceTrack=function(D){return z(this,void 0,void 0,function(){return V(this,function(q){return[2,this.replaceTrackAux(D,!0)]})})},G.prototype.initialize=function(){var D=this;return new Promise(function(q,K){return z(D,void 0,void 0,function(){var S,p,T,Z,C,A,Q,ne,se,O,F,b,I,Ce,de,$=this;return V(this,function(ce){switch(ce.label){case 0:S={},p={},T=2e3,C=function(Te){return $.accessDenied=!0,$.accessAllowed=!1,Y.error("Publisher initialization failed. ".concat(Te.name,": ").concat(Te.message)),K(Te)},A=function(Te){var Xe,je;if($.accessAllowed=!0,$.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&$.properties.audioSource instanceof MediaStreamTrack&&(Te.removeTrack(Te.getAudioTracks()[0]),Te.addTrack($.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&$.properties.videoSource instanceof MediaStreamTrack&&(Te.removeTrack(Te.getVideoTracks()[0]),Te.addTrack($.properties.videoSource)),Te.getAudioTracks()[0]){var Qe=null!=$.stream.audioActive?$.stream.audioActive:!!$.stream.outboundStreamOpts.publisherProperties.publishAudio;Te.getAudioTracks()[0].enabled=Qe}Te.getVideoTracks()[0]&&(Qe=null!=$.stream.videoActive?$.stream.videoActive:!!$.stream.outboundStreamOpts.publisherProperties.publishVideo,Te.getVideoTracks()[0].enabled=Qe);for(var ht=0,$e=Te.getAudioTracks();ht<$e.length;ht++)null!==(Xe=(he=$e[ht]).contentHint)&&void 0!==Xe&&Xe.length||(he.contentHint="",Y.info("Audio track Content Hint set: '".concat(he.contentHint,"'")));for(var $t=0,Ke=Te.getVideoTracks();$t<Ke.length;$t++){var he;if(null===(je=(he=Ke[$t]).contentHint)||void 0===je||!je.length){switch($.stream.typeOfVideo){case te.TypeOfVideo.SCREEN:he.contentHint="detail";break;case te.TypeOfVideo.CUSTOM:Y.warn("CUSTOM type video track was provided without Content Hint!"),he.contentHint="motion";break;default:he.contentHint="motion"}Y.info("Video track Content Hint set: '".concat(he.contentHint,"'"))}}return $.initializeVideoReference(Te),$.stream.displayMyRemote()||$.stream.updateMediaStreamInVideos(),delete $.firstVideoElement,$.stream.isSendVideo()?$.getVideoDimensions().then(function(cn){$.stream.videoDimensions={width:cn.width,height:cn.height},$.stream.isSendScreen()&&($.screenShareResizeInterval=setInterval(function(){var ue=Te.getVideoTracks()[0].getSettings(),ye=ue.width,ae=ue.height;$.stream.isLocalStreamPublished&&(null!=ye&&ye!==$.stream.videoDimensions.width||null!=ae&&ae!==$.stream.videoDimensions.height)&&$.openvidu.sendVideoDimensionsChangedEvent($,"screenResized",$.stream.videoDimensions.width,$.stream.videoDimensions.height,ye||0,ae||0)},650)),$.stream.isLocalStreamReadyToPublish=!0,$.stream.ee.emitEvent("stream-ready-to-publish",[])}):($.stream.isLocalStreamReadyToPublish=!0,$.stream.ee.emitEvent("stream-ready-to-publish",[])),q()},Q=function(Te,Xe){return z($,void 0,void 0,function(){var je,Qe;return V(this,function(ht){switch(ht.label){case 0:if(this.clearPermissionDialogTimer(Z,T),!this.stream.isSendScreen()||!this.stream.isSendAudio())return[3,5];p.audio=Xe,p.video=!1,Z=Date.now(),this.setPermissionDialogTimer(T),ht.label=1;case 1:return ht.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia(p)];case 2:return je=ht.sent(),this.clearPermissionDialogTimer(Z,T),Te.addTrack(je.getAudioTracks()[0]),A(Te),[3,4];case 3:return Qe=ht.sent(),this.clearPermissionDialogTimer(Z,T),Te.getAudioTracks().forEach(function($e){$e.stop()}),Te.getVideoTracks().forEach(function($e){$e.stop()}),C(this.openvidu.generateAudioDeviceError(Qe,S)),[2];case 4:return[3,6];case 5:A(Te),ht.label=6;case 6:return[2]}})})},ne=function(Te){return z($,void 0,void 0,function(){var Xe,je,ht,he;return V(this,function($t){switch($t.label){case 0:switch(Y.error("getMediaError: ".concat(Te.toString())),this.clearPermissionDialogTimer(Z,T),"Error"===Te.name&&(Te.name=Te.constructor.name),Te.name.toLowerCase()){case"notfounderror":return[3,1];case"notallowederror":return[3,5];case"overconstrainederror":return[3,6];case"aborterror":case"notreadableerror":return[3,10]}return[3,11];case 1:return $t.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:S.video})];case 2:return $t.sent().getVideoTracks().forEach(function(Ke){Ke.stop()}),Xe=x.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,je=Te.toString(),C(new x.OpenViduError(Xe,je)),[3,4];case 3:return ht=$t.sent(),Xe=x.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,je=ht.toString(),C(new x.OpenViduError(Xe,je)),[3,4];case 4:case 9:return[3,12];case 5:return Xe=this.stream.isSendScreen()?x.OpenViduErrorName.SCREEN_CAPTURE_DENIED:x.OpenViduErrorName.DEVICE_ACCESS_DENIED,je=Te.toString(),C(new x.OpenViduError(Xe,je)),[3,12];case 6:return $t.trys.push([6,8,,9]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:S.video})];case 7:return $t.sent().getVideoTracks().forEach(function(Ke){Ke.stop()}),"deviceid"===Te.constraint.toLowerCase()?(Xe=x.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,je="Audio input device with deviceId '"+S.audio.deviceId.exact+"' not found"):(Xe=x.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,je="Audio input device doesn't support the value passed for constraint '"+Te.constraint+"'"),C(new x.OpenViduError(Xe,je)),[3,9];case 8:return"deviceid"===(he=$t.sent()).constraint.toLowerCase()?(Xe=x.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,je="Video input device with deviceId '"+S.video.deviceId.exact+"' not found"):(Xe=x.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,je="Video input device doesn't support the value passed for constraint '"+he.constraint+"'"),C(new x.OpenViduError(Xe,je)),[3,9];case 10:return Xe=x.OpenViduErrorName.DEVICE_ALREADY_IN_USE,je=Te.toString(),C(new x.OpenViduError(Xe,je)),[3,12];case 11:return Xe=x.OpenViduErrorName.GENERIC_ERROR,je=Te.toString(),C(new x.OpenViduError(Xe,je)),[3,12];case 12:return[2]}})})},ce.label=1;case 1:return ce.trys.push([1,14,,15]),[4,this.openvidu.generateMediaConstraints(this.properties)];case 2:return(se=ce.sent()).videoTrack&&se.audioTrack||se.audioTrack&&!1===(null===(Ce=se.constraints)||void 0===Ce?void 0:Ce.video)||se.videoTrack&&!1===(null===(de=se.constraints)||void 0===de?void 0:de.audio)?(A(this.openvidu.addAlreadyProvidedTracks(se,new MediaStream,this.stream)),[3,13]):[3,3];case 3:this.stream.setOutboundStreamOptions({mediaConstraints:S=se.constraints,publisherProperties:this.properties}),O=void 0===S.audio||S.audio,p.audio=!this.stream.isSendScreen()&&O,p.video=S.video,Z=Date.now(),this.setPermissionDialogTimer(T),ce.label=4;case 4:return ce.trys.push([4,11,,13]),this.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!U.isElectron()?[4,navigator.mediaDevices.getDisplayMedia({video:!0})]:[3,7];case 5:return F=ce.sent(),this.openvidu.addAlreadyProvidedTracks(se,F),[4,Q(F,O)];case 6:return ce.sent(),[3,10];case 7:return this.stream.lastVideoTrackConstraints=p.video,[4,navigator.mediaDevices.getUserMedia(p)];case 8:return F=ce.sent(),this.openvidu.addAlreadyProvidedTracks(se,F,this.stream),[4,Q(F,O)];case 9:ce.sent(),ce.label=10;case 10:return[3,13];case 11:return b=ce.sent(),[4,ne(b)];case 12:return ce.sent(),[3,13];case 13:return[3,15];case 14:return I=ce.sent(),C(I),[3,15];case 15:return[2]}})})})},G.prototype.replaceTrackAux=function(D,q){return z(this,void 0,void 0,function(){var K,S;return V(this,function(p){switch(p.label){case 0:K=D.enabled,"video"===D.kind?D.enabled=this.stream.videoActive:"audio"===D.kind&&(D.enabled=this.stream.audioActive),p.label=1;case 1:return p.trys.push([1,5,,6]),this.stream.isLocalStreamPublished?(this.replaceTrackInMediaStream(D,q),[4,this.replaceTrackInRtcRtpSender(D)]):[3,3];case 2:return[2,p.sent()];case 3:return[2,this.replaceTrackInMediaStream(D,q)];case 4:return[3,6];case 5:throw S=p.sent(),D.enabled=K,S;case 6:return[2]}})})},G.prototype.getVideoDimensions=function(){var D=this;return new Promise(function(q,K){var p,S=U.isIonicIos()||U.isIOSWithSafari(),T=function(){var Z,C;if("function"==typeof D.stream.getMediaStream().getVideoTracks()[0].getSettings){var A=D.stream.getMediaStream().getVideoTracks()[0].getSettings();Z=A.width||D.videoReference.videoWidth,C=A.height||D.videoReference.videoHeight}else Y.warn("MediaStreamTrack does not have getSettings method on "+U.getDescription()),Z=D.videoReference.videoWidth,C=D.videoReference.videoHeight;return null!=p&&D.videoReference.removeEventListener("loadedmetadata",p),S&&document.body.removeChild(D.videoReference),q({width:Z,height:C})};D.videoReference.readyState>=1?T():(D.videoReference.addEventListener("loadedmetadata",p=function(){if(D.videoReference.videoWidth)T();else var Z=setInterval(function(){D.videoReference.videoWidth&&(clearInterval(Z),T())},40)}),S&&document.body.appendChild(D.videoReference))})},G.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},G.prototype.initializeVideoReference=function(D){this.videoReference=document.createElement("video"),this.videoReference.style.display="none",this.videoReference.muted=!0,this.videoReference.autoplay=!0,this.videoReference.controls=!1,(U.isSafariBrowser()||U.isIPhoneOrIPad()&&(U.isChromeMobileBrowser()||U.isEdgeMobileBrowser()||U.isOperaMobileBrowser()||U.isFirefoxMobileBrowser()))&&(this.videoReference.playsInline=!0),this.stream.setMediaStream(D),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=this.stream.getMediaStream()},G.prototype.replaceTrackInMediaStream=function(D,q){var S,K=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream();"video"===D.kind?(S=K.getVideoTracks()[0],q&&(this.stream.lastVideoTrackConstraints=D.getConstraints())):S=K.getAudioTracks()[0],S.enabled=!1,S.stop(),K.removeTrack(S),K.addTrack(D);var p={oldLabel:(null==S?void 0:S.label)||"",newLabel:(null==D?void 0:D.label)||""};"video"===D.kind&&q?(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"videoTrack"),this.stream.isLocalStreamPublished&&this.session.sendVideoData(this.stream.streamManager,5,!0,5)):"audio"===D.kind&&q&&this.openvidu.sendTrackChangedEvent(this,p.oldLabel,p.newLabel,"audioTrack"),"audio"===D.kind&&(this.stream.disableHarkSpeakingEvent(!1),this.stream.disableHarkStoppedSpeakingEvent(!1),this.stream.disableHarkVolumeChangeEvent(!1),this.stream.initHarkEvents())},G.prototype.setPermissionDialogTimer=function(D){var q=this;this.permissionDialogTimeout=setTimeout(function(){q.emitEvent("accessDialogOpened",[])},D)},G.prototype.clearPermissionDialogTimer=function(D,q){clearTimeout(this.permissionDialogTimeout),Date.now()-D>q&&this.emitEvent("accessDialogClosed",[])},G.prototype.replaceTrackInRtcRtpSender=function(D){return z(this,void 0,void 0,function(){var q,K;return V(this,function(S){switch(S.label){case 0:if(q=this.stream.getRTCPeerConnection().getSenders(),"video"===D.kind){if(!(K=q.find(function(p){return!!p.track&&"video"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==D.kind)throw new Error("Unknown track kind "+D.kind);if(!(K=q.find(function(p){return!!p.track&&"audio"===p.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,K.replaceTrack(D)];case 1:return S.sent(),[2]}})})},G}(P.StreamManager);H.Publisher=ge},5607:function(Fe,H,j){"use strict";var ne,k=this&&this.__extends||(ne=function(se,g){return(ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,F){O.__proto__=F}||function(O,F){for(var b in F)Object.prototype.hasOwnProperty.call(F,b)&&(O[b]=F[b])})(se,g)},function(se,g){if("function"!=typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function O(){this.constructor=se}ne(se,g),se.prototype=null===g?Object.create(g):(O.prototype=g.prototype,new O)}),z=this&&this.__awaiter||function(ne,se,g,O){return new(g||(g=Promise))(function(b,I){function $(ce){try{de(O.next(ce))}catch(Te){I(Te)}}function Ce(ce){try{de(O.throw(ce))}catch(Te){I(Te)}}function de(ce){ce.done?b(ce.value):function F(b){return b instanceof g?b:new g(function(I){I(b)})}(ce.value).then($,Ce)}de((O=O.apply(ne,se||[])).next())})},V=this&&this.__generator||function(ne,se){var O,F,b,I,g={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return I={next:$(0),throw:$(1),return:$(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function $(de){return function(ce){return function Ce(de){if(O)throw new TypeError("Generator is already executing.");for(;g;)try{if(O=1,F&&(b=2&de[0]?F.return:de[0]?F.throw||((b=F.return)&&b.call(F),0):F.next)&&!(b=b.call(F,de[1])).done)return b;switch(F=0,b&&(de=[2&de[0],b.value]),de[0]){case 0:case 1:b=de;break;case 4:return g.label++,{value:de[1],done:!1};case 5:g.label++,F=de[1],de=[0];continue;case 7:de=g.ops.pop(),g.trys.pop();continue;default:if(!(b=(b=g.trys).length>0&&b[b.length-1])&&(6===de[0]||2===de[0])){g=0;continue}if(3===de[0]&&(!b||de[1]>b[0]&&de[1]<b[3])){g.label=de[1];break}if(6===de[0]&&g.label<b[1]){g.label=b[1],b=de;break}if(b&&g.label<b[2]){g.label=b[2],g.ops.push(de);break}b[2]&&g.ops.pop(),g.trys.pop();continue}de=se.call(ne,g)}catch(ce){de=[6,ce],F=0}finally{O=b=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([de,ce])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.Session=void 0;var A,_=j(7576),E=j(5481),P=j(3343),v=j(2768),m=j(1698),x=j(5132),M=j(5449),W=j(1690),te=j(1659),Y=j(482),U=j(3980),ge=j(9383),le=j(9005),G=j(9900),D=j(9303),q=j(7167),K=j(1829),S=j(1171),p=j(1892),T=j(9897),Z=j(4131),C=K.OpenViduLogger.getInstance(),Q=function(ne){function se(g){var O=ne.call(this)||this;return O.streamManagers=[],O.remoteStreamsCreated=new Map,O.remoteConnections=new Map,A=S.PlatformUtils.getInstance(),O.openvidu=g,O}return k(se,ne),se.prototype.connect=function(g,O){var F=this;return new Promise(function(b,I){if(F.processToken(g),!F.openvidu.checkSystemRequirements())return I(new D.OpenViduError(D.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+A.getName()+" (version "+A.getVersion()+") for "+A.getFamily()+" is not supported in OpenVidu"));F.options={sessionId:F.sessionId,participantId:g,metadata:O?F.stringClientMetadata(O):""},F.connectAux(g).then(function(){return b()}).catch(function($){return I($)})})},se.prototype.disconnect=function(){this.leave(!1,"disconnect")},se.prototype.subscribe=function(g,O,F,b){var I={};I=F&&"function"!=typeof F?{insertMode:void 0!==F.insertMode?"string"==typeof F.insertMode?q.VideoInsertMode[F.insertMode]:I.insertMode:q.VideoInsertMode.APPEND,subscribeToAudio:void 0===F.subscribeToAudio||F.subscribeToAudio,subscribeToVideo:void 0===F.subscribeToVideo||F.subscribeToVideo}:{insertMode:q.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var $=void 0;if(F&&"function"==typeof F?$=F:b&&($=b),!this.sessionConnected())throw void 0!==$&&$(this.notConnectedError()),this.notConnectedError();C.info("Subscribing to "+g.connection.connectionId),g.subscribe().then(function(){C.info("Subscribed correctly to "+g.connection.connectionId),void 0!==$&&$(void 0)}).catch(function(de){void 0!==$&&$(de)});var Ce=new P.Subscriber(g,O,I);return Ce.targetElement&&g.streamManager.createVideoElement(Ce.targetElement,I.insertMode),Ce},se.prototype.subscribeAsync=function(g,O,F){var b=this;return new Promise(function(I,$){if(!b.sessionConnected())return $(b.notConnectedError());var Ce,de=function(ce){return ce?$(ce):I(Ce)};Ce=F?b.subscribe(g,O,F,de):b.subscribe(g,O,de)})},se.prototype.unsubscribe=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())return b(O.notConnectedError());var I=g.stream.connection.connectionId;C.info("Unsubscribing from "+I),O.openvidu.sendRequest("unsubscribeFromVideo",{sender:g.stream.connection.connectionId},function($,Ce){return $?(C.error("Error unsubscribing from "+I),b($)):(C.info("Unsubscribed correctly from "+I),g.stream.streamManager.removeAllVideos(),g.stream.disposeWebRtcPeer(),g.stream.disposeMediaStream(),F())})})},se.prototype.publish=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())return b(O.notConnectedError());g.session=O,g.stream.session=O,g.stream.publishedOnce?g.initialize().then(function(){O.connection.addStream(g.stream),g.reestablishStreamPlayingEvent(),g.stream.publish().then(function(){return O.sendVideoData(g,8,!0,5),F()}).catch(function(I){return b(I)})}).catch(function(I){return b(I)}):(O.connection.addStream(g.stream),g.stream.publish().then(function(){return O.sendVideoData(g,8,!0,5),F()}).catch(function(I){return b(I)}))})},se.prototype.unpublish=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())throw O.notConnectedError();var I=g.stream;return I.connection?I.connection!==O.connection?b(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")):(C.info("Unpublishing local media ("+I.connection.connectionId+")"),void O.openvidu.sendRequest("unpublishVideo",function($,Ce){if($)return b($);C.info("Media unpublished correctly"),I.disposeWebRtcPeer(),I.connection.stream==I&&delete I.connection.stream;var de=new U.StreamEvent(!0,g,"streamDestroyed",g.stream,"unpublish");return g.emitEvent("streamDestroyed",[de]),de.callDefaultBehavior(),F()})):b(new Error("The associated Connection object of this Publisher is null"))})},se.prototype.forceDisconnect=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())return b(O.notConnectedError());C.info("Forcing disconnect for connection "+g.connectionId),O.openvidu.sendRequest("forceDisconnect",{connectionId:g.connectionId},function(I,$){return I?(C.error("Error forcing disconnect for Connection "+g.connectionId,I),b(401===I.code?new D.OpenViduError(D.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):I)):(C.info("Forcing disconnect correctly for Connection "+g.connectionId),F())})})},se.prototype.forceUnpublish=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())return b(O.notConnectedError());C.info("Forcing unpublish for stream "+g.streamId),O.openvidu.sendRequest("forceUnpublish",{streamId:g.streamId},function(I,$){return I?(C.error("Error forcing unpublish for Stream "+g.streamId,I),b(401===I.code?new D.OpenViduError(D.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):I)):(C.info("Forcing unpublish correctly for Stream "+g.streamId),F())})})},se.prototype.signal=function(g){var O=this;return new Promise(function(F,b){if(!O.sessionConnected())return b(O.notConnectedError());var I={};if(g.to&&g.to.length>0){var $=[];g.to.forEach(function(de){de.connectionId&&$.push(de.connectionId)}),I.to=$}else I.to=[];I.data=g.data?g.data:"";var Ce=g.type?g.type:"signal";Ce&&"signal:"!==Ce.substring(0,7)&&(Ce="signal:"+Ce),I.type=Ce,O.openvidu.sendRequest("sendMessage",{message:JSON.stringify(I)},function(de,ce){return de?b(de):F()})})},se.prototype.subscribeToSpeechToText=function(g,O){var F=this;return new Promise(function(b,I){F.openvidu.sendRequest("subscribeToSpeechToText",{connectionId:g.connection.connectionId,lang:O},function($,Ce){return $?I($):b()})})},se.prototype.unsubscribeFromSpeechToText=function(g){var O=this;return new Promise(function(F,b){O.openvidu.sendRequest("unsubscribeFromSpeechToText",{connectionId:g.connection.connectionId},function(I,$){return I?b(I):F()})})},se.prototype.on=function(g,O){var F,b,I,$;return ne.prototype.onAux.call(this,g,"Event '"+g+"' triggered by 'Session'",O),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(Ce){var de;null!==(de=Ce.stream)&&void 0!==de&&de.hasAudio&&Ce.stream.enableHarkSpeakingEvent()}),!(null===(b=null===(F=this.connection)||void 0===F?void 0:F.stream)||void 0===b)&&b.hasAudio&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(Ce){var de;null!==(de=Ce.stream)&&void 0!==de&&de.hasAudio&&Ce.stream.enableHarkStoppedSpeakingEvent()}),!(null===($=null===(I=this.connection)||void 0===I?void 0:I.stream)||void 0===$)&&$.hasAudio&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},se.prototype.once=function(g,O){var F,b,I,$;return ne.prototype.onceAux.call(this,g,"Event '"+g+"' triggered once by 'Session'",O),"publisherStartSpeaking"===g&&(this.remoteConnections.forEach(function(Ce){var de;null!==(de=Ce.stream)&&void 0!==de&&de.hasAudio&&Ce.stream.enableOnceHarkSpeakingEvent()}),!(null===(b=null===(F=this.connection)||void 0===F?void 0:F.stream)||void 0===b)&&b.hasAudio&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===g&&(this.remoteConnections.forEach(function(Ce){var de;null!==(de=Ce.stream)&&void 0!==de&&de.hasAudio&&Ce.stream.enableOnceHarkStoppedSpeakingEvent()}),!(null===($=null===(I=this.connection)||void 0===I?void 0:I.stream)||void 0===$)&&$.hasAudio&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},se.prototype.off=function(g,O){var b,I,$,Ce,F=this;return ne.prototype.offAux.call(this,g,O),"publisherStartSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(de){var ce;null!==(ce=de.stream)&&void 0!==ce&&ce.streamManager&&(F.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,de.stream.streamManager)||de.stream.disableHarkSpeakingEvent(!1))}),!(null===(I=null===(b=this.connection)||void 0===b?void 0:b.stream)||void 0===I)&&I.streamManager&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===g&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(de){var ce;null!==(ce=de.stream)&&void 0!==ce&&ce.streamManager&&(F.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,de.stream.streamManager)||de.stream.disableHarkStoppedSpeakingEvent(!1))}),!(null===(Ce=null===($=this.connection)||void 0===$?void 0:$.stream)||void 0===Ce)&&Ce.streamManager&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},se.prototype.onParticipantJoined=function(g){var O=this;this.getConnection(g.id,"").then(function(F){C.warn("Connection "+F.connectionId+" already exists in connections list")}).catch(function(F){var b=new _.Connection(O,g);O.remoteConnections.set(g.id,b),O.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,O,"connectionCreated",b,"")])})},se.prototype.onParticipantLeft=function(g){var O=this;this.getRemoteConnection(g.connectionId,"onParticipantLeft").then(function(F){if(F.stream){var b=F.stream,I=new U.StreamEvent(!0,O,"streamDestroyed",b,g.reason);O.ee.emitEvent("streamDestroyed",[I]),I.callDefaultBehavior(),O.remoteStreamsCreated.delete(b.streamId)}F.dispose(),O.remoteConnections.delete(F.connectionId),O.ee.emitEvent("connectionDestroyed",[new m.ConnectionEvent(!1,O,"connectionDestroyed",F,g.reason)])}).catch(function(F){C.error(F)})},se.prototype.onParticipantPublished=function(g){var b,O=this,F=function(I){O.remoteConnections.set(I.connectionId,I),O.remoteStreamsCreated.get(I.stream.streamId)||O.ee.emitEvent("streamCreated",[new U.StreamEvent(!1,O,"streamCreated",I.stream,"")]),O.remoteStreamsCreated.set(I.stream.streamId,!0)};this.getRemoteConnection(g.id,"onParticipantPublished").then(function(I){b=I,g.metadata=I.data,b.remoteOptions=g,b.initRemoteStreams(g.streams),F(b)}).catch(function(I){b=new _.Connection(O,g),F(b)})},se.prototype.onParticipantUnpublished=function(g){var O=this;g.connectionId===this.connection.connectionId?this.stopPublisherStream(g.reason):this.getRemoteConnection(g.connectionId,"onParticipantUnpublished").then(function(F){var b=new U.StreamEvent(!0,O,"streamDestroyed",F.stream,g.reason);O.ee.emitEvent("streamDestroyed",[b]),b.callDefaultBehavior(),null!=F.stream&&(O.remoteStreamsCreated.delete(F.stream.streamId),F.removeStream())}).catch(function(F){C.error(F)})},se.prototype.onParticipantEvicted=function(g){g.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,g.reason)},se.prototype.onNewMessage=function(g){var O=this;C.info("New signal: "+JSON.stringify(g));var F=g.type?g.type.replace(/^(signal:)/,""):void 0;g.from?this.getConnection(g.from,"Connection '"+g.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(b){O.ee.emitEvent("signal",[new te.SignalEvent(O,F,g.data,b)]),g.type&&"signal"!==g.type&&O.ee.emitEvent(g.type,[new te.SignalEvent(O,F,g.data,b)])}).catch(function(b){C.error(b)}):(this.ee.emitEvent("signal",[new te.SignalEvent(this,F,g.data,void 0)]),g.type&&"signal"!==g.type&&this.ee.emitEvent(g.type,[new te.SignalEvent(this,F,g.data,void 0)]))},se.prototype.onStreamPropertyChanged=function(g){var O=this,F=function(b){if(b.stream&&b.stream.streamId===g.streamId){var I=b.stream,$=void 0;switch(g.property){case"audioActive":$=I.audioActive,g.newValue="true"===g.newValue,I.audioActive=g.newValue;break;case"videoActive":$=I.videoActive,g.newValue="true"===g.newValue,I.videoActive=g.newValue;break;case"videoTrack":case"audioTrack":g.newValue=JSON.parse(g.newValue);break;case"videoDimensions":$=I.videoDimensions,g.newValue=JSON.parse(JSON.parse(g.newValue)),I.videoDimensions=g.newValue;break;case"filter":$=I.filter,g.newValue=Object.keys(g.newValue).length>0?g.newValue:void 0,void 0!==g.newValue?(I.filter=new E.Filter(g.newValue.type,g.newValue.options),I.filter.stream=I,g.newValue.lastExecMethod&&(I.filter.lastExecMethod=g.newValue.lastExecMethod)):delete I.filter,g.newValue=I.filter}O.ee.emitEvent("streamPropertyChanged",[new ge.StreamPropertyChangedEvent(O,I,g.property,g.newValue,$,g.reason)]),I.streamManager&&I.streamManager.emitEvent("streamPropertyChanged",[new ge.StreamPropertyChangedEvent(I.streamManager,I,g.property,g.newValue,$,g.reason)])}else C.error("No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event")};g.connectionId===this.connection.connectionId?F(this.connection):this.getRemoteConnection(g.connectionId,"onStreamPropertyChanged").then(function(b){F(b)}).catch(function(b){C.error(b)})},se.prototype.onConnectionPropertyChanged=function(g){var O;switch(g.property){case"role":O=this.connection.role.slice(),this.connection.role=g.newValue,this.connection.localOptions.role=g.newValue;break;case"record":O=this.connection.record,g.newValue="true"===g.newValue,this.connection.record=g.newValue,this.connection.localOptions.record=g.newValue}this.ee.emitEvent("connectionPropertyChanged",[new le.ConnectionPropertyChangedEvent(this,this.connection,g.property,g.newValue,O)])},se.prototype.onNetworkQualityLevelChangedChanged=function(g){var O=this;g.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new G.NetworkQualityLevelChangedEvent(this,g.newValue,g.oldValue,this.connection)]):this.getConnection(g.connectionId,"Connection not found for connectionId "+g.connectionId).then(function(F){O.ee.emitEvent("networkQualityLevelChanged",[new G.NetworkQualityLevelChangedEvent(O,g.newValue,g.oldValue,F)])}).catch(function(F){C.error(F)})},se.prototype.recvIceCandidate=function(g){var F=new RTCIceCandidate({candidate:g.candidate,sdpMLineIndex:g.sdpMLineIndex,sdpMid:g.sdpMid});this.getConnection(g.senderConnectionId,"Connection not found for connectionId "+g.senderConnectionId+" owning endpoint "+g.endpointName+". Ice candidate will be ignored: "+F).then(function(b){var I=b.stream;I.getWebRtcPeer().addIceCandidate(F).catch(function($){C.error("Error adding candidate for "+I.streamId+" stream of endpoint "+g.endpointName+": "+$)})}).catch(function(b){C.error(b)})},se.prototype.onSessionClosed=function(g){C.info("Session closed: "+JSON.stringify(g));var O=g.sessionId;void 0!==O?this.ee.emitEvent("session-closed",[{session:O}]):C.warn("Session undefined on session closed",g)},se.prototype.onLostConnection=function(g){C.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,g)},se.prototype.onRecoveredConnection=function(){C.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},se.prototype.onMediaError=function(g){C.error("Media error: "+JSON.stringify(g));var O=g.error;O?this.ee.emitEvent("error-media",[{error:O}]):C.warn("Received undefined media error:",g)},se.prototype.onRecordingStarted=function(g){this.ee.emitEvent("recordingStarted",[new M.RecordingEvent(this,"recordingStarted",g.id,g.name)])},se.prototype.onRecordingStopped=function(g){this.ee.emitEvent("recordingStopped",[new M.RecordingEvent(this,"recordingStopped",g.id,g.name,g.reason)])},se.prototype.onFilterEventDispatched=function(g){var O=this,F=g.connectionId;this.getConnection(F,"No connection found for connectionId "+F).then(function(b){C.info('Filter event of type "'.concat(g.eventType,'" dispatched'));var I=b.stream;if(!I||!I.filter)return C.error('Filter event of type "'.concat(g.eventType,'" dispatched for stream ').concat(I.streamId," but there is no ").concat(I?"filter":"stream"," defined"));var $=I.filter.handlers.get(g.eventType);if(!$||"function"!=typeof $){var Ce=Array.from(I.filter.handlers.keys());return C.error('Filter event of type "'.concat(g.eventType,'" not handled or not a function! Active filter events: ').concat(Ce.join(",")))}$.call(O,new x.FilterEvent(I.filter,g.eventType,g.data))})},se.prototype.onForciblyReconnectSubscriber=function(g){var O=this;return new Promise(function(F,b){O.getRemoteConnection(g.connectionId,"onForciblyReconnectSubscriber").then(function(I){if(!I.stream||I.stream.streamId!==g.streamId){var de="No stream with streamId '"+g.streamId+"' found for connection '"+g.connectionId+"' on 'streamPropertyChanged' event";return C.error(de),b(de)}var $=I.stream;if($.setupReconnectionEventEmitter(F,b)){if(null!=$.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return $.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g,b("Ongoing forced subscriber reconnection");$.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=g;var Ce=function(){var ce=$.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete $.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,O.onForciblyReconnectSubscriber(ce)};return $.reconnectionEventEmitter.once("success",function(){Ce()}),void $.reconnectionEventEmitter.once("error",function(){Ce()})}$.completeWebRtcPeerReceive(!0,!0,g.sdpOffer).then(function(){return $.finalResolveForSubscription(!0,F)}).catch(function(ce){return $.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(g.streamId,": ").concat(ce.toString()),b)})}).catch(function(I){return C.error(I),b(I)})})},se.prototype.reconnectBrokenStreams=function(){C.info("Re-establishing media connections...");var g=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),g=!0),this.remoteConnections.forEach(function(O){O.stream&&O.stream.streamIceConnectionStateBroken()&&(C.warn("Re-establishing Subscriber "+O.stream.streamId),O.stream.initWebRtcPeerReceive(!0),g=!0)}),g||C.info("There were no media streams in need of a reconnection")},se.prototype.onSpeechToTextMessage=function(g){return z(this,void 0,void 0,function(){var O,F;return V(this,function(b){switch(b.label){case 0:return[4,this.getConnection(g.connectionId,"No connection found for connectionId "+g.connectionId)];case 1:return O=b.sent(),F=new Y.SpeechToTextEvent(this,O,g.text,g.reason.toLowerCase(),g.raw,g.lang),this.ee.emitEvent("speechToTextMessage",[F]),[2]}})})},se.prototype.onSpeechToTextDisconnected=function(g){return z(this,void 0,void 0,function(){return V(this,function(O){return this.emitEvent("exception",[new Z.ExceptionEvent(this,Z.ExceptionEventName.SPEECH_TO_TEXT_DISCONNECTED,this,g.message)]),[2]})})},se.prototype.emitEvent=function(g,O){this.ee.emitEvent(g,O)},se.prototype.leave=function(g,O){var F=this;if(C.info("Leaving Session (forced="+(g=!!g)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||g?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(I,$){I&&C.error("leaveRoom error: ".concat(JSON.stringify(I))),F.openvidu.closeWs()}),this.stopPublisherStream(O),!this.connection.disposed){var b=new W.SessionDisconnectedEvent(this,O);this.ee.emitEvent("sessionDisconnected",[b]),b.callDefaultBehavior()}}else C.warn("You were not connected to the session "+this.sessionId);C.flush()},se.prototype.initializeParams=function(g){return{token:g||"",session:this.sessionId,platform:A.getDescription()?A.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder(),stt:this.openvidu.getStt()}},se.prototype.sendVideoData=function(g,O,F,b){var $,Ce,I=this;if(void 0===O&&(O=1),void 0===F&&(F=!1),void 0===b&&(b=1),A.isChromeBrowser()||A.isChromeMobileBrowser()||A.isOperaBrowser()||A.isOperaMobileBrowser()||A.isEdgeBrowser()||A.isEdgeMobileBrowser()||A.isElectron()||A.isSafariBrowser()&&!A.isIonicIos()||A.isAndroidBrowser()||A.isSamsungBrowser()||A.isIonicAndroid()||A.isIOSWithSafari()){var de=function(){return z(I,void 0,void 0,function(){var Te,Xe,je;return V(this,function(Qe){switch(Qe.label){case 0:return"connected"!==(Te=g.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,Te.getStats()];case 1:Xe=Qe.sent(),je=[],Xe.forEach(function(ht){"frameWidth"in ht&&"frameHeight"in ht&&0===je.length&&je.push(ht)}),je.length>0&&this.openvidu.sendRequest("videoData",{height:je[0].frameHeight,width:je[0].frameWidth,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(ht,$e){ht&&C.error("Error sending 'videoData' event",ht)}),Qe.label=2;case 2:return[2]}})})};if(F){var ce=1;this.videoDataInterval=setInterval(function(){ce<b?(ce++,de()):clearInterval(I.videoDataInterval)},1e3*O)}else this.videoDataTimeout=setTimeout(de,1e3*O)}else A.isFirefoxBrowser()||A.isFirefoxMobileBrowser()||A.isIonicIos()||A.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===($=g.stream.videoDimensions)||void 0===$?void 0:$.height)||0,width:(null===(Ce=g.stream.videoDimensions)||void 0===Ce?void 0:Ce.width)||0,videoActive:null!=g.stream.videoActive&&g.stream.videoActive,audioActive:null!=g.stream.audioActive&&g.stream.audioActive},function(Te,Xe){Te&&C.error("Error sending 'videoData' event",Te)}):C.error("Browser "+A.getName()+" (version "+A.getVersion()+") for "+A.getFamily()+" is not supported in OpenVidu for Network Quality")},se.prototype.sessionConnected=function(){return null!=this.connection},se.prototype.notConnectedError=function(){return new D.OpenViduError(D.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},se.prototype.anySpeechEventListenerEnabled=function(g,O,F){var b=this.ee.getListeners(g);if(O&&(b=b.filter(function(de){return de.once})),b.length>0)return!0;var $=0;if(F){var Ce=F.ee.getListeners(g);O&&(Ce=Ce.filter(function(de){return de.once})),$=Ce.length}return $>0},se.prototype.getTokenParams=function(g){var O=g.match(/^(wss?)\:\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(O){var F={protocol:O[1],host:O[2],hostname:O[3],port:O[4],pathname:O[5],search:O[6],hash:O[7]},b=g.split("?"),I=decodeURI(b[1]).split("&").map(function($){return $.split("=")}).reduce(function($,Ce){return $[Ce[0]]=Ce[1],$},{});return{sessionId:I.sessionId,secret:I.secret,recorder:I.recorder,stt:I.stt,webrtcStatsInterval:I.webrtcStatsInterval,sendBrowserLogs:I.sendBrowserLogs,edition:I.edition,wsUri:F.protocol+"://"+F.host+"/openvidu",httpUri:"https://"+F.host}}throw new Error('Token not valid: "'.concat(g,'"'))},se.prototype.connectAux=function(g){var O=this;return new Promise(function(F,b){O.openvidu.startWs(function(I){if(I)return b(I);var $=O.initializeParams(g);O.openvidu.sendRequest("joinRoom",$,function(Ce,de){if(Ce)return b(Ce);O.processJoinRoomResponse(de,g),O.connection=new _.Connection(O,de);var ce={connections:new Array,streams:new Array};return de.value.forEach(function(Xe){var je=new _.Connection(O,Xe);O.remoteConnections.set(je.connectionId,je),ce.connections.push(je),je.stream&&(O.remoteStreamsCreated.set(je.stream.streamId,!0),ce.streams.push(je.stream))}),O.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,O,"connectionCreated",O.connection,"")]),ce.connections.forEach(function(Xe){O.ee.emitEvent("connectionCreated",[new m.ConnectionEvent(!1,O,"connectionCreated",Xe,"")])}),ce.streams.forEach(function(Xe){O.ee.emitEvent("streamCreated",[new U.StreamEvent(!1,O,"streamCreated",Xe,"")])}),!!de.recordingId&&!!de.recordingName&&O.ee.emitEvent("recordingStarted",[new M.RecordingEvent(O,"recordingStarted",de.recordingId,de.recordingName)]),F()})})})},se.prototype.stopPublisherStream=function(g){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[g]))},se.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},se.prototype.stringClientMetadata=function(g){return"string"!=typeof g?JSON.stringify(g):g},se.prototype.getConnection=function(g,O){var F=this;return new Promise(function(b,I){var $=F.remoteConnections.get(g);return $?b($):F.connection.connectionId===g?b(F.connection):I(new D.OpenViduError(D.OpenViduErrorName.GENERIC_ERROR,O))})},se.prototype.getRemoteConnection=function(g,O){var F=this;return new Promise(function(b,I){var $=F.remoteConnections.get(g);if($)return b($);var Ce="Remote connection "+g+" unknown when '"+O+"'. Existing remote connections: "+JSON.stringify(F.remoteConnections.keys());return I(new D.OpenViduError(D.OpenViduErrorName.GENERIC_ERROR,Ce))})},se.prototype.processToken=function(g){var O=this.getTokenParams(g);this.sessionId=O.sessionId,O.secret&&(this.openvidu.secret=O.secret),O.recorder&&(this.openvidu.recorder=!0),O.stt&&(this.openvidu.stt=!0),O.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=O.webrtcStatsInterval),O.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=O.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===O.edition||"enterprise"===O.edition,this.openvidu.isEnterprise="enterprise"===O.edition,this.openvidu.wsUri=O.wsUri,this.openvidu.httpUri=O.httpUri},se.prototype.processJoinRoomResponse=function(g,O){if(this.sessionId=g.session,null!=g.customIceServers&&g.customIceServers.length>0){this.openvidu.iceServers=[];for(var F=0,b=g.customIceServers;F<b.length;F++){var I=b[F],$={urls:[I.url]};C.log("STUN/TURN server IP: "+I.url),null!=I.username&&null!=I.credential&&($.username=I.username,$.credential=I.credential,C.log("TURN credentials ["+I.username+":"+I.credential+"]")),this.openvidu.iceServers.push($)}}this.openvidu.role=g.role,this.openvidu.finalUserId=g.finalUserId,this.openvidu.mediaServer=g.mediaServer,this.openvidu.videoSimulcast=g.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},C.info("openvidu-server version: "+g.version),null!=g.life&&(this.openvidu.life=g.life);var Ce=T(g.version)-T(this.openvidu.libraryVersion);p(g.version)!==p(this.openvidu.libraryVersion)||0!=Ce&&1!=Ce?C.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(g.version,") versions are incompatible. ")+"Errors are likely to occur. openvidu-browser SDK is only compatible with the same version or the immediately following minor version of an OpenVidu deployment"):1==Ce&&C.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(g.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(p(g.version),".").concat(T(g.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server")),K.OpenViduLogger.configureJSNLog(this.openvidu,O),this.token=O},se}(v.EventDispatcher);H.Session=Q},8770:function(Fe,H,j){"use strict";var k=this&&this.__awaiter||function(S,p,T,Z){return new(T||(T=Promise))(function(A,Q){function ne(O){try{g(Z.next(O))}catch(F){Q(F)}}function se(O){try{g(Z.throw(O))}catch(F){Q(F)}}function g(O){O.done?A(O.value):function C(A){return A instanceof T?A:new T(function(Q){Q(A)})}(O.value).then(ne,se)}g((Z=Z.apply(S,p||[])).next())})},z=this&&this.__generator||function(S,p){var Z,C,A,Q,T={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return Q={next:ne(0),throw:ne(1),return:ne(2)},"function"==typeof Symbol&&(Q[Symbol.iterator]=function(){return this}),Q;function ne(g){return function(O){return function se(g){if(Z)throw new TypeError("Generator is already executing.");for(;T;)try{if(Z=1,C&&(A=2&g[0]?C.return:g[0]?C.throw||((A=C.return)&&A.call(C),0):C.next)&&!(A=A.call(C,g[1])).done)return A;switch(C=0,A&&(g=[2&g[0],A.value]),g[0]){case 0:case 1:A=g;break;case 4:return T.label++,{value:g[1],done:!1};case 5:T.label++,C=g[1],g=[0];continue;case 7:g=T.ops.pop(),T.trys.pop();continue;default:if(!(A=(A=T.trys).length>0&&A[A.length-1])&&(6===g[0]||2===g[0])){T=0;continue}if(3===g[0]&&(!A||g[1]>A[0]&&g[1]<A[3])){T.label=g[1];break}if(6===g[0]&&T.label<A[1]){T.label=A[1],A=g;break}if(A&&T.label<A[2]){T.label=A[2],T.ops.push(g);break}A[2]&&T.ops.pop(),T.trys.pop();continue}g=p.call(S,T)}catch(O){g=[6,O],C=0}finally{Z=A=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,O])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.Stream=void 0;var q,V=j(5481),_=j(3343),E=j(1530),P=j(7153),v=j(4131),m=j(8887),x=j(7818),M=j(9383),W=j(9303),te=j(7879),Y=j(1829),U=j(1171),ge=j(8201),le=j(2877),G=j(2937),D=Y.OpenViduLogger.getInstance(),K=function(){function S(p,T){var Z=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 G,q=U.PlatformUtils.getInstance(),this.session=p,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?te.TypeOfVideo.CUSTOM:this.isSendScreen()?te.TypeOfVideo.SCREEN:te.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var C;Z.streamManager.updateMediaStream(Z.mediaStream),D.debug("Video srcObject ["+(null===(C=Z.mediaStream)||void 0===C?void 0:C.id)+"] updated in stream ["+Z.streamId+"]")})}return S.prototype.reconnect=function(){return this.reconnectStream("API")},S.prototype.applyFilter=function(p,T){var Z=this;return new Promise(function(C,A){return k(Z,void 0,void 0,function(){var Q,ne,se,g,O,F,b=this;return z(this,function(I){if(this.filter)return[2,A(new W.OpenViduError(W.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(Q=function($,Ce){if($)return D.error("Error applying filter for Stream "+b.streamId,$),A(401===$.code?new W.OpenViduError(W.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):$);D.info("Filter successfully applied on Stream "+b.streamId);var de=b.filter;return b.filter=new V.Filter(p,T),b.filter.stream=b,Ce&&(b.session.emitEvent("streamPropertyChanged",[new M.StreamPropertyChangedEvent(b.session,b,"filter",b.filter,de,"applyFilter")]),b.streamManager.emitEvent("streamPropertyChanged",[new M.StreamPropertyChangedEvent(b.streamManager,b,"filter",b.filter,de,"applyFilter")])),C(b.filter)},p.startsWith("VB:")){if(!this.hasVideo)return[2,A(new W.OpenViduError(W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The Virtual Background filter requires a video track to be applied"))];if(!this.mediaStream||0===this.streamManager.videos.length)return[2,A(new W.OpenViduError(W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(ne=this.session.token?this.session.token:T.token))return[2,A(new W.OpenViduError(W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Virtual Background requires the client to be connected to a Session or to have a "token" property available in "options" parameter with a valid OpenVidu token'))];if("pro"!==(se=this.session.getTokenParams(ne)).edition&&"enterprise"!==se.edition)return[2,A(new W.OpenViduError(W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];ne=encodeURIComponent(btoa(ne)),D.info("Applying Virtual Background to stream "+this.streamId),g=function(){return k(b,void 0,void 0,function(){var $,Ce,de,ce,Te,je;return z(this,function(Qe){switch(Qe.label){case 0:return Qe.trys.push([0,8,,9]),$=this.streamId+"_"+(0,ge.v4)(),Ce=this.mediaStream.clone(),(de=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+$,de.srcObject=Ce,de.muted=!0,this.virtualBackgroundSourceElements={videoClone:de,mediaStreamClone:Ce},VirtualBackground.VirtualBackground.hideHtmlElement(de,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(de,$),[4,de.play()];case 1:switch(Qe.sent(),ce=new VirtualBackground.VirtualBackground({id:$,openviduServerUrl:new URL(se.httpUri),openviduToken:ne,inputVideo:de,inputResolution:"160x96",outputFramerate:24}),Te=void 0,p){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,ce.backgroundBlur(T)];case 3:case 5:return Te=Qe.sent(),[3,7];case 4:return[4,ce.backgroundImage(T)];case 6:throw new Error("Unknown Virtual Background filter: "+p);case 7:return this.virtualBackgroundSinkElements={VB:ce,video:Te},de.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),Q(void 0,!1),[3,9];case 8:return je=Qe.sent(),Q(je.name===W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new W.OpenViduError(W.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,je.message):je,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((O=document.createElement("script")).type="text/javascript",O.src=se.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+ne,O.onload=function(){return k(b,void 0,void 0,function(){var $;return z(this,function(Ce){switch(Ce.label){case 0:return Ce.trys.push([0,2,,3]),[4,g()];case 1:return Ce.sent(),C(new V.Filter(p,T)),[3,3];case 2:return $=Ce.sent(),A($),[3,3];case 3:return[2]}})})},document.body.appendChild(O)):g().then(function(){return C(new V.Filter(p,T))}).catch(function($){return A($)})}else{if(!this.session.sessionConnected())return[2,A(this.session.notConnectedError())];D.info("Applying server filter to stream "+this.streamId),"string"!=typeof(F=T=null!=T?T:{})&&(F=JSON.stringify(F)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:p,options:F},function($,Ce){Q($,!0)})}return[2]})})})},S.prototype.removeFilter=function(){return k(this,void 0,void 0,function(){return z(this,function(p){switch(p.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,p.sent()]}})})},S.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},S.prototype.getMediaStream=function(){return this.mediaStream},S.prototype.removeFilterAux=function(p){var T=this;return new Promise(function(Z,C){return k(T,void 0,void 0,function(){var A,Q,ne,g,se=this;return z(this,function(O){switch(O.label){case 0:if(A=function(F,b){if(F)return delete se.filter,D.error("Error removing filter for Stream "+se.streamId,F),C(401===F.code?new W.OpenViduError(W.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):F);D.info("Filter successfully removed from Stream "+se.streamId);var I=se.filter;return delete se.filter,b&&(se.session.emitEvent("streamPropertyChanged",[new M.StreamPropertyChangedEvent(se.session,se,"filter",se.filter,I,"applyFilter")]),se.streamManager.emitEvent("streamPropertyChanged",[new M.StreamPropertyChangedEvent(se.streamManager,se,"filter",se.filter,I,"applyFilter")])),Z()},!this.filter)return[3,11];if(null===(g=this.filter)||void 0===g||!g.type.startsWith("VB:"))return[3,9];O.label=1;case 1:return O.trys.push([1,7,,8]),Q=this.virtualBackgroundSourceElements.mediaStreamClone,p?[3,5]:this.streamManager.remote?(this.streamManager.replaceTrackInMediaStream(Q.getVideoTracks()[0],!1),[3,4]):[3,2];case 2:return[4,this.streamManager.replaceTrackAux(Q.getVideoTracks()[0],!1)];case 3:O.sent(),O.label=4;case 4:return[3,6];case 5:Q.getTracks().forEach(function(F){return F.stop()}),O.label=6;case 6:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,A(void 0,!1)];case 7:return ne=O.sent(),[2,A(ne,!1)];case 8:return[3,10];case 9:if(!this.session.sessionConnected())return[2,C(this.session.notConnectedError())];D.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(F,b){return A(F,!0)}),O.label=10;case 10:return[3,12];case 11:return[2,C(new W.OpenViduError(W.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 12:return[2]}})})})},S.prototype.setMediaStream=function(p){this.mediaStream=p},S.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},S.prototype.getWebRtcPeer=function(){return this.webRtcPeer},S.prototype.subscribeToMyRemote=function(p){this.isSubscribeToRemote=p},S.prototype.setOutboundStreamOptions=function(p){this.outboundStreamOpts=p},S.prototype.subscribe=function(){var p=this;return new Promise(function(T,Z){p.initWebRtcPeerReceive(!1).then(function(){return T()}).catch(function(C){return Z(C)})})},S.prototype.publish=function(){var p=this;return new Promise(function(T,Z){p.isLocalStreamReadyToPublish?p.initWebRtcPeerSend(!1).then(function(){return T()}).catch(function(C){return Z(C)}):p.ee.once("stream-ready-to-publish",function(){p.publish().then(function(){return T()}).catch(function(C){return Z(C)})})})},S.prototype.disposeWebRtcPeer=function(){var p;this.webRtcPeer&&(this.webRtcPeer.dispose(),p=this.webRtcPeer.getId()),this.stopWebRtcStats(),D.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+p+"] from 'Stream' with id ["+this.streamId+"] is now closed")},S.prototype.disposeMediaStream=function(){return k(this,void 0,void 0,function(){var p;return z(this,function(T){switch(T.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return T.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return p=T.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),p),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(Z){Z.stop()}),this.mediaStream.getVideoTracks().forEach(function(Z){Z.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(Z){Z.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(Z){Z.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),D.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},S.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},S.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},S.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},S.prototype.isSendScreen=function(){var p="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return q.isElectron()&&(p="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&p},S.prototype.enableHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)]),p.harkSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){p.harkSpeakingEnabledOnce&&(p.session.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStartSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStartSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStartSpeaking",p.connection,p.streamId)])),p.disableHarkSpeakingEvent(!0)}))},S.prototype.disableHarkSpeakingEvent=function(p){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,p){if(this.harkSpeakingEnabled)return}else this.harkSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)]),p.harkStoppedSpeakingEnabledOnce=!1}))},S.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var p=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){p.harkStoppedSpeakingEnabledOnce&&(p.session.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.session,"publisherStopSpeaking",p.connection,p.streamId)]),p.streamManager.emitEvent("publisherStopSpeaking",[new m.PublisherSpeakingEvent(p.streamManager,"publisherStopSpeaking",p.connection,p.streamId)])),p.disableHarkStoppedSpeakingEvent(!0)}))},S.prototype.disableHarkStoppedSpeakingEvent=function(p){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,p){if(this.harkStoppedSpeakingEnabled)return}else this.harkStoppedSpeakingEnabled=!1;this.harkVolumeChangeEnabled||this.harkVolumeChangeEnabledOnce||this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce?this.speechEvent.off("stopped_speaking"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.enableHarkVolumeChangeEvent=function(p){var T=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||p)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(Z){var A={newValue:Z,oldValue:T.speechEvent.oldVolumeValue};T.speechEvent.oldVolumeValue=Z,T.streamManager.emitEvent("streamAudioVolumeChange",[new x.StreamManagerEvent(T.streamManager,"streamAudioVolumeChange",A)])})):this.harkVolumeChangeEnabled=!0},S.prototype.enableOnceHarkVolumeChangeEvent=function(p){var T=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||p)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(Z){var A={newValue:Z,oldValue:T.speechEvent.oldVolumeValue};T.speechEvent.oldVolumeValue=Z,T.disableHarkVolumeChangeEvent(!0),T.streamManager.emitEvent("streamAudioVolumeChange",[new x.StreamManagerEvent(T.streamManager,"streamAudioVolumeChange",A)])})):this.harkVolumeChangeEnabledOnce=!0},S.prototype.disableHarkVolumeChangeEvent=function(p){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,p){if(this.harkVolumeChangeEnabled)return}else this.harkVolumeChangeEnabled=!1;this.harkSpeakingEnabled||this.harkSpeakingEnabledOnce||this.harkStoppedSpeakingEnabled||this.harkStoppedSpeakingEnabledOnce?this.speechEvent.off("volume_change"):(this.speechEvent.stop(),delete this.speechEvent)}},S.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},S.prototype.getSelectedIceCandidate=function(){var p=this;return new Promise(function(T,Z){p.webRtcStats.getSelectedIceCandidateInfo().then(function(C){return T(C)}).catch(function(C){return Z(C)})})},S.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},S.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},S.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return D.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var p=this.getRTCPeerConnection().iceConnectionState;return"connected"!==p&&"completed"!==p},S.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var p=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};p.interval="number"==typeof p.interval?p.interval:100,p.threshold="number"==typeof p.threshold?p.threshold:-50,this.speechEvent=le(this.mediaStream,p)}return!0}return!1},S.prototype.setupReconnectionEventEmitter=function(p,T){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new G,!1):(console.warn("Trying to reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but an ongoing reconnection process is active. Waiting for response...")),this.reconnectionEventEmitter.once("success",function(){return p()}),this.reconnectionEventEmitter.once("error",function(Z){return T(Z)}),!0)},S.prototype.initWebRtcPeerSend=function(p){var T=this;return new Promise(function(Z,C){var A;if(p){if(T.setupReconnectionEventEmitter(Z,C))return}else T.initHarkEvents();var ne=function(O){var F;return p&&(null===(F=T.reconnectionEventEmitter)||void 0===F||F.emitEvent("error",[O]),delete T.reconnectionEventEmitter),C(O)},g={mediaConstraints:{audio:T.hasAudio,video:T.hasVideo},simulcast:null!==(A=T.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==A?A:T.session.openvidu.videoSimulcast,onIceCandidate:T.connection.sendIceCandidate.bind(T.connection),onIceConnectionStateException:T.onIceConnectionStateExceptionHandler.bind(T),iceServers:T.getIceServersConf(),mediaStream:T.mediaStream,mediaServer:T.session.openvidu.mediaServer,typeOfVideo:T.typeOfVideo?te.TypeOfVideo[T.typeOfVideo]:void 0};"mediasoup"!==T.session.openvidu.mediaServer&&(g.simulcast=!1),p&&T.disposeWebRtcPeer(),T.webRtcPeer=T.displayMyRemote()?new E.WebRtcPeerSendrecv(g):new E.WebRtcPeerSendonly(g),T.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+T.connection.connectionId),T.webRtcPeer.createOffer().then(function(O){T.webRtcPeer.processLocalOffer(O).then(function(){!function(O){D.debug("Sending SDP offer to publish as "+T.streamId,O);var b,F=p?"reconnectStream":"publishVideo";if(p)b={stream:T.streamId,sdpString:O};else{var I=void 0;T.isSendVideo()&&(I="undefined"!=typeof MediaStreamTrack&&T.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?te.TypeOfVideo.CUSTOM:T.isSendScreen()?te.TypeOfVideo.SCREEN:te.TypeOfVideo.CAMERA),b={doLoopback:T.displayMyRemote()||!1,hasAudio:T.isSendAudio(),hasVideo:T.isSendVideo(),audioActive:T.audioActive,videoActive:T.videoActive,typeOfVideo:I,frameRate:T.frameRate?T.frameRate:-1,videoDimensions:JSON.stringify(T.videoDimensions),filter:T.outboundStreamOpts.publisherProperties.filter,sdpOffer:O}}T.session.openvidu.sendRequest(F,b,function($,Ce){$?ne(401===$.code?new W.OpenViduError(W.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify($)):T.webRtcPeer.processRemoteAnswer(Ce.sdpAnswer).then(function(){T.streamId=Ce.id,T.creationTime=Ce.createdAt,T.isLocalStreamPublished=!0,T.publishedOnce=!0,T.displayMyRemote()&&(T.localMediaStreamWhenSubscribedToRemote=T.mediaStream,T.remotePeerSuccessfullyEstablished(p)),T.ee.emitEvent(p?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),T.initWebRtcStats(),D.info("'Publisher' ("+T.streamId+") successfully "+(p?"reconnected":"published")+" to session"),function(){var O;p&&(null===(O=T.reconnectionEventEmitter)||void 0===O||O.emitEvent("success"),delete T.reconnectionEventEmitter),Z()}()}).catch(function(de){ne(de)})})}(O.sdp)}).catch(function(F){ne(new Error("(publish) SDP process local offer error: "+JSON.stringify(F)))})}).catch(function(O){ne(new Error("(publish) SDP create offer error: "+JSON.stringify(O)))})})},S.prototype.finalResolveForSubscription=function(p,T){var Z;return D.info("'Subscriber' ("+this.streamId+") successfully "+(p?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(p),this.initWebRtcStats(),p&&(null===(Z=this.reconnectionEventEmitter)||void 0===Z||Z.emitEvent("success"),delete this.reconnectionEventEmitter),T()},S.prototype.finalRejectForSubscription=function(p,T,Z){var C;return D.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(p?"reconnect":"subscribe")+": "+T.toString()),p&&(null===(C=this.reconnectionEventEmitter)||void 0===C||C.emitEvent("error",[T]),delete this.reconnectionEventEmitter),Z(T)},S.prototype.initWebRtcPeerReceive=function(p){var T=this;return new Promise(function(Z,C){p&&T.setupReconnectionEventEmitter(Z,C)||("mediasoup"===T.session.openvidu.mediaServer?T.initWebRtcPeerReceiveFromServer(p).then(function(){return T.finalResolveForSubscription(p,Z)}).catch(function(A){return T.finalRejectForSubscription(p,A,C)}):T.initWebRtcPeerReceiveFromClient(p).then(function(){return T.finalResolveForSubscription(p,Z)}).catch(function(A){return T.finalRejectForSubscription(p,A,C)}))})},S.prototype.initWebRtcPeerReceiveFromClient=function(p){var T=this;return new Promise(function(Z,C){T.completeWebRtcPeerReceive(p,!1).then(function(A){T.webRtcPeer.processRemoteAnswer(A.sdpAnswer).then(function(){return Z()}).catch(function(Q){return C(Q)})}).catch(function(A){return C(A)})})},S.prototype.initWebRtcPeerReceiveFromServer=function(p){var T=this;return new Promise(function(Z,C){T.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:T.streamId,reconnect:p},function(A,Q){if(A)return C(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(A)));T.completeWebRtcPeerReceive(p,!1,Q.sdpOffer).then(function(){return Z()}).catch(function(ne){return C(ne)})})})},S.prototype.completeWebRtcPeerReceive=function(p,T,Z){var C=this;return new Promise(function(A,Q){D.debug("'Session.subscribe(Stream)' called");var ne=function(g){D.debug("Sending local SDP ".concat(Z?"answer":"offer"," to subscribe to ").concat(C.streamId),g);var O=p?"reconnectStream":"receiveVideoFrom",F={};F[p?"stream":"sender"]=C.streamId,Z?F[p?"sdpString":"sdpAnswer"]=g:F.sdpOffer=g,p&&(F.forciblyReconnect=T),C.session.openvidu.sendRequest(O,F,function(b,I){return b?Q(new Error("Error on "+O+" : "+JSON.stringify(b))):A(I)})},se={mediaConstraints:{audio:C.hasAudio,video:C.hasVideo},simulcast:!1,onIceCandidate:C.connection.sendIceCandidate.bind(C.connection),onIceConnectionStateException:C.onIceConnectionStateExceptionHandler.bind(C),iceServers:C.getIceServersConf(),mediaServer:C.session.openvidu.mediaServer,typeOfVideo:C.typeOfVideo?te.TypeOfVideo[C.typeOfVideo]:void 0};p&&C.disposeWebRtcPeer(),C.webRtcPeer=new E.WebRtcPeerRecvonly(se),C.webRtcPeer.addIceConnectionStateChangeListener(C.streamId),Z?C.webRtcPeer.processRemoteOffer(Z).then(function(){C.webRtcPeer.createAnswer().then(function(g){C.webRtcPeer.processLocalAnswer(g).then(function(){ne(g.sdp)}).catch(function(O){return Q(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(O)))})}).catch(function(g){return Q(new Error("(subscribe) SDP create answer error: "+JSON.stringify(g)))})}).catch(function(g){return Q(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(g)))}):C.webRtcPeer.createOffer().then(function(g){C.webRtcPeer.processLocalOffer(g).then(function(){ne(g.sdp)}).catch(function(O){return Q(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(O)))})}).catch(function(g){return Q(new Error("(subscribe) SDP create offer error: "+JSON.stringify(g)))})})},S.prototype.remotePeerSuccessfullyEstablished=function(p){p&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var T,Z=0,C=this.webRtcPeer.pc.getReceivers();Z<C.length;Z++)(T=C[Z]).track&&this.mediaStream.addTrack(T.track);if(D.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof _.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var A=p?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=A}this.mediaStream.getVideoTracks()[0]&&(A=p?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=A)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},S.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))},S.prototype.onIceConnectionStateExceptionHandler=function(p,T,Z){switch(p){case v.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case v.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new v.ExceptionEvent(this.session,p,this,T,Z)])},S.prototype.onIceConnectionFailed=function(){D.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(v.ExceptionEventName.ICE_CONNECTION_FAILED)},S.prototype.onIceConnectionDisconnected=function(){var p=this;D.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(Z){switch(Z){case"failed":D.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":D.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(Z));break;case"closed":case"checking":case"new":case"disconnected":D.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(p.streamId," (").concat(p.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(T," ms: ").concat(Z)),p.reconnectStreamAndLogResultingIceConnectionState(v.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},S.prototype.reconnectStreamAndLogResultingIceConnectionState=function(p){return k(this,void 0,void 0,function(){var T,Z;return z(this,function(C){switch(C.label){case 0:return C.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(p)];case 1:switch(T=C.sent()){case"connected":case"completed":D.log("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(p,". Current ICE connection state: ").concat(T));break;default:D.error("[".concat(p,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(p,". Current ICE connection state: ").concat(T))}return[3,3];case 2:return Z=C.sent(),D.error("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(p,": ").concat(Z)),[3,3];case 3:return[2]}})})},S.prototype.reconnectStreamAndReturnIceConnectionState=function(p){return k(this,void 0,void 0,function(){var Z;return z(this,function(C){switch(C.label){case 0:D.log("[".concat(p,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(p)),C.label=1;case 1:return C.trys.push([1,3,,4]),[4,this.reconnectStream(p)];case 2:return C.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return Z=C.sent(),D.warn("[".concat(p,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(Z)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},S.prototype.awaitWebRtcPeerConnectionState=function(p){return k(this,void 0,void 0,function(){var T,Z,C,A;return z(this,function(Q){switch(Q.label){case 0:T=this.getRTCPeerConnection().iceConnectionState,Z=150,C=Math.ceil(p/Z),A=0,Q.label=1;case 1:return A<C?"connected"===(T=this.getRTCPeerConnection().iceConnectionState)||"completed"===T?[3,4]:[4,new Promise(function(ne){return setTimeout(ne,Z)})]:[3,4];case 2:Q.sent(),Q.label=3;case 3:return A++,[3,1];case 4:return[2,T]}})})},S.prototype.reconnectStream=function(p){return k(this,void 0,void 0,function(){var Z;return z(this,function(C){switch(C.label){case 0:return[4,this.isWebsocketConnected(p,3e3)];case 1:if(C.sent())return D.log("[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") and the websocket is opened")),this.isLocal()?[2,this.initWebRtcPeerSend(!0)]:[2,this.initWebRtcPeerReceive(!0)];throw Z="[".concat(p,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),D.error(Z),Error(Z)}})})},S.prototype.isWebsocketConnected=function(p,T){var Z=this;return new Promise(function(C,A){var Q=Z.session.openvidu.getWsReadyState();if(1!==Q)return console.warn("[".concat(p,"] Websocket readyState is ").concat(Q)),C(!1);var ne=setTimeout(function(){return console.warn("[".concat(p,"] Websocket timeout of ").concat(T,"ms")),C(!1)},T);Z.session.openvidu.sendRequest("echo",{},function(se,g){return clearTimeout(ne),se?(console.warn("[".concat(p,"] Websocket 'echo' returned error: ").concat(se)),C(!1)):C(!0)})})},S.prototype.initWebRtcStats=function(){this.webRtcStats=new P.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},S.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},S.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},S.prototype.gatherStatsForPeer=function(){var p=this;return new Promise(function(T,Z){p.isLocal()?p.getRTCPeerConnection().getSenders().forEach(function(C){return C.getStats().then(function(A){A.forEach(function(Q){if(p.isReportWanted(Q)){var ne={};ne.type=Q.type,ne.timestamp=Q.timestamp,ne.id=Q.id,"outbound-rtp"===Q.type&&(ne.ssrc=Q.ssrc,ne.firCount=Q.firCount,ne.pliCount=Q.pliCount,ne.nackCount=Q.nackCount,ne.qpSum=Q.qpSum,ne.mediaType=Q.kind?Q.kind:Q.mediaType?Q.mediaType:-1!==Q.id.indexOf("VideoStream")?"video":"audio","video"===ne.mediaType&&(ne.framesEncoded=Q.framesEncoded),ne.packetsSent=Q.packetsSent,ne.bytesSent=Q.bytesSent),"candidate-pair"===Q.type&&void 0!==Q.totalRoundTripTime&&(ne.availableOutgoingBitrate=Q.availableOutgoingBitrate,ne.rtt=Q.currentRoundTripTime,ne.averageRtt=Q.totalRoundTripTime/Q.responsesReceived),D.log(ne)}})})}):p.getRTCPeerConnection().getReceivers().forEach(function(C){return C.getStats().then(function(A){A.forEach(function(Q){if(p.isReportWanted(Q)){var ne={};ne.type=Q.type,ne.timestamp=Q.timestamp,ne.id=Q.id,"inbound-rtp"===Q.type&&(ne.ssrc=Q.ssrc,ne.firCount=Q.firCount,ne.pliCount=Q.pliCount,ne.nackCount=Q.nackCount,ne.qpSum=Q.qpSum,ne.mediaType=Q.kind?Q.kind:Q.mediaType?Q.mediaType:-1!==Q.id.indexOf("VideoStream")?"video":"audio","video"===ne.mediaType&&(ne.framesDecoded=Q.framesDecoded),ne.packetsReceived=Q.packetsReceived,ne.packetsLost=Q.packetsLost,ne.jitter=Q.jitter,ne.bytesReceived=Q.bytesReceived),"candidate-pair"===Q.type&&void 0!==Q.totalRoundTripTime&&(ne.availableIncomingBitrate=Q.availableIncomingBitrate,ne.rtt=Q.currentRoundTripTime,ne.averageRtt=Q.totalRoundTripTime/Q.responsesReceived),D.log(ne)}})})})})},S.prototype.isReportWanted=function(p){return"inbound-rtp"===p.type&&!this.isLocal()||"outbound-rtp"===p.type&&this.isLocal()||"candidate-pair"===p.type&&p.nominated&&p.bytesSent>0},S}();H.Stream=K},7373:function(Fe,H,j){"use strict";var te,k=this&&this.__extends||(te=function(Y,U){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,le){ge.__proto__=le}||function(ge,le){for(var G in le)Object.prototype.hasOwnProperty.call(le,G)&&(ge[G]=le[G])})(Y,U)},function(Y,U){if("function"!=typeof U&&null!==U)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function ge(){this.constructor=Y}te(Y,U),Y.prototype=null===U?Object.create(U):(ge.prototype=U.prototype,new ge)});Object.defineProperty(H,"__esModule",{value:!0}),H.StreamManager=void 0;var M,z=j(2768),V=j(7818),_=j(6320),E=j(4131),P=j(7167),v=j(1829),m=j(1171),x=v.OpenViduLogger.getInstance(),W=function(te){function Y(U,ge){var le=te.call(this)||this;if(le.videos=[],le.lazyLaunchVideoElementCreatedEvent=!1,M=m.PlatformUtils.getInstance(),le.stream=U,le.stream.streamManager=le,le.remote=!le.stream.isLocal(),ge){var G=void 0;"string"==typeof ge?G=document.getElementById(ge):ge instanceof HTMLElement&&(G=ge),G&&(le.firstVideoElement={targetElement:G,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(M.isSafariBrowser()||M.isIPhoneOrIPad()&&(M.isChromeMobileBrowser()||M.isEdgeMobileBrowser()||M.isOperaMobileBrowser()||M.isFirefoxMobileBrowser()))&&(le.firstVideoElement.video.playsInline=!0),le.targetElement=G,le.element=G)}return le.canPlayListener=function(){le.deactivateStreamPlayingEventExceptionTimeout(),le.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(le,"streamPlaying",void 0)])},le}return k(Y,te),Y.prototype.on=function(U,ge){return te.prototype.onAux.call(this,U,"Event '"+U+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",ge),"videoElementCreated"===U&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new _.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===U&&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 V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===U&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===U&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===U&&this.stream.enableHarkVolumeChangeEvent(!1)),this},Y.prototype.once=function(U,ge){return te.prototype.onceAux.call(this,U,"Event '"+U+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",ge),"videoElementCreated"===U&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new _.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===U&&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 V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===U&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===U&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===U&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},Y.prototype.off=function(U,ge){return te.prototype.offAux.call(this,U,ge),"publisherStartSpeaking"===U&&0===this.ee.getListeners(U).length+this.stream.session.ee.getListeners(U).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===U&&0===this.ee.getListeners(U).length+this.stream.session.ee.getListeners(U).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===U&&0===this.ee.getListeners(U).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},Y.prototype.addVideoElement=function(U){this.initializeVideoProperties(U),!this.remote&&this.stream.displayMyRemote()&&U.srcObject!==this.stream.getMediaStream()&&(U.srcObject=this.stream.getMediaStream());for(var ge=0,le=this.videos;ge<le.length;ge++)if(le[ge].video===U)return 0;for(var D=1,q=0,K=this.stream.session.streamManagers;q<K.length;q++)if(K[q].disassociateVideo(U)){D=-1;break}return this.stream.session.streamManagers.forEach(function(p){p.disassociateVideo(U)}),this.pushNewStreamManagerVideo({video:U,id:U.id,canplayListenerAdded:!1}),x.info("New video element associated to ",this),D},Y.prototype.createVideoElement=function(U,ge){var le;if("string"==typeof U){if(!(le=document.getElementById(U)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+U)}else{if(!(U instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+U);le=U}var G=this.createVideo();this.initializeVideoProperties(G);var D=ge||P.VideoInsertMode.APPEND;switch(D){case P.VideoInsertMode.AFTER:le.parentNode.insertBefore(G,le.nextSibling);break;case P.VideoInsertMode.APPEND:le.appendChild(G);break;case P.VideoInsertMode.BEFORE:le.parentNode.insertBefore(G,le);break;case P.VideoInsertMode.PREPEND:le.insertBefore(G,le.childNodes[0]);break;case P.VideoInsertMode.REPLACE:le.parentNode.replaceChild(G,le);break;default:D=P.VideoInsertMode.APPEND,le.appendChild(G)}var q={targetElement:le,video:G,insertMode:D,id:G.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(q),this.ee.emitEvent("videoElementCreated",[new _.VideoElementEvent(q.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,G},Y.prototype.updatePublisherSpeakingEventsOptions=function(U){var ge=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},le="number"==typeof U.interval?U.interval:"number"==typeof ge.interval?ge.interval:100,G="number"==typeof U.threshold?U.threshold:"number"==typeof ge.threshold?ge.threshold:-50;this.stream.harkOptions={interval:le,threshold:G},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(le),this.stream.speechEvent.setThreshold(G))},Y.prototype.initializeVideoProperties=function(U){!this.remote&&this.stream.displayMyRemote()||U.srcObject!==this.stream.getMediaStream()&&(U.srcObject=this.stream.getMediaStream()),U.autoplay=!0,U.controls=!1,(M.isSafariBrowser()||M.isIPhoneOrIPad()&&(M.isChromeMobileBrowser()||M.isEdgeMobileBrowser()||M.isOperaMobileBrowser()||M.isFirefoxMobileBrowser()))&&(U.playsInline=!0),U.id||(U.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&!!this.targetElement&&(this.id=U.id)),this.remote&&this.isMirroredVideo(U)?this.removeMirrorVideo(U):!this.remote&&!this.stream.displayMyRemote()&&(U.muted=!0,this.isMirroredVideo(U)&&!this.stream.outboundStreamOpts.publisherProperties.mirror?this.removeMirrorVideo(U):this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(U))},Y.prototype.removeAllVideos=function(){for(var U=this,ge=this.stream.session.streamManagers.length-1;ge>=0;--ge)this.stream.session.streamManagers[ge]===this&&this.stream.session.streamManagers.splice(ge,1);this.videos.forEach(function(le){!!le.video&&!!le.video.removeEventListener&&le.video.removeEventListener("canplay",U.canPlayListener),le.canplayListenerAdded=!1,le.targetElement&&(le.video.parentNode.removeChild(le.video),U.ee.emitEvent("videoElementDestroyed",[new _.VideoElementEvent(le.video,U,"videoElementDestroyed")])),U.removeSrcObject(le),U.videos.filter(function(G){return!G.targetElement})})},Y.prototype.disassociateVideo=function(U){for(var ge=!1,le=0;le<this.videos.length;le++)if(this.videos[le].video===U){this.videos[le].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(le,1),ge=!0,x.info("Video element disassociated from ",this);break}return ge},Y.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)},Y.prototype.updateMediaStream=function(U){this.videos.forEach(function(ge){if(ge.video.srcObject=U,M.isIonicIos()){var G=ge.video;ge.video.parentElement.replaceChild(G,ge.video),ge.video=G}})},Y.prototype.emitEvent=function(U,ge){this.ee.emitEvent(U,ge)},Y.prototype.createVideo=function(){return document.createElement("video")},Y.prototype.removeSrcObject=function(U){U.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},Y.prototype.pushNewStreamManagerVideo=function(U){this.videos.push(U),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},Y.prototype.mirrorVideo=function(U){M.isIonicIos()||(U.style.transform="rotateY(180deg)",U.style.webkitTransform="rotateY(180deg)")},Y.prototype.removeMirrorVideo=function(U){U.style.transform="unset",U.style.webkitTransform="unset"},Y.prototype.isMirroredVideo=function(U){return"rotateY(180deg)"===U.style.transform||"rotateY(180deg)"===U.style.webkitTransform},Y.prototype.activateStreamPlayingEventExceptionTimeout=function(){var U=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var ge=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var le="StreamManager of Stream "+U.stream.streamId+" ("+(U.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+ge+" ms";x.warn(le),U.stream.session.emitEvent("exception",[new E.ExceptionEvent(U.stream.session,E.ExceptionEventName.NO_STREAM_PLAYING_EVENT,U,le)]),delete U.streamPlayingEventExceptionTimeout},ge)}},Y.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},Y}(z.EventDispatcher);H.StreamManager=W},3343:function(Fe,H,j){"use strict";var P,k=this&&this.__extends||(P=function(v,m){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var W in M)Object.prototype.hasOwnProperty.call(M,W)&&(x[W]=M[W])})(v,m)},function(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=v}P(v,m),v.prototype=null===m?Object.create(m):(x.prototype=m.prototype,new x)});Object.defineProperty(H,"__esModule",{value:!0}),H.Subscriber=void 0;var z=j(7373),_=j(1829).OpenViduLogger.getInstance(),E=function(P){function v(m,x,M){var W=P.call(this,m,x)||this;return W.element=W.targetElement,W.stream=m,W.properties=M,W}return k(v,P),v.prototype.subscribeToAudio=function(m){return this.stream.getMediaStream().getAudioTracks().forEach(function(x){x.enabled=m}),this.stream.audioActive=m,_.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its audio stream"),this},v.prototype.subscribeToVideo=function(m){return this.stream.getMediaStream().getVideoTracks().forEach(function(x){x.enabled=m}),this.stream.videoActive=m,_.info("'Subscriber' has "+(m?"subscribed to":"unsubscribed from")+" its video stream"),this},v.prototype.replaceTrackInMediaStream=function(m,x){var W,M=this.stream.getMediaStream();"video"===m.kind?(W=M.getVideoTracks()[0],x&&(this.stream.lastVideoTrackConstraints=m.getConstraints())):W=M.getAudioTracks()[0],M.removeTrack(W),W.stop(),M.addTrack(m)},v}(z.StreamManager);H.Subscriber=E},1216:(Fe,H)=>{"use strict";var k;Object.defineProperty(H,"__esModule",{value:!0}),H.LocalRecorderState=void 0,(k=H.LocalRecorderState||(H.LocalRecorderState={})).READY="READY",k.RECORDING="RECORDING",k.PAUSED="PAUSED",k.FINISHED="FINISHED"},9303:(Fe,H)=>{"use strict";var z;Object.defineProperty(H,"__esModule",{value:!0}),H.OpenViduError=H.OpenViduErrorName=void 0,(z=H.OpenViduErrorName||(H.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",z.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",z.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",z.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",z.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",z.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",z.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",z.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",z.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",z.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",z.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",z.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",z.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",z.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",z.VIRTUAL_BACKGROUND_ERROR="VIRTUAL_BACKGROUND_ERROR",z.GENERIC_ERROR="GENERIC_ERROR",H.OpenViduError=function z(V,_){this.name=V,this.message=_}},7879:(Fe,H)=>{"use strict";var k;Object.defineProperty(H,"__esModule",{value:!0}),H.TypeOfVideo=void 0,(k=H.TypeOfVideo||(H.TypeOfVideo={})).CAMERA="CAMERA",k.SCREEN="SCREEN",k.CUSTOM="CUSTOM",k.IPCAM="IPCAM"},7167:(Fe,H)=>{"use strict";var k;Object.defineProperty(H,"__esModule",{value:!0}),H.VideoInsertMode=void 0,(k=H.VideoInsertMode||(H.VideoInsertMode={})).AFTER="AFTER",k.APPEND="APPEND",k.BEFORE="BEFORE",k.PREPEND="PREPEND",k.REPLACE="REPLACE"},1698:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.ConnectionEvent=void 0;var V=function(_){function E(P,v,m,x,M){var W=_.call(this,P,v,m)||this;return W.connection=x,W.reason=M,W}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.ConnectionEvent=V},9005:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.ConnectionPropertyChangedEvent=void 0;var V=function(_){function E(P,v,m,x,M){var W=_.call(this,!1,P,"connectionPropertyChanged")||this;return W.connection=v,W.changedProperty=m,W.newValue=x,W.oldValue=M,W}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.ConnectionPropertyChangedEvent=V},616:(Fe,H)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.Event=void 0;var j=function(){function k(z,V,_){this.hasBeenPrevented=!1,this.cancelable=z,this.target=V,this.type=_}return k.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},k.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},k}();H.Event=j},4131:function(Fe,H,j){"use strict";var E,k=this&&this.__extends||(E=function(P,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,x){m.__proto__=x}||function(m,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(m[M]=x[M])})(P,v)},function(P,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function m(){this.constructor=P}E(P,v),P.prototype=null===v?Object.create(v):(m.prototype=v.prototype,new m)});Object.defineProperty(H,"__esModule",{value:!0}),H.ExceptionEvent=H.ExceptionEventName=void 0;var z=j(616);!function(E){E.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",E.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",E.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",E.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT",E.SPEECH_TO_TEXT_DISCONNECTED="SPEECH_TO_TEXT_DISCONNECTED"}(H.ExceptionEventName||(H.ExceptionEventName={}));var _=function(E){function P(v,m,x,M,W){var te=E.call(this,!1,v,"exception")||this;return te.name=m,te.origin=x,te.message=M,te.data=W,te}return k(P,E),P.prototype.callDefaultBehavior=function(){},P}(z.Event);H.ExceptionEvent=_},5132:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.FilterEvent=void 0;var V=function(_){function E(P,v,m){var x=_.call(this,!1,P,v)||this;return x.data=m,x}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.FilterEvent=V},9900:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.NetworkQualityLevelChangedEvent=void 0;var V=function(_){function E(P,v,m,x){var M=_.call(this,!1,P,"networkQualityLevelChanged")||this;return M.newValue=v,M.oldValue=m,M.connection=x,M}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.NetworkQualityLevelChangedEvent=V},8887:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.PublisherSpeakingEvent=void 0;var V=function(_){function E(P,v,m,x){var M=_.call(this,!1,P,v)||this;return M.type=v,M.connection=m,M.streamId=x,M}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.PublisherSpeakingEvent=V},5449:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.RecordingEvent=void 0;var V=function(_){function E(P,v,m,x,M){var W=_.call(this,!1,P,v)||this;return W.id=m,x!==m&&(W.name=x),W.reason=M,W}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.RecordingEvent=V},1690:function(Fe,H,j){"use strict";var P,k=this&&this.__extends||(P=function(v,m){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,M){x.__proto__=M}||function(x,M){for(var W in M)Object.prototype.hasOwnProperty.call(M,W)&&(x[W]=M[W])})(v,m)},function(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function x(){this.constructor=v}P(v,m),v.prototype=null===m?Object.create(m):(x.prototype=m.prototype,new x)});Object.defineProperty(H,"__esModule",{value:!0}),H.SessionDisconnectedEvent=void 0;var z=j(616),_=j(1829).OpenViduLogger.getInstance(),E=function(P){function v(m,x){var M=P.call(this,!0,m,"sessionDisconnected")||this;return M.reason=x,M}return k(v,P),v.prototype.callDefaultBehavior=function(){_.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var m=this.target;m.remoteConnections.forEach(function(x){var M,W,te,Y,U,ge,le,G,D=x.connectionId;if(null!==(M=m.remoteConnections.get(D))&&void 0!==M&&M.stream){null===(W=m.remoteConnections.get(D))||void 0===W||W.stream.disposeWebRtcPeer(),null===(te=m.remoteConnections.get(D))||void 0===te||te.stream.disposeMediaStream(),null!==(Y=m.remoteConnections.get(D))&&void 0!==Y&&Y.stream.streamManager&&(null===(U=m.remoteConnections.get(D))||void 0===U||U.stream.streamManager.removeAllVideos());var q=null===(le=null===(ge=m.remoteConnections.get(D))||void 0===ge?void 0:ge.stream)||void 0===le?void 0:le.streamId;q&&m.remoteStreamsCreated.delete(q),null===(G=m.remoteConnections.get(D))||void 0===G||G.dispose()}m.remoteConnections.delete(D)})},v}(z.Event);H.SessionDisconnectedEvent=E},1659:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.SignalEvent=void 0;var V=function(_){function E(P,v,m,x){var M=_.call(this,!1,P,"signal")||this;return v&&(M.type="signal:"+v),M.data=m,M.from=x,M}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.SignalEvent=V},482:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.SpeechToTextEvent=void 0;var V=function(_){function E(P,v,m,x,M,W){var te=_.call(this,!1,P,"speechToTextMessage")||this;return te.connection=v,te.text=m,te.reason=x,te.raw=M,te.lang=W,te}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.SpeechToTextEvent=V},3980:function(Fe,H,j){"use strict";var m,k=this&&this.__extends||(m=function(x,M){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,te){W.__proto__=te}||function(W,te){for(var Y in te)Object.prototype.hasOwnProperty.call(te,Y)&&(W[Y]=te[Y])})(x,M)},function(x,M){if("function"!=typeof M&&null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function W(){this.constructor=x}m(x,M),x.prototype=null===M?Object.create(M):(W.prototype=M.prototype,new W)});Object.defineProperty(H,"__esModule",{value:!0}),H.StreamEvent=void 0;var z=j(616),V=j(4302),_=j(5607),P=j(1829).OpenViduLogger.getInstance(),v=function(m){function x(M,W,te,Y,U){var ge=m.call(this,M,W,te)||this;return ge.stream=Y,ge.reason=U,ge}return k(x,m),x.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof _.Session)P.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof V.Publisher){P.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var M=this.target.openvidu.publishers,W=0;W<M.length;W++)if(M[W]===this.target){M.splice(W,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var te=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(te&&te.remoteOptions){var Y=te.remoteOptions.streams;for(W=Y.length-1;W>=0;--W)Y[W].id===this.stream.streamId&&Y.splice(W,1)}}},x}(z.Event);H.StreamEvent=v},7818:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.StreamManagerEvent=void 0;var V=function(_){function E(P,v,m){var x=_.call(this,!1,P,v)||this;return x.value=m,x}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.StreamManagerEvent=V},9383:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.StreamPropertyChangedEvent=void 0;var V=function(_){function E(P,v,m,x,M,W){var te=_.call(this,!1,P,"streamPropertyChanged")||this;return te.stream=v,te.changedProperty=m,te.newValue=x,te.oldValue=M,te.reason=W,te}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.StreamPropertyChangedEvent=V},7848:(Fe,H)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0})},6320:function(Fe,H,j){"use strict";var _,k=this&&this.__extends||(_=function(E,P){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,m){v.__proto__=m}||function(v,m){for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(v[x]=m[x])})(E,P)},function(E,P){if("function"!=typeof P&&null!==P)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function v(){this.constructor=E}_(E,P),E.prototype=null===P?Object.create(P):(v.prototype=P.prototype,new v)});Object.defineProperty(H,"__esModule",{value:!0}),H.VideoElementEvent=void 0;var V=function(_){function E(P,v,m){var x=_.call(this,!1,v,m)||this;return x.element=P,x}return k(E,_),E.prototype.callDefaultBehavior=function(){},E}(j(616).Event);H.VideoElementEvent=V},8229:Fe=>{function H(){var j={};this.forEach=function(k){for(var z in j){var V=j[z];for(var _ in V)k(V[_])}},this.get=function(k,z){var V=j[z];if(null!=V)return V[k]},this.remove=function(k,z){var V=j[z];if(null!=V){for(var _ in delete V[k],V)return!1;delete j[z]}},this.set=function(k,z,V){if(null==k)return this.remove(z,V);var _=j[V];null==_&&(j[V]=_={}),_[z]=k}}H.prototype.pop=function(j,k){var z=this.get(j,k);if(null!=z)return this.remove(j,k),z},Fe.exports=H},1780:(Fe,H,j)=>{var k=j(2245);H.JsonRpcClient=k},2245:(Fe,H,j)=>{var k=j(4940),z=j(6738),V=j(1829).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var E="RECONNECTING",P="CONNECTED",v="DISCONNECTED",m=V.getInstance();Fe.exports=function x(M){var G,W=this,te=M.ws,Y=-1,U=0,ge=!0,le=!1,D=v,q=te.onreconnecting,K=te.onreconnected,S=te.onconnected,p=te.onerror;M.rpc.pull=function(g,O){O.reply(null,"push")},te.onreconnecting=function(){m.debug("--------- ONRECONNECTING -----------"),D!==E?(se(),D=E,q&&q()):m.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},te.onreconnected=function(){m.debug("--------- ONRECONNECTED -----------"),D!==P?(D=P,A(),K&&K()):m.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},te.onconnected=function(){m.debug("--------- ONCONNECTED -----------"),D!==P?(D=P,ge=!0,ne(),S&&S()):m.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},te.onerror=function(g){m.debug("--------- ONERROR -----------"),D=v,se(),p&&p(g)};var T=new z(te);m.debug("Connecting websocket to URI: "+te.uri);var C=new k(k.packers.JsonRPC,{request_timeout:M.rpc.requestTimeout,ping_request_timeout:M.rpc.heartbeatRequestTimeout},T,function(g){m.debug("Received request: "+JSON.stringify(g));try{var O=M.rpc[g.method];void 0===O?m.error("Method "+g.method+" not registered in client"):O(g.params,g)}catch(F){m.error("Exception processing request: "+JSON.stringify(g)),m.error(F)}});function A(){m.debug("notReconnectIfNumLessThan = "+U+" (old="+Y+")"),Y=U}function Q(){if(ge){var g=null;(0==U||U==Y)&&(g={interval:M.heartbeat||5e3}),U++,W.send("ping",g,(O=U,function(F,b){F&&(m.debug("Error in ping request #"+O+" ("+F.message+")"),O>Y&&(ge=!1,A(),m.debug("Server did not respond to ping message #"+O+". Reconnecting... "),T.reconnectWs()))}))}else m.debug("Trying to send ping, but ping is not enabled");var O}function ne(){le||(m.debug("Starting ping (if configured)"),le=!0,null!=M.heartbeat&&(G=setInterval(Q,M.heartbeat),Q()))}function se(){clearInterval(G),le=!1,ge=!1,U=-1,C.cancel()}this.send=function(g,O,F){var b=Date.now();C.encode(g,O,function(I,$){if(I){try{m.error("ERROR:"+I.message+" in Request: method:"+g+" params:"+JSON.stringify(O)+" request:"+I.request),I.data&&m.error("ERROR DATA:"+JSON.stringify(I.data))}catch(Ce){}I.requestTime=b}F&&(null!=$&&"pong"!==$.value&&m.debug("Response: "+JSON.stringify($)),F(I,$))})},this.close=function(g,O){m.debug("Closing with code: "+g+" because: "+O),null!=G&&(m.debug("Clearing ping interval"),clearInterval(G)),le=!1,ge=!1,T.close(g,O)},this.reconnect=function(){T.reconnectWs()},this.resetPing=function(){ge=!0,U=0,ne()},this.getReadyState=function(){return T.getReadyState()}}},7526:(Fe,H,j)=>{var k=j(6738);H.WebSocketWithReconnection=k},6738:(Fe,H,j)=>{"use strict";var z=j(1829).OpenViduLogger.getInstance();Fe.exports=function x(M){var te,W=!1,Y=M.uri,U=!1,ge=new WebSocket(Y);ge.onopen=function(){z.debug("WebSocket connected to "+Y),M.onconnected&&M.onconnected()},ge.onerror=function(K){z.error("Could not connect to "+Y+" (invoking onerror if defined)",K),M.onerror&&M.onerror(K)};var le=function(){3===ge.readyState?W?z.debug("Connection closed by user"):M.ismasternodecrashed()?z.error("Master Node has crashed. Stopping reconnection process"):(z.debug("Connection closed unexpectedly. Reconnecting..."),G(2e3,1)):z.debug("Close callback from previous websocket. Ignoring it")};function G(K,S){if(z.debug("reconnect (attempt #"+S+", max="+K+")"),1===S){if(U)return void z.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");U=!0,M.onreconnecting&&M.onreconnecting()}!function q(K,S){z.debug("Reconnection attempt #"+S),ge.close(4104,"Connection closed for reconnection"),Y=function D(K){var S=new URLSearchParams(new URL(K).search);return S.has("reconnect")||(K=Array.from(S).length>0?K+"&reconnect=true":K+"?reconnect=true"),K}(Y),(ge=new WebSocket(Y)).onopen=function(){z.debug("Reconnected to "+Y+" after "+S+" attempts..."),U=!1,te(),M.onreconnected()&&M.onreconnected(),ge.onclose=le},ge.onerror=function(p){z.warn("Reconnection error: ",p),S===K?M.ondisconnect&&M.ondisconnect():setTimeout(function(){G(K,S+1)},3e3)}}(K,S)}ge.onclose=le,this.close=function(K,S){W=!0,ge.close(K,S)},this.reconnectWs=function(){z.debug("reconnectWs"),G(2e3,1)},this.send=function(K){ge.send(K)},this.addEventListener=function(K,S){(te=function(){ge.addEventListener(K,S)})()},this.getReadyState=function(){return ge.readyState}}},4940:(Fe,H,j)=>{var k=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(Y){k=!0}Function.prototype.bind||(Function.prototype.bind=function(Y){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var U=Array.prototype.slice.call(arguments,1),ge=this,le=function(){},G=function(){return ge.apply(this instanceof le&&Y?this:Y,U.concat(Array.prototype.slice.call(arguments)))};return le.prototype=this.prototype,G.prototype=new le,G});var z=j(7945).EventEmitter,V=j(9543),_=j(2907),E=j(8229),P=5e3;function m(Y){if(Y){if(Y instanceof Function)return{send:Y};if(Y.send instanceof Function)return Y;if(Y.postMessage instanceof Function)return Y.send=Y.postMessage,Y;if(Y.write instanceof Function)return Y.send=Y.write,Y;if(void 0===Y.onmessage&&!(Y.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function x(Y,U){k?(this.method=Y,this.params=U):(Object.defineProperty(this,"method",{value:Y,enumerable:!0}),Object.defineProperty(this,"params",{value:U,enumerable:!0}))}function M(Y,U,ge,le){var G=this;if(!Y)throw new SyntaxError("Packer is not defined");if(!Y.pack||!Y.unpack)throw new SyntaxError("Packer is invalid");var D=function v(Y){if(!Y)return{};for(var U in Y){var ge=Y[U];"string"==typeof ge&&(Y[U]={response:ge})}return Y}(Y.responseMethods);if(U instanceof Function){if(null!=ge)throw new SyntaxError("There can't be parameters after onRequest");le=U,ge=void 0,U=void 0}if(U&&U.send instanceof Function){if(ge&&!(ge instanceof Function))throw new SyntaxError("Only a function can be after transport");le=ge,ge=U,U=void 0}if(ge instanceof Function){if(null!=le)throw new SyntaxError("There can't be parameters after onRequest");le=ge,ge=void 0}if(ge&&ge.send instanceof Function&&le&&!(le instanceof Function))throw new SyntaxError("Only a function can be after transport");U=U||{},z.call(this),le&&this.on("request",le),k?this.peerID=U.peerID:Object.defineProperty(this,"peerID",{value:U.peerID});var q=U.max_retries||0;function K(I){G.decode(I.data||I)}this.getTransport=function(){return ge},this.setTransport=function(I){ge&&(ge.removeEventListener?ge.removeEventListener("message",K):ge.removeListener&&ge.removeListener("data",K)),I&&(I.addEventListener?I.addEventListener("message",K):I.addListener&&I.addListener("data",K)),ge=m(I)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(ge);var S=U.request_timeout||P,p=U.ping_request_timeout||S,T=U.response_timeout||P,Z=U.duplicates_timeout||P,C=0,A=new E,Q=new E,ne=new E,se={};function O(I,$){var Ce=setTimeout(function(){ne.remove(I,$)},Z);ne.set(Ce,I,$)}function F(I,$,Ce,de,ce){x.call(this,I,$),this.getTransport=function(){return ce},this.setTransport=function(je){ce=m(je)},k||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var Te=Q.get(Ce,de);ce||G.getTransport()||(k?this.duplicated=Boolean(Te):Object.defineProperty(this,"duplicated",{value:Boolean(Te)}));var Xe=D[I];this.pack=Y.pack.bind(Y,this,Ce),this.reply=function(je,Qe,ht){if(je instanceof Function||je&&je.send instanceof Function){if(null!=Qe)throw new SyntaxError("There can't be parameters after callback");ht=je,Qe=null,je=void 0}else if(Qe instanceof Function||Qe&&Qe.send instanceof Function){if(null!=ht)throw new SyntaxError("There can't be parameters after callback");ht=Qe,Qe=null}var $e;return ht=m(ht),Te&&clearTimeout(Te.timeout),null!=de&&(je&&(je.dest=de),Qe&&(Qe.dest=de)),je||null!=Qe?(null!=G.peerID&&(je?je.from=G.peerID:Qe.from=G.peerID),$e=Y.pack($e=Xe?null==Xe.error&&je?{error:je}:{method:je?Xe.error:Xe.response,params:je||Qe}:{error:je,result:Qe},Ce)):$e=Te?Te.message:Y.pack({result:null},Ce),function g(I,$,Ce){var de={message:I,timeout:setTimeout(function(){Q.remove($,Ce)},T)};Q.set(de,$,Ce)}($e,Ce,de),(ht=ht||this.getTransport()||G.getTransport())?ht.send($e):$e}}function b(I){var $=se[I];if($){delete se[I];var Ce=A.pop($.id,$.dest);!Ce||(clearTimeout(Ce.timeout),O($.id,$.dest))}}V(F,x),this.cancel=function(I){if(I)return b(I);for(var I in se)b(I)},this.close=function(){var I=this.getTransport();I&&I.close&&I.close(4003,"Cancel request"),this.cancel(),ne.forEach(clearTimeout),Q.forEach(function($){clearTimeout($.timeout)})},this.encode=function(I,$,Ce,de,ce){if($ instanceof Function){if(null!=Ce)throw new SyntaxError("There can't be parameters after callback");ce=$,de=void 0,Ce=void 0,$=void 0}else if(Ce instanceof Function){if(null!=de)throw new SyntaxError("There can't be parameters after callback");ce=Ce,de=void 0,Ce=void 0}else if(de instanceof Function){if(null!=ce)throw new SyntaxError("There can't be parameters after callback");ce=de,de=void 0}null!=G.peerID&&(($=$||{}).from=G.peerID),null!=Ce&&(($=$||{}).dest=Ce);var Te={method:I,params:$};if(ce){let cn=function(J,oe){G.cancel(Te),ce(J,oe)},ue=function(J){return Qe.timeout=setTimeout(ae,("ping"===I?p:S)*Math.pow(2,je++)),se[Te]={id:Xe,dest:Ce},A.set(Qe,Xe,Ce),(J=J||ht||G.getTransport())?J.send(Te):Te},ye=function(J){J=m(J),console.warn(je+" retry for request message:",Te);var oe=ne.pop(Xe,Ce);return clearTimeout(oe),ue(J)},ae=function(){if(je<q)return ye(de);var J=new Error("Request has timed out");J.request=Te,J.retry=ye,cn(J)};var Xe=C++,je=0,Qe={message:Te=Y.pack(Te,Xe),callback:cn,responseMethods:D[I]||{}},ht=m(de);return ue(de)}return Te=Y.pack(Te),(de=de||this.getTransport())?de.send(Te):Te},this.decode=function(I,$){if(!I)throw new TypeError("Message is not defined");try{I=Y.unpack(I)}catch(ae){return console.debug(ae,I)}var Ce=I.id,de=I.ack,ce=I.method,Te=I.params||{},Xe=Te.from,je=Te.dest;if(null==G.peerID||Xe!=G.peerID){if(null==Ce&&null==de){var Qe=new x(ce,Te);return G.emit("request",Qe)?void 0:Qe}if(ce){if(null==je||je==G.peerID){if(ye=A.get(de,Xe)){var $t=ye.responseMethods;return ce==$t.error?$e(ye,Te):ce==$t.response?$e(ye,null,Te):ht()}if(Ke=ne.get(de,Xe))return he(Ke)}return ht()}var cn=I.error,ue=I.result;if(!(cn&&cn.dest&&cn.dest!=G.peerID||ue&&ue.dest&&ue.dest!=G.peerID)){var ye,Ke;if(!(ye=A.get(de,Xe)))return(Ke=ne.get(de,Xe))?he(Ke):console.warn("No callback was defined for this message",I);$e(ye,cn,ue)}}function ht(){if($=m($)||G.getTransport()){var ae=Q.get(Ce,Xe);if(ae)return $.send(ae.message)}var oe=new F(ce,Te,null!=Ce?Ce:de,Xe,$);if(!G.emit("request",oe))return oe}function $e(ae,J,oe){ae.callback(J,oe)}function he(ae){console.warn("Response already processed",I),clearTimeout(ae),O(de,Xe)}}}V(M,z),M.RpcNotification=x,Fe.exports=M;var W=j(1780),te=j(7526);(M.clients=W).transports=te,M.packers=_},3815:(Fe,H)=>{H.pack=function j(z,V){var _={jsonrpc:"2.0"};if(z.method)_.method=z.method,z.params&&(_.params=z.params),null!=V&&(_.id=V);else if(null!=V){if(z.error){if(void 0!==z.result)throw new TypeError("Both result and error are defined");_.error=z.error}else{if(void 0===z.result)throw new TypeError("No result or error is defined");_.result=z.result}_.id=V}return JSON.stringify(_)},H.unpack=function k(z){var V=z;("string"==typeof z||z instanceof String)&&(V=JSON.parse(z));var _=V.jsonrpc;if("2.0"!==_)throw new TypeError("Invalid JsonRPC version '"+_+"': "+z);if(null==V.method){if(null==V.id)throw new TypeError("Invalid message: "+z);var E=void 0!==V.result,P=void 0!==V.error;if(E&&P)throw new TypeError("Both result and error are defined: "+z);if(!E&&!P)throw new TypeError("No result or error is defined: "+z);V.ack=V.id,delete V.id}return V}},3303:(Fe,H)=>{H.pack=function j(z){throw new TypeError("Not yet implemented")},H.unpack=function k(z){throw new TypeError("Not yet implemented")}},2907:(Fe,H,j)=>{var k=j(3815),z=j(3303);H.JsonRPC=k,H.XmlRPC=z},0:(Fe,H)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.ConsoleLogger=void 0,H.ConsoleLogger=function k(z){this.logger=z,this.log=z.log,this.info=z.info,this.debug=z.debug,this.warn=z.warn,this.error=z.error}},1829:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.OpenViduLogger=void 0;var k=j(5163),z=j(0),V=j(1438),_=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 z.ConsoleLogger(globalThis.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return E.configureJSNLog=function(P,v){var m=this;try{if(globalThis.LOG_JSNLOG_RESULTS||this.instance&&P.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(P)&&this.instance.canConfigureJSNLog(P,this.instance)){P.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var x=P.finalUserId,M=P.session.sessionId;this.instance.currentAppender=k.JL.createAjaxAppender("appender-".concat(x,"-").concat(M)),this.instance.currentAppender.setOptions({beforeSend:function(Y){var U=Y.onreadystatechange;Y.onreadystatechange=function(){m.isInvalidResponse(Y)&&(Object.defineProperty(Y,"readyState",{value:4}),Object.defineProperty(Y,"status",{value:200}),m.instance.disableLogger()),U()},Y.setRequestHeader("Authorization","Basic "+btoa("".concat(x,"%/%").concat(M)+":"+v)),Y.setRequestHeader("X-Requested-With","XMLHttpRequest"),Y.setRequestHeader("OV-Final-User-Id",x),Y.setRequestHeader("OV-Session-Id",M),Y.setRequestHeader("OV-Token",v)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),k.JL.setOptions({defaultAjaxUrl:P.httpUri+this.instance.JSNLOG_URL,serialize:function(Y){var le,ge=JSON.stringify(Y,(le=new WeakSet,function(G,D){if("object"==typeof D&&null!=D){if(le.has(D)||globalThis.HTMLElement&&D instanceof HTMLElement)return;le.add(D)}return D}));return ge.length>m.instance.MAX_LENGTH_STRING_JSON&&(ge="".concat(ge.substring(0,m.instance.MAX_LENGTH_STRING_JSON),"...")),globalThis.LOG_JSNLOG_RESULTS&&console.log(ge),ge},enabled:!0}),(0,k.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=M,this.instance.info("JSNLog configured.")}}catch(Y){console.error("Error configuring JSNLog: "),console.error(Y),this.instance.disableLogger()}},E.getInstance=function(){return E.instance||(E.instance=new E),E.instance},E.isInvalidResponse=function(P){return 401==P.status||403==P.status||404==P.status||0==P.status},E.prototype.canConfigureJSNLog=function(P,v){return P.session.sessionId!=v.loggingSessionId},E.prototype.isOpenViduBrowserLogsDebugActive=function(P){return P.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug||P.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app},E.prototype.getConsoleWithJSNLog=function(){return P=this,{log:function(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];P.defaultConsoleLogger.log.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,k.JL)().info(arguments)},info:function(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];P.defaultConsoleLogger.info.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,k.JL)().info(arguments)},debug:function(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];P.defaultConsoleLogger.debug.apply(P.defaultConsoleLogger.logger,arguments)},warn:function(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];P.defaultConsoleLogger.warn.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,k.JL)().warn(arguments)},error:function(){for(var v=[],m=0;m<arguments.length;m++)v[m]=arguments[m];P.defaultConsoleLogger.error.apply(P.defaultConsoleLogger.logger,arguments),P.isJSNLogSetup&&(0,k.JL)().error(arguments)}};var P},E.prototype.replaceWindowConsole=function(){globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.getConsoleWithJSNLog().log,globalThis.console.info=this.getConsoleWithJSNLog().info,globalThis.console.debug=this.getConsoleWithJSNLog().debug,globalThis.console.warn=this.getConsoleWithJSNLog().warn,globalThis.console.error=this.getConsoleWithJSNLog().error},E.prototype.disableLogger=function(){k.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,globalThis.console=this.defaultConsoleLogger.logger,globalThis.console.log=this.defaultConsoleLogger.log,globalThis.console.info=this.defaultConsoleLogger.info,globalThis.console.debug=this.defaultConsoleLogger.debug,globalThis.console.warn=this.defaultConsoleLogger.warn,globalThis.console.error=this.defaultConsoleLogger.error},E.prototype.log=function(){for(var P=[],v=0;v<arguments.length;v++)P[v]=arguments[v];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().info(arguments)},E.prototype.debug=function(){for(var P=[],v=0;v<arguments.length;v++)P[v]=arguments[v];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},E.prototype.info=function(){for(var P=[],v=0;v<arguments.length;v++)P[v]=arguments[v];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().info(arguments)},E.prototype.warn=function(){for(var P=[],v=0;v<arguments.length;v++)P[v]=arguments[v];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().warn(arguments)},E.prototype.error=function(){for(var P=[],v=0;v<arguments.length;v++)P[v]=arguments[v];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,k.JL)().error(arguments)},E.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},E.prototype.enableProdMode=function(){this.isProdMode=!0},E}();H.OpenViduLogger=_},1438:(Fe,H)=>{"use strict";var k;Object.defineProperty(H,"__esModule",{value:!0}),H.OpenViduLoggerConfiguration=void 0,(k=H.OpenViduLoggerConfiguration||(H.OpenViduLoggerConfiguration={})).disabled="disabled",k.debug="debug",k.debug_app="debug_app"},467:(Fe,H)=>{function j(E,P,v){var m={audio:!1,video:{mandatory:{chromeMediaSource:E?"screen":"desktop",maxWidth:globalThis.screen.width>1920?globalThis.screen.width:1920,maxHeight:globalThis.screen.height>1080?globalThis.screen.height:1080},optional:[]}};return v&&(m.audio={mandatory:{chromeMediaSource:E?"screen":"desktop"},optional:[]}),P&&(m.video.mandatory.chromeMediaSourceId=P,m.audio&&m.audio.mandatory&&(m.audio.mandatory.chromeMediaSourceId=P)),m}function k(E){z?z.isLoaded?z.contentWindow.postMessage(E?E.forEach?{captureCustomSourceId:E}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){k(E)},100):V(function(){k(E)})}var z;function V(E){z?E():((z=document.createElement("iframe")).onload=function(){z.isLoaded=!0,E()},z.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",z.style.display="none",(document.body||document.documentElement).appendChild(z))}function _(){z?z.isLoaded?z.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(_,100):V(_)}globalThis.getScreenId=function(E,P,v){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?P(null,"firefox",{video:{mozMediaSource:E,mediaSource:E}}):(globalThis.addEventListener("message",function m(x){!x.data||(x.data.chromeMediaSourceId&&("PermissionDeniedError"===x.data.chromeMediaSourceId?P("permission-denied"):P(null,x.data.chromeMediaSourceId,j(null,x.data.chromeMediaSourceId,x.data.canRequestAudioTrack)),globalThis.removeEventListener("message",m)),x.data.chromeExtensionStatus&&(P(x.data.chromeExtensionStatus,null,j(x.data.chromeExtensionStatus)),globalThis.removeEventListener("message",m)))}),setTimeout(v?function(){k(v)}:k,100)):P({video:!0})},globalThis.getScreenConstraints=function(E){V(function(){getScreenId(function(P,v,m){m||(m={video:!0}),E(P,m.video)})})},globalThis.getChromeExtensionStatus=function(E){navigator.mozGetUserMedia?E("installed-enabled"):(globalThis.addEventListener("message",function P(v){!v.data||v.data.chromeExtensionStatus&&(E(v.data.chromeExtensionStatus),globalThis.removeEventListener("message",P))}),setTimeout(_,100))},H.getScreenId=globalThis.getScreenId},48:(Fe,H)=>{var k,z,j="screen";if("undefined"!=typeof window&&"undefined"!=typeof navigator&&void 0!==navigator.userAgent){var V=void 0!==window.InstallTrigger;!!window.opera||navigator.userAgent.indexOf(" OPR/");window,window.addEventListener("message",function(U){U.origin==window.location.origin&&function P(U){if("PermissionDeniedError"==U){if(z)return z("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==U&&(j="desktop"),U.sourceId&&z&&z(k=U.sourceId,!0===U.canRequestAudioTrack)}(U.data)})}function m(U){if(!U)throw'"callback" parameter is mandatory.';if(k)return U(k);z=U,window.postMessage("get-sourceId","*")}function Y(U,ge){if(k="",V)return U(null,{mozMediaSource:"window",mediaSource:"window"});var G={mandatory:{chromeMediaSource:j,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=j||k?("desktop"==j&&(G.mandatory.chromeMediaSourceId=k),U(null,G)):ge?function M(U){if(!U)throw'"callback" parameter is mandatory.';if(k)return U(k);z=U,window.postMessage("audio-plus-tab","*")}(function(D,q){G.mandatory.chromeMediaSourceId=D,q&&(G.canRequestAudioTrack=!0),U("PermissionDeniedError"==D?D:null,G)}):m(function(D){G.mandatory.chromeMediaSourceId=D,U("PermissionDeniedError"==D?D:null,G)})}H.getScreenConstraints=Y,H.getScreenConstraintsWithAudio=function te(U){Y(U,!0)},H.isChromeExtensionAvailable=function v(U){if(U){if("desktop"==j)return U(!0);window.postMessage("are-you-there","*"),setTimeout(function(){U("screen"!=j)},2e3)}},H.getChromeExtensionStatus=function W(U,ge){if(V)return ge("not-chrome");2!=arguments.length&&(ge=U,U="lfcgfepafnobdloecchnfaclibenjold");var le=document.createElement("img");le.src="chrome-extension://"+U+"/icon.png",le.onload=function(){j="screen",window.postMessage("are-you-there","*"),setTimeout(function(){ge("screen"==j?"installed-disabled":"installed-enabled")},2e3)},le.onerror=function(){ge("not-installed")}},H.getSourceId=m},1171:(Fe,H,j)=>{"use strict";Object.defineProperty(H,"__esModule",{value:!0}),H.PlatformUtils=void 0;var k=j(6218),z=function(){function V(){}return V.getInstance=function(){return this.instance||(this.instance=new V),V.instance},V.prototype.isChromeBrowser=function(){return"Chrome"===k.name},V.prototype.isSafariBrowser=function(){return"Safari"===k.name},V.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===k.name},V.prototype.isFirefoxBrowser=function(){return"Firefox"===k.name},V.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===k.name||"Firefox for iOS"===k.name},V.prototype.isOperaBrowser=function(){return"Opera"===k.name},V.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===k.name},V.prototype.isEdgeBrowser=function(){var _=null!=k&&k.version?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&_>=80},V.prototype.isEdgeMobileBrowser=function(){var _,E,P=null!=k&&k.version?parseFloat(k.version):-1;return"Microsoft Edge"===k.name&&("Android"===(null===(_=k.os)||void 0===_?void 0:_.family)||"iOS"===(null===(E=k.os)||void 0===E?void 0:E.family))&&P>45},V.prototype.isAndroidBrowser=function(){return"Android Browser"===k.name},V.prototype.isElectron=function(){return"Electron"===k.name},V.prototype.isNodeJs=function(){return"Node.js"===k.name},V.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===k.name||"Samsung Internet"===k.name},V.prototype.isIPhoneOrIPad=function(){var _=k.ua?k.ua:navigator.userAgent,E="ontouchend"in document,P=/\b(\w*Macintosh\w*)\b/.test(_)&&E,v=/\b(\w*iPhone\w*)\b/.test(_)&&/\b(\w*Mobile\w*)\b/.test(_)&&E;return P||v},V.prototype.isIOSWithSafari=function(){var _=k.ua?k.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(_)&&!/\b(\w*CriOS\w*)\b/.test(_)&&!/\b(\w*FxiOS\w*)\b/.test(_)},V.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===k.ua.indexOf("Safari")},V.prototype.isIonicAndroid=function(){return"Android"===k.os.family&&"Android Browser"==k.name},V.prototype.isMobileDevice=function(){return"iOS"===k.os.family||"Android"===k.os.family},V.prototype.isReactNative=function(){return!1},V.prototype.isChromium=function(){return this.isChromeBrowser()||this.isChromeMobileBrowser()||this.isOperaBrowser()||this.isOperaMobileBrowser()||this.isEdgeBrowser()||this.isEdgeMobileBrowser()||this.isSamsungBrowser()||this.isIonicAndroid()||this.isIonicIos()||this.isElectron()},V.prototype.canScreenShare=function(){var _=null!=k&&k.version?parseFloat(k.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&_>=13)},V.prototype.getName=function(){return k.name||""},V.prototype.getVersion=function(){return k.version||""},V.prototype.getFamily=function(){return k.os.family||""},V.prototype.getDescription=function(){return k.description||""},V}();H.PlatformUtils=z},1530:function(Fe,H,j){"use strict";var le,k=this&&this.__extends||(le=function(G,D){return(le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,K){q.__proto__=K}||function(q,K){for(var S in K)Object.prototype.hasOwnProperty.call(K,S)&&(q[S]=K[S])})(G,D)},function(G,D){if("function"!=typeof D&&null!==D)throw new TypeError("Class extends value "+String(D)+" is not a constructor or null");function q(){this.constructor=G}le(G,D),G.prototype=null===D?Object.create(D):(q.prototype=D.prototype,new q)}),z=this&&this.__assign||function(){return z=Object.assign||function(le){for(var G,D=1,q=arguments.length;D<q;D++)for(var K in G=arguments[D])Object.prototype.hasOwnProperty.call(G,K)&&(le[K]=G[K]);return le},z.apply(this,arguments)},V=this&&this.__awaiter||function(le,G,D,q){return new(D||(D=Promise))(function(S,p){function T(A){try{C(q.next(A))}catch(Q){p(Q)}}function Z(A){try{C(q.throw(A))}catch(Q){p(Q)}}function C(A){A.done?S(A.value):function K(S){return S instanceof D?S:new D(function(p){p(S)})}(A.value).then(T,Z)}C((q=q.apply(le,G||[])).next())})},_=this&&this.__generator||function(le,G){var q,K,S,p,D={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]};return p={next:T(0),throw:T(1),return:T(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function T(C){return function(A){return function Z(C){if(q)throw new TypeError("Generator is already executing.");for(;D;)try{if(q=1,K&&(S=2&C[0]?K.return:C[0]?K.throw||((S=K.return)&&S.call(K),0):K.next)&&!(S=S.call(K,C[1])).done)return S;switch(K=0,S&&(C=[2&C[0],S.value]),C[0]){case 0:case 1:S=C;break;case 4:return D.label++,{value:C[1],done:!1};case 5:D.label++,K=C[1],C=[0];continue;case 7:C=D.ops.pop(),D.trys.pop();continue;default:if(!(S=(S=D.trys).length>0&&S[S.length-1])&&(6===C[0]||2===C[0])){D=0;continue}if(3===C[0]&&(!S||C[1]>S[0]&&C[1]<S[3])){D.label=C[1];break}if(6===C[0]&&D.label<S[1]){D.label=S[1],S=C;break}if(S&&D.label<S[2]){D.label=S[2],D.ops.push(C);break}S[2]&&D.ops.pop(),D.trys.pop();continue}C=G.call(le,D)}catch(A){C=[6,A],K=0}finally{q=S=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,A])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.WebRtcPeerSendrecv=H.WebRtcPeerSendonly=H.WebRtcPeerRecvonly=H.WebRtcPeer=void 0;var E=j(8145),P=j(8201),v=j(4131),m=j(1829),x=j(1171),M=m.OpenViduLogger.getInstance(),te=function(){function le(G){var D=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,x.PlatformUtils.getInstance(),this.configuration=z(z({},G),{iceServers:G.iceServers&&G.iceServers.length>0?G.iceServers:E(),mediaStream:void 0!==G.mediaStream?G.mediaStream:null,mode:G.mode?G.mode:"sendrecv",id:G.id?G.id:this.generateUniqueId()}),M.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(q){if(null!==q.candidate){var S=new RTCIceCandidate(q.candidate);D.configuration.onIceCandidate(S),""!==S.candidate&&D.localCandidatesQueue.push(S)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===D.pc.signalingState)for(;D.iceCandidateList.length>0;){var q=D.iceCandidateList.shift();D.pc.addIceCandidate(q)}})}return le.prototype.getId=function(){return this.configuration.id},le.prototype.dispose=function(){if(M.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},le.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var q={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return M.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(q)),this.pc.createOffer(q)},le.prototype.createOffer=function(){var G,D,q,K,S,p,T,Z;return V(this,void 0,void 0,function(){var C,A,Q,ne,se,g,O,F,b,I,$,Ce,de,ce,Te,Xe,je,Qe,ht,$e,he,$t,Ke;return _(this,function(cn){switch(cn.label){case 0:if(!("addTransceiver"in this.pc))return M.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(M.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"));C=0,A=this.configuration.mediaStream.getTracks(),cn.label=1;case 1:if(!(C<A.length))return[3,6];if(ne={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(Q=A[C]).kind&&this.configuration.simulcast)for(se=Q.getSettings(),g=Q.getConstraints(),O=null!==(q=null!==(D=null!==(G=se.width)&&void 0!==G?G:g.width.ideal)&&void 0!==D?D:g.width)&&void 0!==q?q:0,F=null!==(p=null!==(S=null!==(K=se.height)&&void 0!==K?K:g.height.ideal)&&void 0!==S?S:g.height)&&void 0!==p?p:0,M.info("[createOffer] Video track dimensions: ".concat(O,"x").concat(F)),0,I=(b=O*F)>=518400?3:b>=129600?2:1,ne.sendEncodings=[],$=0;$<I;$++)Ce=Math.pow(2,I-$-1),de={rid:"rdiv"+Ce.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(Q.contentHint)?(de.scaleResolutionDownBy=1,de.maxFramerate=Math.floor(30/Ce)):de.scaleResolutionDownBy=Ce,ne.sendEncodings.push(de);if(ce=this.pc.addTransceiver(Q,ne),"video"!==Q.kind)return[3,5];if(Te=ce.sender.getParameters(),Xe=!1,!(null===(T=Te.degradationPreference)||void 0===T)&&T.length||(Te.degradationPreference=["detail","text"].includes(Q.contentHint)?"maintain-resolution":"balanced",M.info("[createOffer] Video sender Degradation Preference set: ".concat(Te.degradationPreference)),Xe=!0),this.configuration.simulcast&&(null===(Z=Te.encodings)||void 0===Z?void 0:Z.length)!==ne.sendEncodings.length&&(Te.encodings=ne.sendEncodings,Xe=!0),!Xe)return[3,5];M.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),cn.label=2;case 2:return cn.trys.push([2,4,,5]),[4,ce.sender.setParameters(Te)];case 3:return cn.sent(),[3,5];case 4:throw je=cn.sent(),Ke="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",je instanceof Error&&(Ke+=": ".concat(je.message)),new Error(Ke);case 5:return C++,[3,1];case 6:return[3,8];case 7:for(Qe=0,ht=["audio","video"];Qe<ht.length;Qe++)this.configuration.mediaConstraints[$e=ht[Qe]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver($e,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));cn.label=8;case 8:return cn.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return he=cn.sent(),[3,11];case 10:throw $t=cn.sent(),Ke="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",$t instanceof Error&&(Ke+=": ".concat($t.message)),new Error(Ke);case 11:return[2,he]}})})},le.prototype.deprecatedPeerConnectionTrackApi=function(){for(var G=0,D=this.configuration.mediaStream.getTracks();G<D.length;G++)this.pc.addTrack(D[G],this.configuration.mediaStream)},le.prototype.createAnswer=function(){var G=this;return new Promise(function(D,q){if("getTransceivers"in G.pc){M.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var K=function(ne){if(!G.configuration.mediaConstraints[ne])return"continue";var se=G.pc.getTransceivers().find(function(g){return g.receiver.track.kind===ne});if(!se)return{value:q(new Error("".concat(ne," requested, but no transceiver was created from remote description")))};se.direction=G.configuration.mode},S=0,p=["audio","video"];S<p.length;S++){var Z=K(p[S]);if("object"==typeof Z)return Z.value}G.pc.createAnswer().then(function(ne){return D(ne)}).catch(function(ne){return q(ne)})}else G.configuration.mediaConstraints&&G.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof G.configuration.mediaConstraints.audio||G.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof G.configuration.mediaConstraints.video||G.configuration.mediaConstraints.video}).then(function(ne){return D(ne)}).catch(function(ne){return q(ne)})})},le.prototype.processLocalOffer=function(G){var D=this;return new Promise(function(q,K){D.pc.setLocalDescription(G).then(function(){var S=D.pc.localDescription;return S?(M.debug("Local description set",S.sdp),q()):K("Local description is not defined")}).catch(function(S){return K(S)})})},le.prototype.processRemoteOffer=function(G){var D=this;return new Promise(function(q,K){var S={type:"offer",sdp:G};if(M.debug("SDP offer received, setting remote description",S),"closed"===D.pc.signalingState)return K("RTCPeerConnection is closed when trying to set remote description");D.setRemoteDescription(S).then(function(){return q()}).catch(function(p){return K(p)})})},le.prototype.processLocalAnswer=function(G){var D=this;return new Promise(function(q,K){if(M.debug("SDP answer created, setting local description"),"closed"===D.pc.signalingState)return K("RTCPeerConnection is closed when trying to set local description");D.pc.setLocalDescription(G).then(function(){return q()}).catch(function(S){return K(S)})})},le.prototype.processRemoteAnswer=function(G){var D=this;return new Promise(function(q,K){var S={type:"answer",sdp:G};if(M.debug("SDP answer received, setting remote description"),"closed"===D.pc.signalingState)return K("RTCPeerConnection is closed when trying to set remote description");D.setRemoteDescription(S).then(function(){q()}).catch(function(p){return K(p)})})},le.prototype.setRemoteDescription=function(G){return V(this,void 0,void 0,function(){return _(this,function(D){return[2,this.pc.setRemoteDescription(G)]})})},le.prototype.addIceCandidate=function(G){var D=this;return new Promise(function(q,K){switch(M.debug("Remote ICE candidate received",G),D.remoteCandidatesQueue.push(G),D.pc.signalingState){case"closed":K(new Error("PeerConnection object is closed"));break;case"stable":D.pc.remoteDescription?D.pc.addIceCandidate(G).then(function(){return q()}).catch(function(S){return K(S)}):(D.iceCandidateList.push(G),q());break;default:D.iceCandidateList.push(G),q()}})},le.prototype.addIceConnectionStateChangeListener=function(G){var D=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(D.pc.iceConnectionState){case"disconnected":var K="IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "disconnected". Possible network disconnection';M.warn(K),D.configuration.onIceConnectionStateException(v.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,K);break;case"failed":var S="IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') to "failed"';M.error(S),D.configuration.onIceConnectionStateException(v.ExceptionEventName.ICE_CONNECTION_FAILED,S);break;case"closed":M.log("IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "closed"');break;case"new":M.log("IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "new"');break;case"checking":M.log("IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "checking"');break;case"connected":M.log("IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "connected"');break;case"completed":M.log("IceConnectionState of RTCPeerConnection "+D.configuration.id+" ("+G+') change to "completed"')}})},le.prototype.generateUniqueId=function(){return(0,P.v4)()},le}();H.WebRtcPeer=te;var Y=function(le){function G(D){return D.mode="recvonly",le.call(this,D)||this}return k(G,le),G}(te);H.WebRtcPeerRecvonly=Y;var U=function(le){function G(D){return D.mode="sendonly",le.call(this,D)||this}return k(G,le),G}(te);H.WebRtcPeerSendonly=U;var ge=function(le){function G(D){return D.mode="sendrecv",le.call(this,D)||this}return k(G,le),G}(te);H.WebRtcPeerSendrecv=ge},7153:function(Fe,H,j){"use strict";var k=this&&this.__awaiter||function(m,x,M,W){return new(M||(M=Promise))(function(Y,U){function ge(D){try{G(W.next(D))}catch(q){U(q)}}function le(D){try{G(W.throw(D))}catch(q){U(q)}}function G(D){D.done?Y(D.value):function te(Y){return Y instanceof M?Y:new M(function(U){U(Y)})}(D.value).then(ge,le)}G((W=W.apply(m,x||[])).next())})},z=this&&this.__generator||function(m,x){var W,te,Y,U,M={label:0,sent:function(){if(1&Y[0])throw Y[1];return Y[1]},trys:[],ops:[]};return U={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(U[Symbol.iterator]=function(){return this}),U;function ge(G){return function(D){return function le(G){if(W)throw new TypeError("Generator is already executing.");for(;M;)try{if(W=1,te&&(Y=2&G[0]?te.return:G[0]?te.throw||((Y=te.return)&&Y.call(te),0):te.next)&&!(Y=Y.call(te,G[1])).done)return Y;switch(te=0,Y&&(G=[2&G[0],Y.value]),G[0]){case 0:case 1:Y=G;break;case 4:return M.label++,{value:G[1],done:!1};case 5:M.label++,te=G[1],G=[0];continue;case 7:G=M.ops.pop(),M.trys.pop();continue;default:if(!(Y=(Y=M.trys).length>0&&Y[Y.length-1])&&(6===G[0]||2===G[0])){M=0;continue}if(3===G[0]&&(!Y||G[1]>Y[0]&&G[1]<Y[3])){M.label=G[1];break}if(6===G[0]&&M.label<Y[1]){M.label=Y[1],Y=G;break}if(Y&&M.label<Y[2]){M.label=Y[2],M.ops.push(G);break}Y[2]&&M.ops.pop(),M.trys.pop();continue}G=x.call(m,M)}catch(D){G=[6,D],te=0}finally{W=Y=0}if(5&G[0])throw G[1];return{value:G[0]?G[1]:void 0,done:!0}}([G,D])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.WebRtcStats=void 0;var P,V=j(1829),_=j(1171),E=V.OpenViduLogger.getInstance(),v=function(){function m(x){this.stream=x,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,P=_.PlatformUtils.getInstance()}return m.prototype.isEnabled=function(){return this.webRtcStatsEnabled},m.prototype.initWebRtcStats=function(){var x=this,M=localStorage.getItem(this.STATS_ITEM_NAME);if(M){this.webRtcStatsEnabled=!0;var W=JSON.parse(M);E.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),E.warn("localStorage item: "+JSON.stringify(W)),this.POST_URL=W.httpEndpoint,this.statsInterval=W.interval,this.webRtcStatsIntervalId=setInterval(function(){return k(x,void 0,void 0,function(){return z(this,function(te){switch(te.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return te.sent(),[2]}})})},1e3*this.statsInterval)}else E.debug("WebRtc stats not enabled")},m.prototype.getSelectedIceCandidateInfo=function(){var x=this;return new Promise(function(M,W){return k(x,void 0,void 0,function(){var te,Y,U,ge,le,G,q,K,S,p,Z,C,A,Q,ne,se,g,O,F;return z(this,function(I){switch(I.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(te=I.sent(),U=new Map,ge=new Map,le=new Map,te.forEach(function($){switch("transport"===$.type&&(P.isChromium()||P.isSafariBrowser()||P.isReactNative())&&(Y=$),$.type){case"candidate-pair":U.set($.id,$);break;case"local-candidate":ge.set($.id,$);break;case"remote-candidate":le.set($.id,$)}}),null!=Y)G=U.get(Y.selectedCandidatePairId);else for(q=U.size,K=U.values(),S=0;S<q;S++)if((p=K.next().value).selected){G=p;break}if(Z=G.remoteCandidateId,C=ge.get(G.localCandidateId))for(se=this.stream.getLocalIceCandidateList(),g=se.filter(function($){return!!$.candidate&&($.candidate.indexOf(C.ip)>=0||$.candidate.indexOf(C.address)>=0)&&$.candidate.indexOf(C.port)>=0}),C.raw=[],A=0,Q=g;A<Q.length;A++)C.raw.push(Q[A].candidate);else C="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(ne=le.get(Z))for(se=this.stream.getRemoteIceCandidateList(),g=se.filter(function($){return!!$.candidate&&($.candidate.indexOf(ne.ip)>=0||$.candidate.indexOf(ne.address)>=0)&&$.candidate.indexOf(ne.port)>=0}),ne.raw=[],O=0,F=g;O<F.length;O++)ne.raw.push(F[O].candidate);else ne="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,M({localCandidate:C,remoteCandidate:ne})]}})})})},m.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),E.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},m.prototype.sendStats=function(x,M){return k(this,void 0,void 0,function(){var W,te;return z(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,2,,3]),W={headers:{"Content-type":"application/json"},body:JSON.stringify(M),method:"POST"},[4,fetch(x,W)];case 1:return Y.sent(),[3,3];case 2:return te=Y.sent(),E.error("sendStats error: ".concat(JSON.stringify(te))),[3,3];case 3:return[2]}})})},m.prototype.sendStatsToHttpEndpoint=function(){return k(this,void 0,void 0,function(){var x,M,W;return z(this,function(te){switch(te.label){case 0:return te.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return x=te.sent(),M=this.generateJSONStatsResponse(x),[4,this.sendStats(this.POST_URL,M)];case 2:return te.sent(),[3,4];case 3:return W=te.sent(),E.log(W),[3,4];case 4:return[2]}})})},m.prototype.getCommonStats=function(){return k(this,void 0,void 0,function(){var x=this;return z(this,function(M){return[2,new Promise(function(W,te){return k(x,void 0,void 0,function(){var Y,U,ge,le,G,D=this;return z(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return Y=q.sent(),U=this.getWebRtcStatsResponseOutline(),ge=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],le=["availableOutgoingBitrate","currentRoundTripTime"],Y.forEach(function(K){var S=null!=K.mediaType?K.mediaType:K.kind,p=function(T,Z){null!=K[Z]&&null!=U[T]&&(!S&&ge.indexOf(Z)>-1&&(S="video"),null!=T&&null!=S&&null!=Z&&null!=U[T][S]?U[T][S][Z]=Number(K[Z]):null!=T&&null!=Z&&le.includes(Z)&&(U[T][Z]=Number(K[Z])))};switch(K.type){case"outbound-rtp":p("outbound","bytesSent"),p("outbound","packetsSent"),p("outbound","framesEncoded"),p("outbound","nackCount"),p("outbound","firCount"),p("outbound","pliCount"),p("outbound","qpSum");break;case"inbound-rtp":p("inbound","bytesReceived"),p("inbound","packetsReceived"),p("inbound","packetsLost"),p("inbound","jitter"),p("inbound","framesDecoded"),p("inbound","nackCount"),p("inbound","firCount"),p("inbound","pliCount");break;case"track":p("inbound","jitterBufferDelay"),p("inbound","framesReceived"),p("outbound","framesDropped"),p("outbound","framesSent"),p(D.stream.isLocal()?"outbound":"inbound","frameHeight"),p(D.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":p("candidatepair","currentRoundTripTime"),p("candidatepair","availableOutgoingBitrate")}}),null!=U&&U.candidatepair&&0!==Object.keys(U.candidatepair).length||delete U.candidatepair,[2,W(U)];case 2:return G=q.sent(),E.error("Error getting common stats: ",G),[2,te(G)];case 3:return[2]}})})})]})})},m.prototype.generateJSONStatsResponse=function(x){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:P.getName(),platform_description:P.getDescription(),stream:"webRTC",webrtc_stats:x}},m.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},m}();H.WebRtcStats=v},9795:function(Fe,H,j){"use strict";var k=this&&this.__createBinding||(Object.create?function(b,I,$,Ce){void 0===Ce&&(Ce=$),Object.defineProperty(b,Ce,{enumerable:!0,get:function(){return I[$]}})}:function(b,I,$,Ce){void 0===Ce&&(Ce=$),b[Ce]=I[$]}),z=this&&this.__exportStar||function(b,I){for(var $ in b)"default"!==$&&!Object.prototype.hasOwnProperty.call(I,$)&&k(I,b,$)};Object.defineProperty(H,"__esModule",{value:!0}),H.EventDispatcher=H.ExceptionEventName=H.ExceptionEvent=H.SpeechToTextEvent=H.NetworkQualityLevelChangedEvent=H.FilterEvent=H.ConnectionPropertyChangedEvent=H.StreamPropertyChangedEvent=H.VideoElementEvent=H.StreamManagerEvent=H.StreamEvent=H.SignalEvent=H.SessionDisconnectedEvent=H.RecordingEvent=H.PublisherSpeakingEvent=H.ConnectionEvent=H.Event=H.VideoInsertMode=H.TypeOfVideo=H.OpenViduErrorName=H.OpenViduError=H.LocalRecorderState=H.Filter=H.LocalRecorder=H.Connection=H.Stream=H.StreamManager=H.Subscriber=H.Publisher=H.Session=H.OpenVidu=void 0;var V=j(5163),_=j(3634);Object.defineProperty(H,"OpenVidu",{enumerable:!0,get:function(){return _.OpenVidu}});var E=j(5607);Object.defineProperty(H,"Session",{enumerable:!0,get:function(){return E.Session}});var P=j(4302);Object.defineProperty(H,"Publisher",{enumerable:!0,get:function(){return P.Publisher}});var v=j(3343);Object.defineProperty(H,"Subscriber",{enumerable:!0,get:function(){return v.Subscriber}});var m=j(7373);Object.defineProperty(H,"StreamManager",{enumerable:!0,get:function(){return m.StreamManager}});var x=j(8770);Object.defineProperty(H,"Stream",{enumerable:!0,get:function(){return x.Stream}});var M=j(7576);Object.defineProperty(H,"Connection",{enumerable:!0,get:function(){return M.Connection}});var W=j(8499);Object.defineProperty(H,"LocalRecorder",{enumerable:!0,get:function(){return W.LocalRecorder}});var te=j(5481);Object.defineProperty(H,"Filter",{enumerable:!0,get:function(){return te.Filter}});var Y=j(1216);Object.defineProperty(H,"LocalRecorderState",{enumerable:!0,get:function(){return Y.LocalRecorderState}});var U=j(9303);Object.defineProperty(H,"OpenViduError",{enumerable:!0,get:function(){return U.OpenViduError}}),Object.defineProperty(H,"OpenViduErrorName",{enumerable:!0,get:function(){return U.OpenViduErrorName}});var ge=j(7879);Object.defineProperty(H,"TypeOfVideo",{enumerable:!0,get:function(){return ge.TypeOfVideo}});var le=j(7167);Object.defineProperty(H,"VideoInsertMode",{enumerable:!0,get:function(){return le.VideoInsertMode}});var G=j(616);Object.defineProperty(H,"Event",{enumerable:!0,get:function(){return G.Event}});var D=j(1698);Object.defineProperty(H,"ConnectionEvent",{enumerable:!0,get:function(){return D.ConnectionEvent}});var q=j(8887);Object.defineProperty(H,"PublisherSpeakingEvent",{enumerable:!0,get:function(){return q.PublisherSpeakingEvent}});var K=j(5449);Object.defineProperty(H,"RecordingEvent",{enumerable:!0,get:function(){return K.RecordingEvent}});var S=j(1690);Object.defineProperty(H,"SessionDisconnectedEvent",{enumerable:!0,get:function(){return S.SessionDisconnectedEvent}});var p=j(1659);Object.defineProperty(H,"SignalEvent",{enumerable:!0,get:function(){return p.SignalEvent}});var T=j(3980);Object.defineProperty(H,"StreamEvent",{enumerable:!0,get:function(){return T.StreamEvent}});var Z=j(7818);Object.defineProperty(H,"StreamManagerEvent",{enumerable:!0,get:function(){return Z.StreamManagerEvent}});var C=j(6320);Object.defineProperty(H,"VideoElementEvent",{enumerable:!0,get:function(){return C.VideoElementEvent}});var A=j(9383);Object.defineProperty(H,"StreamPropertyChangedEvent",{enumerable:!0,get:function(){return A.StreamPropertyChangedEvent}});var Q=j(9005);Object.defineProperty(H,"ConnectionPropertyChangedEvent",{enumerable:!0,get:function(){return Q.ConnectionPropertyChangedEvent}});var ne=j(5132);Object.defineProperty(H,"FilterEvent",{enumerable:!0,get:function(){return ne.FilterEvent}});var se=j(9900);Object.defineProperty(H,"NetworkQualityLevelChangedEvent",{enumerable:!0,get:function(){return se.NetworkQualityLevelChangedEvent}});var g=j(482);Object.defineProperty(H,"SpeechToTextEvent",{enumerable:!0,get:function(){return g.SpeechToTextEvent}});var O=j(4131);Object.defineProperty(H,"ExceptionEvent",{enumerable:!0,get:function(){return O.ExceptionEvent}}),Object.defineProperty(H,"ExceptionEventName",{enumerable:!0,get:function(){return O.ExceptionEventName}});var F=j(2768);Object.defineProperty(H,"EventDispatcher",{enumerable:!0,get:function(){return F.EventDispatcher}}),z(j(7848),H),V.JL.setOptions({enabled:!1})},7945:Fe=>{"use strict";var k,H="object"==typeof Reflect?Reflect:null,j=H&&"function"==typeof H.apply?H.apply:function(K,S,p){return Function.prototype.apply.call(K,S,p)};k=H&&"function"==typeof H.ownKeys?H.ownKeys:Object.getOwnPropertySymbols?function(K){return Object.getOwnPropertyNames(K).concat(Object.getOwnPropertySymbols(K))}:function(K){return Object.getOwnPropertyNames(K)};var V=Number.isNaN||function(K){return K!=K};function _(){_.init.call(this)}Fe.exports=_,Fe.exports.once=function le(q,K){return new Promise(function(S,p){function T(C){q.removeListener(K,Z),p(C)}function Z(){"function"==typeof q.removeListener&&q.removeListener("error",T),S([].slice.call(arguments))}D(q,K,Z,{once:!0}),"error"!==K&&function G(q,K,S){"function"==typeof q.on&&D(q,"error",K,S)}(q,T,{once:!0})})},_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var E=10;function P(q){if("function"!=typeof q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof q)}function v(q){return void 0===q._maxListeners?_.defaultMaxListeners:q._maxListeners}function m(q,K,S,p){var T,Z,C;if(P(S),void 0===(Z=q._events)?(Z=q._events=Object.create(null),q._eventsCount=0):(void 0!==Z.newListener&&(q.emit("newListener",K,S.listener?S.listener:S),Z=q._events),C=Z[K]),void 0===C)C=Z[K]=S,++q._eventsCount;else if("function"==typeof C?C=Z[K]=p?[S,C]:[C,S]:p?C.unshift(S):C.push(S),(T=v(q))>0&&C.length>T&&!C.warned){C.warned=!0;var A=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(K)+" listeners added. Use emitter.setMaxListeners() to increase limit");A.name="MaxListenersExceededWarning",A.emitter=q,A.type=K,A.count=C.length,function z(q){console&&console.warn&&console.warn(q)}(A)}return q}function x(){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 M(q,K,S){var p={fired:!1,wrapFn:void 0,target:q,type:K,listener:S},T=x.bind(p);return T.listener=S,p.wrapFn=T,T}function W(q,K,S){var p=q._events;if(void 0===p)return[];var T=p[K];return void 0===T?[]:"function"==typeof T?S?[T.listener||T]:[T]:S?function ge(q){for(var K=new Array(q.length),S=0;S<K.length;++S)K[S]=q[S].listener||q[S];return K}(T):Y(T,T.length)}function te(q){var K=this._events;if(void 0!==K){var S=K[q];if("function"==typeof S)return 1;if(void 0!==S)return S.length}return 0}function Y(q,K){for(var S=new Array(K),p=0;p<K;++p)S[p]=q[p];return S}function D(q,K,S,p){if("function"==typeof q.on)p.once?q.once(K,S):q.on(K,S);else{if("function"!=typeof q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof q);q.addEventListener(K,function T(Z){p.once&&q.removeEventListener(K,T),S(Z)})}}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(q){if("number"!=typeof q||q<0||V(q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+q+".");E=q}}),_.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},_.prototype.setMaxListeners=function(K){if("number"!=typeof K||K<0||V(K))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+K+".");return this._maxListeners=K,this},_.prototype.getMaxListeners=function(){return v(this)},_.prototype.emit=function(K){for(var S=[],p=1;p<arguments.length;p++)S.push(arguments[p]);var T="error"===K,Z=this._events;if(void 0!==Z)T=T&&void 0===Z.error;else if(!T)return!1;if(T){var C;if(S.length>0&&(C=S[0]),C instanceof Error)throw C;var A=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw A.context=C,A}var Q=Z[K];if(void 0===Q)return!1;if("function"==typeof Q)j(Q,this,S);else{var ne=Q.length,se=Y(Q,ne);for(p=0;p<ne;++p)j(se[p],this,S)}return!0},_.prototype.on=_.prototype.addListener=function(K,S){return m(this,K,S,!1)},_.prototype.prependListener=function(K,S){return m(this,K,S,!0)},_.prototype.once=function(K,S){return P(S),this.on(K,M(this,K,S)),this},_.prototype.prependOnceListener=function(K,S){return P(S),this.prependListener(K,M(this,K,S)),this},_.prototype.off=_.prototype.removeListener=function(K,S){var p,T,Z,C,A;if(P(S),void 0===(T=this._events))return this;if(void 0===(p=T[K]))return this;if(p===S||p.listener===S)0==--this._eventsCount?this._events=Object.create(null):(delete T[K],T.removeListener&&this.emit("removeListener",K,p.listener||S));else if("function"!=typeof p){for(Z=-1,C=p.length-1;C>=0;C--)if(p[C]===S||p[C].listener===S){A=p[C].listener,Z=C;break}if(Z<0)return this;0===Z?p.shift():function U(q,K){for(;K+1<q.length;K++)q[K]=q[K+1];q.pop()}(p,Z),1===p.length&&(T[K]=p[0]),void 0!==T.removeListener&&this.emit("removeListener",K,A||S)}return this},_.prototype.removeAllListeners=function(K){var S,p,T;if(void 0===(p=this._events))return this;if(void 0===p.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==p[K]&&(0==--this._eventsCount?this._events=Object.create(null):delete p[K]),this;if(0===arguments.length){var C,Z=Object.keys(p);for(T=0;T<Z.length;++T)"removeListener"!==(C=Z[T])&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(S=p[K]))this.removeListener(K,S);else if(void 0!==S)for(T=S.length-1;T>=0;T--)this.removeListener(K,S[T]);return this},_.prototype.listeners=function(K){return W(this,K,!0)},_.prototype.rawListeners=function(K){return W(this,K,!1)},_.listenerCount=function(q,K){return"function"==typeof q.listenerCount?q.listenerCount(K):te.call(q,K)},_.prototype.listenerCount=te,_.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},8145:(Fe,H,j)=>{"use strict";var k=j(4737);Fe.exports=function(V){var v,_={stun:(V||{}).stun||j(9272),turn:(V||{}).turn||j(6410)},P=(V||{}).turnCount||0;function m(x,M){for(var Y,W=[],te=[].concat(_[x]);te.length&&W.length<M;)Y=Math.random()*te.length|0,W=W.concat(te.splice(Y,1));return W.map(function(U){return"string"==typeof U||U instanceof String?k(x+":"+U):U})}return v=[].concat(m("stun",(V||{}).stunCount||2)),P&&(v=v.concat(m("turn",P))),v}},2877:(Fe,H,j)=>{var V,k=j(1181);"undefined"!=typeof window&&(V=window.AudioContext||window.webkitAudioContext);var _=null;Fe.exports=function(E,m){var v=new k;if(!V)return v;var ge,le,G,x=(m=m||{}).smoothing||.1,M=m.interval||50,W=m.threshold,te=m.play,Y=m.history||10,U=!0;_=m.audioContext||_||new V,(G=_.createAnalyser()).fftSize=512,G.smoothingTimeConstant=x,le=new Float32Array(G.frequencyBinCount),E.jquery&&(E=E[0]),E instanceof HTMLAudioElement||E instanceof HTMLVideoElement?(ge=_.createMediaElementSource(E),void 0===te&&(te=!0),W=W||-50):(ge=_.createMediaStreamSource(E),W=W||-50),ge.connect(G),te&&G.connect(_.destination),v.speaking=!1,v.suspend=function(){return _.suspend()},v.resume=function(){return _.resume()},Object.defineProperty(v,"state",{get:function(){return _.state}}),_.onstatechange=function(){v.emit("state_change",_.state)},v.setThreshold=function(K){W=K},v.setInterval=function(K){M=K},v.stop=function(){U=!1,v.emit("volume_change",-100,W),v.speaking&&(v.speaking=!1,v.emit("stopped_speaking")),G.disconnect(),ge.disconnect()},v.speakingHistory=[];for(var D=0;D<Y;D++)v.speakingHistory.push(0);var q=function(){setTimeout(function(){if(U){var K=function z(E,P){var v=-1/0;E.getFloatFrequencyData(P);for(var m=4,x=P.length;m<x;m++)P[m]>v&&P[m]<0&&(v=P[m]);return v}(G,le);v.emit("volume_change",K,W);var S=0;if(K>W&&!v.speaking){for(var p=v.speakingHistory.length-3;p<v.speakingHistory.length;p++)S+=v.speakingHistory[p];S>=2&&(v.speaking=!0,v.emit("speaking"))}else if(K<W&&v.speaking){for(p=0;p<v.speakingHistory.length;p++)S+=v.speakingHistory[p];0==S&&(v.speaking=!1,v.emit("stopped_speaking"))}v.speakingHistory.shift(),v.speakingHistory.push(0+(K>W)),q()}},M)};return q(),v}},9543:Fe=>{Fe.exports="function"==typeof Object.create?function(j,k){k&&(j.super_=k,j.prototype=Object.create(k.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}))}:function(j,k){if(k){j.super_=k;var z=function(){};z.prototype=k.prototype,j.prototype=new z,j.prototype.constructor=j}}},5163:function(Fe,H){var V,j=this&&this.__extends||(V=function(_,E){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,v){P.__proto__=v}||function(P,v){for(var m in v)Object.prototype.hasOwnProperty.call(v,m)&&(P[m]=v[m])})(_,E)},function(_,E){function P(){this.constructor=_}V(_,E),_.prototype=null===E?Object.create(E):(P.prototype=E.prototype,new P)});function k(V){if(!V)return k.__;Array.prototype.reduce||(Array.prototype.reduce=function(P,v){for(var m=v,x=0;x<this.length;x++)m=P(m,this[x],x,this);return m});var _="";return("."+V).split(".").reduce(function(P,v,m,x){_?_+="."+v:_=v;var M=P["__"+_];return void 0===M&&(k.Logger.prototype=P,M=new k.Logger(_),P["__"+_]=M),M},k.__)}(function(V){function _(F,b,I){if(void 0!==b[F]){if(null===b[F])return void delete I[F];I[F]=b[F]}}function E(F){if(null!=V.enabled&&!V.enabled)return!1;try{if(F.userAgentRegex&&!new RegExp(F.userAgentRegex).test(navigator.userAgent))return!1}catch(b){}try{if(F.ipRegex&&V.clientIP&&!new RegExp(F.ipRegex).test(V.clientIP))return!1}catch(b){}return!0}function P(F,b){try{if(F.disallow&&new RegExp(F.disallow).test(b))return!1}catch(I){}return!0}function v(F){return"function"==typeof F?F instanceof RegExp?F.toString():F():F}V.requestId="",V.entryId=0,V._createXMLHttpRequest=function(){return new XMLHttpRequest},V._getTime=function(){return(new Date).getTime()},V._console=console,V._appenderNames=[];var m=function F(b,I,$){this.msg=b,this.meta=I,this.finalString=$};function x(F){var I,b=v(F);switch(typeof b){case"string":return new m(b,null,b);case"number":case"boolean":return I=b.toString(),new m(I,null,I);case"undefined":return new m("undefined",null,"undefined");case"object":return b instanceof RegExp||b instanceof String||b instanceof Number||b instanceof Boolean?(I=b.toString(),new m(I,null,I)):(I="function"==typeof V.serialize?V.serialize.call(this,b):JSON.stringify(b),new m("",b,I));default:return new m("unknown",null,"unknown")}}function q(F){return F<=1e3?"trace":F<=2e3?"debug":F<=3e3?"info":F<=4e3?"warn":F<=5e3?"error":"fatal"}V.setOptions=function M(F){return _("enabled",F,this),_("maxMessages",F,this),_("defaultAjaxUrl",F,this),_("clientIP",F,this),_("requestId",F,this),_("defaultBeforeSend",F,this),_("serialize",F,this),this},V.getAllLevel=function W(){return-2147483648},V.getTraceLevel=function te(){return 1e3},V.getDebugLevel=function Y(){return 2e3},V.getInfoLevel=function U(){return 3e3},V.getWarnLevel=function ge(){return 4e3},V.getErrorLevel=function le(){return 5e3},V.getFatalLevel=function G(){return 6e3},V.getOffLevel=function D(){return 2147483647};var K=function F(b,I){this.inner=I,this.name="JL.Exception",this.message=x(b).finalString};V.Exception=K,K.prototype=new Error;var S=function F(b,I,$,Ce,de){this.l=b,this.m=I,this.n=$,this.t=Ce,this.u=de};function p(F,b,I){return V.entryId++,new S(F,b,I,V._getTime(),V.entryId)}function T(F){F.id&&(clearTimeout(F.id),F.id=null)}function Z(F,b,I){var $=this;F.id||(F.id=setTimeout(function(){I.call($)},b))}V.LogItem=S;var C=function(){function F(b,I){this.appenderName=b,this.sendLogItems=I,this.level=V.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 $="Trying to create an appender without a name or with an empty name";if(null==b)throw $;if(-1!=V._appenderNames.indexOf(b))throw b?"Multiple appenders use the same name "+b:$;V._appenderNames.push(b)}return F.prototype.addLogItemsToBuffer=function(b){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=b.length;else{if(null!=V.maxMessages){if(V.maxMessages<1)return;V.maxMessages-=b.length}this.batchBuffer=this.batchBuffer.concat(b);var I=this;Z(this.batchTimeoutTimer,this.batchTimeout,function(){I.sendBatch.call(I)})}},F.prototype.batchBufferHasOverdueMessages=function(){for(var b=0;b<this.batchBuffer.length;b++)if(V._getTime()-this.batchBuffer[b].t>this.batchTimeout)return!0;return!1},F.prototype.batchBufferHasStrandedMessage=function(){return null!=V.maxMessages&&V.maxMessages<1&&this.batchBuffer.length>0},F.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},F.prototype.onSendingEnded=function(){T(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},F.prototype.setOptions=function(b){if(_("level",b,this),_("ipRegex",b,this),_("userAgentRegex",b,this),_("disallow",b,this),_("sendWithBufferLevel",b,this),_("storeInBufferLevel",b,this),_("bufferSize",b,this),_("batchSize",b,this),_("maxBatchSize",b,this),_("batchTimeout",b,this),_("sendTimeout",b,this),this.bufferSize<this.buffer.length&&(this.buffer.length=this.bufferSize),this.maxBatchSize<this.batchSize)throw new V.Exception({message:"maxBatchSize cannot be smaller than batchSize",maxBatchSize:this.maxBatchSize,batchSize:this.batchSize});return this},F.prototype.log=function(b,I,$,Ce,de,ce,Te){var Xe;if(E(this)&&P(this,ce)&&!(de<this.storeInBufferLevel)){if(Xe=p(de,ce,Te),de<this.level)return void(this.bufferSize>0&&(this.buffer.push(Xe),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([Xe]),de>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},F.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(T(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var b=this;Z(this.sendTimeoutTimer,this.sendTimeout,function(){b.onSendingEnded.call(b)}),this.sendLogItems(this.batchBuffer,function(){b.batchBuffer.splice(0,b.nbrLogItemsBeingSent),b.nbrLogItemsSkipped>0&&(b.batchBuffer.push(p(4e3,"Lost "+b.nbrLogItemsSkipped+" messages. Either connection with the server was down or logging was disabled via the enabled option. Reduce lost messages by increasing the ajaxAppender option maxBatchSize.",b.appenderName)),b.nbrLogItemsSkipped=0),b.onSendingEnded.call(b)})}},F}();V.Appender=C;var A=function(F){function b(I){return F.call(this,I,b.prototype.sendLogItemsAjax)||this}return j(b,F),b.prototype.setOptions=function(I){return _("url",I,this),_("beforeSend",I,this),F.prototype.setOptions.call(this,I),this},b.prototype.sendLogItemsAjax=function(I,$){try{if(!E(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=V._createXMLHttpRequest();var Ce="/jsnlog.logger";null!=V.defaultAjaxUrl&&(Ce=V.defaultAjaxUrl),this.url&&(Ce=this.url),this.xhr.open("POST",Ce),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",V.requestId);var de=this;this.xhr.onreadystatechange=function(){4==de.xhr.readyState&&de.xhr.status>=200&&de.xhr.status<300&&$()};var ce={r:V.requestId,lg:I};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,ce):"function"==typeof V.defaultBeforeSend&&V.defaultBeforeSend.call(this,this.xhr,ce);var Te=JSON.stringify(ce);this.xhr.send(Te)}catch(Xe){}},b}(C);V.AjaxAppender=A;var Q=function(F){function b(I){return F.call(this,I,b.prototype.sendLogItemsConsole)||this}return j(b,F),b.prototype.clog=function(I){V._console.log(I)},b.prototype.cerror=function(I){V._console.error?V._console.error(I):this.clog(I)},b.prototype.cwarn=function(I){V._console.warn?V._console.warn(I):this.clog(I)},b.prototype.cinfo=function(I){V._console.info?V._console.info(I):this.clog(I)},b.prototype.cdebug=function(I){V._console.debug?V._console.debug(I):this.cinfo(I)},b.prototype.sendLogItemsConsole=function(I,$){try{if(!E(this)||!V._console)return;var Ce;for(Ce=0;Ce<I.length;++Ce){var de=I[Ce],ce=de.n+": "+de.m;"undefined"==typeof window&&(ce=new Date(de.t)+" | "+ce),de.l<=V.getDebugLevel()?this.cdebug(ce):de.l<=V.getInfoLevel()?this.cinfo(ce):de.l<=V.getWarnLevel()?this.cwarn(ce):this.cerror(ce)}}catch(Te){}$()},b}(C);V.ConsoleAppender=Q;var O,ne=function(){function F(b){this.loggerName=b,this.seenRegexes=[]}return F.prototype.setOptions=function(b){return _("level",b,this),_("userAgentRegex",b,this),_("disallow",b,this),_("ipRegex",b,this),_("appenders",b,this),_("onceOnly",b,this),this.seenRegexes=[],this},F.prototype.buildExceptionObject=function(b){var I={};return b.stack?I.stack=b.stack:I.e=b,b.message&&(I.message=b.message),b.name&&(I.name=b.name),b.data&&(I.data=b.data),b.inner&&(I.inner=this.buildExceptionObject(b.inner)),I},F.prototype.log=function(b,I,$){var de,ce,Ce=0;if(!this.appenders)return this;if(b>=this.level&&E(this)&&($?(ce=this.buildExceptionObject($)).logData=v(I):ce=I,P(this,(de=x(ce)).finalString))){if(this.onceOnly)for(Ce=this.onceOnly.length-1;Ce>=0;){if(new RegExp(this.onceOnly[Ce]).test(de.finalString)){if(this.seenRegexes[Ce])return this;this.seenRegexes[Ce]=!0}Ce--}for(de.meta=de.meta||{},Ce=this.appenders.length-1;Ce>=0;)this.appenders[Ce].log(q(b),de.msg,de.meta,function(){},b,de.finalString,this.loggerName),Ce--}return this},F.prototype.trace=function(b){return this.log(1e3,b)},F.prototype.debug=function(b){return this.log(2e3,b)},F.prototype.info=function(b){return this.log(3e3,b)},F.prototype.warn=function(b){return this.log(4e3,b)},F.prototype.error=function(b){return this.log(5e3,b)},F.prototype.fatal=function(b){return this.log(6e3,b)},F.prototype.fatalException=function(b,I){return this.log(6e3,b,I)},F}();V.Logger=ne,V.createAjaxAppender=function se(F){return new A(F)},V.createConsoleAppender=function g(F){return new Q(F)},O="undefined"!=typeof window?new A(""):new Q(""),V.__=new V.Logger(""),V.__.setOptions({level:V.getDebugLevel(),appenders:[O]})})(k||(k={})),H.__esModule=!0,H.JL=k,"function"==typeof __jsnlog_configure&&__jsnlog_configure(k),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(V,_,E,P,v){return k("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:V?V.message||V:"",url:_,"line number":E,column:P},v),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(V){k("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:V.reason?V.reason.message:V.message||null},V.reason)})},1708:Fe=>{"use strict";function H(){this._types=Object.create(null),this._extensions=Object.create(null);for(let j=0;j<arguments.length;j++)this.define(arguments[j]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}H.prototype.define=function(j,k){for(let z in j){let V=j[z].map(function(_){return _.toLowerCase()});z=z.toLowerCase();for(let _=0;_<V.length;_++){const E=V[_];if("*"!==E[0]){if(!k&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+z+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+z+'".');this._types[E]=z}}if(k||!this._extensions[z]){const _=V[0];this._extensions[z]="*"!==_[0]?_:_.substr(1)}}},H.prototype.getType=function(j){let k=(j=String(j)).replace(/^.*[/\\]/,"").toLowerCase(),z=k.replace(/^.*\./,"").toLowerCase();return(z.length<k.length-1||!(k.length<j.length))&&this._types[z]||null},H.prototype.getExtension=function(j){return(j=/^\s*([^;\s]*)/.test(j)&&RegExp.$1)&&this._extensions[j.toLowerCase()]||null},Fe.exports=H},1397:(Fe,H,j)=>{"use strict";let k=j(1708);Fe.exports=new k(j(3775))},3775:Fe=>{Fe.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"]}},4737:Fe=>{var H=["stun:","turn:"];Fe.exports=function(j){var z,V,k=(j||{}).url||j,_={};return("string"==typeof k||k instanceof String)&&(k=k.trim(),z=H[H.indexOf(k.slice(0,5))])?(V=(k=k.slice(5)).split("@"),_.username=j.username,_.credential=j.credential,V.length>1&&(k=V[1],V=V[0].split(":"),_.username=V[0],_.credential=(j||{}).credential||V[1]||""),_.url=z+k,_.urls=[_.url],_):j}},6218:function(Fe,H,j){var k;Fe=j.nmd(Fe),function(){"use strict";var z={function:!0,object:!0},V=z[typeof window]&&window||this,v=z[typeof H]&&H&&z.object&&Fe&&!Fe.nodeType&&Fe&&"object"==typeof global&&global;v&&(v.global===v||v.window===v||v.self===v)&&(V=v);var m=Math.pow(2,53)-1,x=/\bOpera/,W=Object.prototype,te=W.hasOwnProperty,Y=W.toString;function U(A){return(A=String(A)).charAt(0).toUpperCase()+A.slice(1)}function G(A){return A=T(A),/^(?:webOS|i(?:OS|P))/.test(A)?A:U(A)}function D(A,Q){for(var ne in A)te.call(A,ne)&&Q(A[ne],ne,A)}function q(A){return null==A?U(A):Y.call(A).slice(8,-1)}function S(A){return String(A).replace(/([ -])(?!$)/g,"$1?")}function p(A,Q){var ne=null;return function le(A,Q){var ne=-1,se=A?A.length:0;if("number"==typeof se&&se>-1&&se<=m)for(;++ne<se;)Q(A[ne],ne,A);else D(A,Q)}(A,function(se,g){ne=Q(ne,se,g,A)}),ne}function T(A){return String(A).replace(/^ +| +$/g,"")}var C=function Z(A){var Q=V,ne=A&&"object"==typeof A&&"String"!=q(A);ne&&(Q=A,A=null);var se=Q.navigator||{},g=se.userAgent||"";A||(A=g);var he,ae,F=ne?!!se.likeChrome:/\bChrome\b/.test(A)&&!/internal|\n/i.test(Y.toString()),b="Object",I=ne?b:"ScriptBridgingProxyObject",$=ne?b:"Environment",Ce=ne&&Q.java?"JavaPackage":q(Q.java),de=ne?b:"RuntimeObject",ce=/\bJava/.test(Ce)&&Q.java,Te=ce&&q(Q.environment)==$,Xe=ce?"a":"\u03b1",je=ce?"b":"\u03b2",Qe=Q.document||{},ht=Q.operamini||Q.opera,$e=x.test($e=ne&&ht?ht["[[Class]]"]:q(ht))?$e:ht=null,$t=A,Ke=[],cn=null,ue=A==g,ye=ue&&ht&&"function"==typeof ht.version&&ht.version(),J=function rn(Un){return p(Un,function(sn,Yt){return sn||RegExp("\\b"+(Yt.pattern||S(Yt))+"\\b","i").exec(A)&&(Yt.label||Yt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),oe=function Bi(Un){return p(Un,function(sn,Yt){return sn||RegExp("\\b"+(Yt.pattern||S(Yt))+"\\b","i").exec(A)&&(Yt.label||Yt)})}(["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"]),Ee=Pn([{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"]),Oe=function mi(Un){return p(Un,function(sn,Yt,Oi){return sn||(Yt[Ee]||Yt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ee)]||RegExp("\\b"+S(Oi)+"(?:\\b|\\w*\\d)","i").exec(A))&&Oi})}({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}}),Ge=function qo(Un){return p(Un,function(sn,Yt){var Oi=Yt.pattern||S(Yt);return!sn&&(sn=RegExp("\\b"+Oi+"(?:/[\\d.]+|[ \\w.]*)","i").exec(A))&&(sn=function ge(A,Q,ne){var se={"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 Q&&ne&&/^Win/i.test(A)&&!/^Windows Phone /i.test(A)&&(se=se[/[\d.]+$/.exec(A)])&&(A="Windows "+se),A=String(A),Q&&ne&&(A=A.replace(RegExp(Q,"i"),ne)),G(A.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])}(sn,Oi,Yt.label||Yt)),sn})}(["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 Pn(Un){return p(Un,function(sn,Yt){var Oi=Yt.pattern||S(Yt);return!sn&&(sn=RegExp("\\b"+Oi+" *\\d+[.\\w_]*","i").exec(A)||RegExp("\\b"+Oi+" *\\w+-[\\w]*","i").exec(A)||RegExp("\\b"+Oi+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(A))&&((sn=String(Yt.label&&!RegExp(Oi,"i").test(Yt.label)?Yt.label:sn).split("/"))[1]&&!/[\d.]+/.test(sn[0])&&(sn[0]+=" "+sn[1]),Yt=Yt.label||Yt,sn=G(sn[0].replace(RegExp(Oi,"i"),Yt).replace(RegExp("; *(?:"+Yt+"[_-])?","i")," ").replace(RegExp("("+Yt+")[-_.]?(\\w)","i"),"$1 $2"))),sn})}function Ji(Un){return p(Un,function(sn,Yt){return sn||(RegExp(Yt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(A)||0)[1]||null})}if(J&&(J=[J]),/\bAndroid\b/.test(Ge)&&!Ee&&(he=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(A))&&(Ee=T(he[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Oe&&!Ee?Ee=Pn([Oe]):Oe&&Ee&&(Ee=Ee.replace(RegExp("^("+S(Oe)+")[-_.\\s]","i"),Oe+" ").replace(RegExp("^("+S(Oe)+")[-_.]?(\\w)","i"),Oe+" $2")),(he=/\bGoogle TV\b/.exec(Ee))&&(Ee=he[0]),/\bSimulator\b/i.test(A)&&(Ee=(Ee?Ee+" ":"")+"Simulator"),"Opera Mini"==oe&&/\bOPiOS\b/.test(A)&&Ke.push("running in Turbo/Uncompressed mode"),"IE"==oe&&/\blike iPhone OS\b/.test(A)?(Oe=(he=Z(A.replace(/like iPhone OS/,""))).manufacturer,Ee=he.product):/^iP/.test(Ee)?(oe||(oe="Safari"),Ge="iOS"+((he=/ OS ([\d_]+)/i.exec(A))?" "+he[1].replace(/_/g,"."):"")):"Konqueror"==oe&&/^Linux\b/i.test(Ge)?Ge="Kubuntu":Oe&&"Google"!=Oe&&(/Chrome/.test(oe)&&!/\bMobile Safari\b/i.test(A)||/\bVita\b/.test(Ee))||/\bAndroid\b/.test(Ge)&&/^Chrome/.test(oe)&&/\bVersion\//i.test(A)?(oe="Android Browser",Ge=/\bAndroid\b/.test(Ge)?Ge:"Android"):"Silk"==oe?(/\bMobi/i.test(A)||(Ge="Android",Ke.unshift("desktop mode")),/Accelerated *= *true/i.test(A)&&Ke.unshift("accelerated")):"UC Browser"==oe&&/\bUCWEB\b/.test(A)?Ke.push("speed mode"):"PaleMoon"==oe&&(he=/\bFirefox\/([\d.]+)\b/.exec(A))?Ke.push("identifying as Firefox "+he[1]):"Firefox"==oe&&(he=/\b(Mobile|Tablet|TV)\b/i.exec(A))?(Ge||(Ge="Firefox OS"),Ee||(Ee=he[1])):!oe||(he=!/\bMinefield\b/i.test(A)&&/\b(?:Firefox|Safari)\b/.exec(oe))?(oe&&!Ee&&/[\/,]|^[^(]+?\)/.test(A.slice(A.indexOf(he+"/")+8))&&(oe=null),(he=Ee||Oe||Ge)&&(Ee||Oe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ge))&&(oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ge)?Ge:he)+" Browser")):"Electron"==oe&&(he=(/\bChrome\/([\d.]+)\b/.exec(A)||0)[1])&&Ke.push("Chromium "+he),ye||(ye=Ji(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",S(oe),"(?:Firefox|Minefield|NetFront)"])),(he=("iCab"==J&&parseFloat(ye)>3?"WebKit":/\bOpera\b/.test(oe)&&(/\bOPR\b/.test(A)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(A)&&!/^(?:Trident|EdgeHTML)$/.test(J)&&"WebKit"||!J&&/\bMSIE\b/i.test(A)&&("Mac OS"==Ge?"Tasman":"Trident")||"WebKit"==J&&/\bPlayStation\b(?! Vita\b)/i.test(oe)&&"NetFront")&&(J=[he]),"IE"==oe&&(he=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(A)||0)[1])?(oe+=" Mobile",Ge="Windows Phone "+(/\+$/.test(he)?he:he+".x"),Ke.unshift("desktop mode")):/\bWPDesktop\b/i.test(A)?(oe="IE Mobile",Ge="Windows Phone 8.x",Ke.unshift("desktop mode"),ye||(ye=(/\brv:([\d.]+)/.exec(A)||0)[1])):"IE"!=oe&&"Trident"==J&&(he=/\brv:([\d.]+)/.exec(A))&&(oe&&Ke.push("identifying as "+oe+(ye?" "+ye:"")),oe="IE",ye=he[1]),ue){if(function K(A,Q){var ne=null!=A?typeof A[Q]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(ne)||"object"==ne&&!A[Q])}(Q,"global"))if(ce&&($t=(he=ce.lang.System).getProperty("os.arch"),Ge=Ge||he.getProperty("os.name")+" "+he.getProperty("os.version")),Te){try{ye=Q.require("ringo/engine").version.join("."),oe="RingoJS"}catch(Un){(he=Q.system)&&he.global.system==Q.system&&(oe="Narwhal",Ge||(Ge=he[0].os||null))}oe||(oe="Rhino")}else"object"==typeof Q.process&&!Q.process.browser&&(he=Q.process)&&("object"==typeof he.versions&&("string"==typeof he.versions.electron?(Ke.push("Node "+he.versions.node),oe="Electron",ye=he.versions.electron):"string"==typeof he.versions.nw&&(Ke.push("Chromium "+ye,"Node "+he.versions.node),oe="NW.js",ye=he.versions.nw)),oe||(oe="Node.js",$t=he.arch,Ge=he.platform,ye=(ye=/[\d.]+/.exec(he.version))?ye[0]:null));else q(he=Q.runtime)==I?(oe="Adobe AIR",Ge=he.flash.system.Capabilities.os):q(he=Q.phantom)==de?(oe="PhantomJS",ye=(he=he.version||null)&&he.major+"."+he.minor+"."+he.patch):"number"==typeof Qe.documentMode&&(he=/\bTrident\/(\d+)/i.exec(A))?((he=+he[1]+4)!=(ye=[ye,Qe.documentMode])[1]&&(Ke.push("IE "+ye[1]+" mode"),J&&(J[1]=""),ye[1]=he),ye="IE"==oe?String(ye[1].toFixed(1)):ye[0]):"number"==typeof Qe.documentMode&&/^(?:Chrome|Firefox)\b/.test(oe)&&(Ke.push("masking as "+oe+" "+ye),oe="IE",ye="11.0",J=["Trident"],Ge="Windows");Ge=Ge&&G(Ge)}if(ye&&(he=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ye)||/(?:alpha|beta)(?: ?\d)?/i.exec(A+";"+(ue&&se.appMinorVersion))||/\bMinefield\b/i.test(A)&&"a")&&(cn=/b/i.test(he)?"beta":"alpha",ye=ye.replace(RegExp(he+"\\+?$"),"")+("beta"==cn?je:Xe)+(/\d+\+?/.exec(he)||"")),"Fennec"==oe||"Firefox"==oe&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ge))oe="Firefox Mobile";else if("Maxthon"==oe&&ye)ye=ye.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ee))"Xbox 360"==Ee&&(Ge=null),"Xbox 360"==Ee&&/\bIEMobile\b/.test(A)&&Ke.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(oe)&&(!oe||Ee||/Browser|Mobi/.test(oe))||"Windows CE"!=Ge&&!/Mobi/i.test(A))if("IE"==oe&&ue)try{null===Q.external&&Ke.unshift("platform preview")}catch(Un){Ke.unshift("embedded")}else(/\bBlackBerry\b/.test(Ee)||/\bBB10\b/.test(A))&&(he=(RegExp(Ee.replace(/ +/g," *")+"/([.\\d]+)","i").exec(A)||0)[1]||ye)?(Ge=((he=[he,/BB10/.test(A)])[1]?(Ee=null,Oe="BlackBerry"):"Device Software")+" "+he[0],ye=null):this!=D&&"Wii"!=Ee&&(ue&&ht||/Opera/.test(oe)&&/\b(?:MSIE|Firefox)\b/i.test(A)||"Firefox"==oe&&/\bOS X (?:\d+\.){2,}/.test(Ge)||"IE"==oe&&(Ge&&!/^Win/.test(Ge)&&ye>5.5||/\bWindows XP\b/.test(Ge)&&ye>8||8==ye&&!/\bTrident\b/.test(A)))&&!x.test(he=Z.call(D,A.replace(x,"")+";"))&&he.name&&(he="ing as "+he.name+((he=he.version)?" "+he:""),x.test(oe)?(/\bIE\b/.test(he)&&"Mac OS"==Ge&&(Ge=null),he="identify"+he):(he="mask"+he,oe=$e?G($e.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(he)&&(Ge=null),ue||(ye=null)),J=["Presto"],Ke.push(he));else oe+=" Mobile";(he=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(A)||0)[1])&&(he=[parseFloat(he.replace(/\.(\d)$/,".0$1")),he],"Safari"==oe&&"+"==he[1].slice(-1)?(oe="WebKit Nightly",cn="alpha",ye=he[1].slice(0,-1)):(ye==he[1]||ye==(he[2]=(/\bSafari\/([\d.]+\+?)/i.exec(A)||0)[1]))&&(ye=null),he[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(A)||0)[1],537.36==he[0]&&537.36==he[2]&&parseFloat(he[1])>=28&&"WebKit"==J&&(J=["Blink"]),ue&&(F||he[1])?(J&&(J[1]="like Chrome"),he=he[1]||((he=he[0])<530?1:he<532?2:he<532.05?3:he<533?4:he<534.03?5:he<534.07?6:he<534.1?7:he<534.13?8:he<534.16?9:he<534.24?10:he<534.3?11:he<535.01?12:he<535.02?"13+":he<535.07?15:he<535.11?16:he<535.19?17:he<536.05?18:he<536.1?19:he<537.01?20:he<537.11?"21+":he<537.13?23:he<537.18?24:he<537.24?25:he<537.36?26:"Blink"!=J?"27":"28")):(J&&(J[1]="like Safari"),he=(he=he[0])<400?1:he<500?2:he<526?3:he<533?4:he<534?"4+":he<535?5:he<537?6:he<538?7:he<601?8:he<602?9:he<604?10:he<606?11:he<608?12:"12"),J&&(J[1]+=" "+(he+="number"==typeof he?".x":/[.+]/.test(he)?"":"+")),"Safari"==oe&&(!ye||parseInt(ye)>45)?ye=he:"Chrome"==oe&&/\bHeadlessChrome/i.test(A)&&Ke.unshift("headless")),"Opera"==oe&&(he=/\bzbov|zvav$/.exec(Ge))?(oe+=" ",Ke.unshift("desktop mode"),"zvav"==he?(oe+="Mini",ye=null):oe+="Mobile",Ge=Ge.replace(RegExp(" *"+he+"$"),"")):"Safari"==oe&&/\bChrome\b/.exec(J&&J[1])?(Ke.unshift("desktop mode"),oe="Chrome Mobile",ye=null,/\bOS X\b/.test(Ge)?(Oe="Apple",Ge="iOS 4.3+"):Ge=null):/\bSRWare Iron\b/.test(oe)&&!ye&&(ye=Ji("Chrome")),ye&&0==ye.indexOf(he=/[\d.]+$/.exec(Ge))&&A.indexOf("/"+he+"-")>-1&&(Ge=T(Ge.replace(he,""))),Ge&&-1!=Ge.indexOf(oe)&&!RegExp(oe+" OS").test(Ge)&&(Ge=Ge.replace(RegExp(" *"+S(oe)+" *"),"")),J&&!/\b(?:Avant|Nook)\b/.test(oe)&&(/Browser|Lunascape|Maxthon/.test(oe)||"Safari"!=oe&&/^iOS/.test(Ge)&&/\bSafari\b/.test(J[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(oe)&&J[1])&&(he=J[J.length-1])&&Ke.push(he),Ke.length&&(Ke=["("+Ke.join("; ")+")"]),Oe&&Ee&&Ee.indexOf(Oe)<0&&Ke.push("on "+Oe),Ee&&Ke.push((/^on /.test(Ke[Ke.length-1])?"":"on ")+Ee),Ge&&(he=/ ([\d.+]+)$/.exec(Ge),ae=he&&"/"==Ge.charAt(Ge.length-he[0].length-1),Ge={architecture:32,family:he&&!ae?Ge.replace(he[0],""):Ge,version:he?he[1]:null,toString:function(){var Un=this.version;return this.family+(Un&&!ae?" "+Un:"")+(64==this.architecture?" 64-bit":"")}}),(he=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec($t))&&!/\bi686\b/i.test($t)?(Ge&&(Ge.architecture=64,Ge.family=Ge.family.replace(RegExp(" *"+he),"")),oe&&(/\bWOW64\b/i.test(A)||ue&&/\w(?:86|32)$/.test(se.cpuClass||se.platform)&&!/\bWin64; x64\b/i.test(A))&&Ke.unshift("32-bit")):Ge&&/^OS X/.test(Ge.family)&&"Chrome"==oe&&parseFloat(ye)>=39&&(Ge.architecture=64),A||(A=null);var jn={};return jn.description=A,jn.layout=J&&J[0],jn.manufacturer=Oe,jn.name=oe,jn.prerelease=cn,jn.product=Ee,jn.ua=A,jn.version=oe&&ye,jn.os=Ge||{architecture:null,family:null,version:null,toString:function(){return"null"}},jn.parse=Z,jn.toString=function ur(){return this.description||""},jn.version&&Ke.unshift(ye),jn.name&&Ke.unshift(oe),Ge&&oe&&!(Ge==String(Ge).split(" ")[0]&&(Ge==oe.split(" ")[0]||Ee))&&Ke.push(Ee?"("+Ge+")":"on "+Ge),Ke.length&&(jn.description=Ke.join(" ")),jn}();V.platform=C,void 0!==(k=function(){return C}.call(H,j,H,Fe))&&(Fe.exports=k)}.call(this)},1550:(Fe,H,j)=>{const k=j(6947),{MAX_LENGTH:z,MAX_SAFE_INTEGER:V}=j(7278),{re:_,t:E}=j(7134),P=j(3059),{compareIdentifiers:v}=j(6747);class m{constructor(M,W){if(W=P(W),M instanceof m){if(M.loose===!!W.loose&&M.includePrerelease===!!W.includePrerelease)return M;M=M.version}else if("string"!=typeof M)throw new TypeError(`Invalid Version: ${M}`);if(M.length>z)throw new TypeError(`version is longer than ${z} characters`);k("SemVer",M,W),this.options=W,this.loose=!!W.loose,this.includePrerelease=!!W.includePrerelease;const te=M.trim().match(W.loose?_[E.LOOSE]:_[E.FULL]);if(!te)throw new TypeError(`Invalid Version: ${M}`);if(this.raw=M,this.major=+te[1],this.minor=+te[2],this.patch=+te[3],this.major>V||this.major<0)throw new TypeError("Invalid major version");if(this.minor>V||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>V||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=te[4]?te[4].split(".").map(Y=>{if(/^[0-9]+$/.test(Y)){const U=+Y;if(U>=0&&U<V)return U}return Y}):[],this.build=te[5]?te[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(M){if(k("SemVer.compare",this.version,this.options,M),!(M instanceof m)){if("string"==typeof M&&M===this.version)return 0;M=new m(M,this.options)}return M.version===this.version?0:this.compareMain(M)||this.comparePre(M)}compareMain(M){return M instanceof m||(M=new m(M,this.options)),v(this.major,M.major)||v(this.minor,M.minor)||v(this.patch,M.patch)}comparePre(M){if(M instanceof m||(M=new m(M,this.options)),this.prerelease.length&&!M.prerelease.length)return-1;if(!this.prerelease.length&&M.prerelease.length)return 1;if(!this.prerelease.length&&!M.prerelease.length)return 0;let W=0;do{const te=this.prerelease[W],Y=M.prerelease[W];if(k("prerelease compare",W,te,Y),void 0===te&&void 0===Y)return 0;if(void 0===Y)return 1;if(void 0===te)return-1;if(te!==Y)return v(te,Y)}while(++W)}compareBuild(M){M instanceof m||(M=new m(M,this.options));let W=0;do{const te=this.build[W],Y=M.build[W];if(k("prerelease compare",W,te,Y),void 0===te&&void 0===Y)return 0;if(void 0===Y)return 1;if(void 0===te)return-1;if(te!==Y)return v(te,Y)}while(++W)}inc(M,W){switch(M){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",W);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",W);break;case"prepatch":this.prerelease.length=0,this.inc("patch",W),this.inc("pre",W);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",W),this.inc("pre",W);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let te=this.prerelease.length;for(;--te>=0;)"number"==typeof this.prerelease[te]&&(this.prerelease[te]++,te=-2);-1===te&&this.prerelease.push(0)}W&&(0===v(this.prerelease[0],W)?isNaN(this.prerelease[1])&&(this.prerelease=[W,0]):this.prerelease=[W,0]);break;default:throw new Error(`invalid increment argument: ${M}`)}return this.format(),this.raw=this.version,this}}Fe.exports=m},1892:(Fe,H,j)=>{const k=j(1550);Fe.exports=(V,_)=>new k(V,_).major},9897:(Fe,H,j)=>{const k=j(1550);Fe.exports=(V,_)=>new k(V,_).minor},7278:Fe=>{Fe.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},6947:Fe=>{const H="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...j)=>console.error("SEMVER",...j):()=>{};Fe.exports=H},6747:Fe=>{const H=/^[0-9]+$/,j=(z,V)=>{const _=H.test(z),E=H.test(V);return _&&E&&(z=+z,V=+V),z===V?0:_&&!E?-1:E&&!_?1:z<V?-1:1};Fe.exports={compareIdentifiers:j,rcompareIdentifiers:(z,V)=>j(V,z)}},3059:Fe=>{const H=["includePrerelease","loose","rtl"];Fe.exports=k=>k?"object"!=typeof k?{loose:!0}:H.filter(z=>k[z]).reduce((z,V)=>(z[V]=!0,z),{}):{}},7134:(Fe,H,j)=>{const{MAX_SAFE_COMPONENT_LENGTH:k}=j(7278),z=j(6947),V=(H=Fe.exports={}).re=[],_=H.src=[],E=H.t={};let P=0;const v=(m,x,M)=>{const W=P++;z(m,W,x),E[m]=W,_[W]=x,V[W]=new RegExp(x,M?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","[0-9]+"),v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),v("MAINVERSION",`(${_[E.NUMERICIDENTIFIER]})\\.(${_[E.NUMERICIDENTIFIER]})\\.(${_[E.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${_[E.NUMERICIDENTIFIERLOOSE]})\\.(${_[E.NUMERICIDENTIFIERLOOSE]})\\.(${_[E.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${_[E.NUMERICIDENTIFIER]}|${_[E.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${_[E.NUMERICIDENTIFIERLOOSE]}|${_[E.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${_[E.PRERELEASEIDENTIFIER]}(?:\\.${_[E.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${_[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${_[E.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER","[0-9A-Za-z-]+"),v("BUILD",`(?:\\+(${_[E.BUILDIDENTIFIER]}(?:\\.${_[E.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${_[E.MAINVERSION]}${_[E.PRERELEASE]}?${_[E.BUILD]}?`),v("FULL",`^${_[E.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${_[E.MAINVERSIONLOOSE]}${_[E.PRERELEASELOOSE]}?${_[E.BUILD]}?`),v("LOOSE",`^${_[E.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${_[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${_[E.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${_[E.XRANGEIDENTIFIER]})(?:\\.(${_[E.XRANGEIDENTIFIER]})(?:\\.(${_[E.XRANGEIDENTIFIER]})(?:${_[E.PRERELEASE]})?${_[E.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${_[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${_[E.XRANGEIDENTIFIERLOOSE]})(?:${_[E.PRERELEASELOOSE]})?${_[E.BUILD]}?)?)?`),v("XRANGE",`^${_[E.GTLT]}\\s*${_[E.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${_[E.GTLT]}\\s*${_[E.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${k}})(?:\\.(\\d{1,${k}}))?(?:\\.(\\d{1,${k}}))?(?:$|[^\\d])`),v("COERCERTL",_[E.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${_[E.LONETILDE]}\\s+`,!0),H.tildeTrimReplace="$1~",v("TILDE",`^${_[E.LONETILDE]}${_[E.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${_[E.LONETILDE]}${_[E.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${_[E.LONECARET]}\\s+`,!0),H.caretTrimReplace="$1^",v("CARET",`^${_[E.LONECARET]}${_[E.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${_[E.LONECARET]}${_[E.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${_[E.GTLT]}\\s*(${_[E.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${_[E.GTLT]}\\s*(${_[E.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${_[E.GTLT]}\\s*(${_[E.LOOSEPLAIN]}|${_[E.XRANGEPLAIN]})`,!0),H.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${_[E.XRANGEPLAIN]})\\s+-\\s+(${_[E.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${_[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${_[E.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},8201:(Fe,H,j)=>{"use strict";j.r(H),j.d(H,{NIL:()=>$t,parse:()=>D,stringify:()=>M,v1:()=>le,v3:()=>de,v4:()=>Te,v5:()=>he,validate:()=>P,version:()=>cn});var k,z=new Uint8Array(16);function V(){if(!k&&!(k="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return k(z)}const _=/^(?:[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,P=function E(ue){return"string"==typeof ue&&_.test(ue)};for(var v=[],m=0;m<256;++m)v.push((m+256).toString(16).substr(1));const M=function x(ue){var ye=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ae=(v[ue[ye+0]]+v[ue[ye+1]]+v[ue[ye+2]]+v[ue[ye+3]]+"-"+v[ue[ye+4]]+v[ue[ye+5]]+"-"+v[ue[ye+6]]+v[ue[ye+7]]+"-"+v[ue[ye+8]]+v[ue[ye+9]]+"-"+v[ue[ye+10]]+v[ue[ye+11]]+v[ue[ye+12]]+v[ue[ye+13]]+v[ue[ye+14]]+v[ue[ye+15]]).toLowerCase();if(!P(ae))throw TypeError("Stringified UUID is invalid");return ae};var W,te,Y=0,U=0;const le=function ge(ue,ye,ae){var J=ye&&ae||0,oe=ye||new Array(16),Ee=(ue=ue||{}).node||W,Oe=void 0!==ue.clockseq?ue.clockseq:te;if(null==Ee||null==Oe){var Ge=ue.random||(ue.rng||V)();null==Ee&&(Ee=W=[1|Ge[0],Ge[1],Ge[2],Ge[3],Ge[4],Ge[5]]),null==Oe&&(Oe=te=16383&(Ge[6]<<8|Ge[7]))}var rn=void 0!==ue.msecs?ue.msecs:Date.now(),mi=void 0!==ue.nsecs?ue.nsecs:U+1,Bi=rn-Y+(mi-U)/1e4;if(Bi<0&&void 0===ue.clockseq&&(Oe=Oe+1&16383),(Bi<0||rn>Y)&&void 0===ue.nsecs&&(mi=0),mi>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Y=rn,U=mi,te=Oe;var qo=(1e4*(268435455&(rn+=122192928e5))+mi)%4294967296;oe[J++]=qo>>>24&255,oe[J++]=qo>>>16&255,oe[J++]=qo>>>8&255,oe[J++]=255&qo;var Pn=rn/4294967296*1e4&268435455;oe[J++]=Pn>>>8&255,oe[J++]=255&Pn,oe[J++]=Pn>>>24&15|16,oe[J++]=Pn>>>16&255,oe[J++]=Oe>>>8|128,oe[J++]=255&Oe;for(var Ji=0;Ji<6;++Ji)oe[J+Ji]=Ee[Ji];return ye||M(oe)},D=function G(ue){if(!P(ue))throw TypeError("Invalid UUID");var ye,ae=new Uint8Array(16);return ae[0]=(ye=parseInt(ue.slice(0,8),16))>>>24,ae[1]=ye>>>16&255,ae[2]=ye>>>8&255,ae[3]=255&ye,ae[4]=(ye=parseInt(ue.slice(9,13),16))>>>8,ae[5]=255&ye,ae[6]=(ye=parseInt(ue.slice(14,18),16))>>>8,ae[7]=255&ye,ae[8]=(ye=parseInt(ue.slice(19,23),16))>>>8,ae[9]=255&ye,ae[10]=(ye=parseInt(ue.slice(24,36),16))/1099511627776&255,ae[11]=ye/4294967296&255,ae[12]=ye>>>24&255,ae[13]=ye>>>16&255,ae[14]=ye>>>8&255,ae[15]=255&ye,ae};function p(ue,ye,ae){function J(oe,Ee,Oe,Ge){if("string"==typeof oe&&(oe=function q(ue){ue=unescape(encodeURIComponent(ue));for(var ye=[],ae=0;ae<ue.length;++ae)ye.push(ue.charCodeAt(ae));return ye}(oe)),"string"==typeof Ee&&(Ee=D(Ee)),16!==Ee.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var rn=new Uint8Array(16+oe.length);if(rn.set(Ee),rn.set(oe,Ee.length),(rn=ae(rn))[6]=15&rn[6]|ye,rn[8]=63&rn[8]|128,Oe){Ge=Ge||0;for(var mi=0;mi<16;++mi)Oe[Ge+mi]=rn[mi];return Oe}return M(rn)}try{J.name=ue}catch(oe){}return J.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",J.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",J}function C(ue){return 14+(ue+64>>>9<<4)+1}function ne(ue,ye){var ae=(65535&ue)+(65535&ye);return(ue>>16)+(ye>>16)+(ae>>16)<<16|65535&ae}function g(ue,ye,ae,J,oe,Ee){return ne(function se(ue,ye){return ue<<ye|ue>>>32-ye}(ne(ne(ye,ue),ne(J,Ee)),oe),ae)}function O(ue,ye,ae,J,oe,Ee,Oe){return g(ye&ae|~ye&J,ue,ye,oe,Ee,Oe)}function F(ue,ye,ae,J,oe,Ee,Oe){return g(ye&J|ae&~J,ue,ye,oe,Ee,Oe)}function b(ue,ye,ae,J,oe,Ee,Oe){return g(ye^ae^J,ue,ye,oe,Ee,Oe)}function I(ue,ye,ae,J,oe,Ee,Oe){return g(ae^(ye|~J),ue,ye,oe,Ee,Oe)}const de=p("v3",48,function T(ue){if("string"==typeof ue){var ye=unescape(encodeURIComponent(ue));ue=new Uint8Array(ye.length);for(var ae=0;ae<ye.length;++ae)ue[ae]=ye.charCodeAt(ae)}return function Z(ue){for(var ye=[],ae=32*ue.length,J="0123456789abcdef",oe=0;oe<ae;oe+=8){var Ee=ue[oe>>5]>>>oe%32&255,Oe=parseInt(J.charAt(Ee>>>4&15)+J.charAt(15&Ee),16);ye.push(Oe)}return ye}(function A(ue,ye){ue[ye>>5]|=128<<ye%32,ue[C(ye)-1]=ye;for(var ae=1732584193,J=-271733879,oe=-1732584194,Ee=271733878,Oe=0;Oe<ue.length;Oe+=16){var Ge=ae,rn=J,mi=oe,Bi=Ee;ae=O(ae,J,oe,Ee,ue[Oe],7,-680876936),Ee=O(Ee,ae,J,oe,ue[Oe+1],12,-389564586),oe=O(oe,Ee,ae,J,ue[Oe+2],17,606105819),J=O(J,oe,Ee,ae,ue[Oe+3],22,-1044525330),ae=O(ae,J,oe,Ee,ue[Oe+4],7,-176418897),Ee=O(Ee,ae,J,oe,ue[Oe+5],12,1200080426),oe=O(oe,Ee,ae,J,ue[Oe+6],17,-1473231341),J=O(J,oe,Ee,ae,ue[Oe+7],22,-45705983),ae=O(ae,J,oe,Ee,ue[Oe+8],7,1770035416),Ee=O(Ee,ae,J,oe,ue[Oe+9],12,-1958414417),oe=O(oe,Ee,ae,J,ue[Oe+10],17,-42063),J=O(J,oe,Ee,ae,ue[Oe+11],22,-1990404162),ae=O(ae,J,oe,Ee,ue[Oe+12],7,1804603682),Ee=O(Ee,ae,J,oe,ue[Oe+13],12,-40341101),oe=O(oe,Ee,ae,J,ue[Oe+14],17,-1502002290),ae=F(ae,J=O(J,oe,Ee,ae,ue[Oe+15],22,1236535329),oe,Ee,ue[Oe+1],5,-165796510),Ee=F(Ee,ae,J,oe,ue[Oe+6],9,-1069501632),oe=F(oe,Ee,ae,J,ue[Oe+11],14,643717713),J=F(J,oe,Ee,ae,ue[Oe],20,-373897302),ae=F(ae,J,oe,Ee,ue[Oe+5],5,-701558691),Ee=F(Ee,ae,J,oe,ue[Oe+10],9,38016083),oe=F(oe,Ee,ae,J,ue[Oe+15],14,-660478335),J=F(J,oe,Ee,ae,ue[Oe+4],20,-405537848),ae=F(ae,J,oe,Ee,ue[Oe+9],5,568446438),Ee=F(Ee,ae,J,oe,ue[Oe+14],9,-1019803690),oe=F(oe,Ee,ae,J,ue[Oe+3],14,-187363961),J=F(J,oe,Ee,ae,ue[Oe+8],20,1163531501),ae=F(ae,J,oe,Ee,ue[Oe+13],5,-1444681467),Ee=F(Ee,ae,J,oe,ue[Oe+2],9,-51403784),oe=F(oe,Ee,ae,J,ue[Oe+7],14,1735328473),ae=b(ae,J=F(J,oe,Ee,ae,ue[Oe+12],20,-1926607734),oe,Ee,ue[Oe+5],4,-378558),Ee=b(Ee,ae,J,oe,ue[Oe+8],11,-2022574463),oe=b(oe,Ee,ae,J,ue[Oe+11],16,1839030562),J=b(J,oe,Ee,ae,ue[Oe+14],23,-35309556),ae=b(ae,J,oe,Ee,ue[Oe+1],4,-1530992060),Ee=b(Ee,ae,J,oe,ue[Oe+4],11,1272893353),oe=b(oe,Ee,ae,J,ue[Oe+7],16,-155497632),J=b(J,oe,Ee,ae,ue[Oe+10],23,-1094730640),ae=b(ae,J,oe,Ee,ue[Oe+13],4,681279174),Ee=b(Ee,ae,J,oe,ue[Oe],11,-358537222),oe=b(oe,Ee,ae,J,ue[Oe+3],16,-722521979),J=b(J,oe,Ee,ae,ue[Oe+6],23,76029189),ae=b(ae,J,oe,Ee,ue[Oe+9],4,-640364487),Ee=b(Ee,ae,J,oe,ue[Oe+12],11,-421815835),oe=b(oe,Ee,ae,J,ue[Oe+15],16,530742520),ae=I(ae,J=b(J,oe,Ee,ae,ue[Oe+2],23,-995338651),oe,Ee,ue[Oe],6,-198630844),Ee=I(Ee,ae,J,oe,ue[Oe+7],10,1126891415),oe=I(oe,Ee,ae,J,ue[Oe+14],15,-1416354905),J=I(J,oe,Ee,ae,ue[Oe+5],21,-57434055),ae=I(ae,J,oe,Ee,ue[Oe+12],6,1700485571),Ee=I(Ee,ae,J,oe,ue[Oe+3],10,-1894986606),oe=I(oe,Ee,ae,J,ue[Oe+10],15,-1051523),J=I(J,oe,Ee,ae,ue[Oe+1],21,-2054922799),ae=I(ae,J,oe,Ee,ue[Oe+8],6,1873313359),Ee=I(Ee,ae,J,oe,ue[Oe+15],10,-30611744),oe=I(oe,Ee,ae,J,ue[Oe+6],15,-1560198380),J=I(J,oe,Ee,ae,ue[Oe+13],21,1309151649),ae=I(ae,J,oe,Ee,ue[Oe+4],6,-145523070),Ee=I(Ee,ae,J,oe,ue[Oe+11],10,-1120210379),oe=I(oe,Ee,ae,J,ue[Oe+2],15,718787259),J=I(J,oe,Ee,ae,ue[Oe+9],21,-343485551),ae=ne(ae,Ge),J=ne(J,rn),oe=ne(oe,mi),Ee=ne(Ee,Bi)}return[ae,J,oe,Ee]}(function Q(ue){if(0===ue.length)return[];for(var ye=8*ue.length,ae=new Uint32Array(C(ye)),J=0;J<ye;J+=8)ae[J>>5]|=(255&ue[J/8])<<J%32;return ae}(ue),8*ue.length))}),Te=function ce(ue,ye,ae){var J=(ue=ue||{}).random||(ue.rng||V)();if(J[6]=15&J[6]|64,J[8]=63&J[8]|128,ye){ae=ae||0;for(var oe=0;oe<16;++oe)ye[ae+oe]=J[oe];return ye}return M(J)};function Xe(ue,ye,ae,J){switch(ue){case 0:return ye&ae^~ye&J;case 1:case 3:return ye^ae^J;case 2:return ye&ae^ye&J^ae&J}}function je(ue,ye){return ue<<ye|ue>>>32-ye}const he=p("v5",80,function Qe(ue){var ye=[1518500249,1859775393,2400959708,3395469782],ae=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ue){var J=unescape(encodeURIComponent(ue));ue=[];for(var oe=0;oe<J.length;++oe)ue.push(J.charCodeAt(oe))}else Array.isArray(ue)||(ue=Array.prototype.slice.call(ue));ue.push(128);for(var Oe=Math.ceil((ue.length/4+2)/16),Ge=new Array(Oe),rn=0;rn<Oe;++rn){for(var mi=new Uint32Array(16),Bi=0;Bi<16;++Bi)mi[Bi]=ue[64*rn+4*Bi]<<24|ue[64*rn+4*Bi+1]<<16|ue[64*rn+4*Bi+2]<<8|ue[64*rn+4*Bi+3];Ge[rn]=mi}Ge[Oe-1][14]=8*(ue.length-1)/Math.pow(2,32),Ge[Oe-1][14]=Math.floor(Ge[Oe-1][14]),Ge[Oe-1][15]=8*(ue.length-1)&4294967295;for(var qo=0;qo<Oe;++qo){for(var Pn=new Uint32Array(80),Ji=0;Ji<16;++Ji)Pn[Ji]=Ge[qo][Ji];for(var ur=16;ur<80;++ur)Pn[ur]=je(Pn[ur-3]^Pn[ur-8]^Pn[ur-14]^Pn[ur-16],1);for(var jn=ae[0],Un=ae[1],sn=ae[2],Yt=ae[3],Oi=ae[4],cc=0;cc<80;++cc){var Tp=Math.floor(cc/20),uc=je(jn,5)+Xe(Tp,Un,sn,Yt)+Oi+ye[Tp]+Pn[cc]>>>0;Oi=Yt,Yt=sn,sn=je(Un,30)>>>0,Un=jn,jn=uc}ae[0]=ae[0]+jn>>>0,ae[1]=ae[1]+Un>>>0,ae[2]=ae[2]+sn>>>0,ae[3]=ae[3]+Yt>>>0,ae[4]=ae[4]+Oi>>>0}return[ae[0]>>24&255,ae[0]>>16&255,ae[0]>>8&255,255&ae[0],ae[1]>>24&255,ae[1]>>16&255,ae[1]>>8&255,255&ae[1],ae[2]>>24&255,ae[2]>>16&255,ae[2]>>8&255,255&ae[2],ae[3]>>24&255,ae[3]>>16&255,ae[3]>>8&255,255&ae[3],ae[4]>>24&255,ae[4]>>16&255,ae[4]>>8&255,255&ae[4]]}),$t="00000000-0000-0000-0000-000000000000",cn=function Ke(ue){if(!P(ue))throw TypeError("Invalid UUID");return parseInt(ue.substr(14,1),16)}},1181:Fe=>{function H(){}Fe.exports=H,H.mixin=function(j){var k=j.prototype||j;k.isWildEmitter=!0,k.on=function(z,V,_){this.callbacks=this.callbacks||{};var E=3===arguments.length,P=E?arguments[1]:void 0,v=E?arguments[2]:arguments[1];return v._groupName=P,(this.callbacks[z]=this.callbacks[z]||[]).push(v),this},k.once=function(z,V,_){var E=this,P=3===arguments.length,v=P?arguments[1]:void 0,m=P?arguments[2]:arguments[1];function x(){E.off(z,x),m.apply(this,arguments)}return this.on(z,v,x),this},k.releaseGroup=function(z){var V,_,E,P;for(V in this.callbacks=this.callbacks||{},this.callbacks)for(_=0,E=(P=this.callbacks[V]).length;_<E;_++)P[_]._groupName===z&&(P.splice(_,1),_--,E--);return this},k.off=function(z,V){this.callbacks=this.callbacks||{};var E,_=this.callbacks[z];return _?1===arguments.length?(delete this.callbacks[z],this):(-1!==(E=_.indexOf(V))&&(_.splice(E,1),0===_.length&&delete this.callbacks[z]),this):this},k.emit=function(z){this.callbacks=this.callbacks||{};var P,v,x,V=[].slice.call(arguments,1),_=this.callbacks[z],E=this.getWildcardCallbacks(z);if(_)for(P=0,v=(x=_.slice()).length;P<v&&x[P];++P)x[P].apply(this,V);if(E)for(v=E.length,P=0,v=(x=E.slice()).length;P<v&&x[P];++P)x[P].apply(this,[z].concat(V));return this},k.getWildcardCallbacks=function(z){this.callbacks=this.callbacks||{};var V,_,E=[];for(V in this.callbacks)_=V.split("*"),("*"===V||2===_.length&&z.slice(0,_[0].length)===_[0])&&(E=E.concat(this.callbacks[V]));return E}},H.mixin(H)},2937:function(Fe,H,j){var k;!function(z){"use strict";function V(){}var _=V.prototype,E=z.EventEmitter;function P(x,M){for(var W=x.length;W--;)if(x[W].listener===M)return W;return-1}function v(x){return function(){return this[x].apply(this,arguments)}}function m(x){return"function"==typeof x||x instanceof RegExp||!(!x||"object"!=typeof x)&&m(x.listener)}_.getListeners=function(M){var te,Y,W=this._getEvents();if(M instanceof RegExp)for(Y in te={},W)W.hasOwnProperty(Y)&&M.test(Y)&&(te[Y]=W[Y]);else te=W[M]||(W[M]=[]);return te},_.flattenListeners=function(M){var te,W=[];for(te=0;te<M.length;te+=1)W.push(M[te].listener);return W},_.getListenersAsObject=function(M){var te,W=this.getListeners(M);return W instanceof Array&&((te={})[M]=W),te||W},_.addListener=function(M,W){if(!m(W))throw new TypeError("listener must be a function");var U,te=this.getListenersAsObject(M),Y="object"==typeof W;for(U in te)te.hasOwnProperty(U)&&-1===P(te[U],W)&&te[U].push(Y?W:{listener:W,once:!1});return this},_.on=v("addListener"),_.addOnceListener=function(M,W){return this.addListener(M,{listener:W,once:!0})},_.once=v("addOnceListener"),_.defineEvent=function(M){return this.getListeners(M),this},_.defineEvents=function(M){for(var W=0;W<M.length;W+=1)this.defineEvent(M[W]);return this},_.removeListener=function(M,W){var Y,U,te=this.getListenersAsObject(M);for(U in te)te.hasOwnProperty(U)&&-1!==(Y=P(te[U],W))&&te[U].splice(Y,1);return this},_.off=v("removeListener"),_.addListeners=function(M,W){return this.manipulateListeners(!1,M,W)},_.removeListeners=function(M,W){return this.manipulateListeners(!0,M,W)},_.manipulateListeners=function(M,W,te){var Y,U,ge=M?this.removeListener:this.addListener,le=M?this.removeListeners:this.addListeners;if("object"!=typeof W||W instanceof RegExp)for(Y=te.length;Y--;)ge.call(this,W,te[Y]);else for(Y in W)W.hasOwnProperty(Y)&&(U=W[Y])&&("function"==typeof U?ge.call(this,Y,U):le.call(this,Y,U));return this},_.removeEvent=function(M){var Y,W=typeof M,te=this._getEvents();if("string"===W)delete te[M];else if(M instanceof RegExp)for(Y in te)te.hasOwnProperty(Y)&&M.test(Y)&&delete te[Y];else delete this._events;return this},_.removeAllListeners=v("removeEvent"),_.emitEvent=function(M,W){var Y,U,ge,le,te=this.getListenersAsObject(M);for(le in te)if(te.hasOwnProperty(le))for(Y=te[le].slice(0),ge=0;ge<Y.length;ge++)!0===(U=Y[ge]).once&&this.removeListener(M,U.listener),U.listener.apply(this,W||[])===this._getOnceReturnValue()&&this.removeListener(M,U.listener);return this},_.trigger=v("emitEvent"),_.emit=function(M){var W=Array.prototype.slice.call(arguments,1);return this.emitEvent(M,W)},_.setOnceReturnValue=function(M){return this._onceReturnValue=M,this},_._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},_._getEvents=function(){return this._events||(this._events={})},V.noConflict=function(){return z.EventEmitter=E,V},void 0!==(k=function(){return V}.call(z,j,z,Fe))&&(Fe.exports=k)}("undefined"!=typeof window?window:this||{})},3749:(Fe,H,j)=>{"use strict";function k(t){return"function"==typeof t}function z(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const V=z(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,o)=>`${o+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function _(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class E{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const r of e)r.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(k(i))try{i()}catch(r){n=r instanceof V?r.errors:[r]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const r of o)try{m(r)}catch(s){n=null!=n?n:[],s instanceof V?n=[...n,...s.errors]:n.push(s)}}if(n)throw new V(n)}}add(n){var e;if(n&&n!==this)if(this.closed)m(n);else{if(n instanceof E){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&_(e,n)}remove(n){const{_finalizers:e}=this;e&&_(e,n),n instanceof E&&n._removeParent(this)}}E.EMPTY=(()=>{const t=new E;return t.closed=!0,t})();const P=E.EMPTY;function v(t){return t instanceof E||t&&"closed"in t&&k(t.remove)&&k(t.add)&&k(t.unsubscribe)}function m(t){k(t)?t():t.unsubscribe()}const x={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},M={setTimeout(t,n,...e){const{delegate:i}=M;return null!=i&&i.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=M;return((null==n?void 0:n.clearTimeout)||clearTimeout)(t)},delegate:void 0};function W(t){M.setTimeout(()=>{const{onUnhandledError:n}=x;if(!n)throw t;n(t)})}function te(){}const Y=le("C",void 0,void 0);function le(t,n,e){return{kind:t,value:n,error:e}}let G=null;function D(t){if(x.useDeprecatedSynchronousErrorHandling){const n=!G;if(n&&(G={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=G;if(G=null,e)throw i}}else t()}class K extends E{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,v(n)&&n.add(this)):this.destination=ne}static create(n,e,i){return new Z(n,e,i)}next(n){this.isStopped?Q(function ge(t){return le("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Q(function U(t){return le("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Q(Y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const S=Function.prototype.bind;function p(t,n){return S.call(t,n)}class T{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){C(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){C(i)}else C(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){C(e)}}}class Z extends K{constructor(n,e,i){let o;if(super(),k(n)||!n)o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let r;this&&x.useDeprecatedNextContext?(r=Object.create(n),r.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&p(n.next,r),error:n.error&&p(n.error,r),complete:n.complete&&p(n.complete,r)}):o=n}this.destination=new T(o)}}function C(t){x.useDeprecatedSynchronousErrorHandling?function q(t){x.useDeprecatedSynchronousErrorHandling&&G&&(G.errorThrown=!0,G.error=t)}(t):W(t)}function Q(t,n){const{onStoppedNotification:e}=x;e&&M.setTimeout(()=>e(t,n))}const ne={closed:!0,next:te,error:function A(t){throw t},complete:te},se="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(t){return t}function F(t){return 0===t.length?g:1===t.length?t[0]:function(e){return t.reduce((i,o)=>o(i),e)}}let b=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,o){const r=function Ce(t){return t&&t instanceof K||function $(t){return t&&k(t.next)&&k(t.error)&&k(t.complete)}(t)&&v(t)}(e)?e:new Z(e,i,o);return D(()=>{const{operator:s,source:a}=this;r.add(s?s.call(r,a):a?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=I(i))((o,r)=>{const s=new Z({next:a=>{try{e(a)}catch(l){r(l),s.unsubscribe()}},error:r,complete:o});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[se](){return this}pipe(...e){return F(e)(this)}toPromise(e){return new(e=I(e))((i,o)=>{let r;this.subscribe(s=>r=s,s=>o(s),()=>i(r))})}}return t.create=n=>new t(n),t})();function I(t){var n;return null!==(n=null!=t?t:x.Promise)&&void 0!==n?n:Promise}const de=z(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ce=(()=>{class t extends b{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Te(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new de}next(e){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){D(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:o,observers:r}=this;return i||o?P:(this.currentObservers=null,r.push(e),new E(()=>{this.currentObservers=null,_(r,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:o,isStopped:r}=this;i?e.error(o):r&&e.complete()}asObservable(){const e=new b;return e.source=this,e}}return t.create=(n,e)=>new Te(n,e),t})();class Te extends ce{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:P}}function Xe(t){return k(null==t?void 0:t.lift)}function je(t){return n=>{if(Xe(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Qe(t,n,e,i,o){return new ht(t,n,e,i,o)}class ht extends K{constructor(n,e,i,o,r,s){super(n),this.onFinalize=r,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function $e(t,n){return je((e,i)=>{let o=0;e.subscribe(Qe(i,r=>{i.next(t.call(n,r,o++))}))})}var he=function(t,n){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])})(t,n)};function $t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}he(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var Ke=function(){return Ke=Object.assign||function(n){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Ke.apply(this,arguments)};function J(t,n,e,i){return new(e||(e=Promise))(function(r,s){function a(u){try{c(i.next(u))}catch(d){s(d)}}function l(u){try{c(i.throw(u))}catch(d){s(d)}}function c(u){u.done?r(u.value):function o(r){return r instanceof e?r:new e(function(s){s(r)})}(u.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}function Pn(t){return this instanceof Pn?(this.v=t,this):new Pn(t)}function Ji(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,n||[]),r=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){i[f]&&(o[f]=function(y){return new Promise(function(N,X){r.push([f,y,N,X])>1||a(f,y)})})}function a(f,y){try{!function l(f){f.value instanceof Pn?Promise.resolve(f.value.v).then(c,u):d(r[0][2],f)}(i[f](y))}catch(N){d(r[0][3],N)}}function c(f){a("next",f)}function u(f){a("throw",f)}function d(f,y){f(y),r.shift(),r.length&&a(r[0][0],r[0][1])}}function jn(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Ge(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(s){return new Promise(function(a,l){!function o(r,s,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},s)}(a,l,(s=t[r](s)).done,s.value)})}}}const uc=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function xy(t){return k(null==t?void 0:t.then)}function Oy(t){return k(t[se])}function Iy(t){return Symbol.asyncIterator&&k(null==t?void 0:t[Symbol.asyncIterator])}function Ry(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Py=function OP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ky(t){return k(null==t?void 0:t[Py])}function Ny(t){return Ji(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield Pn(e.read());if(o)return yield Pn(void 0);yield yield Pn(i)}}finally{e.releaseLock()}})}function Ly(t){return k(null==t?void 0:t.getReader)}function eo(t){if(t instanceof b)return t;if(null!=t){if(Oy(t))return function IP(t){return new b(n=>{const e=t[se]();if(k(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(uc(t))return function RP(t){return new b(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(xy(t))return function PP(t){return new b(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,W)})}(t);if(Iy(t))return Fy(t);if(ky(t))return function kP(t){return new b(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(Ly(t))return function NP(t){return Fy(Ny(t))}(t)}throw Ry(t)}function Fy(t){return new b(n=>{(function LP(t,n){var e,i,o,r;return J(this,void 0,void 0,function*(){try{for(e=jn(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Mr(t,n,e,i=0,o=!1){const r=n.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(r),!o)return r}function ui(t,n,e=1/0){return k(n)?ui((i,o)=>$e((r,s)=>n(i,r,o,s))(eo(t(i,o))),e):("number"==typeof n&&(e=n),je((i,o)=>function FP(t,n,e,i,o,r,s,a){const l=[];let c=0,u=0,d=!1;const f=()=>{d&&!l.length&&!c&&n.complete()},y=X=>c<i?N(X):l.push(X),N=X=>{r&&n.next(X),c++;let _e=!1;eo(e(X,u++)).subscribe(Qe(n,me=>{null==o||o(me),r?y(me):n.next(me)},()=>{_e=!0},void 0,()=>{if(_e)try{for(c--;l.length&&c<i;){const me=l.shift();s?Mr(n,s,()=>N(me)):N(me)}f()}catch(me){n.error(me)}}))};return t.subscribe(Qe(n,y,()=>{d=!0,f()})),()=>{null==a||a()}}(i,o,t,e)))}function Aa(t=1/0){return ui(g,t)}const Wo=new b(t=>t.complete());function By(t){return t&&k(t.schedule)}function xp(t){return t[t.length-1]}function Vy(t){return k(xp(t))?t.pop():void 0}function dc(t){return By(xp(t))?t.pop():void 0}function jy(t,n=0){return je((e,i)=>{e.subscribe(Qe(i,o=>Mr(i,t,()=>i.next(o),n),()=>Mr(i,t,()=>i.complete(),n),o=>Mr(i,t,()=>i.error(o),n)))})}function Uy(t,n=0){return je((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Hy(t,n){if(!t)throw new Error("Iterable cannot be null");return new b(e=>{Mr(e,n,()=>{const i=t[Symbol.asyncIterator]();Mr(e,n,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ei(t,n){return n?function qP(t,n){if(null!=t){if(Oy(t))return function jP(t,n){return eo(t).pipe(Uy(n),jy(n))}(t,n);if(uc(t))return function HP(t,n){return new b(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(xy(t))return function UP(t,n){return eo(t).pipe(Uy(n),jy(n))}(t,n);if(Iy(t))return Hy(t,n);if(ky(t))return function GP(t,n){return new b(e=>{let i;return Mr(e,n,()=>{i=t[Py](),Mr(e,n,()=>{let o,r;try{({value:o,done:r}=i.next())}catch(s){return void e.error(s)}r?e.complete():e.next(o)},0,!0)}),()=>k(null==i?void 0:i.return)&&i.return()})}(t,n);if(Ly(t))return function zP(t,n){return Hy(Ny(t),n)}(t,n)}throw Ry(t)}(t,n):eo(t)}function Vi(...t){const n=dc(t),e=function VP(t,n){return"number"==typeof xp(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?eo(i[0]):Aa(e)(ei(i,n)):Wo}function Gy(t={}){const{connector:n=(()=>new ce),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return r=>{let s,a,l,c=0,u=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=void 0},y=()=>{f(),s=l=void 0,u=d=!1},N=()=>{const X=s;y(),null==X||X.unsubscribe()};return je((X,_e)=>{c++,!d&&!u&&f();const me=l=null!=l?l:n();_e.add(()=>{c--,0===c&&!d&&!u&&(a=Op(N,o))}),me.subscribe(_e),!s&&c>0&&(s=new Z({next:Ae=>me.next(Ae),error:Ae=>{d=!0,f(),a=Op(y,e,Ae),me.error(Ae)},complete:()=>{u=!0,f(),a=Op(y,i),me.complete()}}),eo(X).subscribe(s))})(r)}}function Op(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new Z({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function _n(t){for(let n in t)if(t[n]===_n)return n;throw Error("Could not find renamed property on target object.")}function Ip(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function bn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Rp(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const WP=_n({__forward_ref__:_n});function en(t){return t.__forward_ref__=en,t.toString=function(){return bn(this())},t}function Et(t){return Pp(t)?t():t}function Pp(t){return"function"==typeof t&&t.hasOwnProperty(WP)&&t.__forward_ref__===en}class Pe extends Error{constructor(n,e){super(function dd(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function Tt(t){return"string"==typeof t?t:null==t?"":String(t)}function hd(t,n){throw new Pe(-201,!1)}function uo(t,n){null==t&&function un(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function De(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{providers:t.providers||[],imports:t.imports||[]}}function fd(t){return zy(t,pd)||zy(t,Wy)}function zy(t,n){return t.hasOwnProperty(n)?t[n]:null}function qy(t){return t&&(t.hasOwnProperty(kp)||t.hasOwnProperty(tk))?t[kp]:null}const pd=_n({\u0275prov:_n}),kp=_n({\u0275inj:_n}),Wy=_n({ngInjectableDef:_n}),tk=_n({ngInjectorDef:_n});var _t=(()=>((_t=_t||{})[_t.Default=0]="Default",_t[_t.Host=1]="Host",_t[_t.Self=2]="Self",_t[_t.SkipSelf=4]="SkipSelf",_t[_t.Optional=8]="Optional",_t))();let Np;function Do(t){const n=Np;return Np=t,n}function $y(t,n,e){const i=fd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&_t.Optional?null:void 0!==n?n:void hd(bn(t))}function ts(t){return{toString:t}.toString()}var $o=(()=>(($o=$o||{})[$o.OnPush=0]="OnPush",$o[$o.Default=1]="Default",$o))(),Yo=(()=>{return(t=Yo||(Yo={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Yo;var t})();const yn=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),wa={},ln=[],gd=_n({\u0275cmp:_n}),Lp=_n({\u0275dir:_n}),Fp=_n({\u0275pipe:_n}),Yy=_n({\u0275mod:_n}),xr=_n({\u0275fac:_n}),hc=_n({__NG_ELEMENT_ID__:_n});let ik=0;function it(t){return ts(()=>{const e=!0===t.standalone,i={},o={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===$o.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||ln,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Yo.Emulated,id:"c"+ik++,styles:t.styles||ln,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.dependencies,s=t.features;return o.inputs=Zy(t.inputs,i),o.outputs=Zy(t.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(Qy).filter(Ky):null,o.pipeDefs=r?()=>("function"==typeof r?r():r).map(Ui).filter(Ky):null,o})}function Qy(t){return fn(t)||ji(t)}function Ky(t){return null!==t}function ut(t){return ts(()=>({type:t.type,bootstrap:t.bootstrap||ln,declarations:t.declarations||ln,imports:t.imports||ln,exports:t.exports||ln,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Zy(t,n){if(null==t)return wa;const e={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),e[o]=i,n&&(n[o]=r)}return e}const be=it;function Qn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function fn(t){return t[gd]||null}function ji(t){return t[Lp]||null}function Ui(t){return t[Fp]||null}function ho(t,n){const e=t[Yy]||null;if(!e&&!0===n)throw new Error(`Type ${bn(t)} does not have '\u0275mod' property.`);return e}function to(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ko(t){return Array.isArray(t)&&!0===t[1]}function jp(t){return 0!=(8&t.flags)}function bd(t){return 2==(2&t.flags)}function yd(t){return 1==(1&t.flags)}function Zo(t){return null!==t.template}function ck(t){return 0!=(256&t[2])}function Ps(t,n){return t.hasOwnProperty(xr)?t[xr]:null}class eC{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Kn(){return tC}function tC(t){return t.type.prototype.ngOnChanges&&(t.setInput=fk),hk}function hk(){const t=iC(this),n=null==t?void 0:t.current;if(n){const e=t.previous;if(e===wa)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function fk(t,n,e,i){const o=iC(t)||function pk(t,n){return t[nC]=n}(t,{previous:wa,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[e],l=s[a];r[a]=new eC(l&&l.currentValue,n,s===wa),t[i]=n}Kn.ngInherit=!0;const nC="__ngSimpleChanges__";function iC(t){return t[nC]||null}function ti(t){for(;Array.isArray(t);)t=t[0];return t}function Cd(t,n){return ti(n[t])}function xo(t,n){return ti(n[t.index])}function qp(t,n){return t.data[n]}function Oa(t,n){return t[n]}function po(t,n){const e=n[t];return to(e)?e:e[0]}function Ed(t){return 64==(64&t[2])}function ns(t,n){return null==n?null:t[n]}function oC(t){t[18]=0}function Wp(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const Dt={lFrame:pC(null),bindingsEnabled:!0};function sC(){return Dt.bindingsEnabled}function Ve(){return Dt.lFrame.lView}function Jt(){return Dt.lFrame.tView}function qe(t){return Dt.lFrame.contextLView=t,t[8]}function We(t){return Dt.lFrame.contextLView=null,t}function di(){let t=aC();for(;null!==t&&64===t.type;)t=t.parent;return t}function aC(){return Dt.lFrame.currentTNode}function dr(t,n){const e=Dt.lFrame;e.currentTNode=t,e.isParent=n}function $p(){return Dt.lFrame.isParent}function Yp(){Dt.lFrame.isParent=!1}function Hi(){const t=Dt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Ia(){return Dt.lFrame.bindingIndex++}function Ir(t){const n=Dt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function xk(t,n){const e=Dt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Qp(n)}function Qp(t){Dt.lFrame.currentDirectiveIndex=t}function Kp(t){const n=Dt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function dC(){return Dt.lFrame.currentQueryIndex}function Zp(t){Dt.lFrame.currentQueryIndex=t}function Ik(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function hC(t,n,e){if(e&_t.SkipSelf){let o=n,r=t;for(;!(o=o.parent,null!==o||e&_t.Host||(o=Ik(r),null===o||(r=r[15],10&o.type))););if(null===o)return!1;n=o,t=r}const i=Dt.lFrame=fC();return i.currentTNode=n,i.lView=t,!0}function Xp(t){const n=fC(),e=t[1];Dt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function fC(){const t=Dt.lFrame,n=null===t?null:t.child;return null===n?pC(t):n}function pC(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function gC(){const t=Dt.lFrame;return Dt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const mC=gC;function Jp(){const t=gC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Gi(){return Dt.lFrame.selectedIndex}function is(t){Dt.lFrame.selectedIndex=t}function Gn(){const t=Dt.lFrame;return qp(t.tView,t.selectedIndex)}function _c(){Dt.lFrame.currentNamespace="svg"}function Sd(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const r=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=r;s&&(t.contentHooks||(t.contentHooks=[])).push(-e,s),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function Ad(t,n,e){vC(t,n,3,e)}function wd(t,n,e,i){(3&t[2])===e&&vC(t,n,e,i)}function eg(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function vC(t,n,e,i){const r=null!=i?i:-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<r||-1==r)&&(Vk(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function Vk(t,n,e,i){const o=e[i]<0,r=e[i+1],a=t[o?-e[i]:e[i]];if(o){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{r.call(a)}finally{}}}else try{r.call(a)}finally{}}class bc{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Dd(t,n,e){let i=0;for(;i<e.length;){const o=e[i];if("number"==typeof o){if(0!==o)break;i++;const r=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,r)}else{const r=o,s=e[++i];bC(r)?t.setProperty(n,r,s):t.setAttribute(n,r,s),i++}}return i}function _C(t){return 3===t||4===t||6===t}function bC(t){return 64===t.charCodeAt(0)}function Md(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const o=n[i];"number"==typeof o?e=o:0===e||yC(t,e,o,null,-1===e||2===e?n[++i]:null)}}return t}function yC(t,n,e,i,o){let r=0,s=t.length;if(-1===n)s=-1;else for(;r<t.length;){const a=t[r++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=r-1;break}}}for(;r<t.length;){const a=t[r];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,n),r=s+1),t.splice(r++,0,e),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function CC(t){return-1!==t}function Ra(t){return 32767&t}function Pa(t,n){let e=function zk(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let ng=!0;function Td(t){const n=ng;return ng=t,n}let qk=0;const hr={};function Cc(t,n){const e=og(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,ig(i.data,t),ig(n,null),ig(i.blueprint,null));const o=xd(t,n),r=t.injectorIndex;if(CC(o)){const s=Ra(o),a=Pa(o,n),l=a[1].data;for(let c=0;c<8;c++)n[r+c]=a[s+c]|l[s+c]}return n[r+8]=o,r}function ig(t,n){t.push(0,0,0,0,0,0,0,0,n)}function og(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function xd(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,o=n;for(;null!==o;){if(i=OC(o),null===i)return-1;if(e++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Od(t,n,e){!function Wk(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(hc)&&(i=e[hc]),null==i&&(i=e[hc]=qk++);const o=255&i;n.data[t+(o>>5)]|=1<<o}(t,n,e)}function AC(t,n,e){if(e&_t.Optional||void 0!==t)return t;hd()}function wC(t,n,e,i){if(e&_t.Optional&&void 0===i&&(i=null),0==(e&(_t.Self|_t.Host))){const o=t[9],r=Do(void 0);try{return o?o.get(n,i,e&_t.Optional):$y(n,i,e&_t.Optional)}finally{Do(r)}}return AC(i,0,e)}function DC(t,n,e,i=_t.Default,o){if(null!==t){if(1024&n[2]){const s=function Zk(t,n,e,i,o){let r=t,s=n;for(;null!==r&&null!==s&&1024&s[2]&&!(256&s[2]);){const a=MC(r,s,e,i|_t.Self,hr);if(a!==hr)return a;let l=r.parent;if(!l){const c=s[21];if(c){const u=c.get(e,hr,i);if(u!==hr)return u}l=OC(s),s=s[15]}r=l}return o}(t,n,e,i,hr);if(s!==hr)return s}const r=MC(t,n,e,i,hr);if(r!==hr)return r}return wC(n,e,i,o)}function MC(t,n,e,i,o){const r=function Qk(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(hc)?t[hc]:void 0;return"number"==typeof n?n>=0?255&n:Kk:n}(e);if("function"==typeof r){if(!hC(n,t,i))return i&_t.Host?AC(o,0,i):wC(n,e,i,o);try{const s=r(i);if(null!=s||i&_t.Optional)return s;hd()}finally{mC()}}else if("number"==typeof r){let s=null,a=og(t,n),l=-1,c=i&_t.Host?n[16][6]:null;for((-1===a||i&_t.SkipSelf)&&(l=-1===a?xd(t,n):n[a+8],-1!==l&&xC(i,!1)?(s=n[1],a=Ra(l),n=Pa(l,n)):a=-1);-1!==a;){const u=n[1];if(TC(r,a,u.data)){const d=Yk(a,n,e,s,i,c);if(d!==hr)return d}l=n[a+8],-1!==l&&xC(i,n[1].data[a+8]===c)&&TC(r,a,n)?(s=u,a=Ra(l),n=Pa(l,n)):a=-1}}return o}function Yk(t,n,e,i,o,r){const s=n[1],a=s.data[t+8],u=Id(a,s,e,null==i?bd(a)&&ng:i!=s&&0!=(3&a.type),o&_t.Host&&r===a);return null!==u?Ec(n,s,u,a):hr}function Id(t,n,e,i,o){const r=t.providerIndexes,s=n.data,a=1048575&r,l=t.directiveStart,u=r>>20,f=o?a+u:t.directiveEnd;for(let y=i?a:a+u;y<f;y++){const N=s[y];if(y<l&&e===N||y>=l&&N.type===e)return y}if(o){const y=s[l];if(y&&Zo(y)&&y.type===e)return l}return null}function Ec(t,n,e,i){let o=t[e];const r=n.data;if(function jk(t){return t instanceof bc}(o)){const s=o;s.resolving&&function $P(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Pe(-200,`Circular dependency in DI detected for ${t}${e}`)}(function an(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Tt(t)}(r[e]));const a=Td(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Do(s.injectImpl):null;hC(t,i,_t.Default);try{o=t[e]=s.factory(void 0,r,t,i),n.firstCreatePass&&e>=i.directiveStart&&function Bk(t,n,e){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:r}=n.type.prototype;if(i){const s=tC(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}o&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,o),r&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,r),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,r))}(e,r[e],n)}finally{null!==l&&Do(l),Td(a),s.resolving=!1,mC()}}return o}function TC(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function xC(t,n){return!(t&_t.Self||t&_t.Host&&n)}class ka{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return DC(this._tNode,this._lView,n,i,e)}}function Kk(){return new ka(di(),Ve())}function ot(t){return ts(()=>{const n=t.prototype.constructor,e=n[xr]||rg(n),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const r=o[xr]||rg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function rg(t){return Pp(t)?()=>{const n=rg(Et(t));return n&&n()}:Ps(t)}function OC(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}function Xo(t){return function $k(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let o=0;for(;o<i;){const r=e[o];if(_C(r))break;if(0===r)o+=2;else if("number"==typeof r)for(o++;o<i&&"string"==typeof e[o];)o++;else{if(r===n)return e[o+1];o+=2}}}return null}(di(),t)}const La="__parameters__";function Ba(t,n,e){return ts(()=>{const i=function sg(t){return function(...e){if(t){const i=t(...e);for(const o in i)this[o]=i[o]}}}(n);function o(...r){if(this instanceof o)return i.apply(this,r),this;const s=new o(...r);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(La)?l[La]:Object.defineProperty(l,La,{value:[]})[La];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class Be{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=De({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function go(t,n){void 0===n&&(n=t);for(let e=0;e<t.length;e++){let i=t[e];Array.isArray(i)?(n===t&&(n=t.slice(0,e)),go(i,n)):n!==t&&n.push(i)}return n}function Rr(t,n){t.forEach(e=>Array.isArray(e)?Rr(e,n):n(e))}function RC(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Rd(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function wc(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function mo(t,n,e){let i=Va(t,n);return i>=0?t[1|i]=e:(i=~i,function tN(t,n,e,i){let o=t.length;if(o==n)t.push(e,i);else if(1===o)t.push(i,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function lg(t,n){const e=Va(t,n);if(e>=0)return t[1|e]}function Va(t,n){return function NC(t,n,e){let i=0,o=t.length>>e;for(;o!==i;){const r=i+(o-i>>1),s=t[r<<e];if(n===s)return r<<e;s>n?o=r:i=r+1}return~(o<<e)}(t,n,1)}const Dc={},ug="__NG_DI_FLAG__",kd="ngTempTokenPath",cN=/\n/gm,LC="__source";let Mc;function ja(t){const n=Mc;return Mc=t,n}function dN(t,n=_t.Default){if(void 0===Mc)throw new Pe(-203,!1);return null===Mc?$y(t,void 0,n):Mc.get(t,n&_t.Optional?null:void 0,n)}function ie(t,n=_t.Default){return(function nk(){return Np}()||dN)(Et(t),n)}function gn(t,n=_t.Default){return"number"!=typeof n&&(n=0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)),ie(t,n)}function dg(t){const n=[];for(let e=0;e<t.length;e++){const i=Et(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Pe(900,!1);let o,r=_t.Default;for(let s=0;s<i.length;s++){const a=i[s],l=hN(a);"number"==typeof l?-1===l?o=a.token:r|=l:o=a}n.push(ie(o,r))}else n.push(ie(i))}return n}function Tc(t,n){return t[ug]=n,t.prototype[ug]=n,t}function hN(t){return t[ug]}const rs=Tc(Ba("Optional"),8),Ua=Tc(Ba("SkipSelf"),4);let fg,Fd,Bd;function Ga(t){var n;return(null===(n=function pg(){if(void 0===Fd&&(Fd=null,yn.trustedTypes))try{Fd=yn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Fd}())||void 0===n?void 0:n.createHTML(t))||t}function WC(t){var n;return(null===(n=function gg(){if(void 0===Bd&&(Bd=null,yn.trustedTypes))try{Bd=yn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Bd}())||void 0===n?void 0:n.createHTML(t))||t}class ks{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class MN extends ks{getTypeName(){return"HTML"}}class TN extends ks{getTypeName(){return"Style"}}class xN extends ks{getTypeName(){return"Script"}}class ON extends ks{getTypeName(){return"URL"}}class IN extends ks{getTypeName(){return"ResourceURL"}}function vo(t){return t instanceof ks?t.changingThisBreaksApplicationSecurity:t}function fr(t,n){const e=function RN(t){return t instanceof ks&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===n}class BN{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Ga(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class VN{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ga(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ga(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let o=e.length-1;0<o;o--){const s=e.item(o).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&n.removeAttribute(s)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const UN=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Vd(t){return(t=String(t)).match(UN)?t:"unsafe:"+t}function Pr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function Ic(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const KC=Pr("area,br,col,hr,img,wbr"),ZC=Pr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),XC=Pr("rp,rt"),mg=Ic(KC,Ic(ZC,Pr("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")),Ic(XC,Pr("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")),Ic(XC,ZC)),vg=Pr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),JC=Ic(vg,Pr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pr("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")),HN=Pr("script,style,template");class GN{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!mg.hasOwnProperty(e))return this.sanitizedSomething=!0,!HN.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let o=0;o<i.length;o++){const r=i.item(o),s=r.name,a=s.toLowerCase();if(!JC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=r.value;vg[a]&&(l=Vd(l)),this.buf.push(" ",s,'="',e0(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();mg.hasOwnProperty(e)&&!KC.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(e0(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const zN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qN=/([^\#-~ |!])/g;function e0(t){return t.replace(/&/g,"&").replace(zN,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(qN,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let jd;function t0(t,n){let e=null;try{jd=jd||function QC(t){const n=new VN(t);return function jN(){try{return!!(new window.DOMParser).parseFromString(Ga(""),"text/html")}catch(t){return!1}}()?new BN(n):n}(t);let i=n?String(n):"";e=jd.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=e.innerHTML,e=jd.getInertBodyElement(i)}while(i!==r);return Ga((new GN).sanitizeChildren(_g(e)||e))}finally{if(e){const i=_g(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function _g(t){return"content"in t&&function WN(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var tn=(()=>((tn=tn||{})[tn.NONE=0]="NONE",tn[tn.HTML=1]="HTML",tn[tn.STYLE=2]="STYLE",tn[tn.SCRIPT=3]="SCRIPT",tn[tn.URL=4]="URL",tn[tn.RESOURCE_URL=5]="RESOURCE_URL",tn))();function bg(t){const n=Rc();return n?WC(n.sanitize(tn.HTML,t)||""):fr(t,"HTML")?WC(vo(t)):t0(function qC(){return void 0!==fg?fg:"undefined"!=typeof document?document:void 0}(),Tt(t))}function za(t){const n=Rc();return n?n.sanitize(tn.URL,t)||"":fr(t,"URL")?vo(t):Vd(Tt(t))}function Rc(){const t=Ve();return t&&t[12]}const yg=new Be("ENVIRONMENT_INITIALIZER"),o0=new Be("INJECTOR",-1),r0=new Be("INJECTOR_DEF_TYPES");class s0{get(n,e=Dc){if(e===Dc){const i=new Error(`NullInjectorError: No provider for ${bn(n)}!`);throw i.name="NullInjectorError",i}return e}}function JN(...t){return{\u0275providers:a0(0,t)}}function a0(t,...n){const e=[],i=new Set;let o;return Rr(n,r=>{const s=r;Cg(s,e,[],i)&&(o||(o=[]),o.push(s))}),void 0!==o&&l0(o,e),e}function l0(t,n){for(let e=0;e<t.length;e++){const{providers:o}=t[e];Rr(o,r=>{n.push(r)})}}function Cg(t,n,e,i){if(!(t=Et(t)))return!1;let o=null,r=qy(t);const s=!r&&fn(t);if(r||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(r=qy(l),!r)return!1;o=l}const a=i.has(o);if(s){if(a)return!1;if(i.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)Cg(c,n,e,i)}}else{if(!r)return!1;{if(null!=r.imports&&!a){let c;i.add(o);try{Rr(r.imports,u=>{Cg(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&l0(c,n)}if(!a){const c=Ps(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:ln},{provide:r0,useValue:o,multi:!0},{provide:yg,useValue:()=>ie(o),multi:!0})}const l=r.providers;null==l||a||Rr(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}const eL=_n({provide:String,useValue:_n});function Eg(t){return null!==t&&"object"==typeof t&&eL in t}function Ns(t){return"function"==typeof t}const Sg=new Be("Set Injector scope."),Ud={},nL={};let Ag;function Hd(){return void 0===Ag&&(Ag=new s0),Ag}class ss{}class d0 extends ss{constructor(n,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Dg(n,s=>this.processProvider(s)),this.records.set(o0,qa(void 0,this)),o.has("environment")&&this.records.set(ss,qa(void 0,this));const r=this.records.get(Sg);null!=r&&"string"==typeof r.value&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(r0.multi,ln,_t.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=ja(this),i=Do(void 0);try{return n()}finally{ja(e),Do(i)}}get(n,e=Dc,i=_t.Default){this.assertNotDestroyed();const o=ja(this),r=Do(void 0);try{if(!(i&_t.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function aL(t){return"function"==typeof t||"object"==typeof t&&t instanceof Be}(n)&&fd(n);a=l&&this.injectableDefInScope(l)?qa(wg(n),Ud):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&_t.Self?Hd():this.parent).get(n,e=i&_t.Optional&&e===Dc?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[kd]=s[kd]||[]).unshift(bn(n)),o)throw s;return function fN(t,n,e,i){const o=t[kd];throw n[LC]&&o.unshift(n[LC]),t.message=function pN(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=bn(n);if(Array.isArray(n))o=n.map(bn).join(" -> ");else if("object"==typeof n){let r=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];r.push(s+":"+("string"==typeof a?JSON.stringify(a):bn(a)))}o=`{${r.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${t.replace(cN,"\n ")}`}("\n"+t.message,o,e,i),t.ngTokenPath=o,t[kd]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Do(r),ja(o)}}resolveInjectorInitializers(){const n=ja(this),e=Do(void 0);try{const i=this.get(yg.multi,ln,_t.Self);for(const o of i)o()}finally{ja(n),Do(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(bn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Pe(205,!1)}processProvider(n){let e=Ns(n=Et(n))?n:Et(n&&n.provide);const i=function oL(t){return Eg(t)?qa(void 0,t.useValue):qa(h0(t),Ud)}(n);if(Ns(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=qa(void 0,Ud,!0),o.factory=()=>dg(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===Ud&&(e.value=nL,e.value=e.factory()),"object"==typeof e.value&&e.value&&function sL(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Et(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function wg(t){const n=fd(t),e=null!==n?n.factory:Ps(t);if(null!==e)return e;if(t instanceof Be)throw new Pe(204,!1);if(t instanceof Function)return function iL(t){const n=t.length;if(n>0)throw wc(n,"?"),new Pe(204,!1);const e=function JP(t){const n=t&&(t[pd]||t[Wy]);if(n){const e=function ek(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Pe(204,!1)}function h0(t,n,e){let i;if(Ns(t)){const o=Et(t);return Ps(o)||wg(o)}if(Eg(t))i=()=>Et(t.useValue);else if(function u0(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...dg(t.deps||[]));else if(function c0(t){return!(!t||!t.useExisting)}(t))i=()=>ie(Et(t.useExisting));else{const o=Et(t&&(t.useClass||t.provide));if(!function rL(t){return!!t.deps}(t))return Ps(o)||wg(o);i=()=>new o(...dg(t.deps))}return i}function qa(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function lL(t){return!!t.\u0275providers}function Dg(t,n){for(const e of t)Array.isArray(e)?Dg(e,n):lL(e)?Dg(e.\u0275providers,n):n(e)}class f0{}class dL{resolveComponentFactory(n){throw function uL(t){const n=Error(`No component factory found for ${bn(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let kr=(()=>{class t{}return t.NULL=new dL,t})();function hL(){return Wa(di(),Ve())}function Wa(t,n){return new Ue(xo(t,n))}let Ue=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=hL,t})();function fL(t){return t instanceof Ue?t.nativeElement:t}class Pc{}let Oo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function pL(){const t=Ve(),e=po(di().index,t);return(to(e)?e:t)[11]}(),t})(),gL=(()=>{class t{}return t.\u0275prov=De({token:t,providedIn:"root",factory:()=>null}),t})();class Nr{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mL=new Nr("14.2.8"),Mg={};function Rg(t){return t.ngOriginalError}class Lr{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Rg(n);for(;e&&Rg(e);)e=Rg(e);return e||null}}const Pg=new Map;let TL=0;const Ng="__ngContext__";function Pi(t,n){to(n)?(t[Ng]=n[20],function OL(t){Pg.set(t[20],t)}(n)):t[Ng]=n}function Nc(t){return t.ownerDocument.defaultView}function D0(t){return t.ownerDocument}function Fr(t){return t instanceof Function?t():t}var no=(()=>((no=no||{})[no.Important=1]="Important",no[no.DashCase=2]="DashCase",no))();function Fg(t,n){return undefined(t,n)}function Lc(t){const n=t[3];return Ko(n)?n[3]:n}function Bg(t){return x0(t[13])}function Vg(t){return x0(t[4])}function x0(t){for(;null!==t&&!Ko(t);)t=t[4];return t}function Ya(t,n,e,i,o){if(null!=i){let r,s=!1;Ko(i)?r=i:to(i)&&(s=!0,i=i[0]);const a=ti(i);0===t&&null!==e?null==o?N0(n,e,a):Ls(n,e,a,o||null,!0):1===t&&null!==e?Ls(n,e,a,o||null,!0):2===t?function H0(t,n,e){const i=Gd(t,n);i&&function tF(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=r&&function oF(t,n,e,i,o){const r=e[7];r!==ti(e)&&Ya(n,t,i,r,o);for(let a=10;a<e.length;a++){const l=e[a];Fc(l[1],l,t,n,i,r)}}(n,t,r,e,o)}}function Ug(t,n,e){return t.createElement(n,e)}function I0(t,n){const e=t[9],i=e.indexOf(n),o=n[3];512&n[2]&&(n[2]&=-513,Wp(o,-1)),e.splice(i,1)}function Hg(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const o=i[17];null!==o&&o!==t&&I0(o,i),n>0&&(t[e-1][4]=i[4]);const r=Rd(t,10+n);!function $L(t,n){Fc(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function R0(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&Fc(t,n,e,3,null,null),function KL(t){let n=t[13];if(!n)return Gg(t[1],t);for(;n;){let e=null;if(to(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)to(n)&&Gg(n[1],n),n=n[3];null===n&&(n=t),to(n)&&Gg(n[1],n),e=n&&n[4]}n=e}}(n)}}function Gg(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function eF(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const o=n[e[i]];if(!(o instanceof bc)){const r=e[i+1];if(Array.isArray(r))for(let s=0;s<r.length;s+=2){const a=o[r[s]],l=r[s+1];try{l.call(a)}finally{}}else try{r.call(o)}finally{}}}}(t,n),function JL(t,n){const e=t.cleanup,i=n[7];let o=-1;if(null!==e)for(let r=0;r<e.length-1;r+=2)if("string"==typeof e[r]){const s=e[r+1],a="function"==typeof s?s(n):ti(n[s]),l=i[o=e[r+2]],c=e[r+3];"boolean"==typeof c?a.removeEventListener(e[r],l,c):c>=0?i[o=c]():i[o=-c].unsubscribe(),r+=2}else{const s=i[o=e[r+1]];e[r].call(s)}if(null!==i){for(let r=o+1;r<i.length;r++)(0,i[r])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&Ko(n[3])){e!==n[3]&&I0(e,n);const i=n[19];null!==i&&i.detachView(t)}!function IL(t){Pg.delete(t[20])}(n)}}function P0(t,n,e){return function k0(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];if(2&i.flags){const o=t.data[i.directiveStart].encapsulation;if(o===Yo.None||o===Yo.Emulated)return null}return xo(i,e)}(t,n.parent,e)}function Ls(t,n,e,i,o){t.insertBefore(n,e,i,o)}function N0(t,n,e){t.appendChild(n,e)}function L0(t,n,e,i,o){null!==i?Ls(t,n,e,i,o):N0(t,n,e)}function Gd(t,n){return t.parentNode(n)}function F0(t,n,e){return V0(t,n,e)}let V0=function B0(t,n,e){return 40&t.type?xo(t,e):null};function zd(t,n,e,i){const o=P0(t,i,n),r=n[11],a=F0(i.parent||n[6],i,n);if(null!=o)if(Array.isArray(e))for(let l=0;l<e.length;l++)L0(r,o,e[l],a,!1);else L0(r,o,e,a,!1)}function qd(t,n){if(null!==n){const e=n.type;if(3&e)return xo(n,t);if(4&e)return qg(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return qd(t,i);{const o=t[n.index];return Ko(o)?qg(-1,o):ti(o)}}if(32&e)return Fg(n,t)()||ti(t[n.index]);{const i=U0(t,n);return null!==i?Array.isArray(i)?i[0]:qd(Lc(t[16]),i):qd(t,n.next)}}return null}function U0(t,n){return null!==n?t[16][6].projection[n.projection]:null}function qg(t,n){const e=10+t+1;if(e<n.length){const i=n[e],o=i[1].firstChild;if(null!==o)return qd(i,o)}return n[7]}function Wg(t,n,e,i,o,r,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===n&&(a&&Pi(ti(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Wg(t,n,e.child,i,o,r,!1),Ya(n,t,o,a,r);else if(32&l){const c=Fg(e,i);let u;for(;u=c();)Ya(n,t,o,u,r);Ya(n,t,o,a,r)}else 16&l?G0(t,n,i,e,o,r):Ya(n,t,o,a,r);e=s?e.projectionNext:e.next}}function Fc(t,n,e,i,o,r){Wg(e,i,t.firstChild,n,o,r,!1)}function G0(t,n,e,i,o,r){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Ya(n,t,o,l[c],r);else Wg(t,n,l,s[3],o,r,!0)}function z0(t,n,e){t.setAttribute(n,"style",e)}function $g(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function q0(t,n,e){let i=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const r=n.length;if(o+r===i||t.charCodeAt(o+r)<=32)return o}e=o+1}}const W0="ng-template";function sF(t,n,e){let i=0;for(;i<t.length;){let o=t[i++];if(e&&"class"===o){if(o=t[i],-1!==q0(o.toLowerCase(),n,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);)if(o.toLowerCase()===n)return!0;return!1}}return!1}function $0(t){return 4===t.type&&t.value!==W0}function aF(t,n,e){return n===(4!==t.type||e?t.value:W0)}function lF(t,n,e){let i=4;const o=t.attrs||[],r=function dF(t){for(let n=0;n<t.length;n++)if(_C(t[n]))return n;return t.length}(o);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!aF(t,l,e)||""===l&&1===n.length){if(Jo(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!sF(t.attrs,c,e)){if(Jo(i))return!1;s=!0}continue}const d=cF(8&i?"class":l,o,$0(t),e);if(-1===d){if(Jo(i))return!1;s=!0;continue}if(""!==c){let f;f=d>r?"":o[d+1].toLowerCase();const y=8&i?f:null;if(y&&-1!==q0(y,c,0)||2&i&&c!==f){if(Jo(i))return!1;s=!0}}}}else{if(!s&&!Jo(i)&&!Jo(l))return!1;if(s&&Jo(l))continue;s=!1,i=l|1&i}}return Jo(i)||s}function Jo(t){return 0==(1&t)}function cF(t,n,e,i){if(null===n)return-1;let o=0;if(i||!e){let r=!1;for(;o<n.length;){const s=n[o];if(s===t)return o;if(3===s||6===s)r=!0;else{if(1===s||2===s){let a=n[++o];for(;"string"==typeof a;)a=n[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=r?1:2}return-1}return function hF(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function Y0(t,n,e=!1){for(let i=0;i<n.length;i++)if(lF(t,n[i],e))return!0;return!1}function fF(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let o=0;o<t.length;o++)if(t[o]!==i[o])continue e;return!0}}return!1}function Q0(t,n){return t?":not("+n.trim()+")":n}function pF(t){let n=t[0],e=1,i=2,o="",r=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""!==o&&!Jo(s)&&(n+=Q0(r,o),o=""),i=s,r=r||!Jo(i);e++}return""!==o&&(n+=Q0(r,o)),n}const xt={};function w(t){K0(Jt(),Ve(),Gi()+t,!1)}function K0(t,n,e,i){if(!i)if(3==(3&n[2])){const r=t.preOrderCheckHooks;null!==r&&Ad(n,r,e)}else{const r=t.preOrderHooks;null!==r&&wd(n,r,0,e)}is(e)}function eE(t,n=null,e=null,i){const o=tE(t,n,e,i);return o.resolveInjectorInitializers(),o}function tE(t,n=null,e=null,i,o=new Set){const r=[e||ln,JN(t)];return i=i||("object"==typeof t?void 0:bn(t)),new d0(r,n||Hd(),i||null,o)}let En=(()=>{class t{static create(e,i){var o;if(Array.isArray(e))return eE({name:""},i,e,"");{const r=null!==(o=e.name)&&void 0!==o?o:"";return eE({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Dc,t.NULL=new s0,t.\u0275prov=De({token:t,providedIn:"any",factory:()=>ie(o0)}),t.__NG_ELEMENT_ID__=-1,t})();function h(t,n=_t.Default){const e=Ve();return null===e?ie(t,n):DC(di(),e,Et(t),n)}function Fs(){throw new Error("invalid")}function $d(t,n){return t<<17|n<<2}function er(t){return t>>17&32767}function Xg(t){return 2|t}function Br(t){return(131068&t)>>2}function Jg(t,n){return-131069&t|n<<2}function em(t){return 1|t}function _E(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const o=e[i],r=e[i+1];if(-1!==r){const s=t.data[r];Zp(o),s.contentQueries(2,n[r],r)}}}function Kd(t,n,e,i,o,r,s,a,l,c,u){const d=n.blueprint.slice();return d[0]=o,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),oC(d),d[3]=d[15]=t,d[8]=e,d[10]=s||t&&t[10],d[11]=a||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=r,d[20]=function xL(){return TL++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function Ka(t,n,e,i,o){let r=t.data[n];if(null===r)r=function lm(t,n,e,i,o){const r=aC(),s=$p(),l=t.data[n]=function KF(t,n,e,i,o,r){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?r:r&&r.parent,e,n,i,o);return null===t.firstChild&&(t.firstChild=l),null!==r&&(s?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}(t,n,e,i,o),function Tk(){return Dt.lFrame.inI18n}()&&(r.flags|=64);else if(64&r.type){r.type=e,r.value=i,r.attrs=o;const s=function vc(){const t=Dt.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();r.injectorIndex=null===s?-1:s.injectorIndex}return dr(r,!0),r}function Za(t,n,e,i){if(0===e)return-1;const o=n.length;for(let r=0;r<e;r++)n.push(i),t.blueprint.push(i),t.data.push(null);return o}function cm(t,n,e){Xp(n);try{const i=t.viewQuery;null!==i&&vm(1,i,e);const o=t.template;null!==o&&bE(t,n,o,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&_E(t,n),t.staticViewQueries&&vm(2,t.viewQuery,e);const r=t.components;null!==r&&function $F(t,n){for(let e=0;e<n.length;e++)hB(t,n[e])}(n,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Jp()}}function Zd(t,n,e,i){const o=n[2];if(128!=(128&o)){Xp(n);try{oC(n),function cC(t){return Dt.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&bE(t,n,e,2,i);const s=3==(3&o);if(s){const c=t.preOrderCheckHooks;null!==c&&Ad(n,c,null)}else{const c=t.preOrderHooks;null!==c&&wd(n,c,0,null),eg(n,0)}if(function uB(t){for(let n=Bg(t);null!==n;n=Vg(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const o=e[i],r=o[3];0==(512&o[2])&&Wp(r,1),o[2]|=512}}}(n),function cB(t){for(let n=Bg(t);null!==n;n=Vg(n))for(let e=10;e<n.length;e++){const i=n[e],o=i[1];Ed(i)&&Zd(o,i,o.template,i[8])}}(n),null!==t.contentQueries&&_E(t,n),s){const c=t.contentCheckHooks;null!==c&&Ad(n,c)}else{const c=t.contentHooks;null!==c&&wd(n,c,1),eg(n,1)}!function qF(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const o=e[i];if(o<0)is(~o);else{const r=o,s=e[++i],a=e[++i];xk(s,r),a(2,n[r])}}}finally{is(-1)}}(t,n);const a=t.components;null!==a&&function WF(t,n){for(let e=0;e<n.length;e++)dB(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&vm(2,l,i),s){const c=t.viewCheckHooks;null!==c&&Ad(n,c)}else{const c=t.viewHooks;null!==c&&wd(n,c,2),eg(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Wp(n[3],-1))}finally{Jp()}}}function bE(t,n,e,i,o){const r=Gi(),s=2&i;try{is(-1),s&&n.length>22&&K0(t,n,22,!1),e(i,o)}finally{is(r)}}function yE(t,n,e){if(jp(n)){const o=n.directiveEnd;for(let r=n.directiveStart;r<o;r++){const s=t.data[r];s.contentQueries&&s.contentQueries(1,e[r],r)}}}function um(t,n,e){!sC()||(function tB(t,n,e,i){const o=e.directiveStart,r=e.directiveEnd;t.firstCreatePass||Cc(e,n),Pi(i,n);const s=e.initialInputs;for(let a=o;a<r;a++){const l=t.data[a],c=Zo(l);c&&sB(n,e,l);const u=Ec(n,t,a,e);Pi(u,n),null!==s&&aB(0,a-o,u,l,0,s),c&&(po(e.index,n)[8]=u)}}(t,n,e,xo(e,n)),128==(128&e.flags)&&function nB(t,n,e){const i=e.directiveStart,o=e.directiveEnd,r=e.index,s=function Ok(){return Dt.lFrame.currentDirectiveIndex}();try{is(r);for(let a=i;a<o;a++){const l=t.data[a],c=n[a];Qp(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&ME(l,c)}}finally{is(-1),Qp(s)}}(t,n,e))}function dm(t,n,e=xo){const i=n.localNames;if(null!==i){let o=n.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?e(n,t):t[s];t[o++]=a}}}function CE(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=hm(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function hm(t,n,e,i,o,r,s,a,l,c){const u=22+i,d=u+o,f=function YF(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:xt);return e}(u,d),y="function"==typeof c?c():c;return f[1]={type:t,blueprint:f,template:e,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:y,incompleteFirstPass:!1}}function EE(t,n,e,i){const o=RE(n);null===e?o.push(i):(o.push(e),t.firstCreatePass&&PE(t).push(i,o.length-1))}function SE(t,n,e){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(n,o):e[i]=[n,o]}return e}function AE(t,n){const i=n.directiveEnd,o=t.data,r=n.attrs,s=[];let a=null,l=null;for(let c=n.directiveStart;c<i;c++){const u=o[c],d=u.inputs,f=null===r||$0(n)?null:lB(d,r);s.push(f),a=SE(d,c,a),l=SE(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(n.flags|=16),a.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=s,n.inputs=a,n.outputs=l}function _o(t,n,e,i,o,r,s,a){const l=xo(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(_m(t,e,u,i,o),bd(n)&&wE(e,n.index)):3&n.type&&(i=function ZF(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),o=null!=s?s(o,n.value||"",i):o,r.setProperty(l,i,o))}function wE(t,n){const e=po(n,t);16&e[2]||(e[2]|=32)}function fm(t,n,e,i){let o=!1;if(sC()){const r=function iB(t,n,e){const i=t.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];Y0(e,s.selectors,!1)&&(o||(o=[]),Od(Cc(e,n),t,s.type),Zo(s)?(TE(t,e),o.unshift(s)):o.push(s))}return o}(t,n,e),s=null===i?null:{"":-1};if(null!==r){o=!0,xE(e,t.data.length,r.length);for(let u=0;u<r.length;u++){const d=r[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Za(t,n,r.length,null);for(let u=0;u<r.length;u++){const d=r[u];e.mergedAttrs=Md(e.mergedAttrs,d.hostAttrs),OE(t,e,n,c,d),rB(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),l=!0),c++}AE(t,e)}s&&function oB(t,n,e){if(n){const i=t.localNames=[];for(let o=0;o<n.length;o+=2){const r=e[n[o+1]];if(null==r)throw new Pe(-301,!1);i.push(n[o],r)}}}(e,i,s)}return e.mergedAttrs=Md(e.mergedAttrs,e.attrs),o}function DE(t,n,e,i,o,r){const s=r.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~n.index;(function eB(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,o,s)}}function ME(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function TE(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function rB(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Zo(n)&&(e[""]=t)}}function xE(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}function OE(t,n,e,i,o){t.data[i]=o;const r=o.factory||(o.factory=Ps(o.type)),s=new bc(r,Zo(o),h);t.blueprint[i]=s,e[i]=s,DE(t,n,0,i,Za(t,e,o.hostVars,xt),o)}function sB(t,n,e){const i=xo(n,t),o=CE(e),r=t[10],s=Xd(t,Kd(t,o,null,e.onPush?32:16,i,n,r,r.createRenderer(i,e),null,null,null));t[n.index]=s}function pr(t,n,e,i,o,r){const s=xo(t,n);!function pm(t,n,e,i,o,r,s){if(null==r)t.removeAttribute(n,o,e);else{const a=null==s?Tt(r):s(r,i||"",o);t.setAttribute(n,o,a,e)}}(n[11],s,r,t.value,e,i,o)}function aB(t,n,e,i,o,r){const s=r[n];if(null!==s){const a=i.setInput;for(let l=0;l<s.length;){const c=s[l++],u=s[l++],d=s[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function lB(t,n){let e=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===e&&(e=[]),e.push(o,t[o],n[i+1])),i+=2}else i+=2;else i+=4}return e}function IE(t,n,e,i){return new Array(t,!0,!1,n,null,0,i,e,null,null)}function dB(t,n){const e=po(n,t);if(Ed(e)){const i=e[1];48&e[2]?Zd(i,e,i.template,e[8]):e[5]>0&&gm(e)}}function gm(t){for(let i=Bg(t);null!==i;i=Vg(i))for(let o=10;o<i.length;o++){const r=i[o];if(Ed(r))if(512&r[2]){const s=r[1];Zd(s,r,s.template,r[8])}else r[5]>0&&gm(r)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const o=po(e[i],t);Ed(o)&&o[5]>0&&gm(o)}}function hB(t,n){const e=po(n,t),i=e[1];(function fB(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),cm(i,e,e[8])}function Xd(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function mm(t){for(;t;){t[2]|=32;const n=Lc(t);if(ck(t)&&!n)return t;t=n}return null}function Jd(t,n,e,i=!0){const o=n[10];o.begin&&o.begin();try{Zd(t,n,t.template,e)}catch(s){throw i&&NE(n,s),s}finally{o.end&&o.end()}}function vm(t,n,e){Zp(0),n(t,e)}function RE(t){return t[7]||(t[7]=[])}function PE(t){return t.cleanup||(t.cleanup=[])}function kE(t,n,e){return(null===t||Zo(t))&&(e=function _k(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[n.index])),e[11]}function NE(t,n){const e=t[9],i=e?e.get(Lr,null):null;i&&i.handleError(n)}function _m(t,n,e,i,o){for(let r=0;r<e.length;){const s=e[r++],a=e[r++],l=n[s],c=t.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function eh(t,n,e){let i=e?t.styles:null,o=e?t.classes:null,r=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?r=a:1==r?o=Rp(o,a):2==r&&(i=Rp(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=o:t.classesWithoutHost=o}function th(t,n,e,i,o=!1){for(;null!==e;){const r=n[e.index];if(null!==r&&i.push(ti(r)),Ko(r))for(let a=10;a<r.length;a++){const l=r[a],c=l[1].firstChild;null!==c&&th(l[1],l,c,i)}const s=e.type;if(8&s)th(t,n,e.child,i);else if(32&s){const a=Fg(e,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=U0(n,e);if(Array.isArray(a))i.push(...a);else{const l=Lc(n[16]);th(l[1],l,a,i,!0)}}e=o?e.projectionNext:e.next}return i}class Bc{constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const n=this._lView,e=n[1];return th(e,n,e.firstChild,[])}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(Ko(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(Hg(n,i),Rd(e,i))}this._attachedToViewContainer=!1}R0(this._lView[1],this._lView)}onDestroy(n){EE(this._lView[1],this._lView,null,n)}markForCheck(){mm(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Jd(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function QL(t,n){Fc(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Pe(902,!1);this._appRef=n}}class pB extends Bc{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Jd(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class bm extends kr{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=fn(n);return new Vc(e,this.ngModule)}}function LE(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class mB{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){const o=this.injector.get(n,Mg,i);return o!==Mg||e===Mg?o:this.parentInjector.get(n,e,i)}}class Vc extends f0{constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function gF(t){return t.map(pF).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return LE(this.componentDef.inputs)}get outputs(){return LE(this.componentDef.outputs)}create(n,e,i,o){let r=(o=o||this.ngModule)instanceof ss?o:null==o?void 0:o.injector;r&&null!==this.componentDef.getStandaloneInjector&&(r=this.componentDef.getStandaloneInjector(r)||r);const s=r?new mB(n,r):n,a=s.get(Pc,null);if(null===a)throw new Pe(407,!1);const l=s.get(gL,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function QF(t,n,e){return t.selectRootElement(n,e===Yo.ShadowDom)}(c,i,this.componentDef.encapsulation):Ug(a.createRenderer(null,this.componentDef),u,function gB(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),f=this.componentDef.onPush?288:272,y=hm(0,null,null,1,0,null,null,null,null,null),N=Kd(null,y,null,f,null,null,a,c,l,s,null);let X,_e;Xp(N);try{const me=function bB(t,n,e,i,o,r){const s=e[1];e[22]=t;const l=Ka(s,22,2,"#host",null),c=l.mergedAttrs=n.hostAttrs;null!==c&&(eh(l,c,!0),null!==t&&(Dd(o,t,c),null!==l.classes&&$g(o,t,l.classes),null!==l.styles&&z0(o,t,l.styles)));const u=i.createRenderer(t,n),d=Kd(e,CE(n),null,n.onPush?32:16,e[22],l,i,u,r||null,null,null);return s.firstCreatePass&&(Od(Cc(l,e),s,n.type),TE(s,l),xE(l,e.length,1)),Xd(e,d),e[22]=d}(d,this.componentDef,N,a,c);if(d)if(i)Dd(c,d,["ng-version",mL.full]);else{const{attrs:Ae,classes:ve}=function mF(t){const n=[],e=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&n.push(r,t[++i]):8===o&&e.push(r);else{if(!Jo(o))break;o=r}i++}return{attrs:n,classes:e}}(this.componentDef.selectors[0]);Ae&&Dd(c,d,Ae),ve&&ve.length>0&&$g(c,d,ve.join(" "))}if(_e=qp(y,22),void 0!==e){const Ae=_e.projection=[];for(let ve=0;ve<this.ngContentSelectors.length;ve++){const Se=e[ve];Ae.push(null!=Se?Array.from(Se):null)}}X=function yB(t,n,e,i){const o=e[1],r=function JF(t,n,e){const i=di();t.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),OE(t,i,n,Za(t,n,1,null),e),AE(t,i));const o=Ec(n,t,i.directiveStart,i);Pi(o,n);const r=xo(i,n);return r&&Pi(r,n),o}(o,e,n);if(t[8]=e[8]=r,null!==i)for(const a of i)a(r,n);if(n.contentQueries){const a=di();n.contentQueries(1,r,a.directiveStart)}const s=di();return!o.firstCreatePass||null===n.hostBindings&&null===n.hostAttrs||(is(s.index),DE(e[1],s,0,s.directiveStart,s.directiveEnd,n),ME(n,r)),r}(me,this.componentDef,N,[CB]),cm(y,N,null)}finally{Jp()}return new _B(this.componentType,X,Wa(_e,N),N,_e)}}class _B extends class cL{}{constructor(n,e,i,o,r){super(),this.location=i,this._rootLView=o,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new pB(o),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let o;if(null!==i&&(o=i[n])){const r=this._rootLView;_m(r[1],r,o,n,e),wE(r,this._tNode.index)}}get injector(){return new ka(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function CB(){const t=di();Sd(Ve()[1],t)}function ke(t){let n=function FE(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let o;if(Zo(t))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Pe(903,!1);o=n.\u0275dir}if(o){if(e){i.push(o);const s=t;s.inputs=ym(t.inputs),s.declaredInputs=ym(t.declaredInputs),s.outputs=ym(t.outputs);const a=o.hostBindings;a&&wB(t,a);const l=o.viewQuery,c=o.contentQueries;if(l&&SB(t,l),c&&AB(t,c),Ip(t.inputs,o.inputs),Ip(t.declaredInputs,o.declaredInputs),Ip(t.outputs,o.outputs),Zo(o)&&o.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(o.data.animation)}}const r=o.features;if(r)for(let s=0;s<r.length;s++){const a=r[s];a&&a.ngInherit&&a(t),a===ke&&(e=!1)}}n=Object.getPrototypeOf(n)}!function EB(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=n+=o.hostVars,o.hostAttrs=Md(o.hostAttrs,e=Md(e,o.hostAttrs))}}(i)}function ym(t){return t===wa?{}:t===ln?[]:t}function SB(t,n){const e=t.viewQuery;t.viewQuery=e?(i,o)=>{n(i,o),e(i,o)}:n}function AB(t,n){const e=t.contentQueries;t.contentQueries=e?(i,o,r)=>{n(i,o,r),e(i,o,r)}:n}function wB(t,n){const e=t.hostBindings;t.hostBindings=e?(i,o)=>{n(i,o),e(i,o)}:n}let nh=null;function Bs(){if(!nh){const t=yn.Symbol;if(t&&t.iterator)nh=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(nh=i)}}}return nh}function jc(t){return!!Cm(t)&&(Array.isArray(t)||!(t instanceof Map)&&Bs()in t)}function Cm(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function gr(t,n,e){return t[n]=e}function ki(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function Vs(t,n,e,i){const o=ki(t,n,e);return ki(t,n+1,i)||o}function Io(t,n,e,i,o,r){const s=Vs(t,n,e,i);return Vs(t,n+2,o,r)||s}function Pt(t,n,e,i){const o=Ve();return ki(o,Ia(),n)&&(Jt(),pr(Gn(),o,t,n,e,i)),Pt}function Ja(t,n,e,i){return ki(t,Ia(),e)?n+Tt(e)+i:xt}function ee(t,n,e,i,o,r,s,a){const l=Ve(),c=Jt(),u=t+22,d=c.firstCreatePass?function PB(t,n,e,i,o,r,s,a,l){const c=n.consts,u=Ka(n,t,4,s||null,ns(c,a));fm(n,e,u,ns(c,l)),Sd(n,u);const d=u.tViews=hm(2,u,i,o,r,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,o,r,s):c.data[u];dr(d,!1);const f=l[11].createComment("");zd(c,l,f,d),Pi(f,l),Xd(l,l[u]=IE(f,l,f,d)),yd(d)&&um(c,l,d),null!=s&&dm(l,d,a)}function io(t){return Oa(function Mk(){return Dt.lFrame.contextLView}(),22+t)}function B(t,n,e){const i=Ve();return ki(i,Ia(),n)&&_o(Jt(),Gn(),i,t,n,i[11],e,!1),B}function Em(t,n,e,i,o){const s=o?"class":"style";_m(t,e,n.inputs[s],s,i)}function R(t,n,e,i){const o=Ve(),r=Jt(),s=22+t,a=o[11],l=o[s]=Ug(a,n,function Fk(){return Dt.lFrame.currentNamespace}()),c=r.firstCreatePass?function NB(t,n,e,i,o,r,s){const a=n.consts,c=Ka(n,t,2,o,ns(a,r));return fm(n,e,c,ns(a,s)),null!==c.attrs&&eh(c,c.attrs,!1),null!==c.mergedAttrs&&eh(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,r,o,0,n,e,i):r.data[s];dr(c,!0);const u=c.mergedAttrs;null!==u&&Dd(a,l,u);const d=c.classes;null!==d&&$g(a,l,d);const f=c.styles;return null!==f&&z0(a,l,f),64!=(64&c.flags)&&zd(r,o,l,c),0===function Ek(){return Dt.lFrame.elementDepthCount}()&&Pi(l,o),function Sk(){Dt.lFrame.elementDepthCount++}(),yd(c)&&(um(r,o,c),yE(r,c,o)),null!==i&&dm(o,c),R}function L(){let t=di();$p()?Yp():(t=t.parent,dr(t,!1));const n=t;!function Ak(){Dt.lFrame.elementDepthCount--}();const e=Jt();return e.firstCreatePass&&(Sd(e,t),jp(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Hk(t){return 0!=(16&t.flags)}(n)&&Em(e,n,Ve(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Gk(t){return 0!=(32&t.flags)}(n)&&Em(e,n,Ve(),n.stylesWithoutHost,!1),L}function rt(t,n,e,i){return R(t,n,e,i),L(),rt}function Si(t,n,e){const i=Ve(),o=Jt(),r=t+22,s=o.firstCreatePass?function LB(t,n,e,i,o){const r=n.consts,s=ns(r,i),a=Ka(n,t,8,"ng-container",s);return null!==s&&eh(a,s,!0),fm(n,e,a,ns(r,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(r,o,i,n,e):o.data[r];dr(s,!0);const a=i[r]=i[11].createComment("");return zd(o,i,a,s),Pi(a,i),yd(s)&&(um(o,i,s),yE(o,s,i)),null!=e&&dm(i,s),Si}function Ai(){let t=di();const n=Jt();return $p()?Yp():(t=t.parent,dr(t,!1)),n.firstCreatePass&&(Sd(n,t),jp(t)&&n.queries.elementEnd(t)),Ai}function dn(t,n,e){return Si(t,n,e),Ai(),dn}function mt(){return Ve()}function Hc(t){return!!t&&"function"==typeof t.then}function $E(t){return!!t&&"function"==typeof t.subscribe}const Sm=$E;function Ie(t,n,e,i){const o=Ve(),r=Jt(),s=di();return YE(r,o,o[11],s,t,n,0,i),Ie}function Gc(t,n){const e=di(),i=Ve(),o=Jt();return YE(o,i,kE(Kp(o.data),e,i),e,t,n),Gc}function YE(t,n,e,i,o,r,s,a){const l=yd(i),u=t.firstCreatePass&&PE(t),d=n[8],f=RE(n);let y=!0;if(3&i.type||a){const _e=xo(i,n),me=a?a(_e):_e,Ae=f.length,ve=a?Ye=>a(ti(Ye[i.index])):i.index;let Se=null;if(!a&&l&&(Se=function FB(t,n,e,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const s=o[r];if(s===e&&o[r+1]===i){const a=n[7],l=o[r+2];return a.length>l?a[l]:null}"string"==typeof s&&(r+=2)}return null}(t,n,o,i.index)),null!==Se)(Se.__ngLastListenerFn__||Se).__ngNextListenerFn__=r,Se.__ngLastListenerFn__=r,y=!1;else{r=KE(i,n,d,r,!1);const Ye=e.listen(me,o,r);f.push(r,Ye),u&&u.push(o,ve,Ae,Ae+1)}}else r=KE(i,n,d,r,!1);const N=i.outputs;let X;if(y&&null!==N&&(X=N[o])){const _e=X.length;if(_e)for(let me=0;me<_e;me+=2){const gt=n[X[me]][X[me+1]].subscribe(r),Zt=f.length;f.push(r,gt),u&&u.push(o,i.index,Zt,-(Zt+1))}}}function QE(t,n,e,i){try{return!1!==e(i)}catch(o){return NE(t,o),!1}}function KE(t,n,e,i,o){return function r(s){if(s===Function)return i;mm(2&t.flags?po(t.index,n):n);let l=QE(n,0,i,s),c=r.__ngNextListenerFn__;for(;c;)l=QE(n,0,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function re(t=1){return function Rk(t){return(Dt.lFrame.contextLView=function Pk(t,n){for(;t>0;)n=n[15],t--;return n}(t,Dt.lFrame.contextLView))[8]}(t)}function BB(t,n){let e=null;const i=function uF(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let o=0;o<n.length;o++){const r=n[o];if("*"!==r){if(null===i?Y0(t,r,!0):fF(i,r))return o}else e=o}return e}function kn(t){const n=Ve()[16][6];if(!n.projection){const i=n.projection=wc(t?t.length:1,null),o=i.slice();let r=n.child;for(;null!==r;){const s=t?BB(r,t):0;null!==s&&(o[s]?o[s].projectionNext=r:i[s]=r,o[s]=r),r=r.next}}}function Ot(t,n=0,e){const i=Ve(),o=Jt(),r=Ka(o,22+t,16,null,e||null);null===r.projection&&(r.projection=n),Yp(),64!=(64&r.flags)&&function iF(t,n,e){G0(n[11],0,n,e,P0(t,e,n),F0(e.parent||n[6],e,n))}(o,i,r)}function Xt(t,n,e){return Am(t,"",n,"",e),Xt}function Am(t,n,e,i,o){const r=Ve(),s=Ja(r,n,e,i);return s!==xt&&_o(Jt(),Gn(),r,t,s,r[11],o,!1),Am}function rS(t,n,e,i,o){const r=t[e+1],s=null===n;let a=i?er(r):Br(r),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];UB(t[a],n)&&(l=!0,t[a+1]=i?em(u):Xg(u)),a=i?er(u):Br(u)}l&&(t[e+1]=i?Xg(r):em(r))}function UB(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Va(t,n)>=0}const fi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function sS(t){return t.substring(fi.key,fi.keyEnd)}function aS(t,n){const e=fi.textEnd;return e===n?-1:(n=fi.keyEnd=function qB(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,fi.key=n,e),al(t,n,e))}function al(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function oo(t,n,e){return tr(t,n,e,!1),oo}function ft(t,n){return tr(t,n,null,!0),ft}function vr(t,n){for(let e=function GB(t){return function cS(t){fi.key=0,fi.keyEnd=0,fi.value=0,fi.valueEnd=0,fi.textEnd=t.length}(t),aS(t,al(t,0,fi.textEnd))}(n);e>=0;e=aS(n,e))mo(t,sS(n),!0)}function tr(t,n,e,i){const o=Ve(),r=Jt(),s=Ir(2);r.firstUpdatePass&&fS(r,t,s,i),n!==xt&&ki(o,s,n)&&gS(r,r.data[Gi()],o,o[11],t,o[s+1]=function n2(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=bn(vo(t)))),t}(n,e),i,s)}function hS(t,n){return n>=t.expandoStartIndex}function fS(t,n,e,i){const o=t.data;if(null===o[e+1]){const r=o[Gi()],s=hS(t,e);vS(r,i)&&null===n&&!s&&(n=!1),n=function KB(t,n,e,i){const o=Kp(t);let r=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(e=zc(e=wm(null,t,n,e,i),n.attrs,i),r=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=wm(o,t,n,e,i),null===r){let l=function ZB(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Br(i))return t[er(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=wm(null,t,n,l[1],i),l=zc(l,n.attrs,i),function XB(t,n,e,i){t[er(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else r=function JB(t,n,e){let i;const o=n.directiveEnd;for(let r=1+n.directiveStylingLast;r<o;r++)i=zc(i,t[r].hostAttrs,e);return zc(i,n.attrs,e)}(t,n,i)}return void 0!==r&&(i?n.residualClasses=r:n.residualStyles=r),e}(o,r,n,i),function VB(t,n,e,i,o,r){let s=r?n.classBindings:n.styleBindings,a=er(s),l=Br(s);t[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Va(d,u)>0)&&(c=!0)}else u=e;if(o)if(0!==l){const f=er(t[a+1]);t[i+1]=$d(f,a),0!==f&&(t[f+1]=Jg(t[f+1],i)),t[a+1]=function NF(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=$d(a,0),0!==a&&(t[a+1]=Jg(t[a+1],i)),a=i;else t[i+1]=$d(l,0),0===a?a=i:t[l+1]=Jg(t[l+1],i),l=i;c&&(t[i+1]=Xg(t[i+1])),rS(t,u,i,!0),rS(t,u,i,!1),function jB(t,n,e,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof n&&Va(r,n)>=0&&(e[i+1]=em(e[i+1]))}(n,u,t,i,r),s=$d(a,l),r?n.classBindings=s:n.styleBindings=s}(o,r,n,e,s,i)}}function wm(t,n,e,i,o){let r=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(r=n[a],i=zc(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function zc(t,n,e){const i=e?1:2;let o=-1;if(null!==n)for(let r=0;r<n.length;r++){const s=n[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),mo(t,s,!!e||n[++r]))}return void 0===t?null:t}function gS(t,n,e,i,o,r,s,a){if(!(3&n.type))return;const l=t.data,c=l[a+1];oh(function uE(t){return 1==(1&t)}(c)?mS(l,n,e,o,Br(c),s):void 0)||(oh(r)||function cE(t){return 2==(2&t)}(c)&&(r=mS(l,null,e,o,a,s)),function rF(t,n,e,i,o){if(n)o?t.addClass(e,i):t.removeClass(e,i);else{let r=-1===i.indexOf("-")?void 0:no.DashCase;null==o?t.removeStyle(e,i,r):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),r|=no.Important),t.setStyle(e,i,o,r))}}(i,s,Cd(Gi(),e),o,r))}function mS(t,n,e,i,o,r){const s=null===n;let a;for(;o>0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let f=e[o+1];f===xt&&(f=d?ln:void 0);let y=d?lg(f,i):u===i?f:void 0;if(c&&!oh(y)&&(y=lg(l,i)),oh(y)&&(a=y,s))return a;const N=t[o+1];o=s?er(N):Br(N)}if(null!==n){let l=r?n.residualClasses:n.residualStyles;null!=l&&(a=lg(l,i))}return a}function oh(t){return void 0!==t}function vS(t,n){return 0!=(t.flags&(n?16:32))}function fe(t,n=""){const e=Ve(),i=Jt(),o=t+22,r=i.firstCreatePass?Ka(i,o,1,n,null):i.data[o],s=e[o]=function jg(t,n){return t.createText(n)}(e[11],n);zd(i,e,s,r),dr(r,!1)}function He(t){return zn("",t,""),He}function zn(t,n,e){const i=Ve(),o=Ja(i,t,n,e);return o!==xt&&function Vr(t,n,e){const i=Cd(n,t);!function O0(t,n,e){t.setValue(n,e)}(t[11],i,e)}(i,Gi(),o),zn}function DS(t,n,e){!function nr(t,n,e,i){const o=Jt(),r=Ir(2);o.firstUpdatePass&&fS(o,null,r,i);const s=Ve();if(e!==xt&&ki(s,r,e)){const a=o.data[Gi()];if(vS(a,i)&&!hS(o,r)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Rp(l,e||"")),Em(o,a,s,e,i)}else!function t2(t,n,e,i,o,r,s,a){o===xt&&(o=ln);let l=0,c=0,u=0<o.length?o[0]:null,d=0<r.length?r[0]:null;for(;null!==u||null!==d;){const f=l<o.length?o[l+1]:void 0,y=c<r.length?r[c+1]:void 0;let X,N=null;u===d?(l+=2,c+=2,f!==y&&(N=d,X=y)):null===d||null!==u&&u<d?(l+=2,N=u):(c+=2,N=d,X=y),null!==N&&gS(t,n,e,i,N,X,s,a),u=l<o.length?o[l]:null,d=c<r.length?r[c]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function e2(t,n,e){if(null==e||""===e)return ln;const i=[],o=vo(e);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&n(i,o);return i}(t,n,e),i,r)}}(mo,vr,Ja(Ve(),t,n,e),!0)}function cs(t,n,e){const i=Ve();return ki(i,Ia(),n)&&_o(Jt(),Gn(),i,t,n,i[11],e,!0),cs}function qc(t,n,e){const i=Ve();if(ki(i,Ia(),n)){const r=Jt(),s=Gn();_o(r,s,i,t,n,kE(Kp(r.data),s,i),e,!0)}return qc}const js=void 0;var E2=["en",[["a","p"],["AM","PM"],js],[["AM","PM"],js,js],[["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"]],js,[["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"]],js,[["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}",js,"{1} 'at' {0}",js],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function C2(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ll={};function qi(t){const n=function S2(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=FS(n);if(e)return e;const i=n.split("-")[0];if(e=FS(i),e)return e;if("en"===i)return E2;throw new Pe(701,!1)}function FS(t){return t in ll||(ll[t]=yn.ng&&yn.ng.common&&yn.ng.common.locales&&yn.ng.common.locales[t]),ll[t]}var tt=(()=>((tt=tt||{})[tt.LocaleId=0]="LocaleId",tt[tt.DayPeriodsFormat=1]="DayPeriodsFormat",tt[tt.DayPeriodsStandalone=2]="DayPeriodsStandalone",tt[tt.DaysFormat=3]="DaysFormat",tt[tt.DaysStandalone=4]="DaysStandalone",tt[tt.MonthsFormat=5]="MonthsFormat",tt[tt.MonthsStandalone=6]="MonthsStandalone",tt[tt.Eras=7]="Eras",tt[tt.FirstDayOfWeek=8]="FirstDayOfWeek",tt[tt.WeekendRange=9]="WeekendRange",tt[tt.DateFormat=10]="DateFormat",tt[tt.TimeFormat=11]="TimeFormat",tt[tt.DateTimeFormat=12]="DateTimeFormat",tt[tt.NumberSymbols=13]="NumberSymbols",tt[tt.NumberFormats=14]="NumberFormats",tt[tt.CurrencyCode=15]="CurrencyCode",tt[tt.CurrencySymbol=16]="CurrencySymbol",tt[tt.CurrencyName=17]="CurrencyName",tt[tt.Currencies=18]="Currencies",tt[tt.Directionality=19]="Directionality",tt[tt.PluralCase=20]="PluralCase",tt[tt.ExtraData=21]="ExtraData",tt))();const cl="en-US";let BS=cl;function Tm(t,n,e,i,o){if(t=Et(t),Array.isArray(t))for(let r=0;r<t.length;r++)Tm(t[r],n,e,i,o);else{const r=Jt(),s=Ve();let a=Ns(t)?t:Et(t.provide),l=h0(t);const c=di(),u=1048575&c.providerIndexes,d=c.directiveStart,f=c.providerIndexes>>20;if(Ns(t)||!t.multi){const y=new bc(l,o,h),N=Om(a,n,o?u:u+f,d);-1===N?(Od(Cc(c,s),r,a),xm(r,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(y),s.push(y)):(e[N]=y,s[N]=y)}else{const y=Om(a,n,u+f,d),N=Om(a,n,u,u+f),X=y>=0&&e[y],_e=N>=0&&e[N];if(o&&!_e||!o&&!X){Od(Cc(c,s),r,a);const me=function yV(t,n,e,i,o){const r=new bc(t,e,h);return r.multi=[],r.index=n,r.componentProviders=0,cA(r,o,i&&!e),r}(o?bV:_V,e.length,o,i,l);!o&&_e&&(e[N].providerFactory=me),xm(r,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(me),s.push(me)}else xm(r,t,y>-1?y:N,cA(e[o?N:y],l,!o&&i));!o&&i&&_e&&e[N].componentProviders++}}}function xm(t,n,e,i){const o=Ns(n),r=function tL(t){return!!t.useClass}(n);if(o||r){const l=(r?Et(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function cA(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Om(t,n,e,i){for(let o=e;o<i;o++)if(n[o]===t)return o;return-1}function _V(t,n,e,i){return Im(this.multi,[])}function bV(t,n,e,i){const o=this.multi;let r;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Ec(e,e[1],this.providerFactory.index,i);r=a.slice(0,s),Im(o,r);for(let l=s;l<a.length;l++)r.push(a[l])}else r=[],Im(o,r);return r}function Im(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function kt(t,n=[]){return e=>{e.providersResolver=(i,o)=>function vV(t,n,e){const i=Jt();if(i.firstCreatePass){const o=Zo(t);Tm(e,i.data,i.blueprint,o,!0),Tm(n,i.data,i.blueprint,o,!1)}}(i,o?o(t):t,n)}}class Us{}class uA{}class dA extends Us{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new bm(this);const i=ho(n);this._bootstrapComponents=Fr(i.bootstrap),this._r3Injector=tE(n,e,[{provide:Us,useValue:this},{provide:kr,useValue:this.componentFactoryResolver}],bn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Rm extends uA{constructor(n){super(),this.moduleType=n}create(n){return new dA(this.moduleType,n)}}class EV extends Us{constructor(n,e,i){super(),this.componentFactoryResolver=new bm(this),this.instance=null;const o=new d0([...n,{provide:Us,useValue:this},{provide:kr,useValue:this.componentFactoryResolver}],e||Hd(),i,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ch(t,n,e=null){return new EV(t,n,e).injector}let SV=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=a0(0,e.type),o=i.length>0?ch([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=De({token:t,providedIn:"environment",factory:()=>new t(ie(ss))}),t})();function hA(t){t.getStandaloneInjector=n=>n.get(SV).getOrCreateStandaloneInjector(t)}function _i(t,n,e,i){return EA(Ve(),Hi(),t,n,e,i)}function km(t,n,e,i,o,r,s){return function wA(t,n,e,i,o,r,s,a,l){const c=n+e;return Io(t,c,o,r,s,a)?gr(t,c+4,l?i.call(l,o,r,s,a):i(o,r,s,a)):Zc(t,c+4)}(Ve(),Hi(),t,n,e,i,o,r,s)}function CA(t,n,e,i,o,r,s,a,l,c){const u=Hi()+t,d=Ve();let f=Io(d,u,e,i,o,r);return function ih(t,n,e,i,o){const r=Vs(t,n,e,i);return ki(t,n+2,o)||r}(d,u+4,s,a,l)||f?gr(d,u+7,c?n.call(c,e,i,o,r,s,a,l):n(e,i,o,r,s,a,l)):function Uc(t,n){return t[n]}(d,u+7)}function Zc(t,n){const e=t[n];return e===xt?void 0:e}function EA(t,n,e,i,o,r){const s=n+e;return ki(t,s,o)?gr(t,s+1,r?i.call(r,o):i(o)):Zc(t,s+1)}function Me(t,n){const e=Jt();let i;const o=t+22;e.firstCreatePass?(i=function FV(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[o]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(o,i.onDestroy)):i=e.data[o];const r=i.factory||(i.factory=Ps(i.type)),s=Do(h);try{const a=Td(!1),l=r();return Td(a),function kB(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Ve(),o,l),l}finally{Do(s)}}function Re(t,n,e){const i=t+22,o=Ve(),r=Oa(o,i);return Xc(o,i)?EA(o,Hi(),n,r.transform,e,r):r.transform(e)}function Hs(t,n,e,i){const o=t+22,r=Ve(),s=Oa(r,o);return Xc(r,o)?function SA(t,n,e,i,o,r,s){const a=n+e;return Vs(t,a,o,r)?gr(t,a+2,s?i.call(s,o,r):i(o,r)):Zc(t,a+2)}(r,Hi(),n,s.transform,e,i,s):s.transform(e,i)}function Xc(t,n){return t[1].data[n].pure}function Nm(t){return n=>{setTimeout(t,void 0,n)}}const xe=class UV extends ce{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){var o,r,s;let a=n,l=e||(()=>null),c=i;if(n&&"object"==typeof n){const d=n;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(r=d.error)||void 0===r?void 0:r.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Nm(l),a&&(a=Nm(a)),c&&(c=Nm(c)));const u=super.subscribe({next:a,error:l,complete:c});return n instanceof E&&n.add(u),u}};function HV(){return this._results[Bs()]()}class us{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Bs(),i=us.prototype;i[e]||(i[e]=HV)}get changes(){return this._changes||(this._changes=new xe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const o=go(n);(this._changesDetected=!function Jk(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let o=t[i],r=n[i];if(e&&(o=e(o),r=e(r)),r!==o)return!1}return!0}(i._results,o,e))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let yt=(()=>{class t{}return t.__NG_ELEMENT_ID__=qV,t})();const GV=yt,zV=class extends GV{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,o=Kd(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(i)),cm(i,o,n),new Bc(o)}};function qV(){return uh(di(),Ve())}function uh(t,n){return 4&t.type?new zV(n,t,Wa(t,n)):null}let pn=(()=>{class t{}return t.__NG_ELEMENT_ID__=WV,t})();function WV(){return xA(di(),Ve())}const $V=pn,MA=class extends $V{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Wa(this._hostTNode,this._hostLView)}get injector(){return new ka(this._hostTNode,this._hostLView)}get parentInjector(){const n=xd(this._hostTNode,this._hostLView);if(CC(n)){const e=Pa(n,this._hostLView),i=Ra(n);return new ka(e[1].data[i+8],e)}return new ka(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=TA(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let o,r;"number"==typeof i?o=i:null!=i&&(o=i.index,r=i.injector);const s=n.createEmbeddedView(e||{},r);return this.insert(s,o),s}createComponent(n,e,i,o,r){const s=n&&!function Ac(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,o=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef}const l=s?n:new Vc(fn(n)),c=i||this.parentInjector;if(!r&&null==l.ngModule){const f=(s?c:this.parentInjector).get(ss,null);f&&(r=f)}const u=l.create(c,o,void 0,r);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,o=i[1];if(function Ck(t){return Ko(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],f=new MA(d,d[6],d[3]);f.detach(f.indexOf(n))}}const r=this._adjustIndex(e),s=this._lContainer;!function ZL(t,n,e,i){const o=10+i,r=e.length;i>0&&(e[o-1][4]=n),i<r-10?(n[4]=e[o],RC(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const s=n[17];null!==s&&e!==s&&function XL(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(s,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(o,i,s,r);const a=qg(r,s),l=i[11],c=Gd(l,s[7]);return null!==c&&function YL(t,n,e,i,o,r){i[0]=o,i[6]=n,Fc(t,i,e,1,o,r)}(o,s[6],l,i,c,a),n.attachToViewContainerRef(),RC(Lm(s),r,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=TA(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=Hg(this._lContainer,e);i&&(Rd(Lm(this._lContainer),e),R0(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=Hg(this._lContainer,e);return i&&null!=Rd(Lm(this._lContainer),e)?new Bc(i):null}_adjustIndex(n,e=0){return null==n?this.length+e:n}};function TA(t){return t[8]}function Lm(t){return t[8]||(t[8]=[])}function xA(t,n){let e;const i=n[t.index];if(Ko(i))e=i;else{let o;if(8&t.type)o=ti(i);else{const r=n[11];o=r.createComment("");const s=xo(t,n);Ls(r,Gd(r,s),o,function nF(t,n){return t.nextSibling(n)}(r,s),!1)}n[t.index]=e=IE(i,n,o,t),Xd(n,e)}return new MA(e,t,n)}class Fm{constructor(n){this.queryList=n,this.matches=null}clone(){return new Fm(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bm{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,o=[];for(let r=0;r<i;r++){const s=e.getByIndex(r);o.push(this.queries[s.indexInDeclarationView].clone())}return new Bm(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==kA(n,e).matches&&this.queries[e].setDirty()}}class OA{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Vm{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const o=null!==e?e.length:0,r=this.getByIndex(i).embeddedTView(n,o);r&&(r.indexInDeclarationView=i,null!==e?e.push(r):e=[r])}return null!==e?new Vm(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class jm{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new jm(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const r=i[o];this.matchTNodeWithReadOption(n,e,KV(e,r)),this.matchTNodeWithReadOption(n,e,Id(e,n,r,!1,!1))}else i===yt?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,Id(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===Ue||o===pn||o===yt&&4&e.type)this.addMatch(e.index,-2);else{const r=Id(e,n,o,!1,!1);null!==r&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function KV(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function XV(t,n,e,i){return-1===e?function ZV(t,n){return 11&t.type?Wa(t,n):4&t.type?uh(t,n):null}(n,t):-2===e?function JV(t,n,e){return e===Ue?Wa(n,t):e===yt?uh(n,t):e===pn?xA(n,t):void 0}(t,n,i):Ec(t,t[1],e,n)}function IA(t,n,e,i){const o=n[19].queries[i];if(null===o.matches){const r=t.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:XV(n,r[c],s[l+1],e.metadata.read))}o.matches=a}return o.matches}function Um(t,n,e,i){const o=t.queries.getByIndex(e),r=o.matches;if(null!==r){const s=IA(t,n,o,e);for(let a=0;a<r.length;a+=2){const l=r[a];if(l>0)i.push(s[a/2]);else{const c=r[a+1],u=n[-l];for(let d=10;d<u.length;d++){const f=u[d];f[17]===f[3]&&Um(f[1],f,c,i)}if(null!==u[9]){const d=u[9];for(let f=0;f<d.length;f++){const y=d[f];Um(y[1],y,c,i)}}}}}return i}function Ne(t){const n=Ve(),e=Jt(),i=dC();Zp(i+1);const o=kA(e,i);if(t.dirty&&function yk(t){return 4==(4&t[2])}(n)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const r=o.crossesNgTemplate?Um(e,n,i,[]):IA(e,n,o,i);t.reset(r,fL),t.notifyOnChanges()}return!0}return!1}function Mt(t,n,e){const i=Jt();i.firstCreatePass&&(PA(i,new OA(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),RA(i,Ve(),n)}function nt(t,n,e,i){const o=Jt();if(o.firstCreatePass){const r=di();PA(o,new OA(n,e,i),r.index),function t3(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(o,t),2==(2&e)&&(o.staticContentQueries=!0)}RA(o,Ve(),e)}function Le(){return function e3(t,n){return t[19].queries[n].queryList}(Ve(),dC())}function RA(t,n,e){const i=new us(4==(4&e));EE(t,n,i,i.destroy),null===n[19]&&(n[19]=new Bm),n[19].queries.push(new Fm(i))}function PA(t,n,e){null===t.queries&&(t.queries=new Vm),t.queries.track(new jm(n,e))}function kA(t,n){return t.queries.getByIndex(n)}function mn(t,n){return uh(t,n)}function hh(...t){}const fh=new Be("Application Initializer");let ph=(()=>{class t{constructor(e){this.appInits=e,this.resolve=hh,this.reject=hh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const r=this.appInits[o]();if(Hc(r))e.push(r);else if(Sm(r)){const s=new Promise((a,l)=>{r.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(o=>{this.reject(o)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(ie(fh,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const hl=new Be("AppId",{providedIn:"root",factory:function JA(){return`${Wm()}${Wm()}${Wm()}`}});function Wm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ew=new Be("Platform Initializer"),Ro=new Be("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),$m=new Be("appBootstrapListener"),bi=new Be("AnimationModuleType");let C3=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const _r=new Be("LocaleId",{providedIn:"root",factory:()=>gn(_r,_t.Optional|_t.SkipSelf)||function E3(){return"undefined"!=typeof $localize&&$localize.locale||cl}()});class A3{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Ym=(()=>{class t{compileModuleSync(e){return new Rm(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),r=Fr(ho(e).declarations).reduce((s,a)=>{const l=fn(a);return l&&s.push(new Vc(l)),s},[]);return new A3(i,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const M3=(()=>Promise.resolve(0))();function Qm(t){"undefined"==typeof Zone?M3.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class dt{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xe(!1),this.onMicrotaskEmpty=new xe(!1),this.onStable=new xe(!1),this.onError=new xe(!1),"undefined"==typeof Zone)throw new Pe(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const r=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new r("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function T3(){let t=yn.requestAnimationFrame,n=yn.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function I3(t){const n=()=>{!function O3(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(yn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Zm(t),t.isCheckStableRunning=!0,Km(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Zm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,r,s,a)=>{try{return iw(t),e.invokeTask(o,r,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===r.type||t.shouldCoalesceRunChangeDetection)&&n(),ow(t)}},onInvoke:(e,i,o,r,s,a,l)=>{try{return iw(t),e.invoke(o,r,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),ow(t)}},onHasTask:(e,i,o,r)=>{e.hasTask(o,r),i===o&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Zm(t),Km(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,i,o,r)=>(e.handleError(o,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!dt.isInAngularZone())throw new Pe(909,!1)}static assertNotInAngularZone(){if(dt.isInAngularZone())throw new Pe(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,o){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+o,n,x3,hh,hh);try{return r.runTask(s,e,i)}finally{r.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const x3={};function Km(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function iw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ow(t){t._nesting--,Km(t)}class R3{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xe,this.onMicrotaskEmpty=new xe,this.onStable=new xe,this.onError=new xe}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,o){return n.apply(e,i)}}const rw=new Be(""),gh=new Be("");let eu,Xm=(()=>{class t{constructor(e,i,o){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,eu||(function P3(t){eu=t}(o),o.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{dt.assertNotInAngularZone(),Qm(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Qm(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,o){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==r),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(ie(dt),ie(Jm),ie(gh))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),Jm=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){var o;return null!==(o=null==eu?void 0:eu.findTestabilityInTree(this,e,i))&&void 0!==o?o:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),br=null;const sw=new Be("AllowMultipleToken"),ev=new Be("PlatformDestroyListeners");class aw{constructor(n,e){this.name=n,this.token=e}}function cw(t,n,e=[]){const i=`Platform: ${n}`,o=new Be(i);return(r=[])=>{let s=tv();if(!s||s.injector.get(sw,!1)){const a=[...e,...r,{provide:o,useValue:!0}];t?t(a):function L3(t){if(br&&!br.get(sw,!1))throw new Pe(400,!1);br=t;const n=t.get(dw);(function lw(t){const n=t.get(ew,null);n&&n.forEach(e=>e())})(t)}(function uw(t=[],n){return En.create({name:n,providers:[{provide:Sg,useValue:"platform"},{provide:ev,useValue:new Set([()=>br=null])},...t]})}(a,i))}return function B3(t){const n=tv();if(!n)throw new Pe(401,!1);return n}()}}function tv(){var t;return null!==(t=null==br?void 0:br.get(dw))&&void 0!==t?t:null}let dw=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const o=function fw(t,n){let e;return e="noop"===t?new R3:("zone.js"===t?void 0:t)||new dt(n),e}(null==i?void 0:i.ngZone,function hw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),r=[{provide:dt,useValue:o}];return o.run(()=>{const s=En.create({providers:r,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(Lr,null);if(!l)throw new Pe(402,!1);return o.runOutsideAngular(()=>{const c=o.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{mh(this._modules,a),c.unsubscribe()})}),function pw(t,n,e){try{const i=e();return Hc(i)?i.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,o,()=>{const c=a.injector.get(ph);return c.runInitializers(),c.donePromise.then(()=>(function VS(t){uo(t,"Expected localeId to be defined"),"string"==typeof t&&(BS=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(_r,cl)||cl),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const o=gw({},i);return function k3(t,n,e){const i=new Rm(e);return Promise.resolve(i)}(0,0,e).then(r=>this.bootstrapModuleFactory(r,o))}_moduleDoBootstrap(e){const i=e.injector.get(Gs);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new Pe(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Pe(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(ev,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(ie(En))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function gw(t,n){return Array.isArray(n)?n.reduce(gw,t):Object.assign(Object.assign({},t),n)}let Gs=(()=>{class t{constructor(e,i,o){this._zone=e,this._injector=i,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const r=new b(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new b(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{dt.assertNotInAngularZone(),Qm(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{dt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=Vi(r,s.pipe(Gy()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const o=e instanceof f0;if(!this._injector.get(ph).done)throw!o&&function Da(t){const n=fn(t)||ji(t)||Ui(t);return null!==n&&n.standalone}(e),new Pe(405,false);let s;s=o?e:this._injector.get(kr).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function N3(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Us),c=s.create(En.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(rw,null);return null==d||d.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),mh(this.components,c),null==d||d.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new Pe(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;mh(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get($m,[]).concat(this._bootstrapListeners).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>mh(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Pe(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(ie(dt),ie(ss),ie(Lr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function mh(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let vw=!0,zt=(()=>{class t{}return t.__NG_ELEMENT_ID__=U3,t})();function U3(t){return function H3(t,n,e){if(bd(t)&&!e){const i=po(t.index,n);return new Bc(i,i)}return 47&t.type?new Bc(n[16],n):null}(di(),Ve(),16==(16&t))}class Ew{constructor(){}supports(n){return jc(n)}create(n){return new Y3(n)}}const $3=(t,n)=>n;class Y3{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||$3}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,o=0,r=null;for(;e||i;){const s=!i||e&&e.currentIndex<Aw(i,o,r)?e:i,a=Aw(s,o,r),l=s.currentIndex;if(s===i)o--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)o++;else{r||(r=[]);const c=a-o,u=l-o;if(c!=u){for(let f=0;f<c;f++){const y=f<r.length?r[f]:r[f]=0,N=y+f;u<=N&&N<c&&(r[f]=y+1)}r[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!jc(n))throw new Pe(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let o,r,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)r=n[a],s=this._trackByFn(a,r),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,r,s,a)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,s,a),i=!0),e=e._next}else o=0,function OB(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Bs()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),i=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,o){let r;return null===n?r=this._itTail:(r=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,r,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,r,o)):n=this._addAfter(new Q3(e,i),r,o),n}_verifyReinsertion(n,e,i,o){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==r?n=this._reinsertAfter(r,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,r=n._nextRemoved;return null===o?this._removalsHead=r:o._nextRemoved=r,null===r?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Sw),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Q3{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K3{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Sw{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new K3,this.map.set(e,i)),i.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Aw(t,n,e){const i=t.previousIndex;if(null===i)return i;let o=0;return e&&i<e.length&&(o=e[i]),i+n+o}class ww{constructor(){}supports(n){return n instanceof Map||Cm(n)}create(){return new Z3}}class Z3{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||Cm(n)))throw new Pe(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,o)=>{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,e);const r=o._prev,s=o._next;return r&&(r._next=s),s&&(s._prev=r),o._next=null,o._prev=null,o}const i=new X3(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class X3{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Dw(){return new tu([new Ew])}let tu=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Dw()),deps:[[t,new Ua,new rs]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(null!=i)return i;throw new Pe(901,!1)}}return t.\u0275prov=De({token:t,providedIn:"root",factory:Dw}),t})();function Mw(){return new qs([new ww])}let qs=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const o=i.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Mw()),deps:[[t,new Ua,new rs]]}}find(e){const i=this.factories.find(o=>o.supports(e));if(i)return i;throw new Pe(901,!1)}}return t.\u0275prov=De({token:t,providedIn:"root",factory:Mw}),t})();const tj=cw(null,"core",[]);let nj=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(ie(Gs))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();let bh=null;function yr(){return bh}const pt=new Be("DocumentToken");let sv=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:function(){return function sj(){return ie(Tw)}()},providedIn:"platform"}),t})();const aj=new Be("Location Initialized");let Tw=(()=>{class t extends sv{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yr().getBaseHref(this._doc)}onPopState(e){const i=yr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=yr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,o){xw()?this._history.pushState(e,i,o):this.location.hash=o}replaceState(e,i,o){xw()?this._history.replaceState(e,i,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:function(){return function lj(){return new Tw(ie(pt))}()},providedIn:"platform"}),t})();function xw(){return!!window.history.pushState}function av(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Ow(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Hr(t){return t&&"?"!==t[0]?"?"+t:t}let Ws=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:function(){return gn(Iw)},providedIn:"root"}),t})();const lv=new Be("appBaseHref");let Iw=(()=>{class t extends Ws{constructor(e,i){var o,r,s;super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=null!==(s=null!==(o=null!=i?i:this._platformLocation.getBaseHrefFromDOM())&&void 0!==o?o:null===(r=gn(pt).location)||void 0===r?void 0:r.origin)&&void 0!==s?s:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return av(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Hr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,r){const s=this.prepareExternalUrl(o+Hr(r));this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){const s=this.prepareExternalUrl(o+Hr(r));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(ie(sv),ie(lv,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cj=(()=>{class t extends Ws{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=av(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,r){let s=this.prepareExternalUrl(o+Hr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,o,r){let s=this.prepareExternalUrl(o+Hr(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){var i,o;null===(o=(i=this._platformLocation).historyGo)||void 0===o||o.call(i,e)}}return t.\u0275fac=function(e){return new(e||t)(ie(sv),ie(lv,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),nu=(()=>{class t{constructor(e){this._subject=new xe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=Ow(Rw(i)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){var e;null===(e=this._urlChangeSubscription)||void 0===e||e.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Hr(i))}normalize(e){return t.stripTrailingSlash(function dj(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,Rw(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hr(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Hr(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){var i,o;null===(o=(i=this._locationStrategy).historyGo)||void 0===o||o.call(i,e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{var i;const o=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(o,1),0===this._urlChangeListeners.length&&(null===(i=this._urlChangeSubscription)||void 0===i||i.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i,complete:o})}}return t.normalizeQueryParams=Hr,t.joinWithSlash=av,t.stripTrailingSlash=Ow,t.\u0275fac=function(e){return new(e||t)(ie(Ws))},t.\u0275prov=De({token:t,factory:function(){return function uj(){return new nu(ie(Ws))}()},providedIn:"root"}),t})();function Rw(t){return t.replace(/\/index.html$/,"")}var ro=(()=>((ro=ro||{})[ro.Decimal=0]="Decimal",ro[ro.Percent=1]="Percent",ro[ro.Currency=2]="Currency",ro[ro.Scientific=3]="Scientific",ro))(),Zn=(()=>((Zn=Zn||{})[Zn.Format=0]="Format",Zn[Zn.Standalone=1]="Standalone",Zn))(),Qt=(()=>((Qt=Qt||{})[Qt.Narrow=0]="Narrow",Qt[Qt.Abbreviated=1]="Abbreviated",Qt[Qt.Wide=2]="Wide",Qt[Qt.Short=3]="Short",Qt))(),Nn=(()=>((Nn=Nn||{})[Nn.Short=0]="Short",Nn[Nn.Medium=1]="Medium",Nn[Nn.Long=2]="Long",Nn[Nn.Full=3]="Full",Nn))(),bt=(()=>((bt=bt||{})[bt.Decimal=0]="Decimal",bt[bt.Group=1]="Group",bt[bt.List=2]="List",bt[bt.PercentSign=3]="PercentSign",bt[bt.PlusSign=4]="PlusSign",bt[bt.MinusSign=5]="MinusSign",bt[bt.Exponential=6]="Exponential",bt[bt.SuperscriptingExponent=7]="SuperscriptingExponent",bt[bt.PerMille=8]="PerMille",bt[bt.Infinity=9]="Infinity",bt[bt.NaN=10]="NaN",bt[bt.TimeSeparator=11]="TimeSeparator",bt[bt.CurrencyDecimal=12]="CurrencyDecimal",bt[bt.CurrencyGroup=13]="CurrencyGroup",bt))();function yh(t,n){return ko(qi(t)[tt.DateFormat],n)}function Ch(t,n){return ko(qi(t)[tt.TimeFormat],n)}function Eh(t,n){return ko(qi(t)[tt.DateTimeFormat],n)}function Po(t,n){const e=qi(t),i=e[tt.NumberSymbols][n];if(void 0===i){if(n===bt.CurrencyDecimal)return e[tt.NumberSymbols][bt.Decimal];if(n===bt.CurrencyGroup)return e[tt.NumberSymbols][bt.Group]}return i}function kw(t){if(!t[tt.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[tt.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ko(t,n){for(let e=n;e>-1;e--)if(void 0!==t[e])return t[e];throw new Error("Locale data API: locale data undefined")}function uv(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const Aj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,iu={},wj=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var pi=(()=>((pi=pi||{})[pi.Short=0]="Short",pi[pi.ShortGMT=1]="ShortGMT",pi[pi.Long=2]="Long",pi[pi.Extended=3]="Extended",pi))(),Ct=(()=>((Ct=Ct||{})[Ct.FullYear=0]="FullYear",Ct[Ct.Month=1]="Month",Ct[Ct.Date=2]="Date",Ct[Ct.Hours=3]="Hours",Ct[Ct.Minutes=4]="Minutes",Ct[Ct.Seconds=5]="Seconds",Ct[Ct.FractionalSeconds=6]="FractionalSeconds",Ct[Ct.Day=7]="Day",Ct))(),Bt=(()=>((Bt=Bt||{})[Bt.DayPeriods=0]="DayPeriods",Bt[Bt.Days=1]="Days",Bt[Bt.Months=2]="Months",Bt[Bt.Eras=3]="Eras",Bt))();function Dj(t,n,e,i){let o=function Nj(t){if(Fw(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,r=1,s=1]=t.split("-").map(a=>+a);return Sh(o,r-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Aj))return function Lj(t){const n=new Date(0);let e=0,i=0;const o=t[8]?n.setUTCFullYear:n.setFullYear,r=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(n,s,a,l,c),n}(i)}const n=new Date(t);if(!Fw(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Gr(e,n)||n;let a,s=[];for(;n;){if(a=wj.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=o.getTimezoneOffset();i&&(l=Lw(i,l),o=function kj(t,n,e){const i=e?-1:1,o=t.getTimezoneOffset();return function Pj(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(Lw(n,o)-o))}(o,i,!0));let c="";return s.forEach(u=>{const d=function Rj(t){if(hv[t])return hv[t];let n;switch(t){case"G":case"GG":case"GGG":n=Sn(Bt.Eras,Qt.Abbreviated);break;case"GGGG":n=Sn(Bt.Eras,Qt.Wide);break;case"GGGGG":n=Sn(Bt.Eras,Qt.Narrow);break;case"y":n=ii(Ct.FullYear,1,0,!1,!0);break;case"yy":n=ii(Ct.FullYear,2,0,!0,!0);break;case"yyy":n=ii(Ct.FullYear,3,0,!1,!0);break;case"yyyy":n=ii(Ct.FullYear,4,0,!1,!0);break;case"Y":n=Mh(1);break;case"YY":n=Mh(2,!0);break;case"YYY":n=Mh(3);break;case"YYYY":n=Mh(4);break;case"M":case"L":n=ii(Ct.Month,1,1);break;case"MM":case"LL":n=ii(Ct.Month,2,1);break;case"MMM":n=Sn(Bt.Months,Qt.Abbreviated);break;case"MMMM":n=Sn(Bt.Months,Qt.Wide);break;case"MMMMM":n=Sn(Bt.Months,Qt.Narrow);break;case"LLL":n=Sn(Bt.Months,Qt.Abbreviated,Zn.Standalone);break;case"LLLL":n=Sn(Bt.Months,Qt.Wide,Zn.Standalone);break;case"LLLLL":n=Sn(Bt.Months,Qt.Narrow,Zn.Standalone);break;case"w":n=dv(1);break;case"ww":n=dv(2);break;case"W":n=dv(1,!0);break;case"d":n=ii(Ct.Date,1);break;case"dd":n=ii(Ct.Date,2);break;case"c":case"cc":n=ii(Ct.Day,1);break;case"ccc":n=Sn(Bt.Days,Qt.Abbreviated,Zn.Standalone);break;case"cccc":n=Sn(Bt.Days,Qt.Wide,Zn.Standalone);break;case"ccccc":n=Sn(Bt.Days,Qt.Narrow,Zn.Standalone);break;case"cccccc":n=Sn(Bt.Days,Qt.Short,Zn.Standalone);break;case"E":case"EE":case"EEE":n=Sn(Bt.Days,Qt.Abbreviated);break;case"EEEE":n=Sn(Bt.Days,Qt.Wide);break;case"EEEEE":n=Sn(Bt.Days,Qt.Narrow);break;case"EEEEEE":n=Sn(Bt.Days,Qt.Short);break;case"a":case"aa":case"aaa":n=Sn(Bt.DayPeriods,Qt.Abbreviated);break;case"aaaa":n=Sn(Bt.DayPeriods,Qt.Wide);break;case"aaaaa":n=Sn(Bt.DayPeriods,Qt.Narrow);break;case"b":case"bb":case"bbb":n=Sn(Bt.DayPeriods,Qt.Abbreviated,Zn.Standalone,!0);break;case"bbbb":n=Sn(Bt.DayPeriods,Qt.Wide,Zn.Standalone,!0);break;case"bbbbb":n=Sn(Bt.DayPeriods,Qt.Narrow,Zn.Standalone,!0);break;case"B":case"BB":case"BBB":n=Sn(Bt.DayPeriods,Qt.Abbreviated,Zn.Format,!0);break;case"BBBB":n=Sn(Bt.DayPeriods,Qt.Wide,Zn.Format,!0);break;case"BBBBB":n=Sn(Bt.DayPeriods,Qt.Narrow,Zn.Format,!0);break;case"h":n=ii(Ct.Hours,1,-12);break;case"hh":n=ii(Ct.Hours,2,-12);break;case"H":n=ii(Ct.Hours,1);break;case"HH":n=ii(Ct.Hours,2);break;case"m":n=ii(Ct.Minutes,1);break;case"mm":n=ii(Ct.Minutes,2);break;case"s":n=ii(Ct.Seconds,1);break;case"ss":n=ii(Ct.Seconds,2);break;case"S":n=ii(Ct.FractionalSeconds,1);break;case"SS":n=ii(Ct.FractionalSeconds,2);break;case"SSS":n=ii(Ct.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=wh(pi.Short);break;case"ZZZZZ":n=wh(pi.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=wh(pi.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=wh(pi.Long);break;default:return null}return hv[t]=n,n}(u);c+=d?d(o,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Sh(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Gr(t,n){const e=function hj(t){return qi(t)[tt.LocaleId]}(t);if(iu[e]=iu[e]||{},iu[e][n])return iu[e][n];let i="";switch(n){case"shortDate":i=yh(t,Nn.Short);break;case"mediumDate":i=yh(t,Nn.Medium);break;case"longDate":i=yh(t,Nn.Long);break;case"fullDate":i=yh(t,Nn.Full);break;case"shortTime":i=Ch(t,Nn.Short);break;case"mediumTime":i=Ch(t,Nn.Medium);break;case"longTime":i=Ch(t,Nn.Long);break;case"fullTime":i=Ch(t,Nn.Full);break;case"short":const o=Gr(t,"shortTime"),r=Gr(t,"shortDate");i=Ah(Eh(t,Nn.Short),[o,r]);break;case"medium":const s=Gr(t,"mediumTime"),a=Gr(t,"mediumDate");i=Ah(Eh(t,Nn.Medium),[s,a]);break;case"long":const l=Gr(t,"longTime"),c=Gr(t,"longDate");i=Ah(Eh(t,Nn.Long),[l,c]);break;case"full":const u=Gr(t,"fullTime"),d=Gr(t,"fullDate");i=Ah(Eh(t,Nn.Full),[u,d])}return i&&(iu[e][n]=i),i}function Ah(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function or(t,n,e="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),r+s}function ii(t,n,e=0,i=!1,o=!1){return function(r,s){let a=function Tj(t,n){switch(t){case Ct.FullYear:return n.getFullYear();case Ct.Month:return n.getMonth();case Ct.Date:return n.getDate();case Ct.Hours:return n.getHours();case Ct.Minutes:return n.getMinutes();case Ct.Seconds:return n.getSeconds();case Ct.FractionalSeconds:return n.getMilliseconds();case Ct.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((e>0||a>-e)&&(a+=e),t===Ct.Hours)0===a&&-12===e&&(a=12);else if(t===Ct.FractionalSeconds)return function Mj(t,n){return or(t,3).substring(0,n)}(a,n);const l=Po(s,bt.MinusSign);return or(a,n,l,i,o)}}function Sn(t,n,e=Zn.Format,i=!1){return function(o,r){return function xj(t,n,e,i,o,r){switch(e){case Bt.Months:return function gj(t,n,e){const i=qi(t),r=ko([i[tt.MonthsFormat],i[tt.MonthsStandalone]],n);return ko(r,e)}(n,o,i)[t.getMonth()];case Bt.Days:return function pj(t,n,e){const i=qi(t),r=ko([i[tt.DaysFormat],i[tt.DaysStandalone]],n);return ko(r,e)}(n,o,i)[t.getDay()];case Bt.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(r){const c=function bj(t){const n=qi(t);return kw(n),(n[tt.ExtraData][2]||[]).map(i=>"string"==typeof i?uv(i):[uv(i[0]),uv(i[1])])}(n),u=function yj(t,n,e){const i=qi(t);kw(i);const r=ko([i[tt.ExtraData][0],i[tt.ExtraData][1]],n)||[];return ko(r,e)||[]}(n,o,i),d=c.findIndex(f=>{if(Array.isArray(f)){const[y,N]=f,X=s>=y.hours&&a>=y.minutes,_e=s<N.hours||s===N.hours&&a<N.minutes;if(y.hours<N.hours){if(X&&_e)return!0}else if(X||_e)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function fj(t,n,e){const i=qi(t),r=ko([i[tt.DayPeriodsFormat],i[tt.DayPeriodsStandalone]],n);return ko(r,e)}(n,o,i)[s<12?0:1];case Bt.Eras:return function mj(t,n){return ko(qi(t)[tt.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,r,t,n,e,i)}}function wh(t){return function(n,e,i){const o=-1*i,r=Po(e,bt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case pi.Short:return(o>=0?"+":"")+or(s,2,r)+or(Math.abs(o%60),2,r);case pi.ShortGMT:return"GMT"+(o>=0?"+":"")+or(s,1,r);case pi.Long:return"GMT"+(o>=0?"+":"")+or(s,2,r)+":"+or(Math.abs(o%60),2,r);case pi.Extended:return 0===i?"Z":(o>=0?"+":"")+or(s,2,r)+":"+or(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Nw(t){return Sh(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function dv(t,n=!1){return function(e,i){let o;if(n){const r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+r)/7)}else{const r=Nw(e),s=function Ij(t){const n=Sh(t,0,1).getDay();return Sh(t,0,1+(n<=4?4:11)-n)}(r.getFullYear()),a=r.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return or(o,t,Po(i,bt.MinusSign))}}function Mh(t,n=!1){return function(e,i){return or(Nw(e).getFullYear(),t,Po(i,bt.MinusSign),n)}}const hv={};function Lw(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function Fw(t){return t instanceof Date&&!isNaN(t.valueOf())}const Fj=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function mv(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function Uw(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[o,r]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}let $i=(()=>{class t{constructor(e,i,o,r){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=o,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(jc(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${bn(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return t.\u0275fac=function(e){return new(e||t)(h(tu),h(qs),h(Ue),h(Oo))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class Qj{constructor(n,e,i,o){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let No=(()=>{class t{constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,r,s)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new Qj(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===r?void 0:r);else if(null!==r){const a=i.get(r);i.move(a,s),zw(a,o)}});for(let o=0,r=i.length;o<r;o++){const a=i.get(o).context;a.index=o,a.count=r,a.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{zw(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(pn),h(yt),h(tu))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function zw(t,n){t.context.$implicit=n.item}let nn=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Zj,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){qw("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){qw("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(h(pn),h(yt))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Zj{constructor(){this.$implicit=null,this.ngIf=null}}function qw(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bn(n)}'.`)}class _v{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let fl=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),xh=(()=>{class t{constructor(e,i,o){this.ngSwitch=o,o._addCase(),this._view=new _v(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(h(pn),h(yt),h(fl,9))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),Ww=(()=>{class t{constructor(e,i,o){o._addDefault(new _v(e,i))}}return t.\u0275fac=function(e){return new(e||t)(h(pn),h(yt),h(fl,9))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0}),t})(),pl=(()=>{class t{constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,r]=e.split("."),s=-1===o.indexOf("-")?void 0:no.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${i}${r}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(qs),h(Oo))},t.\u0275dir=be({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),ds=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:r,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(o,r,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(h(pn))},t.\u0275dir=be({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Kn]}),t})();function rr(t,n){return new Pe(2100,!1)}class Jj{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class e4{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const t4=new e4,n4=new Jj;let Yw=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Hc(e))return t4;if($E(e))return n4;throw rr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(h(zt,16))},t.\u0275pipe=Qn({name:"async",type:t,pure:!1,standalone:!0}),t})(),Qw=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw rr();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Qn({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const s4=new Be("DATE_PIPE_DEFAULT_TIMEZONE");let Oh=(()=>{class t{constructor(e,i){this.locale=e,this.defaultTimezone=i}transform(e,i="mediumDate",o,r){var s;if(null==e||""===e||e!=e)return null;try{return Dj(e,i,r||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw rr()}}}return t.\u0275fac=function(e){return new(e||t)(h(_r,16),h(s4,24))},t.\u0275pipe=Qn({name:"date",type:t,pure:!0,standalone:!0}),t})(),Kw=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Qn({name:"json",type:t,pure:!1,standalone:!0}),t})(),bv=(()=>{class t{constructor(e){this._locale=e}transform(e,i,o){if(!function yv(t){return!(null==t||""===t||t!=t)}(e))return null;o=o||this._locale;try{return function Gj(t,n,e){return function pv(t,n,e,i,o,r,s=!1){let a="",l=!1;if(isFinite(t)){let c=function qj(t){let i,o,r,s,a,n=Math.abs(t)+"",e=0;for((o=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(o<0&&(o=r),o+=+n.slice(r+1),n=n.substring(0,r)):o<0&&(o=n.length),r=0;"0"===n.charAt(r);r++);if(r===(a=n.length))i=[0],o=1;else{for(a--;"0"===n.charAt(a);)a--;for(o-=r,i=[],s=0;r<=a;r++,s++)i[s]=Number(n.charAt(r))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(t);s&&(c=function zj(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,f=n.maxFrac;if(r){const Ae=r.match(Fj);if(null===Ae)throw new Error(`${r} is not a valid digit info`);const ve=Ae[1],Se=Ae[3],Ye=Ae[5];null!=ve&&(u=mv(ve)),null!=Se&&(d=mv(Se)),null!=Ye?f=mv(Ye):null!=Se&&d>f&&(f=d)}!function Wj(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,o=i.length-t.integerLen;const r=Math.min(Math.max(n,o),e);let s=r+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let d=s;d<i.length;d++)i[d]=0}else{o=Math.max(0,o),t.integerLen=1,i.length=Math.max(1,s=r+1),i[0]=0;for(let d=1;d<s;d++)i[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;o<Math.max(0,r);o++)i.push(0);let l=0!==r;const c=n+t.integerLen,u=i.reduceRight(function(d,f,y,N){return N[y]=(f+=d)<10?f:f-10,l&&(0===N[y]&&y>=c?N.pop():l=!1),f>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,f);let y=c.digits,N=c.integerLen;const X=c.exponent;let _e=[];for(l=y.every(Ae=>!Ae);N<u;N++)y.unshift(0);for(;N<0;N++)y.unshift(0);N>0?_e=y.splice(N,y.length):(_e=y,y=[0]);const me=[];for(y.length>=n.lgSize&&me.unshift(y.splice(-n.lgSize,y.length).join(""));y.length>n.gSize;)me.unshift(y.splice(-n.gSize,y.length).join(""));y.length&&me.unshift(y.join("")),a=me.join(Po(e,i)),_e.length&&(a+=Po(e,o)+_e.join("")),X&&(a+=Po(e,bt.Exponential)+"+"+X)}else a=Po(e,bt.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,function gv(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],r=i[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const d=l.charAt(u);"0"===d?e.minFrac=e.maxFrac=u+1:"#"===d?e.maxFrac=u+1:e.posSuf+=d}const c=a.split(",");if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const u=o.length-e.posPre.length-e.posSuf.length,d=r.indexOf("#");e.negPre=r.substring(0,d).replace(/'/g,""),e.negSuf=r.slice(d+u).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}(function cv(t,n){return qi(t)[tt.NumberFormats][n]}(n,ro.Decimal),Po(n,bt.MinusSign)),n,bt.Group,bt.Decimal,e)}(function Cv(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),o,i)}catch(r){throw rr()}}}return t.\u0275fac=function(e){return new(e||t)(h(_r,16))},t.\u0275pipe=Qn({name:"number",type:t,pure:!0,standalone:!0}),t})();let Yi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();const Xw="browser";function $s(t){return t===Xw}function gl(t){return"server"===t}let _4=(()=>{class t{}return t.\u0275prov=De({token:t,providedIn:"root",factory:()=>new b4(ie(pt),window)}),t})();class b4{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function y4(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const r=o.shadowRoot;if(r){const s=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(s)return s}o=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=Jw(this.window.history)||Jw(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch(n){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(n){return!1}}}function Jw(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class eD{}class Av extends class B4 extends class rj{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function oj(t){bh||(bh=t)}(new Av)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function V4(){return su=su||document.querySelector("base"),su?su.getAttribute("href"):null}();return null==e?null:function j4(t){Rh=Rh||document.createElement("a"),Rh.setAttribute("href",t);const n=Rh.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){su=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Uw(document.cookie,n)}}let Rh,su=null;const oD=new Be("TRANSITION_ID"),H4=[{provide:fh,useFactory:function U4(t,n,e){return()=>{e.get(ph).donePromise.then(()=>{const i=yr(),o=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let r=0;r<o.length;r++)i.remove(o[r])})}},deps:[oD,pt,En],multi:!0}];let z4=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const Ph=new Be("EventManagerPlugins");let kh=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(o=>o.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}addGlobalEventListener(e,i,o){return this._findPluginFor(i).addGlobalEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const o=this._plugins;for(let r=0;r<o.length;r++){const s=o[r];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(ie(Ph),ie(dt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();class rD{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const o=yr().getGlobalEventTarget(this._doc,n);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,i)}}let sD=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),i.add(o))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),au=(()=>{class t extends sD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,o){e.forEach(r=>{const s=this._doc.createElement("style");s.textContent=r,o.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(aD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,o)=>{this._addStylesToHost(e,o,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(aD))}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();function aD(t){yr().remove(t)}const wv={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Dv=/%COMP%/g;function Nh(t,n,e){for(let i=0;i<n.length;i++){let o=n[i];Array.isArray(o)?Nh(t,o,e):(o=o.replace(Dv,t),e.push(o))}return e}function uD(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let Lh=(()=>{class t{constructor(e,i,o){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Mv(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Yo.Emulated:{let o=this.rendererByCompId.get(i.id);return o||(o=new K4(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,o)),o.applyToHost(e),o}case 1:case Yo.ShadowDom:return new Z4(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const o=Nh(i.id,i.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(ie(kh),ie(au),ie(hl))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();class Mv{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(wv[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(hD(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(hD(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,o){if(o){e=o+":"+e;const r=wv[o];r?n.setAttributeNS(r,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const o=wv[i];o?n.removeAttributeNS(o,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,o){o&(no.DashCase|no.Important)?n.style.setProperty(e,i,o&no.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&no.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,uD(i)):this.eventManager.addEventListener(n,e,uD(i))}}function hD(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class K4 extends Mv{constructor(n,e,i,o){super(n),this.component=i;const r=Nh(o+"-"+i.id,i.styles,[]);e.addStyles(r),this.contentAttr=function $4(t){return"_ngcontent-%COMP%".replace(Dv,t)}(o+"-"+i.id),this.hostAttr=function Y4(t){return"_nghost-%COMP%".replace(Dv,t)}(o+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class Z4 extends Mv{constructor(n,e,i,o){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=Nh(o.id,o.styles,[]);for(let s=0;s<r.length;s++){const a=document.createElement("style");a.textContent=r[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let X4=(()=>{class t extends rD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const fD=["alt","control","meta","shift"],J4={"\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"},eU={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let tU=(()=>{class t extends rD{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const r=t.parseEventName(i),s=t.eventCallback(r.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yr().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const r=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),fD.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=r,0!=i.length||0===r.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let o=J4[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(o=e.code,r="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),fD.forEach(s=>{s!==o&&(0,eU[s])(e)&&(r+=s+".")}),r+=o,r===i)}static eventCallback(e,i,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>i(r))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const gD=[{provide:Ro,useValue:Xw},{provide:ew,useValue:function nU(){Av.makeCurrent()},multi:!0},{provide:pt,useFactory:function oU(){return function AN(t){fg=t}(document),document},deps:[]}],rU=cw(tj,"browser",gD),mD=new Be(""),vD=[{provide:gh,useClass:class G4{addToWindow(n){yn.getAngularTestability=(i,o=!0)=>{const r=n.findTestabilityInTree(i,o);if(null==r)throw new Error("Could not find testability for element.");return r},yn.getAllAngularTestabilities=()=>n.getAllTestabilities(),yn.getAllAngularRootElements=()=>n.getAllRootElements(),yn.frameworkStabilizers||(yn.frameworkStabilizers=[]),yn.frameworkStabilizers.push(i=>{const o=yn.getAllAngularTestabilities();let r=o.length,s=!1;const a=function(l){s=s||l,r--,0==r&&i(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){if(null==e)return null;const o=n.getTestability(e);return null!=o?o:i?yr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null}},deps:[]},{provide:rw,useClass:Xm,deps:[dt,Jm,gh]},{provide:Xm,useClass:Xm,deps:[dt,Jm,gh]}],_D=[{provide:Sg,useValue:"root"},{provide:Lr,useFactory:function iU(){return new Lr},deps:[]},{provide:Ph,useClass:X4,multi:!0,deps:[pt,dt,Ro]},{provide:Ph,useClass:tU,multi:!0,deps:[pt]},{provide:Lh,useClass:Lh,deps:[kh,au,hl]},{provide:Pc,useExisting:Lh},{provide:sD,useExisting:au},{provide:au,useClass:au,deps:[pt]},{provide:kh,useClass:kh,deps:[Ph,dt]},{provide:eD,useClass:z4,deps:[]},[]];let bD=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:hl,useValue:e.appId},{provide:oD,useExisting:hl},H4]}}}return t.\u0275fac=function(e){return new(e||t)(ie(mD,12))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[..._D,...vD],imports:[Yi,nj]}),t})(),yD=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:function(e){let i=null;return i=e?new e:function aU(){return new yD(ie(pt))}(),i},providedIn:"root"}),t})();"undefined"!=typeof window&&window;let lu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:function(e){let i=null;return i=e?new(e||t):ie(SD),i},providedIn:"root"}),t})(),SD=(()=>{class t extends lu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case tn.NONE:return i;case tn.HTML:return fr(i,"HTML")?vo(i):t0(this._doc,String(i)).toString();case tn.STYLE:return fr(i,"Style")?vo(i):i;case tn.SCRIPT:if(fr(i,"Script"))return vo(i);throw new Error("unsafe value used in a script context");case tn.URL:return fr(i,"URL")?vo(i):Vd(String(i));case tn.RESOURCE_URL:if(fr(i,"ResourceURL"))return vo(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function PN(t){return new MN(t)}(e)}bypassSecurityTrustStyle(e){return function kN(t){return new TN(t)}(e)}bypassSecurityTrustScript(e){return function NN(t){return new xN(t)}(e)}bypassSecurityTrustUrl(e){return function LN(t){return new ON(t)}(e)}bypassSecurityTrustResourceUrl(e){return function FN(t){return new IN(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:function(e){let i=null;return i=e?new e:function pU(t){return new SD(t.get(pt))}(ie(En)),i},providedIn:"root"}),t})();class AD{}const zr="*";function Qi(t,n){return{type:7,name:t,definitions:n,options:{}}}function Xn(t,n=null){return{type:4,styles:n,timings:t}}function wD(t,n=null){return{type:3,steps:t,options:n}}function DD(t,n=null){return{type:2,steps:t,options:n}}function Ft(t){return{type:6,styles:t,offset:null}}function yi(t,n,e){return{type:0,name:t,styles:n,options:e}}function Wn(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function Ov(t=null){return{type:9,options:t}}function Iv(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function MD(t){Promise.resolve().then(t)}class cu{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){MD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class TD{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,o=0;const r=this.players.length;0==r?MD(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function xD(t){return new Pe(3e3,!1)}function ZU(){return"undefined"!=typeof window&&void 0!==window.document}function Pv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function fs(t){switch(t.length){case 0:return new cu;case 1:return t[0];default:return new TD(t)}}function OD(t,n,e,i,o=new Map,r=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),f=d==l,y=f&&c||new Map;u.forEach((N,X)=>{let _e=X,me=N;if("offset"!==X)switch(_e=n.normalizePropertyName(_e,s),me){case"!":me=o.get(X);break;case zr:me=r.get(X);break;default:me=n.normalizeStyleValue(X,_e,me,s)}y.set(_e,me)}),f||a.push(y),c=y,l=d}),s.length)throw function VU(t){return new Pe(3502,!1)}();return a}function kv(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Nv(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Nv(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Nv(e,"destroy",t)))}}function Nv(t,n,e){const i=e.totalTime,r=Lv(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),s=t._data;return null!=s&&(r._data=s),r}function Lv(t,n,e,i,o="",r=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function bo(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function ID(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let Fv=(t,n)=>!1,RD=(t,n,e)=>[],PD=null;function Bv(t){const n=t.parentNode||t.host;return n===PD?null:n}(Pv()||"undefined"!=typeof Element)&&(ZU()?(PD=(()=>document.documentElement)(),Fv=(t,n)=>{for(;n;){if(n===t)return!0;n=Bv(n)}return!1}):Fv=(t,n)=>t.contains(n),RD=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Ys=null,kD=!1;const ND=Fv,LD=RD;let FD=(()=>{class t{validateStyleProperty(e){return function JU(t){Ys||(Ys=function eH(){return"undefined"!=typeof document?document.body:null}()||{},kD=!!Ys.style&&"WebkitAppearance"in Ys.style);let n=!0;return Ys.style&&!function XU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Ys.style,!n&&kD&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Ys.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return ND(e,i)}getParentElement(e){return Bv(e)}query(e,i,o){return LD(e,i,o)}computeStyle(e,i,o){return o||""}animate(e,i,o,r,s,a=[],l){return new cu(o,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),Vv=(()=>{class t{}return t.NOOP=new FD,t})();const jv="ng-enter",Fh="ng-leave",Bh="ng-trigger",Vh=".ng-trigger",VD="ng-animating",Uv=".ng-animating";function qr(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Hv(parseFloat(n[1]),n[2])}function Hv(t,n){return"s"===n?1e3*t:t}function jh(t,n,e){return t.hasOwnProperty("duration")?t:function iH(t,n,e){let o,r=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(xD()),{duration:0,delay:0,easing:""};o=Hv(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(r=Hv(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else o=t;if(!e){let a=!1,l=n.length;o<0&&(n.push(function vU(){return new Pe(3100,!1)}()),a=!0),r<0&&(n.push(function _U(){return new Pe(3101,!1)}()),a=!0),a&&n.splice(l,0,xD())}return{duration:o,delay:r,easing:s}}(t,n,e)}function uu(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function jD(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function ps(t,n=new Map,e){if(e)for(let[i,o]of e)n.set(i,o);for(let[i,o]of t)n.set(i,o);return n}function HD(t,n,e){return e?n+":"+e+";":""}function GD(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=HD(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=HD(0,aH(e),t.style[e]));t.setAttribute("style",n)}function Cr(t,n,e){t.style&&(n.forEach((i,o)=>{const r=zv(o);e&&!e.has(o)&&e.set(o,t.style[r]),t.style[r]=i}),Pv()&&GD(t))}function Qs(t,n){t.style&&(n.forEach((e,i)=>{const o=zv(i);t.style[o]=""}),Pv()&&GD(t))}function du(t){return Array.isArray(t)?1==t.length?t[0]:DD(t):t}const Gv=new RegExp("{{\\s*(.+?)\\s*}}","g");function zD(t){let n=[];if("string"==typeof t){let e;for(;e=Gv.exec(t);)n.push(e[1]);Gv.lastIndex=0}return n}function hu(t,n,e){const i=t.toString(),o=i.replace(Gv,(r,s)=>{let a=n[s];return null==a&&(e.push(function yU(t){return new Pe(3003,!1)}()),a=""),a.toString()});return o==i?t:o}function Uh(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const sH=/-+([a-z0-9])/g;function zv(t){return t.replace(sH,(...n)=>n[1].toUpperCase())}function aH(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function yo(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function CU(t){return new Pe(3004,!1)}()}}function qD(t,n){return window.getComputedStyle(t)[n]}function fH(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function pH(t,n,e){if(":"==t[0]){const l=function gH(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function NU(t){return new Pe(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function kU(t){return new Pe(3015,!1)}()),n;const o=i[1],r=i[2],s=i[3];n.push(WD(o,s));"<"==r[0]&&!("*"==o&&"*"==s)&&n.push(WD(s,o))}(i,e,n)):e.push(t),e}const qh=new Set(["true","1"]),Wh=new Set(["false","0"]);function WD(t,n){const e=qh.has(t)||Wh.has(t),i=qh.has(n)||Wh.has(n);return(o,r)=>{let s="*"==t||t==o,a="*"==n||n==r;return!s&&e&&"boolean"==typeof o&&(s=o?qh.has(t):Wh.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?qh.has(n):Wh.has(n)),s&&a}}const mH=new RegExp("s*:selfs*,?","g");function qv(t,n,e,i){return new vH(t).build(n,e,i)}class vH{constructor(n){this._driver=n}build(n,e,i){const o=new yH(e);return this._resetContextStyleTimingState(o),yo(this,du(n),o)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,o=e.depCount=0;const r=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function SU(){return new Pe(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,r.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(function AU(){return new Pe(3007,!1)}())}),{type:7,name:n.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),o=n.options&&n.options.params||null;if(i.containsDynamicStyles){const r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{zD(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&(Uh(r.values()),e.errors.push(function wU(t,n){return new Pe(3008,!1)}()))}return{type:0,name:n.name,style:i,options:o?{params:o}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=yo(this,du(n.animation),e);return{type:1,matchers:fH(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ks(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>yo(this,i,e)),options:Ks(n.options)}}visitGroup(n,e){const i=e.currentTime;let o=0;const r=n.steps.map(s=>{e.currentTime=i;const a=yo(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:3,steps:r,options:Ks(n.options)}}visitAnimate(n,e){const i=function EH(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Wv(jh(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(r=>"{"==r.charAt(0)&&"{"==r.charAt(1))){const r=Wv(0,0,"");return r.dynamic=!0,r.strValue=e,r}const o=jh(e,n);return Wv(o.duration,o.delay,o.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let o,r=n.styles?n.styles:Ft({});if(5==r.type)o=this.visitKeyframes(r,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ft(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:o,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],o=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of o)"string"==typeof a?a===zr?i.push(a):e.errors.push(new Pe(3002,!1)):i.push(jD(a));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r))for(let l of a.values())if(l.toString().indexOf("{{")>=0){r=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(r!=o&&r>=u.startTime&&o<=u.endTime&&(e.errors.push(function MU(t,n,e,i,o){return new Pe(3010,!1)}()),d=!1),r=u.startTime),d&&c.set(l,{startTime:r,endTime:o}),e.options&&function rH(t,n,e){const i=n.params||{},o=zD(t);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(function bU(t){return new Pe(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function TU(){return new Pe(3011,!1)}()),i;let r=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(me=>{const Ae=this._makeStyleAst(me,e);let ve=null!=Ae.offset?Ae.offset:function CH(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(Ae.styles),Se=0;return null!=ve&&(r++,Se=Ae.offset=ve),l=l||Se<0||Se>1,a=a||Se<c,c=Se,s.push(Se),Ae});l&&e.errors.push(function xU(){return new Pe(3012,!1)}()),a&&e.errors.push(function OU(){return new Pe(3200,!1)}());const d=n.steps.length;let f=0;r>0&&r<d?e.errors.push(function IU(){return new Pe(3202,!1)}()):0==r&&(f=1/(d-1));const y=d-1,N=e.currentTime,X=e.currentAnimateTimings,_e=X.duration;return u.forEach((me,Ae)=>{const ve=f>0?Ae==y?1:f*Ae:s[Ae],Se=ve*_e;e.currentTime=N+X.delay+Se,X.duration=Se,this._validateStyleAst(me,e),me.offset=ve,i.styles.push(me)}),i}visitReference(n,e){return{type:8,animation:yo(this,du(n.animation),e),options:Ks(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ks(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Ks(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,o=n.options||{};e.queryCount++,e.currentQuery=n;const[r,s]=function _H(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(mH,"")),t=t.replace(/@\*/g,Vh).replace(/@\w+/g,e=>Vh+"-"+e.slice(1)).replace(/:animating/g,Uv),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+r:r,bo(e.collectedStyles,e.currentQuerySelector,new Map);const a=yo(this,du(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ks(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function RU(){return new Pe(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:jh(n.timings,e.errors,!0);return{type:12,animation:yo(this,du(n.animation),e),timings:i,options:null}}}class yH{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ks(t){return t?(t=uu(t)).params&&(t.params=function bH(t){return t?uu(t):null}(t.params)):t={},t}function Wv(t,n,e){return{duration:t,delay:n,easing:e}}function $v(t,n,e,i,o,r,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}class $h{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const wH=new RegExp(":enter","g"),MH=new RegExp(":leave","g");function Yv(t,n,e,i,o,r=new Map,s=new Map,a,l,c=[]){return(new TH).buildKeyframes(t,n,e,i,o,r,s,a,l,c)}class TH{buildKeyframes(n,e,i,o,r,s,a,l,c,u=[]){c=c||new $h;const d=new Qv(n,e,c,o,r,u,[]);d.options=l;const f=l.delay?qr(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([s],null,d.errors,l),yo(this,i,d);const y=d.timelines.filter(N=>N.containsAnimation());if(y.length&&a.size){let N;for(let X=y.length-1;X>=0;X--){const _e=y[X];if(_e.element===e){N=_e;break}}N&&!N.allowOnlyTimelineStyles()&&N.setStyles([a],null,d.errors,l)}return y.length?y.map(N=>N.buildKeyframes()):[$v(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const o=e.createSubContext(n.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){var o;for(const r of n){const s=null==r?void 0:r.delay;if(s){const a="number"==typeof s?s:qr(hu(s,null!==(o=null==r?void 0:r.params)&&void 0!==o?o:{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let r=e.currentTimeline.currentTime;const s=null!=i.duration?qr(i.duration):null,a=null!=i.delay?qr(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(n,e){e.updateOptions(n.options,!0),yo(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let o=e;const r=n.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),null!=r.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Yh);const s=qr(r.delay);o.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>yo(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let o=e.currentTimeline.currentTime;const r=n.options&&n.options.delay?qr(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);r&&a.delayNextStep(r),yo(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return jh(e.params?hu(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());const r=n.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();const r=o&&o.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(r):i.setStyles(n.styles,r,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,o=n.options||{},r=o.delay?qr(o.delay):0;r&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Yh);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);r&&d.delayNextStep(r),c===e.element&&(l=d.currentTimeline),yo(this,n.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,o=e.currentTimeline,r=n.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;yo(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=o.currentTime-d+(o.startTime-i.currentTimeline.startTime)}}const Yh={};class Qv{constructor(n,e,i,o,r,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Yh,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qh(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let o=this.options;null!=i.duration&&(o.duration=qr(i.duration)),null!=i.delay&&(o.delay=qr(i.delay));const r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=hu(r[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return n}createSubContext(n=null,e,i){const o=e||this.element,r=new Qv(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(n),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(n){return this.previousNode=Yh,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const o={duration:null!=e?e:n.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+n.delay,easing:""},r=new xH(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,o,n.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,o,r,s){let a=[];if(o&&a.push(this.element),n.length>0){n=(n=n.replace(wH,"."+this._enterClassName)).replace(MH,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&0==a.length&&s.push(function PU(t){return new Pe(3014,!1)}()),a}}class Qh{constructor(n,e,i,o){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new Qh(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||zr),this._currentKeyframe.set(e,zr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,o){var r;e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},a=function OH(t,n){const e=new Map;let i;return t.forEach(o=>{if("*"===o){i=i||n.keys();for(let r of i)e.set(r,zr)}else ps(o,e)}),e}(n,this._globalTimelineStyles);for(let[l,c]of a){const u=hu(c,s,i);this._pendingStyles.set(l,u),this._localTimelineStyles.has(l)||this._backFill.set(l,null!==(r=this._globalTimelineStyles.get(l))&&void 0!==r?r:zr),this._updateStyle(l,u)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((a,l)=>{const c=ps(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===zr&&e.add(d)}),i||c.set("offset",l/this.duration),o.push(c)});const r=n.size?Uh(n.values()):[],s=e.size?Uh(e.values()):[];if(i){const a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return $v(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}}class xH extends Qh{constructor(n,e,i,o,r,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],s=i+e,a=e/s,l=ps(n[0]);l.set("offset",0),r.push(l);const c=ps(n[0]);c.set("offset",QD(a)),r.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let f=ps(n[d]);const y=f.get("offset");f.set("offset",QD((e+y*i)/s)),r.push(f)}i=s,e=0,o="",n=r}return $v(this.element,n,this.preStyleProps,this.postStyleProps,i,e,o,!0)}}function QD(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class Kv{}const IH=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class RH extends Kv{normalizePropertyName(n,e){return zv(n)}normalizeStyleValue(n,e,i,o){let r="";const s=i.toString().trim();if(IH.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)r="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&o.push(function EU(t,n){return new Pe(3005,!1)}())}return s+r}}function KD(t,n,e,i,o,r,s,a,l,c,u,d,f){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}const Zv={};class ZD{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,o){return function PH(t,n,e,i,o){return t.some(r=>r(n,e,i,o))}(this.ast.matchers,n,e,i,o)}buildStyles(n,e,i){let o=this._stateStyles.get("*");return void 0!==n&&(o=this._stateStyles.get(null==n?void 0:n.toString())||o),o?o.buildStyles(e,i):new Map}build(n,e,i,o,r,s,a,l,c,u){var d;const f=[],y=this.ast.options&&this.ast.options.params||Zv,X=this.buildStyles(i,a&&a.params||Zv,f),_e=l&&l.params||Zv,me=this.buildStyles(o,_e,f),Ae=new Set,ve=new Map,Se=new Map,Ye="void"===o,gt={params:kH(_e,y),delay:null===(d=this.ast.options)||void 0===d?void 0:d.delay},Zt=u?[]:Yv(n,e,this.ast.animation,r,s,X,me,gt,c,f);let Rt=0;if(Zt.forEach(Nt=>{Rt=Math.max(Nt.duration+Nt.delay,Rt)}),f.length)return KD(e,this._triggerName,i,o,Ye,X,me,[],[],ve,Se,Rt,f);Zt.forEach(Nt=>{const vn=Nt.element,Ei=bo(ve,vn,new Set);Nt.preStyleProps.forEach(xi=>Ei.add(xi));const Yn=bo(Se,vn,new Set);Nt.postStyleProps.forEach(xi=>Yn.add(xi)),vn!==e&&Ae.add(vn)});const Dn=Uh(Ae.values());return KD(e,this._triggerName,i,o,Ye,X,me,Zt,Dn,ve,Se,Rt)}}function kH(t,n){const e=uu(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class NH{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,o=uu(this.defaultParams);return Object.keys(n).forEach(r=>{const s=n[r];null!==s&&(o[r]=s)}),this.styles.styles.forEach(r=>{"string"!=typeof r&&r.forEach((s,a)=>{s&&(s=hu(s,o,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class FH{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new NH(o.style,o.options&&o.options.params||{},i))}),XD(this.states,"true","1"),XD(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new ZD(n,o,this.states))}),this.fallbackTransition=function BH(t,n,e){return new ZD(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,o){return this.transitionFactories.find(s=>s.match(n,e,i,o))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function XD(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const VH=new $h;class jH{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],r=qv(this._driver,e,i,[]);if(i.length)throw function jU(t){return new Pe(3503,!1)}();this._animations.set(n,r)}_buildPlayer(n,e,i){const o=n.element,r=OD(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(o,r,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const o=[],r=this._animations.get(n);let s;const a=new Map;if(r?(s=Yv(this._driver,e,r,jv,Fh,new Map,new Map,i,VH,o),s.forEach(u=>{const d=bo(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(o.push(function UU(){return new Pe(3300,!1)}()),s=[]),o.length)throw function HU(t){return new Pe(3504,!1)}();a.forEach((u,d)=>{u.forEach((f,y)=>{u.set(y,this._driver.computeStyle(d,y,zr))})});const c=fs(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function GU(t){return new Pe(3301,!1)}();return e}listen(n,e,i,o){const r=Lv(e,"","","");return kv(this._getPlayer(n),i,r,o),()=>{}}command(n,e,i,o){if("register"==i)return void this.register(n,o[0]);if("create"==i)return void this.create(n,e,o[0]||{});const r=this._getPlayer(n);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(n)}}}const JD="ng-animate-queued",Xv="ng-animate-disabled",qH=[],eM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},WH={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Lo="__ng_removed";class Jv{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function KH(t){return null!=t?t:null}(i?n.value:n),i){const r=uu(n);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(o=>{null==i[o]&&(i[o]=e[o])})}}}const fu="void",e_=new Jv(fu);class $H{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Fo(e,this._hostClassName)}listen(n,e,i,o){if(!this._triggers.has(e))throw function zU(t,n){return new Pe(3302,!1)}();if(null==i||0==i.length)throw function qU(t){return new Pe(3303,!1)}();if(!function ZH(t){return"start"==t||"done"==t}(i))throw function WU(t,n){return new Pe(3400,!1)}();const r=bo(this._elementListeners,n,[]),s={name:e,phase:i,callback:o};r.push(s);const a=bo(this._engine.statesByElement,n,new Map);return a.has(e)||(Fo(n,Bh),Fo(n,Bh+"-"+e),a.set(e,e_)),()=>{this._engine.afterFlush(()=>{const l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function $U(t){return new Pe(3401,!1)}();return e}trigger(n,e,i,o=!0){const r=this._getTrigger(e),s=new t_(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Fo(n,Bh),Fo(n,Bh+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new Jv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=e_),c.value!==fu&&l.value===c.value){if(!function e5(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let o=0;o<e.length;o++){const r=e[o];if(!n.hasOwnProperty(r)||t[r]!==n[r])return!1}return!0}(l.params,c.params)){const X=[],_e=r.matchStyles(l.value,l.params,X),me=r.matchStyles(c.value,c.params,X);X.length?this._engine.reportError(X):this._engine.afterFlush(()=>{Qs(n,_e),Cr(n,me)})}return}const f=bo(this._engine.playersByElement,n,[]);f.forEach(X=>{X.namespaceId==this.id&&X.triggerName==e&&X.queued&&X.destroy()});let y=r.matchTransition(l.value,c.value,n,c.params),N=!1;if(!y){if(!o)return;y=r.fallbackTransition,N=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:y,fromState:l,toState:c,player:s,isFallbackTransition:N}),N||(Fo(n,JD),s.onStart(()=>{ml(n,JD)})),s.onDone(()=>{let X=this.players.indexOf(s);X>=0&&this.players.splice(X,1);const _e=this._engine.playersByElement.get(n);if(_e){let me=_e.indexOf(s);me>=0&&_e.splice(me,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Vh,!0);i.forEach(o=>{if(o[Lo])return;const r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(n,e,i,o){const r=this._engine.statesByElement.get(n),s=new Map;if(r){const a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,fu,o);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&fs(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const o=new Set;e.forEach(r=>{const s=r.name;if(o.has(s))return;o.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||e_,u=new Jv(fu),d=new t_(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let o=!1;if(i.totalAnimations){const r=i.players.length?i.playersByQueriedElement.get(n):[];if(r&&r.length)o=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(n),o)i.markElementAsRemoved(this.id,n,!1,e);else{const r=n[Lo];(!r||r===eM)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Fo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const o=i.player;if(o.destroyed)return;const r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Lv(r,i.triggerName,i.fromState.value,i.toState.value);l._data=n,kv(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{const r=i.transition.ast.depCount,s=o.transition.ast.depCount;return 0==r||0==s?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class YH{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,r)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new $H(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=o.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return o.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let o=this._namespaceLookup[n];o&&o.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let o of i.values())if(o.namespaceId){const r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}return e}trigger(n,e,i,o){if(Kh(e)){const r=this._fetchNamespace(n);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(n,e,i,o){if(!Kh(e))return;const r=e[Lo];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Fo(n,Xv)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),ml(n,Xv))}removeNode(n,e,i,o){if(Kh(e)){const r=n?this._fetchNamespace(n):null;if(r?r.removeNode(e,o):this.markElementAsRemoved(n,e,!1,o),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,o)}}else this._onRemovalComplete(e,o)}markElementAsRemoved(n,e,i,o,r){this.collectedLeaveElements.push(e),e[Lo]={namespaceId:n,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(n,e,i,o,r){return Kh(e)?this._fetchNamespace(n).listen(e,i,o,r):()=>{}}_buildInstruction(n,e,i,o,r){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,o,n.fromState.options,n.toState.options,e,r)}destroyInnerAnimations(n){let e=this.driver.query(n,Vh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Uv,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return fs(this.players).onDone(()=>n());n()})}processLeaveNode(n){var e;const i=n[Lo];if(i&&i.setForRemoval){if(n[Lo]=eM,i.namespaceId){this.destroyInnerAnimations(n);const o=this._fetchNamespace(i.namespaceId);o&&o.clearElementCache(n)}this._onRemovalComplete(n,i.setForRemoval)}!(null===(e=n.classList)||void 0===e)&&e.contains(Xv)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(o=>{this.markElementAsDisabled(o,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Fo(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let o=0;o<i.length;o++)i[o]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?fs(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(n){throw function YU(t){return new Pe(3402,!1)}()}_flushAnimations(n,e){const i=new $h,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(et=>{u.add(et);const Ze=this.driver.query(et,".ng-animate-queued",!0);for(let lt=0;lt<Ze.length;lt++)u.add(Ze[lt])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),y=iM(f,this.collectedEnterElements),N=new Map;let X=0;y.forEach((et,Ze)=>{const lt=jv+X++;N.set(Ze,lt),et.forEach(at=>Fo(at,lt))});const _e=[],me=new Set,Ae=new Set;for(let et=0;et<this.collectedLeaveElements.length;et++){const Ze=this.collectedLeaveElements[et],lt=Ze[Lo];lt&<.setForRemoval&&(_e.push(Ze),me.add(Ze),lt.hasAnimation?this.driver.query(Ze,".ng-star-inserted",!0).forEach(at=>me.add(at)):Ae.add(Ze))}const ve=new Map,Se=iM(f,Array.from(me));Se.forEach((et,Ze)=>{const lt=Fh+X++;ve.set(Ze,lt),et.forEach(at=>Fo(at,lt))}),n.push(()=>{y.forEach((et,Ze)=>{const lt=N.get(Ze);et.forEach(at=>ml(at,lt))}),Se.forEach((et,Ze)=>{const lt=ve.get(Ze);et.forEach(at=>ml(at,lt))}),_e.forEach(et=>{this.processLeaveNode(et)})});const Ye=[],gt=[];for(let et=this._namespaceList.length-1;et>=0;et--)this._namespaceList[et].drainQueuedTransitions(e).forEach(lt=>{const at=lt.player,Gt=lt.element;if(Ye.push(at),this.collectedEnterElements.length){const Rn=Gt[Lo];if(Rn&&Rn.setForMove){if(Rn.previousTriggersValues&&Rn.previousTriggersValues.has(lt.triggerName)){const Xi=Rn.previousTriggersValues.get(lt.triggerName),lo=this.statesByElement.get(lt.element);if(lo&&lo.has(lt.triggerName)){const lc=lo.get(lt.triggerName);lc.value=Xi,lo.set(lt.triggerName,lc)}}return void at.destroy()}}const Mn=!d||!this.driver.containsElement(d,Gt),ci=ve.get(Gt),Ut=N.get(Gt),At=this._buildInstruction(lt,i,Ut,ci,Mn);if(At.errors&&At.errors.length)return void gt.push(At);if(Mn)return at.onStart(()=>Qs(Gt,At.fromStyles)),at.onDestroy(()=>Cr(Gt,At.toStyles)),void o.push(at);if(lt.isFallbackTransition)return at.onStart(()=>Qs(Gt,At.fromStyles)),at.onDestroy(()=>Cr(Gt,At.toStyles)),void o.push(at);const ze=[];At.timelines.forEach(Rn=>{Rn.stretchStartingKeyframe=!0,this.disabledNodes.has(Rn.element)||ze.push(Rn)}),At.timelines=ze,i.append(Gt,At.timelines),s.push({instruction:At,player:at,element:Gt}),At.queriedElements.forEach(Rn=>bo(a,Rn,[]).push(at)),At.preStyleProps.forEach((Rn,Xi)=>{if(Rn.size){let lo=l.get(Xi);lo||l.set(Xi,lo=new Set),Rn.forEach((lc,cd)=>lo.add(cd))}}),At.postStyleProps.forEach((Rn,Xi)=>{let lo=c.get(Xi);lo||c.set(Xi,lo=new Set),Rn.forEach((lc,cd)=>lo.add(cd))})});if(gt.length){const et=[];gt.forEach(Ze=>{et.push(function QU(t,n){return new Pe(3505,!1)}())}),Ye.forEach(Ze=>Ze.destroy()),this.reportError(et)}const Zt=new Map,Rt=new Map;s.forEach(et=>{const Ze=et.element;i.has(Ze)&&(Rt.set(Ze,Ze),this._beforeAnimationBuild(et.player.namespaceId,et.instruction,Zt))}),o.forEach(et=>{const Ze=et.element;this._getPreviousPlayers(Ze,!1,et.namespaceId,et.triggerName,null).forEach(at=>{bo(Zt,Ze,[]).push(at),at.destroy()})});const Dn=_e.filter(et=>rM(et,l,c)),Nt=new Map;nM(Nt,this.driver,Ae,c,zr).forEach(et=>{rM(et,l,c)&&Dn.push(et)});const Ei=new Map;y.forEach((et,Ze)=>{nM(Ei,this.driver,new Set(et),l,"!")}),Dn.forEach(et=>{var Ze,lt;const at=Nt.get(et),Gt=Ei.get(et);Nt.set(et,new Map([...Array.from(null!==(Ze=null==at?void 0:at.entries())&&void 0!==Ze?Ze:[]),...Array.from(null!==(lt=null==Gt?void 0:Gt.entries())&&void 0!==lt?lt:[])]))});const Yn=[],xi=[],Ao={};s.forEach(et=>{const{element:Ze,player:lt,instruction:at}=et;if(i.has(Ze)){if(u.has(Ze))return lt.onDestroy(()=>Cr(Ze,at.toStyles)),lt.disabled=!0,lt.overrideTotalTime(at.totalTime),void o.push(lt);let Gt=Ao;if(Rt.size>1){let ci=Ze;const Ut=[];for(;ci=ci.parentNode;){const At=Rt.get(ci);if(At){Gt=At;break}Ut.push(ci)}Ut.forEach(At=>Rt.set(At,Gt))}const Mn=this._buildAnimation(lt.namespaceId,at,Zt,r,Ei,Nt);if(lt.setRealPlayer(Mn),Gt===Ao)Yn.push(lt);else{const ci=this.playersByElement.get(Gt);ci&&ci.length&&(lt.parentPlayer=fs(ci)),o.push(lt)}}else Qs(Ze,at.fromStyles),lt.onDestroy(()=>Cr(Ze,at.toStyles)),xi.push(lt),u.has(Ze)&&o.push(lt)}),xi.forEach(et=>{const Ze=r.get(et.element);if(Ze&&Ze.length){const lt=fs(Ze);et.setRealPlayer(lt)}}),o.forEach(et=>{et.parentPlayer?et.syncPlayerEvents(et.parentPlayer):et.destroy()});for(let et=0;et<_e.length;et++){const Ze=_e[et],lt=Ze[Lo];if(ml(Ze,Fh),lt&<.hasAnimation)continue;let at=[];if(a.size){let Mn=a.get(Ze);Mn&&Mn.length&&at.push(...Mn);let ci=this.driver.query(Ze,Uv,!0);for(let Ut=0;Ut<ci.length;Ut++){let At=a.get(ci[Ut]);At&&At.length&&at.push(...At)}}const Gt=at.filter(Mn=>!Mn.destroyed);Gt.length?XH(this,Ze,Gt):this.processLeaveNode(Ze)}return _e.length=0,Yn.forEach(et=>{this.players.push(et),et.onDone(()=>{et.destroy();const Ze=this.players.indexOf(et);this.players.splice(Ze,1)}),et.play()}),Yn}elementContainsData(n,e){let i=!1;const o=e[Lo];return o&&o.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,o,r){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!r||r==fu;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const r=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==r,d=bo(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(y=>{const N=y.getRealPlayer();N.beforeDestroy&&N.beforeDestroy(),y.destroy(),d.push(y)})}Qs(r,e.fromStyles)}_buildAnimation(n,e,i,o,r,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,f=e.timelines.map(N=>{const X=N.element;u.add(X);const _e=X[Lo];if(_e&&_e.removedBeforeQueried)return new cu(N.duration,N.delay);const me=X!==l,Ae=function JH(t){const n=[];return oM(t,n),n}((i.get(X)||qH).map(Zt=>Zt.getRealPlayer())).filter(Zt=>!!Zt.element&&Zt.element===X),ve=r.get(X),Se=s.get(X),Ye=OD(0,this._normalizer,0,N.keyframes,ve,Se),gt=this._buildPlayer(N,Ye,Ae);if(N.subTimeline&&o&&d.add(X),me){const Zt=new t_(n,a,X);Zt.setRealPlayer(gt),c.push(Zt)}return gt});c.forEach(N=>{bo(this.playersByQueriedElement,N.element,[]).push(N),N.onDone(()=>function QH(t,n,e){let i=t.get(n);if(i){if(i.length){const o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,N.element,N))}),u.forEach(N=>Fo(N,VD));const y=fs(f);return y.onDestroy(()=>{u.forEach(N=>ml(N,VD)),Cr(l,e.toStyles)}),d.forEach(N=>{bo(o,N,[]).push(y)}),y}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new cu(n.duration,n.delay)}}class t_{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new cu,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>kv(n,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){bo(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function Kh(t){return t&&1===t.nodeType}function tM(t,n){const e=t.style.display;return t.style.display=null!=n?n:"none",e}function nM(t,n,e,i,o){const r=[];e.forEach(l=>r.push(tM(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const f=n.computeStyle(c,d,o);u.set(d,f),(!f||0==f.length)&&(c[Lo]=WH,s.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>tM(l,r[a++])),s}function iM(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const o=new Set(n),r=new Map;function s(a){if(!a)return 1;let l=r.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:o.has(c)?1:s(c),r.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Fo(t,n){var e;null===(e=t.classList)||void 0===e||e.add(n)}function ml(t,n){var e;null===(e=t.classList)||void 0===e||e.remove(n)}function XH(t,n,e){fs(e).onDone(()=>t.processLeaveNode(n))}function oM(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof TD?oM(i.players,n):n.push(i)}}function rM(t,n,e){const i=e.get(t);if(!i)return!1;let o=n.get(t);return o?i.forEach(r=>o.add(r)):n.set(t,i),e.delete(t),!0}class Zh{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,r)=>{},this._transitionEngine=new YH(n,e,i),this._timelineEngine=new jH(n,e,i),this._transitionEngine.onRemovalComplete=(o,r)=>this.onRemovalComplete(o,r)}registerTrigger(n,e,i,o,r){const s=n+"-"+o;let a=this._triggerCache[s];if(!a){const l=[],u=qv(this._driver,r,l,[]);if(l.length)throw function BU(t,n){return new Pe(3404,!1)}();a=function LH(t,n,e){return new FH(t,n,e)}(o,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,o){this._transitionEngine.insertNode(n,e,i,o)}onRemove(n,e,i,o){this._transitionEngine.removeNode(n,e,o||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,o){if("@"==i.charAt(0)){const[r,s]=ID(i);this._timelineEngine.command(r,e,s,o)}else this._transitionEngine.trigger(n,e,i,o)}listen(n,e,i,o,r){if("@"==i.charAt(0)){const[s,a]=ID(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(n,e,i,o,r)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let n5=(()=>{class t{constructor(e,i,o){this._element=e,this._startStyles=i,this._endStyles=o,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&Cr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Cr(this._element,this._initialStyles),this._endStyles&&(Cr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qs(this._element,this._endStyles),this._endStyles=null),Cr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function n_(t){let n=null;return t.forEach((e,i)=>{(function i5(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class sM{constructor(n,e,i,o){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{"offset"!==o&&n.set(o,this._finished?i:qD(this.element,o))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class o5{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return ND(n,e)}getParentElement(n){return Bv(n)}query(n,e,i){return LD(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,o,r,s=[]){const l={duration:i,delay:o,fill:0==o?"both":"forwards"};r&&(l.easing=r);const c=new Map,u=s.filter(y=>y instanceof sM);(function lH(t,n){return 0===t||0===n})(i,o)&&u.forEach(y=>{y.currentSnapshot.forEach((N,X)=>c.set(X,N))});let d=function oH(t){return t.length?t[0]instanceof Map?t:t.map(n=>jD(n)):[]}(e).map(y=>ps(y));d=function cH(t,n,e){if(e.size&&n.length){let i=n[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;r<n.length;r++){let s=n[r];o.forEach(a=>s.set(a,qD(t,a)))}}return n}(n,d,c);const f=function t5(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=n_(n[0]),n.length>1&&(i=n_(n[n.length-1]))):n instanceof Map&&(e=n_(n)),e||i?new n5(t,e,i):null}(n,d);return new sM(n,d,l,f)}}let r5=(()=>{class t extends AD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Yo.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?DD(e):e;return aM(this._renderer,null,i,"register",[o]),new s5(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(ie(Pc),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();class s5 extends class gU{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new a5(this._id,n,e||{},this._renderer)}}class a5{constructor(n,e,i,o){this.id=n,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return aM(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){var n,e;return null!==(e=null===(n=this._renderer.engine.players[+this.id])||void 0===n?void 0:n.getPosition())&&void 0!==e?e:0}}function aM(t,n,e,i,o){return t.setProperty(n,`@@${e}:${i}`,o)}const lM="@.disabled";let l5=(()=>{class t{constructor(e,i,o){this.delegate=e,this.engine=i,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(r,s)=>{const a=null==s?void 0:s.parentNode(r);a&&s.removeChild(a,r)}}createRenderer(e,i){const r=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(r);return u||(u=new cM("",r,this.engine),this._rendererCache.set(r,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new c5(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,o){e>=0&&e<this._microtaskId?this._zone.run(()=>i(o)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(r=>{const[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,o]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(ie(Pc),ie(Zh),ie(dt))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();class cM{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?o=>e.destroyNode(o):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,o=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,o)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,o){this.delegate.setAttribute(n,e,i,o)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,o){this.delegate.setStyle(n,e,i,o)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==lM?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class c5 extends cM{constructor(n,e,i,o){super(e,i,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==lM?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const o=function u5(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let r=e.slice(1),s="";return"@"!=r.charAt(0)&&([r,s]=function d5(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const uM=[{provide:AD,useClass:r5},{provide:Kv,useFactory:function f5(){return new RH}},{provide:Zh,useClass:(()=>{class t extends Zh{constructor(e,i,o,r){super(e.body,i,o)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(Vv),ie(Kv),ie(Gs))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})()},{provide:Pc,useFactory:function p5(t,n,e){return new l5(t,n,e)},deps:[Lh,Zh,dt]}],i_=[{provide:Vv,useFactory:()=>new o5},{provide:bi,useValue:"BrowserAnimations"},...uM],dM=[{provide:Vv,useClass:FD},{provide:bi,useValue:"NoopAnimations"},...uM];let hM=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?dM:i_}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:i_,imports:[bD]}),t})();function vt(t){return null!=t&&"false"!=`${t}`}function Ki(t,n=0){return function g5(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):n}function Jh(t){return Array.isArray(t)?t:[t]}function oi(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Wr(t){return t instanceof Ue?t.nativeElement:t}function st(...t){return ei(t,dc(t))}const{isArray:m5}=Array;function o_(t){return $e(n=>function v5(t,n){return m5(n)?t(...n):t(n)}(t,n))}const _5=["addListener","removeListener"],b5=["addEventListener","removeEventListener"],y5=["on","off"];function vl(t,n,e,i){if(k(e)&&(i=e,e=void 0),i)return vl(t,n,e).pipe(o_(i));const[o,r]=function S5(t){return k(t.addEventListener)&&k(t.removeEventListener)}(t)?b5.map(s=>a=>t[s](n,a,e)):function C5(t){return k(t.addListener)&&k(t.removeListener)}(t)?_5.map(fM(t,n)):function E5(t){return k(t.on)&&k(t.off)}(t)?y5.map(fM(t,n)):[];if(!o&&uc(t))return ui(s=>vl(s,n,e))(eo(t));if(!o)throw new TypeError("Invalid event target");return new b(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return o(a),()=>r(a)})}function fM(t,n){return e=>i=>t[e](n,i)}class A5 extends E{constructor(n,e){super()}schedule(n,e=0){return this}}const ef={setInterval(t,n,...e){const{delegate:i}=ef;return null!=i&&i.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=ef;return((null==n?void 0:n.clearInterval)||clearInterval)(t)},delegate:void 0};class r_ extends A5{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const o=this.id,r=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(r,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return ef.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&ef.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,i=!1;try{this.work(n)}catch(r){i=!0,o=r||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,_(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const pu={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=pu;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const o=n(r=>{e=void 0,t(r)});return new E(()=>null==e?void 0:e(o))},requestAnimationFrame(...t){const{delegate:n}=pu;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=pu;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame)(...t)},delegate:void 0},s_={now:()=>(s_.delegate||Date).now(),delegate:void 0};class gu{constructor(n,e=gu.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}gu.now=s_.now;class a_ extends gu{constructor(n,e=gu.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}new class D5 extends a_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class w5 extends r_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=pu.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(pu.cancelAnimationFrame(e),n._scheduled=void 0)}});let l_,T5=1;const tf={};function pM(t){return t in tf&&(delete tf[t],!0)}const x5={setImmediate(t){const n=T5++;return tf[n]=!0,l_||(l_=Promise.resolve()),l_.then(()=>pM(n)&&t()),n},clearImmediate(t){pM(t)}},{setImmediate:O5,clearImmediate:I5}=x5,nf={setImmediate(...t){const{delegate:n}=nf;return((null==n?void 0:n.setImmediate)||O5)(...t)},clearImmediate(t){const{delegate:n}=nf;return((null==n?void 0:n.clearImmediate)||I5)(t)},delegate:void 0},rf=new class P5 extends a_{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let o;n=n||i.shift();do{if(o=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw o}}}(class R5 extends r_{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=nf.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var o;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:r}=n;null!=e&&(null===(o=r[r.length-1])||void 0===o?void 0:o.id)!==e&&(nf.clearImmediate(e),n._scheduled=void 0)}}),sf=new a_(r_),k5=sf;function gM(t=0,n,e=k5){let i=-1;return null!=n&&(By(n)?e=n:i=n),new b(o=>{let r=function L5(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;r<0&&(r=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=i?this.schedule(void 0,i):o.complete())},r)})}function mM(t,n=sf){return function N5(t){return je((n,e)=>{let i=!1,o=null,r=null,s=!1;const a=()=>{if(null==r||r.unsubscribe(),r=null,i){i=!1;const c=o;o=null,e.next(c)}s&&e.complete()},l=()=>{r=null,s&&e.complete()};n.subscribe(Qe(e,c=>{i=!0,o=c,r||eo(t(c)).subscribe(r=Qe(e,a,l))},()=>{s=!0,(!i||!r||r.closed)&&e.complete()}))})}(()=>gM(t,n))}function Kt(t,n){return je((e,i)=>{let o=0;e.subscribe(Qe(i,r=>t.call(n,r,o++)&&i.next(r)))})}function St(t){return je((n,e)=>{eo(t).subscribe(Qe(e,()=>e.complete(),te)),!e.closed&&n.subscribe(e)})}let c_;try{c_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(t){c_=!1}let _l,ri=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?$s(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!c_)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(ie(Ro))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vM=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function _M(){if(_l)return _l;if("object"!=typeof document||!document)return _l=new Set(vM),_l;let t=document.createElement("input");return _l=new Set(vM.filter(n=>(t.setAttribute("type",n),t.type===n))),_l}let mu,af,Xs,u_;function Zs(t){return function F5(){if(null==mu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>mu=!0}))}finally{mu=mu||!1}return mu}()?t:!!t.capture}function bM(){if(null==Xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Xs=!1,Xs;if("scrollBehavior"in document.documentElement.style)Xs=!0;else{const t=Element.prototype.scrollTo;Xs=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Xs}function vu(){if("object"!=typeof document||!document)return 0;if(null==af){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),af=0,0===t.scrollLeft&&(t.scrollLeft=1,af=0===t.scrollLeft?1:2),t.remove()}return af}function yM(t){if(function B5(){if(null==u_){const t="undefined"!=typeof document?document.head:null;u_=!(!t||!t.createShadowRoot&&!t.attachShadow)}return u_}()){const n=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function d_(){let t="undefined"!=typeof document&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Js(t){return t.composedPath?t.composedPath()[0]:t.target}function h_(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const V5=new Be("cdk-dir-doc",{providedIn:"root",factory:function j5(){return gn(pt)}}),U5=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Co=(()=>{class t{constructor(e){if(this.value="ltr",this.change=new xe,e){const o=e.documentElement?e.documentElement.dir:null;this.value=function H5(t){const n=(null==t?void 0:t.toLowerCase())||"";return"auto"===n&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?U5.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||o||"ltr")}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(ie(V5,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})(),_u=(()=>{class t{constructor(e,i,o){this._ngZone=e,this._platform=i,this._scrolled=new ce,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new b(i=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(mM(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):st()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const o=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Kt(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&i.push(r)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let o=Wr(i),r=e.getElementRef().nativeElement;do{if(o==r)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>vl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(ie(dt),ie(ri),ie(pt,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bu=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=o,this.dir=r,this._destroyed=new ce,this._elementScrolled=new b(s=>this.ngZone.runOutsideAngular(()=>vl(this.elementRef.nativeElement,"scroll").pipe(St(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),o&&0!=vu()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==vu()?e.left=e.right:1==vu()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;bM()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",o="right",r=this.elementRef.nativeElement;if("top"==e)return r.scrollTop;if("bottom"==e)return r.scrollHeight-r.clientHeight-r.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?o:i:"end"==e&&(e=s?i:o),s&&2==vu()?e==i?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&1==vu()?e==i?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==i?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(_u),h(dt),h(Co,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),yu=(()=>{class t{constructor(e,i,o){this._platform=e,this._change=new ce,this._changeListener=r=>{this._change.next(r)},this._document=o,i.runOutsideAngular(()=>{if(e.isBrowser){const r=this._getWindow();r.addEventListener("resize",this._changeListener),r.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+i,height:o,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect();return{top:-r.top||e.body.scrollTop||i.scrollY||o.scrollTop||0,left:-r.left||e.body.scrollLeft||i.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(mM(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(ie(ri),ie(dt),ie(pt,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})(),CM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[bl,ea,bl,ea]}),t})();class f_{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class yl extends f_{constructor(n,e,i,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=o}}class Cl extends f_{constructor(n,e,i,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class q5 extends f_{constructor(n){super(),this.element=n instanceof Ue?n.nativeElement:n}}class lf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof yl?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof Cl?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof q5?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class W5 extends lf{constructor(n,e,i,o,r){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=o,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=r}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let o;return n.viewContainerRef?(o=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector),this.setDisposeFn(()=>o.destroy())):(o=i.create(n.injector||this._defaultInjector||En.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=n,o}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(o=>this.outletElement.appendChild(o)),i.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(i);-1!==o&&e.remove(o)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let El=(()=>{class t extends lf{constructor(e,i,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new xe,this.attachDomPortal=r=>{const s=r.element,a=this._document.createComment("dom-portal");r.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=r,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=o}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(r,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return t.\u0275fac=function(e){return new(e||t)(h(kr),h(pn),h(pt))},t.\u0275dir=be({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ke]}),t})(),Sl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();function An(t){return t<=0?()=>Wo:je((n,e)=>{let i=0;n.subscribe(Qe(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function EM(t,n=!1){return je((e,i)=>{let o=0;e.subscribe(Qe(i,r=>{const s=t(r,o++);(s||n)&&i.next(r),!s&&i.complete()}))})}function so(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const wM=bM();class oG{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=oi(-this._previousScrollPosition.left),n.style.top=oi(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,o=this._document.body.style,r=i.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),wM&&(i.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),wM&&(i.scrollBehavior=r,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class rG{constructor(n,e,i,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class DM{enable(){}disable(){}attach(){}}function g_(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function MM(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class sG{constructor(n,e,i,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=o,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:o}=this._viewportRuler.getViewportSize();g_(e,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let aG=(()=>{class t{constructor(e,i,o,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=o,this.noop=()=>new DM,this.close=s=>new rG(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new oG(this._viewportRuler,this._document),this.reposition=s=>new sG(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(ie(_u),ie(yu),ie(dt),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Su{constructor(n){if(this.scrollStrategy=new DM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class lG{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}class Au{constructor(n,e,i,o,r,s,a,l,c,u=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new ce,this._attachments=new ce,this._detachments=new ce,this._locationChanges=E.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._backdropTransitionendHandler=d=>{this._disposeBackdrop(d.target)},this._keydownEvents=new ce,this._outsidePointerEvents=new ce,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(An(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof(null==e?void 0:e.onDestroy)&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){var n;const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(n=this._host)||void 0===n||n.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=Object.assign(Object.assign({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Object.assign(Object.assign({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=oi(this._config.width),n.height=oi(this._config.height),n.minWidth=oi(this._config.minWidth),n.minHeight=oi(this._config.minHeight),n.maxWidth=oi(this._config.maxWidth),n.maxHeight=oi(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(n):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const o=Jh(e||[]).filter(r=>!!r);o.length&&(i?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(St(Vi(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let xl=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||h_()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove()}const i=this._document.createElement("div");i.classList.add(e),h_()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(ri))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const TM="cdk-overlay-connected-position-bounding-box",cG=/([A-Za-z%]+)$/;class uG{constructor(n,e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new ce,this._resizeSubscription=E.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}get positions(){return this._preferredPositions}attach(n){this._validatePositions(),n.hostElement.classList.add(TM),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=this._containerRect,r=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,o,a),c=this._getOverlayPoint(l,e,a),u=this._getOverlayFit(c,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?r.push({position:a,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:e})}if(r.length){let a=null,l=-1;for(const c of r){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ta(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(TM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let o,r;if("center"==i.originX)o=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o="start"==i.originX?s:a}return e.left<0&&(o-=e.left),r="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,i){let o,r;return o="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,i,o){const r=OM(e);let{x:s,y:a}=n,l=this._getOffset(o,"x"),c=this._getOffset(o,"y");l&&(s+=l),c&&(a+=c);let f=0-a,y=a+r.height-i.height,N=this._subtractOverflows(r.width,0-s,s+r.width-i.width),X=this._subtractOverflows(r.height,f,y),_e=N*X;return{visibleArea:_e,isCompletelyWithinViewport:r.width*r.height===_e,fitsInViewportVertically:X===r.height,fitsInViewportHorizontally:N==r.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const o=i.bottom-e.y,r=i.right-e.x,s=xM(this._overlayRef.getConfig().minHeight),a=xM(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportHorizontally||null!=a&&a<=r;return(n.fitsInViewportVertically||null!=s&&s<=o)&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const o=OM(e),r=this._viewportRect,s=Math.max(n.x+o.width-r.width,0),a=Math.max(n.y+o.height-r.height,0),l=Math.max(r.top-i.top-n.y,0),c=Math.max(r.left-i.left-n.x,0);let u=0,d=0;return u=o.width<=r.width?c||-s:n.x<this._viewportMargin?r.left-i.left-n.x:0,d=o.height<=r.height?l||-a:n.y<this._viewportMargin?r.top-i.top-n.y:0,this._previousPushAmount={x:u,y:d},{x:n.x+u,y:n.y+d}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),o=new lG(n,i);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,o=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${i} ${o}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,o=this._isRtl();let r,s,a,u,d,f;if("top"===e.overlayY)s=n.y,r=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,r=i.height-a+this._viewportMargin;else{const y=Math.min(i.bottom-n.y+i.top,n.y),N=this._lastBoundingBoxSize.height;r=2*y,s=n.y-y,r>N&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-N/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)f=i.width-n.x+this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)d=n.x,u=i.right-n.x;else{const y=Math.min(i.right-n.x+i.left,n.x),N=this._lastBoundingBoxSize.width;u=2*y,d=n.x-y,u>N&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-N/2)}return{top:s,left:d,bottom:a,right:f,width:u,height:r}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.height=oi(i.height),o.top=oi(i.top),o.bottom=oi(i.bottom),o.width=oi(i.width),o.left=oi(i.left),o.right=oi(i.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(o.maxHeight=oi(r)),s&&(o.maxWidth=oi(s))}this._lastBoundingBoxSize=i,ta(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ta(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ta(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){const u=this._viewportRuler.getViewportScrollPosition();ta(i,this._getExactOverlayY(e,n,u)),ta(i,this._getExactOverlayX(e,n,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(o?i.maxHeight=oi(s.maxHeight):r&&(i.maxHeight="")),s.maxWidth&&(o?i.maxWidth=oi(s.maxWidth):r&&(i.maxWidth="")),ta(this._pane.style,i)}_getExactOverlayY(n,e,i){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),"bottom"===n.overlayY?o.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":o.top=oi(r.y),o}_getExactOverlayX(n,e,i){let s,o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?o.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":o.left=oi(r.x),o}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:MM(n,i),isOriginOutsideView:g_(n,i),isOverlayClipped:MM(e,i),isOverlayOutsideView:g_(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,o)=>i-Math.max(o,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Jh(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof Ue)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function ta(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function xM(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(cG);return e&&"px"!==e?null:parseFloat(n)}return t||null}function OM(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const IM="cdk-global-overlay-wrapper";class dG{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(IM),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:a}=i,l=!("100%"!==o&&"100vw"!==o||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,d=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let y="",N="",X="";l?X="flex-start":"center"===u?(X="center",f?N=d:y=d):f?"left"===u||"end"===u?(X="flex-end",y=d):("right"===u||"start"===u)&&(X="flex-start",N=d):"left"===u||"start"===u?(X="flex-start",y=d):("right"===u||"end"===u)&&(X="flex-end",N=d),n.position=this._cssPosition,n.marginLeft=l?"0":y,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":N,e.justifyContent=X,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(IM),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let hG=(()=>{class t{constructor(e,i,o,r){this._viewportRuler=e,this._document=i,this._platform=o,this._overlayContainer=r}global(){return new dG}flexibleConnectedTo(e){return new uG(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(ie(yu),ie(pt),ie(ri),ie(xl))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),RM=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fG=(()=>{class t extends RM{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=o=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){const a=r[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(o)):a.next(o);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(dt,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pG=(()=>{class t extends RM{constructor(e,i,o){super(e),this._platform=i,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Js(r)},this._clickListener=r=>{const s=Js(r),a="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(r)):d.next(r)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(ri),ie(dt,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gG=0,ao=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,y){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=o,this._positionBuilder=r,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=f,this._animationsModuleType=y}create(e){const i=this._createHostElement(),o=this._createPaneElement(i),r=this._createPortalOutlet(o),s=new Su(e);return s.direction=s.direction||this._directionality.value,new Au(r,i,o,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+gG++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(Gs)),new W5(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(ie(aG),ie(xl),ie(kr),ie(hG),ie(fG),ie(En),ie(dt),ie(pt),ie(Co),ie(nu),ie(pG),ie(bi,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const mG=[{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"}],PM=new Be("cdk-connected-overlay-scroll-strategy");let kM=(()=>{class t{constructor(e){this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(h(Ue))},t.\u0275dir=be({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),NM=(()=>{class t{constructor(e,i,o,r,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=E.EMPTY,this._attachSubscription=E.EMPTY,this._detachSubscription=E.EMPTY,this._positionSubscription=E.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new xe,this.positionChange=new xe,this.attach=new xe,this.detach=new xe,this.overlayKeydown=new xe,this.overlayOutsideClick=new xe,this._templatePortal=new Cl(i,o),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=vt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=vt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=vt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=vt(e)}get push(){return this._push}set push(e){this._push=vt(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=mG);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),27===i.keyCode&&!this.disableClose&&!so(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{this.overlayOutsideClick.next(i)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Su({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof kM?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(EM(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(ao),h(yt),h(pn),h(PM),h(Co,8))},t.\u0275dir=be({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Kn]}),t})();const _G={provide:PM,deps:[ao],useFactory:function vG(t){return()=>t.scrollStrategies.reposition()}};let Ol=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[ao,_G],imports:[bl,Sl,CM,CM]}),t})();function gs(t,n){return k(n)?ui(t,n,1):ui(t,1)}class LM{}class FM{}class $r{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(o,i),this.maybeSetNormalizedName(e,o))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof $r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new $r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof $r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const r=n.value;if(r){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===r.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class bG{encodeKey(n){return BM(n)}encodeValue(n){return BM(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const CG=/%(\d[a-f0-9])/gi,EG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function BM(t){return encodeURIComponent(t).replace(CG,(n,e)=>{var i;return null!==(i=EG[e])&&void 0!==i?i:n})}function cf(t){return`${t}`}class ms{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new bG,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function yG(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const r=o.indexOf("="),[s,a]=-1==r?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],o=Array.isArray(i)?i.map(cf):[cf(i)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const o=n[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ms({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(cf(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const o=i.indexOf(cf(n.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class SG{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function VM(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function jM(t){return"undefined"!=typeof Blob&&t instanceof Blob}function UM(t){return"undefined"!=typeof FormData&&t instanceof FormData}class wu{constructor(n,e,i,o){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function AG(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new $r),this.context||(this.context=new SG),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new ms,this.urlWithParams=e}serializeBody(){return null===this.body?null:VM(this.body)||jM(this.body)||UM(this.body)||function wG(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ms?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||UM(this.body)?null:jM(this.body)?this.body.type||null:VM(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ms?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){var e;const i=n.method||this.method,o=n.url||this.url,r=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,u=n.params||this.params;const d=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((f,y)=>f.set(y,n.setHeaders[y]),c)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,y)=>f.set(y,n.setParams[y]),u)),new wu(i,o,s,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a})}}var si=(()=>((si=si||{})[si.Sent=0]="Sent",si[si.UploadProgress=1]="UploadProgress",si[si.ResponseHeader=2]="ResponseHeader",si[si.DownloadProgress=3]="DownloadProgress",si[si.Response=4]="Response",si[si.User=5]="User",si))();class m_{constructor(n,e=200,i="OK"){this.headers=n.headers||new $r,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class v_ extends m_{constructor(n={}){super(n),this.type=si.ResponseHeader}clone(n={}){return new v_({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class uf extends m_{constructor(n={}){super(n),this.type=si.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new uf({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class HM extends m_{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function __(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let b_=(()=>{class t{constructor(e){this.handler=e}request(e,i,o={}){let r;if(e instanceof wu)r=e;else{let l,c;l=o.headers instanceof $r?o.headers:new $r(o.headers),o.params&&(c=o.params instanceof ms?o.params:new ms({fromObject:o.params})),r=new wu(e,i,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=st(r).pipe(gs(l=>this.handler.handle(l)));if(e instanceof wu||"events"===o.observe)return s;const a=s.pipe(Kt(l=>l instanceof uf));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe($e(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe($e(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe($e(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe($e(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ms).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,__(o,i))}post(e,i,o={}){return this.request("POST",e,__(o,i))}put(e,i,o={}){return this.request("PUT",e,__(o,i))}}return t.\u0275fac=function(e){return new(e||t)(ie(LM))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();class GM{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const zM=new Be("HTTP_INTERCEPTORS");let DG=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const MG=/^\)\]\}',?\n/;let qM=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new b(i=>{const o=this.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((y,N)=>o.setRequestHeader(y,N.join(","))),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const y=e.detectContentTypeHeader();null!==y&&o.setRequestHeader("Content-Type",y)}if(e.responseType){const y=e.responseType.toLowerCase();o.responseType="json"!==y?y:"text"}const r=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const y=o.statusText||"OK",N=new $r(o.getAllResponseHeaders()),X=function TG(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||e.url;return s=new v_({headers:N,status:o.status,statusText:y,url:X}),s},l=()=>{let{headers:y,status:N,statusText:X,url:_e}=a(),me=null;204!==N&&(me=void 0===o.response?o.responseText:o.response),0===N&&(N=me?200:0);let Ae=N>=200&&N<300;if("json"===e.responseType&&"string"==typeof me){const ve=me;me=me.replace(MG,"");try{me=""!==me?JSON.parse(me):null}catch(Se){me=ve,Ae&&(Ae=!1,me={error:Se,text:me})}}Ae?(i.next(new uf({body:me,headers:y,status:N,statusText:X,url:_e||void 0})),i.complete()):i.error(new HM({error:me,headers:y,status:N,statusText:X,url:_e||void 0}))},c=y=>{const{url:N}=a(),X=new HM({error:y,status:o.status||0,statusText:o.statusText||"Unknown Error",url:N||void 0});i.error(X)};let u=!1;const d=y=>{u||(i.next(a()),u=!0);let N={type:si.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(N.total=y.total),"text"===e.responseType&&!!o.responseText&&(N.partialText=o.responseText),i.next(N)},f=y=>{let N={type:si.UploadProgress,loaded:y.loaded};y.lengthComputable&&(N.total=y.total),i.next(N)};return o.addEventListener("load",l),o.addEventListener("error",c),o.addEventListener("timeout",c),o.addEventListener("abort",c),e.reportProgress&&(o.addEventListener("progress",d),null!==r&&o.upload&&o.upload.addEventListener("progress",f)),o.send(r),i.next({type:si.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",l),o.removeEventListener("timeout",c),e.reportProgress&&(o.removeEventListener("progress",d),null!==r&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(ie(eD))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();const y_=new Be("XSRF_COOKIE_NAME"),C_=new Be("XSRF_HEADER_NAME");class WM{}let xG=(()=>{class t{constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uw(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(Ro),ie(y_))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),E_=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const o=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||o.startsWith("http://")||o.startsWith("https://"))return i.handle(e);const r=this.tokenService.getToken();return null!==r&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,r)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(WM),ie(C_))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),OG=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(zM,[]);this.chain=i.reduceRight((o,r)=>new GM(o,r),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(FM),ie(En))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),IG=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:E_,useClass:DG}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:y_,useValue:e.cookieName}:[],e.headerName?{provide:C_,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[E_,{provide:zM,useExisting:E_,multi:!0},{provide:WM,useClass:xG},{provide:y_,useValue:"XSRF-TOKEN"},{provide:C_,useValue:"X-XSRF-TOKEN"}]}),t})(),RG=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[b_,{provide:LM,useClass:OG},qM,{provide:FM,useExisting:qM}],imports:[IG.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();const{isArray:PG}=Array,{getPrototypeOf:kG,prototype:NG,keys:LG}=Object;function $M(t){if(1===t.length){const n=t[0];if(PG(n))return{args:n,keys:null};if(function FG(t){return t&&"object"==typeof t&&kG(t)===NG}(n)){const e=LG(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function YM(t,n){return t.reduce((e,i,o)=>(e[i]=n[o],e),{})}function QM(...t){const n=Vy(t),{args:e,keys:i}=$M(t),o=new b(r=>{const{length:s}=e;if(!s)return void r.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;eo(e[u]).subscribe(Qe(r,f=>{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||r.next(i?YM(i,a):a),r.complete())}))}});return n?o.pipe(o_(n)):o}let KM=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(h(Oo),h(Ue))},t.\u0275dir=be({type:t}),t})(),na=(()=>{class t extends KM{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,features:[ke]}),t})();const Eo=new Be("NgValueAccessor"),VG={provide:Eo,useExisting:en(()=>vs),multi:!0},UG=new Be("CompositionEventMode");let vs=(()=>{class t extends KM{constructor(e,i,o){super(e,i),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function jG(){const t=yr()?yr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Oo),h(Ue),h(UG,8))},t.\u0275dir=be({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Ie("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},features:[kt([VG]),ke]}),t})();function _s(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function XM(t){return null!=t&&"number"==typeof t.length}const wi=new Be("NgValidators"),bs=new Be("NgAsyncValidators"),GG=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class S_{static min(n){return function JM(t){return n=>{if(_s(n.value)||_s(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}}(n)}static max(n){return function eT(t){return n=>{if(_s(n.value)||_s(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function tT(t){return _s(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function nT(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function iT(t){return _s(t.value)||GG.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function oT(t){return n=>_s(n.value)||!XM(n.value)?null:n.value.length<t?{minlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static maxLength(n){return rT(n)}static pattern(n){return function sT(t){if(!t)return df;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(_s(i.value))return null;const o=i.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return hT(n)}static composeAsync(n){return fT(n)}}function rT(t){return n=>XM(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}function df(t){return null}function aT(t){return null!=t}function lT(t){return Hc(t)?ei(t):t}function cT(t){let n={};return t.forEach(e=>{n=null!=e?Object.assign(Object.assign({},n),e):n}),0===Object.keys(n).length?null:n}function uT(t,n){return n.map(e=>e(t))}function dT(t){return t.map(n=>function zG(t){return!t.validate}(n)?n:e=>n.validate(e))}function hT(t){if(!t)return null;const n=t.filter(aT);return 0==n.length?null:function(e){return cT(uT(e,n))}}function A_(t){return null!=t?hT(dT(t)):null}function fT(t){if(!t)return null;const n=t.filter(aT);return 0==n.length?null:function(e){return QM(uT(e,n).map(lT)).pipe($e(cT))}}function w_(t){return null!=t?fT(dT(t)):null}function pT(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gT(t){return t._rawValidators}function mT(t){return t._rawAsyncValidators}function D_(t){return t?Array.isArray(t)?t:[t]:[]}function hf(t,n){return Array.isArray(t)?t.includes(n):t===n}function vT(t,n){const e=D_(n);return D_(t).forEach(o=>{hf(e,o)||e.push(o)}),e}function _T(t,n){return D_(n).filter(e=>!hf(t,e))}class bT{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=A_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=w_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Er extends bT{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Zi extends bT{get formDirective(){return null}get path(){return null}}let Il=(()=>{class t extends class yT{constructor(n){this._cd=n}get isTouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.touched)}get isUntouched(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.untouched)}get isPristine(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pristine)}get isDirty(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.dirty)}get isValid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.valid)}get isInvalid(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.invalid)}get isPending(){var n,e;return!(null===(e=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===e||!e.pending)}get isSubmitted(){var n;return!(null===(n=this._cd)||void 0===n||!n.submitted)}}{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Er,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&ft("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ke]}),t})();const Du="VALID",pf="INVALID",Rl="PENDING",Mu="DISABLED";function O_(t){return(gf(t)?t.validators:t)||null}function ST(t){return Array.isArray(t)?A_(t):t||null}function I_(t,n){return(gf(n)?n.asyncValidators:t)||null}function AT(t){return Array.isArray(t)?w_(t):t||null}function gf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class MT{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=ST(this._rawValidators),this._composedAsyncValidatorFn=AT(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===Du}get invalid(){return this.status===pf}get pending(){return this.status==Rl}get disabled(){return this.status===Mu}get enabled(){return this.status!==Mu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=ST(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=AT(n)}addValidators(n){this.setValidators(vT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_T(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_T(n,this._rawAsyncValidators))}hasValidator(n){return hf(this._rawValidators,n)}hasAsyncValidator(n){return hf(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Rl,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Mu,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=Du,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},n),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Du||this.status===Rl)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mu:Du}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Rl,this._hasOwnPendingAsyncValidator=!0;const e=lT(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new xe,this.statusChanges=new xe}_calculateStatus(){return this._allControlsDisabled()?Mu:this.errors?pf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Rl)?Rl:this._anyControlsHaveStatus(pf)?pf:Du}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){gf(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class R_ extends MT{constructor(n,e,i){super(O_(e),I_(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){(function DT(t,n,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new Pe(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function wT(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Pe(1e3,"");if(!i[e])throw new Pe(1001,"")})(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const o=this.controls[i];o&&o.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,o)=>{i.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}function Tu(t,n){var e,i;P_(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&(null===(i=(e=n.valueAccessor).setDisabledState)||void 0===i||i.call(e,!0)),function JG(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&TT(t,n)})}(t,n),function tz(t,n){const e=(i,o)=>{n.valueAccessor.writeValue(i),o&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function ez(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&TT(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function XG(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function vf(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),bf(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function _f(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function P_(t,n){const e=gT(t);null!==n.validator?t.setValidators(pT(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=mT(t);null!==n.asyncValidator?t.setAsyncValidators(pT(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();_f(n._rawValidators,o),_f(n._rawAsyncValidators,o)}function bf(t,n){let e=!1;if(null!==t){if(null!==n.validator){const o=gT(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(null!==n.asyncValidator){const o=mT(t);if(Array.isArray(o)&&o.length>0){const r=o.filter(s=>s!==n.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}const i=()=>{};return _f(n._rawValidators,i),_f(n._rawAsyncValidators,i),e}function TT(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function xT(t,n){P_(t,n)}function IT(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}const sz={provide:Zi,useExisting:en(()=>Pl)},xu=(()=>Promise.resolve())();let Pl=(()=>{class t extends Zi{constructor(e,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new xe,this.form=new R_({},A_(e),w_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Tu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xu.then(()=>{const i=this._findContainer(e.path),o=new R_({});xT(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){xu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){var i;return this.submitted=!0,IT(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)(h(wi,10),h(bs,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ie("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([sz]),ke]}),t})();function RT(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function PT(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const L_=class extends MT{constructor(n=null,e,i){super(O_(e),I_(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=PT(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){RT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){RT(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){PT(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},uz={provide:Er,useExisting:en(()=>ia)},LT=(()=>Promise.resolve())();let ia=(()=>{class t extends Er{constructor(e,i,o,r,s){super(),this._changeDetectorRef=s,this.control=new L_,this._registered=!1,this.update=new xe,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=function N_(t,n){if(!n)return null;let e,i,o;return Array.isArray(n),n.forEach(r=>{r.constructor===vs?e=r:function oz(t){return Object.getPrototypeOf(t.constructor)===na}(r)?i=r:o=r}),o||i||e||null}(0,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function k_(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Tu(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){LT.then(()=>{var i;this.control.setValue(e,{emitViewToModelChange:!1}),null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&function Ur(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);LT.then(()=>{var r;o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),null===(r=this._changeDetectorRef)||void 0===r||r.markForCheck()})}_getPath(e){return this._parent?function mf(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(h(Zi,9),h(wi,10),h(bs,10),h(Eo,10),h(zt,8))},t.\u0275dir=be({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[kt([uz]),ke,Kn]}),t})(),BT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();const F_=new Be("NgModelWithFormControlWarning"),vz={provide:Zi,useExisting:en(()=>Ou)};let Ou=(()=>{class t extends Zi{constructor(e,i){super(),this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new xe,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(bf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Tu(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){vf(e.control||null,e,!1),function rz(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){var i;return this.submitted=!0,IT(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===(null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.method)}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(vf(i||null,e),(t=>t instanceof L_)(o)&&(Tu(o,e),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);xT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function nz(t,n){return bf(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){P_(this.form,this),this._oldForm&&bf(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(h(wi,10),h(bs,10))},t.\u0275dir=be({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ie("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kt([vz]),ke,Kn]}),t})();let oa=(()=>{class t{constructor(){this._validator=df}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):df,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,features:[Kn]}),t})();const Pz={provide:wi,useExisting:en(()=>kl),multi:!0};let kl=(()=>{class t extends oa{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function WT(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>rT(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Pt("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[kt([Pz]),ke]}),t})(),JT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[BT]}),t})(),Nz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[JT]}),t})(),Lz=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:F_,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[JT]}),t})();class wt extends ce{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const Cf=z(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function G_(...t){const n=dc(t),e=Vy(t),{args:i,keys:o}=$M(t);if(0===i.length)return ei([],n);const r=new b(function Bz(t,n,e=g){return i=>{ex(n,()=>{const{length:o}=t,r=new Array(o);let s=o,a=o;for(let l=0;l<o;l++)ex(n,()=>{const c=ei(t[l],n);let u=!1;c.subscribe(Qe(i,d=>{r[l]=d,u||(u=!0,a--),a||i.next(e(r.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,o?s=>YM(o,s):g));return e?r.pipe(o_(e)):r}function ex(t,n,e){t?Mr(e,t,n):n()}function Iu(...t){return function Vz(){return Aa(1)}()(ei(t,dc(t)))}function Ru(t){return new b(n=>{eo(t()).subscribe(n)})}function Nl(t,n){const e=k(t)?t:()=>t,i=o=>o.error(e());return new b(n?o=>n.schedule(i,0,o):i)}function z_(){return je((t,n)=>{let e=null;t._refCount++;const i=Qe(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class tx extends b{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Xe(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,null==n||n.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new E;const e=this.getSubject();n.add(this.source.subscribe(Qe(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=E.EMPTY)}return n}refCount(){return z_()(this)}}function Li(t,n){return je((e,i)=>{let o=null,r=0,s=!1;const a=()=>s&&!o&&i.complete();e.subscribe(Qe(i,l=>{null==o||o.unsubscribe();let c=0;const u=r++;eo(t(l,u)).subscribe(o=Qe(i,d=>i.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ci(...t){const n=dc(t);return je((e,i)=>{(n?Iu(t,e,n):Iu(t,e)).subscribe(i)})}function Ef(t){return je((n,e)=>{let i=!1;n.subscribe(Qe(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function nx(t=jz){return je((n,e)=>{let i=!1;n.subscribe(Qe(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function jz(){return new Cf}function ys(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Kt((o,r)=>t(o,r,i)):g,An(1),e?Ef(n):nx(()=>new Cf))}function Jn(t,n,e){const i=k(t)||n||e?{next:t,error:n,complete:e}:t;return i?je((o,r)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;o.subscribe(Qe(r,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),r.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),r.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),r.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):g}function Yr(t){return je((n,e)=>{let r,i=null,o=!1;i=n.subscribe(Qe(e,void 0,void 0,s=>{r=eo(t(s,Yr(t)(n))),i?(i.unsubscribe(),i=null,r.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(e))})}function Uz(t,n,e,i,o){return(r,s)=>{let a=e,l=n,c=0;r.subscribe(Qe(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}function ix(t,n){return je(Uz(t,n,arguments.length>=2,!0))}function q_(t){return t<=0?()=>Wo:je((n,e)=>{let i=[];n.subscribe(Qe(e,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}function ox(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Kt((o,r)=>t(o,r,i)):g,q_(1),e?Ef(n):nx(()=>new Cf))}function Sf(t){return $e(()=>t)}function Af(t){return je((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const Ht="primary",Pu=Symbol("RouteTitle");class Hz{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ll(t){return new Hz(t)}function Gz(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const o={};for(let r=0;r<i.length;r++){const s=i[r],a=t[r];if(s.startsWith(":"))o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function Sr(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let o;for(let r=0;r<e.length;r++)if(o=e[r],!rx(t[o],n[o]))return!1;return!0}function rx(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((o,r)=>i[r]===o)}return t===n}function sx(t){return Array.prototype.concat.apply([],t)}function ax(t){return t.length>0?t[t.length-1]:null}function Di(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Cs(t){return Sm(t)?t:Hc(t)?ei(Promise.resolve(t)):st(t)}const Wz={exact:function ux(t,n,e){if(!sa(t.segments,n.segments)||!wf(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!ux(t.children[i],n.children[i],e))return!1;return!0},subset:dx},lx={exact:function $z(t,n){return Sr(t,n)},subset:function Yz(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>rx(t[e],n[e]))},ignored:()=>!0};function cx(t,n,e){return Wz[e.paths](t.root,n.root,e.matrixParams)&&lx[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function dx(t,n,e){return hx(t,n,n.segments,e)}function hx(t,n,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!sa(o,e)||n.hasChildren()||!wf(o,e,i))}if(t.segments.length===e.length){if(!sa(t.segments,e)||!wf(t.segments,e,i))return!1;for(const o in n.children)if(!t.children[o]||!dx(t.children[o],n.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!!(sa(t.segments,o)&&wf(t.segments,o,i)&&t.children[Ht])&&hx(t.children[Ht],n,r,i)}}function wf(t,n,e){return n.every((i,o)=>lx[e](t[o].parameters,i.parameters))}class ra{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ll(this.queryParams)),this._queryParamMap}toString(){return Zz.serialize(this)}}class qt{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Di(e,(i,o)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Df(this)}}class ku{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ll(this.parameters)),this._parameterMap}toString(){return mx(this)}}function sa(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let fx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:function(){return new $_},providedIn:"root"}),t})();class $_{parse(n){const e=new s8(n);return new ra(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Nu(n.root,!0)}`,i=function e8(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(o=>`${Mf(e)}=${Mf(o)}`).join("&"):`${Mf(e)}=${Mf(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function Xz(t){return encodeURI(t)}(n.fragment)}`:""}`}}const Zz=new $_;function Df(t){return t.segments.map(n=>mx(n)).join("/")}function Nu(t,n){if(!t.hasChildren())return Df(t);if(n){const e=t.children[Ht]?Nu(t.children[Ht],!1):"",i=[];return Di(t.children,(o,r)=>{r!==Ht&&i.push(`${r}:${Nu(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function Kz(t,n){let e=[];return Di(t.children,(i,o)=>{o===Ht&&(e=e.concat(n(i,o)))}),Di(t.children,(i,o)=>{o!==Ht&&(e=e.concat(n(i,o)))}),e}(t,(i,o)=>o===Ht?[Nu(t.children[Ht],!1)]:[`${o}:${Nu(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Ht]?`${Df(t)}/${e[0]}`:`${Df(t)}/(${e.join("//")})`}}function px(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mf(t){return px(t).replace(/%3B/gi,";")}function Y_(t){return px(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Tf(t){return decodeURIComponent(t)}function gx(t){return Tf(t.replace(/\+/g,"%20"))}function mx(t){return`${Y_(t.path)}${function Jz(t){return Object.keys(t).map(n=>`;${Y_(n)}=${Y_(t[n])}`).join("")}(t.parameters)}`}const t8=/^[^\/()?;=#]+/;function xf(t){const n=t.match(t8);return n?n[0]:""}const n8=/^[^=?&#]+/,o8=/^[^&#]+/;class s8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qt([],{}):new qt([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Ht]=new qt(n,e)),i}parseSegment(){const n=xf(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Pe(4009,!1);return this.capture(n),new ku(Tf(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=xf(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=xf(this.remaining);o&&(i=o,this.capture(i))}n[Tf(e)]=Tf(i)}parseQueryParam(n){const e=function i8(t){const n=t.match(n8);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function r8(t){const n=t.match(o8);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const o=gx(e),r=gx(i);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(r)}else n[o]=r}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=xf(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new Pe(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=Ht);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s[Ht]:new qt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Pe(4011,!1)}}function Q_(t){return t.segments.length>0?new qt([],{[Ht]:t}):t}function Of(t){const n={};for(const i of Object.keys(t.children)){const r=Of(t.children[i]);(r.segments.length>0||r.hasChildren())&&(n[i]=r)}return function a8(t){if(1===t.numberOfChildren&&t.children[Ht]){const n=t.children[Ht];return new qt(t.segments.concat(n.segments),n.children)}return t}(new qt(t.segments,n))}function aa(t){return t instanceof ra}function u8(t,n,e,i,o){var r;if(0===e.length)return Fl(n.root,n.root,n.root,i,o);const a=function bx(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new _x(!0,0,t);let n=0,e=!1;const i=t.reduce((o,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const a={};return Di(r.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return"string"!=typeof r?[...o,r]:0===s?(r.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,r]},[]);return new _x(e,n,i)}(e);return a.toRoot()?Fl(n.root,n.root,new qt([],{}),i,o):function l(u){var d;const f=function h8(t,n,e,i){if(t.isAbsolute)return new Bl(n.root,!0,0);if(-1===i)return new Bl(e,e===n.root,0);return function yx(t,n,e){let i=t,o=n,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Pe(4005,!1);o=i.segments.length}return new Bl(i,!1,o-r)}(e,i+(Lu(t.commands[0])?0:1),t.numberOfDoubleDots)}(a,n,null===(d=t.snapshot)||void 0===d?void 0:d._urlSegment,u),y=f.processChildren?Bu(f.segmentGroup,f.index,a.commands):Z_(f.segmentGroup,f.index,a.commands);return Fl(n.root,f.segmentGroup,y,i,o)}(null===(r=t.snapshot)||void 0===r?void 0:r._lastPathIndex)}function Lu(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Fu(t){return"object"==typeof t&&null!=t&&t.outlets}function Fl(t,n,e,i,o){let s,r={};i&&Di(i,(l,c)=>{r[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:vx(t,n,e);const a=Q_(Of(s));return new ra(a,r,o)}function vx(t,n,e){const i={};return Di(t.children,(o,r)=>{i[r]=o===n?e:vx(o,n,e)}),new qt(t.segments,i)}class _x{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Lu(i[0]))throw new Pe(4003,!1);const o=i.find(Fu);if(o&&o!==ax(i))throw new Pe(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Bl{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function Z_(t,n,e){if(t||(t=new qt([],{})),0===t.segments.length&&t.hasChildren())return Bu(t,n,e);const i=function p8(t,n,e){let i=0,o=n;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=e.length)return r;const s=t.segments[o],a=e[i];if(Fu(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(o>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Ex(l,c,s))return r;i+=2}else{if(!Ex(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const r=new qt(t.segments.slice(0,i.pathIndex),{});return r.children[Ht]=new qt(t.segments.slice(i.pathIndex),t.children),Bu(r,0,o)}return i.match&&0===o.length?new qt(t.segments,{}):i.match&&!t.hasChildren()?X_(t,n,e):i.match?Bu(t,0,o):X_(t,n,e)}function Bu(t,n,e){if(0===e.length)return new qt(t.segments,{});{const i=function f8(t){return Fu(t[0])?t[0].outlets:{[Ht]:t}}(e),o={};return Di(i,(r,s)=>{"string"==typeof r&&(r=[r]),null!==r&&(o[s]=Z_(t.children[s],n,r))}),Di(t.children,(r,s)=>{void 0===i[s]&&(o[s]=r)}),new qt(t.segments,o)}}function X_(t,n,e){const i=t.segments.slice(0,n);let o=0;for(;o<e.length;){const r=e[o];if(Fu(r)){const l=g8(r.outlets);return new qt(i,l)}if(0===o&&Lu(e[0])){i.push(new ku(t.segments[n].path,Cx(e[0]))),o++;continue}const s=Fu(r)?r.outlets[Ht]:`${r}`,a=o<e.length-1?e[o+1]:null;s&&a&&Lu(a)?(i.push(new ku(s,Cx(a))),o+=2):(i.push(new ku(s,{})),o++)}return new qt(i,{})}function g8(t){const n={};return Di(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=X_(new qt([],{}),0,e))}),n}function Cx(t){const n={};return Di(t,(e,i)=>n[i]=`${e}`),n}function Ex(t,n,e){return t==e.path&&Sr(n,e.parameters)}class Qr{constructor(n,e){this.id=n,this.url=e}}class J_ extends Qr{constructor(n,e,i="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class la extends Qr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class If extends Qr{constructor(n,e,i,o){super(n,e),this.reason=i,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Sx extends Qr{constructor(n,e,i,o){super(n,e),this.error=i,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class m8 extends Qr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class v8 extends Qr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _8 extends Qr{constructor(n,e,i,o,r){super(n,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class b8 extends Qr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class y8 extends Qr{constructor(n,e,i,o){super(n,e),this.urlAfterRedirects=i,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class C8{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class E8{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class S8{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class A8{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class w8{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class D8{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ax{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class wx{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=eb(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=eb(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=tb(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return tb(n,this._root).map(e=>e.value)}}function eb(t,n){if(t===n.value)return n;for(const e of n.children){const i=eb(t,e);if(i)return i}return null}function tb(t,n){if(t===n.value)return[n];for(const e of n.children){const i=tb(t,e);if(i.length)return i.unshift(n),i}return[]}class Kr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vl(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Dx extends wx{constructor(n,e){super(n),this.snapshot=e,nb(this,n)}toString(){return this.snapshot.toString()}}function Mx(t,n){const e=function T8(t,n){const s=new Rf([],{},{},"",{},Ht,n,null,t.root,-1,{});return new xx("",new Kr(s,[]))}(t,n),i=new wt([new ku("",{})]),o=new wt({}),r=new wt({}),s=new wt({}),a=new wt(""),l=new ca(i,o,s,a,r,Ht,n,e.root);return l.snapshot=e.root,new Dx(new Kr(l,[]),e)}class ca{constructor(n,e,i,o,r,s,a,l){var c,u;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null!==(u=null===(c=this.data)||void 0===c?void 0:c.pipe($e(d=>d[Pu])))&&void 0!==u?u:st(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe($e(n=>Ll(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($e(n=>Ll(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Tx(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function x8(t){return t.reduce((n,e)=>{var i;return{params:Object.assign(Object.assign({},n.params),e.params),data:Object.assign(Object.assign({},n.data),e.data),resolve:Object.assign(Object.assign(Object.assign(Object.assign({},e.data),n.resolve),null===(i=e.routeConfig)||void 0===i?void 0:i.data),e._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}class Rf{constructor(n,e,i,o,r,s,a,l,c,u,d,f){var y;this.url=n,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.title=null===(y=this.data)||void 0===y?void 0:y[Pu],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=null!=f?f:u,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ll(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ll(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xx extends wx{constructor(n,e){super(e),this.url=n,nb(this,e)}toString(){return Ox(this._root)}}function nb(t,n){n.value._routerState=t,n.children.forEach(e=>nb(t,e))}function Ox(t){const n=t.children.length>0?` { ${t.children.map(Ox).join(", ")} } `:"";return`${t.value}${n}`}function ib(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Sr(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Sr(n.params,e.params)||t.params.next(e.params),function zz(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Sr(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),Sr(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ob(t,n){const e=Sr(t.params,n.params)&&function Qz(t,n){return sa(t,n)&&t.every((e,i)=>Sr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||ob(t.parent,n.parent))}function Vu(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const o=function I8(t,n,e){return n.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Vu(t,i,o);return Vu(t,i)})}(t,n,e);return new Kr(i,o)}{if(t.shouldAttach(n.value)){const r=t.retrieve(n.value);if(null!==r){const s=r.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Vu(t,a)),s}}const i=function R8(t){return new ca(new wt(t.url),new wt(t.params),new wt(t.queryParams),new wt(t.fragment),new wt(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(r=>Vu(t,r));return new Kr(i,o)}}const rb="ngNavigationCancelingError";function Ix(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=aa(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=Rx(!1,0,n);return o.url=e,o.navigationBehaviorOptions=i,o}function Rx(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[rb]=!0,i.cancellationCode=n,e&&(i.url=e),i}function Px(t){return kx(t)&&aa(t.url)}function kx(t){return t&&t[rb]}class P8{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ju,this.attachRef=null}}let ju=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new P8,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Pf=!1;let Nx=(()=>{class t{constructor(e,i,o,r,s){this.parentContexts=e,this.location=i,this.changeDetector=r,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new xe,this.deactivateEvents=new xe,this.attachEvents=new xe,this.detachEvents=new xe,this.name=o||Ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){var e;(null===(e=this.parentContexts.getContext(this.name))||void 0===e?void 0:e.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Pe(4012,Pf);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Pe(4012,Pf);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Pe(4012,Pf);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Pe(4013,Pf);this._activatedRoute=e;const o=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new k8(e,a,o.injector);if(i&&function N8(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=o.createComponent(c,o.length,l)}else this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:null!=i?i:this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(h(ju),h(pn),Xo("name"),h(zt),h(ss))},t.\u0275dir=be({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),t})();class k8{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ca?this.route:n===ju?this.childContexts:this.parent.get(n,e)}}let sb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=it({type:t,selectors:[["ng-component"]],standalone:!0,features:[hA],decls:1,vars:0,template:function(e,i){1&e&&rt(0,"router-outlet")},dependencies:[Nx],encapsulation:2}),t})();function Lx(t,n){var e;return t.providers&&!t._injector&&(t._injector=ch(t.providers,n,`Route: ${t.path}`)),null!==(e=t._injector)&&void 0!==e?e:n}function lb(t){const n=t.children&&t.children.map(lb),e=n?Object.assign(Object.assign({},t),{children:n}):Object.assign({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Ht&&(e.component=sb),e}function Bo(t){return t.outlet||Ht}function Fx(t,n){const e=t.filter(i=>Bo(i)===n);return e.push(...t.filter(i=>Bo(i)!==n)),e}function Uu(t){var n;if(!t)return null;if(null!==(n=t.routeConfig)&&void 0!==n&&n._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){const i=e.routeConfig;if(null!=i&&i._loadedInjector)return i._loadedInjector;if(null!=i&&i._injector)return i._injector}return null}class j8{constructor(n,e,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),ib(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const o=Vl(e);n.children.forEach(r=>{const s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Di(o,(r,s)=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(n,e,i){const o=n.value,r=e?e.value:null;if(o===r)if(o.component){const s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Vl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),o=i&&n.value.component?i.children:e,r=Vl(n);for(const s of Object.keys(r))this.deactivateRouteAndItsChildren(r[s],o);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const o=Vl(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new D8(r.value.snapshot))}),n.children.length&&this.forwardEvent(new A8(n.value.snapshot))}activateRoutes(n,e,i){var o;const r=n.value,s=e?e.value:null;if(ib(r),r===s)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const l=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),ib(l.route.value),this.activateChildRoutes(n,null,a.children)}else{const l=Uu(r.snapshot),c=null!==(o=null==l?void 0:l.get(kr))&&void 0!==o?o:null;a.attachRef=null,a.route=r,a.resolver=c,a.injector=l,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class Bx{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class kf{constructor(n,e){this.component=n,this.route=e}}function U8(t,n,e){const i=t._root;return Hu(i,n?n._root:null,e,[i.value])}function jl(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function XP(t){return null!==fd(t)}(t)?n.get(t):t:i}function Hu(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=Vl(n);return t.children.forEach(s=>{(function G8(t,n,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){const l=function z8(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!sa(t.url,n.url);case"pathParamsOrQueryParamsChange":return!sa(t.url,n.url)||!Sr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ob(t,n)||!Sr(t.queryParams,n.queryParams);default:return!ob(t,n)}}(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Bx(i)):(r.data=s.data,r._resolvedData=s._resolvedData),Hu(t,n,r.component?a?a.children:null:e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new kf(a.outlet.component,s))}else s&&Gu(n,a,o),o.canActivateChecks.push(new Bx(i)),Hu(t,null,r.component?a?a.children:null:e,i,o)})(s,r[s.value.outlet],e,i.concat([s.value]),o),delete r[s.value.outlet]}),Di(r,(s,a)=>Gu(s,e.getContext(a),o)),o}function Gu(t,n,e){const i=Vl(t),o=t.value;Di(i,(r,s)=>{Gu(r,o.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new kf(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function zu(t){return"function"==typeof t}function cb(t){return t instanceof Cf||"EmptyError"===(null==t?void 0:t.name)}const Nf=Symbol("INITIAL_VALUE");function Ul(){return Li(t=>G_(t.map(n=>n.pipe(An(1),Ci(Nf)))).pipe($e(n=>{for(const e of n)if(!0!==e){if(e===Nf)return Nf;if(!1===e||e instanceof ra)return e}return!0}),Kt(n=>n!==Nf),An(1)))}function Vx(t){return function O(...t){return F(t)}(Jn(n=>{if(aa(n))throw Ix(0,n)}),$e(n=>!0===n))}const ub={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jx(t,n,e,i,o){const r=db(t,n,e);return r.matched?function a6(t,n,e,i){const o=n.canMatch;return o&&0!==o.length?st(o.map(s=>{const a=jl(s,t);return Cs(function K8(t){return t&&zu(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ul(),Vx()):st(!0)}(i=Lx(n,i),n,e).pipe($e(s=>!0===s?r:Object.assign({},ub))):st(r)}function db(t,n,e){var i;if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?Object.assign({},ub):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Gz)(e,t,n);if(!r)return Object.assign({},ub);const s={};Di(r.posParams,(l,c)=>{s[c]=l.path});const a=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Lf(t,n,e,i,o="corrected"){if(e.length>0&&function u6(t,n,e){return e.some(i=>Ff(t,n,i)&&Bo(i)!==Ht)}(t,e,i)){const s=new qt(n,function c6(t,n,e,i){const o={};o[Ht]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const r of e)if(""===r.path&&Bo(r)!==Ht){const s=new qt([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,o[Bo(r)]=s}return o}(t,n,i,new qt(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function d6(t,n,e){return e.some(i=>Ff(t,n,i))}(t,e,i)){const s=new qt(t.segments,function l6(t,n,e,i,o,r){const s={};for(const a of i)if(Ff(t,e,a)&&!o[Bo(a)]){const l=new qt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===r?t.segments.length:n.length,s[Bo(a)]=l}return Object.assign(Object.assign({},o),s)}(t,n,e,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const r=new qt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function Ff(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Ux(t,n,e,i){return!!(Bo(t)===i||i!==Ht&&Ff(n,e,t))&&("**"===t.path||db(n,t,e).matched)}function Hx(t,n,e){return 0===n.length&&!t.children[e]}const Bf=!1;class Vf{constructor(n){this.segmentGroup=n||null}}class Gx{constructor(n){this.urlTree=n}}function qu(t){return Nl(new Vf(t))}function zx(t){return Nl(new Gx(t))}class g6{constructor(n,e,i,o,r){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=o,this.config=r,this.allowRedirects=!0}apply(){const n=Lf(this.urlTree.root,[],[],this.config).segmentGroup,e=new qt(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Ht).pipe($e(r=>this.createUrlTree(Of(r),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Yr(r=>{if(r instanceof Gx)return this.allowRedirects=!1,this.match(r.urlTree);throw r instanceof Vf?this.noMatchError(r):r}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Ht).pipe($e(o=>this.createUrlTree(Of(o),n.queryParams,n.fragment))).pipe(Yr(o=>{throw o instanceof Vf?this.noMatchError(o):o}))}noMatchError(n){return new Pe(4002,Bf)}createUrlTree(n,e,i){const o=Q_(n);return new ra(o,e,i)}expandSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe($e(r=>new qt([],r))):this.expandSegment(n,i,e,i.segments,o,!0)}expandChildren(n,e,i){const o=[];for(const r of Object.keys(i.children))"primary"===r?o.unshift(r):o.push(r);return ei(o).pipe(gs(r=>{const s=i.children[r],a=Fx(e,r);return this.expandSegmentGroup(n,a,s,r).pipe($e(l=>({segment:l,outlet:r})))}),ix((r,s)=>(r[s.outlet]=s.segment,r),{}),ox())}expandSegment(n,e,i,o,r,s){return ei(i).pipe(gs(a=>this.expandSegmentAgainstRoute(n,e,i,a,o,r,s).pipe(Yr(c=>{if(c instanceof Vf)return st(null);throw c}))),ys(a=>!!a),Yr((a,l)=>{if(cb(a))return Hx(e,o,r)?st(new qt([],{})):qu(e);throw a}))}expandSegmentAgainstRoute(n,e,i,o,r,s,a){return Ux(o,e,r,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(n,e,o,r,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s):qu(e):qu(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,o){const r=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?zx(r):this.lineralizeSegments(i,r).pipe(ui(s=>{const a=new qt(s,{});return this.expandSegment(n,a,e,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,o,r,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=db(e,o,r);if(!a)return qu(e);const d=this.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?zx(d):this.lineralizeSegments(o,d).pipe(ui(f=>this.expandSegment(n,e,i,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,o,r){return"**"===i.path?(n=Lx(i,n),i.loadChildren?(i._loadedRoutes?st({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe($e(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new qt(o,{})))):st(new qt(o,{}))):jx(e,i,o,n).pipe(Li(({matched:s,consumedSegments:a,remainingSegments:l})=>{var c;return s?(n=null!==(c=i._injector)&&void 0!==c?c:n,this.getChildConfig(n,i,o).pipe(ui(d=>{var f;const y=null!==(f=d.injector)&&void 0!==f?f:n,N=d.routes,{segmentGroup:X,slicedSegments:_e}=Lf(e,a,l,N),me=new qt(X.segments,X.children);if(0===_e.length&&me.hasChildren())return this.expandChildren(y,N,me).pipe($e(Ye=>new qt(a,Ye)));if(0===N.length&&0===_e.length)return st(new qt(a,{}));const Ae=Bo(i)===r;return this.expandSegment(y,me,N,_e,Ae?Ht:r,!0).pipe($e(Se=>new qt(a.concat(Se.segments),Se.children)))}))):qu(e)}))}getChildConfig(n,e,i){return e.children?st({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?st({routes:e._loadedRoutes,injector:e._loadedInjector}):function s6(t,n,e,i){const o=n.canLoad;return void 0===o||0===o.length?st(!0):st(o.map(s=>{const a=jl(s,t);return Cs(function W8(t){return t&&zu(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ul(),Vx())}(n,e,i).pipe(ui(o=>o?this.configLoader.loadChildren(n,e).pipe(Jn(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):function f6(t){return Nl(Rx(Bf,3))}())):st({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return st(i);if(o.numberOfChildren>1||!o.children[Ht])return Nl(new Pe(4e3,Bf));o=o.children[Ht]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,o){const r=this.createSegmentGroup(n,e.root,i,o);return new ra(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Di(n,(o,r)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,o){const r=this.createSegments(n,e.segments,i,o);let s={};return Di(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,o)}),new qt(r,s)}createSegments(n,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(n,r,o):this.findOrReturn(r,i))}findPosParam(n,e,i){const o=i[e.path.substring(1)];if(!o)throw new Pe(4001,Bf);return o}findOrReturn(n,e){let i=0;for(const o of e){if(o.path===n.path)return e.splice(i),o;i++}return n}}class v6{}class y6{constructor(n,e,i,o,r,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=o,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=Lf(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Ht).pipe($e(e=>{if(null===e)return null;const i=new Rf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ht,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Kr(i,e),r=new xx(this.url,o);return this.inheritParamsAndData(r._root),r}))}inheritParamsAndData(n){const e=n.value,i=Tx(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,i,o){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,o)}processChildren(n,e,i){return ei(Object.keys(i.children)).pipe(gs(o=>{const r=i.children[o],s=Fx(e,o);return this.processSegmentGroup(n,s,r,o)}),ix((o,r)=>o&&r?(o.push(...r),o):null),EM(o=>null!==o),Ef(null),ox(),$e(o=>{if(null===o)return null;const r=qx(o);return function C6(t){t.sort((n,e)=>n.value.outlet===Ht?-1:e.value.outlet===Ht?1:n.value.outlet.localeCompare(e.value.outlet))}(r),r}))}processSegment(n,e,i,o,r){return ei(e).pipe(gs(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:n,s,i,o,r)}),ys(s=>!!s),Yr(s=>{if(cb(s))return Hx(i,o,r)?st([]):st(null);throw s}))}processSegmentAgainstRoute(n,e,i,o,r){var s,a;if(e.redirectTo||!Ux(e,i,o,r))return st(null);let l;if("**"===e.path){const c=o.length>0?ax(o).parameters:{},u=$x(i)+o.length;l=st({snapshot:new Rf(o,c,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Bo(e),null!==(a=null!==(s=e.component)&&void 0!==s?s:e._loadedComponent)&&void 0!==a?a:null,e,Wx(i),u,Kx(e),u),consumedSegments:[],remainingSegments:[]})}else l=jx(i,e,o,n).pipe($e(({matched:c,consumedSegments:u,remainingSegments:d,parameters:f})=>{var y,N;if(!c)return null;const X=$x(i)+u.length;return{snapshot:new Rf(u,f,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Qx(e),Bo(e),null!==(N=null!==(y=e.component)&&void 0!==y?y:e._loadedComponent)&&void 0!==N?N:null,e,Wx(i),X,Kx(e),X),consumedSegments:u,remainingSegments:d}}));return l.pipe(Li(c=>{var u,d;if(null===c)return st(null);const{snapshot:f,consumedSegments:y,remainingSegments:N}=c;n=null!==(u=e._injector)&&void 0!==u?u:n;const X=null!==(d=e._loadedInjector)&&void 0!==d?d:n,_e=function E6(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:me,slicedSegments:Ae}=Lf(i,y,N,_e.filter(Se=>void 0===Se.redirectTo),this.relativeLinkResolution);if(0===Ae.length&&me.hasChildren())return this.processChildren(X,_e,me).pipe($e(Se=>null===Se?null:[new Kr(f,Se)]));if(0===_e.length&&0===Ae.length)return st([new Kr(f,[])]);const ve=Bo(e)===r;return this.processSegment(X,_e,me,Ae,ve?Ht:r).pipe($e(Se=>null===Se?null:[new Kr(f,Se)]))}))}}function S6(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function qx(t){const n=[],e=new Set;for(const i of t){if(!S6(i)){n.push(i);continue}const o=n.find(r=>i.value.routeConfig===r.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):n.push(i)}for(const i of e){const o=qx(i.children);n.push(new Kr(i.value,o))}return n.filter(i=>!e.has(i))}function Wx(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function $x(t){var n,e;let i=t,o=null!==(n=i._segmentIndexShift)&&void 0!==n?n:0;for(;i._sourceSegment;)i=i._sourceSegment,o+=null!==(e=i._segmentIndexShift)&&void 0!==e?e:0;return o-1}function Qx(t){return t.data||{}}function Kx(t){return t.resolve||{}}function Zx(t){return"string"==typeof t.title||null===t.title}function hb(t){return Li(n=>{const e=t(n);return e?ei(e).pipe($e(()=>n)):st(n)})}let Xx=(()=>{class t{buildTitle(e){var i;let o,r=e.root;for(;void 0!==r;)o=null!==(i=this.getResolvedTitleForRoute(r))&&void 0!==i?i:o,r=r.children.find(s=>s.outlet===Ht);return o}getResolvedTitleForRoute(e){return e.data[Pu]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:function(){return gn(Jx)},providedIn:"root"}),t})(),Jx=(()=>{class t extends Xx{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(ie(yD))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class I6{}class P6 extends class R6{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Uf=new Be("",{providedIn:"root",factory:()=>({})}),fb=new Be("ROUTES");let pb=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return st(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Cs(e.loadComponent()).pipe(Jn(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Af(()=>{this.componentLoaders.delete(e)})),o=new tx(i,()=>new ce).pipe(z_());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return st({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const r=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe($e(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=sx(l.get(fb,[],_t.Self|_t.Optional)));return{routes:c.map(lb),injector:l}}),Af(()=>{this.childrenLoaders.delete(i)})),s=new tx(r,()=>new ce).pipe(z_());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return Cs(e()).pipe(ui(i=>i instanceof uA||Array.isArray(i)?st(i):ei(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(ie(En),ie(Ym))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class N6{}class L6{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function F6(t){throw t}function B6(t,n,e){return n.parse("/")}const V6={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},j6={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function tO(){var t,n;const e=gn(fx),i=gn(ju),o=gn(nu),r=gn(En),s=gn(Ym),a=null!==(t=gn(fb,{optional:!0}))&&void 0!==t?t:[],l=null!==(n=gn(Uf,{optional:!0}))&&void 0!==n?n:{},c=gn(Jx),u=gn(Xx,{optional:!0}),d=gn(N6,{optional:!0}),f=gn(I6,{optional:!0}),y=new Mi(null,e,i,o,r,s,sx(a));return d&&(y.urlHandlingStrategy=d),f&&(y.routeReuseStrategy=f),y.titleStrategy=null!=u?u:c,function U6(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(l,y),y}let Mi=(()=>{class t{constructor(e,i,o,r,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=o,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new ce,this.errorHandler=F6,this.malformedUriErrorHandler=B6,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>st(void 0),this.urlHandlingStrategy=new L6,this.routeReuseStrategy=new P6,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(pb),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new E8(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new C8(f)),this.ngModule=s.get(Us),this.console=s.get(C3);const d=s.get(dt);this.isNgZoneEnabled=d instanceof dt&&dt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function qz(){return new ra(new qt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Mx(this.currentUrlTree,this.rootComponentType),this.transitions=new wt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Kt(o=>0!==o.id),$e(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Li(o=>{let r=!1,s=!1;return st(o).pipe(Jn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Li(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return nO(a.source)&&(this.browserUrlTree=a.extractedUrl),st(a).pipe(Li(d=>{const f=this.transitions.getValue();return i.next(new J_(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Wo:Promise.resolve(d)}),function m6(t,n,e,i){return Li(o=>function p6(t,n,e,i,o){return new g6(t,n,e,i,o).apply()}(t,n,e,o.extractedUrl,i).pipe($e(r=>Object.assign(Object.assign({},o),{urlAfterRedirects:r}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Jn(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects}),o.urlAfterRedirects=d.urlAfterRedirects}),function w6(t,n,e,i,o,r){return ui(s=>function b6(t,n,e,i,o,r,s="emptyOnly",a="legacy"){return new y6(t,n,e,i,o,s,a,r).recognize().pipe(Li(l=>null===l?function _6(t){return new b(n=>n.error(t))}(new v6):st(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,o,r).pipe($e(a=>Object.assign(Object.assign({},s),{targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Jn(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const y=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(y,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new m8(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:y,source:N,restoredState:X,extras:_e}=a,me=new J_(f,this.serializeUrl(y),N,X);i.next(me);const Ae=Mx(y,this.rootComponentType).snapshot;return st(o=Object.assign(Object.assign({},a),{targetSnapshot:Ae,urlAfterRedirects:y,extras:Object.assign(Object.assign({},_e),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Wo}),Jn(a=>{const l=new v8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),$e(a=>o=Object.assign(Object.assign({},a),{guards:U8(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function X8(t,n){return ui(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return 0===s.length&&0===r.length?st(Object.assign(Object.assign({},e),{guardsResult:!0})):function J8(t,n,e,i){return ei(t).pipe(ui(o=>function r6(t,n,e,i,o){const r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return r&&0!==r.length?st(r.map(a=>{var l;const c=null!==(l=Uu(n))&&void 0!==l?l:o,u=jl(a,c);return Cs(function Q8(t){return t&&zu(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):c.runInContext(()=>u(t,n,e,i))).pipe(ys())})).pipe(Ul()):st(!0)}(o.component,o.route,e,n,i)),ys(o=>!0!==o,!0))}(s,i,o,t).pipe(ui(a=>a&&function q8(t){return"boolean"==typeof t}(a)?function e6(t,n,e,i){return ei(n).pipe(gs(o=>Iu(function n6(t,n){return null!==t&&n&&n(new S8(t)),st(!0)}(o.route.parent,i),function t6(t,n){return null!==t&&n&&n(new w8(t)),st(!0)}(o.route,i),function o6(t,n,e){const i=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(s=>function H8(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Ru(()=>st(s.guards.map(l=>{var c;const u=null!==(c=Uu(s.node))&&void 0!==c?c:e,d=jl(l,u);return Cs(function Y8(t){return t&&zu(t.canActivateChild)}(d)?d.canActivateChild(i,t):u.runInContext(()=>d(i,t))).pipe(ys())})).pipe(Ul())));return st(r).pipe(Ul())}(t,o.path,e),function i6(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return st(!0);const o=i.map(r=>Ru(()=>{var s;const a=null!==(s=Uu(n))&&void 0!==s?s:e,l=jl(r,a);return Cs(function $8(t){return t&&zu(t.canActivate)}(l)?l.canActivate(n,t):a.runInContext(()=>l(n,t))).pipe(ys())}));return st(o).pipe(Ul())}(t,o.route,e))),ys(o=>!0!==o,!0))}(i,r,t,n):st(a)),$e(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Jn(a=>{if(o.guardsResult=a.guardsResult,aa(a.guardsResult))throw Ix(0,a.guardsResult);const l=new _8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Kt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),hb(a=>{if(a.guards.canActivateChecks.length)return st(a).pipe(Jn(l=>{const c=new b8(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Li(l=>{let c=!1;return st(l).pipe(function D6(t,n){return ui(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return st(e);let r=0;return ei(o).pipe(gs(s=>function M6(t,n,e,i){const o=t.routeConfig,r=t._resolve;return void 0!==(null==o?void 0:o.title)&&!Zx(o)&&(r[Pu]=o.title),function T6(t,n,e,i){const o=function x6(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return st({});const r={};return ei(o).pipe(ui(s=>function O6(t,n,e,i){var o;const r=null!==(o=Uu(n))&&void 0!==o?o:i,s=jl(t,r);return Cs(s.resolve?s.resolve(n,e):r.runInContext(()=>s(n,e)))}(t[s],n,e,i).pipe(ys(),Jn(a=>{r[s]=a}))),q_(1),Sf(r),Yr(s=>cb(s)?Wo:Nl(s)))}(r,t,n,i).pipe($e(s=>(t._resolvedData=s,t.data=Tx(t,e).resolve,o&&Zx(o)&&(t.data[Pu]=o.title),null)))}(s.route,i,t,n)),Jn(()=>r++),q_(1),ui(s=>r===o.length?st(e):Wo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Jn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Jn(l=>{const c=new y8(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),hb(a=>{const l=c=>{var u;const d=[];(null===(u=c.routeConfig)||void 0===u?void 0:u.loadComponent)&&!c.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(c.routeConfig).pipe(Jn(f=>{c.component=f}),$e(()=>{})));for(const f of c.children)d.push(...l(f));return d};return G_(l(a.targetSnapshot.root)).pipe(Ef(),An(1))}),hb(()=>this.afterPreactivation()),$e(a=>{const l=function O8(t,n,e){const i=Vu(t,n._root,e?e._root:void 0);return new Dx(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o=Object.assign(Object.assign({},a),{targetRouterState:l})}),Jn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>$e(i=>(new j8(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Jn({next(){r=!0},complete(){r=!0}}),Af(()=>{var a;r||s||this.cancelNavigationTransition(o,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Yr(a=>{var l;if(s=!0,kx(a)){Px(a)||(this.navigated=!0,this.restoreHistory(o,!0));const c=new If(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(i.next(c),Px(a)){const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||nO(o.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const c=new Sx(o.id,this.serializeUrl(o.extractedUrl),a,null!==(l=o.targetSnapshot)&&void 0!==l?l:void 0);i.next(c);try{o.resolve(this.errorHandler(a))}catch(u){o.reject(u)}}return Wo}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var o;const r={replaceUrl:!0},s=null!==(o=e.state)&&void 0!==o&&o.navigationId?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(r.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(lb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:o,queryParams:r,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=o||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}return null!==d&&(d=this.removeEmptyProps(d)),u8(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=aa(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function H6(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new Pe(4008,false)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(o){i=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return i}isActive(e,i){let o;if(o=!0===i?Object.assign({},V6):!1===i?Object.assign({},j6):i,aa(e))return cx(this.currentUrlTree,e,o);const r=this.parseUrl(e);return cx(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.keys(e).reduce((i,o)=>{const r=e[o];return null!=r&&(i[o]=r),i},{})}processNavigations(){this.navigations.subscribe(e=>{var i;this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new la(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(i=this.titleStrategy)||void 0===i||i.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,o,r,s){var a,l;if(this.disposed)return Promise.resolve(!1);let c,u,d;s?(c=s.resolve,u=s.reject,d=s.promise):d=new Promise((N,X)=>{c=N,u=X});const f=++this.navigationId;let y;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),y=o&&o.\u0275routerPageId?o.\u0275routerPageId:r.replaceUrl||r.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):y=0,this.setTransition({id:f,targetPageId:y,source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:c,reject:u,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(N=>Promise.reject(N))}setBrowserUrl(e,i){const o=this.urlSerializer.serialize(e),r=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl?this.location.replaceState(o,"",r):this.location.go(o,"",r)}restoreHistory(e,i=!1){var o,r;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,o){const r=new If(e.id,this.serializeUrl(e.extractedUrl),i,o);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Fs()},t.\u0275prov=De({token:t,factory:function(){return tO()},providedIn:"root"}),t})();function nO(t){return"imperative"!==t}class iO{}let q6=(()=>{class t{constructor(e,i,o,r,s){this.router=e,this.injector=o,this.preloadingStrategy=r,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Kt(e=>e instanceof la),gs(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){var o,r,s;const a=[];for(const l of i){l.providers&&!l._injector&&(l._injector=ch(l.providers,e,`Route: ${l.path}`));const c=null!==(o=l._injector)&&void 0!==o?o:e,u=null!==(r=l._loadedInjector)&&void 0!==r?r:c;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?a.push(this.preloadConfig(c,l)):(l.children||l._loadedRoutes)&&a.push(this.processRoutes(u,null!==(s=l.children)&&void 0!==s?s:l._loadedRoutes))}return ei(a).pipe(Aa())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):st(null);const r=o.pipe(ui(s=>{var a;return null===s?st(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:e,s.routes))}));return i.loadComponent&&!i._loadedComponent?ei([r,this.loader.loadComponent(i)]).pipe(Aa()):r})}}return t.\u0275fac=function(e){return new(e||t)(ie(Mi),ie(Ym),ie(ss),ie(iO),ie(pb))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vb=new Be("");let oO=(()=>{class t{constructor(e,i,o={}){this.router=e,this.viewportScroller=i,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof J_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof la&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Ax&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new Ax(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Fs()},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();function Hl(t,n){return{\u0275kind:t,\u0275providers:n}}function _b(t){return[{provide:fb,multi:!0,useValue:t}]}function sO(){const t=gn(En);return n=>{var e,i;const o=t.get(Gs);if(n!==o.components[0])return;const r=t.get(Mi),s=t.get(aO);1===t.get(bb)&&r.initialNavigation(),null===(e=t.get(lO,null,_t.Optional))||void 0===e||e.setUpPreloading(),null===(i=t.get(vb,null,_t.Optional))||void 0===i||i.init(),r.resetRootComponentType(o.componentTypes[0]),s.next(),s.complete()}}const aO=new Be("",{factory:()=>new ce}),bb=new Be("",{providedIn:"root",factory:()=>1});const lO=new Be("");function Q6(t){return Hl(0,[{provide:lO,useExisting:q6},{provide:iO,useExisting:t}])}const cO=new Be("ROUTER_FORROOT_GUARD"),K6=[nu,{provide:fx,useClass:$_},{provide:Mi,useFactory:tO},ju,{provide:ca,useFactory:function rO(t){return t.routerState.root},deps:[Mi]},pb];function Z6(){return new aw("Router",Mi)}let X6=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[K6,[],_b(e),{provide:cO,useFactory:n9,deps:[[Mi,new rs,new Ua]]},{provide:Uf,useValue:i||{}},null!=i&&i.useHash?{provide:Ws,useClass:cj}:{provide:Ws,useClass:Iw},{provide:vb,useFactory:()=>{const t=gn(Mi),n=gn(_4),e=gn(Uf);return e.scrollOffset&&n.setOffset(e.scrollOffset),new oO(t,n,e)}},null!=i&&i.preloadingStrategy?Q6(i.preloadingStrategy).\u0275providers:[],{provide:aw,multi:!0,useFactory:Z6},null!=i&&i.initialNavigation?i9(i):[],[{provide:uO,useFactory:sO},{provide:$m,multi:!0,useExisting:uO}]]}}static forChild(e){return{ngModule:t,providers:[_b(e)]}}}return t.\u0275fac=function(e){return new(e||t)(ie(cO,8))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[sb]}),t})();function n9(t){return"guarded"}function i9(t){return["disabled"===t.initialNavigation?Hl(3,[{provide:fh,multi:!0,useFactory:()=>{const n=gn(Mi);return()=>{n.setUpLocationChangeListener()}}},{provide:bb,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Hl(2,[{provide:bb,useValue:0},{provide:fh,multi:!0,deps:[En],useFactory:n=>{const e=n.get(aj,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(r=>{const s=n.get(Mi),a=n.get(aO);(function o(r){n.get(Mi).events.pipe(Kt(a=>a instanceof la||a instanceof If||a instanceof Sx),$e(a=>a instanceof la||a instanceof If&&(0===a.code||1===a.code)&&null),Kt(a=>null!==a),An(1)).subscribe(()=>{r()})})(()=>{r(!0),i=!0}),s.afterPreactivation=()=>(r(!0),i||a.closed?st(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const uO=new Be("");function Wu(t,n=sf){return je((e,i)=>{let o=null,r=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=r;r=null,i.next(c)}};function l(){const c=s+t,u=n.now();if(u<c)return o=this.schedule(void 0,c-u),void i.add(o);a()}e.subscribe(Qe(i,c=>{r=c,s=n.now(),o||(o=n.schedule(l,t),i.add(o))},()=>{a(),i.complete()},void 0,()=>{r=o=null}))})}function Gl(t){return Kt((n,e)=>t<=e)}function $u(t,n=g){return t=null!=t?t:r9,je((e,i)=>{let o,r=!0;e.subscribe(Qe(i,s=>{const a=n(s);(r||!t(o,a))&&(r=!1,o=a,i.next(s))}))})}function r9(t,n){return t===n}let dO=(()=>{class t{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),s9=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Wr(e);return new b(o=>{const s=this._observeElement(i).subscribe(o);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new ce,o=this._mutationObserverFactory.create(r=>i.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:o}=this._observedElements.get(e);i&&i.disconnect(),o.complete(),this._observedElements.delete(e)}}}return t.\u0275fac=function(e){return new(e||t)(ie(dO))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hO=(()=>{class t{constructor(e,i,o){this._contentObserver=e,this._elementRef=i,this._ngZone=o,this.event=new xe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=vt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Ki(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(Wu(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(h(s9),h(Ue),h(dt))},t.\u0275dir=be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),yb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[dO]}),t})();const fO=new Set;let zl,a9=(()=>{class t{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):c9}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function l9(t){if(!fO.has(t))try{zl||(zl=document.createElement("style"),zl.setAttribute("type","text/css"),document.head.appendChild(zl)),zl.sheet&&(zl.sheet.insertRule(`@media ${t} {body{ }}`,0),fO.add(t))}catch(n){console.error(n)}}(e),this._matchMedia(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(ri))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function c9(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let qf=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new ce}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return pO(Jh(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let r=G_(pO(Jh(e)).map(s=>this._registerQuery(s).observable));return r=Iu(r.pipe(An(1)),r.pipe(Gl(1),Wu(0))),r.pipe($e(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),r={observable:new b(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ci(i),$e(({matches:s})=>({query:e,matches:s})),St(this._destroySubject)),mql:i};return this._queries.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(ie(a9),ie(dt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function pO(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function Wf(t,n){return(t.getAttribute(n)||"").match(/\S+/g)||[]}const vO="cdk-describedby-message",$f="cdk-describedby-host";let Cb=0,_O=(()=>{class t{constructor(e,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Cb++,this._document=e,this._id=gn(hl)+"-"+Cb++}describe(e,i,o){if(!this._canBeDescribed(e,i))return;const r=Eb(i,o);"string"!=typeof i?(bO(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,o){var r;if(!i||!this._isElementNode(e))return;const s=Eb(i,o);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof i){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===(null===(r=this._messagesContainer)||void 0===r?void 0:r.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const i=this._document.querySelectorAll(`[${$f}="${this._id}"]`);for(let o=0;o<i.length;o++)this._removeCdkDescribedByReferenceIds(i[o]),i[o].removeAttribute($f);null===(e=this._messagesContainer)||void 0===e||e.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){const o=this._document.createElement("div");bO(o,this._id),o.textContent=e,i&&o.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(Eb(e,i),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){var i,o;null===(o=null===(i=this._messageRegistry.get(e))||void 0===i?void 0:i.messageElement)||void 0===o||o.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();const o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(e),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(e){const i=Wf(e,"aria-describedby").filter(o=>0!=o.indexOf(vO));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const o=this._messageRegistry.get(i);(function u9(t,n,e){const i=Wf(t,n);i.some(o=>o.trim()==e.trim())||(i.push(e.trim()),t.setAttribute(n,i.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute($f,this._id),o.referenceCount++}_removeMessageReference(e,i){const o=this._messageRegistry.get(i);o.referenceCount--,function d9(t,n,e){const o=Wf(t,n).filter(r=>r!=e.trim());o.length?t.setAttribute(n,o.join(" ")):t.removeAttribute(n)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute($f)}_isElementDescribedByMessage(e,i){const o=Wf(e,"aria-describedby"),r=this._messageRegistry.get(i),s=r&&r.messageElement.id;return!!s&&-1!=o.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const o=null==i?"":`${i}`.trim(),r=e.getAttribute("aria-label");return!(!o||r&&r.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(ie(pt),ie(ri))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Eb(t,n){return"string"==typeof t?`${n||""}/${t}`:t}function bO(t,n){t.id||(t.id=`${vO}-${n}-${Cb++}`)}class yO{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new ce,this._typeaheadSubscription=E.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new ce,this.change=new ce,n instanceof us&&n.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}})}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Jn(e=>this._pressedLetters.push(e)),Wu(n),Kt(()=>this._pressedLetters.length>0),$e(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let o=1;o<i.length+1;o++){const r=(this._activeItemIndex+o)%i.length,s=i[r];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}setActiveItem(n){const e=this._activeItem;this.updateActiveItem(n),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){const e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;default:return void((o||so(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n),o=e[i];this._activeItem=null==o?null:o,this._activeItemIndex=i}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const o=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof us?this._items.toArray():this._items}}class h9 extends yO{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}}class Sb extends yO{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let Yu=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function p9(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function f9(t){try{return t.frameElement}catch(n){return null}}(function E9(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===EO(i)||!this.isVisible(i)))return!1;let o=e.nodeName.toLowerCase(),r=EO(e);return e.hasAttribute("contenteditable")?-1!==r:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function y9(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==r:"video"===o?-1!==r&&(null!==r||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function C9(t){return!function m9(t){return function _9(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function g9(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function v9(t){return function b9(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||CO(t))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return t.\u0275fac=function(e){return new(e||t)(ie(ri))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CO(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function EO(t){if(!CO(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class S9{constructor(n,e,i,o,r=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i<e.length;i++){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(o)return o}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=e.length-1;i>=0;i--){const o=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(o)return o}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(An(1)).subscribe(n)}}let Yf=(()=>{class t{constructor(e,i,o){this._checker=e,this._ngZone=i,this._document=o}create(e,i=!1){return new S9(e,this._checker,this._ngZone,this._document,i)}}return t.\u0275fac=function(e){return new(e||t)(ie(Yu),ie(dt),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Ab(t){return 0===t.buttons||0===t.offsetX&&0===t.offsetY}function wb(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const A9=new Be("cdk-input-modality-detector-options"),w9={ignoreKeys:[18,17,224,91,16]},ql=Zs({passive:!0,capture:!0});let D9=(()=>{class t{constructor(e,i,o,r){this._platform=e,this._mostRecentTarget=null,this._modality=new wt(null),this._lastTouchMs=0,this._onKeydown=s=>{var a,l;null!==(l=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)&&void 0!==l&&l.some(c=>c===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Js(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ab(s)?"keyboard":"mouse"),this._mostRecentTarget=Js(s))},this._onTouchstart=s=>{wb(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Js(s))},this._options=Object.assign(Object.assign({},w9),r),this.modalityDetected=this._modality.pipe(Gl(1)),this.modalityChanged=this.modalityDetected.pipe($u()),e.isBrowser&&i.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,ql),o.addEventListener("mousedown",this._onMousedown,ql),o.addEventListener("touchstart",this._onTouchstart,ql)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ql),document.removeEventListener("mousedown",this._onMousedown,ql),document.removeEventListener("touchstart",this._onTouchstart,ql))}}return t.\u0275fac=function(e){return new(e||t)(ie(ri),ie(dt),ie(pt),ie(A9,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const M9=new Be("liveAnnouncerElement",{providedIn:"root",factory:function T9(){return null}}),x9=new Be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Db=(()=>{class t{constructor(e,i,o,r){this._ngZone=i,this._defaultOptions=r,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...i){const o=this._defaultOptions;let r,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[r,s]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),null==s&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e,i;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null,null===(i=this._currentResolve)||void 0===i||i.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),o}}return t.\u0275fac=function(e){return new(e||t)(ie(M9,8),ie(dt),ie(pt),ie(x9,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const O9=new Be("cdk-focus-monitor-default-options"),Qf=Zs({passive:!0,capture:!0});let Vo=(()=>{class t{constructor(e,i,o,r,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=o,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new ce,this._rootNodeFocusAndBlurListener=a=>{for(let c=Js(a);c;c=c.parentElement)"focus"===a.type?this._onFocus(a,c):this._onBlur(a,c)},this._document=r,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const o=Wr(e);if(!this._platform.isBrowser||1!==o.nodeType)return st(null);const r=yM(o)||this._getDocument(),s=this._elementInfo.get(o);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new ce,rootNode:r};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Wr(e),o=this._elementInfo.get(i);o&&(o.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(o))}focusVia(e,i,o){const r=Wr(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof r.focus&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!(null==e||!e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const o=this._elementInfo.get(i),r=Js(e);!o||!o.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),o)}_onBlur(e,i){const o=this._elementInfo.get(i);!o||o.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(o,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,o=this._rootNodeFocusListenerCount.get(i)||0;o||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Qf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Qf)}),this._rootNodeFocusListenerCount.set(i,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(St(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const o=this._rootNodeFocusListenerCount.get(i);o>1?this._rootNodeFocusListenerCount.set(i,o-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Qf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Qf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,o){this._setClasses(e,i),this._emitOrigin(o,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&i.push([r,o])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const r=e.labels;if(r)for(let s=0;s<r.length;s++)if(r[s].contains(i))return!0;return!1}}return t.\u0275fac=function(e){return new(e||t)(ie(dt),ie(ri),ie(D9),ie(pt,8),ie(O9,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const AO="cdk-high-contrast-black-on-white",wO="cdk-high-contrast-white-on-black",Mb="cdk-high-contrast-active";let DO=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=gn(qf).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,o=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Mb,AO,wO),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?e.add(Mb,AO):2===i&&e.add(Mb,wO)}}}return t.\u0275fac=function(e){return new(e||t)(ie(ri),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tb=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return t.\u0275fac=function(e){return new(e||t)(ie(DO))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[yb]}),t})();function I9(t,n){}class Kf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let MO=(()=>{class t extends lf{constructor(e,i,o,r,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=r,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=l,this._focusMonitor=c,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const d=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),d},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=o}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const o=d_(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=d_();return e===i||e.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=d_())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Yf),h(pt,8),h(Kf),h(Yu),h(dt),h(Au),h(Vo))},t.\u0275cmp=it({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(e,i){if(1&e&&Mt(El,7),2&e){let o;Ne(o=Le())&&(i._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,i){2&e&&Pt("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[ke],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ee(0,I9,0,0,"ng-template",0)},dependencies:[El],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),t})();class xb{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new ce,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!so(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=(null==e?void 0:e.focusOrigin)||"program",this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const TO=new Be("DialogScrollStrategy"),R9=new Be("DialogData"),P9=new Be("DefaultDialogConfig"),N9={provide:TO,deps:[ao],useFactory:function k9(t){return()=>t.scrollStrategies.block()}};let L9=0,xO=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._injector=i,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce,this._afterOpenedAtThisLevel=new ce,this._ariaHiddenElements=new Map,this.afterAllClosed=Ru(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ci(void 0))),this._scrollStrategy=a}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(e,i){const o=this._defaultOptions||new Kf;(i=Object.assign(Object.assign({},o),i)).id=i.id||"cdk-dialog-"+L9++,i.id&&this.getDialogById(i.id);const r=this._getOverlayConfig(i),s=this._overlay.create(r),a=new xb(s,i),l=this._attachContainer(s,a,i);return a.containerInstance=l,this._attachDialogContent(e,a,l,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){Ob(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){Ob(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),Ob(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new Su({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,o){var r;const s=o.injector||(null===(r=o.viewContainerRef)||void 0===r?void 0:r.injector),a=[{provide:Kf,useValue:o},{provide:xb,useValue:i},{provide:Au,useValue:e}];let l;o.container?"function"==typeof o.container?l=o.container:(l=o.container.type,a.push(...o.container.providers(o))):l=MO;const c=new yl(l,o.viewContainerRef,En.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,o,r){if(e instanceof yt){const s=this._createInjector(r,i,o,void 0);let a={$implicit:r.data,dialogRef:i};r.templateContext&&(a=Object.assign(Object.assign({},a),"function"==typeof r.templateContext?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Cl(e,null,a,s))}else{const s=this._createInjector(r,i,o,this._injector),a=o.attachComponentPortal(new yl(e,r.viewContainerRef,s,r.componentFactoryResolver));i.componentInstance=a.instance}}_createInjector(e,i,o,r){var s;const a=e.injector||(null===(s=e.viewContainerRef)||void 0===s?void 0:s.injector),l=[{provide:R9,useValue:e.data},{provide:xb,useValue:i}];return e.providers&&("function"==typeof e.providers?l.push(...e.providers(i,e,o)):l.push(...e.providers)),e.direction&&(!a||!a.get(Co,null,_t.Optional))&&l.push({provide:Co,useValue:{value:e.direction,change:st()}}),En.create({parent:a||r,providers:l})}_removeOpenDialog(e,i){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,s)=>{r?s.setAttribute("aria-hidden",r):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let o=i.length-1;o>-1;o--){const r=i[o];r!==e&&"SCRIPT"!==r.nodeName&&"STYLE"!==r.nodeName&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return t.\u0275fac=function(e){return new(e||t)(ie(ao),ie(En),ie(P9,8),ie(t,12),ie(xl),ie(TO))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})();function Ob(t,n){let e=t.length;for(;e--;)n(t[e])}let F9=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[xO,N9],imports:[Ol,Sl,Tb,Sl]}),t})();function B9(t,n){if(1&t&&rt(0,"mat-pseudo-checkbox",4),2&t){const e=re();B("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function V9(t,n){if(1&t&&(R(0,"span",5),fe(1),L()),2&t){const e=re();w(1),zn("(",e.group.label,")")}}const j9=["*"],H9=new Be("mat-sanity-checks",{providedIn:"root",factory:function U9(){return!0}});let It=(()=>{class t{constructor(e,i,o){this._sanityChecks=i,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!h_()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(ie(DO),ie(H9,8),ie(pt))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[bl,bl]}),t})();function ua(t){return class extends t{constructor(...n){super(...n),this._disabled=!1}get disabled(){return this._disabled}set disabled(n){this._disabled=vt(n)}}}function da(t,n){return class extends t{constructor(...e){super(...e),this.defaultColor=n,this.color=n}get color(){return this._color}set color(e){const i=e||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function Es(t){return class extends t{constructor(...n){super(...n),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(n){this._disableRipple=vt(n)}}}function Zf(t,n=0){return class extends t{constructor(...e){super(...e),this._tabIndex=n,this.defaultTabIndex=n}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Ki(e):this.defaultTabIndex}}}function RO(t){return class extends t{constructor(...n){super(...n),this.errorState=!1}updateErrorState(){const n=this.errorState,r=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);r!==n&&(this.errorState=r,this.stateChanges.next())}}}let Ib=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Wl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function PO(t,n,e="mat"){t.changes.pipe(Ci(t)).subscribe(({length:i})=>{Qu(n,`${e}-2-line`,!1),Qu(n,`${e}-3-line`,!1),Qu(n,`${e}-multi-line`,!1),2===i||3===i?Qu(n,`${e}-${i}-line`,!0):i>3&&Qu(n,`${e}-multi-line`,!0)})}function Qu(t,n,e){t.nativeElement.classList.toggle(n,e)}let Xf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})();class z9{constructor(n,e,i,o=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const kO={enterDuration:225,exitDuration:150},Rb=Zs({passive:!0}),NO=["mousedown","touchstart"],LO=["mouseup","mouseleave","touchend","touchcancel"];class W9{constructor(n,e,i,o){this._target=n,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Wr(i))}fadeInRipple(n,e,i={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},kO),i.animation);i.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);const s=i.radius||function $9(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(n,e,o),a=n-o.left,l=e-o.top,c=r.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const d=window.getComputedStyle(u),y=d.transitionDuration,N="none"===d.transitionProperty||"0s"===y||"0s, 0s"===y,X=new z9(this,u,i,N);u.style.transform="scale3d(1, 1, 1)",X.state=0,i.persistent||(this._mostRecentTransientRipple=X);let _e=null;return!N&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const me=()=>this._finishRippleTransition(X),Ae=()=>this._destroyRipple(X);u.addEventListener("transitionend",me),u.addEventListener("transitioncancel",Ae),_e={onTransitionEnd:me,onTransitionCancel:Ae}}),this._activeRipples.set(X,_e),(N||!c)&&this._finishRippleTransition(X),X}fadeOutRipple(n){if(2===n.state||3===n.state)return;const e=n.element,i=Object.assign(Object.assign({},kO),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=Wr(n);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(NO))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(LO),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){var e;const i=null!==(e=this._activeRipples.get(n))&&void 0!==e?e:null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==i&&(n.element.removeEventListener("transitionend",i.onTransitionEnd),n.element.removeEventListener("transitioncancel",i.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=Ab(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!wb(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=n.changedTouches;for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_registerEvents(n){this._ngZone.runOutsideAngular(()=>{n.forEach(e=>{this._triggerElement.addEventListener(e,this,Rb)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(NO.forEach(n=>{this._triggerElement.removeEventListener(n,this,Rb)}),this._pointerUpEventsRegistered&&LO.forEach(n=>{this._triggerElement.removeEventListener(n,this,Rb)}))}}const Y9=new Be("mat-ripple-global-options");let ha=(()=>{class t{constructor(e,i,o,r,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new W9(this,i,e,o)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(dt),h(ri),h(Y9,8),h(bi,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&ft("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),Ku=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})(),FO=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&ft("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),t})(),Pb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It]}),t})();const BO=new Be("MAT_OPTION_PARENT_COMPONENT"),VO=new Be("MatOptgroup");let Q9=0;class K9{constructor(n,e=!1){this.source=n,this.isUserInput=e}}let Z9=(()=>{class t{constructor(e,i,o,r){this._element=e,this._changeDetectorRef=i,this._parent=o,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Q9++,this.onSelectionChange=new xe,this._stateChanges=new ce}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=vt(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!so(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new K9(this,e))}}return t.\u0275fac=function(e){Fs()},t.\u0275dir=be({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),kb=(()=>{class t extends Z9{constructor(e,i,o,r){super(e,i,o,r)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zt),h(BO,8),h(VO,8))},t.\u0275cmp=it({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ie("click",function(){return i._selectViaInteraction()})("keydown",function(r){return i._handleKeydown(r)}),2&e&&(cs("id",i.id),Pt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),ft("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[ke],ngContentSelectors:j9,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(kn(),ee(0,B9,1,2,"mat-pseudo-checkbox",0),R(1,"span",1),Ot(2),L(),ee(3,V9,2,1,"span",2),rt(4,"div",3)),2&e&&(B("ngIf",i.multiple),w(3),B("ngIf",i.group&&i.group._inert),w(1),B("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},dependencies:[ha,nn,FO],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),t})();function jO(t,n,e){if(e.length){let i=n.toArray(),o=e.toArray(),r=0;for(let s=0;s<t+1;s++)i[s].group&&i[s].group===o[r]&&r++;return r}return 0}let Nb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Ku,Yi,It,Pb]}),t})();function J9(t,n){}const $l={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},eq={dialogContainer:Qi("dialogContainer",[yi("void, exit",Ft({opacity:0,transform:"scale(0.7)"})),yi("enter",Ft({transform:"none"})),Wn("* => enter",wD([Xn("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",Ft({transform:"none",opacity:1})),Iv("@*",Ov(),{optional:!0})]),$l),Wn("* => void, * => exit",wD([Xn("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",Ft({opacity:0})),Iv("@*",Ov(),{optional:!0})]),$l)])};class Jf{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=$l.params.enterAnimationDuration,this.exitAnimationDuration=$l.params.exitAnimationDuration}}let tq=(()=>{class t extends MO{constructor(e,i,o,r,s,a,l,c){super(e,i,o,r,s,a,l,c),this._animationStateChanged=new xe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Yf),h(pt,8),h(Jf),h(Yu),h(dt),h(Au),h(Vo))},t.\u0275cmp=it({type:t,selectors:[["ng-component"]],features:[ke],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),nq=(()=>{class t extends tq{constructor(e,i,o,r,s,a,l,c,u){super(e,i,o,r,s,a,l,u),this._changeDetectorRef=c,this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?this._openAnimationDone(i):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:e,totalTime:i}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||$l.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||$l.params.exitAnimationDuration}}}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Yf),h(pt,8),h(Jf),h(Yu),h(dt),h(Au),h(zt),h(Vo))},t.\u0275cmp=it({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,i){1&e&&Gc("@dialogContainer.start",function(r){return i._onAnimationStart(r)})("@dialogContainer.done",function(r){return i._onAnimationDone(r)}),2&e&&(cs("id",i._config.id),Pt("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),qc("@dialogContainer",i._getAnimationState()))},features:[ke],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&ee(0,J9,0,0,"ng-template",0)},dependencies:[El],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[eq.dialogContainer]}}),t})();class Yl{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new ce,this._beforeClosed=new ce,this._state=0,this.disableClose=e.disableClose,this.id=n.id,i._animationStateChanged.pipe(Kt(o=>"opened"===o.state),An(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Kt(o=>"closed"===o.state),An(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Vi(this.backdropClick(),this.keydownEvents().pipe(Kt(o=>27===o.keyCode&&!this.disableClose&&!so(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),function iq(t,n,e){t._closeInteractionType=n,t.close(e)}(this,"keydown"===o.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Kt(e=>"closing"===e.state),An(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const ep=new Be("MatDialogData"),oq=new Be("mat-dialog-default-options"),UO=new Be("mat-dialog-scroll-strategy"),sq={provide:UO,deps:[ao],useFactory:function rq(t){return()=>t.scrollStrategies.block()}};let aq=0,lq=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d){this._overlay=e,this._defaultOptions=o,this._parentDialog=r,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new ce,this._afterOpenedAtThisLevel=new ce,this._idPrefix="mat-dialog-",this.afterAllClosed=Ru(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ci(void 0))),this._scrollStrategy=a,this._dialog=i.get(xO)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){let o;(i=Object.assign(Object.assign({},this._defaultOptions||new Jf),i)).id=i.id||`${this._idPrefix}${aq++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const r=this._dialog.open(e,Object.assign(Object.assign({},i),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Jf,useValue:i},{provide:Kf,useValue:i}]},templateContext:()=>({dialogRef:o}),providers:(s,a,l)=>(o=new this._dialogRefConstructor(s,i,l),o.updatePosition(null==i?void 0:i.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(o);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return t.\u0275fac=function(e){Fs()},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),Lb=(()=>{class t extends lq{constructor(e,i,o,r,s,a,l,c){super(e,i,r,a,l,s,Yl,nq,ep,c)}}return t.\u0275fac=function(e){return new(e||t)(ie(ao),ie(En),ie(nu,8),ie(oq,8),ie(UO),ie(t,12),ie(xl),ie(bi,8))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),cq=0,HO=(()=>{class t{constructor(e,i,o){this._dialogRef=e,this._elementRef=i,this._dialog=o,this.id="mat-dialog-title-"+cq++}ngOnInit(){this._dialogRef||(this._dialogRef=function uq(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(h(Yl,8),h(Ue),h(Lb))},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&cs("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),tp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),np=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,i){2&e&&ft("mat-dialog-actions-align-center","center"===i.align)("mat-dialog-actions-align-end","end"===i.align)},inputs:{align:"align"}}),t})(),dq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[Lb,sq],imports:[F9,Ol,Sl,It,It]}),t})();const hq=["mat-button",""],fq=["*"],gq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],mq=da(ua(Es(class{constructor(t){this._elementRef=t}})));let Ln=(()=>{class t extends mq{constructor(e,i,o){super(e),this._focusMonitor=i,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of gq)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Vo),h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,i){if(1&e&&Mt(ha,5),2&e){let o;Ne(o=Le())&&(i.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Pt("disabled",i.disabled||null),ft("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[ke],attrs:hq,ngContentSelectors:fq,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,i){1&e&&(kn(),R(0,"span",0),Ot(1),L(),rt(2,"span",1)(3,"span",2)),2&e&&(w(2),ft("mat-button-ripple-round",i.isRoundButton||i.isIconButton),B("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},dependencies:[ha],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),t})(),GO=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Ku,It,It]}),t})();function zO(t){var n;for(let e in t){let i=null!==(n=t[e])&&void 0!==n?n:"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}const Fb="inline",ip=["row","column","row-reverse","column-reverse"];function qO(t){let[n,e,i]=WO(t);return function _q(t,n=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":n||null}}(n,e,i)}function WO(t){var n;t=null!==(n=null==t?void 0:t.toLowerCase())&&void 0!==n?n:"";let[e,i,o]=t.split(" ");return ip.find(r=>r===e)||(e=ip[0]),i===Fb&&(i=o!==Fb?o:"",o=Fb),[e,vq(i),!!o]}function Zu(t){let[n]=WO(t);return n.indexOf("row")>-1}function vq(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}function Zr(t,...n){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let e of n)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}const yq={provide:$m,useFactory:function bq(t,n){return()=>{if($s(n)){const e=Array.from(t.querySelectorAll(`[class*=${$O}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(o=>{o.classList.contains(`${$O}ssr`)&&o.parentNode?o.parentNode.removeChild(o):o.className.replace(i,"")})}}},deps:[pt,Ro],multi:!0},$O="flex-layout-";let Bb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[yq]}),t})();class Ss{constructor(n=!1,e="all",i="",o="",r=0){this.matches=n,this.mediaQuery=e,this.mqAlias=i,this.suffix=o,this.priority=r,this.property=""}clone(){return new Ss(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Cq=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,o){const r=this.stylesheet.get(e);r?r.set(i,o):this.stylesheet.set(e,new Map([[i,o]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const o=this.stylesheet.get(e);let r="";if(o){const s=o.get(i);("number"==typeof s||"string"==typeof s)&&(r=s+"")}return r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vb={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},sr=new Be("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Vb}),Ql=new Be("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),op=new Be("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function jb(t,n){var e;return t=null!==(e=null==t?void 0:t.clone())&&void 0!==e?e:new Ss,n&&(t.mqAlias=n.alias,t.mediaQuery=n.mediaQuery,t.suffix=n.suffix,t.priority=n.priority),t}class $n{constructor(){this.shouldCache=!0}sideEffect(n,e,i){}}let xn=(()=>{class t{constructor(e,i,o,r){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=o,this.layoutConfig=r}applyStyleToElement(e,i,o=null){let r={};"string"==typeof i&&(r[i]=o,i=r),r=this.layoutConfig.disableVendorPrefixes?i:zO(i),this._applyMultiValueStyleToElement(r,e)}applyStyleToElements(e,i=[]){const o=this.layoutConfig.disableVendorPrefixes?e:zO(e);i.forEach(r=>{this._applyMultiValueStyleToElement(o,r)})}getFlowDirection(e){const i="flex-direction";let o=this.lookupStyle(e,i);return[o||"row",this.lookupInlineStyle(e,i)||gl(this._platformId)&&this._serverModuleLoaded?o:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){var o;return null!==(o=e.getAttribute(i))&&void 0!==o?o:""}lookupInlineStyle(e,i){return $s(this._platformId)?e.style.getPropertyValue(i):function Eq(t,n){var e;return null!==(e=YO(t)[n])&&void 0!==e?e:""}(e,i)}lookupStyle(e,i,o=!1){let r="";return e&&((r=this.lookupInlineStyle(e,i))||($s(this._platformId)?o||(r=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(e,i)))),r?r.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(o=>{const r=e[o],s=Array.isArray(r)?r:[r];s.sort();for(let a of s)a=a?a+"":"",$s(this._platformId)||!this._serverModuleLoaded?$s(this._platformId)?i.style.setProperty(o,a):Sq(i,o,a):this._serverStylesheet.addStyleToElement(i,o,a)})}}return t.\u0275fac=function(e){return new(e||t)(ie(Cq),ie(Ql),ie(Ro),ie(sr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Sq(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=YO(t);i[n]=null!=e?e:"",function Aq(t,n){let e="";for(const i in n)n[i]&&(e+=`${i}:${n[i]};`);t.setAttribute("style",e)}(t,i)}function YO(t){const n={},e=t.getAttribute("style");if(e){const i=e.split(/;+/g);for(let o=0;o<i.length;o++){const r=i[o].trim();if(r.length>0){const s=r.indexOf(":");if(-1===s)throw new Error(`Invalid CSS style: ${r}`);n[r.substr(0,s).trim()]=r.substr(s+1).trim()}}}return n}function Kl(t,n){return(n&&n.priority||0)-(t&&t.priority||0)}function wq(t,n){return(t.priority||0)-(n.priority||0)}let rp=(()=>{class t{constructor(e,i,o){this._zone=e,this._platformId=i,this._document=o,this.source=new wt(new Ss(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,o)=>{i.matches&&e.push(o)}),e}isActive(e){var i;const o=this.registry.get(e);return null!==(i=null==o?void 0:o.matches)&&void 0!==i?i:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const o=this._observable$.pipe(Kt(s=>!i||e.indexOf(s.mediaQuery)>-1));return Vi(new b(s=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()}),o)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],o=[];return function Dq(t,n){const e=t.filter(i=>!QO[i]);if(e.length>0){const i=e.join(", ");try{const o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${i} {.fx-query-test{ }}\n`)),n.head.appendChild(o),e.forEach(r=>QO[r]=o)}catch(o){console.error(o)}}}(i,this._document),i.forEach(r=>{const s=l=>{this._zone.run(()=>this.source.next(new Ss(l.matches,r)))};let a=this.registry.get(r);a||(a=this.buildMQL(r),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(r,a)),a.matches&&o.push(new Ss(!0,r))}),o}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function Tq(t,n){return n&&window.matchMedia("all").addListener?window.matchMedia(t):function Mq(t){const n=new EventTarget;return n.matches="all"===t||""===t,n.media=t,n.addListener=()=>{},n.removeListener=()=>{},n.addEventListener=()=>{},n.dispatchEvent=()=>!1,n.onchange=null,n}(t)}(e,$s(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(ie(dt),ie(Ro),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const QO={},xq=[{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}],KO="(orientation: portrait) and (max-width: 599.98px)",ZO="(orientation: landscape) and (max-width: 959.98px)",XO="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",JO="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",eI="(orientation: portrait) and (min-width: 840px)",tI="(orientation: landscape) and (min-width: 1280px)",Xr={HANDSET:`${KO}, ${ZO}`,TABLET:`${XO} , ${JO}`,WEB:`${eI}, ${tI} `,HANDSET_PORTRAIT:`${KO}`,TABLET_PORTRAIT:`${XO} `,WEB_PORTRAIT:`${eI}`,HANDSET_LANDSCAPE:`${ZO}`,TABLET_LANDSCAPE:`${JO}`,WEB_LANDSCAPE:`${tI}`},Oq=[{alias:"handset",priority:2e3,mediaQuery:Xr.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Xr.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Xr.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Xr.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Xr.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Xr.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Xr.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Xr.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Xr.WEB_PORTRAIT,overlapping:!0}],Iq=/(\.|-|_)/g;function Rq(t){let n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}const Lq=new Be("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=gn(op),n=gn(sr),e=[].concat.apply([],(t||[]).map(o=>Array.isArray(o)?o:[o]));return function Nq(t,n=[]){const e={};return t.forEach(i=>{e[i.alias]=i}),n.forEach(i=>{e[i.alias]?Zr(e[i.alias],i):e[i.alias]=i}),function kq(t){return t.forEach(n=>{n.suffix||(n.suffix=function Pq(t){return t.replace(Iq,"|").split("|").map(Rq).join("")}(n.alias),n.overlapping=!!n.overlapping)}),t}(Object.keys(e).map(i=>e[i]))}((n.disableDefaultBps?[]:xq).concat(n.addOrientationBps?Oq:[]),e)}});let sp=(()=>{class t{constructor(e){this.findByMap=new Map,this.items=[...e].sort(wq)}findByAlias(e){return e?this.findWithPredicate(e,i=>i.alias===e):null}findByQuery(e){return this.findWithPredicate(e,i=>i.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var i;return null!==(i=null==e?void 0:e.suffix)&&void 0!==i?i:""})}findWithPredicate(e,i){var o;let r=this.findByMap.get(e);return r||(r=null!==(o=this.items.find(i))&&void 0!==o?o:null,this.findByMap.set(e,r)),null!=r?r:null}}return t.\u0275fac=function(e){return new(e||t)(ie(Lq))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Zl="print",Fq={alias:Zl,mediaQuery:Zl,priority:1e3};let nI=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.layoutConfig=i,this._document=o,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Bq,this.deactivations=[]}withPrintQuery(e){return[...e,Zl]}isPrintEvent(e){return e.mediaQuery.startsWith(Zl)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const i=this.breakpoints.findByQuery(e);return(i?[...this.printBreakPoints,i]:this.printBreakPoints).sort(Kl)}updateEvent(e){var i;let o=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(o=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:""),jb(e,o)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const i=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Ss(!0,Zl))),e.updateStyles())},o=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",o),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(o)}interceptEvents(e){return i=>{this.isPrintEvent(i)?i.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(i)),e.updateStyles()):!i.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,i){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!i.matches){const o=this.breakpoints.findByQuery(i.mediaQuery);if(o){const r=this.formerActivations&&this.formerActivations.includes(o),s=!this.formerActivations&&e.activatedBreakpoints.includes(o);(r||s)&&(this.deactivations.push(o),this.deactivations.sort(Kl))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return t.\u0275fac=function(e){return new(e||t)(ie(sp),ie(sr),ie(pt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Bq{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(n){return n.push(Fq),n.sort(Kl),n.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(n){n&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===n.mediaQuery)&&(this.printBreakpoints=function Vq(t){var n;return null!==(n=null==t?void 0:t.mediaQuery.startsWith(Zl))&&void 0!==n&&n}(n)?[n,...this.printBreakpoints]:[...this.printBreakpoints,n])}clear(){this.printBreakpoints=[]}}let In=(()=>{class t{constructor(e,i,o){this.matchMedia=e,this.breakpoints=i,this.hook=o,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new ce,this.observeActivations()}get activatedAlias(){var e,i;return null!==(i=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==i?i:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);if(i){e=jb(e,i);const o=this.activatedBreakpoints.indexOf(i);e.matches&&-1===o?(this._activatedBreakpoints.push(i),this._activatedBreakpoints.sort(Kl),this.updateStyles()):!e.matches&&-1!==o&&(this._activatedBreakpoints.splice(o,1),this._activatedBreakpoints.sort(Kl),this.updateStyles())}}init(e,i,o,r,s=[]){iI(this.updateMap,e,i,o),iI(this.clearMap,e,i,r),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,o){const r=this.elementMap.get(e);if(r){const s=void 0!==o?r.get(o):this.getActivatedValues(r,i);if(s)return s.get(i)}}hasValue(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);if(r)return void 0!==r.get(i)||!1}return!1}setValue(e,i,o,r){var s;let a=this.elementMap.get(e);if(a){const c=(null!==(s=a.get(r))&&void 0!==s?s:new Map).set(i,o);a.set(r,c),this.elementMap.set(e,a)}else a=(new Map).set(r,(new Map).set(i,o)),this.elementMap.set(e,a);const l=this.getValue(e,i);void 0!==l&&this.updateElement(e,i,l)}trackValue(e,i){return this.subject.asObservable().pipe(Kt(o=>o.element===e&&o.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const o=new Set(this.elementKeyMap.get(i));let r=this.getActivatedValues(e);r&&r.forEach((s,a)=>{this.updateElement(i,a,s),o.delete(a)}),o.forEach(s=>{if(r=this.getActivatedValues(e,s),r){const a=r.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){const o=this.clearMap.get(e);if(o){const r=o.get(i);r&&(r(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,o){const r=this.updateMap.get(e);if(r){const s=r.get(i);s&&(s(o),this.subject.next({element:e,key:i,value:o}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(r=>r.unsubscribe()),this.watcherMap.delete(e));const o=this.elementMap.get(e);o&&(o.forEach((r,s)=>o.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){const o=this.elementMap.get(e);if(o){const r=this.getActivatedValues(o,i);r&&(i?this.updateElement(e,i,r.get(i)):r.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let o=this.elementKeyMap.get(e);o||(o=new Set,this.elementKeyMap.set(e,o)),o.add(i)}watchExtraTriggers(e,i,o){if(o&&o.length){let r=this.watcherMap.get(e);if(r||(r=new Map,this.watcherMap.set(e,r)),!r.get(i)){const a=Vi(...o).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});r.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let r=0;r<this.activatedBreakpoints.length;r++){const a=e.get(this.activatedBreakpoints[r].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}if(!this._useFallbacks)return;const o=e.get("");return void 0===i||o&&o.has(i)?o:void 0}observeActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Jn(this.hook.interceptEvents(this)),Kt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(ie(rp),ie(sp),ie(nI))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iI(t,n,e,i){var o;if(void 0!==i){const r=null!==(o=t.get(n))&&void 0!==o?o:new Map;r.set(e,i),t.set(n,r)}}let Fn=(()=>{class t{constructor(e,i,o,r){this.elementRef=e,this.styleBuilder=i,this.styler=o,this.marshal=r,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new ce,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const o=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,o)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const o=this.styleBuilder,r=o.shouldCache;let s=this.styleCache.get(e);(!s||!r)&&(s=o.buildStyles(e,i),r&&this.styleCache.set(e,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),o.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[o,r]=this.styler.getFlowDirection(e);if(!r&&i){const s=qO(o);this.styler.applyStyleToElements(s,[e])}return o.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,o=this.nativeElement){this.styler.applyStyleToElement(o,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h($n),h(xn),h(In))},t.\u0275dir=be({type:t,features:[Kn]}),t})();EventTarget;let Gq=(()=>{class t{constructor(e,i,o){this.breakpoints=e,this.matchMedia=i,this.hook=o,this.filterOverlaps=!1,this.destroyed$=new ce,this._media$=this.watchActivations()}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}asObservable(){return this._media$}isActive(e){return function qq(t){return t.flatMap(n=>n.split(",")).map(n=>n.trim())}(function Hq(t){return Array.isArray(t)?t:[t]}(e)).some(o=>{const r=function zq(t,n){var e,i;const o=null!==(e=n.findByAlias(t))&&void 0!==e?e:n.findByQuery(t);return null!==(i=null==o?void 0:o.mediaQuery)&&void 0!==i?i:null}(o,this.breakpoints);return null!==r&&this.matchMedia.isActive(r)})}watchActivations(){const e=this.breakpoints.items.map(i=>i.mediaQuery);return this.buildObservable(e)}buildObservable(e){return this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe(Kt(s=>s.matches),Wu(0,rf),Li(s=>st(this.findAllActivations())),$e(s=>this.filterOverlaps?s.filter(a=>{var l;const c=this.breakpoints.findByQuery(a.mediaQuery);return null===(l=null==c?void 0:c.overlapping)||void 0===l||l}):s),Kt(s=>s.filter(l=>l.mediaQuery.length>0).length>0),$u((s,a)=>{if(s.length!==a.length)return!1;const l=s.map(d=>d.mediaQuery),c=new Set(a.map(d=>d.mediaQuery));return 0===new Set(l.filter(d=>!c.has(d))).size}),St(this.destroyed$))}findAllActivations(){return this.matchMedia.activations.map(o=>new Ss(!0,o)).map(o=>this.hook.isPrintEvent(o)?this.hook.updateEvent(o):o).map(o=>jb(o,this.breakpoints.findByQuery(o.mediaQuery))).sort(Kl)}}return t.\u0275fac=function(e){return new(e||t)(ie(sp),ie(rp),ie(nI))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function oI(t,n="1",e="1"){let i=[n,e,t],o=t.indexOf("calc");if(o>0){i[2]=rI(t.substring(o).trim());let r=t.substr(0,o).trim().split(" ");2==r.length&&(i[0]=r[0],i[1]=r[1])}else if(0==o)i[2]=rI(t.trim());else{let r=t.split(" ");i=3===r.length?r:[n,e,t]}return i}function rI(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ap(t,n){if(void 0===n)return t;const e=i=>{const o=+i.slice(0,-"x".length);return t.endsWith("x")&&!isNaN(o)?`${o*n.value}${n.unit}`:t};return t.includes(" ")?t.split(" ").map(e).join(" "):e(t)}let Zq=(()=>{class t extends Fn{constructor(e,i,o,r,s,a,l){super(e,null,i,o),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new $i(r,s,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(In),h(tu),h(qs),h(Oo),h($i,10))},t.\u0275dir=be({type:t,inputs:{klass:["class","klass"]},features:[ke]}),t})();const Xq=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Ar=(()=>{class t extends Zq{constructor(){super(...arguments),this.inputs=Xq}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[ke]}),t})();class iW{constructor(n,e,i=!0){this.key=n,this.value=e,this.key=i?n.replace(/['"]/g,"").trim():n.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function aI(t){let n=typeof t;return"object"===n?t.constructor===Array?"array":t.constructor===Set?"set":"object":n}function cI(t){const[n,...e]=t.split(":");return new iW(n,e.join(":"))}function uI(t,n){return n.key&&(t[n.key]=n.value),t}let sW=(()=>{class t extends Fn{constructor(e,i,o,r,s,a,l,c,u){var d;super(e,null,i,o),this.sanitizer=r,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new pl(e,s,a)),this.init();const f=null!==(d=this.nativeElement.getAttribute("style"))&&void 0!==d?d:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&gl(u)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=o=>{var r;return null!==(r=this.sanitizer.sanitize(tn.STYLE,o))&&void 0!==r?r:""};if(e)switch(aI(e)){case"string":return dI(function oW(t,n=";"){return String(t).trim().split(n).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return dI(e,i);default:return function lI(t,n){let e=[];return"set"===aI(t)?t.forEach(i=>e.push(i)):Object.keys(t).forEach(i=>{e.push(`${i}:${t[i]}`)}),function rW(t,n){return t.map(cI).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(uI,{})}(e,n)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(In),h(lu),h(qs),h(Oo),h(pl,10),h(Ql),h(Ro))},t.\u0275dir=be({type:t,features:[ke]}),t})();const aW=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Hb=(()=>{class t extends sW{constructor(){super(...arguments),this.inputs=aW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[ke]}),t})();function dI(t,n){return t.map(cI).filter(i=>!!i).map(i=>(n&&(i.value=n(i.value)),i)).reduce(uI,{})}let hI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Bb]}),t})();var fa=j(9795);const lW=["*"];let lp;function Xu(t){var n;return(null===(n=function cW(){if(void 0===lp&&(lp=null,"undefined"!=typeof window)){const t=window;void 0!==t.trustedTypes&&(lp=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return lp}())||void 0===n?void 0:n.createHTML(t))||t}function fI(t){return Error(`Unable to find icon with the name "${t}"`)}function pI(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function gI(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class pa{constructor(n,e,i){this.url=n,this.svgText=e,this.options=i}}let cp=(()=>{class t{constructor(e,i,o,r){this._httpClient=e,this._sanitizer=i,this._errorHandler=r,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,i,o){return this.addSvgIconInNamespace("",e,i,o)}addSvgIconLiteral(e,i,o){return this.addSvgIconLiteralInNamespace("",e,i,o)}addSvgIconInNamespace(e,i,o,r){return this._addSvgIconConfig(e,i,new pa(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,o,r){const s=this._sanitizer.sanitize(tn.HTML,o);if(!s)throw gI(o);const a=Xu(s);return this._addSvgIconConfig(e,i,new pa("",a,r))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,o){return this._addSvgIconSetConfig(e,new pa(i,null,o))}addSvgIconSetLiteralInNamespace(e,i,o){const r=this._sanitizer.sanitize(tn.HTML,i);if(!r)throw gI(i);const s=Xu(r);return this._addSvgIconSetConfig(e,new pa("",s,o))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(tn.RESOURCE_URL,e);if(!i)throw pI(e);const o=this._cachedIconsByUrl.get(i);return o?st(up(o)):this._loadSvgIconFromConfig(new pa(e,null)).pipe(Jn(r=>this._cachedIconsByUrl.set(i,r)),$e(r=>up(r)))}getNamedSvgIcon(e,i=""){const o=mI(i,e);let r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(i,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):Nl(fI(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?st(up(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe($e(i=>up(i)))}_getSvgFromIconSetConfigs(e,i){const o=this._extractIconWithNameFromAnySet(e,i);return o?st(o):QM(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Yr(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(tn.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),st(null)})))).pipe($e(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw fI(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let o=i.length-1;o>=0;o--){const r=i[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(r),a=this._extractSvgIconFromSet(s,e,r.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Jn(i=>e.svgText=i),$e(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?st(null):this._fetchIcon(e).pipe(Jn(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,o){const r=e.querySelector(`[id="${i}"]`);if(!r)return null;const s=r.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,o);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),o);const a=this._svgElementFromString(Xu("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const o=i.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(e){const i=this._svgElementFromString(Xu("<svg></svg>")),o=e.attributes;for(let r=0;r<o.length;r++){const{name:s,value:a}=o[r];"id"!==s&&i.setAttribute(s,a)}for(let r=0;r<e.childNodes.length;r++)e.childNodes[r].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[r].cloneNode(!0));return i}_setSvgAttributes(e,i){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),i&&i.viewBox&&e.setAttribute("viewBox",i.viewBox),e}_fetchIcon(e){var i;const{url:o,options:r}=e,s=null!==(i=null==r?void 0:r.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function uW(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==o)throw Error(`Cannot fetch icon from URL "${o}".`);const a=this._sanitizer.sanitize(tn.RESOURCE_URL,o);if(!a)throw pI(o);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe($e(u=>Xu(u)),Af(()=>this._inProgressUrlFetches.delete(a)),Gy());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,o){return this._svgIconConfigs.set(mI(e,i),o),this}_addSvgIconSetConfig(e,i){const o=this._iconSetConfigs.get(e);return o?o.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let o=0;o<this._resolvers.length;o++){const r=this._resolvers[o](i,e);if(r)return hW(r)?new pa(r.url,null,r.options):new pa(r,null)}}}return t.\u0275fac=function(e){return new(e||t)(ie(b_,8),ie(lu),ie(pt,8),ie(Lr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function up(t){return t.cloneNode(!0)}function mI(t,n){return t+":"+n}function hW(t){return!(!t.url||!t.options)}const fW=da(class{constructor(t){this._elementRef=t}}),pW=new Be("MAT_ICON_DEFAULT_OPTIONS"),gW=new Be("mat-icon-location",{providedIn:"root",factory:function mW(){const t=gn(pt),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),vI=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],vW=vI.map(t=>`[${t}]`).join(", "),_W=/^url\(['"]?#(.*?)['"]?\)$/;let gi=(()=>{class t extends fW{constructor(e,i,o,r,s,a){super(e),this._iconRegistry=i,this._location=r,this._errorHandler=s,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=E.EMPTY,a&&(a.color&&(this.color=this.defaultColor=a.color),a.fontSet&&(this.fontSet=a.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=vt(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const i=this._cleanupFontValue(e);i!==this._fontSet&&(this._fontSet=i,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const i=this._cleanupFontValue(e);i!==this._fontIcon&&(this._fontIcon=i,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const i=e.split(":");switch(i.length){case 1:return["",i[0]];case 2:return i;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const i=this._location.getPathname();i!==this._previousPath&&(this._previousPath=i,this._prependPathToReferences(i))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const o=e.childNodes[i];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),i.forEach(o=>e.classList.add(o)),this._previousFontSetClass=i,this.fontIcon!==this._previousFontIconClass&&!i.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((o,r)=>{o.forEach(s=>{r.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(vW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r<i.length;r++)vI.forEach(s=>{const a=i[r],l=a.getAttribute(s),c=l?l.match(_W):null;if(c){let u=o.get(a);u||(u=[],o.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,o]=this._splitIconName(e);i&&(this._svgNamespace=i),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,i).pipe(An(1)).subscribe(r=>this._setSvgElement(r),r=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${o}! ${r.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(cp),Xo("aria-hidden"),h(gW),h(Lr),h(pW,8))},t.\u0275cmp=it({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,i){2&e&&(Pt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),ft("mat-icon-inline",i.inline)("mat-icon-no-color","primary"!==i.color&&"accent"!==i.color&&"warn"!==i.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[ke],ngContentSelectors:lW,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Ot(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),bW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})();function yW(t,n){if(1&t){const e=mt();R(0,"div",2)(1,"button",3),Ie("click",function(){return qe(e),We(re().action())}),fe(2),L()()}if(2&t){const e=re();w(2),He(e.data.action)}}function CW(t,n){}const _I=new Be("MatSnackBarData");class dp{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const EW=Math.pow(2,31)-1;class Gb{constructor(n,e){this._overlayRef=e,this._afterDismissed=new ce,this._afterOpened=new ce,this._onAction=new ce,this._dismissedByAction=!1,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,EW))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let SW=(()=>{class t{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(h(Gb),h(_I))},t.\u0275cmp=it({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(R(0,"span",0),fe(1),L(),ee(2,yW,3,1,"div",1)),2&e&&(w(1),He(i.data.message),w(1),B("ngIf",i.hasAction))},dependencies:[nn,Ln],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),t})();const AW={snackBarState:Qi("state",[yi("void, hidden",Ft({transform:"scale(0.8)",opacity:0})),yi("visible",Ft({transform:"scale(1)",opacity:1})),Wn("* => visible",Xn("150ms cubic-bezier(0, 0, 0.2, 1)")),Wn("* => void, * => hidden",Xn("75ms cubic-bezier(0.4, 0.0, 1, 1)",Ft({opacity:0})))])};let wW=(()=>{class t extends lf{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=o,this._platform=r,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new ce,this._onExit=new ce,this._onEnter=new ce,this._animationState="void",this.attachDomPortal=a=>{this._assertNotAttached();const l=this._portalOutlet.attachDomPortal(a);return this._afterPortalAttached(),l},this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),i}attachTemplatePortal(e){this._assertNotAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),i}onAnimationEnd(e){const{fromState:i,toState:o}=e;if(("void"===o&&"void"!==i||"hidden"===o)&&this._completeExit(),"visible"===o){const r=this._onEnter;this._ngZone.run(()=>{r.next(),r.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(An(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(o=>e.classList.add(o)):e.classList.add(i))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==o||o.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(h(dt),h(Ue),h(zt),h(ri),h(dp))},t.\u0275dir=be({type:t,viewQuery:function(e,i){if(1&e&&Mt(El,7),2&e){let o;Ne(o=Le())&&(i._portalOutlet=o.first)}},features:[ke]}),t})(),DW=(()=>{class t extends wW{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275cmp=it({type:t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Gc("@state.done",function(r){return i.onAnimationEnd(r)}),2&e&&qc("@state",i._animationState)},features:[ke],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(R(0,"div",0),ee(1,CW,0,0,"ng-template",1),L(),rt(2,"div")),2&e&&(w(2),Pt("aria-live",i._live)("role",i._role))},dependencies:[El],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[AW.snackBarState]}}),t})(),bI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Ol,Sl,Yi,GO,It,It]}),t})();const yI=new Be("mat-snack-bar-default-options",{providedIn:"root",factory:function MW(){return new dp}});let TW=(()=>{class t{constructor(e,i,o,r,s,a){this._overlay=e,this._live=i,this._injector=o,this._breakpointObserver=r,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",o){const r=Object.assign(Object.assign({},this._defaultConfig),o);return r.data={message:e,action:i},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const r=En.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:dp,useValue:i}]}),s=new yl(this.snackBarContainerComponent,i.viewContainerRef,r),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const o=Object.assign(Object.assign(Object.assign({},new dp),this._defaultConfig),i),r=this._createOverlay(o),s=this._attachSnackBarContainer(r,o),a=new Gb(s,r);if(e instanceof yt){const l=new Cl(e,null,{$implicit:o.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(o,a),c=new yl(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(St(r.detachments())).subscribe(l=>{r.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),o.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(a,o),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Su;i.direction=e.direction;let o=this._overlay.position().global();const r="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!r||"end"===e.horizontalPosition&&r,a=!s&&"center"!==e.horizontalPosition;return s?o.left("0"):a?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),i.positionStrategy=o,this._overlay.create(i)}_createInjector(e,i){return En.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Gb,useValue:i},{provide:_I,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(ie(ao),ie(Db),ie(En),ie(qf),ie(t,12),ie(yI))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),xW=(()=>{class t extends TW{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a),this.simpleSnackBarComponent=SW,this.snackBarContainerComponent=DW,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(ie(ao),ie(Db),ie(En),ie(qf),ie(t,12),ie(yI))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:bI}),t})();const OW=["tooltip"],CI="tooltip-panel",EI=Zs({passive:!0}),SI=new Be("mat-tooltip-scroll-strategy"),kW={provide:SI,deps:[ao],useFactory:function PW(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},NW=new Be("mat-tooltip-default-options",{providedIn:"root",factory:function LW(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let FW=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,y){this._overlay=e,this._elementRef=i,this._scrollDispatcher=o,this._viewContainerRef=r,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new ce,this._scrollStrategy=u,this._document=y,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),d.change.pipe(St(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var i;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(i=this._tooltipInstance)||void 0===i||i.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=vt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ki(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ki(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(St(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,o])=>{e.removeEventListener(i,o,EI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){var i;if(this.disabled||!this.message||this._isTooltipVisible())return void(null===(i=this._tooltipInstance)||void 0===i||i._cancelPendingAnimations());const o=this._createOverlay();this._detach(),this._portal=this._portal||new yl(this._tooltipComponent,this._viewContainerRef);const r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(St(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){const i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var e;if(this._overlayRef)return this._overlayRef;const i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),o=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(St(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:o,panelClass:`${this._cssClassPrefix}-${CI}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(St(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(St(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(St(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!so(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(e=this._defaultOptions)||void 0===e)&&e.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},o.main),r.main)),this._addOffset(Object.assign(Object.assign({},o.fallback),r.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i||"below"==i?o={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={originX:"end",originY:"center"});const{x:r,y:s}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let o;"above"==i?o={overlayX:"center",overlayY:"bottom"}:"below"==i?o={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?o={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:r,y:s}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(An(1),St(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:o,originY:r}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===i&&"top"===r?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${CI}-`;a.removePanelClass(l+this._currentPosition),a.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{var o;const r=i.relatedTarget;(!r||null===(o=this._overlayRef)||void 0===o||!o.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,o])=>{this._elementRef.nativeElement.addEventListener(i,o,EI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;i!==o&&!o.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,o=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!i.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){Fs()},t.\u0275dir=be({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),ar=(()=>{class t extends FW{constructor(e,i,o,r,s,a,l,c,u,d,f,y){super(e,i,o,r,s,a,l,c,u,d,f,y),this._tooltipComponent=VW}}return t.\u0275fac=function(e){return new(e||t)(h(ao),h(Ue),h(_u),h(pn),h(dt),h(ri),h(_O),h(Vo),h(SI),h(Co,8),h(NW,8),h(pt))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[ke]}),t})(),BW=(()=>{class t{constructor(e,i){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new ce,this._animationsDisabled="NoopAnimations"===i}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const i=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(i.classList.remove(e?r:o),i.classList.add(e?o:r),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const s=getComputedStyle(i);("0s"===s.getPropertyValue("animation-duration")||"none"===s.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(h(zt),h(bi,8))},t.\u0275dir=be({type:t}),t})(),VW=(()=>{class t extends BW{constructor(e,i,o){super(e,o),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(h(zt),h(qf),h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(1&e&&Mt(OW,7),2&e){let o;Ne(o=Le())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){1&e&&Ie("mouseleave",function(r){return i._handleMouseLeave(r)}),2&e&&oo("zoom",i.isVisible()?1:null)},features:[ke],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,i){if(1&e&&(R(0,"div",0,1),Ie("animationend",function(r){return i._handleAnimationEnd(r)}),Me(2,"async"),fe(3),L()),2&e){let o;ft("mat-tooltip-handset",null==(o=Re(2,4,i._isHandset))?null:o.matches),B("ngClass",i.tooltipClass),w(3),He(i.message)}},dependencies:[$i,Yw],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),t})(),jW=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[kW],imports:[Tb,Yi,Ol,It,It,ea]}),t})(),UW=(()=>{class t extends $n{buildStyles(e,{display:i}){const o=qO(e);return Object.assign(Object.assign({},o),{display:"none"===i?i:o.display})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const HW=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let AI=(()=>{class t extends Fn{constructor(e,i,o,r,s){super(e,o,i,r),this._config=s,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var i;const r=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(i=wI.get(r))&&void 0!==i?i:new Map,wI.set(r,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:r}),this.currentValue=e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(UW),h(In),h(sr))},t.\u0275dir=be({type:t,features:[ke]}),t})(),As=(()=>{class t extends AI{constructor(){super(...arguments),this.inputs=HW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[ke]}),t})();const wI=new Map,DI={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let GW=(()=>{class t extends $n{constructor(e,i){super(),this._styler=e,this._config=i}buildStyles(e,i){return e.endsWith(fp)?function ZW(t,n){const[e,i]=t.split(" "),r=c=>`-${c}`;let s="0px",a=r(null!=i?i:e),l="0px";return"rtl"===n?l=r(e):s=r(e),{margin:`0px ${s} ${a} ${l}`}}(e=ap(e=e.slice(0,e.indexOf(fp)),this._config.multiplier),i.directionality):{}}sideEffect(e,i,o){const r=o.items;if(e.endsWith(fp)){const s=function KW(t,n){const[e,i]=t.split(" ");let r="0px",a="0px";return"rtl"===n?a=e:r=e,{padding:`0px ${r} ${null!=i?i:e} ${a}`}}(e=ap(e=e.slice(0,e.indexOf(fp)),this._config.multiplier),o.directionality);this._styler.applyStyleToElements(s,o.items)}else{e=ap(e,this._config.multiplier),e=this.addFallbackUnit(e);const s=r.pop(),a=function XW(t,n){const e=MI(n.directionality,n.layout),i=Object.assign({},DI);return i[e]=t,i}(e,o);this._styler.applyStyleToElements(a,r),this._styler.applyStyleToElements(DI,[s])}}addFallbackUnit(e){return isNaN(+e)?e:`${e}${this._config.defaultUnit}`}}return t.\u0275fac=function(e){return new(e||t)(ie(xn),ie(sr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const zW=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let qW=(()=>{class t extends Fn{constructor(e,i,o,r,s,a){super(e,s,r,a),this.zone=i,this.directionality=o,this.styleUtils=r,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new ce;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(St(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,i=[];for(let o=e.length;o--;)i[o]=e[o];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const o=e.value.split(" ");this.layout=o[0],ip.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(o=>1===o.nodeType&&this.willDisplay(o)).sort((o,r)=>{const s=+this.styler.lookupStyle(o,"order"),a=+this.styler.lookupStyle(r,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){const o=this.directionality.value,r=this.layout;"row"===r&&"rtl"===o?this.styleCache=WW:"row"===r&&"rtl"!==o?this.styleCache=YW:"column"===r&&"rtl"===o?this.styleCache=$W:"column"===r&&"rtl"!==o&&(this.styleCache=QW),this.addStyles(e,{directionality:o,items:i,layout:r})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":MI(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){const i=this.marshal.getValue(e,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(o=>o.addedNodes&&o.addedNodes.length>0||o.removedNodes&&o.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(dt),h(Co),h(xn),h(GW),h(In))},t.\u0275dir=be({type:t,features:[ke]}),t})(),hp=(()=>{class t extends qW{constructor(){super(...arguments),this.inputs=zW}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[ke]}),t})();const WW=new Map,$W=new Map,YW=new Map,QW=new Map,fp=" grid";function MI(t,n){switch(n){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left"}}let JW=(()=>{class t extends $n{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[o,r,...s]=e.split(" "),a=s.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=Zu(l)?"max-width":"max-height",u=Zu(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,f=d||"auto"===a,y=String(a).indexOf("%")>-1&&!d,N=String(a).indexOf("px")>-1||String(a).indexOf("rem")>-1||String(a).indexOf("em")>-1||String(a).indexOf("vw")>-1||String(a).indexOf("vh")>-1;let X=d||N;o="0"==o?0:o,r="0"==r?0:r;const _e=!o&&!r;let me={};const Ae={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(a||""){case"":const ve=!1!==this.layoutConfig.useColumnBasisZero;a="row"===l?"0%":ve?"0.000000001px":"auto";break;case"initial":case"nogrow":o=0,a="auto";break;case"grow":a="100%";break;case"noshrink":r=0,a="auto";break;case"auto":break;case"none":o=0,r=0,a="auto";break;default:!X&&!y&&!isNaN(a)&&(a+="%"),"0%"===a&&(X=!0),"0px"===a&&(a="0%"),me=Zr(Ae,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":X?a:"100%"}:{flex:`${o} ${r} ${X?a:"100%"}`})}return me.flex||me["flex-grow"]||(me=Zr(Ae,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(me[u]=_e||X&&o?a:null,me[c]=_e||!f&&r?a:null),me[u]||me[c]?i.hasWrap&&(me[d?"flex-basis":"flex"]=me[c]?d?me[c]:`${o} ${r} ${me[c]}`:d?me[u]:`${o} ${r} ${me[u]}`):me=Zr(Ae,d?{"flex-grow":o,"flex-shrink":r,"flex-basis":a}:{flex:`${o} ${r} ${a}`}),Zr(me,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(ie(sr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const e7=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let t7=(()=>{class t extends Fn{constructor(e,i,o,r,s){super(e,r,i,s),this.layoutConfig=o,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(St(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(St(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const o=e.value.split(" ");this.direction=o[0],this.wrap=void 0!==o[1]&&"wrap"===o[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const o=this.direction,r=o.startsWith("row"),s=this.wrap;r&&s?this.styleCache=o7:r&&!s?this.styleCache=n7:!r&&s?this.styleCache=r7:!r&&!s&&(this.styleCache=i7);const l=oI(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:o,hasWrap:s})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=oI(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(sr),h(JW),h(In))},t.\u0275dir=be({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[ke]}),t})(),ga=(()=>{class t extends t7{constructor(){super(...arguments),this.inputs=e7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[ke]}),t})();const n7=new Map,i7=new Map,o7=new Map,r7=new Map;let s7=(()=>{class t extends $n{buildStyles(e){return{order:e&&parseInt(e,10)||""}}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const a7=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];let l7=(()=>{class t extends Fn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="flex-order",this.styleCache=c7,this.init()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(s7),h(In))},t.\u0275dir=be({type:t,features:[ke]}),t})();const c7=new Map;let zb=(()=>{class t extends l7{constructor(){super(...arguments),this.inputs=a7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[ke]}),t})();const S7={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let A7=(()=>{class t extends $n{buildStyles(e){return S7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),TI=(()=>{class t extends Fn{constructor(e,i,o,r){super(e,o,i,r),this.styleCache=w7,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(A7),h(In))},t.\u0275dir=be({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[ke]}),t})();const w7=new Map;let D7=(()=>{class t extends $n{buildStyles(e,i){const o={},[r,s]=e.split(" ");switch(r){case"center":o["justify-content"]="center";break;case"space-around":o["justify-content"]="space-around";break;case"space-between":o["justify-content"]="space-between";break;case"space-evenly":o["justify-content"]="space-evenly";break;case"end":case"flex-end":o["justify-content"]="flex-end";break;default:o["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":o["align-items"]=o["align-content"]="flex-start";break;case"center":o["align-items"]=o["align-content"]="center";break;case"end":case"flex-end":o["align-items"]=o["align-content"]="flex-end";break;case"space-between":o["align-content"]="space-between",o["align-items"]="stretch";break;case"space-around":o["align-content"]="space-around",o["align-items"]="stretch";break;case"baseline":o["align-content"]="stretch",o["align-items"]="baseline";break;default:o["align-items"]=o["align-content"]="stretch"}return Zr(o,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Zu(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Zu(i.layout)?"100%":null})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const M7=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let T7=(()=>{class t extends Fn{constructor(e,i,o,r){super(e,o,i,r),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(St(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",o=this.inline;"row"===i&&o?this.styleCache=P7:"row"!==i||o?"row-reverse"===i&&o?this.styleCache=N7:"row-reverse"!==i||o?"column"===i&&o?this.styleCache=k7:"column"!==i||o?"column-reverse"===i&&o?this.styleCache=L7:"column-reverse"===i&&!o&&(this.styleCache=R7):this.styleCache=O7:this.styleCache=I7:this.styleCache=x7,this.addStyles(e,{layout:i,inline:o})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),ip.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(xn),h(D7),h(In))},t.\u0275dir=be({type:t,features:[ke]}),t})(),ma=(()=>{class t extends T7{constructor(){super(...arguments),this.inputs=M7}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[ke]}),t})();const x7=new Map,O7=new Map,I7=new Map,R7=new Map,P7=new Map,k7=new Map,N7=new Map,L7=new Map;let xI=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Bb,bl]}),t})();function B7(t){return void 0===t}function jo(t){return"boolean"==typeof t}function wn(t,n){for(var e=t.length-1;e>=0;e--)t[e]===n&&t.splice(e,1)}function va(t,n){for(var e=t.length-1;e>=0;e--)!0===n(t[e])&&t.splice(e,1)}function Ju(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var Xl=/[A-Za-z]/,Fi=/[\d]/,lr=/\s/,qb=/['"]/,U7=/[\x00-\x1F\x7F]/,OI=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,z7=OI+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,II=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,RI=(new RegExp("[".concat(OI+II,"]")),z7+II),_a=new RegExp("[".concat(RI,"]")),PI=function(){function t(n){void 0===n&&(n={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=n.tagName||"",this.attrs=n.attrs||{},this.innerHTML=n.innerHtml||n.innerHTML||""}return t.prototype.setTagName=function(n){return this.tagName=n,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(n,e){return this.getAttrs()[n]=e,this},t.prototype.getAttr=function(n){return this.getAttrs()[n]},t.prototype.setAttrs=function(n){return Object.assign(this.getAttrs(),n),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(n){return this.setAttr("class",n)},t.prototype.addClass=function(n){for(var r,e=this.getClass(),i=e?e.split(lr):[],o=n.split(lr);r=o.shift();)-1===i.indexOf(r)&&i.push(r);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(n){for(var r,e=this.getClass(),i=e?e.split(lr):[],o=n.split(lr);i.length&&(r=o.shift());){var s=i.indexOf(r);-1!==s&&i.splice(s,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(n){return-1!==(" "+this.getClass()+" ").indexOf(" "+n+" ")},t.prototype.setInnerHTML=function(n){return this.innerHTML=n,this},t.prototype.setInnerHtml=function(n){return this.setInnerHTML(n)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var n=this.getTagName(),e=this.buildAttrsStr();return["<",n,e=e?" "+e:"",">",this.getInnerHtml(),"</",n,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var n=this.getAttrs(),e=[];for(var i in n)n.hasOwnProperty(i)&&e.push(i+'="'+n[i]+'"');return e.join(" ")},t}(),Y7=function(){function t(n){void 0===n&&(n={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=n.newWindow||!1,this.truncate=n.truncate||{},this.className=n.className||""}return t.prototype.build=function(n){return new PI({tagName:"a",attrs:this.createAttrs(n),innerHtml:this.processAnchorText(n.getAnchorText())})},t.prototype.createAttrs=function(n){var e={href:n.getAnchorHref()},i=this.createCssClass(n);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<n.getAnchorText().length&&(e.title=n.getAnchorHref()),e},t.prototype.createCssClass=function(n){var e=this.className;if(e){for(var i=[e],o=n.getCssClassSuffixes(),r=0,s=o.length;r<s;r++)i.push(e+"-"+o[r]);return i.join(" ")}return""},t.prototype.processAnchorText=function(n){return this.doTruncate(n)},t.prototype.doTruncate=function(n){var e=this.truncate;if(!e||!e.length)return n;var i=e.length,o=e.location;return"smart"===o?function q7(t,n,e){var i,o;null==e?(e="…",o=3,i=8):(o=e.length,i=e.length);var s=function(Ae){var ve="";return Ae.scheme&&Ae.host&&(ve+=Ae.scheme+"://"),Ae.host&&(ve+=Ae.host),Ae.path&&(ve+="/"+Ae.path),Ae.query&&(ve+="?"+Ae.query),Ae.fragment&&(ve+="#"+Ae.fragment),ve},a=function(Ae,ve){var Se=ve/2,Ye=Math.ceil(Se),gt=-1*Math.floor(Se),Zt="";return gt<0&&(Zt=Ae.substr(gt)),Ae.substr(0,Ye)+e+Zt};if(t.length<=n)return t;var ve,Se,Ye,l=n-o,c=(ve={},(Ye=(Se=t).match(/^([a-z]+):\/\//i))&&(ve.scheme=Ye[1],Se=Se.substr(Ye[0].length)),(Ye=Se.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(ve.host=Ye[1],Se=Se.substr(Ye[0].length)),(Ye=Se.match(/^\/(.*?)(?=(\?|#|$))/i))&&(ve.path=Ye[1],Se=Se.substr(Ye[0].length)),(Ye=Se.match(/^\?(.*?)(?=(#|$))/i))&&(ve.query=Ye[1],Se=Se.substr(Ye[0].length)),(Ye=Se.match(/^#(.*?)$/i))&&(ve.fragment=Ye[1]),ve);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),t=s(c))}if(t.length<=n||(c.host&&(c.host=c.host.replace(/^www\./,""),t=s(c)),t.length<=n))return t;var d="";if(c.host&&(d+=c.host),d.length>=l)return c.host.length==n?(c.host.substr(0,n-o)+e).substr(0,l+i):a(d,l).substr(0,l+i);var f="";if(c.path&&(f+="/"+c.path),c.query&&(f+="?"+c.query),f){if((d+f).length>=l)return(d+f).length==n?(d+f).substr(0,n):(d+a(f,l-d.length)).substr(0,l+i);d+=f}if(c.fragment){var N="#"+c.fragment;if((d+N).length>=l)return(d+N).length==n?(d+N).substr(0,n):(d+a(N,l-d.length)).substr(0,l+i);d+=N}if(c.scheme&&c.host){var _e=c.scheme+"://";if((d+_e).length<l)return(_e+d).substr(0,n)}if(d.length<=n)return d;var me="";return l>0&&(me=d.substr(-1*Math.floor(l/2))),(d.substr(0,Math.ceil(l/2))+e+me).substr(0,l+i)}(n,i):"middle"===o?function W7(t,n,e){if(t.length<=n)return t;var i,o;null==e?(e="…",i=8,o=3):(i=e.length,o=e.length);var r=n-o,s="";return r>0&&(s=t.substr(-1*Math.floor(r/2))),(t.substr(0,Math.ceil(r/2))+e+s).substr(0,r+i)}(n,i):function $7(t,n,e){return function j7(t,n,e){var i;return t.length>n&&(null==e?(e="…",i=3):i=e.length,t=t.substring(0,n-i)+e),t}(t,n,e)}(n,i)},t}(),ed=function(){function t(n){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=n.tagBuilder,this.matchedText=n.matchedText,this.offset=n.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(n){this.offset=n},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),K7=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|\u043a\u0430\u0442\u043e\u043b\u0438\u043a|\u0627\u062a\u0635\u0627\u0644\u0627\u062a|\u0627\u0644\u0628\u062d\u0631\u064a\u0646|\u0627\u0644\u062c\u0632\u0627\u0626\u0631|\u0627\u0644\u0639\u0644\u064a\u0627\u0646|\u067e\u0627\u06a9\u0633\u062a\u0627\u0646|\u0643\u0627\u062b\u0648\u0644\u064a\u0643|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|\u043c\u043e\u0441\u043a\u0432\u0430|\u043e\u043d\u043b\u0430\u0439\u043d|\u0627\u0628\u0648\u0638\u0628\u064a|\u0627\u0631\u0627\u0645\u0643\u0648|\u0627\u0644\u0627\u0631\u062f\u0646|\u0627\u0644\u0645\u063a\u0631\u0628|\u0627\u0645\u0627\u0631\u0627\u062a|\u0641\u0644\u0633\u0637\u064a\u0646|\u0645\u0644\u064a\u0633\u064a\u0627|\u092d\u093e\u0930\u0924\u092e\u094d|\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8|\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|\u05d9\u05e9\u05e8\u05d0\u05dc|\u0627\u06cc\u0631\u0627\u0646|\u0628\u0627\u0632\u0627\u0631|\u0628\u06be\u0627\u0631\u062a|\u0633\u0648\u062f\u0627\u0646|\u0633\u0648\u0631\u064a\u0629|\u0647\u0645\u0631\u0627\u0647|\u092d\u093e\u0930\u094b\u0924|\u0938\u0902\u0917\u0920\u0928|\u09ac\u09be\u0982\u09b2\u09be|\u0c2d\u0c3e\u0c30\u0c24\u0c4d|\u0d2d\u0d3e\u0d30\u0d24\u0d02|\u5609\u91cc\u5927\u9152\u5e97|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|\u0434\u0435\u0442\u0438|\u0441\u0430\u0439\u0442|\u0628\u0627\u0631\u062a|\u0628\u064a\u062a\u0643|\u0680\u0627\u0631\u062a|\u062a\u0648\u0646\u0633|\u0634\u0628\u0643\u0629|\u0639\u0631\u0627\u0642|\u0639\u0645\u0627\u0646|\u0645\u0648\u0642\u0639|\u092d\u093e\u0930\u0924|\u09ad\u09be\u09b0\u09a4|\u09ad\u09be\u09f0\u09a4|\u0a2d\u0a3e\u0a30\u0a24|\u0aad\u0abe\u0ab0\u0aa4|\u0b2d\u0b3e\u0b30\u0b24|\u0cad\u0cbe\u0cb0\u0ca4|\u0dbd\u0d82\u0d9a\u0dcf|\u30a2\u30de\u30be\u30f3|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u7ec4\u7ec7\u673a\u6784|\u96fb\u8a0a\u76c8\u79d1|\u9999\u683c\u91cc\u62c9|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|\u0431\u0435\u043b|\u043a\u043e\u043c|\u049b\u0430\u0437|\u043c\u043a\u0434|\u043c\u043e\u043d|\u043e\u0440\u0433|\u0440\u0443\u0441|\u0441\u0440\u0431|\u0443\u043a\u0440|\u0570\u0561\u0575|\u05e7\u05d5\u05dd|\u0639\u0631\u0628|\u0642\u0637\u0631|\u0643\u0648\u0645|\u0645\u0635\u0631|\u0915\u0949\u092e|\u0928\u0947\u091f|\u0e04\u0e2d\u0e21|\u0e44\u0e17\u0e22|\u0ea5\u0eb2\u0ea7|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\u4e9a\u9a6c\u900a|\u5929\u4e3b\u6559|\u6211\u7231\u4f60|\u65b0\u52a0\u5761|\u6de1\u9a6c\u9521|\u8bfa\u57fa\u4e9a|\u98de\u5229\u6d66|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|\u03b5\u03bb|\u03b5\u03c5|\u0431\u0433|\u0435\u044e|\u0440\u0444|\u10d2\u10d4|\ub2f7\ub137|\ub2f7\ucef4|\uc0bc\uc131|\ud55c\uad6d|\u30b3\u30e0|\u4e16\u754c|\u4e2d\u4fe1|\u4e2d\u56fd|\u4e2d\u570b|\u4f01\u4e1a|\u4f5b\u5c71|\u4fe1\u606f|\u5065\u5eb7|\u516b\u5366|\u516c\u53f8|\u516c\u76ca|\u53f0\u6e7e|\u53f0\u7063|\u5546\u57ce|\u5546\u5e97|\u5546\u6807|\u5609\u91cc|\u5728\u7ebf|\u5927\u62ff|\u5a31\u4e50|\u5bb6\u96fb|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u79fb\u52a8|\u7f51\u5740|\u7f51\u5e97|\u7f51\u7ad9|\u7f51\u7edc|\u8054\u901a|\u8c37\u6b4c|\u8d2d\u7269|\u901a\u8ca9|\u96c6\u56e2|\u98df\u54c1|\u9910\u5385|\u9999\u6e2f)$"),Z7=/[\/?#]/,X7=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,kI=/[?!:,.;^]/,NI=/https?:\/\//i,J7=new RegExp("^"+NI.source,"i"),e$=new RegExp(kI.source+"$"),t$=/^(javascript|vbscript):/i,n$=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,i$=/^(?:\/\/)?([^/#?:]+)/;function Wb(t){return Xl.test(t)}function LI(t){return Xl.test(t)||Fi.test(t)||"+"===t||"-"===t||"."===t}function ws(t){return _a.test(t)}function $b(t){return"_"===t||ws(t)}function FI(t){return _a.test(t)||X7.test(t)||kI.test(t)}function Yb(t){return Z7.test(t)}function BI(t){return K7.test(t.toLowerCase())}var s$=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,a$=/[:/?#]/,c$=/^(https?:\/\/)?(www\.)?/i,u$=/^\/\//,d$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return $t(n,t),n.prototype.getType=function(){return"url"},n.prototype.getUrlMatchType=function(){return this.urlMatchType},n.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&"scheme"!==this.urlMatchType&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},n.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},n.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=function p$(t){return t.replace(u$,"")}(e)),this.stripPrefix.scheme&&(e=function h$(t){return t.replace(J7,"")}(e)),this.stripPrefix.www&&(e=function f$(t){return t.replace(c$,"$1")}(e)),this.stripTrailingSlash&&(e=function g$(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}(e)),this.decodePercentEncoding&&(e=function m$(t){var n=t.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(n)}catch(e){return n}}(e)),e},n}(ed),v$=/^mailto:/i,_$=new RegExp("[".concat(RI,"!#$%&'*+/=?^_`{|}~-]"));function Qb(t){return _$.test(t)}var C$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="email",i.email="",i.email=e.email,i}return $t(n,t),n.prototype.getType=function(){return"email"},n.prototype.getEmail=function(){return this.email},n.prototype.getAnchorHref=function(){return"mailto:"+this.email},n.prototype.getAnchorText=function(){return this.email},n}(ed);function VI(t){return"_"===t||_a.test(t)}var S$=["twitter","facebook","instagram","tiktok"],A$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return $t(n,t),n.prototype.getType=function(){return"hashtag"},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getHashtag=function(){return this.hashtag},n.prototype.getAnchorHref=function(){var e=this.serviceName,i=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw Ju(e),new Error("Invalid hashtag service: ".concat(e))}},n.prototype.getAnchorText=function(){return"#"+this.hashtag},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(ed),w$={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},D$=/[-\w.]/;function jI(t){return D$.test(t)}var T$=["twitter","instagram","soundcloud","tiktok"],x$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return $t(n,t),n.prototype.getType=function(){return"mention"},n.prototype.getMention=function(){return this.mention},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},n.prototype.getAnchorText=function(){return"@"+this.mention},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(ed),O$=/[-. ]/,I$=/[-. ()]/,R$=/[,;]/,N$=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function UI(t){return O$.test(t)}function Kb(t){return R$.test(t)}var F$=function(t){function n(e){var i=t.call(this,e)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return $t(n,t),n.prototype.getType=function(){return"phone"},n.prototype.getPhoneNumber=function(){return this.number},n.prototype.getNumber=function(){return this.getPhoneNumber()},n.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},n.prototype.getAnchorText=function(){return this.matchedText},n}(ed);var V$=/[\(\{\[]/,HI=/[\)\}\]]/,GI={")":"(","}":"{","]":"["};function Zb(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"scheme"}}function Xb(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"tld"}}function Jb(t,n){return{type:"phone",startIdx:t,state:n,acceptStateReached:!1}}var wr=function t(n){void 0===n&&(n={}),this.idx=void 0!==n.idx?n.idx:-1,this.type=n.type||"tag",this.name=n.name||"",this.isOpening=!!n.isOpening,this.isClosing=!!n.isClosing};const $$=function(){function t(n){void 0===n&&(n={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function Y$(t){return null==t&&(t=!0),jo(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:!jo(t.schemeMatches)||t.schemeMatches,tldMatches:!jo(t.tldMatches)||t.tldMatches,ipV4Matches:!jo(t.ipV4Matches)||t.ipV4Matches}}(n.urls),this.email=jo(n.email)?n.email:this.email,this.phone=jo(n.phone)?n.phone:this.phone,this.hashtag=n.hashtag||this.hashtag,this.mention=n.mention||this.mention,this.newWindow=jo(n.newWindow)?n.newWindow:this.newWindow,this.stripPrefix=function Q$(t){return null==t&&(t=!0),jo(t)?{scheme:t,www:t}:{scheme:!jo(t.scheme)||t.scheme,www:!jo(t.www)||t.www}}(n.stripPrefix),this.stripTrailingSlash=jo(n.stripTrailingSlash)?n.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=jo(n.decodePercentEncoding)?n.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=n.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&-1===T$.indexOf(e))throw new Error("invalid `mention` cfg '".concat(e,"' - see docs"));var i=this.hashtag;if(!1!==i&&-1===S$.indexOf(i))throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=function K$(t){return"number"==typeof t?{length:t,location:"end"}:function V7(t,n){for(var e in n)n.hasOwnProperty(e)&&B7(t[e])&&(t[e]=n[e]);return t}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}(n.truncate),this.className=n.className||this.className,this.replaceFn=n.replaceFn||this.replaceFn,this.context=n.context||this}return t.link=function(n,e){return new t(e).link(n)},t.parse=function(n,e){return new t(e).parse(n)},t.prototype.parse=function(n){var e=this,i=["a","style","script"],o=0,r=[];return function q$(t,n){for(var e=n.onOpenTag,i=n.onCloseTag,o=n.onText,r=n.onComment,s=n.onDoctype,a=new wr,l=0,c=t.length,u=0,d=0,f=a;l<c;){var y=t.charAt(l);switch(u){case 0:"<"===y&&Gt();break;case 1:"!"===(ze=y)?u=13:"/"===ze?(u=2,f=new wr(Ke(Ke({},f),{isClosing:!0}))):"<"===ze?Gt():Xl.test(ze)?(u=3,f=new wr(Ke(Ke({},f),{isOpening:!0}))):(u=0,f=a);break;case 2:me(y);break;case 3:_e(y);break;case 4:Ae(y);break;case 5:ve(y);break;case 6:Se(y);break;case 7:Ye(y);break;case 8:gt(y);break;case 9:Zt(y);break;case 10:Rt(y);break;case 11:Dn(y);break;case 12:Nt(y);break;case 13:"--"===t.substr(l,2)?(l+=2,f=new wr(Ke(Ke({},f),{type:"comment"})),u=14):"DOCTYPE"===t.substr(l,7).toUpperCase()?(l+=7,f=new wr(Ke(Ke({},f),{type:"doctype"})),u=20):at();break;case 14:Ei(y);break;case 15:Yn(y);break;case 16:xi(y);break;case 17:Ao(y);break;case 18:et(y);break;case 19:Ze(y);break;case 20:lt(y);break;default:Ju(u)}l++}var ze;function _e(ze){lr.test(ze)?(f=new wr(Ke(Ke({},f),{name:Ut()})),u=4):"<"===ze?Gt():"/"===ze?(f=new wr(Ke(Ke({},f),{name:Ut()})),u=12):">"===ze?(f=new wr(Ke(Ke({},f),{name:Ut()})),Mn()):!Xl.test(ze)&&!Fi.test(ze)&&":"!==ze&&at()}function me(ze){">"===ze?at():Xl.test(ze)?u=3:at()}function Ae(ze){lr.test(ze)||("/"===ze?u=12:">"===ze?Mn():"<"===ze?Gt():"="===ze||qb.test(ze)||U7.test(ze)?at():u=5)}function ve(ze){lr.test(ze)?u=6:"/"===ze?u=12:"="===ze?u=7:">"===ze?Mn():"<"===ze?Gt():qb.test(ze)&&at()}function Se(ze){lr.test(ze)||("/"===ze?u=12:"="===ze?u=7:">"===ze?Mn():"<"===ze?Gt():qb.test(ze)?at():u=5)}function Ye(ze){lr.test(ze)||('"'===ze?u=8:"'"===ze?u=9:/[>=`]/.test(ze)?at():"<"===ze?Gt():u=10)}function gt(ze){'"'===ze&&(u=11)}function Zt(ze){"'"===ze&&(u=11)}function Rt(ze){lr.test(ze)?u=4:">"===ze?Mn():"<"===ze&&Gt()}function Dn(ze){lr.test(ze)?u=4:"/"===ze?u=12:">"===ze?Mn():"<"===ze?Gt():(u=4,function At(){l--}())}function Nt(ze){">"===ze?(f=new wr(Ke(Ke({},f),{isClosing:!0})),Mn()):u=4}function Ei(ze){"-"===ze?u=15:">"===ze?at():u=16}function Yn(ze){"-"===ze?u=18:">"===ze?at():u=16}function xi(ze){"-"===ze&&(u=17)}function Ao(ze){u="-"===ze?18:16}function et(ze){">"===ze?Mn():"!"===ze?u=19:"-"===ze||(u=16)}function Ze(ze){"-"===ze?u=17:">"===ze?Mn():u=16}function lt(ze){">"===ze?Mn():"<"===ze&&Gt()}function at(){u=0,f=a}function Gt(){u=1,f=new wr({idx:l})}function Mn(){var ze=t.slice(d,f.idx);ze&&o(ze,d),"comment"===f.type?r(f.idx):"doctype"===f.type?s(f.idx):(f.isOpening&&e(f.name,f.idx),f.isClosing&&i(f.name,f.idx)),at(),d=l+1}function Ut(){return t.slice(f.idx+(f.isClosing?2:1),l).toLowerCase()}d<l&&function ci(){var ze=t.slice(d,l);o(ze,d),d=l+1}()}(n,{onOpenTag:function(s){i.indexOf(s)>=0&&o++},onText:function(s,a){if(0===o){var c=s.split(/( | |<|<|>|>|"|"|')/gi),u=a;c.forEach(function(d,f){if(f%2==0){var y=e.parseText(d,u);r.push.apply(r,y)}u+=d.length})}},onCloseTag:function(s){i.indexOf(s)>=0&&(o=Math.max(o-1,0))},onComment:function(s){},onDoctype:function(s){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},t.prototype.compactMatches=function(n){n.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;e<n.length-1;){var i=n[e],o=i.getOffset(),r=i.getMatchedText().length,s=o+r;if(e+1<n.length){if(n[e+1].getOffset()===o){var a=n[e+1].getMatchedText().length>r?e:e+1;n.splice(a,1);continue}if(n[e+1].getOffset()<s){n.splice(e+1,1);continue}}e++}return n},t.prototype.removeUnwantedMatches=function(n){return this.hashtag||va(n,function(e){return"hashtag"===e.getType()}),this.email||va(n,function(e){return"email"===e.getType()}),this.phone||va(n,function(e){return"phone"===e.getType()}),this.mention||va(n,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||va(n,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||va(n,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||va(n,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),n},t.prototype.parseText=function(n,e){void 0===e&&(e=0),e=e||0;for(var i=function B$(t,n){for(var e=n.tagBuilder,i=n.stripPrefix,o=n.stripTrailingSlash,r=n.decodePercentEncoding,s=n.hashtagServiceName,a=n.mentionServiceName,l=[],c=t.length,u=[],d=0;d<c;d++){var f=t.charAt(d);if(0===u.length)_e(f);else for(var y=u.length-1;y>=0;y--){var N=u[y];switch(N.state){case 11:pe=N,"/"===f?pe.state=12:wn(u,pe);break;case 12:Zt(N,f);break;case 0:me(N,f);break;case 1:Ae(N,f);break;case 2:ve(N,f);break;case 3:Se(N,f);break;case 4:Ye(N,f);break;case 5:Rt(N,f);break;case 6:Dn(N,f);break;case 7:Nt(N,f);break;case 13:vn(N,f);break;case 14:Ei(N,f);break;case 8:Yn(N,f);break;case 9:xi(N,f);break;case 10:Ao(N,f);break;case 15:et(N,f);break;case 16:Ze(N,f);break;case 17:lt(N,f);break;case 18:at(N,f);break;case 19:Gt(N,f);break;case 20:Mn(N,f);break;case 21:ci(N,f);break;case 22:Ut(N,f);break;case 23:At(N,f);break;case 24:ze(N,f);break;case 25:wo(N,f);break;case 26:Rn(N,f);break;case 27:Xi(N,f);break;case 28:lo(N,f);break;case 29:lc(N,f);break;case 30:cd(N,f);break;case 31:Coe(N,f);break;case 32:Soe(N,f);break;case 33:Aoe(N,f);break;case 34:woe(N,f);break;case 35:Doe(N,f);break;case 36:Moe(N,f);break;case 37:Eoe(N,f);break;case 38:Toe(N,f);break;case 39:xoe(N,f);break;case 40:Ooe(N,f);break;case 41:Ioe(N,f);break;default:Ju(N.state)}}}for(var pe,X=u.length-1;X>=0;X--)u.forEach(function(pe){return Vn(pe)});return l;function _e(pe){if("#"===pe)u.push(function G$(t,n){return{type:"hashtag",startIdx:t,state:n,acceptStateReached:!1}}(d,28));else if("@"===pe)u.push(function z$(t,n){return{type:"mention",startIdx:t,state:n,acceptStateReached:!1}}(d,30));else if("/"===pe)u.push(Xb(d,11));else if("+"===pe)u.push(Jb(d,37));else if("("===pe)u.push(Jb(d,32));else{if(Fi.test(pe)&&(u.push(Jb(d,38)),u.push(function U$(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(d,13))),function b$(t){return _a.test(t)}(pe)){var we="m"===pe.toLowerCase()?15:22;u.push(function H$(t,n){return{type:"email",startIdx:t,state:n,acceptStateReached:!1}}(d,we))}Wb(pe)&&u.push(Zb(d,0)),_a.test(pe)&&u.push(Xb(d,5))}}function me(pe,we){":"===we?pe.state=2:"-"===we?pe.state=1:LI(we)||wn(u,pe)}function Ae(pe,we){"-"===we||("/"===we?(wn(u,pe),u.push(Xb(d,11))):LI(we)?pe.state=0:wn(u,pe))}function ve(pe,we){"/"===we?pe.state=3:"."===we?wn(u,pe):ws(we)?(pe.state=5,Wb(we)&&u.push(Zb(d,0))):wn(u,pe)}function Se(pe,we){"/"===we?pe.state=4:FI(we)?(pe.state=10,pe.acceptStateReached=!0):Vn(pe)}function Ye(pe,we){"/"===we?pe.state=10:ws(we)?(pe.state=5,pe.acceptStateReached=!0):wn(u,pe)}function Zt(pe,we){ws(we)?pe.state=5:wn(u,pe)}function Rt(pe,we){"."===we?pe.state=7:"-"===we?pe.state=6:":"===we?pe.state=8:Yb(we)?pe.state=10:$b(we)||Vn(pe)}function Dn(pe,we){"-"===we||("."===we?Vn(pe):ws(we)?pe.state=5:Vn(pe))}function Nt(pe,we){"."===we?Vn(pe):ws(we)?(pe.state=5,pe.acceptStateReached=!0):Vn(pe)}function vn(pe,we){"."===we?pe.state=14:":"===we?pe.state=8:Fi.test(we)||(Yb(we)?pe.state=10:_a.test(we)?wn(u,pe):Vn(pe))}function Ei(pe,we){Fi.test(we)?(pe.octetsEncountered++,4===pe.octetsEncountered&&(pe.acceptStateReached=!0),pe.state=13):Vn(pe)}function Yn(pe,we){Fi.test(we)?pe.state=9:Vn(pe)}function xi(pe,we){Fi.test(we)||(Yb(we)?pe.state=10:Vn(pe))}function Ao(pe,we){FI(we)||Vn(pe)}function et(pe,we){"a"===we.toLowerCase()?pe.state=16:Ut(pe,we)}function Ze(pe,we){"i"===we.toLowerCase()?pe.state=17:Ut(pe,we)}function lt(pe,we){"l"===we.toLowerCase()?pe.state=18:Ut(pe,we)}function at(pe,we){"t"===we.toLowerCase()?pe.state=19:Ut(pe,we)}function Gt(pe,we){"o"===we.toLowerCase()?pe.state=20:Ut(pe,we)}function Mn(pe,we){":"===we.toLowerCase()?pe.state=21:Ut(pe,we)}function ci(pe,we){Qb(we)?pe.state=22:wn(u,pe)}function Ut(pe,we){"."===we?pe.state=23:"@"===we?pe.state=24:Qb(we)?pe.state=22:wn(u,pe)}function At(pe,we){"."===we||"@"===we?wn(u,pe):Qb(we)?pe.state=22:wn(u,pe)}function ze(pe,we){ws(we)?pe.state=25:wn(u,pe)}function wo(pe,we){"."===we?pe.state=27:"-"===we?pe.state=26:$b(we)||Vn(pe)}function Rn(pe,we){"-"===we||"."===we?Vn(pe):$b(we)?pe.state=25:Vn(pe)}function Xi(pe,we){"."===we||"-"===we?Vn(pe):ws(we)?(pe.state=25,pe.acceptStateReached=!0):Vn(pe)}function lo(pe,we){VI(we)?(pe.state=29,pe.acceptStateReached=!0):wn(u,pe)}function lc(pe,we){VI(we)||Vn(pe)}function cd(pe,we){jI(we)?(pe.state=31,pe.acceptStateReached=!0):wn(u,pe)}function Coe(pe,we){jI(we)||(_a.test(we)?wn(u,pe):Vn(pe))}function Eoe(pe,we){Fi.test(we)?pe.state=38:(wn(u,pe),_e(we))}function Soe(pe,we){Fi.test(we)?pe.state=33:wn(u,pe),_e(we)}function Aoe(pe,we){Fi.test(we)?pe.state=34:wn(u,pe)}function woe(pe,we){Fi.test(we)?pe.state=35:wn(u,pe)}function Doe(pe,we){")"===we?pe.state=36:wn(u,pe)}function Moe(pe,we){Fi.test(we)?pe.state=38:UI(we)?pe.state=39:wn(u,pe)}function Toe(pe,we){pe.acceptStateReached=!0,Kb(we)?pe.state=40:"#"===we?pe.state=41:Fi.test(we)||("("===we?pe.state=32:UI(we)?pe.state=39:(Vn(pe),Wb(we)&&u.push(Zb(d,0))))}function xoe(pe,we){Fi.test(we)?pe.state=38:"("===we?pe.state=32:(Vn(pe),_e(we))}function Ooe(pe,we){Kb(we)||("#"===we?pe.state=41:Fi.test(we)?pe.state=38:Vn(pe))}function Ioe(pe,we){Kb(we)?pe.state=40:Fi.test(we)?wn(u,pe):Vn(pe)}function Vn(pe){if(wn(u,pe),pe.acceptStateReached){var we=pe.startIdx,Tn=t.slice(pe.startIdx,d);if(Tn=function j$(t){for(var n={"(":0,"{":0,"[":0},e=0;e<t.length;e++){var i=t.charAt(e);V$.test(i)?n[i]++:HI.test(i)&&n[GI[i]]--}for(var r,o=t.length-1;o>=0;)if(r=t.charAt(o),HI.test(r)){var s=GI[r];if(!(n[s]<0))break;n[s]++,o--}else{if(!e$.test(r))break;o--}return t.slice(0,o+1)}(Tn),"url"===pe.type){if("@"===t.charAt(pe.startIdx-1))return;var ud=pe.matchType;if("scheme"===ud){var Ty=NI.exec(Tn);if(Ty&&(we+=Ty.index,Tn=Tn.slice(Ty.index)),!function o$(t){if(t$.test(t))return!1;var n=t.match(n$);if(!n)return!1;var i=n[2];return!!n[1]||!(-1===i.indexOf(".")||!Xl.test(i))}(Tn))return}else if("tld"===ud){if(!function r$(t){var n=t.match(i$);if(!n)return!1;var i=n[0].split(".");return!(i.length<2||!BI(i[i.length-1]))}(Tn))return}else if("ipV4"===ud){if(!function l$(t){var n=t.split(a$,1)[0];return s$.test(n)}(Tn))return}else Ju(ud);l.push(new d$({tagBuilder:e,matchedText:Tn,offset:we,urlMatchType:ud,url:Tn,protocolRelativeMatch:"//"===Tn.slice(0,2),stripPrefix:i,stripTrailingSlash:o,decodePercentEncoding:r}))}else if("email"===pe.type)(function y$(t){return BI(t.split(".").pop()||"")})(Tn)&&l.push(new C$({tagBuilder:e,matchedText:Tn,offset:we,email:Tn.replace(v$,"")}));else if("hashtag"===pe.type)(function E$(t){return t.length<=140})(Tn)&&l.push(new A$({tagBuilder:e,matchedText:Tn,offset:we,serviceName:s,hashtag:Tn.slice(1)}));else if("mention"===pe.type)(function M$(t,n){return w$[n].test(t)})(Tn,a)&&l.push(new x$({tagBuilder:e,matchedText:Tn,offset:we,serviceName:a,mention:Tn.slice(1)}));else if("phone"===pe.type){if(function L$(t){return("+"===t.charAt(0)||I$.test(t))&&N$.test(t)}(Tn=Tn.replace(/ +$/g,""))){var Poe=Tn.replace(/[^0-9,;#]/g,"");l.push(new F$({tagBuilder:e,matchedText:Tn,offset:we,number:Poe,plusSign:"+"===Tn.charAt(0)}))}}else Ju(pe)}}}(n,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),o=0,r=i.length;o<r;o++)i[o].setOffset(e+i[o].getOffset());return i},t.prototype.link=function(n){if(!n)return"";this.sanitizeHtml&&(n=n.replace(/</g,"<").replace(/>/g,">"));for(var e=this.parse(n),i=[],o=0,r=0,s=e.length;r<s;r++){var a=e[r];i.push(n.substring(o,a.getOffset())),i.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return i.push(n.substring(o)),i.join("")},t.prototype.createMatchReturnVal=function(n){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,n)),"string"==typeof e?e:!1===e?n.getMatchedText():e instanceof PI?e.toAnchorString():n.buildTag().toAnchorString()},t.prototype.getTagBuilder=function(){var n=this.tagBuilder;return n||(n=this.tagBuilder=new Y7({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),n},t.version="4.0.0",t}(),pp=["*"],Z$=["content"];function X$(t,n){if(1&t){const e=mt();R(0,"div",2),Ie("click",function(){return qe(e),We(re()._onBackdropClicked())}),L()}2&t&&ft("mat-drawer-shown",re()._isShowingBackdrop())}function J$(t,n){1&t&&(R(0,"mat-drawer-content"),Ot(1,2),L())}const eY=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],tY=["mat-drawer","mat-drawer-content","*"];function nY(t,n){if(1&t){const e=mt();R(0,"div",2),Ie("click",function(){return qe(e),We(re()._onBackdropClicked())}),L()}2&t&&ft("mat-drawer-shown",re()._isShowingBackdrop())}function iY(t,n){1&t&&(R(0,"mat-sidenav-content"),Ot(1,2),L())}const oY=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],rY=["mat-sidenav","mat-sidenav-content","*"],zI={transformDrawer:Qi("transform",[yi("open, open-instant",Ft({transform:"none",visibility:"visible"})),yi("void",Ft({"box-shadow":"none",visibility:"hidden"})),Wn("void => open-instant",Xn("0ms")),Wn("void <=> open, open-instant => void",Xn("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},aY=new Be("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function lY(){return!1}}),ey=new Be("MAT_DRAWER_CONTAINER");let gp=(()=>{class t extends bu{constructor(e,i,o,r,s){super(o,r,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(zt),h(en(()=>WI)),h(Ue),h(_u),h(dt))},t.\u0275cmp=it({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&oo("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[kt([{provide:bu,useExisting:t}]),ke],ngContentSelectors:pp,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Ot(0))},encapsulation:2,changeDetection:0}),t})(),qI=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=o,this._platform=r,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new ce,this._animationEnd=new ce,this._animationState="void",this.openedChange=new xe(!0),this._openedStream=this.openedChange.pipe(Kt(u=>u),$e(()=>{})),this.openedStart=this._animationStarted.pipe(Kt(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),Sf(void 0)),this._closedStream=this.openedChange.pipe(Kt(u=>!u),$e(()=>{})),this.closedStart=this._animationStarted.pipe(Kt(u=>u.fromState!==u.toState&&"void"===u.toState),Sf(void 0)),this._destroyed=new ce,this.onPositionChanged=new xe,this._modeChanged=new ce,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{vl(this._elementRef.nativeElement,"keydown").pipe(Kt(u=>27===u.keyCode&&!this.disableClose&&!so(u)),St(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe($u((u,d)=>u.fromState===d.fromState&&u.toState===d.toState)).subscribe(u=>{const{fromState:d,toState:f}=u;(0===f.indexOf("open")&&"void"===d||"void"===f&&0===d.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=vt(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=vt(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(vt(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(i)}_focusByCssSelector(e,i){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,i,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(An(1)).subscribe(s=>r(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const i=this._elementRef.nativeElement,o=i.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,i)),o.appendChild(i)):this._anchor&&this._anchor.parentNode.insertBefore(i,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Yf),h(Vo),h(ri),h(dt),h(Yu),h(pt,8),h(ey,8))},t.\u0275cmp=it({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,i){if(1&e&&Mt(Z$,5),2&e){let o;Ne(o=Le())&&(i._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Gc("@transform.start",function(r){return i._animationStarted.next(r)})("@transform.done",function(r){return i._animationEnd.next(r)}),2&e&&(Pt("align",null),qc("@transform",i._animationState),ft("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:pp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(kn(),R(0,"div",0,1),Ot(2),L())},dependencies:[bu],encapsulation:2,data:{animation:[zI.transformDrawer]},changeDetection:0}),t})(),WI=(()=>{class t{constructor(e,i,o,r,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=o,this._changeDetectorRef=r,this._animationMode=l,this._drawers=new us,this.backdropClick=new xe,this._destroyed=new ce,this._doCheckSubject=new ce,this._contentMargins={left:null,right:null},this._contentMarginChanges=new ce,e&&e.change.pipe(St(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(St(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=a}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=vt(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:vt(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Ci(this._allDrawers),St(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ci(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Wu(10),St(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,i-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();i+=o,e-=o}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Kt(i=>i.fromState!==i.toState),St(this._drawers.changes)).subscribe(i=>{"open-instant"!==i.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(St(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(St(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(An(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(St(Vi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?i.add(o):i.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(h(Co,8),h(Ue),h(dt),h(zt),h(yu),h(aY),h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,gp,5),nt(o,qI,5)),2&e){let r;Ne(r=Le())&&(i._content=r.first),Ne(r=Le())&&(i._allDrawers=r)}},viewQuery:function(e,i){if(1&e&&Mt(gp,5),2&e){let o;Ne(o=Le())&&(i._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&ft("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[kt([{provide:ey,useExisting:t}])],ngContentSelectors:tY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(kn(eY),ee(0,X$,1,2,"div",0),Ot(1),Ot(2,1),ee(3,J$,2,0,"mat-drawer-content",1)),2&e&&(B("ngIf",i.hasBackdrop),w(3),B("ngIf",!i._content))},dependencies:[nn,gp],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),ty=(()=>{class t extends gp{constructor(e,i,o,r,s){super(e,i,o,r,s)}}return t.\u0275fac=function(e){return new(e||t)(h(zt),h(en(()=>YI)),h(Ue),h(_u),h(dt))},t.\u0275cmp=it({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&oo("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[kt([{provide:bu,useExisting:t}]),ke],ngContentSelectors:pp,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Ot(0))},encapsulation:2,changeDetection:0}),t})(),$I=(()=>{class t extends qI{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=vt(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Ki(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Ki(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275cmp=it({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Pt("align",null),oo("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),ft("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened)("mat-sidenav-fixed",i.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[ke],ngContentSelectors:pp,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,i){1&e&&(kn(),R(0,"div",0,1),Ot(2),L())},dependencies:[bu],encapsulation:2,data:{animation:[zI.transformDrawer]},changeDetection:0}),t})(),YI=(()=>{class t extends WI{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275cmp=it({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,ty,5),nt(o,$I,5)),2&e){let r;Ne(r=Le())&&(i._content=r.first),Ne(r=Le())&&(i._allDrawers=r)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&ft("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[kt([{provide:ey,useExisting:t}]),ke],ngContentSelectors:rY,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,i){1&e&&(kn(oY),ee(0,nY,1,2,"div",0),Ot(1),Ot(2,1),ee(3,iY,2,0,"mat-sidenav-content",1)),2&e&&(B("ngIf",i.hasBackdrop),w(3),B("ngIf",!i._content))},dependencies:[nn,ty],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),cY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Yi,It,ea,ea,It]}),t})();function QI(t,n){return n?e=>Iu(n.pipe(An(1),function uY(){return je((t,n)=>{t.subscribe(Qe(n,te))})}()),e.pipe(QI(t))):ui((e,i)=>t(e,i).pipe(An(1),Sf(e)))}function KI(t,n=sf){const e=gM(t,n);return QI(()=>e)}const dY=["mat-menu-item",""];function hY(t,n){1&t&&(_c(),R(0,"svg",2),rt(1,"polygon",3),L())}const ZI=["*"];function fY(t,n){if(1&t){const e=mt();R(0,"div",0),Ie("keydown",function(o){return qe(e),We(re()._handleKeydown(o))})("click",function(){return qe(e),We(re().closed.emit("click"))})("@transformMenu.start",function(o){return qe(e),We(re()._onAnimationStart(o))})("@transformMenu.done",function(o){return qe(e),We(re()._onAnimationDone(o))}),R(1,"div",1),Ot(2),L()()}if(2&t){const e=re();B("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Pt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const mp={transformMenu:Qi("transformMenu",[yi("void",Ft({opacity:0,transform:"scale(0.8)"})),Wn("void => enter",Xn("120ms cubic-bezier(0, 0, 0.2, 1)",Ft({opacity:1,transform:"scale(1)"}))),Wn("* => void",Xn("100ms 25ms linear",Ft({opacity:0})))]),fadeInItems:Qi("fadeInItems",[yi("showing",Ft({opacity:1})),Wn("void => *",[Ft({opacity:0}),Xn("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},pY=new Be("MatMenuContent"),ny=new Be("MAT_MENU_PANEL"),gY=Es(ua(class{}));let Ds=(()=>{class t extends gY{constructor(e,i,o,r,s){var a;super(),this._elementRef=e,this._document=i,this._focusMonitor=o,this._parentMenu=r,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new ce,this._focused=new ce,this._highlighted=!1,this._triggersSubmenu=!1,null===(a=null==r?void 0:r.addItem)||void 0===a||a.call(r,this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<o.length;r++)o[r].remove();return(null===(e=i.textContent)||void 0===e?void 0:e.trim())||""}_setHighlighted(e){var i;this._highlighted=e,null===(i=this._changeDetectorRef)||void 0===i||i.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(pt),h(Vo),h(ny,8),h(zt))},t.\u0275cmp=it({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&Ie("click",function(r){return i._checkDisabled(r)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(Pt("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),ft("mat-menu-item",!0)("mat-menu-item-highlighted",i._highlighted)("mat-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[ke],attrs:dY,ngContentSelectors:ZI,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,i){1&e&&(kn(),Ot(0),rt(1,"div",0),ee(2,hY,2,0,"svg",1)),2&e&&(w(1),B("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),w(1),B("ngIf",i._triggersSubmenu))},dependencies:[nn,ha],encapsulation:2,changeDetection:0}),t})();const XI=new Be("mat-menu-default-options",{providedIn:"root",factory:function mY(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let vY=0,td=(()=>{class t{constructor(e,i,o,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=o,this._changeDetectorRef=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new us,this._tabSubscription=E.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new ce,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new xe,this.close=this.closed,this.panelId="mat-menu-panel-"+vY++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=vt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=vt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Sb(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ci(this._directDescendantItems),Li(e=>Vi(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{var i;const o=this._keyManager;if("enter"===this._panelAnimationState&&(null===(i=o.activeItem)||void 0===i?void 0:i._hasFocus())){const r=e.toArray(),s=Math.max(0,Math.min(r.length-1,o.activeItemIndex||0));r[s]&&!r[s].disabled?o.setActiveItem(s):o.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ci(this._directDescendantItems),Li(i=>Vi(...i.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,o=this._keyManager;switch(i){case 27:so(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===i||40===i)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(An(1)).subscribe(()=>{let i=null;if(this._directDescendantItems.length&&(i=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!i||!i.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&i&&i.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${i}`,r=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!r||r===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,i=this.yPosition){var o;const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===i,r["mat-menu-below"]="below"===i,null===(o=this._changeDetectorRef)||void 0===o||o.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Ci(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(dt),h(XI),h(zt))},t.\u0275dir=be({type:t,contentQueries:function(e,i,o){if(1&e&&(nt(o,pY,5),nt(o,Ds,5),nt(o,Ds,4)),2&e){let r;Ne(r=Le())&&(i.lazyContent=r.first),Ne(r=Le())&&(i._allItems=r),Ne(r=Le())&&(i.items=r)}},viewQuery:function(e,i){if(1&e&&Mt(yt,5),2&e){let o;Ne(o=Le())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),nd=(()=>{class t extends td{constructor(e,i,o,r){super(e,i,o,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(dt),h(XI),h(zt))},t.\u0275cmp=it({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Pt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[kt([{provide:ny,useExisting:t}]),ke],ngContentSelectors:ZI,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,i){1&e&&(kn(),ee(0,fY,3,6,"ng-template"))},dependencies:[$i],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[mp.transformMenu,mp.fadeInItems]},changeDetection:0}),t})();const JI=new Be("mat-menu-scroll-strategy"),bY={provide:JI,deps:[ao],useFactory:function _Y(t){return()=>t.scrollStrategies.reposition()}},e1=Zs({passive:!0});let yY=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u){this._overlay=e,this._element=i,this._viewContainerRef=o,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._ngZone=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=E.EMPTY,this._hoverSubscription=E.EMPTY,this._menuCloseSubscription=E.EMPTY,this._handleTouchStart=d=>{wb(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new xe,this.onMenuOpen=this.menuOpened,this.menuClosed=new xe,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=s instanceof td?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,e1),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,e1),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const i=this._createOverlay(e),o=i.getConfig(),r=o.positionStrategy;this._setPosition(e,r),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,i.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof td&&(e._startAnimation(),e._directDescendantItems.changes.pipe(St(e.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){var e;null===(e=this.menu)||void 0===e||e.close.emit()}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){var i;if(!this._overlayRef||!this.menuOpen)return;const o=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,o instanceof td?(o._resetAnimation(),o.lazyContent?o._animationDone.pipe(Kt(r=>"void"===r.toState),An(1),St(o.lazyContent._attached)).subscribe({next:()=>o.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(i=null==o?void 0:o.lazyContent)||void 0===i||i.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let i=0,o=e.parentMenu;for(;o;)i++,o=o.parentMenu;e.setElevation(i)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=this._overlay.create(i),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new Su({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(o=>{const r="start"===o.connectionPair.overlayX?"after":"before",s="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(r,s)):e.setPositionClasses(r,s)})}_setPosition(e,i){let[o,r]="before"===e.xPosition?["end","start"]:["start","end"],[s,a]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[l,c]=[s,a],[u,d]=[o,r],f=0;if(this.triggersSubmenu()){if(d=o="before"===e.xPosition?"start":"end",r=u="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const y=this._parentMaterialMenu.items.first;this._parentInnerPadding=y?y._getHostElement().offsetTop:0}f="bottom"===s?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l="top"===s?"bottom":"top",c="top"===a?"bottom":"top");i.withPositions([{originX:o,originY:l,overlayX:u,overlayY:s,offsetY:f},{originX:r,originY:l,overlayX:d,overlayY:s,offsetY:f},{originX:o,originY:c,overlayX:u,overlayY:a,offsetY:-f},{originX:r,originY:c,overlayX:d,overlayY:a,offsetY:-f}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Vi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:st(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Kt(s=>s!==this._menuItemInstance),Kt(()=>this._menuOpen)):st(),i)}_handleMousedown(e){Ab(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const i=e.keyCode;(13===i||32===i)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===i&&"ltr"===this.dir||37===i&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Kt(e=>e===this._menuItemInstance&&!e.disabled),KI(0,rf)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof td&&this.menu._isAnimating?this.menu._animationDone.pipe(An(1),KI(0,rf),St(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Cl(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(h(ao),h(Ue),h(pn),h(JI),h(ny,8),h(Ds,10),h(Co,8),h(Vo),h(dt))},t.\u0275dir=be({type:t,hostVars:3,hostBindings:function(e,i){1&e&&Ie("click",function(r){return i._handleClick(r)})("mousedown",function(r){return i._handleMousedown(r)})("keydown",function(r){return i._handleKeydown(r)}),2&e&&Pt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Ms=(()=>{class t extends yY{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[ke]}),t})(),CY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[bY],imports:[Yi,It,Ku,Ol,ea,It]}),t})();const EY=["connectionContainer"],SY=["inputContainer"],AY=["label"];function wY(t,n){1&t&&(Si(0),R(1,"div",14),rt(2,"div",15)(3,"div",16)(4,"div",17),L(),R(5,"div",18),rt(6,"div",15)(7,"div",16)(8,"div",17),L(),Ai())}function DY(t,n){if(1&t){const e=mt();R(0,"div",19),Ie("cdkObserveContent",function(){return qe(e),We(re().updateOutlineGap())}),Ot(1,1),L()}2&t&&B("cdkObserveContentDisabled","outline"!=re().appearance)}function MY(t,n){if(1&t&&(Si(0),Ot(1,2),R(2,"span"),fe(3),L(),Ai()),2&t){const e=re(2);w(3),He(e._control.placeholder)}}function TY(t,n){1&t&&Ot(0,3,["*ngSwitchCase","true"])}function xY(t,n){1&t&&(R(0,"span",23),fe(1," *"),L())}function OY(t,n){if(1&t){const e=mt();R(0,"label",20,21),Ie("cdkObserveContent",function(){return qe(e),We(re().updateOutlineGap())}),ee(2,MY,4,1,"ng-container",12),ee(3,TY,1,0,"ng-content",12),ee(4,xY,2,0,"span",22),L()}if(2&t){const e=re();ft("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),B("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Pt("for",e._control.id)("aria-owns",e._control.id),w(2),B("ngSwitchCase",!1),w(1),B("ngSwitchCase",!0),w(1),B("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function IY(t,n){1&t&&(R(0,"div",24),Ot(1,4),L())}function RY(t,n){if(1&t&&(R(0,"div",25),rt(1,"span",26),L()),2&t){const e=re();w(1),ft("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function PY(t,n){1&t&&(R(0,"div"),Ot(1,5),L()),2&t&&B("@transitionMessages",re()._subscriptAnimationState)}function kY(t,n){if(1&t&&(R(0,"div",30),fe(1),L()),2&t){const e=re(2);B("id",e._hintLabelId),w(1),He(e.hintLabel)}}function NY(t,n){if(1&t&&(R(0,"div",27),ee(1,kY,2,2,"div",28),Ot(2,6),rt(3,"div",29),Ot(4,7),L()),2&t){const e=re();B("@transitionMessages",e._subscriptAnimationState),w(1),B("ngIf",e.hintLabel)}}const LY=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],FY=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],t1=new Be("MatError"),jY={transitionMessages:Qi("transitionMessages",[yi("enter",Ft({opacity:1,transform:"translateY(0%)"})),Wn("void => enter",[Ft({opacity:0,transform:"translateY(-5px)"}),Xn("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let vp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})();const UY=new Be("MatHint");let Jl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-label"]]}),t})(),HY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-placeholder"]]}),t})();const GY=new Be("MatPrefix"),n1=new Be("MatSuffix");let o1=0;const WY=da(class{constructor(t){this._elementRef=t}},"primary"),$Y=new Be("MAT_FORM_FIELD_DEFAULT_OPTIONS"),iy=new Be("MatFormField");let _p=(()=>{class t extends WY{constructor(e,i,o,r,s,a,l){super(e),this._changeDetectorRef=i,this._dir=o,this._defaults=r,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new ce,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+o1++,this._labelId="mat-form-field-label-"+o1++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=(null==r?void 0:r.appearance)||"legacy",r&&(this._hideRequiredMarker=Boolean(r.hideRequiredMarker),r.color&&(this.color=this.defaultColor=r.color))}get appearance(){return this._appearance}set appearance(e){var i;const o=this._appearance;this._appearance=e||(null===(i=this._defaults)||void 0===i?void 0:i.appearance)||"legacy","outline"===this._appearance&&o!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=vt(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Ci(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(St(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(St(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Vi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ci(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ci(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(St(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const i=this._control?this._control.ngControl:null;return i&&i[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,vl(this._label.nativeElement,"transitionend").pipe(An(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,o=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=i.querySelectorAll(`${o}, ${r}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let s=0,a=0;const l=i.querySelectorAll(o),c=i.querySelectorAll(r);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),f=e.children,y=this._getStartEnd(f[0].getBoundingClientRect());let N=0;for(let X=0;X<f.length;X++)N+=f[X].offsetWidth;s=Math.abs(y-d)-5,a=N>0?.75*N+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${s}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zt),h(Co,8),h($Y,8),h(ri),h(dt),h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,vp,5),nt(o,vp,7),nt(o,Jl,5),nt(o,Jl,7),nt(o,HY,5),nt(o,t1,5),nt(o,UY,5),nt(o,GY,5),nt(o,n1,5)),2&e){let r;Ne(r=Le())&&(i._controlNonStatic=r.first),Ne(r=Le())&&(i._controlStatic=r.first),Ne(r=Le())&&(i._labelChildNonStatic=r.first),Ne(r=Le())&&(i._labelChildStatic=r.first),Ne(r=Le())&&(i._placeholderChild=r.first),Ne(r=Le())&&(i._errorChildren=r),Ne(r=Le())&&(i._hintChildren=r),Ne(r=Le())&&(i._prefixChildren=r),Ne(r=Le())&&(i._suffixChildren=r)}},viewQuery:function(e,i){if(1&e&&(Mt(EY,7),Mt(SY,5),Mt(AY,5)),2&e){let o;Ne(o=Le())&&(i._connectionContainerRef=o.first),Ne(o=Le())&&(i._inputContainerRef=o.first),Ne(o=Le())&&(i._label=o.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&ft("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[kt([{provide:iy,useExisting:t}]),ke],ngContentSelectors:FY,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,i){1&e&&(kn(LY),R(0,"div",0)(1,"div",1,2),Ie("click",function(r){return i._control.onContainerClick&&i._control.onContainerClick(r)}),ee(3,wY,9,0,"ng-container",3),ee(4,DY,2,1,"div",4),R(5,"div",5,6),Ot(7),R(8,"span",7),ee(9,OY,5,16,"label",8),L()(),ee(10,IY,2,0,"div",9),L(),ee(11,RY,2,4,"div",10),R(12,"div",11),ee(13,PY,2,1,"div",12),ee(14,NY,5,2,"div",13),L()()),2&e&&(w(3),B("ngIf","outline"==i.appearance),w(1),B("ngIf",i._prefixChildren.length),w(5),B("ngIf",i._hasFloatingLabel()),w(1),B("ngIf",i._suffixChildren.length),w(1),B("ngIf","outline"!=i.appearance),w(1),B("ngSwitch",i._getDisplayedMessages()),w(1),B("ngSwitchCase","error"),w(1),B("ngSwitchCase","hint"))},dependencies:[nn,fl,xh,hO],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[jY.transitionMessages]},changeDetection:0}),t})(),bp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Yi,It,yb,It]}),t})();const s1=Zs({passive:!0});let YY=(()=>{class t{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wo;const i=Wr(e),o=this._monitoredElements.get(i);if(o)return o.subject;const r=new ce,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>r.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,s1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:r,unlisten:()=>{i.removeEventListener("animationstart",a,s1)}}),r}stopMonitoring(e){const i=Wr(e),o=this._monitoredElements.get(i);o&&(o.unlisten(),o.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return t.\u0275fac=function(e){return new(e||t)(ie(ri),ie(dt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),a1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();const QY=new Be("MAT_INPUT_VALUE_ACCESSOR"),KY=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ZY=0;const XY=RO(class{constructor(t,n,e,i){this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=e,this.ngControl=i,this.stateChanges=new ce}});let oy=(()=>{class t extends XY{constructor(e,i,o,r,s,a,l,c,u,d){super(a,r,s,o),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+ZY++,this.focused=!1,this.stateChanges=new ce,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(N=>_M().has(N)),this._iOSKeyupListener=N=>{const X=N.target;!X.value&&0===X.selectionStart&&0===X.selectionEnd&&(X.setSelectionRange(1,1),X.setSelectionRange(0,0))};const f=this._elementRef.nativeElement,y=f.nodeName.toLowerCase();this._inputValueAccessor=l||f,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===y,this._isTextarea="textarea"===y,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=vt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(S_.required))&&void 0!==r&&r}set required(e){this._required=vt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&_M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=vt(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e;const i=this._formField,o=!i||"legacy"!==i.appearance||null!==(e=i._hasLabel)&&void 0!==e&&e.call(i)?this.placeholder:null;if(o!==this._previousPlaceholder){const r=this._elementRef.nativeElement;this._previousPlaceholder=o,o?r.setAttribute("placeholder",o):r.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){KY.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(ri),h(Er,10),h(Pl,8),h(Ou,8),h(Ib),h(QY,10),h(YY),h(dt),h(iy,8))},t.\u0275dir=be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,i){1&e&&Ie("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(cs("disabled",i.disabled)("required",i.required),Pt("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),ft("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[kt([{provide:vp,useExisting:t}]),ke,Kn]}),t})(),JY=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[Ib],imports:[a1,bp,It,a1,bp]}),t})(),g1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Bb]}),t})(),CK=(()=>{class t{constructor(e,i){gl(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:sr,useValue:Object.assign(Object.assign({},Vb),e)},{provide:op,useValue:i,multi:!0},{provide:Ql,useValue:!0}]:[{provide:sr,useValue:Object.assign(Object.assign({},Vb),e)},{provide:op,useValue:i,multi:!0}]}}}return t.\u0275fac=function(e){return new(e||t)(ie(Ql),ie(Ro))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[xI,hI,g1,xI,hI,g1]}),t})();const EK=["*",[["mat-toolbar-row"]]],SK=["*","mat-toolbar-row"],AK=da(class{constructor(t){this._elementRef=t}});let wK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),yp=(()=>{class t extends AK{constructor(e,i,o){super(e),this._platform=i,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(ri),h(pt))},t.\u0275cmp=it({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,i,o){if(1&e&&nt(o,wK,5),2&e){let r;Ne(r=Le())&&(i._toolbarRows=r)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&ft("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[ke],ngContentSelectors:SK,decls:2,vars:0,template:function(e,i){1&e&&(kn(EK),Ot(0),Ot(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),DK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})(),MK=0;const TK=ua(class{}),m1="mat-badge-content";let xK=(()=>{class t extends TK{constructor(e,i,o,r,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=o,this._renderer=r,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=MK++,this._isInitialized=!1}get color(){return this._color}set color(e){this._setColor(e),this._color=e}get overlap(){return this._overlap}set overlap(e){this._overlap=vt(e)}get content(){return this._content}set content(e){this._updateRenderedContent(e)}get description(){return this._description}set description(e){this._updateHostAriaDescription(e)}get hidden(){return this._hidden}set hidden(e){this._hidden=vt(e)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const e=this._renderer.createElement("span"),i="mat-badge-active";return e.setAttribute("id",`mat-badge-content-${this._id}`),e.setAttribute("aria-hidden","true"),e.classList.add(m1),"NoopAnimations"===this._animationMode&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(i)})}):e.classList.add(i),e}_updateRenderedContent(e){const i=`${null!=e?e:""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateHostAriaDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),e&&this._ariaDescriber.describe(this._elementRef.nativeElement,e),this._description=e}_setColor(e){const i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),e&&i.add(`mat-badge-${e}`)}_clearExistingBadges(){const e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${m1}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return t.\u0275fac=function(e){return new(e||t)(h(dt),h(Ue),h(_O),h(Oo),h(bi,8))},t.\u0275dir=be({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&ft("mat-badge-overlap",i.overlap)("mat-badge-above",i.isAbove())("mat-badge-below",!i.isAbove())("mat-badge-before",!i.isAfter())("mat-badge-after",i.isAfter())("mat-badge-small","small"===i.size)("mat-badge-medium","medium"===i.size)("mat-badge-large","large"===i.size)("mat-badge-hidden",i.hidden||!i.content)("mat-badge-disabled",i.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[ke]}),t})(),OK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Tb,It,It]}),t})(),ry=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=vt(e)}get inset(){return this._inset}set inset(e){this._inset=vt(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=it({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Pt("aria-orientation",i.vertical?"vertical":"horizontal"),ft("mat-divider-vertical",i.vertical)("mat-divider-horizontal",!i.vertical)("mat-divider-inset",i.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,i){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),v1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})();class sy{constructor(n=!1,e,i=!0,o){this._multiple=n,this._emitChanges=i,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new ce,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(r=>this._markSelected(r)),e.filter(r=>!i.has(r)).forEach(r=>this._unmarkSelected(r));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){if(this.compareWith){for(const e of this._selection)if(this.compareWith(e,n))return!0;return!1}return this._selection.has(n)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}let _1=(()=>{class t{constructor(){this._listeners=[]}notify(e,i){for(let o of this._listeners)o(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const b1=["*"],y1='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:hover{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}',IK=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],RK=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],PK=["text"];function kK(t,n){if(1&t&&rt(0,"mat-pseudo-checkbox",5),2&t){const e=re();B("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}const NK=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],LK=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"],FK=ua(Es(class{})),BK=Es(class{}),C1=new Be("MatList"),VK=new Be("MatNavList");let Cp=(()=>{class t extends FK{constructor(e){super(),this._elementRef=e,this._stateChanges=new ce,"action-list"===this._getListType()&&(e.nativeElement.classList.add("mat-action-list"),e.nativeElement.setAttribute("role","group"))}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue))},t.\u0275cmp=it({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[kt([{provide:C1,useExisting:t}]),ke,Kn],ngContentSelectors:b1,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Ot(0))},styles:[y1],encapsulation:2,changeDetection:0}),t})(),Ep=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Sp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),jK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Ap=(()=>{class t extends BK{constructor(e,i,o,r){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new ce,this._disabled=!1,this._isInteractiveList=!!(o||r&&"action-list"===r._getListType()),this._list=o||r;const s=this._getHostElement();"button"===s.nodeName.toLowerCase()&&!s.hasAttribute("type")&&s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(St(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=vt(e)}ngAfterContentInit(){PO(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zt),h(VK,8),h(C1,8))},t.\u0275cmp=it({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,o){if(1&e&&(nt(o,Ep,5),nt(o,Sp,5),nt(o,Wl,5)),2&e){let r;Ne(r=Le())&&(i._avatar=r.first),Ne(r=Le())&&(i._icon=r.first),Ne(r=Le())&&(i._lines=r)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:4,hostBindings:function(e,i){2&e&&ft("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[ke],ngContentSelectors:RK,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,i){1&e&&(kn(IK),R(0,"span",0),rt(1,"span",1),Ot(2),R(3,"span",2),Ot(4,1),L(),Ot(5,2),L()),2&e&&(w(1),B("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},dependencies:[ha],encapsulation:2,changeDetection:0}),t})();const UK=Es(class{}),HK=Es(class{}),GK={provide:Eo,useExisting:en(()=>ay),multi:!0};class zK{constructor(n,e){this.source=n,this.options=e}}let E1=(()=>{class t extends HK{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this.selectionList=o,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.selectedChange=new xe,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(e){this._color=e}get value(){return this._value}set value(e){this.selected&&!this.selectionList.compareWith(e,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=e}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(e){const i=vt(e);i!==this._disabled&&(this._disabled=i,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(e){const i=vt(e);i!==this._selected&&(this._setSelected(i),(i||this.selectionList.multiple)&&this.selectionList._reportValueChange())}ngOnInit(){const e=this.selectionList;e._value&&e._value.some(o=>e.compareWith(this._value,o))&&this._setSelected(!0);const i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){PO(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const e=this._hasFocus,i=this.selectionList._removeOptionFromList(this);e&&i&&i.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){!this.disabled&&(this.selectionList.multiple||!this.selected)&&(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(e){return e!==this._selected&&(this._selected=e,e?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zt),h(en(()=>ay)))},t.\u0275cmp=it({type:t,selectors:[["mat-list-option"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,Ep,5),nt(o,Sp,5),nt(o,Wl,5)),2&e){let r;Ne(r=Le())&&(i._avatar=r.first),Ne(r=Le())&&(i._icon=r.first),Ne(r=Le())&&(i._lines=r)}},viewQuery:function(e,i){if(1&e&&Mt(PK,5),2&e){let o;Ne(o=Le())&&(i._text=o.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&Ie("focus",function(){return i._handleFocus()})("blur",function(){return i._handleBlur()})("click",function(){return i._handleClick()}),2&e&&(Pt("aria-selected",i.selected)("aria-disabled",i.disabled)("tabindex",-1),ft("mat-list-item-disabled",i.disabled)("mat-list-item-with-avatar",i._avatar||i._icon)("mat-primary","primary"===i.color)("mat-accent","primary"!==i.color&&"warn"!==i.color)("mat-warn","warn"===i.color)("mat-list-single-selected-option",i.selected&&!i.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",disabled:"disabled",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[ke],ngContentSelectors:LK,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(e,i){1&e&&(kn(NK),R(0,"div",0),rt(1,"div",1),ee(2,kK,1,2,"mat-pseudo-checkbox",2),R(3,"div",3,4),Ot(5),L(),Ot(6,1),L()),2&e&&(ft("mat-list-item-content-reverse","after"==i.checkboxPosition),w(1),B("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()),w(1),B("ngIf",i.selectionList.multiple))},dependencies:[ha,FO,nn],encapsulation:2,changeDetection:0}),t})(),ay=(()=>{class t extends UK{constructor(e,i,o){super(),this._element=e,this._changeDetector=i,this._focusMonitor=o,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new xe,this.color="accent",this.compareWith=(r,s)=>r===s,this._disabled=!1,this.selectedOptions=new sy(this._multiple),this._tabIndex=-1,this._onChange=r=>{},this._destroyed=new ce,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=vt(e),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(e){const i=vt(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new sy(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Sb(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(St(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Ci(null),St(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(St(this._destroyed)).subscribe(e=>{if(e.added)for(let i of e.added)i.selected=!0;if(e.removed)for(let i of e.removed)i.selected=!1}),this._focusMonitor.monitor(this._element).pipe(St(this._destroyed)).subscribe(e=>{var i;if("keyboard"===e||"program"===e){let o=0;for(let r=0;r<this.options.length;r++)if(null!==(i=this.options.get(r))&&void 0!==i&&i.selected){o=r;break}this._keyManager.setActiveItem(o)}})}ngOnChanges(e){const i=e.disableRipple,o=e.color;(i&&!i.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_setFocusedOption(e){this._keyManager.updateActiveItem(e)}_removeOptionFromList(e){const i=this._getOptionIndex(e);return i>-1&&this._keyManager.activeItemIndex===i&&(i>0?this._keyManager.updateActiveItem(i-1):0===i&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(i+1,this.options.length-1))),this._keyManager.activeItem}_keydown(e){const i=e.keyCode,o=this._keyManager,r=o.activeItemIndex,s=so(e);switch(i){case 32:case 13:!s&&!o.isTyping()&&(this._toggleFocusedOption(),e.preventDefault());break;default:if(65===i&&this.multiple&&so(e,"ctrlKey")&&!o.isTyping()){const a=this.options.some(l=>!l.disabled&&!l.selected);this._setAllOptionsSelected(a,!0,!0),e.preventDefault()}else o.onKeydown(e)}this.multiple&&(38===i||40===i)&&e.shiftKey&&o.activeItemIndex!==r&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new zK(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{const o=this.options.find(r=>!r.selected&&this.compareWith(r.value,i));o&&o._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_toggleFocusedOption(){let e=this._keyManager.activeItemIndex;if(null!=e&&this._isValidIndex(e)){let i=this.options.toArray()[e];i&&!i.disabled&&(this._multiple||!i.selected)&&(i.toggle(),this._emitChangeEvent([i]))}}_setAllOptionsSelected(e,i,o){const r=[];return this.options.forEach(s=>{(!i||!s.disabled)&&s._setSelected(e)&&r.push(s)}),r.length&&(this._reportValueChange(),o&&this._emitChangeEvent(r)),r}_isValidIndex(e){return e>=0&&e<this.options.length}_getOptionIndex(e){return this.options.toArray().indexOf(e)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zt),h(Vo))},t.\u0275cmp=it({type:t,selectors:[["mat-selection-list"]],contentQueries:function(e,i,o){if(1&e&&nt(o,E1,5),2&e){let r;Ne(r=Le())&&(i.options=r)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(e,i){1&e&&Ie("keydown",function(r){return i._keydown(r)}),2&e&&Pt("aria-multiselectable",i.multiple)("aria-disabled",i.disabled.toString())("tabindex",i._tabIndex)},inputs:{disableRipple:"disableRipple",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[kt([GK]),ke,Kn],ngContentSelectors:b1,decls:1,vars:0,template:function(e,i){1&e&&(kn(),Ot(0))},styles:[y1],encapsulation:2,changeDetection:0}),t})(),qK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Xf,Ku,It,Pb,Yi,Xf,It,Pb,v1]}),t})();const WK=["trigger"],$K=["panel"];function YK(t,n){if(1&t&&(R(0,"span",8),fe(1),L()),2&t){const e=re();w(1),He(e.placeholder)}}function QK(t,n){if(1&t&&(R(0,"span",12),fe(1),L()),2&t){const e=re(2);w(1),He(e.triggerValue)}}function KK(t,n){1&t&&Ot(0,0,["*ngSwitchCase","true"])}function ZK(t,n){1&t&&(R(0,"span",9),ee(1,QK,2,1,"span",10),ee(2,KK,1,0,"ng-content",11),L()),2&t&&(B("ngSwitch",!!re().customTrigger),w(2),B("ngSwitchCase",!0))}function XK(t,n){if(1&t){const e=mt();R(0,"div",13)(1,"div",14,15),Ie("@transformPanel.done",function(o){return qe(e),We(re()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return qe(e),We(re()._handleKeydown(o))}),Ot(3,1),L()()}if(2&t){const e=re();B("@transformPanelWrap",void 0),w(1),DS("mat-select-panel ",e._getPanelTheme(),""),oo("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),B("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Pt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const JK=[[["mat-select-trigger"]],"*"],eZ=["mat-select-trigger","*"],S1={transformPanelWrap:Qi("transformPanelWrap",[Wn("* => void",Iv("@transformPanel",[Ov()],{optional:!0}))]),transformPanel:Qi("transformPanel",[yi("void",Ft({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),yi("showing",Ft({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),yi("showing-multiple",Ft({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Wn("void => *",Xn("120ms cubic-bezier(0, 0, 0.2, 1)")),Wn("* => void",Xn("100ms 25ms linear",Ft({opacity:0})))])};let A1=0;const D1=new Be("mat-select-scroll-strategy"),oZ=new Be("MAT_SELECT_CONFIG"),rZ={provide:D1,deps:[ao],useFactory:function iZ(t){return()=>t.scrollStrategies.reposition()}};class sZ{constructor(n,e){this.source=n,this.value=e}}const aZ=Es(Zf(ua(RO(class{constructor(t,n,e,i,o){this._elementRef=t,this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=i,this.ngControl=o,this.stateChanges=new ce}})))),lZ=new Be("MatSelectTrigger");let cZ=(()=>{class t extends aZ{constructor(e,i,o,r,s,a,l,c,u,d,f,y,N,X){var _e,me,Ae;super(s,r,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=o,this._dir=a,this._parentFormField=u,this._liveAnnouncer=N,this._defaultOptions=X,this._panelOpen=!1,this._compareWith=(ve,Se)=>ve===Se,this._uid="mat-select-"+A1++,this._triggerAriaLabelledBy=null,this._destroy=new ce,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+A1++,this._panelDoneAnimatingStream=new ce,this._overlayPanelClass=(null===(_e=this._defaultOptions)||void 0===_e?void 0:_e.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ae=null===(me=this._defaultOptions)||void 0===me?void 0:me.disableOptionCentering)&&void 0!==Ae&&Ae,this.ariaLabel="",this.optionSelectionChanges=Ru(()=>{const ve=this.options;return ve?ve.changes.pipe(Ci(ve),Li(()=>Vi(...ve.map(Se=>Se.onSelectionChange)))):this._ngZone.onStable.pipe(An(1),Li(()=>this.optionSelectionChanges))}),this.openedChange=new xe,this._openedStream=this.openedChange.pipe(Kt(ve=>ve),$e(()=>{})),this._closedStream=this.openedChange.pipe(Kt(ve=>!ve),$e(()=>{})),this.selectionChange=new xe,this.valueChange=new xe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==X?void 0:X.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=X.typeaheadDebounceInterval),this._scrollStrategyFactory=y,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,o,r;return null!==(r=null!==(e=this._required)&&void 0!==e?e:null===(o=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===o?void 0:o.hasValidator(S_.required))&&void 0!==r&&r}set required(e){this._required=vt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=vt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=vt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Ki(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new sy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($u(),St(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(St(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ci(null),St(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(void 0!==this._previousControl&&null!==i.disabled&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,o=40===i||38===i||37===i||39===i,r=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&r&&!so(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,o=e.keyCode,r=40===o||38===o,s=i.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(s||13!==o&&32!==o||!i.activeItem||so(e))if(!s&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&r&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(An(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{const i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const i=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch(r){return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new h9(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(St(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(St(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=Vi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(St(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Vi(...this.options.map(i=>i._stateChanges)).pipe(St(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,o)=>this.sortComparator?this.sortComparator(i,o,e):e.indexOf(i)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let o=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(h(yu),h(zt),h(dt),h(Ib),h(Ue),h(Co,8),h(Pl,8),h(Ou,8),h(iy,8),h(Er,10),Xo("tabindex"),h(D1),h(Db),h(oZ,8))},t.\u0275dir=be({type:t,viewQuery:function(e,i){if(1&e&&(Mt(WK,5),Mt($K,5),Mt(NM,5)),2&e){let o;Ne(o=Le())&&(i.trigger=o.first),Ne(o=Le())&&(i.panel=o.first),Ne(o=Le())&&(i._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[ke,Kn]}),t})(),ly=(()=>{class t extends cZ{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,o){const r=this._getItemHeight();return Math.min(Math.max(0,r*e-i+r/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(St(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(An(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=jO(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function X9(t,n,e,i){return t<e?t:t+n>e+i?Math.max(0,t-i+n):e}((e+i)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new sZ(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),o=this._isRtl(),r=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}o||(s*=-1);const a=0-(e.left+s-(o?r:0)),l=e.right+s-i.width+(o?0:r);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,o){const r=this._getItemHeight(),s=(r-this._triggerRect.height)/2,a=Math.floor(256/r);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*r:this._scrollTop===o?(e-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):i-r/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,s=o.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>r?this._adjustPanelDown(a,r,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const o=Math.round(e-i);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,o){const r=Math.round(e-i);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),o=Math.min(i*e,256),s=i*e-o;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=jO(a,this.options,this.optionGroups);const l=o/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275cmp=it({type:t,selectors:[["mat-select"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,lZ,5),nt(o,kb,5),nt(o,VO,5)),2&e){let r;Ne(r=Le())&&(i.customTrigger=r.first),Ne(r=Le())&&(i.options=r),Ne(r=Le())&&(i.optionGroups=r)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,i){1&e&&Ie("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Pt("id",i.id)("tabindex",i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),ft("mat-select-disabled",i.disabled)("mat-select-invalid",i.errorState)("mat-select-required",i.required)("mat-select-empty",i.empty)("mat-select-multiple",i.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[kt([{provide:vp,useExisting:t},{provide:BO,useExisting:t}]),ke],ngContentSelectors:eZ,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,i){if(1&e&&(kn(JK),R(0,"div",0,1),Ie("click",function(){return i.toggle()}),R(3,"div",2),ee(4,YK,2,1,"span",3),ee(5,ZK,3,2,"span",4),L(),R(6,"div",5),rt(7,"div",6),L()(),ee(8,XK,4,14,"ng-template",7),Ie("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const o=io(1);Pt("aria-owns",i.panelOpen?i.id+"-panel":null),w(3),B("ngSwitch",i.empty),Pt("id",i._valueId),w(1),B("ngSwitchCase",!0),w(1),B("ngSwitchCase",!1),w(3),B("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},dependencies:[$i,fl,xh,Ww,NM,kM],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[S1.transformPanelWrap,S1.transformPanel]},changeDetection:0}),t})(),uZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[rZ],imports:[Yi,Ol,Nb,It,ea,bp,Nb,It]}),t})();function dZ(t,n){if(1&t&&(_c(),rt(0,"circle",4)),2&t){const e=re(),i=io(1);oo("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Pt("r",e._getCircleRadius())}}function hZ(t,n){if(1&t&&(_c(),rt(0,"circle",4)),2&t){const e=re(),i=io(1);oo("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(i)),Pt("r",e._getCircleRadius())}}const pZ=da(class{constructor(t){this._elementRef=t}},"primary"),gZ=new Be("mat-progress-spinner-default-options",{providedIn:"root",factory:function mZ(){return{diameter:100}}});class Dr extends pZ{constructor(n,e,i,o,r,s,a,l){super(n),this._document=i,this._diameter=100,this._value=0,this._resizeSubscription=E.EMPTY,this.mode="determinate";const c=Dr._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(i.head)||c.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!r&&!r._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),r&&(r.color&&(this.color=this.defaultColor=r.color),r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth)),e.isBrowser&&e.SAFARI&&a&&s&&l&&(this._resizeSubscription=a.change(150).subscribe(()=>{"indeterminate"===this.mode&&l.run(()=>s.markForCheck())}))}get diameter(){return this._diameter}set diameter(n){this._diameter=Ki(n),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(n){this._strokeWidth=Ki(n)}get value(){return"determinate"===this.mode?this._value:0}set value(n){this._value=Math.max(0,Math.min(100,Ki(n)))}ngOnInit(){const n=this._elementRef.nativeElement;this._styleRoot=yM(n)||this._document.head,this._attachStyleNode(),n.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const n=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${n} ${n}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(n){var e;const i=50*(null!==(e=n.currentScale)&&void 0!==e?e:1);return`${i}% ${i}%`}_attachStyleNode(){const n=this._styleRoot,e=this._diameter,i=Dr._diameters;let o=i.get(n);if(!o||!o.has(e)){const r=this._document.createElement("style");r.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),r.textContent=this._getAnimationText(),n.appendChild(r),o||(o=new Set,i.set(n,o)),o.add(e)}}_getAnimationText(){const n=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*n).replace(/END_VALUE/g,""+.2*n).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Dr._diameters=new WeakMap,Dr.\u0275fac=function(n){return new(n||Dr)(h(Ue),h(ri),h(pt,8),h(bi,8),h(gZ),h(zt),h(yu),h(dt))},Dr.\u0275cmp=it({type:Dr,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(n,e){2&n&&(Pt("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),oo("width",e.diameter,"px")("height",e.diameter,"px"),ft("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[ke],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(n,e){1&n&&(_c(),R(0,"svg",0,1),ee(2,dZ,1,11,"circle",2),ee(3,hZ,1,9,"circle",3),L()),2&n&&(oo("width",e.diameter,"px")("height",e.diameter,"px"),B("ngSwitch","indeterminate"===e.mode),Pt("viewBox",e._getViewBox()),w(2),B("ngSwitchCase",!0),w(1),B("ngSwitchCase",!1))},dependencies:[fl,xh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let _Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,Yi,It]}),t})(),bZ=0;const uy=new Be("CdkAccordion");let yZ=(()=>{class t{constructor(){this._stateChanges=new ce,this._openCloseAllActions=new ce,this.id="cdk-accordion-"+bZ++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=vt(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[kt([{provide:uy,useExisting:t}]),Kn]}),t})(),CZ=0,EZ=(()=>{class t{constructor(e,i,o){this.accordion=e,this._changeDetectorRef=i,this._expansionDispatcher=o,this._openCloseAllSubscription=E.EMPTY,this.closed=new xe,this.opened=new xe,this.destroyed=new xe,this.expandedChange=new xe,this.id="cdk-accordion-child-"+CZ++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((r,s)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===s&&this.id!==r&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=vt(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=vt(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return t.\u0275fac=function(e){return new(e||t)(h(uy,12),h(zt),h(_1))},t.\u0275dir=be({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[kt([{provide:uy,useValue:void 0}])]}),t})(),SZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})();const AZ=["body"];function wZ(t,n){}const DZ=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],MZ=["mat-expansion-panel-header","*","mat-action-row"];function TZ(t,n){1&t&&rt(0,"span",2),2&t&&B("@indicatorRotate",re()._getExpandedState())}const xZ=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],OZ=["mat-panel-title","mat-panel-description","*"],dy=new Be("MAT_ACCORDION"),M1="225ms cubic-bezier(0.4,0.0,0.2,1)",T1={indicatorRotate:Qi("indicatorRotate",[yi("collapsed, void",Ft({transform:"rotate(0deg)"})),yi("expanded",Ft({transform:"rotate(180deg)"})),Wn("expanded <=> collapsed, void => collapsed",Xn(M1))]),bodyExpansion:Qi("bodyExpansion",[yi("collapsed, void",Ft({height:"0px",visibility:"hidden"})),yi("expanded",Ft({height:"*",visibility:"visible"})),Wn("expanded <=> collapsed, void => collapsed",Xn(M1))])},x1=new Be("MAT_EXPANSION_PANEL");let IZ=(()=>{class t{constructor(e,i){this._template=e,this._expansionPanel=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(x1,8))},t.\u0275dir=be({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),RZ=0;const O1=new Be("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let I1=(()=>{class t extends EZ{constructor(e,i,o,r,s,a,l){super(e,i,o),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new xe,this.afterCollapse=new xe,this._inputChanges=new ce,this._headerId="mat-expansion-panel-header-"+RZ++,this._bodyAnimationDone=new ce,this.accordion=e,this._document=s,this._bodyAnimationDone.pipe($u((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),l&&(this.hideToggle=l.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=vt(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Ci(null),Kt(()=>this.expanded&&!this._portal),An(1)).subscribe(()=>{this._portal=new Cl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,i=this._body.nativeElement;return e===i||i.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(h(dy,12),h(zt),h(_1),h(pn),h(pt),h(bi,8),h(O1,8))},t.\u0275cmp=it({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,i,o){if(1&e&&nt(o,IZ,5),2&e){let r;Ne(r=Le())&&(i._lazyContent=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(AZ,5),2&e){let o;Ne(o=Le())&&(i._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,i){2&e&&ft("mat-expanded",i.expanded)("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[kt([{provide:dy,useValue:void 0},{provide:x1,useExisting:t}]),ke,Kn],ngContentSelectors:MZ,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,i){1&e&&(kn(DZ),Ot(0),R(1,"div",0,1),Ie("@bodyExpansion.done",function(r){return i._bodyAnimationDone.next(r)}),R(3,"div",2),Ot(4,1),ee(5,wZ,0,0,"ng-template",3),L(),Ot(6,2),L()),2&e&&(w(1),B("@bodyExpansion",i._getExpandedState())("id",i.id),Pt("aria-labelledby",i._headerId),w(4),B("cdkPortalOutlet",i._portal))},dependencies:[El],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[T1.bodyExpansion]},changeDetection:0}),t})();class PZ{}const kZ=Zf(PZ);let R1=(()=>{class t extends kZ{constructor(e,i,o,r,s,a,l){super(),this.panel=e,this._element=i,this._focusMonitor=o,this._changeDetectorRef=r,this._animationMode=a,this._parentChangeSubscription=E.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe(Kt(u=>!(!u.hideToggle&&!u.togglePosition))):Wo;this.tabIndex=parseInt(l||"")||0,this._parentChangeSubscription=Vi(e.opened,e.closed,c,e._inputChanges.pipe(Kt(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Kt(()=>e._containsFocus())).subscribe(()=>o.focusVia(i,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:so(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,i){e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(h(I1,1),h(Ue),h(Vo),h(zt),h(O1,8),h(bi,8),Xo("tabindex"))},t.\u0275cmp=it({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,i){1&e&&Ie("click",function(){return i._toggle()})("keydown",function(r){return i._keydown(r)}),2&e&&(Pt("id",i.panel._headerId)("tabindex",i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),oo("height",i._getHeaderHeight()),ft("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after","after"===i._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===i._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===i._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[ke],ngContentSelectors:OZ,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,i){1&e&&(kn(xZ),R(0,"span",0),Ot(1),Ot(2,1),Ot(3,2),L(),ee(4,TZ,1,1,"span",1)),2&e&&(ft("mat-content-hide-toggle",!i._showToggle()),w(4),B("ngIf",i._showToggle()))},dependencies:[nn],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[T1.indicatorRotate]},changeDetection:0}),t})(),NZ=(()=>{class t extends yZ{constructor(){super(...arguments),this._ownHeaders=new us,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=vt(e)}ngAfterContentInit(){this._headers.changes.pipe(Ci(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(i=>i.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Sb(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["mat-accordion"]],contentQueries:function(e,i,o){if(1&e&&nt(o,R1,5),2&e){let r;Ne(r=Le())&&(i._headers=r)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,i){2&e&&ft("mat-accordion-multi",i.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[kt([{provide:dy,useExisting:t}]),ke]}),t})(),LZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Yi,It,SZ,Sl]}),t})();const FZ=["input"],BZ=function(t){return{enterDuration:t}},VZ=["*"],jZ=new Be("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let UZ=0;const HZ={provide:Eo,useExisting:en(()=>P1),multi:!0};class GZ{constructor(n,e){this.source=n,this.checked=e}}const zZ=Zf(da(Es(ua(class{constructor(t){this._elementRef=t}}))));let qZ=(()=>{class t extends zZ{constructor(e,i,o,r,s,a,l){super(e),this._focusMonitor=i,this._changeDetectorRef=o,this.defaults=s,this._onChange=c=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new xe,this.toggleChange=new xe,this.tabIndex=parseInt(r)||0,this.color=this.defaultColor=s.color||"accent",this._noopAnimations="NoopAnimations"===a,this.id=this._uniqueId=`${l}${++UZ}`}get required(){return this._required}set required(e){this._required=vt(e)}get checked(){return this._checked}set checked(e){this._checked=vt(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){Fs()},t.\u0275dir=be({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[ke]}),t})(),P1=(()=>{class t extends qZ{constructor(e,i,o,r,s,a){super(e,i,o,r,s,a,"mat-slide-toggle-")}_createChangeEvent(e){return new GZ(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(Vo),h(zt),Xo("tabindex"),h(jZ),h(bi,8))},t.\u0275cmp=it({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,i){if(1&e&&Mt(FZ,5),2&e){let o;Ne(o=Le())&&(i._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,i){2&e&&(cs("id",i.id),Pt("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),ft("mat-checked",i.checked)("mat-disabled",i.disabled)("mat-slide-toggle-label-before","before"==i.labelPosition)("_mat-animation-noopable",i._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[kt([HZ]),ke],ngContentSelectors:VZ,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,i){if(1&e&&(kn(),R(0,"label",0,1)(2,"span",2)(3,"input",3,4),Ie("change",function(r){return i._onChangeEvent(r)})("click",function(r){return i._onInputClick(r)}),L(),R(5,"span",5),rt(6,"span",6),R(7,"span",7),rt(8,"span",8),L()()(),R(9,"span",9,10),Ie("cdkObserveContent",function(){return i._onLabelTextChange()}),R(11,"span",11),fe(12,"\xa0"),L(),Ot(13),L()()),2&e){const o=io(1),r=io(10);Pt("for",i.inputId),w(2),ft("mat-slide-toggle-bar-no-side-margin",!r.textContent||!r.textContent.trim()),w(1),B("id",i.inputId)("required",i.required)("tabIndex",i.tabIndex)("checked",i.checked)("disabled",i.disabled),Pt("name",i.name)("aria-checked",i.checked)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby),w(4),B("matRippleTrigger",o)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",_i(18,BZ,i._noopAnimations?0:150))}},dependencies:[ha,hO],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),t})(),k1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})(),YZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[k1,Ku,It,yb,k1,It]}),t})(),XZ=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[It,It]}),t})(),tX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Xf,It,Xf,It]}),t})(),hX=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[Yi,It,It]}),t})();function fX(t,n){if(1&t){const e=mt();R(0,"div",3)(1,"button",4),Ie("click",function(){return qe(e),We(re().close())}),fe(2),Me(3,"translate"),L()()}2&t&&(w(2),He(Re(3,1,"PANEL.CLOSE")))}function pX(t,n){if(1&t){const e=mt();R(0,"div",3)(1,"button",4),Ie("click",function(){return qe(e),We(re().close())}),fe(2),Me(3,"translate"),L()()}2&t&&(w(2),He(Re(3,1,"PANEL.CLOSE")))}const gX=["captionEventElement"],mX=function(t){return{"captions-offset":t}};function vX(t,n){if(1&t){const e=mt();R(0,"div",6)(1,"button",7),Ie("click",function(){return qe(e),We(re().onSettingsCliked())}),R(2,"mat-icon",8),fe(3,"settings"),L(),R(4,"span"),fe(5),L()()()}if(2&t){const e=re(),i=io(1);B("ngClass",_i(2,mX,i.offsetWidth>=1e3)),w(5),He(e.captionLangSelected.name)}}const _X=function(t){return{color:t}},bX=function(t){return{"going-to-disappear":t}};function yX(t,n){if(1&t&&(R(0,"div",9)(1,"p",10),fe(2),L(),R(3,"div",11,12)(5,"span",13),fe(6),L()()()),2&t){const e=n.$implicit,i=n.index,o=re();B("@captionAnimation",void 0),w(1),B("ngStyle",_i(5,_X,e.color)),w(1),zn(" ",e.nickname," "),w(1),B("ngClass",_i(7,bX,0===i&&o.captionEvents.length===o.MAX_EVENTS_LIMIT)),w(3),He(e.text)}}function CX(t,n){1&t&&rt(0,"div",14)}const EX=function(t,n,e,i,o,r,s){return{"events-one":t,"events-two":n,"events-three":e,"screen-xl":i,"screen-md":o,"screen-sm":r,"screen-xs":s}},SX=["stream"],j1=["layout"];function AX(t,n){1&t&&dn(0)}const U1=function(t){return{OV_big:t}},ya=function(t){return{$implicit:t}};function wX(t,n){if(1&t&&(R(0,"div",6),ee(1,AX,1,0,"ng-container",7),L()),2&t){const e=n.$implicit,i=re();B("ngClass",_i(3,U1,e.videoEnlarged)),w(1),B("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",_i(5,ya,e))}}function DX(t,n){1&t&&dn(0)}function MX(t,n){if(1&t&&(R(0,"div",8),ee(1,DX,1,0,"ng-container",7),L()),2&t){const e=n.$implicit,i=re();B("ngClass",_i(3,U1,e.videoEnlarged)),w(1),B("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",_i(5,ya,e))}}function TX(t,n){1&t&&rt(0,"ov-captions",9)}function xX(t,n){if(1&t){const e=mt();R(0,"div",3)(1,"button",4),Ie("click",function(){return qe(e),We(re().seeMore())}),R(2,"span"),fe(3),Me(4,"translate"),L(),R(5,"mat-icon"),fe(6,"open_in_new"),L()(),R(7,"button",4),Ie("click",function(){return qe(e),We(re().close())}),fe(8),Me(9,"translate"),L()()}2&t&&(w(3),He(Re(4,2,"PANEL.SEE_MORE")),w(5),He(Re(9,4,"PANEL.CLOSE")))}const OX=["chatScroll"],IX=["chatInput"];function RX(t,n){1&t&&(R(0,"p"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.CHAT.YOU")))}function PX(t,n){if(1&t&&(R(0,"p"),fe(1),L()),2&t){const e=re().$implicit;w(1),He(e.nickname)}}function kX(t,n){if(1&t&&(R(0,"div",14)(1,"div",15)(2,"div",16),ee(3,RX,3,3,"p",17),ee(4,PX,2,1,"p",17),L(),R(5,"div",18),rt(6,"p",19),Me(7,"linkify"),L()()()),2&t){const e=n.$implicit;B("ngClass",e.isLocal?"right":"left"),w(3),B("ngIf",e.isLocal),w(1),B("ngIf",!e.isLocal),w(2),B("innerHTML",Re(7,4,e.message),bg)}}const NX=["toolbar"],LX=["panel"],FX=["sidenav"],BX=["videoContainer"],VX=["container"],jX=["layoutContainer"];function UX(t,n){1&t&&dn(0)}function HX(t,n){1&t&&dn(0)}function GX(t,n){1&t&&dn(0)}function zX(t,n){if(1&t&&(R(0,"div",11),ee(1,GX,1,0,"ng-container",6),L()),2&t){const e=re(2);w(1),B("ngTemplateOutlet",e.toolbarTemplate)}}const qX=function(t){return{big:t}};function WX(t,n){if(1&t&&(R(0,"div",1)(1,"mat-sidenav-container",2,3)(4,"mat-sidenav",4,5),ee(6,UX,1,0,"ng-container",6),L(),R(7,"mat-sidenav-content",7)(8,"div",8,9),ee(10,HX,1,0,"ng-container",6),L()()(),ee(11,zX,2,1,"div",10),L()),2&t){const e=re();B("@sessionAnimation",void 0),w(4),Xt("mode",e.sidenavMode),B("ngClass",_i(6,qX,e.settingsPanelOpened)),w(2),B("ngTemplateOutlet",e.panelTemplate),w(4),B("ngTemplateOutlet",e.layoutTemplate),w(1),B("ngIf",e.toolbarTemplate)}}const $X=function(t){return{"background-color":t}},YX=["videoElement"],QX=["menu"],KX=["streamContainer"],ZX=["nicknameInput"];function XX(t,n){if(1&t&&(R(0,"span",15),fe(1),L()),2&t){const e=re(4);w(1),He(e._stream.participant.nickname)}}function JX(t,n){if(1&t&&(R(0,"span",15),fe(1),L()),2&t){const e=re(4);w(1),zn("",e._stream.participant.nickname,"_SCREEN")}}function eJ(t,n){if(1&t){const e=mt();R(0,"div",13),Ie("click",function(){return qe(e),We(re(3).toggleNicknameForm())}),ee(1,XX,2,1,"span",14),ee(2,JX,2,1,"span",14),L()}if(2&t){const e=re(3);w(1),B("ngIf","CAMERA"===e._stream.type),w(1),B("ngIf","SCREEN"===e._stream.type)}}function tJ(t,n){if(1&t){const e=mt();R(0,"div",16)(1,"input",17,18),Ie("ngModelChange",function(o){return qe(e),We(re(3).nickname=o)})("keypress",function(o){return qe(e),We(re(3).updateNickname(o))})("focusout",function(o){return qe(e),We(re(3).updateNickname(o))}),L()()}if(2&t){const e=re(3);ft("fullscreen",e.isFullscreen),w(1),B("ngModel",e.nickname)}}function nJ(t,n){if(1&t&&(R(0,"div",10),ee(1,eJ,3,2,"div",11),ee(2,tJ,3,3,"div",12),L()),2&t){const e=re(2);ft("fullscreen",e.isFullscreen),w(1),B("ngIf",!e.toggleNickname),w(1),B("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function iJ(t,n){if(1&t&&(R(0,"div",19),rt(1,"ov-audio-wave",20),L()),2&t){const e=re(2);w(1),B("streamManager",e._stream.streamManager)}}function oJ(t,n){if(1&t&&rt(0,"ov-avatar-profile",21),2&t){const e=re(2);B("@posterAnimation",void 0)("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function rJ(t,n){1&t&&(R(0,"button",22)(1,"mat-icon"),fe(2,"mic_off"),L()())}function sJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"STREAM.ZOOM_OUT")))}function aJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"STREAM.ZOOM_IN")))}function lJ(t,n){1&t&&(R(0,"mat-icon"),fe(1,"volume_up"),L())}function cJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"STREAM.MUTE_SOUND")))}function uJ(t,n){1&t&&(R(0,"mat-icon"),fe(1,"volume_off"),L())}function dJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"STREAM.UNMUTE_SOUND")))}function hJ(t,n){if(1&t){const e=mt();R(0,"button",32),Ie("click",function(){return qe(e),We(re(3).toggleMuteForcibly())}),ee(1,lJ,2,0,"mat-icon",29),ee(2,cJ,3,3,"span",29),ee(3,uJ,2,0,"mat-icon",29),ee(4,dJ,3,3,"span",29),L()}if(2&t){const e=re(3);w(1),B("ngIf",!e._stream.participant.isMutedForcibly),w(1),B("ngIf",!e._stream.participant.isMutedForcibly),w(1),B("ngIf",e._stream.participant.isMutedForcibly),w(1),B("ngIf",e._stream.participant.isMutedForcibly)}}function fJ(t,n){if(1&t){const e=mt();R(0,"button",33),Ie("click",function(){return qe(e),We(re(3).replaceScreenTrack())}),R(1,"mat-icon"),fe(2,"picture_in_picture"),L(),R(3,"span"),fe(4),Me(5,"translate"),L()()}2&t&&(w(4),He(Re(5,1,"STREAM.REPLACE_SCREEN")))}function pJ(t,n){if(1&t){const e=mt();R(0,"div",23)(1,"button",24),Ie("click",function(o){return qe(e),We(re(2).toggleVideoMenu(o))}),Me(2,"translate"),R(3,"mat-icon"),fe(4,"more_vert"),L()(),rt(5,"span",25),R(6,"mat-menu",26,27)(8,"button",28),Ie("click",function(){return qe(e),We(re(2).toggleVideoEnlarged())}),R(9,"mat-icon"),fe(10),L(),ee(11,sJ,3,3,"span",29),ee(12,aJ,3,3,"span",29),L(),ee(13,hJ,5,4,"button",30),ee(14,fJ,6,3,"button",31),L()()}if(2&t){const e=io(7),i=re(2);w(1),Xt("matTooltip",Re(2,7,"STREAM.SETTINGS")),w(4),B("matMenuTriggerFor",e),w(5),He(i.videoSizeIcon),w(1),B("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),w(1),B("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),w(1),B("ngIf",!i._stream.local),w(1),B("ngIf",!(null!=i._stream.streamManager&&i._stream.streamManager.remote)&&(null==i._stream.streamManager||null==i._stream.streamManager.stream?null:i._stream.streamManager.stream.typeOfVideo)===i.videoTypeEnum.SCREEN)}}const gJ=function(t){return{"no-size":t}};function mJ(t,n){if(1&t){const e=mt();R(0,"div",1,2),ee(2,nJ,3,4,"div",3),ee(3,iJ,2,1,"div",4),ee(4,oJ,1,3,"ov-avatar-profile",5),R(5,"ov-video",6),Ie("dblclick",function(){return qe(e),We(re().toggleVideoEnlarged())}),L(),R(6,"div",7),ee(7,rJ,3,0,"button",8),L(),ee(8,pJ,15,9,"div",9),L()}if(2&t){const e=re();B("ngClass",_i(9,gJ,!e.showVideo))("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),w(2),B("ngIf",!e.isMinimal&&e.showNickname),w(1),B("ngIf",!e.isMinimal&&e.showAudioDetection&&"CAMERA"===e._stream.type&&(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.audioActive)),w(1),B("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),w(1),B("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),w(2),B("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),w(1),B("ngIf",!e.isMinimal&&e.showSettingsButton)}}const vJ=["toolbarAdditionalButtons"],_J=["toolbarAdditionalPanelButtons"];function bJ(t,n){1&t&&rt(0,"img",30)}function yJ(t,n){if(1&t&&(R(0,"span",31),fe(1),L()),2&t){const e=re(2);w(1),He(e.session.sessionId)}}function CJ(t,n){if(1&t&&(R(0,"div",32)(1,"mat-icon",33),fe(2,"radio_button_checked"),L(),R(3,"span",33),fe(4,"REC"),L(),R(5,"span"),fe(6),Me(7,"date"),L()()),2&t){const e=re(2);w(6),zn(" | ",Hs(7,1,e.recordingTime,"H:mm:ss"),"")}}function EJ(t,n){if(1&t&&(R(0,"div",25)(1,"div"),ee(2,bJ,1,0,"img",26),R(3,"div",27),ee(4,yJ,2,1,"span",28),ee(5,CJ,8,4,"div",29),L()()()),2&t){const e=re();w(2),B("ngIf",!e.isMinimal&&e.showLogo),w(1),ft("colapsed",e.recordingStatus===e._recordingStatus.STARTED),w(1),B("ngIf",!e.isMinimal&&e.session&&e.session.sessionId&&e.showSessionName),w(1),B("ngIf",e.recordingStatus===e._recordingStatus.STARTED)}}function SJ(t,n){if(1&t&&(R(0,"mat-icon",34),Me(1,"translate"),fe(2," mic "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.MUTE_AUDIO")),B("matTooltipDisabled",!e.hasAudioDevices)}}function AJ(t,n){if(1&t&&(R(0,"mat-icon",35),Me(1,"translate"),fe(2," mic_off "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.UNMUTE_AUDIO")),B("matTooltipDisabled",!e.hasAudioDevices)}}function wJ(t,n){if(1&t&&(R(0,"mat-icon",36),Me(1,"translate"),fe(2," videocam "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.MUTE_VIDEO")),B("matTooltipDisabled",!e.hasVideoDevices)}}function DJ(t,n){if(1&t&&(R(0,"mat-icon",37),Me(1,"translate"),fe(2," videocam_off "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.UNMUTE_VIDEO")),B("matTooltipDisabled",!e.hasVideoDevices)}}function MJ(t,n){1&t&&(R(0,"mat-icon",40),Me(1,"translate"),fe(2,"screen_share"),L()),2&t&&Xt("matTooltip",Re(1,1,"TOOLBAR.ENABLE_SCREEN"))}function TJ(t,n){1&t&&(R(0,"mat-icon",40),Me(1,"translate"),fe(2,"screen_share"),L()),2&t&&Xt("matTooltip",Re(1,1,"TOOLBAR.DISABLE_SCREEN"))}function xJ(t,n){if(1&t){const e=mt();R(0,"button",38),Ie("click",function(){return qe(e),We(re().toggleScreenShare())}),ee(1,MJ,3,3,"mat-icon",39),ee(2,TJ,3,3,"mat-icon",39),L()}if(2&t){const e=re();ft("active-btn",e.isScreenShareActive),B("disabled",e.isConnectionLost),w(1),B("ngIf",!e.isScreenShareActive),w(1),B("ngIf",e.isScreenShareActive)}}function OJ(t,n){if(1&t&&(R(0,"button",41)(1,"mat-icon",40),Me(2,"translate"),fe(3,"more_vert"),L()()),2&t){const e=re();B("matMenuTriggerFor",io(12))("disabled",e.isConnectionLost),w(1),Xt("matTooltip",Re(2,3,"TOOLBAR.MORE_OPTIONS"))}}function IJ(t,n){1&t&&(R(0,"mat-icon"),fe(1,"fullscreen"),L())}function RJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"TOOLBAR.FULLSCREEN")))}function PJ(t,n){1&t&&(R(0,"mat-icon"),fe(1,"fullscreen_exit"),L())}function kJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"TOOLBAR.EXIT_FULLSCREEN")))}function NJ(t,n){if(1&t){const e=mt();R(0,"button",42),Ie("click",function(){return qe(e),We(re().toggleFullscreen())}),ee(1,IJ,2,0,"mat-icon",19),ee(2,RJ,3,3,"span",19),ee(3,PJ,2,0,"mat-icon",19),ee(4,kJ,3,3,"span",19),L()}if(2&t){const e=re();w(1),B("ngIf",!e.isFullscreenActive),w(1),B("ngIf",!e.isFullscreenActive),w(1),B("ngIf",e.isFullscreenActive),w(1),B("ngIf",e.isFullscreenActive)}}function LJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),zn(" ",Re(2,1,"TOOLBAR.START_RECORDING")," "))}function FJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),zn(" ",Re(2,1,"TOOLBAR.STOP_RECORDING")," "))}function BJ(t,n){if(1&t){const e=mt();R(0,"button",43),Ie("click",function(){return qe(e),We(re().toggleRecording())}),R(1,"mat-icon",44),fe(2,"radio_button_checked"),L(),ee(3,LJ,3,3,"span",19),ee(4,FJ,3,3,"span",19),L()}if(2&t){const e=re();B("disabled",e.recordingStatus===e._recordingStatus.STARTING||e.recordingStatus===e._recordingStatus.STOPPING||!e.isSessionCreator),w(3),B("ngIf",e.recordingStatus===e._recordingStatus.STOPPED||e.recordingStatus===e._recordingStatus.STOPPING),w(1),B("ngIf",e.recordingStatus===e._recordingStatus.STARTED||e.recordingStatus===e._recordingStatus.STARTING)}}function VJ(t,n){if(1&t){const e=mt();R(0,"button",45),Ie("click",function(){return qe(e),We(re().toggleBackgroundEffects())}),R(1,"mat-icon"),fe(2,"auto_awesome"),L(),R(3,"span"),fe(4),Me(5,"translate"),L()()}2&t&&(B("disabled",!re().isWebcamVideoActive),w(4),He(Re(5,2,"TOOLBAR.BACKGROUND")))}function jJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"TOOLBAR.DISABLE_CAPTIONS")))}function UJ(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"TOOLBAR.ENABLE_CAPTIONS")))}function HJ(t,n){if(1&t){const e=mt();R(0,"button",46),Ie("click",function(){return qe(e),We(re().toggleCaptions())}),R(1,"mat-icon"),fe(2,"closed_caption"),L(),ee(3,jJ,3,3,"span",19),ee(4,UJ,3,3,"span",19),L()}if(2&t){const e=re();B("disabled",e.isConnectionLost),w(3),B("ngIf",e.captionsEnabled),w(1),B("ngIf",!e.captionsEnabled)}}function GJ(t,n){1&t&&rt(0,"mat-divider",47)}function zJ(t,n){if(1&t){const e=mt();R(0,"button",48),Ie("click",function(){return qe(e),We(re().toggleSettings())}),R(1,"mat-icon"),fe(2,"settings"),L(),R(3,"span"),fe(4),Me(5,"translate"),L()()}2&t&&(w(4),He(Re(5,1,"TOOLBAR.SETTINGS")))}function qJ(t,n){1&t&&dn(0)}function WJ(t,n){if(1&t&&(Si(0),ee(1,qJ,1,0,"ng-container",49),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function $J(t,n){if(1&t){const e=mt();R(0,"button",50),Ie("click",function(){return qe(e),We(re().leaveSession())}),R(1,"mat-icon",40),Me(2,"translate"),fe(3,"call_end"),L()()}2&t&&(w(1),Xt("matTooltip",Re(2,1,"TOOLBAR.LEAVE")))}function YJ(t,n){if(1&t){const e=mt();R(0,"button",51),Ie("click",function(){return qe(e),We(re().toggleActivitiesPanel())}),Me(1,"translate"),R(2,"mat-icon"),fe(3,"category"),L()()}if(2&t){const e=re();ft("active-btn",e.isActivitiesOpened),Xt("matTooltip",Re(1,4,"TOOLBAR.ACTIVITIES")),B("disabled",e.isConnectionLost)}}function QJ(t,n){if(1&t){const e=mt();R(0,"button",52),Ie("click",function(){return qe(e),We(re().toggleParticipantsPanel())}),Me(1,"translate"),R(2,"mat-icon"),fe(3,"people"),L()()}if(2&t){const e=re();ft("active-btn",e.isParticipantsOpened),Xt("matTooltip",Re(1,4,"TOOLBAR.PARTICIPANTS")),B("disabled",e.isConnectionLost)}}function KJ(t,n){if(1&t){const e=mt();R(0,"button",53),Ie("click",function(){return qe(e),We(re().toggleChatPanel())}),Me(1,"translate"),R(2,"mat-icon",54),fe(3," chat "),L()()}if(2&t){const e=re();ft("active-btn",e.isChatOpened),Xt("matTooltip",Re(1,6,"TOOLBAR.CHAT")),B("disabled",e.isConnectionLost),w(2),Xt("matBadge",e.unreadMessages),B("matBadgeHidden",0===e.unreadMessages)}}function ZJ(t,n){1&t&&dn(0)}function XJ(t,n){if(1&t&&(Si(0),ee(1,ZJ,1,0,"ng-container",49),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const JJ=["participantsPanel"],eee=["backgroundEffectsPanel"],tee=["settingsPanel"],nee=["activitiesPanel"],iee=["chatPanel"],oee=["additionalPanels"];function ree(t,n){1&t&&dn(0)}function see(t,n){if(1&t&&(Si(0),ee(1,ree,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.chatPanelTemplate)}}function aee(t,n){1&t&&dn(0)}function lee(t,n){if(1&t&&(Si(0),ee(1,aee,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.participantsPanelTemplate)}}function cee(t,n){1&t&&dn(0)}function uee(t,n){if(1&t&&(Si(0),ee(1,cee,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function dee(t,n){1&t&&dn(0)}function hee(t,n){if(1&t&&(Si(0),ee(1,dee,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.settingsPanelTemplate)}}function fee(t,n){1&t&&dn(0)}function pee(t,n){if(1&t&&(Si(0),ee(1,fee,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.activitiesPanelTemplate)}}function gee(t,n){1&t&&dn(0)}function mee(t,n){if(1&t&&(Si(0),ee(1,gee,1,0,"ng-container",1),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.additionalPanelsTemplate)}}const rd=".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",vee=["participantPanelItemElements"];function _ee(t,n){1&t&&(R(0,"mat-icon"),fe(1,"volume_up"),L())}function bee(t,n){1&t&&(R(0,"mat-icon"),fe(1,"volume_off"),L())}function yee(t,n){if(1&t){const e=mt();R(0,"button",6),Ie("click",function(){return qe(e),We(re().toggleMuteForcibly())}),ee(1,_ee,2,0,"mat-icon",5),ee(2,bee,2,0,"mat-icon",5),L()}if(2&t){const e=re();ft("warn-btn",e._participant.isMutedForcibly),w(1),B("ngIf",!e._participant.isMutedForcibly),w(1),B("ngIf",e._participant.isMutedForcibly)}}function Cee(t,n){1&t&&dn(0)}function Eee(t,n){if(1&t&&(Si(0),ee(1,Cee,1,0,"ng-container",7),Ai()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const See=["participantPanelItem"],H1=["defaultParticipantPanelItem"];function Aee(t,n){1&t&&dn(0)}function wee(t,n){1&t&&rt(0,"mat-divider")}function Dee(t,n){if(1&t&&(R(0,"div",8),ee(1,Aee,1,0,"ng-container",9),ee(2,wee,1,0,"mat-divider",10),L()),2&t){const e=re();w(1),B("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",_i(3,ya,e.localParticipant)),w(1),B("ngIf",!0)}}function Mee(t,n){1&t&&dn(0)}function Tee(t,n){if(1&t&&(R(0,"div",13),ee(1,Mee,1,0,"ng-container",9),L()),2&t){const e=n.$implicit,i=re(2);w(1),B("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",_i(2,ya,e))}}function xee(t,n){if(1&t&&(R(0,"div",11),ee(1,Tee,2,4,"div",12),L()),2&t){const e=re();w(1),B("ngForOf",e.remoteParticipants)}}function Oee(t,n){1&t&&rt(0,"ov-participant-panel-item",14),2&t&&B("participant",n.$implicit)}function Iee(t,n){if(1&t){const e=mt();R(0,"button",8),Ie("click",function(){const r=qe(e).$implicit;return We(re().applyBackground(r))}),R(1,"mat-icon",9),Me(2,"translate"),Me(3,"translate"),fe(4),L()()}if(2&t){const e=n.$implicit,i=re();ft("active-effect-btn",i.backgroundSelectedId===e.id),w(1),B("matTooltip",e.type===i.effectType.NONE?Re(2,4,"PANEL.BACKGROUND.NO_EFFECTS"):Re(3,6,"PANEL.BACKGROUND.BLURRED_EFFECT")),w(3),He(e.thumbnail)}}function Ree(t,n){if(1&t){const e=mt();R(0,"div",10),Ie("click",function(){const r=qe(e).$implicit;return We(re().applyBackground(r))}),rt(1,"img",11),L()}if(2&t){const e=n.$implicit;ft("active-effect-btn",re().backgroundSelectedId===e.id),w(1),B("src",e.thumbnail,za)}}function Pee(t,n){if(1&t&&(R(0,"mat-icon",7),Me(1,"translate"),fe(2," videocam "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.MUTE_VIDEO")),B("matTooltipDisabled",!e.hasVideoDevices)}}function kee(t,n){if(1&t&&(R(0,"mat-icon",8),Me(1,"translate"),fe(2," videocam_off "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.UNMUTE_VIDEO")),B("matTooltipDisabled",!e.hasVideoDevices)}}function Nee(t,n){1&t&&(R(0,"mat-label"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.VIDEO_DEVICE")))}function Lee(t,n){1&t&&(R(0,"mat-label"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.NO_VIDEO_DEVICE")))}function Fee(t,n){if(1&t&&(R(0,"mat-option",9),fe(1),L()),2&t){const e=n.$implicit;B("value",e.device),w(1),zn(" ",e.label," ")}}function Bee(t,n){if(1&t&&(R(0,"mat-icon",7),Me(1,"translate"),fe(2," mic "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.MUTE_AUDIO")),B("matTooltipDisabled",!e.hasAudioDevices)}}function Vee(t,n){if(1&t&&(R(0,"mat-icon",8),Me(1,"translate"),fe(2," mic_off "),L()),2&t){const e=re();Xt("matTooltip",Re(1,2,"TOOLBAR.UNMUTE_AUDIO")),B("matTooltipDisabled",!e.hasAudioDevices)}}function jee(t,n){1&t&&(R(0,"mat-label"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.AUDIO_DEVICE")))}function Uee(t,n){1&t&&(R(0,"mat-label"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.NO_AUDIO_DEVICE")))}function Hee(t,n){if(1&t&&(R(0,"mat-option",9),fe(1),L()),2&t){const e=n.$implicit;B("value",e.device),w(1),zn(" ",e.label," ")}}function Gee(t,n){if(1&t){const e=mt();R(0,"button",3),Ie("click",function(){const r=qe(e).$implicit;return We(re().onLangSelected(r.ISO))}),R(1,"span"),fe(2),L()()}if(2&t){const e=n.$implicit;w(2),He(e.name)}}function zee(t,n){1&t&&rt(0,"img",11)}function qee(t,n){if(1&t){const e=mt();R(0,"ov-lang-selector",12),Ie("onLangSelectorClicked",function(){return qe(e),We(re().onDeviceSelectorClicked())}),L()}}function Wee(t,n){1&t&&rt(0,"ov-background-effects-panel")}function $ee(t,n){1&t&&(R(0,"ov-panel"),ee(1,Wee,1,0,"ng-template",null,14,mn),L())}function Yee(t,n){1&t&&ee(0,$ee,3,0,"ng-template",null,13,mn)}function Qee(t,n){if(1&t){const e=mt();R(0,"button",18),Ie("click",function(){return qe(e),We(re(3).toggleBackgroundEffects())}),Me(1,"translate"),R(2,"mat-icon"),fe(3,"auto_awesome"),L()()}if(2&t){const e=re().$implicit;Xt("matTooltip",Re(1,2,"TOOLBAR.BACKGROUND")),B("disabled",!(null!=e.streamManager&&null!=e.streamManager.stream&&e.streamManager.stream.videoActive))}}function Kee(t,n){if(1&t&&(ee(0,Qee,4,4,"button",16),rt(1,"ov-stream",17)),2&t){const e=n.$implicit,i=re(2);B("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),w(1),B("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function Zee(t,n){1&t&&(R(0,"ov-layout"),ee(1,Kee,2,4,"ng-template",null,15,mn),L())}function Xee(t,n){1&t&&(R(0,"h4"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.NICKNAME_SECTION")))}function Jee(t,n){1&t&&rt(0,"hr")}function ete(t,n){1&t&&(R(0,"h4"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PREJOIN.DEVICE_SECTION")))}function tte(t,n){1&t&&rt(0,"hr")}function nte(t,n){if(1&t){const e=mt();R(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22),ee(4,Xee,3,3,"h4",8),ee(5,Jee,1,0,"hr",8),rt(6,"ov-nickname-input"),L(),R(7,"div",23),ee(8,ete,3,3,"h4",8),ee(9,tte,1,0,"hr",8),R(10,"ov-video-devices-select",24),Ie("onDeviceSelectorClicked",function(){return qe(e),We(re().onDeviceSelectorClicked())})("onVideoMutedClicked",function(o){return qe(e),We(re().onVideoMutedClicked(o))}),L(),R(11,"ov-audio-devices-select",25),Ie("onDeviceSelectorClicked",function(){return qe(e),We(re().onDeviceSelectorClicked())}),L()(),R(12,"div",26)(13,"button",27),Ie("click",function(){return qe(e),We(re().joinSession())}),fe(14),Me(15,"translate"),L()()()()()}if(2&t){const e=re();w(4),B("ngIf",e.windowSize>=960),w(1),B("ngIf",e.windowSize>=960),w(3),B("ngIf",e.windowSize>=960),w(1),B("ngIf",e.windowSize>=960),w(5),zn(" ",Re(15,5,"PREJOIN.JOIN")," ")}}function ite(t,n){1&t&&(R(0,"mat-icon"),fe(1," video_camera_front "),L())}function ote(t,n){1&t&&(R(0,"mat-icon"),fe(1,"error"),L())}function rte(t,n){1&t&&(R(0,"mat-icon",9),fe(1,"radio_button_checked"),L())}function ste(t,n){1&t&&(R(0,"div"),rt(1,"img",15),L())}function ate(t,n){1&t&&(R(0,"h2"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.RECORDING.CONTENT_TITLE")))}function lte(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.RECORDING.CONTENT_SUBTITLE")))}function cte(t,n){if(1&t){const e=mt();R(0,"button",21),Ie("click",function(){return qe(e),We(re(3).stopRecording())}),R(1,"span"),fe(2),Me(3,"translate"),L()()}2&t&&(w(2),He(Re(3,1,"TOOLBAR.STOP_RECORDING")))}function ute(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"TOOLBAR.START_RECORDING")))}function dte(t,n){if(1&t){const e=mt();R(0,"button",22),Ie("click",function(){return qe(e),We(re(3).startRecording())}),ee(1,ute,3,3,"span",2),L()}if(2&t){const e=re(3);w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED)}}function hte(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),zn("",Re(2,1,"PANEL.RECORDING.STARTING")," "))}function fte(t,n){1&t&&(R(0,"span"),fe(1),Me(2,"translate"),L()),2&t&&(w(1),zn("",Re(2,1,"PANEL.RECORDING.STOPPING")," "))}function pte(t,n){1&t&&(R(0,"span"),fe(1,"Message: "),L())}function gte(t,n){if(1&t&&(R(0,"span",23),fe(1),Me(2,"json"),L()),2&t){const e=re(3);w(1),zn("",Re(2,1,e.recordingError)," ")}}function mte(t,n){if(1&t){const e=mt();R(0,"button",24),Ie("click",function(){return qe(e),We(re(3).resetStatus())}),R(1,"span"),fe(2),Me(3,"translate"),L()()}2&t&&(w(2),He(Re(3,1,"PANEL.RECORDING.RESTORE")))}function vte(t,n){if(1&t&&(R(0,"div",16),ee(1,cte,4,3,"button",17),ee(2,dte,2,1,"button",18),ee(3,hte,3,3,"span",2),ee(4,fte,3,3,"span",2),ee(5,pte,2,0,"span",2),ee(6,gte,3,3,"span",19),R(7,"div"),ee(8,mte,4,3,"button",20),L()()),2&t){const e=re(2);w(1),B("ngIf",e.recordingAlive),w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.STOPPED),w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.STARTING),w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.STOPPING),w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),w(1),B("ngIf",e.recordingStatus===e.recStatusEnum.FAILED),w(2),B("ngIf",e.recordingStatus===e.recStatusEnum.FAILED)}}function _te(t,n){1&t&&(R(0,"p",25),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.RECORDING.NO_MODERATOR")))}function bte(t,n){1&t&&rt(0,"mat-divider")}function yte(t,n){if(1&t){const e=mt();R(0,"mat-list-item")(1,"mat-icon",29),fe(2,"video_file"),L(),R(3,"div",30)(4,"span",31),fe(5),L()(),R(6,"div",32)(7,"span",33),fe(8),Me(9,"duration"),L(),R(10,"span",34),fe(11),Me(12,"number"),L()(),R(13,"div",35),fe(14),Me(15,"date"),L(),R(16,"button",36),Ie("click",function(){const r=qe(e).$implicit;return We(re(3).play(r))}),Me(17,"translate"),R(18,"mat-icon"),fe(19,"play_arrow"),L()(),R(20,"button",37),Ie("click",function(){const r=qe(e).$implicit;return We(re(3).download(r))}),Me(21,"translate"),R(22,"mat-icon"),fe(23,"download"),L()(),R(24,"button",38),Ie("click",function(){const r=qe(e).$implicit;return We(re(3).deleteRecording(r.id))}),Me(25,"translate"),R(26,"mat-icon"),fe(27,"delete"),L()()()}if(2&t){const e=n.$implicit;w(5),He(e.id),w(3),zn(" ",Re(9,7,e.duration)," "),w(3),zn(" | ",Hs(12,9,e.size/1024/1024,"1.1-2")," MBs"),w(3),He(Hs(15,12,e.createdAt,"HH:mm - dd/MM/yyyy")),w(2),Xt("matTooltip",Re(17,15,"PANEL.RECORDING.PLAY")),w(4),Xt("matTooltip",Re(21,17,"PANEL.RECORDING.DOWNLOAD")),w(4),Xt("matTooltip",Re(25,19,"PANEL.RECORDING.DELETE"))}}function Cte(t,n){if(1&t&&(R(0,"div",26)(1,"mat-list")(2,"div",27),fe(3),Me(4,"translate"),L(),ee(5,yte,28,21,"mat-list-item",28),L()()),2&t){const e=re(2);w(3),He(Re(4,2,"PANEL.RECORDING.RECORDINGS")),w(2),B("ngForOf",e.recordingsList)}}function Ete(t,n){if(1&t&&(R(0,"div",10)(1,"div",11),ee(2,ste,2,0,"div",2),ee(3,ate,3,3,"h2",2),ee(4,lte,3,3,"span",2),ee(5,vte,9,7,"div",12),ee(6,_te,3,3,"p",13),L(),ee(7,bte,1,0,"mat-divider",2),ee(8,Cte,6,4,"div",14),L()),2&t){const e=re();w(2),B("ngIf",0===e.recordingsList.length),w(1),B("ngIf",0===e.recordingsList.length),w(1),B("ngIf",0===e.recordingsList.length),w(1),B("ngIf",e.isSessionCreator),w(1),B("ngIf",!e.isSessionCreator),w(1),B("ngIf",e.recordingsList.length>0),w(1),B("ngIf",e.recordingsList.length>0)}}const G1=function(t,n,e,i){return{started:t,stopped:n,failed:e,pending:i}};function Ste(t,n){if(1&t){const e=mt();R(0,"ov-recording-activity",6),Ie("onStartRecordingClicked",function(){return qe(e),We(re()._onStartRecordingClicked())})("onStopRecordingClicked",function(){return qe(e),We(re()._onStopRecordingClicked())})("onDeleteRecordingClicked",function(o){return qe(e),We(re()._onDeleteRecordingClicked(o))}),L()}2&t&&B("expanded","recording"===re().expandedPanel)}function wte(t,n){if(1&t){const e=mt();R(0,"button",9),Ie("click",function(){const r=qe(e).$implicit;return We(re(2).onLangSelected(r))}),R(1,"span"),fe(2),L()()}if(2&t){const e=n.$implicit;B("id",e.ISO),w(2),He(e.name)}}function Dte(t,n){if(1&t){const e=mt();R(0,"mat-list")(1,"div")(2,"mat-list-item")(3,"div",2),fe(4),Me(5,"translate"),L(),R(6,"mat-slide-toggle",3),Ie("change",function(){return qe(e),We(re().toggleCaptions())}),L()()(),R(7,"div",4)(8,"mat-list-item")(9,"div",2),fe(10),Me(11,"translate"),L(),R(12,"button",5)(13,"span"),fe(14),L(),R(15,"mat-icon"),fe(16,"expand_more"),L()(),R(17,"mat-menu",null,6),ee(19,wte,3,2,"button",7),L()(),R(20,"span",8),fe(21),Me(22,"translate"),L()()()}if(2&t){const e=io(18),i=re();w(4),He(Re(5,8,"PANEL.SETTINGS.CAPTIONS")),w(2),B("checked",i.captionsEnabled)("disableRipple",!0),w(4),He(Re(11,10,"PANEL.SETTINGS.LANGUAGE")),w(2),B("matMenuTriggerFor",e),w(2),He(i.langSelected),w(5),B("ngForOf",i.languagesAvailable),w(2),He(Re(22,12,"PANEL.SETTINGS.CAPTIONS_LANG_TEXT"))}}function Mte(t,n){1&t&&(R(0,"div",10),rt(1,"img",11)(2,"p",12),Me(3,"translate"),L()),2&t&&(w(2),B("innerHTML",Re(3,1,"PANEL.PRO_FEATURE"),bg))}function Tte(t,n){1&t&&(R(0,"div",16),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.SETTINGS.GENERAL")))}function xte(t,n){1&t&&(R(0,"div",16),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.SETTINGS.VIDEO")))}function Ote(t,n){1&t&&(R(0,"div",16),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.SETTINGS.AUDIO")))}function Ite(t,n){1&t&&(R(0,"div",16),fe(1),Me(2,"translate"),L()),2&t&&(w(1),He(Re(2,1,"PANEL.SETTINGS.CAPTIONS")))}function Rte(t,n){if(1&t&&(R(0,"mat-list-option",17)(1,"mat-icon",9),fe(2,"closed_caption"),L(),ee(3,Ite,3,3,"div",10),L()),2&t){const e=re();B("selected",e.selectedOption===e.settingsOptions.CAPTIONS)("value",e.settingsOptions.CAPTIONS),w(3),B("ngIf",!e.isMobile)}}function Pte(t,n){1&t&&(R(0,"div"),rt(1,"ov-nickname-input"),R(2,"mat-list")(3,"mat-list-item")(4,"mat-icon",9),fe(5,"language"),L(),R(6,"div",16),fe(7),Me(8,"translate"),L(),rt(9,"ov-lang-selector"),L()()()),2&t&&(w(7),He(Re(8,1,"PANEL.SETTINGS.LANGUAGE")))}function kte(t,n){1&t&&rt(0,"ov-video-devices-select")}function Nte(t,n){1&t&&rt(0,"ov-audio-devices-select")}function Lte(t,n){1&t&&rt(0,"ov-captions-settings")}const Fte=function(t){return{mobile:t}},Bte=["defaultToolbar"],Vte=["defaultPanel"],jte=["defaultChatPanel"],Ute=["defaultParticipantsPanel"],Hte=["defaultActivitiesPanel"],Gte=["defaultLayout"],zte=["defaultStream"];function qte(t,n){1&t&&(R(0,"div",12),rt(1,"mat-spinner",13),R(2,"span"),fe(3),Me(4,"translate"),L()()),2&t&&(w(1),B("diameter",50),w(2),He(Re(4,2,"PREJOIN.PREPARING")))}function Wte(t,n){if(1&t){const e=mt();R(0,"div",14)(1,"ov-pre-join",15),Ie("onJoinButtonClicked",function(){return qe(e),We(re()._onJoinButtonClicked())}),L()()}2&t&&B("@inOutAnimation",void 0)}function $te(t,n){if(1&t&&(R(0,"div",12)(1,"mat-icon",16),fe(2,"error"),L(),R(3,"span"),fe(4),L()()),2&t){const e=re();w(4),He(e.errorMessage)}}function Yte(t,n){1&t&&dn(0)}function Qte(t,n){if(1&t&&(Si(0),ee(1,Yte,1,0,"ng-container",24),Ai()),2&t){const e=re(4);w(1),B("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function Kte(t,n){1&t&&ee(0,Qte,2,1,"ng-container",23),2&t&&B("ngIf",re(3).openviduAngularToolbarTemplate)}function Zte(t,n){1&t&&dn(0)}function Xte(t,n){if(1&t&&(Si(0),ee(1,Zte,1,0,"ng-container",24),Ai()),2&t){const e=re(4);w(1),B("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function Jte(t,n){1&t&&ee(0,Xte,2,1,"ng-container",23),2&t&&B("ngIf",re(3).openviduAngularPanelTemplate)}function ene(t,n){1&t&&dn(0)}function tne(t,n){if(1&t&&(Si(0),ee(1,ene,1,0,"ng-container",24),Ai()),2&t){const e=re(4);w(1),B("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function nne(t,n){1&t&&ee(0,tne,2,1,"ng-container",23),2&t&&B("ngIf",re(3).openviduAngularLayoutTemplate)}function ine(t,n){if(1&t){const e=mt();R(0,"ov-session",19),Ie("onSessionCreated",function(o){return qe(e),We(re(2)._onSessionCreated(o))})("onNodeCrashed",function(){return qe(e),We(re(2)._onNodeCrashed())}),ee(1,Kte,1,1,"ng-template",null,20,mn),ee(3,Jte,1,1,"ng-template",null,21,mn),ee(5,nne,1,1,"ng-template",null,22,mn),L()}}function one(t,n){if(1&t&&(R(0,"div",17),ee(1,ine,7,0,"ov-session",18),L()),2&t){const e=re();B("@inOutAnimation",void 0),w(1),B("ngIf",e.isSessionInitialized&&!e.nodeCrashed)}}function rne(t,n){1&t&&dn(0)}function sne(t,n){1&t&&ee(0,rne,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularToolbarAdditionalButtonsTemplate)}function ane(t,n){1&t&&dn(0)}function lne(t,n){1&t&&ee(0,ane,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function cne(t,n){if(1&t){const e=mt();R(0,"ov-toolbar",25),Ie("onLeaveButtonClicked",function(){return qe(e),We(re().onLeaveButtonClicked())})("onCameraButtonClicked",function(){return qe(e),We(re().onCameraButtonClicked())})("onMicrophoneButtonClicked",function(){return qe(e),We(re().onMicrophoneButtonClicked())})("onScreenshareButtonClicked",function(){return qe(e),We(re().onScreenshareButtonClicked())})("onFullscreenButtonClicked",function(){return qe(e),We(re().onFullscreenButtonClicked())})("onParticipantsPanelButtonClicked",function(){return qe(e),We(re().onParticipantsPanelButtonClicked())})("onChatPanelButtonClicked",function(){return qe(e),We(re().onChatPanelButtonClicked())})("onActivitiesPanelButtonClicked",function(){return qe(e),We(re().onActivitiesPanelButtonClicked())})("onStartRecordingClicked",function(){return qe(e),We(re().onStartRecordingClicked("toolbar"))})("onStopRecordingClicked",function(){return qe(e),We(re().onStopRecordingClicked("toolbar"))}),ee(1,sne,1,1,"ng-template",null,26,mn),ee(3,lne,1,1,"ng-template",null,27,mn),L()}}function une(t,n){1&t&&dn(0)}function dne(t,n){1&t&&ee(0,une,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularChatPanelTemplate)}function hne(t,n){1&t&&dn(0)}function fne(t,n){1&t&&ee(0,hne,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularParticipantsPanelTemplate)}function pne(t,n){1&t&&rt(0,"ov-background-effects-panel",35)}function gne(t,n){1&t&&rt(0,"ov-settings-panel",36)}function mne(t,n){1&t&&dn(0)}function vne(t,n){1&t&&ee(0,mne,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularActivitiesPanelTemplate)}function _ne(t,n){1&t&&dn(0)}function bne(t,n){1&t&&ee(0,_ne,1,0,"ng-container",24),2&t&&B("ngTemplateOutlet",re(2).openviduAngularAdditionalPanelsTemplate)}function yne(t,n){1&t&&(R(0,"ov-panel",28),ee(1,dne,1,1,"ng-template",null,29,mn),ee(3,fne,1,1,"ng-template",null,30,mn),ee(5,pne,1,0,"ng-template",null,31,mn),ee(7,gne,1,0,"ng-template",null,32,mn),ee(9,vne,1,1,"ng-template",null,33,mn),ee(11,bne,1,1,"ng-template",null,34,mn),L())}function Cne(t,n){1&t&&rt(0,"ov-chat-panel",37)}function Ene(t,n){if(1&t){const e=mt();R(0,"ov-activities-panel",38),Ie("onStartRecordingClicked",function(){return qe(e),We(re().onStartRecordingClicked("panel"))})("onStopRecordingClicked",function(){return qe(e),We(re().onStopRecordingClicked("panel"))})("onDeleteRecordingClicked",function(o){return qe(e),We(re().onDeleteRecordingClicked(o))}),L()}}function Sne(t,n){1&t&&dn(0)}function Ane(t,n){if(1&t&&ee(0,Sne,1,0,"ng-container",41),2&t){const e=n.$implicit;B("ngTemplateOutlet",re(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",_i(2,ya,e))}}function wne(t,n){1&t&&(R(0,"ov-participants-panel",39),ee(1,Ane,1,4,"ng-template",null,40,mn),L())}function Dne(t,n){1&t&&dn(0)}function Mne(t,n){if(1&t&&ee(0,Dne,1,0,"ng-container",41),2&t){const e=re().$implicit;B("ngTemplateOutlet",re().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",_i(2,ya,e))}}function Tne(t,n){1&t&&(R(0,"ov-participant-panel-item",42),ee(1,Mne,1,4,"ng-template",null,43,mn),L()),2&t&&B("participant",n.$implicit)}function xne(t,n){1&t&&dn(0)}function One(t,n){if(1&t&&ee(0,xne,1,0,"ng-container",41),2&t){const e=n.$implicit;B("ngTemplateOutlet",re(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",_i(2,ya,e))}}function Ine(t,n){1&t&&(R(0,"ov-layout",44),ee(1,One,1,4,"ng-template",null,45,mn),L())}function Rne(t,n){1&t&&rt(0,"ov-stream",46),2&t&&B("stream",n.$implicit)}var z1={LOGIN:"\u767b\u5f55",SECRET:"\u79d8\u5bc6",SECRET_REQURED:"\u5fc5\u987b\u63d0\u4f9b\u79d8\u5bc6",DASHBOARD:"\u4eea\u8868\u677f",NO_RECORDINGS:"\u6ca1\u6709\u5f55\u97f3",SEARCH:"\u641c\u7d22\u5f55\u97f3",DATE:"\u65e5\u671f",DURATION:"\u671f\u95f4",SIZE:"\u5c3a\u5bf8",STATUS:"\u5730\u4f4d",NAME:"\u59d3\u540d",SESSION:"\u4f1a\u8bae",OUTPUT:"\u8f93\u51fa\u65b9\u5f0f",POWERED_BY:"\u52a8\u529b b"},q1={NICKNAME_SECTION:"\u8bbe\u7f6e\u4f60\u7684\u7ef0\u53f7",NICKNAME:"\u6635\u79f0",DEVICE_SECTION:"\u9009\u62e9\u4f60\u7684\u8bbe\u5907",VIDEO_DEVICE:"\u89c6\u9891\u8bbe\u5907",AUDIO_DEVICE:"\u97f3\u9891\u8bbe\u5907",NO_VIDEO_DEVICE:"\u672a\u627e\u5230\u89c6\u9891\u8bbe\u5907",NO_AUDIO_DEVICE:"\u672a\u627e\u5230\u97f3\u9891\u8bbe\u5907",JOIN:"\u52a0\u5165\u4f1a\u8bdd",PREPARING:"\u7b79\u5907\u4f1a\u8bae"},W1={MUTE_AUDIO:"\u5c06\u4f60\u7684\u97f3\u9891\u9759\u97f3",UNMUTE_AUDIO:"\u53d6\u6d88\u97f3\u9891\u9759\u97f3",MUTE_VIDEO:"\u5c06\u4f60\u7684\u89c6\u9891\u9759\u97f3",UNMUTE_VIDEO:"\u53d6\u6d88\u4f60\u7684\u89c6\u9891\u9759\u97f3",ENABLE_SCREEN:"\u542f\u7528\u5c4f\u5e55\u5171\u4eab",DISABLE_SCREEN:"\u7981\u7528\u5c4f\u5e55\u5171\u4eab",MORE_OPTIONS:"\u66f4\u591a\u9009\u9879",FULLSCREEN:"\u5168\u5c4f",EXIT_FULLSCREEN:"\u9000\u51fa\u5168\u5c4f",ENABLE_CAPTIONS:"\u542f\u7528\u5b57\u5e55",DISABLE_CAPTIONS:"\u7981\u7528\u5b57\u5e55",BACKGROUND:"\u80cc\u666f\u6548\u679c",START_RECORDING:"\u5f00\u59cb\u5f55\u97f3",STOP_RECORDING:"\u505c\u6b62\u5f55\u5236",SETTINGS:"\u8bbe\u7f6e",LEAVE:"\u79bb\u5f00\u4f1a\u8bae",PARTICIPANTS:"\u53c2\u4e0e\u8005",CHAT:"\u804a\u5929",ACTIVITIES:"\u6d3b\u52a8"},$1={SETTINGS:"\u8bbe\u7f6e",MUTE_SOUND:"\u9759\u97f3",UNMUTE_SOUND:"\u53d6\u6d88\u9759\u97f3",ZOOM_IN:"\u653e\u5927",ZOOM_OUT:"\u7f29\u5c0f",REPLACE_SCREEN:"\u66f4\u6362\u5c4f\u5e55"},Y1={CLOSE:"\u5173\u95ed",SEE_MORE:"\u67e5\u770b\u66f4\u591a",PRO_FEATURE:"\u6b64\u529f\u80fd\u5c5e\u4e8eOpenVidu PRO\u7ea7\u522b",CHAT:{TITLE:"\u804a\u5929",YOU:"\u4f60",SUBTITLE:"\u4fe1\u606f\u5c06\u5728\u4f1a\u8bae\u7ed3\u675f\u65f6\u88ab\u5220\u9664",PLACEHOLDER:"\u53d1\u9001\u6d88\u606f...",SEND:"\u53d1\u9001"},PARTICIPANTS:{TITLE:"\u53c2\u4e0e\u8005",CAMERA:"\u6444\u50cf\u5934",SCREEN:"\u5c4f\u5e55"},SETTINGS:{TITLE:"\u8bbe\u7f6e",GENERAL:"\u4e00\u822c\u7684",VIDEO:"\u89c6\u9891",AUDIO:"\u58f0\u97f3\u7684",LANGUAGE:"\u8bed",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u9009\u62e9\u4f1a\u8bdd\u53c2\u4e0e\u8005\u5c06\u4f7f\u7528\u7684\u8bed\u8a00\u3002\u5b57\u5e55\u5c06\u4ee5\u8be5\u8bed\u8a00\u663e\u793a\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u6548\u679c",BLURRED_SECTION:"\u6ca1\u6709\u6548\u679c\u548c\u6a21\u7cca\u7684\u80cc\u666f",NO_EFFECTS:"\u6ca1\u6709\u80cc\u666f\u6548\u679c",BLURRED_EFFECT:"\u6a21\u7cca\u7684\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u56fe\u50cf"},RECORDING:{TITLE:"\u5f55\u97f3",SUBTITLE:"\u4e3a\u540e\u4eba\u8bb0\u5f55\u4f60\u7684\u4f1a\u8bae",CONTENT_TITLE:"\u8bb0\u5f55\u4f60\u7684\u89c6\u9891\u901a\u8bdd",CONTENT_SUBTITLE:"\u5f53\u5f55\u97f3\u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0b\u8f7d\u5b83",STARTING:"\u5f00\u59cb\u5f55\u97f3",STOPPING:"\u505c\u6b62\u5f55\u5236",PLAY:"\u73a9",DELETE:"\u5220\u9664",CANCEL:"\u53d6\u6d88",DELETE_QUESTION:"\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5f55\u97f3\u5417",DOWNLOAD:"\u4e0b\u8f7d",RECORDINGS:"\u5f55\u5236",NO_MODERATOR:"\u53ea\u6709\u4e3b\u6301\u4eba\u53ef\u4ee5\u5f00\u59cb\u5f55\u97f3"}},Q1={SESSION:"\u8fde\u63a5\u5230\u4f1a\u8bdd\u65f6\u6709\u9519\u8bef",CONNECTION:"\u8fde\u63a5\u4e22\u5931",RECONNECT:"\u8bd5\u56fe\u91cd\u65b0\u8fde\u63a5\u5230\u4f1a\u8bdd",TOGGLE_CAMERA:"\u5207\u6362\u76f8\u673a\u65f6\u51fa\u73b0\u9519\u8bef",TOGGLE_MICROPHONE:"\u5207\u6362\u9ea6\u514b\u98ce\u65f6\u51fa\u73b0\u9519\u8bef",SCREEN_SHARING:"\u5206\u4eab\u5c4f\u5e55\u51fa\u9519",SCREEN_SUPPORT:"\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u5c4f\u5e55\u5171\u4eab",MEDIA_ACCESS:"\u4e0d\u5141\u8bb8\u8bbf\u95ee\u5a92\u4f53\u8bbe\u5907",DEVICE_NOT_FOUND:"\u6ca1\u6709\u627e\u5230\u89c6\u9891\u6216\u97f3\u9891\u8bbe\u5907 \u8bf7\u81f3\u5c11\u8fde\u63a5\u4e00\u4e2a"},Qne=Object.freeze({__proto__:null,ADMIN:z1,PREJOIN:q1,TOOLBAR:W1,STREAM:$1,PANEL:Y1,ERRORS:Q1,default:{ADMIN:z1,PREJOIN:q1,TOOLBAR:W1,STREAM:$1,PANEL:Y1,ERRORS:Q1}}),K1={LOGIN:"Anmeldung",SECRET:"Geheimnis",SECRET_REQURED:"Geheimnis ist erforderlich",DASHBOARD:"Armaturenbrett",NO_RECORDINGS:"Aufnahmen gibt es nicht",SEARCH:"Suchen Sie eine Aufzeichnung",DATE:"Datum",DURATION:"Dauer",SIZE:"Gr\xf6\xdfe",STATUS:"Status",NAME:"Name",SESSION:"Sitzung",OUTPUT:"Ausgabemodus",POWERED_BY:"Unterst\xfctzt von"},Z1={NICKNAME_SECTION:"Legen Sie Ihren Spitznamen fest",NICKNAME:"Spitzname",DEVICE_SECTION:"W\xe4hlen Sie Ihre Ger\xe4te",VIDEO_DEVICE:"Videoger\xe4t",AUDIO_DEVICE:"Audioger\xe4t",NO_VIDEO_DEVICE:"Video-Ger\xe4t nicht gefunden",NO_AUDIO_DEVICE:"Audio-Ger\xe4t nicht gefunden",JOIN:"Sitzung beitreten",PREPARING:"Sitzung vorbereiten..."},X1={MUTE_AUDIO:"Stummschalten des Audios",UNMUTE_AUDIO:"Stummschaltung f\xfcr Audio aufheben",MUTE_VIDEO:"Stummschalten des Videos",UNMUTE_VIDEO:"Heben Sie die Stummschaltung Ihres Videos auf",ENABLE_SCREEN:"Bildschirmfreigabe aktivieren",DISABLE_SCREEN:"Bildschirmfreigabe deaktivieren",MORE_OPTIONS:"Weitere Optionen",FULLSCREEN:"Vollbild",EXIT_FULLSCREEN:"Vollbildmodus beenden",ENABLE_CAPTIONS:"Untertitel aktivieren",DISABLE_CAPTIONS:"Untertitel deaktivieren",BACKGROUND:"Hintergrund-Effekte",START_RECORDING:"Aufzeichnung starten",STOP_RECORDING:"Aufzeichnung stoppen",SETTINGS:"Einstellungen",LEAVE:"Die Sitzung verlassen",PARTICIPANTS:"Teilnehmer",CHAT:"Chat",ACTIVITIES:"Aktivit\xe4ten"},J1={SETTINGS:"Einstellungen",MUTE_SOUND:"Ton stummschalten",UNMUTE_SOUND:"Stummschaltung aufheben",ZOOM_IN:"Vergr\xf6\xdfern",ZOOM_OUT:"Herauszoomen",REPLACE_SCREEN:"Bildschirm austauschen"},eR={CLOSE:"Schlie\xdfen",SEE_MORE:"Mehr sehen",PRO_FEATURE:"Diese Funktion ist Teil des OpenVidu PRO-Tiers",CHAT:{TITLE:"Chat",YOU:"Sie",SUBTITLE:"Nachrichten werden am Ende der Sitzung entfernt",PLACEHOLDER:"Eine Nachricht senden...",SEND:"Senden"},PARTICIPANTS:{TITLE:"Teilnehmer",CAMERA:"KAMERA",SCREEN:"BILDSCHIRM"},SETTINGS:{TITLE:"Einstellungen",GENERAL:"Allgemein",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Sprache",CAPTIONS:"Untertitel",CAPTIONS_LANG_TEXT:"W\xe4hlen Sie die Sprache, die die Teilnehmer der Sitzung verwenden. Die Untertitel werden in dieser Sprache angezeigt."},BACKGROUND:{TITLE:"Hintergrund-Effekte",BLURRED_SECTION:"Keine Effekte und unscharfer Hintergrund",NO_EFFECTS:"Kein Hintergrundeffekt",BLURRED_EFFECT:"Unscharfer Hintergrund",IMAGES_SECTION:"Hintergrundbilder"},RECORDING:{TITLE:"Aufnahme",SUBTITLE:"Zeichnen Sie Ihr Meeting f\xfcr die Nachwelt auf",CONTENT_TITLE:"Ihr Videogespr\xe4ch aufzeichnen",CONTENT_SUBTITLE:"Wenn die Aufzeichnung beendet ist, k\xf6nnen Sie sie ganz einfach herunterladen",STARTING:"Aufzeichnung starten",STOPPING:"Aufnahme stoppen",PLAY:"Spielen",DELETE:"L\xf6schen",CANCEL:"Absagen",DELETE_QUESTION:"M\xf6chten Sie die Aufzeichnung wirklich l\xf6schen?",DOWNLOAD:"Download",RECORDINGS:"AUFZEICHNUNGEN",NO_MODERATOR:"Nur der MODERATOR kann die Aufzeichnung starten"}},tR={SESSION:"Es ist ein Fehler beim Verbinden mit der Sitzung aufgetreten",CONNECTION:"Verbindung verloren",RECONNECT:"Ich versuche, die Verbindung zur Sitzung wiederherzustellen...",TOGGLE_CAMERA:"Es gab einen Fehler beim Umschalten der Kamera",TOGGLE_MICROPHONE:"Es ist ein Fehler beim Umschalten des Mikrofons aufgetreten",SCREEN_SHARING:"Fehler beim Teilen des Bildschirms",SCREEN_SUPPORT:"Ihr Browser unterst\xfctzt keine Bildschirmfreigabe",MEDIA_ACCESS:"Der Zugriff auf Medienger\xe4te war nicht erlaubt.",DEVICE_NOT_FOUND:"Es wurden keine Video- oder Audioger\xe4te gefunden. Bitte schlie\xdfen Sie mindestens eines an."},Zne=Object.freeze({__proto__:null,ADMIN:K1,PREJOIN:Z1,TOOLBAR:X1,STREAM:J1,PANEL:eR,ERRORS:tR,default:{ADMIN:K1,PREJOIN:Z1,TOOLBAR:X1,STREAM:J1,PANEL:eR,ERRORS:tR}}),nR={LOGIN:"Login",SECRET:"Secret",SECRET_REQURED:"Secret is required",DASHBOARD:"Dashboard",NO_RECORDINGS:"There are no recordings",SEARCH:"Search a recording",DATE:"Date",DURATION:"Duration",SIZE:"Size",STATUS:"Status",NAME:"Name",SESSION:"Session",OUTPUT:"Output mode",POWERED_BY:"Powered by"},iR={NICKNAME_SECTION:"Set your nickname",NICKNAME:"Nickname",DEVICE_SECTION:"Choose your devices",VIDEO_DEVICE:"Video device",AUDIO_DEVICE:"Audio device",NO_VIDEO_DEVICE:"Video device not found",NO_AUDIO_DEVICE:"Audio device not found",JOIN:"Join session",PREPARING:"Preparing session..."},oR={MUTE_AUDIO:"Mute your audio",UNMUTE_AUDIO:"Unmute your audio",MUTE_VIDEO:"Mute your video",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Enable screen share",DISABLE_SCREEN:"Disable screen share",MORE_OPTIONS:"More options",FULLSCREEN:"Fullscreen",EXIT_FULLSCREEN:"Exit fullscreen",ENABLE_CAPTIONS:"Enable captions",DISABLE_CAPTIONS:"Disable captions",BACKGROUND:"Background effects",START_RECORDING:"Start recording",STOP_RECORDING:"Stop recording",SETTINGS:"Settings",LEAVE:"Leave the session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITIES:"Activities"},rR={SETTINGS:"Settings",MUTE_SOUND:"Mute sound",UNMUTE_SOUND:"Unmute sound",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",REPLACE_SCREEN:"Replace screen"},sR={CLOSE:"Close",SEE_MORE:"See more",PRO_FEATURE:"This feature is part of OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"You",SUBTITLE:"Messages will be removed at the end of the session",PLACEHOLDER:"Send a message...",SEND:"Send"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Settings",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Language",CAPTIONS:"Captions",CAPTIONS_LANG_TEXT:"Select the language that the participants of the session will use. The captions will appear in that language."},BACKGROUND:{TITLE:"Background effects",BLURRED_SECTION:"No effects and blurred background",NO_EFFECTS:"No background effect",BLURRED_EFFECT:"Blurred background",IMAGES_SECTION:"Background images"},RECORDING:{TITLE:"Recording",SUBTITLE:"Record your meeting for posterity",CONTENT_TITLE:"Record your video call",CONTENT_SUBTITLE:"When recording has finished you will be able to download it with ease",STARTING:"Starting recording",STOPPING:"Stopping recording",PLAY:"Play",DELETE:"Delete",CANCEL:"Cancel",RESTORE:"Restore",DELETE_QUESTION:"Are you sure you want to delete the recording?",DOWNLOAD:"Download",RECORDINGS:"RECORDINGS",NO_MODERATOR:"Only the MODERATOR can start the recording"}},aR={SESSION:"There was an error connecting to the session",CONNECTION:"Connection lost",RECONNECT:"Oops! Trying to reconnect to the session...",TOGGLE_CAMERA:"There was an error toggling camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Error sharing screen",SCREEN_SUPPORT:"Your browser does not support screen sharing",MEDIA_ACCESS:"Access to media devices was not allowed.",DEVICE_NOT_FOUND:"No video or audio devices have been found. Please, connect at least one."},Jne=Object.freeze({__proto__:null,ADMIN:nR,PREJOIN:iR,TOOLBAR:oR,STREAM:rR,PANEL:sR,ERRORS:aR,default:{ADMIN:nR,PREJOIN:iR,TOOLBAR:oR,STREAM:rR,PANEL:sR,ERRORS:aR}}),lR={LOGIN:"Iniciar sesi\xf3n",SECRET:"Contrase\xf1a",SECRET_REQURED:"Contrase\xf1a obligatoria",DASHBOARD:"Panel",NO_RECORDINGS:"No se han encontrado grabaciones",SEARCH:"Busca una grabaci\xf3n",DATE:"Fecha",DURATION:"Duraci\xf3n",SIZE:"Tama\xf1o",STATUS:"Estado",NAME:"Nombre",SESSION:"Sesi\xf3n",OUTPUT:"Modo",POWERED_BY:"Construido por"},cR={NICKNAME_SECTION:"Elige tu nombre",NICKNAME:"Nombre",DEVICE_SECTION:"Elige tus dispositivos",VIDEO_DEVICE:"Dispositivo de video",AUDIO_DEVICE:"Dispositivo de audio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo no encontrado",NO_AUDIO_DEVICE:"Dispositivo de audio no encontrado",PREPARING:"Preparando la session ...",JOIN:"Unirme ahora"},uR={MUTE_AUDIO:"Silenciar tu audio",UNMUTE_AUDIO:"Activar tu audio",MUTE_VIDEO:"Silenciar tu video",UNMUTE_VIDEO:"Activar tu video",ENABLE_SCREEN:"Compartir pantalla",DISABLE_SCREEN:"Dejar de compartir pantalla",MORE_OPTIONS:"M\xe1s opciones",EXIT_FULLSCREEN:"Quitar pantalla completa",FULLSCREEN:"Pantalla completa",ENABLE_CAPTIONS:"Activar subt\xedtulos",DISABLE_CAPTIONS:"Desactivar subt\xedtulos",BACKGROUND:"Efectos de fondo",START_RECORDING:"Iniciar grabaci\xf3n",STOP_RECORDING:"Detener grabaci\xf3n",SETTINGS:"Configuraci\xf3n",LEAVE:"Salir de la sesi\xf3n",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},dR={SETTINGS:"Ajustes",MUTE_SOUND:"Silenciar sonido",UNMUTE_SOUND:"Activar sonido",ZOOM_IN:"Aumentar tama\xf1o",ZOOM_OUT:"Disminuir tama\xf1o",REPLACE_SCREEN:"Reemplazar pantalla"},hR={CLOSE:"Cerrar",SEE_MORE:"Ver m\xe1s",PRO_FEATURE:"Esta funcionalidad es parte de OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"T\xfa",SUBTITLE:"Los mensajes se borrar\xe1n al finalizar la sesi\xf3n",PLACEHOLDER:"Enviar mensaje...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc1MARA",SCREEN:"PANTALLA"},SETTINGS:{TITLE:"Configuraci\xf3n",GENERAL:"General",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Idioma",CAPTIONS:"Subt\xedtulos",CAPTIONS_LANG_TEXT:"Selecciona el idioma que usar\xe1n los participantes de la sesi\xf3n. Los subt\xedtulos aparecer\xe1n en ese idioma."},BACKGROUND:{TITLE:"Efectos de fondo",BLURRED_SECTION:"Sin efectos y fondo desenfocado",NO_EFFECTS:"Sin efecto",BLURRED_EFFECT:"Fondo desenfocado",IMAGES_SECTION:"Im\xe1genes de fondo"},RECORDING:{TITLE:"Grabaci\xf3n",SUBTITLE:"Graba tus llamadas para la posteridad",CONTENT_TITLE:"Graba tu video conferencia",CONTENT_SUBTITLE:"Cuando la grabaci\xf3n haya finalizado, podr\xe1s descargarla con facilidad",STARTING:"Iniciando grabaci\xf3n",STOPPING:"Parando grabaci\xf3n",PLAY:"Reproducir",DELETE:"Borrar",CANCEL:"Cancelar",DELETE_QUESTION:"\xbfEst\xe1s seguro/a de que deseas borrar la grabaci\xf3n?",DOWNLOAD:"Descargar",RECORDINGS:"GRABACIONES",NO_MODERATOR:"S\xf3lo el MODERADOR puede iniciar la grabaci\xf3n"}},fR={SESSION:"Hubo un error al conectar a la sesi\xf3n",CONNECTION:"Sin conexi\xf3n",RECONNECT:"Intentando reconectar a la sesi\xf3n...",TOGGLE_CAMERA:"Hubo un error cambiando la c\xe1mara",TOGGLE_MICROPHONE:"Hubo un error cambiando el micr\xf3fono",SCREEN_SHARING:"Hubo un error compartiendo pantalla",SCREEN_SUPPORT:"Tu navegador no soporta la pantalla compartida",MEDIA_ACCESS:"No se ha podido acceder a tus dispositivos",DEVICE_NOT_FOUND:"No se han encontrado dispositivos de audio o video. Por favor, conecta al menos uno."},tie=Object.freeze({__proto__:null,ADMIN:lR,PREJOIN:cR,TOOLBAR:uR,STREAM:dR,PANEL:hR,ERRORS:fR,default:{ADMIN:lR,PREJOIN:cR,TOOLBAR:uR,STREAM:dR,PANEL:hR,ERRORS:fR}}),pR={LOGIN:"Connexion",SECRET:"Secret",SECRET_REQURED:"Le secret est requis",DASHBOARD:"Tableau de bord",NO_RECORDINGS:"Il n'y a pas d'enregistrements",SEARCH:"Rechercher un enregistrement",DATE:"Date",DURATION:"Dur\xe9e",SIZE:"Taille",STATUS:"Statut",NAME:"Nom",SESSION:"Session",OUTPUT:"Mode de sortie",POWERED_BY:"Aliment\xe9 par"},gR={NICKNAME_SECTION:"D\xe9finir votre surnom",NICKNAME:"Surnom",DEVICE_SECTION:"Choisissez vos appareils",VIDEO_DEVICE:"P\xe9riph\xe9rique vid\xe9o",AUDIO_DEVICE:"P\xe9riph\xe9rique audio",NO_VIDEO_DEVICE:"Appareil vid\xe9o introuvable",NO_AUDIO_DEVICE:"Appareil audio introuvable",JOIN:"Joindre une session",PREPARING:"Pr\xe9paration de la session ..."},mR={MUTE_AUDIO:"Mettez votre audio en sourdine",UNMUTE_AUDIO:"D\xe9sactiver le son",MUTE_VIDEO:"Couper le son de votre vid\xe9o",UNMUTE_VIDEO:"Unmute your video",ENABLE_SCREEN:"Activer le partage d'\xe9cran",DISABLE_SCREEN:"D\xe9sactiver le partage d'\xe9cran",MORE_OPTIONS:"Plus d'options",FULLSCREEN:"Plein \xe9cran",EXIT_FULLSCREEN:"Quitter le plein \xe9cran",ENABLE_CAPTIONS:"Activer les sous-titres",DISABLE_CAPTIONS:"D\xe9sactiver les sous-titres",BACKGROUND:"Effets de fond",START_RECORDING:"d\xe9marrer l'enregistrement",STOP_RECORDING:"Arr\xeater l'enregistrement",SETTINGS:"Param\xe8tres",LEAVE:"Quitter la session",PARTICIPANTS:"Participants",CHAT:"Chat",ACTIVITES:"Activit\xe9s"},vR={SETTINGS:"Param\xe8tres",MUTE_SOUND:"Couper le son",UNMUTE_SOUND:"D\xe9sactiver le son",ZOOM_IN:"Zoom avant",ZOOM_OUT:"Zoom arri\xe8re",REPLACE_SCREEN:"Remplacer l'\xe9cran"},_R={CLOSE:"Fermer",SEE_MORE:"Voir plus",PRO_FEATURE:"Cette fonctionnalit\xe9 fait partie de la gamme OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"Vous",SUBTITLE:"Les messages seront supprim\xe9s \xe0 la fin de la session",PLACEHOLDER:"Envoyer un message...",SEND:"Envoyer"},PARTICIPANTS:{TITLE:"Participants",CAMERA:"CAM\xc9RA",SCREEN:"\xc9CRAN"},SETTINGS:{TITLE:"Param\xe8tres",GENERAL:"G\xe9n\xe9ral",VIDEO:"Vid\xe9o",AUDIO:"l'audio",LANGUAGE:"Langue",CAPTIONS:"Les sous-titres",CAPTIONS_LANG_TEXT:"S\xe9lectionnez la langue que les participants de la session utiliseront. Les sous-titres appara\xeetront dans cette langue."},BACKGROUND:{TITLE:"Effets de fond",BLURRED_SECTION:"Aucun effet et arri\xe8re-plan flou",NO_EFFECTS:"Aucun effet de fond",BLURRED_EFFECT:"Arri\xe8re-plan flou",IMAGES_SECTION:"Images d'arri\xe8re-plan"},RECORDING:{TITLE:"Enregistrement",SUBTITLE:"Enregistrez votre r\xe9union pour la post\xe9rit\xe9",CONTENT_TITLE:"Enregistrez votre appel vid\xe9o",CONTENT_SUBTITLE:"Une fois l'enregistrement termin\xe9, vous pourrez le t\xe9l\xe9charger facilement",STARTING:"D\xe9but de l'enregistrement",STOPPING:"Arr\xeat de l'enregistrement",PLAY:"Jouer",DELETE:"Effacer",CANCEL:"Annuler",DELETE_QUESTION:"Voulez-vous vraiment supprimer l'enregistrement\xa0?",DOWNLOAD:"T\xe9l\xe9charger",RECORDINGS:"ENREGISTREMENTS",NO_MODERATOR:"Seul le MODERATEUR peut lancer l'enregistrement"}},bR={SESSION:"There was an error connecting to the session",CONNECTION:"Connexion perdue",RECONNECT:"Oups ! Tentative de reconnexion \xe0 la session...",TOGGLE_CAMERA:"There was an error toggle camera",TOGGLE_MICROPHONE:"There was an error toggling microhpone",SCREEN_SHARING:"Erreur de partage d'\xe9cran",SCREEN_SUPPORT:"Votre navigateur ne prend pas en charge le partage d'\xe9cran",MEDIA_ACCESS:"L'acc\xe8s aux p\xe9riph\xe9riques m\xe9dias n'a pas \xe9t\xe9 autoris\xe9",DEVICE_NOT_FOUND:"Aucun p\xe9riph\xe9rique vid\xe9o ou audio n'a \xe9t\xe9 trouv\xe9. Veuillez en connecter au moins un."},iie=Object.freeze({__proto__:null,ADMIN:pR,PREJOIN:gR,TOOLBAR:mR,STREAM:vR,PANEL:_R,ERRORS:bR,default:{ADMIN:pR,PREJOIN:gR,TOOLBAR:mR,STREAM:vR,PANEL:_R,ERRORS:bR}}),yR={LOGIN:"\u0932\u0949\u0917 \u0907\u0928 \u0915\u0930\u0947\u0902",SECRET:"\u0917\u0941\u092a\u094d\u0924",SECRET_REQURED:"\u0930\u0939\u0938\u094d\u092f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",DASHBOARD:"\u0921\u0948\u0936\u092c\u094b\u0930\u094d\u0921",NO_RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0928\u0939\u0940\u0902 \u0939\u0948\u0902",SEARCH:"\u090f\u0915 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0916\u094b\u091c\u0947\u0902",DATE:"\u0926\u093f\u0928\u093e\u0902\u0915",DURATION:"\u0905\u0935\u0927\u093f",SIZE:"\u0906\u0915\u093e\u0930",STATUS:"\u0926\u0930\u094d\u091c\u093e",NAME:"\u0928\u093e\u092e",SESSION:"\u0938\u0924\u094d\u0930",OUTPUT:"\u0906\u0909\u091f\u092a\u0941\u091f \u092e\u094b\u0921",POWERED_BY:"\u0926\u094d\u0935\u093e\u0930\u093e \u0938\u0902\u091a\u093e\u0932\u093f\u0924"},CR={NICKNAME_SECTION:"\u0905\u092a\u0928\u093e \u0928\u093f\u0915\u0928\u0947\u092e \u0938\u0947\u091f \u0915\u0930\u0947\u0902",NICKNAME:"\u0928\u093f\u0915\u0928\u0947\u092e",DEVICE_SECTION:"\u0905\u092a\u0928\u0947 \u0921\u093f\u0935\u093e\u0907\u0938 \u091a\u0941\u0928\u0947\u0902",VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938",NO_VIDEO_DEVICE:"\u0935\u0940\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",NO_AUDIO_DEVICE:"\u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e",JOIN:"\u0938\u0924\u094d\u0930 \u092e\u0947\u0902 \u0936\u093e\u092e\u093f\u0932 \u0939\u094b\u0902",PREPARING:"\u0938\u0924\u094d\u0930 \u0924\u0948\u092f\u093e\u0930 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948 ..."},ER={MUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_AUDIO:"\u0905\u092a\u0928\u0940 \u0911\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",MUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u092e\u094c\u0928 \u0915\u0930\u0947\u0902",UNMUTE_VIDEO:"\u0905\u092a\u0928\u0940 \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u094b \u0905\u0928\u092e\u094c\u0928 \u0915\u0930\u0947\u0902",ENABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0936\u0947\u092f\u0930 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",MORE_OPTIONS:"\u0905\u0927\u093f\u0915 \u0935\u093f\u0915\u0932\u094d\u092a",FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928",EXIT_FULLSCREEN:"\u092a\u0942\u0930\u094d\u0923 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u0947 \u092c\u093e\u0939\u0930 \u0928\u093f\u0915\u0932\u0947\u0902",ENABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0938\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",DISABLE_CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0905\u0915\u094d\u0937\u092e \u0915\u0930\u0947\u0902",BACKGROUND:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",START_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092a\u094d\u0930\u093e\u0930\u0902\u092d \u0915\u0930\u0947\u0902",STOP_RECORDING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0930\u094b\u0915\u0947\u0902",SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",LEAVE:"\u0938\u0924\u094d\u0930 \u091b\u094b\u0921\u093c\u0947\u0902",PARTICIPANTS:"\u0938\u0926\u0938\u094d\u092f",CHAT:"\u092c\u093e\u0924\u091a\u0940\u0924",ACTIVITIES:"\u0917\u0924\u093f\u0935\u093f\u0927\u093f\u092f\u093e\u0901"},SR={SETTINGS:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",MUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u092c\u0902\u0926 \u0915\u0930\u0947\u0902",UNMUTE_SOUND:"\u0927\u094d\u0935\u0928\u093f \u091a\u093e\u0932\u0942 \u0915\u0930\u0947\u0902",ZOOM_IN:"\u091c\u093c\u0942\u092e \u0907\u0928 \u0915\u0930\u0947\u0902",ZOOM_OUT:"\u091c\u093c\u0942\u092e \u0906\u0909\u091f \u0915\u0930\u0947\u0902",REPLACE_SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0915\u094b \u092c\u0926\u0932\u0947\u0902"},AR={CLOSE:"\u092c\u0902\u0926 \u0915\u0930\u0947\u0902",SEE_MORE:"\u0914\u0930 \u0926\u0947\u0916\u0947\u0902",PRO_FEATURE:"\u092f\u0939 \u0938\u0941\u0935\u093f\u0927\u093e OpenVidu PRO \u091f\u093e\u092f\u0930 \u0915\u093e \u0939\u093f\u0938\u094d\u0938\u093e \u0939\u0948",CHAT:{TITLE:"\u092c\u093e\u0924\u091a\u0940\u0924",YOU:"\u0906\u092a",SUBTITLE:"\u0938\u0924\u094d\u0930 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b\u0928\u0947 \u092a\u0930 \u0938\u0902\u0926\u0947\u0936 \u0939\u091f\u093e \u0926\u093f\u090f \u091c\u093e\u090f\u0902\u0917\u0947",PLACEHOLDER:"\u090f\u0915 \u0938\u0902\u0926\u0947\u0936 \u092d\u0947\u091c\u0947\u0902 ...",SEND:"\u092d\u0947\u091c\u0947\u0902"},PARTICIPANTS:{TITLE:"\u0938\u0926\u0938\u094d\u092f",CAMERA:"\u0915\u0948\u092e\u0930\u093e",SCREEN:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928"},SETTINGS:{TITLE:"\u0938\u0947\u091f\u093f\u0902\u0917\u094d\u0938",GENERAL:"\u0938\u093e\u092e\u093e\u0928\u094d\u092f",VIDEO:"\u0935\u0940\u0921\u093f\u092f\u094b",AUDIO:"\u0911\u0921\u093f\u092f\u094b",LANGUAGE:"\u092d\u093e\u0937\u093e",CAPTIONS:"\u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915",CAPTIONS_LANG_TEXT:"\u0909\u0938 \u092d\u093e\u0937\u093e \u0915\u093e \u091a\u092f\u0928 \u0915\u0930\u0947\u0902 \u091c\u093f\u0938\u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0938\u0924\u094d\u0930 \u0915\u0947 \u092a\u094d\u0930\u0924\u093f\u092d\u093e\u0917\u0940 \u0915\u0930\u0947\u0902\u0917\u0947\u0964 \u0909\u092a\u0936\u0940\u0930\u094d\u0937\u0915 \u0909\u0938 \u092d\u093e\u0937\u093e \u092e\u0947\u0902 \u0926\u093f\u0916\u093e\u0908 \u0926\u0947\u0902\u0917\u0947\u0964"},BACKGROUND:{TITLE:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935",BLURRED_SECTION:"\u0915\u094b\u0908 \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948 \u0914\u0930 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",NO_EFFECTS:"\u0915\u094b\u0908 \u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u092a\u094d\u0930\u092d\u093e\u0935 \u0928\u0939\u0940\u0902 \u0939\u0948",BLURRED_EFFECT:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u0927\u0941\u0902\u0927\u0932\u0940 \u0939\u0948",IMAGES_SECTION:"\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f \u091b\u0935\u093f\u092f\u093e\u0902"},RECORDING:{TITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",SUBTITLE:"\u0905\u092a\u0928\u0940 \u092c\u0948\u0920\u0915 \u0915\u094b \u092d\u093e\u0935\u0940 \u092a\u0940\u0922\u093c\u0940 \u0915\u0947 \u0932\u093f\u090f \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_TITLE:"\u0905\u092a\u0928\u093e \u0935\u0940\u0921\u093f\u092f\u094b \u0915\u0949\u0932 \u0930\u093f\u0915\u0949\u0930\u094d\u0921 \u0915\u0930\u0947\u0902",CONTENT_SUBTITLE:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0938\u092e\u093e\u092a\u094d\u0924 \u0939\u094b \u091c\u093e\u0928\u0947 \u092a\u0930 \u0906\u092a \u0907\u0938\u0947 \u0906\u0938\u093e\u0928\u0940 \u0938\u0947 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930 \u0938\u0915\u0947\u0902\u0917\u0947",STARTING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",STOPPING:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u092c\u0902\u0926 \u0915\u0930\u0928\u093e",PLAY:"\u0916\u0947\u0932\u0947\u0902",DELETE:"\u092e\u093f\u091f\u093e\u0928\u093e",CANCEL:"\u0930\u0926\u094d\u0926 \u0915\u0930\u0928\u093e",DELETE_QUESTION:"\u0915\u094d\u092f\u093e \u0906\u092a \u0935\u093e\u0915\u0908 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0939\u091f\u093e\u0928\u093e \u091a\u093e\u0939\u0924\u0947 \u0939\u0948\u0902",DOWNLOAD:"\u0921\u093e\u0909\u0928\u0932\u094b\u0921",RECORDINGS:"\u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917",NO_MODERATOR:"\u0915\u0947\u0935\u0932 \u092e\u0949\u0921\u0930\u0947\u091f\u0930 \u0939\u0940 \u0930\u093f\u0915\u0949\u0930\u094d\u0921\u093f\u0902\u0917 \u0936\u0941\u0930\u0942 \u0915\u0930 \u0938\u0915\u0924\u093e \u0939\u0948"}},wR={SESSION:"\u0938\u0924\u094d\u0930 \u0938\u0947 \u091c\u0941\u0921\u093c\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",CONNECTION:"\u0915\u0928\u0947\u0915\u094d\u0936\u0928 \u0916\u094b \u0917\u092f\u093e",RECONNECT:"\u0913\u0939! \u0938\u0924\u094d\u0930 \u0938\u0947 \u092b\u093f\u0930 \u0938\u0947 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0928\u0947 \u0915\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930 \u0930\u0939\u093e \u0939\u0948",TOGGLE_CAMERA:"\u0915\u0948\u092e\u0930\u093e \u091f\u0949\u0917\u0932 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",TOGGLE_MICROPHONE:"\u092e\u093e\u0907\u0915\u094d\u0930\u094b\u092b\u093c\u094b\u0928 \u0915\u094b \u091a\u093e\u0932\u0942 \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f \u0939\u0941\u0908",SCREEN_SHARING:"\u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0924\u094d\u0930\u0941\u091f\u093f",SCREEN_SUPPORT:"\u0906\u092a\u0915\u093e \u092c\u094d\u0930\u093e\u0909\u091c\u093c\u0930 \u0938\u094d\u0915\u094d\u0930\u0940\u0928 \u0938\u093e\u091d\u093e\u0915\u0930\u0923 \u0915\u093e \u0938\u092e\u0930\u094d\u0925\u0928 \u0928\u0939\u0940\u0902 \u0915\u0930\u0924\u093e",MEDIA_ACCESS:"\u092e\u0940\u0921\u093f\u092f\u093e \u0909\u092a\u0915\u0930\u0923\u094b\u0902 \u0924\u0915 \u092a\u0939\u0941\u0902\u091a \u0915\u0940 \u0905\u0928\u0941\u092e\u0924\u093f \u0928\u0939\u0940\u0902 \u0925\u0940\u0964",DEVICE_NOT_FOUND:"\u0915\u094b\u0908 \u0935\u0940\u0921\u093f\u092f\u094b \u092f\u093e \u0911\u0921\u093f\u092f\u094b \u0921\u093f\u0935\u093e\u0907\u0938 \u0928\u0939\u0940\u0902 \u092e\u093f\u0932\u093e\u0964 \u0915\u0943\u092a\u092f\u093e, \u0915\u092e \u0938\u0947 \u0915\u092e \u090f\u0915 \u0915\u0928\u0947\u0915\u094d\u091f \u0915\u0930\u0947\u0902\u0964"},rie=Object.freeze({__proto__:null,ADMIN:yR,PREJOIN:CR,TOOLBAR:ER,STREAM:SR,PANEL:AR,ERRORS:wR,default:{ADMIN:yR,PREJOIN:CR,TOOLBAR:ER,STREAM:SR,PANEL:AR,ERRORS:wR}}),DR={LOGIN:"Login",SECRET:"Segreto",SECRET_REQURED:"Il segreto \xe8 richiesto",DASHBOARD:"Pannello di controllo",NO_RECORDINGS:"Non ci sono registrazioni",SEARCH:"Cerca una registrazione",DATE:"Data",DURATION:"Durata",SIZE:"Dimensione",STATUS:"Stato",NAME:"Nome",SESSION:"Sessione",OUTPUT:"Modalit\xe0 di uscita",POWERED_BY:"Offerto da"},MR={NICKNAME_SECTION:"Imposta il tuo soprannome",NICKNAME:"Soprannome",DEVICE_SECTION:"Scegli i tuoi dispositivi",VIDEO_DEVICE:"Dispositivo video",AUDIO_DEVICE:"Dispositivo audio",NO_VIDEO_DEVICE:"Dispositivo video non trovato",NO_AUDIO_DEVICE:"Dispositivo audio non trovato",JOIN:"Unisciti alla sessione",PREPARING:"Preparazione della sessione in corso..."},TR={MUTE_AUDIO:"Disattiva l'audio",UNMUTE_AUDIO:"Attiva l'audio",MUTE_VIDEO:"Disattiva il video",UNMUTE_VIDEO:"Attiva il video",ENABLE_SCREEN:"Abilita la condivisione dello schermo",DISABLE_SCREEN:"Disabilita la condivisione dello schermo",MORE_OPTIONS:"Altre opzioni",FULLSCREEN:"Schermo intero",EXIT_FULLSCREEN:"Esci dallo schermo intero",ENABLE_CAPTIONS:"Abilita i sottotitoli",DISABLE_CAPTIONS:"Disabilita i sottotitoli",BACKGROUND:"Effetti di sfondo",START_RECORDING:"Avvia registrazione",STOP_RECORDING:"Interrompi registrazione",SETTINGS:"Impostazioni",LEAVE:"Abbandona la sessione",PARTICIPANTS:"Partecipanti",CHAT:"Chat",ACTIVITIES:"Attivit\xe0"},xR={SETTINGS:"Impostazioni",MUTE_SOUND:"Disattiva l'audio",UNMUTE_SOUND:"Attiva l'audio",ZOOM_IN:"Ingrandisci",ZOOM_OUT:"Riduci",REPLACE_SCREEN:"Sostituisci lo schermo"},OR={CLOSE:"Chiudi",SEE_MORE:"Vedi di pi\xf9",PRO_FEATURE:"Questa funzione fa parte del livello OpenVidu PRO",CHAT:{TITLE:"Chat",YOU:"Tu",SUBTITLE:"I messaggi verranno rimossi alla fine della sessione",PLACEHOLDER:"Invia un messaggio...",SEND:"Invia"},PARTICIPANTS:{TITLE:"Partecipanti",CAMERA:"CAMERA",SCREEN:"SCREEN"},SETTINGS:{TITLE:"Impostazioni",GENERAL:"Generale",VIDEO:"video",AUDIO:"Audio",LANGUAGE:"Lingua",CAPTIONS:"Sottotitoli",CAPTIONS_LANG_TEXT:"Seleziona la lingua che i partecipanti della sessione useranno. I sottotitoli appariranno in quella lingua."},BACKGROUND:{TITLE:"Effetti di sfondo",BLURRED_SECTION:"Nessun effetto e sfondo sfocato",NO_EFFECTS:"Nessun effetto di sfondo",BLURRED_EFFECT:"Sfondo sfocato",IMAGES_SECTION:"Immagini di sfondo"},RECORDING:{TITLE:"Registrazione",SUBTITLE:"Registra la tua riunione per i posteri",CONTENT_TITLE:"Registra la tua videochiamata",CONTENT_SUBTITLE:"Al termine della registrazione potrete scaricarla con facilit\xe0",STARTING:"Avvio della registrazione",STOPPING:"Interruzione della registrazione",PLAY:"Giocare a",DELETE:"Elimina",CANCEL:"Annulla",DELETE_QUESTION:"Sei sicuro di voler eliminare la registrazione?",DOWNLOAD:"Scarica",RECORDINGS:"REGISTRAZIONI",NO_MODERATOR:"Solo il MODERATORE pu\xf2 avviare la registrazione"}},IR={SESSION:"Si \xe8 verificato un errore di connessione alla sessione",CONNECTION:"Connessione persa",RECONNECT:"Oops! Si sta cercando di riconnettersi alla sessione...",TOGGLE_CAMERA:"Si \xe8 verificato un errore nell'attivazione della telecamera",TOGGLE_MICROPHONE:"Si \xe8 verificato un errore nell'attivazione del microfono",SCREEN_SHARING:"Errore nella condivisione dello schermo",SCREEN_SUPPORT:"Il browser non supporta la condivisione dello schermo",MEDIA_ACCESS:"L'accesso ai dispositivi multimediali non \xe8 stato consentito",DEVICE_NOT_FOUND:"Non sono stati trovati dispositivi video o audio. Si prega di collegarne almeno uno"},aie=Object.freeze({__proto__:null,ADMIN:DR,PREJOIN:MR,TOOLBAR:TR,STREAM:xR,PANEL:OR,ERRORS:IR,default:{ADMIN:DR,PREJOIN:MR,TOOLBAR:TR,STREAM:xR,PANEL:OR,ERRORS:IR}}),RR={LOGIN:"\u30ed\u30b0\u30a4\u30f3",SECRET:"\u3072\u307f\u3064",SECRET_REQURED:"\u79d8\u5bc6\u304c\u5fc5\u8981\u3067\u3059",DASHBOARD:"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9",NO_RECORDINGS:"\u9332\u97f3\u306f\u3042\u308a\u307e\u305b\u3093",SEARCH:"\u9332\u97f3\u3092\u691c\u7d22\u3059\u308b",DATE:"\u65e5\u306b\u3061",DURATION:"\u9593\u9694",SIZE:"\u30b5\u30a4\u30ba",STATUS:"\u72b6\u614b",NAME:"\u540d\u524d",SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3",OUTPUT:"\u51fa\u529b\u30e2\u30fc\u30c9",POWERED_BY:"\u642d\u8f09"},PR={NICKNAME_SECTION:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044",NICKNAME:"\u30cb\u30c3\u30af\u30cd\u30fc\u30e0",DEVICE_SECTION:"\u30c7\u30d0\u30a4\u30b9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044",VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9",AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9",NO_VIDEO_DEVICE:"\u30d3\u30c7\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",NO_AUDIO_DEVICE:"\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093",JOIN:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u53c2\u52a0\u3059\u308b",PREPARING:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6e96\u5099\u4e2d..."},kR={MUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",MUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_VIDEO:"\u30d3\u30c7\u30aa\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ENABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u5171\u6709\u3092\u7121\u52b9\u306b\u3059\u308b",MORE_OPTIONS:"\u305d\u306e\u4ed6\u306e\u30aa\u30d7\u30b7\u30e7\u30f3",FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3",EXIT_FULLSCREEN:"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u7d42\u4e86\u3059\u308b",ENABLE_CAPTIONS:"\u5b57\u5e55\u3092\u6709\u52b9\u306b\u3059\u308b",DISABLE_CAPTIONS:"\u5b57\u5e55\u3092\u7121\u52b9\u306b\u3059\u308b",BACKGROUND:"\u80cc\u666f\u52b9\u679c",START_RECORDING:"\u9332\u753b\u958b\u59cb",STOP_RECORDING:"\u9332\u753b\u306e\u505c\u6b62",SETTINGS:"\u8a2d\u5b9a",LEAVE:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3059\u308b",PARTICIPANTS:"\u53c2\u52a0\u8005",CHAT:"\u30c1\u30e3\u30c3\u30c8",ACTIVITIES:"\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3"},NR={SETTINGS:"\u8a2d\u5b9a",MUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3059\u308b",UNMUTE_SOUND:"\u30b5\u30a6\u30f3\u30c9\u3092\u30df\u30e5\u30fc\u30c8\u3057\u306a\u3044",ZOOM_IN:"\u62e1\u5927\u3059\u308b",ZOOM_OUT:"\u7e2e\u5c0f\u3059\u308b",REPLACE_SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5165\u308c\u66ff\u3048\u308b"},LR={CLOSE:"\u9589\u3058\u308b",PRO_FEATURE:"\u3053\u306e\u6a5f\u80fd\u306fOpenVidu PRO\u306e\u6a5f\u80fd\u3067\u3059",SEE_MORE:"\u3082\u3063\u3068\u898b\u308b",CHAT:{TITLE:"\u30c1\u30e3\u30c3\u30c8",YOU:"\u3042\u306a\u305f",SUBTITLE:"\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86\u6642\u306b\u524a\u9664\u3055\u308c\u307e\u3059",PLACEHOLDER:"\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1...",SEND:"\u9001\u4fe1\u3059\u308b"},PARTICIPANTS:{TITLE:"\u53c2\u52a0\u8005",CAMERA:"\u30ab\u30e1\u30e9",SCREEN:"\u30b9\u30af\u30ea\u30fc\u30f3"},SETTINGS:{TITLE:"\u8a2d\u5b9a",GENERAL:"\u5168\u822c\u7684",VIDEO:"\u30d3\u30c7\u30aa",AUDIO:"\u30aa\u30fc\u30c7\u30a3\u30aa",LANGUAGE:"\u8a00\u8a9e",CAPTIONS:"\u5b57\u5e55",CAPTIONS_LANG_TEXT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u53c2\u52a0\u8005\u304c\u4f7f\u7528\u3059\u308b\u8a00\u8a9e\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30ad\u30e3\u30d7\u30b7\u30e7\u30f3\u306f\u305d\u306e\u8a00\u8a9e\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002"},BACKGROUND:{TITLE:"\u80cc\u666f\u52b9\u679c",BLURRED_SECTION:"\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057\u3001\u307c\u3084\u3051\u305f\u80cc\u666f",NO_EFFECTS:"\u80cc\u666f\u30a8\u30d5\u30a7\u30af\u30c8\u306a\u3057",BLURRED_EFFECT:"\u307c\u3084\u3051\u305f\u80cc\u666f",IMAGES_SECTION:"\u80cc\u666f\u753b\u50cf"},RECORDING:{TITLE:"\u30ec\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0",SUBTITLE:"\u4f1a\u8b70\u3092\u9332\u97f3\u3057\u3066\u5f8c\u4e16\u306b\u6b8b\u3059",CONTENT_TITLE:"\u30d3\u30c7\u30aa\u901a\u8a71\u3092\u9332\u97f3\u3059\u308b",CONTENT_SUBTITLE:"\u9332\u97f3\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7c21\u5358\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059",STARTING:"\u9332\u753b\u958b\u59cb",STOPPING:"\u9332\u97f3\u3092\u505c\u6b62\u3057\u307e\u3059",PLAY:"\u904a\u3076",DELETE:"\u6d88\u53bb",CANCEL:"\u30ad\u30e3\u30f3\u30bb\u30eb",DELETE_QUESTION:"\u9332\u97f3\u3092\u524a\u9664\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b",DOWNLOAD:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9",RECORDINGS:"\u9332\u753b",NO_MODERATOR:"\u9332\u97f3\u3092\u958b\u59cb\u3067\u304d\u308b\u306e\u306f\u3001\u30e2\u30c7\u30ec\u30fc\u30bf\u30fc\u306e\u307f\u3067\u3059"}},FR={SESSION:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u63a5\u7d9a\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",CONNECTION:"\u63a5\u7d9a\u304c\u5931\u308f\u308c\u307e\u3057\u305f",RECONNECT:"\u30bb\u30c3\u30b7\u30e7\u30f3\u3078\u306e\u518d\u63a5\u7d9a\u3092\u8a66\u307f\u3066\u3044\u307e\u3059",TOGGLE_CAMERA:"\u30ab\u30e1\u30e9\u306e\u30c8\u30b0\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",TOGGLE_MICROPHONE:"\u30de\u30a4\u30af\u30ed\u30d5\u30a9\u30f3\u306e\u30c8\u30b0\u30eb\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SHARING:"\u753b\u9762\u5171\u6709\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f",SCREEN_SUPPORT:"\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306f\u753b\u9762\u5171\u6709\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093",MEDIA_ACCESS:"\u30e1\u30c7\u30a3\u30a2\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u8a31\u53ef\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f",DEVICE_NOT_FOUND:"\u30d3\u30c7\u30aa\u307e\u305f\u306f\u30aa\u30fc\u30c7\u30a3\u30aa\u30c7\u30d0\u30a4\u30b9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f \u6700\u4f4e1\u53f0\u306f\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044"},cie=Object.freeze({__proto__:null,ADMIN:RR,PREJOIN:PR,TOOLBAR:kR,STREAM:NR,PANEL:LR,ERRORS:FR,default:{ADMIN:RR,PREJOIN:PR,TOOLBAR:kR,STREAM:NR,PANEL:LR,ERRORS:FR}}),BR={LOGIN:"Log in",SECRET:"Geheim",SECRET_REQURED:"Geheim is vereist",DASHBOARD:"Dashboard",NO_RECORDINGS:"Er zijn geen opnames",SEARCH:"Een opname zoeken",DATE:"Datum",DURATION:"Looptijd",SIZE:"Maat",STATUS:"Toestand",NAME:"Naam",SESSION:"Sessie",OUTPUT:"Uitgangsmodus",POWERED_BY:"Aangedreven door"},VR={NICKNAME_SECTION:"Stel je bijnaam in",NICKNAME:"Bijnaam",DEVICE_SECTION:"Kies je apparaten",VIDEO_DEVICE:"Videospeler",AUDIO_DEVICE:"Audiospeler",NO_VIDEO_DEVICE:"Videoapparaat niet gevonden",NO_AUDIO_DEVICE:"Audioapparaat niet gevonden",JOIN:"Deelnemen aan sessie",PREPARING:"Sessie voorbereiden ..."},jR={MUTE_AUDIO:"Audio dempen",UNMUTE_AUDIO:"Audio niet meer dempen",MUTE_VIDEO:"Video dempen",UNMUTE_VIDEO:"Video niet meer dempen",ENABLE_SCREEN:"Scherm delen inschakelen",DISABLE_SCREEN:"Scherm delen uitschakelen",MORE_OPTIONS:"Meer opties",FULLSCREEN:"Volledig scherm",EXIT_FULLSCREEN:"Volledig scherm verlaten",ENABLE_CAPTIONS:"Ondertiteling inschakelen",DISABLE_CAPTIONS:"Ondertiteling uitschakelen",BACKGROUND:"Achtergrondeffecten",START_RECORDING:"Start opname",STOP_RECORDING:"Stop opname",SETTINGS:"Instellingen",LEAVE:"Verlaat de sessie",PARTICIPANTS:"Deelnemers",CHAT:"Chat",ACTIVITIES:"Activiteiten"},UR={SETTINGS:"Instellingen",MUTE_SOUND:"Geluid dempen",UNMUTE_SOUND:"Geluid niet meer dempen",ZOOM_IN:"Inzoomen",ZOOM_OUT:"Uitzoomen",REPLACE_SCREEN:"Vervang scherm"},HR={CLOSE:"Sluiten",SEE_MORE:"Zie meer",PRO_FEATURE:"Deze functie is onderdeel van OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"Jij",SUBTITLE:"Berichten worden aan het einde van de sessie verwijderd",PLACEHOLDER:"Stuur een bericht ...",SEND:"Versturen"},PARTICIPANTS:{TITLE:"Deelnemers",CAMERA:"CAMERA",SCREEN:"SCHERM"},SETTINGS:{TITLE:"Instellingen",GENERAL:"Algemeen",VIDEO:"Video",AUDIO:"Audio",LANGUAGE:"Taal",CAPTIONS:"Ondertitels",CAPTIONS_LANG_TEXT:"Selecteer de taal die de deelnemers van de sessie zullen gebruiken. De ondertiteling zal in die taal verschijnen."},BACKGROUND:{TITLE:"Achtergrondeffecten",BLURRED_SECTION:"Geen effecten en onscherpe achtergrond",NO_EFFECTS:"Geen achtergrondeffect",BLURRED_EFFECT:"Onscherpe achtergrond",IMAGES_SECTION:"Achtergrondafbeeldingen"},RECORDING:{TITLE:"Opname",SUBTITLE:"Neem uw vergadering op voor het nageslacht",CONTENT_TITLE:"Neem uw videogesprek op",CONTENT_SUBTITLE:"Als de opname klaar is kunt u deze met gemak downloaden",STARTING:"Beginnen met opnemen",STOPPING:"Opname stoppen",PLAY:"Toneelstuk",DELETE:"Verwijderen",CANCEL:"Annuleren",DELETE_QUESTION:"Weet je zeker dat je de opname wilt verwijderen?",DOWNLOAD:"Downloaden",RECORDINGS:"OPNAME",NO_MODERATOR:"Alleen de MOEDERATOR kan de opname starten"}},GR={SESSION:"Er is een fout opgetreden bij het verbinden met de sessie",CONNECTION:"Verbinding verloren",RECONNECT:"Proberen opnieuw verbinding te maken met de sessie...",TOGGLE_CAMERA:"Er is een fout opgetreden bij het overschakelen naar een andere camera",TOGGLE_MICROPHONE:"Er is een fout opgetreden bij het overschakelen naar een microfoon",SCREEN_SHARING:"Fout bij het delen van het scherm",SCREEN_SUPPORT:"Uw browser ondersteunt het delen van schermen niet",MEDIA_ACCESS:"Toegang tot media-apparaten was niet toegestaan.",DEVICE_NOT_FOUND:"Er zijn geen video- of audioapparaten gevonden. Sluit er alstublieft ten minste \xe9\xe9n aan."},die=Object.freeze({__proto__:null,ADMIN:BR,PREJOIN:VR,TOOLBAR:jR,STREAM:UR,PANEL:HR,ERRORS:GR,default:{ADMIN:BR,PREJOIN:VR,TOOLBAR:jR,STREAM:UR,PANEL:HR,ERRORS:GR}}),zR={LOGIN:"Conecte-se",SECRET:"Segredo",SECRET_REQURED:"O segredo \xe9 obrigat\xf3rio",DASHBOARD:"Painel",NO_RECORDINGS:"N\xe3o h\xe1 grava\xe7\xf5es",SEARCH:"Pesquisar uma grava\xe7\xe3o",DATE:"Encontro",DURATION:"Dura\xe7\xe3o",SIZE:"Tamanho",STATUS:"Status",NAME:"Nome",SESSION:"Sess\xe3o",OUTPUT:"Modo de sa\xedda",POWERED_BY:"Distribu\xeddo por"},qR={NICKNAME_SECTION:"Defina seu apelido",NICKNAME:"Apelido",DEVICE_SECTION:"Escolha seus dispositivos",VIDEO_DEVICE:"Dispositivo de v\xeddeo",AUDIO_DEVICE:"Dispositivo de \xe1udio",NO_VIDEO_DEVICE:"Dispositivo de v\xeddeo n\xe3o encontrado",NO_AUDIO_DEVICE:"Dispositivo de \xe1udio n\xe3o encontrado",JOIN:"Entrar na sess\xe3o",PREPARING:"Preparando sess\xe3o..."},WR={MUTE_AUDIO:"Mute seu \xe1udio",UNMUTE_AUDIO:"Desmute seu \xe1udio",MUTE_VIDEO:"Mute seu v\xeddeo",UNMUTE_VIDEO:"Desmute seu v\xeddeo",ENABLE_SCREEN:"Habilitar compartilhamento de tela",DISABLE_SCREEN:"Desabilitar compartilhamento de tela",MORE_OPTIONS:"Mais op\xe7\xf5es",FULLSCREEN:"Tela cheia",EXIT_FULLSCREEN:"Sair da tela cheia",ENABLE_CAPTIONS:"Ativar legendas",DISABLE_CAPTIONS:"Desativar legendas",BACKGROUND:"Efeitos de fundo",START_RECORDING:"Iniciar_grava\xe7\xe3o",STOP_RECORDING:"Parar de gravar",SETTINGS:"Configura\xe7\xf5es",LEAVE:"Sair da sess\xe3o",PARTICIPANTS:"Participantes",CHAT:"Chat",ACTIVITIES:"Actividades"},$R={SETTINGS:"Configura\xe7\xf5es",MUTE_SOUND:"Mudo",UNMUTE_SOUND:"Com som",ZOOM_IN:"Aumentar zoom",ZOOM_OUT:"Diminuir zoom",REPLACE_SCREEN:"Trocar tela"},YR={CLOSE:"Fechar",SEE_MORE:"Ver mais",PRO_FEATURE:"Esta funcionalidade \xe9 parte do OpenVidu PRO tier",CHAT:{TITLE:"Chat",YOU:"Voc\xea",SUBTITLE:"As mensagens ser\xe3o removidas no final da sess\xe3o",PLACEHOLDER:"Enviar uma mensagem...",SEND:"Enviar"},PARTICIPANTS:{TITLE:"Participantes",CAMERA:"C\xc2MERA",SCREEN:"TELA"},SETTINGS:{TITLE:"Configura\xe7\xf5es",GENERAL:"Em geral",VIDEO:"V\xeddeo",AUDIO:"\xc1udio",LANGUAGE:"Linguagem",CAPTIONS:"Legendas",CAPTIONS_LANG_TEXT:"Selecione o idioma que os participantes da sess\xe3o utilizar\xe3o. Os legendas aparecer\xe3o nesse idioma."},BACKGROUND:{TITLE:"Efeitos de fundo",BLURRED_SECTION:"Sem efeitos e fundo desfocado",NO_EFFECTS:"Sem efeito de fundo",BLURRED_EFFECT:"Fundo desfocado",IMAGES_SECTION:"Imagens de fundo"},RECORDING:{TITLE:"Grava\xe7\xe3o",SUBTITLE:"Grave a sua reuni\xe3o para a posteridade",CONTENT_TITLE:"Grave a sua videochamada",CONTENT_SUBTITLE:"Quando a grava\xe7\xe3o tiver terminado, poder\xe1 descarreg\xe1-la com facilidade",STARTING:"Come\xe7ar a grava\xe7\xe3o",STOPPING:"Parando a grava\xe7\xe3o",PLAY:"Toque",DELETE:"Excluir",CANCEL:"Cancelar",DELETE_QUESTION:"Tem certeza de que deseja excluir a grava\xe7\xe3o?",DOWNLOAD:"Download",RECORDINGS:"GRAVA\xc7\xd5ES",NO_MODERATOR:"S\xf3 o MODERADOR pode iniciar a grava\xe7\xe3o"}},QR={SESSION:"Houve um erro de liga\xe7\xe3o \xe0 sess\xe3o",CONNECTION:"Liga\xe7\xe3o perdida",RECONNECT:"A tentar restabelecer a liga\xe7\xe3o \xe0 sess\xe3o...",TOGGLE_CAMERA:"Houve um erro ao alternar a c\xe2mara",TOGGLE_MICROPHONE:"Houve um erro ao alternar microhpone",SCREEN_SHARING:"ecr\xe3_partilha de erros",SCREEN_SUPPORT:"O seu browser n\xe3o suporta a partilha de ecr\xe3s",MEDIA_ACCESS:"N\xe3o foi permitido o acesso a dispositivos de media",DEVICE_NOT_FOUND:"Nenhum dispositivo de v\xeddeo ou \xe1udio foi encontrado. Por favor, ligue pelo menos um"},fie=Object.freeze({__proto__:null,ADMIN:zR,PREJOIN:qR,TOOLBAR:WR,STREAM:$R,PANEL:YR,ERRORS:QR,default:{ADMIN:zR,PREJOIN:qR,TOOLBAR:WR,STREAM:$R,PANEL:YR,ERRORS:QR}}),ai=(()=>{return(t=ai||(ai={})).USER_NICKNAME="openviduCallNickname",t.VIDEO_DEVICE="openviduCallVideoDevice",t.AUDIO_DEVICE="openviduCallAudioDevice",t.AUDIO_MUTED="openviduCallAudioMuted",t.VIDEO_MUTED="openviduCallVideoMuted",t.LANG="openviduCallLang",t.CAPTION_LANG="openviduCallCaptionLang",t.BACKGROUND="openviduCallBackground",ai;var t})();let jt=(()=>{class t{constructor(e){this.minimal=new wt(!1),this.participantName=new wt(""),this.prejoin=new wt(!0),this.videoMuted=new wt(!1),this.audioMuted=new wt(!1),this.screenshareButton=new wt(!0),this.fullscreenButton=new wt(!0),this.captionsButton=new wt(!0),this.toolbarSettingsButton=new wt(!0),this.leaveButton=new wt(!0),this.participantsPanelButton=new wt(!0),this.chatPanelButton=new wt(!0),this.activitiesPanelButton=new wt(!0),this.displaySessionName=new wt(!0),this.displayLogo=new wt(!0),this.displayParticipantName=new wt(!0),this.displayAudioDetection=new wt(!0),this.streamSettingsButton=new wt(!0),this.participantItemMuteButton=new wt(!0),this.backgroundEffectsButton=new wt(!0),this.recordingsList=new wt([]),this.recordingButton=new wt(!0),this.recordingActivity=new wt(!0),this.recordingError=new wt(null),this.adminRecordingsList=new wt([]),this.adminLoginError=new wt(null),this.configuration=e,console.log(this.configuration),this.isProduction()&&console.log("OpenVidu Angular Production Mode"),this.minimalObs=this.minimal.asObservable(),this.participantNameObs=this.participantName.asObservable(),this.prejoinObs=this.prejoin.asObservable(),this.videoMutedObs=this.videoMuted.asObservable(),this.audioMutedObs=this.audioMuted.asObservable(),this.screenshareButtonObs=this.screenshareButton.asObservable(),this.fullscreenButtonObs=this.fullscreenButton.asObservable(),this.backgroundEffectsButtonObs=this.backgroundEffectsButton.asObservable(),this.leaveButtonObs=this.leaveButton.asObservable(),this.participantsPanelButtonObs=this.participantsPanelButton.asObservable(),this.chatPanelButtonObs=this.chatPanelButton.asObservable(),this.activitiesPanelButtonObs=this.activitiesPanelButton.asObservable(),this.displaySessionNameObs=this.displaySessionName.asObservable(),this.displayLogoObs=this.displayLogo.asObservable(),this.recordingButtonObs=this.recordingButton.asObservable(),this.toolbarSettingsButtonObs=this.toolbarSettingsButton.asObservable(),this.captionsButtonObs=this.captionsButton.asObservable(),this.displayParticipantNameObs=this.displayParticipantName.asObservable(),this.displayAudioDetectionObs=this.displayAudioDetection.asObservable(),this.streamSettingsButtonObs=this.streamSettingsButton.asObservable(),this.participantItemMuteButtonObs=this.participantItemMuteButton.asObservable(),this.recordingActivityObs=this.recordingActivity.asObservable(),this.recordingsListObs=this.recordingsList.asObservable(),this.recordingErrorObs=this.recordingError.asObservable(),this.adminRecordingsListObs=this.adminRecordingsList.asObservable(),this.adminLoginErrorObs=this.adminLoginError.asObservable()}getConfig(){return this.configuration}isProduction(){var e;return(null===(e=this.configuration)||void 0===e?void 0:e.production)||!1}hasParticipantFactory(){return"function"==typeof this.getConfig().participantFactory}getParticipantFactory(){return this.getConfig().participantFactory}}return t.\u0275fac=function(e){return new(e||t)(ie("OPENVIDU_ANGULAR_CONFIG"))},t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),cr=(()=>{class t{constructor(e){this.openviduAngularConfigSrv=e,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}getLoggerFns(e){return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map((o,r)=>o.bind(this.log,this.MSG_PREFIXES[r][0]+e+this.MSG_PREFIXES[r][1]))}get(e){const i=this.openviduAngularConfigSrv.isProduction(),o=this;return{d:function(...r){i||o.getLoggerFns(e)[0].apply(this.log,arguments)},w:function(...r){o.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(...r){o.getLoggerFns(e)[2].apply(this.log,arguments)}}}}return t.\u0275fac=function(e){return new(e||t)(ie(jt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ho=(()=>{class t{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(ai.USER_NICKNAME)}setNickname(e){this.set(ai.USER_NICKNAME,e)}getVideoDevice(){return this.get(ai.VIDEO_DEVICE)}setVideoDevice(e){this.set(ai.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(ai.AUDIO_DEVICE)}setAudioDevice(e){this.set(ai.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(ai.VIDEO_MUTED)}setVideoMuted(e){this.set(ai.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(ai.AUDIO_MUTED)}setAudioMuted(e){this.set(ai.AUDIO_MUTED,`${e}`)}setLang(e){this.set(ai.LANG,e)}getLang(){return this.get(ai.LANG)}setCaptionLang(e){this.set(ai.CAPTION_LANG,e)}getCaptionsLang(){return this.get(ai.CAPTION_LANG)}setBackground(e){this.set(ai.BACKGROUND,e)}getBackground(){return this.get(ai.BACKGROUND)}removeBackground(){this.remove(ai.BACKGROUND)}set(e,i){const o=JSON.stringify({item:i});this.storage.setItem(e,o)}get(e){const i=this.storage.getItem(e);return i?JSON.parse(i).item:null}remove(e){this.storage.removeItem(e)}clear(){this.log.d("Clearing localStorage"),this.storage.clear()}}return t.\u0275fac=function(e){return new(e||t)(ie(cr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tc=(()=>{class t{constructor(e){this.storageService=e,this.availableLanguages={en:Jne,es:tie,de:Zne,fr:iie,cn:Qne,hi:rie,it:aie,ja:cie,nl:die,pt:fie},this.langTitles=[{name:"English",ISO:"en"},{name:"Espa\xf1ol",ISO:"es"},{name:"Deutsch",ISO:"de"},{name:"Fran\xe7ais",ISO:"fr"},{name:"\u4e2d\u56fd",ISO:"cn"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",ISO:"hi"},{name:"Italiano",ISO:"it"},{name:"\u3084\u307e\u3068",ISO:"ja"},{name:"Dutch",ISO:"nl"},{name:"Portugu\xeas",ISO:"pt"}];const i=this.storageService.getLang()||"en";this.langSelected=this.langTitles.find(o=>o.ISO===i)||this.langTitles[0],this.currentLang=this.availableLanguages[this.langSelected.ISO]}setLanguage(e){this.langTitles.some(i=>i.ISO===e)&&(this.currentLang=this.availableLanguages[e],this.langSelected=this.langTitles.find(i=>i.ISO===e))}getLangSelected(){return this.langSelected}getLanguagesInfo(){return this.langTitles}translate(e){let i=this.currentLang;return e.split(".").forEach(o=>{try{i=i[o]}catch(r){return""}}),i}}return t.\u0275fac=function(e){return new(e||t)(ie(Ho))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),li=(()=>{class t{constructor(e){this.translateService=e}transform(e){return this.translateService.translate(e).replace("OpenVidu PRO",'<a href="https://docs.openvidu.io/en/stable/openvidu-pro/" target="_blank">OpenVidu PRO</a>')}}return t.\u0275fac=function(e){return new(e||t)(h(tc,16))},t.\u0275pipe=Qn({name:"translate",type:t,pure:!1}),t})(),KR=(()=>{class t{constructor(e){this.dialogRef=e}close(e=!1){this.dialogRef.close(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Yl))},t.\u0275cmp=it({type:t,selectors:[["app-delete-dialog"]],decls:10,vars:9,consts:[["mat-dialog-content",""],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-button","","cdkFocusInitial","","id","delete-recording-confirm-btn",3,"click"]],template:function(e,i){1&e&&(R(0,"div",0),fe(1),Me(2,"translate"),L(),R(3,"div",1)(4,"button",2),Ie("click",function(){return i.close()}),fe(5),Me(6,"translate"),L(),R(7,"button",3),Ie("click",function(){return i.close(!0)}),fe(8),Me(9,"translate"),L()()),2&e&&(w(1),He(Re(2,3,"PANEL.RECORDING.DELETE_QUESTION")),w(4),He(Re(6,5,"PANEL.RECORDING.CANCEL")),w(3),He(Re(9,7,"PANEL.RECORDING.DELETE")))},dependencies:[Ln,tp,np,li]}),t})(),ZR=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Yl),h(ep))},t.\u0275cmp=it({type:t,selectors:[["ov-dialog-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(R(0,"h1",0),fe(1),L(),R(2,"div",1),fe(3),L(),ee(4,fX,4,3,"div",2)),2&e&&(w(1),He(i.data.title),w(2),He(i.data.description),w(1),B("ngIf",i.data.showActionButtons))},dependencies:[nn,Ln,HO,tp,np,li],encapsulation:2}),t})(),XR=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i,this.src=i.src}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(h(Yl),h(ep))},t.\u0275cmp=it({type:t,selectors:[["app-recording-dialog"]],decls:3,vars:2,consts:[["mat-dialog-content",""],["controls","","autoplay","",3,"src"],["mat-dialog-actions","","align","end",4,"ngIf"],["mat-dialog-actions","","align","end"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(R(0,"div",0),rt(1,"video",1),L(),ee(2,pX,4,3,"div",2)),2&e&&(w(1),B("src",i.src,za),w(1),B("ngIf",i.data.showActionButtons))},dependencies:[nn,Ln,tp,np,li],styles:["video[_ngcontent-%COMP%]{max-height:64vh;max-width:100%}"]}),t})(),pie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovToolbar",""]]}),t})(),JR=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovToolbarAdditionalButtons",""]]}),t})(),eP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),t})(),gie=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovPanel",""]]}),t})(),tP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovAdditionalPanels",""]]}),t})(),nP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovChatPanel",""]]}),t})(),iP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovActivitiesPanel",""]]}),t})(),oP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovParticipantsPanel",""]]}),t})(),rP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovParticipantPanelItem",""]]}),t})(),sP=(()=>{class t{constructor(e,i){this.template=e,this.viewContainer=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovParticipantPanelItemElements",""]]}),t})(),mie=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovLayout",""]]}),t})(),aP=(()=>{class t{constructor(e,i){this.template=e,this.container=i}}return t.\u0275fac=function(e){return new(e||t)(h(yt),h(pn))},t.\u0275dir=be({type:t,selectors:[["","ovStream",""]]}),t})();var Go=(()=>{return(t=Go||(Go={})).ROOT_ELEMENT="OT_root",t.BIG_ELEMENT="OV_big",t.SMALL_ELEMENT="OV_small",t.IGNORED_ELEMENT="OV_ignored",t.SIDENAV_CONTAINER="sidenav-container",t.NO_SIZE_ELEMENT="no-size",t.CLASS_NAME="layout",Go;var t})(),nc=(()=>{return(t=nc||(nc={})).OVER="over",t.SIDE="side",nc;var t})(),ic=(()=>{return(t=ic||(ic={})).START="start",t.CENTER="center",t.END="end",ic;var t})();class vie{updateLayout(n,e){setTimeout(()=>{if(this.layoutContainer=n,this.opts=e,"none"===this.css(this.layoutContainer,"display"))return;let i=this.layoutContainer.id;i||(i="OT_"+this.cheapUUID(),this.layoutContainer.id=i),e.containerHeight=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-top")-this.getCSSNumber(this.layoutContainer,"border-bottom"),e.containerWidth=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"border-left")-this.getCSSNumber(this.layoutContainer,"border-right");const o=Array.prototype.filter.call(this.layoutContainer.querySelectorAll(`#${i}>*:not(.${Go.IGNORED_ELEMENT})`),()=>this.filterDisplayNone),r=o.map(a=>{const l=this.getChildDims(a);return l.big=a.classList.contains(this.opts.bigClass),l});this.getLayout(e,r).boxes.forEach((a,l)=>{const c=o[l];this.css(c,"position","absolute");const u=a.width- -this.getCSSNumber(c,"margin-left")-this.getCSSNumber(c,"margin-right")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-left")+this.getCSSNumber(c,"padding-right")+this.getCSSNumber(c,"border-left")+this.getCSSNumber(c,"border-right"):0),d=a.height- -this.getCSSNumber(c,"margin-top")-this.getCSSNumber(c,"margin-bottom")-("border-box"!==this.css(c,"box-sizing")?this.getCSSNumber(c,"padding-top")+this.getCSSNumber(c,"padding-bottom")+this.getCSSNumber(c,"border-top")+this.getCSSNumber(c,"border-bottom"):0);this.positionElement(c,a.left,a.top,u,d,this.opts.animate)})},50)}initLayoutContainer(n,e){this.opts=e,this.layoutContainer=n,this.updateLayout(n,e)}getLayoutContainer(){return this.layoutContainer}css(n,e,i){if(i)return n.style[e]=i,NaN;if("object"==typeof e)return Object.keys(e).forEach(s=>{this.css(n,s,e[s])}),NaN;var r=window.getComputedStyle(n).getPropertyValue(e);return""===r&&(r=n.style[e]),r}height(n){return n.offsetHeight>0?`${n.offsetHeight}px`:this.css(n,"height")}width(n){return n.offsetWidth>0?`${n.offsetWidth}px`:this.css(n,"width")}defaults(n,e){var i=e;return Object.keys(e).forEach(o=>{n.hasOwnProperty(o)&&(i[o]=n[o])}),i}fixAspectRatio(n,e){const i=n.querySelector(`.${Go.ROOT_ELEMENT}`);if(i){const o=i.style.width;i.style.width=`${e}px`,i.style.width=o||""}}positionElement(n,e,i,o,r,s){const a={left:`${e}px`,top:`${i}px`,width:`${o}px`,height:`${r}px`};this.fixAspectRatio(n,o),s?setTimeout(()=>{n.style.left=a.left,n.style.top=a.top,n.style.width=a.width,n.style.height=a.height,this.fixAspectRatio(n,o)},10):(this.css(n,a),n.classList.contains(Go.CLASS_NAME)||n.classList.add(Go.CLASS_NAME)),this.fixAspectRatio(n,o)}getChildDims(n){if(n){if(n.videoHeight&&n.videoWidth)return{height:n.videoHeight,width:n.videoWidth};const e=n.querySelector("video");if(e&&e.videoHeight&&e.videoWidth)return{height:e.videoHeight,width:e.videoWidth}}return{height:480,width:640}}getCSSNumber(n,e){const i=this.css(n,e);return i?parseInt(i.toString(),10):0}cheapUUID(){return(1e8*Math.random()).toFixed(0)}getHeight(n){const e=this.height(n);return e?parseInt(e.toString(),10):0}getWidth(n){const e=this.width(n);return e?parseInt(e.toString(),10):0}filterDisplayNone(n){return"none"!==this.css(n,"display")}getBestDimensions(n,e,i,o,r,s,a){let l,c,u,d,f,y,N,X;for(let _e=1;_e<=r;_e++){const me=_e,Ae=Math.ceil(r/me);N=Math.floor(o/Ae),y=Math.floor(i/me),X=N/y,X>e?(X=e,N=y*X):X<n&&(X=n,y=N/X),y=Math.min(s,y),N=Math.min(a,N);const ve=y*N*r;(void 0===l||ve>=l)&&(ve===l&&r%(me*Ae)>r%(u*c)||(l=ve,d=N,f=y,c=me,u=Ae))}return{maxArea:l,targetCols:c,targetRows:u,targetHeight:d,targetWidth:f,ratio:d/f}}getVideoRatio(n){return n.height/n.width}getLayout(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,bigPercentage:s=.8,minBigPercentage:a=0,bigFixedRatio:l=!1,bigMaxRatio:c=1.5,bigMinRatio:u=9/16,bigFirst:d=!0,containerWidth:f=640,containerHeight:y=480,alignItems:N="center",bigAlignItems:X="center",smallAlignItems:_e="center",maxWidth:me=1/0,maxHeight:Ae=1/0,smallMaxWidth:ve=1/0,smallMaxHeight:Se=1/0,bigMaxWidth:Ye=1/0,bigMaxHeight:gt=1/0,scaleLastRow:Zt=!0,bigScaleLastRow:Rt=!0}=n,Dn=y/f;let Nt=0,vn=0,Ei=0,Yn=0;const xi=[];let Ao=[],et=[],Ze={big:null,small:null};const lt=e.filter(Ut=>!Ut.big),at=e.filter((Ut,At)=>!!Ut.big&&(xi.push(At),!0));if(at.length>0&<.length>0){let Ut,At,ze=d;if(Dn>this.getVideoRatio(at[0])){if(Ut=f,At=Math.floor(y*s),a>0){let wo;if(l){const Xi=at[0].height/at[0].width;wo=this.getBestDimensions(Xi,Xi,Ut,At,at.length,Ye,gt)}else wo=this.getBestDimensions(u,c,Ut,At,at.length,Ye,gt);At=Math.max(y*a,Math.min(At,wo.targetHeight*wo.targetRows));const Rn=this.getBestDimensions(o,i,f,y-At,lt.length,ve,Se);At=Math.max(At,y-Rn.targetRows*Rn.targetHeight)}vn=At,Ei=y-vn,"column"===d?ze=!1:"row"===d&&(ze=!0)}else{if(At=y,Ut=Math.floor(f*s),a>0){let wo;if(l){const Xi=at[0].height/at[0].width;wo=this.getBestDimensions(Xi,Xi,Ut,At,at.length,Ye,gt)}else wo=this.getBestDimensions(u,c,Ut,At,at.length,Ye,gt);Ut=Math.max(f*a,Math.min(Ut,wo.targetWidth*wo.targetCols));const Rn=this.getBestDimensions(o,i,f-Ut,y,lt.length,ve,Se);Ut=Math.max(Ut,f-Rn.targetCols*Rn.targetWidth)}Nt=Ut,Yn=f-Nt,"column"===d?ze=!0:"row"===d&&(ze=!1)}ze?(Ze.big={top:0,left:0,width:Ut,height:At},Ze.small={top:vn,left:Nt,width:f-Nt,height:y-vn}):(Ze.big={left:Yn,top:Ei,width:Ut,height:At},Ze.small={top:0,left:0,width:f-Nt,height:y-vn})}else at.length>0&&0===lt.length?Ze.big={top:0,left:0,width:f,height:y}:Ze.small={top:vn,left:Nt,width:f-Nt,height:y-vn};Ze.big&&(Ao=this.getLayoutAux({containerWidth:Ze.big.width,containerHeight:Ze.big.height,offsetLeft:Ze.big.left,offsetTop:Ze.big.top,fixedRatio:l,minRatio:u,maxRatio:c,alignItems:X,maxWidth:Ye,maxHeight:gt,scaleLastRow:Rt},at)),Ze.small&&(et=this.getLayoutAux({containerWidth:Ze.small.width,containerHeight:Ze.small.height,offsetLeft:Ze.small.left,offsetTop:Ze.small.top,fixedRatio:r,minRatio:o,maxRatio:i,alignItems:Ze.big?_e:N,maxWidth:Ze.big?ve:me,maxHeight:Ze.big?Se:Ae,scaleLastRow:Zt},lt));const Gt=[];let Mn=0,ci=0;return e.forEach((Ut,At)=>{xi.indexOf(At)>-1?(Gt[At]=Ao[Mn],Mn+=1):(Gt[At]=et[ci],ci+=1)}),{boxes:Gt,areas:Ze}}getLayoutAux(n,e){const{maxRatio:i=1.5,minRatio:o=9/16,fixedRatio:r=!1,containerWidth:s=640,containerHeight:a=480,offsetLeft:l=0,offsetTop:c=0,alignItems:u="center",maxWidth:d=1/0,maxHeight:f=1/0,scaleLastRow:y=!0}=n,N=e.map(Rt=>Rt.height/Rt.width),X=N.length;let _e;if(r){const Rt=N.length>0?N[0]:null;_e=this.getBestDimensions(Rt,Rt,s,a,X,d,f)}else _e=this.getBestDimensions(o,i,s,a,X,d,f);let me=0,Ae=0;const ve=[];let Se;const Ye=[];for(let Rt=0;Rt<N.length;Rt++){Rt%_e.targetCols==0&&(Se={ratios:[],width:0,height:0},ve.push(Se));const Dn=N[Rt];Se.ratios.push(Dn);let Nt=_e.targetWidth;const vn=_e.targetHeight;r&&(Nt=vn/Dn),Se.width+=Nt,Se.height=vn}let gt=0,Zt=0;for(let Rt=0;Rt<ve.length;Rt++)Se=ve[Rt],Se.width>s?(Se.height=Math.floor(Se.height*(s/Se.width)),Se.width=s):Se.width<s&&Se.height<f&&(Zt+=1),gt+=Se.height;if(y&><a&&Zt>0){let Rt=a-gt;gt=0;for(let Dn=0;Dn<ve.length;Dn++){if(Se=ve[Dn],Se.width<s){let Nt=Rt/Zt;Nt/Se.height>(s-Se.width)/Se.width&&(Nt=Math.floor((s-Se.width)/Se.width*Se.height)),Se.width+=Math.floor(Nt/Se.height*Se.width),Se.height+=Nt,Rt-=Nt,Zt-=1}gt+=Se.height}}switch(u){case"start":Ae=0;break;case"end":Ae=a-gt;break;default:Ae=(a-gt)/2}for(let Rt=0;Rt<ve.length;Rt++){let Dn,Nt;switch(Se=ve[Rt],u){case"start":Dn=0;break;case"end":Dn=s-Se.width;break;default:Dn=(s-Se.width)/2}me=Dn;for(let vn=0;vn<Se.ratios.length;vn++){const Ei=Se.ratios[vn];let Yn=_e.targetWidth;Nt=Se.height,r?Yn=Math.floor(Nt/Ei):Nt/Yn!=_e.targetHeight/_e.targetWidth&&(Yn=Math.floor(_e.targetWidth/_e.targetHeight*Nt)),Ye.push({left:me+l,top:Ae+c,width:Yn,height:Nt}),me+=Yn}Ae+=Nt}return Ye}}let Ca=(()=>{class t{constructor(){this.layoutContainer=null,this.layoutWidth=new wt(0),this.captionsToggling=new wt(!1),this.layoutWidthObs=this.layoutWidth.asObservable(),this.captionsTogglingObs=this.captionsToggling.asObservable()}initialize(e){this.layoutContainer=e,this.openviduLayout=new vie,this.openviduLayoutOptions=this.getOptions(),this.layoutContainer&&this.openviduLayout.initLayoutContainer(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent()}getOptions(){return{maxRatio:1.5,minRatio:.5625,fixedRatio:!1,bigClass:Go.BIG_ELEMENT,smallClass:Go.SMALL_ELEMENT,ignoredClass:Go.IGNORED_ELEMENT,bigPercentage:.8,minBigPercentage:0,bigFixedRatio:!1,bigMaxRatio:.5625,bigMinRatio:.5625,bigFirst:!0,animate:!0,alignItems:ic.CENTER,bigAlignItems:ic.CENTER,smallAlignItems:ic.CENTER,maxWidth:1/0,maxHeight:1/0,smallMaxWidth:1/0,smallMaxHeight:1/0,bigMaxWidth:1/0,bigMaxHeight:1/0,scaleLastRow:!0,bigScaleLastRow:!0}}toggleCaptions(){this.captionsToggling.next(!this.captionsToggling.getValue())}update(e=null){const i=()=>{this.openviduLayout&&(this.openviduLayout.updateLayout(this.layoutContainer,this.openviduLayoutOptions),this.sendLayoutWidthEvent())};"number"==typeof e&&e>=0?setTimeout(()=>i(),e):i()}getLayout(){return this.openviduLayout}clear(){this.openviduLayout=null}sendLayoutWidthEvent(){var e;const i=this.getHTMLElementByClassName(null===(e=this.openviduLayout)||void 0===e?void 0:e.getLayoutContainer(),Go.SIDENAV_CONTAINER);i&&i.clientWidth&&this.layoutWidth.next(i.clientWidth)}getHTMLElementByClassName(e,i){for(;e&&e!==document.body;){if(e.className.includes(i))return e;e=e.parentElement}return null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var on=(()=>{return(t=on||(on={})).CAMERA="CAMERA",t.SCREEN="SCREEN",t.CUSTOM="CUSTOM",on;var t})(),sd=(()=>{return(t=sd||(sd={})).WINDOW="window",t.SCREEN="screen",sd;var t})(),oc=(()=>{return(t=oc||(oc={})).MODERATOR="MODERATOR",t.PUBLISHER="PUBLISHER",oc;var t})();class bie extends class _ie{constructor(n,e){this.streams=new Map,this.id=n.id?n.id:(new Date).getTime().toString(),this.local=n.local,this.nickname=n.nickname,this.colorProfile=n.colorProfile?n.colorProfile:`hsl(${360*Math.random()}, 100%, 80%)`,this.isMutedForcibly="boolean"==typeof n.isMutedForcibly&&n.isMutedForcibly;let i={connected:!e||e.connected,type:e?e.type:on.CAMERA,streamManager:e?e.streamManager:null,videoEnlarged:!!e&&e.videoEnlarged,connectionId:e?e.connectionId:null,participant:this};this.streams.set(i.type,i)}addConnection(n){n.participant=this,this.streams.set(n.type,n)}hasAudioActive(){const n=this.getCameraConnection(),e=this.getScreenConnection();return n.connected?this.isCameraAudioActive():!!e.connected&&this.isScreenAudioActive()}isCameraAudioActive(){var n,e;const i=this.getCameraConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}isCameraVideoActive(){var n,e;const i=this.getCameraConnection();return(null==i?void 0:i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.videoActive)}isScreenAudioActive(){var n,e;const i=this.getScreenConnection();return!(null==i||!i.connected)&&(null===(e=null===(n=null==i?void 0:i.streamManager)||void 0===n?void 0:n.stream)||void 0===e?void 0:e.audioActive)}hasConnectionType(n){return this.streams.has(n)}getCameraConnection(){return this.streams.get(on.CAMERA)}getScreenConnection(){return this.streams.get(on.SCREEN)}getConnectionTypesActive(){let n=[];return this.isCameraActive()&&n.push(on.CAMERA),this.isScreenActive()&&n.push(on.SCREEN),n}setCameraConnectionId(n){this.getCameraConnection().connectionId=n}setScreenConnectionId(n){this.getScreenConnection().connectionId=n}removeConnection(n){const e=this.getConnectionById(n);return this.streams.delete(e.type),e}hasConnectionId(n){return Array.from(this.streams.values()).some(e=>e.connectionId===n)}getConnectionById(n){return Array.from(this.streams.values()).find(e=>e.connectionId===n)}getAvailableConnections(){return Array.from(this.streams.values()).filter(n=>n.connected)}isLocal(){return this.local}setNickname(n){this.nickname=n}getNickname(){return this.nickname}setCameraPublisher(n){const e=this.getCameraConnection();e&&(e.streamManager=n)}setScreenPublisher(n){const e=this.getScreenConnection();e&&(e.streamManager=n)}setPublisher(n,e){const i=this.streams.get(n);i&&(i.streamManager=e)}isCameraActive(){var n;return null===(n=this.getCameraConnection())||void 0===n?void 0:n.connected}enableCamera(){const n=this.getCameraConnection();n&&(n.connected=!0)}disableCamera(){const n=this.getCameraConnection();n&&(n.connected=!1)}isScreenActive(){var n;return null===(n=this.getScreenConnection())||void 0===n?void 0:n.connected}enableScreen(){const n=this.getScreenConnection();n&&(n.connected=!0)}disableScreen(){const n=this.getScreenConnection();n&&(n.connected=!1)}setAllVideoEnlarged(n){this.streams.forEach(e=>e.videoEnlarged=n)}setCameraEnlarged(n){this.streams.get(on.CAMERA).videoEnlarged=n}setScreenEnlarged(n){this.streams.get(on.SCREEN).videoEnlarged=n}toggleVideoEnlarged(n){this.streams.forEach(e=>{e.connectionId===n&&(e.videoEnlarged=!e.videoEnlarged)})}someHasVideoEnlarged(){return Array.from(this.streams.values()).some(n=>n.videoEnlarged)}setMutedForcibly(n){this.isMutedForcibly=n}getRole(){var n,e,i,o;return null===(o=null===(i=null===(e=null===(n=this.streams.get(on.CAMERA))||void 0===n?void 0:n.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.role}}{}let Ti=(()=>{class t{constructor(e,i){this.openviduAngularConfigSrv=e,this.loggerSrv=i,this._localParticipant=new wt(null),this._remoteParticipants=new wt([]),this.remoteParticipants=[],this.log=this.loggerSrv.get("ParticipantService"),this.localParticipantObs=this._localParticipant.asObservable(),this.remoteParticipantsObs=this._remoteParticipants.asObservable()}initLocalParticipant(e){this.localParticipant=this.newParticipant(e),this.updateLocalParticipant()}getLocalParticipant(){return this.localParticipant}getMyCameraPublisher(){return this.localParticipant.getCameraConnection().streamManager}setMyCameraPublisher(e){this.localParticipant.setCameraPublisher(e)}setMyCameraConnectionId(e){this.localParticipant.setCameraConnectionId(e)}getMyScreenPublisher(){var e;return null===(e=this.localParticipant.getScreenConnection())||void 0===e?void 0:e.streamManager}setMyScreenPublisher(e){this.localParticipant.setScreenPublisher(e)}setMyScreenConnectionId(e){this.localParticipant.setScreenConnectionId(e)}enableWebcamStream(){this.localParticipant.enableCamera(),this.updateLocalParticipant()}disableWebcamStream(){this.localParticipant.disableCamera(),this.updateLocalParticipant()}activeMyScreenShare(e){this.log.d("Enabling screen publisher");const i={type:on.SCREEN,videoEnlarged:!0,streamManager:e,connected:!0,connectionId:""};this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize(),this.localParticipant.addConnection(i),this.updateLocalParticipant()}disableScreenStream(){this.localParticipant.disableScreen(),this.updateLocalParticipant()}setMyNickname(e){this.localParticipant.setNickname(e),this.updateLocalParticipant()}getMyNickname(){return this.localParticipant.nickname}getMyRole(){return this.localParticipant.getRole()}toggleMyVideoEnlarged(e){this.localParticipant.toggleVideoEnlarged(e)}resetMyStreamsToNormalSize(){this.localParticipant.someHasVideoEnlarged()&&(this.localParticipant.setAllVideoEnlarged(!1),this.updateLocalParticipant())}clear(){this.disableScreenStream(),this.remoteParticipants=[],this.updateRemoteParticipants(),this.updateLocalParticipant()}isMyCameraActive(){return this.localParticipant.isCameraActive()}isMyVideoActive(){return this.localParticipant.isCameraVideoActive()}isMyAudioActive(){var e;return null===(e=this.localParticipant)||void 0===e?void 0:e.hasAudioActive()}isMyScreenActive(){return this.localParticipant.isScreenActive()}isOnlyMyCameraActive(){return this.isMyCameraActive()&&!this.isMyScreenActive()}isOnlyMyScreenActive(){return this.isMyScreenActive()&&!this.isMyCameraActive()}haveICameraAndScreenActive(){return this.isMyCameraActive()&&this.isMyScreenActive()}hasScreenAudioActive(){return this.localParticipant.isScreenAudioActive()}updateLocalParticipant(){this._localParticipant.next(Object.assign(Object.create(this.localParticipant),this.localParticipant))}addRemoteConnection(e,i,o){const r=this.getTypeConnectionData(i),s={type:r,videoEnlarged:r===on.SCREEN,streamManager:o,connected:!0,connectionId:e},a=this.getParticipantIdFromData(i)||e,l=this.getRemoteParticipantById(a);if(l)this.log.d("Adding connection to existing participant: ",a),l.hasConnectionType(s.type)?(this.log.d("Participant has publisher, updating it"),l.setPublisher(s.type,o)):(this.log.d("Participant has not publisher, adding it"),s.type===on.SCREEN&&(this.resetRemoteStreamsToNormalSize(),this.resetMyStreamsToNormalSize()),l.addConnection(s));else{this.log.w("Creating new participant with id: ",a);const c={nickname:this.getNicknameFromConnectionData(i),local:!1,id:a},u=this.newParticipant(c,s);this.remoteParticipants.push(u)}this.updateRemoteParticipants()}getRemoteParticipants(){return this.remoteParticipants}resetRemoteStreamsToNormalSize(){this.remoteParticipants.forEach(e=>e.setAllVideoEnlarged(!1)),this.updateRemoteParticipants()}removeConnectionByConnectionId(e){let i;if(this.log.w("Deleting connection: ",e),i=this.localParticipant.hasConnectionId(e)?this.localParticipant:this.getRemoteParticipantByConnectionId(e),i){const o=i.removeConnection(e);if(0===i.streams.size&&(this.remoteParticipants=this.remoteParticipants.filter(r=>r!==i)),o.type===on.SCREEN){const r=this.remoteParticipants.filter(s=>s.isScreenActive());r.length>0?r[r.length-1].setScreenEnlarged(!0):this.localParticipant.isScreenActive()&&this.localParticipant.setScreenEnlarged(!0)}this.updateRemoteParticipants()}}getRemoteParticipantByConnectionId(e){return this.remoteParticipants.find(i=>i.hasConnectionId(e))}getRemoteParticipantById(e){return this.remoteParticipants.find(i=>i.id===e)}someoneIsSharingScreen(){return this.remoteParticipants.some(e=>e.someHasVideoEnlarged())}toggleRemoteVideoEnlarged(e){const i=this.getRemoteParticipantByConnectionId(e);null==i||i.toggleVideoEnlarged(e)}getNicknameFromConnectionData(e){try{return JSON.parse(e).clientData}catch(i){return"OpenVidu_User"}}setRemoteNickname(e,i){const o=this.getRemoteParticipantByConnectionId(e);o&&(o.setNickname(i),this.updateRemoteParticipants())}setRemoteMutedForcibly(e,i){const o=this.getRemoteParticipantById(e);o&&(o.setMutedForcibly(i),this.updateRemoteParticipants())}updateRemoteParticipants(){this._remoteParticipants.next([...this.remoteParticipants])}getTypeConnectionData(e){try{return JSON.parse(e).type}catch(i){return on.CAMERA}}getParticipantIdFromData(e){try{return JSON.parse(e).participantId}catch(i){return""}}newParticipant(e,i){return this.openviduAngularConfigSrv.hasParticipantFactory()?this.openviduAngularConfigSrv.getParticipantFactory().apply(this,[e,i]):new bie(e,i)}}return t.\u0275fac=function(e){return new(e||t)(ie(jt),ie(cr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Wt=(()=>{return(t=Wt||(Wt={})).CHAT="chat",t.PARTICIPANTS="participants",t.BACKGROUND_EFFECTS="background-effects",t.ACTIVITIES="activities",t.SETTINGS="settings",Wt;var t})(),rc=(()=>{return(t=rc||(rc={})).GENERAL="general",t.AUDIO="audio",t.VIDEO="video",t.CAPTIONS="captions",rc;var t})();let So=(()=>{class t{constructor(e){this.loggerSrv=e,this.isExternalOpened=!1,this._panelOpened=new wt({opened:!1}),this.panelMap=new Map,this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable(),Object.values(Wt).forEach(i=>this.panelMap.set(i,!1))}togglePanel(e,i){let o=!1;this.panelMap.has(e)?(this.log.d(`Toggling ${e} menu`),this.panelMap.forEach((s,a)=>{a===e?(this.panelMap.set(a,!s),o=!s):this.panelMap.set(a,!1)})):(this.log.d("Toggling external panel"),this.panelMap.forEach((s,a)=>this.panelMap.set(a,!1)),this.isExternalOpened=!this.isExternalOpened||this.externalType!==e,this.externalType=this.isExternalOpened?e:"",o=this.isExternalOpened);const r=this._panelOpened.getValue().type;this._panelOpened.next({opened:o,type:e,expand:i,oldType:r})}isPanelOpened(){return Array.from(this.panelMap.values()).some(i=>i)||this.isExternalPanelOpened()}closePanel(){this.panelMap.forEach((e,i)=>this.panelMap.set(i,!1)),this._panelOpened.next({opened:!1})}isChatPanelOpened(){return!!this.panelMap.get(Wt.CHAT)}isParticipantsPanelOpened(){return!!this.panelMap.get(Wt.PARTICIPANTS)}isActivitiesPanelOpened(){return!!this.panelMap.get(Wt.ACTIVITIES)}isSettingsPanelOpened(){return!!this.panelMap.get(Wt.SETTINGS)}isBackgroundEffectsPanelOpened(){return!!this.panelMap.get(Wt.BACKGROUND_EFFECTS)}isExternalPanelOpened(){return this.isExternalOpened}}return t.\u0275fac=function(e){return new(e||t)(ie(cr))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Jr=(()=>{return(t=Jr||(Jr={})).FRONT="FRONT",t.BACK="BACK",Jr;var t})(),ad=(()=>{return(t=ad||(ad={})).AUDIO_INPUT="audioinput",t.VIDEO_INPUT="videoinput",ad;var t})(),Ea=(()=>{return(t=Ea||(Ea={})).CE="CE",t.PRO="PRO",t.ENTERPRISE="ENTERPRISE",Ea;var t})();let sc=(()=>{class t{constructor(){}isMobile(){return this.isAndroid()||this.isIos()}isFirefox(){return/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)}isAndroid(){return/\b(\w*Android\w*)\b/.test(navigator.userAgent)&&/\b(\w*Mobile\w*)\b/.test(navigator.userAgent)}isIos(){return this.isIPhoneOrIPad(null==navigator?void 0:navigator.userAgent)}isIPhoneOrIPad(e){const i=/\b(\w*Macintosh\w*)\b/.test(e),o=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),r="ontouchend"in document;return(i||o)&&r}isSafariIos(){return this.isIos()&&this.isIOSWithSafari(null==navigator?void 0:navigator.userAgent)}isIOSWithSafari(e){return/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(e)&&!/\b(\w*CriOS\w*)\b/.test(e)&&!/\b(\w*FxiOS\w*)\b/.test(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ac=(()=>{class t{constructor(e,i,o,r){this.loggerSrv=e,this.platformSrv=i,this.storageSrv=o,this.libSrv=r,this.OV=null,this.cameras=[],this.microphones=[],this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0,this.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceInitDevices(){return J(this,void 0,void 0,function*(){this.clear(),this.OV=new fa.OpenVidu;try{yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0}),this.devices=yield this.getOpenViduDevices()}catch(e){this.deviceAccessDeniedError=e.name===fa.OpenViduErrorName.DEVICE_ACCESS_DENIED,this.deviceAccessDeniedError&&(this.disableVideoDevices(),this.disableAudioDevices())}finally{this.deviceAccessDeniedError?this.log.w("Media devices permissions were not granted."):(this.initializeCustomDevices(),this.updateAudioDeviceSelected(),this.updateVideoDeviceSelected(),this._isVideoMuted=this.storageSrv.isVideoMuted()||this.libSrv.videoMuted.getValue(),this._isAudioMuted=this.storageSrv.isAudioMuted()||this.libSrv.audioMuted.getValue(),this.log.d("Media devices",this.cameras,this.microphones))}})}refreshDevices(){return J(this,void 0,void 0,function*(){this.deviceAccessDeniedError||(this.devices=yield this.getOpenViduDevices(),this.initializeCustomDevices())})}initializeCustomDevices(e=!0){const o=this.devices.filter(s=>s.kind===ad.AUDIO_INPUT),r=this.devices.filter(s=>s.kind===ad.VIDEO_INPUT);o.length>0&&(this.microphones=[],o.forEach(s=>{this.microphones.push({label:s.label,device:s.deviceId})})),r.length>0&&(this.cameras=[],r.forEach((s,a)=>{const l={label:s.label,device:s.deviceId,type:Jr.BACK};this.platformSrv.isMobile()?l.label.toLowerCase().includes(Jr.FRONT.toLowerCase())&&(l.type=Jr.FRONT):0===a&&(l.type=Jr.FRONT),this.cameras.push(l)}))}updateAudioDeviceSelected(){if(this.microphones.length>0){const e=this.getMicrophoneFromStogare();e?this.microphoneSelected=e:this.microphones.length>0&&(this.microphoneSelected=this.deviceAccessDeniedError&&this.microphones.length>1?this.microphones[1]:this.microphones[0])}}updateVideoDeviceSelected(){if(this.cameras.length>0){const e=this.getCameraFromStorage();e?this.cameraSelected=e:this.cameras.length>0&&(this.cameraSelected=this.deviceAccessDeniedError&&this.cameras.length>1?this.cameras[1]:this.cameras[0])}}isVideoMuted(){return this.hasVideoDeviceAvailable()&&this._isVideoMuted}isAudioMuted(){return this.hasAudioDeviceAvailable()&&this._isAudioMuted}getCameraSelected(){return this.cameraSelected}getMicrophoneSelected(){return this.microphoneSelected}setCameraSelected(e){this.cameraSelected=this.getCameraByDeviceField(e),this.saveCameraToStorage(this.cameraSelected)}setMicSelected(e){this.microphoneSelected=this.getMicrophoneByDeviceField(e),this.saveMicrophoneToStorage(this.microphoneSelected)}needUpdateVideoTrack(e){var i;return(null===(i=this.cameraSelected)||void 0===i?void 0:i.device)!==e}needUpdateAudioTrack(e){var i;return(null===(i=this.microphoneSelected)||void 0===i?void 0:i.device)!==e}getCameras(){return this.cameras}getMicrophones(){return this.microphones}hasVideoDeviceAvailable(){return this.videoDevicesEnabled&&this.cameras.length>0}hasAudioDeviceAvailable(){return this.audioDevicesEnabled&&this.microphones.length>0}cameraNeedsMirror(e){var i;return(null===(i=this.getCameraByDeviceField(e))||void 0===i?void 0:i.type)===Jr.FRONT}disableVideoDevices(){this.videoDevicesEnabled=!1}disableAudioDevices(){this.audioDevicesEnabled=!1}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=null,this.microphoneSelected=null,this.videoDevicesEnabled=!0,this.audioDevicesEnabled=!0}getCameraByDeviceField(e){return this.cameras.find(i=>i.device===e||i.label===e)}getMicrophoneByDeviceField(e){return this.microphones.find(i=>i.device===e||i.label===e)}getMicrophoneFromStogare(){const e=this.storageSrv.getAudioDevice();if(e&&this.microphones.some(i=>i.device===e.device))return e}getCameraFromStorage(){const e=this.storageSrv.getVideoDevice();if(e&&this.cameras.some(i=>i.device===e.device))return e}saveCameraToStorage(e){this.storageSrv.setVideoDevice(e)}saveMicrophoneToStorage(e){this.storageSrv.setAudioDevice(e)}getOpenViduDevices(){var e;return J(this,void 0,void 0,function*(){return((yield null===(e=this.OV)||void 0===e?void 0:e.getDevices())||[]).filter(o=>!!o.label&&!!o.deviceId)})}}return t.\u0275fac=function(e){return new(e||t)(ie(cr),ie(sc),ie(Ho),ie(jt))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zo=(()=>{class t{constructor(e,i,o,r,s){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=o,this.participantService=r,this.deviceService=s,this.webcamToken="",this.screenToken="",this.videoSource=void 0,this.audioSource=void 0,this.log=this.loggerSrv.get("OpenViduService")}initialize(){this.OV=new fa.OpenVidu,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new fa.OpenVidu,this.openviduAngularConfigSrv.isProduction()&&this.OVScreen.enableProdMode(),this.screenSession=this.OVScreen.initSession())}setWebcamToken(e){this.webcamToken=e}setScreenToken(e){this.screenToken=e}getWebcamToken(){return this.webcamToken}getScreenToken(){return this.screenToken}isOpenViduCE(){return this.ovEdition===Ea.CE}isOpenViduPro(){return this.ovEdition===Ea.PRO}setOpenViduEdition(e){this.ovEdition=e}isSessionConnected(){return!!this.webcamSession.connection}clear(){var e,i,o,r;return J(this,void 0,void 0,function*(){this.videoSource=void 0,this.audioSource=void 0,yield null===(i=null===(e=this.participantService.getMyCameraPublisher())||void 0===e?void 0:e.stream)||void 0===i?void 0:i.disposeMediaStream(),yield null===(r=null===(o=this.participantService.getMyScreenPublisher())||void 0===o?void 0:o.stream)||void 0===r?void 0:r.disposeMediaStream()})}getSession(){return this.getWebcamSession()}getWebcamSession(){return this.webcamSession}isWebcamSessionConnected(){return!!this.webcamSession.capabilities}getScreenSession(){return this.screenSession}isScreenSessionConnected(){return!!this.screenSession.capabilities}connectSession(e,i){return J(this,void 0,void 0,function*(){if(i&&e){const o=this.participantService.getMyNickname(),r=this.participantService.getLocalParticipant().id;e===this.webcamSession?(this.log.d("Connecting webcam session"),yield this.webcamSession.connect(i,{clientData:o,participantId:r,type:on.CAMERA}),this.participantService.setMyCameraConnectionId(this.webcamSession.connection.connectionId)):e===this.screenSession&&(this.log.d("Connecting screen session"),yield this.screenSession.connect(i,{clientData:`${o}_${on.SCREEN}`,participantId:r,type:on.SCREEN}),this.participantService.setMyScreenConnectionId(this.screenSession.connection.connectionId))}})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(){return J(this,void 0,void 0,function*(){const e=this.deviceService.hasVideoDeviceAvailable(),i=this.deviceService.hasAudioDeviceAvailable(),o=!this.deviceService.isVideoMuted(),r=!this.deviceService.isAudioMuted();let s=!1,a=!1;e&&(s=this.deviceService.getCameraSelected().device),i&&(a=this.deviceService.getMicrophoneSelected().device);const c={videoSource:s,audioSource:a,publishVideo:o,publishAudio:r,mirror:this.deviceService.getCameraSelected()&&this.deviceService.getCameraSelected().type===Jr.FRONT};if(e||i){const u=yield this.initPublisher(void 0,c);return this.participantService.setMyCameraPublisher(u),this.participantService.updateLocalParticipant(),u}this.participantService.setMyCameraPublisher(null)})}initPublisher(e,i){return J(this,void 0,void 0,function*(){return this.log.d("Initializing publisher with properties: ",i),yield this.OV.initPublisherAsync(e,i)})}publish(e){var i,o,r,s;return J(this,void 0,void 0,function*(){if(e)if(e===this.participantService.getMyCameraPublisher()){if(null!==(o=null===(i=this.webcamSession)||void 0===i?void 0:i.capabilities)&&void 0!==o&&o.publish)return yield this.webcamSession.publish(e);this.log.e("Webcam publisher cannot be published")}else if(e===this.participantService.getMyScreenPublisher()){if(null!==(s=null===(r=this.screenSession)||void 0===r?void 0:r.capabilities)&&void 0!==s&&s.publish)return yield this.screenSession.publish(e);this.log.e("Screen publisher cannot be published")}})}unpublish(e){e&&(e===this.participantService.getMyCameraPublisher()?(this.publishAudioAux(this.participantService.getMyScreenPublisher(),this.participantService.isMyAudioActive()),this.webcamSession.unpublish(e)):e===this.participantService.getMyScreenPublisher()&&this.screenSession.unpublish(e))}publishVideo(e){return J(this,void 0,void 0,function*(){const i=this.participantService.isMyAudioActive();if(this.participantService.haveICameraAndScreenActive())yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e),this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyScreenPublisher(),i);else if(this.participantService.isOnlyMyScreenActive()){const o=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),!0),this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),o),this.participantService.enableWebcamStream()}else yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e)})}publishVideoAux(e,i){var o;return J(this,void 0,void 0,function*(){if(e){let r=!0;if(i){const s=null===(o=this.deviceService.getCameraSelected())||void 0===o?void 0:o.device;r=(yield this.createMediaStream({videoSource:s,audioSource:!1})).getVideoTracks()[0]}yield e.publishVideo(i,r),this.participantService.updateLocalParticipant()}})}publishAudio(e){return J(this,void 0,void 0,function*(){this.participantService.isMyCameraActive()?(this.participantService.isMyScreenActive()&&this.participantService.hasScreenAudioActive()&&this.publishAudioAux(this.participantService.getMyScreenPublisher(),!1),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e)):this.publishAudioAux(this.participantService.getMyScreenPublisher(),e)})}toggleScreenshare(){return J(this,void 0,void 0,function*(){if(this.participantService.haveICameraAndScreenActive())this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher());else if(this.participantService.isOnlyMyCameraActive()){const e=this.deviceService.hasAudioDeviceAvailable(),o=(!this.participantService.isMyCameraActive()||!this.participantService.isMyVideoActive())&&e&&this.participantService.isMyAudioActive(),r={videoSource:sd.SCREEN,audioSource:!!e&&this.deviceService.getMicrophoneSelected().device,publishVideo:!0,publishAudio:o,mirror:!1},s=yield this.initPublisher(void 0,r);s.once("accessAllowed",()=>J(this,void 0,void 0,function*(){s.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>J(this,void 0,void 0,function*(){this.log.d("Clicked native stop button. Stopping screen sharing"),yield this.toggleScreenshare()})),this.participantService.activeMyScreenShare(s),this.isScreenSessionConnected()||(yield this.connectSession(this.getScreenSession(),this.getScreenToken())),yield this.publish(this.participantService.getMyScreenPublisher()),this.participantService.isMyVideoActive()||(this.participantService.disableWebcamStream(),this.unpublish(this.participantService.getMyCameraPublisher()))})),s.once("accessDenied",a=>Promise.reject(a))}else{const e=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.getWebcamToken())),yield this.publish(this.participantService.getMyCameraPublisher()),this.publishAudioAux(this.participantService.getMyCameraPublisher(),e),this.participantService.enableWebcamStream(),this.participantService.disableScreenStream(),this.unpublish(this.participantService.getMyScreenPublisher())}})}publishAudioAux(e,i){e&&(e.publishAudio(i),this.participantService.updateLocalParticipant())}sendSignal(e,i,o){const r={data:JSON.stringify(o),type:e,to:i&&i.length>0?i:void 0};this.webcamSession.signal(r)}replaceTrack(e,i){return J(this,void 0,void 0,function*(){try{if(this.log.d(`Replacing ${e} track`,i),e===on.CAMERA){let o;const r=!!i.audioSource;if(i.videoSource){o=yield this.createMediaStream(i);const a=o.getVideoTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}else if(r){o=yield this.createMediaStream(i);const a=o.getAudioTracks()[0];yield this.participantService.getMyCameraPublisher().replaceTrack(a)}}else if(e===on.SCREEN)try{let o=yield this.OVScreen.getUserMedia(i);this.participantService.getMyScreenPublisher().stream.getMediaStream().getVideoTracks()[0].stop(),yield this.participantService.getMyScreenPublisher().replaceTrack(o.getVideoTracks()[0])}catch(o){this.log.w("Cannot create the new MediaStream",o)}}catch(o){this.log.e("Error replacing track ",o)}})}createMediaStream(e){return J(this,void 0,void 0,function*(){let i;const o=this.platformService.isFirefox(),r=!!e.audioSource,s=!!e.videoSource;try{i=yield this.OV.getUserMedia(e)}catch(a){a.name===fa.OpenViduErrorName.DEVICE_ACCESS_DENIED&&o&&(this.log.w("The device requested is not available. Restoring the older one"),s?e.videoSource=this.deviceService.getCameraSelected().device:r&&(e.audioSource=this.deviceService.getMicrophoneSelected().device),i=yield this.OV.getUserMedia(e))}finally{return i}})}needSendNicknameSignal(){let e;try{e=JSON.parse(this.webcamSession.connection.data.split("%/%")[0]).clientData}catch(i){this.log.e(i)}return e!==this.participantService.getMyNickname()}isMyOwnConnection(e){var i,o,r,s;return(null===(o=null===(i=this.webcamSession)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId)===e||(null===(s=null===(r=this.screenSession)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.connectionId)===e}getRemoteConnections(){return Array.from(this.webcamSession.remoteConnections.values()).filter(i=>{let o;return o=JSON.parse(i.data).type,o!==on.SCREEN})}disconnectSession(e){var i,o,r,s;e&&(e.sessionId===(null===(i=this.webcamSession)||void 0===i?void 0:i.sessionId)?(this.log.d("Disconnecting webcam session"),null===(o=this.webcamSession)||void 0===o||o.disconnect(),this.webcamSession=null):e.sessionId===(null===(r=this.screenSession)||void 0===r?void 0:r.sessionId)&&(this.log.d("Disconnecting screen session"),null===(s=this.screenSession)||void 0===s||s.disconnect(),this.screenSession=null))}}return t.\u0275fac=function(e){return new(e||t)(ie(jt),ie(sc),ie(cr),ie(Ti),ie(ac))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fy=(()=>{class t{constructor(e){this.storageService=e,this.langs=[{name:"English",ISO:"en-US"},{name:"Espa\xf1ol",ISO:"es-ES"},{name:"Deutsch",ISO:"de-DE"},{name:"Fran\xe7ais",ISO:"fr-FR"},{name:"\u4e2d\u56fd",ISO:"zh-CN"},{name:"\u0939\u093f\u0928\u094d\u0926\u0940",ISO:"hi-IN"},{name:"Italiano",ISO:"it-IT"},{name:"\u3084\u307e\u3068",ISO:"jp-JP"},{name:"Portugu\xeas",ISO:"pt-PT"}],this.captionLangSelected={name:"English",ISO:"en-US"},this._captionLangObs=new ce,this.captionsEnabled=!1;const i=this.storageService.getCaptionsLang(),o=this.langs.find(r=>r.ISO===i);this.captionLangSelected=i&&o?o:this.langs[0],this.captionLangObs=this._captionLangObs.asObservable()}setCaptionsEnabled(e){this.captionsEnabled=e}areCaptionsEnabled(){return this.captionsEnabled}setLanguage(e){const i=this.langs.find(o=>o.ISO===e);i&&i.ISO!==this.captionLangSelected.ISO&&(this.captionLangSelected=i,this.storageService.setCaptionLang(e),this._captionLangObs.next(this.captionLangSelected))}getLangSelected(){return this.captionLangSelected}getCaptionLanguages(){return this.langs}}return t.\u0275fac=function(e){return new(e||t)(ie(Ho))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),lP=(()=>{class t{constructor(e,i,o,r,s){this.panelService=e,this.openviduService=i,this.participantService=o,this.captionService=r,this.cd=s,this.captionEvents=[],this.DELETE_TIMEOUT=1e4,this.MAX_EVENTS_LIMIT=3}set captionEventRef(e){setTimeout(()=>{e&&(this.scrollContainer=e)},0)}ngOnInit(){return J(this,void 0,void 0,function*(){this.captionService.setCaptionsEnabled(!0),this.captionLangSelected=this.captionService.getLangSelected(),this.session=this.openviduService.getWebcamSession();for(const e of this.participantService.getRemoteParticipants()){const i=e.getCameraConnection().streamManager.stream;yield this.session.subscribeToSpeechToText(i,this.captionLangSelected.ISO)}this.subscribeToCaptionLanguage(),this.subscribeToPanelToggling(),this.subscribeToTranscription()})}ngOnDestroy(){return J(this,void 0,void 0,function*(){this.captionService.setCaptionsEnabled(!1),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.session.off("speechToTextMessage"),this.captionEvents=[];for(const e of this.participantService.getRemoteParticipants()){const i=e.getCameraConnection().streamManager.stream;yield this.session.unsubscribeFromSpeechToText(i)}})}onSettingsCliked(){this.panelService.togglePanel(Wt.SETTINGS,rc.CAPTIONS)}subscribeToTranscription(){this.session.on("speechToTextMessage",e=>{var i;clearInterval(this.deleteAllTimeout);const{connectionId:o,data:r}=e.connection,s=this.participantService.getNicknameFromConnectionData(r),a=(null===(i=this.participantService.getRemoteParticipantByConnectionId(o))||void 0===i?void 0:i.colorProfile)||"";this.updateCaption({connectionId:o,nickname:s,color:a,text:e.text,type:e.reason}),this.deleteAllEventsAfterDelay(this.DELETE_TIMEOUT),this.cd.markForCheck()})}updateCaption(e){let i=[...this.captionEvents],o=i.length;if(0===o)i.push(e);else{const r=i[o-1],a="recognized"===r.type;if(r.connectionId===e.connectionId)a?e.text!==r.text&&(this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)):(r.text=e.text,r.type=e.type);else if(i.some(c=>c.connectionId===e.connectionId))if(a)this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e);else{const c=i.find(u=>u.connectionId===e.connectionId);c&&("recognized"===c.type?i.push(e):(c.text=e.text,c.type=e.type))}else this.deleteFirstEventAfterDelay(this.DELETE_TIMEOUT),i.push(e)}i.length===this.MAX_EVENTS_LIMIT&&(clearInterval(this.deleteFirstTimeout),i.shift()),this.captionEvents=[...i],this.scrollToBottom()}deleteFirstEventAfterDelay(e){this.deleteFirstTimeout=setTimeout(()=>{this.captionEvents.shift(),this.cd.markForCheck()},e)}deleteAllEventsAfterDelay(e){this.deleteAllTimeout=setTimeout(()=>{this.captionEvents=[],this.cd.markForCheck()},e)}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>{this.captionLangSelected=e,this.cd.markForCheck()})}subscribeToPanelToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.settingsPanelOpened=e.opened,setTimeout(()=>this.cd.markForCheck(),300)})}scrollToBottom(){setTimeout(()=>{try{this.scrollContainer.forEach((e,i)=>{var o;e.nativeElement.scroll({top:null===(o=this.scrollContainer.get(i))||void 0===o?void 0:o.nativeElement.scrollHeight,left:0})})}catch(e){}},20)}}return t.\u0275fac=function(e){return new(e||t)(h(So),h(zo),h(Ti),h(fy),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-captions"]],viewQuery:function(e,i){if(1&e&&Mt(gX,5),2&e){let o;Ne(o=Le())&&(i.captionEventRef=o)}},decls:6,vars:12,consts:[[1,"captions-container"],["captionsContainer",""],["class","captions-offset",3,"ngClass",4,"ngIf"],[1,"captions-center-container",3,"ngClass"],["class","element",4,"ngFor","ngForOf"],["class","captions-offset",4,"ngIf"],[1,"captions-offset",3,"ngClass"],["id","caption-settings-btn","mat-flat-button","",3,"click"],["id","subtitle-settings-icon"],[1,"element"],["id","speaker",3,"ngStyle"],["id","caption-event",1,"caption-event",3,"ngClass"],["captionEventElement",""],["id","caption-text",1,"caption-text"],[1,"captions-offset"]],template:function(e,i){if(1&e&&(R(0,"div",0,1),ee(2,vX,6,4,"div",2),R(3,"div",3),ee(4,yX,7,9,"div",4),L(),ee(5,CX,1,0,"div",5),L()),2&e){const o=io(1);w(2),B("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened),w(1),B("ngClass",CA(4,EX,1===i.captionEvents.length,2===i.captionEvents.length,3===i.captionEvents.length,o.offsetWidth>=1e3,o.offsetWidth>=960&&o.offsetWidth<1e3,o.offsetWidth>=600&&o.offsetWidth<960,o.offsetWidth<600)),w(1),B("ngForOf",i.captionEvents),w(1),B("ngIf",o.offsetWidth>=600&&!i.settingsPanelOpened)}},dependencies:[$i,No,nn,pl,Ln,gi,Ar,Hb],styles:[".captions-container[_ngcontent-%COMP%]{display:flex;height:var(--ov-captions-height, 230px);margin:0 10px}.captions-offset[_ngcontent-%COMP%]{height:var(--ov-captions-height, 230px);width:15%;text-align:center}.captions-offset-xl[_ngcontent-%COMP%]{width:25%!important}.captions-center-container[_ngcontent-%COMP%]{flex-grow:1;align-self:center;max-height:var(--ov-captions-height, 230px);width:70%;overflow:hidden;height:var(--ov-captions-height, 230px);padding:0px 10vw}.captions-center-container.screen-xl[_ngcontent-%COMP%]{padding:0px 14vw}.captions-center-container.screen-xl[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:22px}.captions-center-container.screen-xl[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:16px}.captions-center-container.screen-xl.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-xl.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xl.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-md[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-md[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:14px}.captions-center-container.screen-md.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:140px}.captions-center-container.screen-md.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-md.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container.screen-sm[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-sm[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-sm[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-sm.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:127px}.captions-center-container.screen-sm.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:64px}.captions-center-container.screen-sm.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:33px}.captions-center-container.screen-xs[_ngcontent-%COMP%]{padding:0px 2vw}.captions-center-container.screen-xs[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:20px}.captions-center-container.screen-xs[_ngcontent-%COMP%] #speaker[_ngcontent-%COMP%]{font-size:12px}.captions-center-container.screen-xs.events-one[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:130px}.captions-center-container.screen-xs.events-two[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:69px}.captions-center-container.screen-xs.events-three[_ngcontent-%COMP%] .caption-event[_ngcontent-%COMP%]{max-height:35px}.captions-center-container[_ngcontent-%COMP%] .going-to-disappear[_ngcontent-%COMP%]{max-height:30px!important}#caption-settings-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-secondary-color)}#caption-settings-icon[_ngcontent-%COMP%]{font-size:15px;height:15px;width:15px;padding-right:5px}#speaker[_ngcontent-%COMP%]{margin-bottom:2px;font-weight:700;margin-left:-5px;width:fit-content}.captions-center-container[_ngcontent-%COMP%] .element[_ngcontent-%COMP%]{margin:8px 0}.caption-event[_ngcontent-%COMP%]{overflow:auto;pointer-events:none}.caption-text[_ngcontent-%COMP%], #speaker[_ngcontent-%COMP%]{color:var(--ov-text-color);font-family:Roboto,arial,sans-serif}.caption-text[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);padding:4.5px;line-height:1.6;word-break:break-word}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"],data:{animation:[Qi("captionAnimation",[Wn(":enter",[Ft({opacity:0}),Xn("50ms ease-in",Ft({opacity:1}))])])]},changeDetection:0}),t})(),yie=(()=>{class t{constructor(){}transform(e){let i=[];return e&&Object.keys(e).length>0&&(Array.isArray(e)?e.forEach(o=>{i=i.concat(o.getAvailableConnections())}):i=e.getAvailableConnections()),i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Qn({name:"streams",type:t,pure:!0}),t})(),Cie=(()=>{class t{constructor(e){this.translateService=e}transform(e){let i="";const r=(null==e?void 0:e.getConnectionTypesActive().toString()).split(",");return r.forEach((s,a)=>{i+=this.translateService.translate(`PANEL.PARTICIPANTS.${s}`),r.length>0&&a<r.length-1&&(i+=", ")}),`(${i})`}}return t.\u0275fac=function(e){return new(e||t)(h(tc,16))},t.\u0275pipe=Qn({name:"streamTypesEnabled",type:t,pure:!0}),t})(),py=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.participantService=i,this.cd=o,this.remoteParticipants=[],this.captionsEnabled=!0}set externalStream(e){e&&(this.streamTemplate=e.template)}ngOnInit(){this.subscribeToParticipants(),this.subscribeToCaptions()}ngAfterViewInit(){this.layoutService.initialize(this.layoutContainer.element.nativeElement)}ngOnDestroy(){this.localParticipant=null,this.remoteParticipants=[],this.localParticipantSubs&&this.localParticipantSubs.unsubscribe(),this.remoteParticipantsSubs&&this.remoteParticipantsSubs.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe(),this.layoutService.clear()}subscribeToCaptions(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck(),this.layoutService.update()})}subscribeToParticipants(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.layoutService.update(),this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{this.remoteParticipants=e,this.layoutService.update(),this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(Ca),h(Ti),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-layout"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,SX,5,yt),nt(o,aP,5)),2&e){let r;Ne(r=Le())&&(i.streamTemplate=r.first),Ne(r=Le())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(j1,5,pn),2&e){let o;Ne(o=Le())&&(i.layoutContainer=o.first)}},decls:8,vars:9,consts:[[1,"container"],["id","layout",1,"layout"],["layout",""],["class","OT_root OT_publisher",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher","id","remote-participant",3,"ngClass",4,"ngFor","ngForOf"],["class","OV_ignored",4,"ngIf"],[1,"OT_root","OT_publisher",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","remote-participant",1,"OT_root","OT_publisher",3,"ngClass"],[1,"OV_ignored"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1,2),ee(3,wX,2,7,"div",3),Me(4,"streams"),ee(5,MX,2,7,"div",4),Me(6,"streams"),L(),ee(7,TX,1,0,"ov-captions",5),L()),2&e&&(ft("withCaptions",i.captionsEnabled),w(3),B("ngForOf",Re(4,5,i.localParticipant)),w(2),B("ngForOf",Re(6,7,i.remoteParticipants)),w(2),B("ngIf",i.captionsEnabled))},dependencies:[$i,No,nn,ds,Ar,lP,yie],styles:['#remote-participant[_ngcontent-%COMP%], .container[_ngcontent-%COMP%]{height:100%}.withCaptions[_ngcontent-%COMP%]{height:calc(100% - var(--ov-captions-height, 250px))!important}.layout[_ngcontent-%COMP%]{position:relative;inset:0;min-width:350px!important;min-height:100%;width:inherit;height:-webkit-fill-available;height:-moz-available}.OT_root[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff;margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline}.OT_dialog-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_dialog-centering-child[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_dialog[_ngcontent-%COMP%]{position:relative;box-sizing:border-box;margin-right:auto;margin-left:auto;color:#fff;font-family:Ubuntu,sans-serif;font-size:13px;line-height:1.4}.OT_dialog[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{font-family:inherit;box-sizing:inherit}.OT_closeButton[_ngcontent-%COMP%]{color:#999;cursor:pointer;font-size:32px;line-height:36px;position:absolute;right:18px;top:0}.OT_dialog-messages[_ngcontent-%COMP%]{text-align:center}.OT_dialog-messages-main[_ngcontent-%COMP%]{margin-bottom:36px;line-height:36px;font-weight:300;font-size:24px}.OT_dialog-messages-minor[_ngcontent-%COMP%]{margin-bottom:18px;font-size:13px;line-height:18px;color:#a4a4a4}.OT_dialog-messages-minor[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff}.OT_dialog-actions-card[_ngcontent-%COMP%]{display:inline-block}.OT_dialog-button-title[_ngcontent-%COMP%]{margin-bottom:18px;line-height:18px;font-weight:300;text-align:center;font-size:14px;color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#999}.OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:link, .OT_dialog-button-title[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:active{color:#02a1de}.OT_dialog-button-title[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#fff;font-weight:100;display:block}.OT_dialog-button[_ngcontent-%COMP%]{display:inline-block;margin-bottom:18px;padding:0 1em;background-color:#1ca3dc;text-align:center;cursor:pointer}.OT_dialog-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.OT_dialog-button-large[_ngcontent-%COMP%]{line-height:36px;padding-top:9px;padding-bottom:9px;font-weight:100;font-size:24px}.OT_dialog-button-small[_ngcontent-%COMP%]{line-height:18px;padding-top:9px;padding-bottom:9px;background-color:#444;color:#999;font-size:16px}.OT_dialog-progress-bar[_ngcontent-%COMP%]{display:inline-block;width:100%;margin-top:5px;margin-bottom:41px;border:1px solid #4e4e4e;height:8px}.OT_dialog-progress-bar-fill[_ngcontent-%COMP%]{height:100%;background-color:#29a4da}.OT_dialog-plugin-upgrading[_ngcontent-%COMP%] .OT_dialog-plugin-upgrade-percentage[_ngcontent-%COMP%]{line-height:54px;font-size:48px;font-weight:100}.OT_centered[_ngcontent-%COMP%]{position:fixed;left:50%;top:50%;margin:0}.OT_dialog-hidden[_ngcontent-%COMP%]{display:none}.OT_dialog-button-block[_ngcontent-%COMP%]{display:block}.OT_dialog-no-natural-margin[_ngcontent-%COMP%]{margin-bottom:0}.OT_publisher[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]{position:relative;min-width:0px;min-height:0px;padding:3px;transition-duration:.1s;transition-timing-function:ease-in-out}.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:block;position:absolute;width:100%;height:100%;transform-origin:0 0}.OT_subscriber_error[_ngcontent-%COMP%]{background-color:#000;color:#fff;text-align:center}.OT_subscriber_error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{padding:20px}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{-ms-box-sizing:border-box;box-sizing:border-box;top:0;left:0;right:0;display:block;height:34px;position:absolute}.OT_publisher[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%]{background:rgba(0,0,0,.4)}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{z-index:1}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{background-color:transparent;color:#fff;font-size:15px;line-height:34px;font-weight:400;padding:0 4px 0 36px}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;left:34px;padding:0 4px;color:#fffc;font-size:15px;line-height:34px;font-weight:400}.OT_micro[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_micro[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_archiving-status[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_archiving-status[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_archiving-light-box[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);top:auto;bottom:0;right:auto;width:34px;height:34px}.OT_archiving-light[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:30px;position:absolute;top:14px;left:14px;background-color:#575757;box-shadow:0 0 5px 1px #575757}.OT_archiving-light.OT_active[_ngcontent-%COMP%]{background-color:#970d13;animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;-moz-animation:OT_pulse 1.3s ease-in;-webkit-animation:OT_pulse 1.3s ease-in;animation-iteration-count:infinite;-moz-animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite}.OT_mini[_ngcontent-%COMP%] .OT_bar[_ngcontent-%COMP%], .OT_bar.OT_mode-mini[_ngcontent-%COMP%], .OT_bar.OT_mode-mini-auto[_ngcontent-%COMP%]{bottom:0;height:auto}.OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-off[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%] .OT_name.OT_mode-auto[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_name.OT_mode-auto[_ngcontent-%COMP%]{display:none}.OT_publisher[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_name[_ngcontent-%COMP%]{left:10px;right:37px;height:34px;padding-left:0}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{border:none;cursor:pointer;display:block;position:absolute;text-align:center;text-indent:-9999em;background-color:transparent;background-repeat:no-repeat}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{right:0;top:0;border-left:1px solid rgba(255,255,255,.2);height:36px;width:37px}.OT_mini[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%], .OT_publisher.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%]{top:50%;left:50%;right:auto;margin-top:-18px;margin-left:-18.5px;border-left:none}.OT_publisher[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAcCAMAAAC02HQrAAAA1VBMVEUAAAD3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pn3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj3+Pj39/j3+Pj3+Pn4+Pk/JRMlAAAAQ3RSTlMABAUHCQoLDhAQERwdHiAjLjAxOD9ASFBRVl1mbnZ6fH2LjI+QkaWqrrC1uLzAwcXJycrL1NXj5Ofo6u3w9fr7/P3+d4M3+QAAAQBJREFUGBlVwYdCglAABdCLlr5Unijm3hMUtBzlBLSr//9JgUToOQgVJgceJgU8aHgMeA38K50ZOpcQmTPwcyXn+JM8M3JJIqQypiIkeXelTyIkGZPwKS1NMia1lgKTVkaE3oQQGYsmHNqSMWnTgUFbMiZtGlD2dpaxrL1XgM0i4ZK8MeAmFhsAs29MGZniawagS63oMOQUNXYB5D0D1RMDpyoMLw/fiE2og/V+PVDR5AiBl0/2Uwik+vx4xV3a5G5Ye68Nd1czjUjZckm6VhmPciRzeCZICjwTJAViQq+3e+St167rAoHK8sLYZVkBYPCZAZ/eGa+2R5LH7Wrc0YFf/O9J3yBDFaoAAAAASUVORK5CYII=);background-position:9px 5px}.OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAdCAYAAABFRCf7AAADcElEQVRIiaWVXWhcRRTHf7NNd2aDtUKMIjTpg4ufFIuiUOmDEWm0Vi3VYhXRqIggQh4sWJFSig9+oOhTKSpIRUWMIBIr2kptoTbgU6ooxCiIjR+14kcJmf9sNceHnd3ebnc3Uv9wuXfOzPzmnDMz5zozGwdWAbc65w5RUJQ8cC2wDJgFJioh/MJCMrNxq2vOzK4HmIvRRemxKP0RJWt53o7S+d2Yzsx6gQ+AIUDAnUqpBLzXZd4RYFUlhB/bdZacc3PAOmAcCMC7wfvFwLNdoAPAyx09bXyYWRl4E7gDmAdGlNKFwLYu8GolhO9O87RJd64GbMrgEvB68P4osMWdXLtVV7czlooNpVRWSs8DO7NpR/B+3rBHsvetCgtCMTxwQCm9BbyQrc8F7/uBex3uRCeXO0PrUZ4NfKyUPgWeyj3bg/crDNsIRGwBaJQGorQ3Svdn2wHgc2BUKb0DPJHtjwfvbwRucc7tz+N+i9LFUdoXpfVN36I0CVwBTFI/q9e1LPxT8P4qYEdu70q12mYzWw1MYQzjeJF6zq+shHC4B7jklOBPP/TzSunh4P0DwKvAfb5c9krpe+CcwsEoZdbhEvBM9wxRAl5RShcA9wAngE3B+8tLpdLuwrhp4MNmK0pfRWkySr7NXS8+L5nZbWZWy/Vin1IaitJnUTqvwevJ71lgSSWEFKUfHG7Q2m/xqFJaGry/GXgfGPLl8mJgrXPur2JoUC8Qy3OpG+sAbGhEKT0ErAWOA6uBPWbW1wr9BOgFbgKezot0kAPYqJQA1gC/A9cA+82svzksSn1R+jNKX0SpnM/e1x3yqig92JhrZivM7FjO8bSZLSuCR/Ok16K0KMNHojQWpYko7Y7S1igN5PE3ROl4lNaZ2UVmNpPBU01orvZvZPCeKFXbBR+lEKVtUapFaSZKg9njqpl9aWYTrmXCImA7sCWb9lK/jj9TrwkrgA1AH3AQuKsSwkzbrLfxpgpsBtYDxf/R3xm2ExirhNCuHHZXTsmRwiat+S/zSt06eysVA/4pmGr/G3qm6ik28v29FKgCg8BS6pvS0KNRGgZ+Bb4FpsxsOkfUlMuwDcBWYOUZOHYM2AU8WQmhBifDv70O7PjX7KZ+4G7g3FM8zd6uBIaBy4AqxnIcZwFLCovPAhE4Sj38b4BDwEeVEFKD9S94Khjn486v3QAAAABJRU5ErkJggg==);background-position:9px 4px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAATCAYAAAB7u5a2AAABx0lEQVQ4jaWUv48NURiGn3ONmCs32ZBd28ht1gqyZAkF21ylQkEiSp2ehpDlD1BoFGqqVdJohYKI7MaPxMoVNghCWMF+7ybLUewnOXfcMWO9yeQ857zne8+XmZOBGjJpr0kvTIomvTZpS526UCO4DUwD64FjwCFgqZnnR+oc8LfgzKQ73vGsr42ZtGjSQFV9o8KfBCacZwCaef4YmAf2rzjcpN3A2WSpm/AssKcqPDNpDBjs410CViXzTwk/A7b1C4wxDgOngAsZcAXY2buDfp/6S4F3lDS8DjgBzDWAjX/Y/e/QgYS/AhsKHa+OMQ6GEJ4Cj4BOAxgq6aCowyZtdf4OtAr+FHDO+R4wWnVbihr3cQnICt4boO38GWj9a/icjwOACt4m4K3zEPA+AxaAtTWCnwN3lzHkEL8V/OPAGud9wK2GF9XR1Wae/1zG2AI+pGYI4VUIoRtjHAc2A9cz4LRPevYCZ+i9/4sJt4GXJU10gaPAzdI2TTro/5Tfz8XEe2LSZGmxq/SDNvP8BnA5WRrx4BwYBe6vONx1EnjovGvBLAAd4Adwuyq8UiaNmDTvr+a8SQ9MuvbfwckBHZPe+QEfTdpep+4XZmPBHiHgz74AAAAASUVORK5CYII=);background-position:8px 7px}.OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_active[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAACtklEQVQ4jZ2VSYiURxTHf+/T9Nc9iRrBuYySmIsXUU9iFMEFERRBvAjJLUQi5ioiHvSScfTmgqC4XAT1ZIgLuJHkICaaQAgKI2hAUBT30bjUq7bbv4eukXK029F3+eqtv/fqK6qQdEnSNUmT6CDB/bvgfjO4N9zj2RD8007xg1IABkwEzkma0qb4PGAPMBZYLtSD8eNwAEjqTlNI0gNJM4YU7w7ut4O7gvuhZFsR3C8NC5BBLiTIY0mzM8AvqbiC++pk+zLpE95XuwAws3vAQuBPYDRwWtL84P4tsDSLv5oaug4EYOawAMF9jMdoLxqNZcDvQA04UVYqL4G/svj7AF21mhJscrvCksYBFO7xc2AAGGg2mrdjvf4rcAyomNn+slLZmUEGBgsYdh945xZJmgvckDSrEJpK6ySBgV6q12O8ABwGPjGzfWWlsjdN9rpjoSfA+DYDXARGAksK4Is3XC1Ub4z1f4CDQGFmu6tleQSYk0U+p7WVeefLJc00s4fAeWB6Qeunvj0m2ugx9gO7kmlrtSxvBfcy6fXUZS6rgG/S+jLQUwCVNmMC9HqM14EtSe+rluWazN8YEv8IqKZ1E1qnaIDO0ucx3gX6kv6TpM3AM+D/IbGjgP60/gq4WQA33gMA2OQxPgHWJX1ttSwL4FAeZGYLgB2SasBs4A8L7qOBf9M0uXQB3a+TMYSmVctyDrA9mfcBK82smSdKWgCcAaa1bTm4fxbc/8uuCQX3RanAD5Ka6Wo5IGnE0HxJPZ03pQX5Org3MsD3AO5xXLPZXJ9BjkrqdFg6QjZkgG3Jtsw93pG0VFI9QU5K6voYQBHcTydAfwheBI9HgvvPAJIWS3qeIL9JGvUxkO7gfi1BrqTvwkG/pPmSnibIqTzXPgAyEVgBjAEu1qrVPbk/PVTHgb/NbPGg/RVIzOQqzSTBaQAAAABJRU5ErkJggg==);background-position:7px 7px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%]{transition-property:top,bottom,opacity;transition-duration:.5s;transition-timing-function:ease-in}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:-25px;opacity:0}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-off[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-mini-auto[_ngcontent-%COMP%]{top:auto;bottom:-25px}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_mode-auto.OT_mode-on-hold[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-auto[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_mode-mini-auto[_ngcontent-%COMP%]{top:0;opacity:1}.OT_mini[_ngcontent-%COMP%] .OT_mute.OT_mode-on[_ngcontent-%COMP%], .OT_mini[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-auto[_ngcontent-%COMP%], .OT_mute.OT_mode-mini[_ngcontent-%COMP%], .OT_root[_ngcontent-%COMP%]:hover .OT_mute.OT_mode-mini-auto[_ngcontent-%COMP%]{top:50%}.OT_publisher[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%] .OT_edge-bar-item.OT_edge-bottom.OT_mode-on[_ngcontent-%COMP%], .OT_publisher[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%], .OT_subscriber[_ngcontent-%COMP%]:hover .OT_edge-bar-item.OT_edge-bottom.OT_mode-auto[_ngcontent-%COMP%]{top:auto;bottom:0;opacity:1}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;background-color:#000000bf}.OT_root[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%] .OT_video-loading-spinner[_ngcontent-%COMP%]{background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAtMjAgMjQwIDI0MCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4Mj0iMCIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjA4Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSIxIiB4Mj0iMCIgeTE9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMDgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjE2Ii8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImQiIHgyPSIwIiB5MT0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii4xNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuMzMiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDI9IjEiIHkxPSIxIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjMzIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii42NiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJmIiB4Mj0iMSIgeTI9IjEiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNjYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiLz48L2xpbmVhckdyYWRpZW50PjxtYXNrIGlkPSJnIj48ZyBmaWxsPSJub25lIiBzdHJva2Utd2lkdGg9IjQwIj48cGF0aCBzdHJva2U9InVybCgjYSkiIGQ9Ik04Ni42LTUwYTEwMCAxMDAgMCAwIDEgMCAxMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2IpIiBkPSJNODYuNiA1MEExMDAgMTAwIDAgMCAxIDAgMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNjKSIgZD0iTTAgMTAwYTEwMCAxMDAgMCAwIDEtODYuNi01MCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAwIDEwMCkiLz48cGF0aCBzdHJva2U9InVybCgjZCkiIGQ9Ik0tODYuNiA1MGExMDAgMTAwIDAgMCAxIDAtMTAwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjxwYXRoIHN0cm9rZT0idXJsKCNlKSIgZD0iTS04Ni42LTUwQTEwMCAxMDAgMCAwIDEgMC0xMDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwMCAxMDApIi8+PHBhdGggc3Ryb2tlPSJ1cmwoI2YpIiBkPSJNMC0xMDBhMTAwIDEwMCAwIDAgMSA4Ni42IDUwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDAgMTAwKSIvPjwvZz48L21hc2s+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHg9Ii0yMCIgeT0iLTIwIiBtYXNrPSJ1cmwoI2cpIiBmaWxsPSIjZmZmIi8+PC9zdmc+) no-repeat;position:absolute;width:32px;height:32px;left:50%;top:50%;margin-left:-16px;margin-top:-16px;animation:OT_spin 2s linear infinite}@keyframes OT_spin{to{transform:rotate(360deg)}}.OT_publisher.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%], .OT_subscriber.OT_loading[_ngcontent-%COMP%] .OT_video-loading[_ngcontent-%COMP%]{display:block}.OT_video-centering[_ngcontent-%COMP%]{display:table;width:100%;height:100%}.OT_video-container[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.OT_video-poster[_ngcontent-%COMP%]{position:absolute;z-index:1;width:100%;height:100%;display:none;opacity:.25;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDcxIDQ2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48bGluZWFyR3JhZGllbnQgaWQ9ImEiIHgyPSIwIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSI2Ni42NiUiIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZmlsbD0idXJsKCNhKSIgZD0iTTc5IDMwOGMxNC4yNS02LjUgNTQuMjUtMTkuNzUgNzEtMjkgOS0zLjI1IDI1LTIxIDI1LTIxczMuNzUtMTMgMy0yMmMtMS43NS02Ljc1LTE1LTQzLTE1LTQzLTIuNSAzLTQuNzQxIDMuMjU5LTcgMS0zLjI1LTcuNS0yMC41LTQ0LjUtMTYtNTcgMS4yNS03LjUgMTAtNiAxMC02LTExLjI1LTMzLjc1LTgtNjctOC02N3MuMDczLTcuMzQ2IDYtMTVjLTMuNDguNjM3LTkgNC05IDQgMi41NjMtMTEuNzI3IDE1LTIxIDE1LTIxIC4xNDgtLjMxMi0xLjMyMS0xLjQ1NC0xMCAxIDEuNS0yLjc4IDE2LjY3NS04LjY1NCAzMC0xMSAzLjc4Ny05LjM2MSAxMi43ODItMTcuMzk4IDIyLTIyLTIuMzY1IDMuMTMzLTMgNi0zIDZzMTUuNjQ3LTguMDg4IDQxLTZjLTE5Ljc1IDItMjQgNi0yNCA2czc0LjUtMTAuNzUgMTA0IDM3YzcuNSA5LjUgMjQuNzUgNTUuNzUgMTAgODkgMy43NS0xLjUgNC41LTQuNSA5IDEgLjI1IDE0Ljc1LTExLjUgNjMtMTkgNjItMi43NSAxLTQtMy00LTMtMTAuNzUgMjkuNS0xNCAzOC0xNCAzOC0yIDQuMjUtMy43NSAxOC41LTEgMjIgMS4yNSA0LjUgMjMgMjMgMjMgMjNsMTI3IDUzYzM3IDM1IDIzIDEzNSAyMyAxMzVMMCA0NjRzLTMtOTYuNzUgMTQtMTIwYzUuMjUtNi4yNSAyMS43NS0xOS43NSA2NS0zNnoiLz48L3N2Zz4=);background-size:auto 76%}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:cover}@media only screen and (orientation: portrait){.OT_subscriber.OT_ForceContain.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain!important}}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{object-fit:contain}.OT_fit-mode-cover[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center bottom}.OT_fit-mode-contain[_ngcontent-%COMP%] .OT_video-poster[_ngcontent-%COMP%]{background-position:center}.OT_audio-level-meter[_ngcontent-%COMP%]{position:absolute;width:25%;max-width:224px;min-width:21px;top:0;right:0;overflow:hidden}.OT_audio-level-meter[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__bar[_ngcontent-%COMP%]{position:absolute;width:192%;height:192%;top:-96%;right:-96%;border-radius:50%;background-color:#000c}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]{position:absolute;top:22%;right:15%;width:40%;opacity:.7;background:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNzkgODYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTkuNzU3IDQwLjkyNGMzLjczOC01LjE5MSAxMi43MTEtNC4zMDggMTIuNzExLTQuMzA4IDIuMjIzIDMuMDE0IDUuMTI2IDI0LjU4NiAzLjYyNCAyOC43MTgtMS40MDEgMS4zMDEtMTEuNjExIDEuNjI5LTEzLjM4LTEuNDM2LTEuMjI2LTguODA0LTIuOTU1LTIyLjk3NS0yLjk1NS0yMi45NzV6bTU4Ljc4NSAwYy0zLjczNy01LjE5MS0xMi43MTEtNC4zMDgtMTIuNzExLTQuMzA4LTIuMjIzIDMuMDE0LTUuMTI2IDI0LjU4Ni0zLjYyNCAyOC43MTggMS40MDEgMS4zMDEgMTEuNjExIDEuNjI5IDEzLjM4LTEuNDM2IDEuMjI2LTguODA0IDIuOTU1LTIyLjk3NSAyLjk1NS0yMi45NzV6Ii8+PHBhdGggZD0iTTY4LjY0NyA1OC42Yy43MjktNC43NTMgMi4zOC05LjU2MSAyLjM4LTE0LjgwNCAwLTIxLjQxMi0xNC4xMTUtMzguNzctMzEuNTI4LTM4Ljc3LTE3LjQxMiAwLTMxLjUyNyAxNy4zNTgtMzEuNTI3IDM4Ljc3IDAgNC41NDEuNTE1IDguOTM2IDEuODAyIDEyLjk1IDEuNjk4IDUuMjk1LTUuNTQyIDYuOTkxLTYuNjE2IDIuMDczQzIuNDEgNTUuMzk0IDAgNTEuNzg3IDAgNDguMTAzIDAgMjEuNTM2IDE3LjY4NSAwIDM5LjUgMCA2MS4zMTYgMCA3OSAyMS41MzYgNzkgNDguMTAzYzAgLjcxOC0yLjg5OSA5LjY5My0zLjI5MiAxMS40MDgtLjc1NCAzLjI5My03Ljc1MSAzLjU4OS03LjA2MS0uOTEyeiIvPjxwYXRoIGQ9Ik01LjA4NCA1MS4zODVjLS44MDQtMy43ODIuNTY5LTcuMzM1IDMuMTM0LTcuOTIxIDIuNjM2LS42MDMgNS40ODUgMi4xNSA2LjI4OSA2LjEzMi43OTcgMy45NDgtLjc1MiA3LjQ1Ny0zLjM4OCA3Ljg1OS0yLjU2Ni4zOTEtNS4yMzctMi4zMTgtNi4wMzQtNi4wN3ptNjguODM0IDBjLjgwNC0zLjc4Mi0uNTY4LTcuMzM1LTMuMTMzLTcuOTIxLTIuNjM2LS42MDMtNS40ODUgMi4xNS02LjI4OSA2LjEzMi0uNzk3IDMuOTQ4Ljc1MiA3LjQ1NyAzLjM4OSA3Ljg1OSAyLjU2NS4zOTEgNS4yMzctMi4zMTggNi4wMzQtNi4wN3ptLTIuMDM4IDguMjg4Yy0uOTI2IDE5LjY1OS0xNS4xMTIgMjQuNzU5LTI1Ljg1OSAyMC40NzUtNS40MDUtLjYwNi0zLjAzNCAxLjI2Mi0zLjAzNCAxLjI2MiAxMy42NjEgMy41NjIgMjYuMTY4IDMuNDk3IDMxLjI3My0yMC41NDktLjU4NS00LjUxMS0yLjM3OS0xLjE4Ny0yLjM3OS0xLjE4N3oiLz48cGF0aCBkPSJNNDEuNjYyIDc4LjQyMmw3LjU1My41NWMxLjE5Mi4xMDcgMi4xMiAxLjE1MyAyLjA3MiAyLjMzNWwtLjEwOSAyLjczOGMtLjA0NyAxLjE4Mi0xLjA1MSAyLjA1NC0yLjI0MyAxLjk0NmwtNy41NTMtLjU1Yy0xLjE5MS0uMTA3LTIuMTE5LTEuMTUzLTIuMDcyLTIuMzM1bC4xMDktMi43MzdjLjA0Ny0xLjE4MiAxLjA1Mi0yLjA1NCAyLjI0My0xLjk0N3oiLz48L2c+PC9zdmc+) no-repeat center}.OT_audio-level-meter__audio-only-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:100%}.OT_audio-level-meter__value[_ngcontent-%COMP%]{position:absolute;border-radius:50%;background-image:radial-gradient(circle,rgba(151,206,0,1) 0%,rgba(151,206,0,0) 100%)}.OT_audio-level-meter.OT_mode-off[_ngcontent-%COMP%]{display:none}.OT_audio-level-meter.OT_mode-on[_ngcontent-%COMP%], .OT_audio-only[_ngcontent-%COMP%] .OT_audio-level-meter.OT_mode-auto[_ngcontent-%COMP%]{display:block}.OT_audio-only.OT_publisher[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%], .OT_audio-only.OT_subscriber[_ngcontent-%COMP%] .OT_video-element[_ngcontent-%COMP%]{display:none}.OT_video-disabled-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:bottom right;pointer-events:none;inset:0 3px 3px 0}.OT_video-disabled[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAINUlEQVR42u2aaUxUVxTHcRBmAAEBRVTK4sKwDIsg+wCK7CqIw1CN1YobbbS2qYlJ06Qx1UpdqMbYWq2pSzWmH6ytNbXWJY1Lq7VuqBERtW64V0XFLYae0/xvcp3MMAMzDz6IyT/ge2ce5/7ucpY3Ts3NzZ1ygF57AJ0gO0G2jyZPmdbFyclJSAV1EeoEaUUSLGdSV5KLLFxzFmA7QVqGqDqjixhWkxCVeyRVl38wM6bwj6yYItYK47BAuu9B0gCqs6Ng2r494KQtkj/Dz2jHraw6qw2fdSE4rNmcCPCvZONP8iF1I6kdBdMaQJWZLeJqRWa2kPJAxXY+GxE+zxLI03GRh8lGSwoi9WCY8FWlCEh+8JOnT7MfPGjMuXX7Tt61hoaCi/9cKmKdv3BxeEtim/UbNpnbQiqF4MmT7kqrbr4lkMcTo46TTSpJB5g+8NHuVWnWuaampvhmO/7duHmrGluoO4C6OsJZGRrkDIld43ZqUOTnlkDSmXmabAoBU0vqBf+6KgFSxQ9++uzZ8rZApM81TJ8xM5me0Z/UF7PuBmdVdkGEb5gYDeQmyZNW3SJLIP9Kj64lGyMpmxRN6sOfIbkoAhKOdnv2/PmB1kB88eLFo+olyyrps3rSINIAzLonnqlqK8R9w+L86vtrt5L2nhug3Vc3ULu/Liz8AOuXESlZZONH6kmr7gtLIA9lRNeRzVukAvj3BslLnJNKgfScO69K+/Lly0ZbQW7e8tNK+pwBjqaSIjDrXgJkW1ciAZvbQjQ+RDahpBBKd5ZZsqN758hmImk4KQHnpDd8UwSkCyJarx07d4+3BeKJmlMHyX4qaRxpBCmNFE4KENvHDpAutVERn1kCVBMfeRRgYvZnx62wZPdnZkw92VQA5GClQXYRBze2S+iJmpPVVoJLA9l9QKokjcWKTCT1R5rhLg70NuSsziT16diIKkuAjibrTpJNDkn/e17CahtAjlAWJAYkb29Sb1LE9Rs391kILk8mVkyuIpuZcLKUlEmKkra1WuSTNuesEPzwoEploSVAh9Oiz+BIyd9dOHhtx4OEpFpVg6gbNK3yXX1j48N6U5Dz5i/gc/FDrMY3sTLiSMEkXxGxzUEUAGnbxlPaksMlHUXWAlHS8URCPseSohZbCSLjSSU7ixLXdzhIWVKq4Y7t2a/2bN0qGeKly1fYsVmk6RgIDz4J0bonyUOcjeYqm/8hRoYbWkigV2NH9CHAS60EkUkkw47hSRs6FqT1LR5AVcsrueXlK1d5AO+RpmBrZZEiefByytPCanRGNLZY0uF52gNDYr9sCRB8MHY0SJu2OJWKS2WQV65e4y31DmkCImEi0hBfufRime0RIhpbKen0/Ny9OYNW2ghyYytABjNIaxNuKttAWk6HPLn0k0FevdZwFinPWFIuKZbUV16NVko6jbWSDoPO3pOf8K0jQWLSQ0S9bdpkYck+m7vfWpAiHfKgBsZiGSSt0FqcTeU8WETqAHE2CgcAVd3Gkm4MD3xXYeI6B4NMItvKbcUpQ9gP+KMWnSsW+TaYJtoo+avBWLoKoK0CCSDud+7eXWQGZAXqV3YoQjQCfixJ8+fzj9ta3JHhlUeJ8wJOY2ws6eRKpPS3oqTvHAESEz9ya0naXL5WH6pt3FqSOhTHkTcKEXc6k1POh4Q9YJu/03TT4a8PoGMFI4i2EqSbOZAYaBkpCyD92RkG6KCSbjI/H0HEISBnlOZPFdcEzI2GTO4KBZICGKyAKLTEmJOB2txf5MbgohBINCl4FTqmpJMB2W+HiRn1Q2l6lXyPmiEP6VVE2TfGoaMYrHyPdtAnyI0jEOn9RLWmNEhvBBE7SjpFQZaShtLK+1S+T12lRwxUvrZlVPp8jE1PikeO7C/nyEqBDCB1t7+kUx4kKUWclea0yZC5BIGpiJSNSD9QgFR0RQKkL6KxHSWdsiARHJNYewoGrzG1/bk4dTPSunL2EyDjcbb7MQ+lQfZmkKiN7SjpFAM5CWAyGcwyY84YsZ1lUcbRNNtQMAdtQWGvQ0DyVjzYAKQfQFodeAeC1C8vzymXIZqD+ZEh/2OyLSalS/3VbnJZ+VqDXGjMrTCFuK4s66vVZUNfqaDolcbjOcb899sLpEE+I20GifywXe2QR3KElu99PzqjGufhREqB1pjCnG3IL3fY1v733r2FMsiGhutn0LAoJWWIGbPxjKwgjUbF0m52mPhigrpdXOecEq9pR6MkHbu2LOtrcZ9y3d0ODTb15y9MePz48aF79+8fvXnr9sljx2u2I7KNxDuaMPGVECoRs7mC4eT7SIruFNfNHK15MKuM2evwNq+4qjxvGnd5CHwNNynawW4cOlUZdG8b55IIJHmkItwrZHH6QxB3OSL9kTtAGpIvZiQB3Z4SKBfXQtEE9sashWAW87Bt3sYZNR6zn4uzJwWDKUKXfaKCdqUoBpLxSjYe9nqGiwWRBGipuGZ3Qm76itYLbbJI/PEhUApfw73uOIy9xfse3M9F9BuFJHcYrseSouGkHtCVtkuGTTikI8XgZzhg9SeF4VqcvSWiaSvNHQ8JwkNjIfEHemCmNLD1RaEfLs18mlgNuN6PFALHo7CyU5W2g00gFAQF4ozvibH04muwDbWraSFAyt/AAMzewgGR8uCeWn77xzBxPxgzPRCDDMZ14bQ/3jqGKGoHf2Hjgx3kw5LbaJDYWb52t9FMgw4AuWNWukNeuOYqOsmQi2jgws4PA/DD/z0B2x0/veCs4naw0cgybezid7X9jV3rX2RSs0wfLkll4pBGcgifg+NYxe1kJ2ycTaRq66uG/wBOl0vjcw70xwAAAABJRU5ErkJggg==);background-size:33px auto}.OT_video-disabled-warning[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAoCAYAAABtla08AAAGMElEQVR4Ae2aA7D0yBaAc7oH12vbRmlLaxYWb23btm3btm2899a2bWuYtPZ01cmtU9lJrib315yqr9I3Oem/5/s7acwEnehEJzoxCcX2O+wEeIgRBDDaGjAZOgQ6ihRpLklHZDJIXK1WWymMIhGGkVBKCWMM+Iv/f/b5t7faYtM/sGgIS7j8RNLjceUVl41GvGN1BFiHy9sgtRWaYbhvuVQ6o1VOvV5/tLe3dyssKoZuh8xClkDEi2MMS6ZjR0cScxdK/+HgnJsmLccYOx0e/PUGUqfTJDEHkV5go9lcMQoj4R8RpSIRRUr4a9baTJFCCNfqESKJ7RYJibK0xoi05EhFRTxMi1Rit6xHAuLaKRLwEVi6q1x+EhlVpd3d3Wfh4VQkQhRhxthYLg7SRGqdLlIp7UVOHf+JhEhEMscUolVje3p63saeeOFoKsT7fjj++BNuw2I/0ouUENmGaQcQEilQvUU6xuWC0kqmVWCt8df6kG7WLoFA20VSCOyNh0RKPT+SyrTWtQsvuvTYCy84z3+oAdbgAiLGIvHjTz6bFuu/B3lKKfVkFKknwih6EnnipZdfXQZzepAupXSGSCfwUGZtkrx3t/0dSQGnnXbmdocdetArQoj+4VR23wMP3bj/vnv9Sv/rBmkish09ca655thHSrlWq4TFF1vkNDxsgjiUnPqZnHPABIq47jx7pPMcecShfz7x1DO7D6eit99576X1113nVd8rqLGAuDaNitJonTGIqHgQGQjDsJglMrUH5iDSEQbRa6y2yrNvv/PuWVmV/PTzLz8steTit1B9FtGJeZrJksmWdBzBMcami4xUkaY1A1Qe94WIaPGBApJhaERrLrXkElf8+NPPz6YMLs1DDjn0Wn9PnI/UiQadM4jNEkhzVsEGE8nIHESM1j5/KqRX+/IEiOQ/yifNBlEkpnb00cccesbpp13T3983H88/48xzrrvm6it/8U5JXgX5G6nSvSq1R5LATR7aYGkwMG1RSwkWABH+4jUb3vT/uJ1Z0xpjraTBRltrxUQhksIRmgTJyy69+Pv99tv3qYX6FxgU+fU33352xGEHf5wisU7nNWJpZRMkAjZ6aIN1mwV7h29Jo2wCHlveu/GV169z65E+T6koexCh6c+EEiky3lnxQKFjUeVyOeI5AOBzIiayRhJryd7YYnkIHgvB0qk9Tdql6N3XH4bRUIOIIIKJSiRb0hkSEpZKRd1CpEq8GxtIyCVmDSgFl94GacTgaJw1rUlYhYng0c4ewaUsmKRIJjpiqMSOCh9QeI+UYECmtQIsxEu6OorEcv6Rl0gu0woh8MhFkmSCTXVI4pC704WCFRJvSRNJSzrMMEZO2iKZTCHAZYnmvXCny7ed5vfZK3viHSBdIFCKEFj2+nt+73nw8m2uedcLJlktA++VNMEPaR45aYukcKnnCfY3/DFbZS8t7eHxNgsPM0N1hXhJJwwM1QbpoQFlog2R13a/zBxEYHAQEUYUM6qiVwEyBYoM6JFNF2kFLelI5KQf+fVI4dJFCguDS7oAyx2R6SFQJKRedSDj/cMg/RXQ6ZE05GSIDAaXdCi1I3L021SQWNJ1RLY5OiIdL4/yvuw8ADfWPFrSciaMyH8tEQPwf1uGG54g5+KlJGTmsrxsQdl5PKidnPFe2QS///7Hu+VS6WX/HYnf0sevGL7lXydwod2/9DykZq0s5yff0sgSWCigNOH7TPHL7ufj+/TH8P/+qYpL4HkBDiRYpEXeM8/89/9zzjn7EtY64dfd1nqccM7Bs8+9MKy8555/8TnKS+5MufH6EZVASkgPzf+mJXroet17JirU0ALST3nT0y5ONyLpeo1y64ih+vuQfsoTOeRFSJXa+SvyB90TUmdw49EjLaKpMQ0mzEeTzkWsd/oI6fzfiKM8gWg6X6OjpXstu5ZHnmIb0GFiu29MIUfUewkmVrEN3RqVQ/bY8FzNcquMBv/pCNUZ5pHHem01KdN/I/DG66/lLhKSvTO5M84kav5C5z2ZfyAivi9i9VGd45RH7UWJbjwGG/7NYsRECt7jiOToHedKAui8SW4CsxyRc54mKH/8f7ELhCCACyNcIl/wI+FaAJyc8yzRtinQPzWzuFZrFHq/AAAAAElFTkSuQmCC);background-size:33px auto}.OT_video-disabled-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_audio-blocked-indicator[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;pointer-events:none;inset:0}.OT_audio-blocked[_ngcontent-%COMP%]{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUwIiBoZWlnaHQ9IjkwIj48ZGVmcz48cGF0aCBkPSJNNjcgMTJMNi40NDggNzIuNTUyIDAgMzFWMThMMjYgMGw0MSAxMnptMyA3bDYgNDctMjkgMTgtMzUuNTAyLTYuNDk4TDcwIDE5eiIgaWQ9ImEiLz48L2RlZnM+PHJlY3Qgd2lkdGg9IjE1MCIgaGVpZ2h0PSI5MCIgcng9IjM1IiByeT0iNDUiIG9wYWNpdHk9Ii41Ii8+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgzNikiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjxwYXRoIGQ9Ik0zOS4yNDkgNTEuMzEyYy42OTcgMTAuMzcgMi43ODUgMTcuODk3IDUuMjUxIDE3Ljg5NyAzLjAzOCAwIDUuNS0xMS40MTcgNS41LTI1LjVzLTIuNDYyLTI1LjUtNS41LTI1LjVjLTIuNTEgMC00LjYyOCA3Ljc5Ny01LjI4NyAxOC40NTNBOC45ODkgOC45ODkgMCAwIDEgNDMgNDRhOC45ODggOC45ODggMCAwIDEtMy43NTEgNy4zMTJ6TTIwLjk4NSAzMi4yMjRsMTUuNzQ2LTE2Ljg3N2E3LjM4NSA3LjM4NSAwIDAgMSAxMC4zNzQtLjQyQzUxLjcwMiAxOS4xMTQgNTQgMjkuMjA4IDU0IDQ1LjIwOGMwIDE0LjUyNy0yLjM0MyAyMy44OC03LjAzIDI4LjA1OGE3LjI4IDcuMjggMCAwIDEtMTAuMTY4LS40NjhMMjAuNDA1IDU1LjIyNEgxMmE1IDUgMCAwIDEtNS01di0xM2E1IDUgMCAwIDEgNS01aDguOTg1eiIgZmlsbD0iI0ZGRiIgbWFzaz0idXJsKCNiKSIvPjwvZz48cGF0aCBkPSJNMTA2LjUgMTMuNUw0NC45OTggNzUuMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:90px auto}.OT_container-audio-blocked[_ngcontent-%COMP%]{cursor:pointer}.OT_container-audio-blocked.OT_mini[_ngcontent-%COMP%] .OT_edge-bar-item[_ngcontent-%COMP%], .OT_container-audio-blocked[_ngcontent-%COMP%] .OT_mute[_ngcontent-%COMP%]{display:none}.OT_audio-blocked-indicator.OT_active[_ngcontent-%COMP%]{display:block}.OT_video-unsupported[_ngcontent-%COMP%]{opacity:1;border:none;display:none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-position:center;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-size:58px auto;pointer-events:none;inset:0;margin-top:-30px}.OT_video-unsupported-bar[_ngcontent-%COMP%]{display:none;position:absolute;width:192%;height:192%;top:-96%;left:-96%;border-radius:50%;background-color:#000c}.OT_video-unsupported-img[_ngcontent-%COMP%]{display:none;position:absolute;top:11%;left:15%;width:70%;opacity:.7;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOTciIGhlaWdodD0iOTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik03MCAxMkw5LjQ0OCA3Mi41NTIgMCA2MmwzLTQ0TDI5IDBsNDEgMTJ6bTggMmwxIDUyLTI5IDE4LTM1LjUwMi02LjQ5OEw3OCAxNHoiIGlkPSJhIi8+PC9kZWZzPjxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoOCAzKSI+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PHBhdGggZD0iTTkuMTEgMjAuOTY4SDQ4LjFhNSA1IDAgMCAxIDUgNVY1OC4xOGE1IDUgMCAwIDEtNSA1SDkuMTFhNSA1IDAgMCAxLTUtNVYyNS45N2E1IDUgMCAwIDEgNS01em00Ny4wOCAxMy4zOTRjMC0uMzQ1IDUuNDcyLTMuMTU5IDE2LjQxNS04LjQ0M2EzIDMgMCAwIDEgNC4zMDQgMi43MDJ2MjYuODM1YTMgMyAwIDAgMS00LjMwNSAyLjcwMWMtMTAuOTQyLTUuMjg2LTE2LjQxMy04LjEtMTYuNDEzLTguNDQ2VjM0LjM2MnoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48L2c+PHBhdGggZD0iTTgxLjUgMTYuNUwxOS45OTggNzguMDAyIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9nPjwvc3ZnPg==);background-repeat:no-repeat;background-position:center;background-size:100% auto}.OT_video-unsupported-img[_ngcontent-%COMP%]:before{content:"";display:block;padding-top:93%}.OT_video-unsupported-text[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;text-align:center;height:100%;margin-top:40px}'],changeDetection:0}),t})();var Ts=(()=>{return(t=Ts||(Ts={})).NICKNAME_CHANGED="nicknameChanged",t.CHAT="chat",Ts;var t})();let cP=(()=>{class t{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}seeMore(){var e;null===(e=window.open("https://docs.openvidu.io/en/stable/openvidu-pro/","_blank"))||void 0===e||e.focus()}}return t.\u0275fac=function(e){return new(e||t)(h(Yl),h(ep))},t.\u0275cmp=it({type:t,selectors:[["ov-pro-feature-template"]],decls:5,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-actions",""],["mat-button","",3,"click"]],template:function(e,i){1&e&&(R(0,"h1",0),fe(1),L(),R(2,"div",1),fe(3),L(),ee(4,xX,10,6,"div",2)),2&e&&(w(1),He(i.data.title),w(2),He(i.data.description),w(1),B("ngIf",i.data.showActionButtons))},dependencies:[nn,Ln,gi,HO,tp,np,li],encapsulation:2}),t})(),es=(()=>{class t{constructor(e,i){this.snackBar=e,this.dialog=i}launchNotification(e,i){e.config||(e.config={duration:3e3,verticalPosition:"top",horizontalPosition:"end"});const o=this.snackBar.open(e.message,e.buttonActionText,e.config);i&&o.onAction().subscribe(()=>{i()})}openDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(ZR,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openProFeatureDialog(e,i,o=!0){try{this.closeDialog()}catch(r){}finally{this.dialogRef=this.dialog.open(cP,{minWidth:"250px",data:{title:e,description:i,showActionButtons:o},disableClose:!o}),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=void 0})}}openDeleteRecordingDialog(e){try{this.closeDialog()}catch(i){}finally{this.dialogRef=this.dialog.open(KR),this.dialogSubscription=this.dialogRef.afterClosed().subscribe(i=>{i&&e()})}}openRecordingPlayerDialog(e,i=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(XR,{minWidth:"250px",data:{src:e,showActionButtons:i},disableClose:!i})}}closeDialog(){var e;null===(e=this.dialogRef)||void 0===e||e.close(),this.dialogSubscription&&this.dialogSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(ie(xW),ie(Lb))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dp=(()=>{class t{constructor(e,i,o,r,s){this.loggerSrv=e,this.openviduService=i,this.participantService=o,this.panelService=r,this.actionService=s,this._messageList=new wt([]),this.messageList=[],this.log=this.loggerSrv.get("ChatService"),this.messagesObs=this._messageList.asObservable(),this.messageSound=new Audio("data:audio/wav;base64,SUQzAwAAAAAAekNPTU0AAAAmAAAAAAAAAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLkNPTU0AAAAmAAAAWFhYAFJlY29yZGVkIG9uIDI3LjAxLjIwMjEgaW4gRWRpc29uLlRYWFgAAAAQAAAAU29mdHdhcmUARWRpc29u//uQxAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAAJAAALNABMTExMTExMTExMTGxsbGxsbGxsbGxsiIiIiIiIiIiIiIijo6Ojo6Ojo6Ojo76+vr6+vr6+vr6+1NTU1NTU1NTU1NTk5OTk5OTk5OTk5PX19fX19fX19fX1//////////////8AAAA8TEFNRTMuMTAwBK8AAAAAAAAAABUgJAadQQABzAAACzQeSO05AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//vAxAAABsADb7QQACOOLW3/NaBQzcKNbIACRU4IPh+H1Bhx+D7xQH4IHBIcLh+D/KOk4PwQcUOfy7/5c/IQQdrP8p1g+/////4YmoaJIwUxAFESnqIkyedtyHBoIBBD8xRVFILBVXBA8OKGuWmpLAiIAgcMHgAiQM8uBWBHlMp9xxWyoxCaksudVh8KBx50YE0aK0syZbR704cguOpoXYAqcWGp2LDxF/YFSUFkYWDpfFqiICYsMX7nYBeBwqWVu/eWkW9sxXVlRstdTUjZp2R1qWXSSnooIdGHXZlVt/VA7kSkOMsgTHdzVqrds5Sqe3Kqamq8ytRR2V2unJ5+Ua5TV8qW5jlnW3u7DOvu5Z1a1rC5hWwzy1rD8KXWeW/y3hjrPLe61NvKVWix61qlzMpXARASAAS9weVYFrKBrMWqu6jjUZ7fTbfURVYa/M7yswHEFcSLKLxqmslA6BeR7roKj6JqOin0zpcOsgrR+x0kUiko0SNUDpLOuSprSMjVJNz6/rpOpNHRUlRNVImJq6lJPd3dE1b0ldExPFbgZMgYOwaBR942K9XsCn9m9lwgoQgAACZu3yILcRAQaUpwkvPr+a6+6KdVuq9gQIb1U7y4HjTa7HGscIisVOM5lXYFkWydyDBYmjp7oKgOUYUacqINdIqIEMd0FBAWiz/UyMqbMzMchf7XOtKFoSXM8QcfQaNlmA8HQ0tbXsD56lKDIvZ3XYxS3vulF0MAQQnvwnBXQfZPwLwVAMkYoSghSkIpckFJOBBNJZmYhE4E7P58SGQAgjVRZ1ZtNmo2rHq7nz3mS2U6OiXGtkhZehWmijBt/3d1TGcQEq42sxqOUFEQVDwWBY0tRsAioZKw6WJhg69O6pJra3XaSp791mB2IASQldhZLfOAk7DIgCXxTHo0nWBshqN0Y84zMGzCMKRtYGbVvz7WAVC5NzrmykQLIlrfN2qHXQ6Z/qUmDKX/+3DE1gAPtQ9b/YaAIeAiqv2GFazATncobkc9EAAkvb9pnMjVsk3wQhM9Llh+HCIRFERd4sLROgTPOK2jHfzHpU382nQFIAgACc2fGGBODtNkTQqhIzJHrH4NFkIEcw6PKxgocFSm3CrgiDYp1tMRSzjwCVaVDj43vWr7jWiC4oaHsHa27zUKxJKDNef/jXeGuxlKTY2dTwOFKA+y6l2TnRhImDKhYQgEia822x5Zt6y5b96ngYYjIBDeuCFQwnowEHFcp3F3Q2yFFZLvS54JdWCn+lVJXjs1V1u3qntRpyU8I7Uq3/ay03bW1ndLf92/uUxpELIO44f3Kr6CBbEYW5dOlWo5LKwRnMbRHsUId8KFVgUFXg+GEpWg9Vv41YxbN1tuymfD5Cr/3HMVUhALLdtDLQpBOv1r//tgxO0ADnD3V+ekTeG+G6q9hY30qMDU1SSNOegcyOxBoQ6FNCdLvxHr23ta0sU9ysR0WbGp8xM0j1rmy6Zr61vFbVi1920wDjexZD1Z+TpXaAnGC+1gfGlRYSgYUZSeasoiXkDdS8A7z2CJdo8X3+M5NAxThdP9vO5OpACoq7KA8i6CmgsiBNQ+BkMg9yVkFKk5DiSpPVTGZJJ0XCtvGs0fKYhJ1Sb+MYfbrmtaZw+f619TVxvG5msonGaUczjGdaJoY6OcuBcGi5RYaShYxh1TNgZGJNCzgoXIN4rdR1pV0JWhFmfyldXv/JcJhgBTctuDPFGOdFAmCeC4h9ncJKcguVzY//tgxPOADhDdUeelDSHXH6o9gwrUqD7gLVJhOFnCIov6lFMYCyLz5OtEnP0OCssoUOxoKYq1NRqMpI7E75LkV8jKdIyOCknQELjSQSIuahE0OjfSySUn1W63D7/HmEXCJq83cxwh1KJ2/AANk0J/F+vsgcl1QRtTY1iDZMF0eTtOv4KncRPWe0b0xGlbTjXSib4W3AlD5TypIs2e3aqryiyIkpcxOMeN3GtGH12uYqkWhO0dqSlA9aq6uwhmNp3cAAinFeOC6lmceR2EiGUjwM14WJE5cVj0Ss0zW1vY5ZjnpSSL3Fs/V2kvm3VN90v4Zn8/mlRoVZF07uiFRV3nb+Mxz9LI//tgxPgADjytT+w8beHFFen88ZuE0l3ZwRBEJJwAAVdxwnIVhoQyXVGAWpKYIQ8VhfxuratfsU5ID7+4IOeoYj0s3vrerQYt1oo8FPA5Yi/j+ig7Cprmx3iziji76xilapmKJEQCVJQABLYVBTxyRmsXMv5AC/C2TmwTQviGYc5ILASBakpWy1I4As5Z++CQmtb3UTMNv1opus8JJzSpx8Pgv8Ul6ktLZ3Oy7QEI6CIkVHyXmE+tt69/P0V0lIuLQGmhCSAQCJEiVa9VVEiSQV+QU26Kx/Tv/EGG5PBQoapMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//tQxP4ADRjPT+ekbSFXFqi9h5k0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMT8AAmom0HsMTJpKRLmPPYiUKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7MMTzgElMmTfnpNJo1AimfPSZgaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/7EMTWA8AAAaQAAAAgAAA0gAAABKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"),this.messageSound.volume=.6}subscribeToChat(){this.openviduService.getWebcamSession().on(`signal:${Ts.CHAT}`,i=>{const o=i.from.connectionId,r=JSON.parse(i.data),s=this.openviduService.isMyOwnConnection(o);if(this.messageList.push({isLocal:s,nickname:r.nickname,message:r.message}),!this.panelService.isChatPanelOpened()){const a={message:`${r.nickname.toUpperCase()} sent a message`,cssClassName:"messageSnackbar",buttonActionText:"READ"};this.launchNotification(a),this.messageSound.play().catch(()=>{})}this._messageList.next(this.messageList)})}sendMessage(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){const i={message:e,nickname:this.participantService.getMyNickname()};this.openviduService.sendSignal(Ts.CHAT,void 0,i)}}launchNotification(e){this.actionService.launchNotification(e,this.panelService.togglePanel.bind(this.panelService,Wt.CHAT))}}return t.\u0275fac=function(e){return new(e||t)(ie(cr),ie(zo),ie(Ti),ie(So),ie(es))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Eie={urls:{schemeMatches:!0,tldMatches:!0},email:!0,phone:!0,mention:"twitter",hashtag:"twitter",stripPrefix:!1,stripTrailingSlash:!1,newWindow:!0,truncate:{length:0,location:"end"},decodePercentEncoding:!0};class Sie{constructor(){this.autolinker=new $$(Eie)}link(n){return this.autolinker.link(n)}}let Aie=(()=>{class t{constructor(){this.linkifer=new Sie}transform(e){return e&&this.linkifer.link(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Qn({name:"linkify",type:t,pure:!0}),t})(),uP=(()=>{class t{constructor(e,i,o){this.chatService=e,this.panelService=i,this.cd=o,this.messageList=[]}ngOnInit(){this.subscribeToMessages()}ngAfterViewInit(){setTimeout(()=>{this.scrollToBottom(),this.chatInput.nativeElement.focus()},100)}ngOnDestroy(){this.chatMessageSubscription&&this.chatMessageSubscription.unsubscribe()}eventKeyPress(e){e&&13===e.keyCode&&(e.preventDefault(),this.sendMessage())}sendMessage(){this.message&&(this.chatService.sendMessage(this.message),this.message="")}scrollToBottom(){setTimeout(()=>{try{this.chatScroll.nativeElement.scrollTop=this.chatScroll.nativeElement.scrollHeight}catch(e){}},20)}close(){this.panelService.togglePanel(Wt.CHAT)}subscribeToMessages(){this.chatMessageSubscription=this.chatService.messagesObs.subscribe(e=>{this.messageList=e,this.panelService.isChatPanelOpened()&&(this.scrollToBottom(),this.cd.markForCheck())})}}return t.\u0275fac=function(e){return new(e||t)(h(Dp),h(So),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(Mt(OX,5),Mt(IX,5)),2&e){let o;Ne(o=Le())&&(i.chatScroll=o.first),Ne(o=Le())&&(i.chatInput=o.first)}},decls:24,vars:17,consts:[["id","chat-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","20px",1,"text-container"],[1,"text-info"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"messages-container"],["chatScroll",""],["class","message",3,"ngClass",4,"ngFor","ngForOf"],["fxFlex","55px","fxFlexOrder","3","fxLayoutAlign","space-evenly none",1,"input-container"],["maxlength","500","rows","4","autocomplete","off","id","chat-input",3,"placeholder","ngModel","keypress","ngModelChange"],["chatInput",""],["mat-icon-button","","id","send-btn",3,"click"],[3,"matTooltip"],[1,"message",3,"ngClass"],[1,"msg-detail"],[1,"nickname-container"],[4,"ngIf"],[1,"msg-content"],[3,"innerHTML"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1)(2,"h3",2),fe(3),Me(4,"translate"),L(),R(5,"button",3),Ie("click",function(){return i.close()}),Me(6,"translate"),R(7,"mat-icon"),fe(8,"close"),L()()(),R(9,"div",4)(10,"p",5),fe(11),Me(12,"translate"),L()(),R(13,"div",6,7),ee(15,kX,8,6,"div",8),L(),R(16,"div",9)(17,"textarea",10,11),Ie("keypress",function(r){return i.eventKeyPress(r)})("ngModelChange",function(r){return i.message=r}),Me(19,"translate"),L(),R(20,"button",12),Ie("click",function(){return i.sendMessage()}),R(21,"mat-icon",13),Me(22,"translate"),fe(23,"send"),L()()()()),2&e&&(w(3),He(Re(4,7,"PANEL.CHAT.TITLE")),w(2),Xt("matTooltip",Re(6,9,"PANEL.CLOSE")),w(6),He(Re(12,11,"PANEL.CHAT.SUBTITLE")),w(4),B("ngForOf",i.messageList),w(2),Xt("placeholder",Re(19,13,"PANEL.CHAT.PLACEHOLDER")),B("ngModel",i.message),w(4),Xt("matTooltip",Re(22,15,"PANEL.CHAT.SEND")))},dependencies:[$i,No,nn,vs,Il,kl,ia,Ln,gi,ar,As,ma,zb,ga,Ar,Aie,li],styles:[".panel-container[_ngcontent-%COMP%]{margin:20px;background-color:var(--ov-panel-background);border-radius:var(--ov-panel-radius);max-height:calc(100% - 40px);min-height:calc(100% - 40px)}.panel-header-container[_ngcontent-%COMP%]{padding:10px;display:flex}.panel-title[_ngcontent-%COMP%]{margin-left:5px;margin-top:auto;margin-bottom:auto}.panel-close-button[_ngcontent-%COMP%]{margin-left:auto;border-radius:var(--ov-buttons-radius)}[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#a7a7a7;border-radius:4px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7c7c7c}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:var(--ov-light-color);border-radius:4px}",".text-container[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;font-size:12px}.text-info[_ngcontent-%COMP%]{margin:3px}.messages-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.input-container[_ngcontent-%COMP%]{height:25px;display:flex;background-color:var(--ov-light-color);padding:10px;margin:10px;border-radius:var(--ov-panel-radius)}.input-container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:16px;margin:auto;background-color:transparent;display:block;border:none;padding:0;word-wrap:break-word;white-space:pre-wrap;resize:none;outline:none;box-shadow:none;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.message[_ngcontent-%COMP%]{position:relative;padding:3px 0}.msg-detail[_ngcontent-%COMP%]{width:95%;display:inline-block}.msg-detail[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-size:14px}.nickname-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--ov-panel-text-color)}.msg-content[_ngcontent-%COMP%]{position:relative;border-radius:var(--ov-panel-radius);padding:8px;color:#000;width:auto;max-width:95%;font-size:13px;word-break:break-all}#send-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:left}.message.left[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:left}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .nickname-container[_ngcontent-%COMP%]{text-align:right}.message.right[_ngcontent-%COMP%] .msg-detail[_ngcontent-%COMP%] .msg-content[_ngcontent-%COMP%]{float:right} a:-webkit-any-link{color:#1a73e8}"],changeDetection:0}),t})();var Bn=(()=>{return(t=Bn||(Bn={})).STARTING="starting",t.STARTED="started",t.STOPPING="stopping",t.STOPPED="stopped",t.FAILED="failed",t.READY="ready",Bn;var t})();let ld=(()=>{class t{constructor(e,i){this.actionService=e,this.sanitizer=i,this.currentRecording={status:Bn.STOPPED},this.recordingStatus=new wt(null),this.baseUrl="/"+(window.location.pathname.split("/")[1]?window.location.pathname.split("/")[1]+"/":""),this.recordingStatusObs=this.recordingStatus.asObservable()}updateStatus(e){this.currentRecording={status:e},this.recordingStatus.next({info:this.currentRecording})}startRecording(e){this.currentRecording={status:Bn.STARTED,id:e.id,name:e.name,reason:e.reason},this.startRecordingTime(),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime})}stopRecording(e){this.currentRecording.status=Bn.STOPPED,this.currentRecording.reason=e.reason,this.recordingStatus.next({info:this.currentRecording,time:null}),this.stopRecordingTime()}playRecording(e){const i=e.id;this.actionService.openRecordingPlayerDialog(`${this.baseUrl}recordings/${i}/${i}.mp4`)}downloadRecording(e){const i=e.id,r=document.createElement("a");r.href=`/recordings/${i}/${i}.mp4`,r.download=`${i}.mp4`,r.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{r.remove()},100)}startRecordingTime(){this.recordingTime=new Date,this.recordingTime.setHours(0,0,0,0),this.recordingTimeInterval=setInterval(()=>{this.recordingTime.setSeconds(this.recordingTime.getSeconds()+1),this.recordingTime=new Date(this.recordingTime.getTime()),this.recordingStatus.next({info:this.currentRecording,time:this.recordingTime})},1e3)}stopRecordingTime(){clearInterval(this.recordingTimeInterval),this.recordingTime=null}}return t.\u0275fac=function(e){return new(e||t)(ie(es),ie(lu))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var hn=(()=>{return(t=hn||(hn={})).NONE="NONE",t.BLUR="BLUR",t.IMAGE="IMAGE",hn;var t})();let gy=(()=>{class t{constructor(e,i,o){this.participantService=e,this.storageService=i,this.openviduService=o,this.backgroundSelected=new wt(""),this.backgrounds=[{id:"no_effect",type:hn.NONE,thumbnail:"block"},{id:"soft_blur",type:hn.BLUR,thumbnail:"blur_on"},{id:"1",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:hn.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-18.jpg",src:"assets/backgrounds/bg-18.jpg"}],this.backgroundSelectedObs=this.backgroundSelected.asObservable()}getBackgrounds(){return this.backgrounds}isBackgroundApplied(){const e=this.backgroundSelected.getValue();return!!e&&"no_effect"!==e}applyBackgroundFromStorage(){return J(this,void 0,void 0,function*(){const e=this.storageService.getBackground();if(e){const i=this.backgrounds.find(o=>o.id===e);i&&this.applyBackground(i)}})}applyBackground(e){return J(this,void 0,void 0,function*(){if(e.id!==this.backgroundSelected.getValue()){const i=this.participantService.getMyCameraPublisher().stream.filter,o=!!i&&i.type.startsWith("VB:");let r={token:this.openviduService.getWebcamToken(),url:""};e.type===hn.IMAGE&&(r.url=e.src),o&&this.hasSameTypeAsAbove(e.type)?this.replaceBackground(e):(yield this.removeBackground(),yield this.participantService.getMyCameraPublisher().stream.applyFilter(`VB:${e.type.toLowerCase()}`,r)),this.storageService.setBackground(e.id),this.backgroundSelected.next(e.id)}})}removeBackground(){return J(this,void 0,void 0,function*(){this.isBackgroundApplied()&&(this.backgroundSelected.next("no_effect"),yield this.participantService.getMyCameraPublisher().stream.removeFilter(),this.storageService.removeBackground())})}replaceBackground(e){return J(this,void 0,void 0,function*(){yield this.participantService.getMyCameraPublisher().stream.filter.execMethod("update",{url:e.src})})}hasSameTypeAsAbove(e){const i=this.backgrounds.find(o=>o.id===this.backgroundSelected.getValue());return(null==i?void 0:i.type)===e}}return t.\u0275fac=function(e){return new(e||t)(ie(Ti),ie(Ho),ie(zo))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),my=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,y,N,X){this.actionService=e,this.openviduService=i,this.participantService=o,this.loggerSrv=r,this.chatService=s,this.libService=a,this.layoutService=l,this.panelService=c,this.recordingService=u,this.translateService=d,this.captionService=f,this.platformService=y,this.backgroundService=N,this.cd=X,this.usedInPrejoinPage=!1,this.onSessionCreated=new xe,this.onNodeCrashed=new xe,this.sidenavMode=nc.SIDE,this.preparing=!0,this.SIDENAV_WIDTH_LIMIT_MODE=790,this.log=this.loggerSrv.get("SessionComponent")}beforeunloadHandler(){this.leaveSession()}sizeChange(){this.layoutService.update()}set sidenavMenu(e){setTimeout(()=>{e&&(this.sideMenu=e,this.subscribeToTogglingMenu())},0)}set videoContainer(e){setTimeout(()=>{e&&!this.toolbarTemplate&&(e.nativeElement.style.height="100%",e.nativeElement.style.minHeight="100%",this.layoutService.update())},0)}set container(e){setTimeout(()=>{e&&(this.drawer=e,this.drawer._contentMarginChanges.subscribe(()=>{setTimeout(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update(),this.drawer.autosize=!1},250)}))},0)}set layoutContainer(e){setTimeout(()=>J(this,void 0,void 0,function*(){e&&(yield this.backgroundService.applyBackgroundFromStorage())}),0)}ngOnInit(){return J(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.openviduService.getScreenToken()||this.libService.screenshareButton.next(!1),this.session=this.openviduService.getWebcamSession(),this.sessionScreen=this.openviduService.getScreenSession(),this.subscribeToOpenViduException(),this.subscribeToCaptionLanguage(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.subscribeToChat(),this.subscribeToReconnection(),this.libService.recordingButton.getValue()&&this.libService.recordingActivity.getValue()&&this.subscribeToRecordingEvents(),this.onSessionCreated.emit(this.session),yield this.connectToSession(),this.platformService.isIos()&&this.participantService.isMyCameraActive()&&(yield this.openviduService.publishVideo(!1),yield this.openviduService.publishVideo(!0))),this.preparing=!1,this.cd.markForCheck()})}ngOnDestroy(){var e;null===(e=this.session)||void 0===e||e.off("reconnecting"),this.participantService.clear(),this.session=null,this.sessionScreen=null,this.menuSubscription&&this.menuSubscription.unsubscribe(),this.layoutWidthSubscription&&this.layoutWidthSubscription.unsubscribe()}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect()}subscribeToTogglingMenu(){this.sideMenu.openedChange.subscribe(()=>{this.stopUpdateLayoutInterval(),this.layoutService.update()}),this.sideMenu.openedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.sideMenu.closedStart.subscribe(()=>{this.startUpdateLayoutInterval()}),this.menuSubscription=this.panelService.panelOpenedObs.pipe(Gl(1)).subscribe(e=>{this.sideMenu&&(this.settingsPanelOpened=e.opened&&e.type===Wt.SETTINGS,this.sideMenu.opened&&e.opened&&(e.type===Wt.SETTINGS||e.oldType===Wt.SETTINGS)&&(this.drawer.autosize=!0,this.startUpdateLayoutInterval()),e.opened?this.sideMenu.open():this.sideMenu.close())})}subscribeToLayoutWidth(){this.layoutWidthSubscription=this.layoutService.layoutWidthObs.subscribe(e=>{this.sidenavMode=e<=this.SIDENAV_WIDTH_LIMIT_MODE?nc.OVER:nc.SIDE})}connectToSession(){return J(this,void 0,void 0,function*(){try{const e=this.openviduService.getWebcamToken(),i=this.openviduService.getScreenToken();this.participantService.haveICameraAndScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):this.participantService.isOnlyMyScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getScreenSession(),i),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),e),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()))}catch(e){this.log.e("There was an error connecting to the session:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.SESSION"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}subscribeToOpenViduException(){this.session.on("exception",e=>{this.log.e(e.name,e.message)})}subscribeToConnectionCreatedAndDestroyed(){this.session.on("connectionCreated",e=>{var i,o;const r=null===(i=e.connection)||void 0===i?void 0:i.connectionId,s=this.participantService.getNicknameFromConnectionData(e.connection.data),a=!this.openviduService.isMyOwnConnection(r),l=!(null!=s&&s.includes(`_${on.SCREEN}`)),c=null===(o=e.connection)||void 0===o?void 0:o.data;if(a&&l&&(this.participantService.addRemoteConnection(r,c,null),this.openviduService.needSendNicknameSignal())){const u={clientData:this.participantService.getMyNickname()};this.openviduService.sendSignal(Ts.NICKNAME_CHANGED,[e.connection],u)}}),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),o=!this.openviduService.isMyOwnConnection(e.connection.connectionId),r=!(null!=i&&i.includes(`_${on.SCREEN}`));o&&r&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>J(this,void 0,void 0,function*(){var i,o,r,s;const a=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.connectionId,l=null===(s=null===(r=e.stream)||void 0===r?void 0:r.connection)||void 0===s?void 0:s.data,c=this.participantService.getTypeConnectionData(l)===on.CAMERA;if(!this.openviduService.isMyOwnConnection(a)){const d=this.session.subscribe(e.stream,void 0);if(this.participantService.addRemoteConnection(a,l,d),this.captionService.areCaptionsEnabled()&&c)try{yield this.session.subscribeToSpeechToText(e.stream,this.captionService.getLangSelected().ISO)}catch(f){this.log.e("Error subscribing from STT: ",f)}}}))}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>J(this,void 0,void 0,function*(){var i,o;const r=e.stream.connection.connectionId,s=null===(o=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===o?void 0:o.data,a=!this.openviduService.isMyOwnConnection(r),l=this.participantService.getTypeConnectionData(s)===on.CAMERA;if(this.participantService.removeConnectionByConnectionId(r),a&&this.captionService.areCaptionsEnabled()&&l)try{yield this.session.unsubscribeFromSpeechToText(e.stream)}catch(c){this.log.e("Error unsubscribing from STT: ",c)}}))}subscribeToCaptionLanguage(){this.captionLanguageSubscription=this.captionService.captionLangObs.subscribe(e=>J(this,void 0,void 0,function*(){var i;if(this.captionService.areCaptionsEnabled()){this.log.d("Re-subscribe from STT because of language changed to ",e.ISO);for(const o of this.participantService.getRemoteParticipants()){const r=null===(i=o.getCameraConnection())||void 0===i?void 0:i.streamManager;if(null!=r&&r.stream)try{yield this.session.unsubscribeFromSpeechToText(r.stream),yield this.session.subscribeToSpeechToText(r.stream,e.ISO)}catch(s){this.log.e("Error re-subscribing to STT: ",s)}}}}))}subscribeToStreamPropertyChange(){this.session.on("streamPropertyChanged",e=>{!this.openviduService.isMyOwnConnection(e.stream.connection.connectionId)&&this.participantService.updateRemoteParticipants()})}subscribeToNicknameChanged(){this.session.on(`signal:${Ts.NICKNAME_CHANGED}`,e=>{const i=e.from.connectionId;if(!this.openviduService.isMyOwnConnection(i)){const r=this.participantService.getNicknameFromConnectionData(e.data);this.participantService.setRemoteNickname(i,r)}})}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.log.w("Connection lost: Reconnecting"),this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1)}),this.session.on("reconnected",()=>{this.log.w("Connection lost: Reconnected"),this.actionService.closeDialog()}),this.session.on("sessionDisconnected",e=>{"nodeCrashed"===e.reason?(this.actionService.openDialog(this.translateService.translate("ERRORS.CONNECTION"),this.translateService.translate("ERRORS.RECONNECT"),!1),this.onNodeCrashed.emit()):"networkDisconnect"===e.reason&&(this.actionService.closeDialog(),this.leaveSession())})}subscribeToRecordingEvents(){this.session.on("recordingStarted",e=>{this.recordingService.startRecording(e)}),this.session.on("recordingStopped",e=>{this.recordingService.stopRecording(e)})}startUpdateLayoutInterval(){this.updateLayoutInterval=setInterval(()=>{this.layoutService.update()},50)}stopUpdateLayoutInterval(){this.updateLayoutInterval&&clearInterval(this.updateLayoutInterval)}}return t.\u0275fac=function(e){return new(e||t)(h(es),h(zo),h(Ti),h(cr),h(Dp),h(jt),h(Ca),h(So),h(ld),h(tc),h(fy),h(sc),h(gy),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-session"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,NX,5,yt),nt(o,LX,5,yt),nt(o,j1,5,yt)),2&e){let r;Ne(r=Le())&&(i.toolbarTemplate=r.first),Ne(r=Le())&&(i.panelTemplate=r.first),Ne(r=Le())&&(i.layoutTemplate=r.first)}},viewQuery:function(e,i){if(1&e&&(Mt(FX,5),Mt(BX,5,Ue),Mt(VX,5),Mt(jX,5)),2&e){let o;Ne(o=Le())&&(i.sidenavMenu=o.first),Ne(o=Le())&&(i.videoContainer=o.first),Ne(o=Le())&&(i.container=o.first),Ne(o=Le())&&(i.layoutContainer=o.first)}},hostBindings:function(e,i){1&e&&Ie("beforeunload",function(){return i.beforeunloadHandler()},0,Nc)("resize",function(){return i.sizeChange()},!1,Nc)},inputs:{usedInPrejoinPage:"usedInPrejoinPage"},outputs:{onSessionCreated:"onSessionCreated",onNodeCrashed:"onNodeCrashed"},decls:1,vars:1,consts:[["id","session-container",4,"ngIf"],["id","session-container"],[1,"sidenav-container"],["container","","videoContainer",""],["position","end","fixedInViewport","true","fixedTopGap","0","fixedBottomGap","0",1,"sidenav-menu",3,"mode","ngClass"],["sidenav",""],[4,"ngTemplateOutlet"],[1,"sidenav-main"],["id","layout-container"],["layoutContainer",""],["id","footer-container",4,"ngIf"],["id","footer-container"]],template:function(e,i){1&e&&ee(0,WX,12,8,"div",0),2&e&&B("ngIf",!i.preparing)},dependencies:[$i,nn,ds,$I,YI,ty,Ar],styles:["#session-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);height:100%}.sidenav-container[_ngcontent-%COMP%]{position:relative;height:calc(100% - 70px);min-height:calc(100% - 70px);padding-top:0;width:100%;overflow:hidden}.sidenav-menu[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:380px;background-color:var(--ov-primary-color);border-left:none;position:absolute;z-index:1}.big[_ngcontent-%COMP%]{width:650px;max-width:100%}.mat-drawer.mat-drawer-side[_ngcontent-%COMP%]{z-index:0!important}.sidenav-main[_ngcontent-%COMP%]{height:100%;overflow:hidden;min-height:-webkit-fill-available;min-height:-moz-available}#layout-container[_ngcontent-%COMP%]{height:inherit;width:inherit}.mat-drawer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#toolbar-container[_ngcontent-%COMP%], #footer-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);width:100%;height:70px}#footer[_ngcontent-%COMP%]{color:#fff;height:25px;background-color:#333;padding:0 14px 0 0;position:absolute;bottom:0;left:0;z-index:999999}.reconnecting-container[_ngcontent-%COMP%]{width:100%;height:100%;z-index:1000;background-color:#000;opacity:80%;position:absolute}@media only screen and (max-width: 600px){#session-container[_ngcontent-%COMP%]{width:100%}} .mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:1px!important} .mat-input-element{caret-color:#000} .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#000} .mat-form-field-label{color:var(--ov-panel-text-color)!important} .mat-form-field.mat-focused .mat-form-field-ripple{background-color:var(--ov-panel-text-color)!important} .mat-drawer{background-color:transparent!important}"],data:{animation:[Qi("sessionAnimation",[Wn(":enter",[Ft({opacity:0}),Xn("50ms",Ft({opacity:1}))])])]},changeDetection:0}),t})();var Sa=(()=>{return(t=Sa||(Sa={})).BIG="zoom_in",t.NORMAL="zoom_out",Sa;var t})();let vy=(()=>{class t extends xl{constructor(){super(...arguments),this.containerSelector=".sidenav-main",this.customClass="cdk-overlay-container"}_createContainer(){const e=document.createElement("div");e.classList.add(this.customClass);let i=this.getElement(this.containerSelector);i||(i=this.getElement("body")),this._containerElement=i.appendChild(e)}setSelector(e){const i=this.getElement("."+this.customClass);if(i&&this.containerSelector!==e){const o=this.getElement(e);this.containerSelector=e,null==o||o.appendChild(i)}}getElement(e){return document.querySelector(e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275prov=De({token:t,factory:t.\u0275fac}),t})(),dP=(()=>{class t{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return t.\u0275fac=function(e){return new(e||t)(ie(vy))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hP=(()=>{class t{constructor(){this.isSpeaking=!1}ngOnInit(){this.subscribeSpeakingEvents()}ngOnDestroy(){this.unsubscribeSpeakingEvents()}subscribeSpeakingEvents(){this.streamManager&&(this.streamManager.on("publisherStartSpeaking",e=>this.isSpeaking=!0),this.streamManager.on("publisherStopSpeaking",e=>this.isSpeaking=!1))}unsubscribeSpeakingEvents(){this.streamManager&&(this.streamManager.off("publisherStartSpeaking"),this.streamManager.off("publisherStopSpeaking"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=it({type:t,selectors:[["ov-audio-wave"]],inputs:{streamManager:"streamManager"},decls:4,vars:3,consts:[[1,"audio-container"],[1,"stick","normal",3,"ngClass"],[1,"stick","loud",3,"ngClass"]],template:function(e,i){1&e&&(R(0,"div",0),rt(1,"div",1)(2,"div",2)(3,"div",1),L()),2&e&&(w(1),B("ngClass",i.isSpeaking?"play":"pause"),w(1),B("ngClass",i.isSpeaking?"play":"pause"),w(1),B("ngClass",i.isSpeaking?"play":"pause"))},dependencies:[$i,Ar],styles:["@keyframes normal{0%{height:20%}50%{height:40%}to{height:20%}}@keyframes loud{0%{height:30%}50%{height:80%}to{height:30%}}.audio-container[_ngcontent-%COMP%]{background-color:var(--ov-tertiary-color);padding:5px;max-width:15px;max-height:15px;height:15px;width:15px;border-radius:var(--ov-buttons-radius);display:flex;justify-content:space-between}.stick[_ngcontent-%COMP%]{margin:auto;height:80%;width:3px;background:var(--ov-text-color);border-radius:8px}.pause[_ngcontent-%COMP%]{animation-play-state:paused;height:1px}.play[_ngcontent-%COMP%]{animation-duration:1.2s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;animation-play-state:running}.normal[_ngcontent-%COMP%]{animation-name:normal}.loud[_ngcontent-%COMP%]{animation-name:loud}"]}),t})(),fP=(()=>{class t{constructor(){}set name(e){this.letter=e[0]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=it({type:t,selectors:[["ov-avatar-profile"]],inputs:{name:"name",color:"color"},decls:4,vars:4,consts:[["id","video-poster",1,"poster"],[1,"initial",3,"ngStyle"],["id","poster-text"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1)(2,"span",2),fe(3),L()()()),2&e&&(w(1),B("ngStyle",_i(2,$X,i.color)),w(2),He(i.letter))},dependencies:[pl,Hb],styles:[".poster[_ngcontent-%COMP%]{height:100%;width:100%;background-color:#000;position:absolute;z-index:1}.initial[_ngcontent-%COMP%]{position:absolute;display:inline-grid;z-index:1;margin:auto;inset:0;height:70px;width:70px;border-radius:var(--ov-video-radius);border:2px solid var(--ov-text-color);color:#000}#poster-text[_ngcontent-%COMP%]{padding:0!important;font-weight:700;font-size:40px;margin:auto}"]}),t})(),pP=(()=>{class t{constructor(){this.type=on.CAMERA}ngAfterViewInit(){setTimeout(()=>{this._streamManager&&this._videoElement&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement))})}set videoElement(e){this._videoElement=e}set streamManager(e){e&&(this._streamManager=e,this._videoElement&&this._streamManager&&(this.updateVideoStyles(),this._streamManager.addVideoElement(this._videoElement.nativeElement)))}updateVideoStyles(){var e,i;this.type=null===(i=null===(e=this._streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.typeOfVideo,this.type===on.SCREEN?(this._videoElement.nativeElement.style.objectFit="contain",this._videoElement.nativeElement.classList.add("screen-type")):(this._videoElement.nativeElement.style.objectFit="cover",this._videoElement.nativeElement.classList.add("camera-type"))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=it({type:t,selectors:[["ov-video"]],viewQuery:function(e,i){if(1&e&&Mt(YX,5),2&e){let o;Ne(o=Le())&&(i.videoElement=o.first)}},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[1,"OT_video-element",3,"muted"],["videoElement",""]],template:function(e,i){1&e&&rt(0,"video",0,1),2&e&&(B("muted",i.mutedSound),Pt("id",i.streamManager&&i._streamManager.stream?"video-"+i._streamManager.stream.streamId:"video-undefined"))},styles:["video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%;border-radius:var(--ov-video-radius);background-color:#000}"]}),t})(),_y=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.layoutService=i,this.participantService=o,this.storageService=r,this.cdkSrv=s,this.libService=a,this.videoSizeIconEnum=Sa,this.videoTypeEnum=on,this.videoSizeIcon=Sa.BIG,this.isMinimal=!1,this.showNickname=!0,this.showAudioDetection=!0,this.showSettingsButton=!0}set streamContainer(e){setTimeout(()=>{e&&(this._streamContainer=e,setTimeout(()=>{this.showVideo=!0},100))},0)}set stream(e){this._stream=e,this.checkVideoEnlarged(),this._stream.participant&&(this.nickname=this._stream.participant.nickname)}set nicknameInputElement(e){setTimeout(()=>{null==e||e.nativeElement.focus()})}ngOnInit(){this.subscribeToStreamDirectives()}ngOnDestroy(){this.cdkSrv.setSelector("body"),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.displayAudioDetectionSub&&this.displayAudioDetectionSub.unsubscribe(),this.displayParticipantNameSub&&this.displayParticipantNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe()}toggleVideoEnlarged(){var e,i,o,r,s,a,l,c,u,d,f,y;!(null===(o=null===(i=null===(e=this._stream.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===o)&&o.connectionId&&(this.openviduService.isMyOwnConnection(null===(a=null===(s=null===(r=this._stream.streamManager)||void 0===r?void 0:r.stream)||void 0===s?void 0:s.connection)||void 0===a?void 0:a.connectionId)?this.participantService.toggleMyVideoEnlarged(null===(u=null===(c=null===(l=this._stream.streamManager)||void 0===l?void 0:l.stream)||void 0===c?void 0:c.connection)||void 0===u?void 0:u.connectionId):this.participantService.toggleRemoteVideoEnlarged(null===(y=null===(f=null===(d=this._stream.streamManager)||void 0===d?void 0:d.stream)||void 0===f?void 0:f.connection)||void 0===y?void 0:y.connectionId)),this.layoutService.update()}toggleVideoMenu(e){var i,o;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(o=null===(i=this._stream.streamManager)||void 0===i?void 0:i.stream)||void 0===o?void 0:o.streamId)),this.menuTrigger.openMenu())}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._stream.participant.id,!this._stream.participant.isMutedForcibly)}toggleNicknameForm(){var e,i;null!==(i=null===(e=this._stream)||void 0===e?void 0:e.participant)&&void 0!==i&&i.local&&(this.toggleNickname=!this.toggleNickname)}updateNickname(e){(13===(null==e?void 0:e.keyCode)||"focusout"===(null==e?void 0:e.type))&&(this.nickname&&(this.participantService.setMyNickname(this.nickname),this.storageService.setNickname(this.nickname),this.openviduService.sendSignal(Ts.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())}replaceScreenTrack(){return J(this,void 0,void 0,function*(){const e={videoSource:sd.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1};yield this.openviduService.replaceTrack(on.SCREEN,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?Sa.NORMAL:Sa.BIG}subscribeToStreamDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayParticipantNameSub=this.libService.displayParticipantNameObs.subscribe(e=>{this.showNickname=e}),this.displayAudioDetectionSub=this.libService.displayAudioDetectionObs.subscribe(e=>{this.showAudioDetection=e}),this.settingsButtonSub=this.libService.streamSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(zo),h(Ca),h(Ti),h(Ho),h(dP),h(jt))},t.\u0275cmp=it({type:t,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(Mt(Ms,5),Mt(QX,5),Mt(KX,5,Ue),Mt(ZX,5)),2&e){let o;Ne(o=Le())&&(i.menuTrigger=o.first),Ne(o=Le())&&(i.menu=o.first),Ne(o=Le())&&(i.streamContainer=o.first),Ne(o=Le())&&(i.nicknameInputElement=o.first)}},inputs:{stream:"stream"},decls:1,vars:1,consts:[["class","OV_stream",3,"ngClass","id",4,"ngIf"],[1,"OV_stream",3,"ngClass","id"],["streamContainer",""],["id","nickname-container","class","nickname",3,"fullscreen",4,"ngIf"],["id","audio-wave-container",4,"ngIf"],[3,"name","color",4,"ngIf"],[3,"streamManager","mutedSound","dblclick"],[1,"status-icons"],["mat-icon-button","","id","statusMic","disabled","",4,"ngIf"],["id","settings-container","class","videoButtons",4,"ngIf"],["id","nickname-container",1,"nickname"],["class","nicknameContainer","selected","",3,"click",4,"ngIf"],["id","nickname-input-container",3,"fullscreen",4,"ngIf"],["selected","",1,"nicknameContainer",3,"click"],["id","nickname",4,"ngIf"],["id","nickname"],["id","nickname-input-container"],["matInput","","autocomplete","off","maxlength","20",3,"ngModel","ngModelChange","keypress","focusout"],["nicknameInput",""],["id","audio-wave-container"],[3,"streamManager"],[3,"name","color"],["mat-icon-button","","id","statusMic","disabled",""],["id","settings-container",1,"videoButtons"],["mat-icon-button","","matTooltipPosition","above","aria-label","Video settings menu",3,"matTooltip","click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click"],[4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","changeScreenButton",3,"click",4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click"],["mat-menu-item","","id","changeScreenButton",3,"click"]],template:function(e,i){1&e&&ee(0,mJ,9,11,"div",0),2&e&&B("ngIf",i._stream)},dependencies:[$i,nn,vs,Il,kl,ia,Ln,gi,oy,ar,Ar,nd,Ds,Ms,hP,fP,pP,li],styles:[".no-size[_ngcontent-%COMP%]{height:0px!important;width:0px!important}.nickname[_ngcontent-%COMP%]{padding:0;position:absolute;z-index:999;border-radius:var(--ov-video-radius);color:var(--ov-text-color);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif}.nicknameContainer[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);padding:5px;color:var(--ov-text-color);font-weight:700;border-radius:var(--ov-video-radius)}#nickname-input-container[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color);border-radius:var(--ov-video-radius)}#closeButton[_ngcontent-%COMP%]{position:absolute;top:-3px;right:0;z-index:999}#nicknameForm[_ngcontent-%COMP%]{padding:10px}#audio-wave-container[_ngcontent-%COMP%]{position:absolute;right:0;z-index:2;padding:5px}.fullscreen[_ngcontent-%COMP%]{top:40px}video[_ngcontent-%COMP%]{object-fit:cover;width:100%;height:100%;color:#fff;margin:0;padding:0;border:0;font-size:100%}.status-icons[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%]{position:absolute;bottom:0;z-index:10;text-align:center}.status-icons[_ngcontent-%COMP%]{left:0}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:var(--ov-text-color);width:26px;height:26px;margin:5px;border-radius:var(--ov-buttons-radius)}.status-icons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)}.status-icons[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{line-height:0px}.status-icons[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], #settings-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px}#settings-container[_ngcontent-%COMP%]{right:0}#settings-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--ov-secondary-color)}.OV_stream[_ngcontent-%COMP%]{width:100%;height:100%;position:relative;overflow:hidden;background-color:transparent;border-radius:var(--ov-video-radius)}input[_ngcontent-%COMP%]{caret-color:#fff!important}"],data:{animation:[Qi("posterAnimation",[Wn(":enter",[Ft({opacity:0}),Xn("100ms",Ft({opacity:1}))]),Wn(":leave",[Ft({opacity:1}),Xn("200ms",Ft({opacity:0}))])])]}}),t})(),gP=(()=>{class t{constructor(e){this.media=e,this.screenSizeObs=this.media.asObservable()}toggleFullscreen(e){const i=window.document,o=i.getElementById(e);i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement?i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen():o.requestFullscreen?o.requestFullscreen():o.msRequestFullscreen?o.msRequestFullscreen():o.mozRequestFullScreen?o.mozRequestFullScreen():o.webkitRequestFullscreen&&o.webkitRequestFullscreen()}isSmallElement(e){return null==e?void 0:e.className.includes(Go.SMALL_ELEMENT)}}return t.\u0275fac=function(e){return new(e||t)(ie(Gq))},t.\u0275prov=De({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mP=(()=>{class t{constructor(e){this.elementRef=e,this.defaultLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAADtCAMAAACS/9AMAAACLlBMVEUAAAAAiqoAiKoAiKr/zAD/zAD/zAD/zAD+zAH/zAD/zAD+zAH/zAD/zAAAiKoBiKoAian/zAAAiKoAiKoAiKoAiKr/zAD/zAAAiKr/zAAAiKoAiKr/zAD/zAD/zAD/zAAAiKsAiKr/zAD/zQAAiKsAiKr/zAD/zQD/zAAAiKoAiKr/zAD/zAD/zQD/zAAAiKr+zAD/zAAAiar/zAD/zAD/zAAAian/zAAAiKr/zAD/zAD/zQAAiKv/zAAAiKr/zAAAiKr/zAD/zAAAiKoAiKoAiKr+zAD/zQAAiKr/zAAAiKr/zAAAiKr/zAAAiKr/zAAAiKoAiKoAiKoAiKoAiKoBian/zQBHwlYWymQAiKr/zAAG02IAiKr///8G0mMJ02EA02j7zAH9zAEA02UI02EG1mBl0D3+//4FxW+sziEG02MG1l/9//0ExHED02AJ1GT7/v0S1Wns/PMI02MA0FgA0VoG2F0Ag68C0l4Ah6sAha0B0lwi2HQN1GYBmJsEwXP2/vnL9t7a+egCpI8FzWhNzknk++7A9Ni789Sk78Z66KwAjqRV4pQu2nze+euE6rJh5JwEu3kX12yUzyqO67hx5qUDqopD3ok83YU13IADtIAO01880kxg0D/Hzhav8c2Z7b9o5aBN4I8DsYMFyGwU012A0DLnzQnxzQXx/ffp+/HU+OSS7Lsw0lGfzyalzyO0zh27zhvUzRHczg0Ai6cBk6Ad0lkm0lVy0De/zhkyJ1GVAAAAWnRSTlMAAvz+/AX6gAT7cQMB/qYDBAJh9p7h7BoO0beJbsyfPy1YZwjbvXtbUicU9XYg45FjMyDYxcGxsIFFKRQI8Oq7q6mJeW5COg3So5iYUujIkGRQRjszoU7vu07Vus4OAAANMUlEQVR42uzWPWsCQRDG8adYz93MTLGNEvAFTtADX1CiiEoQLGIl9vP9P0i8GIJNCvdOcBd/H+CKPzOzh5eXuzF7Imtt48lZS54ZD8TeEqJC1uMxiHDBx22/yN8mw+ZTm3TyYrHzANgy6sbEQGOR95anTCNhxt1ePgVAHrUihv86vBv9IcY5lz0154xoabzKd2Bi1MZ7DEYrKXM7IyIaBxHjjIq2Dm14X+NgFB8q4kwsHW6IMaKtSQOEWli01+VHNVZiRLsLEKM6wmamEbcoGaPjeR05CPNM427x2+MAz5Vj5LEPxpWUOahqjCLmi3FLnA6r5fDYthJYk7/pKECoYpVMDFWjpy08QhE6CcVQdboGIxCjPdMIf7j+V2VXCE11mhKjSwYjBOOY2GhUGQ6LUVJX41pjjzCMdXI1RLMtfNgN/UxtUVSdDmFxP0pwUcJXxeKc2ItSEm3twAGLgn2Cs3GxAQXUGCT3vpaMdgIOh8c0S7GG03NADUJfU6zxzX4drDQMBAEYnk08iApbqIJaBREL1kuhB/FQFNFeRDwIRdgEs9utUiM+Rp+gx1ZvrV6sUA/q2zmth4gYIQu7W0N+8gQfM8tkhh3CgoLGdhoxUOMgu0S//6oALCTX2Eypxvq8isZaCs+NscbKrIrGXKaRaWQamUamkWn8Fw0xrmG0Lw1Cyc8ozeVylACxoiEEsxNq/Hl9IYlpjQnF48dw8H5ttPs2dlFf/KWT8t7x6cYyYJSY1BD4PQx6/ZAbT0ou7/zYnP1ioVYFIMSUBi7vU6cXchl6zcBCty0nLndCslQoAaHEiIZgYvjGpRc0PStdXrX82Fx3QpKvl4ASAxqCjXpcBoFnqUgjngRB8kcUiHYNwW66XGEsTGlEHqs7QDVrCNaRocJcGNOIPPwt3BatGojBPYXBMK6BIUcFiEYNXBOpgGFHAznOqkC0aTTYqC8VMCxpIEdZnwbW5gpvhiUNzPVrQDVpCPYyBRhJNBy/qO/dEM/29ySRBg7HOdBII32jkUjD8XeBRBqpezWSzka+AkSDRoO9dkNvCkqigcPxyY6967YNQ2EAdtu96dBOXfoGfYUOHfsGLKcEEUIQomySgABZgOMhdgxfgsBG4ilxgAC5DVnzdjmKRSYGsgiIACX8/0HQ/OHw8PD8bX2rQYMGr0aURlWNPzXVxu471Pjy/wdNYE7jw90olTU+/6pF4+pymzUhlTSI419r6801aCpvxDlxGpXa6FtrUBN9aMSNUl3jZy0a9804KJU1fre2atDYa0YTrazxvfUJGl7jKzSgAQ1oQAMa0IAGNKARtIZWLI7pK6DBhM5MnOfCmlTp0DUEs8v5oD/dP1x1yUMEraHT/FzyIhHv3HVNrES4GoKpIZeJpCSSPEbHhUeoGtrOeRLxdSL6Oxi1ySNMDZ1NejziPrLwWLQNUyFqKDPjiaPwHtNVTh7habCYugbfjJQR768UeYSmEedTr7HpcXu0Qx5BaYi43Snaxqse+2NmmYLG2oOTR2yFgob3uEjJAxrOY3BCHhoapUc0PMms1tAokkguz05tpjU0So/kbGkzpaHhPA4nNlUaGuVzrrf2gIbzOO8a8oCG87grPAQ0So/r+ZMHNEqPzuxpPQaN0uNmvS6Exsa6EBp+PbbIDdPQcB79o51MQcOvgwYTq6Dh6oNfj62CRpmEy7FR0CgjeW+ZaWj46himqI3nRKeZhoYvjpFR0PAaM2i80FhAwyXiyQR945G98+pxGggC8CYxkJBYTui99957Eb33ItiYhHYCJaEJSAjlQi8CUQSiwwNdIJpE+3mM44QhIoBnbbi143m4p9Pp9Gm+bTPrxdS4dNifYX/AuHr8iE+jsrXfcv7eYX8tarLIbTl13N+nVEssJ68dPObvYavlpuNw3OOfbxil6hyUIuHo3D/7MtsYjkFZ1j8XNVugjJYOv4KwyzwPhXYfv7pUrh0YZ+X7/Mpjpc4GLPyqdLUmDTU2v0a/P1fpV8j4/Rs5o9fJ7+35scC4eNfv+6ouMIweWr8n0Cy4vrkCCwy/X7Q8kVwt383we4nNxhW4x9RAfeavkcavTV5GU1Pj3EGA2zqnt+T+vMBonPspgONCPRq5cvOwwaKR7i7BLT+4APr7BUaD3Ws7ePgOjhu1l1L2HWy8O4+GKvvrnuY04H1YSI67+xFH7sdpTkPelYaR4/D1XdWL9LuqpzmNeo/eyI4np82xw+iKNU5zGvcbC2UcJ65fOnX6zcVbTw4Yk2ojf3/DwLH30OHMiX3wE062ZPg2y4iWpJHMwGwKH+7ZhywcopEVodGKDfLmN52ye4RotOGtPUmj5NNAGvlS0aeBNG4c9ccNpHG/4LoZFsNxGreFaIzhigdpJJvOCNCIso1c9SKNVLPAuJFgYxWueo9G09lPAnNKjE2f6UEaOKUQaSR6csWDNG4XBGiwKFvGI56jgcMGjQZMKt7LDdilFHURGgk2cjhXvUYDRaHRYDE2mSseo5E8e7koRiPKBnuNRir/FFOD9EQZ5Eb/8Vzx0ts6qSZIDTKNSkTZGOdofJTg3aVUHlfl1l96rESMxSY6hGM7f5xs8cCVF/3dS3N1PpwrXnnmMZV9hp4Qxw10xZlZ9tWXFho4EMbZz5gapDkFcQziiuLIyPGwZSYV1ORsc0Gn01jKNOYYDlTlUUu+eplK5vdgZlBoTGFxpBGDVcdw4OHqF1FTqWzyqY4wKDRWmzQQx7QJXFUU25NKy4yigCKZzZaaC0UBGCE9tK4ybqAsrfqNAh4RVbWVHV///8CRAhRN+WTpTBETg0Zj1jCTBkYiwRa1Hc+BRSSiqKqoKt+sqJJyMJJAIp989rS5iMMnVZRuCANtgVX6xl6jTBBgTQRCcVAVZNGUdSLyRjQlU7tv3G7+VKiTF7QHUX/lAT8WLRw0Z/xM5d89Og4snu2xHaVS6caN+09vn2m+rB8VQ4Fvjg/F3KjlkWAQ4eljpw7u13bEoB5zuErdquzY+ZdZ8OwZ3YkoFo8WII4WdVuBK9G6QBLhBKtEGAqTEWeWHDgL3r9c0GWKkL4AadQlEktEw+Fwqyh9t6/yl192pH8rSb48C8oUQX0DwLAQxGoLbuszO38rCcyCUkVQHzDOGo0w1qxJON7tyNTJDgklKQ+h65hmBUaMMTz5IOF4n96RdoEkRma0X2MNBp6n03E8frs1k5ZdEj0U1GctsAgDROmHqUHE8erFA+CRlncmMViE9IHjrMCwW1zYDsdgjx5s3ZpJptM7D8onSQhQhPSOqzUCjOmdhAtP6jbOX94893zH1q07ks9AEvMfEIpgyDEGRgSD5h9cPL8LCwSYxYiyIUKpgekBQD68ePRw06QB7YM2/XY42i8evSDOAhYTw1bBGvNju6LyCQtZLD6sz9rl7QSjb/f2uiPpEZrVseOAxSu7LZ23fJyRE5rVxDDLTqNsHqUrCl8xJsoCMWYvhk7SHdAlpPdlXWZUN6uawYKSGr05V+2xiCzrzBJRBhHQtLhoQD6vGWBXFzwLDmhx6yRwfp1rRxS1Ikk0xmwH+N1lim1dYA6ZUTtsUkSJYtePUGJ06hdl0QRzJLSAI7rgUosYCTatNVfFWSi9qpI4xQN1EValO4szemBfragkPXvXSiKDLiF9scYCTCxmc0VYkh6tCJJQdOmGugjQCPYRoxFjnWHHJockmB6oi6Aq84RUMbvjZJHEti5YKhAdRJdwRR5JbOqCRzt4zkUSZdEKrkokSU16sL4d6bpgwZUaZje+XJLU6kLeu2CjhgiNVTwimyQ1uvQh6YIVV9jF00VpBaUD6SQR1wVxbGYafQxdqHJVQklEdUFVRpNoYI1NTkkwNEbXJaQPgJ0bVRQ2gSuSSmJLFyCHjSukHZu0kgjqgi1eVFF6cEVmScRnl5C+MoDJYb10ILUkQrpgswZxxzaTq5JLIqILNvJYC7ykIb8kZF2wp5xGoxePuEASmi6oCjQAknZs0CrpCkloumAhgVRVmuoeSei6BPUOLEAsHbhGErIuUEgg7NxiLNyVKy6ShK7LWlTFWrOXqyQh6EIsJJifeXKZJCRdoJAQt6pKrFw6cJ0kBF2gkLAeaBCavVwoSa0uA1EXC4UEcrOXKr0kVnUBGgPhdyzmxpx6NECSrtJLYkUXLCTQm71Qkpkj+rtAkjq6iBUSsNlL/VUSPmekOySxogveOqA3e6mGJFPdI4kFXfDq1u8DvzHgckkwNIa61OJYzjRCsxdKorpPkj/pgi1gFksHHpCkhsew0YYupEICluYjPy+32rpVku9DqV1CENkFMZHAT1whimhueQ7hTIKSPBiF4NkFMZFA1JAoJ+8wySS4swvhiQTE0SRsnCycwEwyZGsS7MEBzy6IiQRiZg9MQZUK7/DIJDiyC2LIh3CLQ93T3N9tuGQSBOAHZRcmYHYhZXkgDyQQBIdLJkEARljtwsQkTPR6OB4Obh7u4ZRJMLMLM2Tb54gHwOSh5Swl5aw1GhiQ8ICkktHAgGYXAUZGgdHAIAAAQBR1+dE1+L0AAAAASUVORK5CYII="}loadDefaultLogo(){this.elementRef.nativeElement.src=this.ovLogo||this.defaultLogo}}return t.\u0275fac=function(e){return new(e||t)(h(Ue))},t.\u0275dir=be({type:t,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&Ie("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),t})(),vP=(()=>{class t{constructor(e,i,o,r,s,a,l,c,u,d,f,y,N,X,_e){this.documentService=e,this.chatService=i,this.panelService=o,this.participantService=r,this.openviduService=s,this.oVDevicesService=a,this.actionService=l,this.loggerSrv=c,this.layoutService=u,this.cd=d,this.libService=f,this.platformService=y,this.recordingService=N,this.translateService=X,this.storageSrv=_e,this.onLeaveButtonClicked=new xe,this.onCameraButtonClicked=new xe,this.onMicrophoneButtonClicked=new xe,this.onFullscreenButtonClicked=new xe,this.onScreenshareButtonClicked=new xe,this.onParticipantsPanelButtonClicked=new xe,this.onChatPanelButtonClicked=new xe,this.onActivitiesPanelButtonClicked=new xe,this.onStartRecordingClicked=new xe,this.onStopRecordingClicked=new xe,this.unreadMessages=0,this.messageList=[],this.isFullscreenActive=!1,this.isChatOpened=!1,this.isParticipantsOpened=!1,this.isActivitiesOpened=!1,this.isMinimal=!1,this.showScreenshareButton=!0,this.showFullscreenButton=!0,this.showBackgroundEffectsButton=!0,this.showLeaveButton=!0,this.showRecordingButton=!0,this.showSettingsButton=!0,this.showMoreOptionsButton=!0,this.showParticipantsPanelButton=!0,this.showActivitiesPanelButton=!0,this.showChatPanelButton=!0,this.showLogo=!0,this.showSessionName=!0,this.showCaptionsButton=!0,this.videoMuteChanging=!1,this.recordingStatus=Bn.STOPPED,this._recordingStatus=Bn,this.isSessionCreator=!1,this.currentWindowHeight=window.innerHeight,this.log=this.loggerSrv.get("ToolbarComponent")}set externalAdditionalButtons(e){e&&(this.toolbarAdditionalButtonsTemplate=e.template)}set externalAdditionalPanelButtons(e){e&&(this.toolbarAdditionalPanelButtonsTemplate=e.template)}sizeChange(e){this.currentWindowHeight>=window.innerHeight&&(this.isFullscreenActive=!1,this.currentWindowHeight=window.innerHeight)}keyDown(e){if("F11"===e.key)return e.preventDefault(),this.toggleFullscreen(),this.currentWindowHeight=window.innerHeight,!1}ngOnInit(){return J(this,void 0,void 0,function*(){this.subscribeToToolbarDirectives(),this.hasVideoDevices=this.oVDevicesService.hasVideoDeviceAvailable(),this.hasAudioDevices=this.oVDevicesService.hasAudioDeviceAvailable(),this.session=this.openviduService.getWebcamSession(),this.subscribeToUserMediaProperties(),this.subscribeToReconnection(),this.subscribeToMenuToggling(),this.subscribeToChatMessages(),this.subscribeToRecordingStatus(),this.subscribeToScreenSize(),this.subscribeToCaptionsToggling()})}ngAfterViewInit(){var e;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.isSessionCreator=this.participantService.getMyRole()===oc.MODERATOR})}ngOnDestroy(){this.panelTogglingSubscription&&this.panelTogglingSubscription.unsubscribe(),this.chatMessagesSubscription&&this.chatMessagesSubscription.unsubscribe(),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenshareButtonSub&&this.screenshareButtonSub.unsubscribe(),this.fullscreenButtonSub&&this.fullscreenButtonSub.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.leaveButtonSub&&this.leaveButtonSub.unsubscribe(),this.recordingButtonSub&&this.recordingButtonSub.unsubscribe(),this.participantsPanelButtonSub&&this.participantsPanelButtonSub.unsubscribe(),this.chatPanelButtonSub&&this.chatPanelButtonSub.unsubscribe(),this.displayLogoSub&&this.displayLogoSub.unsubscribe(),this.displaySessionNameSub&&this.displaySessionNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.activitiesPanelButtonSub&&this.activitiesPanelButtonSub.unsubscribe(),this.recordingSubscription&&this.recordingSubscription.unsubscribe(),this.screenSizeSub&&this.screenSizeSub.unsubscribe(),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.captionsSubs&&this.captionsSubs.unsubscribe()}toggleMicrophone(){return J(this,void 0,void 0,function*(){this.onMicrophoneButtonClicked.emit();try{yield this.openviduService.publishAudio(!this.isAudioActive)}catch(e){this.log.e("There was an error toggling microphone:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_MICROPHONE"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}})}toggleCamera(){return J(this,void 0,void 0,function*(){this.videoMuteChanging=!0,this.onCameraButtonClicked.emit();try{const e=!this.participantService.isMyVideoActive();this.panelService.isExternalPanelOpened()&&!e&&this.panelService.togglePanel(Wt.BACKGROUND_EFFECTS),yield this.openviduService.publishVideo(e)}catch(e){this.log.e("There was an error toggling camera:",e.code,e.message),this.actionService.openDialog(this.translateService.translate("ERRORS.TOGGLE_CAMERA"),(null==e?void 0:e.error)||(null==e?void 0:e.message)||e)}this.videoMuteChanging=!1})}toggleScreenShare(){return J(this,void 0,void 0,function*(){this.onScreenshareButtonClicked.emit();try{yield this.openviduService.toggleScreenshare()}catch(e){this.log.e("There was an error toggling screen share",e.code,e.message),e&&"SCREEN_SHARING_NOT_SUPPORTED"===e.name&&this.actionService.openDialog(this.translateService.translate("ERRORS.SCREEN_SHARING"),this.translateService.translate("ERRORS.SCREEN_SUPPORT"))}})}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect(),this.onLeaveButtonClicked.emit()}toggleRecording(){this.recordingStatus===Bn.STARTED?(this.log.d("Stopping recording"),this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Bn.STOPPING)):this.recordingStatus===Bn.STOPPED&&(this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Bn.STARTING),this.showActivitiesPanelButton&&!this.isActivitiesOpened&&this.toggleActivitiesPanel("recording"))}toggleBackgroundEffects(){this.openviduService.isOpenViduPro()?this.panelService.togglePanel(Wt.BACKGROUND_EFFECTS):this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.BACKGROUND.TITLE"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleCaptions(){this.openviduService.isOpenViduPro()?this.layoutService.toggleCaptions():this.actionService.openProFeatureDialog(this.translateService.translate("PANEL.SETTINGS.CAPTIONS"),this.translateService.translate("PANEL.PRO_FEATURE"))}toggleSettings(){this.panelService.togglePanel(Wt.SETTINGS)}toggleParticipantsPanel(){this.onParticipantsPanelButtonClicked.emit(),this.panelService.togglePanel(Wt.PARTICIPANTS)}toggleChatPanel(){this.onChatPanelButtonClicked.emit(),this.panelService.togglePanel(Wt.CHAT)}toggleFullscreen(){this.isFullscreenActive=!this.isFullscreenActive,this.documentService.toggleFullscreen("session-container"),this.onFullscreenButtonClicked.emit()}toggleActivitiesPanel(e){this.onActivitiesPanelButtonClicked.emit(),this.panelService.togglePanel(Wt.ACTIVITIES,e)}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.panelService.isPanelOpened()&&this.panelService.closePanel(),this.isConnectionLost=!0}),this.session.on("reconnected",()=>{this.isConnectionLost=!1})}subscribeToMenuToggling(){this.panelTogglingSubscription=this.panelService.panelOpenedObs.subscribe(e=>{this.isChatOpened=e.opened&&e.type===Wt.CHAT,this.isParticipantsOpened=e.opened&&e.type===Wt.PARTICIPANTS,this.isActivitiesOpened=e.opened&&e.type===Wt.ACTIVITIES,this.isChatOpened&&(this.unreadMessages=0),this.cd.markForCheck()})}subscribeToChatMessages(){this.chatMessagesSubscription=this.chatService.messagesObs.pipe(Gl(1)).subscribe(e=>{this.panelService.isChatPanelOpened()||this.unreadMessages++,this.messageList=e,this.cd.markForCheck()})}subscribeToUserMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isWebcamVideoActive=e.isCameraVideoActive(),this.isAudioActive=e.hasAudioActive(),this.isScreenShareActive=e.isScreenActive(),this.isSessionCreator=e.getRole()===oc.MODERATOR,this.storageSrv.setAudioMuted(!this.isAudioActive),this.storageSrv.setVideoMuted(!this.isWebcamVideoActive),this.cd.markForCheck())})}subscribeToRecordingStatus(){this.recordingSubscription=this.recordingService.recordingStatusObs.pipe(Gl(1)).subscribe(e=>{this.recordingStatus=e.info.status,e.time&&(this.recordingTime=e.time),this.cd.markForCheck()})}subscribeToToolbarDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e,this.cd.markForCheck()}),this.screenshareButtonSub=this.libService.screenshareButtonObs.subscribe(e=>{this.showScreenshareButton=e&&!this.platformService.isMobile(),this.cd.markForCheck()}),this.fullscreenButtonSub=this.libService.fullscreenButtonObs.subscribe(e=>{this.showFullscreenButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.leaveButtonSub=this.libService.leaveButtonObs.subscribe(e=>{this.showLeaveButton=e,this.cd.markForCheck()}),this.recordingButtonSub=this.libService.recordingButtonObs.subscribe(e=>{this.showRecordingButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.settingsButtonSub=this.libService.toolbarSettingsButtonObs.subscribe(e=>{this.showSettingsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.chatPanelButtonSub=this.libService.chatPanelButtonObs.subscribe(e=>{this.showChatPanelButton=e,this.cd.markForCheck()}),this.participantsPanelButtonSub=this.libService.participantsPanelButtonObs.subscribe(e=>{this.showParticipantsPanelButton=e,this.cd.markForCheck()}),this.activitiesPanelButtonSub=this.libService.activitiesPanelButtonObs.subscribe(e=>{this.showActivitiesPanelButton=e,this.cd.markForCheck()}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e,this.checkDisplayMoreOptions(),this.cd.markForCheck()}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e,this.cd.markForCheck()}),this.displaySessionNameSub=this.libService.displaySessionNameObs.subscribe(e=>{this.showSessionName=e,this.cd.markForCheck()}),this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptionsButton=e,this.cd.markForCheck()})}subscribeToScreenSize(){this.screenSizeSub=this.documentService.screenSizeObs.subscribe(e=>{this.screenSize=e[0].mqAlias,this.cd.markForCheck()})}subscribeToCaptionsToggling(){this.captionsSubs=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e,this.cd.markForCheck()})}checkDisplayMoreOptions(){this.showMoreOptionsButton=this.showFullscreenButton||this.showBackgroundEffectsButton||this.showRecordingButton||this.showSettingsButton}}return t.\u0275fac=function(e){return new(e||t)(h(gP),h(Dp),h(So),h(Ti),h(zo),h(ac),h(es),h(cr),h(Ca),h(zt),h(jt),h(sc),h(ld),h(tc),h(Ho))},t.\u0275cmp=it({type:t,selectors:[["ov-toolbar"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,vJ,5,yt),nt(o,_J,5,yt),nt(o,JR,5),nt(o,eP,5)),2&e){let r;Ne(r=Le())&&(i.toolbarAdditionalButtonsTemplate=r.first),Ne(r=Le())&&(i.toolbarAdditionalPanelButtonsTemplate=r.first),Ne(r=Le())&&(i.externalAdditionalButtons=r.first),Ne(r=Le())&&(i.externalAdditionalPanelButtons=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(Ms,5),2&e){let o;Ne(o=Le())&&(i.menuTrigger=o.first)}},hostBindings:function(e,i){1&e&&Ie("resize",function(r){return i.sizeChange(r)},0,Nc)("keydown",function(r){return i.keyDown(r)},!1,D0)},outputs:{onLeaveButtonClicked:"onLeaveButtonClicked",onCameraButtonClicked:"onCameraButtonClicked",onMicrophoneButtonClicked:"onMicrophoneButtonClicked",onFullscreenButtonClicked:"onFullscreenButtonClicked",onScreenshareButtonClicked:"onScreenshareButtonClicked",onParticipantsPanelButtonClicked:"onParticipantsPanelButtonClicked",onChatPanelButtonClicked:"onChatPanelButtonClicked",onActivitiesPanelButtonClicked:"onActivitiesPanelButtonClicked",onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked"},decls:26,vars:25,consts:[["id","toolbar","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","40px"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container",4,"ngIf"],["fxFlex","60%","fxFlexOrder","2","fxLayoutAlign","center center","id","media-buttons-container"],["id","mic-btn","mat-icon-button","",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","camera-btn","mat-icon-button","",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["mat-icon-button","","id","screenshare-btn",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled",4,"ngIf"],["id","more-options-menu"],["menu","matMenu"],["mat-menu-item","","id","fullscreen-btn",3,"click",4,"ngIf"],["mat-menu-item","","id","recording-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click",4,"ngIf"],["mat-menu-item","","id","captions-btn",3,"disabled","click",4,"ngIf"],["class","divider",4,"ngIf"],["mat-menu-item","","id","toolbar-settings-btn",3,"click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","leave-btn",3,"click",4,"ngIf"],["fxFlex","20%","fxFlexOrder","3","fxLayoutAlign","end center","id","menu-buttons-container"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","active-btn","click",4,"ngIf"],["fxFlex","20%","fxLayoutAlign","start center","id","info-container"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],["id","session-info-container"],["id","session-name",4,"ngIf"],["id","recording-tag","class","recording-tag",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],["id","session-name"],["id","recording-tag",1,"recording-tag"],[1,"blink"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],["mat-icon-button","","id","screenshare-btn",3,"disabled","click"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled"],["mat-menu-item","","id","fullscreen-btn",3,"click"],["mat-menu-item","","id","recording-btn",3,"disabled","click"],["color","warn"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click"],["mat-menu-item","","id","captions-btn",3,"disabled","click"],[1,"divider"],["mat-menu-item","","id","toolbar-settings-btn",3,"click"],[4,"ngTemplateOutlet"],["mat-icon-button","","id","leave-btn",3,"click"],["mat-icon-button","","id","activities-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","participants-panel-btn",3,"matTooltip","disabled","click"],["mat-icon-button","","id","chat-panel-btn",3,"matTooltip","disabled","click"],["matBadgePosition","above before","matBadgeSize","small","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,i){1&e&&(R(0,"mat-toolbar",0),ee(1,EJ,6,5,"div",1),R(2,"div",2)(3,"button",3),Ie("click",function(){return i.toggleMicrophone()}),ee(4,SJ,3,4,"mat-icon",4),ee(5,AJ,3,4,"mat-icon",5),L(),R(6,"button",6),Ie("click",function(){return i.toggleCamera()}),ee(7,wJ,3,4,"mat-icon",7),ee(8,DJ,3,4,"mat-icon",8),L(),ee(9,xJ,3,5,"button",9),ee(10,OJ,4,5,"button",10),R(11,"mat-menu",11,12),ee(13,NJ,5,4,"button",13),ee(14,BJ,5,3,"button",14),ee(15,VJ,6,4,"button",15),ee(16,HJ,5,3,"button",16),ee(17,GJ,1,0,"mat-divider",17),ee(18,zJ,6,3,"button",18),L(),ee(19,WJ,2,1,"ng-container",19),ee(20,$J,4,3,"button",20),L(),R(21,"div",21),ee(22,YJ,4,6,"button",22),ee(23,QJ,4,6,"button",23),ee(24,KJ,4,8,"button",24),ee(25,XJ,2,1,"ng-container",19),L()()),2&e&&(w(1),B("ngIf","xs"!==i.screenSize),w(2),ft("warn-btn",!i.isAudioActive),B("disabled",i.isConnectionLost||!i.hasAudioDevices),w(1),B("ngIf",i.isAudioActive),w(1),B("ngIf",!i.isAudioActive),w(1),ft("warn-btn",!i.isWebcamVideoActive),B("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),w(1),B("ngIf",i.isWebcamVideoActive),w(1),B("ngIf",!i.isWebcamVideoActive),w(1),B("ngIf",!i.isMinimal&&i.showScreenshareButton),w(1),B("ngIf",!i.isMinimal&&i.showMoreOptionsButton),w(3),B("ngIf",i.showFullscreenButton),w(1),B("ngIf",!i.isMinimal&&i.showRecordingButton),w(1),B("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),w(1),B("ngIf",!i.isMinimal&&i.showCaptionsButton),w(1),B("ngIf",!i.isMinimal&&i.showSettingsButton),w(1),B("ngIf",!i.isMinimal&&i.showSettingsButton),w(1),B("ngIf",i.toolbarAdditionalButtonsTemplate),w(1),B("ngIf",i.showLeaveButton),w(2),B("ngIf",!i.isMinimal&&i.showActivitiesPanelButton),w(1),B("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),w(1),B("ngIf",!i.isMinimal&&i.showChatPanelButton),w(1),B("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},dependencies:[nn,ds,Ln,yp,gi,ar,xK,As,hp,ma,zb,ga,nd,Ds,Ms,ry,mP,Oh,li],styles:["#toolbar[_ngcontent-%COMP%]{height:100%;background-color:transparent;color:var(--ov-text-color)}.buttonsContainer[_ngcontent-%COMP%]{position:absolute;left:0;right:0}#info-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}#media-buttons-container[_ngcontent-%COMP%]{max-height:100%!important}#media-buttons-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], #media-buttons-container>button, #media-buttons-container[_ngcontent-%COMP%]:not(#media-buttons-container > button)[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #media-buttons-container:not(#media-buttons-container > button) button{width:40px;height:40px;background-color:var(--ov-secondary-color);margin:6px}.warn-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important}.active-btn[_ngcontent-%COMP%], .active-btn{background-color:var(--ov-tertiary-color)!important}#media-buttons-container[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px}#media-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], #menu-buttons-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}#branding-logo[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;padding:10px}#session-name[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:700;font-size:15px;height:fit-content;padding:0 15px}#session-info-container[_ngcontent-%COMP%]{display:flex}.colapsed[_ngcontent-%COMP%]{flex-direction:column}.recording-tag[_ngcontent-%COMP%]{padding:0 10px;background-color:var(--ov-warn-color);border-radius:var(--ov-panel-radius);width:fit-content;font-size:12px;text-align:center;line-height:20px;margin:auto}.recording-tag[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;display:inline;vertical-align:sub;margin-right:5px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite}#point[_ngcontent-%COMP%]{width:10px;height:10px;position:absolute;top:12px;right:33px;border-radius:var(--ov-buttons-radius);background-color:#ffa600;border:1px solid #000;z-index:99999}#leave-btn[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;border-radius:var(--ov-leave-button-radius)!important;width:60px!important}.tooltipList[_ngcontent-%COMP%]{white-space:pre}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-overlap.mat-badge-before[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{left:-17px}#navChatButton[_ngcontent-%COMP%] .mat-badge-medium.mat-badge-above[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{top:-6px}.mat-icon-button[disabled][_ngcontent-%COMP%]{color:#fff}.divider[_ngcontent-%COMP%]{margin:8px 0} .mat-menu-item{height:40px;line-height:40px}@media (max-width: 750px){#session-name[_ngcontent-%COMP%]{display:none}}@media (max-width: 850px){#branding-logo[_ngcontent-%COMP%]{display:none}}@media (max-width: 550px){#toolbar[_ngcontent-%COMP%]{padding:0;place-content:space-evenly}}@keyframes blinker{50%{opacity:.3}}"],changeDetection:0}),t})(),_P=(()=>{class t{transform(e){if(e<60)return Math.floor(e)+"s";if(e<3600)return Math.floor(e/60)+"m "+Math.floor(e%60)+"s";{const i=Math.floor(e/3600);return i+"h "+Math.floor((e-3600*i)/60)+"m"}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Qn({name:"duration",type:t,pure:!0}),t})(),by=(()=>{class t{constructor(e,i){this.panelService=e,this.cd=i}set externalParticipantPanel(e){e&&(this.participantsPanelTemplate=e.template)}set externalActivitiesPanel(e){e&&(this.activitiesPanelTemplate=e.template)}set externalChatPanel(e){e&&(this.chatPanelTemplate=e.template)}set externalAdditionalPanels(e){e&&(this.additionalPanelsTemplate=e.template)}ngOnInit(){this.subscribeToPanelToggling()}ngOnDestroy(){this.isChatPanelOpened=!1,this.isParticipantsPanelOpened=!1,this.panelSubscription&&this.panelSubscription.unsubscribe()}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.pipe(Gl(1)).subscribe(e=>{this.isChatPanelOpened=e.opened&&e.type===Wt.CHAT,this.isParticipantsPanelOpened=e.opened&&e.type===Wt.PARTICIPANTS,this.isBackgroundEffectsPanelOpened=e.opened&&e.type===Wt.BACKGROUND_EFFECTS,this.isSettingsPanelOpened=e.opened&&e.type===Wt.SETTINGS,this.isActivitiesPanelOpened=e.opened&&e.type===Wt.ACTIVITIES,this.isExternalPanelOpened=e.opened&&e.type!==Wt.PARTICIPANTS&&e.type!==Wt.CHAT,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(So),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-panel"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,JJ,5,yt),nt(o,eee,5,yt),nt(o,tee,5,yt),nt(o,nee,5,yt),nt(o,iee,5,yt),nt(o,oee,5,yt),nt(o,oP,5),nt(o,iP,5),nt(o,nP,5),nt(o,tP,5)),2&e){let r;Ne(r=Le())&&(i.participantsPanelTemplate=r.first),Ne(r=Le())&&(i.backgroundEffectsPanelTemplate=r.first),Ne(r=Le())&&(i.settingsPanelTemplate=r.first),Ne(r=Le())&&(i.activitiesPanelTemplate=r.first),Ne(r=Le())&&(i.chatPanelTemplate=r.first),Ne(r=Le())&&(i.additionalPanelsTemplate=r.first),Ne(r=Le())&&(i.externalParticipantPanel=r.first),Ne(r=Le())&&(i.externalActivitiesPanel=r.first),Ne(r=Le())&&(i.externalChatPanel=r.first),Ne(r=Le())&&(i.externalAdditionalPanels=r.first)}},decls:6,vars:6,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(ee(0,see,2,1,"ng-container",0),ee(1,lee,2,1,"ng-container",0),ee(2,uee,2,1,"ng-container",0),ee(3,hee,2,1,"ng-container",0),ee(4,pee,2,1,"ng-container",0),ee(5,mee,2,1,"ng-container",0)),2&e&&(B("ngIf",i.isChatPanelOpened),w(1),B("ngIf",i.isParticipantsPanelOpened),w(1),B("ngIf",i.isBackgroundEffectsPanelOpened),w(1),B("ngIf",i.isSettingsPanelOpened),w(1),B("ngIf",i.isActivitiesPanelOpened),w(1),B("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},dependencies:[nn,ds],styles:[rd],changeDetection:0}),t})(),yy=(()=>{class t{constructor(e,i,o){this.libService=e,this.participantService=i,this.cd=o,this.showMuteButton=!0}set externalItemElements(e){e&&(this.participantPanelItemElementsTemplate=e.template)}set participant(e){this._participant=e}ngOnInit(){this.subscribeToParticipantPanelItemDirectives()}ngOnDestroy(){this.muteButtonSub&&this.muteButtonSub.unsubscribe()}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._participant.id,!this._participant.isMutedForcibly)}subscribeToParticipantPanelItemDirectives(){this.muteButtonSub=this.libService.participantItemMuteButton.subscribe(e=>{this.showMuteButton=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(jt),h(Ti),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,vee,5,yt),nt(o,sP,5)),2&e){let r;Ne(r=Le())&&(i.participantPanelItemElementsTemplate=r.first),Ne(r=Le())&&(i.externalItemElements=r.first)}},inputs:{participant:"participant"},decls:12,vars:6,consts:[["matListAvatar","",1,"participant-avatar"],["matLine","",1,"participant-nickname"],["matLine","",1,"participant-subtitle"],[1,"participant-action-buttons"],["mat-icon-button","","id","mute-btn",3,"warn-btn","click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","mute-btn",3,"click"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(R(0,"mat-list")(1,"mat-list-item")(2,"mat-icon",0),fe(3,"person"),L(),R(4,"h3",1),fe(5),L(),R(6,"p",2),fe(7),Me(8,"streamTypesEnabled"),L(),R(9,"div",3),ee(10,yee,3,4,"button",4),ee(11,Eee,2,1,"ng-container",5),L()()()),2&e&&(w(5),He(i._participant.nickname),w(2),He(Re(8,4,i._participant)),w(3),B("ngIf",!i._participant.local&&i.showMuteButton),w(1),B("ngIf",i.participantPanelItemElementsTemplate))},dependencies:[nn,ds,Ln,gi,Wl,Cp,Ap,Ep,Cie],styles:[".participant-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.participant-nickname[_ngcontent-%COMP%]{font-weight:700!important}.participant-action-buttons[_ngcontent-%COMP%]{display:flex} .participant-action-buttons>*:not(#mute-btn){display:contents} .participant-action-buttons>*:not(#mute-btn)>*{margin:auto}mat-list-item[_ngcontent-%COMP%]{height:max-content!important;padding-bottom:10px!important}mat-list[_ngcontent-%COMP%]{padding:3px}.participant-avatar[_ngcontent-%COMP%]{display:contents}#mute-btn[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}"],changeDetection:0}),t})(),bP=(()=>{class t{constructor(e,i,o){this.participantService=e,this.panelService=i,this.cd=o,this.remoteParticipants=[]}set externalParticipantPanelItem(e){e&&(this.participantPanelItemTemplate=e.template)}ngOnInit(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{const i=[];e.forEach(o=>{i.push(Object.create(o))}),this.remoteParticipants=i,this.cd.markForCheck()})}ngOnDestroy(){this.localParticipantSubs&&this.localParticipantSubs.unsubscribe()}ngAfterViewInit(){this.participantPanelItemTemplate||(this.participantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.cd.detectChanges())}close(){this.panelService.closePanel()}}return t.\u0275fac=function(e){return new(e||t)(h(Ti),h(So),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,See,5,yt),nt(o,rP,5)),2&e){let r;Ne(r=Le())&&(i.participantPanelItemTemplate=r.first),Ne(r=Le())&&(i.externalParticipantPanelItem=r.first)}},viewQuery:function(e,i){if(1&e&&Mt(H1,5,yt),2&e){let o;Ne(o=Le())&&(i.defaultParticipantPanelItemTemplate=o.first)}},decls:14,vars:8,consts:[["id","participants-container",1,"panel-container"],[1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],[1,"scrollable"],["class","local-participant-container",4,"ngIf"],["class","remote-participants-container","id","remote-participants-container",4,"ngIf"],["defaultParticipantPanelItem",""],[1,"local-participant-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],["id","remote-participants-container",1,"remote-participants-container"],["id","remote-participant-item",4,"ngFor","ngForOf"],["id","remote-participant-item"],["id","default-participant-panel-item",3,"participant"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1)(2,"h3",2),fe(3),Me(4,"translate"),L(),R(5,"button",3),Ie("click",function(){return i.close()}),Me(6,"translate"),R(7,"mat-icon"),fe(8,"close"),L()()(),R(9,"div",4),ee(10,Dee,3,5,"div",5),ee(11,xee,2,1,"div",6),L()(),ee(12,Oee,1,1,"ng-template",null,7,mn)),2&e&&(w(3),He(Re(4,4,"PANEL.PARTICIPANTS.TITLE")),w(2),Xt("matTooltip",Re(6,6,"PANEL.CLOSE")),w(5),B("ngIf",i.localParticipant),w(1),B("ngIf",i.remoteParticipants.length>0))},dependencies:[No,nn,ds,Ln,gi,ar,ry,yy,li],styles:[rd,".local-participant-container[_ngcontent-%COMP%], .remote-participants-container[_ngcontent-%COMP%]{margin:5px 10px}.scrollable[_ngcontent-%COMP%]{height:calc(100% - 60px);max-height:calc(100% - 60px);overflow:auto}.message-container[_ngcontent-%COMP%]{padding:5px;background-color:var(--ov-light-color);color:var(--ov-panel-text-color);text-align:center;margin:5px;font-size:12px}.message-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}"],changeDetection:0}),t})(),yP=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}set displayParticipantName(e){this.displayParticipantNameValue=e,this.update(this.displayParticipantNameValue)}ngOnDestroy(){this.clear()}ngAfterViewInit(){this.update(this.displayParticipantNameValue)}update(e){this.libService.displayParticipantName.getValue()!==e&&this.libService.displayParticipantName.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),t})(),Mie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamDisplayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}set displayAudioDetection(e){this.displayAudioDetectionValue=e,this.update(this.displayAudioDetectionValue)}ngAfterViewInit(){this.update(this.displayAudioDetectionValue)}ngOnDestroy(){this.clear()}update(e){this.libService.displayAudioDetection.getValue()!==e&&this.libService.displayAudioDetection.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),t})(),CP=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set streamSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}update(e){this.libService.streamSettingsButton.getValue()!==e&&this.libService.streamSettingsButton.next(e)}clear(){this.update(!0)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),t})(),Cy=(()=>{class t{constructor(e,i,o){this.panelService=e,this.backgroundService=i,this.cd=o,this.effectType=hn,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===hn.BLUR||e.type===hn.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===hn.IMAGE)}ngOnDestroy(){this.backgroundSubs&&this.backgroundSubs.unsubscribe()}subscribeToBackgroundSelected(){this.backgroundSubs=this.backgroundService.backgroundSelectedObs.subscribe(e=>{this.backgroundSelectedId=e,this.cd.markForCheck()})}close(){this.panelService.togglePanel(Wt.BACKGROUND_EFFECTS)}applyBackground(e){return J(this,void 0,void 0,function*(){e.type===hn.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return J(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return t.\u0275fac=function(e){return new(e||t)(h(So),h(gy),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-background-effects-panel"]],decls:23,vars:14,consts:[["id","background-effects-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"effects-container"],["mat-icon-button","","class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],[1,"grid"],["class","effect-button",3,"active-effect-btn","click",4,"ngFor","ngForOf"],["mat-icon-button","",1,"effect-button",3,"click"],[3,"matTooltip"],[1,"effect-button",3,"click"],[3,"src"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1)(2,"h3",2),fe(3),Me(4,"translate"),L(),R(5,"button",3),Ie("click",function(){return i.close()}),Me(6,"translate"),R(7,"mat-icon"),fe(8,"close"),L()()(),R(9,"div",4)(10,"div")(11,"h4"),fe(12),Me(13,"translate"),L(),R(14,"div"),ee(15,Iee,5,8,"button",5),L()(),rt(16,"hr"),R(17,"div")(18,"h4"),fe(19),Me(20,"translate"),L(),R(21,"div",6),ee(22,Ree,2,3,"div",7),L()()()()),2&e&&(w(3),He(Re(4,6,"PANEL.BACKGROUND.TITLE")),w(2),Xt("matTooltip",Re(6,8,"PANEL.CLOSE")),w(7),He(Re(13,10,"PANEL.BACKGROUND.BLURRED_SECTION")),w(3),B("ngForOf",i.noEffectAndBlurredBackground),w(4),He(Re(20,12,"PANEL.BACKGROUND.IMAGES_SECTION")),w(3),B("ngForOf",i.backgroundImages))},dependencies:[No,Ln,gi,ar,As,ma,ga,li],styles:[rd,".effects-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.effect-button[_ngcontent-%COMP%]{margin:5px;border-radius:var(--ov-panel-radius);background-color:var(--ov-light-color);width:60px;height:60px}.effect-button[_ngcontent-%COMP%]:hover{cursor:pointer}.active-effect-btn[_ngcontent-%COMP%]{border:2px solid var(--ov-tertiary-color)}#hard-blur-btn[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-weight:700!important}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,70px)}.grid[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;border-radius:var(--ov-panel-radius)} .mat-slider-thumb{visibility:hidden} .mat-slider-vertical .mat-slider-track-fill, .mat-slider-vertical .mat-slider-track-background, .mat-slider-vertical .mat-slider-track-wrapper{width:10px!important}"],changeDetection:0}),t})(),Ey=(()=>{class t{constructor(e,i,o,r,s,a){this.openviduService=e,this.panelService=i,this.storageSrv=o,this.deviceSrv=r,this.participantService=s,this.backgroundService=a,this.onDeviceSelectorClicked=new xe,this.onVideoMutedClicked=new xe,this.cameras=[]}ngOnInit(){return J(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasVideoDevices=this.deviceSrv.hasVideoDeviceAvailable(),this.hasVideoDevices&&(this.cameras=this.deviceSrv.getCameras(),this.cameraSelected=this.deviceSrv.getCameraSelected()),this.isVideoMuted=this.openviduService.isSessionConnected()?!this.participantService.getLocalParticipant().isCameraVideoActive():this.deviceSrv.isVideoMuted()})}ngOnDestroy(){return J(this,void 0,void 0,function*(){this.cameras=[],this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()})}toggleCam(){return J(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.openviduService.publishVideo(e),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(Wt.BACKGROUND_EFFECTS),this.videoMuteChanging=!1,this.onVideoMutedClicked.emit(e)})}onCameraSelected(e){return J(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateVideoTrack(i)){const o=this.deviceSrv.cameraNeedsMirror(i),r=this.backgroundService.backgroundSelected.getValue(),s=this.backgroundService.isBackgroundApplied();s&&(yield this.backgroundService.removeBackground());const a={videoSource:i,audioSource:!1,mirror:o};if(yield this.openviduService.replaceTrack(on.CAMERA,a),s){const l=this.backgroundService.backgrounds.find(c=>c.id===r);l&&(yield this.backgroundService.applyBackground(l))}this.deviceSrv.setCameraSelected(i),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isVideoMuted=!e.isCameraVideoActive(),this.storageSrv.setVideoMuted(this.isVideoMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(zo),h(So),h(Ho),h(ac),h(Ti),h(gy))},t.\u0275cmp=it({type:t,selectors:[["ov-video-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onVideoMutedClicked:"onVideoMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","camera-button",3,"disabled","click"],["id","videocam",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","videocam_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","videocam",3,"matTooltipDisabled","matTooltip"],["id","videocam_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"button",1),Ie("click",function(){return i.toggleCam()}),ee(2,Pee,3,4,"mat-icon",2),ee(3,kee,3,4,"mat-icon",3),L(),R(4,"mat-form-field"),ee(5,Nee,3,3,"mat-label",4),ee(6,Lee,3,3,"mat-label",4),R(7,"mat-select",5),Ie("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onCameraSelected(r)}),ee(8,Fee,2,2,"mat-option",6),L()()()),2&e&&(w(1),ft("warn-btn",i.isVideoMuted),B("disabled",!i.hasVideoDevices||i.videoMuteChanging),w(1),B("ngIf",!i.isVideoMuted),w(1),B("ngIf",i.isVideoMuted),w(2),B("ngIf",i.hasVideoDevices),w(1),B("ngIf",!i.hasVideoDevices),w(1),B("disabled",i.isVideoMuted||!i.hasVideoDevices)("value",null==i.cameraSelected?null:i.cameraSelected.device),w(1),B("ngForOf",i.cameras))},dependencies:[No,nn,Ln,gi,_p,Jl,ar,ly,kb,li],styles:["#camera-button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),Sy=(()=>{class t{constructor(e,i,o,r){this.openviduService=e,this.deviceSrv=i,this.storageSrv=o,this.participantService=r,this.onDeviceSelectorClicked=new xe,this.onAudioMutedClicked=new xe,this.microphones=[]}ngOnInit(){return J(this,void 0,void 0,function*(){this.subscribeToParticipantMediaProperties(),this.openviduService.isSessionConnected()&&(yield this.deviceSrv.refreshDevices()),this.hasAudioDevices=this.deviceSrv.hasAudioDeviceAvailable(),this.hasAudioDevices&&(this.microphones=this.deviceSrv.getMicrophones(),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()),this.isAudioMuted=this.deviceSrv.isAudioMuted(),this.isAudioMuted=this.openviduService.isSessionConnected()?!this.participantService.isMyAudioActive():this.deviceSrv.isAudioMuted()})}ngOnDestroy(){this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe()}toggleMic(){const e=this.isAudioMuted;this.openviduService.publishAudio(e),this.onAudioMutedClicked.emit(e)}onMicrophoneSelected(e){return J(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateAudioTrack(i)){const o={audioSource:i,videoSource:!1};yield this.openviduService.replaceTrack(on.CAMERA,o),this.deviceSrv.setMicSelected(i),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()}})}subscribeToParticipantMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isAudioMuted=!e.hasAudioActive(),this.storageSrv.setAudioMuted(this.isAudioMuted))})}}return t.\u0275fac=function(e){return new(e||t)(h(zo),h(ac),h(Ho),h(Ti))},t.\u0275cmp=it({type:t,selectors:[["ov-audio-devices-select"]],outputs:{onDeviceSelectorClicked:"onDeviceSelectorClicked",onAudioMutedClicked:"onAudioMutedClicked"},decls:9,vars:10,consts:[[1,"device-container-element"],["mat-icon-button","","id","microphone-button",3,"disabled","click"],["id","mic",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["id","mic_off",3,"matTooltipDisabled","matTooltip",4,"ngIf"],[4,"ngIf"],[3,"disabled","value","click","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["id","mic",3,"matTooltipDisabled","matTooltip"],["id","mic_off",3,"matTooltipDisabled","matTooltip"],[3,"value"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"button",1),Ie("click",function(){return i.toggleMic()}),ee(2,Bee,3,4,"mat-icon",2),ee(3,Vee,3,4,"mat-icon",3),L(),R(4,"mat-form-field"),ee(5,jee,3,3,"mat-label",4),ee(6,Uee,3,3,"mat-label",4),R(7,"mat-select",5),Ie("click",function(){return i.onDeviceSelectorClicked.emit()})("selectionChange",function(r){return i.onMicrophoneSelected(r)}),ee(8,Hee,2,2,"mat-option",6),L()()()),2&e&&(w(1),ft("warn-btn",i.isAudioMuted),B("disabled",!i.hasAudioDevices),w(1),B("ngIf",!i.isAudioMuted),w(1),B("ngIf",i.isAudioMuted),w(2),B("ngIf",i.hasAudioDevices),w(1),B("ngIf",!i.hasAudioDevices),w(1),B("disabled",i.isAudioMuted||!i.hasAudioDevices)("value",null==i.microphoneSelected?null:i.microphoneSelected.device),w(1),B("ngForOf",i.microphones))},dependencies:[No,nn,Ln,gi,_p,Jl,ar,ly,kb,li],styles:[".device-container-element[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}.device-container-element[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}.device-container-element[_ngcontent-%COMP%]{display:flex}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}"]}),t})(),Ay=(()=>{class t{constructor(e,i){this.participantService=e,this.storageSrv=i}ngOnInit(){this.subscribeToParticipantProperties(),this.nickname=this.participantService.getMyNickname()}updateNickname(){this.nickname=""===this.nickname?this.participantService.getMyNickname():this.nickname,this.participantService.setMyNickname(this.nickname),this.storageSrv.setNickname(this.nickname)}subscribeToParticipantProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.nickname=e.getNickname())})}}return t.\u0275fac=function(e){return new(e||t)(h(Ti),h(Ho))},t.\u0275cmp=it({type:t,selectors:[["ov-nickname-input"]],decls:9,vars:4,consts:[["id","nickname-input-container"],["mat-icon-button","","disabled",""],["appearance","standard"],["matInput","","type","text","maxlength","20","autocomplete","off",3,"ngModel","ngModelChange","change"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"button",1)(2,"mat-icon"),fe(3,"person"),L()(),R(4,"mat-form-field",2)(5,"mat-label"),fe(6),Me(7,"translate"),L(),R(8,"input",3),Ie("ngModelChange",function(r){return i.nickname=r})("change",function(){return i.updateNickname()}),L()()()),2&e&&(w(6),He(Re(7,2,"PREJOIN.NICKNAME")),w(2),B("ngModel",i.nickname))},dependencies:[vs,Il,kl,ia,Ln,gi,_p,Jl,oy,li],styles:["#nickname-input-container[_ngcontent-%COMP%]{display:flex}#nickname-input-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:auto 10px auto auto}#nickname-input-container[_ngcontent-%COMP%] button.mat-button-disabled[_ngcontent-%COMP%]{color:#000!important}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-top:10px;color:#000}#nickname-input-container[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{color:#000}"]}),t})(),wy=(()=>{class t{constructor(e,i){this.translateService=e,this.storageSrv=i,this.onLangSelectorClicked=new xe,this.languages=[]}ngOnInit(){this.languages=this.translateService.getLanguagesInfo(),this.langSelected=this.translateService.getLangSelected()}ngAfterViewInit(){var e,i;null===(e=this.menuTrigger)||void 0===e||e.menuOpened.subscribe(()=>{this.onLangSelectorClicked.emit()}),null===(i=this.matSelect)||void 0===i||i.openedChange.subscribe(()=>{this.onLangSelectorClicked.emit()})}onLangSelected(e){this.translateService.setLanguage(e),this.storageSrv.setLang(e),this.langSelected=this.translateService.getLangSelected()}}return t.\u0275fac=function(e){return new(e||t)(h(tc),h(Ho))},t.\u0275cmp=it({type:t,selectors:[["ov-lang-selector"]],viewQuery:function(e,i){if(1&e&&(Mt(Ms,5),Mt(ly,5)),2&e){let o;Ne(o=Le())&&(i.menuTrigger=o.first),Ne(o=Le())&&(i.matSelect=o.first)}},outputs:{onLangSelectorClicked:"onLangSelectorClicked"},decls:8,vars:3,consts:[["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click"]],template:function(e,i){1&e&&(R(0,"button",0)(1,"span"),fe(2),L(),R(3,"mat-icon"),fe(4,"expand_more"),L()(),R(5,"mat-menu",null,1),ee(7,Gee,3,1,"button",2),L()),2&e&&(B("matMenuTriggerFor",io(6)),w(2),He(null==i.langSelected?null:i.langSelected.name),w(5),B("ngForOf",i.languages))},dependencies:[No,Ln,gi,nd,Ds,Ms],styles:[".lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}"]}),t})();const Tie={provide:op,useValue:[{alias:"landscape",suffix:"Landscape",mediaQuery:"screen and (orientation: landscape)",overlapping:!1,priority:2001}],multi:!0},xie=["fxLayout.landscape"];let Oie=(()=>{class t extends AI{constructor(){super(...arguments),this.inputs=xie}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=ot(t)))(i||t)}}(),t.\u0275dir=be({type:t,selectors:[["","fxLayout.landscape",""]],inputs:{"fxLayout.landscape":"fxLayout.landscape"},features:[ke]}),t})(),EP=(()=>{class t{constructor(e,i,o,r,s,a){this.layoutService=e,this.loggerSrv=i,this.participantService=o,this.panelService=r,this.libService=s,this.cdkSrv=a,this.onJoinButtonClicked=new xe,this.isLoading=!0,this.showBackgroundEffectsButton=!0,this.isMinimal=!1,this.showLogo=!0,this.log=this.loggerSrv.get("PreJoinComponent")}sizeChange(){this.windowSize=window.innerWidth,this.layoutService.update()}ngOnInit(){this.subscribeToPrejoinDirectives(),this.subscribeToLocalParticipantEvents(),this.windowSize=window.innerWidth,this.isLoading=!1}ngOnDestroy(){return J(this,void 0,void 0,function*(){this.cdkSrv.setSelector("body"),this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.panelService.closePanel()})}onDeviceSelectorClicked(){this.cdkSrv.setSelector("#prejoin-container")}onVideoMutedClicked(e){e||this.panelService.closePanel()}joinSession(){this.onJoinButtonClicked.emit(),this.panelService.closePanel()}toggleBackgroundEffects(){this.panelService.togglePanel(Wt.BACKGROUND_EFFECTS)}subscribeToLocalParticipantEvents(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.nickname=this.localParticipant.getNickname()})}subscribeToPrejoinDirectives(){this.minimalSub=this.libService.minimalObs.subscribe(e=>{this.isMinimal=e}),this.displayLogoSub=this.libService.displayLogoObs.subscribe(e=>{this.showLogo=e}),this.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e})}}return t.\u0275fac=function(e){return new(e||t)(h(Ca),h(cr),h(Ti),h(So),h(jt),h(dP))},t.\u0275cmp=it({type:t,selectors:[["ov-pre-join"]],hostBindings:function(e,i){1&e&&Ie("resize",function(){return i.sizeChange()},0,Nc)},outputs:{onJoinButtonClicked:"onJoinButtonClicked"},decls:12,vars:5,consts:[[1,"prejoin-toolbar"],["id","toolbar"],["id","branding-logo","src","assets/images/logo.png","ovLogo","",4,"ngIf"],[1,"spacer"],[3,"onLangSelectorClicked",4,"ngIf"],["id","prejoin-container","fxLayout.landscape","row","fxLayout.lt-md","column","fxLayout.md","row","fxLayout.gt-md","row",1,"container"],["fxFlex.lt-sm","50%","fxFlex.lt-md","50%","fxFlex.md","45%","fxFlex.gt-md","45%","fxLayoutAlign","center center","id","layout-container"],[1,"ov-session",3,"usedInPrejoinPage"],[4,"ngIf"],["layout",""],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center","class","media-panel",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],[3,"onLangSelectorClicked"],["panel",""],["backgroundEffectsPanel",""],["stream",""],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click",4,"ngIf"],[3,"stream","displayParticipantName","settingsButton"],["mat-icon-button","","id","background-effects-btn",3,"disabled","matTooltip","click"],["fxFlex.lt-md","50%","fxFlex.md","55%","fxFlex.gt-md","55%","fxLayoutAlign","center center",1,"media-panel"],["fxLayout","column","fxLayoutGap","10px",1,"media-panel-container"],["fxLayout.gt-sm","column","fxLayout.lt-md","column","fxLayoutGap","10px","fxFlex","33%"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"nickname-container"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"buttons-container"],[3,"onDeviceSelectorClicked","onVideoMutedClicked"],[3,"onDeviceSelectorClicked"],["fxFlex.gt-sm","60%","fxLayout.lt-md","column","fxLayoutAlign","center center","fxFlexFill","",1,"join-btn-container"],["mat-flat-button","","form","nicknameForm","id","join-button",3,"click"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"mat-toolbar",1),ee(2,zee,1,0,"img",2),rt(3,"span",3),ee(4,qee,1,0,"ov-lang-selector",4),L()(),R(5,"div",5)(6,"div",6)(7,"ov-session",7),ee(8,Yee,2,0,null,8),ee(9,Zee,3,0,"ng-template",null,9,mn),L()(),ee(11,nte,16,7,"div",10),L()),2&e&&(w(2),B("ngIf",!i.isMinimal&&i.showLogo),w(2),B("ngIf",!i.isMinimal),w(3),B("usedInPrejoinPage",!0),w(1),B("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),w(3),B("ngIf",i.localParticipant))},dependencies:[nn,Ln,yp,gi,ar,As,hp,ma,TI,ga,yP,CP,mP,by,_y,py,my,Cy,Ey,Sy,Ay,wy,Oie,li],styles:[".container[_ngcontent-%COMP%]{height:calc(100% - 64px);padding:30px 60px;background-color:var(--ov-light-color)}.prejoin-toolbar[_ngcontent-%COMP%]{max-height:40px;height:40px}#toolbar[_ngcontent-%COMP%]{background-color:var(--ov-light-color);height:100%}#toolbar[_ngcontent-%COMP%] .lang-button{height:25px!important;font-size:14px!important;line-height:0px;align-items:unset!important}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}#branding-logo[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius);max-width:35px;max-height:35px;height:-webkit-fill-available;height:-moz-available;padding:10px;margin-right:10px}#layout-container[_ngcontent-%COMP%]{display:block!important}h4[_ngcontent-%COMP%]{margin-bottom:1px;font-weight:700}hr[_ngcontent-%COMP%]{margin:0}#prejoin-container[_ngcontent-%COMP%]{height:calc(100% - 40px)}#prejoin-container[_ngcontent-%COMP%] .sidenav-container{padding-top:0!important}#prejoin-container[_ngcontent-%COMP%] #background-effects-container{margin:0!important;max-height:100%!important;height:100%!important}#prejoin-container[_ngcontent-%COMP%] .mat-drawer-container, #prejoin-container[_ngcontent-%COMP%] .sidenav-menu, #prejoin-container[_ngcontent-%COMP%] #session-container{background-color:transparent!important}#prejoin-container[_ngcontent-%COMP%] .sidenav-menu{width:320px}#prejoin-container[_ngcontent-%COMP%] .layout{min-width:0px!important}#prejoin-container[_ngcontent-%COMP%] .OT_root{padding:0!important}#background-effects-btn[_ngcontent-%COMP%]{position:absolute;z-index:2;background-color:var(--ov-secondary-color);bottom:5px;right:5px}.media-panel[_ngcontent-%COMP%]{background-color:var(--ov-light-color)}.media-panel-container[_ngcontent-%COMP%]{width:100%;padding:20px 0 20px 20px}.nickname-container[_ngcontent-%COMP%]{display:block!important;margin-bottom:0!important}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-flex[_ngcontent-%COMP%]{border-radius:var(--ov-video-radius)}.buttons-container[_ngcontent-%COMP%]{border-radius:5px;padding:10px 0;height:100px;display:block!important}.join-btn-container[_ngcontent-%COMP%]{width:inherit;text-align:center}#join-button[_ngcontent-%COMP%]{width:100%;font-weight:700;color:var(--ov-text-color);background-color:var(--ov-tertiary-color);border-radius:var(--ov-video-radius)}@media only screen and (max-width: 480px){.container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:90%!important;margin:auto}.join-btn-container[_ngcontent-%COMP%]{padding:0 10px}.media-panel[_ngcontent-%COMP%]{align-items:flex-start!important}}@media only screen and (min-width: 480px) and (max-width: 959px){.media-panel-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%]{padding:0}.nickname-container[_ngcontent-%COMP%], .buttons-container[_ngcontent-%COMP%], .join-btn-container[_ngcontent-%COMP%]{width:80%!important;min-width:80%!important;margin:auto}.buttons-container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%]{padding-top:0;max-width:600px}}"]}),t})(),SP=(()=>{class t{constructor(e,i,o,r,s){this.recordingService=e,this.participantService=i,this.libService=o,this.actionService=r,this.cd=s,this.onStartRecordingClicked=new xe,this.onStopRecordingClicked=new xe,this.onDeleteRecordingClicked=new xe,this.recordingStatus=Bn.STOPPED,this.opened=!1,this.recStatusEnum=Bn,this.isSessionCreator=!1,this.recordingAlive=!1,this.recordingsList=[]}ngOnInit(){this.subscribeToRecordingStatus(),this.subscribeToRecordingActivityDirective(),this.isSessionCreator=this.participantService.getMyRole()===oc.MODERATOR}ngOnDestroy(){this.recordingStatusSubscription&&this.recordingStatusSubscription.unsubscribe(),this.recordingListSubscription&&this.recordingListSubscription.unsubscribe(),this.recordingErrorSub&&this.recordingErrorSub.unsubscribe()}panelOpened(){this.opened=!0}panelClosed(){this.opened=!1}resetStatus(){let e=this.oldRecordingStatus;this.oldRecordingStatus===Bn.STARTING?e=Bn.STOPPED:this.oldRecordingStatus===Bn.STOPPING&&(e=Bn.STARTED),this.recordingService.updateStatus(e)}startRecording(){this.onStartRecordingClicked.emit(),this.recordingService.updateStatus(Bn.STARTING)}stopRecording(){this.onStopRecordingClicked.emit(),this.recordingService.updateStatus(Bn.STOPPING)}deleteRecording(e){this.actionService.openDeleteRecordingDialog(()=>{this.onDeleteRecordingClicked.emit(e)})}download(e){this.recordingService.downloadRecording(e)}play(e){this.recordingService.playRecording(e)}subscribeToRecordingStatus(){this.recordingStatusSubscription=this.recordingService.recordingStatusObs.subscribe(e=>{null!=e&&e.info&&(this.recordingStatus!==Bn.FAILED&&(this.oldRecordingStatus=this.recordingStatus),this.recordingStatus=e.info.status,this.recordingAlive=e.info.status===Bn.STARTED),this.cd.markForCheck()})}subscribeToRecordingActivityDirective(){this.recordingListSubscription=this.libService.recordingsListObs.subscribe(e=>{this.recordingsList=e,this.cd.markForCheck()}),this.recordingErrorSub=this.libService.recordingErrorObs.subscribe(e=>{var i;e&&(this.recordingService.updateStatus(Bn.FAILED),this.recordingError=(null===(i=e.error)||void 0===i?void 0:i.message)||e.message||e)})}}return t.\u0275fac=function(e){return new(e||t)(h(ld),h(Ti),h(jt),h(es),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-recording-activity"]],inputs:{expanded:"expanded"},outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked"},decls:20,vars:26,consts:[[3,"expanded","opened","closed"],["matListAvatar","",1,"activity-icon",3,"ngClass"],[4,"ngIf"],["class","blink",4,"ngIf"],["matLine","",1,"activity-title"],["matLine","",1,"activity-subtitle"],[1,"activity-action-buttons"],["id","recording-status",3,"ngClass"],["class","panel-body-container",4,"ngIf"],[1,"blink"],[1,"panel-body-container"],[1,"content"],["class","item recording-action-buttons",4,"ngIf"],["class","not-allowed-message",4,"ngIf"],["class","item",4,"ngIf"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAACyCAMAAABcOSIOAAAC+lBMVEUAAAAXf/wpbeLk19IWf/zq2Mnf19vc3OYWf/ze3ujc3OcVf/0Wf/wXffvY2OQWf/3d3efd3OYWf/3d3efe3ujd3egVf/3d3ecVfv3d3efb2+bc3Ofc3Ofd3ejc3ejd3ugVf/3/zJcXf/zc3Obd3ugVf/0Wf/zPz93c3OdZW9QVf/3d3efZ2eQVf/0Vf/zb2+j7voHe3ugVf/39zJgLDxbX2OUYgPv/zJcXfvz/zJfd3eja2uZTVHd6e6Lc3Of/zJd4ead7fKOevuxXXNX+zJj+yZP/zJd2d55an/T/zJelpsZfd9b/ypRXXNXkhiOiqc0BBw9ZW9T/zZYAAAD1ljH8y5lxc9jyjiXwkCr+/f3/zZfsjCYAAACbq9EBCBDzlzjtiyVtbpYAAQLjw6b4okg9j/PjyLX3sWlrbJNCZ+JTVHegyv0SaM1clt6WmMlIXI8Vf/3/zJf////V1eT/lSalpsbe3unY2OVZW9RTVHflhiLnuIgAAADU1OT9/P5RUnYTf/+qq8lWWNT+liimp8bp6fFyc9BhlODu7vT8lCZ6fKTKyt22t88qhfW8vdD+y5bc3OgggvhYWXzFxtpcX9SUw/2am+WPkMqio8dT2WpiY4Q/aeSTos0ld/NUXtf3kin+nTfqiiXx8fYyiO/39/rk5O44gd5HZd+Ojqf6yZbxjST/tGaGiKHyyJ3+xId8ftntvoz+qVBIjuV3eJ5eX4D/vXiGs/A9i+j2xZIhf/GKi9uEos7ywpDgwqf/yJDslDjZtJC1s7fMsJcZd+hrmdWlq7dydJlxqPG4rKO3yepTkuB3m8pQhceaq8PGubBTYHZTXXZTrG7vq2Tlw6JTcXS4km0MLFXik0A7kPhek9Q1abhoh7TOvK1uZntUVnhT0WuZoLTnu5JsbYxKW4wLQoRUU3VTwWzJkVgWa9KqkYfbrX7yoUs0Kh8OV66WiYdpVUGGnr54iaP1s293YEjMpH6qjnW3iV2ZelpLOyzd0MtdX7WHiMxkgKclYKhp7MdAAAAAcHRSTlMA/gcE5w4JFvPvtSTcEPg9lHLQNPg8GqAuKuuI29K/qk7ycVZ9i18fyb2wRE3FfyMd37k8/eem15jmZmGV1FwuGm/87MeGnE3+roJpYz313q6ZUsi/uuXWl4pxbVs3kWBGNibl3NPFpH3w6efczLu2U2kwRQAAFbNJREFUeNrs2T+L02AcwPHnic8QeJ4QyFAyaQgkQ6EZOpQOFhSHG8TB0fE2/ww+PRCa5eJB9aAnelSP6tXecuILsIODJ4g9dJK7wk0HVUQUXHwDLvaBmIfmkvTZmofmO2XI8uF5fvDwPKCoqKioqKioqKioqGgmDWOsKWDZUrBbNxBCRtVx8TLxS24ZQRoGUdktgeUIewakM0HimECg1ZuXLwF5K3mEJoTq5nx4o9NpSItXXIOmhLzsbb9y2+/ufpIWj2uQplexQEYXfd8PpMXrBs1MdbRMurx4i9B5Vc0surR4C9H5GXoGXVa8SahIxEqnS4pXylQsZKXSJcW7kApG9DS6nHilOk8MB/1+f8C+DJxClxNvornwvVartdcfQEprWjJdTrwFBeAshoe2GJ3jV0B+c6EQ/NnDv73e4T7BAnSOH3YaqyC3WVAI3nvenvbybT2dfhwV4Xc7nRwvOyZi8Hus9jtiptGPxr/Cxkd+WHeYZzqoC8NZb+w0+vH4Rdi3E0noJhGCbzze2nrUbm+WlWQ6W3bZ6MBSBeBPH6yvrb3a3tisaPGJuetHdtnowFWF4KztON10yOlPbpeNDlwkAmetf57Z8HodUcro3B6nXwX5Tq/ATDhvxwNRJoOHdG6P0V87GOQ6za6oGXDeHTOacQdRFhz98GfWPUanhpXz+3zNvpUO512IfifRkIxOGZ7bY3Sq1vN8nX/u2vUrGXDeDcBSLDYhvCk+4PYYfVpFBzlNDM7pZk2lsUbDiR+E9pOvcTpFbh42vVLSXdtzHM92dawIwzm95CF6pv33339HeD8IOJ3f6S42xbTLRIXhkKqk6lhCcE5Pfqu4f/ik2fyPD7qTSTdGp7C20IFXrBo6c3ITgfPOlyFN6kuTxfD+5M+Hg4OPE04Pq2KwsPSa6JE1vR2aGPxHvJnFuhCFcXyq2lJUq6ra20W0KC1CXJFKPNSLRCTEKx48e+iozHmo1lgaFblpG9uLhFSLxi5xqX0N1/ZA7EsIYt9iT0icMzPt12lnalp6/Sy36t6H33zf9z8L9xRNC/IvH9OEl0tAXWDAYOr/0A9GtBHxXDaRSOb+pJ65Sos59A7Uwf3/BH2fUaomxLN5FInEIgi/X1/9fqX3rtMvHzyEhhff6fbo7qzvP6CZiudRLMKTUF71+5f2F8kmh1cvCjlIfrKqBfNmzp49c858qvvo37eJGc+msbgAyimZdcL1/SxZ54n8syf3tvK9Vnz79ObTM29vTljMMXsO1WrAXLk4mOOSAwlQl014wtWLsMN78kIYshc3ibDgzb3sLvfBAxoQB/NIBbF8XfWDx0pjTmouUCyWngIxFzO7e3q+3/hGxMFcuXqm3O+npJb9p4trmUd1B8MUiwNxJtaA+qWCYF5YyYZrOAOdDkzojrIP6aVYHMhHxMTqzfrB6+VJz0hscl+AegXdMO2DBjQsDu0OJEFdvt3pS2EpdfDt3o4fplwcyAvtrmhxO1ugBY5tCUsgXfWZLd/a9O+pWBzIoep+Z+KgLp3uhCvSi/5NKfXZrVbvMVG5OJCI1fa7nLrqXIour2zS+b/9zf+oev9eDYpDvIuLLqfO3jlKlzgFISe+xvj8XUKdajGTGheHfgeysie3jgvloqfOstL7nV303m/fa9RbfG0zvYGLCCBbbZ6XP7ReOkRLhxywfxf+y1ck6yZ8e19WfzuUaiUzpjYhDurQ7rLqB0+mZEIOuEjUU9+w7if6cyntJ7zo2dLT+yzeXCzeqHosnZO9pVE9gqLvuhiWrTpx/7T4/VH6xmKBm6rw+Ba2fI+RvHkD4jDrYJ6VvaBiLz6Got+HkKuZdcL7xTdo+lOp6HfZsApavkXqazesUCwOCQ/dnpO/m8tcgHinj1QrQ8LTmL1vJrzCvwnmP7s68KVN6y4q+0zliw7iCkmWxSN5MK9VPxst0PKLOjygG1Eat/qbvTjsePO351EIN8mw5ry0I6g/MXwbpw7iSoknIjHsHYswWfjCWvUtF/am6DonFziuf4++erP4e6Fw6D0352/D0xDqzIR7NndHa/N5qD8wkVdfCgmtmGw+nWbyIC6pfimqpN9Zclx/gzv9/aGj9NFvnz79OsMSdRS63WTZLQN7m7RVjWARvTGoL6+eXtgM8Th4S6tvOV2/30GdY8KNvQUuDjvwm+cRpmtac9PuH8gMNGqoSkyOseKDOlFfdhimtXniEseXD1FF/c6+5dXfR49Ce3QiQuz8UJ26KXWGcesoYHLvgRaqgjEqTn3934snmTSTyFWpHzxd2e8bJbXham7C03t7U+U9nyqEePeQa2wTDd+bwegh7IL4jSmi/+j+j9Tj+UgM/0hneXUoerRyP8PWccc30S/wsR5u7zJdSKDd1rj6iHGMyN1DHoVJNOqg/pfmHDGU5NSh6NFUnf07y7KqTLFYVJFX5NeR8nb39u1MCAnYm1BX67Eq9LxtHAPqWv68Cup/b05AWaIORd9LE6CWld7Fy/feffn6/PnzG18+Xi5i8477NMc5rN7VWVY3BEWLtMZj0nF25oBG3j3I8Fg15FOtTFld49WTLx8eBvW/NIdzzDqId+j36qWNzVx+9/zE8kUlNj3feXnrORojBPx5BLTrdeBk1iPkIR+tdojsWkY4BXevWph8ftY1Rmagn1zKgfpfmgPJdbCmRyuWttRKtlL8xglBGuyv0RX31ZlOVEGw3MiT2xFR17Xhj8Z60R9M8+q9AxTVxhCIstZIHgFJuT+ox3PZZDKbizdgHmPWlW8ocL+nJFf1rV82LaplByyDHWHsHgF1vVbYpBkNZPjNNj0ZBD+lMfstOml1jZ7h8em0LoYwDjeJiSx6+EH2G1BXPZ5kEDe/sGeTIBERgzpL11JR0ahfL6UcW/x4C3yB5Qfgk6+oOs6fD4G7YwRfcgf/IMw+7s2AyWU3GJywbRNhK7W8SedgCPj5WezCzPfpWU89y0RiQiXxspXIyW3lZdQz57D6Ubom4NmtN1YtkmLzbvjkwpHbXSgG6nYzkTEZ+NjzuviPdsRjlI47CzYmOM1OIeXUbv4FCfg66kkUEzUygtLLm4M6u/8kVj9UW/WLr8BWrH6cBnYdmdaFAIOFGmG2OYTU86EqrDZpd6HuJq738eOz2RnCZPKdHaBea17thA9pyXidOQd1YWWDlIN/a8sc2bV7s7T6vhRdQeHKtBCqrLqx3WpAcjiMgRFqiZ53DySqRhO3xKupKXzc4eAbGgZ1eXOg3PcwErLqHaejXMoBVw+GVftPpejUPhl1WsTuz/c6V1fMuhW1ozoYHO6geOa1Go1aO4UU3kqq3dtfSvreeHrGyKpnUUQGlE/mhPTPo4icOgk5IeWAY+dOcfdQB2A5Fwc8cPzAvs2LTnxeU+5oNTUZuQx13X0Qd1qbx2t1+Xwu4xSL18EYyYwb1aUt3jicmZPk1HPpiCw4fJhEIpkg6S+vrnoUhZSrAjpeJuB379jMP53XxxAmsjo0l6I8BquhjrjeU866EUG9Pc0IOLz+oImazJDtj46ffRd+RBPxhnEtqFddvNWx5+9n6qmTnRyknJjUvnoBD+LkzSjW7brda7A6YHW3tfNj7UQ1uKZAyOtcjAjn5IDfbMfRVko5I7ejyYT2LAN1CK/mYZKdfL9DytUgrX68JC7qhWs/8JG9Y3qbCYd4wEHy3T+izY7b28DFn8vR3u50T9FRgDbo603SDfC524xkGMz8fjbIfZvueSShnvwb8Th/fHnUiDoE/HGR+HLMIuyOutb4TIGA16gnvs6xlN+JjCbSA4YpurFja64yNGaPqc3tGsdlmsvttnrbvNryIb63BauPvh1L16rn0F+Ik/M6v4mFgFekvmofCcB9y8FbQBh4ZCDaXKnbyK2j3cL1AF6xZFCrPaT2A91+Nf6Dx6srVd2BX/Ub3cmAumjQmxXHxIn6wZMQ8IrUScCnSMnBHAb+MQKwvB67jHWb8BnOQKJfFttvWu4ltIkgjAP4yJpdsqBsSMKSbJIiu9BCAjGIiBYUREVBFMQXelDwdRXERCPxgc/YGFP1JEJTX2grRcX6topY3ydFVIQivQgKooKC4sGZnazfms3ETTb7P4ivy8/vm/lmpo20v71yEP+lhBRCQoTOd0xfl6tB3+sMfiB9lXwD+DbY4C0ZosJ8FX2IlBzk5sY32dskUdWbWiBvrAkBsePpSNN4pSRCcdmPZOPWPm5hGujQ7s7gdIf/AnTGcMv39VTRoRdAbtT95XjjPBMWVQ7ZjC9tJDLNg4Jt8aCXHmjwmAM67O45J3Ay9R/hqY6XOnutD+4m8l6oOmhryUl/fFqvQctLgg121ZgriUEUFFUJ39/ohmelH3AIx3lEdzn2Dt+PnyV6sxY6Q06zWDWdZxRkM/TKRhOexvlFLRZQaT9Y6KdLjuAkR/fTAw3zSHP4Ur4vm832WXhWOpQ9vwHoHdORbXsM7AEN/1KR9ZaRrfQzTuG5o7v20w2e2fEDZSyvT6914vkJTzYeZDuClgJ7J0pENYTDxyz0kxmHcP1D3PSuztzoBnuzJD02ig7J57+RyU7jQw0k6RMjXm84IkqSFA/K0STd+4EOI90RfNfmzQad0fKHr7/INkCHlO9IsvFCG0SNhBNC/pDAkZ+0t0syX4u+1zkc6LXt529vo/TevD06ZO1E5e9w5xuye0LxuB/b6a6vIcRX00+XHMMJna51sB82lxz/BtAby+7ZSjNfihISEr7OBLxReXqSvlolENdWRT+TcwYHOn6igVw8/xd+kfz6o07vY9NZf7LWN94Y7Qm7vR5UooG/sz0lkS+xd0b9SAN6I3tciQUH+phhYgT89fP4uyVuEzjJXSz/8SPPlLP+VfKrYkbZO22w4TEe4hUTHFI6ksEA0G3vccVzw9sZcKDvfLatTj4t+PH7xldm0fuYa2Gxz3iLtTfZ4WESEpBDfJtI3ujhvr7XHvz4joenGXCgk8XOzP1z5GuLF1jynmyWRd+9Rpkmjqdv03bDqzHvv/iI2t4h4zPNTONt7nTGHnzHjocnWXCgj3nPcN97/ODUGPwqzaTne+vMvRdhP0++6NYhNLK/x/X1DvH64pFo+skbSodrS304zpX3JQYc6OQ7p2q6n13rxm4cJr2v3sgvr08ipIbhEG97l5cjJn1A0gKZucaL7F678AtF7AY4g45bfriKfX8Yu+FrrV9ZRa97xl1OIMr4OGo47aochc6PpSaPrdBPZmzDM0w40Em63w7fv1dRP37/7Kne50B/l2es9Lozf9lEUkM52Qjao0nKND+PkBCc7lMUSRY7IqmUt1L1myXHcMhlQzfm1OW3OE8vn+oes5O6gf68dlf/73y/UsdwjdB5UX+d9CVRJZxHaE/KTw5Reuvge251m4A4gLZBz2N33Y5f7EENx08vbynJz5l+M/wI6E7gkFunLMya9LN3GZtc/Y7vWY0aj6+UhgdKI9KTY0BvAfzE/kMbndLrd/zyhtBwprPgQ5PxkQbo7sOB/pqxv0PHsza6Zlue4tsSPNKjAN19OJsO+zt0PL2/lstl/RILB3nURDrNU12k+ORSS8Pnil2uwtn0PKFDx+8uXxocGBgaGBjsv1SmfPx7G7gm6JyG7YBv89NPQVTRc+eOFzKuwoFuXepQ9t3l/gG46BM+Tv/g0JSJqCn7Pyf5sCYYdKh4rmt05L2LcKCzpjpNuX/I+par/7AINWVXo2lzYn6DDhXvGt1xxF04u+FN9Lsgr8oc1FyS0j+FT3X+Q9crjv+DJHfhMNysuxzkG4sOHd9guLhoxoeXmnb4jF5xLHcXDqc561K3UfYJk1Cz4YNaWzQVDodTkZiimqte1Cu+deSge3C4vjB2ORtln40chPO0h0KhpMDDNkfHGan4kZGCa3Cgf2YsdRtlX8KjFsSgZ3Q4lo9cKIyO7Mq4BIfc+MCa6pAXDPrUGc1ZBVVRpgUFjlaf5yndmONHjhRyo8eLGdfgsNRZRYe8nmBlOxhv8Y4AOchGRUnTFFmMiUu34PyqzPFdoyOFTbuKbsEh3d+Z+ztk+ZxWLnY1nIYE8FsFfowm9Moc7yIVz2xyDQ6bnI2iL5s4aULrFns8ZT7IxtuFUCetemWc5dytOLT7a6u8r0q+YBXi5rVssvMiVZdKAW9sOg+fZN53rkDHmasVh+PMB7Yc2p1DaH7LJjsX9Cmar1NV1YTfg5CJXtzk+jgD+Y1XNuT6vXzG1Nr2+chpgL6n2JVzFw7p/sxe59Du+kOUZwpjn2shHX98vVBwFQ752mPZ263ylagefR7XQjrELThc2djNDnJqY23xszwu0F2CQ268si3nJs1iXt5coLsGh4nOaHbIYrzOPRMnrZgHNa/KVBfo7sDph3Xh7M4uee+f9u6etW0gDOD4SZHLgXQIbhAaZYEUIiohZJDlyR1kgxOXUtMsgUylY4uzdSy00DEYOnQIlOCpFHcIlA4mKQZnSXGGeM0naLasXXoXhyqt6/pFl8Ry9IPgBLz8L7asF6xnd/fbk2q1VAkLpHukbJF5Ovtw8g3N5lH3e7vd7h41G9GlttcXPtBU6uzs7OTk5PycnobMbm+Nk80xTmcfzjW7h6f91qCl1T/u7fz4NPBl4DNxcHCw/WftrafHD9/r9UkTa+xf8OyPztp95s3RETsDj6N0NuEcFCRse5b3vLV1XfIumzuPDac/mjGcE7DlmLKqIJ5wS2GeKFzDCoT3mN1vjqZH4aubujBDtmeYKgJXZajl++vM08uAjYcrL9+9fxOFLwMAZIubKts2tGgUO88jpCiKSJFHtBkyLt+uAUbQ2srPq+EUMvGE3RAHpspfJCuqZuqGb3k2liRJoMgjxs929plu6cMMYObB2oso/JKiY25stuTrMqLVoub4tiTAEU9sdnud4+PDzuBDPqZsDbDEb66uRuHRgP3/ZVuOrPD0eZphC2OWidw1r9EgP829t+1e53S/9XHm8kIVXLNoEMpwtWAHOs2mZAPD+hRe0VVofj3qtg87T/OF7LTh5Ry4Ibyo6YGHJeGChD3fMWURgUtiINRnQg9nGoK/lqttlMqVkKzB+H33bL6yUVwCN4pHiqgSooL4ofkRsUBP4+mFMNct5mpVsgrlynpIdgYKhexv5I98uF4uVXPuEpgXCq7HBi0ZROgVoUzGJStRLOYGyG+um5mf6GiCa3yCPg+DraYkwzoLMIHtyKozAU2QOCpm047neYjfCDKjdh0kj+pxLNJ9kEB0OmV8VvI2dJSo2zBuugESCsnRAcxMhLmd1zkBpGqOhYXZ/v2cAxKOR6JsOr4nTbkCnJHMd/owerZGNywMucnKobMo5dECmMEk2z+sgUWEZGdMvWAkcEduQkjz4ejwQAWLjJetf8ZDW5/zwetM4gMJ/n3FwpERuBOUwdnqwfm9QNfEBduqj4EUkVDQ3apOpVKpVCqVSk3sF8syBtQPXiTJAAAAAElFTkSuQmCC"],[1,"item","recording-action-buttons"],["mat-flat-button","","id","stop-recording-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","start-recording-btn",3,"click",4,"ngIf"],["class","recording-error",4,"ngIf"],["mat-flat-button","","id","reset-recording-status-btn",3,"click",4,"ngIf"],["mat-flat-button","","id","stop-recording-btn",3,"click"],["mat-flat-button","","id","start-recording-btn",3,"click"],[1,"recording-error"],["mat-flat-button","","id","reset-recording-status-btn",3,"click"],[1,"not-allowed-message"],[1,"item"],["mat-subheader",""],[4,"ngFor","ngForOf"],["mat-list-icon","",1,"recording-icon"],["mat-line",""],[1,"recording-name"],["mat-line","",1,"time-container"],[1,"recording-duration"],[1,"recording-size"],["mat-line","",1,"recording-date"],["mat-icon-button","","id","play-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","download-recording-btn",3,"matTooltip","click"],["mat-icon-button","","id","delete-recording-btn",1,"delete-recording-btn",3,"matTooltip","click"]],template:function(e,i){1&e&&(R(0,"mat-expansion-panel",0),Ie("opened",function(){return i.panelOpened()})("closed",function(){return i.panelClosed()}),R(1,"mat-expansion-panel-header")(2,"mat-list")(3,"mat-list-item")(4,"div",1),ee(5,ite,2,0,"mat-icon",2),ee(6,ote,2,0,"mat-icon",2),ee(7,rte,2,0,"mat-icon",3),L(),R(8,"h3",4),fe(9),Me(10,"translate"),L(),R(11,"p",5),fe(12),Me(13,"translate"),L(),R(14,"div",6)(15,"div",7)(16,"span"),fe(17),Me(18,"uppercase"),L()()()()()(),ee(19,Ete,9,7,"div",8),L()),2&e&&(B("expanded",i.expanded),w(4),B("ngClass",km(16,G1,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),w(1),B("ngIf",i.recordingStatus!==i.recStatusEnum.FAILED&&i.recordingStatus!==i.recStatusEnum.STARTED),w(1),B("ngIf",i.recordingStatus===i.recStatusEnum.FAILED),w(1),B("ngIf",i.recordingStatus===i.recStatusEnum.STARTED),w(2),He(Re(10,10,"PANEL.RECORDING.TITLE")),w(3),He(Re(13,12,"PANEL.RECORDING.SUBTITLE")),w(3),B("ngClass",km(21,G1,i.recordingStatus===i.recStatusEnum.STARTED,i.recordingStatus===i.recStatusEnum.STOPPED,i.recordingStatus===i.recStatusEnum.FAILED,i.recordingStatus===i.recStatusEnum.STARTING||i.recordingStatus===i.recStatusEnum.STOPPING)),w(2),He(Re(18,14,i.recordingStatus)),w(2),B("ngIf",i.opened))},dependencies:[$i,No,nn,Ln,gi,ar,Wl,Ar,ry,Cp,Ap,Ep,Sp,jK,I1,R1,Qw,Kw,bv,Oh,_P,li],styles:["#recording-status[_ngcontent-%COMP%]{color:var(--ov-text-color);display:inline;padding:5px;font-size:12px;border-radius:var(--ov-panel-radius)}.time-container[_ngcontent-%COMP%]{padding:2px}.recording-icon[_ngcontent-%COMP%]{font-size:32px!important;height:32px!important;width:32px!important}.recording-duration[_ngcontent-%COMP%]{background-color:var(--ov-light-color);padding:4px 8px;border-radius:var(--ov-panel-radius);font-weight:500}.recording-duration[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.started[_ngcontent-%COMP%]{background-color:#3b7430!important;color:var(--ov-text-color)}.activity-icon.started[_ngcontent-%COMP%], .failed[_ngcontent-%COMP%]{background-color:var(--ov-warn-color)!important;color:var(--ov-text-color)}.stopped[_ngcontent-%COMP%]{background-color:var(--ov-light-color);color:var(--ov-panel-text-color)!important}.pending[_ngcontent-%COMP%]{background-color:#ffd79b!important;color:var(--ov-panel-text-color)!important}.panel-body-container[_ngcontent-%COMP%]{padding:10px}.panel-body-container[_ngcontent-%COMP%] > .content[_ngcontent-%COMP%]{align-items:stretch;justify-content:center;display:flex;flex-direction:column;box-flex:1;flex-grow:1;text-align:center}.recording-error[_ngcontent-%COMP%]{color:var(--ov-warn-color);font-weight:600}.recording-name[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.recording-date[_ngcontent-%COMP%]{font-size:12px!important;font-style:italic}.not-allowed-message[_ngcontent-%COMP%]{margin-top:10px;font-weight:700}.recording-action-buttons[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}#start-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-tertiary-color);color:var(--ov-text-color)}#stop-recording-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-warn-color);color:var(--ov-text-color)}.delete-recording-btn[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#reset-recording-status-btn[_ngcontent-%COMP%]{width:100%;background-color:var(--ov-light-color)}mat-expansion-panel[_ngcontent-%COMP%]{margin:0 0 15px}.blink[_ngcontent-%COMP%]{animation:blinker 1.5s linear infinite!important}@keyframes blinker{50%{opacity:.4}}",".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{align-self:flex-start;margin-top:15px;font-weight:600} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 10px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important}"],changeDetection:0}),t})(),AP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.libService=i,this.cd=o,this.onStartRecordingClicked=new xe,this.onStopRecordingClicked=new xe,this.onDeleteRecordingClicked=new xe,this.expandedPanel="",this.showRecordingActivity=!0}ngOnInit(){this.subscribeToPanelToggling(),this.subscribeToActivitiesPanelDirective()}ngOnDestroy(){this.panelSubscription&&this.panelSubscription.unsubscribe(),this.recordingActivitySub&&this.recordingActivitySub.unsubscribe()}close(){this.panelService.togglePanel(Wt.ACTIVITIES)}_onStartRecordingClicked(){this.onStartRecordingClicked.emit()}_onStopRecordingClicked(){this.onStopRecordingClicked.emit()}_onDeleteRecordingClicked(e){this.onDeleteRecordingClicked.emit(e)}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===Wt.ACTIVITIES&&e.expand&&(this.expandedPanel=e.expand)})}subscribeToActivitiesPanelDirective(){this.recordingActivitySub=this.libService.recordingActivity.subscribe(e=>{this.showRecordingActivity=e,this.cd.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(h(So),h(jt),h(zt))},t.\u0275cmp=it({type:t,selectors:[["ov-activities-panel"]],outputs:{onStartRecordingClicked:"onStartRecordingClicked",onStopRecordingClicked:"onStopRecordingClicked",onDeleteRecordingClicked:"onDeleteRecordingClicked"},decls:11,vars:4,consts:[["id","activities-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","75%","fxLayoutAlign","space-evenly none",1,"activities-body-container"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked",4,"ngIf"],["id","recording-activity",3,"expanded","onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked"]],template:function(e,i){1&e&&(R(0,"div",0)(1,"div",1)(2,"h3",2),fe(3,"Activities"),L(),R(4,"button",3),Ie("click",function(){return i.close()}),Me(5,"translate"),R(6,"mat-icon"),fe(7,"close"),L()()(),R(8,"div",4)(9,"mat-accordion"),ee(10,Ste,1,1,"ov-recording-activity",5),L()()()),2&e&&(w(4),Xt("matTooltip",Re(5,2,"PANEL.CLOSE")),w(6),B("ngIf",i.showRecordingActivity))},dependencies:[nn,Ln,gi,ar,As,ma,ga,NZ,SP,li],styles:[rd,".activities-body-container[_ngcontent-%COMP%]{display:block!important;overflow-y:auto;overflow-x:hidden;padding:10px}.activity-icon[_ngcontent-%COMP%]{display:inherit;background-color:var(--ov-light-color);border-radius:var(--ov-panel-radius)}.activity-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:auto}.activity-subtitle[_ngcontent-%COMP%]{font-style:italic;font-size:11px!important}.activity-title[_ngcontent-%COMP%]{font-weight:700!important}.activity-action-buttons[_ngcontent-%COMP%]{align-self:flex-start;margin-top:15px;font-weight:600} .mat-list-text{padding-left:10px!important} .mat-expansion-panel-header{padding:0 10px!important;height:65px!important} .mat-list-base .mat-list-item .mat-list-item-content, .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{padding:0!important} mat-expansion-panel .mat-expansion-panel-body{padding:0!important;min-height:400px} .mat-expansion-panel-header-description{flex-grow:0!important} .mat-expansion-panel{box-shadow:none!important}"],changeDetection:0}),t})(),wP=(()=>{class t{constructor(e,i,o){this.layoutService=e,this.captionService=i,this.openviduService=o,this.languagesAvailable=[],this.isOpenViduPro=!1}ngOnInit(){this.isOpenViduPro=this.openviduService.isOpenViduPro(),this.isOpenViduPro&&(this.subscribeToCaptions(),this.langSelected=this.captionService.getLangSelected().name,this.languagesAvailable=this.captionService.getCaptionLanguages())}ngOnDestroy(){this.captionsSubscription&&this.captionsSubscription.unsubscribe()}onLangSelected(e){this.langSelected=e.name,this.captionService.setLanguage(e.ISO)}toggleCaptions(){this.layoutService.toggleCaptions()}subscribeToCaptions(){this.captionsSubscription=this.layoutService.captionsTogglingObs.subscribe(e=>{this.captionsEnabled=e})}}return t.\u0275fac=function(e){return new(e||t)(h(Ca),h(fy),h(zo))},t.\u0275cmp=it({type:t,selectors:[["ov-captions-settings"]],decls:3,vars:2,consts:[[4,"ngIf"],["class","pro-feature",4,"ngIf"],["mat-line",""],["id","captions-toggle-slide",3,"checked","disableRipple","change"],["id","lang-section"],["mat-flat-button","",1,"lang-button",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"id","click",4,"ngFor","ngForOf"],[1,"section-description"],["mat-menu-item","",3,"id","click"],[1,"pro-feature"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAAEOCAMAAABPbwmXAAAC/VBMVEUAAADr6+s1Nzzo6Ojr1dHr7Ozq5eTr6+vq6+vo6OhAOkDo6Ojr6+vr6+vr6+vs7Ozs7Ozr6+vr7OzETk7q6urr6+vs7Ozr6+zr6+vs7OzCTEzs7Ozr6+vr6+vWbWXr6+vq6ur8+vslMTcvP0br7Ozq6urs7Ozs7Ozt7e3r6+vs7Ozs7OwsOUDr6+vr6+vs7OzCTEzs7Ozs7OzSUlLs7Ozr6+vr6+vs6+s1PkU3R0/t7e3s7Ozs7OyztLXYVFTs7OwzQkkyP0bhdW8zQkrggXM4SVHs7OyXTlHt7u4yP0bKT0/mkX/wu7jLhHU3R083R08zQ0vrlIE4SFHc3Nzb29vIUFA1REzJYF/slIE1RU3rlIHDTU3IT084Rk1IUFSum5c3R0/d3t7rk4DMVlY2Q0uDTVHb29s3R0/CTEzWVlXXWVjX2Njjy8vrlIHslYLmk4PokH7KzM3slIG+wMCSmJvV1tdJVVsmMjinp6icoaTc3Nzojn17fYDv8PDx8fEmMjjc3NzCxMXZ2dmmqKmhb2bYn597VlS5vb/linrrlIHEfHNLVlxdZGfJysyWZWGvsbOlRUfPxMWymZrGgnP+/v5jcHeVR0mudmrcsbHSjo7o6Oj+4drEgXLXVFTr6+vCTEw3R0/b29vslIHs7e3///8lMjjXU1M1REympqbglZU1Rk7HTk7CSkraVFTZWVjt7u7p6OjTU1POUVLk5OQ0Q0u9S0vaqanm5uYyQUnETk7f39/w8PDd3d3GUlPi4eHMzM2wSkq/UFG3T1DV1dXnhnefR0ibnZ7pkn/75eM/SVCoTU+3SkrFxcbWinuURkgwPkW6vL2PkZLfjn3caGdKSE+pR0jPfX3aYV+HioxuTVHS0tL0zMt9Qkb19vapq6xbSk82Njv88PCVl5h0en2jpKSioaK0fHJgaW1QOj7429rY2dpEOT28gnjKbWxxQETpp6Tgu7yXbGV5XlvRWlpiPUHn2dnVnZ3Tk49ZXF/gfX2udWrjiYmHYlu3kIyya2wPP+XLAAAAnXRSTlMA/QUEB/kKHxgOCxT1L91mX+zBa0o96LdYnfqQKSQYQzj9LhTxgGzlr04z0ifu2M+vo5Y4qot3Ux784Mtx/fHGbDr+vy+xhv25XlBM/f3n1IptMNi+vJr+993T05F8SST06sJ9UP727ujix2b96qGU3ZldXFQt/vfSp6GAbPnv46+efHv94+HJuq6l69/ZxIx5Ovrb2p2c1sm4spxqGmVgbgAAGPJJREFUeNrswYEAAAAAgKD9qRepAgAAAAAAAAAAAAAAAAAAmF3zjk0iDMP4h4C1trYVoaXSYlGqdbXWVW2r1VpnxbhHXXHExL333ivuFY1cLRwajSJ6USIC2jqoA2NAxT1iorFq3Ns//I4DDnoDSUDj+P1hG2xiv+fe93mf7z3/85///Oc///nP3wyvYng4+HeBx68UllBPJBRHZyc3a9w0TpAlEIJ/iwjX8SXx+PFTo2IbRvI5iBv9sLFc8C+RQRyfAX3RqOR/qmHq8hEIsxxFRXMqgb+EWtM2TJ48eepQwEyNSIQFXRGk93TwN1B52jq+DEXRe5mTmQWp15BVDmMRpFcN8OdTawMfdSHL2gQYSIj1Jwdk2Fjwp1N59kmUJJOp4MMyERY4UA6cUUsqgj+beRz00f47aNdXstL9z1C0E8N5KqX+hBx/vqG2WIeij+xd0Ve5smeOO7BfxAy5I41VDrPRYDCbzRiGNQs00/3+wFKhMlkcaihHLpTji6zUDuVAO/EAHeE5CBscjjuUNA3keBHZcYKU5CQe/IV+G5U7t2vXtyYgmC1zy4GW2mGzoFvD6J9iHPJzxPHAz5OM6M8UYcPmbGvfAvwCIgAQVuH6FEbbNu1majSahZ0JaVaiuBx30Fff0NJcXA5ZEqCD27T8MNFjEL0OKYcgEDOVcLCi27fLTj1d2xOEHK44JzojKjbe+3k3WIiLgevRwDllcTlkX6CVeuRgCA/xvjHU7DJPI1YuuqdFgJ8nMb0Oduby+acXZgyuAEJNbTmCt3SdRK/i6K5xMaAWUR2kHI8IOeoxPEjEC6yIxOyrR2pAo4WbuG3G58f37z9tH3r3EPOR+vEpcnlMmKefay7UPL/1EKrxYEVNj3egdx6hpXdQGfwCvYPhOB3Ky2E0GogKwRBvMsMCmWsNQOebl423e00LvXdwxXxBIuDGREamVgEu2s7U3LJ9fXvru3XZYGKy6FCoQyla+swlR1NAT3PfFGrAdHCa6I24Lj7+EZsAGIiWxCRV4npZeoPKDVqEx3PKTpmTQcipKKnDEeNfOyF8oac6Zmq+q1QKhUr1pC+RSe+haKnjFbrf/uiOtiuzdYBoXyPluDyEUh4NYbMxzSZOw9SUDuIqEVxn37ZoC/0immM+Ze4UyuxG/vP8uniRpCANM4CL3Q80T1S2NwrbsjfO6hgyCreLrs/QZ3fQR11LUbQxY+fRbzsM5eWIFDHF/ChXRKma1jQ5I2FIA8KhOZghpwr4BTRGkHg49ZJi64vCAYG04MlbG6wOm/XNsiH4YJl172Sk952lU0SACw9zeTlgJdIjkiMkZ4b1Sm8uTAwHwrT6kkTwK6gXk8VPj8lORVJ4nooZ/sSqUqm+K6xvd0jx4pi9dNq0pcNkKIEsPiLAhQdVDo7Yf7epDVcxNVSuTk58bXFSaG99VPuLIt2thwKXw2ZRvFjFw/vXOe2HLk49KZPJFsTVZQnYSXLacI43i28UiwZ+J3UZxlF7mitK0DhaBGdf6GneEMlpnlVfSJ4y32qBclgUX60TvKPq0GlTx06dzpqEqlRl2goafF0lm8HZBV61oUd8kUftmg5CTsWkZiKQ4NWavNVfbXh1vLCqeoDASMxkKo5yZ0tmdVKIHtMhFLBFwV89h8OT82oLmZtxSv83X6EcUJLxeSAwKrmPUz6OmRFfJP6852qZms6DloAgk5ieVo9XVx4ZJ6ZXWlptkurJtSd4u/QPoDiYFx56MoSRxDPcGDwVVcahHdjDkkAw4dZNg64piMWjUA1aMUZrz6osbx+uWD18Qn7glZfD2iokTdmvgLpTOoZla+8IEEQqZbHeKruMsWuVuSqYwTr2GdGkcuCprhNLq/hfeIQLPD5Kb8mQ4Eb12rAIq3ZKgT1ehxKUpSNaKx3KvQ7YKBatUtl6zKAuUt/TSvPy8vPz86SMxZdCfaJkq/hdeCTWQQjIDQnlijxMCIJINAcRiCpywyR8JKtZts8zyuujJIDlkUt8d2T0CEKGoXn5PeZOGF4wvn9/i1WxZQ1TH6XTHQFDKGTRGpeQ71Ljqo4hzUF6hYFgkVA3C8ms4hyv+OKqvne/NBmjVRJoc3O1xcWH4HcnlLkTJk4kZFC5sVkVCsVcKVPmpx6B5mypldguxNgpxjQHmcMLVsSIg62SDpxk8KGnegndZbTWriQ48k5rv/jedEh59ARsHAoWi8VmtU7ksS88yNubkWZIRIWx1RamZ3xtBRk1FgQFYpfpWuqLIuFwqeKlBqwKJcHefu+0px++P6osOZqrooKLYbXZ5rI9X/KJkoHU78Ij3OXz6qtn1LR6YJhzmdRrevDur/Cu5jaRWEEVjxqtlS60eHmUKC9qNHdNJQ4LrRxQD4V1Uh5jcPBfHQ3rsb3TLMMQJnQ6zGxYFKQLXTJci8oznHE4B8kUhXPJ2iC0eKe043oUl3ScCfWAxcGMZRKNn8aUPzpmNJpp5IgUsa0HDDqEDQ5staCQIKxdFamTnZBYVwBNhHRRqAbRKsVHCF1Ob+8+U/Ow41kVHf3HFwyH7mqZCChk6LwhXjWRavhZeCQjLloZKM1CGdNBQgJ/xdhMPj7s3BrnjbEr92rte3E5TIQc77ZX7rxQs6I/nRgTYfDg8QaN7jewEYU+N7wZx3gqTgbbWxo4i1hpDIIG+SqkqtCVvvq4TANytJiYLf1MXUDbdkPyJxSMp0gyadWaufl5Aw8eLKThoDevDyNMxLBceNRFGHt1RINgEZECazdTIqmKZLk3HIOUbhzaIyUOKEZx8VFHNQAqV4BawRg6ZUoPgik9httsMHh8tahWXbxU6I+Dxw8j0PkwumedzbIsUV8+xSoHNJ7g6SGOk9cGILuxu1WqtVa60WqVp99pTSUmRy40Bjqk+euHF0zaUjBhzZVj/uX4qHZGJzovTWbbO2Ps1QGdNIhUFEXARuV6bFRLCEFQUmwyOc5aoEVMAbQ0aCGVSiuCjacL/cvxifj/YHRW0IwtwnFO6f288A4V0jHO0aqFfzgxFeNi4BRQcwXsHjeD4HEvXfIjxw1SDv9uyCOvf2p8+aNWEy9qqEhAyBjhTqLufjF5ssZqyjhrMbKFW5g+hYXXr/iVQwebhT6WplO7uL53/tTpL58xtyorumrAsPJTKQaEilrrjyq9gfcWMolOlFJ+3C2HdCAsDr/N8hJD9AajQU9X8FzKnE13H1eQg9xvpbttTluSqjPqb7fS+zqJPAmEisEtbx09RNSG1kGMWy2ZvQrm5jG0aZPqhf452O/D4cOw6g/TIOBRF6XywxB1WvTQeVFlZw7HdggDtefDTxD9ZT3lNhwSenbbt+9W8SGH3ctN99pVJOOH96BdH3epDjl26Vh1Cie8MH08zsTyalSWO/9iRLWNG3ceP755DfxkBPwIQqTUkDtphb579u058KAEKkHiKg9SkdVThrqGysiaFdyWUwi5fuW6v/pghvGnr59zfnf9tOcj0zif6ugAQgQsjgN79hy41vHIIY8WZHmQTJowZSgPqkdOlkaFIeOSO9D8IObaflyIwvjUaCkti1VbSiUu67bYpbtucQnW5QFxS1zjfk9IxAsh4kG8+gM6ViZMMoymTRsrtVTpg6J92Y2QTXiSJptsPIhn35kz06/mDKWdnfk9bPdyXua33/f7fuf7zpxcRs+59+9FYYwPB5pDhLUQHARvIWF0KQUFIb30NwZcunNtSQUOPLISz5CMVA55yaQyKVWRXz93B0NTVBld5MLegMUYtlEGOpJJSeru3ZRQoKpoOLf/zRMWqysQtRTxitgg+YfcvMvkUn3fXM1jh8P2AlS0aWRwviVKyo9gq+x2kivJ7mKxW+r6sqnno6KQIFFWb91w7OPDqH2IPysTYKzeECDvfo5XS2to5dIQ2JMOS5R0apuH8dvbpK4y5K7eT5vy4NFfZW8vI2bVTjzSnx50lMGziyO50Z1joWXl5Syb0Y5tDjFKeprQgSCh0tvb+7ZrB25zbQHSkTLZGJ5Zws2bRNsR4Un1OlLcETRUoQP46Ia0gc/Th7kJUTuRKEfHPRYHpjWMIVMQv7d9nDDOmrriD7DbhGX7fqdDSnYn6XfrZyypQS3rpyNVMHEj54I+2hKc47KsMbjKxNyOWg9S+jt0fnZMOxu1D6ilKdM2QSWC1gycoF3LjOx3yJKRDu0Xp0/YqqXxRxobfeY9tQrM5uoCNt5EpgN1+IiRDrlb+2b9nqideIQmzIie76KA8IW5uoDjIHHzcDPj8Tu6dYJOKlH7gOJhti0WmePbVkwjxeap/5AtWnjIn6L2AenIpdimyQtLRyx4BO36XM6Adacl2ZgtMv38kojaiLhOxzuTlpp1IxYc90HEpTtNdy2/Q6+1va/szBYsLSbteMtHLLNIS0qMsa+wbVkuyUy2UORtpAO1lJ1XQGGxbsSCTWpRFFGHUEyZ8Chqv9hkPx2APiMdPRdEK0cs2KQWxethtlnaZQyPbhoe8smojUCbnmEKi1CBzXUrKR5BE9OrTBpixvCQipqWxqP2AekoZAyF5amFIxY0YWSMk25l/7aXhgebLb09URsR/8Oe9vEHa4fVWGfFWJo5sOcFZypLptnyNutAaQH09TGFxeIRCx8UVKQDBiMWbvOO2mgMD6nomJay+5Zn32PWj1j89Oi8QUv5sYHxHqi1ssRmC9FS2+lg1RSGCkMxYpm7goZHZe55Ot3CHB5qbReTLU7ZdJwomBeWCGcRoL0GiEUqqm8QeA/SWisx2eKMTUc5RYtu+bAaX6sSIRo0eIOiRveCfYbwkIsytelR+4BaCnhXMO/9tFg2rPY3q3SUS4unTZWoVaa1tphUS4sjNh3VA3s/1g+r2w02fVY6LeoH+NadliVGPJwoLYi+d2a9nzm8Za8PU1t6Q5voddxIp2OiMFPdEUGtTTLi4ZRNR/NBC4vb0mE13sojEj60lseI+SQ2RHHMCNN9rVx0xqazanrgbmN768qA25Jh9eiReGcTSRUwprTSRtIxrONkwmCoLaqWyvbbdESGdk0Xq4/h75i1dP44V4u/Tv0cH5nHl19hFAGxTjp0oRnpG6tPGIx0SM7YdEZND5Yt42h/02xv3YoRaA3z9AYGsmkRxTYaHGD/NwenzB2ub2sZOhzqACFSKh8TOCsx1gXP3RYqv2gSSy/lyY6OFJVFjXgICKUUk8U5m47eY/ISDmHRVlZc2MSDeFKXTjrRDTHtrXtsIBt9mJPd9Iqu6ZlpnKWYQiQj7ev0cnPHqaWWvP7WCiUWQC7uoHVWNgRHsuhkN72iTbjH4st+po8j+pmOtXm5pmbabIQqAxpCPN4IvX2cNOkPOmjTccawmLMWfCu1X7EIz00cL6g3QHWkVTrcWllZsF0yBAc5H9Vlv01/+IhJluNmj8RzfO3hATHR4hPS5OFHRnxCwM9NEUnNdUWGszpKIQEc7ADhQG7yVpOteWuTZ1Xtd72EZ83unAnx0TwdiG0ItMzzrBGJw5ui9aRPHKHPjli+fbmUdLCbjtPrM2xhaQoIgTUzhYUTa/emK9USO8lLKm9geihQycaM9bIxOPatPSJrdHxyzqan1HM/Zi9i+wJuCPJ6+ugilBd1quBpnd4RE5EN6P1oOoo4tGAbyR/HbDqO4/YMM+rGyHbX+PDUjoW+hpF8rd404lLL7QriMxomzqpkY53uRxH7ls3YTjhy1qanMmjREaFF7nHT1VfEfeNrvrnCs2qFOrFuI8E2cSm0BL36TBItBwYHbGEIHY7a9Iy5Rfe3wD0bdI42po5WkD/YAgFyA/Qn3LhSwPvZ1i5PGoNj+zKO20i6p9VtuqJUJ0sB1EAHMR0mhSU0RmgmqtHoc60cWY//CM9xwxCO58JNK8b4cSLJWI7la8kpGEJHdZuezeWr+rRXeVxTFQmMDYIzG5g490eEOf7RE9e420P1dcY8TYsECI/Gsc3QjtbdOauj62fQo/vJqja9ZxAurRzoT/z1+fphzVdmTRUtTZHYwMJivCwpML8FrzSoHSOCYpCb2942HFOF0dEjJ1QvshwkpcqgNvHjgYr+vz3eIF0zGP8PLX2nHfEwt+gNMwXfGCi04brbpby3fVGoY1YjP5wSsnMfq6P0gtR1xHj8vbQouQcUXytWKAQVa/JftTV55V9tel8GT+kfNHuKxkmzR3fOmVhvE/nKzd27dx/dBYDP8B9S5fQ6jkA1HlVs+uADDQV9hdKTLxRyWXxVSOnX1/T/Gx2JTEpvof+59+Mdznk89e9tT91HnGdShWKHfiYI6Khi038Y6YgXSqUfP0oDP/JlOgYZOqoAjUeV3o/VdECq6I+M2E6vB0Xjwdp09j+fUygb/QOFnng0ke0vy6tSQMpqsOnQ+xk6TL35+bWO3dNJqkgSW2TxDEyV85RKVtOFUkJ79AEqIko0UxpMaFV2gK4ZeFWDTcfez5Dg7vsyzpNUkZENLLIEaDwAb/94nrKg8jGQoX/vKaGGZEt6ucmpa77marHpUFiGEpdflnGLpAqygUVWx1pCRzWbnh8slfpf6YUGogQrCiUJkIU1g9naWh7HuaHELZSOq2yqAPbi/hGMh1SttEBaJOLwhSILAorIvcI1iahSEx1g0YcSEaRjt1mq7NuJa8F4SP95Nl1hfqiz5QG9nyEEf7PMxvNfxN1PSBRhFADwWcV2/VNtpYIklJZg7oohmxo55B4KFiSEgi6lROCloyVbeAmDDlpBpyB22WWNGaagEiHr4B4WBgXDHeqwjDiHmV0XQzET0ovRm3FnHsuMJ3e++R28rAfn+ea9t9/MN5O+wTGc+ZsswsHDudV0GNFtVHkrrkspHHNwHcXBg/z9lFhLce3HHu6bcR1/mTuwjhqDB/yGEytAWDzuUHY6es84VUbxVLGoozh4OLuafoqyU+2wcaowMc66jqIBIxwc4W1PhBrLg3iBDJcNZjjredQ0eDh3oRbWfuzUgqdKjJuZnWUs6ygOHgzjTGsh0VjAk/g+Or/Aabt4ZjFFYFc1wsHDmW1PREb0I0afFff+/ITigSmCdRT5cV8H6dV0Io3FY/TZ6PzyzrNdPUUY/Xt9Ebwzm3xrIdJYHul9dk59qdna5nohRRiGuxyiEA4eXMzJWgprP3aqM1Z/VqZA03z/zhakiL4+anIN4sAxGsL3UxJY+8E+K0p00gUJAimyvLkKKRK7EaQsDMQ46MezKsJjur1rP2VlZVVgBF6t+xTQLMtKaS1FmprW+r9vTQw0+5uLBYPB5oGYyrkLtReb9/lVPZpzmioAx0SVxFCY1dDJOVpabJqa7x/r6/OXmcAdUvuhUDnRWu6b/iLtR4mNs7yQZVVyRkzTK1PPQ+eCIcqsJ/RyFayrNiIkvccR3W6VYX50SWFVOSUjZenhsSp/n5+y8nZe1x8haRrXfuz2kBWW3uVZTS6j5POTd/tCPZSlwJTu93aEoM84otttHJIiL7MFgrI7OjFIHaBhpUDM/SD+EDFY+yFg6FWY57OsTlbyu5PYZ8uPVLsb2850e3tbTjcEXtAFsrJBKBxYPO5QZAyNhwWBL4rHoKfxbK2361JD68mOY/XtNa6oKpHUw5YV/hEPxymKlOqRx0JGyLEaXoDg3Kw/b37bXyLJGtYjRGAt/fqms8Vbe9RdWU7Zr3IkzGcysv7fl9KfElGrcAhKIY32IiRNw+5ZdTNxxYljVwOXjtc2VtsWlHJPm/d665UTc0nJSJEsb/WynITIL+hN6PU20Vpa/LyfivqO1uveNk/JY+Kp6w342l3awSa+pNKQIlBXeUHmF13mcKQwHLnbZFuLvpkYudp9gd46Twlj0d3pqyk6Xte3RUgRWT1pJDFhCkdcEhQ5m83mAOHW8mEnEbVQ4+vsLk1E3F0dxdUSUwSSg2XT5g/naDYHlTajIt1aYDOxtYqOLjd1aBd8UWRKEV7m0y6LN0v9SqVEUUyCvxGSpvGxDBZ8F6hDgrtTkVWKSEmrTwwf/7N37zoKAlEYgMfMoBAuzhARDBIouAhEDIZLgiS0Psw+E80mJttsYrVPsY+yic0W2+1UdtKgKMl85VRz/vzFqWbePgesx+lMn2XooKxBPxFpu7xfv9q65XfYNf2n8zokAv3AmrS9fP2dBnT+bjuQGoK+tLRfIJePIV3am0iqgTuAkaeSduSI6kUQ3IkQzdMd3cJGabLdpfNIAPclRjjXY8K1I8KRWM9xJILHQLwc1nt9F0gv3pSJFOz0fR3KPAKPhkRLMwozU5PAfbGycG6QqJlZGJolIjAoOOUtJ8SFmepNUhGJe1JjJpxEqqTRU7PAoWPxUwieCwm8JWsh9j1ztTk2sRIQ94Hp0PldEihxc9ysTM/HoSZbvIDAK4JIEGk4jr0wsF94+X6VbXS1OcSJUgVLsnVdSeKoCXVjWoqjJMl1t2QZVEoSHxpV32Srfe4VPjYWtkMDEAUEwQhBNBVoRrOZtZZlx9FsexGWpWFgjOeUfzWn6KFhlGW4sG3NcWR5bc1mdHJhOs7ZGYZhGIZhGIZhGIZh/tuDAxIAAAAAQf9ftyNQAQAAAAAAAAAAAABgKnFticyleiBsAAAAAElFTkSuQmCC"],[3,"innerHTML"]],template:function(e,i){1&e&&(R(0,"div"),ee(1,Dte,23,14,"mat-list",0),ee(2,Mte,4,3,"div",1),L()),2&e&&(w(1),B("ngIf",i.isOpenViduPro),w(1),B("ngIf",!i.isOpenViduPro))},dependencies:[No,nn,Ln,gi,Wl,nd,Ds,Ms,Cp,Ap,P1,li],styles:["#lang-section[_ngcontent-%COMP%]{margin-top:10px}.section-description[_ngcontent-%COMP%]{color:var(--ov-panel-text-color);font-size:12px;padding:0 5px;display:block}.lang-button[_ngcontent-%COMP%]{background-color:var(--ov-logo-background-color);color:var(--ov-text-color)}.pro-feature[_ngcontent-%COMP%]{text-align:center}.pro-feture[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:14px} .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:var(--ov-tertiary-color)} .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:var(--ov-light-color)}"]}),t})(),DP=(()=>{class t{constructor(e,i,o){this.panelService=e,this.platformService=i,this.libService=o,this.settingsOptions=rc,this.selectedOption=rc.GENERAL,this.showCaptions=!0,this.isMobile=!1}ngOnInit(){this.isMobile=this.platformService.isMobile(),this.subscribeToPanelToggling(),this.subscribeToDirectives()}ngOnDestroy(){this.captionsSubs&&this.captionsSubs.unsubscribe()}close(){this.panelService.togglePanel(Wt.SETTINGS)}onSelectionChanged(e){this.selectedOption=e}subscribeToDirectives(){this.captionsSubs=this.libService.captionsButtonObs.subscribe(e=>{this.showCaptions=e})}subscribeToPanelToggling(){this.panelSubscription=this.panelService.panelOpenedObs.subscribe(e=>{e.type===Wt.SETTINGS&&e.expand&&(this.selectedOption=e.expand)})}}return t.\u0275fac=function(e){return new(e||t)(h(So),h(sc),h(jt))},t.\u0275cmp=it({type:t,selectors:[["ov-settings-panel"]],decls:31,vars:24,consts:[["id","settings-container","fxLayout","column","fxLayoutAlign","space-evenly none",1,"panel-container"],["fxFlex","55px","fxLayoutAlign","start center",1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","",1,"panel-close-button",3,"matTooltip","click"],["fxFlex","100%","fxLayoutAlign","space-evenly none",1,"settings-container"],[1,"item-menu",3,"ngClass"],[3,"multiple","selectionChange"],["optionList",""],["id","general-opt",1,"option",3,"selected","value"],["mat-list-icon",""],["mat-line","",4,"ngIf"],["id","video-opt",1,"option",3,"selected","value"],["id","audio-opt",1,"option",3,"selected","value"],["class","option","id","captions-opt",3,"selected","value",4,"ngIf"],[1,"item-content"],[4,"ngIf"],["mat-line",""],["id","captions-opt",1,"option",3,"selected","value"]],template:function(e,i){if(1&e){const o=mt();R(0,"div",0)(1,"div",1)(2,"h3",2),fe(3),Me(4,"translate"),L(),R(5,"button",3),Ie("click",function(){return i.close()}),Me(6,"translate"),R(7,"mat-icon"),fe(8,"close"),L()()(),R(9,"div",4)(10,"div",5)(11,"mat-selection-list",6,7),Ie("selectionChange",function(){qe(o);const s=io(12);return We(i.onSelectionChanged(null==s.selectedOptions.selected[0]?null:s.selectedOptions.selected[0].value))}),R(13,"mat-list-option",8)(14,"mat-icon",9),fe(15,"manage_accounts"),L(),ee(16,Tte,3,3,"div",10),L(),R(17,"mat-list-option",11)(18,"mat-icon",9),fe(19,"videocam"),L(),ee(20,xte,3,3,"div",10),L(),R(21,"mat-list-option",12)(22,"mat-icon",9),fe(23,"mic"),L(),ee(24,Ote,3,3,"div",10),L(),ee(25,Rte,4,3,"mat-list-option",13),L()(),R(26,"div",14),ee(27,Pte,10,3,"div",15),ee(28,kte,1,0,"ov-video-devices-select",15),ee(29,Nte,1,0,"ov-audio-devices-select",15),ee(30,Lte,1,0,"ov-captions-settings",15),L()()()}2&e&&(w(3),He(Re(4,18,"PANEL.SETTINGS.TITLE")),w(2),Xt("matTooltip",Re(6,20,"PANEL.CLOSE")),w(5),B("ngClass",_i(22,Fte,i.isMobile)),w(1),B("multiple",!1),w(2),B("selected",i.selectedOption===i.settingsOptions.GENERAL)("value",i.settingsOptions.GENERAL),w(3),B("ngIf",!i.isMobile),w(1),B("selected",i.selectedOption===i.settingsOptions.VIDEO)("value",i.settingsOptions.VIDEO),w(3),B("ngIf",!i.isMobile),w(1),B("selected",i.selectedOption===i.settingsOptions.AUDIO)("value",i.settingsOptions.AUDIO),w(3),B("ngIf",!i.isMobile),w(1),B("ngIf",i.showCaptions),w(2),B("ngIf",i.selectedOption===i.settingsOptions.GENERAL),w(1),B("ngIf",i.selectedOption===i.settingsOptions.VIDEO),w(1),B("ngIf",i.selectedOption===i.settingsOptions.AUDIO),w(1),B("ngIf",i.selectedOption===i.settingsOptions.CAPTIONS&&i.showCaptions))},dependencies:[$i,nn,Ln,gi,ar,Wl,As,ma,ga,Ar,Cp,Ap,Sp,ay,E1,Ey,Sy,Ay,wy,wP,li],styles:[rd,".settings-container[_ngcontent-%COMP%]{display:flex;padding:10px}.item-menu[_ngcontent-%COMP%]{padding-right:5px;border-right:1px solid var(--ov-secondary-color);width:170px}.item-menu.mobile[_ngcontent-%COMP%]{width:50px!important}.item-content[_ngcontent-%COMP%]{padding:16px;flex-grow:1;width:min-content}.option[_ngcontent-%COMP%]{border-radius:var(--ov-panel-radius)}.lang-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}mat-list-option[aria-selected=true][_ngcontent-%COMP%]{background:var(--ov-tertiary-color);font-weight:700!important;color:var(--ov-panel-background)} .mat-list-item-content{padding:5px!important}"]}),t})(),Dy=(()=>{class t{constructor(e,i,o,r,s,a,l,c){this.loggerSrv=e,this.storageSrv=i,this.participantService=o,this.deviceSrv=r,this.openviduService=s,this.actionService=a,this.libService=l,this.translateService=c,this.onJoinButtonClicked=new xe,this.onToolbarLeaveButtonClicked=new xe,this.onToolbarCameraButtonClicked=new xe,this.onToolbarMicrophoneButtonClicked=new xe,this.onToolbarScreenshareButtonClicked=new xe,this.onToolbarFullscreenButtonClicked=new xe,this.onToolbarParticipantsPanelButtonClicked=new xe,this.onToolbarChatPanelButtonClicked=new xe,this.onToolbarActivitiesPanelButtonClicked=new xe,this.onToolbarStartRecordingClicked=new xe,this.onToolbarStopRecordingClicked=new xe,this.onActivitiesPanelStartRecordingClicked=new xe,this.onActivitiesPanelStopRecordingClicked=new xe,this.onActivitiesPanelDeleteRecordingClicked=new xe,this.onActivitiesPanelPlayRecordingClicked=new xe,this.onSessionCreated=new xe,this.onParticipantCreated=new xe,this.onNodeCrashed=new xe,this.showVideoconference=!1,this.participantReady=!1,this.error=!1,this.errorMessage="",this.showPrejoin=!0,this.isSessionInitialized=!1,this.loading=!0,this.nodeCrashed=!1,this.log=this.loggerSrv.get("VideoconferenceComponent")}set tokens(e){e&&e.webcam?(this.log.w("Tokens received"),this.openviduService.setWebcamToken(e.webcam),new URL(e.webcam).searchParams.get("edition")?this.openviduService.setOpenViduEdition(Ea.PRO):this.openviduService.setOpenViduEdition(Ea.CE),e.screen?this.openviduService.setScreenToken(e.screen):this.log.w("No screen token found. Screenshare feature will be disabled"),this.start()):this.log.w("No tokens received")}ngOnInit(){return J(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives()})}ngOnDestroy(){return J(this,void 0,void 0,function*(){this.prejoinSub&&this.prejoinSub.unsubscribe(),this.participantNameSub&&this.participantNameSub.unsubscribe(),this.deviceSrv.clear(),yield this.openviduService.clear()})}ngAfterViewInit(){this.externalToolbar?(this.log.d("Setting EXTERNAL TOOLBAR"),this.openviduAngularToolbarTemplate=this.externalToolbar.template):(this.log.d("Setting DEFAULT TOOLBAR"),this.externalToolbarAdditionalButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL BUTTONS"),this.openviduAngularToolbarAdditionalButtonsTemplate=this.externalToolbarAdditionalButtons.template),this.externalToolbarAdditionalPanelButtons&&(this.log.d("Setting EXTERNAL TOOLBAR ADDITIONAL PANEL BUTTONS"),this.openviduAngularToolbarAdditionalPanelButtonsTemplate=this.externalToolbarAdditionalPanelButtons.template),this.openviduAngularToolbarTemplate=this.defaultToolbarTemplate),this.externalPanel?(this.log.d("Setting EXTERNAL PANEL"),this.openviduAngularPanelTemplate=this.externalPanel.template):(this.log.d("Setting DEFAULT PANEL"),this.externalParticipantsPanel?(this.openviduAngularParticipantsPanelTemplate=this.externalParticipantsPanel.template,this.log.d("Setting EXTERNAL PARTICIPANTS PANEL")):(this.log.d("Setting DEFAULT PARTICIPANTS PANEL"),this.externalParticipantPanelItem?(this.log.d("Setting EXTERNAL P ITEM"),this.openviduAngularParticipantPanelItemTemplate=this.externalParticipantPanelItem.template):(this.externalParticipantPanelItemElements&&(this.log.d("Setting EXTERNAL PARTICIPANT PANEL ITEM ELEMENT"),this.openviduAngularParticipantPanelItemElementsTemplate=this.externalParticipantPanelItemElements.template),this.openviduAngularParticipantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.log.d("Setting DEFAULT P ITEM")),this.openviduAngularParticipantsPanelTemplate=this.defaultParticipantsPanelTemplate),this.externalChatPanel?(this.log.d("Setting EXTERNAL CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.externalChatPanel.template):(this.log.d("Setting DEFAULT CHAT PANEL"),this.openviduAngularChatPanelTemplate=this.defaultChatPanelTemplate),this.externalActivitiesPanel?(this.log.d("Setting EXTERNAL ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.externalActivitiesPanel.template):(this.log.d("Setting DEFAULT ACTIVITIES PANEL"),this.openviduAngularActivitiesPanelTemplate=this.defaultActivitiesPanelTemplate),this.externalAdditionalPanels&&(this.log.d("Setting EXTERNAL ADDITIONAL PANELS"),this.openviduAngularAdditionalPanelsTemplate=this.externalAdditionalPanels.template),this.openviduAngularPanelTemplate=this.defaultPanelTemplate),this.externalLayout?(this.log.d("Setting EXTERNAL LAYOUT"),this.openviduAngularLayoutTemplate=this.externalLayout.template):(this.log.d("Setting DEAFULT LAYOUT"),this.externalStream?(this.log.d("Setting EXTERNAL STREAM"),this.openviduAngularStreamTemplate=this.externalStream.template):(this.log.d("Setting DEFAULT STREAM"),this.openviduAngularStreamTemplate=this.defaultStreamTemplate),this.openviduAngularLayoutTemplate=this.defaultLayoutTemplate)}start(){return J(this,void 0,void 0,function*(){yield this.deviceSrv.forceInitDevices();const e=this.externalParticipantName||this.storageSrv.getNickname()||`OpenVidu_User${Math.floor(100*Math.random())}`;this.participantService.initLocalParticipant({local:!0,nickname:e}),this.openviduService.initialize(),(this.deviceSrv.hasVideoDeviceAvailable()||this.deviceSrv.hasAudioDeviceAvailable())&&(yield this.initwebcamPublisher()),this.isSessionInitialized=!0,this.onParticipantCreated.emit(this.participantService.getLocalParticipant()),this.loading=!1,this.participantReady=!0,this.nodeCrashed&&(this.nodeCrashed=!1,this.actionService.closeDialog())})}initwebcamPublisher(){return J(this,void 0,void 0,function*(){return new Promise((e,i)=>J(this,void 0,void 0,function*(){try{const o=yield this.openviduService.initDefaultPublisher();o&&(o.once("accessDenied",r=>J(this,void 0,void 0,function*(){yield this.handlePublisherError(r),e()})),o.once("accessAllowed",()=>e()))}catch(o){this.actionService.openDialog(o.name.replace(/_/g," "),o.message,!0),this.log.e(o),i()}}))})}_onJoinButtonClicked(){this.showVideoconference=!0,this.showPrejoin=!1,this.onJoinButtonClicked.emit()}onLeaveButtonClicked(){this.showVideoconference=!1,this.participantReady=!1,this.onToolbarLeaveButtonClicked.emit()}onCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}onMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}onScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}onFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}onChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}onActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}onDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onNodeCrashed(){this.nodeCrashed=!0,this.onNodeCrashed.emit()}handlePublisherError(e){return J(this,void 0,void 0,function*(){let i="";if(e.name===fa.OpenViduErrorName.DEVICE_ALREADY_IN_USE)return this.log.w("Video device already in use. Disabling video device..."),this.deviceSrv.disableVideoDevices(),yield this.initwebcamPublisher();e.name===fa.OpenViduErrorName.NO_INPUT_SOURCE_SET&&(i=this.translateService.translate("ERRORS.DEVICE_NOT_FOUND")),this.actionService.openDialog(e.name.replace(/_/g," "),i,!0),this.log.e(e.message)})}subscribeToVideconferenceDirectives(){this.prejoinSub=this.libService.prejoin.subscribe(e=>{this.showPrejoin=e}),this.participantNameSub=this.libService.participantName.subscribe(e=>{this.externalParticipantName=e})}}return t.\u0275fac=function(e){return new(e||t)(h(cr),h(Ho),h(Ti),h(ac),h(zo),h(es),h(jt),h(tc))},t.\u0275cmp=it({type:t,selectors:[["ov-videoconference"]],contentQueries:function(e,i,o){if(1&e&&(nt(o,pie,5),nt(o,JR,5),nt(o,eP,5),nt(o,tP,5),nt(o,gie,5),nt(o,nP,5),nt(o,iP,5),nt(o,oP,5),nt(o,rP,5),nt(o,sP,5),nt(o,mie,5),nt(o,aP,5)),2&e){let r;Ne(r=Le())&&(i.externalToolbar=r.first),Ne(r=Le())&&(i.externalToolbarAdditionalButtons=r.first),Ne(r=Le())&&(i.externalToolbarAdditionalPanelButtons=r.first),Ne(r=Le())&&(i.externalAdditionalPanels=r.first),Ne(r=Le())&&(i.externalPanel=r.first),Ne(r=Le())&&(i.externalChatPanel=r.first),Ne(r=Le())&&(i.externalActivitiesPanel=r.first),Ne(r=Le())&&(i.externalParticipantsPanel=r.first),Ne(r=Le())&&(i.externalParticipantPanelItem=r.first),Ne(r=Le())&&(i.externalParticipantPanelItemElements=r.first),Ne(r=Le())&&(i.externalLayout=r.first),Ne(r=Le())&&(i.externalStream=r.first)}},viewQuery:function(e,i){if(1&e&&(Mt(Bte,5,yt),Mt(Vte,5,yt),Mt(jte,5,yt),Mt(Ute,5,yt),Mt(Hte,5,yt),Mt(H1,5,yt),Mt(Gte,5,yt),Mt(zte,5,yt)),2&e){let o;Ne(o=Le())&&(i.defaultToolbarTemplate=o.first),Ne(o=Le())&&(i.defaultPanelTemplate=o.first),Ne(o=Le())&&(i.defaultChatPanelTemplate=o.first),Ne(o=Le())&&(i.defaultParticipantsPanelTemplate=o.first),Ne(o=Le())&&(i.defaultActivitiesPanelTemplate=o.first),Ne(o=Le())&&(i.defaultParticipantPanelItemTemplate=o.first),Ne(o=Le())&&(i.defaultLayoutTemplate=o.first),Ne(o=Le())&&(i.defaultStreamTemplate=o.first)}},inputs:{tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onActivitiesPanelPlayRecordingClicked:"onActivitiesPanelPlayRecordingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated",onNodeCrashed:"onNodeCrashed"},decls:21,vars:4,consts:[["id","call-container"],["id","spinner",4,"ngIf"],["id","pre-join-container",4,"ngIf"],["id","vc-container",4,"ngIf"],["defaultToolbar",""],["defaultPanel",""],["defaultChatPanel",""],["defaultActivitiesPanel",""],["defaultParticipantsPanel",""],["defaultParticipantPanelItem",""],["defaultLayout",""],["defaultStream",""],["id","spinner"],[3,"diameter"],["id","pre-join-container"],[3,"onJoinButtonClicked"],[1,"error-icon"],["id","vc-container"],[3,"onSessionCreated","onNodeCrashed",4,"ngIf"],[3,"onSessionCreated","onNodeCrashed"],["toolbar",""],["panel",""],["layout",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["id","default-toolbar",3,"onLeaveButtonClicked","onCameraButtonClicked","onMicrophoneButtonClicked","onScreenshareButtonClicked","onFullscreenButtonClicked","onParticipantsPanelButtonClicked","onChatPanelButtonClicked","onActivitiesPanelButtonClicked","onStartRecordingClicked","onStopRecordingClicked"],["toolbarAdditionalButtons",""],["toolbarAdditionalPanelButtons",""],["id","default-panel"],["chatPanel",""],["participantsPanel",""],["backgroundEffectsPanel",""],["settingsPanel",""],["activitiesPanel",""],["additionalPanels",""],["id","default-background-effects-panel"],["id","default-settings-panel"],["id","default-chat-panel"],["id","default-activities-panel",3,"onStartRecordingClicked","onStopRecordingClicked","onDeleteRecordingClicked"],["id","default-participants-panel"],["participantPanelItem",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","default-participant-panel-item",3,"participant"],["participantPanelItemElements",""],["id","default-layout"],["stream",""],["id","default-stream",3,"stream"]],template:function(e,i){1&e&&(R(0,"div",0),ee(1,qte,5,4,"div",1),ee(2,Wte,2,1,"div",2),ee(3,$te,5,1,"div",1),ee(4,one,2,2,"div",3),L(),ee(5,cne,5,0,"ng-template",null,4,mn),ee(7,yne,13,0,"ng-template",null,5,mn),ee(9,Cne,1,0,"ng-template",null,6,mn),ee(11,Ene,1,0,"ng-template",null,7,mn),ee(13,wne,3,0,"ng-template",null,8,mn),ee(15,Tne,3,1,"ng-template",null,9,mn),ee(17,Ine,3,0,"ng-template",null,10,mn),ee(19,Rne,1,1,"ng-template",null,11,mn)),2&e&&(w(1),B("ngIf",i.loading),w(1),B("ngIf",i.showPrejoin&&i.participantReady&&!i.loading),w(1),B("ngIf",!i.loading&&i.error),w(1),B("ngIf",i.showVideoconference||!i.showPrejoin&&!i.loading&&!i.error))},dependencies:[nn,ds,gi,Dr,vP,by,AP,bP,yy,uP,_y,py,EP,my,Cy,DP,li],styles:["#call-container[_ngcontent-%COMP%], #vc-container[_ngcontent-%COMP%]{height:100%}#vc-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color)}#pre-join-container[_ngcontent-%COMP%]{height:inherit}.error-icon[_ngcontent-%COMP%]{color:var(--ov-warn-color)}#spinner[_ngcontent-%COMP%]{position:absolute;inset:40% 0 0;margin:auto;text-align:-webkit-center;text-align:-moz-center;color:var(--ov-panel-text-color)}#call-container[_ngcontent-%COMP%]{--ov-captions-height: 230px}"],data:{animation:[Qi("inOutAnimation",[Wn(":enter",[Ft({opacity:0}),Xn("300ms ease-out",Ft({opacity:1}))])])]}}),t})(),kie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingActivityValue=!0}set activitiesPanelRecordingActivity(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}set recordingList(e){this.recordingActivityValue=e,this.update(this.recordingActivityValue)}ngAfterViewInit(){this.update(this.recordingActivityValue)}ngOnDestroy(){this.clear()}clear(){this.recordingActivityValue=!0,this.update(!0)}update(e){this.libService.recordingActivity.getValue()!==e&&this.libService.recordingActivity.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","activitiesPanelRecordingActivity",""],["ov-activities-panel","recordingActivity",""]],inputs:{activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingList:"recordingList"}}),t})(),Nie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.muteValue=!0}set participantPanelItemMuteButton(e){this.muteValue=e,this.update(this.muteValue)}set muteButton(e){this.muteValue=e,this.update(this.muteValue)}ngAfterViewInit(){this.update(this.muteValue)}ngOnDestroy(){this.clear()}clear(){this.muteValue=!0,this.update(!0)}update(e){this.libService.participantItemMuteButton.getValue()!==e&&this.libService.participantItemMuteButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),t})(),Lie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingsValue=[]}set recordingActivityRecordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}set recordingsList(e){this.recordingsValue=e,this.update(this.recordingsValue)}ngAfterViewInit(){this.update(this.recordingsValue)}ngOnDestroy(){this.clear()}clear(){this.recordingsValue=[],this.update([])}update(e){this.libService.recordingsList.getValue()!==e&&this.libService.recordingsList.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","recordingActivityRecordingsList",""],["ov-recording-activity","recordingsList",""]],inputs:{recordingActivityRecordingsList:"recordingActivityRecordingsList",recordingsList:"recordingsList"}}),t})(),Fie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingErrorValue=null}set recordingActivityRecordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}set recordingError(e){this.recordingErrorValue=e,this.update(this.recordingErrorValue)}ngAfterViewInit(){this.update(this.recordingErrorValue)}ngOnDestroy(){this.clear()}clear(){this.recordingErrorValue=null,this.update(null)}update(e){this.libService.recordingError.getValue()!==e&&this.libService.recordingError.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","recordingActivityRecordingError",""],["ov-recording-activity","recordingError",""]],inputs:{recordingActivityRecordingError:"recordingActivityRecordingError",recordingError:"recordingError"}}),t})(),Bie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.screenshareValue=!0}set toolbarScreenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}set screenshareButton(e){this.screenshareValue=e,this.update(this.screenshareValue)}ngAfterViewInit(){this.update(this.screenshareValue)}ngOnDestroy(){this.clear()}clear(){this.screenshareValue=!0,this.update(!0)}update(e){this.libService.screenshareButton.getValue()!==e&&this.libService.screenshareButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),t})(),Vie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.recordingValue=!0}set toolbarRecordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}set recordingButton(e){this.recordingValue=e,this.update(this.recordingValue)}ngAfterViewInit(){this.update(this.recordingValue)}ngOnDestroy(){this.clear()}clear(){this.recordingValue=!0,this.update(!0)}update(e){this.libService.recordingButton.getValue()!==e&&this.libService.recordingButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarRecordingButton",""],["ov-toolbar","recordingButton",""]],inputs:{toolbarRecordingButton:"toolbarRecordingButton",recordingButton:"recordingButton"}}),t})(),jie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.fullscreenValue=!0}set toolbarFullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}set fullscreenButton(e){this.fullscreenValue=e,this.update(this.fullscreenValue)}ngAfterViewInit(){this.update(this.fullscreenValue)}ngOnDestroy(){this.clear()}clear(){this.fullscreenValue=!0,this.update(!0)}update(e){this.libService.fullscreenButton.getValue()!==e&&this.libService.fullscreenButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),t})(),Uie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.backgroundEffectsValue=!0}set toolbarBackgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}set backgroundEffectsButton(e){this.backgroundEffectsValue=e,this.update(this.backgroundEffectsValue)}ngAfterViewInit(){this.update(this.backgroundEffectsValue)}ngOnDestroy(){this.clear()}clear(){this.backgroundEffectsValue=!0,this.update(!0)}update(e){this.libService.backgroundEffectsButton.getValue()!==e&&this.libService.backgroundEffectsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarBackgroundEffectsButton",""],["ov-toolbar","backgroundEffectsButton",""]],inputs:{toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",backgroundEffectsButton:"backgroundEffectsButton"}}),t})(),Hie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.captionsButtonValue=!0}set toolbarCaptionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}set captionsButton(e){this.captionsButtonValue=e,this.update(this.captionsButtonValue)}ngAfterViewInit(){this.update(this.captionsButtonValue)}ngOnDestroy(){this.clear()}clear(){this.captionsButtonValue=!0,this.update(!0)}update(e){this.libService.captionsButton.getValue()!==e&&this.libService.captionsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarCaptionsButton",""],["ov-toolbar","captionsButton",""]],inputs:{toolbarCaptionsButton:"toolbarCaptionsButton",captionsButton:"captionsButton"}}),t})(),Gie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.settingsValue=!0}set toolbarSettingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}set settingsButton(e){this.settingsValue=e,this.update(this.settingsValue)}ngAfterViewInit(){this.update(this.settingsValue)}ngOnDestroy(){this.clear()}clear(){this.settingsValue=!0,this.update(!0)}update(e){this.libService.toolbarSettingsButton.getValue()!==e&&this.libService.toolbarSettingsButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarSettingsButton",""],["ov-toolbar","settingsButton",""]],inputs:{toolbarSettingsButton:"toolbarSettingsButton",settingsButton:"settingsButton"}}),t})(),zie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.leaveValue=!0}set toolbarLeaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}set leaveButton(e){this.leaveValue=e,this.update(this.leaveValue)}ngAfterViewInit(){this.update(this.leaveValue)}ngOnDestroy(){this.clear()}clear(){this.leaveValue=!0,this.update(!0)}update(e){this.libService.leaveButton.getValue()!==e&&this.libService.leaveButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),t})(),qie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.participantsPanelValue=!0}set toolbarParticipantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}set participantsPanelButton(e){this.participantsPanelValue=e,this.update(this.participantsPanelValue)}ngAfterViewInit(){this.update(this.participantsPanelValue)}ngOnDestroy(){this.clear()}clear(){this.participantsPanelValue=!0,this.update(!0)}update(e){this.libService.participantsPanelButton.getValue()!==e&&this.libService.participantsPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),t})(),Wie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarChatPanelValue=!0}set toolbarChatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}set chatPanelButton(e){this.toolbarChatPanelValue=e,this.update(this.toolbarChatPanelValue)}ngAfterViewInit(){this.update(this.toolbarChatPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarChatPanelValue=!0,this.update(!0)}update(e){this.libService.chatPanelButton.getValue()!==e&&this.libService.chatPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),t})(),$ie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.toolbarActivitiesPanelValue=!0}set toolbarActivitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}set activitiesPanelButton(e){this.toolbarActivitiesPanelValue=e,this.update(this.toolbarActivitiesPanelValue)}ngAfterViewInit(){this.update(this.toolbarActivitiesPanelValue)}ngOnDestroy(){this.clear()}clear(){this.toolbarActivitiesPanelValue=!0,this.update(!0)}update(e){this.libService.activitiesPanelButton.getValue()!==e&&this.libService.activitiesPanelButton.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarActivitiesPanelButton",""],["ov-toolbar","activitiesPanelButton",""]],inputs:{toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",activitiesPanelButton:"activitiesPanelButton"}}),t})(),Yie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displaySessionValue=!0}set toolbarDisplaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}set displaySessionName(e){this.displaySessionValue=e,this.update(this.displaySessionValue)}ngAfterViewInit(){this.update(this.displaySessionValue)}ngOnDestroy(){this.clear()}clear(){this.displaySessionValue=!0,this.update(!0)}update(e){this.libService.displaySessionName.getValue()!==e&&this.libService.displaySessionName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),t})(),Qie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i,this.displayLogoValue=!0}set toolbarDisplayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}set displayLogo(e){this.displayLogoValue=e,this.update(this.displayLogoValue)}ngAfterViewInit(){this.update(this.displayLogoValue)}ngOnDestroy(){this.clear()}clear(){this.displayLogoValue=!0,this.update(!0)}update(e){this.libService.displayLogo.getValue()!==e&&this.libService.displayLogo.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),t})(),Kie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set minimal(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.minimal.getValue()!==e&&this.libService.minimal.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),t})(),Zie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}ngOnInit(){this.update(this.participantName)}ngOnDestroy(){this.clear()}clear(){this.update("")}update(e){this.libService.participantName.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),t})(),Xie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set prejoin(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!0)}update(e){this.libService.prejoin.getValue()!==e&&this.libService.prejoin.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),t})(),Jie=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set videoMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.videoMuted.getValue()!==e&&this.libService.videoMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),t})(),eoe=(()=>{class t{constructor(e,i){this.elementRef=e,this.libService=i}set audioMuted(e){this.update(e)}ngOnDestroy(){this.clear()}clear(){this.update(!1)}update(e){this.libService.audioMuted.getValue()!==e&&this.libService.audioMuted.next(e)}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(jt))},t.\u0275dir=be({type:t,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),t})(),MP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})(),TP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({}),t})(),toe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({imports:[hM,GO,XZ,DK,bW,JY,bp,dq,jW,OK,tX,uZ,Nb,_Z,hX,cY,bI,CK,CY,v1,qK,LZ,YZ]}),t})(),noe=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[jt,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[es,vy,{provide:xl,useClass:vy},Tie,Dp,So,ac,gP,Ca,cr,sc,Ti,Ho,zo,ld],imports:[Yi,RG,Nz,Lz,X6.forRoot([]),toe,TP,MP,Yi,TP,MP]}),t})();function ioe(t,n){if(1&t){const e=mt();R(0,"ov-videoconference",1),Ie("onJoinButtonClicked",function(){return qe(e),We(re()._onJoinButtonClicked())})("onToolbarLeaveButtonClicked",function(){return qe(e),We(re()._onToolbarLeaveButtonClicked())})("onToolbarCameraButtonClicked",function(){return qe(e),We(re()._onToolbarCameraButtonClicked())})("onToolbarMicrophoneButtonClicked",function(){return qe(e),We(re()._onToolbarMicrophoneButtonClicked())})("onToolbarScreenshareButtonClicked",function(){return qe(e),We(re()._onToolbarScreenshareButtonClicked())})("onToolbarParticipantsPanelButtonClicked",function(){return qe(e),We(re()._onToolbarParticipantsPanelButtonClicked())})("onToolbarChatPanelButtonClicked",function(){return qe(e),We(re()._onToolbarChatPanelButtonClicked())})("onToolbarActivitiesPanelButtonClicked",function(){return qe(e),We(re()._onToolbarActivitiesPanelButtonClicked())})("onToolbarFullscreenButtonClicked",function(){return qe(e),We(re()._onToolbarFullscreenButtonClicked())})("onToolbarStartRecordingClicked",function(){return qe(e),We(re().onStartRecordingClicked("toolbar"))})("onToolbarStopRecordingClicked",function(){return qe(e),We(re().onStopRecordingClicked("toolbar"))})("onActivitiesPanelStartRecordingClicked",function(){return qe(e),We(re().onStartRecordingClicked("panel"))})("onActivitiesPanelStopRecordingClicked",function(){return qe(e),We(re().onStopRecordingClicked("panel"))})("onActivitiesPanelDownloadRecordingClicked",function(o){return qe(e),We(re()._onActivitiesDownloadRecordingClicked(o))})("onActivitiesPanelDeleteRecordingClicked",function(o){return qe(e),We(re()._onActivitiesDeleteRecordingClicked(o))})("onSessionCreated",function(o){return qe(e),We(re()._onSessionCreated(o))})("onParticipantCreated",function(o){return qe(e),We(re()._onParticipantCreated(o))}),L()}if(2&t){const e=re();B("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("prejoin",e._prejoin)("videoMuted",e._videoMuted)("audioMuted",e._audioMuted)("toolbarScreenshareButton",e._toolbarScreenshareButton)("toolbarRecordingButton",e._toolbarRecordingButton)("toolbarFullscreenButton",e._toolbarFullscreenButton)("toolbarBackgroundEffectsButton",e._toolbarBackgroundEffectsButton)("toolbarSettingsButton",e._toolbarSettingsButton)("toolbarLeaveButton",e._toolbarLeaveButton)("toolbarActivitiesPanelButton",e._toolbarActivitiesPanelButton)("toolbarChatPanelButton",e._toolbarChatPanelButton)("toolbarParticipantsPanelButton",e._toolbarParticipantsPanelButton)("toolbarDisplayLogo",e._toolbarDisplayLogo)("toolbarDisplaySessionName",e._toolbarDisplaySessionName)("toolbarCaptionsButton",e._toolbarCaptionsButton)("streamDisplayParticipantName",e._streamDisplayParticipantName)("streamDisplayAudioDetection",e._streamDisplayAudioDetection)("streamSettingsButton",e._streamSettingsButton)("participantPanelItemMuteButton",e._participantPanelItemMuteButton)("activitiesPanelRecordingActivity",e._activitiesPanelRecordingActivity)("recordingActivityRecordingsList",e._recordingActivityRecordingsList)("recordingActivityRecordingError",e._recordingActivityRecordingError)}}let ooe=(()=>{class t{constructor(e,i){this.host=e,this.openviduService=i,this._minimal=!1,this._prejoin=!0,this._videoMuted=!1,this._audioMuted=!1,this._toolbarScreenshareButton=!0,this._toolbarRecordingButton=!0,this._toolbarFullscreenButton=!0,this._toolbarBackgroundEffectsButton=!0,this._toolbarSettingsButton=!0,this._toolbarLeaveButton=!0,this._toolbarChatPanelButton=!0,this._toolbarActivitiesPanelButton=!0,this._toolbarParticipantsPanelButton=!0,this._toolbarDisplayLogo=!0,this._toolbarDisplaySessionName=!0,this._toolbarCaptionsButton=!0,this._streamDisplayParticipantName=!0,this._streamDisplayAudioDetection=!0,this._streamSettingsButton=!0,this._participantPanelItemMuteButton=!0,this._recordingActivityRecordingError=null,this._activitiesPanelRecordingActivity=!0,this._recordingActivityRecordingsList=[],this.onJoinButtonClicked=new xe,this.onToolbarLeaveButtonClicked=new xe,this.onToolbarCameraButtonClicked=new xe,this.onToolbarMicrophoneButtonClicked=new xe,this.onToolbarScreenshareButtonClicked=new xe,this.onToolbarFullscreenButtonClicked=new xe,this.onToolbarParticipantsPanelButtonClicked=new xe,this.onToolbarChatPanelButtonClicked=new xe,this.onToolbarActivitiesPanelButtonClicked=new xe,this.onToolbarStartRecordingClicked=new xe,this.onToolbarStopRecordingClicked=new xe,this.onActivitiesPanelStartRecordingClicked=new xe,this.onActivitiesPanelStopRecordingClicked=new xe,this.onActivitiesPanelDownloadRecordingClicked=new xe,this.onActivitiesPanelDeleteRecordingClicked=new xe,this.onSessionCreated=new xe,this.onParticipantCreated=new xe,this.success=!1,this.host.nativeElement.disconnect=this.disconnect.bind(this)}set minimal(e){this._minimal=this.castToBoolean(e)}set participantName(e){this._participantName=e}set prejoin(e){this._prejoin=this.castToBoolean(e)}set videoMuted(e){this._videoMuted=this.castToBoolean(e)}set audioMuted(e){this._audioMuted=this.castToBoolean(e)}set toolbarScreenshareButton(e){this._toolbarScreenshareButton=this.castToBoolean(e)}set toolbarRecordingButton(e){this._toolbarRecordingButton=this.castToBoolean(e)}set toolbarFullscreenButton(e){this._toolbarFullscreenButton=this.castToBoolean(e)}set toolbarBackgroundEffectsButton(e){this._toolbarBackgroundEffectsButton=this.castToBoolean(e)}set toolbarSettingsButton(e){this._toolbarSettingsButton=this.castToBoolean(e)}set toolbarLeaveButton(e){this._toolbarLeaveButton=this.castToBoolean(e)}set toolbarChatPanelButton(e){this._toolbarChatPanelButton=this.castToBoolean(e)}set toolbarActivitiesPanelButton(e){this._toolbarActivitiesPanelButton=this.castToBoolean(e)}set toolbarParticipantsPanelButton(e){this._toolbarParticipantsPanelButton=this.castToBoolean(e)}set toolbarDisplayLogo(e){this._toolbarDisplayLogo=this.castToBoolean(e)}set toolbarDisplaySessionName(e){this._toolbarDisplaySessionName=this.castToBoolean(e)}set toolbarCaptionsButton(e){this._toolbarCaptionsButton=this.castToBoolean(e)}set streamDisplayParticipantName(e){this._streamDisplayParticipantName=this.castToBoolean(e)}set streamDisplayAudioDetection(e){this._streamDisplayAudioDetection=this.castToBoolean(e)}set streamSettingsButton(e){this._streamSettingsButton=this.castToBoolean(e)}set participantPanelItemMuteButton(e){this._participantPanelItemMuteButton=this.castToBoolean(e)}set recordingActivityRecordingError(e){this._recordingActivityRecordingError=e}set activitiesPanelRecordingActivity(e){this._activitiesPanelRecordingActivity=this.castToBoolean(e)}set recordingActivityRecordingsList(e){this._recordingActivityRecordingsList=e}ngOnInit(){}set tokens(e){var i,o;console.debug("Webcomponent tokens: ",e);try{this._tokens=this.castToJson(e),this.success=!(null===(i=this._tokens)||void 0===i||!i.webcam||null===(o=this._tokens)||void 0===o||!o.screen)}catch(r){"string"==typeof e&&""!==e?(console.debug("Sigle token received."),this._tokens={webcam:e},this.success=!0):(console.error(r),console.error("Parameters received are incorrect: ",e),console.error("Session cannot start"))}}_onJoinButtonClicked(){this.onJoinButtonClicked.emit()}_onToolbarLeaveButtonClicked(){this.success=!1,this.onToolbarLeaveButtonClicked.emit()}_onToolbarCameraButtonClicked(){this.onToolbarCameraButtonClicked.emit()}_onToolbarMicrophoneButtonClicked(){this.onToolbarMicrophoneButtonClicked.emit()}_onToolbarScreenshareButtonClicked(){this.onToolbarScreenshareButtonClicked.emit()}_onToolbarParticipantsPanelButtonClicked(){this.onToolbarParticipantsPanelButtonClicked.emit()}_onToolbarChatPanelButtonClicked(){this.onToolbarChatPanelButtonClicked.emit()}_onToolbarActivitiesPanelButtonClicked(){this.onToolbarActivitiesPanelButtonClicked.emit()}_onToolbarFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}onStartRecordingClicked(e){"toolbar"===e?this.onToolbarStartRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStartRecordingClicked.emit()}onStopRecordingClicked(e){"toolbar"===e?this.onToolbarStopRecordingClicked.emit():"panel"===e&&this.onActivitiesPanelStopRecordingClicked.emit()}_onActivitiesDownloadRecordingClicked(e){this.onActivitiesPanelDownloadRecordingClicked.emit(e)}_onActivitiesDeleteRecordingClicked(e){this.onActivitiesPanelDeleteRecordingClicked.emit(e)}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onParticipantCreated(e){this.onParticipantCreated.emit(e)}disconnect(){this.openviduService.disconnect()}castToBoolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"!==e&&"false"!==e)throw new Error("Parameter has an incorrect string value.");return"true"===e}throw new Error("Parameter has not a valid type. The parameters must to be string or boolean.")}castToJson(e){if("string"!=typeof e){if("object"==typeof e)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or TokenModel {webcam:string, screen: string}.")}try{return JSON.parse(e)}catch(i){throw"Unexpected JSON"+i}}}return t.\u0275fac=function(e){return new(e||t)(h(Ue),h(zo))},t.\u0275cmp=it({type:t,selectors:[["ng-component"]],inputs:{minimal:"minimal",participantName:"participantName",prejoin:"prejoin",videoMuted:"videoMuted",audioMuted:"audioMuted",toolbarScreenshareButton:"toolbarScreenshareButton",toolbarRecordingButton:"toolbarRecordingButton",toolbarFullscreenButton:"toolbarFullscreenButton",toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",toolbarSettingsButton:"toolbarSettingsButton",toolbarLeaveButton:"toolbarLeaveButton",toolbarChatPanelButton:"toolbarChatPanelButton",toolbarActivitiesPanelButton:"toolbarActivitiesPanelButton",toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",toolbarDisplayLogo:"toolbarDisplayLogo",toolbarDisplaySessionName:"toolbarDisplaySessionName",toolbarCaptionsButton:"toolbarCaptionsButton",streamDisplayParticipantName:"streamDisplayParticipantName",streamDisplayAudioDetection:"streamDisplayAudioDetection",streamSettingsButton:"streamSettingsButton",participantPanelItemMuteButton:"participantPanelItemMuteButton",recordingActivityRecordingError:"recordingActivityRecordingError",activitiesPanelRecordingActivity:"activitiesPanelRecordingActivity",recordingActivityRecordingsList:"recordingActivityRecordingsList",tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onToolbarActivitiesPanelButtonClicked:"onToolbarActivitiesPanelButtonClicked",onToolbarStartRecordingClicked:"onToolbarStartRecordingClicked",onToolbarStopRecordingClicked:"onToolbarStopRecordingClicked",onActivitiesPanelStartRecordingClicked:"onActivitiesPanelStartRecordingClicked",onActivitiesPanelStopRecordingClicked:"onActivitiesPanelStopRecordingClicked",onActivitiesPanelDownloadRecordingClicked:"onActivitiesPanelDownloadRecordingClicked",onActivitiesPanelDeleteRecordingClicked:"onActivitiesPanelDeleteRecordingClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated"},decls:1,vars:1,consts:[[3,"participantName","tokens","minimal","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onSessionCreated","onParticipantCreated",4,"ngIf"],[3,"participantName","tokens","minimal","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarRecordingButton","toolbarFullscreenButton","toolbarBackgroundEffectsButton","toolbarSettingsButton","toolbarLeaveButton","toolbarActivitiesPanelButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","toolbarCaptionsButton","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","activitiesPanelRecordingActivity","recordingActivityRecordingsList","recordingActivityRecordingError","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarActivitiesPanelButtonClicked","onToolbarFullscreenButtonClicked","onToolbarStartRecordingClicked","onToolbarStopRecordingClicked","onActivitiesPanelStartRecordingClicked","onActivitiesPanelStopRecordingClicked","onActivitiesPanelDownloadRecordingClicked","onActivitiesPanelDeleteRecordingClicked","onSessionCreated","onParticipantCreated"]],template:function(e,i){1&e&&ee(0,ioe,1,25,"ov-videoconference",0),2&e&&B("ngIf",i.success)},dependencies:[nn,Dy,Kie,Xie,Jie,eoe,Bie,jie,Uie,Hie,zie,Vie,qie,Wie,$ie,Yie,Qie,Gie,yP,Mie,CP,Nie,Zie,kie,Lie,Fie],encapsulation:2}),t})();const xP={production:!0};class roe extends ce{constructor(n=1/0,e=1/0,i=s_){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:s}=this;e||(i.push(n),!o&&i.push(r.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:o}=this,r=o.slice();for(let s=0;s<r.length&&!n.closed;s+=i?1:2)n.next(r[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,r=(o?1:2)*n;if(n<1/0&&r<i.length&&i.splice(0,i.length-r),!o){const s=e.now();let a=0;for(let l=1;l<i.length&&i[l]<=s;l+=2)a=l;a&&i.splice(0,a+1)}}}const Mp={schedule(t,n){const e=setTimeout(t,n);return()=>clearTimeout(e)},scheduleBeforeRender(t){if("undefined"==typeof window)return Mp.schedule(t,0);if(void 0===window.requestAnimationFrame)return Mp.schedule(t,16);const n=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(n)}};let My;function poe(t,n,e){let i=e;return function aoe(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&n.some((o,r)=>!("*"===o||!function coe(t,n){if(!My){const e=Element.prototype;My=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&My.call(t,n)}(t,o)||(i=r,0))),i}class moe{constructor(n,e){this.componentFactory=e.get(kr).resolveComponentFactory(n)}create(n){return new voe(this.componentFactory,n)}}class voe{constructor(n,e){this.componentFactory=n,this.injector=e,this.eventEmitters=new roe(1),this.events=this.eventEmitters.pipe(Li(i=>Vi(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(dt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Mp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(n){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){this.runInZone(()=>{null!==this.componentRef?function uoe(t,n){return t===n||t!=t&&n!=n}(e,this.getInputValue(n))&&(void 0!==e||!this.unchangedInputs.has(n))||(this.recordInputChange(n,e),this.unchangedInputs.delete(n),this.hasInputChanges=!0,this.componentRef.instance[n]=e,this.scheduleDetectChanges()):this.initialInputValues.set(n,e)})}initializeComponent(n){const e=En.create({providers:[],parent:this.injector}),i=function foe(t,n){const e=t.childNodes,i=n.map(()=>[]);let o=-1;n.some((r,s)=>"*"===r&&(o=s,!0));for(let r=0,s=e.length;r<s;++r){const a=e[r],l=poe(a,n,o);-1!==l&&i[l].push(a)}return i}(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.viewChangeDetectorRef=this.componentRef.injector.get(zt),this.implementsOnChanges=function loe(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(Gs).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:n})=>{this.initialInputValues.has(n)&&this.setInputValue(n,this.initialInputValues.get(n))}),this.initialInputValues.clear()}initializeOutputs(n){const e=this.componentFactory.outputs.map(({propName:i,templateName:o})=>n.instance[i].pipe($e(s=>({name:o,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(n){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,n.instance.ngOnChanges(e)}markViewForCheck(n){this.hasInputChanges&&(this.hasInputChanges=!1,n.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Mp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(n,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[n];if(i)return void(i.currentValue=e);const o=this.unchangedInputs.has(n),r=o?void 0:this.getInputValue(n);this.inputChanges[n]=new eC(r,e,o)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}}class _oe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let yoe=(()=>{class t{constructor(e){this.injector=e}ngDoBootstrap(){const e=function boe(t,n){const e=function hoe(t,n){return n.get(kr).resolveComponentFactory(t).inputs}(t,n.injector),i=n.strategyFactory||new moe(t,n.injector),o=function doe(t){const n={};return t.forEach(({propName:e,templateName:i})=>{n[function soe(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}(i)]=e}),n}(e);class r extends _oe{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(o[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return r.observedAttributes=Object.keys(o),e.forEach(({propName:s})=>{Object.defineProperty(r.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),r}(ooe,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return t.\u0275fac=function(e){return new(e||t)(ie(En))},t.\u0275mod=ut({type:t}),t.\u0275inj=ct({providers:[{provide:lv,useValue:"/"},Dy],imports:[Yi,bD,hM,noe.forRoot(xP)]}),t})();xP.production&&function j3(){vw=!1}(),rU().bootstrapModule(yoe).catch(t=>console.error(t))},9272:Fe=>{"use strict";Fe.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"]')},6410:Fe=>{"use strict";Fe.exports=[]},9469:Fe=>{"use strict";Fe.exports=JSON.parse('{"author":"OpenVidu","dependencies":{"freeice":"2.2.2","hark":"1.2.3","jsnlog":"2.30.0","mime":"3.0.0","platform":"1.3.6","semver":"7.3.7","uuid":"8.3.2","wolfy87-eventemitter":"5.2.9","events":"3.3.0","inherits":"2.0.4"},"description":"OpenVidu Browser","devDependencies":{"@types/node":"18.0.0","@types/platform":"1.3.4","browserify":"17.0.0","grunt":"1.5.3","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.2.2","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.3","grunt-ts":"6.0.0-beta.22","terser":"5.14.1","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.22.17","typescript":"4.5.4"},"license":"Apache-2.0","main":"lib/index.js","name":"openvidu-browser","repository":{"type":"git","url":"git://github.com/OpenVidu/openvidu"},"scripts":{"browserify":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js Main.ts -p [ tsify ] --exclude kurento-browser-extensions --debug -o ../static/js/openvidu-browser-$VERSION.js -v","browserify-prod":"VERSION=${VERSION:-dev}; mkdir -p static/js/ && cd src && ../node_modules/browserify/bin/cmd.js --debug Main.ts -p [ tsify ] --exclude kurento-browser-extensions | ../node_modules/terser/bin/terser --source-map content=inline --output ../static/js/openvidu-browser-$VERSION.min.js","build":"cd src/OpenVidu && ./../../node_modules/typescript/bin/tsc && cd ../.. && ./node_modules/typescript/bin/tsc --declaration src/index.ts --outDir ./lib --sourceMap --target es5 --lib dom,es5,es2015.promise,scripthost && rm -rf ./ts4.4 && mkdir -p ./ts4.4/lib && cp -r ./lib ./ts4.4 && find ./ts4.4/lib -type f ! -iname \'*.d.ts\' -delete && ./config/replace_for_ts44.sh","docs":"./generate-docs.sh"},"types":"lib/index.d.ts","typesVersions":{"<4.4":{"*":["ts4.4/*"]}},"version":"2.24.0"}')}},Fe=>{Fe(Fe.s=3749)}]);
|
|
"use strict";(self.webpackChunkopenvidu_webcomponent=self.webpackChunkopenvidu_webcomponent||[]).push([[429],{7435:(Ee,Pe,we)=>{we(609)},609:(Ee,Pe,we)=>{var De;void 0!==(De=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,w),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P<i.length;P++)i[P]._updateTaskCount(a.type,o)},h}();v.__symbol__=c;var X,T={name:"",onHasTask:function(h,a,o,i){return h.hasTask(o,i)},onScheduleTask:function(h,a,o,i){return h.scheduleTask(o,i)},onInvokeTask:function(h,a,o,i,P,z){return h.invokeTask(o,i,P,z)},onCancelTask:function(h,a,o,i){return h.cancelTask(o,i)}},d=function(){function h(a,o,i){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=a,this._parentDelegate=o,this._forkZS=i&&(i&&i.onFork?i:o._forkZS),this._forkDlgt=i&&(i.onFork?o:o._forkDlgt),this._forkCurrZone=i&&(i.onFork?this.zone:o._forkCurrZone),this._interceptZS=i&&(i.onIntercept?i:o._interceptZS),this._interceptDlgt=i&&(i.onIntercept?o:o._interceptDlgt),this._interceptCurrZone=i&&(i.onIntercept?this.zone:o._interceptCurrZone),this._invokeZS=i&&(i.onInvoke?i:o._invokeZS),this._invokeDlgt=i&&(i.onInvoke?o:o._invokeDlgt),this._invokeCurrZone=i&&(i.onInvoke?this.zone:o._invokeCurrZone),this._handleErrorZS=i&&(i.onHandleError?i:o._handleErrorZS),this._handleErrorDlgt=i&&(i.onHandleError?o:o._handleErrorDlgt),this._handleErrorCurrZone=i&&(i.onHandleError?this.zone:o._handleErrorCurrZone),this._scheduleTaskZS=i&&(i.onScheduleTask?i:o._scheduleTaskZS),this._scheduleTaskDlgt=i&&(i.onScheduleTask?o:o._scheduleTaskDlgt),this._scheduleTaskCurrZone=i&&(i.onScheduleTask?this.zone:o._scheduleTaskCurrZone),this._invokeTaskZS=i&&(i.onInvokeTask?i:o._invokeTaskZS),this._invokeTaskDlgt=i&&(i.onInvokeTask?o:o._invokeTaskDlgt),this._invokeTaskCurrZone=i&&(i.onInvokeTask?this.zone:o._invokeTaskCurrZone),this._cancelTaskZS=i&&(i.onCancelTask?i:o._cancelTaskZS),this._cancelTaskDlgt=i&&(i.onCancelTask?o:o._cancelTaskDlgt),this._cancelTaskCurrZone=i&&(i.onCancelTask?this.zone:o._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var P=i&&i.onHasTask;(P||o&&o._hasTaskZS)&&(this._hasTaskZS=P?i:T,this._hasTaskDlgt=o,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=a,i.onScheduleTask||(this._scheduleTaskZS=T,this._scheduleTaskDlgt=o,this._scheduleTaskCurrZone=this.zone),i.onInvokeTask||(this._invokeTaskZS=T,this._invokeTaskDlgt=o,this._invokeTaskCurrZone=this.zone),i.onCancelTask||(this._cancelTaskZS=T,this._cancelTaskDlgt=o,this._cancelTaskCurrZone=this.zone))}return h.prototype.fork=function(a,o){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,a,o):new v(a,o)},h.prototype.intercept=function(a,o,i){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,a,o,i):o},h.prototype.invoke=function(a,o,i,P,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,a,o,i,P,z):o.apply(i,P)},h.prototype.handleError=function(a,o){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,a,o)},h.prototype.scheduleTask=function(a,o){var i=o;if(this._scheduleTaskZS)this._hasTaskZS&&i._zoneDelegates.push(this._hasTaskDlgtOwner),(i=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,a,o))||(i=o);else if(o.scheduleFn)o.scheduleFn(o);else{if(o.type!=ee)throw new Error("Task is missing scheduleFn.");g(o)}return i},h.prototype.invokeTask=function(a,o,i,P){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,a,o,i,P):o.callback.apply(i,P)},h.prototype.cancelTask=function(a,o){var i;if(this._cancelTaskZS)i=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,a,o);else{if(!o.cancelFn)throw Error("Task is not cancelable");i=o.cancelFn(o)}return i},h.prototype.hasTask=function(a,o){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,a,o)}catch(i){this.handleError(a,i)}},h.prototype._updateTaskCount=function(a,o){var i=this._taskCounts,P=i[a],z=i[a]=P+o;if(z<0)throw new Error("More tasks executed then were scheduled.");0!=P&&0!=z||this.hasTask(this.zone,{microTask:i.microTask>0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),O=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[O];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a<h.length;a++){var o=h[a];try{o.zone.runTask(o,null,null)}catch(i){w.onUnhandledError(i)}}}w.microtaskDrainDone(),M=!1}}var B={name:"NO ZONE"},j="notScheduled",V="scheduling",U="scheduled",k="running",$="canceling",I="unknown",ee="microTask",Y="macroTask",R="eventTask",F={},w={symbol:c,currentZoneFrame:function(){return A},onUnhandledError:H,microtaskDrainDone:H,scheduleMicroTask:g,showUncaughtError:function(){return!v[c("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:H,patchMethod:function(){return H},bindArguments:function(){return[]},patchThen:function(){return H},patchMacroTask:function(){return H},patchEventPrototype:function(){return H},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return H},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return H},wrapWithCurrentZone:function(){return H},filterProperties:function(){return[]},attachOriginToPatched:function(){return H},_redefineProperty:function(){return H},patchCallbacks:function(){return H}},A={parent:null,zone:new v(null,null)},ie=null,ne=0;function H(){}n("Zone","Zone"),e.Zone=v}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var Oe=Object.getOwnPropertyDescriptor,xe=Object.defineProperty,Be=Object.getPrototypeOf,Pr=Object.create,wr=Array.prototype.slice,Fe="addEventListener",Ge="removeEventListener",Ve=Zone.__symbol__(Fe),Ue=Zone.__symbol__(Ge),fe="true",le="false",Se=Zone.__symbol__("");function ze(e,r){return Zone.current.wrap(e,r)}function We(e,r,t,n,u){return Zone.current.scheduleMacroTask(e,r,t,n,u)}var G=Zone.__symbol__,Ze="undefined"!=typeof window,ye=Ze?window:void 0,J=Ze&&ye||"object"==typeof self&&self||global,Sr=[null];function Xe(e,r){for(var t=e.length-1;t>=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=Oe(e,r);if(!n&&t&&Oe(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n<r.length;n++)ar(e,"on"+r[n],t);else{var u=[];for(var c in e)"on"==c.substr(0,2)&&u.push(c);for(var l=0;l<u.length;l++)ar(e,u[l],t)}}var ue=G("originalInstance");function Re(e){var r=J[e];if(r){J[G(e)]=r,J[e]=function(){var u=Xe(arguments,e);switch(u.length){case 0:this[ue]=new r;break;case 1:this[ue]=new r(u[0]);break;case 2:this[ue]=new r(u[0],u[1]);break;case 3:this[ue]=new r(u[0],u[1],u[2]);break;case 4:this[ue]=new r(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},he(J[e],r);var n,t=new r(function(){});for(n in t)"XMLHttpRequest"===e&&"responseBlob"===n||function(u){"function"==typeof t[u]?J[e].prototype[u]=function(){return this[ue][u].apply(this[ue],arguments)}:xe(J[e].prototype,u,{set:function(c){"function"==typeof c?(this[ue][u]=ze(c,e+"."+u),he(this[ue][u],c)):this[ue][u]=c},get:function(){return this[ue][u]}})}(n);for(n in r)"prototype"!==n&&r.hasOwnProperty(n)&&(J[e][n]=r[n])}}function ve(e,r,t){for(var n=e;n&&!n.hasOwnProperty(r);)n=Be(n);!n&&e[r]&&(n=e);var u=G(r),c=null;if(n&&(!(c=n[u])||!n.hasOwnProperty(u))&&(c=n[u]=n[r],rr(n&&Oe(n,r)))){var v=t(c,u,r);n[r]=function(){return v(this,arguments)},he(n[r],c)}return c}function Cr(e,r,t){var n=null;function u(c){var l=c.data;return l.args[l.cbIdx]=function(){c.invoke.apply(this,arguments)},n.apply(l.target,l.args),c}n=ve(e,r,function(c){return function(l,v){var T=t(l,v);return T.cbIdx>=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function O(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var w=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,w,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x<C.length;)H(f,C[x++],C[x++],C[x++],C[x++]);if(0==C.length&&E==I){f[g]=0;var D=s;try{throw new Error("Uncaught (in promise): "+function c(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){D=Z}T&&(D.throwOriginal=!0),D.rejection=s,D.promise=f,D.zone=r.current,D.task=r.currentTask,v.push(D),t.scheduleMicroTask()}}}return f}var ie=l("rejectionHandledHandler");function ne(f){if(0===f[g]){try{var E=r[ie];E&&"function"==typeof E&&E.call(this,{rejection:f[m],promise:f})}catch(_){}f[g]=I;for(var s=0;s<v.length;s++)f===v[s].promise&&v.splice(s,1)}}function H(f,E,s,_,S){ne(f);var C=f[g],L=C?"function"==typeof _?_:M:"function"==typeof S?S:X;E.scheduleMicroTask("Promise.then",function(){try{var x=f[m],D=!!s&&B===s[B];D&&(s[j]=x,s[V]=C);var Z=E.run(L,void 0,D&&L!==X&&L!==M?[]:[x]);A(s,!0,Z)}catch(W){A(s,!1,W)}},s)}var a=function(){},o=function(){function f(E){var s=this;if(!(s instanceof f))throw new Error("Must be an instanceof Promise.");s[g]=k,s[m]=[];try{E&&E(Y(s,$),Y(s,I))}catch(_){A(s,!1,_)}}return f.toString=function(){return"function ZoneAwarePromise() { [native code] }"},f.resolve=function(E){return A(new this(null),$,E)},f.reject=function(E){return A(new this(null),I,E)},f.race=function(E){var s,_,S=new this(function(W,re){s=W,_=re});function C(W){s(W)}function L(W){_(W)}for(var x=0,D=E;x<D.length;x++){var Z=D[x];N(Z)||(Z=this.resolve(Z)),Z.then(C,L)}return S},f.all=function(E){return f.allWithCallback(E)},f.allSettled=function(E){return(this&&this.prototype instanceof f?this:f).allWithCallback(E,{thenCallback:function(_){return{status:"fulfilled",value:_}},errorCallback:function(_){return{status:"rejected",reason:_}}})},f.allWithCallback=function(E,s){for(var _,S,C=new this(function(K,Q){_=K,S=Q}),L=2,x=0,D=[],Z=function(K){N(K)||(K=W.resolve(K));var Q=x;try{K.then(function(oe){D[Q]=s?s.thenCallback(oe):oe,0==--L&&_(D)},function(oe){s?(D[Q]=s.errorCallback(oe),0==--L&&_(D)):S(oe)})}catch(oe){S(oe)}L++,x++},W=this,re=0,ce=E;re<ce.length;re++)Z(ce[re]);return 0==(L-=2)&&_(D),C},Object.defineProperty(f.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,Symbol.species,{get:function(){return f},enumerable:!1,configurable:!0}),f.prototype.then=function(E,s){var _=this.constructor[Symbol.species];(!_||"function"!=typeof _)&&(_=this.constructor||f);var S=new _(a),C=r.current;return this[g]==k?this[m].push(C,S,E,s):H(this,C,S,E,s),S},f.prototype.catch=function(E){return this.then(null,E)},f.prototype.finally=function(E){var s=this.constructor[Symbol.species];(!s||"function"!=typeof s)&&(s=f);var _=new s(a);_[B]=B;var S=r.current;return this[g]==k?this[m].push(S,_,E,E):H(this,S,_,E,E),_},f}();o.resolve=o.resolve,o.reject=o.reject,o.race=o.race,o.all=o.all;var i=e[d]=e.Promise;e.Promise=o;var P=l("thenPatched");function z(f){var E=f.prototype,s=n(E,"then");if(!s||!1!==s.writable&&s.configurable){var _=E.then;E[p]=_,f.prototype.then=function(S,C){var L=this;return new o(function(D,Z){_.call(L,D,Z)}).then(S,C)},f[P]=!0}}return t.patchThen=z,i&&(z(i),ve(e,"fetch",function(f){return function se(f){return function(E,s){var _=f.apply(E,s);if(_ instanceof o)return _;var S=_.constructor;return S[P]||z(S),_}}(f)})),Promise[r.__symbol__("uncaughtPromiseErrors")]=v,o}),Zone.__load_patch("toString",function(e){var r=Function.prototype.toString,t=G("OriginalDelegate"),n=G("Promise"),u=G("Error"),c=function(){if("function"==typeof this){var d=this[t];if(d)return"function"==typeof d?r.call(d):Object.prototype.toString.call(d);if(this===Promise){var p=e[n];if(p)return r.call(p)}if(this===Error){var y=e[u];if(y)return r.call(y)}}return r.call(this)};c[t]=r,Function.prototype.toString=c;var l=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":l.call(this)}});var me=!1;if("undefined"!=typeof window)try{var Me=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(e){me=!1}var Nr={useG:!0},ae={},ur={},cr=new RegExp("^"+Se+"(\\w+)(true|false)$"),Ke=G("propagationStopped");function fr(e,r){var t=(r?r(e):e)+le,n=(r?r(e):e)+fe,u=Se+t,c=Se+n;ae[e]={},ae[e][le]=u,ae[e][fe]=c}function Lr(e,r,t){var n=t&&t.add||Fe,u=t&&t.rm||Ge,c=t&&t.listeners||"eventListeners",l=t&&t.rmAll||"removeAllListeners",v=G(n),T="."+n+":",d="prependListener",y=function(g,m,B){if(!g.isRemoved){var j=g.callback;"object"==typeof j&&j.handleEvent&&(g.callback=function(k){return j.handleEvent(k)},g.originalDelegate=j),g.invoke(g,m,[B]);var V=g.options;V&&"object"==typeof V&&V.once&&m[u].call(m,B.type,g.originalDelegate?g.originalDelegate:g.callback,V)}},b=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][le]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}},O=function(g){if(g=g||e.event){var m=this||g.target||e,B=m[ae[g.type][fe]];if(B)if(1===B.length)y(B[0],m,g);else for(var j=B.slice(),V=0;V<j.length&&(!g||!0!==g[Ke]);V++)y(j[V],m,g)}};function N(g,m){if(!g)return!1;var B=!0;m&&void 0!==m.useG&&(B=m.useG);var j=m&&m.vh,V=!0;m&&void 0!==m.chkDup&&(V=m.chkDup);var U=!1;m&&void 0!==m.rt&&(U=m.rt);for(var k=g;k&&!k.hasOwnProperty(n);)k=Be(k);if(!k&&g[n]&&(k=g),!k||k[v])return!1;var w,$=m&&m.eventNameToString,I={},ee=k[v]=k[n],Y=k[G(u)]=k[u],R=k[G(c)]=k[c],F=k[G(l)]=k[l];function A(s,_){return!me&&"object"==typeof s&&s?!!s.capture:me&&_?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}m&&m.prepend&&(w=k[G(m.prepend)]=k[m.prepend]);var o=B?function(s){if(!I.isExisting)return ee.call(I.target,I.eventName,I.capture?O:b,I.options)}:function(s){return ee.call(I.target,I.eventName,s.invoke,I.options)},i=B?function(s){if(!s.isRemoved){var _=ae[s.eventName],S=void 0;_&&(S=_[s.capture?fe:le]);var C=S&&s.target[S];if(C)for(var L=0;L<C.length;L++)if(C[L]===s){C.splice(L,1),s.isRemoved=!0,0===C.length&&(s.allRemoved=!0,s.target[S]=null);break}}if(s.allRemoved)return Y.call(s.target,s.eventName,s.capture?O:b,s.options)}:function(s){return Y.call(s.target,s.eventName,s.invoke,s.options)},z=m&&m.diff?m.diff:function(s,_){var S=typeof _;return"function"===S&&s.callback===_||"object"===S&&s.originalDelegate===_},se=Zone[G("UNPATCHED_EVENTS")],f=e[G("PASSIVE_EVENTS")],E=function(s,_,S,C,L,x){return void 0===L&&(L=!1),void 0===x&&(x=!1),function(){var D=this||e,Z=arguments[0];m&&m.transferEventName&&(Z=m.transferEventName(Z));var W=arguments[1];if(!W)return s.apply(this,arguments);if(Ne&&"uncaughtException"===Z)return s.apply(this,arguments);var re=!1;if("function"!=typeof W){if(!W.handleEvent)return s.apply(this,arguments);re=!0}if(!j||j(s,W,D,arguments)){var ce=me&&!!f&&-1!==f.indexOf(Z),te=A(arguments[2],ce);if(se)for(var K=0;K<se.length;K++)if(Z===se[K])return ce?s.call(D,Z,W,te):s.apply(this,arguments);var Q=!!te&&("boolean"==typeof te||te.capture),oe=!(!te||"object"!=typeof te)&&te.once,at=Zone.current,$e=ae[Z];$e||(fr(Z,$),$e=ae[Z]);var Tr=$e[Q?fe:le],ke=D[Tr],gr=!1;if(ke){if(gr=!0,V)for(K=0;K<ke.length;K++)if(z(ke[K],W))return}else ke=D[Tr]=[];var He,br=D.constructor.name,kr=ur[br];kr&&(He=kr[Z]),He||(He=br+_+($?$(Z):Z)),I.options=te,oe&&(I.options.once=!1),I.target=D,I.capture=Q,I.eventName=Z,I.isExisting=gr;var Ce=B?Nr:void 0;Ce&&(Ce.taskData=I);var _e=at.scheduleEventTask(He,W,Ce,S,C);if(I.target=null,Ce&&(Ce.taskData=null),oe&&(te.once=!0),!me&&"boolean"==typeof _e.options||(_e.options=te),_e.target=D,_e.capture=Q,_e.eventName=Z,re&&(_e.originalDelegate=W),x?ke.unshift(_e):ke.push(_e),L)return D}}};return k[n]=E(ee,T,o,i,U),w&&(k[d]=E(w,".prependListener:",function(s){return w.call(I.target,I.eventName,s.invoke,I.options)},i,U,!0)),k[u]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));var S=arguments[2],C=!!S&&("boolean"==typeof S||S.capture),L=arguments[1];if(!L)return Y.apply(this,arguments);if(!j||j(Y,L,s,arguments)){var D,x=ae[_];x&&(D=x[C?fe:le]);var Z=D&&s[D];if(Z)for(var W=0;W<Z.length;W++){var re=Z[W];if(z(re,L))return Z.splice(W,1),re.isRemoved=!0,0===Z.length&&(re.allRemoved=!0,s[D]=null,"string"==typeof _)&&(s[Se+"ON_PROPERTY"+_]=null),re.zone.cancelTask(re),U?s:void 0}return Y.apply(this,arguments)}},k[c]=function(){var s=this||e,_=arguments[0];m&&m.transferEventName&&(_=m.transferEventName(_));for(var S=[],C=lr(s,$?$(_):_),L=0;L<C.length;L++){var x=C[L];S.push(x.originalDelegate?x.originalDelegate:x.callback)}return S},k[l]=function(){var s=this||e,_=arguments[0];if(_){m&&m.transferEventName&&(_=m.transferEventName(_));var Z=ae[_];if(Z){var ce=s[Z[le]],te=s[Z[fe]];if(ce)for(var K=ce.slice(),C=0;C<K.length;C++)this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options);if(te)for(K=te.slice(),C=0;C<K.length;C++){var Q;this[u].call(this,_,(Q=K[C]).originalDelegate?Q.originalDelegate:Q.callback,Q.options)}}}else{var S=Object.keys(s);for(C=0;C<S.length;C++){var x=cr.exec(S[C]),D=x&&x[1];D&&"removeListener"!==D&&this[l].call(this,D)}this[l].call(this,"removeListener")}if(U)return this},he(k[n],ee),he(k[u],Y),F&&he(k[l],F),R&&he(k[c],R),!0}for(var M=[],X=0;X<r.length;X++)M[X]=N(r[X],t);return M}function lr(e,r){if(!r){var t=[];for(var n in e){var u=cr.exec(n),c=u&&u[1];if(c&&(!r||c===r)){var l=e[n];if(l)for(var v=0;v<l.length;v++)t.push(l[v])}}return t}var T=ae[r];T||(fr(r),T=ae[r]);var d=e[T[le]],p=e[T[fe]];return d?p?d.concat(p):d.slice():p?p.slice():[]}function Mr(e,r){var t=e.Event;t&&t.prototype&&r.patchMethod(t.prototype,"stopImmediatePropagation",function(n){return function(u,c){u[Ke]=!0,n&&n.apply(u,c)}})}function Ir(e,r,t,n,u){var c=Zone.__symbol__(n);if(!r[c]){var l=r[c]=r[n];r[n]=function(v,T,d){return T&&T.prototype&&u.forEach(function(p){var y=t+"."+n+"::"+p,b=T.prototype;if(b.hasOwnProperty(p)){var O=e.ObjectGetOwnPropertyDescriptor(b,p);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,y),e._redefineProperty(T.prototype,p,O)):b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}else b[p]&&(b[p]=e.wrapWithCurrentZone(b[p],y))}),l.call(r,v,T,d)},e.attachOriginToPatched(r[n],l)}}var Ie,Ae,pr,Er,pe,e,r,Je=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],xr=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],vr=["load"],hr=["blur","error","focus","load","resize","scroll","messageerror"],Ur=["bounce","finish","start"],dr=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Te=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],zr=["close","error","open","message"],Wr=["error","message"],ge=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Je,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function _r(e,r,t){if(!t||0===t.length)return r;var n=t.filter(function(c){return c.target===e});if(!n||0===n.length)return r;var u=n[0].ignoreProperties;return r.filter(function(c){return-1===u.indexOf(c)})}function q(e,r,t,n){e&&ir(e,_r(e,r,t),n)}function Xr(e,r){if((!Ne||nr)&&!Zone[e.symbol("patchEvents")]){var t="undefined"!=typeof WebSocket,n=r.__Zone_ignore_on_properties;if(qe){var u=window,c=function Dr(){try{var e=ye.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(r){}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];q(u,ge.concat(["messageerror"]),n&&n.concat(c),Be(u)),q(Document.prototype,ge,n),void 0!==u.SVGElement&&q(u.SVGElement.prototype,ge,n),q(Element.prototype,ge,n),q(HTMLElement.prototype,ge,n),q(HTMLMediaElement.prototype,xr,n),q(HTMLFrameSetElement.prototype,Je.concat(hr),n),q(HTMLBodyElement.prototype,Je.concat(hr),n),q(HTMLFrameElement.prototype,vr,n),q(HTMLIFrameElement.prototype,vr,n);var l=u.HTMLMarqueeElement;l&&q(l.prototype,Ur,n);var v=u.Worker;v&&q(v.prototype,Wr,n)}var T=r.XMLHttpRequest;T&&q(T.prototype,dr,n);var d=r.XMLHttpRequestEventTarget;d&&q(d&&d.prototype,dr,n),"undefined"!=typeof IDBIndex&&(q(IDBIndex.prototype,Te,n),q(IDBRequest.prototype,Te,n),q(IDBOpenDBRequest.prototype,Te,n),q(IDBDatabase.prototype,Te,n),q(IDBTransaction.prototype,Te,n),q(IDBCursor.prototype,Te,n)),t&&q(WebSocket.prototype,zr,n)}}function Yr(e,r,t){var n=t.configurable;return mr(e,r,t=Qe(e,r,t),n)}function yr(e,r){return e&&e[pe]&&e[pe][r]}function Qe(e,r,t){return Object.isFrozen(t)||(t.configurable=!0),t.configurable||(!e[pe]&&!Object.isFrozen(e)&&Ae(e,pe,{writable:!0,value:{}}),e[pe]&&(e[pe][r]=!0)),t}function mr(e,r,t,n){try{return Ae(e,r,t)}catch(l){if(!t.configurable)throw l;void 0===n?delete t.configurable:t.configurable=n;try{return Ae(e,r,t)}catch(v){var u=!1;if(("createdCallback"===r||"attachedCallback"===r||"detachedCallback"===r||"attributeChangedCallback"===r)&&(u=!0),!u)throw v;var c=null;try{c=JSON.stringify(t)}catch(T){c=t.toString()}console.log("Attempting to configure '"+r+"' with descriptor '"+c+"' on object '"+e+"' and got error, giving up: "+v)}}}function Qr(e,r){var t=e.getGlobalObjects();if((!t.isNode||t.isMix)&&!function $r(e,r){var t=e.getGlobalObjects();if((t.isBrowser||t.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var c=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(c&&!c.configurable)return!1;if(c){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var v=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",c),v}}var T=r.XMLHttpRequest;if(!T)return!1;var d="onreadystatechange",p=T.prototype,y=e.ObjectGetOwnPropertyDescriptor(p,d);if(y)return e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return!0}}),v=!!(b=new T).onreadystatechange,e.ObjectDefineProperty(p,d,y||{}),v;var O=e.symbol("fake");e.ObjectDefineProperty(p,d,{enumerable:!0,configurable:!0,get:function(){return this[O]},set:function(g){this[O]=g}});var b,N=function(){};return(b=new T).onreadystatechange=N,v=b[O]===N,b.onreadystatechange=null,v}(e,r)){var c="undefined"!=typeof WebSocket;(function et(e){for(var r=e.getGlobalObjects().eventNames,t=e.symbol("unbound"),n=function(c){var l=r[c],v="on"+l;self.addEventListener(l,function(T){var p,y,d=T.target;for(y=d?d.constructor.name+"."+v:"unknown."+v;d;)d[v]&&!d[v][t]&&((p=e.wrapWithCurrentZone(d[v],y))[t]=d[v],d[v]=p),d=d.parentElement},!0)},u=0;u<r.length;u++)n(u)})(e),e.patchClass("XMLHttpRequest"),c&&function Jr(e,r){var t=e.getGlobalObjects(),n=t.ADD_EVENT_LISTENER_STR,u=t.REMOVE_EVENT_LISTENER_STR,c=r.WebSocket;r.EventTarget||e.patchEventTarget(r,[c.prototype]),r.WebSocket=function(T,d){var y,b,p=arguments.length>1?new c(T,d):new c(T),O=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return O&&!1===O.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=Oe,t.ObjectCreate=Pr,t.ArraySlice=wr,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,function qr(){Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}()}),n.__load_patch("registerElement",function(u,c,l){!function rt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function Kr(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],O=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");O?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U<n.length;U++){var ee=T+((k=n[U])+v),Y=T+(k+l);c[k]={},c[k][v]=ee,c[k][l]=Y}for(U=0;U<N.length;U++)for(var R=N[U],F=u[R]={},w=0;w<n.length;w++){var k;F[k=n[w]]=R+".addEventListener:"+k}var ie=[];for(U=0;U<b.length;U++){var ne=e[b[U]];ie.push(ne&&ne.prototype)}return r.patchEventTarget(e,ie,{vh:function(H,h,a,o){if(!M&&g)if(X)try{if((i=h.toString())===B||i==j)return H.apply(a,o),!1}catch(P){return H.apply(a,o),!1}else{var i;if((i=h.toString())===B||i==j)return H.apply(a,o),!1}else if(X)try{h.toString()}catch(P){return H.apply(a,o),!1}return!0},transferEventName:function(H){return V[H]||H}}),Zone[r.symbol("patchEventTarget")]=!!e[y],!0})(u,l),Qr(l,u)})};var je=G("zoneTask");function be(e,r,t,n){var u=null,c=null;t+=n;var l={};function v(d){var p=d.data;return p.args[0]=function(){return d.invoke.apply(this,arguments)},p.handleId=u.apply(e,p.args),d}function T(d){return c.call(e,d.data.handleId)}u=ve(e,r+=n,function(d){return function(p,y){if("function"==typeof y[0]){var b={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?y[1]||0:void 0,args:y},O=y[0];y[0]=function(){try{return O.apply(this,arguments)}finally{b.isPeriodic||("number"==typeof b.handleId?delete l[b.handleId]:b.handleId&&(b.handleId[je]=null))}};var N=We(r,y[0],b,v,T);if(!N)return N;var M=N.data.handleId;return"number"==typeof M?l[M]=N:M&&(M[je]=N),M&&M.ref&&M.unref&&"function"==typeof M.ref&&"function"==typeof M.unref&&(N.ref=M.ref.bind(M),N.unref=M.unref.bind(M)),"number"==typeof M||M?M:N}return d.apply(e,y)}}),c=ve(e,t,function(d){return function(p,y){var O,b=y[0];"number"==typeof b?O=l[b]:(O=b&&b[je])||(O=b),O&&"string"==typeof O.type?"notScheduled"!==O.state&&(O.cancelFn&&O.data.isPeriodic||0===O.runCount)&&("number"==typeof b?delete l[b]:b&&(b[je]=null),O.zone.cancelTask(O)):d.apply(e,y)}})}Zone.__load_patch("legacy",function(e){var r=e[Zone.__symbol__("legacyPatch")];r&&r()}),Zone.__load_patch("queueMicrotask",function(e,r,t){t.patchMethod(e,"queueMicrotask",function(n){return function(u,c){r.current.scheduleMicroTask("queueMicrotask",c[0])}})}),Zone.__load_patch("timers",function(e){var r="set",t="clear";be(e,r,t,"Timeout"),be(e,r,t,"Interval"),be(e,r,t,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){be(e,"request","cancel","AnimationFrame"),be(e,"mozRequest","mozCancel","AnimationFrame"),be(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,r){for(var t=["alert","prompt","confirm"],n=0;n<t.length;n++)ve(e,t[n],function(c,l,v){return function(T,d){return r.current.run(c,e,d,v)}})}),Zone.__load_patch("EventTarget",function(e,r,t){(function ot(e,r){r.patchEventPrototype(e,r)})(e,t),function nt(e,r){if(!Zone[r.symbol("patchEventTarget")]){for(var t=r.getGlobalObjects(),n=t.eventNames,u=t.zoneSymbolEventNames,c=t.TRUE_STR,l=t.FALSE_STR,v=t.ZONE_SYMBOL_PREFIX,T=0;T<n.length;T++){var d=n[T],b=v+(d+l),O=v+(d+c);u[d]={},u[d][l]=b,u[d][c]=O}var N=e.EventTarget;if(N&&N.prototype)return r.patchEventTarget(e,[N&&N.prototype]),!0}}(e,t);var n=e.XMLHttpRequestEventTarget;n&&n.prototype&&t.patchEventTarget(e,[n.prototype])}),Zone.__load_patch("MutationObserver",function(e,r,t){Re("MutationObserver"),Re("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,r,t){Re("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,r,t){Re("FileReader")}),Zone.__load_patch("on_property",function(e,r,t){Xr(t,e)}),Zone.__load_patch("customElements",function(e,r,t){!function tt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,t)}),Zone.__load_patch("XHR",function(e,r){!function T(d){var p=d.XMLHttpRequest;if(p){var y=p.prototype,O=y[Ve],N=y[Ue];if(!O){var M=d.XMLHttpRequestEventTarget;if(M){var X=M.prototype;O=X[Ve],N=X[Ue]}}var g="readystatechange",m="scheduled",U=ve(y,"open",function(){return function(R,F){return R[n]=0==F[2],R[l]=F[1],U.apply(R,F)}}),$=G("fetchTaskAborting"),I=G("fetchTaskScheduling"),ee=ve(y,"send",function(){return function(R,F){if(!0===r.current[I]||R[n])return ee.apply(R,F);var w={target:R,url:R[l],isPeriodic:!1,args:F,aborted:!1},A=We("XMLHttpRequest.send",j,w,B,V);R&&!0===R[v]&&!w.aborted&&A.state===m&&A.invoke()}}),Y=ve(y,"abort",function(){return function(R,F){var w=function b(R){return R[t]}(R);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===r.current[$])return Y.apply(R,F)}})}function B(R){var F=R.data,w=F.target;w[c]=!1,w[v]=!1;var A=w[u];O||(O=w[Ve],N=w[Ue]),A&&N.call(w,g,A);var ie=w[u]=function(){if(w.readyState===w.DONE)if(!F.aborted&&w[c]&&R.state===m){var H=w[r.__symbol__("loadfalse")];if(0!==w.status&&H&&H.length>0){var h=R.invoke;R.invoke=function(){for(var a=w[r.__symbol__("loadfalse")],o=0;o<a.length;o++)a[o]===R&&a.splice(o,1);!F.aborted&&R.state===m&&h.call(R)},H.push(R)}else R.invoke()}else!F.aborted&&!1===w[c]&&(w[v]=!0)};return O.call(w,g,ie),w[t]||(w[t]=R),ee.apply(w,F.args),w[c]=!0,R}function j(){}function V(R){var F=R.data;return F.aborted=!0,Y.apply(F.target,F.args)}}(e);var t=G("xhrTask"),n=G("xhrSync"),u=G("xhrListener"),c=G("xhrScheduled"),l=G("xhrURL"),v=G("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function Rr(e,r){for(var t=e.constructor.name,n=function(c){var d,p,l=r[c],v=e[l];if(v){if(!rr(Oe(e,l)))return"continue";e[l]=(p=function(){return d.apply(this,Xe(arguments,t+"."+l))},he(p,d=v),p)}},u=0;u<r.length;u++)n(u)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,r){function t(n){return function(u){lr(e,n).forEach(function(l){var v=e.PromiseRejectionEvent;if(v){var T=new v(n,{promise:u.promise,reason:u.rejection});l.invoke(T)}})}}e.PromiseRejectionEvent&&(r[G("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),r[G("rejectionHandledHandler")]=t("rejectionhandled"))})}.call(Pe,we,Pe,Ee))&&(Ee.exports=De)}},Ee=>{Ee(Ee.s=7435)}]); |