3 lines
1.2 MiB
3 lines
1.2 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:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.Connection=void 0;var E=H(8770),q=H(1829),V=H(4131),y=q.OpenViduLogger.getInstance(),S=function(){function A(w,x){this.session=w,this.disposed=!1;var T="'Connection' created ";x.role?(this.localOptions=x,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,T+="(local)"):(this.remoteOptions=x,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),T+="(remote) with 'connectionId' ["+this.remoteOptions.id+"]"),y.info(T)}return A.prototype.sendIceCandidate=function(w){var x=this;y.debug((this.stream.outboundStreamOpts?"Local":"Remote")+"candidate for"+this.connectionId,w),this.session.openvidu.sendRequest("onIceCandidate",{endpointName:this.connectionId,candidate:w.candidate,sdpMid:w.sdpMid,sdpMLineIndex:w.sdpMLineIndex},function(T,b){T&&(y.error("Error sending ICE candidate: "+JSON.stringify(T)),x.session.emitEvent("exception",[new V.ExceptionEvent(x.session,V.ExceptionEventName.ICE_CANDIDATE_ERROR,x.session,"There was an unexpected error on the server-side processing an ICE candidate generated and sent by the client-side",T)]))})},A.prototype.initRemoteStreams=function(w){var x=this;w.forEach(function(T){var b={id:T.id,createdAt:T.createdAt,connection:x,hasAudio:T.hasAudio,hasVideo:T.hasVideo,audioActive:T.audioActive,videoActive:T.videoActive,typeOfVideo:T.typeOfVideo,frameRate:T.frameRate,videoDimensions:T.videoDimensions?JSON.parse(T.videoDimensions):void 0,filter:T.filter?T.filter:void 0},U=new E.Stream(x.session,b);x.addStream(U)}),y.info("Remote 'Connection' with 'connectionId' ["+this.connectionId+"] is now configured for receiving Streams with options: ",this.stream.inboundStreamOpts)},A.prototype.addStream=function(w){w.connection=this,this.stream=w},A.prototype.removeStream=function(w){delete this.stream},A.prototype.dispose=function(){this.stream&&delete this.stream,this.disposed=!0},A}();Z.Connection=S},2768:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.EventDispatcher=void 0;var E=H(2937),V=H(1829).OpenViduLogger.getInstance(),y=function(){function S(){this.userHandlerArrowHandler=new WeakMap,this.ee=new E}return S.prototype.onAux=function(A,w,x){var T=function(b){b?V.info(w,b):V.info(w),x(b)};return this.userHandlerArrowHandler.set(x,T),this.ee.on(A,T),this},S.prototype.onceAux=function(A,w,x){var T=this,b=function(U){U?V.info(w,U):V.info(w),x(U),T.userHandlerArrowHandler.delete(x)};return this.userHandlerArrowHandler.set(x,b),this.ee.once(A,b),this},S.prototype.offAux=function(A,w){if(w){var x=this.userHandlerArrowHandler.get(w);x&&this.ee.off(A,x),this.userHandlerArrowHandler.delete(w)}else this.ee.removeAllListeners(A);return this},S}();Z.EventDispatcher=y},5481:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.Filter=void 0;var E=H(9383),q=H(9303),y=H(1829).OpenViduLogger.getInstance(),S=function(){function A(w,x){this.handlers=new Map,this.type=w,this.options=x}return A.prototype.execMethod=function(w,x){var T=this;return new Promise(function(b,U){var Q;y.info("Executing filter method to stream "+T.stream.streamId);var N,L=function(M){y.info("Filter method successfully executed on Stream "+T.stream.streamId);var v=Object.assign({},T.stream.filter);return T.stream.filter.lastExecMethod={method:w,params:N},M&&(T.stream.session.emitEvent("streamPropertyChanged",[new E.StreamPropertyChangedEvent(T.stream.session,T.stream,"filter",T.stream.filter,v,"execFilterMethod")]),T.stream.streamManager.emitEvent("streamPropertyChanged",[new E.StreamPropertyChangedEvent(T.stream.streamManager,T.stream,"filter",T.stream.filter,v,"execFilterMethod")])),b()};if(T.type.startsWith("VB:")){if("string"==typeof x)try{x=JSON.parse(x)}catch(M){return U(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Wrong params syntax: "+M))}if(N=x,"update"!==w)return U(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,'Unknown Virtual Background method "'.concat(w,'"')));if(!(null===(Q=T.stream.virtualBackgroundSinkElements)||void 0===Q?void 0:Q.VB))return U(new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"There is no Virtual Background filter applied"));T.stream.virtualBackgroundSinkElements.VB.updateValues(x).then(function(){return L(!1)}).catch(function(M){return U(M.name===q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new q.OpenViduError(M.name,M.message):new q.OpenViduError(q.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"Error updating values on Virtual Background filter: "+M))})}else{var ue=void 0;if("string"!=typeof x)try{ue=JSON.stringify(x)}catch(M){var ee="'params' property must be a JSON formatted object";return y.error(ee),U(ee)}else ue=x;N=ue,T.stream.session.openvidu.sendRequest("execFilterMethod",{streamId:T.stream.streamId,method:w,params:ue},function(M,v){return M?(y.error("Error executing filter method for Stream "+T.stream.streamId,M),U(401===M.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to execute a filter method"):M)):L(!0)})}})},A.prototype.addEventListener=function(w,x){var T=this;return new Promise(function(b,U){y.info("Adding filter event listener to event "+w+" to stream "+T.stream.streamId),T.stream.session.openvidu.sendRequest("addFilterEventListener",{streamId:T.stream.streamId,eventType:w},function(Q,N){return Q?(y.error("Error adding filter event listener to event "+w+"for Stream "+T.stream.streamId,Q),U(401===Q.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):Q)):(T.handlers.set(w,x),y.info("Filter event listener to event "+w+" successfully applied on Stream "+T.stream.streamId),b())})})},A.prototype.removeEventListener=function(w){var x=this;return new Promise(function(T,b){y.info("Removing filter event listener to event "+w+" to stream "+x.stream.streamId),x.stream.session.openvidu.sendRequest("removeFilterEventListener",{streamId:x.stream.streamId,eventType:w},function(U,Q){return U?(y.error("Error removing filter event listener to event "+w+"for Stream "+x.stream.streamId,U),b(401===U.code?new q.OpenViduError(q.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to add a filter event listener"):U)):(x.handlers.delete(w),y.info("Filter event listener to event "+w+" successfully removed on Stream "+x.stream.streamId),T())})})},A}();Z.Filter=S},8499:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.LocalRecorder=void 0;var A,E=H(1216),q=H(1829),V=H(1171),y=H(1397),S=q.OpenViduLogger.getInstance(),w=function(){function x(T){this.stream=T,this.chunks=[],A=V.PlatformUtils.getInstance(),this.connectionId=this.stream.connection?this.stream.connection.connectionId:"default-connection",this.id=this.stream.streamId+"_"+this.connectionId+"_localrecord",this.state=E.LocalRecorderState.READY}return x.prototype.record=function(T){var b=this;return new Promise(function(U,Q){try{if("string"==typeof T||T instanceof String)return Q("When calling LocalRecorder.record(options) parameter 'options' cannot be a string. Must be an object like { mimeType: \"".concat(T,'" }'));if("undefined"==typeof MediaRecorder)throw S.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(b.state!==E.LocalRecorderState.READY)throw Error("'LocalRecord.record()' needs 'LocalRecord.state' to be 'READY' (current value: '"+b.state+"'). Call 'LocalRecorder.clean()' or init a new LocalRecorder before");S.log("Starting local recording of stream '"+b.stream.streamId+"' of connection '"+b.connectionId+"'"),T?T.mimeType||(T.mimeType="video/webm"):T={mimeType:"video/webm"},b.mediaRecorder=new MediaRecorder(b.stream.getMediaStream(),T),b.mediaRecorder.start()}catch(N){return Q(N)}return b.mediaRecorder.ondataavailable=function(N){N.data.size>0&&b.chunks.push(N.data)},b.mediaRecorder.onerror=function(N){S.error("MediaRecorder error: ",N)},b.mediaRecorder.onstart=function(){S.log("MediaRecorder started (state="+b.mediaRecorder.state+")")},b.mediaRecorder.onstop=function(){b.onStopDefault()},b.mediaRecorder.onpause=function(){S.log("MediaRecorder paused (state="+b.mediaRecorder.state+")")},b.mediaRecorder.onresume=function(){S.log("MediaRecorder resumed (state="+b.mediaRecorder.state+")")},b.state=E.LocalRecorderState.RECORDING,U()})},x.prototype.stop=function(){var T=this;return new Promise(function(b,U){try{if(T.state===E.LocalRecorderState.READY||T.state===E.LocalRecorderState.FINISHED)throw Error("'LocalRecord.stop()' needs 'LocalRecord.state' to be 'RECORDING' or 'PAUSED' (current value: '"+T.state+"'). Call 'LocalRecorder.start()' before");T.mediaRecorder.onstop=function(){return T.onStopDefault(),b()},T.mediaRecorder.stop()}catch(Q){return U(Q)}})},x.prototype.pause=function(){var T=this;return new Promise(function(b,U){try{return T.state!==E.LocalRecorderState.RECORDING?U(Error("'LocalRecord.pause()' needs 'LocalRecord.state' to be 'RECORDING' (current value: '"+T.state+"'). Call 'LocalRecorder.start()' or 'LocalRecorder.resume()' before")):(T.mediaRecorder.pause(),T.state=E.LocalRecorderState.PAUSED,b())}catch(Q){return U(Q)}})},x.prototype.resume=function(){var T=this;return new Promise(function(b,U){try{if(T.state!==E.LocalRecorderState.PAUSED)throw Error("'LocalRecord.resume()' needs 'LocalRecord.state' to be 'PAUSED' (current value: '"+T.state+"'). Call 'LocalRecorder.pause()' before");return T.mediaRecorder.resume(),T.state=E.LocalRecorderState.RECORDING,b()}catch(Q){return U(Q)}})},x.prototype.preview=function(T){if(this.state!==E.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,A.isSafariBrowser()&&this.videoPreview.setAttribute("playsinline","true"),"string"==typeof T){var b=document.getElementById(T);b&&(this.videoPreview=b.appendChild(this.videoPreview))}else this.videoPreview=T.appendChild(this.videoPreview);return this.videoPreview.src=this.videoPreviewSrc,this.videoPreview},x.prototype.clean=function(){var T=this,b=function(){delete T.blob,T.chunks=[],T.state=E.LocalRecorderState.READY};this.state===E.LocalRecorderState.RECORDING||this.state===E.LocalRecorderState.PAUSED?this.stop().then(function(){return b()}).catch(function(){return b()}):b()},x.prototype.download=function(){if(this.state!==E.LocalRecorderState.FINISHED)throw Error("'LocalRecord.download()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+this.state+"'). Call 'LocalRecorder.stop()' before");var T=document.createElement("a");T.style.display="none",document.body.appendChild(T);var b=window.URL.createObjectURL(this.blob);T.href=b,T.download=this.id+"."+y.getExtension(this.blob.type),T.click(),window.URL.revokeObjectURL(b),document.body.removeChild(T)},x.prototype.getBlob=function(){if(this.state!==E.LocalRecorderState.FINISHED)throw Error("Call 'LocalRecord.stop()' before getting Blob file");return this.blob},x.prototype.uploadAsBinary=function(T,b){var U=this;return new Promise(function(Q,N){if(U.state!==E.LocalRecorderState.FINISHED)return N(Error("'LocalRecord.uploadAsBinary()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+U.state+"'). Call 'LocalRecorder.stop()' before"));var L=new XMLHttpRequest;if(L.open("POST",T,!0),"object"==typeof b)for(var ue=0,ee=Object.keys(b);ue<ee.length;ue++){var M=ee[ue];L.setRequestHeader(M,b[M])}L.onreadystatechange=function(){if(4===L.readyState)return"2"===L.status.toString().charAt(0)?Q(L.responseText):N(L.status)},L.send(U.blob)})},x.prototype.uploadAsMultipartfile=function(T,b){var U=this;return new Promise(function(Q,N){if(U.state!==E.LocalRecorderState.FINISHED)return N(Error("'LocalRecord.uploadAsMultipartfile()' needs 'LocalRecord.state' to be 'FINISHED' (current value: '"+U.state+"'). Call 'LocalRecorder.stop()' before"));var L=new XMLHttpRequest;if(L.open("POST",T,!0),"object"==typeof b)for(var ue=0,ee=Object.keys(b);ue<ee.length;ue++){var M=ee[ue];L.setRequestHeader(M,b[M])}var v=new FormData;v.append("file",U.blob,U.id+"."+y.getExtension(U.blob.type)),L.onreadystatechange=function(){if(4===L.readyState)return"2"===L.status.toString().charAt(0)?Q(L.responseText):N(L.status)},L.send(v)})},x.prototype.onStopDefault=function(){S.log("MediaRecorder stopped (state="+this.mediaRecorder.state+")"),this.blob=new Blob(this.chunks,{type:this.mediaRecorder.mimeType}),this.chunks=[],this.videoPreviewSrc=window.URL.createObjectURL(this.blob),this.state=E.LocalRecorderState.FINISHED},x}();Z.LocalRecorder=w},3634:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.OpenVidu=void 0;var M,E=H(8499),q=H(4302),V=H(5607),y=H(1690),S=H(9383),A=H(9303),w=H(7167),x=H(1829),T=H(1171),b=H(467),U=H(48),Q=H(1438),N=H(2937),L=H(4940),ue=H(9469),ee=x.OpenViduLogger.getInstance(),v=function(){function G(){var O=this;this.masterNodeHasCrashed=!1,this.publishers=[],this.secret="",this.recorder=!1,this.life=-1,this.advancedConfiguration={},this.webrtcStatsInterval=-1,this.sendBrowserLogs=Q.OpenViduLoggerConfiguration.disabled,this.isAtLeastPro=!1,this.isEnterprise=!1,this.ee=new N,M=T.PlatformUtils.getInstance(),this.libraryVersion=ue.version,ee.info("OpenVidu initialized"),ee.info("Platform detected: "+M.getDescription()),ee.info("openvidu-browser version: "+this.libraryVersion),(M.isMobileDevice()||M.isReactNative())&&this.onOrientationChanged(function(){O.publishers.forEach(function(C){C.stream.isLocalStreamPublished&&C.stream&&C.stream.hasVideo&&O.sendNewVideoDimensionsIfRequired(C,"deviceRotated",75,10)})})}return G.prototype.initSession=function(){return this.session=new V.Session(this),this.session},G.prototype.initPublisher=function(O,C,g){var _;_=C&&"function"!=typeof C?{audioSource:void 0!==(_=C).audioSource?_.audioSource:void 0,frameRate:"undefined"!=typeof MediaStreamTrack&&_.videoSource instanceof MediaStreamTrack?void 0:void 0!==_.frameRate?_.frameRate:void 0,insertMode:void 0!==_.insertMode?"string"==typeof _.insertMode?w.VideoInsertMode[_.insertMode]:_.insertMode:w.VideoInsertMode.APPEND,mirror:void 0===_.mirror||_.mirror,publishAudio:void 0===_.publishAudio||_.publishAudio,publishVideo:void 0===_.publishVideo||_.publishVideo,resolution:"undefined"!=typeof MediaStreamTrack&&_.videoSource instanceof MediaStreamTrack?void 0:void 0!==_.resolution?_.resolution:"640x480",videoSource:void 0!==_.videoSource?_.videoSource:void 0,videoSimulcast:_.videoSimulcast,filter:_.filter}:{insertMode:w.VideoInsertMode.APPEND,mirror:!0,publishAudio:!0,publishVideo:!0,resolution:"640x480"};var R,Y=new q.Publisher(O,_,this);return C&&"function"==typeof C?R=C:g&&(R=g),Y.initialize().then(function(){void 0!==R&&R(void 0),Y.emitEvent("accessAllowed",[])}).catch(function(F){void 0!==R&&R(F),Y.emitEvent("accessDenied",[F])}),this.publishers.push(Y),Y},G.prototype.initPublisherAsync=function(O,C){var g=this;return new Promise(function(_,Y){var R,F=function(W){return W?Y(W):_(R)};R=C?g.initPublisher(O,C,F):g.initPublisher(O,F)})},G.prototype.initLocalRecorder=function(O){return new E.LocalRecorder(O)},G.prototype.checkSystemRequirements=function(){return M.isIPhoneOrIPad()?M.isIOSWithSafari()||M.isIonicIos()||M.isChromeMobileBrowser()||M.isEdgeMobileBrowser()||M.isOperaMobileBrowser()||M.isFirefoxMobileBrowser()?1:0:M.isChromeBrowser()||M.isChromeMobileBrowser()||M.isFirefoxBrowser()||M.isFirefoxMobileBrowser()||M.isOperaBrowser()||M.isOperaMobileBrowser()||M.isEdgeBrowser()||M.isEdgeMobileBrowser()||M.isSafariBrowser()||M.isAndroidBrowser()||M.isElectron()||M.isSamsungBrowser()?1:0},G.prototype.checkScreenSharingCapabilities=function(){return M.canScreenShare()},G.prototype.getDevices=function(){return new Promise(function(O,C){navigator.mediaDevices.enumerateDevices().then(function(g){var _,Y=[];if(!M.isIonicAndroid()||"undefined"==typeof cordova||!(null===(_=null==cordova?void 0:cordova.plugins)||void 0===_?void 0:_.EnumerateDevicesPlugin))return g.forEach(function(R){("audioinput"===R.kind||"videoinput"===R.kind)&&Y.push({kind:R.kind,deviceId:R.deviceId,label:R.label})}),O(Y);cordova.plugins.EnumerateDevicesPlugin.getEnumerateDevices().then(function(R){var F=[],W=[],p=[];return F=R.filter(function(D){return"audioinput"===D.kind}),W=g.filter(function(D){return"videoinput"===D.kind}),p=g.filter(function(D){return"audioinput"===D.kind}),W.forEach(function(D,j){Y.push(D.label?{kind:D.kind,deviceId:D.deviceId,label:D.label}:{kind:D.kind,deviceId:D.deviceId,label:0===j?"Front Camera":1===j?"Back Camera":"Unknown Camera"})}),p.forEach(function(D,j){if(D.label)Y.push({kind:D.kind,deviceId:D.deviceId,label:D.label});else{var B="";switch(j){case 0:B="Default";break;case 1:var k=F.filter(function(ie){return ie.label.includes("Built")})[0];B=k?k.label:"Built-in Microphone";break;case 2:var P=F.filter(function(ie){return ie.label.includes("Wired")})[0];B=P?P.label:"Headset earpiece";break;case 3:var K=F.filter(function(ie){return ie.label.includes("Bluetooth")})[0];B=K?K.label:"Wireless";break;default:B="Unknown Microphone"}Y.push({kind:D.kind,deviceId:D.deviceId,label:B})}}),O(Y)})}).catch(function(g){return ee.error("Error getting devices",g),C(g)})})},G.prototype.getUserMedia=function(O){var C=this;return new Promise(function(g,_){var Y=function(R,F){var p={audio:void 0===F.audio||F.audio,video:!1};navigator.mediaDevices.getUserMedia(p).then(function(D){return R.addTrack(D.getAudioTracks()[0]),g(R)}).catch(function(D){return R.getAudioTracks().forEach(function(j){j.stop()}),R.getVideoTracks().forEach(function(j){j.stop()}),_(C.generateAudioDeviceError(D,p))})};C.generateMediaConstraints(O).then(function(R){var F,W;if(R.videoTrack&&R.audioTrack||R.audioTrack&&!1===(null===(F=R.constraints)||void 0===F?void 0:F.video)||R.videoTrack&&!1===(null===(W=R.constraints)||void 0===W?void 0:W.audio))return g(C.addAlreadyProvidedTracks(R,new MediaStream));R.videoTrack&&delete R.constraints.video,R.audioTrack&&delete R.constraints.audio;var p=!1;"string"==typeof O.videoSource&&("screen"===O.videoSource||"window"===O.videoSource||M.isElectron()&&O.videoSource.startsWith("screen:"))&&(p=!R.audioTrack&&null!==O.audioSource&&!1!==O.audioSource,navigator.mediaDevices.getDisplayMedia&&!M.isElectron())?navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(j){return C.addAlreadyProvidedTracks(R,j),p?void Y(j,R.constraints):g(j)}).catch(function(j){var B=A.OpenViduErrorName.SCREEN_CAPTURE_DENIED,k=j.toString();return _(new A.OpenViduError(B,k))}):navigator.mediaDevices.getUserMedia(p?{video:R.constraints.video}:R.constraints).then(function(j){return C.addAlreadyProvidedTracks(R,j),p?void Y(j,R.constraints):g(j)}).catch(function(j){var k=j.toString();return _(new A.OpenViduError("screen"!==O.videoSource?A.OpenViduErrorName.DEVICE_ACCESS_DENIED:A.OpenViduErrorName.SCREEN_CAPTURE_DENIED,k))})}).catch(function(R){return _(R)})})},G.prototype.enableProdMode=function(){ee.enableProdMode()},G.prototype.setAdvancedConfiguration=function(O){this.advancedConfiguration=O},G.prototype.onOrientationChanged=function(O){window.addEventListener("orientationchange",O)},G.prototype.sendNewVideoDimensionsIfRequired=function(O,C,g,_){var Y=this,R=0,F=O.stream.videoDimensions.width,W=O.stream.videoDimensions.height,p=setInterval(function(){++R>_&&clearTimeout(p),O.getVideoDimensions().then(function(D){(D.width!==F||D.height!==W)&&(clearTimeout(p),Y.sendVideoDimensionsChangedEvent(O,C,F,W,D.width,D.height))})},g)},G.prototype.sendVideoDimensionsChangedEvent=function(O,C,g,_,Y,R){var F=this;O.stream.videoDimensions={width:Y||0,height:R||0},this.sendRequest("streamPropertyChanged",{streamId:O.stream.streamId,property:"videoDimensions",newValue:JSON.stringify(O.stream.videoDimensions),reason:C},function(W,p){W?ee.error("Error sending 'streamPropertyChanged' event",W):(F.session.emitEvent("streamPropertyChanged",[new S.StreamPropertyChangedEvent(F.session,O.stream,"videoDimensions",O.stream.videoDimensions,{width:g,height:_},C)]),O.emitEvent("streamPropertyChanged",[new S.StreamPropertyChangedEvent(O,O.stream,"videoDimensions",O.stream.videoDimensions,{width:g,height:_},C)]),F.session.sendVideoData(O))})},G.prototype.generateMediaConstraints=function(O){var C=this;return new Promise(function(g,_){var Y={audioTrack:void 0,videoTrack:void 0,constraints:{audio:void 0,video:void 0}},R=O.audioSource,F=O.videoSource;if((null===R||!1===R)&&(Y.constraints.audio=!1),(null===F||!1===F)&&(Y.constraints.video=!1),!1===Y.constraints.audio&&!1===Y.constraints.video)return _(new A.OpenViduError(A.OpenViduErrorName.NO_INPUT_SOURCE_SET,"Properties 'audioSource' and 'videoSource' cannot be set to false or null at the same time"));if("undefined"!=typeof MediaStreamTrack&&R instanceof MediaStreamTrack&&(Y.audioTrack=R),"undefined"!=typeof MediaStreamTrack&&F instanceof MediaStreamTrack&&(Y.videoTrack=F),void 0===R&&(Y.constraints.audio=!0),void 0===F&&(Y.constraints.video={width:{ideal:640},height:{ideal:480}}),null!==F&&!1!==F){if(O.resolution){var W=O.resolution.toLowerCase().split("x"),p=Number(W[0]),D=Number(W[1]);Y.constraints.video={width:{ideal:p},height:{ideal:D}}}O.frameRate&&(Y.constraints.video.frameRate={ideal:O.frameRate})}return C.configureDeviceIdOrScreensharing(Y,O,g,_),g(Y)})},G.prototype.startWs=function(O){var C={heartbeat:5e3,ws:{uri:this.wsUri+"?sessionId="+this.session.sessionId,onconnected:O,ondisconnect:this.disconnectCallback.bind(this),onreconnecting:this.reconnectingCallback.bind(this),onreconnected:this.reconnectedCallback.bind(this),ismasternodecrashed:this.isMasterNodeCrashed.bind(this)},rpc:{requestTimeout:1e4,heartbeatRequestTimeout:5e3,participantJoined:this.session.onParticipantJoined.bind(this.session),participantPublished:this.session.onParticipantPublished.bind(this.session),participantUnpublished:this.session.onParticipantUnpublished.bind(this.session),participantLeft:this.session.onParticipantLeft.bind(this.session),participantEvicted:this.session.onParticipantEvicted.bind(this.session),recordingStarted:this.session.onRecordingStarted.bind(this.session),recordingStopped:this.session.onRecordingStopped.bind(this.session),sendMessage:this.session.onNewMessage.bind(this.session),streamPropertyChanged:this.session.onStreamPropertyChanged.bind(this.session),connectionPropertyChanged:this.session.onConnectionPropertyChanged.bind(this.session),networkQualityLevelChanged:this.session.onNetworkQualityLevelChangedChanged.bind(this.session),filterEventDispatched:this.session.onFilterEventDispatched.bind(this.session),iceCandidate:this.session.recvIceCandidate.bind(this.session),mediaError:this.session.onMediaError.bind(this.session),masterNodeCrashedNotification:this.onMasterNodeCrashedNotification.bind(this),forciblyReconnectSubscriber:this.session.onForciblyReconnectSubscriber.bind(this.session)}};this.jsonRpcClient=new L.clients.JsonRpcClient(C)},G.prototype.onMasterNodeCrashedNotification=function(O){console.error("Master Node has crashed"),this.masterNodeHasCrashed=!0,this.session.onLostConnection("nodeCrashed"),this.jsonRpcClient.close(4103,"Master Node has crashed")},G.prototype.getWsReadyState=function(){return this.jsonRpcClient.getReadyState()},G.prototype.closeWs=function(){this.jsonRpcClient.close(4102,"Connection closed by client")},G.prototype.sendRequest=function(O,C,g){C&&C instanceof Function&&(g=C,C={}),ee.debug('Sending request: {method:"'+O+'", params: '+JSON.stringify(C)+"}"),this.jsonRpcClient.send(O,C,g)},G.prototype.getWsUri=function(){return this.wsUri},G.prototype.getSecret=function(){return this.secret},G.prototype.getRecorder=function(){return this.recorder},G.prototype.generateAudioDeviceError=function(O,C){var g,_;switch("Error"===O.name&&(O.name=O.constructor.name),O.name.toLowerCase()){case"notfounderror":return g=A.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,_=O.toString(),new A.OpenViduError(g,_);case"notallowederror":return g=A.OpenViduErrorName.DEVICE_ACCESS_DENIED,_=O.toString(),new A.OpenViduError(g,_);case"overconstrainederror":return"deviceid"===O.constraint.toLowerCase()?(g=A.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,_="Audio input device with deviceId '"+C.audio.deviceId.exact+"' not found"):(g=A.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,_="Audio input device doesn't support the value passed for constraint '"+O.constraint+"'"),new A.OpenViduError(g,_);case"notreadableerror":return g=A.OpenViduErrorName.DEVICE_ALREADY_IN_USE,_=O.toString(),new A.OpenViduError(g,_);default:return new A.OpenViduError(A.OpenViduErrorName.INPUT_AUDIO_DEVICE_GENERIC_ERROR,O.toString())}},G.prototype.addAlreadyProvidedTracks=function(O,C,g){return O.videoTrack&&(C.addTrack(O.videoTrack),g&&(g.lastVideoTrackConstraints=O.constraints.video?O.constraints.video:O.videoTrack.getConstraints())),O.audioTrack&&C.addTrack(O.audioTrack),C},G.prototype.configureDeviceIdOrScreensharing=function(O,C,g,_){var Y=this,R=C.audioSource,F=C.videoSource;if("string"==typeof R&&(O.constraints.audio={deviceId:{exact:R}}),"string"==typeof F){if(this.isScreenShare(F)){if(this.checkScreenSharingCapabilities()){if(M.isElectron()){var p="screen:",j=F.substr(F.indexOf(p)+p.length);return O.constraints.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:j}},g(O)}if(!this.advancedConfiguration.screenShareChromeExtension||M.isFirefoxBrowser()||M.isFirefoxMobileBrowser()||navigator.mediaDevices.getDisplayMedia){if(navigator.mediaDevices.getDisplayMedia)return g(O);var B=M.isFirefoxBrowser()||M.isFirefoxMobileBrowser()?C.videoSource:void 0;return void b.getScreenId(B,function(k,P,K){if(k){if("not-installed"===k){var _e=new A.OpenViduError(A.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,Y.advancedConfiguration.screenShareChromeExtension?Y.advancedConfiguration.screenShareChromeExtension:"https://chrome.google.com/webstore/detail/openvidu-screensharing/lfcgfepafnobdloecchnfaclibenjold");return ee.error(_e),_(_e)}return"installed-disabled"===k?(_e=new A.OpenViduError(A.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension"),ee.error(_e),_(_e)):"permission-denied"===k?(_e=new A.OpenViduError(A.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop"),ee.error(_e),_(_e)):(_e=new A.OpenViduError(A.OpenViduErrorName.GENERIC_ERROR,"Unknown error when accessing screen share"),ee.error(_e),ee.error(k),_(_e))}return O.constraints.video=K.video,g(O)})}return void U.getScreenConstraints(function(k,P){if(!(k||P.mandatory&&"screen"===P.mandatory.chromeMediaSource))return O.constraints.video=P,g(O);if("permission-denied"===k||"PermissionDeniedError"===k){var K=new A.OpenViduError(A.OpenViduErrorName.SCREEN_CAPTURE_DENIED,"You must allow access to one window of your desktop");return ee.error(K),_(K)}var ie=Y.advancedConfiguration.screenShareChromeExtension.split("/").pop().trim();U.getChromeExtensionStatus(ie,function(_e){if("installed-disabled"===_e){var Ae=new A.OpenViduError(A.OpenViduErrorName.SCREEN_EXTENSION_DISABLED,"You must enable the screen extension");return ee.error(Ae),_(Ae)}if("not-installed"===_e){var be=new A.OpenViduError(A.OpenViduErrorName.SCREEN_EXTENSION_NOT_INSTALLED,Y.advancedConfiguration.screenShareChromeExtension);return ee.error(be),_(be)}})})}var W=new A.OpenViduError(A.OpenViduErrorName.SCREEN_SHARING_NOT_SUPPORTED,"You can only screen share in desktop Chrome, Firefox, Opera, Safari (>=13.0), Edge (>= 80) or Electron. Detected client: "+M.getName()+" "+M.getVersion());return ee.error(W),_(W)}this.setVideoSource(O,F)}},G.prototype.setVideoSource=function(O,C){O.constraints.video||(O.constraints.video={}),O.constraints.video.deviceId={exact:C}},G.prototype.disconnectCallback=function(){ee.warn("Websocket connection lost"),this.isRoomAvailable()?this.session.onLostConnection("networkDisconnect"):alert("Connection error. Please reload page.")},G.prototype.reconnectingCallback=function(){ee.warn("Websocket connection lost (reconnecting)"),this.isRoomAvailable()?this.session.emitEvent("reconnecting",[]):alert("Connection error. Please reload page.")},G.prototype.reconnectWebsocketThroughRpcConnectMethod=function(O){var C=this;this.sendRequest("connect",{sessionId:O,reconnect:!0},function(g,_){if(g)if(C.isMasterNodeCrashed())ee.warn("Master Node has crashed!");else{ee.error(g);var Y=function(F,W){ee.warn(W),C.session.onLostConnection(F),C.jsonRpcClient.close(4101,"Reconnection fault: "+W)};40007===g.code&&"reconnection error"===g.message&&console.error("Invalid RPC sessionId. Client network disconnection or Master Node crash"),-1===C.life?Y("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):C.sendRequest("sessionStatus",{sessionId:C.session.sessionId},function(F,W){null!=F?console.error("Error checking session status",F):C.life===W.life?Y("networkDisconnect","WS successfully reconnected but the user was already evicted due to timeout"):Y("nodeCrashed","WS successfully reconnected to OpenVidu Server but your Master Node crashed")})}else C.jsonRpcClient.resetPing(),C.session.onRecoveredConnection()})},G.prototype.reconnectedCallback=function(){if(ee.warn("Websocket reconnected"),this.isRoomAvailable())if(this.session.connection)this.reconnectWebsocketThroughRpcConnectMethod(this.session.connection.rpcSessionId);else{ee.warn("There was no previous connection when running reconnection callback");var O=new y.SessionDisconnectedEvent(this.session,"networkDisconnect");this.session.ee.emitEvent("sessionDisconnected",[O]),O.callDefaultBehavior()}else alert("Connection error. Please reload page.")},G.prototype.isMasterNodeCrashed=function(){return this.masterNodeHasCrashed},G.prototype.isRoomAvailable=function(){return void 0!==this.session&&this.session instanceof V.Session||(ee.warn("Session instance not found"),!1)},G.prototype.isScreenShare=function(O){return"screen"===O||"window"===O||M.isElectron()&&O.startsWith("screen:")},G}();Z.OpenVidu=v},4302:function(Se,Z,H){"use strict";var ee,E=this&&this.__extends||(ee=function(M,v){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,O){G.__proto__=O}||function(G,O){for(var C in O)Object.prototype.hasOwnProperty.call(O,C)&&(G[C]=O[C])})(M,v)},function(M,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function G(){this.constructor=M}ee(M,v),M.prototype=null===v?Object.create(v):(G.prototype=v.prototype,new G)}),q=this&&this.__awaiter||function(ee,M,v,G){return new(v||(v=Promise))(function(C,g){function _(F){try{R(G.next(F))}catch(W){g(W)}}function Y(F){try{R(G.throw(F))}catch(W){g(W)}}function R(F){F.done?C(F.value):function O(C){return C instanceof v?C:new v(function(g){g(C)})}(F.value).then(_,Y)}R((G=G.apply(ee,M||[])).next())})},V=this&&this.__generator||function(ee,M){var G,O,C,g,v={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return g={next:_(0),throw:_(1),return:_(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function _(R){return function(F){return function Y(R){if(G)throw new TypeError("Generator is already executing.");for(;v;)try{if(G=1,O&&(C=2&R[0]?O.return:R[0]?O.throw||((C=O.return)&&C.call(O),0):O.next)&&!(C=C.call(O,R[1])).done)return C;switch(O=0,C&&(R=[2&R[0],C.value]),R[0]){case 0:case 1:C=R;break;case 4:return v.label++,{value:R[1],done:!1};case 5:v.label++,O=R[1],R=[0];continue;case 7:R=v.ops.pop(),v.trys.pop();continue;default:if(!(C=(C=v.trys).length>0&&C[C.length-1])&&(6===R[0]||2===R[0])){v=0;continue}if(3===R[0]&&(!C||R[1]>C[0]&&R[1]<C[3])){v.label=R[1];break}if(6===R[0]&&v.label<C[1]){v.label=C[1],C=R;break}if(C&&v.label<C[2]){v.label=C[2],v.ops.push(R);break}C[2]&&v.ops.pop(),v.trys.pop();continue}R=M.call(ee,v)}catch(F){R=[6,F],O=0}finally{G=C=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([R,F])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.Publisher=void 0;var L,y=H(5607),S=H(8770),A=H(7373),w=H(3980),x=H(9383),T=H(9303),b=H(1829),U=H(1171),Q=H(7879),N=b.OpenViduLogger.getInstance(),ue=function(ee){function M(v,G,O){var C=ee.call(this,new S.Stream(O.session?O.session:new y.Session(O),{publisherProperties:G,mediaConstraints:{}}),v)||this;return C.accessAllowed=!1,C.isSubscribedToRemote=!1,C.accessDenied=!1,L=U.PlatformUtils.getInstance(),C.properties=G,C.openvidu=O,C.stream.ee.on("local-stream-destroyed",function(g){C.stream.isLocalStreamPublished=!1;var _=new w.StreamEvent(!0,C,"streamDestroyed",C.stream,g);C.emitEvent("streamDestroyed",[_]),_.callDefaultBehavior()}),C}return E(M,ee),M.prototype.publishAudio=function(v){var G=this;this.stream.audioActive!==v&&((this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream()).getAudioTracks().forEach(function(C){C.enabled=v}),!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"audioActive",newValue:v,reason:"publishAudio"},function(C,g){C?N.error("Error sending 'streamPropertyChanged' event",C):(G.session.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(G.session,G.stream,"audioActive",v,!v,"publishAudio")]),G.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(G,G.stream,"audioActive",v,!v,"publishAudio")]),G.session.sendVideoData(G.stream.streamManager))}),this.stream.audioActive=v,N.info("'Publisher' has "+(v?"published":"unpublished")+" its audio stream"))},M.prototype.publishVideo=function(v,G){var O=this;return new Promise(function(C,g){return q(O,void 0,void 0,function(){var _,Y,R,F,W,p,D=this;return V(this,function(j){switch(j.label){case 0:return this.stream.videoActive===v?[3,9]:(_=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),Y=!1,_.getVideoTracks().forEach(function(B){B.enabled=v,v||!0!==G?v&&"ended"===B.readyState&&(Y=!0):B.stop()}),!v&&!0===G&&this.stream.filter&&this.stream.filter.type.startsWith("VB:")?(this.stream.lastVBFilter=this.stream.filter,[4,this.stream.removeFilterAux(!0)]):[3,2]);case 1:j.sent(),j.label=2;case 2:return Y?(R=_.getVideoTracks()[0],_.removeTrack(R),F=function(B){return q(D,void 0,void 0,function(){var k=this;return V(this,function(P){switch(P.label){case 0:return _.addTrack(B),this.stream.isLocalStreamPublished?[4,this.replaceTrackInRtcRtpSender(B)]:[3,2];case 1:P.sent(),P.label=2;case 2:return this.stream.lastVBFilter&&setTimeout(function(){return q(k,void 0,void 0,function(){var K,ie;return V(this,function(_e){switch(_e.label){case 0:return K=this.stream.lastVBFilter.options,!!(ie=this.stream.lastVBFilter.lastExecMethod)&&"update"===ie.method&&(K=Object.assign({},K,ie.params)),[4,this.stream.applyFilter(this.stream.lastVBFilter.type,K)];case 1:return _e.sent(),delete this.stream.lastVBFilter,[2]}})})},1),[2]}})})},G&&G instanceof MediaStreamTrack?[4,F(G)]:[3,4]):[3,8];case 3:return j.sent(),[3,8];case 4:return j.trys.push([4,7,,8]),[4,navigator.mediaDevices.getUserMedia({audio:!1,video:this.stream.lastVideoTrackConstraints})];case 5:return W=j.sent(),[4,F(W.getVideoTracks()[0])];case 6:return j.sent(),[3,8];case 7:return p=j.sent(),[2,g(p)];case 8:return!!this.session&&!!this.stream.streamId&&this.session.openvidu.sendRequest("streamPropertyChanged",{streamId:this.stream.streamId,property:"videoActive",newValue:v,reason:"publishVideo"},function(B,k){B?N.error("Error sending 'streamPropertyChanged' event",B):(D.session.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(D.session,D.stream,"videoActive",v,!v,"publishVideo")]),D.emitEvent("streamPropertyChanged",[new x.StreamPropertyChangedEvent(D,D.stream,"videoActive",v,!v,"publishVideo")]),D.session.sendVideoData(D.stream.streamManager))}),this.stream.videoActive=v,N.info("'Publisher' has "+(v?"published":"unpublished")+" its video stream"),[2,C()];case 9:return[2]}})})})},M.prototype.subscribeToRemote=function(v){this.isSubscribedToRemote=v=void 0===v||v,this.stream.subscribeToMyRemote(v)},M.prototype.on=function(v,G){var O=this;return ee.prototype.on.call(this,v,G),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new w.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.on("stream-created-by-publisher",function(){O.emitEvent("streamCreated",[new w.StreamEvent(!1,O,"streamCreated",O.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},M.prototype.once=function(v,G){var O=this;return ee.prototype.once.call(this,v,G),"streamCreated"===v&&(this.stream&&this.stream.isLocalStreamPublished?this.emitEvent("streamCreated",[new w.StreamEvent(!1,this,"streamCreated",this.stream,"")]):this.stream.ee.once("stream-created-by-publisher",function(){O.emitEvent("streamCreated",[new w.StreamEvent(!1,O,"streamCreated",O.stream,"")])})),"accessAllowed"===v&&this.accessAllowed&&this.emitEvent("accessAllowed",[]),"accessDenied"===v&&this.accessDenied&&this.emitEvent("accessDenied",[]),this},M.prototype.off=function(v,G){return ee.prototype.off.call(this,v,G),this},M.prototype.replaceTrack=function(v){return q(this,void 0,void 0,function(){return V(this,function(G){return[2,this.replaceTrackAux(v,!0)]})})},M.prototype.initialize=function(){var v=this;return new Promise(function(G,O){var Y,C={},g={},_=2e3,R=function(D){return v.accessDenied=!0,v.accessAllowed=!1,N.error("Publisher initialization failed. ".concat(D.name,": ").concat(D.message)),O(D)},F=function(D){var j,B;if(v.accessAllowed=!0,v.accessDenied=!1,"undefined"!=typeof MediaStreamTrack&&v.properties.audioSource instanceof MediaStreamTrack&&(D.removeTrack(D.getAudioTracks()[0]),D.addTrack(v.properties.audioSource)),"undefined"!=typeof MediaStreamTrack&&v.properties.videoSource instanceof MediaStreamTrack&&(D.removeTrack(D.getVideoTracks()[0]),D.addTrack(v.properties.videoSource)),D.getAudioTracks()[0]){var k=null!=v.stream.audioActive?v.stream.audioActive:!!v.stream.outboundStreamOpts.publisherProperties.publishAudio;D.getAudioTracks()[0].enabled=k}D.getVideoTracks()[0]&&(k=null!=v.stream.videoActive?v.stream.videoActive:!!v.stream.outboundStreamOpts.publisherProperties.publishVideo,D.getVideoTracks()[0].enabled=k);for(var P=0,K=D.getAudioTracks();P<K.length;P++)(null===(j=(ie=K[P]).contentHint)||void 0===j?void 0:j.length)||(ie.contentHint="",N.info("Audio track Content Hint set: '".concat(ie.contentHint,"'")));for(var _e=0,Ae=D.getVideoTracks();_e<Ae.length;_e++){var ie;if(!(null===(B=(ie=Ae[_e]).contentHint)||void 0===B?void 0:B.length)){switch(v.stream.typeOfVideo){case Q.TypeOfVideo.SCREEN:ie.contentHint="detail";break;case Q.TypeOfVideo.CUSTOM:N.warn("CUSTOM type video track was provided without Content Hint!"),ie.contentHint="motion";break;default:ie.contentHint="motion"}N.info("Video track Content Hint set: '".concat(ie.contentHint,"'"))}}return v.initializeVideoReference(D),v.stream.displayMyRemote()||v.stream.updateMediaStreamInVideos(),delete v.firstVideoElement,v.stream.isSendVideo()?v.getVideoDimensions().then(function(be){v.stream.videoDimensions={width:be.width,height:be.height},v.stream.isSendScreen()&&(v.screenShareResizeInterval=setInterval(function(){var He=D.getVideoTracks()[0].getSettings(),dt=He.width,Le=He.height;v.stream.isLocalStreamPublished&&(null!=dt&&dt!==v.stream.videoDimensions.width||null!=Le&&Le!==v.stream.videoDimensions.height)&&v.openvidu.sendVideoDimensionsChangedEvent(v,"screenResized",v.stream.videoDimensions.width,v.stream.videoDimensions.height,dt||0,Le||0)},650)),v.stream.isLocalStreamReadyToPublish=!0,v.stream.ee.emitEvent("stream-ready-to-publish",[])}):(v.stream.isLocalStreamReadyToPublish=!0,v.stream.ee.emitEvent("stream-ready-to-publish",[])),G()},W=function(D,j){v.clearPermissionDialogTimer(Y,_),v.stream.isSendScreen()&&v.stream.isSendAudio()?(g.audio=j,g.video=!1,Y=Date.now(),v.setPermissionDialogTimer(_),navigator.mediaDevices.getUserMedia(g).then(function(B){v.clearPermissionDialogTimer(Y,_),D.addTrack(B.getAudioTracks()[0]),F(D)}).catch(function(B){v.clearPermissionDialogTimer(Y,_),D.getAudioTracks().forEach(function(k){k.stop()}),D.getVideoTracks().forEach(function(k){k.stop()}),R(v.openvidu.generateAudioDeviceError(B,C))})):F(D)},p=function(D){var j,B;switch(N.error("getMediaError: ".concat(D.toString())),v.clearPermissionDialogTimer(Y,_),"Error"===D.name&&(D.name=D.constructor.name),D.name.toLowerCase()){case"notfounderror":navigator.mediaDevices.getUserMedia({audio:!1,video:C.video}).then(function(k){k.getVideoTracks().forEach(function(P){P.stop()}),j=T.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,B=D.toString(),R(new T.OpenViduError(j,B))}).catch(function(k){j=T.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,B=D.toString(),R(new T.OpenViduError(j,B))});break;case"notallowederror":j=v.stream.isSendScreen()?T.OpenViduErrorName.SCREEN_CAPTURE_DENIED:T.OpenViduErrorName.DEVICE_ACCESS_DENIED,B=D.toString(),R(new T.OpenViduError(j,B));break;case"overconstrainederror":navigator.mediaDevices.getUserMedia({audio:!1,video:C.video}).then(function(k){k.getVideoTracks().forEach(function(P){P.stop()}),"deviceid"===D.constraint.toLowerCase()?(j=T.OpenViduErrorName.INPUT_AUDIO_DEVICE_NOT_FOUND,B="Audio input device with deviceId '"+C.audio.deviceId.exact+"' not found"):(j=T.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,B="Audio input device doesn't support the value passed for constraint '"+D.constraint+"'"),R(new T.OpenViduError(j,B))}).catch(function(k){"deviceid"===D.constraint.toLowerCase()?(j=T.OpenViduErrorName.INPUT_VIDEO_DEVICE_NOT_FOUND,B="Video input device with deviceId '"+C.video.deviceId.exact+"' not found"):(j=T.OpenViduErrorName.PUBLISHER_PROPERTIES_ERROR,B="Video input device doesn't support the value passed for constraint '"+D.constraint+"'"),R(new T.OpenViduError(j,B))});break;case"aborterror":case"notreadableerror":j=T.OpenViduErrorName.DEVICE_ALREADY_IN_USE,B=D.toString(),R(new T.OpenViduError(j,B));break;default:j=T.OpenViduErrorName.GENERIC_ERROR,B=D.toString(),R(new T.OpenViduError(j,B))}};v.openvidu.generateMediaConstraints(v.properties).then(function(D){var j,B;if(D.videoTrack&&D.audioTrack||D.audioTrack&&!1===(null===(j=D.constraints)||void 0===j?void 0:j.video)||D.videoTrack&&!1===(null===(B=D.constraints)||void 0===B?void 0:B.audio))F(v.openvidu.addAlreadyProvidedTracks(D,new MediaStream,v.stream));else{v.stream.setOutboundStreamOptions({mediaConstraints:C=D.constraints,publisherProperties:v.properties});var P=void 0===C.audio||C.audio;g.audio=!v.stream.isSendScreen()&&P,g.video=C.video,Y=Date.now(),v.setPermissionDialogTimer(_),v.stream.isSendScreen()&&navigator.mediaDevices.getDisplayMedia&&!L.isElectron()?navigator.mediaDevices.getDisplayMedia({video:!0}).then(function(K){v.openvidu.addAlreadyProvidedTracks(D,K),W(K,P)}).catch(function(K){p(K)}):(v.stream.lastVideoTrackConstraints=g.video,navigator.mediaDevices.getUserMedia(g).then(function(K){v.openvidu.addAlreadyProvidedTracks(D,K,v.stream),W(K,P)}).catch(function(K){p(K)}))}}).catch(function(D){R(D)})})},M.prototype.replaceTrackAux=function(v,G){return q(this,void 0,void 0,function(){var O,C;return V(this,function(g){switch(g.label){case 0:O=v.enabled,"video"===v.kind?v.enabled=this.stream.videoActive:"audio"===v.kind&&(v.enabled=this.stream.audioActive),g.label=1;case 1:return g.trys.push([1,7,,8]),this.stream.isLocalStreamPublished?[4,this.replaceTrackInMediaStream(v,G)]:[3,4];case 2:return g.sent(),[4,this.replaceTrackInRtcRtpSender(v)];case 3:return[2,g.sent()];case 4:return[4,this.replaceTrackInMediaStream(v,G)];case 5:return[2,g.sent()];case 6:return[3,8];case 7:throw C=g.sent(),v.enabled=O,C;case 8:return[2]}})})},M.prototype.getVideoDimensions=function(){var v=this;return new Promise(function(G,O){var g,C=L.isIonicIos()||L.isIOSWithSafari(),_=function(){var Y,R;if("function"==typeof v.stream.getMediaStream().getVideoTracks()[0].getSettings){var F=v.stream.getMediaStream().getVideoTracks()[0].getSettings();Y=F.width||v.videoReference.videoWidth,R=F.height||v.videoReference.videoHeight}else N.warn("MediaStreamTrack does not have getSettings method on "+L.getDescription()),Y=v.videoReference.videoWidth,R=v.videoReference.videoHeight;return null!=g&&v.videoReference.removeEventListener("loadedmetadata",g),C&&document.body.removeChild(v.videoReference),G({width:Y,height:R})};v.videoReference.readyState>=1?_():(v.videoReference.addEventListener("loadedmetadata",g=function(){if(v.videoReference.videoWidth)_();else var Y=setInterval(function(){v.videoReference.videoWidth&&(clearInterval(Y),_())},40)}),C&&document.body.appendChild(v.videoReference))})},M.prototype.reestablishStreamPlayingEvent=function(){this.ee.getListeners("streamPlaying").length>0&&this.addPlayEventToFirstVideo()},M.prototype.initializeVideoReference=function(v){this.videoReference=document.createElement("video"),this.videoReference.setAttribute("muted","true"),this.videoReference.style.display="none",(L.isSafariBrowser()||L.isIPhoneOrIPad()&&(L.isChromeMobileBrowser()||L.isEdgeMobileBrowser()||L.isOperaMobileBrowser()||L.isFirefoxMobileBrowser()))&&this.videoReference.setAttribute("playsinline","true"),this.stream.setMediaStream(v),this.firstVideoElement&&this.createVideoElement(this.firstVideoElement.targetElement,this.properties.insertMode),this.videoReference.srcObject=v},M.prototype.replaceTrackInMediaStream=function(v,G){return q(this,void 0,void 0,function(){var O,C;return V(this,function(g){return O=this.stream.displayMyRemote()?this.stream.localMediaStreamWhenSubscribedToRemote:this.stream.getMediaStream(),"video"===v.kind?(C=O.getVideoTracks()[0],G&&(this.stream.lastVideoTrackConstraints=v.getConstraints())):C=O.getAudioTracks()[0],O.removeTrack(C),C.stop(),O.addTrack(v),"video"===v.kind&&this.stream.isLocalStreamPublished&&G&&(this.openvidu.sendNewVideoDimensionsIfRequired(this,"trackReplaced",50,30),this.session.sendVideoData(this.stream.streamManager,5,!0,5)),[2]})})},M.prototype.setPermissionDialogTimer=function(v){var G=this;this.permissionDialogTimeout=setTimeout(function(){G.emitEvent("accessDialogOpened",[])},v)},M.prototype.clearPermissionDialogTimer=function(v,G){clearTimeout(this.permissionDialogTimeout),Date.now()-v>G&&this.emitEvent("accessDialogClosed",[])},M.prototype.replaceTrackInRtcRtpSender=function(v){return q(this,void 0,void 0,function(){var G,O;return V(this,function(C){switch(C.label){case 0:if(G=this.stream.getRTCPeerConnection().getSenders(),"video"===v.kind){if(!(O=G.find(function(g){return!!g.track&&"video"===g.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}else{if("audio"!==v.kind)throw new Error("Unknown track kind "+v.kind);if(!(O=G.find(function(g){return!!g.track&&"audio"===g.track.kind})))throw new Error("There's no replaceable track for that kind of MediaStreamTrack in this Publisher object")}return[4,O.replaceTrack(v)];case 1:return C.sent(),[2]}})})},M}(A.StreamManager);Z.Publisher=ue},5607:function(Se,Z,H){"use strict";var F,E=this&&this.__extends||(F=function(W,p){return(F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,j){D.__proto__=j}||function(D,j){for(var B in j)Object.prototype.hasOwnProperty.call(j,B)&&(D[B]=j[B])})(W,p)},function(W,p){if("function"!=typeof p&&null!==p)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function D(){this.constructor=W}F(W,p),W.prototype=null===p?Object.create(p):(D.prototype=p.prototype,new D)}),q=this&&this.__awaiter||function(F,W,p,D){return new(p||(p=Promise))(function(B,k){function P(_e){try{ie(D.next(_e))}catch(Ae){k(Ae)}}function K(_e){try{ie(D.throw(_e))}catch(Ae){k(Ae)}}function ie(_e){_e.done?B(_e.value):function j(B){return B instanceof p?B:new p(function(k){k(B)})}(_e.value).then(P,K)}ie((D=D.apply(F,W||[])).next())})},V=this&&this.__generator||function(F,W){var D,j,B,k,p={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return k={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function P(ie){return function(_e){return function K(ie){if(D)throw new TypeError("Generator is already executing.");for(;p;)try{if(D=1,j&&(B=2&ie[0]?j.return:ie[0]?j.throw||((B=j.return)&&B.call(j),0):j.next)&&!(B=B.call(j,ie[1])).done)return B;switch(j=0,B&&(ie=[2&ie[0],B.value]),ie[0]){case 0:case 1:B=ie;break;case 4:return p.label++,{value:ie[1],done:!1};case 5:p.label++,j=ie[1],ie=[0];continue;case 7:ie=p.ops.pop(),p.trys.pop();continue;default:if(!(B=(B=p.trys).length>0&&B[B.length-1])&&(6===ie[0]||2===ie[0])){p=0;continue}if(3===ie[0]&&(!B||ie[1]>B[0]&&ie[1]<B[3])){p.label=ie[1];break}if(6===ie[0]&&p.label<B[1]){p.label=B[1],B=ie;break}if(B&&p.label<B[2]){p.label=B[2],p.ops.push(ie);break}B[2]&&p.ops.pop(),p.trys.pop();continue}ie=W.call(F,p)}catch(_e){ie=[6,_e],j=0}finally{D=B=0}if(5&ie[0])throw ie[1];return{value:ie[0]?ie[1]:void 0,done:!0}}([ie,_e])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.Session=void 0;var Y,y=H(7576),S=H(5481),A=H(3343),w=H(2768),x=H(1698),T=H(5132),b=H(5449),U=H(1690),Q=H(1659),N=H(3980),L=H(9383),ue=H(9005),ee=H(9900),M=H(9303),v=H(7167),G=H(1829),O=H(1171),C=H(1892),g=H(9897),_=G.OpenViduLogger.getInstance(),R=function(F){function W(p){var D=F.call(this)||this;return D.streamManagers=[],D.remoteStreamsCreated=new Map,D.remoteConnections=new Map,Y=O.PlatformUtils.getInstance(),D.openvidu=p,D}return E(W,F),W.prototype.connect=function(p,D){var j=this;return new Promise(function(B,k){if(j.processToken(p),!j.openvidu.checkSystemRequirements())return k(new M.OpenViduError(M.OpenViduErrorName.BROWSER_NOT_SUPPORTED,"Browser "+Y.getName()+" (version "+Y.getVersion()+") for "+Y.getFamily()+" is not supported in OpenVidu"));j.options={sessionId:j.sessionId,participantId:p,metadata:D?j.stringClientMetadata(D):""},j.connectAux(p).then(function(){return B()}).catch(function(P){return k(P)})})},W.prototype.disconnect=function(){this.leave(!1,"disconnect")},W.prototype.subscribe=function(p,D,j,B){var k={};k=j&&"function"!=typeof j?{insertMode:void 0!==j.insertMode?"string"==typeof j.insertMode?v.VideoInsertMode[j.insertMode]:k.insertMode:v.VideoInsertMode.APPEND,subscribeToAudio:void 0===j.subscribeToAudio||j.subscribeToAudio,subscribeToVideo:void 0===j.subscribeToVideo||j.subscribeToVideo}:{insertMode:v.VideoInsertMode.APPEND,subscribeToAudio:!0,subscribeToVideo:!0};var P=void 0;if(j&&"function"==typeof j?P=j:B&&(P=B),!this.sessionConnected())throw void 0!==P&&P(this.notConnectedError()),this.notConnectedError();_.info("Subscribing to "+p.connection.connectionId),p.subscribe().then(function(){_.info("Subscribed correctly to "+p.connection.connectionId),void 0!==P&&P(void 0)}).catch(function(ie){void 0!==P&&P(ie)});var K=new A.Subscriber(p,D,k);return K.targetElement&&p.streamManager.createVideoElement(K.targetElement,k.insertMode),K},W.prototype.subscribeAsync=function(p,D,j){var B=this;return new Promise(function(k,P){if(!B.sessionConnected())return P(B.notConnectedError());var K,ie=function(_e){return _e?P(_e):k(K)};K=j?B.subscribe(p,D,j,ie):B.subscribe(p,D,ie)})},W.prototype.unsubscribe=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())return B(D.notConnectedError());var k=p.stream.connection.connectionId;_.info("Unsubscribing from "+k),D.openvidu.sendRequest("unsubscribeFromVideo",{sender:p.stream.connection.connectionId},function(P,K){return P?(_.error("Error unsubscribing from "+k),B(P)):(_.info("Unsubscribed correctly from "+k),p.stream.streamManager.removeAllVideos(),p.stream.disposeWebRtcPeer(),p.stream.disposeMediaStream(),j())})})},W.prototype.publish=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())return B(D.notConnectedError());p.session=D,p.stream.session=D,p.stream.publishedOnce?p.initialize().then(function(){D.connection.addStream(p.stream),p.reestablishStreamPlayingEvent(),p.stream.publish().then(function(){return D.sendVideoData(p,8,!0,5),j()}).catch(function(k){return B(k)})}).catch(function(k){return B(k)}):(D.connection.addStream(p.stream),p.stream.publish().then(function(){return D.sendVideoData(p,8,!0,5),j()}).catch(function(k){return B(k)}))})},W.prototype.unpublish=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())throw D.notConnectedError();var k=p.stream;return k.connection?k.connection!==D.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")):(_.info("Unpublishing local media ("+k.connection.connectionId+")"),void D.openvidu.sendRequest("unpublishVideo",function(P,K){if(P)return B(P);_.info("Media unpublished correctly"),k.disposeWebRtcPeer(),k.connection.stream==k&&delete k.connection.stream;var ie=new N.StreamEvent(!0,p,"streamDestroyed",p.stream,"unpublish");return p.emitEvent("streamDestroyed",[ie]),ie.callDefaultBehavior(),j()})):B(new Error("The associated Connection object of this Publisher is null"))})},W.prototype.forceDisconnect=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())return B(D.notConnectedError());_.info("Forcing disconnect for connection "+p.connectionId),D.openvidu.sendRequest("forceDisconnect",{connectionId:p.connectionId},function(k,P){return k?(_.error("Error forcing disconnect for Connection "+p.connectionId,k),B(401===k.code?new M.OpenViduError(M.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force a disconnection"):k)):(_.info("Forcing disconnect correctly for Connection "+p.connectionId),j())})})},W.prototype.forceUnpublish=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())return B(D.notConnectedError());_.info("Forcing unpublish for stream "+p.streamId),D.openvidu.sendRequest("forceUnpublish",{streamId:p.streamId},function(k,P){return k?(_.error("Error forcing unpublish for Stream "+p.streamId,k),B(401===k.code?new M.OpenViduError(M.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to force an unpublishing"):k)):(_.info("Forcing unpublish correctly for Stream "+p.streamId),j())})})},W.prototype.signal=function(p){var D=this;return new Promise(function(j,B){if(!D.sessionConnected())return B(D.notConnectedError());var k={};if(p.to&&p.to.length>0){var P=[];p.to.forEach(function(ie){ie.connectionId&&P.push(ie.connectionId)}),k.to=P}else k.to=[];k.data=p.data?p.data:"";var K=p.type?p.type:"signal";K&&"signal:"!==K.substring(0,7)&&(K="signal:"+K),k.type=K,D.openvidu.sendRequest("sendMessage",{message:JSON.stringify(k)},function(ie,_e){return ie?B(ie):j()})})},W.prototype.on=function(p,D){var j,B,k,P;return F.prototype.onAux.call(this,p,"Event '"+p+"' triggered by 'Session'",D),"publisherStartSpeaking"===p&&(this.remoteConnections.forEach(function(K){var ie;(null===(ie=K.stream)||void 0===ie?void 0:ie.hasAudio)&&K.stream.enableHarkSpeakingEvent()}),(null===(B=null===(j=this.connection)||void 0===j?void 0:j.stream)||void 0===B?void 0:B.hasAudio)&&this.connection.stream.enableHarkSpeakingEvent()),"publisherStopSpeaking"===p&&(this.remoteConnections.forEach(function(K){var ie;(null===(ie=K.stream)||void 0===ie?void 0:ie.hasAudio)&&K.stream.enableHarkStoppedSpeakingEvent()}),(null===(P=null===(k=this.connection)||void 0===k?void 0:k.stream)||void 0===P?void 0:P.hasAudio)&&this.connection.stream.enableHarkStoppedSpeakingEvent()),this},W.prototype.once=function(p,D){var j,B,k,P;return F.prototype.onceAux.call(this,p,"Event '"+p+"' triggered once by 'Session'",D),"publisherStartSpeaking"===p&&(this.remoteConnections.forEach(function(K){var ie;(null===(ie=K.stream)||void 0===ie?void 0:ie.hasAudio)&&K.stream.enableOnceHarkSpeakingEvent()}),(null===(B=null===(j=this.connection)||void 0===j?void 0:j.stream)||void 0===B?void 0:B.hasAudio)&&this.connection.stream.enableOnceHarkSpeakingEvent()),"publisherStopSpeaking"===p&&(this.remoteConnections.forEach(function(K){var ie;(null===(ie=K.stream)||void 0===ie?void 0:ie.hasAudio)&&K.stream.enableOnceHarkStoppedSpeakingEvent()}),(null===(P=null===(k=this.connection)||void 0===k?void 0:k.stream)||void 0===P?void 0:P.hasAudio)&&this.connection.stream.enableOnceHarkStoppedSpeakingEvent()),this},W.prototype.off=function(p,D){var B,k,P,K,j=this;return F.prototype.offAux.call(this,p,D),"publisherStartSpeaking"===p&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1)||(this.remoteConnections.forEach(function(ie){var _e;(null===(_e=ie.stream)||void 0===_e?void 0:_e.streamManager)&&(j.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,ie.stream.streamManager)||ie.stream.disableHarkSpeakingEvent(!1))}),(null===(k=null===(B=this.connection)||void 0===B?void 0:B.stream)||void 0===k?void 0:k.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStartSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkSpeakingEvent(!1)))),"publisherStopSpeaking"===p&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1)||(this.remoteConnections.forEach(function(ie){var _e;(null===(_e=ie.stream)||void 0===_e?void 0:_e.streamManager)&&(j.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,ie.stream.streamManager)||ie.stream.disableHarkStoppedSpeakingEvent(!1))}),(null===(K=null===(P=this.connection)||void 0===P?void 0:P.stream)||void 0===K?void 0:K.streamManager)&&(this.anySpeechEventListenerEnabled("publisherStopSpeaking",!1,this.connection.stream.streamManager)||this.connection.stream.disableHarkStoppedSpeakingEvent(!1)))),this},W.prototype.onParticipantJoined=function(p){var D=this;this.getConnection(p.id,"").then(function(j){_.warn("Connection "+j.connectionId+" already exists in connections list")}).catch(function(j){var B=new y.Connection(D,p);D.remoteConnections.set(p.id,B),D.ee.emitEvent("connectionCreated",[new x.ConnectionEvent(!1,D,"connectionCreated",B,"")])})},W.prototype.onParticipantLeft=function(p){var D=this;this.getRemoteConnection(p.connectionId,"onParticipantLeft").then(function(j){if(j.stream){var B=j.stream,k=new N.StreamEvent(!0,D,"streamDestroyed",B,p.reason);D.ee.emitEvent("streamDestroyed",[k]),k.callDefaultBehavior(),D.remoteStreamsCreated.delete(B.streamId)}D.remoteConnections.delete(j.connectionId),D.ee.emitEvent("connectionDestroyed",[new x.ConnectionEvent(!1,D,"connectionDestroyed",j,p.reason)])}).catch(function(j){_.error(j)})},W.prototype.onParticipantPublished=function(p){var B,D=this,j=function(k){D.remoteConnections.set(k.connectionId,k),D.remoteStreamsCreated.get(k.stream.streamId)||D.ee.emitEvent("streamCreated",[new N.StreamEvent(!1,D,"streamCreated",k.stream,"")]),D.remoteStreamsCreated.set(k.stream.streamId,!0)};this.getRemoteConnection(p.id,"onParticipantPublished").then(function(k){B=k,p.metadata=k.data,B.remoteOptions=p,B.initRemoteStreams(p.streams),j(B)}).catch(function(k){B=new y.Connection(D,p),j(B)})},W.prototype.onParticipantUnpublished=function(p){var D=this;p.connectionId===this.connection.connectionId?this.stopPublisherStream(p.reason):this.getRemoteConnection(p.connectionId,"onParticipantUnpublished").then(function(j){var B=new N.StreamEvent(!0,D,"streamDestroyed",j.stream,p.reason);D.ee.emitEvent("streamDestroyed",[B]),B.callDefaultBehavior();var k=j.stream.streamId;D.remoteStreamsCreated.delete(k),j.removeStream(k)}).catch(function(j){_.error(j)})},W.prototype.onParticipantEvicted=function(p){p.connectionId===this.connection.connectionId&&this.sessionId&&!this.connection.disposed&&this.leave(!0,p.reason)},W.prototype.onNewMessage=function(p){var D=this;_.info("New signal: "+JSON.stringify(p));var j=p.type?p.type.replace(/^(signal:)/,""):void 0;p.from?this.getConnection(p.from,"Connection '"+p.from+"' unknown when 'onNewMessage'. Existing remote connections: "+JSON.stringify(this.remoteConnections.keys())+". Existing local connection: "+this.connection.connectionId).then(function(B){D.ee.emitEvent("signal",[new Q.SignalEvent(D,j,p.data,B)]),p.type&&"signal"!==p.type&&D.ee.emitEvent(p.type,[new Q.SignalEvent(D,j,p.data,B)])}).catch(function(B){_.error(B)}):(this.ee.emitEvent("signal",[new Q.SignalEvent(this,j,p.data,void 0)]),p.type&&"signal"!==p.type&&this.ee.emitEvent(p.type,[new Q.SignalEvent(this,j,p.data,void 0)]))},W.prototype.onStreamPropertyChanged=function(p){var D=this,j=function(B){if(B.stream&&B.stream.streamId===p.streamId){var k=B.stream,P=void 0;switch(p.property){case"audioActive":P=k.audioActive,p.newValue="true"===p.newValue,k.audioActive=p.newValue;break;case"videoActive":P=k.videoActive,p.newValue="true"===p.newValue,k.videoActive=p.newValue;break;case"videoDimensions":P=k.videoDimensions,p.newValue=JSON.parse(JSON.parse(p.newValue)),k.videoDimensions=p.newValue;break;case"filter":P=k.filter,p.newValue=Object.keys(p.newValue).length>0?p.newValue:void 0,void 0!==p.newValue?(k.filter=new S.Filter(p.newValue.type,p.newValue.options),k.filter.stream=k,p.newValue.lastExecMethod&&(k.filter.lastExecMethod=p.newValue.lastExecMethod)):delete k.filter,p.newValue=k.filter}D.ee.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(D,k,p.property,p.newValue,P,p.reason)]),k.streamManager&&k.streamManager.emitEvent("streamPropertyChanged",[new L.StreamPropertyChangedEvent(k.streamManager,k,p.property,p.newValue,P,p.reason)])}else _.error("No stream with streamId '"+p.streamId+"' found for connection '"+p.connectionId+"' on 'streamPropertyChanged' event")};p.connectionId===this.connection.connectionId?j(this.connection):this.getRemoteConnection(p.connectionId,"onStreamPropertyChanged").then(function(B){j(B)}).catch(function(B){_.error(B)})},W.prototype.onConnectionPropertyChanged=function(p){var D;switch(p.property){case"role":D=this.connection.role.slice(),this.connection.role=p.newValue,this.connection.localOptions.role=p.newValue;break;case"record":D=this.connection.record,p.newValue="true"===p.newValue,this.connection.record=p.newValue,this.connection.localOptions.record=p.newValue}this.ee.emitEvent("connectionPropertyChanged",[new ue.ConnectionPropertyChangedEvent(this,this.connection,p.property,p.newValue,D)])},W.prototype.onNetworkQualityLevelChangedChanged=function(p){var D=this;p.connectionId===this.connection.connectionId?this.ee.emitEvent("networkQualityLevelChanged",[new ee.NetworkQualityLevelChangedEvent(this,p.newValue,p.oldValue,this.connection)]):this.getConnection(p.connectionId,"Connection not found for connectionId "+p.connectionId).then(function(j){D.ee.emitEvent("networkQualityLevelChanged",[new ee.NetworkQualityLevelChangedEvent(D,p.newValue,p.oldValue,j)])}).catch(function(j){_.error(j)})},W.prototype.recvIceCandidate=function(p){var j=new RTCIceCandidate({candidate:p.candidate,sdpMLineIndex:p.sdpMLineIndex,sdpMid:p.sdpMid});this.getConnection(p.senderConnectionId,"Connection not found for connectionId "+p.senderConnectionId+" owning endpoint "+p.endpointName+". Ice candidate will be ignored: "+j).then(function(B){var k=B.stream;k.getWebRtcPeer().addIceCandidate(j).catch(function(P){_.error("Error adding candidate for "+k.streamId+" stream of endpoint "+p.endpointName+": "+P)})}).catch(function(B){_.error(B)})},W.prototype.onSessionClosed=function(p){_.info("Session closed: "+JSON.stringify(p));var D=p.sessionId;void 0!==D?this.ee.emitEvent("session-closed",[{session:D}]):_.warn("Session undefined on session closed",p)},W.prototype.onLostConnection=function(p){_.warn("Lost connection in Session "+this.sessionId),this.sessionId&&this.connection&&!this.connection.disposed&&this.leave(!0,p)},W.prototype.onRecoveredConnection=function(){_.info("Recovered connection in Session "+this.sessionId),this.reconnectBrokenStreams(),this.ee.emitEvent("reconnected",[])},W.prototype.onMediaError=function(p){_.error("Media error: "+JSON.stringify(p));var D=p.error;D?this.ee.emitEvent("error-media",[{error:D}]):_.warn("Received undefined media error:",p)},W.prototype.onRecordingStarted=function(p){this.ee.emitEvent("recordingStarted",[new b.RecordingEvent(this,"recordingStarted",p.id,p.name)])},W.prototype.onRecordingStopped=function(p){this.ee.emitEvent("recordingStopped",[new b.RecordingEvent(this,"recordingStopped",p.id,p.name,p.reason)])},W.prototype.onFilterEventDispatched=function(p){var D=this,j=p.connectionId;this.getConnection(j,"No connection found for connectionId "+j).then(function(B){_.info('Filter event of type "'.concat(p.eventType,'" dispatched'));var k=B.stream;if(!k||!k.filter)return _.error('Filter event of type "'.concat(p.eventType,'" dispatched for stream ').concat(k.streamId," but there is no ").concat(k?"filter":"stream"," defined"));var P=k.filter.handlers.get(p.eventType);if(!P||"function"!=typeof P){var K=Array.from(k.filter.handlers.keys());return _.error('Filter event of type "'.concat(p.eventType,'" not handled or not a function! Active filter events: ').concat(K.join(",")))}P.call(D,new T.FilterEvent(k.filter,p.eventType,p.data))})},W.prototype.onForciblyReconnectSubscriber=function(p){var D=this;return new Promise(function(j,B){D.getRemoteConnection(p.connectionId,"onForciblyReconnectSubscriber").then(function(k){if(!k.stream||k.stream.streamId!==p.streamId){var ie="No stream with streamId '"+p.streamId+"' found for connection '"+p.connectionId+"' on 'streamPropertyChanged' event";return _.error(ie),B(ie)}var P=k.stream;if(P.setupReconnectionEventEmitter(j,B)){if(null!=P.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent)return P.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=p,B("Ongoing forced subscriber reconnection");P.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent=p;var K=function(){var _e=P.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent;delete P.reconnectionEventEmitter.onForciblyReconnectSubscriberLastEvent,D.onForciblyReconnectSubscriber(_e)};return P.reconnectionEventEmitter.once("success",function(){K()}),void P.reconnectionEventEmitter.once("error",function(){K()})}P.completeWebRtcPeerReceive(!0,!0,p.sdpOffer).then(function(){return P.finalResolveForSubscription(!0,j)}).catch(function(_e){return P.finalRejectForSubscription(!0,"Error while forcibly reconnecting remote stream ".concat(p.streamId,": ").concat(_e.toString()),B)})}).catch(function(k){return _.error(k),B(k)})})},W.prototype.reconnectBrokenStreams=function(){_.info("Re-establishing media connections...");var p=!1;!!this.connection.stream&&this.connection.stream.streamIceConnectionStateBroken()&&(_.warn("Re-establishing Publisher "+this.connection.stream.streamId),this.connection.stream.initWebRtcPeerSend(!0),p=!0),this.remoteConnections.forEach(function(D){D.stream&&D.stream.streamIceConnectionStateBroken()&&(_.warn("Re-establishing Subscriber "+D.stream.streamId),D.stream.initWebRtcPeerReceive(!0),p=!0)}),p||_.info("There were no media streams in need of a reconnection")},W.prototype.emitEvent=function(p,D){this.ee.emitEvent(p,D)},W.prototype.leave=function(p,D){var j=this;if(_.info("Leaving Session (forced="+(p=!!p)+")"),this.stopVideoDataIntervals(),this.connection){if(this.connection.disposed||p?this.openvidu.closeWs():this.openvidu.sendRequest("leaveRoom",function(k,P){k&&_.error("leaveRoom error: ".concat(JSON.stringify(k))),j.openvidu.closeWs()}),this.stopPublisherStream(D),!this.connection.disposed){var B=new U.SessionDisconnectedEvent(this,D);this.ee.emitEvent("sessionDisconnected",[B]),B.callDefaultBehavior()}}else _.warn("You were not connected to the session "+this.sessionId);_.flush()},W.prototype.initializeParams=function(p){return{token:p||"",session:this.sessionId,platform:Y.getDescription()?Y.getDescription():"unknown",sdkVersion:this.openvidu.libraryVersion,metadata:this.options.metadata?this.options.metadata:"",secret:this.openvidu.getSecret(),recorder:this.openvidu.getRecorder()}},W.prototype.sendVideoData=function(p,D,j,B){var P,K,k=this;if(void 0===D&&(D=1),void 0===j&&(j=!1),void 0===B&&(B=1),Y.isChromeBrowser()||Y.isChromeMobileBrowser()||Y.isOperaBrowser()||Y.isOperaMobileBrowser()||Y.isEdgeBrowser()||Y.isEdgeMobileBrowser()||Y.isElectron()||Y.isSafariBrowser()&&!Y.isIonicIos()||Y.isAndroidBrowser()||Y.isSamsungBrowser()||Y.isIonicAndroid()||Y.isIOSWithSafari()){var ie=function(){return q(k,void 0,void 0,function(){var Ae,be,He;return V(this,function(dt){switch(dt.label){case 0:return"connected"!==(Ae=p.stream.getRTCPeerConnection()).connectionState?[3,2]:[4,Ae.getStats()];case 1:be=dt.sent(),He=[],be.forEach(function(Le){"frameWidth"in Le&&"frameHeight"in Le&&0===He.length&&He.push(Le)}),He.length>0&&this.openvidu.sendRequest("videoData",{height:He[0].frameHeight,width:He[0].frameWidth,videoActive:null!=p.stream.videoActive&&p.stream.videoActive,audioActive:null!=p.stream.audioActive&&p.stream.audioActive},function(Le,Ge){Le&&_.error("Error sending 'videoData' event",Le)}),dt.label=2;case 2:return[2]}})})};if(j){var _e=1;this.videoDataInterval=setInterval(function(){_e<B?(_e++,ie()):clearInterval(k.videoDataInterval)},1e3*D)}else this.videoDataTimeout=setTimeout(ie,1e3*D)}else Y.isFirefoxBrowser()||Y.isFirefoxMobileBrowser()||Y.isIonicIos()||Y.isReactNative()?this.openvidu.sendRequest("videoData",{height:(null===(P=p.stream.videoDimensions)||void 0===P?void 0:P.height)||0,width:(null===(K=p.stream.videoDimensions)||void 0===K?void 0:K.width)||0,videoActive:null!=p.stream.videoActive&&p.stream.videoActive,audioActive:null!=p.stream.audioActive&&p.stream.audioActive},function(Ae,be){Ae&&_.error("Error sending 'videoData' event",Ae)}):_.error("Browser "+Y.getName()+" (version "+Y.getVersion()+") for "+Y.getFamily()+" is not supported in OpenVidu for Network Quality")},W.prototype.sessionConnected=function(){return null!=this.connection},W.prototype.notConnectedError=function(){return new M.OpenViduError(M.OpenViduErrorName.OPENVIDU_NOT_CONNECTED,"There is no connection to the session. Method 'Session.connect' must be successfully completed first")},W.prototype.anySpeechEventListenerEnabled=function(p,D,j){var B=this.ee.getListeners(p);if(D&&(B=B.filter(function(ie){return ie.once})),B.length>0)return!0;var P=0;if(j){var K=j.ee.getListeners(p);D&&(K=K.filter(function(ie){return ie.once})),P=K.length}return P>0},W.prototype.getTokenParams=function(p){var D=p.match(/^(wss?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(D){var j={protocol:D[1],host:D[2],hostname:D[3],port:D[4],pathname:D[5],search:D[6],hash:D[7]},B=p.split("?"),k=decodeURI(B[1]).split("&").map(function(P){return P.split("=")}).reduce(function(P,K){return P[K[0]]=K[1],P},{});return{sessionId:k.sessionId,secret:k.secret,recorder:k.recorder,webrtcStatsInterval:k.webrtcStatsInterval,sendBrowserLogs:k.sendBrowserLogs,edition:k.edition,wsUri:"wss://"+j.host+"/openvidu",httpUri:"https://"+j.host}}throw new Error('Token not valid: "'.concat(p,'"'))},W.prototype.connectAux=function(p){var D=this;return new Promise(function(j,B){D.openvidu.startWs(function(k){if(k)return B(k);var P=D.initializeParams(p);D.openvidu.sendRequest("joinRoom",P,function(K,ie){if(K)return B(K);D.processJoinRoomResponse(ie,p),D.connection=new y.Connection(D,ie);var _e={connections:new Array,streams:new Array};return ie.value.forEach(function(be){var He=new y.Connection(D,be);D.remoteConnections.set(He.connectionId,He),_e.connections.push(He),He.stream&&(D.remoteStreamsCreated.set(He.stream.streamId,!0),_e.streams.push(He.stream))}),D.ee.emitEvent("connectionCreated",[new x.ConnectionEvent(!1,D,"connectionCreated",D.connection,"")]),_e.connections.forEach(function(be){D.ee.emitEvent("connectionCreated",[new x.ConnectionEvent(!1,D,"connectionCreated",be,"")])}),_e.streams.forEach(function(be){D.ee.emitEvent("streamCreated",[new N.StreamEvent(!1,D,"streamCreated",be,"")])}),j()})})})},W.prototype.stopPublisherStream=function(p){this.connection.stream&&(this.connection.stream.disposeWebRtcPeer(),this.connection.stream.isLocalStreamPublished&&this.connection.stream.ee.emitEvent("local-stream-destroyed",[p]))},W.prototype.stopVideoDataIntervals=function(){clearInterval(this.videoDataInterval),clearTimeout(this.videoDataTimeout)},W.prototype.stringClientMetadata=function(p){return"string"!=typeof p?JSON.stringify(p):p},W.prototype.getConnection=function(p,D){var j=this;return new Promise(function(B,k){var P=j.remoteConnections.get(p);return P?B(P):j.connection.connectionId===p?B(j.connection):k(new M.OpenViduError(M.OpenViduErrorName.GENERIC_ERROR,D))})},W.prototype.getRemoteConnection=function(p,D){var j=this;return new Promise(function(B,k){var P=j.remoteConnections.get(p);if(P)return B(P);var K="Remote connection "+p+" unknown when '"+D+"'. Existing remote connections: "+JSON.stringify(j.remoteConnections.keys());return k(new M.OpenViduError(M.OpenViduErrorName.GENERIC_ERROR,K))})},W.prototype.processToken=function(p){var D=this.getTokenParams(p);this.sessionId=D.sessionId,D.secret&&(this.openvidu.secret=D.secret),D.recorder&&(this.openvidu.recorder=!0),D.webrtcStatsInterval&&(this.openvidu.webrtcStatsInterval=D.webrtcStatsInterval),D.sendBrowserLogs&&(this.openvidu.sendBrowserLogs=D.sendBrowserLogs),this.openvidu.isAtLeastPro="pro"===D.edition||"enterprise"===D.edition,this.openvidu.isEnterprise="enterprise"===D.edition,this.openvidu.wsUri=D.wsUri,this.openvidu.httpUri=D.httpUri},W.prototype.processJoinRoomResponse=function(p,D){if(this.sessionId=p.session,null!=p.customIceServers&&p.customIceServers.length>0){this.openvidu.iceServers=[];for(var j=0,B=p.customIceServers;j<B.length;j++){var k=B[j],P={urls:[k.url]};_.log("STUN/TURN server IP: "+k.url),null!=k.username&&null!=k.credential&&(P.username=k.username,P.credential=k.credential,_.log("TURN credentials ["+k.username+":"+k.credential+"]")),this.openvidu.iceServers.push(P)}}else null!=p.coturnIp&&null!=p.coturnPort&&null!=p.turnUsername&&null!=p.turnCredential&&(this.openvidu.iceServers=[{urls:["turn:"+p.coturnIp+":"+p.coturnPort],username:p.turnUsername,credential:p.turnCredential}],_.log("STUN/TURN server IP: "+p.coturnIp),_.log("TURN temp credentials ["+p.turnUsername+":"+p.turnCredential+"]"));this.openvidu.role=p.role,this.openvidu.finalUserId=p.finalUserId,this.openvidu.mediaServer=p.mediaServer,this.openvidu.videoSimulcast=p.videoSimulcast,this.capabilities={subscribe:!0,publish:"SUBSCRIBER"!==this.openvidu.role,forceUnpublish:"MODERATOR"===this.openvidu.role,forceDisconnect:"MODERATOR"===this.openvidu.role},_.info("openvidu-server version: "+p.version),null!=p.life&&(this.openvidu.life=p.life);var ie=g(p.version)-g(this.openvidu.libraryVersion);C(p.version)!==C(this.openvidu.libraryVersion)||0!=ie&&1!=ie?_.error("openvidu-browser (".concat(this.openvidu.libraryVersion,") and openvidu-server (").concat(p.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==ie&&_.warn("openvidu-browser version ".concat(this.openvidu.libraryVersion," does not match openvidu-server version ").concat(p.version,". ")+"These versions are still compatible with each other, but openvidu-browser version must be updated as soon as possible to ".concat(C(p.version),".").concat(g(p.version),".x. ")+"This client using openvidu-browser ".concat(this.openvidu.libraryVersion," will become incompatible with the next release of openvidu-server")),G.OpenViduLogger.configureJSNLog(this.openvidu,D),this.token=D},W}(w.EventDispatcher);Z.Session=R},8770:function(Se,Z,H){"use strict";var E=this&&this.__awaiter||function(C,g,_,Y){return new(_||(_=Promise))(function(F,W){function p(B){try{j(Y.next(B))}catch(k){W(k)}}function D(B){try{j(Y.throw(B))}catch(k){W(k)}}function j(B){B.done?F(B.value):function R(F){return F instanceof _?F:new _(function(W){W(F)})}(B.value).then(p,D)}j((Y=Y.apply(C,g||[])).next())})},q=this&&this.__generator||function(C,g){var Y,R,F,W,_={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return W={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(W[Symbol.iterator]=function(){return this}),W;function p(j){return function(B){return function D(j){if(Y)throw new TypeError("Generator is already executing.");for(;_;)try{if(Y=1,R&&(F=2&j[0]?R.return:j[0]?R.throw||((F=R.return)&&F.call(R),0):R.next)&&!(F=F.call(R,j[1])).done)return F;switch(R=0,F&&(j=[2&j[0],F.value]),j[0]){case 0:case 1:F=j;break;case 4:return _.label++,{value:j[1],done:!1};case 5:_.label++,R=j[1],j=[0];continue;case 7:j=_.ops.pop(),_.trys.pop();continue;default:if(!(F=(F=_.trys).length>0&&F[F.length-1])&&(6===j[0]||2===j[0])){_=0;continue}if(3===j[0]&&(!F||j[1]>F[0]&&j[1]<F[3])){_.label=j[1];break}if(6===j[0]&&_.label<F[1]){_.label=F[1],F=j;break}if(F&&_.label<F[2]){_.label=F[2],_.ops.push(j);break}F[2]&&_.ops.pop(),_.trys.pop();continue}j=g.call(C,_)}catch(B){j=[6,B],R=0}finally{Y=F=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,B])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.Stream=void 0;var G,V=H(5481),y=H(3343),S=H(1530),A=H(7153),w=H(4131),x=H(8887),T=H(7818),b=H(9383),U=H(9303),Q=H(7879),N=H(1829),L=H(1171),ue=H(8201),ee=H(2877),M=H(2937),v=N.OpenViduLogger.getInstance(),O=function(){function C(g,_){var Y=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 M,G=L.PlatformUtils.getInstance(),this.session=g,_.hasOwnProperty("id")?(this.inboundStreamOpts=_,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=_,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?Q.TypeOfVideo.CUSTOM:this.isSendScreen()?Q.TypeOfVideo.SCREEN:Q.TypeOfVideo.CAMERA),this.outboundStreamOpts.publisherProperties.filter&&(this.filter=this.outboundStreamOpts.publisherProperties.filter)),this.ee.on("mediastream-updated",function(){var R;Y.streamManager.updateMediaStream(Y.mediaStream),v.debug("Video srcObject ["+(null===(R=Y.mediaStream)||void 0===R?void 0:R.id)+"] updated in stream ["+Y.streamId+"]")})}return C.prototype.reconnect=function(){return this.reconnectStream("API")},C.prototype.applyFilter=function(g,_){var Y=this;return new Promise(function(R,F){return E(Y,void 0,void 0,function(){var W,p,D,j,B,k,P=this;return q(this,function(K){if(this.filter)return[2,F(new U.OpenViduError(U.OpenViduErrorName.GENERIC_ERROR,"There is already a filter applied to Stream "+this.streamId))];if(W=function(ie,_e){if(ie)return v.error("Error applying filter for Stream "+P.streamId,ie),F(401===ie.code?new U.OpenViduError(U.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to apply a filter"):ie);v.info("Filter successfully applied on Stream "+P.streamId);var Ae=P.filter;return P.filter=new V.Filter(g,_),P.filter.stream=P,_e&&(P.session.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(P.session,P,"filter",P.filter,Ae,"applyFilter")]),P.streamManager.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(P.streamManager,P,"filter",P.filter,Ae,"applyFilter")])),R(P.filter)},g.startsWith("VB:")){if(!this.hasVideo)return[2,F(new U.OpenViduError(U.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,F(new U.OpenViduError(U.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"The StreamManager requires some video element to be attached to it in order to apply a Virtual Background filter"))];if(!(p=this.session.token?this.session.token:_.token))return[2,F(new U.OpenViduError(U.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"!==(D=this.session.getTokenParams(p)).edition&&"enterprise"!==D.edition)return[2,F(new U.OpenViduError(U.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,"OpenVidu Virtual Background API is available from OpenVidu Pro edition onwards"))];p=encodeURIComponent(btoa(p)),v.info("Applying Virtual Background to stream "+this.streamId),j=function(){return E(P,void 0,void 0,function(){var ie,_e,Ae,be,He,Le;return q(this,function(Ge){switch(Ge.label){case 0:return Ge.trys.push([0,8,,9]),ie=this.streamId+"_"+(0,ue.v4)(),_e=this.mediaStream.clone(),(Ae=this.streamManager.videos[0].video.cloneNode(!1)).id=VirtualBackground.VirtualBackground.SOURCE_VIDEO_PREFIX+ie,Ae.srcObject=_e,Ae.muted=!0,this.virtualBackgroundSourceElements={videoClone:Ae,mediaStreamClone:_e},VirtualBackground.VirtualBackground.hideHtmlElement(Ae,!1),VirtualBackground.VirtualBackground.appendHtmlElementToHiddenContainer(Ae,ie),[4,Ae.play()];case 1:switch(Ge.sent(),be=new VirtualBackground.VirtualBackground({id:ie,openviduServerUrl:new URL(D.httpUri),openviduToken:p,inputVideo:Ae,inputResolution:"160x96",outputFramerate:24}),He=void 0,g){case"VB:blur":return[3,2];case"VB:image":return[3,4]}return[3,6];case 2:return[4,be.backgroundBlur(_)];case 3:case 5:return He=Ge.sent(),[3,7];case 4:return[4,be.backgroundImage(_)];case 6:throw new Error("Unknown Virtual Background filter: "+g);case 7:return this.virtualBackgroundSinkElements={VB:be,video:He},Ae.style.display="none",this.streamManager.remote?this.streamManager.replaceTrackInMediaStream(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1):this.streamManager.replaceTrackAux(this.virtualBackgroundSinkElements.video.srcObject.getVideoTracks()[0],!1),W(void 0,!1),[3,9];case 8:return Le=Ge.sent(),W(Le.name===U.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR?new U.OpenViduError(U.OpenViduErrorName.VIRTUAL_BACKGROUND_ERROR,Le.message):Le,!1),[3,9];case 9:return[2]}})})},"undefined"==typeof VirtualBackground?((B=document.createElement("script")).type="text/javascript",B.src=D.httpUri+"/openvidu/virtual-background/openvidu-virtual-background.js?token="+p,B.onload=function(){return E(P,void 0,void 0,function(){var ie;return q(this,function(_e){switch(_e.label){case 0:return _e.trys.push([0,2,,3]),[4,j()];case 1:return _e.sent(),R(new V.Filter(g,_)),[3,3];case 2:return ie=_e.sent(),F(ie),[3,3];case 3:return[2]}})})},document.body.appendChild(B)):j().then(function(){return R(new V.Filter(g,_))}).catch(function(ie){return F(ie)})}else{if(!this.session.sessionConnected())return[2,F(this.session.notConnectedError())];v.info("Applying server filter to stream "+this.streamId),"string"!=typeof(k=_=null!=_?_:{})&&(k=JSON.stringify(k)),this.session.openvidu.sendRequest("applyFilter",{streamId:this.streamId,type:g,options:k},function(ie,_e){W(ie,!0)})}return[2]})})})},C.prototype.removeFilter=function(){return E(this,void 0,void 0,function(){return q(this,function(g){switch(g.label){case 0:return[4,this.removeFilterAux(!1)];case 1:return[2,g.sent()]}})})},C.prototype.getRTCPeerConnection=function(){return this.webRtcPeer.pc},C.prototype.getMediaStream=function(){return this.mediaStream},C.prototype.removeFilterAux=function(g){var _=this;return new Promise(function(Y,R){return E(_,void 0,void 0,function(){var F,W,p,j,D=this;return q(this,function(B){switch(B.label){case 0:if(F=function(k,P){if(k)return delete D.filter,v.error("Error removing filter for Stream "+D.streamId,k),R(401===k.code?new U.OpenViduError(U.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to remove a filter"):k);v.info("Filter successfully removed from Stream "+D.streamId);var K=D.filter;return delete D.filter,P&&(D.session.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(D.session,D,"filter",D.filter,K,"applyFilter")]),D.streamManager.emitEvent("streamPropertyChanged",[new b.StreamPropertyChangedEvent(D.streamManager,D,"filter",D.filter,K,"applyFilter")])),Y()},!this.filter)return[3,12];if(!(null===(j=this.filter)||void 0===j?void 0:j.type.startsWith("VB:")))return[3,10];B.label=1;case 1:return B.trys.push([1,8,,9]),W=this.virtualBackgroundSourceElements.mediaStreamClone,g?[3,6]:this.streamManager.remote?[4,this.streamManager.replaceTrackInMediaStream(W.getVideoTracks()[0],!1)]:[3,3];case 2:return B.sent(),[3,5];case 3:return[4,this.streamManager.replaceTrackAux(W.getVideoTracks()[0],!1)];case 4:B.sent(),B.label=5;case 5:return[3,7];case 6:W.getTracks().forEach(function(k){return k.stop()}),B.label=7;case 7:return this.virtualBackgroundSinkElements.VB.cleanUp(),delete this.virtualBackgroundSinkElements,delete this.virtualBackgroundSourceElements,[2,F(void 0,!1)];case 8:return p=B.sent(),[2,F(p,!1)];case 9:return[3,11];case 10:if(!this.session.sessionConnected())return[2,R(this.session.notConnectedError())];v.info("Removing filter of stream "+this.streamId),this.session.openvidu.sendRequest("removeFilter",{streamId:this.streamId},function(k,P){return F(k,!0)}),B.label=11;case 11:return[3,13];case 12:return[2,R(new U.OpenViduError(U.OpenViduErrorName.GENERIC_ERROR,"Stream "+this.streamId+" has no filter applied"))];case 13:return[2]}})})})},C.prototype.setMediaStream=function(g){this.mediaStream=g},C.prototype.updateMediaStreamInVideos=function(){this.ee.emitEvent("mediastream-updated",[])},C.prototype.getWebRtcPeer=function(){return this.webRtcPeer},C.prototype.subscribeToMyRemote=function(g){this.isSubscribeToRemote=g},C.prototype.setOutboundStreamOptions=function(g){this.outboundStreamOpts=g},C.prototype.subscribe=function(){var g=this;return new Promise(function(_,Y){g.initWebRtcPeerReceive(!1).then(function(){return _()}).catch(function(R){return Y(R)})})},C.prototype.publish=function(){var g=this;return new Promise(function(_,Y){g.isLocalStreamReadyToPublish?g.initWebRtcPeerSend(!1).then(function(){return _()}).catch(function(R){return Y(R)}):g.ee.once("stream-ready-to-publish",function(){g.publish().then(function(){return _()}).catch(function(R){return Y(R)})})})},C.prototype.disposeWebRtcPeer=function(){var g;this.webRtcPeer&&(this.webRtcPeer.dispose(),g=this.webRtcPeer.getId()),this.stopWebRtcStats(),v.info((this.outboundStreamOpts?"Outbound ":"Inbound ")+"RTCPeerConnection with id ["+g+"] from 'Stream' with id ["+this.streamId+"] is now closed")},C.prototype.disposeMediaStream=function(){return E(this,void 0,void 0,function(){var g;return q(this,function(_){switch(_.label){case 0:if(!this.filter||!this.filter.type.startsWith("VB:"))return[3,4];_.label=1;case 1:return _.trys.push([1,3,,4]),[4,this.removeFilterAux(!0)];case 2:return _.sent(),console.debug("Success removing Virtual Background filter for stream ".concat(this.streamId)),[3,4];case 3:return g=_.sent(),console.error("Error removing Virtual Background filter for stream ".concat(this.streamId),g),[3,4];case 4:return this.mediaStream&&(this.mediaStream.getAudioTracks().forEach(function(Y){Y.stop()}),this.mediaStream.getVideoTracks().forEach(function(Y){Y.stop()}),delete this.mediaStream),this.localMediaStreamWhenSubscribedToRemote&&(this.localMediaStreamWhenSubscribedToRemote.getAudioTracks().forEach(function(Y){Y.stop()}),this.localMediaStreamWhenSubscribedToRemote.getVideoTracks().forEach(function(Y){Y.stop()}),delete this.localMediaStreamWhenSubscribedToRemote),this.speechEvent&&(this.speechEvent.stop&&this.speechEvent.stop(),delete this.speechEvent),v.info((this.outboundStreamOpts?"Local ":"Remote ")+"MediaStream from 'Stream' with id ["+this.streamId+"] is now disposed"),[2]}})})},C.prototype.displayMyRemote=function(){return this.isSubscribeToRemote},C.prototype.isSendAudio=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.audioSource&&!1!==this.outboundStreamOpts.publisherProperties.audioSource},C.prototype.isSendVideo=function(){return!!this.outboundStreamOpts&&null!==this.outboundStreamOpts.publisherProperties.videoSource&&!1!==this.outboundStreamOpts.publisherProperties.videoSource},C.prototype.isSendScreen=function(){var g="screen"===this.outboundStreamOpts.publisherProperties.videoSource;return G.isElectron()&&(g="string"==typeof this.outboundStreamOpts.publisherProperties.videoSource&&this.outboundStreamOpts.publisherProperties.videoSource.startsWith("screen:")),!!this.outboundStreamOpts&&g},C.prototype.enableHarkSpeakingEvent=function(){var g=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabled&&this.speechEvent&&(this.harkSpeakingEnabled=!0,this.speechEvent.on("speaking",function(){g.session.emitEvent("publisherStartSpeaking",[new x.PublisherSpeakingEvent(g.session,"publisherStartSpeaking",g.connection,g.streamId)]),g.streamManager.emitEvent("publisherStartSpeaking",[new x.PublisherSpeakingEvent(g.streamManager,"publisherStartSpeaking",g.connection,g.streamId)]),g.harkSpeakingEnabledOnce=!1}))},C.prototype.enableOnceHarkSpeakingEvent=function(){var g=this;this.setHarkListenerIfNotExists(),!this.harkSpeakingEnabledOnce&&this.speechEvent&&(this.harkSpeakingEnabledOnce=!0,this.speechEvent.once("speaking",function(){g.harkSpeakingEnabledOnce&&(g.session.emitEvent("publisherStartSpeaking",[new x.PublisherSpeakingEvent(g.session,"publisherStartSpeaking",g.connection,g.streamId)]),g.streamManager.emitEvent("publisherStartSpeaking",[new x.PublisherSpeakingEvent(g.streamManager,"publisherStartSpeaking",g.connection,g.streamId)])),g.disableHarkSpeakingEvent(!0)}))},C.prototype.disableHarkSpeakingEvent=function(g){if(this.speechEvent){if(this.harkSpeakingEnabledOnce=!1,g){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)}},C.prototype.enableHarkStoppedSpeakingEvent=function(){var g=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabled&&this.speechEvent&&(this.harkStoppedSpeakingEnabled=!0,this.speechEvent.on("stopped_speaking",function(){g.session.emitEvent("publisherStopSpeaking",[new x.PublisherSpeakingEvent(g.session,"publisherStopSpeaking",g.connection,g.streamId)]),g.streamManager.emitEvent("publisherStopSpeaking",[new x.PublisherSpeakingEvent(g.streamManager,"publisherStopSpeaking",g.connection,g.streamId)]),g.harkStoppedSpeakingEnabledOnce=!1}))},C.prototype.enableOnceHarkStoppedSpeakingEvent=function(){var g=this;this.setHarkListenerIfNotExists(),!this.harkStoppedSpeakingEnabledOnce&&this.speechEvent&&(this.harkStoppedSpeakingEnabledOnce=!0,this.speechEvent.once("stopped_speaking",function(){g.harkStoppedSpeakingEnabledOnce&&(g.session.emitEvent("publisherStopSpeaking",[new x.PublisherSpeakingEvent(g.session,"publisherStopSpeaking",g.connection,g.streamId)]),g.streamManager.emitEvent("publisherStopSpeaking",[new x.PublisherSpeakingEvent(g.streamManager,"publisherStopSpeaking",g.connection,g.streamId)])),g.disableHarkStoppedSpeakingEvent(!0)}))},C.prototype.disableHarkStoppedSpeakingEvent=function(g){if(this.speechEvent){if(this.harkStoppedSpeakingEnabledOnce=!1,g){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)}},C.prototype.enableHarkVolumeChangeEvent=function(g){var _=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabled||g)&&(this.harkVolumeChangeEnabled=!0,this.speechEvent.on("volume_change",function(Y){var F={newValue:Y,oldValue:_.speechEvent.oldVolumeValue};_.speechEvent.oldVolumeValue=Y,_.streamManager.emitEvent("streamAudioVolumeChange",[new T.StreamManagerEvent(_.streamManager,"streamAudioVolumeChange",F)])})):this.harkVolumeChangeEnabled=!0},C.prototype.enableOnceHarkVolumeChangeEvent=function(g){var _=this;this.setHarkListenerIfNotExists()?(!this.harkVolumeChangeEnabledOnce||g)&&(this.harkVolumeChangeEnabledOnce=!0,this.speechEvent.once("volume_change",function(Y){var F={newValue:Y,oldValue:_.speechEvent.oldVolumeValue};_.speechEvent.oldVolumeValue=Y,_.disableHarkVolumeChangeEvent(!0),_.streamManager.emitEvent("streamAudioVolumeChange",[new T.StreamManagerEvent(_.streamManager,"streamAudioVolumeChange",F)])})):this.harkVolumeChangeEnabledOnce=!0},C.prototype.disableHarkVolumeChangeEvent=function(g){if(this.speechEvent){if(this.harkVolumeChangeEnabledOnce=!1,g){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)}},C.prototype.isLocal=function(){return!this.inboundStreamOpts&&!!this.outboundStreamOpts},C.prototype.getSelectedIceCandidate=function(){var g=this;return new Promise(function(_,Y){g.webRtcStats.getSelectedIceCandidateInfo().then(function(R){return _(R)}).catch(function(R){return Y(R)})})},C.prototype.getRemoteIceCandidateList=function(){return this.webRtcPeer.remoteCandidatesQueue},C.prototype.getLocalIceCandidateList=function(){return this.webRtcPeer.localCandidatesQueue},C.prototype.streamIceConnectionStateBroken=function(){if(!this.getWebRtcPeer()||!this.getRTCPeerConnection())return!1;if(this.isLocal()&&this.session.openvidu.advancedConfiguration.forceMediaReconnectionAfterNetworkDrop)return v.warn('OpenVidu Browser advanced configuration option "forceMediaReconnectionAfterNetworkDrop" is enabled. Stream '.concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") will force a reconnection")),!0;var g=this.getRTCPeerConnection().iceConnectionState;return"connected"!==g&&"completed"!==g},C.prototype.setHarkListenerIfNotExists=function(){if(this.mediaStream){if(!this.speechEvent){var g=this.harkOptions?this.harkOptions:this.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{};g.interval="number"==typeof g.interval?g.interval:100,g.threshold="number"==typeof g.threshold?g.threshold:-50,this.speechEvent=ee(this.mediaStream,g)}return!0}return!1},C.prototype.setupReconnectionEventEmitter=function(g,_){return null==this.reconnectionEventEmitter?(this.reconnectionEventEmitter=new M,!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 g()}),this.reconnectionEventEmitter.once("error",function(Y){return _(Y)}),!0)},C.prototype.initWebRtcPeerSend=function(g){var _=this;return new Promise(function(Y,R){var F;if(g){if(_.setupReconnectionEventEmitter(Y,R))return}else _.initHarkEvents();var p=function(B){var k;return g&&(null===(k=_.reconnectionEventEmitter)||void 0===k||k.emitEvent("error",[B]),delete _.reconnectionEventEmitter),R(B)},j={mediaConstraints:{audio:_.hasAudio,video:_.hasVideo},simulcast:null!==(F=_.outboundStreamOpts.publisherProperties.videoSimulcast)&&void 0!==F?F:_.session.openvidu.videoSimulcast,onIceCandidate:_.connection.sendIceCandidate.bind(_.connection),onIceConnectionStateException:function(B,k,P){_.session.emitEvent("exception",[new w.ExceptionEvent(_.session,B,_,k,P)])},iceServers:_.getIceServersConf(),mediaStream:_.mediaStream,mediaServer:_.session.openvidu.mediaServer,typeOfVideo:_.typeOfVideo?Q.TypeOfVideo[_.typeOfVideo]:void 0};"mediasoup"!==_.session.openvidu.mediaServer&&(j.simulcast=!1),g&&_.disposeWebRtcPeer(),_.webRtcPeer=_.displayMyRemote()?new S.WebRtcPeerSendrecv(j):new S.WebRtcPeerSendonly(j),_.webRtcPeer.addIceConnectionStateChangeListener("publisher of "+_.connection.connectionId),_.webRtcPeer.createOffer().then(function(B){_.webRtcPeer.processLocalOffer(B).then(function(){!function(B){v.debug("Sending SDP offer to publish as "+_.streamId,B);var P,k=g?"reconnectStream":"publishVideo";if(g)P={stream:_.streamId,sdpString:B};else{var K=void 0;_.isSendVideo()&&(K="undefined"!=typeof MediaStreamTrack&&_.outboundStreamOpts.publisherProperties.videoSource instanceof MediaStreamTrack?Q.TypeOfVideo.CUSTOM:_.isSendScreen()?Q.TypeOfVideo.SCREEN:Q.TypeOfVideo.CAMERA),P={doLoopback:_.displayMyRemote()||!1,hasAudio:_.isSendAudio(),hasVideo:_.isSendVideo(),audioActive:_.audioActive,videoActive:_.videoActive,typeOfVideo:K,frameRate:_.frameRate?_.frameRate:-1,videoDimensions:JSON.stringify(_.videoDimensions),filter:_.outboundStreamOpts.publisherProperties.filter,sdpOffer:B}}_.session.openvidu.sendRequest(k,P,function(ie,_e){ie?p(401===ie.code?new U.OpenViduError(U.OpenViduErrorName.OPENVIDU_PERMISSION_DENIED,"You don't have permissions to publish"):"Error on publishVideo: "+JSON.stringify(ie)):_.webRtcPeer.processRemoteAnswer(_e.sdpAnswer).then(function(){_.streamId=_e.id,_.creationTime=_e.createdAt,_.isLocalStreamPublished=!0,_.publishedOnce=!0,_.displayMyRemote()&&(_.localMediaStreamWhenSubscribedToRemote=_.mediaStream,_.remotePeerSuccessfullyEstablished(g)),_.ee.emitEvent(g?"stream-reconnected-by-publisher":"stream-created-by-publisher",[]),_.initWebRtcStats(),v.info("'Publisher' ("+_.streamId+") successfully "+(g?"reconnected":"published")+" to session"),function(){var B;g&&(null===(B=_.reconnectionEventEmitter)||void 0===B||B.emitEvent("success"),delete _.reconnectionEventEmitter),Y()}()}).catch(function(Ae){p(Ae)})})}(B.sdp)}).catch(function(k){p(new Error("(publish) SDP process local offer error: "+JSON.stringify(k)))})}).catch(function(B){p(new Error("(publish) SDP create offer error: "+JSON.stringify(B)))})})},C.prototype.finalResolveForSubscription=function(g,_){var Y;return v.info("'Subscriber' ("+this.streamId+") successfully "+(g?"reconnected":"subscribed")),this.remotePeerSuccessfullyEstablished(g),this.initWebRtcStats(),g&&(null===(Y=this.reconnectionEventEmitter)||void 0===Y||Y.emitEvent("success"),delete this.reconnectionEventEmitter),_()},C.prototype.finalRejectForSubscription=function(g,_,Y){var R;return v.error("Error for 'Subscriber' ("+this.streamId+") while trying to "+(g?"reconnect":"subscribe")+": "+_.toString()),g&&(null===(R=this.reconnectionEventEmitter)||void 0===R||R.emitEvent("error",[_]),delete this.reconnectionEventEmitter),Y(_)},C.prototype.initWebRtcPeerReceive=function(g){var _=this;return new Promise(function(Y,R){g&&_.setupReconnectionEventEmitter(Y,R)||("mediasoup"===_.session.openvidu.mediaServer?_.initWebRtcPeerReceiveFromServer(g).then(function(){return _.finalResolveForSubscription(g,Y)}).catch(function(F){return _.finalRejectForSubscription(g,F,R)}):_.initWebRtcPeerReceiveFromClient(g).then(function(){return _.finalResolveForSubscription(g,Y)}).catch(function(F){return _.finalRejectForSubscription(g,F,R)}))})},C.prototype.initWebRtcPeerReceiveFromClient=function(g){var _=this;return new Promise(function(Y,R){_.completeWebRtcPeerReceive(g,!1).then(function(F){_.webRtcPeer.processRemoteAnswer(F.sdpAnswer).then(function(){return Y()}).catch(function(W){return R(W)})}).catch(function(F){return R(F)})})},C.prototype.initWebRtcPeerReceiveFromServer=function(g){var _=this;return new Promise(function(Y,R){_.session.openvidu.sendRequest("prepareReceiveVideoFrom",{sender:_.streamId,reconnect:g},function(F,W){if(F)return R(new Error("Error on prepareReceiveVideoFrom: "+JSON.stringify(F)));_.completeWebRtcPeerReceive(g,!1,W.sdpOffer).then(function(){return Y()}).catch(function(p){return R(p)})})})},C.prototype.completeWebRtcPeerReceive=function(g,_,Y){var R=this;return new Promise(function(F,W){v.debug("'Session.subscribe(Stream)' called");var p=function(j){v.debug("Sending local SDP ".concat(Y?"answer":"offer"," to subscribe to ").concat(R.streamId),j);var B=g?"reconnectStream":"receiveVideoFrom",k={};k[g?"stream":"sender"]=R.streamId,Y?k[g?"sdpString":"sdpAnswer"]=j:k.sdpOffer=j,g&&(k.forciblyReconnect=_),R.session.openvidu.sendRequest(B,k,function(P,K){return P?W(new Error("Error on "+B+" : "+JSON.stringify(P))):F(K)})},D={mediaConstraints:{audio:R.hasAudio,video:R.hasVideo},simulcast:!1,onIceCandidate:R.connection.sendIceCandidate.bind(R.connection),onIceConnectionStateException:function(j,B,k){R.session.emitEvent("exception",[new w.ExceptionEvent(R.session,j,R,B,k)])},iceServers:R.getIceServersConf(),mediaServer:R.session.openvidu.mediaServer,typeOfVideo:R.typeOfVideo?Q.TypeOfVideo[R.typeOfVideo]:void 0};g&&R.disposeWebRtcPeer(),R.webRtcPeer=new S.WebRtcPeerRecvonly(D),R.webRtcPeer.addIceConnectionStateChangeListener(R.streamId),Y?R.webRtcPeer.processRemoteOffer(Y).then(function(){R.webRtcPeer.createAnswer().then(function(j){R.webRtcPeer.processLocalAnswer(j).then(function(){p(j.sdp)}).catch(function(B){return W(new Error("(subscribe) SDP process local answer error: "+JSON.stringify(B)))})}).catch(function(j){return W(new Error("(subscribe) SDP create answer error: "+JSON.stringify(j)))})}).catch(function(j){return W(new Error("(subscribe) SDP process remote offer error: "+JSON.stringify(j)))}):R.webRtcPeer.createOffer().then(function(j){R.webRtcPeer.processLocalOffer(j).then(function(){p(j.sdp)}).catch(function(B){return W(new Error("(subscribe) SDP process local offer error: "+JSON.stringify(B)))})}).catch(function(j){return W(new Error("(subscribe) SDP create offer error: "+JSON.stringify(j)))})})},C.prototype.remotePeerSuccessfullyEstablished=function(g){g&&null!=this.mediaStream&&this.disposeMediaStream(),this.mediaStream=new MediaStream;for(var _,Y=0,R=this.webRtcPeer.pc.getReceivers();Y<R.length;Y++)(_=R[Y]).track&&this.mediaStream.addTrack(_.track);if(v.debug("Peer remote stream",this.mediaStream),this.mediaStream){if(this.streamManager instanceof y.Subscriber){if(this.mediaStream.getAudioTracks()[0]){var F=g?this.audioActive:!!this.streamManager.properties.subscribeToAudio;this.mediaStream.getAudioTracks()[0].enabled=F}this.mediaStream.getVideoTracks()[0]&&(F=g?this.videoActive:!!this.streamManager.properties.subscribeToVideo,this.mediaStream.getVideoTracks()[0].enabled=F)}this.updateMediaStreamInVideos(),this.initHarkEvents()}},C.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))},C.prototype.onIceConnectionStateExceptionHandler=function(g,_,Y){switch(g){case w.ExceptionEventName.ICE_CONNECTION_FAILED:this.onIceConnectionFailed();break;case w.ExceptionEventName.ICE_CONNECTION_DISCONNECTED:this.onIceConnectionDisconnected()}this.session.emitEvent("exception",[new w.ExceptionEvent(this.session,g,this,_,Y)])},C.prototype.onIceConnectionFailed=function(){v.log("[ICE_CONNECTION_FAILED] Handling ICE_CONNECTION_FAILED event. Reconnecting stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",")")),this.reconnectStreamAndLogResultingIceConnectionState(w.ExceptionEventName.ICE_CONNECTION_FAILED)},C.prototype.onIceConnectionDisconnected=function(){var g=this;v.log("[ICE_CONNECTION_DISCONNECTED] Handling ICE_CONNECTION_DISCONNECTED event. Waiting for ICE to be restored and reconnect stream ".concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") if not possible"));var _=this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3;this.awaitWebRtcPeerConnectionState(_).then(function(Y){switch(Y){case"failed":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(g.streamId," (").concat(g.isLocal()?"Publisher":"Subscriber",") is now failed after ICE_CONNECTION_DISCONNECTED"));break;case"connected":case"completed":v.log("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(g.streamId," (").concat(g.isLocal()?"Publisher":"Subscriber",") automatically restored after ICE_CONNECTION_DISCONNECTED. Current ICE connection state: ").concat(Y));break;case"closed":case"checking":case"new":case"disconnected":v.warn("[ICE_CONNECTION_DISCONNECTED] ICE connection of stream ".concat(g.streamId," (").concat(g.isLocal()?"Publisher":"Subscriber",") couldn't be restored after ICE_CONNECTION_DISCONNECTED event. Current ICE connection state after ").concat(_," ms: ").concat(Y)),g.reconnectStreamAndLogResultingIceConnectionState(w.ExceptionEventName.ICE_CONNECTION_DISCONNECTED)}})},C.prototype.reconnectStreamAndLogResultingIceConnectionState=function(g){return E(this,void 0,void 0,function(){var _,Y;return q(this,function(R){switch(R.label){case 0:return R.trys.push([0,2,,3]),[4,this.reconnectStreamAndReturnIceConnectionState(g)];case 1:switch(_=R.sent()){case"connected":case"completed":v.log("[".concat(g,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") successfully reconnected after ").concat(g,". Current ICE connection state: ").concat(_));break;default:v.error("[".concat(g,"] Stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") failed to reconnect after ").concat(g,". Current ICE connection state: ").concat(_))}return[3,3];case 2:return Y=R.sent(),v.error("[".concat(g,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after ").concat(g,": ").concat(Y)),[3,3];case 3:return[2]}})})},C.prototype.reconnectStreamAndReturnIceConnectionState=function(g){return E(this,void 0,void 0,function(){var Y;return q(this,function(R){switch(R.label){case 0:v.log("[".concat(g,"] Reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") after event ").concat(g)),R.label=1;case 1:return R.trys.push([1,3,,4]),[4,this.reconnectStream(g)];case 2:return R.sent(),[2,this.awaitWebRtcPeerConnectionState(this.session.openvidu.advancedConfiguration.iceConnectionDisconnectedExceptionTimeout||4e3)];case 3:return Y=R.sent(),v.warn("[".concat(g,"] Error reconnecting stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber","). Reason: ").concat(Y)),[2,this.awaitWebRtcPeerConnectionState(1)];case 4:return[2]}})})},C.prototype.reconnectStream=function(g){return E(this,void 0,void 0,function(){var Y;return q(this,function(R){switch(R.label){case 0:return[4,this.isWebsocketConnected(g,3e3)];case 1:if(R.sent())return v.log("[".concat(g,"] 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 Y="[".concat(g,"] Trying to reconnect stream ").concat(this.streamId," (").concat(this.isLocal()?"Publisher":"Subscriber",") but the websocket wasn't opened"),v.error(Y),Error(Y)}})})},C.prototype.isWebsocketConnected=function(g,_){var Y=this;return new Promise(function(R,F){var W=Y.session.openvidu.getWsReadyState();if(1!==W)return console.warn("[".concat(g,"] Websocket readyState is ").concat(W)),R(!1);var p=setTimeout(function(){return console.warn("[".concat(g,"] Websocket timeout of ").concat(_,"ms")),R(!1)},_);Y.session.openvidu.sendRequest("echo",{},function(D,j){return clearTimeout(p),D?(console.warn("[".concat(g,"] Websocket 'echo' returned error: ").concat(D)),R(!1)):R(!0)})})},C.prototype.awaitWebRtcPeerConnectionState=function(g){return E(this,void 0,void 0,function(){var _,Y,R,F;return q(this,function(W){switch(W.label){case 0:_=this.getRTCPeerConnection().iceConnectionState,Y=150,R=Math.ceil(g/Y),F=0,W.label=1;case 1:return F<R?"connected"===(_=this.getRTCPeerConnection().iceConnectionState)||"completed"===_?[3,4]:[4,new Promise(function(p){return setTimeout(p,Y)})]:[3,4];case 2:W.sent(),W.label=3;case 3:return F++,[3,1];case 4:return[2,_]}})})},C.prototype.initWebRtcStats=function(){this.webRtcStats=new A.WebRtcStats(this),this.webRtcStats.initWebRtcStats()},C.prototype.stopWebRtcStats=function(){this.webRtcStats&&this.webRtcStats.isEnabled()&&this.webRtcStats.stopWebRtcStats()},C.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},C.prototype.gatherStatsForPeer=function(){var g=this;return new Promise(function(_,Y){g.isLocal()?g.getRTCPeerConnection().getSenders().forEach(function(R){return R.getStats().then(function(F){F.forEach(function(W){if(g.isReportWanted(W)){var p={};p.type=W.type,p.timestamp=W.timestamp,p.id=W.id,"outbound-rtp"===W.type&&(p.ssrc=W.ssrc,p.firCount=W.firCount,p.pliCount=W.pliCount,p.nackCount=W.nackCount,p.qpSum=W.qpSum,p.mediaType=W.kind?W.kind:W.mediaType?W.mediaType:-1!==W.id.indexOf("VideoStream")?"video":"audio","video"===p.mediaType&&(p.framesEncoded=W.framesEncoded),p.packetsSent=W.packetsSent,p.bytesSent=W.bytesSent),"candidate-pair"===W.type&&void 0!==W.totalRoundTripTime&&(p.availableOutgoingBitrate=W.availableOutgoingBitrate,p.rtt=W.currentRoundTripTime,p.averageRtt=W.totalRoundTripTime/W.responsesReceived),v.log(p)}})})}):g.getRTCPeerConnection().getReceivers().forEach(function(R){return R.getStats().then(function(F){F.forEach(function(W){if(g.isReportWanted(W)){var p={};p.type=W.type,p.timestamp=W.timestamp,p.id=W.id,"inbound-rtp"===W.type&&(p.ssrc=W.ssrc,p.firCount=W.firCount,p.pliCount=W.pliCount,p.nackCount=W.nackCount,p.qpSum=W.qpSum,p.mediaType=W.kind?W.kind:W.mediaType?W.mediaType:-1!==W.id.indexOf("VideoStream")?"video":"audio","video"===p.mediaType&&(p.framesDecoded=W.framesDecoded),p.packetsReceived=W.packetsReceived,p.packetsLost=W.packetsLost,p.jitter=W.jitter,p.bytesReceived=W.bytesReceived),"candidate-pair"===W.type&&void 0!==W.totalRoundTripTime&&(p.availableIncomingBitrate=W.availableIncomingBitrate,p.rtt=W.currentRoundTripTime,p.averageRtt=W.totalRoundTripTime/W.responsesReceived),v.log(p)}})})})})},C.prototype.isReportWanted=function(g){return"inbound-rtp"===g.type&&!this.isLocal()||"outbound-rtp"===g.type&&this.isLocal()||"candidate-pair"===g.type&&g.nominated&&g.bytesSent>0},C}();Z.Stream=O},7373:function(Se,Z,H){"use strict";var Q,E=this&&this.__extends||(Q=function(N,L){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ee){ue.__proto__=ee}||function(ue,ee){for(var M in ee)Object.prototype.hasOwnProperty.call(ee,M)&&(ue[M]=ee[M])})(N,L)},function(N,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function ue(){this.constructor=N}Q(N,L),N.prototype=null===L?Object.create(L):(ue.prototype=L.prototype,new ue)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.StreamManager=void 0;var b,q=H(2768),V=H(7818),y=H(6320),S=H(4131),A=H(7167),w=H(1829),x=H(1171),T=w.OpenViduLogger.getInstance(),U=function(Q){function N(L,ue){var ee=Q.call(this)||this;if(ee.videos=[],ee.lazyLaunchVideoElementCreatedEvent=!1,b=x.PlatformUtils.getInstance(),ee.stream=L,ee.stream.streamManager=ee,ee.remote=!ee.stream.isLocal(),ue){var M=void 0;"string"==typeof ue?M=document.getElementById(ue):ue instanceof HTMLElement&&(M=ue),M&&(ee.firstVideoElement={targetElement:M,video:document.createElement("video"),id:"",canplayListenerAdded:!1},(b.isSafariBrowser()||b.isIPhoneOrIPad()&&(b.isChromeMobileBrowser()||b.isEdgeMobileBrowser()||b.isOperaMobileBrowser()||b.isFirefoxMobileBrowser()))&&ee.firstVideoElement.video.setAttribute("playsinline","true"),ee.targetElement=M,ee.element=M)}return ee.canPlayListener=function(){ee.deactivateStreamPlayingEventExceptionTimeout(),ee.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(ee,"streamPlaying",void 0)])},ee}return E(N,Q),N.prototype.on=function(L,ue){return Q.prototype.onAux.call(this,L,"Event '"+L+"' triggered by '"+(this.remote?"Subscriber":"Publisher")+"'",ue),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&(this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!1),"streamPlaying"===L&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===L&&this.stream.enableHarkSpeakingEvent(),"publisherStopSpeaking"===L&&this.stream.enableHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===L&&this.stream.enableHarkVolumeChangeEvent(!1)),this},N.prototype.once=function(L,ue){return Q.prototype.onceAux.call(this,L,"Event '"+L+"' triggered once by '"+(this.remote?"Subscriber":"Publisher")+"'",ue),"videoElementCreated"===L&&!!this.stream&&this.lazyLaunchVideoElementCreatedEvent&&this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(this.videos[0].video,this,"videoElementCreated")]),"streamPlaying"===L&&this.videos[0]&&this.videos[0].video&&this.videos[0].video.currentTime>0&&!1===this.videos[0].video.paused&&!1===this.videos[0].video.ended&&4===this.videos[0].video.readyState&&this.ee.emitEvent("streamPlaying",[new V.StreamManagerEvent(this,"streamPlaying",void 0)]),this.stream.hasAudio&&("publisherStartSpeaking"===L&&this.stream.enableOnceHarkSpeakingEvent(),"publisherStopSpeaking"===L&&this.stream.enableOnceHarkStoppedSpeakingEvent(),"streamAudioVolumeChange"===L&&this.stream.enableOnceHarkVolumeChangeEvent(!1)),this},N.prototype.off=function(L,ue){return Q.prototype.offAux.call(this,L,ue),"publisherStartSpeaking"===L&&0===this.ee.getListeners(L).length+this.stream.session.ee.getListeners(L).length&&this.stream.disableHarkSpeakingEvent(!1),"publisherStopSpeaking"===L&&0===this.ee.getListeners(L).length+this.stream.session.ee.getListeners(L).length&&this.stream.disableHarkStoppedSpeakingEvent(!1),"streamAudioVolumeChange"===L&&0===this.ee.getListeners(L).length&&this.stream.disableHarkVolumeChangeEvent(!1),this},N.prototype.addVideoElement=function(L){this.initializeVideoProperties(L),!this.remote&&this.stream.displayMyRemote()&&L.srcObject!==this.stream.getMediaStream()&&(L.srcObject=this.stream.getMediaStream());for(var ue=0,ee=this.videos;ue<ee.length;ue++)if(ee[ue].video===L)return 0;for(var v=1,G=0,O=this.stream.session.streamManagers;G<O.length;G++)if(O[G].disassociateVideo(L)){v=-1;break}return this.stream.session.streamManagers.forEach(function(g){g.disassociateVideo(L)}),this.pushNewStreamManagerVideo({video:L,id:L.id,canplayListenerAdded:!1}),T.info("New video element associated to ",this),v},N.prototype.createVideoElement=function(L,ue){var ee;if("string"==typeof L){if(!(ee=document.getElementById(L)))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+L)}else{if(!(L instanceof HTMLElement))throw new Error("The provided 'targetElement' couldn't be resolved to any HTML element: "+L);ee=L}var M=this.createVideo();this.initializeVideoProperties(M);var v=ue||A.VideoInsertMode.APPEND;switch(v){case A.VideoInsertMode.AFTER:ee.parentNode.insertBefore(M,ee.nextSibling);break;case A.VideoInsertMode.APPEND:ee.appendChild(M);break;case A.VideoInsertMode.BEFORE:ee.parentNode.insertBefore(M,ee);break;case A.VideoInsertMode.PREPEND:ee.insertBefore(M,ee.childNodes[0]);break;case A.VideoInsertMode.REPLACE:ee.parentNode.replaceChild(M,ee);break;default:v=A.VideoInsertMode.APPEND,ee.appendChild(M)}var G={targetElement:ee,video:M,insertMode:v,id:M.id,canplayListenerAdded:!1};return this.pushNewStreamManagerVideo(G),this.ee.emitEvent("videoElementCreated",[new y.VideoElementEvent(G.video,this,"videoElementCreated")]),this.lazyLaunchVideoElementCreatedEvent=!!this.firstVideoElement,M},N.prototype.updatePublisherSpeakingEventsOptions=function(L){var ue=this.stream.harkOptions?this.stream.harkOptions:this.stream.session.openvidu.advancedConfiguration.publisherSpeakingEventsOptions||{},ee="number"==typeof L.interval?L.interval:"number"==typeof ue.interval?ue.interval:100,M="number"==typeof L.threshold?L.threshold:"number"==typeof ue.threshold?ue.threshold:-50;this.stream.harkOptions={interval:ee,threshold:M},this.stream.speechEvent&&(this.stream.speechEvent.setInterval(ee),this.stream.speechEvent.setThreshold(M))},N.prototype.initializeVideoProperties=function(L){!this.remote&&this.stream.displayMyRemote()||L.srcObject!==this.stream.getMediaStream()&&(L.srcObject=this.stream.getMediaStream()),L.autoplay=!0,L.controls=!1,(b.isSafariBrowser()||b.isIPhoneOrIPad()&&(b.isChromeMobileBrowser()||b.isEdgeMobileBrowser()||b.isOperaMobileBrowser()||b.isFirefoxMobileBrowser()))&&L.setAttribute("playsinline","true"),L.id||(L.id=(this.remote?"remote-":"local-")+"video-"+this.stream.streamId,!this.id&&!!this.targetElement&&(this.id=L.id)),this.remote&&this.isMirroredVideo(L)?this.removeMirrorVideo(L):!this.remote&&!this.stream.displayMyRemote()&&(L.muted=!0,this.isMirroredVideo(L)&&!this.stream.outboundStreamOpts.publisherProperties.mirror?this.removeMirrorVideo(L):this.stream.outboundStreamOpts.publisherProperties.mirror&&!this.stream.isSendScreen()&&this.mirrorVideo(L))},N.prototype.removeAllVideos=function(){for(var L=this,ue=this.stream.session.streamManagers.length-1;ue>=0;--ue)this.stream.session.streamManagers[ue]===this&&this.stream.session.streamManagers.splice(ue,1);this.videos.forEach(function(ee){!!ee.video&&!!ee.video.removeEventListener&&ee.video.removeEventListener("canplay",L.canPlayListener),ee.canplayListenerAdded=!1,ee.targetElement&&(ee.video.parentNode.removeChild(ee.video),L.ee.emitEvent("videoElementDestroyed",[new y.VideoElementEvent(ee.video,L,"videoElementDestroyed")])),L.removeSrcObject(ee),L.videos.filter(function(M){return!M.targetElement})})},N.prototype.disassociateVideo=function(L){for(var ue=!1,ee=0;ee<this.videos.length;ee++)if(this.videos[ee].video===L){this.videos[ee].video.removeEventListener("canplay",this.canPlayListener),this.videos.splice(ee,1),ue=!0,T.info("Video element disassociated from ",this);break}return ue},N.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)},N.prototype.updateMediaStream=function(L){this.videos.forEach(function(ue){if(ue.video.srcObject=L,b.isIonicIos()){var M=ue.video;ue.video.parentElement.replaceChild(M,ue.video),ue.video=M}})},N.prototype.emitEvent=function(L,ue){this.ee.emitEvent(L,ue)},N.prototype.createVideo=function(){return document.createElement("video")},N.prototype.removeSrcObject=function(L){L.video.srcObject=null,this.deactivateStreamPlayingEventExceptionTimeout()},N.prototype.pushNewStreamManagerVideo=function(L){this.videos.push(L),this.addPlayEventToFirstVideo(),-1===this.stream.session.streamManagers.indexOf(this)&&this.stream.session.streamManagers.push(this)},N.prototype.mirrorVideo=function(L){b.isIonicIos()||(L.style.transform="rotateY(180deg)",L.style.webkitTransform="rotateY(180deg)")},N.prototype.removeMirrorVideo=function(L){L.style.transform="unset",L.style.webkitTransform="unset"},N.prototype.isMirroredVideo=function(L){return"rotateY(180deg)"===L.style.transform||"rotateY(180deg)"===L.style.webkitTransform},N.prototype.activateStreamPlayingEventExceptionTimeout=function(){var L=this;if(this.remote&&null==this.streamPlayingEventExceptionTimeout){var ue=this.stream.session.openvidu.advancedConfiguration.noStreamPlayingEventExceptionTimeout||4e3;this.streamPlayingEventExceptionTimeout=setTimeout(function(){var ee="StreamManager of Stream "+L.stream.streamId+" ("+(L.remote?"Subscriber":"Publisher")+') did not trigger "streamPlaying" event in '+ue+" ms";T.warn(ee),L.stream.session.emitEvent("exception",[new S.ExceptionEvent(L.stream.session,S.ExceptionEventName.NO_STREAM_PLAYING_EVENT,L,ee)]),delete L.streamPlayingEventExceptionTimeout},ue)}},N.prototype.deactivateStreamPlayingEventExceptionTimeout=function(){clearTimeout(this.streamPlayingEventExceptionTimeout),delete this.streamPlayingEventExceptionTimeout},N}(q.EventDispatcher);Z.StreamManager=U},3343:function(Se,Z,H){"use strict";var x,E=this&&this.__extends||(x=function(T,b){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,Q){U.__proto__=Q}||function(U,Q){for(var N in Q)Object.prototype.hasOwnProperty.call(Q,N)&&(U[N]=Q[N])})(T,b)},function(T,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function U(){this.constructor=T}x(T,b),T.prototype=null===b?Object.create(b):(U.prototype=b.prototype,new U)}),q=this&&this.__awaiter||function(x,T,b,U){return new(b||(b=Promise))(function(N,L){function ue(v){try{M(U.next(v))}catch(G){L(G)}}function ee(v){try{M(U.throw(v))}catch(G){L(G)}}function M(v){v.done?N(v.value):function Q(N){return N instanceof b?N:new b(function(L){L(N)})}(v.value).then(ue,ee)}M((U=U.apply(x,T||[])).next())})},V=this&&this.__generator||function(x,T){var U,Q,N,L,b={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return L={next:ue(0),throw:ue(1),return:ue(2)},"function"==typeof Symbol&&(L[Symbol.iterator]=function(){return this}),L;function ue(M){return function(v){return function ee(M){if(U)throw new TypeError("Generator is already executing.");for(;b;)try{if(U=1,Q&&(N=2&M[0]?Q.return:M[0]?Q.throw||((N=Q.return)&&N.call(Q),0):Q.next)&&!(N=N.call(Q,M[1])).done)return N;switch(Q=0,N&&(M=[2&M[0],N.value]),M[0]){case 0:case 1:N=M;break;case 4:return b.label++,{value:M[1],done:!1};case 5:b.label++,Q=M[1],M=[0];continue;case 7:M=b.ops.pop(),b.trys.pop();continue;default:if(!(N=(N=b.trys).length>0&&N[N.length-1])&&(6===M[0]||2===M[0])){b=0;continue}if(3===M[0]&&(!N||M[1]>N[0]&&M[1]<N[3])){b.label=M[1];break}if(6===M[0]&&b.label<N[1]){b.label=N[1],N=M;break}if(N&&b.label<N[2]){b.label=N[2],b.ops.push(M);break}N[2]&&b.ops.pop(),b.trys.pop();continue}M=T.call(x,b)}catch(v){M=[6,v],Q=0}finally{U=N=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([M,v])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.Subscriber=void 0;var y=H(7373),A=H(1829).OpenViduLogger.getInstance(),w=function(x){function T(b,U,Q){var N=x.call(this,b,U)||this;return N.element=N.targetElement,N.stream=b,N.properties=Q,N}return E(T,x),T.prototype.subscribeToAudio=function(b){return this.stream.getMediaStream().getAudioTracks().forEach(function(U){U.enabled=b}),this.stream.audioActive=b,A.info("'Subscriber' has "+(b?"subscribed to":"unsubscribed from")+" its audio stream"),this},T.prototype.subscribeToVideo=function(b){return this.stream.getMediaStream().getVideoTracks().forEach(function(U){U.enabled=b}),this.stream.videoActive=b,A.info("'Subscriber' has "+(b?"subscribed to":"unsubscribed from")+" its video stream"),this},T.prototype.replaceTrackInMediaStream=function(b,U){return q(this,void 0,void 0,function(){var Q,N;return V(this,function(L){return Q=this.stream.getMediaStream(),"video"===b.kind?(N=Q.getVideoTracks()[0],U&&(this.stream.lastVideoTrackConstraints=b.getConstraints())):N=Q.getAudioTracks()[0],Q.removeTrack(N),N.stop(),Q.addTrack(b),[2]})})},T}(y.StreamManager);Z.Subscriber=w},1216:(Se,Z)=>{"use strict";var E;Object.defineProperty(Z,"__esModule",{value:!0}),Z.LocalRecorderState=void 0,(E=Z.LocalRecorderState||(Z.LocalRecorderState={})).READY="READY",E.RECORDING="RECORDING",E.PAUSED="PAUSED",E.FINISHED="FINISHED"},9303:(Se,Z)=>{"use strict";var q;Object.defineProperty(Z,"__esModule",{value:!0}),Z.OpenViduError=Z.OpenViduErrorName=void 0,(q=Z.OpenViduErrorName||(Z.OpenViduErrorName={})).BROWSER_NOT_SUPPORTED="BROWSER_NOT_SUPPORTED",q.DEVICE_ACCESS_DENIED="DEVICE_ACCESS_DENIED",q.DEVICE_ALREADY_IN_USE="DEVICE_ALREADY_IN_USE",q.SCREEN_CAPTURE_DENIED="SCREEN_CAPTURE_DENIED",q.SCREEN_SHARING_NOT_SUPPORTED="SCREEN_SHARING_NOT_SUPPORTED",q.SCREEN_EXTENSION_NOT_INSTALLED="SCREEN_EXTENSION_NOT_INSTALLED",q.SCREEN_EXTENSION_DISABLED="SCREEN_EXTENSION_DISABLED",q.INPUT_VIDEO_DEVICE_NOT_FOUND="INPUT_VIDEO_DEVICE_NOT_FOUND",q.INPUT_AUDIO_DEVICE_NOT_FOUND="INPUT_AUDIO_DEVICE_NOT_FOUND",q.INPUT_AUDIO_DEVICE_GENERIC_ERROR="INPUT_AUDIO_DEVICE_GENERIC_ERROR",q.NO_INPUT_SOURCE_SET="NO_INPUT_SOURCE_SET",q.PUBLISHER_PROPERTIES_ERROR="PUBLISHER_PROPERTIES_ERROR",q.OPENVIDU_PERMISSION_DENIED="OPENVIDU_PERMISSION_DENIED",q.OPENVIDU_NOT_CONNECTED="OPENVIDU_NOT_CONNECTED",q.VIRTUAL_BACKGROUND_ERROR="VIRTUAL_BACKGROUND_ERROR",q.GENERIC_ERROR="GENERIC_ERROR",Z.OpenViduError=function q(V,y){this.name=V,this.message=y}},7879:(Se,Z)=>{"use strict";var E;Object.defineProperty(Z,"__esModule",{value:!0}),Z.TypeOfVideo=void 0,(E=Z.TypeOfVideo||(Z.TypeOfVideo={})).CAMERA="CAMERA",E.SCREEN="SCREEN",E.CUSTOM="CUSTOM",E.IPCAM="IPCAM"},7167:(Se,Z)=>{"use strict";var E;Object.defineProperty(Z,"__esModule",{value:!0}),Z.VideoInsertMode=void 0,(E=Z.VideoInsertMode||(Z.VideoInsertMode={})).AFTER="AFTER",E.APPEND="APPEND",E.BEFORE="BEFORE",E.PREPEND="PREPEND",E.REPLACE="REPLACE"},1698:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.ConnectionEvent=void 0;var V=function(y){function S(A,w,x,T,b){var U=y.call(this,A,w,x)||this;return U.connection=T,U.reason=b,U}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.ConnectionEvent=V},9005:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.ConnectionPropertyChangedEvent=void 0;var V=function(y){function S(A,w,x,T,b){var U=y.call(this,!1,A,"connectionPropertyChanged")||this;return U.connection=w,U.changedProperty=x,U.newValue=T,U.oldValue=b,U}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.ConnectionPropertyChangedEvent=V},616:(Se,Z)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.Event=void 0;var H=function(){function E(q,V,y){this.hasBeenPrevented=!1,this.cancelable=q,this.target=V,this.type=y}return E.prototype.isDefaultPrevented=function(){return this.hasBeenPrevented},E.prototype.preventDefault=function(){this.callDefaultBehavior=function(){},this.hasBeenPrevented=!0},E}();Z.Event=H},4131:function(Se,Z,H){"use strict";var S,E=this&&this.__extends||(S=function(A,w){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&(x[b]=T[b])})(A,w)},function(A,w){if("function"!=typeof w&&null!==w)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function x(){this.constructor=A}S(A,w),A.prototype=null===w?Object.create(w):(x.prototype=w.prototype,new x)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.ExceptionEvent=Z.ExceptionEventName=void 0;var q=H(616);!function(S){S.ICE_CANDIDATE_ERROR="ICE_CANDIDATE_ERROR",S.ICE_CONNECTION_FAILED="ICE_CONNECTION_FAILED",S.ICE_CONNECTION_DISCONNECTED="ICE_CONNECTION_DISCONNECTED",S.NO_STREAM_PLAYING_EVENT="NO_STREAM_PLAYING_EVENT"}(Z.ExceptionEventName||(Z.ExceptionEventName={}));var y=function(S){function A(w,x,T,b,U){var Q=S.call(this,!1,w,"exception")||this;return Q.name=x,Q.origin=T,Q.message=b,Q.data=U,Q}return E(A,S),A.prototype.callDefaultBehavior=function(){},A}(q.Event);Z.ExceptionEvent=y},5132:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.FilterEvent=void 0;var V=function(y){function S(A,w,x){var T=y.call(this,!1,A,w)||this;return T.data=x,T}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.FilterEvent=V},9900:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.NetworkQualityLevelChangedEvent=void 0;var V=function(y){function S(A,w,x,T){var b=y.call(this,!1,A,"networkQualityLevelChanged")||this;return b.newValue=w,b.oldValue=x,b.connection=T,b}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.NetworkQualityLevelChangedEvent=V},8887:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.PublisherSpeakingEvent=void 0;var V=function(y){function S(A,w,x,T){var b=y.call(this,!1,A,w)||this;return b.type=w,b.connection=x,b.streamId=T,b}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.PublisherSpeakingEvent=V},5449:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.RecordingEvent=void 0;var V=function(y){function S(A,w,x,T,b){var U=y.call(this,!1,A,w)||this;return U.id=x,T!==x&&(U.name=T),U.reason=b,U}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.RecordingEvent=V},1690:function(Se,Z,H){"use strict";var A,E=this&&this.__extends||(A=function(w,x){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,b){T.__proto__=b}||function(T,b){for(var U in b)Object.prototype.hasOwnProperty.call(b,U)&&(T[U]=b[U])})(w,x)},function(w,x){if("function"!=typeof x&&null!==x)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function T(){this.constructor=w}A(w,x),w.prototype=null===x?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.SessionDisconnectedEvent=void 0;var q=H(616),y=H(1829).OpenViduLogger.getInstance(),S=function(A){function w(x,T){var b=A.call(this,!0,x,"sessionDisconnected")||this;return b.reason=T,b}return E(w,A),w.prototype.callDefaultBehavior=function(){y.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'");var x=this.target;x.remoteConnections.forEach(function(T){var b,U,Q,N,L,ue,ee,M,v=T.connectionId;if(null===(b=x.remoteConnections.get(v))||void 0===b?void 0:b.stream){null===(U=x.remoteConnections.get(v))||void 0===U||U.stream.disposeWebRtcPeer(),null===(Q=x.remoteConnections.get(v))||void 0===Q||Q.stream.disposeMediaStream(),(null===(N=x.remoteConnections.get(v))||void 0===N?void 0:N.stream.streamManager)&&(null===(L=x.remoteConnections.get(v))||void 0===L||L.stream.streamManager.removeAllVideos());var G=null===(ee=null===(ue=x.remoteConnections.get(v))||void 0===ue?void 0:ue.stream)||void 0===ee?void 0:ee.streamId;G&&x.remoteStreamsCreated.delete(G),null===(M=x.remoteConnections.get(v))||void 0===M||M.dispose()}x.remoteConnections.delete(v)})},w}(q.Event);Z.SessionDisconnectedEvent=S},1659:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.SignalEvent=void 0;var V=function(y){function S(A,w,x,T){var b=y.call(this,!1,A,"signal")||this;return w&&(b.type="signal:"+w),b.data=x,b.from=T,b}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.SignalEvent=V},3980:function(Se,Z,H){"use strict";var x,E=this&&this.__extends||(x=function(T,b){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,Q){U.__proto__=Q}||function(U,Q){for(var N in Q)Object.prototype.hasOwnProperty.call(Q,N)&&(U[N]=Q[N])})(T,b)},function(T,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function U(){this.constructor=T}x(T,b),T.prototype=null===b?Object.create(b):(U.prototype=b.prototype,new U)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.StreamEvent=void 0;var q=H(616),V=H(4302),y=H(5607),A=H(1829).OpenViduLogger.getInstance(),w=function(x){function T(b,U,Q,N,L){var ue=x.call(this,b,U,Q)||this;return ue.stream=N,ue.reason=L,ue}return E(T,x),T.prototype.callDefaultBehavior=function(){if("streamDestroyed"===this.type){if(this.target instanceof y.Session)A.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Session'"),this.stream.disposeWebRtcPeer();else if(this.target instanceof V.Publisher){A.info("Calling default behavior upon '"+this.type+"' event dispatched by 'Publisher'"),clearInterval(this.target.screenShareResizeInterval),this.stream.isLocalStreamReadyToPublish=!1;for(var b=this.target.openvidu.publishers,U=0;U<b.length;U++)if(b[U]===this.target){b.splice(U,1);break}}this.stream.disposeMediaStream(),this.stream.streamManager&&this.stream.streamManager.removeAllVideos(),this.stream.session.remoteStreamsCreated.delete(this.stream.streamId);var Q=this.stream.session.remoteConnections.get(this.stream.connection.connectionId);if(Q&&Q.remoteOptions){var N=Q.remoteOptions.streams;for(U=N.length-1;U>=0;--U)N[U].id===this.stream.streamId&&N.splice(U,1)}}},T}(q.Event);Z.StreamEvent=w},7818:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.StreamManagerEvent=void 0;var V=function(y){function S(A,w,x){var T=y.call(this,!1,A,w)||this;return T.value=x,T}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.StreamManagerEvent=V},9383:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.StreamPropertyChangedEvent=void 0;var V=function(y){function S(A,w,x,T,b,U){var Q=y.call(this,!1,A,"streamPropertyChanged")||this;return Q.stream=w,Q.changedProperty=x,Q.newValue=T,Q.oldValue=b,Q.reason=U,Q}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.StreamPropertyChangedEvent=V},6320:function(Se,Z,H){"use strict";var y,E=this&&this.__extends||(y=function(S,A){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var T in x)Object.prototype.hasOwnProperty.call(x,T)&&(w[T]=x[T])})(S,A)},function(S,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function w(){this.constructor=S}y(S,A),S.prototype=null===A?Object.create(A):(w.prototype=A.prototype,new w)});Object.defineProperty(Z,"__esModule",{value:!0}),Z.VideoElementEvent=void 0;var V=function(y){function S(A,w,x){var T=y.call(this,!1,w,x)||this;return T.element=A,T}return E(S,y),S.prototype.callDefaultBehavior=function(){},S}(H(616).Event);Z.VideoElementEvent=V},8229:Se=>{function Z(){var H={};this.forEach=function(E){for(var q in H){var V=H[q];for(var y in V)E(V[y])}},this.get=function(E,q){var V=H[q];if(null!=V)return V[E]},this.remove=function(E,q){var V=H[q];if(null!=V){for(var y in delete V[E],V)return!1;delete H[q]}},this.set=function(E,q,V){if(null==E)return this.remove(q,V);var y=H[V];null==y&&(H[V]=y={}),y[q]=E}}Z.prototype.pop=function(H,E){var q=this.get(H,E);if(null!=q)return this.remove(H,E),q},Se.exports=Z},1780:(Se,Z,H)=>{var E=H(2245);Z.JsonRpcClient=E},2245:(Se,Z,H)=>{var E=H(4940),q=H(6738),V=H(1829).OpenViduLogger;Date.now=Date.now||function(){return+new Date};var S="RECONNECTING",A="CONNECTED",w="DISCONNECTED",x=V.getInstance();Se.exports=function T(b){var M,U=this,Q=b.ws,N=-1,L=0,ue=!0,ee=!1,v=w,G=Q.onreconnecting,O=Q.onreconnected,C=Q.onconnected,g=Q.onerror;b.rpc.pull=function(j,B){B.reply(null,"push")},Q.onreconnecting=function(){x.debug("--------- ONRECONNECTING -----------"),v!==S?(D(),v=S,G&&G()):x.error("Websocket already in RECONNECTING state when receiving a new ONRECONNECTING message. Ignoring it")},Q.onreconnected=function(){x.debug("--------- ONRECONNECTED -----------"),v!==A?(v=A,F(),O&&O()):x.error("Websocket already in CONNECTED state when receiving a new ONRECONNECTED message. Ignoring it")},Q.onconnected=function(){x.debug("--------- ONCONNECTED -----------"),v!==A?(v=A,ue=!0,p(),C&&C()):x.error("Websocket already in CONNECTED state when receiving a new ONCONNECTED message. Ignoring it")},Q.onerror=function(j){x.debug("--------- ONERROR -----------"),v=w,D(),g&&g(j)};var _=new q(Q);x.debug("Connecting websocket to URI: "+Q.uri);var R=new E(E.packers.JsonRPC,{request_timeout:b.rpc.requestTimeout,ping_request_timeout:b.rpc.heartbeatRequestTimeout},_,function(j){x.debug("Received request: "+JSON.stringify(j));try{var B=b.rpc[j.method];void 0===B?x.error("Method "+j.method+" not registered in client"):B(j.params,j)}catch(k){x.error("Exception processing request: "+JSON.stringify(j)),x.error(k)}});function F(){x.debug("notReconnectIfNumLessThan = "+L+" (old="+N+")"),N=L}function W(){if(ue){var j=null;(0==L||L==N)&&(j={interval:b.heartbeat||5e3}),L++,U.send("ping",j,(B=L,function(k,P){k&&(x.debug("Error in ping request #"+B+" ("+k.message+")"),B>N&&(ue=!1,F(),x.debug("Server did not respond to ping message #"+B+". Reconnecting... "),_.reconnectWs()))}))}else x.debug("Trying to send ping, but ping is not enabled");var B}function p(){ee||(x.debug("Starting ping (if configured)"),ee=!0,null!=b.heartbeat&&(M=setInterval(W,b.heartbeat),W()))}function D(){clearInterval(M),ee=!1,ue=!1,L=-1,R.cancel()}this.send=function(j,B,k){var P=Date.now();R.encode(j,B,function(K,ie){if(K){try{x.error("ERROR:"+K.message+" in Request: method:"+j+" params:"+JSON.stringify(B)+" request:"+K.request),K.data&&x.error("ERROR DATA:"+JSON.stringify(K.data))}catch(_e){}K.requestTime=P}k&&(null!=ie&&"pong"!==ie.value&&x.debug("Response: "+JSON.stringify(ie)),k(K,ie))})},this.close=function(j,B){x.debug("Closing with code: "+j+" because: "+B),null!=M&&(x.debug("Clearing ping interval"),clearInterval(M)),ee=!1,ue=!1,_.close(j,B)},this.reconnect=function(){_.reconnectWs()},this.resetPing=function(){ue=!0,L=0,p()},this.getReadyState=function(){return _.getReadyState()}}},7526:(Se,Z,H)=>{var E=H(6738);Z.WebSocketWithReconnection=E},6738:(Se,Z,H)=>{"use strict";var q=H(1829).OpenViduLogger.getInstance();Se.exports=function T(b){var Q,U=!1,N=b.uri,L=!1,ue=new WebSocket(N);ue.onopen=function(){q.debug("WebSocket connected to "+N),b.onconnected&&b.onconnected()},ue.onerror=function(O){q.error("Could not connect to "+N+" (invoking onerror if defined)",O),b.onerror&&b.onerror(O)};var ee=function(){3===ue.readyState?U?q.debug("Connection closed by user"):b.ismasternodecrashed()?q.error("Master Node has crashed. Stopping reconnection process"):(q.debug("Connection closed unexpectedly. Reconnecting..."),M(2e3,1)):q.debug("Close callback from previous websocket. Ignoring it")};function M(O,C){if(q.debug("reconnect (attempt #"+C+", max="+O+")"),1===C){if(L)return void q.warn("Trying to reconnect when already reconnecting... Ignoring this reconnection.");L=!0,b.onreconnecting&&b.onreconnecting()}!function G(O,C){q.debug("Reconnection attempt #"+C),ue.close(4104,"Connection closed for reconnection"),N=function v(O){var C=new URLSearchParams(new URL(O).search);return C.has("reconnect")||(O=Array.from(C).length>0?O+"&reconnect=true":O+"?reconnect=true"),O}(N),(ue=new WebSocket(N)).onopen=function(){q.debug("Reconnected to "+N+" after "+C+" attempts..."),L=!1,Q(),b.onreconnected()&&b.onreconnected(),ue.onclose=ee},ue.onerror=function(g){q.warn("Reconnection error: ",g),C===O?b.ondisconnect&&b.ondisconnect():setTimeout(function(){M(O,C+1)},3e3)}}(O,C)}ue.onclose=ee,this.close=function(O,C){U=!0,ue.close(O,C)},this.reconnectWs=function(){q.debug("reconnectWs"),M(2e3,1)},this.send=function(O){ue.send(O)},this.addEventListener=function(O,C){(Q=function(){ue.addEventListener(O,C)})()},this.getReadyState=function(){return ue.readyState}}},4940:(Se,Z,H)=>{var E=!1;if(Object.defineProperty)try{Object.defineProperty({},"x",{})}catch(N){E=!0}Function.prototype.bind||(Function.prototype.bind=function(N){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var L=Array.prototype.slice.call(arguments,1),ue=this,ee=function(){},M=function(){return ue.apply(this instanceof ee&&N?this:N,L.concat(Array.prototype.slice.call(arguments)))};return ee.prototype=this.prototype,M.prototype=new ee,M});var q=H(7945).EventEmitter,V=H(9543),y=H(2907),S=H(8229),A=5e3;function x(N){if(N){if(N instanceof Function)return{send:N};if(N.send instanceof Function)return N;if(N.postMessage instanceof Function)return N.send=N.postMessage,N;if(N.write instanceof Function)return N.send=N.write,N;if(void 0===N.onmessage&&!(N.pause instanceof Function))throw new SyntaxError("Transport is not a function nor a valid object")}}function T(N,L){E?(this.method=N,this.params=L):(Object.defineProperty(this,"method",{value:N,enumerable:!0}),Object.defineProperty(this,"params",{value:L,enumerable:!0}))}function b(N,L,ue,ee){var M=this;if(!N)throw new SyntaxError("Packer is not defined");if(!N.pack||!N.unpack)throw new SyntaxError("Packer is invalid");var v=function w(N){if(!N)return{};for(var L in N){var ue=N[L];"string"==typeof ue&&(N[L]={response:ue})}return N}(N.responseMethods);if(L instanceof Function){if(null!=ue)throw new SyntaxError("There can't be parameters after onRequest");ee=L,ue=void 0,L=void 0}if(L&&L.send instanceof Function){if(ue&&!(ue instanceof Function))throw new SyntaxError("Only a function can be after transport");ee=ue,ue=L,L=void 0}if(ue instanceof Function){if(null!=ee)throw new SyntaxError("There can't be parameters after onRequest");ee=ue,ue=void 0}if(ue&&ue.send instanceof Function&&ee&&!(ee instanceof Function))throw new SyntaxError("Only a function can be after transport");L=L||{},q.call(this),ee&&this.on("request",ee),E?this.peerID=L.peerID:Object.defineProperty(this,"peerID",{value:L.peerID});var G=L.max_retries||0;function O(K){M.decode(K.data||K)}this.getTransport=function(){return ue},this.setTransport=function(K){ue&&(ue.removeEventListener?ue.removeEventListener("message",O):ue.removeListener&&ue.removeListener("data",O)),K&&(K.addEventListener?K.addEventListener("message",O):K.addListener&&K.addListener("data",O)),ue=x(K)},E||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)}),this.setTransport(ue);var C=L.request_timeout||A,g=L.ping_request_timeout||C,_=L.response_timeout||A,Y=L.duplicates_timeout||A,R=0,F=new S,W=new S,p=new S,D={};function B(K,ie){var _e=setTimeout(function(){p.remove(K,ie)},Y);p.set(_e,K,ie)}function k(K,ie,_e,Ae,be){T.call(this,K,ie),this.getTransport=function(){return be},this.setTransport=function(Le){be=x(Le)},E||Object.defineProperty(this,"transport",{get:this.getTransport.bind(this),set:this.setTransport.bind(this)});var He=W.get(_e,Ae);be||M.getTransport()||(E?this.duplicated=Boolean(He):Object.defineProperty(this,"duplicated",{value:Boolean(He)}));var dt=v[K];this.pack=N.pack.bind(N,this,_e),this.reply=function(Le,Ge,Vt){if(Le instanceof Function||Le&&Le.send instanceof Function){if(null!=Ge)throw new SyntaxError("There can't be parameters after callback");Vt=Le,Ge=null,Le=void 0}else if(Ge instanceof Function||Ge&&Ge.send instanceof Function){if(null!=Vt)throw new SyntaxError("There can't be parameters after callback");Vt=Ge,Ge=null}var Ue;return Vt=x(Vt),He&&clearTimeout(He.timeout),null!=Ae&&(Le&&(Le.dest=Ae),Ge&&(Ge.dest=Ae)),Le||null!=Ge?(null!=M.peerID&&(Le?Le.from=M.peerID:Ge.from=M.peerID),Ue=N.pack(Ue=dt?null==dt.error&&Le?{error:Le}:{method:Le?dt.error:dt.response,params:Le||Ge}:{error:Le,result:Ge},_e)):Ue=He?He.message:N.pack({result:null},_e),function j(K,ie,_e){var Ae={message:K,timeout:setTimeout(function(){W.remove(ie,_e)},_)};W.set(Ae,ie,_e)}(Ue,_e,Ae),(Vt=Vt||this.getTransport()||M.getTransport())?Vt.send(Ue):Ue}}function P(K){var ie=D[K];if(ie){delete D[K];var _e=F.pop(ie.id,ie.dest);!_e||(clearTimeout(_e.timeout),B(ie.id,ie.dest))}}V(k,T),this.cancel=function(K){if(K)return P(K);for(var K in D)P(K)},this.close=function(){var K=this.getTransport();K&&K.close&&K.close(4003,"Cancel request"),this.cancel(),p.forEach(clearTimeout),W.forEach(function(ie){clearTimeout(ie.timeout)})},this.encode=function(K,ie,_e,Ae,be){if(ie instanceof Function){if(null!=_e)throw new SyntaxError("There can't be parameters after callback");be=ie,Ae=void 0,_e=void 0,ie=void 0}else if(_e instanceof Function){if(null!=Ae)throw new SyntaxError("There can't be parameters after callback");be=_e,Ae=void 0,_e=void 0}else if(Ae instanceof Function){if(null!=be)throw new SyntaxError("There can't be parameters after callback");be=Ae,Ae=void 0}null!=M.peerID&&((ie=ie||{}).from=M.peerID),null!=_e&&((ie=ie||{}).dest=_e);var He={method:K,params:ie};if(be){let tn=function(te,ne){M.cancel(He),be(te,ne)},ce=function(te){return Ge.timeout=setTimeout(le,("ping"===K?g:C)*Math.pow(2,Le++)),D[He]={id:dt,dest:_e},F.set(Ge,dt,_e),(te=te||Vt||M.getTransport())?te.send(He):He},pe=function(te){te=x(te),console.warn(Le+" retry for request message:",He);var ne=p.pop(dt,_e);return clearTimeout(ne),ce(te)},le=function(){if(Le<G)return pe(Ae);var te=new Error("Request has timed out");te.request=He,te.retry=pe,tn(te)};var dt=R++,Le=0,Ge={message:He=N.pack(He,dt),callback:tn,responseMethods:v[K]||{}},Vt=x(Ae);return ce(Ae)}return He=N.pack(He),(Ae=Ae||this.getTransport())?Ae.send(He):He},this.decode=function(K,ie){if(!K)throw new TypeError("Message is not defined");try{K=N.unpack(K)}catch(le){return console.debug(le,K)}var _e=K.id,Ae=K.ack,be=K.method,He=K.params||{},dt=He.from,Le=He.dest;if(null==M.peerID||dt!=M.peerID){if(null==_e&&null==Ae){var Ge=new T(be,He);return M.emit("request",Ge)?void 0:Ge}if(be){if(null==Le||Le==M.peerID){if(pe=F.get(Ae,dt)){var Ti=pe.responseMethods;return be==Ti.error?Ue(pe,He):be==Ti.response?Ue(pe,null,He):Vt()}if(et=p.get(Ae,dt))return he(et)}return Vt()}var tn=K.error,ce=K.result;if(!(tn&&tn.dest&&tn.dest!=M.peerID||ce&&ce.dest&&ce.dest!=M.peerID)){var pe,et;if(!(pe=F.get(Ae,dt)))return(et=p.get(Ae,dt))?he(et):console.warn("No callback was defined for this message",K);Ue(pe,tn,ce)}}function Vt(){if(ie=x(ie)||M.getTransport()){var le=W.get(_e,dt);if(le)return ie.send(le.message)}var ne=new k(be,He,null!=_e?_e:Ae,dt,ie);if(!M.emit("request",ne))return ne}function Ue(le,te,ne){le.callback(te,ne)}function he(le){console.warn("Response already processed",K),clearTimeout(le),B(Ae,dt)}}}V(b,q),b.RpcNotification=T,Se.exports=b;var U=H(1780),Q=H(7526);(b.clients=U).transports=Q,b.packers=y},3815:(Se,Z)=>{Z.pack=function H(q,V){var y={jsonrpc:"2.0"};if(q.method)y.method=q.method,q.params&&(y.params=q.params),null!=V&&(y.id=V);else if(null!=V){if(q.error){if(void 0!==q.result)throw new TypeError("Both result and error are defined");y.error=q.error}else{if(void 0===q.result)throw new TypeError("No result or error is defined");y.result=q.result}y.id=V}return JSON.stringify(y)},Z.unpack=function E(q){var V=q;("string"==typeof q||q instanceof String)&&(V=JSON.parse(q));var y=V.jsonrpc;if("2.0"!==y)throw new TypeError("Invalid JsonRPC version '"+y+"': "+q);if(null==V.method){if(null==V.id)throw new TypeError("Invalid message: "+q);var S=void 0!==V.result,A=void 0!==V.error;if(S&&A)throw new TypeError("Both result and error are defined: "+q);if(!S&&!A)throw new TypeError("No result or error is defined: "+q);V.ack=V.id,delete V.id}return V}},3303:(Se,Z)=>{Z.pack=function H(q){throw new TypeError("Not yet implemented")},Z.unpack=function E(q){throw new TypeError("Not yet implemented")}},2907:(Se,Z,H)=>{var E=H(3815),q=H(3303);Z.JsonRPC=E,Z.XmlRPC=q},0:(Se,Z)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.ConsoleLogger=void 0,Z.ConsoleLogger=function E(q){this.logger=q,this.log=window.console.log,this.info=window.console.info,this.debug=window.console.debug,this.warn=window.console.warn,this.error=window.console.error}},1829:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.OpenViduLogger=void 0;var E=H(5163),q=H(0),V=H(1438),y=function(){function S(){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 q.ConsoleLogger(window.console),this.isProdMode=!1,this.isJSNLogSetup=!1}return S.configureJSNLog=function(A,w){var x=this;try{if(window.LOG_JSNLOG_RESULTS||this.instance&&A.isAtLeastPro&&this.instance.isOpenViduBrowserLogsDebugActive(A)&&this.instance.canConfigureJSNLog(A,this.instance)){A.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app&&this.instance.replaceWindowConsole(),this.instance.isJSNLogSetup=!1,this.instance.info("Configuring JSNLogs.");var T=A.finalUserId,b=A.session.sessionId;this.instance.currentAppender=E.JL.createAjaxAppender("appender-".concat(T,"-").concat(b)),this.instance.currentAppender.setOptions({beforeSend:function(N){var L=N.onreadystatechange;N.onreadystatechange=function(){x.isInvalidResponse(N)&&(Object.defineProperty(N,"readyState",{value:4}),Object.defineProperty(N,"status",{value:200}),x.instance.disableLogger()),L()},N.setRequestHeader("Authorization","Basic "+btoa("".concat(T,"%/%").concat(b)+":"+w)),N.setRequestHeader("X-Requested-With","XMLHttpRequest"),N.setRequestHeader("OV-Final-User-Id",T),N.setRequestHeader("OV-Session-Id",b),N.setRequestHeader("OV-Token",w)},maxBatchSize:1e3,batchSize:this.instance.MAX_JSNLOG_BATCH_LOG_MESSAGES,batchTimeout:this.instance.MAX_MSECONDS_BATCH_MESSAGES}),E.JL.setOptions({defaultAjaxUrl:A.httpUri+this.instance.JSNLOG_URL,serialize:function(N){var ee,ue=JSON.stringify(N,(ee=new WeakSet,function(M,v){if("object"==typeof v&&null!=v){if(ee.has(v)||HTMLElement&&v instanceof HTMLElement)return;ee.add(v)}return v}));return ue.length>x.instance.MAX_LENGTH_STRING_JSON&&(ue="".concat(ue.substring(0,x.instance.MAX_LENGTH_STRING_JSON),"...")),window.LOG_JSNLOG_RESULTS&&console.log(ue),ue},enabled:!0}),(0,E.JL)().setOptions({appenders:[this.instance.currentAppender]}),this.instance.isJSNLogSetup=!0,this.instance.loggingSessionId=b,this.instance.info("JSNLog configured.")}}catch(N){console.error("Error configuring JSNLog: "),console.error(N),this.instance.disableLogger()}},S.getInstance=function(){return S.instance||(S.instance=new S),S.instance},S.isInvalidResponse=function(A){return 401==A.status||403==A.status||404==A.status||0==A.status},S.prototype.canConfigureJSNLog=function(A,w){return A.session.sessionId!=w.loggingSessionId},S.prototype.isOpenViduBrowserLogsDebugActive=function(A){return A.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug||A.sendBrowserLogs===V.OpenViduLoggerConfiguration.debug_app},S.prototype.getConsoleWithJSNLog=function(){return A=this,{log:function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];A.defaultConsoleLogger.log.apply(A.defaultConsoleLogger.logger,arguments),A.isJSNLogSetup&&(0,E.JL)().info(arguments)},info:function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];A.defaultConsoleLogger.info.apply(A.defaultConsoleLogger.logger,arguments),A.isJSNLogSetup&&(0,E.JL)().info(arguments)},debug:function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];A.defaultConsoleLogger.debug.apply(A.defaultConsoleLogger.logger,arguments)},warn:function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];A.defaultConsoleLogger.warn.apply(A.defaultConsoleLogger.logger,arguments),A.isJSNLogSetup&&(0,E.JL)().warn(arguments)},error:function(){for(var w=[],x=0;x<arguments.length;x++)w[x]=arguments[x];A.defaultConsoleLogger.error.apply(A.defaultConsoleLogger.logger,arguments),A.isJSNLogSetup&&(0,E.JL)().error(arguments)}};var A},S.prototype.replaceWindowConsole=function(){window.console=this.defaultConsoleLogger.logger,window.console.log=this.getConsoleWithJSNLog().log,window.console.info=this.getConsoleWithJSNLog().info,window.console.debug=this.getConsoleWithJSNLog().debug,window.console.warn=this.getConsoleWithJSNLog().warn,window.console.error=this.getConsoleWithJSNLog().error},S.prototype.disableLogger=function(){E.JL.setOptions({enabled:!1}),this.isJSNLogSetup=!1,this.loggingSessionId=void 0,this.currentAppender=void 0,window.console=this.defaultConsoleLogger.logger,window.console.log=this.defaultConsoleLogger.log,window.console.info=this.defaultConsoleLogger.info,window.console.debug=this.defaultConsoleLogger.debug,window.console.warn=this.defaultConsoleLogger.warn,window.console.error=this.defaultConsoleLogger.error},S.prototype.log=function(){for(var A=[],w=0;w<arguments.length;w++)A[w]=arguments[w];this.isProdMode||this.defaultConsoleLogger.log.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,E.JL)().info(arguments)},S.prototype.debug=function(){for(var A=[],w=0;w<arguments.length;w++)A[w]=arguments[w];this.isProdMode||this.defaultConsoleLogger.debug.apply(this.defaultConsoleLogger.logger,arguments)},S.prototype.info=function(){for(var A=[],w=0;w<arguments.length;w++)A[w]=arguments[w];this.isProdMode||this.defaultConsoleLogger.info.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,E.JL)().info(arguments)},S.prototype.warn=function(){for(var A=[],w=0;w<arguments.length;w++)A[w]=arguments[w];this.defaultConsoleLogger.warn.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,E.JL)().warn(arguments)},S.prototype.error=function(){for(var A=[],w=0;w<arguments.length;w++)A[w]=arguments[w];this.defaultConsoleLogger.error.apply(this.defaultConsoleLogger.logger,arguments),this.isJSNLogSetup&&(0,E.JL)().error(arguments)},S.prototype.flush=function(){this.isJSNLogSetup&&null!=this.currentAppender&&this.currentAppender.sendBatch()},S.prototype.enableProdMode=function(){this.isProdMode=!0},S}();Z.OpenViduLogger=y},1438:(Se,Z)=>{"use strict";var E;Object.defineProperty(Z,"__esModule",{value:!0}),Z.OpenViduLoggerConfiguration=void 0,(E=Z.OpenViduLoggerConfiguration||(Z.OpenViduLoggerConfiguration={})).disabled="disabled",E.debug="debug",E.debug_app="debug_app"},467:(Se,Z)=>{function H(S,A,w){var x={audio:!1,video:{mandatory:{chromeMediaSource:S?"screen":"desktop",maxWidth:window.screen.width>1920?window.screen.width:1920,maxHeight:window.screen.height>1080?window.screen.height:1080},optional:[]}};return w&&(x.audio={mandatory:{chromeMediaSource:S?"screen":"desktop"},optional:[]}),A&&(x.video.mandatory.chromeMediaSourceId=A,x.audio&&x.audio.mandatory&&(x.audio.mandatory.chromeMediaSourceId=A)),x}function E(S){q?q.isLoaded?q.contentWindow.postMessage(S?S.forEach?{captureCustomSourceId:S}:{captureSourceIdWithAudio:!0}:{captureSourceId:!0},"*"):setTimeout(function(){E(S)},100):V(function(){E(S)})}var q;function V(S){q?S():((q=document.createElement("iframe")).onload=function(){q.isLoaded=!0,S()},q.src="https://openvidu.github.io/openvidu-screen-sharing-chrome-extension/",q.style.display="none",(document.body||document.documentElement).appendChild(q))}function y(){q?q.isLoaded?q.contentWindow.postMessage({getChromeExtensionStatus:!0},"*"):setTimeout(y,100):V(y)}window.getScreenId=function(S,A,w){-1===navigator.userAgent.indexOf("Edge")||!navigator.msSaveOrOpenBlob&&!navigator.msSaveBlob?navigator.mozGetUserMedia?A(null,"firefox",{video:{mozMediaSource:S,mediaSource:S}}):(window.addEventListener("message",function x(T){!T.data||(T.data.chromeMediaSourceId&&("PermissionDeniedError"===T.data.chromeMediaSourceId?A("permission-denied"):A(null,T.data.chromeMediaSourceId,H(null,T.data.chromeMediaSourceId,T.data.canRequestAudioTrack)),window.removeEventListener("message",x)),T.data.chromeExtensionStatus&&(A(T.data.chromeExtensionStatus,null,H(T.data.chromeExtensionStatus)),window.removeEventListener("message",x)))}),setTimeout(w?function(){E(w)}:E,100)):A({video:!0})},window.getScreenConstraints=function(S){V(function(){getScreenId(function(A,w,x){x||(x={video:!0}),S(A,x.video)})})},window.getChromeExtensionStatus=function(S){navigator.mozGetUserMedia?S("installed-enabled"):(window.addEventListener("message",function A(w){!w.data||w.data.chromeExtensionStatus&&(S(w.data.chromeExtensionStatus),window.removeEventListener("message",A))}),setTimeout(y,100))},Z.getScreenId=window.getScreenId},48:(Se,Z)=>{var E,q,H="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(L){L.origin==window.location.origin&&function A(L){if("PermissionDeniedError"==L){if(q)return q("PermissionDeniedError");throw new Error("PermissionDeniedError")}"rtcmulticonnection-extension-loaded"==L&&(H="desktop"),L.sourceId&&q&&q(E=L.sourceId,!0===L.canRequestAudioTrack)}(L.data)})}function x(L){if(!L)throw'"callback" parameter is mandatory.';if(E)return L(E);q=L,window.postMessage("get-sourceId","*")}function N(L,ue){if(E="",V)return L(null,{mozMediaSource:"window",mediaSource:"window"});var M={mandatory:{chromeMediaSource:H,maxWidth:screen.width>1920?screen.width:1920,maxHeight:screen.height>1080?screen.height:1080},optional:[]};"desktop"!=H||E?("desktop"==H&&(M.mandatory.chromeMediaSourceId=E),L(null,M)):ue?function b(L){if(!L)throw'"callback" parameter is mandatory.';if(E)return L(E);q=L,window.postMessage("audio-plus-tab","*")}(function(v,G){M.mandatory.chromeMediaSourceId=v,G&&(M.canRequestAudioTrack=!0),L("PermissionDeniedError"==v?v:null,M)}):x(function(v){M.mandatory.chromeMediaSourceId=v,L("PermissionDeniedError"==v?v:null,M)})}Z.getScreenConstraints=N,Z.getScreenConstraintsWithAudio=function Q(L){N(L,!0)},Z.isChromeExtensionAvailable=function w(L){if(L){if("desktop"==H)return L(!0);window.postMessage("are-you-there","*"),setTimeout(function(){L("screen"!=H)},2e3)}},Z.getChromeExtensionStatus=function U(L,ue){if(V)return ue("not-chrome");2!=arguments.length&&(ue=L,L="lfcgfepafnobdloecchnfaclibenjold");var ee=document.createElement("img");ee.src="chrome-extension://"+L+"/icon.png",ee.onload=function(){H="screen",window.postMessage("are-you-there","*"),setTimeout(function(){ue("screen"==H?"installed-disabled":"installed-enabled")},2e3)},ee.onerror=function(){ue("not-installed")}},Z.getSourceId=x},1171:(Se,Z,H)=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.PlatformUtils=void 0;var E=H(6218),q=function(){function V(){}return V.getInstance=function(){return this.instance||(this.instance=new V),V.instance},V.prototype.isChromeBrowser=function(){return"Chrome"===E.name},V.prototype.isSafariBrowser=function(){return"Safari"===E.name},V.prototype.isChromeMobileBrowser=function(){return"Chrome Mobile"===E.name},V.prototype.isFirefoxBrowser=function(){return"Firefox"===E.name},V.prototype.isFirefoxMobileBrowser=function(){return"Firefox Mobile"===E.name||"Firefox for iOS"===E.name},V.prototype.isOperaBrowser=function(){return"Opera"===E.name},V.prototype.isOperaMobileBrowser=function(){return"Opera Mobile"===E.name},V.prototype.isEdgeBrowser=function(){var y=(null==E?void 0:E.version)?parseFloat(E.version):-1;return"Microsoft Edge"===E.name&&y>=80},V.prototype.isEdgeMobileBrowser=function(){var y,S,A=(null==E?void 0:E.version)?parseFloat(E.version):-1;return"Microsoft Edge"===E.name&&("Android"===(null===(y=E.os)||void 0===y?void 0:y.family)||"iOS"===(null===(S=E.os)||void 0===S?void 0:S.family))&&A>45},V.prototype.isAndroidBrowser=function(){return"Android Browser"===E.name},V.prototype.isElectron=function(){return"Electron"===E.name},V.prototype.isSamsungBrowser=function(){return"Samsung Internet Mobile"===E.name||"Samsung Internet"===E.name},V.prototype.isIPhoneOrIPad=function(){var y=E.ua?E.ua:navigator.userAgent,S="ontouchend"in document,A=/\b(\w*Macintosh\w*)\b/.test(y)&&S,w=/\b(\w*iPhone\w*)\b/.test(y)&&/\b(\w*Mobile\w*)\b/.test(y)&&S;return A||w},V.prototype.isIOSWithSafari=function(){var y=E.ua?E.ua:navigator.userAgent;return this.isIPhoneOrIPad()&&/\b(\w*Apple\w*)\b/.test(navigator.vendor)&&/\b(\w*Safari\w*)\b/.test(y)&&!/\b(\w*CriOS\w*)\b/.test(y)&&!/\b(\w*FxiOS\w*)\b/.test(y)},V.prototype.isIonicIos=function(){return this.isIPhoneOrIPad()&&-1===E.ua.indexOf("Safari")},V.prototype.isIonicAndroid=function(){return"Android"===E.os.family&&"Android Browser"==E.name},V.prototype.isMobileDevice=function(){return"iOS"===E.os.family||"Android"===E.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 y=(null==E?void 0:E.version)?parseFloat(E.version):-1;return!this.isMobileDevice()&&(this.isChromeBrowser()||this.isFirefoxBrowser()||this.isOperaBrowser()||this.isElectron()||this.isEdgeBrowser()||this.isSafariBrowser()&&y>=13)},V.prototype.getName=function(){return E.name||""},V.prototype.getVersion=function(){return E.version||""},V.prototype.getFamily=function(){return E.os.family||""},V.prototype.getDescription=function(){return E.description||""},V}();Z.PlatformUtils=q},1530:function(Se,Z,H){"use strict";var ee,E=this&&this.__extends||(ee=function(M,v){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,O){G.__proto__=O}||function(G,O){for(var C in O)Object.prototype.hasOwnProperty.call(O,C)&&(G[C]=O[C])})(M,v)},function(M,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function G(){this.constructor=M}ee(M,v),M.prototype=null===v?Object.create(v):(G.prototype=v.prototype,new G)}),q=this&&this.__assign||function(){return q=Object.assign||function(ee){for(var M,v=1,G=arguments.length;v<G;v++)for(var O in M=arguments[v])Object.prototype.hasOwnProperty.call(M,O)&&(ee[O]=M[O]);return ee},q.apply(this,arguments)},V=this&&this.__awaiter||function(ee,M,v,G){return new(v||(v=Promise))(function(C,g){function _(F){try{R(G.next(F))}catch(W){g(W)}}function Y(F){try{R(G.throw(F))}catch(W){g(W)}}function R(F){F.done?C(F.value):function O(C){return C instanceof v?C:new v(function(g){g(C)})}(F.value).then(_,Y)}R((G=G.apply(ee,M||[])).next())})},y=this&&this.__generator||function(ee,M){var G,O,C,g,v={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return g={next:_(0),throw:_(1),return:_(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function _(R){return function(F){return function Y(R){if(G)throw new TypeError("Generator is already executing.");for(;v;)try{if(G=1,O&&(C=2&R[0]?O.return:R[0]?O.throw||((C=O.return)&&C.call(O),0):O.next)&&!(C=C.call(O,R[1])).done)return C;switch(O=0,C&&(R=[2&R[0],C.value]),R[0]){case 0:case 1:C=R;break;case 4:return v.label++,{value:R[1],done:!1};case 5:v.label++,O=R[1],R=[0];continue;case 7:R=v.ops.pop(),v.trys.pop();continue;default:if(!(C=(C=v.trys).length>0&&C[C.length-1])&&(6===R[0]||2===R[0])){v=0;continue}if(3===R[0]&&(!C||R[1]>C[0]&&R[1]<C[3])){v.label=R[1];break}if(6===R[0]&&v.label<C[1]){v.label=C[1],C=R;break}if(C&&v.label<C[2]){v.label=C[2],v.ops.push(R);break}C[2]&&v.ops.pop(),v.trys.pop();continue}R=M.call(ee,v)}catch(F){R=[6,F],O=0}finally{G=C=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([R,F])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.WebRtcPeerSendrecv=Z.WebRtcPeerSendonly=Z.WebRtcPeerRecvonly=Z.WebRtcPeer=void 0;var S=H(8145),A=H(8201),w=H(4131),x=H(1829),T=H(1171),b=x.OpenViduLogger.getInstance(),Q=function(){function ee(M){var v=this;this.remoteCandidatesQueue=[],this.localCandidatesQueue=[],this.iceCandidateList=[],this.candidategatheringdone=!1,T.PlatformUtils.getInstance(),this.configuration=q(q({},M),{iceServers:M.iceServers&&M.iceServers.length>0?M.iceServers:S(),mediaStream:void 0!==M.mediaStream?M.mediaStream:null,mode:M.mode?M.mode:"sendrecv",id:M.id?M.id:this.generateUniqueId()}),b.debug("[WebRtcPeer] configuration:\n".concat(JSON.stringify(this.configuration,null,2))),this.pc=new RTCPeerConnection({iceServers:this.configuration.iceServers}),this.pc.addEventListener("icecandidate",function(G){if(null!==G.candidate){var C=new RTCIceCandidate(G.candidate);v.configuration.onIceCandidate(C),""!==C.candidate&&v.localCandidatesQueue.push(C)}}),this.pc.addEventListener("signalingstatechange",function(){if("stable"===v.pc.signalingState)for(;v.iceCandidateList.length>0;){var G=v.iceCandidateList.shift();v.pc.addIceCandidate(G)}})}return ee.prototype.getId=function(){return this.configuration.id},ee.prototype.dispose=function(){if(b.debug("Disposing WebRtcPeer"),this.pc){if("closed"===this.pc.signalingState)return;this.pc.close(),this.remoteCandidatesQueue=[],this.localCandidatesQueue=[]}},ee.prototype.createOfferLegacy=function(){this.configuration.mediaStream&&this.deprecatedPeerConnectionTrackApi();var G={offerToReceiveAudio:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.audio,offerToReceiveVideo:"sendonly"!==this.configuration.mode&&this.configuration.mediaConstraints.video};return b.debug("[createOfferLegacy] RTCPeerConnection.createOffer() options:",JSON.stringify(G)),this.pc.createOffer(G)},ee.prototype.createOffer=function(){var M,v,G,O,C,g,_,Y;return V(this,void 0,void 0,function(){var R,F,W,p,D,j,B,k,P,K,ie,_e,Ae,be,He,dt,Le,Ge,Vt,Ue,he,Ti,et;return y(this,function(tn){switch(tn.label){case 0:if(!("addTransceiver"in this.pc))return b.warn("[createOffer] Method RTCPeerConnection.addTransceiver() is NOT available; using LEGACY offerToReceive{Audio,Video}"),[2,this.createOfferLegacy()];if(b.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"));R=0,F=this.configuration.mediaStream.getTracks(),tn.label=1;case 1:if(!(R<F.length))return[3,6];if(p={direction:this.configuration.mode,streams:[this.configuration.mediaStream]},"video"===(W=F[R]).kind&&this.configuration.simulcast)for(D=W.getSettings(),j=W.getConstraints(),B=null!==(G=null!==(v=null!==(M=D.width)&&void 0!==M?M:j.width.ideal)&&void 0!==v?v:j.width)&&void 0!==G?G:0,k=null!==(g=null!==(C=null!==(O=D.height)&&void 0!==O?O:j.height.ideal)&&void 0!==C?C:j.height)&&void 0!==g?g:0,b.info("[createOffer] Video track dimensions: ".concat(B,"x").concat(k)),0,K=(P=B*k)>=518400?3:P>=129600?2:1,p.sendEncodings=[],ie=0;ie<K;ie++)_e=Math.pow(2,K-ie-1),Ae={rid:"rdiv"+_e.toString(),scalabilityMode:"L1T1"},["detail","text"].includes(W.contentHint)?(Ae.scaleResolutionDownBy=1,Ae.maxFramerate=Math.floor(30/_e)):Ae.scaleResolutionDownBy=_e,p.sendEncodings.push(Ae);if(be=this.pc.addTransceiver(W,p),"video"!==W.kind)return[3,5];if(He=be.sender.getParameters(),dt=!1,(null===(_=He.degradationPreference)||void 0===_?void 0:_.length)||(He.degradationPreference=["detail","text"].includes(W.contentHint)?"maintain-resolution":"balanced",b.info("[createOffer] Video sender Degradation Preference set: ".concat(He.degradationPreference)),dt=!0),this.configuration.simulcast&&(null===(Y=He.encodings)||void 0===Y?void 0:Y.length)!==p.sendEncodings.length&&(He.encodings=p.sendEncodings,dt=!0),!dt)return[3,5];b.debug("[createOffer] Setting new RTCRtpSendParameters to video sender"),tn.label=2;case 2:return tn.trys.push([2,4,,5]),[4,be.sender.setParameters(He)];case 3:return tn.sent(),[3,5];case 4:throw Le=tn.sent(),et="[WebRtcPeer.createOffer] Cannot set RTCRtpSendParameters to video sender",Le instanceof Error&&(et+=": ".concat(Le.message)),new Error(et);case 5:return R++,[3,1];case 6:return[3,8];case 7:for(Ge=0,Vt=["audio","video"];Ge<Vt.length;Ge++)this.configuration.mediaConstraints[Ue=Vt[Ge]]&&(this.configuration.mediaStream=new MediaStream,this.pc.addTransceiver(Ue,{direction:this.configuration.mode,streams:[this.configuration.mediaStream]}));tn.label=8;case 8:return tn.trys.push([8,10,,11]),[4,this.pc.createOffer()];case 9:return he=tn.sent(),[3,11];case 10:throw Ti=tn.sent(),et="[WebRtcPeer.createOffer] Browser failed creating an SDP Offer",Ti instanceof Error&&(et+=": ".concat(Ti.message)),new Error(et);case 11:return[2,he]}})})},ee.prototype.deprecatedPeerConnectionTrackApi=function(){for(var M=0,v=this.configuration.mediaStream.getTracks();M<v.length;M++)this.pc.addTrack(v[M],this.configuration.mediaStream)},ee.prototype.createAnswer=function(){var M=this;return new Promise(function(v,G){if("getTransceivers"in M.pc){b.debug("[createAnswer] Method RTCPeerConnection.getTransceivers() is available; using it");for(var O=function(p){if(!M.configuration.mediaConstraints[p])return"continue";var D=M.pc.getTransceivers().find(function(j){return j.receiver.track.kind===p});if(!D)return{value:G(new Error("".concat(p," requested, but no transceiver was created from remote description")))};D.direction=M.configuration.mode},C=0,g=["audio","video"];C<g.length;C++){var Y=O(g[C]);if("object"==typeof Y)return Y.value}M.pc.createAnswer().then(function(p){return v(p)}).catch(function(p){return G(p)})}else M.configuration.mediaConstraints&&M.pc.createAnswer({offerToReceiveAudio:"boolean"!=typeof M.configuration.mediaConstraints.audio||M.configuration.mediaConstraints.audio,offerToReceiveVideo:"boolean"!=typeof M.configuration.mediaConstraints.video||M.configuration.mediaConstraints.video}).then(function(p){return v(p)}).catch(function(p){return G(p)})})},ee.prototype.processLocalOffer=function(M){var v=this;return new Promise(function(G,O){v.pc.setLocalDescription(M).then(function(){var C=v.pc.localDescription;return C?(b.debug("Local description set",C.sdp),G()):O("Local description is not defined")}).catch(function(C){return O(C)})})},ee.prototype.processRemoteOffer=function(M){var v=this;return new Promise(function(G,O){var C={type:"offer",sdp:M};if(b.debug("SDP offer received, setting remote description",C),"closed"===v.pc.signalingState)return O("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(C).then(function(){return G()}).catch(function(g){return O(g)})})},ee.prototype.processLocalAnswer=function(M){var v=this;return new Promise(function(G,O){if(b.debug("SDP answer created, setting local description"),"closed"===v.pc.signalingState)return O("RTCPeerConnection is closed when trying to set local description");v.pc.setLocalDescription(M).then(function(){return G()}).catch(function(C){return O(C)})})},ee.prototype.processRemoteAnswer=function(M){var v=this;return new Promise(function(G,O){var C={type:"answer",sdp:M};if(b.debug("SDP answer received, setting remote description"),"closed"===v.pc.signalingState)return O("RTCPeerConnection is closed when trying to set remote description");v.setRemoteDescription(C).then(function(){G()}).catch(function(g){return O(g)})})},ee.prototype.setRemoteDescription=function(M){return V(this,void 0,void 0,function(){return y(this,function(v){return[2,this.pc.setRemoteDescription(M)]})})},ee.prototype.addIceCandidate=function(M){var v=this;return new Promise(function(G,O){switch(b.debug("Remote ICE candidate received",M),v.remoteCandidatesQueue.push(M),v.pc.signalingState){case"closed":O(new Error("PeerConnection object is closed"));break;case"stable":v.pc.remoteDescription?v.pc.addIceCandidate(M).then(function(){return G()}).catch(function(C){return O(C)}):(v.iceCandidateList.push(M),G());break;default:v.iceCandidateList.push(M),G()}})},ee.prototype.addIceConnectionStateChangeListener=function(M){var v=this;this.pc.addEventListener("iceconnectionstatechange",function(){switch(v.pc.iceConnectionState){case"disconnected":var O="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "disconnected". Possible network disconnection';b.warn(O),v.configuration.onIceConnectionStateException(w.ExceptionEventName.ICE_CONNECTION_DISCONNECTED,O);break;case"failed":var C="IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') to "failed"';b.error(C),v.configuration.onIceConnectionStateException(w.ExceptionEventName.ICE_CONNECTION_FAILED,C);break;case"closed":b.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "closed"');break;case"new":b.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "new"');break;case"checking":b.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "checking"');break;case"connected":b.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "connected"');break;case"completed":b.log("IceConnectionState of RTCPeerConnection "+v.configuration.id+" ("+M+') change to "completed"')}})},ee.prototype.generateUniqueId=function(){return(0,A.v4)()},ee}();Z.WebRtcPeer=Q;var N=function(ee){function M(v){return v.mode="recvonly",ee.call(this,v)||this}return E(M,ee),M}(Q);Z.WebRtcPeerRecvonly=N;var L=function(ee){function M(v){return v.mode="sendonly",ee.call(this,v)||this}return E(M,ee),M}(Q);Z.WebRtcPeerSendonly=L;var ue=function(ee){function M(v){return v.mode="sendrecv",ee.call(this,v)||this}return E(M,ee),M}(Q);Z.WebRtcPeerSendrecv=ue},7153:function(Se,Z,H){"use strict";var E=this&&this.__awaiter||function(x,T,b,U){return new(b||(b=Promise))(function(N,L){function ue(v){try{M(U.next(v))}catch(G){L(G)}}function ee(v){try{M(U.throw(v))}catch(G){L(G)}}function M(v){v.done?N(v.value):function Q(N){return N instanceof b?N:new b(function(L){L(N)})}(v.value).then(ue,ee)}M((U=U.apply(x,T||[])).next())})},q=this&&this.__generator||function(x,T){var U,Q,N,L,b={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return L={next:ue(0),throw:ue(1),return:ue(2)},"function"==typeof Symbol&&(L[Symbol.iterator]=function(){return this}),L;function ue(M){return function(v){return function ee(M){if(U)throw new TypeError("Generator is already executing.");for(;b;)try{if(U=1,Q&&(N=2&M[0]?Q.return:M[0]?Q.throw||((N=Q.return)&&N.call(Q),0):Q.next)&&!(N=N.call(Q,M[1])).done)return N;switch(Q=0,N&&(M=[2&M[0],N.value]),M[0]){case 0:case 1:N=M;break;case 4:return b.label++,{value:M[1],done:!1};case 5:b.label++,Q=M[1],M=[0];continue;case 7:M=b.ops.pop(),b.trys.pop();continue;default:if(!(N=(N=b.trys).length>0&&N[N.length-1])&&(6===M[0]||2===M[0])){b=0;continue}if(3===M[0]&&(!N||M[1]>N[0]&&M[1]<N[3])){b.label=M[1];break}if(6===M[0]&&b.label<N[1]){b.label=N[1],N=M;break}if(N&&b.label<N[2]){b.label=N[2],b.ops.push(M);break}N[2]&&b.ops.pop(),b.trys.pop();continue}M=T.call(x,b)}catch(v){M=[6,v],Q=0}finally{U=N=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([M,v])}}};Object.defineProperty(Z,"__esModule",{value:!0}),Z.WebRtcStats=void 0;var A,V=H(1829),y=H(1171),S=V.OpenViduLogger.getInstance(),w=function(){function x(T){this.stream=T,this.STATS_ITEM_NAME="webrtc-stats-config",this.webRtcStatsEnabled=!1,this.statsInterval=1,A=y.PlatformUtils.getInstance()}return x.prototype.isEnabled=function(){return this.webRtcStatsEnabled},x.prototype.initWebRtcStats=function(){var T=this,b=localStorage.getItem(this.STATS_ITEM_NAME);if(b){this.webRtcStatsEnabled=!0;var U=JSON.parse(b);S.warn("WebRtc stats enabled for stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId),S.warn("localStorage item: "+JSON.stringify(U)),this.POST_URL=U.httpEndpoint,this.statsInterval=U.interval,this.webRtcStatsIntervalId=setInterval(function(){return E(T,void 0,void 0,function(){return q(this,function(Q){switch(Q.label){case 0:return[4,this.sendStatsToHttpEndpoint()];case 1:return Q.sent(),[2]}})})},1e3*this.statsInterval)}else S.debug("WebRtc stats not enabled")},x.prototype.getSelectedIceCandidateInfo=function(){var T=this;return new Promise(function(b,U){return E(T,void 0,void 0,function(){var Q,N,L,ue,ee,M,G,O,C,g,Y,R,F,W,p,D,j,B,k;return q(this,function(K){switch(K.label){case 0:return[4,this.stream.getRTCPeerConnection().getStats()];case 1:if(Q=K.sent(),L=new Map,ue=new Map,ee=new Map,Q.forEach(function(ie){switch("transport"===ie.type&&(A.isChromium()||A.isSafariBrowser()||A.isReactNative())&&(N=ie),ie.type){case"candidate-pair":L.set(ie.id,ie);break;case"local-candidate":ue.set(ie.id,ie);break;case"remote-candidate":ee.set(ie.id,ie)}}),null!=N)M=L.get(N.selectedCandidatePairId);else for(G=L.size,O=L.values(),C=0;C<G;C++)if((g=O.next().value).selected){M=g;break}if(Y=M.remoteCandidateId,R=ue.get(M.localCandidateId))for(D=this.stream.getLocalIceCandidateList(),j=D.filter(function(ie){return!!ie.candidate&&(ie.candidate.indexOf(R.ip)>=0||ie.candidate.indexOf(R.address)>=0)&&ie.candidate.indexOf(R.port)>=0}),R.raw=[],F=0,W=j;F<W.length;F++)R.raw.push(W[F].candidate);else R="ERROR: No active local ICE candidate. Probably ICE-TCP is being used";if(p=ee.get(Y))for(D=this.stream.getRemoteIceCandidateList(),j=D.filter(function(ie){return!!ie.candidate&&(ie.candidate.indexOf(p.ip)>=0||ie.candidate.indexOf(p.address)>=0)&&ie.candidate.indexOf(p.port)>=0}),p.raw=[],B=0,k=j;B<k.length;B++)p.raw.push(k[B].candidate);else p="ERROR: No active remote ICE candidate. Probably ICE-TCP is being used";return[2,b({localCandidate:R,remoteCandidate:p})]}})})})},x.prototype.stopWebRtcStats=function(){this.webRtcStatsEnabled&&(clearInterval(this.webRtcStatsIntervalId),S.warn("WebRtc stats stopped for disposed stream "+this.stream.streamId+" of connection "+this.stream.connection.connectionId))},x.prototype.sendStats=function(T,b){return E(this,void 0,void 0,function(){var U,Q;return q(this,function(N){switch(N.label){case 0:return N.trys.push([0,2,,3]),U={headers:{"Content-type":"application/json"},body:JSON.stringify(b),method:"POST"},[4,fetch(T,U)];case 1:return N.sent(),[3,3];case 2:return Q=N.sent(),S.error("sendStats error: ".concat(JSON.stringify(Q))),[3,3];case 3:return[2]}})})},x.prototype.sendStatsToHttpEndpoint=function(){return E(this,void 0,void 0,function(){var T,b,U;return q(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,3,,4]),[4,this.getCommonStats()];case 1:return T=Q.sent(),b=this.generateJSONStatsResponse(T),[4,this.sendStats(this.POST_URL,b)];case 2:return Q.sent(),[3,4];case 3:return U=Q.sent(),S.log(U),[3,4];case 4:return[2]}})})},x.prototype.getCommonStats=function(){return E(this,void 0,void 0,function(){var T=this;return q(this,function(b){return[2,new Promise(function(U,Q){return E(T,void 0,void 0,function(){var N,L,ue,ee,M,v=this;return q(this,function(G){switch(G.label){case 0:return G.trys.push([0,2,,3]),[4,this.stream.getRTCPeerConnection().getStats()];case 1:return N=G.sent(),L=this.getWebRtcStatsResponseOutline(),ue=["framesReceived","framesDropped","framesSent","frameHeight","frameWidth"],ee=["availableOutgoingBitrate","currentRoundTripTime"],N.forEach(function(O){var C=null!=O.mediaType?O.mediaType:O.kind,g=function(_,Y){null!=O[Y]&&null!=L[_]&&(!C&&ue.indexOf(Y)>-1&&(C="video"),null!=_&&null!=C&&null!=Y&&null!=L[_][C]?L[_][C][Y]=Number(O[Y]):null!=_&&null!=Y&&ee.includes(Y)&&(L[_][Y]=Number(O[Y])))};switch(O.type){case"outbound-rtp":g("outbound","bytesSent"),g("outbound","packetsSent"),g("outbound","framesEncoded"),g("outbound","nackCount"),g("outbound","firCount"),g("outbound","pliCount"),g("outbound","qpSum");break;case"inbound-rtp":g("inbound","bytesReceived"),g("inbound","packetsReceived"),g("inbound","packetsLost"),g("inbound","jitter"),g("inbound","framesDecoded"),g("inbound","nackCount"),g("inbound","firCount"),g("inbound","pliCount");break;case"track":g("inbound","jitterBufferDelay"),g("inbound","framesReceived"),g("outbound","framesDropped"),g("outbound","framesSent"),g(v.stream.isLocal()?"outbound":"inbound","frameHeight"),g(v.stream.isLocal()?"outbound":"inbound","frameWidth");break;case"candidate-pair":g("candidatepair","currentRoundTripTime"),g("candidatepair","availableOutgoingBitrate")}}),(!(null==L?void 0:L.candidatepair)||0===Object.keys(L.candidatepair).length)&&delete L.candidatepair,[2,U(L)];case 2:return M=G.sent(),S.error("Error getting common stats: ",M),[2,Q(M)];case 3:return[2]}})})})]})})},x.prototype.generateJSONStatsResponse=function(T){return{"@timestamp":(new Date).toISOString(),participant_id:this.stream.connection.data,session_id:this.stream.session.sessionId,platform:A.getName(),platform_description:A.getDescription(),stream:"webRTC",webrtc_stats:T}},x.prototype.getWebRtcStatsResponseOutline=function(){return this.stream.isLocal()?{outbound:{audio:{},video:{}},candidatepair:{}}:{inbound:{audio:{},video:{}}}},x}();Z.WebRtcStats=w},9795:(Se,Z,H)=>{"use strict";Z.Ll=Z.Dn=void 0;var q=H(5163),V=H(3634);Object.defineProperty(Z,"Dn",{enumerable:!0,get:function(){return V.OpenVidu}});H(5607),H(4302),H(3343),H(7373),H(8770),H(7576),H(8499),H(5481),H(1216);var N=H(9303);Object.defineProperty(Z,"Ll",{enumerable:!0,get:function(){return N.OpenViduErrorName}});H(7879),H(7167),H(616),H(1698),H(8887),H(5449),H(1690),H(1659),H(3980),H(7818),H(6320),H(9383),H(9005),H(5132),H(9900),H(4131),H(2768);q.JL.setOptions({enabled:!1})},7945:Se=>{"use strict";var E,Z="object"==typeof Reflect?Reflect:null,H=Z&&"function"==typeof Z.apply?Z.apply:function(O,C,g){return Function.prototype.apply.call(O,C,g)};E=Z&&"function"==typeof Z.ownKeys?Z.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:function(O){return Object.getOwnPropertyNames(O)};var V=Number.isNaN||function(O){return O!=O};function y(){y.init.call(this)}Se.exports=y,Se.exports.once=function ee(G,O){return new Promise(function(C,g){function _(R){G.removeListener(O,Y),g(R)}function Y(){"function"==typeof G.removeListener&&G.removeListener("error",_),C([].slice.call(arguments))}v(G,O,Y,{once:!0}),"error"!==O&&function M(G,O,C){"function"==typeof G.on&&v(G,"error",O,C)}(G,_,{once:!0})})},y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var S=10;function A(G){if("function"!=typeof G)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof G)}function w(G){return void 0===G._maxListeners?y.defaultMaxListeners:G._maxListeners}function x(G,O,C,g){var _,Y,R;if(A(C),void 0===(Y=G._events)?(Y=G._events=Object.create(null),G._eventsCount=0):(void 0!==Y.newListener&&(G.emit("newListener",O,C.listener?C.listener:C),Y=G._events),R=Y[O]),void 0===R)R=Y[O]=C,++G._eventsCount;else if("function"==typeof R?R=Y[O]=g?[C,R]:[R,C]:g?R.unshift(C):R.push(C),(_=w(G))>0&&R.length>_&&!R.warned){R.warned=!0;var F=new Error("Possible EventEmitter memory leak detected. "+R.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");F.name="MaxListenersExceededWarning",F.emitter=G,F.type=O,F.count=R.length,function q(G){console&&console.warn&&console.warn(G)}(F)}return G}function T(){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 b(G,O,C){var g={fired:!1,wrapFn:void 0,target:G,type:O,listener:C},_=T.bind(g);return _.listener=C,g.wrapFn=_,_}function U(G,O,C){var g=G._events;if(void 0===g)return[];var _=g[O];return void 0===_?[]:"function"==typeof _?C?[_.listener||_]:[_]:C?function ue(G){for(var O=new Array(G.length),C=0;C<O.length;++C)O[C]=G[C].listener||G[C];return O}(_):N(_,_.length)}function Q(G){var O=this._events;if(void 0!==O){var C=O[G];if("function"==typeof C)return 1;if(void 0!==C)return C.length}return 0}function N(G,O){for(var C=new Array(O),g=0;g<O;++g)C[g]=G[g];return C}function v(G,O,C,g){if("function"==typeof G.on)g.once?G.once(O,C):G.on(O,C);else{if("function"!=typeof G.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof G);G.addEventListener(O,function _(Y){g.once&&G.removeEventListener(O,_),C(Y)})}}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return S},set:function(G){if("number"!=typeof G||G<0||V(G))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+G+".");S=G}}),y.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},y.prototype.setMaxListeners=function(O){if("number"!=typeof O||O<0||V(O))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+O+".");return this._maxListeners=O,this},y.prototype.getMaxListeners=function(){return w(this)},y.prototype.emit=function(O){for(var C=[],g=1;g<arguments.length;g++)C.push(arguments[g]);var _="error"===O,Y=this._events;if(void 0!==Y)_=_&&void 0===Y.error;else if(!_)return!1;if(_){var R;if(C.length>0&&(R=C[0]),R instanceof Error)throw R;var F=new Error("Unhandled error."+(R?" ("+R.message+")":""));throw F.context=R,F}var W=Y[O];if(void 0===W)return!1;if("function"==typeof W)H(W,this,C);else{var p=W.length,D=N(W,p);for(g=0;g<p;++g)H(D[g],this,C)}return!0},y.prototype.on=y.prototype.addListener=function(O,C){return x(this,O,C,!1)},y.prototype.prependListener=function(O,C){return x(this,O,C,!0)},y.prototype.once=function(O,C){return A(C),this.on(O,b(this,O,C)),this},y.prototype.prependOnceListener=function(O,C){return A(C),this.prependListener(O,b(this,O,C)),this},y.prototype.off=y.prototype.removeListener=function(O,C){var g,_,Y,R,F;if(A(C),void 0===(_=this._events))return this;if(void 0===(g=_[O]))return this;if(g===C||g.listener===C)0==--this._eventsCount?this._events=Object.create(null):(delete _[O],_.removeListener&&this.emit("removeListener",O,g.listener||C));else if("function"!=typeof g){for(Y=-1,R=g.length-1;R>=0;R--)if(g[R]===C||g[R].listener===C){F=g[R].listener,Y=R;break}if(Y<0)return this;0===Y?g.shift():function L(G,O){for(;O+1<G.length;O++)G[O]=G[O+1];G.pop()}(g,Y),1===g.length&&(_[O]=g[0]),void 0!==_.removeListener&&this.emit("removeListener",O,F||C)}return this},y.prototype.removeAllListeners=function(O){var C,g,_;if(void 0===(g=this._events))return this;if(void 0===g.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==g[O]&&(0==--this._eventsCount?this._events=Object.create(null):delete g[O]),this;if(0===arguments.length){var R,Y=Object.keys(g);for(_=0;_<Y.length;++_)"removeListener"!==(R=Y[_])&&this.removeAllListeners(R);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(C=g[O]))this.removeListener(O,C);else if(void 0!==C)for(_=C.length-1;_>=0;_--)this.removeListener(O,C[_]);return this},y.prototype.listeners=function(O){return U(this,O,!0)},y.prototype.rawListeners=function(O){return U(this,O,!1)},y.listenerCount=function(G,O){return"function"==typeof G.listenerCount?G.listenerCount(O):Q.call(G,O)},y.prototype.listenerCount=Q,y.prototype.eventNames=function(){return this._eventsCount>0?E(this._events):[]}},8145:(Se,Z,H)=>{"use strict";var E=H(4737);Se.exports=function(V){var w,y={stun:(V||{}).stun||H(9272),turn:(V||{}).turn||H(6410)},A=(V||{}).turnCount||0;function x(T,b){for(var N,U=[],Q=[].concat(y[T]);Q.length&&U.length<b;)N=Math.random()*Q.length|0,U=U.concat(Q.splice(N,1));return U.map(function(L){return"string"==typeof L||L instanceof String?E(T+":"+L):L})}return w=[].concat(x("stun",(V||{}).stunCount||2)),A&&(w=w.concat(x("turn",A))),w}},2877:(Se,Z,H)=>{var V,E=H(1181);"undefined"!=typeof window&&(V=window.AudioContext||window.webkitAudioContext);var y=null;Se.exports=function(S,x){var w=new E;if(!V)return w;var ue,ee,M,T=(x=x||{}).smoothing||.1,b=x.interval||50,U=x.threshold,Q=x.play,N=x.history||10,L=!0;y=x.audioContext||y||new V,(M=y.createAnalyser()).fftSize=512,M.smoothingTimeConstant=T,ee=new Float32Array(M.frequencyBinCount),S.jquery&&(S=S[0]),S instanceof HTMLAudioElement||S instanceof HTMLVideoElement?(ue=y.createMediaElementSource(S),void 0===Q&&(Q=!0),U=U||-50):(ue=y.createMediaStreamSource(S),U=U||-50),ue.connect(M),Q&&M.connect(y.destination),w.speaking=!1,w.suspend=function(){return y.suspend()},w.resume=function(){return y.resume()},Object.defineProperty(w,"state",{get:function(){return y.state}}),y.onstatechange=function(){w.emit("state_change",y.state)},w.setThreshold=function(O){U=O},w.setInterval=function(O){b=O},w.stop=function(){L=!1,w.emit("volume_change",-100,U),w.speaking&&(w.speaking=!1,w.emit("stopped_speaking")),M.disconnect(),ue.disconnect()},w.speakingHistory=[];for(var v=0;v<N;v++)w.speakingHistory.push(0);var G=function(){setTimeout(function(){if(L){var O=function q(S,A){var w=-1/0;S.getFloatFrequencyData(A);for(var x=4,T=A.length;x<T;x++)A[x]>w&&A[x]<0&&(w=A[x]);return w}(M,ee);w.emit("volume_change",O,U);var C=0;if(O>U&&!w.speaking){for(var g=w.speakingHistory.length-3;g<w.speakingHistory.length;g++)C+=w.speakingHistory[g];C>=2&&(w.speaking=!0,w.emit("speaking"))}else if(O<U&&w.speaking){for(g=0;g<w.speakingHistory.length;g++)C+=w.speakingHistory[g];0==C&&(w.speaking=!1,w.emit("stopped_speaking"))}w.speakingHistory.shift(),w.speakingHistory.push(0+(O>U)),G()}},b)};return G(),w}},9543:Se=>{Se.exports="function"==typeof Object.create?function(H,E){E&&(H.super_=E,H.prototype=Object.create(E.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}))}:function(H,E){if(E){H.super_=E;var q=function(){};q.prototype=E.prototype,H.prototype=new q,H.prototype.constructor=H}}},5163:function(Se,Z){var V,H=this&&this.__extends||(V=function(y,S){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,w){A.__proto__=w}||function(A,w){for(var x in w)Object.prototype.hasOwnProperty.call(w,x)&&(A[x]=w[x])})(y,S)},function(y,S){function A(){this.constructor=y}V(y,S),y.prototype=null===S?Object.create(S):(A.prototype=S.prototype,new A)});function E(V){if(!V)return E.__;Array.prototype.reduce||(Array.prototype.reduce=function(A,w){for(var x=w,T=0;T<this.length;T++)x=A(x,this[T],T,this);return x});var y="";return("."+V).split(".").reduce(function(A,w,x,T){y?y+="."+w:y=w;var b=A["__"+y];return void 0===b&&(E.Logger.prototype=A,b=new E.Logger(y),A["__"+y]=b),b},E.__)}(function(V){function y(k,P,K){if(void 0!==P[k]){if(null===P[k])return void delete K[k];K[k]=P[k]}}function S(k){if(null!=V.enabled&&!V.enabled)return!1;try{if(k.userAgentRegex&&!new RegExp(k.userAgentRegex).test(navigator.userAgent))return!1}catch(P){}try{if(k.ipRegex&&V.clientIP&&!new RegExp(k.ipRegex).test(V.clientIP))return!1}catch(P){}return!0}function A(k,P){try{if(k.disallow&&new RegExp(k.disallow).test(P))return!1}catch(K){}return!0}function w(k){return"function"==typeof k?k instanceof RegExp?k.toString():k():k}V.requestId="",V.entryId=0,V._createXMLHttpRequest=function(){return new XMLHttpRequest},V._getTime=function(){return(new Date).getTime()},V._console=console,V._appenderNames=[];var x=function k(P,K,ie){this.msg=P,this.meta=K,this.finalString=ie};function T(k){var K,P=w(k);switch(typeof P){case"string":return new x(P,null,P);case"number":case"boolean":return K=P.toString(),new x(K,null,K);case"undefined":return new x("undefined",null,"undefined");case"object":return P instanceof RegExp||P instanceof String||P instanceof Number||P instanceof Boolean?(K=P.toString(),new x(K,null,K)):(K="function"==typeof V.serialize?V.serialize.call(this,P):JSON.stringify(P),new x("",P,K));default:return new x("unknown",null,"unknown")}}function G(k){return k<=1e3?"trace":k<=2e3?"debug":k<=3e3?"info":k<=4e3?"warn":k<=5e3?"error":"fatal"}V.setOptions=function b(k){return y("enabled",k,this),y("maxMessages",k,this),y("defaultAjaxUrl",k,this),y("clientIP",k,this),y("requestId",k,this),y("defaultBeforeSend",k,this),y("serialize",k,this),this},V.getAllLevel=function U(){return-2147483648},V.getTraceLevel=function Q(){return 1e3},V.getDebugLevel=function N(){return 2e3},V.getInfoLevel=function L(){return 3e3},V.getWarnLevel=function ue(){return 4e3},V.getErrorLevel=function ee(){return 5e3},V.getFatalLevel=function M(){return 6e3},V.getOffLevel=function v(){return 2147483647};var O=function k(P,K){this.inner=K,this.name="JL.Exception",this.message=T(P).finalString};V.Exception=O,O.prototype=new Error;var C=function k(P,K,ie,_e,Ae){this.l=P,this.m=K,this.n=ie,this.t=_e,this.u=Ae};function g(k,P,K){return V.entryId++,new C(k,P,K,V._getTime(),V.entryId)}function _(k){k.id&&(clearTimeout(k.id),k.id=null)}function Y(k,P,K){var ie=this;k.id||(k.id=setTimeout(function(){K.call(ie)},P))}V.LogItem=C;var R=function(){function k(P,K){this.appenderName=P,this.sendLogItems=K,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 ie="Trying to create an appender without a name or with an empty name";if(null==P)throw ie;if(-1!=V._appenderNames.indexOf(P))throw P?"Multiple appenders use the same name "+P:ie;V._appenderNames.push(P)}return k.prototype.addLogItemsToBuffer=function(P){if(this.batchBuffer.length>=this.maxBatchSize)this.nbrLogItemsSkipped+=P.length;else{if(null!=V.maxMessages){if(V.maxMessages<1)return;V.maxMessages-=P.length}this.batchBuffer=this.batchBuffer.concat(P);var K=this;Y(this.batchTimeoutTimer,this.batchTimeout,function(){K.sendBatch.call(K)})}},k.prototype.batchBufferHasOverdueMessages=function(){for(var P=0;P<this.batchBuffer.length;P++)if(V._getTime()-this.batchBuffer[P].t>this.batchTimeout)return!0;return!1},k.prototype.batchBufferHasStrandedMessage=function(){return null!=V.maxMessages&&V.maxMessages<1&&this.batchBuffer.length>0},k.prototype.sendBatchIfComplete=function(){(this.batchBuffer.length>=this.batchSize||this.batchBufferHasOverdueMessages()||this.batchBufferHasStrandedMessage())&&this.sendBatch()},k.prototype.onSendingEnded=function(){_(this.sendTimeoutTimer),this.nbrLogItemsBeingSent=0,this.sendBatchIfComplete()},k.prototype.setOptions=function(P){if(y("level",P,this),y("ipRegex",P,this),y("userAgentRegex",P,this),y("disallow",P,this),y("sendWithBufferLevel",P,this),y("storeInBufferLevel",P,this),y("bufferSize",P,this),y("batchSize",P,this),y("maxBatchSize",P,this),y("batchTimeout",P,this),y("sendTimeout",P,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},k.prototype.log=function(P,K,ie,_e,Ae,be,He){var dt;if(S(this)&&A(this,be)&&!(Ae<this.storeInBufferLevel)){if(dt=g(Ae,be,He),Ae<this.level)return void(this.bufferSize>0&&(this.buffer.push(dt),this.buffer.length>this.bufferSize&&this.buffer.shift()));this.addLogItemsToBuffer([dt]),Ae>=this.sendWithBufferLevel&&this.buffer.length&&(this.addLogItemsToBuffer(this.buffer),this.buffer.length=0),this.sendBatchIfComplete()}},k.prototype.sendBatch=function(){if(!(this.nbrLogItemsBeingSent>0)&&(_(this.batchTimeoutTimer),0!=this.batchBuffer.length)){this.nbrLogItemsBeingSent=this.batchBuffer.length;var P=this;Y(this.sendTimeoutTimer,this.sendTimeout,function(){P.onSendingEnded.call(P)}),this.sendLogItems(this.batchBuffer,function(){P.batchBuffer.splice(0,P.nbrLogItemsBeingSent),P.nbrLogItemsSkipped>0&&(P.batchBuffer.push(g(4e3,"Lost "+P.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.",P.appenderName)),P.nbrLogItemsSkipped=0),P.onSendingEnded.call(P)})}},k}();V.Appender=R;var F=function(k){function P(K){return k.call(this,K,P.prototype.sendLogItemsAjax)||this}return H(P,k),P.prototype.setOptions=function(K){return y("url",K,this),y("beforeSend",K,this),k.prototype.setOptions.call(this,K),this},P.prototype.sendLogItemsAjax=function(K,ie){try{if(!S(this))return;this.xhr&&0!=this.xhr.readyState&&4!=this.xhr.readyState&&this.xhr.abort(),this.xhr=V._createXMLHttpRequest();var _e="/jsnlog.logger";null!=V.defaultAjaxUrl&&(_e=V.defaultAjaxUrl),this.url&&(_e=this.url),this.xhr.open("POST",_e),this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("JSNLog-RequestId",V.requestId);var Ae=this;this.xhr.onreadystatechange=function(){4==Ae.xhr.readyState&&Ae.xhr.status>=200&&Ae.xhr.status<300&&ie()};var be={r:V.requestId,lg:K};"function"==typeof this.beforeSend?this.beforeSend.call(this,this.xhr,be):"function"==typeof V.defaultBeforeSend&&V.defaultBeforeSend.call(this,this.xhr,be);var He=JSON.stringify(be);this.xhr.send(He)}catch(dt){}},P}(R);V.AjaxAppender=F;var W=function(k){function P(K){return k.call(this,K,P.prototype.sendLogItemsConsole)||this}return H(P,k),P.prototype.clog=function(K){V._console.log(K)},P.prototype.cerror=function(K){V._console.error?V._console.error(K):this.clog(K)},P.prototype.cwarn=function(K){V._console.warn?V._console.warn(K):this.clog(K)},P.prototype.cinfo=function(K){V._console.info?V._console.info(K):this.clog(K)},P.prototype.cdebug=function(K){V._console.debug?V._console.debug(K):this.cinfo(K)},P.prototype.sendLogItemsConsole=function(K,ie){try{if(!S(this)||!V._console)return;var _e;for(_e=0;_e<K.length;++_e){var Ae=K[_e],be=Ae.n+": "+Ae.m;"undefined"==typeof window&&(be=new Date(Ae.t)+" | "+be),Ae.l<=V.getDebugLevel()?this.cdebug(be):Ae.l<=V.getInfoLevel()?this.cinfo(be):Ae.l<=V.getWarnLevel()?this.cwarn(be):this.cerror(be)}}catch(He){}ie()},P}(R);V.ConsoleAppender=W;var B,p=function(){function k(P){this.loggerName=P,this.seenRegexes=[]}return k.prototype.setOptions=function(P){return y("level",P,this),y("userAgentRegex",P,this),y("disallow",P,this),y("ipRegex",P,this),y("appenders",P,this),y("onceOnly",P,this),this.seenRegexes=[],this},k.prototype.buildExceptionObject=function(P){var K={};return P.stack?K.stack=P.stack:K.e=P,P.message&&(K.message=P.message),P.name&&(K.name=P.name),P.data&&(K.data=P.data),P.inner&&(K.inner=this.buildExceptionObject(P.inner)),K},k.prototype.log=function(P,K,ie){var Ae,be,_e=0;if(!this.appenders)return this;if(P>=this.level&&S(this)&&(ie?(be=this.buildExceptionObject(ie)).logData=w(K):be=K,A(this,(Ae=T(be)).finalString))){if(this.onceOnly)for(_e=this.onceOnly.length-1;_e>=0;){if(new RegExp(this.onceOnly[_e]).test(Ae.finalString)){if(this.seenRegexes[_e])return this;this.seenRegexes[_e]=!0}_e--}for(Ae.meta=Ae.meta||{},_e=this.appenders.length-1;_e>=0;)this.appenders[_e].log(G(P),Ae.msg,Ae.meta,function(){},P,Ae.finalString,this.loggerName),_e--}return this},k.prototype.trace=function(P){return this.log(1e3,P)},k.prototype.debug=function(P){return this.log(2e3,P)},k.prototype.info=function(P){return this.log(3e3,P)},k.prototype.warn=function(P){return this.log(4e3,P)},k.prototype.error=function(P){return this.log(5e3,P)},k.prototype.fatal=function(P){return this.log(6e3,P)},k.prototype.fatalException=function(P,K){return this.log(6e3,P,K)},k}();V.Logger=p,V.createAjaxAppender=function D(k){return new F(k)},V.createConsoleAppender=function j(k){return new W(k)},B="undefined"!=typeof window?new F(""):new W(""),V.__=new V.Logger(""),V.__.setOptions({level:V.getDebugLevel(),appenders:[B]})})(E||(E={})),Z.__esModule=!0,Z.JL=E,"function"==typeof __jsnlog_configure&&__jsnlog_configure(E),"undefined"!=typeof window&&!window.onerror&&(window.onerror=function(V,y,S,A,w){return E("onerrorLogger").fatalException({msg:"Uncaught Exception",errorMsg:V?V.message||V:"",url:y,"line number":S,column:A},w),!1}),"undefined"!=typeof window&&!window.onunhandledrejection&&(window.onunhandledrejection=function(V){E("onerrorLogger").fatalException({msg:"unhandledrejection",errorMsg:V.reason?V.reason.message:V.message||null},V.reason)})},1708:Se=>{"use strict";function Z(){this._types=Object.create(null),this._extensions=Object.create(null);for(let H=0;H<arguments.length;H++)this.define(arguments[H]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Z.prototype.define=function(H,E){for(let q in H){let V=H[q].map(function(y){return y.toLowerCase()});q=q.toLowerCase();for(let y=0;y<V.length;y++){const S=V[y];if("*"!==S[0]){if(!E&&S in this._types)throw new Error('Attempt to change mapping for "'+S+'" extension from "'+this._types[S]+'" to "'+q+'". Pass `force=true` to allow this, otherwise remove "'+S+'" from the list of extensions for "'+q+'".');this._types[S]=q}}if(E||!this._extensions[q]){const y=V[0];this._extensions[q]="*"!==y[0]?y:y.substr(1)}}},Z.prototype.getType=function(H){let E=(H=String(H)).replace(/^.*[/\\]/,"").toLowerCase(),q=E.replace(/^.*\./,"").toLowerCase();return(q.length<E.length-1||!(E.length<H.length))&&this._types[q]||null},Z.prototype.getExtension=function(H){return(H=/^\s*([^;\s]*)/.test(H)&&RegExp.$1)&&this._extensions[H.toLowerCase()]||null},Se.exports=Z},1397:(Se,Z,H)=>{"use strict";let E=H(1708);Se.exports=new E(H(3775))},3775:Se=>{Se.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:Se=>{var Z=["stun:","turn:"];Se.exports=function(H){var q,V,E=(H||{}).url||H,y={};return("string"==typeof E||E instanceof String)&&(E=E.trim(),q=Z[Z.indexOf(E.slice(0,5))])?(V=(E=E.slice(5)).split("@"),y.username=H.username,y.credential=H.credential,V.length>1&&(E=V[1],V=V[0].split(":"),y.username=V[0],y.credential=(H||{}).credential||V[1]||""),y.url=q+E,y.urls=[y.url],y):H}},6218:function(Se,Z,H){var E;Se=H.nmd(Se),function(){"use strict";var q={function:!0,object:!0},V=q[typeof window]&&window||this,w=q[typeof Z]&&Z&&q.object&&Se&&!Se.nodeType&&Se&&"object"==typeof global&&global;w&&(w.global===w||w.window===w||w.self===w)&&(V=w);var x=Math.pow(2,53)-1,T=/\bOpera/,U=Object.prototype,Q=U.hasOwnProperty,N=U.toString;function L(F){return(F=String(F)).charAt(0).toUpperCase()+F.slice(1)}function M(F){return F=_(F),/^(?:webOS|i(?:OS|P))/.test(F)?F:L(F)}function v(F,W){for(var p in F)Q.call(F,p)&&W(F[p],p,F)}function G(F){return null==F?L(F):N.call(F).slice(8,-1)}function C(F){return String(F).replace(/([ -])(?!$)/g,"$1?")}function g(F,W){var p=null;return function ee(F,W){var p=-1,D=F?F.length:0;if("number"==typeof D&&D>-1&&D<=x)for(;++p<D;)W(F[p],p,F);else v(F,W)}(F,function(D,j){p=W(p,D,j,F)}),p}function _(F){return String(F).replace(/^ +| +$/g,"")}var R=function Y(F){var W=V,p=F&&"object"==typeof F&&"String"!=G(F);p&&(W=F,F=null);var D=W.navigator||{},j=D.userAgent||"";F||(F=j);var he,le,k=p?!!D.likeChrome:/\bChrome\b/.test(F)&&!/internal|\n/i.test(N.toString()),P="Object",K=p?P:"ScriptBridgingProxyObject",ie=p?P:"Environment",_e=p&&W.java?"JavaPackage":G(W.java),Ae=p?P:"RuntimeObject",be=/\bJava/.test(_e)&&W.java,He=be&&G(W.environment)==ie,dt=be?"a":"\u03b1",Le=be?"b":"\u03b2",Ge=W.document||{},Vt=W.operamini||W.opera,Ue=T.test(Ue=p&&Vt?Vt["[[Class]]"]:G(Vt))?Ue:Vt=null,Ti=F,et=[],tn=null,ce=F==j,pe=ce&&Vt&&"function"==typeof Vt.version&&Vt.version(),te=function Ht(Sn){return g(Sn,function(Ut,Ot){return Ut||RegExp("\\b"+(Ot.pattern||C(Ot))+"\\b","i").exec(F)&&(Ot.label||Ot)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ne=function fi(Sn){return g(Sn,function(Ut,Ot){return Ut||RegExp("\\b"+(Ot.pattern||C(Ot))+"\\b","i").exec(F)&&(Ot.label||Ot)})}(["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"]),me=gn([{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"]),we=function $n(Sn){return g(Sn,function(Ut,Ot,ri){return Ut||(Ot[me]||Ot[/^[a-z]+(?: +[a-z]+\b)*/i.exec(me)]||RegExp("\\b"+C(ri)+"(?:\\b|\\w*\\d)","i").exec(F))&&ri})}({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}}),Me=function Er(Sn){return g(Sn,function(Ut,Ot){var ri=Ot.pattern||C(Ot);return!Ut&&(Ut=RegExp("\\b"+ri+"(?:/[\\d.]+|[ \\w.]*)","i").exec(F))&&(Ut=function ue(F,W,p){var D={"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 W&&p&&/^Win/i.test(F)&&!/^Windows Phone /i.test(F)&&(D=D[/[\d.]+$/.exec(F)])&&(F="Windows "+D),F=String(F),W&&p&&(F=F.replace(RegExp(W,"i"),p)),M(F.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])}(Ut,ri,Ot.label||Ot)),Ut})}(["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 gn(Sn){return g(Sn,function(Ut,Ot){var ri=Ot.pattern||C(Ot);return!Ut&&(Ut=RegExp("\\b"+ri+" *\\d+[.\\w_]*","i").exec(F)||RegExp("\\b"+ri+" *\\w+-[\\w]*","i").exec(F)||RegExp("\\b"+ri+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(F))&&((Ut=String(Ot.label&&!RegExp(ri,"i").test(Ot.label)?Ot.label:Ut).split("/"))[1]&&!/[\d.]+/.test(Ut[0])&&(Ut[0]+=" "+Ut[1]),Ot=Ot.label||Ot,Ut=M(Ut[0].replace(RegExp(ri,"i"),Ot).replace(RegExp("; *(?:"+Ot+"[_-])?","i")," ").replace(RegExp("("+Ot+")[-_.]?(\\w)","i"),"$1 $2"))),Ut})}function Ii(Sn){return g(Sn,function(Ut,Ot){return Ut||(RegExp(Ot+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(F)||0)[1]||null})}if(te&&(te=[te]),/\bAndroid\b/.test(Me)&&!me&&(he=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(F))&&(me=_(he[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),we&&!me?me=gn([we]):we&&me&&(me=me.replace(RegExp("^("+C(we)+")[-_.\\s]","i"),we+" ").replace(RegExp("^("+C(we)+")[-_.]?(\\w)","i"),we+" $2")),(he=/\bGoogle TV\b/.exec(me))&&(me=he[0]),/\bSimulator\b/i.test(F)&&(me=(me?me+" ":"")+"Simulator"),"Opera Mini"==ne&&/\bOPiOS\b/.test(F)&&et.push("running in Turbo/Uncompressed mode"),"IE"==ne&&/\blike iPhone OS\b/.test(F)?(we=(he=Y(F.replace(/like iPhone OS/,""))).manufacturer,me=he.product):/^iP/.test(me)?(ne||(ne="Safari"),Me="iOS"+((he=/ OS ([\d_]+)/i.exec(F))?" "+he[1].replace(/_/g,"."):"")):"Konqueror"==ne&&/^Linux\b/i.test(Me)?Me="Kubuntu":we&&"Google"!=we&&(/Chrome/.test(ne)&&!/\bMobile Safari\b/i.test(F)||/\bVita\b/.test(me))||/\bAndroid\b/.test(Me)&&/^Chrome/.test(ne)&&/\bVersion\//i.test(F)?(ne="Android Browser",Me=/\bAndroid\b/.test(Me)?Me:"Android"):"Silk"==ne?(/\bMobi/i.test(F)||(Me="Android",et.unshift("desktop mode")),/Accelerated *= *true/i.test(F)&&et.unshift("accelerated")):"UC Browser"==ne&&/\bUCWEB\b/.test(F)?et.push("speed mode"):"PaleMoon"==ne&&(he=/\bFirefox\/([\d.]+)\b/.exec(F))?et.push("identifying as Firefox "+he[1]):"Firefox"==ne&&(he=/\b(Mobile|Tablet|TV)\b/i.exec(F))?(Me||(Me="Firefox OS"),me||(me=he[1])):!ne||(he=!/\bMinefield\b/i.test(F)&&/\b(?:Firefox|Safari)\b/.exec(ne))?(ne&&!me&&/[\/,]|^[^(]+?\)/.test(F.slice(F.indexOf(he+"/")+8))&&(ne=null),(he=me||we||Me)&&(me||we||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Me))&&(ne=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Me)?Me:he)+" Browser")):"Electron"==ne&&(he=(/\bChrome\/([\d.]+)\b/.exec(F)||0)[1])&&et.push("Chromium "+he),pe||(pe=Ii(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",C(ne),"(?:Firefox|Minefield|NetFront)"])),(he=("iCab"==te&&parseFloat(pe)>3?"WebKit":/\bOpera\b/.test(ne)&&(/\bOPR\b/.test(F)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(F)&&!/^(?:Trident|EdgeHTML)$/.test(te)&&"WebKit"||!te&&/\bMSIE\b/i.test(F)&&("Mac OS"==Me?"Tasman":"Trident")||"WebKit"==te&&/\bPlayStation\b(?! Vita\b)/i.test(ne)&&"NetFront")&&(te=[he]),"IE"==ne&&(he=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(F)||0)[1])?(ne+=" Mobile",Me="Windows Phone "+(/\+$/.test(he)?he:he+".x"),et.unshift("desktop mode")):/\bWPDesktop\b/i.test(F)?(ne="IE Mobile",Me="Windows Phone 8.x",et.unshift("desktop mode"),pe||(pe=(/\brv:([\d.]+)/.exec(F)||0)[1])):"IE"!=ne&&"Trident"==te&&(he=/\brv:([\d.]+)/.exec(F))&&(ne&&et.push("identifying as "+ne+(pe?" "+pe:"")),ne="IE",pe=he[1]),ce){if(function O(F,W){var p=null!=F?typeof F[W]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(p)||"object"==p&&!F[W])}(W,"global"))if(be&&(Ti=(he=be.lang.System).getProperty("os.arch"),Me=Me||he.getProperty("os.name")+" "+he.getProperty("os.version")),He){try{pe=W.require("ringo/engine").version.join("."),ne="RingoJS"}catch(Sn){(he=W.system)&&he.global.system==W.system&&(ne="Narwhal",Me||(Me=he[0].os||null))}ne||(ne="Rhino")}else"object"==typeof W.process&&!W.process.browser&&(he=W.process)&&("object"==typeof he.versions&&("string"==typeof he.versions.electron?(et.push("Node "+he.versions.node),ne="Electron",pe=he.versions.electron):"string"==typeof he.versions.nw&&(et.push("Chromium "+pe,"Node "+he.versions.node),ne="NW.js",pe=he.versions.nw)),ne||(ne="Node.js",Ti=he.arch,Me=he.platform,pe=(pe=/[\d.]+/.exec(he.version))?pe[0]:null));else G(he=W.runtime)==K?(ne="Adobe AIR",Me=he.flash.system.Capabilities.os):G(he=W.phantom)==Ae?(ne="PhantomJS",pe=(he=he.version||null)&&he.major+"."+he.minor+"."+he.patch):"number"==typeof Ge.documentMode&&(he=/\bTrident\/(\d+)/i.exec(F))?((he=+he[1]+4)!=(pe=[pe,Ge.documentMode])[1]&&(et.push("IE "+pe[1]+" mode"),te&&(te[1]=""),pe[1]=he),pe="IE"==ne?String(pe[1].toFixed(1)):pe[0]):"number"==typeof Ge.documentMode&&/^(?:Chrome|Firefox)\b/.test(ne)&&(et.push("masking as "+ne+" "+pe),ne="IE",pe="11.0",te=["Trident"],Me="Windows");Me=Me&&M(Me)}if(pe&&(he=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(pe)||/(?:alpha|beta)(?: ?\d)?/i.exec(F+";"+(ce&&D.appMinorVersion))||/\bMinefield\b/i.test(F)&&"a")&&(tn=/b/i.test(he)?"beta":"alpha",pe=pe.replace(RegExp(he+"\\+?$"),"")+("beta"==tn?Le:dt)+(/\d+\+?/.exec(he)||"")),"Fennec"==ne||"Firefox"==ne&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Me))ne="Firefox Mobile";else if("Maxthon"==ne&&pe)pe=pe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(me))"Xbox 360"==me&&(Me=null),"Xbox 360"==me&&/\bIEMobile\b/.test(F)&&et.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ne)&&(!ne||me||/Browser|Mobi/.test(ne))||"Windows CE"!=Me&&!/Mobi/i.test(F))if("IE"==ne&&ce)try{null===W.external&&et.unshift("platform preview")}catch(Sn){et.unshift("embedded")}else(/\bBlackBerry\b/.test(me)||/\bBB10\b/.test(F))&&(he=(RegExp(me.replace(/ +/g," *")+"/([.\\d]+)","i").exec(F)||0)[1]||pe)?(Me=((he=[he,/BB10/.test(F)])[1]?(me=null,we="BlackBerry"):"Device Software")+" "+he[0],pe=null):this!=v&&"Wii"!=me&&(ce&&Vt||/Opera/.test(ne)&&/\b(?:MSIE|Firefox)\b/i.test(F)||"Firefox"==ne&&/\bOS X (?:\d+\.){2,}/.test(Me)||"IE"==ne&&(Me&&!/^Win/.test(Me)&&pe>5.5||/\bWindows XP\b/.test(Me)&&pe>8||8==pe&&!/\bTrident\b/.test(F)))&&!T.test(he=Y.call(v,F.replace(T,"")+";"))&&he.name&&(he="ing as "+he.name+((he=he.version)?" "+he:""),T.test(ne)?(/\bIE\b/.test(he)&&"Mac OS"==Me&&(Me=null),he="identify"+he):(he="mask"+he,ne=Ue?M(Ue.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(he)&&(Me=null),ce||(pe=null)),te=["Presto"],et.push(he));else ne+=" Mobile";(he=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(F)||0)[1])&&(he=[parseFloat(he.replace(/\.(\d)$/,".0$1")),he],"Safari"==ne&&"+"==he[1].slice(-1)?(ne="WebKit Nightly",tn="alpha",pe=he[1].slice(0,-1)):(pe==he[1]||pe==(he[2]=(/\bSafari\/([\d.]+\+?)/i.exec(F)||0)[1]))&&(pe=null),he[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(F)||0)[1],537.36==he[0]&&537.36==he[2]&&parseFloat(he[1])>=28&&"WebKit"==te&&(te=["Blink"]),ce&&(k||he[1])?(te&&(te[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"!=te?"27":"28")):(te&&(te[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"),te&&(te[1]+=" "+(he+="number"==typeof he?".x":/[.+]/.test(he)?"":"+")),"Safari"==ne&&(!pe||parseInt(pe)>45)?pe=he:"Chrome"==ne&&/\bHeadlessChrome/i.test(F)&&et.unshift("headless")),"Opera"==ne&&(he=/\bzbov|zvav$/.exec(Me))?(ne+=" ",et.unshift("desktop mode"),"zvav"==he?(ne+="Mini",pe=null):ne+="Mobile",Me=Me.replace(RegExp(" *"+he+"$"),"")):"Safari"==ne&&/\bChrome\b/.exec(te&&te[1])?(et.unshift("desktop mode"),ne="Chrome Mobile",pe=null,/\bOS X\b/.test(Me)?(we="Apple",Me="iOS 4.3+"):Me=null):/\bSRWare Iron\b/.test(ne)&&!pe&&(pe=Ii("Chrome")),pe&&0==pe.indexOf(he=/[\d.]+$/.exec(Me))&&F.indexOf("/"+he+"-")>-1&&(Me=_(Me.replace(he,""))),Me&&-1!=Me.indexOf(ne)&&!RegExp(ne+" OS").test(Me)&&(Me=Me.replace(RegExp(" *"+C(ne)+" *"),"")),te&&!/\b(?:Avant|Nook)\b/.test(ne)&&(/Browser|Lunascape|Maxthon/.test(ne)||"Safari"!=ne&&/^iOS/.test(Me)&&/\bSafari\b/.test(te[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ne)&&te[1])&&(he=te[te.length-1])&&et.push(he),et.length&&(et=["("+et.join("; ")+")"]),we&&me&&me.indexOf(we)<0&&et.push("on "+we),me&&et.push((/^on /.test(et[et.length-1])?"":"on ")+me),Me&&(he=/ ([\d.+]+)$/.exec(Me),le=he&&"/"==Me.charAt(Me.length-he[0].length-1),Me={architecture:32,family:he&&!le?Me.replace(he[0],""):Me,version:he?he[1]:null,toString:function(){var Sn=this.version;return this.family+(Sn&&!le?" "+Sn:"")+(64==this.architecture?" 64-bit":"")}}),(he=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ti))&&!/\bi686\b/i.test(Ti)?(Me&&(Me.architecture=64,Me.family=Me.family.replace(RegExp(" *"+he),"")),ne&&(/\bWOW64\b/i.test(F)||ce&&/\w(?:86|32)$/.test(D.cpuClass||D.platform)&&!/\bWin64; x64\b/i.test(F))&&et.unshift("32-bit")):Me&&/^OS X/.test(Me.family)&&"Chrome"==ne&&parseFloat(pe)>=39&&(Me.architecture=64),F||(F=null);var En={};return En.description=F,En.layout=te&&te[0],En.manufacturer=we,En.name=ne,En.prerelease=tn,En.product=me,En.ua=F,En.version=ne&&pe,En.os=Me||{architecture:null,family:null,version:null,toString:function(){return"null"}},En.parse=Y,En.toString=function qr(){return this.description||""},En.version&&et.unshift(pe),En.name&&et.unshift(ne),Me&&ne&&!(Me==String(Me).split(" ")[0]&&(Me==ne.split(" ")[0]||me))&&et.push(me?"("+Me+")":"on "+Me),et.length&&(En.description=et.join(" ")),En}();V.platform=R,void 0!==(E=function(){return R}.call(Z,H,Z,Se))&&(Se.exports=E)}.call(this)},1550:(Se,Z,H)=>{const E=H(6947),{MAX_LENGTH:q,MAX_SAFE_INTEGER:V}=H(7278),{re:y,t:S}=H(7134),A=H(3059),{compareIdentifiers:w}=H(6747);class x{constructor(b,U){if(U=A(U),b instanceof x){if(b.loose===!!U.loose&&b.includePrerelease===!!U.includePrerelease)return b;b=b.version}else if("string"!=typeof b)throw new TypeError(`Invalid Version: ${b}`);if(b.length>q)throw new TypeError(`version is longer than ${q} characters`);E("SemVer",b,U),this.options=U,this.loose=!!U.loose,this.includePrerelease=!!U.includePrerelease;const Q=b.trim().match(U.loose?y[S.LOOSE]:y[S.FULL]);if(!Q)throw new TypeError(`Invalid Version: ${b}`);if(this.raw=b,this.major=+Q[1],this.minor=+Q[2],this.patch=+Q[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=Q[4]?Q[4].split(".").map(N=>{if(/^[0-9]+$/.test(N)){const L=+N;if(L>=0&&L<V)return L}return N}):[],this.build=Q[5]?Q[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(b){if(E("SemVer.compare",this.version,this.options,b),!(b instanceof x)){if("string"==typeof b&&b===this.version)return 0;b=new x(b,this.options)}return b.version===this.version?0:this.compareMain(b)||this.comparePre(b)}compareMain(b){return b instanceof x||(b=new x(b,this.options)),w(this.major,b.major)||w(this.minor,b.minor)||w(this.patch,b.patch)}comparePre(b){if(b instanceof x||(b=new x(b,this.options)),this.prerelease.length&&!b.prerelease.length)return-1;if(!this.prerelease.length&&b.prerelease.length)return 1;if(!this.prerelease.length&&!b.prerelease.length)return 0;let U=0;do{const Q=this.prerelease[U],N=b.prerelease[U];if(E("prerelease compare",U,Q,N),void 0===Q&&void 0===N)return 0;if(void 0===N)return 1;if(void 0===Q)return-1;if(Q!==N)return w(Q,N)}while(++U)}compareBuild(b){b instanceof x||(b=new x(b,this.options));let U=0;do{const Q=this.build[U],N=b.build[U];if(E("prerelease compare",U,Q,N),void 0===Q&&void 0===N)return 0;if(void 0===N)return 1;if(void 0===Q)return-1;if(Q!==N)return w(Q,N)}while(++U)}inc(b,U){switch(b){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",U);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",U);break;case"prepatch":this.prerelease.length=0,this.inc("patch",U),this.inc("pre",U);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",U),this.inc("pre",U);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 Q=this.prerelease.length;for(;--Q>=0;)"number"==typeof this.prerelease[Q]&&(this.prerelease[Q]++,Q=-2);-1===Q&&this.prerelease.push(0)}U&&(this.prerelease[0]===U?isNaN(this.prerelease[1])&&(this.prerelease=[U,0]):this.prerelease=[U,0]);break;default:throw new Error(`invalid increment argument: ${b}`)}return this.format(),this.raw=this.version,this}}Se.exports=x},1892:(Se,Z,H)=>{const E=H(1550);Se.exports=(V,y)=>new E(V,y).major},9897:(Se,Z,H)=>{const E=H(1550);Se.exports=(V,y)=>new E(V,y).minor},7278:Se=>{Se.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}},6947:Se=>{const Z="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...H)=>console.error("SEMVER",...H):()=>{};Se.exports=Z},6747:Se=>{const Z=/^[0-9]+$/,H=(q,V)=>{const y=Z.test(q),S=Z.test(V);return y&&S&&(q=+q,V=+V),q===V?0:y&&!S?-1:S&&!y?1:q<V?-1:1};Se.exports={compareIdentifiers:H,rcompareIdentifiers:(q,V)=>H(V,q)}},3059:Se=>{const Z=["includePrerelease","loose","rtl"];Se.exports=E=>E?"object"!=typeof E?{loose:!0}:Z.filter(q=>E[q]).reduce((q,V)=>(q[V]=!0,q),{}):{}},7134:(Se,Z,H)=>{const{MAX_SAFE_COMPONENT_LENGTH:E}=H(7278),q=H(6947),V=(Z=Se.exports={}).re=[],y=Z.src=[],S=Z.t={};let A=0;const w=(x,T,b)=>{const U=A++;q(U,T),S[x]=U,y[U]=T,V[U]=new RegExp(T,b?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*"),w("NUMERICIDENTIFIERLOOSE","[0-9]+"),w("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),w("MAINVERSION",`(${y[S.NUMERICIDENTIFIER]})\\.(${y[S.NUMERICIDENTIFIER]})\\.(${y[S.NUMERICIDENTIFIER]})`),w("MAINVERSIONLOOSE",`(${y[S.NUMERICIDENTIFIERLOOSE]})\\.(${y[S.NUMERICIDENTIFIERLOOSE]})\\.(${y[S.NUMERICIDENTIFIERLOOSE]})`),w("PRERELEASEIDENTIFIER",`(?:${y[S.NUMERICIDENTIFIER]}|${y[S.NONNUMERICIDENTIFIER]})`),w("PRERELEASEIDENTIFIERLOOSE",`(?:${y[S.NUMERICIDENTIFIERLOOSE]}|${y[S.NONNUMERICIDENTIFIER]})`),w("PRERELEASE",`(?:-(${y[S.PRERELEASEIDENTIFIER]}(?:\\.${y[S.PRERELEASEIDENTIFIER]})*))`),w("PRERELEASELOOSE",`(?:-?(${y[S.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${y[S.PRERELEASEIDENTIFIERLOOSE]})*))`),w("BUILDIDENTIFIER","[0-9A-Za-z-]+"),w("BUILD",`(?:\\+(${y[S.BUILDIDENTIFIER]}(?:\\.${y[S.BUILDIDENTIFIER]})*))`),w("FULLPLAIN",`v?${y[S.MAINVERSION]}${y[S.PRERELEASE]}?${y[S.BUILD]}?`),w("FULL",`^${y[S.FULLPLAIN]}$`),w("LOOSEPLAIN",`[v=\\s]*${y[S.MAINVERSIONLOOSE]}${y[S.PRERELEASELOOSE]}?${y[S.BUILD]}?`),w("LOOSE",`^${y[S.LOOSEPLAIN]}$`),w("GTLT","((?:<|>)?=?)"),w("XRANGEIDENTIFIERLOOSE",`${y[S.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),w("XRANGEIDENTIFIER",`${y[S.NUMERICIDENTIFIER]}|x|X|\\*`),w("XRANGEPLAIN",`[v=\\s]*(${y[S.XRANGEIDENTIFIER]})(?:\\.(${y[S.XRANGEIDENTIFIER]})(?:\\.(${y[S.XRANGEIDENTIFIER]})(?:${y[S.PRERELEASE]})?${y[S.BUILD]}?)?)?`),w("XRANGEPLAINLOOSE",`[v=\\s]*(${y[S.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[S.XRANGEIDENTIFIERLOOSE]})(?:\\.(${y[S.XRANGEIDENTIFIERLOOSE]})(?:${y[S.PRERELEASELOOSE]})?${y[S.BUILD]}?)?)?`),w("XRANGE",`^${y[S.GTLT]}\\s*${y[S.XRANGEPLAIN]}$`),w("XRANGELOOSE",`^${y[S.GTLT]}\\s*${y[S.XRANGEPLAINLOOSE]}$`),w("COERCE",`(^|[^\\d])(\\d{1,${E}})(?:\\.(\\d{1,${E}}))?(?:\\.(\\d{1,${E}}))?(?:$|[^\\d])`),w("COERCERTL",y[S.COERCE],!0),w("LONETILDE","(?:~>?)"),w("TILDETRIM",`(\\s*)${y[S.LONETILDE]}\\s+`,!0),Z.tildeTrimReplace="$1~",w("TILDE",`^${y[S.LONETILDE]}${y[S.XRANGEPLAIN]}$`),w("TILDELOOSE",`^${y[S.LONETILDE]}${y[S.XRANGEPLAINLOOSE]}$`),w("LONECARET","(?:\\^)"),w("CARETTRIM",`(\\s*)${y[S.LONECARET]}\\s+`,!0),Z.caretTrimReplace="$1^",w("CARET",`^${y[S.LONECARET]}${y[S.XRANGEPLAIN]}$`),w("CARETLOOSE",`^${y[S.LONECARET]}${y[S.XRANGEPLAINLOOSE]}$`),w("COMPARATORLOOSE",`^${y[S.GTLT]}\\s*(${y[S.LOOSEPLAIN]})$|^$`),w("COMPARATOR",`^${y[S.GTLT]}\\s*(${y[S.FULLPLAIN]})$|^$`),w("COMPARATORTRIM",`(\\s*)${y[S.GTLT]}\\s*(${y[S.LOOSEPLAIN]}|${y[S.XRANGEPLAIN]})`,!0),Z.comparatorTrimReplace="$1$2$3",w("HYPHENRANGE",`^\\s*(${y[S.XRANGEPLAIN]})\\s+-\\s+(${y[S.XRANGEPLAIN]})\\s*$`),w("HYPHENRANGELOOSE",`^\\s*(${y[S.XRANGEPLAINLOOSE]})\\s+-\\s+(${y[S.XRANGEPLAINLOOSE]})\\s*$`),w("STAR","(<|>)?=?\\s*\\*"),w("GTE0","^\\s*>=\\s*0.0.0\\s*$"),w("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},8201:(Se,Z,H)=>{"use strict";H.r(Z),H.d(Z,{NIL:()=>Ti,parse:()=>v,stringify:()=>b,v1:()=>ee,v3:()=>Ae,v4:()=>He,v5:()=>he,validate:()=>A,version:()=>tn});var E,q=new Uint8Array(16);function V(){if(!E&&!(E="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 E(q)}const y=/^(?:[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,A=function S(ce){return"string"==typeof ce&&y.test(ce)};for(var w=[],x=0;x<256;++x)w.push((x+256).toString(16).substr(1));const b=function T(ce){var pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,le=(w[ce[pe+0]]+w[ce[pe+1]]+w[ce[pe+2]]+w[ce[pe+3]]+"-"+w[ce[pe+4]]+w[ce[pe+5]]+"-"+w[ce[pe+6]]+w[ce[pe+7]]+"-"+w[ce[pe+8]]+w[ce[pe+9]]+"-"+w[ce[pe+10]]+w[ce[pe+11]]+w[ce[pe+12]]+w[ce[pe+13]]+w[ce[pe+14]]+w[ce[pe+15]]).toLowerCase();if(!A(le))throw TypeError("Stringified UUID is invalid");return le};var U,Q,N=0,L=0;const ee=function ue(ce,pe,le){var te=pe&&le||0,ne=pe||new Array(16),me=(ce=ce||{}).node||U,we=void 0!==ce.clockseq?ce.clockseq:Q;if(null==me||null==we){var Me=ce.random||(ce.rng||V)();null==me&&(me=U=[1|Me[0],Me[1],Me[2],Me[3],Me[4],Me[5]]),null==we&&(we=Q=16383&(Me[6]<<8|Me[7]))}var Ht=void 0!==ce.msecs?ce.msecs:Date.now(),$n=void 0!==ce.nsecs?ce.nsecs:L+1,fi=Ht-N+($n-L)/1e4;if(fi<0&&void 0===ce.clockseq&&(we=we+1&16383),(fi<0||Ht>N)&&void 0===ce.nsecs&&($n=0),$n>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");N=Ht,L=$n,Q=we;var Er=(1e4*(268435455&(Ht+=122192928e5))+$n)%4294967296;ne[te++]=Er>>>24&255,ne[te++]=Er>>>16&255,ne[te++]=Er>>>8&255,ne[te++]=255&Er;var gn=Ht/4294967296*1e4&268435455;ne[te++]=gn>>>8&255,ne[te++]=255&gn,ne[te++]=gn>>>24&15|16,ne[te++]=gn>>>16&255,ne[te++]=we>>>8|128,ne[te++]=255&we;for(var Ii=0;Ii<6;++Ii)ne[te+Ii]=me[Ii];return pe||b(ne)},v=function M(ce){if(!A(ce))throw TypeError("Invalid UUID");var pe,le=new Uint8Array(16);return le[0]=(pe=parseInt(ce.slice(0,8),16))>>>24,le[1]=pe>>>16&255,le[2]=pe>>>8&255,le[3]=255&pe,le[4]=(pe=parseInt(ce.slice(9,13),16))>>>8,le[5]=255&pe,le[6]=(pe=parseInt(ce.slice(14,18),16))>>>8,le[7]=255&pe,le[8]=(pe=parseInt(ce.slice(19,23),16))>>>8,le[9]=255&pe,le[10]=(pe=parseInt(ce.slice(24,36),16))/1099511627776&255,le[11]=pe/4294967296&255,le[12]=pe>>>24&255,le[13]=pe>>>16&255,le[14]=pe>>>8&255,le[15]=255&pe,le};function g(ce,pe,le){function te(ne,me,we,Me){if("string"==typeof ne&&(ne=function G(ce){ce=unescape(encodeURIComponent(ce));for(var pe=[],le=0;le<ce.length;++le)pe.push(ce.charCodeAt(le));return pe}(ne)),"string"==typeof me&&(me=v(me)),16!==me.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var Ht=new Uint8Array(16+ne.length);if(Ht.set(me),Ht.set(ne,me.length),(Ht=le(Ht))[6]=15&Ht[6]|pe,Ht[8]=63&Ht[8]|128,we){Me=Me||0;for(var $n=0;$n<16;++$n)we[Me+$n]=Ht[$n];return we}return b(Ht)}try{te.name=ce}catch(ne){}return te.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",te.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",te}function R(ce){return 14+(ce+64>>>9<<4)+1}function p(ce,pe){var le=(65535&ce)+(65535&pe);return(ce>>16)+(pe>>16)+(le>>16)<<16|65535&le}function j(ce,pe,le,te,ne,me){return p(function D(ce,pe){return ce<<pe|ce>>>32-pe}(p(p(pe,ce),p(te,me)),ne),le)}function B(ce,pe,le,te,ne,me,we){return j(pe&le|~pe&te,ce,pe,ne,me,we)}function k(ce,pe,le,te,ne,me,we){return j(pe&te|le&~te,ce,pe,ne,me,we)}function P(ce,pe,le,te,ne,me,we){return j(pe^le^te,ce,pe,ne,me,we)}function K(ce,pe,le,te,ne,me,we){return j(le^(pe|~te),ce,pe,ne,me,we)}const Ae=g("v3",48,function _(ce){if("string"==typeof ce){var pe=unescape(encodeURIComponent(ce));ce=new Uint8Array(pe.length);for(var le=0;le<pe.length;++le)ce[le]=pe.charCodeAt(le)}return function Y(ce){for(var pe=[],le=32*ce.length,te="0123456789abcdef",ne=0;ne<le;ne+=8){var me=ce[ne>>5]>>>ne%32&255,we=parseInt(te.charAt(me>>>4&15)+te.charAt(15&me),16);pe.push(we)}return pe}(function F(ce,pe){ce[pe>>5]|=128<<pe%32,ce[R(pe)-1]=pe;for(var le=1732584193,te=-271733879,ne=-1732584194,me=271733878,we=0;we<ce.length;we+=16){var Me=le,Ht=te,$n=ne,fi=me;le=B(le,te,ne,me,ce[we],7,-680876936),me=B(me,le,te,ne,ce[we+1],12,-389564586),ne=B(ne,me,le,te,ce[we+2],17,606105819),te=B(te,ne,me,le,ce[we+3],22,-1044525330),le=B(le,te,ne,me,ce[we+4],7,-176418897),me=B(me,le,te,ne,ce[we+5],12,1200080426),ne=B(ne,me,le,te,ce[we+6],17,-1473231341),te=B(te,ne,me,le,ce[we+7],22,-45705983),le=B(le,te,ne,me,ce[we+8],7,1770035416),me=B(me,le,te,ne,ce[we+9],12,-1958414417),ne=B(ne,me,le,te,ce[we+10],17,-42063),te=B(te,ne,me,le,ce[we+11],22,-1990404162),le=B(le,te,ne,me,ce[we+12],7,1804603682),me=B(me,le,te,ne,ce[we+13],12,-40341101),ne=B(ne,me,le,te,ce[we+14],17,-1502002290),le=k(le,te=B(te,ne,me,le,ce[we+15],22,1236535329),ne,me,ce[we+1],5,-165796510),me=k(me,le,te,ne,ce[we+6],9,-1069501632),ne=k(ne,me,le,te,ce[we+11],14,643717713),te=k(te,ne,me,le,ce[we],20,-373897302),le=k(le,te,ne,me,ce[we+5],5,-701558691),me=k(me,le,te,ne,ce[we+10],9,38016083),ne=k(ne,me,le,te,ce[we+15],14,-660478335),te=k(te,ne,me,le,ce[we+4],20,-405537848),le=k(le,te,ne,me,ce[we+9],5,568446438),me=k(me,le,te,ne,ce[we+14],9,-1019803690),ne=k(ne,me,le,te,ce[we+3],14,-187363961),te=k(te,ne,me,le,ce[we+8],20,1163531501),le=k(le,te,ne,me,ce[we+13],5,-1444681467),me=k(me,le,te,ne,ce[we+2],9,-51403784),ne=k(ne,me,le,te,ce[we+7],14,1735328473),le=P(le,te=k(te,ne,me,le,ce[we+12],20,-1926607734),ne,me,ce[we+5],4,-378558),me=P(me,le,te,ne,ce[we+8],11,-2022574463),ne=P(ne,me,le,te,ce[we+11],16,1839030562),te=P(te,ne,me,le,ce[we+14],23,-35309556),le=P(le,te,ne,me,ce[we+1],4,-1530992060),me=P(me,le,te,ne,ce[we+4],11,1272893353),ne=P(ne,me,le,te,ce[we+7],16,-155497632),te=P(te,ne,me,le,ce[we+10],23,-1094730640),le=P(le,te,ne,me,ce[we+13],4,681279174),me=P(me,le,te,ne,ce[we],11,-358537222),ne=P(ne,me,le,te,ce[we+3],16,-722521979),te=P(te,ne,me,le,ce[we+6],23,76029189),le=P(le,te,ne,me,ce[we+9],4,-640364487),me=P(me,le,te,ne,ce[we+12],11,-421815835),ne=P(ne,me,le,te,ce[we+15],16,530742520),le=K(le,te=P(te,ne,me,le,ce[we+2],23,-995338651),ne,me,ce[we],6,-198630844),me=K(me,le,te,ne,ce[we+7],10,1126891415),ne=K(ne,me,le,te,ce[we+14],15,-1416354905),te=K(te,ne,me,le,ce[we+5],21,-57434055),le=K(le,te,ne,me,ce[we+12],6,1700485571),me=K(me,le,te,ne,ce[we+3],10,-1894986606),ne=K(ne,me,le,te,ce[we+10],15,-1051523),te=K(te,ne,me,le,ce[we+1],21,-2054922799),le=K(le,te,ne,me,ce[we+8],6,1873313359),me=K(me,le,te,ne,ce[we+15],10,-30611744),ne=K(ne,me,le,te,ce[we+6],15,-1560198380),te=K(te,ne,me,le,ce[we+13],21,1309151649),le=K(le,te,ne,me,ce[we+4],6,-145523070),me=K(me,le,te,ne,ce[we+11],10,-1120210379),ne=K(ne,me,le,te,ce[we+2],15,718787259),te=K(te,ne,me,le,ce[we+9],21,-343485551),le=p(le,Me),te=p(te,Ht),ne=p(ne,$n),me=p(me,fi)}return[le,te,ne,me]}(function W(ce){if(0===ce.length)return[];for(var pe=8*ce.length,le=new Uint32Array(R(pe)),te=0;te<pe;te+=8)le[te>>5]|=(255&ce[te/8])<<te%32;return le}(ce),8*ce.length))}),He=function be(ce,pe,le){var te=(ce=ce||{}).random||(ce.rng||V)();if(te[6]=15&te[6]|64,te[8]=63&te[8]|128,pe){le=le||0;for(var ne=0;ne<16;++ne)pe[le+ne]=te[ne];return pe}return b(te)};function dt(ce,pe,le,te){switch(ce){case 0:return pe&le^~pe&te;case 1:case 3:return pe^le^te;case 2:return pe&le^pe&te^le&te}}function Le(ce,pe){return ce<<pe|ce>>>32-pe}const he=g("v5",80,function Ge(ce){var pe=[1518500249,1859775393,2400959708,3395469782],le=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof ce){var te=unescape(encodeURIComponent(ce));ce=[];for(var ne=0;ne<te.length;++ne)ce.push(te.charCodeAt(ne))}else Array.isArray(ce)||(ce=Array.prototype.slice.call(ce));ce.push(128);for(var we=Math.ceil((ce.length/4+2)/16),Me=new Array(we),Ht=0;Ht<we;++Ht){for(var $n=new Uint32Array(16),fi=0;fi<16;++fi)$n[fi]=ce[64*Ht+4*fi]<<24|ce[64*Ht+4*fi+1]<<16|ce[64*Ht+4*fi+2]<<8|ce[64*Ht+4*fi+3];Me[Ht]=$n}Me[we-1][14]=8*(ce.length-1)/Math.pow(2,32),Me[we-1][14]=Math.floor(Me[we-1][14]),Me[we-1][15]=8*(ce.length-1)&4294967295;for(var Er=0;Er<we;++Er){for(var gn=new Uint32Array(80),Ii=0;Ii<16;++Ii)gn[Ii]=Me[Er][Ii];for(var qr=16;qr<80;++qr)gn[qr]=Le(gn[qr-3]^gn[qr-8]^gn[qr-14]^gn[qr-16],1);for(var En=le[0],Sn=le[1],Ut=le[2],Ot=le[3],ri=le[4],Zl=0;Zl<80;++Zl){var kp=Math.floor(Zl/20),Xl=Le(En,5)+dt(kp,Sn,Ut,Ot)+ri+pe[kp]+gn[Zl]>>>0;ri=Ot,Ot=Ut,Ut=Le(Sn,30)>>>0,Sn=En,En=Xl}le[0]=le[0]+En>>>0,le[1]=le[1]+Sn>>>0,le[2]=le[2]+Ut>>>0,le[3]=le[3]+Ot>>>0,le[4]=le[4]+ri>>>0}return[le[0]>>24&255,le[0]>>16&255,le[0]>>8&255,255&le[0],le[1]>>24&255,le[1]>>16&255,le[1]>>8&255,255&le[1],le[2]>>24&255,le[2]>>16&255,le[2]>>8&255,255&le[2],le[3]>>24&255,le[3]>>16&255,le[3]>>8&255,255&le[3],le[4]>>24&255,le[4]>>16&255,le[4]>>8&255,255&le[4]]}),Ti="00000000-0000-0000-0000-000000000000",tn=function et(ce){if(!A(ce))throw TypeError("Invalid UUID");return parseInt(ce.substr(14,1),16)}},1181:Se=>{function Z(){}Se.exports=Z,Z.mixin=function(H){var E=H.prototype||H;E.isWildEmitter=!0,E.on=function(q,V,y){this.callbacks=this.callbacks||{};var S=3===arguments.length,A=S?arguments[1]:void 0,w=S?arguments[2]:arguments[1];return w._groupName=A,(this.callbacks[q]=this.callbacks[q]||[]).push(w),this},E.once=function(q,V,y){var S=this,A=3===arguments.length,w=A?arguments[1]:void 0,x=A?arguments[2]:arguments[1];function T(){S.off(q,T),x.apply(this,arguments)}return this.on(q,w,T),this},E.releaseGroup=function(q){var V,y,S,A;for(V in this.callbacks=this.callbacks||{},this.callbacks)for(y=0,S=(A=this.callbacks[V]).length;y<S;y++)A[y]._groupName===q&&(A.splice(y,1),y--,S--);return this},E.off=function(q,V){this.callbacks=this.callbacks||{};var S,y=this.callbacks[q];return y?1===arguments.length?(delete this.callbacks[q],this):(-1!==(S=y.indexOf(V))&&(y.splice(S,1),0===y.length&&delete this.callbacks[q]),this):this},E.emit=function(q){this.callbacks=this.callbacks||{};var A,w,T,V=[].slice.call(arguments,1),y=this.callbacks[q],S=this.getWildcardCallbacks(q);if(y)for(A=0,w=(T=y.slice()).length;A<w&&T[A];++A)T[A].apply(this,V);if(S)for(w=S.length,A=0,w=(T=S.slice()).length;A<w&&T[A];++A)T[A].apply(this,[q].concat(V));return this},E.getWildcardCallbacks=function(q){this.callbacks=this.callbacks||{};var V,y,S=[];for(V in this.callbacks)y=V.split("*"),("*"===V||2===y.length&&q.slice(0,y[0].length)===y[0])&&(S=S.concat(this.callbacks[V]));return S}},Z.mixin(Z)},2937:function(Se,Z,H){var E;!function(q){"use strict";function V(){}var y=V.prototype,S=q.EventEmitter;function A(T,b){for(var U=T.length;U--;)if(T[U].listener===b)return U;return-1}function w(T){return function(){return this[T].apply(this,arguments)}}function x(T){return"function"==typeof T||T instanceof RegExp||!(!T||"object"!=typeof T)&&x(T.listener)}y.getListeners=function(b){var Q,N,U=this._getEvents();if(b instanceof RegExp)for(N in Q={},U)U.hasOwnProperty(N)&&b.test(N)&&(Q[N]=U[N]);else Q=U[b]||(U[b]=[]);return Q},y.flattenListeners=function(b){var Q,U=[];for(Q=0;Q<b.length;Q+=1)U.push(b[Q].listener);return U},y.getListenersAsObject=function(b){var Q,U=this.getListeners(b);return U instanceof Array&&((Q={})[b]=U),Q||U},y.addListener=function(b,U){if(!x(U))throw new TypeError("listener must be a function");var L,Q=this.getListenersAsObject(b),N="object"==typeof U;for(L in Q)Q.hasOwnProperty(L)&&-1===A(Q[L],U)&&Q[L].push(N?U:{listener:U,once:!1});return this},y.on=w("addListener"),y.addOnceListener=function(b,U){return this.addListener(b,{listener:U,once:!0})},y.once=w("addOnceListener"),y.defineEvent=function(b){return this.getListeners(b),this},y.defineEvents=function(b){for(var U=0;U<b.length;U+=1)this.defineEvent(b[U]);return this},y.removeListener=function(b,U){var N,L,Q=this.getListenersAsObject(b);for(L in Q)Q.hasOwnProperty(L)&&-1!==(N=A(Q[L],U))&&Q[L].splice(N,1);return this},y.off=w("removeListener"),y.addListeners=function(b,U){return this.manipulateListeners(!1,b,U)},y.removeListeners=function(b,U){return this.manipulateListeners(!0,b,U)},y.manipulateListeners=function(b,U,Q){var N,L,ue=b?this.removeListener:this.addListener,ee=b?this.removeListeners:this.addListeners;if("object"!=typeof U||U instanceof RegExp)for(N=Q.length;N--;)ue.call(this,U,Q[N]);else for(N in U)U.hasOwnProperty(N)&&(L=U[N])&&("function"==typeof L?ue.call(this,N,L):ee.call(this,N,L));return this},y.removeEvent=function(b){var N,U=typeof b,Q=this._getEvents();if("string"===U)delete Q[b];else if(b instanceof RegExp)for(N in Q)Q.hasOwnProperty(N)&&b.test(N)&&delete Q[N];else delete this._events;return this},y.removeAllListeners=w("removeEvent"),y.emitEvent=function(b,U){var N,L,ue,ee,Q=this.getListenersAsObject(b);for(ee in Q)if(Q.hasOwnProperty(ee))for(N=Q[ee].slice(0),ue=0;ue<N.length;ue++)!0===(L=N[ue]).once&&this.removeListener(b,L.listener),L.listener.apply(this,U||[])===this._getOnceReturnValue()&&this.removeListener(b,L.listener);return this},y.trigger=w("emitEvent"),y.emit=function(b){var U=Array.prototype.slice.call(arguments,1);return this.emitEvent(b,U)},y.setOnceReturnValue=function(b){return this._onceReturnValue=b,this},y._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},y._getEvents=function(){return this._events||(this._events={})},V.noConflict=function(){return q.EventEmitter=S,V},void 0!==(E=function(){return V}.call(q,H,q,Se))&&(Se.exports=E)}("undefined"!=typeof window?window:this||{})},7030:(Se,Z,H)=>{"use strict";function E(n){return"function"==typeof n}function q(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const V=q(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function y(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class S{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(E(i))try{i()}catch(o){t=o instanceof V?o.errors:[o]}const{_teardowns:r}=this;if(r){this._teardowns=null;for(const o of r)try{x(o)}catch(s){t=null!=t?t:[],s instanceof V?t=[...t,...s.errors]:t.push(s)}}if(t)throw new V(t)}}add(t){var e;if(t&&t!==this)if(this.closed)x(t);else{if(t instanceof S){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&y(e,t)}remove(t){const{_teardowns:e}=this;e&&y(e,t),t instanceof S&&t._removeParent(this)}}S.EMPTY=(()=>{const n=new S;return n.closed=!0,n})();const A=S.EMPTY;function w(n){return n instanceof S||n&&"closed"in n&&E(n.remove)&&E(n.add)&&E(n.unsubscribe)}function x(n){E(n)?n():n.unsubscribe()}const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},b={setTimeout(...n){const{delegate:t}=b;return((null==t?void 0:t.setTimeout)||setTimeout)(...n)},clearTimeout(n){const{delegate:t}=b;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function U(n){b.setTimeout(()=>{const{onUnhandledError:t}=T;if(!t)throw n;t(n)})}function Q(){}const N=ee("C",void 0,void 0);function ee(n,t,e){return{kind:n,value:t,error:e}}let M=null;function v(n){if(T.useDeprecatedSynchronousErrorHandling){const t=!M;if(t&&(M={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=M;if(M=null,e)throw i}}else n()}class O extends S{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,w(t)&&t.add(this)):this.destination=p}static create(t,e,i){return new Y(t,e,i)}next(t){this.isStopped?W(function ue(n){return ee("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?W(function L(n){return ee("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?W(N,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const C=Function.prototype.bind;function g(n,t){return C.call(n,t)}class _{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){R(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){R(i)}else R(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){R(e)}}}class Y extends O{constructor(t,e,i){let r;if(super(),E(t)||!t)r={next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=i?i:void 0};else{let o;this&&T.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&g(t.next,o),error:t.error&&g(t.error,o),complete:t.complete&&g(t.complete,o)}):r=t}this.destination=new _(r)}}function R(n){T.useDeprecatedSynchronousErrorHandling?function G(n){T.useDeprecatedSynchronousErrorHandling&&M&&(M.errorThrown=!0,M.error=n)}(n):U(n)}function W(n,t){const{onStoppedNotification:e}=T;e&&b.setTimeout(()=>e(n,t))}const p={closed:!0,next:Q,error:function F(n){throw n},complete:Q},D="function"==typeof Symbol&&Symbol.observable||"@@observable";function j(n){return n}let P=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function _e(n){return n&&n instanceof O||function ie(n){return n&&E(n.next)&&E(n.error)&&E(n.complete)}(n)&&w(n)}(e)?e:new Y(e,i,r);return v(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=K(i))((r,o)=>{const s=new Y({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[D](){return this}pipe(...e){return function k(n){return 0===n.length?j:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}(e)(this)}toPromise(e){return new(e=K(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function K(n){var t;return null!==(t=null!=n?n:T.Promise)&&void 0!==t?t:Promise}const Ae=q(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let be=(()=>{class n extends P{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new He(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Ae}next(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){const i=this.observers.slice();for(const r of i)r.next(e)}})}error(e){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){v(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?A:(o.push(e),new S(()=>y(o,e)))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new P;return e.source=this,e}}return n.create=(t,e)=>new He(t,e),n})();class He extends be{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:A}}function dt(n){return E(null==n?void 0:n.lift)}function Le(n){return t=>{if(dt(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ge(n,t,e,i,r){return new Vt(n,t,e,i,r)}class Vt extends O{constructor(t,e,i,r,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Ue(n,t){return Le((e,i)=>{let r=0;e.subscribe(Ge(i,o=>{i.next(n.call(t,o,r++))}))})}function pe(n,t){return function(e,i){t(e,i,n)}}function le(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function te(n,t,e,i){return new(e||(e=Promise))(function(o,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?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}function gn(n){return this instanceof gn?(this.v=n,this):new gn(n)}function Ii(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(h){i[h]&&(r[h]=function(m){return new Promise(function(I,$){o.push([h,m,I,$])>1||a(h,m)})})}function a(h,m){try{!function l(h){h.value instanceof gn?Promise.resolve(h.value.v).then(c,u):d(o[0][2],h)}(i[h](m))}catch(I){d(o[0][3],I)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,m){h(m),o.shift(),o.length&&a(o[0][0],o[0][1])}}function En(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function Me(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=n[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=n[o](s)).done,s.value)})}}}const Xl=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Eb(n){return E(null==n?void 0:n.then)}function Sb(n){return E(n[D])}function xb(n){return Symbol.asyncIterator&&E(null==n?void 0:n[Symbol.asyncIterator])}function Ab(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Mb=function Dk(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Db(n){return E(null==n?void 0:n[Mb])}function Tb(n){return Ii(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield gn(e.read());if(r)return yield gn(void 0);yield yield gn(i)}}finally{e.releaseLock()}})}function Ib(n){return E(null==n?void 0:n.getReader)}function Ri(n){if(n instanceof P)return n;if(null!=n){if(Sb(n))return function Tk(n){return new P(t=>{const e=n[D]();if(E(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(Xl(n))return function Ik(n){return new P(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(Eb(n))return function Ok(n){return new P(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,U)})}(n);if(xb(n))return Ob(n);if(Db(n))return function kk(n){return new P(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(Ib(n))return function Pk(n){return Ob(Tb(n))}(n)}throw Ab(n)}function Ob(n){return new P(t=>{(function Rk(n,t){var e,i,r,o;return te(this,void 0,void 0,function*(){try{for(e=En(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function _o(n,t,e,i=0,r=!1){const o=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(o),!r)return o}function Rn(n,t,e=1/0){return E(t)?Rn((i,r)=>Ue((o,s)=>t(i,o,r,s))(Ri(n(i,r))),e):("number"==typeof t&&(e=t),Le((i,r)=>function Fk(n,t,e,i,r,o,s,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},m=$=>c<i?I($):l.push($),I=$=>{o&&t.next($),c++;let z=!1;Ri(e($,u++)).subscribe(Ge(t,re=>{null==r||r(re),o?m(re):t.next(re)},()=>{z=!0},void 0,()=>{if(z)try{for(c--;l.length&&c<i;){const re=l.shift();s?_o(t,s,()=>I(re)):I(re)}h()}catch(re){t.error(re)}}))};return n.subscribe(Ge(t,m,()=>{d=!0,h()})),()=>{null==a||a()}}(i,r,n,e)))}function Jl(n=1/0){return Rn(j,n)}const Wr=new P(n=>n.complete());function kb(n){return n&&E(n.schedule)}function Pp(n){return n[n.length-1]}function Pb(n){return E(Pp(n))?n.pop():void 0}function ec(n){return kb(Pp(n))?n.pop():void 0}function Rb(n,t=0){return Le((e,i)=>{e.subscribe(Ge(i,r=>_o(i,n,()=>i.next(r),t),()=>_o(i,n,()=>i.complete(),t),r=>_o(i,n,()=>i.error(r),t)))})}function Fb(n,t=0){return Le((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function Nb(n,t){if(!n)throw new Error("Iterable cannot be null");return new P(e=>{_o(e,t,()=>{const i=n[Symbol.asyncIterator]();_o(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Qn(n,t){return t?function zk(n,t){if(null!=n){if(Sb(n))return function Bk(n,t){return Ri(n).pipe(Fb(t),Rb(t))}(n,t);if(Xl(n))return function jk(n,t){return new P(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(Eb(n))return function Vk(n,t){return Ri(n).pipe(Fb(t),Rb(t))}(n,t);if(xb(n))return Nb(n,t);if(Db(n))return function Hk(n,t){return new P(e=>{let i;return _o(e,t,()=>{i=n[Mb](),_o(e,t,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>E(null==i?void 0:i.return)&&i.return()})}(n,t);if(Ib(n))return function Uk(n,t){return Nb(Tb(n),t)}(n,t)}throw Ab(n)}(n,t):Ri(n)}function Fi(...n){const t=ec(n),e=function Lk(n,t){return"number"==typeof Pp(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?Ri(i[0]):Jl(e)(Qn(i,t)):Wr}function hn(n){return n<=0?()=>Wr:Le((t,e)=>{let i=0;t.subscribe(Ge(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function Lb(n={}){const{connector:t=(()=>new be),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return o=>{let s=null,a=null,l=null,c=0,u=!1,d=!1;const h=()=>{null==a||a.unsubscribe(),a=null},m=()=>{h(),s=l=null,u=d=!1},I=()=>{const $=s;m(),null==$||$.unsubscribe()};return Le(($,z)=>{c++,!d&&!u&&h();const re=l=null!=l?l:t();z.add(()=>{c--,0===c&&!d&&!u&&(a=Rp(I,r))}),re.subscribe(z),s||(s=new Y({next:se=>re.next(se),error:se=>{d=!0,h(),a=Rp(m,e,se),re.error(se)},complete:()=>{u=!0,h(),a=Rp(m,i),re.complete()}}),Qn($).subscribe(s))})(o)}}function Rp(n,t,...e){return!0===t?(n(),null):!1===t?null:t(...e).pipe(hn(1)).subscribe(()=>n())}function Wt(n){for(let t in n)if(n[t]===Wt)return t;throw Error("Could not find renamed property on target object.")}function Fp(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function xt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(xt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Np(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Gk=Wt({__forward_ref__:Wt});function zt(n){return n.__forward_ref__=zt,n.toString=function(){return xt(this())},n}function Ze(n){return Bb(n)?n():n}function Bb(n){return"function"==typeof n&&n.hasOwnProperty(Gk)&&n.__forward_ref__===zt}class Es extends Error{constructor(t,e){super(function Lp(n,t){return`${n?`NG0${n}: `:""}${t}`}(t,e)),this.code=t}}function bt(n){return"string"==typeof n?n:null==n?"":String(n)}function pi(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():bt(n)}function gd(n,t){const e=t?` in ${t}`:"";throw new Es("201",`No provider for ${pi(n)} found${e}`)}function Li(n,t){null==n&&function un(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Ce(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ye(n){return{providers:n.providers||[],imports:n.imports||[]}}function bo(n){return Vb(n,vd)||Vb(n,Hb)}function Vb(n,t){return n.hasOwnProperty(t)?n[t]:null}function jb(n){return n&&(n.hasOwnProperty(Bp)||n.hasOwnProperty(Zk))?n[Bp]:null}const vd=Wt({\u0275prov:Wt}),Bp=Wt({\u0275inj:Wt}),Hb=Wt({ngInjectableDef:Wt}),Zk=Wt({ngInjectorDef:Wt});var tt=(()=>((tt=tt||{})[tt.Default=0]="Default",tt[tt.Host=1]="Host",tt[tt.Self=2]="Self",tt[tt.SkipSelf=4]="SkipSelf",tt[tt.Optional=8]="Optional",tt))();let Vp;function Qo(n){const t=Vp;return Vp=n,t}function Ub(n,t,e){const i=bo(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&tt.Optional?null:void 0!==t?t:void gd(xt(n),"Injector")}function Yo(n){return{toString:n}.toString()}var Sr=(()=>((Sr=Sr||{})[Sr.OnPush=0]="OnPush",Sr[Sr.Default=1]="Default",Sr))(),Oi=(()=>{return(n=Oi||(Oi={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Oi;var n})();const Jk="undefined"!=typeof globalThis&&globalThis,eP="undefined"!=typeof window&&window,tP="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gt=Jk||"undefined"!=typeof global&&global||eP||tP,ga={},Zt=[],_d=Wt({\u0275cmp:Wt}),jp=Wt({\u0275dir:Wt}),Hp=Wt({\u0275pipe:Wt}),zb=Wt({\u0275mod:Wt}),Co=Wt({\u0275fac:Wt}),tc=Wt({__NG_ELEMENT_ID__:Wt});let nP=0;function ht(n){return Yo(()=>{const e={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Sr.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||Zt,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Oi.Emulated,id:"c",styles:n.styles||Zt,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,o=n.features,s=n.pipes;return i.id+=nP++,i.inputs=$b(n.inputs,e),i.outputs=$b(n.outputs),o&&o.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Gb):null,i.pipeDefs=s?()=>("function"==typeof s?s():s).map(qb):null,i})}function Gb(n){return oi(n)||function Ko(n){return n[jp]||null}(n)}function qb(n){return function Ss(n){return n[Hp]||null}(n)}const Wb={};function Xe(n){return Yo(()=>{const t={type:n.type,bootstrap:n.bootstrap||Zt,declarations:n.declarations||Zt,imports:n.imports||Zt,exports:n.exports||Zt,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(Wb[n.id]=n.type),t})}function $b(n,t){if(null==n)return ga;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const ge=ht;function ti(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,onDestroy:n.type.prototype.ngOnDestroy||null}}function oi(n){return n[_d]||null}function er(n,t){const e=n[zb]||null;if(!e&&!0===t)throw new Error(`Type ${xt(n)} does not have '\u0275mod' property.`);return e}function $r(n){return Array.isArray(n)&&"object"==typeof n[1]}function Ar(n){return Array.isArray(n)&&!0===n[1]}function Gp(n){return 0!=(8&n.flags)}function wd(n){return 2==(2&n.flags)}function Ed(n){return 1==(1&n.flags)}function Mr(n){return null!==n.template}function lP(n){return 0!=(512&n[2])}function Ds(n,t){return n.hasOwnProperty(Co)?n[Co]:null}class Wp{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function vn(){return Yb}function Yb(n){return n.type.prototype.ngOnChanges&&(n.setInput=hP),dP}function dP(){const n=Zb(this),t=null==n?void 0:n.current;if(t){const e=n.previous;if(e===ga)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function hP(n,t,e,i){const r=Zb(n)||function fP(n,t){return n[Kb]=t}(n,{previous:ga,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new Wp(l&&l.currentValue,t,s===ga),n[i]=t}vn.ngInherit=!0;const Kb="__ngSimpleChanges__";function Zb(n){return n[Kb]||null}const Xb="http://www.w3.org/2000/svg";let Qp;function Yp(){return void 0!==Qp?Qp:"undefined"!=typeof document?document:void 0}function xn(n){return!!n.listen}const eC={createRenderer:(n,t)=>Yp()};function Fn(n){for(;Array.isArray(n);)n=n[0];return n}function Sd(n,t){return Fn(t[n])}function ir(n,t){return Fn(t[n.index])}function Kp(n,t){return n.data[t]}function Ca(n,t){return n[t]}function Vi(n,t){const e=t[n];return $r(e)?e:e[0]}function tC(n){return 4==(4&n[2])}function Zp(n){return 128==(128&n[2])}function Zo(n,t){return null==t?null:n[t]}function nC(n){n[18]=0}function Xp(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const ft={lFrame:uC(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function iC(){return ft.bindingsEnabled}function xe(){return ft.lFrame.lView}function Ft(){return ft.lFrame.tView}function Ke(n){return ft.lFrame.contextLView=n,n[8]}function Hn(){let n=rC();for(;null!==n&&64===n.type;)n=n.parent;return n}function rC(){return ft.lFrame.currentTNode}function Qr(n,t){const e=ft.lFrame;e.currentTNode=n,e.isParent=t}function Jp(){return ft.lFrame.isParent}function em(){ft.lFrame.isParent=!1}function xd(){return ft.isInCheckNoChangesMode}function Ad(n){ft.isInCheckNoChangesMode=n}function mi(){const n=ft.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function wa(){return ft.lFrame.bindingIndex++}function Eo(n){const t=ft.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function MP(n,t){const e=ft.lFrame;e.bindingIndex=e.bindingRootIndex=n,tm(t)}function tm(n){ft.lFrame.currentDirectiveIndex=n}function nm(n){const t=ft.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}function aC(){return ft.lFrame.currentQueryIndex}function im(n){ft.lFrame.currentQueryIndex=n}function TP(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function lC(n,t,e){if(e&tt.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&tt.Host||(r=TP(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=ft.lFrame=cC();return i.currentTNode=t,i.lView=n,!0}function Md(n){const t=cC(),e=n[1];ft.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function cC(){const n=ft.lFrame,t=null===n?null:n.child;return null===t?uC(n):t}function uC(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function dC(){const n=ft.lFrame;return ft.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const hC=dC;function Dd(){const n=dC();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function gi(){return ft.lFrame.selectedIndex}function Xo(n){ft.lFrame.selectedIndex=n}function An(){const n=ft.lFrame;return Kp(n.tView,n.selectedIndex)}function Jo(){ft.lFrame.currentNamespace=Xb}function Td(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const o=n.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(n.contentHooks||(n.contentHooks=[])).push(-e,s),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function Id(n,t,e){fC(n,t,3,e)}function Od(n,t,e,i){(3&n[2])===e&&fC(n,t,e,i)}function rm(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function fC(n,t,e,i){const o=null!=i?i:-1,s=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<o||-1==o)&&(LP(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function LP(n,t,e,i){const r=e[i]<0,o=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class sc{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function kd(n,t,e){const i=xn(n);let r=0;for(;r<e.length;){const o=e[r];if("number"==typeof o){if(0!==o)break;r++;const s=e[r++],a=e[r++],l=e[r++];i?n.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=o,a=e[++r];sm(s)?i&&n.setProperty(t,s,a):i?n.setAttribute(t,s,a):t.setAttribute(s,a),r++}}return r}function pC(n){return 3===n||4===n||6===n}function sm(n){return 64===n.charCodeAt(0)}function Pd(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||mC(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function mC(n,t,e,i,r){let o=0,s=n.length;if(-1===t)s=-1;else for(;o<n.length;){const a=n[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<n.length;){const a=n[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[o+1]=r));if(i===n[o+1])return void(n[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(n.splice(s,0,t),o=s+1),n.splice(o++,0,e),null!==i&&n.splice(o++,0,i),null!==r&&n.splice(o++,0,r)}function gC(n){return-1!==n}function Ea(n){return 32767&n}function Sa(n,t){let e=function UP(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let am=!0;function Rd(n){const t=am;return am=n,t}let zP=0;function lc(n,t){const e=cm(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,lm(i.data,n),lm(t,null),lm(i.blueprint,null));const r=Fd(n,t),o=n.injectorIndex;if(gC(r)){const s=Ea(r),a=Sa(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function lm(n,t){n.push(0,0,0,0,0,0,0,0,t)}function cm(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Fd(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){const o=r[1],s=o.type;if(i=2===s?o.declTNode:1===s?r[6]:null,null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Nd(n,t,e){!function GP(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(tc)&&(i=e[tc]),null==i&&(i=e[tc]=zP++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function yC(n,t,e){if(e&tt.Optional)return n;gd(t,"NodeInjector")}function bC(n,t,e,i){if(e&tt.Optional&&void 0===i&&(i=null),0==(e&(tt.Self|tt.Host))){const r=n[9],o=Qo(void 0);try{return r?r.get(t,i,e&tt.Optional):Ub(t,i,e&tt.Optional)}finally{Qo(o)}}return yC(i,t,e)}function CC(n,t,e,i=tt.Default,r){if(null!==n){const o=function QP(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(tc)?n[tc]:void 0;return"number"==typeof t?t>=0?255&t:WP:t}(e);if("function"==typeof o){if(!lC(t,n,i))return i&tt.Host?yC(r,e,i):bC(t,e,i,r);try{const s=o(i);if(null!=s||i&tt.Optional)return s;gd(e)}finally{hC()}}else if("number"==typeof o){let s=null,a=cm(n,t),l=-1,c=i&tt.Host?t[16][6]:null;for((-1===a||i&tt.SkipSelf)&&(l=-1===a?Fd(n,t):t[a+8],-1!==l&&SC(i,!1)?(s=t[1],a=Ea(l),t=Sa(l,t)):a=-1);-1!==a;){const u=t[1];if(EC(o,a,u.data)){const d=$P(a,t,e,s,i,c);if(d!==wC)return d}l=t[a+8],-1!==l&&SC(i,t[1].data[a+8]===c)&&EC(o,a,t)?(s=u,a=Ea(l),t=Sa(l,t)):a=-1}}}return bC(t,e,i,r)}const wC={};function WP(){return new xa(Hn(),xe())}function $P(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=Ld(a,s,e,null==i?wd(a)&&am:i!=s&&0!=(3&a.type),r&tt.Host&&o===a);return null!==u?cc(t,s,u,a):wC}function Ld(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let m=i?a:a+u;m<h;m++){const I=s[m];if(m<l&&e===I||m>=l&&I.type===e)return m}if(r){const m=s[l];if(m&&Mr(m)&&m.type===e)return l}return null}function cc(n,t,e,i){let r=n[e];const o=t.data;if(function BP(n){return n instanceof sc}(r)){const s=r;s.resolving&&function qk(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Es("200",`Circular dependency in DI detected for ${n}${e}`)}(pi(o[e]));const a=Rd(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Qo(s.injectImpl):null;lC(n,i,tt.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function NP(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=Yb(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&Qo(l),Rd(a),s.resolving=!1,hC()}}return r}function EC(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function SC(n,t){return!(n&tt.Self||n&tt.Host&&t)}class xa{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return CC(this._tNode,this._lView,t,i,e)}}function $e(n){return Yo(()=>{const t=n.prototype.constructor,e=t[Co]||um(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Co]||um(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function um(n){return Bb(n)?()=>{const t=um(Ze(n));return t&&t()}:Ds(n)}function So(n){return function qP(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if(pC(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===t)return e[r+1];r+=2}}}return null}(Hn(),n)}const Ma="__parameters__";function Ts(n,t,e){return Yo(()=>{const i=function dm(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Ma)?l[Ma]:Object.defineProperty(l,Ma,{value:[]})[Ma];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ke{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ce({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ZP=new ke("AnalyzeForEntryComponents");function rr(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),rr(i,t)):t!==n&&t.push(i)}return t}function Yr(n,t){n.forEach(e=>Array.isArray(e)?Yr(e,t):t(e))}function Bd(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Is(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function ts(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function ji(n,t,e){let i=Ta(n,t);return i>=0?n[1|i]=e:(i=~i,function eR(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function fm(n,t){const e=Ta(n,t);if(e>=0)return n[1|e]}function Ta(n,t){return function DC(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<<e];if(t===s)return o<<e;s>t?r=o:i=o+1}return~(r<<e)}(n,t,1)}const fc={},mm="__NG_DI_FLAG__",Ia="ngTempTokenPath",aR=/\n/gm,gm="__source",vm=Wt({provide:String,useValue:Wt});let pc;function Oa(n){const t=pc;return pc=n,t}function cR(n,t=tt.Default){if(void 0===pc)throw new Error("inject() must be called from an injection context");return null===pc?Ub(n,void 0,t):pc.get(n,t&tt.Optional?null:void 0,t)}function ae(n,t=tt.Default){return(function Xk(){return Vp}()||cR)(Ze(n),t)}const mc=ae;function Os(n){const t=[];for(let e=0;e<n.length;e++){const i=Ze(n[e]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,o=tt.Default;for(let s=0;s<i.length;s++){const a=i[s],l=uR(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}t.push(ae(r,o))}else t.push(ae(i))}return t}function gc(n,t){return n[mm]=t,n.prototype[mm]=t,n}function uR(n){return n[mm]}function IC(n,t,e,i){const r=n[Ia];throw t[gm]&&r.unshift(t[gm]),n.message=function OC(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=xt(t);if(Array.isArray(t))r=t.map(xt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):xt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(aR,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Ia]=null,n}const ka=gc(Ts("Inject",n=>({token:n})),-1),Kn=gc(Ts("Optional"),8),xo=gc(Ts("SkipSelf"),4);let Ud,zd;function Ra(n){var t;return(null===(t=function ym(){if(void 0===Ud&&(Ud=null,Gt.trustedTypes))try{Ud=Gt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ud}())||void 0===t?void 0:t.createHTML(n))||n}function FC(n){var t;return(null===(t=function bm(){if(void 0===zd&&(zd=null,Gt.trustedTypes))try{zd=Gt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return zd}())||void 0===t?void 0:t.createHTML(n))||n}class ks{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class CR extends ks{getTypeName(){return"HTML"}}class wR extends ks{getTypeName(){return"Style"}}class ER extends ks{getTypeName(){return"Script"}}class SR extends ks{getTypeName(){return"URL"}}class xR extends ks{getTypeName(){return"ResourceURL"}}function Hi(n){return n instanceof ks?n.changingThisBreaksApplicationSecurity:n}function Kr(n,t){const e=BC(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}function BC(n){return n instanceof ks&&n.getTypeName()||null}class OR{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Ra(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class kR{constructor(t){if(this.defaultDoc=t,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(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Ra(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Ra(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const s=e.item(r).name;("xmlns:ns1"===s||0===s.indexOf("ns1:"))&&t.removeAttribute(s)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const RR=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,FR=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function _c(n){return(n=String(n)).match(RR)||n.match(FR)?n:"unsafe:"+n}function jC(n){return(n=String(n)).split(",").map(t=>_c(t.trim())).join(", ")}function Zr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function yc(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const HC=Zr("area,br,col,hr,img,wbr"),UC=Zr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zC=Zr("rp,rt"),Cm=yc(HC,yc(UC,Zr("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")),yc(zC,Zr("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")),yc(zC,UC)),wm=Zr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Em=Zr("srcset"),GC=yc(wm,Em,Zr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zr("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")),NR=Zr("script,style,template");class LR{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.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 r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Cm.hasOwnProperty(e))return this.sanitizedSomething=!0,!NR.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!GC.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;wm[a]&&(l=_c(l)),Em[a]&&(l=jC(l)),this.buf.push(" ",s,'="',qC(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Cm.hasOwnProperty(e)&&!HC.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(qC(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const BR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VR=/([^\#-~ |!])/g;function qC(n){return n.replace(/&/g,"&").replace(BR,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(VR,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Gd;function WC(n,t){let e=null;try{Gd=Gd||function VC(n){const t=new kR(n);return function PR(){try{return!!(new window.DOMParser).parseFromString(Ra(""),"text/html")}catch(n){return!1}}()?new OR(t):t}(n);let i=t?String(t):"";e=Gd.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Gd.getInertBodyElement(i)}while(i!==o);return Ra((new LR).sanitizeChildren(Sm(e)||e))}finally{if(e){const i=Sm(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Sm(n){return"content"in n&&function jR(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Nt=(()=>((Nt=Nt||{})[Nt.NONE=0]="NONE",Nt[Nt.HTML=1]="HTML",Nt[Nt.STYLE=2]="STYLE",Nt[Nt.SCRIPT=3]="SCRIPT",Nt[Nt.URL=4]="URL",Nt[Nt.RESOURCE_URL=5]="RESOURCE_URL",Nt))();function $C(n){const t=bc();return t?FC(t.sanitize(Nt.HTML,n)||""):Kr(n,"HTML")?FC(Hi(n)):WC(Yp(),bt(n))}function qd(n){const t=bc();return t?t.sanitize(Nt.URL,n)||"":Kr(n,"URL")?Hi(n):_c(bt(n))}function bc(){const n=xe();return n&&n[12]}const KC="__ngContext__";function ai(n,t){n[KC]=t}function Am(n){const t=function Cc(n){return n[KC]||null}(n);return t?Array.isArray(t)?t:t.lView:null}function Wd(n){return n.ngOriginalError}function nF(n,...t){n.error(...t)}class Xr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),r=function tF(n){return n&&n.ngErrorLogger||nF}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?function n0(n){return n.ngDebugContext}(t)||this._findContext(Wd(t)):null}_findOriginalError(t){let e=t&&Wd(t);for(;e&&Wd(e);)e=Wd(e);return e||null}}const s0=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Gt))();function wc(n){return n.ownerDocument.defaultView}function Dm(n){return n.ownerDocument}function Jr(n){return n instanceof Function?n():n}var Ui=(()=>((Ui=Ui||{})[Ui.Important=1]="Important",Ui[Ui.DashCase=2]="DashCase",Ui))();function Im(n,t){return undefined(n,t)}function Ec(n){const t=n[3];return Ar(t)?t[3]:t}function Om(n){return d0(n[13])}function km(n){return d0(n[4])}function d0(n){for(;null!==n&&!Ar(n);)n=n[4];return n}function Na(n,t,e,i,r){if(null!=i){let o,s=!1;Ar(i)?o=i:$r(i)&&(s=!0,i=i[0]);const a=Fn(i);0===n&&null!==e?null==r?v0(t,e,a):Ps(t,e,a,r||null,!0):1===n&&null!==e?Ps(t,e,a,r||null,!0):2===n?function S0(n,t,e){const i=Qd(n,t);i&&function CF(n,t,e,i){xn(n)?n.removeChild(t,e,i):t.removeChild(e)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function SF(n,t,e,i,r){const o=e[7];o!==Fn(e)&&Na(t,n,i,o,r);for(let a=10;a<e.length;a++){const l=e[a];Sc(l[1],l,n,t,i,o)}}(t,n,o,e,r)}}function Rm(n,t,e){return xn(n)?n.createElement(t,e):null===e?n.createElement(t):n.createElementNS(e,t)}function f0(n,t){const e=n[9],i=e.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Xp(r,-1)),e.splice(i,1)}function Fm(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&f0(r,i),t>0&&(n[e-1][4]=i[4]);const o=Is(n,10+t);!function fF(n,t){Sc(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function p0(n,t){if(!(256&t[2])){const e=t[11];xn(e)&&e.destroyNode&&Sc(n,t,e,3,null,null),function gF(n){let t=n[13];if(!t)return Nm(n[1],n);for(;t;){let e=null;if($r(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)$r(t)&&Nm(t[1],t),t=t[3];null===t&&(t=n),$r(t)&&Nm(t[1],t),e=t&&t[4]}t=e}}(t)}}function Nm(n,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function bF(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof sc)){const o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];try{l.call(a)}finally{}}else try{o.call(r)}finally{}}}}(n,t),function yF(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+1],a="function"==typeof s?s(t):Fn(t[s]),l=i[r=e[o+2]],c=e[o+3];"boolean"==typeof c?a.removeEventListener(e[o],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;o<i.length;o++)i[o]();t[7]=null}}(n,t),1===t[1].type&&xn(t[11])&&t[11].destroy();const e=t[17];if(null!==e&&Ar(t[3])){e!==t[3]&&f0(e,t);const i=t[19];null!==i&&i.detachView(n)}}}function m0(n,t,e){return function g0(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Oi.None||r===Oi.Emulated)return null}return ir(i,e)}(n,t.parent,e)}function Ps(n,t,e,i,r){xn(n)?n.insertBefore(t,e,i,r):t.insertBefore(e,i,r)}function v0(n,t,e){xn(n)?n.appendChild(t,e):t.appendChild(e)}function _0(n,t,e,i,r){null!==i?Ps(n,t,e,i,r):v0(n,t,e)}function Qd(n,t){return xn(n)?n.parentNode(t):t.parentNode}function y0(n,t,e){return C0(n,t,e)}let C0=function b0(n,t,e){return 40&n.type?ir(n,e):null};function Yd(n,t,e,i){const r=m0(n,i,t),o=t[11],a=y0(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)_0(o,r,e[l],a,!1);else _0(o,r,e,a,!1)}function Kd(n,t){if(null!==t){const e=t.type;if(3&e)return ir(t,n);if(4&e)return Bm(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return Kd(n,i);{const r=n[t.index];return Ar(r)?Bm(-1,r):Fn(r)}}if(32&e)return Im(t,n)()||Fn(n[t.index]);{const i=E0(n,t);return null!==i?Array.isArray(i)?i[0]:Kd(Ec(n[16]),i):Kd(n,t.next)}}return null}function E0(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Bm(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return Kd(i,r)}return t[7]}function Vm(n,t,e,i,r,o,s){for(;null!=e;){const a=i[e.index],l=e.type;if(s&&0===t&&(a&&ai(Fn(a),i),e.flags|=4),64!=(64&e.flags))if(8&l)Vm(n,t,e.child,i,r,o,!1),Na(t,n,r,a,o);else if(32&l){const c=Im(e,i);let u;for(;u=c();)Na(t,n,r,u,o);Na(t,n,r,a,o)}else 16&l?x0(n,t,i,e,r,o):Na(t,n,r,a,o);e=s?e.projectionNext:e.next}}function Sc(n,t,e,i,r,o){Vm(e,i,n.firstChild,t,r,o,!1)}function x0(n,t,e,i,r,o){const s=e[16],l=s[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Na(t,n,r,l[c],o);else Vm(n,t,l,s[3],r,o,!0)}function A0(n,t,e){xn(n)?n.setAttribute(t,"style",e):t.style.cssText=e}function jm(n,t,e){xn(n)?""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e):t.className=e}function M0(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const o=t.length;if(r+o===i||n.charCodeAt(r+o)<=32)return r}e=r+1}}const D0="ng-template";function AF(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==M0(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function T0(n){return 4===n.type&&n.value!==D0}function MF(n,t,e){return t===(4!==n.type||e?n.value:D0)}function DF(n,t,e){let i=4;const r=n.attrs||[],o=function OF(n){for(let t=0;t<n.length;t++)if(pC(n[t]))return t;return n.length}(r);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!MF(n,l,e)||""===l&&1===t.length){if(Dr(i))return!1;s=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!AF(n.attrs,c,e)){if(Dr(i))return!1;s=!0}continue}const d=TF(8&i?"class":l,r,T0(n),e);if(-1===d){if(Dr(i))return!1;s=!0;continue}if(""!==c){let h;h=d>o?"":r[d+1].toLowerCase();const m=8&i?h:null;if(m&&-1!==M0(m,c,0)||2&i&&c!==h){if(Dr(i))return!1;s=!0}}}}else{if(!s&&!Dr(i)&&!Dr(l))return!1;if(s&&Dr(l))continue;s=!1,i=l|1&i}}return Dr(i)||s}function Dr(n){return 0==(1&n)}function TF(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r<t.length;){const s=t[r];if(s===n)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function kF(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function I0(n,t,e=!1){for(let i=0;i<t.length;i++)if(DF(n,t[i],e))return!0;return!1}function PF(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function O0(n,t){return n?":not("+t.trim()+")":t}function RF(n){let t=n[0],e=1,i=2,r="",o=!1;for(;e<n.length;){let s=n[e];if("string"==typeof s)if(2&i){const a=n[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Dr(s)&&(t+=O0(o,r),r=""),i=s,o=o||!Dr(i);e++}return""!==r&&(t+=O0(o,r)),t}const Ct={};function de(n){k0(Ft(),xe(),gi()+n,xd())}function k0(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Id(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Od(t,o,0,e)}Xo(e)}function Zd(n,t){return n<<17|t<<2}function Tr(n){return n>>17&32767}function Hm(n){return 2|n}function Ao(n){return(131068&n)>>2}function Um(n,t){return-131069&n|t<<2}function zm(n){return 1|n}function U0(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],o=e[i+1];if(-1!==o){const s=n.data[o];im(r),s.contentQueries(2,t[o],o)}}}function xc(n,t,e,i,r,o,s,a,l,c){const u=t.blueprint.slice();return u[0]=r,u[2]=140|i,nC(u),u[3]=u[15]=n,u[8]=e,u[10]=s||n&&n[10],u[11]=a||n&&n[11],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=o,u[16]=2==t.type?n[16]:u,u}function La(n,t,e,i,r){let o=n.data[t];if(null===o)o=function Km(n,t,e,i,r){const o=rC(),s=Jp(),l=n.data[t]=function YF(n,t,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(n,t,e,i,r),function AP(){return ft.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function oc(){const n=ft.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Qr(o,!0),o}function Ba(n,t,e,i){if(0===e)return-1;const r=t.length;for(let o=0;o<e;o++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function Ac(n,t,e){Md(t);try{const i=n.viewQuery;null!==i&&og(1,i,e);const r=n.template;null!==r&&z0(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&U0(n,t),n.staticViewQueries&&og(2,n.viewQuery,e);const o=n.components;null!==o&&function WF(n,t){for(let e=0;e<t.length;e++)fN(n,t[e])}(t,o)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,Dd()}}function Va(n,t,e,i){const r=t[2];if(256==(256&r))return;Md(t);const o=xd();try{nC(t),function oC(n){return ft.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&z0(n,t,e,2,i);const s=3==(3&r);if(!o)if(s){const c=n.preOrderCheckHooks;null!==c&&Id(t,c,null)}else{const c=n.preOrderHooks;null!==c&&Od(t,c,0,null),rm(t,0)}if(function dN(n){for(let t=Om(n);null!==t;t=km(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],o=r[3];0==(1024&r[2])&&Xp(o,1),r[2]|=1024}}}(t),function uN(n){for(let t=Om(n);null!==t;t=km(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];Zp(i)&&Va(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&U0(n,t),!o)if(s){const c=n.contentCheckHooks;null!==c&&Id(t,c)}else{const c=n.contentHooks;null!==c&&Od(t,c,1),rm(t,1)}!function GF(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Xo(~r);else{const o=r,s=e[++i],a=e[++i];MP(s,o),a(2,t[o])}}}finally{Xo(-1)}}(n,t);const a=n.components;null!==a&&function qF(n,t){for(let e=0;e<t.length;e++)hN(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&og(2,l,i),!o)if(s){const c=n.viewCheckHooks;null!==c&&Id(t,c)}else{const c=n.viewHooks;null!==c&&Od(t,c,2),rm(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Xp(t[3],-1))}finally{Dd()}}function $F(n,t,e,i){const r=t[10],o=!xd(),s=tC(t);try{o&&!s&&r.begin&&r.begin(),s&&Ac(n,t,i),Va(n,t,e,i)}finally{o&&!s&&r.end&&r.end()}}function z0(n,t,e,i,r){const o=gi(),s=2&i;try{Xo(-1),s&&t.length>20&&k0(n,t,20,xd()),e(i,r)}finally{Xo(o)}}function G0(n,t,e){if(Gp(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o<r;o++){const s=n.data[o];s.contentQueries&&s.contentQueries(1,e[o],o)}}}function Zm(n,t,e){!iC()||(function nN(n,t,e,i){const r=e.directiveStart,o=e.directiveEnd;n.firstCreatePass||lc(e,t),ai(i,t);const s=e.initialInputs;for(let a=r;a<o;a++){const l=n.data[a],c=Mr(l);c&&aN(t,e,l);const u=cc(t,n,a,e);ai(u,t),null!==s&&lN(0,a-r,u,l,0,s),c&&(Vi(e.index,t)[8]=u)}}(n,t,e,ir(e,t)),128==(128&e.flags)&&function iN(n,t,e){const i=e.directiveStart,r=e.directiveEnd,s=e.index,a=function DP(){return ft.lFrame.currentDirectiveIndex}();try{Xo(s);for(let l=i;l<r;l++){const c=n.data[l],u=t[l];tm(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&X0(c,u)}}finally{Xo(-1),tm(a)}}(n,t,e))}function Xm(n,t,e=ir){const i=t.localNames;if(null!==i){let r=t.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?e(t,n):n[s];n[r++]=a}}}function q0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=eh(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function eh(n,t,e,i,r,o,s,a,l,c){const u=20+i,d=u+r,h=function QF(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:Ct);return e}(u,d),m="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.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 o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:m,incompleteFirstPass:!1}}function Q0(n,t,e,i){const r=rw(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&ow(n).push(i,r.length-1))}function Y0(n,t,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(e=null===e?{}:e).hasOwnProperty(i)?e[i].push(t,r):e[i]=[t,r]}return e}function zi(n,t,e,i,r,o,s,a){const l=ir(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(lw(n,e,u,i,r),wd(t)&&function XF(n,t){const e=Vi(t,n);16&e[2]||(e[2]|=64)}(e,t.index)):3&t.type&&(i=function ZF(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=s?s(r,t.value||"",i):r,xn(o)?o.setProperty(l,i,r):sm(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Jm(n,t,e,i){let r=!1;if(iC()){const o=function rN(n,t,e){const i=n.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];I0(e,s.selectors,!1)&&(r||(r=[]),Nd(lc(e,t),n,s.type),Mr(s)?(J0(n,e),r.unshift(s)):r.push(s))}return r}(n,t,e),s=null===i?null:{"":-1};if(null!==o){r=!0,ew(e,n.data.length,o.length);for(let u=0;u<o.length;u++){const d=o[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=Ba(n,t,o.length,null);for(let u=0;u<o.length;u++){const d=o[u];e.mergedAttrs=Pd(e.mergedAttrs,d.hostAttrs),tw(n,e,t,c,d),sN(c,d,s),null!==d.contentQueries&&(e.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(e.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),l=!0),c++}!function KF(n,t){const i=t.directiveEnd,r=n.data,o=t.attrs,s=[];let a=null,l=null;for(let c=t.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===o||T0(t)?null:cN(d,o);s.push(h),a=Y0(d,c,a),l=Y0(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(n,e)}s&&function oN(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const o=e[t[r+1]];if(null==o)throw new Es("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],o)}}}(e,i,s)}return e.mergedAttrs=Pd(e.mergedAttrs,e.attrs),r}function Z0(n,t,e,i,r,o){const s=o.hostBindings;if(s){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~t.index;(function tN(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function X0(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function J0(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function sN(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;Mr(t)&&(e[""]=n)}}function ew(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function tw(n,t,e,i,r){n.data[i]=r;const o=r.factory||(r.factory=Ds(r.type)),s=new sc(o,Mr(r),null);n.blueprint[i]=s,e[i]=s,Z0(n,t,0,i,Ba(n,e,r.hostVars,Ct),r)}function aN(n,t,e){const i=ir(t,n),r=q0(e),o=n[10],s=th(n,xc(n,r,null,e.onPush?64:16,i,t,o,o.createRenderer(i,e),null,null));n[t.index]=s}function eo(n,t,e,i,r,o){const s=ir(n,t);!function eg(n,t,e,i,r,o,s){if(null==o)xn(n)?n.removeAttribute(t,r,e):t.removeAttribute(r);else{const a=null==s?bt(o):s(o,i||"",r);xn(n)?n.setAttribute(t,r,a,e):e?t.setAttributeNS(e,r,a):t.setAttribute(r,a)}}(t[11],s,o,n.value,e,i,r)}function lN(n,t,e,i,r,o){const s=o[t];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 cN(n,t){let e=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===e&&(e=[]),e.push(r,n[r],t[i+1])),i+=2}else i+=2;else i+=4}return e}function nw(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function hN(n,t){const e=Vi(t,n);if(Zp(e)){const i=e[1];80&e[2]?Va(i,e,i.template,e[8]):e[5]>0&&tg(e)}}function tg(n){for(let i=Om(n);null!==i;i=km(i))for(let r=10;r<i.length;r++){const o=i[r];if(1024&o[2]){const s=o[1];Va(s,o,s.template,o[8])}else o[5]>0&&tg(o)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Vi(e[i],n);Zp(r)&&r[5]>0&&tg(r)}}function fN(n,t){const e=Vi(t,n),i=e[1];(function pN(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),Ac(i,e,e[8])}function th(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function ng(n){for(;n;){n[2]|=64;const t=Ec(n);if(lP(n)&&!t)return n;n=t}return null}function rg(n,t,e){const i=t[10];i.begin&&i.begin();try{Va(n,t,n.template,e)}catch(r){throw aw(t,r),r}finally{i.end&&i.end()}}function iw(n){!function ig(n){for(let t=0;t<n.components.length;t++){const e=n.components[t],i=Am(e),r=i[1];$F(r,i,r.template,e)}}(n[8])}function og(n,t,e){im(0),t(n,e)}const _N=(()=>Promise.resolve(null))();function rw(n){return n[7]||(n[7]=[])}function ow(n){return n.cleanup||(n.cleanup=[])}function sw(n,t,e){return(null===n||Mr(n))&&(e=function vP(n){for(;Array.isArray(n);){if("object"==typeof n[1])return n;n=n[0]}return null}(e[t.index])),e[11]}function aw(n,t){const e=n[9],i=e?e.get(Xr,null):null;i&&i.handleError(t)}function lw(n,t,e,i,r){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],l=t[s],c=n.data[s];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Do(n,t,e){const i=Sd(t,n);!function h0(n,t,e){xn(n)?n.setValue(t,e):t.textContent=e}(n[11],i,e)}function nh(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,o=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?o=a:1==o?r=Np(r,a):2==o&&(i=Np(i,a+": "+t[++s]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}const Mc=new ke("INJECTOR",-1);class cw{get(t,e=fc){if(e===fc){const i=new Error(`NullInjectorError: No provider for ${xt(t)}!`);throw i.name="NullInjectorError",i}return e}}const Dc=new ke("Set Injector scope."),Tc={},CN={};let sg;function uw(){return void 0===sg&&(sg=new cw),sg}function dw(n,t=null,e=null,i){return new EN(n,e,t||uw(),i)}class EN{constructor(t,e,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&Yr(e,a=>this.processProvider(a,t,e)),Yr([t],a=>this.processInjectorType(a,[],o)),this.records.set(Mc,ja(void 0,this));const s=this.records.get(Dc);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof t?null:xt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=fc,i=tt.Default){this.assertNotDestroyed();const r=Oa(this),o=Qo(void 0);try{if(!(i&tt.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function ON(n){return"function"==typeof n||"object"==typeof n&&n instanceof ke}(t)&&bo(t);a=l&&this.injectableDefInScope(l)?ja(ag(t),Tc):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&tt.Self?uw():this.parent).get(t,e=i&tt.Optional&&e===fc?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ia]=s[Ia]||[]).unshift(xt(t)),r)throw s;return IC(s,t,"R3InjectorError",this.source)}throw s}finally{Qo(o),Oa(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(xt(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=Ze(t)))return!1;let r=jb(t);const o=null==r&&t.ngModule||void 0,s=void 0===o?t:o,a=-1!==i.indexOf(s);if(void 0!==o&&(r=jb(o)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(s);try{Yr(r.imports,d=>{this.processInjectorType(d,e,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:m}=u[d];Yr(m,I=>this.processProvider(I,h,m||Zt))}}this.injectorDefTypes.add(s);const l=Ds(s)||(()=>new s);this.records.set(s,ja(l,Tc));const c=r.providers;if(null!=c&&!a){const u=t;Yr(c,d=>this.processProvider(d,u,c))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,i){let r=Ha(t=Ze(t))?t:Ze(t&&t.provide);const o=function xN(n,t,e){return fw(n)?ja(void 0,n.useValue):ja(hw(n),Tc)}(t);if(Ha(t)||!0!==t.multi)this.records.get(r);else{let s=this.records.get(r);s||(s=ja(void 0,Tc,!0),s.factory=()=>Os(s.multi),this.records.set(r,s)),r=t,s.multi.push(t)}this.records.set(r,o)}hydrate(t,e){return e.value===Tc&&(e.value=CN,e.value=e.factory()),"object"==typeof e.value&&e.value&&function IN(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=Ze(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function ag(n){const t=bo(n),e=null!==t?t.factory:Ds(n);if(null!==e)return e;if(n instanceof ke)throw new Error(`Token ${xt(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function SN(n){const t=n.length;if(t>0){const i=ts(t,"?");throw new Error(`Can't resolve all parameters for ${xt(n)}: (${i.join(", ")}).`)}const e=function Yk(n){const t=n&&(n[vd]||n[Hb]);if(t){const e=function Kk(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);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.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new Error("unreachable")}function hw(n,t,e){let i;if(Ha(n)){const r=Ze(n);return Ds(r)||ag(r)}if(fw(n))i=()=>Ze(n.useValue);else if(function MN(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Os(n.deps||[]));else if(function AN(n){return!(!n||!n.useExisting)}(n))i=()=>ae(Ze(n.useExisting));else{const r=Ze(n&&(n.useClass||n.provide));if(!function TN(n){return!!n.deps}(n))return Ds(r)||ag(r);i=()=>new r(...Os(n.deps))}return i}function ja(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function fw(n){return null!==n&&"object"==typeof n&&vm in n}function Ha(n){return"function"==typeof n}const pw=function kN(n,t,e){return function wN(n,t=null,e=null,i){const r=dw(n,t,e,i);return r._resolveInjectorDefTypes(),r}({name:e},t,n,e)};let At=(()=>{class n{static create(e,i){return Array.isArray(e)?pw(e,i,""):pw(e.providers,e.parent,e.name||"")}}return n.THROW_IF_NOT_FOUND=fc,n.NULL=new cw,n.\u0275prov=Ce({token:n,providedIn:"any",factory:()=>ae(Mc)}),n.__NG_ELEMENT_ID__=-1,n})();function GN(n,t){Td(Am(n)[1],Hn())}function De(n){let t=function Iw(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(Mr(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(e){i.push(r);const s=n;s.inputs=fg(n.inputs),s.declaredInputs=fg(n.declaredInputs),s.outputs=fg(n.outputs);const a=r.hostBindings;a&&QN(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&WN(n,l),c&&$N(n,c),Fp(n.inputs,r.inputs),Fp(n.declaredInputs,r.declaredInputs),Fp(n.outputs,r.outputs),Mr(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(n),a===De&&(e=!1)}}t=Object.getPrototypeOf(t)}!function qN(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Pd(r.hostAttrs,e=Pd(e,r.hostAttrs))}}(i)}function fg(n){return n===ga?{}:n===Zt?[]:n}function WN(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function $N(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function QN(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ih=null;function Ua(){if(!ih){const n=Gt.Symbol;if(n&&n.iterator)ih=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(ih=i)}}}return ih}function Oc(n){return!!pg(n)&&(Array.isArray(n)||!(n instanceof Map)&&Ua()in n)}function pg(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function li(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function Mt(n,t,e,i){const r=xe();return li(r,wa(),t)&&(Ft(),eo(An(),r,n,t,e,i)),Mt}function Ga(n,t,e,i){return li(n,wa(),e)?t+bt(e)+i:Ct}function fe(n,t,e,i,r,o,s,a){const l=xe(),c=Ft(),u=n+20,d=c.firstCreatePass?function eL(n,t,e,i,r,o,s,a,l){const c=t.consts,u=La(t,n,4,s||null,Zo(c,a));Jm(t,e,u,Zo(c,l)),Td(t,u);const d=u.tViews=eh(2,u,i,r,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,o,s):c.data[u];Qr(d,!1);const h=l[11].createComment("");Yd(c,l,h,d),ai(h,l),th(l,l[u]=nw(h,l,h,d)),Ed(d)&&Zm(c,l,d),null!=s&&Xm(l,d,a)}function oh(n){return Ca(function xP(){return ft.lFrame.contextLView}(),20+n)}function f(n,t=tt.Default){const e=xe();return null===e?ae(n,t):CC(Hn(),e,Ze(n),t)}function Ja(){throw new Error("invalid")}function oe(n,t,e){const i=xe();return li(i,wa(),t)&&zi(Ft(),An(),i,n,t,i[11],e,!1),oe}function yg(n,t,e,i,r){const s=r?"class":"style";lw(n,e,t.inputs[s],s,i)}function X(n,t,e,i){const r=xe(),o=Ft(),s=20+n,a=r[11],l=r[s]=Rm(a,t,function FP(){return ft.lFrame.currentNamespace}()),c=o.firstCreatePass?function SL(n,t,e,i,r,o,s){const a=t.consts,c=La(t,n,2,r,Zo(a,o));return Jm(t,e,c,Zo(a,s)),null!==c.attrs&&nh(c,c.attrs,!1),null!==c.mergedAttrs&&nh(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(s,o,r,0,t,e,i):o.data[s];Qr(c,!0);const u=c.mergedAttrs;null!==u&&kd(a,l,u);const d=c.classes;null!==d&&jm(a,l,d);const h=c.styles;null!==h&&A0(a,l,h),64!=(64&c.flags)&&Yd(o,r,l,c),0===function bP(){return ft.lFrame.elementDepthCount}()&&ai(l,r),function CP(){ft.lFrame.elementDepthCount++}(),Ed(c)&&(Zm(o,r,c),G0(o,c,r)),null!==i&&Xm(r,c)}function J(){let n=Hn();Jp()?em():(n=n.parent,Qr(n,!1));const t=n;!function wP(){ft.lFrame.elementDepthCount--}();const e=Ft();e.firstCreatePass&&(Td(e,n),Gp(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function jP(n){return 0!=(16&n.flags)}(t)&&yg(e,t,xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function HP(n){return 0!=(32&n.flags)}(t)&&yg(e,t,xe(),t.stylesWithoutHost,!1)}function ot(n,t,e,i){X(n,t,e,i),J()}function _i(n,t,e){const i=xe(),r=Ft(),o=n+20,s=r.firstCreatePass?function xL(n,t,e,i,r){const o=t.consts,s=Zo(o,i),a=La(t,n,8,"ng-container",s);return null!==s&&nh(a,s,!0),Jm(t,e,a,Zo(o,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,r,i,t,e):r.data[o];Qr(s,!0);const a=i[o]=i[11].createComment("");Yd(r,i,a,s),ai(a,i),Ed(s)&&(Zm(r,i,s),G0(r,s,i)),null!=e&&Xm(i,s)}function yi(){let n=Hn();const t=Ft();Jp()?em():(n=n.parent,Qr(n,!1)),t.firstCreatePass&&(Td(t,n),Gp(n)&&t.queries.elementEnd(n))}function Xt(n,t,e){_i(n,t,e),yi()}function $t(){return xe()}function Pc(n){return!!n&&"function"==typeof n.then}function Xw(n){return!!n&&"function"==typeof n.subscribe}const ah=Xw;function Ve(n,t,e,i){const r=xe(),o=Ft(),s=Hn();return Jw(o,r,r[11],s,n,t,!!e,i),Ve}function Rc(n,t){const e=Hn(),i=xe(),r=Ft();return Jw(r,i,sw(nm(r.data),e,i),e,n,t,!1),Rc}function Jw(n,t,e,i,r,o,s,a){const l=Ed(i),u=n.firstCreatePass&&ow(n),d=t[8],h=rw(t);let m=!0;if(3&i.type||a){const z=ir(i,t),re=a?a(z):z,se=h.length,ve=a?Ee=>a(Fn(Ee[i.index])):i.index;if(xn(e)){let Ee=null;if(!a&&l&&(Ee=function AL(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===i){const a=t[7],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==Ee)(Ee.__ngLastListenerFn__||Ee).__ngNextListenerFn__=o,Ee.__ngLastListenerFn__=o,m=!1;else{o=bg(i,t,d,o,!1);const Pe=e.listen(re,r,o);h.push(o,Pe),u&&u.push(r,ve,se,se+1)}}else o=bg(i,t,d,o,!0),re.addEventListener(r,o,s),h.push(o),u&&u.push(r,ve,se,s)}else o=bg(i,t,d,o,!1);const I=i.outputs;let $;if(m&&null!==I&&($=I[r])){const z=$.length;if(z)for(let re=0;re<z;re+=2){const Qe=t[$[re]][$[re+1]].subscribe(o),ct=h.length;h.push(o,Qe),u&&u.push(r,i.index,ct,-(ct+1))}}}function eE(n,t,e,i){try{return!1!==e(i)}catch(r){return aw(n,r),!1}}function bg(n,t,e,i,r){return function o(s){if(s===Function)return i;const a=2&n.flags?Vi(n.index,t):t;0==(32&t[2])&&ng(a);let l=eE(t,0,i,s),c=o.__ngNextListenerFn__;for(;c;)l=eE(t,0,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function ye(n=1){return function IP(n){return(ft.lFrame.contextLView=function OP(n,t){for(;n>0;)t=t[15],n--;return t}(n,ft.lFrame.contextLView))[8]}(n)}function ML(n,t){let e=null;const i=function IF(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const o=t[r];if("*"!==o){if(null===i?I0(n,o,!0):PF(i,o))return r}else e=r}return e}function zn(n){const t=xe()[16][6];if(!t.projection){const i=t.projection=ts(n?n.length:1,null),r=i.slice();let o=t.child;for(;null!==o;){const s=n?ML(o,n):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function Rt(n,t=0,e){const i=xe(),r=Ft(),o=La(r,20+n,16,null,e||null);null===o.projection&&(o.projection=t),em(),64!=(64&o.flags)&&function EF(n,t,e){x0(t[11],0,t,e,m0(n,e,t),y0(e.parent||t[6],e,t))}(r,i,o)}function lh(n,t,e){return Cg(n,"",t,"",e),lh}function Cg(n,t,e,i,r){const o=xe(),s=Ga(o,t,e,i);return s!==Ct&&zi(Ft(),An(),o,n,s,o[11],r,!1),Cg}function cE(n,t,e,i,r){const o=n[e+1],s=null===t;let a=i?Tr(o):Ao(o),l=!1;for(;0!==a&&(!1===l||s);){const u=n[a+1];IL(n[a],t)&&(l=!0,n[a+1]=i?zm(u):Hm(u)),a=i?Tr(u):Ao(u)}l&&(n[e+1]=i?Hm(o):zm(o))}function IL(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&Ta(n,t)>=0}const Gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uE(n){return n.substring(Gn.key,Gn.keyEnd)}function dE(n,t){const e=Gn.textEnd;return e===t?-1:(t=Gn.keyEnd=function RL(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,Gn.key=t,e),el(n,t,e))}function el(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function bi(n,t,e){return Or(n,t,e,!1),bi}function pt(n,t){return Or(n,t,null,!0),pt}function io(n,t){for(let e=function kL(n){return function fE(n){Gn.key=0,Gn.keyEnd=0,Gn.value=0,Gn.valueEnd=0,Gn.textEnd=n.length}(n),dE(n,el(n,0,Gn.textEnd))}(t);e>=0;e=dE(t,e))ji(n,uE(t),!0)}function Or(n,t,e,i){const r=xe(),o=Ft(),s=Eo(2);o.firstUpdatePass&&vE(o,n,s,i),t!==Ct&&li(r,s,t)&&yE(o,o.data[gi()],r,r[11],n,r[s+1]=function qL(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=xt(Hi(n)))),n}(t,e),i,s)}function gE(n,t){return t>=n.expandoStartIndex}function vE(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[gi()],s=gE(n,e);CE(o,i)&&null===t&&!s&&(t=!1),t=function VL(n,t,e,i){const r=nm(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=Fc(e=wg(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=wg(r,n,t,e,i),null===o){let l=function jL(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Ao(i))return n[Tr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=wg(null,n,t,l[1],i),l=Fc(l,t.attrs,i),function HL(n,t,e,i){n[Tr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function UL(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<r;o++)i=Fc(i,n[o].hostAttrs,e);return Fc(i,t.attrs,e)}(n,t,i)}return void 0!==o&&(i?t.residualClasses=o:t.residualStyles=o),e}(r,o,t,i),function DL(n,t,e,i,r,o){let s=o?t.classBindings:t.styleBindings,a=Tr(s),l=Ao(s);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||Ta(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Tr(n[a+1]);n[i+1]=Zd(h,a),0!==h&&(n[h+1]=Um(n[h+1],i)),n[a+1]=function LF(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Zd(a,0),0!==a&&(n[a+1]=Um(n[a+1],i)),a=i;else n[i+1]=Zd(l,0),0===a?a=i:n[l+1]=Um(n[l+1],i),l=i;c&&(n[i+1]=Hm(n[i+1])),cE(n,u,i,!0),cE(n,u,i,!1),function TL(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Ta(o,t)>=0&&(e[i+1]=zm(e[i+1]))}(t,u,n,i,o),s=Zd(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function wg(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=t[a],i=Fc(i,o.hostAttrs,r),o!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function Fc(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?r=s:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),ji(n,s,!!e||t[++o]))}return void 0===n?null:n}function yE(n,t,e,i,r,o,s,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];ch(function R0(n){return 1==(1&n)}(c)?bE(l,t,e,r,Ao(c),s):void 0)||(ch(o)||function P0(n){return 2==(2&n)}(c)&&(o=bE(l,null,e,r,a,s)),function xF(n,t,e,i,r){const o=xn(n);if(t)r?o?n.addClass(e,i):e.classList.add(i):o?n.removeClass(e,i):e.classList.remove(i);else{let s=-1===i.indexOf("-")?void 0:Ui.DashCase;if(null==r)o?n.removeStyle(e,i,s):e.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),s|=Ui.Important),o?n.setStyle(e,i,r,s):e.style.setProperty(i,r,a?"important":"")}}}(i,s,Sd(gi(),e),r,o))}function bE(n,t,e,i,r,o){const s=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Ct&&(h=d?Zt:void 0);let m=d?fm(h,i):u===i?h:void 0;if(c&&!ch(m)&&(m=fm(l,i)),ch(m)&&(a=m,s))return a;const I=n[r+1];r=s?Tr(I):Ao(I)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=fm(l,i))}return a}function ch(n){return void 0!==n}function CE(n,t){return 0!=(n.flags&(t?16:32))}function Fe(n,t=""){const e=xe(),i=Ft(),r=n+20,o=i.firstCreatePass?La(i,r,1,t,null):i.data[r],s=e[r]=function Pm(n,t){return xn(n)?n.createText(t):n.createTextNode(t)}(e[11],t);Yd(i,e,s,o),Qr(o,!1)}function On(n){return Fs("",n,""),On}function Fs(n,t,e){const i=xe(),r=Ga(i,n,t,e);return r!==Ct&&Do(i,gi(),r),Fs}function IE(n,t,e){!function kr(n,t,e,i){const r=Ft(),o=Eo(2);r.firstUpdatePass&&vE(r,null,o,i);const s=xe();if(e!==Ct&&li(s,o,e)){const a=r.data[gi()];if(CE(a,i)&&!gE(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Np(l,e||"")),yg(r,a,s,e,i)}else!function GL(n,t,e,i,r,o,s,a){r===Ct&&(r=Zt);let l=0,c=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,m=c<o.length?o[c+1]:void 0;let $,I=null;u===d?(l+=2,c+=2,h!==m&&(I=d,$=m)):null===d||null!==u&&u<d?(l+=2,I=u):(c+=2,I=d,$=m),null!==I&&yE(n,t,e,i,I,$,s,a),u=l<r.length?r[l]:null,d=c<o.length?o[c]:null}}(r,a,s,s[11],s[o+1],s[o+1]=function zL(n,t,e){if(null==e||""===e)return Zt;const i=[],r=Hi(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)n(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&n(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,o)}}(ji,io,Ga(xe(),n,t,e),!0)}function Ns(n,t,e){const i=xe();return li(i,wa(),t)&&zi(Ft(),An(),i,n,t,i[11],e,!0),Ns}function Nc(n,t,e){const i=xe();if(li(i,wa(),t)){const o=Ft(),s=An();zi(o,s,i,n,t,sw(nm(o.data),s,i),e,!0)}return Nc}const Ls=void 0;var uB=["en",[["a","p"],["AM","PM"],Ls],[["AM","PM"],Ls,Ls],[["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"]],Ls,[["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"]],Ls,[["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}",Ls,"{1} 'at' {0}",Ls],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function cB(n){const e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let tl={};function HE(n){return n in tl||(tl[n]=Gt.ng&&Gt.ng.common&&Gt.ng.common.locales&&Gt.ng.common.locales[n]),tl[n]}var je=(()=>((je=je||{})[je.LocaleId=0]="LocaleId",je[je.DayPeriodsFormat=1]="DayPeriodsFormat",je[je.DayPeriodsStandalone=2]="DayPeriodsStandalone",je[je.DaysFormat=3]="DaysFormat",je[je.DaysStandalone=4]="DaysStandalone",je[je.MonthsFormat=5]="MonthsFormat",je[je.MonthsStandalone=6]="MonthsStandalone",je[je.Eras=7]="Eras",je[je.FirstDayOfWeek=8]="FirstDayOfWeek",je[je.WeekendRange=9]="WeekendRange",je[je.DateFormat=10]="DateFormat",je[je.TimeFormat=11]="TimeFormat",je[je.DateTimeFormat=12]="DateTimeFormat",je[je.NumberSymbols=13]="NumberSymbols",je[je.NumberFormats=14]="NumberFormats",je[je.CurrencyCode=15]="CurrencyCode",je[je.CurrencySymbol=16]="CurrencySymbol",je[je.CurrencyName=17]="CurrencyName",je[je.Currencies=18]="Currencies",je[je.Directionality=19]="Directionality",je[je.PluralCase=20]="PluralCase",je[je.ExtraData=21]="ExtraData",je))();const uh="en-US";let UE=uh;function xg(n,t,e,i,r){if(n=Ze(n),Array.isArray(n))for(let o=0;o<n.length;o++)xg(n[o],t,e,i,r);else{const o=Ft(),s=xe();let a=Ha(n)?n:Ze(n.provide),l=hw(n);const c=Hn(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Ha(n)||!n.multi){const m=new sc(l,r,f),I=Mg(a,t,r?u:u+h,d);-1===I?(Nd(lc(c,s),o,a),Ag(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[I]=m,s[I]=m)}else{const m=Mg(a,t,u+h,d),I=Mg(a,t,u,u+h),$=m>=0&&e[m],z=I>=0&&e[I];if(r&&!z||!r&&!$){Nd(lc(c,s),o,a);const re=function u2(n,t,e,i,r){const o=new sc(n,e,f);return o.multi=[],o.index=t,o.componentProviders=0,hS(o,r,i&&!e),o}(r?c2:l2,e.length,r,i,l);!r&&z&&(e[I].providerFactory=re),Ag(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(re),s.push(re)}else Ag(o,n,m>-1?m:I,hS(e[r?I:m],l,!r&&i));!r&&i&&z&&e[I].componentProviders++}}}function Ag(n,t,e,i){const r=Ha(t);if(r||function DN(n){return!!n.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const l=a.indexOf(e);-1===l?a.push(e,[i,s]):a[l+1].push(i,s)}else a.push(e,s)}}}function hS(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Mg(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function l2(n,t,e,i){return Dg(this.multi,[])}function c2(n,t,e,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=cc(e,e[1],this.providerFactory.index,i);o=a.slice(0,s),Dg(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Dg(r,o);return o}function Dg(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function Lt(n,t=[]){return e=>{e.providersResolver=(i,r)=>function a2(n,t,e){const i=Ft();if(i.firstCreatePass){const r=Mr(n);xg(e,i.data,i.blueprint,r,!0),xg(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class fS{}const mS="ngComponent";class h2{resolveComponentFactory(t){throw function pS(n){const t=Error(`No component factory found for ${xt(n)}. Did you add it to @NgModule.entryComponents?`);return t[mS]=n,t}(t)}}let Pr=(()=>{class n{}return n.NULL=new h2,n})();function mh(...n){}function il(n,t){return new Oe(ir(n,t))}const m2=function f2(){return il(Hn(),xe())};let Oe=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=m2,n})();function gS(n){return n instanceof Oe?n.nativeElement:n}class Bs{}let ar=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>v2(),n})();const v2=function y2(){const n=xe(),e=Vi(Hn().index,n);return function _2(n){return n[11]}($r(e)?e:n)};let Ig=(()=>{class n{}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:()=>null}),n})();class ro{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const vS=new ro("13.0.0"),rl={};function gh(n,t,e,i,r=!1){for(;null!==e;){const o=t[e.index];if(null!==o&&i.push(Fn(o)),Ar(o))for(let a=10;a<o.length;a++){const l=o[a],c=l[1].firstChild;null!==c&&gh(l[1],l,c,i)}const s=e.type;if(8&s)gh(n,t,e.child,i);else if(32&s){const a=Im(e,t);let l;for(;l=a();)i.push(l)}else if(16&s){const a=E0(t,e);if(Array.isArray(a))i.push(...a);else{const l=Ec(t[16]);gh(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class Hc{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return gh(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Ar(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Fm(t,i),Is(e,i))}this._attachedToViewContainer=!1}p0(this._lView[1],this._lView)}onDestroy(t){Q0(this._lView[1],this._lView,null,t)}markForCheck(){ng(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){rg(this._lView[1],this._lView,this.context)}checkNoChanges(){!function gN(n,t,e){Ad(!0);try{rg(n,t,e)}finally{Ad(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mF(n,t){Sc(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class b2 extends Hc{constructor(t){super(t),this._view=t}detectChanges(){iw(this._view)}checkNoChanges(){!function vN(n){Ad(!0);try{iw(n)}finally{Ad(!1)}}(this._view)}get context(){return null}}class _S extends Pr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=oi(t);return new Og(e,this.ngModule)}}function yS(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}const w2=new ke("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>s0});class Og extends fS{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function FF(n){return n.map(RF).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return yS(this.componentDef.inputs)}get outputs(){return yS(this.componentDef.outputs)}create(t,e,i,r){const o=(r=r||this.ngModule)?function E2(n,t){return{get:(e,i,r)=>{const o=n.get(e,rl,r);return o!==rl||i===rl?o:t.get(e,i,r)}}}(t,r.injector):t,s=o.get(Bs,eC),a=o.get(Ig,null),l=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function $0(n,t,e){if(xn(n))return n.selectRootElement(t,e===Oi.ShadowDom);let i="string"==typeof t?n.querySelector(t):t;return i.textContent="",i}(l,i,this.componentDef.encapsulation):Rm(s.createRenderer(null,this.componentDef),c,function C2(n){const t=n.toLowerCase();return"svg"===t?Xb:"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,h=function Tw(n,t){return{components:[],scheduler:n||s0,clean:_N,playerHandler:t||null,flags:0}}(),m=eh(0,null,null,1,0,null,null,null,null,null),I=xc(null,m,h,d,null,null,s,l,a,o);let $,z;Md(I);try{const re=function Mw(n,t,e,i,r,o){const s=e[1];e[20]=n;const l=La(s,20,2,"#host",null),c=l.mergedAttrs=t.hostAttrs;null!==c&&(nh(l,c,!0),null!==n&&(kd(r,n,c),null!==l.classes&&jm(r,n,l.classes),null!==l.styles&&A0(r,n,l.styles)));const u=i.createRenderer(n,t),d=xc(e,q0(t),null,t.onPush?64:16,e[20],l,i,u,o||null,null);return s.firstCreatePass&&(Nd(lc(l,e),s,t.type),J0(s,l),ew(l,e.length,1)),th(e,d),e[20]=d}(u,this.componentDef,I,s,l);if(u)if(i)kd(l,u,["ng-version",vS.full]);else{const{attrs:se,classes:ve}=function NF(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let o=n[i];if("string"==typeof o)2===r?""!==o&&t.push(o,n[++i]):8===r&&e.push(o);else{if(!Dr(r))break;r=o}i++}return{attrs:t,classes:e}}(this.componentDef.selectors[0]);se&&kd(l,u,se),ve&&ve.length>0&&jm(l,u,ve.join(" "))}if(z=Kp(m,20),void 0!==e){const se=z.projection=[];for(let ve=0;ve<this.ngContentSelectors.length;ve++){const Ee=e[ve];se.push(null!=Ee?Array.from(Ee):null)}}$=function Dw(n,t,e,i,r){const o=e[1],s=function eN(n,t,e){const i=Hn();n.firstCreatePass&&(e.providersResolver&&e.providersResolver(e),tw(n,i,t,Ba(n,t,1,null),e));const r=cc(t,n,i.directiveStart,i);ai(r,t);const o=ir(i,t);return o&&ai(o,t),r}(o,e,t);if(i.components.push(s),n[8]=s,r&&r.forEach(l=>l(s,t)),t.contentQueries){const l=Hn();t.contentQueries(1,s,l.directiveStart)}const a=Hn();return!o.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Xo(a.index),Z0(e[1],a,0,a.directiveStart,a.directiveEnd,t),X0(t,s)),s}(re,this.componentDef,I,h,[GN]),Ac(m,I,null)}finally{Dd()}return new x2(this.componentType,$,il(z,I),I,z)}}class x2 extends class d2{}{constructor(t,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new b2(r),this.componentType=t}get injector(){return new xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class oo{}class bS{}const ol=new Map;class wS extends oo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new _S(this);const i=er(t);this._bootstrapComponents=Jr(i.bootstrap),this._r3Injector=dw(t,e,[{provide:oo,useValue:this},{provide:Pr,useValue:this.componentFactoryResolver}],xt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=At.THROW_IF_NOT_FOUND,i=tt.Default){return t===At||t===oo||t===Mc?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pg extends bS{constructor(t){super(),this.moduleType=t,null!==er(t)&&function M2(n){const t=new Set;!function e(i){const r=er(i,!0),o=r.id;null!==o&&(function CS(n,t,e){if(t&&t!==e)throw new Error(`Duplicate module registered for ${n} - ${xt(t)} vs ${xt(t.name)}`)}(o,ol.get(o),i),ol.set(o,i));const s=Jr(r.imports);for(const a of s)t.has(a)||(t.add(a),e(a))}(n)}(t)}create(t){return new wS(this.moduleType,t)}}function Rr(n,t,e,i){return ES(xe(),mi(),n,t,e,i)}function ES(n,t,e,i,r,o){const s=t+e;return li(n,s,r)?function to(n,t,e){return n[t]=e}(n,s+1,o?i.call(o,r):i(r)):function Uc(n,t){const e=n[t];return e===Ct?void 0:e}(n,s+1)}function sl(n,t){const e=Ft();let i;const r=n+20;e.firstCreatePass?(i=function L2(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}throw new Es("302",`The pipe '${n}' could not be found!`)}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ds(i.type)),s=Qo(f);try{const a=Rd(!1),l=o();return Rd(a),function tL(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,xe(),r,l),l}finally{Qo(s)}}function al(n,t,e){const i=n+20,r=xe(),o=Ca(r,i);return function zc(n,t){return n[1].data[t].pure}(r,i)?ES(r,mi(),t,o.transform,e,o):o.transform(e)}function Rg(n){return t=>{setTimeout(n,void 0,t)}}const Ne=class U2 extends be{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){var r,o,s;let a=t,l=e||(()=>null),c=i;if(t&&"object"==typeof t){const d=t;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(o=d.error)||void 0===o?void 0:o.bind(d),c=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=Rg(l),a&&(a=Rg(a)),c&&(c=Rg(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof S&&t.add(u),u}};function z2(){return this._results[Ua()]()}class rs{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Ua(),i=rs.prototype;i[e]||(i[e]=z2)}get changes(){return this._changes||(this._changes=new Ne)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=rr(t);(this._changesDetected=!function XP(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],o=t[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;const q2=function Q2(){return vh(Hn(),xe())};let lt=(()=>{class n{}return n.__NG_ELEMENT_ID__=q2,n})();const W2=lt,$2=class extends W2{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=xc(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(i[19]=o.createEmbeddedView(e)),Ac(e,i,t),new Hc(i)}};function vh(n,t){return 4&n.type?new $2(t,n,il(n,t)):null}const K2=function Z2(){return IS(Hn(),xe())};let Jt=(()=>{class n{}return n.__NG_ELEMENT_ID__=K2,n})();const X2=Jt,DS=class extends X2{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return il(this._hostTNode,this._hostLView)}get injector(){return new xa(this._hostTNode,this._hostLView)}get parentInjector(){const t=Fd(this._hostTNode,this._hostLView);if(gC(t)){const e=Sa(t,this._hostLView),i=Ea(t);return new xa(e[1].data[i+8],e)}return new xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=TS(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){const r=t.createEmbeddedView(e||{});return this.insert(r,i),r}createComponent(t,e,i,r,o){const s=t&&!function dc(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.ngModuleRef}const l=s?t:new Og(oi(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule&&c){const d=c.get(oo,null);d&&(o=d)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function yP(n){return Ar(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new DS(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function vF(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i<o-10?(t[4]=e[r],Bd(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const s=t[17];null!==s&&e!==s&&function _F(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=128}(r,i,s,o);const a=Bm(o,s),l=i[11],c=Qd(l,s[7]);return null!==c&&function pF(n,t,e,i,r,o){i[0]=r,i[6]=t,Sc(n,i,e,1,r,o)}(r,s[6],l,i,c,a),t.attachToViewContainerRef(),Bd(Fg(s),o,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=TS(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Fm(this._lContainer,e);i&&(Is(Fg(this._lContainer),e),p0(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Fm(this._lContainer,e);return i&&null!=Is(Fg(this._lContainer),e)?new Hc(i):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function TS(n){return n[8]}function Fg(n){return n[8]||(n[8]=[])}function IS(n,t){let e;const i=t[n.index];if(Ar(i))e=i;else{let r;if(8&n.type)r=Fn(i);else{const o=t[11];r=o.createComment("");const s=ir(n,t);Ps(o,Qd(o,s),r,function wF(n,t){return xn(n)?n.nextSibling(t):t.nextSibling}(o,s),!1)}t[n.index]=e=nw(i,t,r,n),th(t,e)}return new DS(e,n,t)}class Ng{constructor(t){this.queryList=t,this.matches=null}clone(){return new Ng(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Lg(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==FS(t,e).matches&&this.queries[e].setDirty()}}class OS{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Bg{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(t,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new Bg(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Vg{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Vg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(t,e,tV(e,o)),this.matchTNodeWithReadOption(t,e,Ld(e,t,o,!1,!1))}else i===lt?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ld(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Oe||r===Jt||r===lt&&4&e.type)this.addMatch(e.index,-2);else{const o=Ld(e,t,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function tV(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function iV(n,t,e,i){return-1===e?function nV(n,t){return 11&n.type?il(n,t):4&n.type?vh(n,t):null}(t,n):-2===e?function rV(n,t,e){return e===Oe?il(t,n):e===lt?vh(t,n):e===Jt?IS(t,n):void 0}(n,t,i):cc(n,n[1],e,t)}function kS(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const o=n.data,s=e.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:iV(t,o[c],s[l+1],e.metadata.read))}r.matches=a}return r.matches}function jg(n,t,e,i){const r=n.queries.getByIndex(e),o=r.matches;if(null!==o){const s=kS(n,t,r,e);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&jg(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const m=d[h];jg(m[1],m,c,i)}}}}}return i}function Te(n){const t=xe(),e=Ft(),i=aC();im(i+1);const r=FS(e,i);if(n.dirty&&tC(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const o=r.crossesNgTemplate?jg(e,t,i,[]):kS(e,t,r,i);n.reset(o,gS),n.notifyOnChanges()}return!0}return!1}function Bt(n,t,e){const i=Ft();i.firstCreatePass&&(RS(i,new OS(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),PS(i,xe(),t)}function qe(n,t,e,i){const r=Ft();if(r.firstCreatePass){const o=Hn();RS(r,new OS(t,e,i),o.index),function sV(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}PS(r,xe(),e)}function Ie(){return function oV(n,t){return n[19].queries[t].queryList}(xe(),aC())}function PS(n,t,e){const i=new rs(4==(4&e));Q0(n,t,i,i.destroy),null===t[19]&&(t[19]=new Lg),t[19].queries.push(new Ng(i))}function RS(n,t,e){null===n.queries&&(n.queries=new Bg),n.queries.track(new Vg(t,e))}function FS(n,t){return n.queries.getByIndex(t)}function nn(n,t){return vh(n,t)}const qc=new ke("Application Initializer");let cl=(()=>{class n{constructor(e){this.appInits=e,this.resolve=mh,this.reject=mh,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(Pc(o))e.push(o);else if(ah(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(ae(qc,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const Wc=new ke("AppId"),AV={provide:Wc,useFactory:function xV(){return`${Wg()}${Wg()}${Wg()}`},deps:[]};function Wg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const XS=new ke("Platform Initializer"),Gi=new ke("Platform ID"),$g=new ke("appBootstrapListener");let bh=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const Io=new ke("LocaleId"),JS=new ke("DefaultCurrencyCode");class DV{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Qg=function(n){return new Pg(n)},TV=Qg,IV=function(n){return Promise.resolve(Qg(n))},tx=function(n){const t=Qg(n),i=Jr(er(n).declarations).reduce((r,o)=>{const s=oi(o);return s&&r.push(new Og(s)),r},[]);return new DV(t,i)},OV=tx,kV=function(n){return Promise.resolve(tx(n))};let Ch=(()=>{class n{constructor(){this.compileModuleSync=TV,this.compileModuleAsync=IV,this.compileModuleAndAllComponentsSync=OV,this.compileModuleAndAllComponentsAsync=kV}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const FV=(()=>Promise.resolve(0))();function Yg(n){"undefined"==typeof Zone?FV.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class nt{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ne(!1),this.onMicrotaskEmpty=new Ne(!1),this.onStable=new Ne(!1),this.onError=new Ne(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function NV(){let n=Gt.requestAnimationFrame,t=Gt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function VV(n){const t=()=>{!function BV(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(Gt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Zg(n),n.isCheckStableRunning=!0,Kg(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Zg(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return nx(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),ix(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return nx(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),ix(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,Zg(n),Kg(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!nt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(nt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,LV,mh,mh);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const LV={};function Kg(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Zg(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function nx(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function ix(n){n._nesting--,Kg(n)}class jV{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ne,this.onMicrotaskEmpty=new Ne,this.onStable=new Ne,this.onError=new Ne}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}let Xg=(()=>{class n{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,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:()=>{nt.assertNotInAngularZone(),Yg(()=>{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())Yg(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(ae(nt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),rx=(()=>{class n{constructor(){this._applications=new Map,Jg.addToWindow(this)}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){return Jg.findTestabilityInTree(this,e,i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class HV{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Jg=new HV,ox=!0,sx=!1;function ev(){return sx=!0,ox}let Fr;const ax=new ke("AllowMultipleToken");class tv{constructor(t,e){this.name=t,this.token=e}}function lx(n,t,e=[]){const i=`Platform: ${t}`,r=new ke(i);return(o=[])=>{let s=cx();if(!s||s.injector.get(ax,!1))if(n)n(e.concat(o).concat({provide:r,useValue:!0}));else{const a=e.concat(o).concat({provide:r,useValue:!0},{provide:Dc,useValue:"platform"});!function KV(n){if(Fr&&!Fr.destroyed&&!Fr.injector.get(ax,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fr=n.get(ux);const t=n.get(XS,null);t&&t.forEach(e=>e())}(At.create({providers:a,name:i}))}return function ZV(n){const t=cx();if(!t)throw new Error("No platform exists!");if(!t.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function cx(){return Fr&&!Fr.destroyed?Fr:null}let ux=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const a=function XV(n,t){let e;return e="noop"===n?new jV:("zone.js"===n?void 0:n)||new nt({enableLongStackTrace:ev(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),e}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:nt,useValue:a}];return a.run(()=>{const c=At.create({providers:l,parent:this.injector,name:e.moduleType.name}),u=e.create(c),d=u.injector.get(Xr,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:m=>{d.handleError(m)}});u.onDestroy(()=>{nv(this._modules,u),h.unsubscribe()})}),function JV(n,t,e){try{const i=e();return Pc(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(cl);return h.runInitializers(),h.donePromise.then(()=>(function mB(n){Li(n,"Expected localeId to be defined"),"string"==typeof n&&(UE=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(Io,uh)||uh),this._moduleDoBootstrap(u),u))})})}bootstrapModule(e,i=[]){const r=dx({},i);return function qV(n,t,e){const i=new Pg(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(os);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${xt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(ae(At))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function dx(n,t){return Array.isArray(t)?t.reduce(dx,n):Object.assign(Object.assign({},n),t)}let os=(()=>{class n{constructor(e,i,r,o,s){this._zone=e,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new P(c=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{c.next(this._stable),c.complete()})}),l=new P(c=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{nt.assertNotInAngularZone(),Yg(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,c.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{nt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{c.next(!1)}))});return()=>{u.unsubscribe(),d.unsubscribe()}});this.isStable=Fi(a,l.pipe(Lb()))}bootstrap(e,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=e instanceof fS?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(r.componentType);const o=function YV(n){return n.isBoundToModule}(r)?void 0:this._injector.get(oo),a=r.create(At.NULL,[],i||r.selector,o),l=a.location.nativeElement,c=a.injector.get(Xg,null),u=c&&a.injector.get(rx);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),nv(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");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;nv(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get($g,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(e){return new(e||n)(ae(nt),ae(At),ae(Xr),ae(Pr),ae(cl))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function nv(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const n3=function r3(n){return function o3(n,t,e){if(wd(n)&&!e){const i=Vi(n.index,t);return new Hc(i,i)}return 47&n.type?new Hc(t[16],t):null}(Hn(),xe(),16==(16&n))};let an=(()=>{class n{}return n.__NG_ELEMENT_ID__=n3,n})();class _x{constructor(){}supports(t){return Oc(t)}create(t){return new g3(t)}}const m3=(n,t)=>t;class g3{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||m3}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex<bx(i,r,o)?e:i,a=bx(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const m=h<o.length?o[h]:o[h]=0,I=m+h;u<=I&&I<c&&(o[h]=m+1)}o[s.previousIndex]=u-c}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Oc(t))throw new Error(`Error trying to diff '${xt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,o,s,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)o=t[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),i=!0),e=e._next}else r=0,function JN(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Ua()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new v3(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new yx),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yx),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class v3{constructor(t,e){this.item=t,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 _3{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class yx{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new _3,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bx(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class Cx{constructor(){}supports(t){return t instanceof Map||pg(t)}create(){return new y3}}class y3{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(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||pg(t)))throw new Error(`Error trying to diff '${xt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new b3(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class b3{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function wx(){return new ul([new _x])}let ul=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||wx()),deps:[[n,new xo,new Kn]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${e}' of type '${function C3(n){return n.name||typeof n}(e)}'`)}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:wx}),n})();function Ex(){return new ss([new Cx])}let ss=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||Ex()),deps:[[n,new xo,new Kn]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:Ex}),n})();const w3=[new Cx],S3=new ul([new _x]),x3=new ss(w3),A3=lx(null,"core",[{provide:Gi,useValue:"unknown"},{provide:ux,deps:[At]},{provide:rx,deps:[]},{provide:bh,deps:[]}]),O3=[{provide:os,useClass:os,deps:[nt,At,Xr,Pr,cl]},{provide:w2,deps:[nt],useFactory:function k3(n){let t=[];return n.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:cl,useClass:cl,deps:[[new Kn,qc]]},{provide:Ch,useClass:Ch,deps:[]},AV,{provide:ul,useFactory:function M3(){return S3},deps:[]},{provide:ss,useFactory:function D3(){return x3},deps:[]},{provide:Io,useFactory:function T3(n){return n||function I3(){return"undefined"!=typeof $localize&&$localize.locale||uh}()},deps:[[new ka(Io),new Kn,new xo]]},{provide:JS,useValue:"USD"}];let P3=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(ae(os))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:O3}),n})(),Fh=null;function so(){return Fh}const it=new ke("DocumentToken");let zs=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:function(){return function M4(){return ae(aA)}()},providedIn:"platform"}),n})();const D4=new ke("Location Initialized");let aA=(()=>{class n extends zs{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return so().getBaseHref(this._doc)}onPopState(e){const i=so().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=so().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){lA()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){lA()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:function(){return function T4(){return new aA(ae(it))}()},providedIn:"platform"}),n})();function lA(){return!!window.history.pushState}function Iv(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function cA(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function ko(n){return n&&"?"!==n[0]?"?"+n:n}let gl=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:function(){return function I4(n){const t=ae(it).location;return new uA(ae(zs),t&&t.origin||"")}()},providedIn:"root"}),n})();const Nh=new ke("appBaseHref");let uA=(()=>{class n extends gl{constructor(e,i){if(super(),this._platformLocation=e,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(e){return Iv(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+ko(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+ko(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+ko(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ae(zs),ae(Nh,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),O4=(()=>{class n extends gl{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=Iv(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+ko(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+ko(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,e)}}return n.\u0275fac=function(e){return new(e||n)(ae(zs),ae(Nh,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),ru=(()=>{class n{constructor(e,i){this._subject=new Ne,this._urlChangeListeners=[],this._platformStrategy=e;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=cA(dA(r)),this._platformStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ko(i))}normalize(e){return n.stripTrailingSlash(function P4(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,dA(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._platformStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ko(i)),r)}replaceState(e,i="",r=null){this._platformStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ko(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(e=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,e)}onUrlChange(e){this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=ko,n.joinWithSlash=Iv,n.stripTrailingSlash=cA,n.\u0275fac=function(e){return new(e||n)(ae(gl),ae(zs))},n.\u0275prov=Ce({token:n,factory:function(){return function k4(){return new ru(ae(gl),ae(zs))}()},providedIn:"root"}),n})();function dA(n){return n.replace(/\/index.html$/,"")}var Nn=(()=>((Nn=Nn||{})[Nn.Zero=0]="Zero",Nn[Nn.One=1]="One",Nn[Nn.Two=2]="Two",Nn[Nn.Few=3]="Few",Nn[Nn.Many=4]="Many",Nn[Nn.Other=5]="Other",Nn))();const j4=function jE(n){return function Ci(n){const t=function dB(n){return n.toLowerCase().replace(/_/g,"-")}(n);let e=HE(t);if(e)return e;const i=t.split("-")[0];if(e=HE(i),e)return e;if("en"===i)return uB;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[je.PluralCase]};class Wh{}let mH=(()=>{class n extends Wh{constructor(e){super(),this.locale=e}getPluralCategory(e,i){switch(j4(i||this.locale)(e)){case Nn.Zero:return"zero";case Nn.One:return"one";case Nn.Two:return"two";case Nn.Few:return"few";case Nn.Many:return"many";default:return"other"}}}return n.\u0275fac=function(e){return new(e||n)(ae(Io))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function bA(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let Ro=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Oc(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 ${xt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(f(ul),f(ss),f(Oe),f(ar))},n.\u0275dir=ge({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class vH{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let vl=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function _H(n){return n.name||typeof n}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=[];e.forEachOperation((r,o,s)=>{if(null==r.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new vH(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new CA(r,a);i.push(l)}else if(null==s)this._viewContainer.remove(null===o?void 0:o);else if(null!==o){const a=this._viewContainer.get(o);this._viewContainer.move(a,s);const l=new CA(r,a);i.push(l)}});for(let r=0;r<i.length;r++)this._perViewChange(i[r].view,i[r].record);for(let r=0,o=this._viewContainer.length;r<o;r++){const s=this._viewContainer.get(r);s.context.index=r,s.context.count=o,s.context.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{this._viewContainer.get(r.currentIndex).context.$implicit=r.item})}_perViewChange(e,i){e.context.$implicit=i.item}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(f(Jt),f(lt),f(ul))},n.\u0275dir=ge({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();class CA{constructor(t,e){this.record=t,this.view=e}}let Wn=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new yH,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){wA("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){wA("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 n.\u0275fac=function(e){return new(e||n)(f(Jt),f(lt))},n.\u0275dir=ge({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class yH{constructor(){this.$implicit=null,this.ngIf=null}}function wA(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${xt(t)}'.`)}class Vv{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Gs=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),au=(()=>{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Vv(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(f(Jt),f(lt),f(Gs,9))},n.\u0275dir=ge({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),EA=(()=>{class n{constructor(e,i,r){r._addDefault(new Vv(e,i))}}return n.\u0275fac=function(e){return new(e||n)(f(Jt),f(lt),f(Gs,9))},n.\u0275dir=ge({type:n,selectors:[["","ngSwitchDefault",""]]}),n})(),lu=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split(".");null!=(i=null!=i&&o?`${i}${o}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(ss),f(ar))},n.\u0275dir=ge({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),cs=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){if(e.ngTemplateOutlet){const i=this._viewContainerRef;this._viewRef&&i.remove(i.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?i.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[vn]}),n})();class CH{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class wH{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}onDestroy(t){}}const EH=new wH,SH=new CH;let xA=(()=>{class n{constructor(e){this._ref=e,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(Pc(e))return EH;if(Xw(e))return SH;throw function Hr(n,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${xt(n)}'`)}(n,e)}_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 n.\u0275fac=function(e){return new(e||n)(f(an,16))},n.\u0275pipe=ti({name:"async",type:n,pure:!1}),n})(),Si=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[{provide:Wh,useClass:mH}]}),n})();const MA="browser";function qs(n){return n===MA}function _l(n){return"server"===n}let GH=(()=>{class n{}return n.\u0275prov=Ce({token:n,providedIn:"root",factory:()=>new qH(ae(it),window)}),n})();class qH{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function WH(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=DA(this.window.history)||DA(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function DA(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class TA{}class Uv extends class $H extends class A4{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function x4(n){Fh||(Fh=n)}(new Uv)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function QH(){return cu=cu||document.querySelector("base"),cu?cu.getAttribute("href"):null}();return null==e?null:function YH(n){$h=$h||document.createElement("a"),$h.setAttribute("href",n);const t=$h.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){cu=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return bA(document.cookie,t)}}let $h,cu=null;const IA=new ke("TRANSITION_ID"),ZH=[{provide:qc,useFactory:function KH(n,t,e){return()=>{e.get(cl).donePromise.then(()=>{const i=so(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[IA,it,At],multi:!0}];class zv{static init(){!function UV(n){Jg=n}(new zv)}addToWindow(t){Gt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Gt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Gt.getAllAngularRootElements=()=>t.getAllRootElements(),Gt.frameworkStabilizers||(Gt.frameworkStabilizers=[]),Gt.frameworkStabilizers.push(i=>{const r=Gt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:i?so().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let XH=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const uu=new ke("EventManagerPlugins");let Yh=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const s=r[o];if(s.supports(e))return this._eventNameToPlugin.set(e,s),s}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(ae(uu),ae(nt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class Gv{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=so().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let kA=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),du=(()=>{class n extends kA{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(PA),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(PA))}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function PA(n){so().remove(n)}const qv={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/"},Wv=/%COMP%/g;function Kh(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Kh(n,r,e):(r=r.replace(Wv,n),e.push(r))}return e}function NA(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Zh=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $v(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Oi.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new p5(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Oi.ShadowDom:return new m5(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Kh(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(ae(Yh),ae(du),ae(Wc))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class $v{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(qv[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=qv[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=qv[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ui.DashCase|Ui.Important)?t.style.setProperty(e,i,r&Ui.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ui.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,NA(i)):this.eventManager.addEventListener(t,e,NA(i))}}class p5 extends $v{constructor(t,e,i,r){super(t),this.component=i;const o=Kh(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function d5(n){return"_ngcontent-%COMP%".replace(Wv,n)}(r+"-"+i.id),this.hostAttr=function h5(n){return"_nghost-%COMP%".replace(Wv,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class m5 extends $v{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Kh(r.id,r.styles,[]);for(let s=0;s<o.length;s++){const a=document.createElement("style");a.textContent=o[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let g5=(()=>{class n extends Gv{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const VA=["alt","control","meta","shift"],E5={"\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"},jA={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},S5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let x5=(()=>{class n extends Gv{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>so().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="";if(VA.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const a={};return a.domEventName=r,a.fullKey=s,a}static getEventFullKey(e){let i="",r=function A5(n){let t=n.key;if(null==t){if(t=n.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===n.location&&jA.hasOwnProperty(t)&&(t=jA[t]))}return E5[t]||t}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),VA.forEach(o=>{o!=r&&S5[o](e)&&(i+=o+".")}),i+=r,i}static eventCallback(e,i,r){return o=>{n.getEventFullKey(o)===e&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),yl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:function(e){let i=null;return i=e?new(e||n):ae(Yv),i},providedIn:"root"}),n})(),Yv=(()=>{class n extends yl{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Nt.NONE:return i;case Nt.HTML:return Kr(i,"HTML")?Hi(i):WC(this._doc,String(i)).toString();case Nt.STYLE:return Kr(i,"Style")?Hi(i):i;case Nt.SCRIPT:if(Kr(i,"Script"))return Hi(i);throw new Error("unsafe value used in a script context");case Nt.URL:return BC(i),Kr(i,"URL")?Hi(i):_c(String(i));case Nt.RESOURCE_URL:if(Kr(i,"ResourceURL"))return Hi(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 AR(n){return new CR(n)}(e)}bypassSecurityTrustStyle(e){return function MR(n){return new wR(n)}(e)}bypassSecurityTrustScript(e){return function DR(n){return new ER(n)}(e)}bypassSecurityTrustUrl(e){return function TR(n){return new SR(n)}(e)}bypassSecurityTrustResourceUrl(e){return function IR(n){return new xR(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:function(e){let i=null;return i=e?new e:function M5(n){return new Yv(n.get(it))}(ae(At)),i},providedIn:"root"}),n})();const P5=lx(A3,"browser",[{provide:Gi,useValue:MA},{provide:XS,useValue:function D5(){Uv.makeCurrent(),zv.init()},multi:!0},{provide:it,useFactory:function I5(){return function mP(n){Qp=n}(document),document},deps:[]}]),R5=[[],{provide:Dc,useValue:"root"},{provide:Xr,useFactory:function T5(){return new Xr},deps:[]},{provide:uu,useClass:g5,multi:!0,deps:[it,nt,Gi]},{provide:uu,useClass:x5,multi:!0,deps:[it]},[],{provide:Zh,useClass:Zh,deps:[Yh,du,Wc]},{provide:Bs,useExisting:Zh},{provide:kA,useExisting:du},{provide:du,useClass:du,deps:[it]},{provide:Xg,useClass:Xg,deps:[nt]},{provide:Yh,useClass:Yh,deps:[uu,nt]},{provide:TA,useClass:XH,deps:[]},[]];let HA=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:Wc,useValue:e.appId},{provide:IA,useExisting:Wc},ZH]}}}return n.\u0275fac=function(e){return new(e||n)(ae(n,12))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:R5,imports:[Si,P3]}),n})();"undefined"!=typeof window&&window;class zA{}const Fo="*";function Ur(n,t){return{type:7,name:n,definitions:t,options:{}}}function di(n,t=null){return{type:4,styles:t,timings:n}}function GA(n,t=null){return{type:2,steps:n,options:t}}function jt(n){return{type:6,styles:n,offset:null}}function Jn(n,t,e){return{type:0,name:n,styles:t,options:e}}function z5(n){return{type:5,steps:n}}function ni(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function G5(n=null){return{type:9,options:n}}function q5(n,t,e=null){return{type:11,selector:n,animation:t,options:e}}function qA(n){Promise.resolve(null).then(n)}class bl{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){qA(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class WA{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?qA(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function $A(){return"undefined"!=typeof window&&void 0!==window.document}function Xv(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ds(n){switch(n.length){case 0:return new bl;case 1:return n[0];default:return new WA(n)}}function QA(n,t,e,i,r={},o={}){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,m=h&&c||{};Object.keys(u).forEach(I=>{let $=I,z=u[I];if("offset"!==I)switch($=t.normalizePropertyName($,s),z){case"!":z=r[I];break;case Fo:z=o[I];break;default:z=t.normalizeStyleValue(I,$,z,s)}m[$]=z}),h||a.push(m),c=m,l=d}),s.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${s.join(u)}`)}return a}function Jv(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&e_(e,"start",n)));break;case"done":n.onDone(()=>i(e&&e_(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&e_(e,"destroy",n)))}}function e_(n,t,e){const i=e.totalTime,o=t_(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,null==i?n.totalTime:i,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function t_(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function qi(n,t,e){let i;return n instanceof Map?(i=n.get(t),i||n.set(t,i=e)):(i=n[t],i||(i=n[t]=e)),i}function YA(n){const t=n.indexOf(":");return[n.substring(1,t),n.substr(t+1)]}let n_=(n,t)=>!1,i_=(n,t)=>!1,KA=(n,t,e)=>[];const ZA=Xv();(ZA||"undefined"!=typeof Element)&&(n_=$A()?(n,t)=>{for(;t&&t!==document.documentElement;){if(t===n)return!0;t=t.parentNode||t.host}return!1}:(n,t)=>n.contains(t),i_=(()=>{if(ZA||Element.prototype.matches)return(n,t)=>n.matches(t);{const n=Element.prototype,t=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return t?(e,i)=>t.apply(e,[i]):i_}})(),KA=(n,t,e)=>{let i=[];if(e){const r=n.querySelectorAll(t);for(let o=0;o<r.length;o++)i.push(r[o])}else{const r=n.querySelector(t);r&&i.push(r)}return i});let Ws=null,XA=!1;function r_(n){Ws||(Ws=function $5(){return"undefined"!=typeof document?document.body:null}()||{},XA=!!Ws.style&&"WebkitAppearance"in Ws.style);let t=!0;return Ws.style&&!function W5(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ws.style,!t&&XA&&(t="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ws.style)),t}const o_=i_,s_=n_,a_=KA;function JA(n){const t={};return Object.keys(n).forEach(e=>{const i=e.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=n[e]}),t}let eM=(()=>{class n{validateStyleProperty(e){return r_(e)}matchesElement(e,i){return o_(e,i)}containsElement(e,i){return s_(e,i)}query(e,i,r){return a_(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new bl(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),l_=(()=>{class n{}return n.NOOP=new eM,n})();const c_="ng-enter",Xh="ng-leave",Jh="ng-trigger",ef=".ng-trigger",nM="ng-animating",u_=".ng-animating";function $s(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:d_(parseFloat(t[1]),t[2])}function d_(n,t){return"s"===t?1e3*n:n}function tf(n,t,e){return n.hasOwnProperty("duration")?n:function K5(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=d_(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=d_(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),a=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&t.splice(l,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:o,easing:s}}(n,t,e)}function Cl(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function hs(n,t,e={}){if(t)for(let i in n)e[i]=n[i];else Cl(n,e);return e}function rM(n,t,e){return e?t+":"+e+";":""}function oM(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=rM(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=rM(0,J5(e),n.style[e]));n.setAttribute("style",t)}function ao(n,t,e){n.style&&(Object.keys(t).forEach(i=>{const r=f_(i);e&&!e.hasOwnProperty(i)&&(e[i]=n.style[r]),n.style[r]=t[i]}),Xv()&&oM(n))}function Qs(n,t){n.style&&(Object.keys(t).forEach(e=>{const i=f_(e);n.style[i]=""}),Xv()&&oM(n))}function hu(n){return Array.isArray(n)?1==n.length?n[0]:GA(n):n}const h_=new RegExp("{{\\s*(.+?)\\s*}}","g");function sM(n){let t=[];if("string"==typeof n){let e;for(;e=h_.exec(n);)t.push(e[1]);h_.lastIndex=0}return t}function nf(n,t,e){const i=n.toString(),r=i.replace(h_,(o,s)=>{let a=t[s];return t.hasOwnProperty(s)||(e.push(`Please provide a value for the animation param ${s}`),a=""),a.toString()});return r==i?n:r}function rf(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const X5=/-+([a-z0-9])/g;function f_(n){return n.replace(X5,(...t)=>t[1].toUpperCase())}function J5(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function aM(n,t){return 0===n||0===t}function lM(n,t,e){const i=Object.keys(e);if(i.length&&t.length){let o=t[0],s=[];if(i.forEach(a=>{o.hasOwnProperty(a)||s.push(a),o[a]=e[a]}),s.length)for(var r=1;r<t.length;r++){let a=t[r];s.forEach(function(l){a[l]=p_(n,l)})}}return t}function Wi(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function p_(n,t){return window.getComputedStyle(n)[t]}function e8(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function t8(n,t,e){if(":"==n[0]){const l=function n8(n,t){switch(n){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 t.push(`The transition alias value "${n}" is not supported`),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(`The provided transition expression "${n}" is not supported`),t;const r=i[1],o=i[2],s=i[3];t.push(cM(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(cM(s,r))}(i,e,t)):e.push(n),e}const af=new Set(["true","1"]),lf=new Set(["false","0"]);function cM(n,t){const e=af.has(n)||lf.has(n),i=af.has(t)||lf.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?af.has(n):lf.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?af.has(t):lf.has(t)),s&&a}}const i8=new RegExp("s*:selfs*,?","g");function m_(n,t,e){return new r8(n).build(t,e)}class r8{constructor(t){this._driver=t}build(t,e){const i=new a8(e);return this._resetContextStyleTimingState(i),Wi(this,hu(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};if(i.styles.forEach(a=>{if(cf(a)){const l=a;Object.keys(l).forEach(c=>{sM(l[c]).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}}),o.size){const a=rf(o.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Wi(this,hu(t.animation),e);return{type:1,matchers:e8(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ys(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>Wi(this,i,e)),options:Ys(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=Wi(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Ys(t.options)}}visitAnimate(t,e){const i=function c8(n,t){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return g_(tf(n,t).duration,0,"");const i=n;if(i.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=g_(0,0,"");return o.dynamic=!0,o.strValue=i,o}return e=e||tf(i,t),g_(e.duration,e.delay,e.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:jt({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=jt(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(s=>{"string"==typeof s?s==Fo?i.push(s):e.errors.push(`The provided style string value ${s} is not allowed.`):i.push(s)}):i.push(t.styles);let r=!1,o=null;return i.forEach(s=>{if(cf(s)){const a=s,l=a.easing;if(l&&(o=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&Object.keys(s).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void e.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=e.collectedStyles[e.currentQuerySelector],c=l[a];let u=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${a}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${o}ms" and "${r}ms"`),u=!1),o=c.startTime),u&&(l[a]={startTime:o,endTime:r}),e.options&&function Z5(n,t,e){const i=t.params||{},r=sM(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(`Unable to resolve the local animation param ${o} in the given list of values`)})}(s[a],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(re=>{const se=this._makeStyleAst(re,e);let ve=null!=se.offset?se.offset:function l8(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(cf(e)&&e.hasOwnProperty("offset")){const i=e;t=parseFloat(i.offset),delete i.offset}});else if(cf(n)&&n.hasOwnProperty("offset")){const e=n;t=parseFloat(e.offset),delete e.offset}return t}(se.styles),Ee=0;return null!=ve&&(o++,Ee=se.offset=ve),l=l||Ee<0||Ee>1,a=a||Ee<c,c=Ee,s.push(Ee),se});l&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");const d=t.steps.length;let h=0;o>0&&o<d?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(h=1/(d-1));const m=d-1,I=e.currentTime,$=e.currentAnimateTimings,z=$.duration;return u.forEach((re,se)=>{const ve=h>0?se==m?1:h*se:s[se],Ee=ve*z;e.currentTime=I+$.delay+Ee,$.duration=Ee,this._validateStyleAst(re,e),re.offset=ve,i.styles.push(re)}),i}visitReference(t,e){return{type:8,animation:Wi(this,hu(t.animation),e),options:Ys(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Ys(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ys(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function o8(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(i8,"")),n=n.replace(/@\*/g,ef).replace(/@\w+/g,e=>ef+"-"+e.substr(1)).replace(/:animating/g,u_),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,qi(e.collectedStyles,e.currentQuerySelector,{});const a=Wi(this,hu(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ys(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:tf(t.timings,e.errors,!0);return{type:12,animation:Wi(this,hu(t.animation),e),timings:i,options:null}}}class a8{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function cf(n){return!Array.isArray(n)&&"object"==typeof n}function Ys(n){return n?(n=Cl(n)).params&&(n.params=function s8(n){return n?Cl(n):null}(n.params)):n={},n}function g_(n,t,e){return{duration:n,delay:t,easing:e}}function v_(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class uf{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const h8=new RegExp(":enter","g"),p8=new RegExp(":leave","g");function __(n,t,e,i,r,o={},s={},a,l,c=[]){return(new m8).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class m8{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new uf;const d=new y_(t,e,c,r,o,u,[]);d.options=l,d.currentTimeline.setStyles([s],null,d.errors,l),Wi(this,i,d);const h=d.timelines.filter(m=>m.containsAnimation());if(h.length&&Object.keys(a).length){const m=h[h.length-1];m.allowOnlyTimelineStyles()||m.setStyles([a],null,d.errors,l)}return h.length?h.map(m=>m.buildKeyframes()):[v_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?$s(i.duration):null,a=null!=i.delay?$s(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),Wi(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=df);const s=$s(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>Wi(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?$s(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),Wi(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return tf(e.params?nf(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?$s(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=df);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),Wi(this,t.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=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Wi(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const df={};class y_{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=df,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new hf(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=$s(i.duration)),null!=i.delay&&(r.delay=$s(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=nf(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new y_(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=df,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},o=new g8(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(h8,"."+this._enterClassName)).replace(p8,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class hf{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(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.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new hf(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fo,this._currentKeyframe[e]=Fo}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function v8(n,t){const e={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(t),i.forEach(o=>{e[o]=Fo})):hs(r,!1,e)}),e}(t,this._globalTimelineStyles);Object.keys(s).forEach(a=>{const l=nf(s[a],o,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Fo),this._updateStyle(a,l)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(i=>{this._currentKeyframe[i]=t[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],r=t._styleSummary[e];(!i||r.time>i.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=hs(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?t.add(u):d==Fo&&e.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const o=t.size?rf(t.values()):[],s=e.size?rf(e.values()):[];if(i){const a=r[0],l=Cl(a);a.offset=0,l.offset=1,r=[a,l]}return v_(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class g8 extends hf{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=hs(t[0],!1);l.offset=0,o.push(l);const c=hs(t[0],!1);c.offset=hM(a),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=hs(t[d],!1);h.offset=hM((e+h.offset*i)/s),o.push(h)}i=s,e=0,r="",t=o}return v_(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function hM(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class b_{}class _8 extends b_{normalizePropertyName(t,e){return f_(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(y8[e]&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(`Please provide a CSS unit value for ${t}:${i}`)}return s+o}}const y8=(()=>function b8(n){const t={};return n.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function fM(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const C_={};class pM{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function C8(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){const r=this._stateStyles["*"],o=this._stateStyles[t],s=r?r.buildStyles(e,i):{};return o?o.buildStyles(e,i):s}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||C_,I=this.buildStyles(i,a&&a.params||C_,d),$=l&&l.params||C_,z=this.buildStyles(r,$,d),re=new Set,se=new Map,ve=new Map,Ee="void"===r,Pe={params:Object.assign(Object.assign({},h),$)},Qe=u?[]:__(t,e,this.ast.animation,o,s,I,z,Pe,c,d);let ct=0;if(Qe.forEach(We=>{ct=Math.max(We.duration+We.delay,ct)}),d.length)return fM(e,this._triggerName,i,r,Ee,I,z,[],[],se,ve,ct,d);Qe.forEach(We=>{const on=We.element,Xi=qi(se,on,{});We.preStyleProps.forEach(Mi=>Xi[Mi]=!0);const Ji=qi(ve,on,{});We.postStyleProps.forEach(Mi=>Ji[Mi]=!0),on!==e&&re.add(on)});const en=rf(re.values());return fM(e,this._triggerName,i,r,Ee,I,z,Qe,en,se,ve,ct)}}class w8{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i={},r=Cl(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!=s&&(r[o]=s)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const s=o;Object.keys(s).forEach(a=>{let l=s[a];l.length>1&&(l=nf(l,r,e));const c=this.normalizer.normalizePropertyName(a,e);l=this.normalizer.normalizeStyleValue(a,c,l,e),i[c]=l})}}),i}}class S8{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new w8(r.style,r.options&&r.options.params||{},i)}),mM(this.states,"true","1"),mM(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new pM(t,r,this.states))}),this.fallbackTransition=function x8(n,t,e){return new pM(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function mM(n,t,e){n.hasOwnProperty(t)?n.hasOwnProperty(e)||(n[e]=n[t]):n.hasOwnProperty(e)&&(n[t]=n[e])}const A8=new uf;class M8{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],r=m_(this._driver,e,i);if(i.length)throw new Error(`Unable to build the animation due to the following errors: ${i.join("\n")}`);this._animations[t]=r}_buildPlayer(t,e,i){const r=t.element,o=QA(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations[t];let s;const a=new Map;if(o?(s=__(this._driver,e,o,c_,Xh,{},{},i,A8,r),s.forEach(u=>{const d=qi(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Fo)})});const c=ds(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,i,r){const o=t_(e,"","","");return Jv(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const gM="ng-animate-queued",vM="ng-animate-disabled",_M=".ng-animate-disabled",O8=[],yM={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},k8={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},hr="__ng_removed";class w_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function N8(n){return null!=n?n:null}(i?t.value:t),i){const o=Cl(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const fu="void",E_=new w_(fu);class P8{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,fr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function L8(n){return"start"==n||"done"==n}(i))throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);const o=qi(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=qi(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(fr(t,Jh),fr(t,Jh+"-"+e),a[e]=E_),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new S_(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(fr(t,Jh),fr(t,Jh+"-"+e),this._engine.statesByElement.set(t,a={}));let l=a[e];const c=new w_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[e]=c,l||(l=E_),c.value!==fu&&l.value===c.value){if(!function j8(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!t.hasOwnProperty(o)||n[o]!==t[o])return!1}return!0}(l.params,c.params)){const $=[],z=o.matchStyles(l.value,l.params,$),re=o.matchStyles(c.value,c.params,$);$.length?this._engine.reportError($):this._engine.afterFlush(()=>{Qs(t,z),ao(t,re)})}return}const h=qi(this._engine.playersByElement,t,[]);h.forEach($=>{$.namespaceId==this.id&&$.triggerName==e&&$.queued&&$.destroy()});let m=o.matchTransition(l.value,c.value,t,c.params),I=!1;if(!m){if(!r)return;m=o.fallbackTransition,I=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:I}),I||(fr(t,gM),s.onStart(()=>{wl(t,gM)})),s.onDone(()=>{let $=this.players.indexOf(s);$>=0&&this.players.splice($,1);const z=this._engine.playersByElement.get(t);if(z){let re=z.indexOf(s);re>=0&&z.splice(re,1)}}),this.players.push(s),h.push(s),s}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,ef,!0);i.forEach(r=>{if(r[hr])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t);if(o){const s=[];if(Object.keys(o).forEach(a=>{if(this._triggers[a]){const l=this.trigger(t,a,fu,r);l&&s.push(l)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&ds(s).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers[s].fallbackTransition,c=i[s]||E_,u=new w_(fu),d=new S_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[hr];(!o||o===yM)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){fr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=t_(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Jv(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class R8{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new P8(t,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[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let r=!1;for(let o=i;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const r=Object.keys(i);for(let o=0;o<r.length;o++){const s=i[r[o]].namespaceId;if(s){const a=this._fetchNamespace(s);a&&e.add(a)}}}return e}trigger(t,e,i,r){if(ff(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!ff(e))return;const o=e[hr];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),fr(t,vM)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),wl(t,vM))}removeNode(t,e,i,r){if(ff(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r){this.collectedLeaveElements.push(e),e[hr]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,r,o){return ff(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,ef,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,u_,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return ds(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[hr];if(e&&e.setForRemoval){if(t[hr]=yM,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,_M)&&this.markElementAsDisabled(t,!1),this.driver.query(t,_M,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)fr(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}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?ds(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const i=new uf,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(ze=>{u.add(ze);const Je=this.driver.query(ze,".ng-animate-queued",!0);for(let ut=0;ut<Je.length;ut++)u.add(Je[ut])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),m=wM(h,this.collectedEnterElements),I=new Map;let $=0;m.forEach((ze,Je)=>{const ut=c_+$++;I.set(Je,ut),ze.forEach(yt=>fr(yt,ut))});const z=[],re=new Set,se=new Set;for(let ze=0;ze<this.collectedLeaveElements.length;ze++){const Je=this.collectedLeaveElements[ze],ut=Je[hr];ut&&ut.setForRemoval&&(z.push(Je),re.add(Je),ut.hasAnimation?this.driver.query(Je,".ng-star-inserted",!0).forEach(yt=>re.add(yt)):se.add(Je))}const ve=new Map,Ee=wM(h,Array.from(re));Ee.forEach((ze,Je)=>{const ut=Xh+$++;ve.set(Je,ut),ze.forEach(yt=>fr(yt,ut))}),t.push(()=>{m.forEach((ze,Je)=>{const ut=I.get(Je);ze.forEach(yt=>wl(yt,ut))}),Ee.forEach((ze,Je)=>{const ut=ve.get(Je);ze.forEach(yt=>wl(yt,ut))}),z.forEach(ze=>{this.processLeaveNode(ze)})});const Pe=[],Qe=[];for(let ze=this._namespaceList.length-1;ze>=0;ze--)this._namespaceList[ze].drainQueuedTransitions(e).forEach(ut=>{const yt=ut.player,Kt=ut.element;if(Pe.push(yt),this.collectedEnterElements.length){const vo=Kt[hr];if(vo&&vo.setForMove)return void yt.destroy()}const Pn=!d||!this.driver.containsElement(d,Kt),Di=ve.get(Kt),wr=I.get(Kt),mn=this._buildInstruction(ut,i,wr,Di,Pn);if(mn.errors&&mn.errors.length)Qe.push(mn);else{if(Pn)return yt.onStart(()=>Qs(Kt,mn.fromStyles)),yt.onDestroy(()=>ao(Kt,mn.toStyles)),void r.push(yt);if(ut.isFallbackTransition)return yt.onStart(()=>Qs(Kt,mn.fromStyles)),yt.onDestroy(()=>ao(Kt,mn.toStyles)),void r.push(yt);mn.timelines.forEach(vo=>vo.stretchStartingKeyframe=!0),i.append(Kt,mn.timelines),s.push({instruction:mn,player:yt,element:Kt}),mn.queriedElements.forEach(vo=>qi(a,vo,[]).push(yt)),mn.preStyleProps.forEach((vo,md)=>{const Op=Object.keys(vo);if(Op.length){let ma=l.get(md);ma||l.set(md,ma=new Set),Op.forEach(wb=>ma.add(wb))}}),mn.postStyleProps.forEach((vo,md)=>{const Op=Object.keys(vo);let ma=c.get(md);ma||c.set(md,ma=new Set),Op.forEach(wb=>ma.add(wb))})}});if(Qe.length){const ze=[];Qe.forEach(Je=>{ze.push(`@${Je.triggerName} has failed due to:\n`),Je.errors.forEach(ut=>ze.push(`- ${ut}\n`))}),Pe.forEach(Je=>Je.destroy()),this.reportError(ze)}const ct=new Map,en=new Map;s.forEach(ze=>{const Je=ze.element;i.has(Je)&&(en.set(Je,Je),this._beforeAnimationBuild(ze.player.namespaceId,ze.instruction,ct))}),r.forEach(ze=>{const Je=ze.element;this._getPreviousPlayers(Je,!1,ze.namespaceId,ze.triggerName,null).forEach(yt=>{qi(ct,Je,[]).push(yt),yt.destroy()})});const We=z.filter(ze=>SM(ze,l,c)),on=new Map;CM(on,this.driver,se,c,Fo).forEach(ze=>{SM(ze,l,c)&&We.push(ze)});const Ji=new Map;m.forEach((ze,Je)=>{CM(Ji,this.driver,new Set(ze),l,"!")}),We.forEach(ze=>{const Je=on.get(ze),ut=Ji.get(ze);on.set(ze,Object.assign(Object.assign({},Je),ut))});const Mi=[],mo=[],go={};s.forEach(ze=>{const{element:Je,player:ut,instruction:yt}=ze;if(i.has(Je)){if(u.has(Je))return ut.onDestroy(()=>ao(Je,yt.toStyles)),ut.disabled=!0,ut.overrideTotalTime(yt.totalTime),void r.push(ut);let Kt=go;if(en.size>1){let Di=Je;const wr=[];for(;Di=Di.parentNode;){const mn=en.get(Di);if(mn){Kt=mn;break}wr.push(Di)}wr.forEach(mn=>en.set(mn,Kt))}const Pn=this._buildAnimation(ut.namespaceId,yt,ct,o,Ji,on);if(ut.setRealPlayer(Pn),Kt===go)Mi.push(ut);else{const Di=this.playersByElement.get(Kt);Di&&Di.length&&(ut.parentPlayer=ds(Di)),r.push(ut)}}else Qs(Je,yt.fromStyles),ut.onDestroy(()=>ao(Je,yt.toStyles)),mo.push(ut),u.has(Je)&&r.push(ut)}),mo.forEach(ze=>{const Je=o.get(ze.element);if(Je&&Je.length){const ut=ds(Je);ze.setRealPlayer(ut)}}),r.forEach(ze=>{ze.parentPlayer?ze.syncPlayerEvents(ze.parentPlayer):ze.destroy()});for(let ze=0;ze<z.length;ze++){const Je=z[ze],ut=Je[hr];if(wl(Je,Xh),ut&&ut.hasAnimation)continue;let yt=[];if(a.size){let Pn=a.get(Je);Pn&&Pn.length&&yt.push(...Pn);let Di=this.driver.query(Je,u_,!0);for(let wr=0;wr<Di.length;wr++){let mn=a.get(Di[wr]);mn&&mn.length&&yt.push(...mn)}}const Kt=yt.filter(Pn=>!Pn.destroyed);Kt.length?B8(this,Je,Kt):this.processLeaveNode(Je)}return z.length=0,Mi.forEach(ze=>{this.players.push(ze),ze.onDone(()=>{ze.destroy();const Je=this.players.indexOf(ze);this.players.splice(Je,1)}),ze.play()}),Mi}elementContainsData(t,e){let i=!1;const r=e[hr];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==fu;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=qi(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(m=>{const I=m.getRealPlayer();I.beforeDestroy&&I.beforeDestroy(),m.destroy(),d.push(m)})}Qs(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(I=>{const $=I.element;u.add($);const z=$[hr];if(z&&z.removedBeforeQueried)return new bl(I.duration,I.delay);const re=$!==l,se=function V8(n){const t=[];return EM(n,t),t}((i.get($)||O8).map(ct=>ct.getRealPlayer())).filter(ct=>!!ct.element&&ct.element===$),ve=o.get($),Ee=s.get($),Pe=QA(0,this._normalizer,0,I.keyframes,ve,Ee),Qe=this._buildPlayer(I,Pe,se);if(I.subTimeline&&r&&d.add($),re){const ct=new S_(t,a,$);ct.setRealPlayer(Qe),c.push(ct)}return Qe});c.forEach(I=>{qi(this.playersByQueriedElement,I.element,[]).push(I),I.onDone(()=>function F8(n,t,e){let i;if(n instanceof Map){if(i=n.get(t),i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}}else if(i=n[t],i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&delete n[t]}return i}(this.playersByQueriedElement,I.element,I))}),u.forEach(I=>fr(I,nM));const m=ds(h);return m.onDestroy(()=>{u.forEach(I=>wl(I,nM)),ao(l,e.toStyles)}),d.forEach(I=>{qi(r,I,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new bl(t.duration,t.delay)}}class S_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new bl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Jv(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){qi(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function ff(n){return n&&1===n.nodeType}function bM(n,t){const e=n.style.display;return n.style.display=null!=t?t:"none",e}function CM(n,t,e,i,r){const o=[];e.forEach(l=>o.push(bM(l)));const s=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=t.computeStyle(c,d,r);(!h||0==h.length)&&(c[hr]=k8,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>bM(l,o[a++])),s}function wM(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}const pf="$$classes";function fr(n,t){if(n.classList)n.classList.add(t);else{let e=n[pf];e||(e=n[pf]={}),e[t]=!0}}function wl(n,t){if(n.classList)n.classList.remove(t);else{let e=n[pf];e&&delete e[t]}}function B8(n,t,e){ds(e).onDone(()=>n.processLeaveNode(t))}function EM(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof WA?EM(i.players,t):t.push(i)}}function SM(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(o=>r.add(o)):t.set(n,i),e.delete(n),!0}class mf{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new R8(t,e,i),this._timelineEngine=new M8(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],c=m_(this._driver,o,l);if(l.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function E8(n,t,e){return new S8(n,t,e)}(r,c,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=YA(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=YA(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function xM(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=x_(t[0]),t.length>1&&(i=x_(t[t.length-1]))):t&&(e=x_(t)),e||i?new H8(n,e,i):null}let H8=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ao(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ao(this._element,this._initialStyles),this._endStyles&&(ao(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Qs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qs(this._element,this._endStyles),this._endStyles=null),ao(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function x_(n){let t=null;const e=Object.keys(n);for(let i=0;i<e.length;i++){const r=e[i];U8(r)&&(t=t||{},t[r]=n[r])}return t}function U8(n){return"display"===n||"position"===n}const AM="animation",MM="animationend";class q8{constructor(t,e,i,r,o,s,a){this._element=t,this._name=e,this._duration=i,this._delay=r,this._easing=o,this._fillMode=s,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function W8(n,t){const e=M_(n,"").trim();let i=0;e.length&&(i=function Q8(n,t){let e=0;for(let i=0;i<n.length;i++)n.charAt(i)===t&&e++;return e}(e,",")+1,t=`${e}, ${t}`),gf(n,"",t)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),IM(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){DM(this._element,this._name,"paused")}resume(){DM(this._element,this._name,"running")}setPosition(t){const e=TM(this._element,this._name);this._position=t*this._duration,gf(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),i=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),IM(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function $8(n,t){const i=M_(n,"").split(","),r=A_(i,t);r>=0&&(i.splice(r,1),gf(n,"",i.join(",")))}(this._element,this._name))}}function DM(n,t,e){gf(n,"PlayState",e,TM(n,t))}function TM(n,t){const e=M_(n,"");return e.indexOf(",")>0?A_(e.split(","),t):A_([e],t)}function A_(n,t){for(let e=0;e<n.length;e++)if(n[e].indexOf(t)>=0)return e;return-1}function IM(n,t,e){e?n.removeEventListener(MM,t):n.addEventListener(MM,t)}function gf(n,t,e,i){const r=AM+t;if(null!=i){const o=n.style[r];if(o.length){const s=o.split(",");s[i]=e,e=s.join(",")}}n.style[r]=e}function M_(n,t){return n.style[AM+t]||""}class OM{constructor(t,e,i,r,o,s,a,l){this.element=t,this.keyframes=e,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+o,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new q8(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:p_(this.element,i))})}this.currentSnapshot=t}}class Z8 extends bl{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=JA(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class PM{constructor(){this._count=0}validateStyleProperty(t){return r_(t)}matchesElement(t,e){return o_(t,e)}containsElement(t,e){return s_(t,e)}query(t,e,i){return a_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(a=>JA(a));let r=`@keyframes ${e} {\n`,o="";i.forEach(a=>{o=" ";const l=parseFloat(a.offset);r+=`${o}${100*l}% {\n`,o+=" ",Object.keys(a).forEach(c=>{const u=a[c];switch(c){case"offset":return;case"easing":return void(u&&(r+=`${o}animation-timing-function: ${u};\n`));default:return void(r+=`${o}${c}: ${u};\n`)}}),r+=`${o}}\n`}),r+="}\n";const s=document.createElement("style");return s.textContent=r,s}animate(t,e,i,r,o,s=[],a){const l=s.filter(z=>z instanceof OM),c={};aM(i,r)&&l.forEach(z=>{let re=z.currentSnapshot;Object.keys(re).forEach(se=>c[se]=re[se])});const u=function eU(n){let t={};return n&&(Array.isArray(n)?n:[n]).forEach(i=>{Object.keys(i).forEach(r=>{"offset"==r||"easing"==r||(t[r]=i[r])})}),t}(e=lM(t,e,c));if(0==i)return new Z8(t,u);const d="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,d,e);(function J8(n){var t;const e=null===(t=n.getRootNode)||void 0===t?void 0:t.call(n);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(t).appendChild(h);const I=xM(t,e),$=new OM(t,e,d,i,r,o,u,I);return $.onDestroy(()=>function tU(n){n.parentNode.removeChild(n)}(h)),$}}class FM{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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}_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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:p_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nU{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(NM().toString()),this._cssKeyframesDriver=new PM}validateStyleProperty(t){return r_(t)}matchesElement(t,e){return o_(t,e)}containsElement(t,e){return s_(t,e)}query(t,e,i){return a_(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,r,o,s=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,r,o,s);const u={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(u.easing=o);const d={},h=s.filter(I=>I instanceof FM);aM(i,r)&&h.forEach(I=>{let $=I.currentSnapshot;Object.keys($).forEach(z=>d[z]=$[z])});const m=xM(t,e=lM(t,e=e.map(I=>hs(I,!1)),d));return new FM(t,e,u,m)}}function NM(){return $A()&&Element.prototype.animate||{}}let rU=(()=>{class n extends zA{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Oi.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?GA(e):e;return LM(this._renderer,null,i,"register",[r]),new oU(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(ae(Bs),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class oU extends class U5{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new sU(this._id,t,e||{},this._renderer)}}class sU{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return LM(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function LM(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const BM="@.disabled";let aU=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{s&&s.parentNode(o)&&s.removeChild(o.parentNode,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new VM("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new lU(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(ae(Bs),ae(mf),ae(nt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class VM{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==BM?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class lU extends VM{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==BM?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function cU(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.substr(1),s="";return"@"!=o.charAt(0)&&([o,s]=function uU(n){const t=n.indexOf(".");return[n.substring(0,t),n.substr(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let dU=(()=>{class n extends mf{constructor(e,i,r){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(ae(it),ae(l_),ae(b_))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const pr=new ke("AnimationModuleType"),jM=[{provide:zA,useClass:rU},{provide:b_,useFactory:function fU(){return new _8}},{provide:mf,useClass:dU},{provide:Bs,useFactory:function pU(n,t,e){return new aU(n,t,e)},deps:[Zh,mf,nt]}],HM=[{provide:l_,useFactory:function hU(){return function iU(){return"function"==typeof NM()}()?new nU:new PM}},{provide:pr,useValue:"BrowserAnimations"},...jM],mU=[{provide:l_,useClass:eM},{provide:pr,useValue:"NoopAnimations"},...jM];let gU=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?mU:HM}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:HM,imports:[HA]}),n})();const{isArray:vU}=Array,{getPrototypeOf:_U,prototype:yU,keys:bU}=Object;function UM(n){if(1===n.length){const t=n[0];if(vU(t))return{args:t,keys:null};if(function CU(n){return n&&"object"==typeof n&&_U(n)===yU}(t)){const e=bU(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:wU}=Array;function D_(n){return Ue(t=>function EU(n,t){return wU(t)?n(...t):n(t)}(n,t))}function zM(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function GM(...n){const t=Pb(n),{args:e,keys:i}=UM(n),r=new P(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let d=!1;Ri(e[u]).subscribe(Ge(o,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(i?zM(i,a):a),o.complete())}))}});return t?r.pipe(D_(t)):r}let qM=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(f(ar),f(Oe))},n.\u0275dir=ge({type:n}),n})(),Ks=(()=>{class n extends qM{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,features:[De]}),n})();const mr=new ke("NgValueAccessor"),xU={provide:mr,useExisting:zt(()=>El),multi:!0},MU=new ke("CompositionEventMode");let El=(()=>{class n extends qM{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function AU(){const n=so()?so().getUserAgent():"";return/android (\d+)/.test(n.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 n.\u0275fac=function(e){return new(e||n)(f(ar),f(Oe),f(MU,8))},n.\u0275dir=ge({type:n,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&&Ve("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[Lt([xU]),De]}),n})();function fs(n){return null==n||0===n.length}function $M(n){return null!=n&&"number"==typeof n.length}const hi=new ke("NgValidators"),ps=new ke("NgAsyncValidators"),DU=/^(?=.{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 QM{static min(t){return function YM(n){return t=>{if(fs(t.value)||fs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}(t)}static max(t){return function KM(n){return t=>{if(fs(t.value)||fs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function ZM(n){return fs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function XM(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function JM(n){return fs(n.value)||DU.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function eD(n){return t=>fs(t.value)||!$M(t.value)?null:t.value.length<n?{minlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static maxLength(t){return tD(t)}static pattern(t){return function nD(n){if(!n)return No;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(fs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return lD(t)}static composeAsync(t){return cD(t)}}function tD(n){return t=>$M(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function No(n){return null}function iD(n){return null!=n}function rD(n){const t=Pc(n)?Qn(n):n;return ah(t),t}function oD(n){let t={};return n.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function sD(n,t){return t.map(e=>e(n))}function aD(n){return n.map(t=>function TU(n){return!n.validate}(t)?t:e=>t.validate(e))}function lD(n){if(!n)return null;const t=n.filter(iD);return 0==t.length?null:function(e){return oD(sD(e,t))}}function T_(n){return null!=n?lD(aD(n)):null}function cD(n){if(!n)return null;const t=n.filter(iD);return 0==t.length?null:function(e){return GM(sD(e,t).map(rD)).pipe(Ue(oD))}}function I_(n){return null!=n?cD(aD(n)):null}function uD(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function dD(n){return n._rawValidators}function hD(n){return n._rawAsyncValidators}function O_(n){return n?Array.isArray(n)?n:[n]:[]}function _f(n,t){return Array.isArray(n)?n.includes(t):n===t}function fD(n,t){const e=O_(t);return O_(n).forEach(r=>{_f(e,r)||e.push(r)}),e}function pD(n,t){return O_(t).filter(e=>!_f(n,e))}class mD{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(t){this._rawValidators=t||[],this._composedValidatorFn=T_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=I_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class lo extends mD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xi extends mD{get formDirective(){return null}get path(){return null}}let yf=(()=>{class n extends class gD{constructor(t){this._cd=t}is(t){var e,i,r;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[t])}}{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(f(lo,2))},n.\u0275dir=ge({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&pt("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[De]}),n})();function pu(n,t){R_(n,t),t.valueAccessor.writeValue(n.value),function FU(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&vD(n,t)})}(n,t),function LU(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function NU(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&vD(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function RU(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function wf(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Sf(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Ef(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function R_(n,t){const e=dD(n);null!==t.validator?n.setValidators(uD(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=hD(n);null!==t.asyncValidator?n.setAsyncValidators(uD(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();Ef(t._rawValidators,r),Ef(t._rawAsyncValidators,r)}function Sf(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=dD(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=hD(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return Ef(t._rawValidators,i),Ef(t._rawAsyncValidators,i),e}function vD(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function _D(n,t){R_(n,t)}function yD(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function xf(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const mu="VALID",Af="INVALID",Sl="PENDING",gu="DISABLED";function L_(n){return(V_(n)?n.validators:n)||null}function bD(n){return Array.isArray(n)?T_(n):n||null}function B_(n,t){return(V_(t)?t.asyncValidators:n)||null}function CD(n){return Array.isArray(n)?I_(n):n||null}function V_(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class j_{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=bD(this._rawValidators),this._composedAsyncValidatorFn=CD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===mu}get invalid(){return this.status===Af}get pending(){return this.status==Sl}get disabled(){return this.status===gu}get enabled(){return this.status!==gu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=bD(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=CD(t)}addValidators(t){this.setValidators(fD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(fD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(pD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(pD(t,this._rawAsyncValidators))}hasValidator(t){return _f(this._rawValidators,t)}hasAsyncValidator(t){return _f(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Sl,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=gu,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=mu,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mu||this.status===Sl)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?gu:mu}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Sl,this._hasOwnPendingAsyncValidator=!0;const e=rD(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function HU(n,t,e){if(null==t||(Array.isArray(t)||(t=t.split(e)),Array.isArray(t)&&0===t.length))return null;let i=n;return t.forEach(r=>{i=i instanceof H_?i.controls.hasOwnProperty(r)?i.controls[r]:null:i instanceof UU&&i.at(r)||null}),i}(this,t,".")}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ne,this.statusChanges=new Ne}_calculateStatus(){return this._allControlsDisabled()?gu:this.errors?Af:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sl)?Sl:this._anyControlsHaveStatus(Af)?Af:mu}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){V_(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Mf extends j_{constructor(t=null,e,i){super(L_(e),B_(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xf(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xf(this._onDisabledChange,t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class H_ extends j_{constructor(t,e,i){super(L_(e),B_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof Mf?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class UU extends j_{constructor(t,e,i){super(L_(e),B_(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((i,r)=>{this._throwIfControlMissing(r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Mf?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const zU={provide:xi,useExisting:zt(()=>_u)},vu=(()=>Promise.resolve(null))();let _u=(()=>{class n extends xi{constructor(e,i){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Ne,this.form=new H_({},T_(e),I_(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){vu.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),pu(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){vu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),xf(this._directives,e)})}addFormGroup(e){vu.then(()=>{const i=this._findContainer(e.path),r=new H_({});_D(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){vu.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){vu.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,yD(this.form,this._directives),this.ngSubmit.emit(e),!1}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 n.\u0275fac=function(e){return new(e||n)(f(hi,10),f(ps,10))},n.\u0275dir=ge({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&Ve("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lt([zU]),De]}),n})();const qU={provide:lo,useExisting:zt(()=>yu)},SD=(()=>Promise.resolve(null))();let yu=(()=>{class n extends lo{constructor(e,i,r,o){super(),this.control=new Mf,this._registered=!1,this.update=new Ne,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function N_(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===El?e=o:function jU(n){return Object.getPrototypeOf(n.constructor)===Ks}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function F_(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function Cf(n,t){return[...t.path,n]}(this.name,this._parent):[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(){pu(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){SD.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=""===i||i&&"false"!==i;SD.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable()})}}return n.\u0275fac=function(e){return new(e||n)(f(xi,9),f(hi,10),f(ps,10),f(mr,10))},n.\u0275dir=ge({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Lt([qU]),De,vn]}),n})(),AD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})();const U_=new ke("NgModelWithFormControlWarning"),XU={provide:xi,useExisting:zt(()=>bu)};let bu=(()=>{class n extends xi{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Ne,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&&(Sf(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 pu(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){wf(e.control||null,e,!1),xf(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){return this.submitted=!0,yD(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(wf(i||null,e),r instanceof Mf&&(pu(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);_D(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function BU(n,t){return Sf(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){R_(this.form,this),this._oldForm&&Sf(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(f(hi,10),f(ps,10))},n.\u0275dir=ge({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Ve("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Lt([XU]),De,vn]}),n})();const m6={provide:hi,useExisting:zt(()=>Cu),multi:!0};let Cu=(()=>{class n{constructor(){this._validator=No}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this.enabled()?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=this.enabled()?tD(function RD(n){return"number"==typeof n?n:parseInt(n,10)}(this.maxlength)):No}enabled(){return null!=this.maxlength}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,i){2&e&&Mt("maxlength",i.enabled()?i.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Lt([m6]),vn]}),n})(),zD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[AD]]}),n})(),v6=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[zD]}),n})(),_6=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:U_,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[zD]}),n})();const y6=new ke("cdk-dir-doc",{providedIn:"root",factory:function b6(){return mc(it)}});let $i=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new Ne,e){const r=e.documentElement?e.documentElement.dir:null,o=(e.body?e.body.dir:null)||r;this.value="ltr"===o||"rtl"===o?o:"ltr"}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(ae(y6,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})();const GD=new ro("13.0.0");let Q_;try{Q_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Q_=!1}let Al,Bn=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?qs(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&&!Q_)&&"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 n.\u0275fac=function(e){return new(e||n)(ae(Gi))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})();const qD=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function WD(){if(Al)return Al;if("object"!=typeof document||!document)return Al=new Set(qD),Al;let n=document.createElement("input");return Al=new Set(qD.filter(t=>(n.setAttribute("type",t),n.type===t))),Al}let Eu,Df,Xs,Y_,zr;function Zs(n){return function C6(){if(null==Eu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Eu=!0}))}finally{Eu=Eu||!1}return Eu}()?n:!!n.capture}function $D(){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 n=Element.prototype.scrollTo;Xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Xs}function Su(){if("object"!=typeof document||!document)return 0;if(null==Df){const n=document.createElement("div"),t=n.style;n.dir="rtl",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",n.appendChild(e),document.body.appendChild(n),Df=0,0===n.scrollLeft&&(n.scrollLeft=1,Df=0===n.scrollLeft?1:2),n.remove()}return Df}function QD(n){if(function w6(){if(null==Y_){const n="undefined"!=typeof document?document.head:null;Y_=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Y_}()){const t=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function K_(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const t=n.shadowRoot.activeElement;if(t===n)break;n=t}return n}function Js(n){return n.composedPath?n.composedPath()[0]:n.target}function Z_(){return void 0!==zr.__karma__&&!!zr.__karma__||void 0!==zr.jasmine&&!!zr.jasmine||void 0!==zr.jest&&!!zr.jest||void 0!==zr.Mocha&&!!zr.Mocha}zr="undefined"!=typeof global?global:"undefined"!=typeof window?window:{};class Dt extends be{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}function rt(...n){return Qn(n,ec(n))}function gr(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function ei(n,t,e){const i=E(n)||t||e?{next:n,error:t,complete:e}:n;return i?Le((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Ge(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):j}class R6 extends S{constructor(t,e){super()}schedule(t,e=0){return this}}const Tf={setInterval(...n){const{delegate:t}=Tf;return((null==t?void 0:t.setInterval)||setInterval)(...n)},clearInterval(n){const{delegate:t}=Tf;return((null==t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0};class J_ extends R6{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return Tf.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;Tf.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,y(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}}const ey={now:()=>(ey.delegate||Date).now(),delegate:void 0};class Iu{constructor(t,e=Iu.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}Iu.now=ey.now;class ty extends Iu{constructor(t,e=Iu.now){super(t,e),this.actions=[],this._active=!1,this._scheduled=void 0}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const If=new ty(J_),F6=If;function Of(n,t=If){return Le((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+n,u=t.now();if(u<c)return r=this.schedule(void 0,c-u),void i.add(r);a()}e.subscribe(Ge(i,c=>{o=c,s=t.now(),r||(r=t.schedule(l,n),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}function Qt(n,t){return Le((e,i)=>{let r=0;e.subscribe(Ge(i,o=>n.call(t,o,r++)&&i.next(o)))})}function Ou(n){return Qt((t,e)=>n<=e)}function ny(n,t=j){return n=null!=n?n:N6,Le((e,i)=>{let r,o=!0;e.subscribe(Ge(i,s=>{const a=t(s);(o||!n(r,a))&&(o=!1,r=a,i.next(s))}))})}function N6(n,t){return n===t}function _t(n){return Le((t,e)=>{Ri(n).subscribe(Ge(e,()=>e.complete(),Q)),!e.closed&&t.subscribe(e)})}function gt(n){return null!=n&&"false"!=`${n}`}function Qi(n,t=0){return function L6(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):t}function kf(n){return Array.isArray(n)?n:[n]}function Vn(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Lo(n){return n instanceof Oe?n.nativeElement:n}let ZD=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),B6=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=Lo(e);return new P(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new be,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(ae(ZD))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),V6=(()=>{class n{constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new Ne,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=gt(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=Qi(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(Of(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(f(B6),f(Oe),f(nt))},n.\u0275dir=ge({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),XD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[ZD]}),n})();function Pf(n,t){return(n.getAttribute(t)||"").match(/\S+/g)||[]}const eT="cdk-describedby-message-container",tT="cdk-describedby-message",Rf="cdk-describedby-host";let U6=0;const co=new Map;let Yi=null,nT=(()=>{class n{constructor(e){this._document=e}describe(e,i,r){if(!this._canBeDescribed(e,i))return;const o=iy(i,r);"string"!=typeof i?(iT(i),co.set(o,{messageElement:i,referenceCount:0})):co.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;const o=iy(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),"string"==typeof i){const s=co.get(o);s&&0===s.referenceCount&&this._deleteMessageElement(o)}Yi&&0===Yi.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Rf}]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Rf);Yi&&this._deleteMessagesContainer(),co.clear()}_createMessageElement(e,i){const r=this._document.createElement("div");iT(r),r.textContent=e,i&&r.setAttribute("role",i),this._createMessagesContainer(),Yi.appendChild(r),co.set(iy(e,i),{messageElement:r,referenceCount:0})}_deleteMessageElement(e){var i;const r=co.get(e);null===(i=null==r?void 0:r.messageElement)||void 0===i||i.remove(),co.delete(e)}_createMessagesContainer(){if(!Yi){const e=this._document.getElementById(eT);null==e||e.remove(),Yi=this._document.createElement("div"),Yi.id=eT,Yi.style.visibility="hidden",Yi.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Yi)}}_deleteMessagesContainer(){Yi&&(Yi.remove(),Yi=null)}_removeCdkDescribedByReferenceIds(e){const i=Pf(e,"aria-describedby").filter(r=>0!=r.indexOf(tT));e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){const r=co.get(i);(function j6(n,t,e){const i=Pf(n,t);i.some(r=>r.trim()==e.trim())||(i.push(e.trim()),n.setAttribute(t,i.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Rf,""),r.referenceCount++}_removeMessageReference(e,i){const r=co.get(i);r.referenceCount--,function H6(n,t,e){const r=Pf(n,t).filter(o=>o!=e.trim());r.length?n.setAttribute(t,r.join(" ")):n.removeAttribute(t)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Rf)}_isElementDescribedByMessage(e,i){const r=Pf(e,"aria-describedby"),o=co.get(i),s=o&&o.messageElement.id;return!!s&&-1!=r.indexOf(s)}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&"object"==typeof i)return!0;const r=null==i?"":`${i}`.trim(),o=e.getAttribute("aria-label");return!(!r||o&&o.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function iy(n,t){return"string"==typeof n?`${t||""}/${n}`:n}function iT(n){n.id||(n.id=`${tT}-${U6++}`)}class rT{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new be,this._typeaheadSubscription=S.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new be,this.change=new be,t instanceof rs&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ei(e=>this._pressedLetters.push(e)),Of(t),Qt(()=>this._pressedLetters.length>0),Ue(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const o=(this._activeItemIndex+r)%i.length,s=i[o];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||gr(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),r=e[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof rs?this._items.toArray():this._items}}class z6 extends rT{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class oT extends rT{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let ry=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function q6(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function G6(n){try{return n.frameElement}catch(t){return null}}(function J6(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(i&&(-1===aT(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=aT(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function Z6(n){let t=n.nodeName.toLowerCase(),e="input"===t&&n.type;return"text"===e||"password"===e||"select"===t||"textarea"===t}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function X6(n){return!function $6(n){return function Y6(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function W6(n){let t=n.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(n)||function Q6(n){return function K6(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||sT(n))}(e)&&!this.isDisabled(e)&&((null==i?void 0:i.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(ae(Bn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function sT(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let t=n.getAttribute("tabindex");return!(!t||isNaN(parseInt(t,10)))}function aT(n){if(!sT(n))return null;const t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class ez{constructor(t,e,i,r,o=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.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(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let i=0;i<e.length;i++)e[i].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]):e[i].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[i]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return null==i||i.focus(t),!!i}return e.focus(t),!0}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){const e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){const e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=0;i<e.length;i++){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;const e=t.children;for(let i=e.length-1;i>=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(hn(1)).subscribe(t)}}let lT=(()=>{class n{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new ez(e,this._checker,this._ngZone,this._document,i)}}return n.\u0275fac=function(e){return new(e||n)(ae(ry),ae(nt),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oy(n){return 0===n.offsetX&&0===n.offsetY}function sy(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}const tz=new ke("cdk-input-modality-detector-options"),nz={ignoreKeys:[18,17,224,91,16]},Tl=Zs({passive:!0,capture:!0});let iz=(()=>{class n{constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new Dt(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?void 0: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(oy(s)?"keyboard":"mouse"),this._mostRecentTarget=Js(s))},this._onTouchstart=s=>{sy(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Js(s))},this._options=Object.assign(Object.assign({},nz),o),this.modalityDetected=this._modality.pipe(Ou(1)),this.modalityChanged=this.modalityDetected.pipe(ny()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Tl),r.addEventListener("mousedown",this._onMousedown,Tl),r.addEventListener("touchstart",this._onTouchstart,Tl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Tl),document.removeEventListener("mousedown",this._onMousedown,Tl),document.removeEventListener("touchstart",this._onTouchstart,Tl))}}return n.\u0275fac=function(e){return new(e||n)(ae(Bn),ae(nt),ae(it),ae(tz,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rz=new ke("liveAnnouncerElement",{providedIn:"root",factory:function oz(){return null}}),sz=new ke("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let uT=(()=>{class n{constructor(e,i,r,o){this._ngZone=i,this._defaultOptions=o,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...i){const r=this._defaultOptions;let o,s;return 1===i.length&&"number"==typeof i[0]?s=i[0]:[o,s]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),null==s&&r&&(s=r.duration),this._liveElement.setAttribute("aria-live",o),this._ngZone.runOutsideAngular(()=>new Promise(a=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,a(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o<i.length;o++)i[o].remove();return r.classList.add(e),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),this._document.body.appendChild(r),r}}return n.\u0275fac=function(e){return new(e||n)(ae(rz,8),ae(nt),ae(it),ae(sz,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const az=new ke("cdk-focus-monitor-default-options"),Ff=Zs({passive:!0,capture:!0});let ms=(()=>{class n{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new be,this._rootNodeFocusAndBlurListener=a=>{const l=Js(a),c="focus"===a.type?this._onFocus:this._onBlur;for(let u=l;u;u=u.parentElement)c.call(this,a,u)},this._document=o,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(e,i=!1){const r=Lo(e);if(!this._platform.isBrowser||1!==r.nodeType)return rt(null);const o=QD(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new be,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=Lo(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=Lo(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,l])=>this._originChanged(a,i,l)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Js(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r.subject,null))}_emitOrigin(e,i){this._ngZone.run(()=>e.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ff),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ff)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(_t(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ff),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ff),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r.subject,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}}return n.\u0275fac=function(e){return new(e||n)(ae(nt),ae(Bn),ae(iz),ae(it,8),ae(az,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dT="cdk-high-contrast-black-on-white",hT="cdk-high-contrast-white-on-black",ay="cdk-high-contrast-active";let fT=(()=>{class n{constructor(e,i){this._platform=e,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(ay),e.remove(dT),e.remove(hT),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(e.add(ay),e.add(dT)):2===i&&(e.add(ay),e.add(hT))}}}return n.\u0275fac=function(e){return new(e||n)(ae(Bn),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pT=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(ae(fT))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wu,XD]]}),n})();function ku(...n){return function lz(){return Jl(1)}()(Qn(n,ec(n)))}function Ai(...n){const t=ec(n);return Le((e,i)=>{(t?ku(n,e,t):ku(n,e)).subscribe(i)})}function cz(n,t){if(1&n&&ot(0,"mat-pseudo-checkbox",4),2&n){const e=ye();oe("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function uz(n,t){if(1&n&&(X(0,"span",5),Fe(1),J()),2&n){const e=ye();de(1),Fs("(",e.group.label,")")}}const dz=["*"],mT=new ro("13.0.0"),fz=new ke("mat-sanity-checks",{providedIn:"root",factory:function hz(){return!0}});let wt=(()=>{class n{constructor(e,i,r){this._hasDoneGlobalChecks=!1,this._document=r,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=i,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!(!ev()||Z_())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const i=getComputedStyle(e);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.remove()}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&mT.full!==GD.full&&console.warn("The Angular Material version ("+mT.full+") does not match the Angular CDK version ("+GD.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(e){return new(e||n)(ae(fT),ae(fz,8),ae(it))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[xl],xl]}),n})();function Il(n){return class extends n{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=gt(t)}}}function Ol(n,t){return class extends n{constructor(...e){super(...e),this.defaultColor=t,this.color=t}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 ea(n){return class extends n{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=gt(t)}}}function gT(n,t=0){return class extends n{constructor(...e){super(...e),this._tabIndex=t,this.defaultTabIndex=t}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?Qi(e):this.defaultTabIndex}}}function vT(n){return class extends n{constructor(...t){super(...t),this.stateChanges=new be,this.errorState=!1}updateErrorState(){const t=this.errorState,o=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);o!==t&&(this.errorState=o,this.stateChanges.next())}}}let ly=(()=>{class n{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Pu(n,t,e){n.nativeElement.classList.toggle(t,e)}let Nf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt],wt]}),n})();class mz{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const yT={enterDuration:225,exitDuration:150},uy=Zs({passive:!0}),bT=["mousedown","touchstart"],CT=["mouseup","mouseleave","touchend","touchcancel"];class vz{constructor(t,e,i,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Lo(i))}fadeInRipple(t,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},yT),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function yz(n,t,e){const i=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),a=t-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function _z(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new mz(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,r=Object.assign(Object.assign({},yT),t.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Lo(t);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(bT))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(CT),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=oy(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!sy(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.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._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(e=>{this._triggerElement.addEventListener(e,this,uy)})})}_removeTriggerEvents(){this._triggerElement&&(bT.forEach(t=>{this._triggerElement.removeEventListener(t,this,uy)}),this._pointerUpEventsRegistered&&CT.forEach(t=>{this._triggerElement.removeEventListener(t,this,uy)}))}}const bz=new ke("mat-ripple-global-options");let kl=(()=>{class n{constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new vz(this,i,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(nt),f(Bn),f(bz,8),f(pr,8))},n.\u0275dir=ge({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,i){2&e&&pt("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"]}),n})(),Lf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt,wu],wt]}),n})(),wT=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(f(pr,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,i){2&e&&pt("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:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),dy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt]]}),n})();const ET=new ke("MAT_OPTION_PARENT_COMPONENT"),ST=new ke("MatOptgroup");let Cz=0;class wz{constructor(t,e=!1){this.source=t,this.isUserInput=e}}let Ez=(()=>{class n{constructor(e,i,r,o){this._element=e,this._changeDetectorRef=i,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Cz++,this.onSelectionChange=new Ne,this._stateChanges=new be}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=gt(e)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!gr(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 wz(this,e))}}return n.\u0275fac=function(e){Ja()},n.\u0275dir=ge({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),xT=(()=>{class n extends Ez{constructor(e,i,r,o){super(e,i,r,o)}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(an),f(ET,8),f(ST,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,i){1&e&&Ve("click",function(){return i._selectViaInteraction()})("keydown",function(o){return i._handleKeydown(o)}),2&e&&(Ns("id",i.id),Mt("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),pt("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[De],ngContentSelectors:dz,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,i){1&e&&(zn(),fe(0,cz,1,2,"mat-pseudo-checkbox",0),X(1,"span",1),Rt(2),J(),fe(3,uz,2,1,"span",2),ot(4,"div",3)),2&e&&(oe("ngIf",i.multiple),de(3),oe("ngIf",i.group&&i.group._inert),de(1),oe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[Wn,kl,wT],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function AT(n,t,e){if(e.length){let i=t.toArray(),r=e.toArray(),o=0;for(let s=0;s<n+1;s++)i[s].group&&i[s].group===r[o]&&o++;return o}return 0}let hy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Lf,Si,wt,dy]]}),n})(),xz=0;const Az=Il(class{}),MT="mat-badge-content";let Mz=(()=>{class n extends Az{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._ariaDescriber=r,this._renderer=o,this._animationMode=s,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=xz++,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=gt(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=gt(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(MT),"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 > .${MT}`);for(const i of Array.from(e))i!==this._badgeElement&&i.remove()}}return n.\u0275fac=function(e){return new(e||n)(f(nt),f(Oe),f(nT),f(ar),f(pr,8))},n.\u0275dir=ge({type:n,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(e,i){2&e&&pt("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:[De]}),n})(),Dz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[pT,wt],wt]}),n})();const Tz=["mat-button",""],Iz=["*"],kz=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Pz=Ol(Il(ea(class{constructor(n){this._elementRef=n}})));let Bo=(()=>{class n extends Pz{constructor(e,i,r){super(e),this._focusMonitor=i,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const o of kz)this._hasHostAttributes(o)&&this._getHostElement().classList.add(o);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(i=>this._getHostElement().hasAttribute(i))}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(ms),f(pr,8))},n.\u0275cmp=ht({type:n,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&&Bt(kl,5),2&e){let r;Te(r=Ie())&&(i.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,i){2&e&&(Mt("disabled",i.disabled||null),pt("_mat-animation-noopable","NoopAnimations"===i._animationMode)("mat-button-disabled",i.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[De],attrs:Tz,ngContentSelectors:Iz,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&&(zn(),X(0,"span",0),Rt(1),J(),ot(2,"span",1),ot(3,"span",2)),2&e&&(de(2),pt("mat-button-ripple-round",i.isRoundButton||i.isIconButton),oe("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",i.isIconButton)("matRippleTrigger",i._getHostElement()))},directives:[kl],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),DT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Lf,wt],wt]}),n})(),Rz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt],wt]}),n})();const Fz=["addListener","removeListener"],Nz=["addEventListener","removeEventListener"],Lz=["on","off"];function Pl(n,t,e,i){if(E(e)&&(i=e,e=void 0),i)return Pl(n,t,e).pipe(D_(i));const[r,o]=function jz(n){return E(n.addEventListener)&&E(n.removeEventListener)}(n)?Nz.map(s=>a=>n[s](t,a,e)):function Bz(n){return E(n.addListener)&&E(n.removeListener)}(n)?Fz.map(TT(n,t)):function Vz(n){return E(n.on)&&E(n.off)}(n)?Lz.map(TT(n,t)):[];if(!r&&Xl(n))return Rn(s=>Pl(s,t,e))(Ri(n));if(!r)throw new TypeError("Invalid event target");return new P(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function TT(n,t){return e=>i=>n[e](t,i)}const Ru={schedule(n){let t=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Ru;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=t(o=>{e=void 0,n(o)});return new S(()=>null==e?void 0:e(r))},requestAnimationFrame(...n){const{delegate:t}=Ru;return((null==t?void 0:t.requestAnimationFrame)||requestAnimationFrame)(...n)},cancelAnimationFrame(...n){const{delegate:t}=Ru;return((null==t?void 0:t.cancelAnimationFrame)||cancelAnimationFrame)(...n)},delegate:void 0};new class Uz extends ty{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Hz extends J_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Ru.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);t.actions.some(r=>r.id===e)||(Ru.cancelAnimationFrame(e),t._scheduled=void 0)}});let fy,Gz=1;const Bf={};function IT(n){return n in Bf&&(delete Bf[n],!0)}const qz={setImmediate(n){const t=Gz++;return Bf[t]=!0,fy||(fy=Promise.resolve()),fy.then(()=>IT(t)&&n()),t},clearImmediate(n){IT(n)}},{setImmediate:Wz,clearImmediate:$z}=qz,Vf={setImmediate(...n){const{delegate:t}=Vf;return((null==t?void 0:t.setImmediate)||Wz)(...n)},clearImmediate(n){const{delegate:t}=Vf;return((null==t?void 0:t.clearImmediate)||$z)(n)},delegate:void 0},py=new class Yz extends ty{flush(t){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;t=t||i.shift();do{if(r=t.execute(t.state,t.delay))break}while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,r){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw r}}}(class Qz extends J_{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Vf.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,e,i=0){if(null!=i&&i>0||null==i&&this.delay>0)return super.recycleAsyncId(t,e,i);t.actions.some(r=>r.id===e)||(Vf.clearImmediate(e),t._scheduled=void 0)}});function OT(n=0,t,e=F6){let i=-1;return null!=t&&(kb(t)?e=t:i=t),new P(r=>{let o=function Zz(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function kT(n,t=If){return function Kz(n){return Le((t,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(null==o||o.unsubscribe(),o=null,i){i=!1;const c=r;r=null,e.next(c)}s&&e.complete()},l=()=>{o=null,s&&e.complete()};t.subscribe(Ge(e,c=>{i=!0,r=c,o||Ri(n(c)).subscribe(o=Ge(e,a,l))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>OT(n,t))}let Fu=(()=>{class n{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new be,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new P(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(kT(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):rt()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Qt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=Lo(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Pl(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(ae(nt),ae(Bn),ae(it,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jf=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new be,this._elementScrolled=new P(s=>this.ngZone.runOutsideAngular(()=>Pl(this.elementRef.nativeElement,"scroll").pipe(_t(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&0!=Su()?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),2==Su()?e.left=e.right:1==Su()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;$D()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&2==Su()?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&1==Su()?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Fu),f(nt),f($i,8))},n.\u0275dir=ge({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Hf=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new be,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(kT(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 n.\u0275fac=function(e){return new(e||n)(ae(Bn),ae(nt),ae(it,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ta=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})(),PT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[xl,wu,ta],xl,ta]}),n})();class my{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Rl extends my{constructor(t,e,i,r){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r}}class Nu extends my{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class eG extends my{constructor(t){super(),this.element=t instanceof Oe?t.nativeElement:t}}class Uf{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Rl?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Nu?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof eG?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class tG extends Uf{constructor(t,e,i,r,o){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(t){const i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let r;return t.viewContainerRef?(r=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(t.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=t,r}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=t,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let zf=(()=>{class n extends Uf{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new Ne,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);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 n.\u0275fac=function(e){return new(e||n)(f(Pr),f(Jt),f(it))},n.\u0275dir=ge({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[De]}),n})(),Gf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})();const RT=$D();class iG{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vn(-this._previousScrollPosition.left),t.style.top=Vn(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,i=t.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),RT&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),RT&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class rG{constructor(t,e,i,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class FT{enable(){}disable(){}attach(){}}function gy(n,t){return t.some(e=>n.bottom<e.top||n.top>e.bottom||n.right<e.left||n.left>e.right)}function NT(n,t){return t.some(e=>n.top<e.top||n.bottom>e.bottom||n.left<e.left||n.right>e.right)}class oG{constructor(t,e,i,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();gy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let sG=(()=>{class n{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new FT,this.close=s=>new rG(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new iG(this._viewportRuler,this._document),this.reposition=s=>new oG(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}}return n.\u0275fac=function(e){return new(e||n)(ae(Fu),ae(Hf),ae(nt),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Lu{constructor(t){if(this.scrollStrategy=new FT,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class aG{constructor(t,e,i,r,o){this.offsetX=i,this.offsetY=r,this.panelClass=o,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class lG{}let cG=(()=>{let n=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};return n=function ce(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([pe(1,Kn()),le("design:paramtypes",[aG,lG])],n),n})();class uG{constructor(t,e,i,r,o,s,a,l,c){this._portalOutlet=t,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new be,this._attachments=new be,this._detachments=new be,this._locationChanges=S.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new be,this._outsidePointerEvents=new be,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(hn(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),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 t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){var t;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===(t=this._host)||void 0===t||t.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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Vn(this._config.width),t.height=Vn(this._config.height),t.minWidth=Vn(this._config.minWidth),t.minHeight=Vn(this._config.minHeight),t.maxWidth=Vn(this._config.maxWidth),t.maxHeight=Vn(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const t=this._backdropElement;if(!t)return;let e;const i=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",i),this._disposeBackdrop(t)),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",i)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const r=kf(e||[]).filter(o=>!!o);r.length&&(i?t.classList.add(...r):t.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(_t(Fi(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()),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}_disposeBackdrop(t){t&&(t.remove(),this._backdropElement===t&&(this._backdropElement=null))}}let Bu=(()=>{class n{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||Z_()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(e),Z_()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(e){return new(e||n)(ae(it),ae(Bn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LT="cdk-overlay-connected-position-bounding-box",dG=/([A-Za-z%]+)$/;class hG{constructor(t,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new be,this._resizeSubscription=S.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(LT),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,r=[];let o;for(let s of this._preferredPositions){let a=this._getOriginPoint(t,s),l=this._getOverlayPoint(a,e,s),c=this._getOverlayFit(l,e,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,a);this._canFitWithFlexibleDimensions(c,l,i)?r.push({position:s,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,s)}):(!o||o.overlayFit.visibleArea<c.visibleArea)&&(o={overlayFit:c,overlayPoint:l,originPoint:a,position:s,overlayRect:e})}if(r.length){let s=null,a=-1;for(const l of r){const c=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);c>a&&(a=c,s=l)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&na(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(LT),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,r;if("center"==e.originX)i=t.left+t.width/2;else{const o=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?o:s}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:r}}_getOverlayPoint(t,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+r,y:t.y+o}}_getOverlayFit(t,e,i,r){const o=VT(e);let{x:s,y:a}=t,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let h=0-a,m=a+o.height-i.height,I=this._subtractOverflows(o.width,0-s,s+o.width-i.width),$=this._subtractOverflows(o.height,h,m),z=I*$;return{visibleArea:z,isCompletelyWithinViewport:o.width*o.height===z,fitsInViewportVertically:$===o.height,fitsInViewportHorizontally:I==o.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=BT(this._overlayRef.getConfig().minHeight),a=BT(this._overlayRef.getConfig().minWidth),c=t.fitsInViewportHorizontally||null!=a&&a<=o;return(t.fitsInViewportVertically||null!=s&&s<=r)&&c}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=VT(e),o=this._viewportRect,s=Math.max(t.x+r.width-o.width,0),a=Math.max(t.y+r.height-o.height,0),l=Math.max(o.top-i.top-t.y,0),c=Math.max(o.left-i.left-t.x,0);let u=0,d=0;return u=r.width<=o.width?c||-s:t.x<this._viewportMargin?o.left-i.left-t.x:0,d=r.height<=o.height?l||-a:t.y<this._viewportMargin?o.top-i.top-t.y:0,this._previousPushAmount={x:u,y:d},{x:t.x+u,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new cG(t,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=t.overlayY;i="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(t,e){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,d,h;if("top"===e.overlayY)s=t.y,o=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-t.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const m=Math.min(i.bottom-t.y+i.top,t.y),I=this._lastBoundingBoxSize.height;o=2*m,s=t.y-m,o>I&&!this._isInitialRender&&!this._growAfterOpen&&(s=t.y-I/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)h=i.width-t.x+this._viewportMargin,u=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)d=t.x,u=i.right-t.x;else{const m=Math.min(i.right-t.x+i.left,t.x),I=this._lastBoundingBoxSize.width;u=2*m,d=t.x-m,u>I&&!this._isInitialRender&&!this._growAfterOpen&&(d=t.x-I/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:o}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Vn(i.height),r.top=Vn(i.top),r.bottom=Vn(i.bottom),r.width=Vn(i.width),r.left=Vn(i.left),r.right=Vn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Vn(o)),s&&(r.maxWidth=Vn(s))}this._lastBoundingBoxSize=i,na(this._boundingBox.style,r)}_resetBoundingBoxStyles(){na(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){na(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();na(i,this._getExactOverlayY(e,t,u)),na(i,this._getExactOverlayX(e,t,u))}else i.position="static";let a="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Vn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Vn(s.maxWidth):o&&(i.maxWidth="")),na(this._pane.style,i)}_getExactOverlayY(t,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=s,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Vn(o.y),r}_getExactOverlayX(t,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Vn(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:NT(t,i),isOriginOutsideView:gy(t,i),isOverlayClipped:NT(e,i),isOverlayOutsideView:gy(e,i)}}_subtractOverflows(t,...e){return e.reduce((i,r)=>i-Math.max(r,0),t)}_getNarrowedViewportRect(){const t=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+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&kf(t).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Oe)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function na(n,t){for(let e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}function BT(n){if("number"!=typeof n&&null!=n){const[t,e]=n.split(dG);return e&&"px"!==e?null:parseFloat(t)}return n||null}function VT(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const jT="cdk-global-overlay-wrapper";class fG{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(jT),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=l?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,l?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(jT),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let pG=(()=>{class n{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new fG}flexibleConnectedTo(e){return new hG(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(ae(Hf),ae(it),ae(Bn),ae(Bu))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HT=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mG=(()=>{class n extends HT{constructor(e){super(e),this._keydownListener=i=>{const r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--)if(r[o]._keydownEvents.observers.length>0){r[o]._keydownEvents.next(i);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gG=(()=>{class n extends HT{constructor(e,i){super(e),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Js(r)},this._clickListener=r=>{const o=Js(r),s="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(o)||c.overlayElement.contains(s))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),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}}}return n.\u0275fac=function(e){return new(e||n)(ae(it),ae(Bn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),vG=0,Gr=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new Lu(e);return s.direction=s.direction||this._directionality.value,new uG(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+vG++,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(os)),new tG(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(ae(sG),ae(Bu),ae(Pr),ae(pG),ae(mG),ae(At),ae(nt),ae(it),ae($i),ae(ru),ae(gG))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const _G=[{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"}],UT=new ke("cdk-connected-overlay-scroll-strategy");let zT=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(f(Oe))},n.\u0275dir=ge({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),GT=(()=>{class n{constructor(e,i,r,o,s){this._overlay=e,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=S.EMPTY,this._attachSubscription=S.EMPTY,this._detachSubscription=S.EMPTY,this._positionSubscription=S.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Ne,this.positionChange=new Ne,this.attach=new Ne,this.detach=new Ne,this.overlayKeydown=new Ne,this.overlayOutsideClick=new Ne,this._templatePortal=new Nu(i,r),this._scrollStrategyFactory=o,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=gt(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=gt(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=gt(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=gt(e)}get push(){return this._push}set push(e){this._push=gt(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=_G);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&&!gr(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 Lu({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(i.width=this.width),(this.height||0===this.height)&&(i.height=this.height),(this.minWidth||0===this.minWidth)&&(i.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){const i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof zT?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(function nG(n,t=!1){return Le((e,i)=>{let r=0;e.subscribe(Ge(i,o=>{const s=n(o,r++);(s||t)&&i.next(o),!s&&i.complete()}))})}(()=>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 n.\u0275fac=function(e){return new(e||n)(f(Gr),f(lt),f(Jt),f(UT),f($i,8))},n.\u0275dir=ge({type:n,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:[vn]}),n})();const bG={provide:UT,deps:[Gr],useFactory:function yG(n){return()=>n.scrollStrategies.reposition()}};let Vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[Gr,bG],imports:[[xl,Gf,PT],PT]}),n})();function qf(n){return new P(t=>{Ri(n()).subscribe(t)})}function CG(n,t){}class vy{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const wG={dialogContainer:Ur("dialogContainer",[Jn("void, exit",jt({opacity:0,transform:"scale(0.7)"})),Jn("enter",jt({transform:"none"})),ni("* => enter",di("150ms cubic-bezier(0, 0, 0.2, 1)",jt({transform:"none",opacity:1}))),ni("* => void, * => exit",di("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",jt({opacity:0})))])};let EG=(()=>{class n extends Uf{constructor(e,i,r,o,s,a,l,c){super(),this._elementRef=e,this._focusTrapFactory=i,this._changeDetectorRef=r,this._config=s,this._interactivityChecker=a,this._ngZone=l,this._focusMonitor=c,this._animationStateChanged=new Ne,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=o}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const i=K_(),r=this._elementRef.nativeElement;(!i||i===this._document.body||i===r||r.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=K_())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=K_();return e===i||e.contains(i)}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(lT),f(an),f(it,8),f(vy),f(ry),f(nt),f(ms))},n.\u0275dir=ge({type:n,viewQuery:function(e,i){if(1&e&&Bt(zf,7),2&e){let r;Te(r=Ie())&&(i._portalOutlet=r.first)}},features:[De]}),n})(),SG=(()=>{class n extends EG{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:i}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:i})):"exit"===e&&(this._restoreFocus(),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()}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=ht({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,i){1&e&&Rc("@dialogContainer.start",function(o){return i._onAnimationStart(o)})("@dialogContainer.done",function(o){return i._onAnimationDone(o)}),2&e&&(Ns("id",i._id),Mt("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Nc("@dialogContainer",i._state))},features:[De],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,i){1&e&&fe(0,CG,0,0,"ng-template",0)},directives:[zf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[wG.dialogContainer]}}),n})(),xG=0;class _y{constructor(t,e,i="mat-dialog-"+xG++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new be,this._afterClosed=new be,this._beforeClosed=new be,this._state=0,e._id=i,e._animationStateChanged.pipe(Qt(r=>"opened"===r.state),hn(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Qt(r=>"closed"===r.state),hn(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Qt(r=>27===r.keyCode&&!this.disableClose&&!gr(r))).subscribe(r=>{r.preventDefault(),qT(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():qT(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Qt(e=>"closing"===e.state),hn(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function qT(n,t,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=t),n.close(e)}const WT=new ke("MatDialogData"),AG=new ke("mat-dialog-default-options"),$T=new ke("mat-dialog-scroll-strategy"),DG={provide:$T,deps:[Gr],useFactory:function MG(n){return()=>n.scrollStrategies.block()}};let TG=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._dialogRefConstructor=l,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=d,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new be,this._afterOpenedAtThisLevel=new be,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=qf(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Ai(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}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,i){if(i=function IG(n,t){return Object.assign(Object.assign({},t),n)}(i,this._defaultOptions||new vy),i.id&&this.getDialogById(i.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(i),o=this._attachDialogContainer(r,i);if("NoopAnimations"!==this._animationMode){const a=o._animationStateChanged.subscribe(l=>{"opening"===l.state&&(this._dialogAnimatingOpen=!0),"opened"===l.state&&(this._dialogAnimatingOpen=!1,a.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new S),this._animationStateSubscriptions.add(a)}const s=this._attachDialogContent(e,o,r,i);return this._lastDialogRef=s,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),o._initializeWithAttachedContent(),s}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(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const i=this._getOverlayConfig(e);return this._overlay.create(i)}_getOverlayConfig(e){const i=new Lu({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachDialogContainer(e,i){const o=At.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:vy,useValue:i}]}),s=new Rl(this._dialogContainerType,i.viewContainerRef,o,i.componentFactoryResolver);return e.attach(s).instance}_attachDialogContent(e,i,r,o){const s=new this._dialogRefConstructor(r,i,o.id);if(e instanceof lt)i.attachTemplatePortal(new Nu(e,null,{$implicit:o.data,dialogRef:s}));else{const a=this._createInjector(o,s,i),l=i.attachComponentPortal(new Rl(e,o.viewContainerRef,a));s.componentInstance=l.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s}_createInjector(e,i,r){const o=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:i}];return e.direction&&(!o||!o.get($i,null,tt.Optional))&&s.push({provide:$i,useValue:{value:e.direction,change:rt()}}),At.create({parent:o||this._injector,providers:s})}_removeOpenDialog(e){const i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,o)=>{r?o.setAttribute("aria-hidden",r):o.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}}return n.\u0275fac=function(e){Ja()},n.\u0275dir=ge({type:n}),n})(),yy=(()=>{class n extends TG{constructor(e,i,r,o,s,a,l,c){super(e,i,o,a,l,s,_y,SG,WT,c)}}return n.\u0275fac=function(e){return new(e||n)(ae(Gr),ae(At),ae(ru,8),ae(AG,8),ae($T),ae(n,12),ae(Bu),ae(pr,8))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),OG=0,kG=(()=>{class n{constructor(e,i,r){this._dialogRef=e,this._elementRef=i,this._dialog=r,this.id="mat-dialog-title-"+OG++}ngOnInit(){this._dialogRef||(this._dialogRef=function FG(n,t){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?t.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 n.\u0275fac=function(e){return new(e||n)(f(_y,8),f(Oe),f(yy))},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,i){2&e&&Ns("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),PG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),RG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),NG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[yy,DG],imports:[[Vu,Gf,wt],wt]}),n})();const LG=["connectionContainer"],BG=["inputContainer"],VG=["label"];function jG(n,t){1&n&&(_i(0),X(1,"div",14),ot(2,"div",15),ot(3,"div",16),ot(4,"div",17),J(),X(5,"div",18),ot(6,"div",15),ot(7,"div",16),ot(8,"div",17),J(),yi())}function HG(n,t){1&n&&(X(0,"div",19),Rt(1,1),J())}function UG(n,t){if(1&n&&(_i(0),Rt(1,2),X(2,"span"),Fe(3),J(),yi()),2&n){const e=ye(2);de(3),On(e._control.placeholder)}}function zG(n,t){1&n&&Rt(0,3,["*ngSwitchCase","true"])}function GG(n,t){1&n&&(X(0,"span",23),Fe(1," *"),J())}function qG(n,t){if(1&n){const e=$t();X(0,"label",20,21),Ve("cdkObserveContent",function(){return Ke(e),ye().updateOutlineGap()}),fe(2,UG,4,1,"ng-container",12),fe(3,zG,1,0,"ng-content",12),fe(4,GG,2,0,"span",22),J()}if(2&n){const e=ye();pt("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),oe("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),Mt("for",e._control.id)("aria-owns",e._control.id),de(2),oe("ngSwitchCase",!1),de(1),oe("ngSwitchCase",!0),de(1),oe("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function WG(n,t){1&n&&(X(0,"div",24),Rt(1,4),J())}function $G(n,t){if(1&n&&(X(0,"div",25),ot(1,"span",26),J()),2&n){const e=ye();de(1),pt("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function QG(n,t){1&n&&(X(0,"div"),Rt(1,5),J()),2&n&&oe("@transitionMessages",ye()._subscriptAnimationState)}function YG(n,t){if(1&n&&(X(0,"div",30),Fe(1),J()),2&n){const e=ye(2);oe("id",e._hintLabelId),de(1),On(e.hintLabel)}}function KG(n,t){if(1&n&&(X(0,"div",27),fe(1,YG,2,2,"div",28),Rt(2,6),ot(3,"div",29),Rt(4,7),J()),2&n){const e=ye();oe("@transitionMessages",e._subscriptAnimationState),de(1),oe("ngIf",e.hintLabel)}}const ZG=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],XG=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],JG=new ke("MatError"),eq={transitionMessages:Ur("transitionMessages",[Jn("enter",jt({opacity:1,transform:"translateY(0%)"})),ni("void => enter",[jt({opacity:0,transform:"translateY(-5px)"}),di("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Wf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n}),n})();const tq=new ke("MatHint");let by=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-label"]]}),n})(),nq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-placeholder"]]}),n})();const iq=new ke("MatPrefix"),rq=new ke("MatSuffix");let QT=0;const sq=Ol(class{constructor(n){this._elementRef=n}},"primary"),aq=new ke("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Cy=new ke("MatFormField");let lq=(()=>{class n extends sq{constructor(e,i,r,o,s,a,l){super(e),this._changeDetectorRef=i,this._dir=r,this._defaults=o,this._platform=s,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new be,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+QT++,this._labelId="mat-form-field-label-"+QT++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=o&&o.appearance?o.appearance:"legacy",this._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const i=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=gt(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(Ai(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(_t(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(_t(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Fi(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Ai(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Ai(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(_t(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,Pl(this._label.nativeElement,"transitionend").pipe(hn(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(o=>"start"===o.align):null,r=this._hintChildren?this._hintChildren.find(o=>"end"===o.align):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null;if(!("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser))return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let i=0,r=0;const o=this._connectionContainerRef.nativeElement,s=o.querySelectorAll(".mat-form-field-outline-start"),a=o.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const l=o.getBoundingClientRect();if(0===l.width&&0===l.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const c=this._getStartEnd(l),u=e.children,d=this._getStartEnd(u[0].getBoundingClientRect());let h=0;for(let m=0;m<u.length;m++)h+=u[m].offsetWidth;i=Math.abs(d-c)-5,r=h>0?.75*h+10:0}for(let l=0;l<s.length;l++)s[l].style.width=`${i}px`;for(let l=0;l<a.length;l++)a[l].style.width=`${r}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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(an),f($i,8),f(aq,8),f(Bn),f(nt),f(pr,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-form-field"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,Wf,5),qe(r,Wf,7),qe(r,by,5),qe(r,by,7),qe(r,nq,5),qe(r,JG,5),qe(r,tq,5),qe(r,iq,5),qe(r,rq,5)),2&e){let o;Te(o=Ie())&&(i._controlNonStatic=o.first),Te(o=Ie())&&(i._controlStatic=o.first),Te(o=Ie())&&(i._labelChildNonStatic=o.first),Te(o=Ie())&&(i._labelChildStatic=o.first),Te(o=Ie())&&(i._placeholderChild=o.first),Te(o=Ie())&&(i._errorChildren=o),Te(o=Ie())&&(i._hintChildren=o),Te(o=Ie())&&(i._prefixChildren=o),Te(o=Ie())&&(i._suffixChildren=o)}},viewQuery:function(e,i){if(1&e&&(Bt(LG,7),Bt(BG,5),Bt(VG,5)),2&e){let r;Te(r=Ie())&&(i._connectionContainerRef=r.first),Te(r=Ie())&&(i._inputContainerRef=r.first),Te(r=Ie())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,i){2&e&&pt("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:[Lt([{provide:Cy,useExisting:n}]),De],ngContentSelectors:XG,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[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&&(zn(ZG),X(0,"div",0),X(1,"div",1,2),Ve("click",function(o){return i._control.onContainerClick&&i._control.onContainerClick(o)}),fe(3,jG,9,0,"ng-container",3),fe(4,HG,2,0,"div",4),X(5,"div",5,6),Rt(7),X(8,"span",7),fe(9,qG,5,16,"label",8),J(),J(),fe(10,WG,2,0,"div",9),J(),fe(11,$G,2,4,"div",10),X(12,"div",11),fe(13,QG,2,1,"div",12),fe(14,KG,5,2,"div",13),J(),J()),2&e&&(de(3),oe("ngIf","outline"==i.appearance),de(1),oe("ngIf",i._prefixChildren.length),de(5),oe("ngIf",i._hasFloatingLabel()),de(1),oe("ngIf",i._suffixChildren.length),de(1),oe("ngIf","outline"!=i.appearance),de(1),oe("ngSwitch",i._getDisplayedMessages()),de(1),oe("ngSwitchCase","error"),de(1),oe("ngSwitchCase","hint"))},directives:[Wn,Gs,au,V6],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.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;-moz-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;-moz-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;-moz-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;-moz-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:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-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 transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[eq.transitionMessages]},changeDetection:0}),n})(),$f=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Si,wt,XD],wt]}),n})(),dq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Nf,wt],Nf,wt]}),n})();function Vo(n){return Le((t,e)=>{let o,i=null,r=!1;i=t.subscribe(Ge(e,void 0,void 0,s=>{o=Ri(n(s,Vo(n)(t))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function ZT(n){return Le((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}function Fl(n,t){return E(t)?Rn(n,t,1):Rn(n,1)}class XT{}class JT{}class jo{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof jo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new jo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof jo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class fq{encodeKey(t){return e1(t)}encodeValue(t){return e1(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const mq=/%(\d[a-f0-9])/gi,gq={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function e1(n){return encodeURIComponent(n).replace(mq,(t,e)=>{var i;return null!==(i=gq[e])&&void 0!==i?i:t})}function t1(n){return`${n}`}class gs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new fq,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pq(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new gs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t1(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(t1(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class vq{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function n1(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function r1(n){return"undefined"!=typeof Blob&&n instanceof Blob}function o1(n){return"undefined"!=typeof FormData&&n instanceof FormData}class ju{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function _q(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new jo),this.context||(this.context=new vq),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 gs,this.urlWithParams=e}serializeBody(){return null===this.body?null:n1(this.body)||r1(this.body)||o1(this.body)||function yq(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof gs?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||o1(this.body)?null:r1(this.body)?this.body.type||null:n1(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof gs?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){var e;const i=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,a=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,l=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let c=t.headers||this.headers,u=t.params||this.params;const d=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce((h,m)=>h.set(m,t.setHeaders[m]),c)),t.setParams&&(u=Object.keys(t.setParams).reduce((h,m)=>h.set(m,t.setParams[m]),u)),new ju(i,r,s,{params:u,headers:c,context:d,reportProgress:l,responseType:o,withCredentials:a})}}var jn=(()=>((jn=jn||{})[jn.Sent=0]="Sent",jn[jn.UploadProgress=1]="UploadProgress",jn[jn.ResponseHeader=2]="ResponseHeader",jn[jn.DownloadProgress=3]="DownloadProgress",jn[jn.Response=4]="Response",jn[jn.User=5]="User",jn))();class wy{constructor(t,e=200,i="OK"){this.headers=t.headers||new jo,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Ey extends wy{constructor(t={}){super(t),this.type=jn.ResponseHeader}clone(t={}){return new Ey({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Qf extends wy{constructor(t={}){super(t),this.type=jn.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Qf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class s1 extends wy{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Sy(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let xy=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof ju)o=e;else{let l,c;l=r.headers instanceof jo?r.headers:new jo(r.headers),r.params&&(c=r.params instanceof gs?r.params:new gs({fromObject:r.params})),o=new ju(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=rt(o).pipe(Fl(l=>this.handler.handle(l)));if(e instanceof ju||"events"===r.observe)return s;const a=s.pipe(Qt(l=>l instanceof Qf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ue(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ue(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ue(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new gs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Sy(r,i))}post(e,i,r={}){return this.request("POST",e,Sy(r,i))}put(e,i,r={}){return this.request("PUT",e,Sy(r,i))}}return n.\u0275fac=function(e){return new(e||n)(ae(XT))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();class a1{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const l1=new ke("HTTP_INTERCEPTORS");let bq=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const Cq=/^\)\]\}',?\n/;let c1=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new P(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((m,I)=>r.setRequestHeader(m,I.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const m=e.detectContentTypeHeader();null!==m&&r.setRequestHeader("Content-Type",m)}if(e.responseType){const m=e.responseType.toLowerCase();r.responseType="json"!==m?m:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const m=1223===r.status?204:r.status,I=r.statusText||"OK",$=new jo(r.getAllResponseHeaders()),z=function wq(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Ey({headers:$,status:m,statusText:I,url:z}),s},l=()=>{let{headers:m,status:I,statusText:$,url:z}=a(),re=null;204!==I&&(re=void 0===r.response?r.responseText:r.response),0===I&&(I=re?200:0);let se=I>=200&&I<300;if("json"===e.responseType&&"string"==typeof re){const ve=re;re=re.replace(Cq,"");try{re=""!==re?JSON.parse(re):null}catch(Ee){re=ve,se&&(se=!1,re={error:Ee,text:re})}}se?(i.next(new Qf({body:re,headers:m,status:I,statusText:$,url:z||void 0})),i.complete()):i.error(new s1({error:re,headers:m,status:I,statusText:$,url:z||void 0}))},c=m=>{const{url:I}=a(),$=new s1({error:m,status:r.status||0,statusText:r.statusText||"Unknown Error",url:I||void 0});i.error($)};let u=!1;const d=m=>{u||(i.next(a()),u=!0);let I={type:jn.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(I.total=m.total),"text"===e.responseType&&!!r.responseText&&(I.partialText=r.responseText),i.next(I)},h=m=>{let I={type:jn.UploadProgress,loaded:m.loaded};m.lengthComputable&&(I.total=m.total),i.next(I)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:jn.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(ae(TA))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const Ay=new ke("XSRF_COOKIE_NAME"),My=new ke("XSRF_HEADER_NAME");class u1{}let Eq=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=bA(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(ae(it),ae(Gi),ae(Ay))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),Dy=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(u1),ae(My))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),Sq=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(l1,[]);this.chain=i.reduceRight((r,o)=>new a1(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(JT),ae(At))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),xq=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:Dy,useClass:bq}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:Ay,useValue:e.cookieName}:[],e.headerName?{provide:My,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[Dy,{provide:l1,useExisting:Dy,multi:!0},{provide:u1,useClass:Eq},{provide:Ay,useValue:"XSRF-TOKEN"},{provide:My,useValue:"X-XSRF-TOKEN"}]}),n})(),Aq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[xy,{provide:XT,useClass:Sq},c1,{provide:JT,useExisting:c1}],imports:[[xq.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),n})();const Mq=["*"];let Yf;function Hu(n){var t;return(null===(t=function Dq(){if(void 0===Yf&&(Yf=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(Yf=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t}))}return Yf}())||void 0===t?void 0:t.createHTML(n))||n}function d1(n){return Error(`Unable to find icon with the name "${n}"`)}function h1(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function f1(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class ra{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let Kf=(()=>{class n{constructor(e,i,r,o){this._httpClient=e,this._sanitizer=i,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=r}addSvgIcon(e,i,r){return this.addSvgIconInNamespace("",e,i,r)}addSvgIconLiteral(e,i,r){return this.addSvgIconLiteralInNamespace("",e,i,r)}addSvgIconInNamespace(e,i,r,o){return this._addSvgIconConfig(e,i,new ra(r,null,o))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,i,r,o){const s=this._sanitizer.sanitize(Nt.HTML,r);if(!s)throw f1(r);const a=Hu(s);return this._addSvgIconConfig(e,i,new ra("",a,o))}addSvgIconSet(e,i){return this.addSvgIconSetInNamespace("",e,i)}addSvgIconSetLiteral(e,i){return this.addSvgIconSetLiteralInNamespace("",e,i)}addSvgIconSetInNamespace(e,i,r){return this._addSvgIconSetConfig(e,new ra(i,null,r))}addSvgIconSetLiteralInNamespace(e,i,r){const o=this._sanitizer.sanitize(Nt.HTML,i);if(!o)throw f1(i);const s=Hu(o);return this._addSvgIconSetConfig(e,new ra("",s,r))}registerFontClassAlias(e,i=e){return this._fontCssClassesByAlias.set(e,i),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const i=this._sanitizer.sanitize(Nt.RESOURCE_URL,e);if(!i)throw h1(e);const r=this._cachedIconsByUrl.get(i);return r?rt(Zf(r)):this._loadSvgIconFromConfig(new ra(e,null)).pipe(ei(o=>this._cachedIconsByUrl.set(i,o)),Ue(o=>Zf(o)))}getNamedSvgIcon(e,i=""){const r=p1(i,e);let o=this._svgIconConfigs.get(r);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(i,e),o)return this._svgIconConfigs.set(r,o),this._getSvgFromConfig(o);const s=this._iconSetConfigs.get(i);return s?this._getSvgFromIconSetConfigs(e,s):function hq(n,t){const e=E(n)?n:()=>n,i=r=>r.error(e());return new P(t?r=>t.schedule(i,0,r):i)}(d1(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?rt(Zf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Ue(i=>Zf(i)))}_getSvgFromIconSetConfigs(e,i){const r=this._extractIconWithNameFromAnySet(e,i);return r?rt(r):GM(i.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(Vo(a=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(Nt.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(c)),rt(null)})))).pipe(Ue(()=>{const s=this._extractIconWithNameFromAnySet(e,i);if(!s)throw d1(e);return s}))}_extractIconWithNameFromAnySet(e,i){for(let r=i.length-1;r>=0;r--){const o=i[r];if(o.svgText&&o.svgText.toString().indexOf(e)>-1){const s=this._svgElementFromConfig(o),a=this._extractSvgIconFromSet(s,e,o.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(ei(i=>e.svgText=i),Ue(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?rt(null):this._fetchIcon(e).pipe(ei(i=>e.svgText=i))}_extractSvgIconFromSet(e,i,r){const o=e.querySelector(`[id="${i}"]`);if(!o)return null;const s=o.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,r);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),r);const a=this._svgElementFromString(Hu("<svg></svg>"));return a.appendChild(s),this._setSvgAttributes(a,r)}_svgElementFromString(e){const i=this._document.createElement("DIV");i.innerHTML=e;const r=i.querySelector("svg");if(!r)throw Error("<svg> tag not found");return r}_toSvgElement(e){const i=this._svgElementFromString(Hu("<svg></svg>")),r=e.attributes;for(let o=0;o<r.length;o++){const{name:s,value:a}=r[o];"id"!==s&&i.setAttribute(s,a)}for(let o=0;o<e.childNodes.length;o++)e.childNodes[o].nodeType===this._document.ELEMENT_NODE&&i.appendChild(e.childNodes[o].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:r,options:o}=e,s=null!==(i=null==o?void 0:o.withCredentials)&&void 0!==i&&i;if(!this._httpClient)throw function Tq(){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==r)throw Error(`Cannot fetch icon from URL "${r}".`);const a=this._sanitizer.sanitize(Nt.RESOURCE_URL,r);if(!a)throw h1(r);const l=this._inProgressUrlFetches.get(a);if(l)return l;const c=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Ue(u=>Hu(u)),ZT(()=>this._inProgressUrlFetches.delete(a)),Lb());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,i,r){return this._svgIconConfigs.set(p1(e,i),r),this}_addSvgIconSetConfig(e,i){const r=this._iconSetConfigs.get(e);return r?r.push(i):this._iconSetConfigs.set(e,[i]),this}_svgElementFromConfig(e){if(!e.svgElement){const i=this._svgElementFromString(e.svgText);this._setSvgAttributes(i,e.options),e.svgElement=i}return e.svgElement}_getIconConfigFromResolvers(e,i){for(let r=0;r<this._resolvers.length;r++){const o=this._resolvers[r](i,e);if(o)return Oq(o)?new ra(o.url,null,o.options):new ra(o,null)}}}return n.\u0275fac=function(e){return new(e||n)(ae(xy,8),ae(yl),ae(it,8),ae(Xr))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Zf(n){return n.cloneNode(!0)}function p1(n,t){return n+":"+t}function Oq(n){return!(!n.url||!n.options)}const kq=Ol(class{constructor(n){this._elementRef=n}}),Pq=new ke("mat-icon-location",{providedIn:"root",factory:function Rq(){const n=mc(it),t=n?n.location:null;return{getPathname:()=>t?t.pathname+t.search:""}}}),m1=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Fq=m1.map(n=>`[${n}]`).join(", "),Nq=/^url\(['"]?#(.*?)['"]?\)$/;let vs=(()=>{class n extends kq{constructor(e,i,r,o,s){super(e),this._iconRegistry=i,this._location=o,this._errorHandler=s,this._inline=!1,this._currentIconFetch=S.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=gt(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=e.querySelectorAll("style");for(let o=0;o<i.length;o++)i[o].textContent+=" ";const r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let i=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();i--;){const r=e.childNodes[i];(1!==r.nodeType||"svg"===r.nodeName.toLowerCase())&&r.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,i=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();i!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),i&&e.classList.add(i),this._previousFontSetClass=i),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const i=this._elementsWithExternalReferences;i&&i.forEach((r,o)=>{r.forEach(s=>{o.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){const i=e.querySelectorAll(Fq),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<i.length;o++)m1.forEach(s=>{const a=i[o],l=a.getAttribute(s),c=l?l.match(Nq):null;if(c){let u=r.get(a);u||(u=[],r.set(a,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[i,r]=this._splitIconName(e);i&&(this._svgNamespace=i),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,i).pipe(hn(1)).subscribe(o=>this._setSvgElement(o),o=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${i}:${r}! ${o.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Kf),So("aria-hidden"),f(Pq),f(Xr))},n.\u0275cmp=ht({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,i){2&e&&(Mt("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet),pt("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:[De],ngContentSelectors:Mq,decls:1,vars:0,template:function(e,i){1&e&&(zn(),Rt(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),Lq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt],wt]}),n})();const g1=Zs({passive:!0});let Bq=(()=>{class n{constructor(e,i){this._platform=e,this._ngZone=i,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Wr;const i=Lo(e),r=this._monitoredElements.get(i);if(r)return r.subject;const o=new be,s="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(s)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(s)&&(i.classList.remove(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1}))):(i.classList.add(s),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,g1),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:o,unlisten:()=>{i.removeEventListener("animationstart",a,g1)}}),o}stopMonitoring(e){const i=Lo(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(e){return new(e||n)(ae(Bn),ae(nt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),v1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wu]]}),n})();const Vq=new ke("MAT_INPUT_VALUE_ACCESSOR"),jq=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Hq=0;const Uq=vT(class{constructor(n,t,e,i){this._defaultErrorStateMatcher=n,this._parentForm=t,this._parentFormGroup=e,this.ngControl=i}});let _1=(()=>{class n extends Uq{constructor(e,i,r,o,s,a,l,c,u,d){super(a,o,s,r),this._elementRef=e,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+Hq++,this.focused=!1,this.stateChanges=new be,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(I=>WD().has(I));const h=this._elementRef.nativeElement,m=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",I=>{const $=I.target;!$.value&&0===$.selectionStart&&0===$.selectionEnd&&($.setSelectionRange(1,1),$.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===m,this._isTextarea="textarea"===m,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.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=gt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,i,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(QM.required))&&void 0!==o&&o}set required(e){this._required=gt(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&WD().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=gt(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)}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,i;const r=(null===(i=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===i?void 0:i.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=r,r?o.setAttribute("placeholder",r):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){jq.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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Bn),f(lo,10),f(_u,8),f(bu,8),f(ly),f(Vq,10),f(Bq),f(nt),f(Cy,8))},n.\u0275dir=ge({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:11,hostBindings:function(e,i){1&e&&Ve("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&e&&(Ns("disabled",i.disabled)("required",i.required),Mt("id",i.id)("data-placeholder",i.placeholder)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),pt("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[Lt([{provide:Wf,useExisting:n}]),De,vn]}),n})(),zq=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[ly],imports:[[v1,$f,wt],v1,$f]}),n})();function Gq(n,t){if(1&n&&(Jo(),ot(0,"circle",3)),2&n){const e=ye();bi("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Mt("r",e._getCircleRadius())}}function qq(n,t){if(1&n&&(Jo(),ot(0,"circle",3)),2&n){const e=ye();bi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Mt("r",e._getCircleRadius())}}function Wq(n,t){if(1&n&&(Jo(),ot(0,"circle",3)),2&n){const e=ye();bi("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Mt("r",e._getCircleRadius())}}function $q(n,t){if(1&n&&(Jo(),ot(0,"circle",3)),2&n){const e=ye();bi("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%"),Mt("r",e._getCircleRadius())}}const Kq=Ol(class{constructor(n){this._elementRef=n}},"primary"),y1=new ke("mat-progress-spinner-default-options",{providedIn:"root",factory:function Zq(){return{diameter:100}}});class Ho extends Kq{constructor(t,e,i,r,o){super(t),this._document=i,this._diameter=100,this._value=0,this.mode="determinate";const s=Ho._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),s.has(i.head)||s.set(i.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Qi(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Qi(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Qi(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=QD(t)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate-animation")}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_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}_attachStyleNode(){const t=this._styleRoot,e=this._diameter,i=Ho._diameters;let r=i.get(t);if(!r||!r.has(e)){const o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}_getAnimationText(){const t=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*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ho._diameters=new WeakMap,Ho.\u0275fac=function(t){return new(t||Ho)(f(Oe),f(Bn),f(it,8),f(pr,8),f(y1))},Ho.\u0275cmp=ht({type:Ho,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Mt("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),bi("width",e.diameter,"px")("height",e.diameter,"px"),pt("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[De],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Jo(),X(0,"svg",0),fe(1,Gq,1,9,"circle",1),fe(2,qq,1,7,"circle",2),J()),2&t&&(bi("width",e.diameter,"px")("height",e.diameter,"px"),oe("ngSwitch","indeterminate"===e.mode),Mt("viewBox",e._getViewBox()),de(1),oe("ngSwitchCase",!0),de(1),oe("ngSwitchCase",!1))},directives:[Gs,au],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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0});let Jq=(()=>{class n extends Ho{constructor(e,i,r,o,s){super(e,i,r,o,s),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Bn),f(it,8),f(pr,8),f(y1))},n.\u0275cmp=ht({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,i){2&e&&(bi("width",i.diameter,"px")("height",i.diameter,"px"),pt("_mat-animation-noopable",i._noopAnimations))},inputs:{color:"color"},features:[De],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,i){1&e&&(Jo(),X(0,"svg",0),fe(1,Wq,1,9,"circle",1),fe(2,$q,1,7,"circle",2),J()),2&e&&(bi("width",i.diameter,"px")("height",i.diameter,"px"),oe("ngSwitch","indeterminate"===i.mode),Mt("viewBox",i._getViewBox()),de(1),oe("ngSwitchCase",!0),de(1),oe("ngSwitchCase",!1))},directives:[Gs,au],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:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[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-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation: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)}}\n"],encapsulation:2,changeDetection:0}),n})(),e9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt,Si],wt]}),n})();function b1(...n){const t=ec(n),e=Pb(n),{args:i,keys:r}=UM(n);if(0===i.length)return Qn([],t);const o=new P(function t9(n,t,e=j){return i=>{C1(t,()=>{const{length:r}=n,o=new Array(r);let s=r,a=r;for(let l=0;l<r;l++)C1(t,()=>{const c=Qn(n[l],t);let u=!1;c.subscribe(Ge(i,d=>{o[l]=d,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,t,r?s=>zM(r,s):j));return e?o.pipe(D_(e)):o}function C1(n,t,e){n?_o(e,n,t):t()}const w1=new Set;let Nl,n9=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):r9}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function i9(n){if(!w1.has(n))try{Nl||(Nl=document.createElement("style"),Nl.setAttribute("type","text/css"),document.head.appendChild(Nl)),Nl.sheet&&(Nl.sheet.insertRule(`@media ${n} {body{ }}`,0),w1.add(n))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(Bn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function r9(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let E1=(()=>{class n{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new be}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return S1(kf(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=b1(S1(kf(e)).map(s=>this._registerQuery(s).observable));return o=ku(o.pipe(hn(1)),o.pipe(Ou(1),Of(0))),o.pipe(Ue(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new P(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Ai(i),Ue(({matches:s})=>({query:e,matches:s})),_t(this._destroySubject)),mql:i};return this._queries.set(e,o),o}}return n.\u0275fac=function(e){return new(e||n)(ae(n9),ae(nt))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function S1(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}function o9(n,t){if(1&n){const e=$t();X(0,"div",1),X(1,"button",2),Ve("click",function(){return Ke(e),ye().action()}),Fe(2),J(),J()}if(2&n){const e=ye();de(2),On(e.data.action)}}function s9(n,t){}const A1=new ke("MatSnackBarData");class Xf{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const a9=Math.pow(2,31)-1;class Iy{constructor(t,e){this._overlayRef=e,this._afterDismissed=new be,this._afterOpened=new be,this._onAction=new be,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._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()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,a9))}_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 l9=(()=>{class n{constructor(e,i){this.snackBarRef=e,this.data=i}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return n.\u0275fac=function(e){return new(e||n)(f(Iy),f(A1))},n.\u0275cmp=ht({type:n,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,i){1&e&&(X(0,"span"),Fe(1),J(),fe(2,o9,3,1,"div",0)),2&e&&(de(1),On(i.data.message),de(1),oe("ngIf",i.hasAction))},directives:[Wn,Bo],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),n})();const c9={snackBarState:Ur("state",[Jn("void, hidden",jt({transform:"scale(0.8)",opacity:0})),Jn("visible",jt({transform:"scale(1)",opacity:1})),ni("* => visible",di("150ms cubic-bezier(0, 0, 0.2, 1)")),ni("* => void, * => hidden",di("75ms cubic-bezier(0.4, 0.0, 1, 1)",jt({opacity:0})))])};let u9=(()=>{class n extends Uf{constructor(e,i,r,o,s){super(),this._ngZone=e,this._elementRef=i,this._changeDetectorRef=r,this._platform=o,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new be,this._onExit=new be,this._onEnter=new be,this._animationState="void",this.attachDomPortal=a=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(a)),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){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}onAnimationEnd(e){const{fromState:i,toState:r}=e;if(("void"===r&&"void"!==i||"hidden"===r)&&this._completeExit(),"visible"===r){const o=this._onEnter;this._ngZone.run(()=>{o.next(),o.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(hn(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const e=this._elementRef.nativeElement,i=this.snackBarConfig.panelClass;i&&(Array.isArray(i)?i.forEach(r=>e.classList.add(r)):e.classList.add(i)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),i=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&i){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(r=document.activeElement),e.removeAttribute("aria-hidden"),i.appendChild(e),null==r||r.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return n.\u0275fac=function(e){return new(e||n)(f(nt),f(Oe),f(an),f(Bn),f(Xf))},n.\u0275cmp=ht({type:n,selectors:[["snack-bar-container"]],viewQuery:function(e,i){if(1&e&&Bt(zf,7),2&e){let r;Te(r=Ie())&&(i._portalOutlet=r.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,i){1&e&&Rc("@state.done",function(o){return i.onAnimationEnd(o)}),2&e&&Nc("@state",i._animationState)},features:[De],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,i){1&e&&(X(0,"div",0),fe(1,s9,0,0,"ng-template",1),J(),ot(2,"div")),2&e&&(de(2),Mt("aria-live",i._live)("role",i._role))},directives:[zf],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[c9.snackBarState]}}),n})(),M1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Vu,Gf,Si,DT,wt],wt]}),n})();const d9=new ke("mat-snack-bar-default-options",{providedIn:"root",factory:function h9(){return new Xf}});let f9=(()=>{class n{constructor(e,i,r,o,s,a){this._overlay=e,this._live=i,this._injector=r,this._breakpointObserver=o,this._parentSnackBar=s,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=l9,this.snackBarContainerComponent=u9,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,i){return this._attach(e,i)}openFromTemplate(e,i){return this._attach(e,i)}open(e,i="",r){const o=Object.assign(Object.assign({},this._defaultConfig),r);return o.data={message:e,action:i},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,i){const o=At.create({parent:i&&i.viewContainerRef&&i.viewContainerRef.injector||this._injector,providers:[{provide:Xf,useValue:i}]}),s=new Rl(this.snackBarContainerComponent,i.viewContainerRef,o),a=e.attach(s);return a.instance.snackBarConfig=i,a.instance}_attach(e,i){const r=Object.assign(Object.assign(Object.assign({},new Xf),this._defaultConfig),i),o=this._createOverlay(r),s=this._attachSnackBarContainer(o,r),a=new Iy(s,o);if(e instanceof lt){const l=new Nu(e,null,{$implicit:r.data,snackBarRef:a});a.instance=s.attachTemplatePortal(l)}else{const l=this._createInjector(r,a),c=new Rl(e,void 0,l),u=s.attachComponentPortal(c);a.instance=u.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(_t(o.detachments())).subscribe(l=>{o.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),r.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(r.announcementMessage,r.politeness)}),this._animateSnackBar(a,r),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(e,i){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),i.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),i.duration&&i.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(i.duration))}_createOverlay(e){const i=new Lu;i.direction=e.direction;let r=this._overlay.position().global();const o="rtl"===e.direction,s="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!o||"end"===e.horizontalPosition&&o,a=!s&&"center"!==e.horizontalPosition;return s?r.left("0"):a?r.right("0"):r.centerHorizontally(),"top"===e.verticalPosition?r.top("0"):r.bottom("0"),i.positionStrategy=r,this._overlay.create(i)}_createInjector(e,i){return At.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Iy,useValue:i},{provide:A1,useValue:e.data}]})}}return n.\u0275fac=function(e){return new(e||n)(ae(Gr),ae(uT),ae(At),ae(E1),ae(n,12),ae(d9))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:M1}),n})();class Oy{constructor(t=!1,e,i=!0){this._multiple=t,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new be,e&&e.length&&(t?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(...t){this._verifyValueAssignment(t),t.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}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(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}function vr(n,t){return Le((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(Ge(i,l=>{null==r||r.unsubscribe();let c=0;const u=o++;Ri(n(l,u)).subscribe(r=Ge(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{s=!0,a()}))})}const p9=["trigger"],m9=["panel"];function g9(n,t){if(1&n&&(X(0,"span",8),Fe(1),J()),2&n){const e=ye();de(1),On(e.placeholder)}}function v9(n,t){if(1&n&&(X(0,"span",12),Fe(1),J()),2&n){const e=ye(2);de(1),On(e.triggerValue)}}function _9(n,t){1&n&&Rt(0,0,["*ngSwitchCase","true"])}function y9(n,t){1&n&&(X(0,"span",9),fe(1,v9,2,1,"span",10),fe(2,_9,1,0,"ng-content",11),J()),2&n&&(oe("ngSwitch",!!ye().customTrigger),de(2),oe("ngSwitchCase",!0))}function b9(n,t){if(1&n){const e=$t();X(0,"div",13),X(1,"div",14,15),Ve("@transformPanel.done",function(r){return Ke(e),ye()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return Ke(e),ye()._handleKeydown(r)}),Rt(3,1),J(),J()}if(2&n){const e=ye();oe("@transformPanelWrap",void 0),de(1),IE("mat-select-panel ",e._getPanelTheme(),""),bi("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),oe("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),Mt("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const C9=[[["mat-select-trigger"]],"*"],w9=["mat-select-trigger","*"],D1={transformPanelWrap:Ur("transformPanelWrap",[ni("* => void",q5("@transformPanel",[G5()],{optional:!0}))]),transformPanel:Ur("transformPanel",[Jn("void",jt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Jn("showing",jt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Jn("showing-multiple",jt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ni("void => *",di("120ms cubic-bezier(0, 0, 0.2, 1)")),ni("* => void",di("100ms 25ms linear",jt({opacity:0})))])};let T1=0;const O1=new ke("mat-select-scroll-strategy"),A9=new ke("MAT_SELECT_CONFIG"),M9={provide:O1,deps:[Gr],useFactory:function x9(n){return()=>n.scrollStrategies.reposition()}};class D9{constructor(t,e){this.source=t,this.value=e}}const T9=ea(gT(Il(vT(class{constructor(n,t,e,i,r){this._elementRef=n,this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=r}})))),I9=new ke("MatSelectTrigger");let O9=(()=>{class n extends T9{constructor(e,i,r,o,s,a,l,c,u,d,h,m,I,$){var z,re,se;super(s,o,l,c,d),this._viewportRuler=e,this._changeDetectorRef=i,this._ngZone=r,this._dir=a,this._parentFormField=u,this._liveAnnouncer=I,this._defaultOptions=$,this._panelOpen=!1,this._compareWith=(ve,Ee)=>ve===Ee,this._uid="mat-select-"+T1++,this._triggerAriaLabelledBy=null,this._destroy=new be,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+T1++,this._panelDoneAnimatingStream=new be,this._overlayPanelClass=(null===(z=this._defaultOptions)||void 0===z?void 0:z.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(se=null===(re=this._defaultOptions)||void 0===re?void 0:re.disableOptionCentering)&&void 0!==se&&se,this.ariaLabel="",this.optionSelectionChanges=qf(()=>{const ve=this.options;return ve?ve.changes.pipe(Ai(ve),vr(()=>Fi(...ve.map(Ee=>Ee.onSelectionChange)))):this._ngZone.onStable.pipe(hn(1),vr(()=>this.optionSelectionChanges))}),this.openedChange=new Ne,this._openedStream=this.openedChange.pipe(Qt(ve=>ve),Ue(()=>{})),this._closedStream=this.openedChange.pipe(Qt(ve=>!ve),Ue(()=>{})),this.selectionChange=new Ne,this.valueChange=new Ne,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==$?void 0:$.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=$.typeaheadDebounceInterval),this._scrollStrategyFactory=m,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,i,r,o;return null!==(o=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(QM.required))&&void 0!==o&&o}set required(e){this._required=gt(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=gt(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=gt(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=Qi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Oy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ny(),_t(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(_t(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(Ai(null),_t(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&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.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,i;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(i=this._selectionModel)||void 0===i?void 0:i.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const i=e.keyCode,r=40===i||38===i||37===i||39===i,o=13===i||32===i,s=this._keyManager;if(!s.isTyping()&&o&&!gr(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const a=this.selected;s.onKeydown(e);const l=this.selected;l&&a!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){const i=this._keyManager,r=e.keyCode,o=40===r||38===r,s=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(s||13!==r&&32!==r||!i.activeItem||gr(e))if(!s&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const a=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(a?l.select():l.deselect())})}else{const a=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==a&&i.activeItem._selectViaInteraction()}else e.preventDefault(),i.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(hn(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._setSelectionByValue(this.ngControl?this.ngControl.value: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._selectValue(i)),this._sortValues();else{const i=this._selectValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(o){return!1}});return i&&this._selectionModel.select(i),i}_initKeyManager(){this._keyManager=new z6(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(_t(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(_t(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=Fi(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(_t(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Fi(...this.options.map(i=>i._stateChanges)).pipe(_t(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,i){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i=null;i=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const i=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(i?i+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(f(Hf),f(an),f(nt),f(ly),f(Oe),f($i,8),f(_u,8),f(bu,8),f(Cy,8),f(lo,10),So("tabindex"),f(O1),f(uT),f(A9,8))},n.\u0275dir=ge({type:n,viewQuery:function(e,i){if(1&e&&(Bt(p9,5),Bt(m9,5),Bt(GT,5)),2&e){let r;Te(r=Ie())&&(i.trigger=r.first),Te(r=Ie())&&(i.panel=r.first),Te(r=Ie())&&(i._overlayDir=r.first)}},inputs:{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:[De,vn]}),n})(),k9=(()=>{class n extends O9{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,i,r){const o=this._getItemHeight();return Math.min(Math.max(0,o*e-i+o/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(_t(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(hn(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const i=AT(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===i?0:function Sz(n,t,e,i){return n<e?n:n+t>e+i?Math.max(0,n-i+t):e}((e+i)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new D9(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),r=this._isRtl(),o=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let c=this._selectionModel.selected[0]||this.options.first;s=c&&c.group?32:16}r||(s*=-1);const a=0-(e.left+s-(r?o:0)),l=e.right+s-i.width+(r?0:o);a>0?s+=a+8:l>0&&(s-=l+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,i,r){const o=this._getItemHeight(),s=(o-this._triggerRect.height)/2,a=Math.floor(256/o);let l;return this.disableOptionCentering?0:(l=0===this._scrollTop?e*o:this._scrollTop===r?(e-(this._getItemCount()-a))*o+(o-(this._getItemCount()*o-256)%o):i-o/2,Math.round(-1*l-s))}_checkOverlayWithinViewport(e){const i=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),o=this._triggerRect.top-8,s=r.height-this._triggerRect.bottom-8,a=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*i,256)-a-this._triggerRect.height;c>s?this._adjustPanelUp(c,s):a>o?this._adjustPanelDown(a,o,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,i){const r=Math.round(e-i);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,i,r){const o=Math.round(e-i);if(this._scrollTop+=o,this._offsetY+=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),i=this._getItemCount(),r=Math.min(i*e,256),s=i*e-r;let a;a=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),a+=AT(a,this.options,this.optionGroups);const l=r/2;this._scrollTop=this._calculateOverlayScroll(a,l,s),this._offsetY=this._calculateOverlayOffsetY(a,l,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const e=this._getItemHeight(),i=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-i+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=ht({type:n,selectors:[["mat-select"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,I9,5),qe(r,xT,5),qe(r,ST,5)),2&e){let o;Te(o=Ie())&&(i.customTrigger=o.first),Te(o=Ie())&&(i.options=o),Te(o=Ie())&&(i.optionGroups=o)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,i){1&e&&Ve("keydown",function(o){return i._handleKeydown(o)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),2&e&&(Mt("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-describedby",i._ariaDescribedby||null)("aria-activedescendant",i._getAriaActiveDescendant()),pt("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:[Lt([{provide:Wf,useExisting:n},{provide:ET,useExisting:n}]),De],ngContentSelectors:w9,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&&(zn(C9),X(0,"div",0,1),Ve("click",function(){return i.toggle()}),X(3,"div",2),fe(4,g9,2,1,"span",3),fe(5,y9,3,2,"span",4),J(),X(6,"div",5),ot(7,"div",6),J(),J(),fe(8,b9,4,14,"ng-template",7),Ve("backdropClick",function(){return i.close()})("attach",function(){return i._onAttached()})("detach",function(){return i.close()})),2&e){const r=oh(1);Mt("aria-owns",i.panelOpen?i.id+"-panel":null),de(3),oe("ngSwitch",i.empty),Mt("id",i._valueId),de(1),oe("ngSwitchCase",!0),de(1),oe("ngSwitchCase",!1),de(3),oe("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayMinWidth",null==i._triggerRect?null:i._triggerRect.width)("cdkConnectedOverlayOffsetY",i._offsetY)}},directives:[zT,Gs,au,GT,EA,Ro],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[D1.transformPanelWrap,D1.transformPanel]},changeDetection:0}),n})(),P9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[M9],imports:[[Si,Vu,hy,wt],ta,$f,hy,wt]}),n})();function ky(n){return Ue(()=>n)}const ep=["*"];function R9(n,t){if(1&n){const e=$t();X(0,"div",2),Ve("click",function(){return Ke(e),ye()._onBackdropClicked()}),J()}2&n&&pt("mat-drawer-shown",ye()._isShowingBackdrop())}function F9(n,t){1&n&&(X(0,"mat-drawer-content"),Rt(1,2),J())}const N9=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],L9=["mat-drawer","mat-drawer-content","*"];function B9(n,t){if(1&n){const e=$t();X(0,"div",2),Ve("click",function(){return Ke(e),ye()._onBackdropClicked()}),J()}2&n&&pt("mat-drawer-shown",ye()._isShowingBackdrop())}function V9(n,t){1&n&&(X(0,"mat-sidenav-content",3),Rt(1,2),J())}const j9=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],H9=["mat-sidenav","mat-sidenav-content","*"],k1={transformDrawer:Ur("transform",[Jn("open, open-instant",jt({transform:"none",visibility:"visible"})),Jn("void",jt({"box-shadow":"none",visibility:"hidden"})),ni("void => open-instant",di("0ms")),ni("void <=> open, open-instant => void",di("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},z9=new ke("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function G9(){return!1}}),Py=new ke("MAT_DRAWER_CONTAINER");let tp=(()=>{class n extends jf{constructor(e,i,r,o,s){super(r,o,s),this._changeDetectorRef=e,this._container=i}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(f(an),f(zt(()=>R1)),f(Oe),f(Fu),f(nt))},n.\u0275cmp=ht({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,i){2&e&&bi("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[De],ngContentSelectors:ep,decls:1,vars:0,template:function(e,i){1&e&&(zn(),Rt(0))},encapsulation:2,changeDetection:0}),n})(),P1=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this._elementRef=e,this._focusTrapFactory=i,this._focusMonitor=r,this._platform=o,this._ngZone=s,this._interactivityChecker=a,this._doc=l,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new be,this._animationEnd=new be,this._animationState="void",this.openedChange=new Ne(!0),this._openedStream=this.openedChange.pipe(Qt(u=>u),Ue(()=>{})),this.openedStart=this._animationStarted.pipe(Qt(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),ky(void 0)),this._closedStream=this.openedChange.pipe(Qt(u=>!u),Ue(()=>{})),this.closedStart=this._animationStarted.pipe(Qt(u=>u.fromState!==u.toState&&"void"===u.toState),ky(void 0)),this._destroyed=new be,this.onPositionChanged=new Ne,this._modeChanged=new be,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Pl(this._elementRef.nativeElement,"keydown").pipe(Qt(u=>27===u.keyCode&&!this.disableClose&&!gr(u)),_t(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ny((u,d)=>u.fromState===d.fromState&&u.toState===d.toState)).subscribe(u=>{const{fromState:d,toState:h}=u;(0===h.indexOf("open")&&"void"===d||"void"===h&&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._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=gt(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e)&&(e=gt(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(gt(e))}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{!i&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){var e;const i=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!i&&this._elementRef.nativeElement.contains(i)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,i){e&&i&&(this._openedVia=i);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,i,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",i&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(o=>{this.openedChange.pipe(hn(1)).subscribe(s=>o(s?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(e){this._animationStarted.next(e)}_animationDoneListener(e){this._animationEnd.next(e)}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(lT),f(ms),f(Bn),f(nt),f(ry),f(it,8),f(Py,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,i){1&e&&Rc("@transform.start",function(o){return i._animationStartListener(o)})("@transform.done",function(o){return i._animationDoneListener(o)}),2&e&&(Mt("align",null),Nc("@transform",i._animationState),pt("mat-drawer-end","end"===i.position)("mat-drawer-over","over"===i.mode)("mat-drawer-push","push"===i.mode)("mat-drawer-side","side"===i.mode)("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ep,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){1&e&&(zn(),X(0,"div",0),Rt(1),J())},directives:[jf],encapsulation:2,data:{animation:[k1.transformDrawer]},changeDetection:0}),n})(),R1=(()=>{class n{constructor(e,i,r,o,s,a=!1,l){this._dir=e,this._element=i,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=l,this._drawers=new rs,this.backdropClick=new Ne,this._destroyed=new be,this._doCheckSubject=new be,this._contentMargins={left:null,right:null},this._contentMarginChanges=new be,e&&e.change.pipe(_t(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(_t(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=gt(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:gt(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Ai(this._allDrawers),_t(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(i=>!i._container||i._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Ai(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(Of(10),_t(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,i=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,i-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)i+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();i+=r,e-=r}e=e||null,i=i||null,(e!==this._contentMargins.left||i!==this._contentMargins.right)&&(this._contentMargins={left:e,right:i},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Qt(i=>i.fromState!==i.toState),_t(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(_t(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(_t(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(hn(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(_t(Fi(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const i=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?i.add(r):i.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(f($i,8),f(Oe),f(nt),f(an),f(Hf),f(z9),f(pr,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,tp,5),qe(r,P1,5)),2&e){let o;Te(o=Ie())&&(i._content=o.first),Te(o=Ie())&&(i._allDrawers=o)}},viewQuery:function(e,i){if(1&e&&Bt(tp,5),2&e){let r;Te(r=Ie())&&(i._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,i){2&e&&pt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[Lt([{provide:Py,useExisting:n}])],ngContentSelectors:L9,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&&(zn(N9),fe(0,R9,1,2,"div",0),Rt(1),Rt(2,1),fe(3,F9,2,0,"mat-drawer-content",1)),2&e&&(oe("ngIf",i.hasBackdrop),de(3),oe("ngIf",!i._content))},directives:[Wn,tp],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Ry=(()=>{class n extends tp{constructor(e,i,r,o,s){super(e,i,r,o,s)}}return n.\u0275fac=function(e){return new(e||n)(f(an),f(zt(()=>N1)),f(Oe),f(Fu),f(nt))},n.\u0275cmp=ht({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,i){2&e&&bi("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},features:[De],ngContentSelectors:ep,decls:1,vars:0,template:function(e,i){1&e&&(zn(),Rt(0))},encapsulation:2,changeDetection:0}),n})(),F1=(()=>{class n extends P1{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=gt(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Qi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Qi(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=ht({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,i){2&e&&(Mt("align",null),bi("top",i.fixedInViewport?i.fixedTopGap:null,"px")("bottom",i.fixedInViewport?i.fixedBottomGap:null,"px"),pt("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:[De],ngContentSelectors:ep,decls:2,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(e,i){1&e&&(zn(),X(0,"div",0),Rt(1),J())},directives:[jf],encapsulation:2,data:{animation:[k1.transformDrawer]},changeDetection:0}),n})(),N1=(()=>{class n extends R1{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275cmp=ht({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,Ry,5),qe(r,F1,5)),2&e){let o;Te(o=Ie())&&(i._content=o.first),Te(o=Ie())&&(i._allDrawers=o)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,i){2&e&&pt("mat-drawer-container-explicit-backdrop",i._backdropOverride)},exportAs:["matSidenavContainer"],features:[Lt([{provide:Py,useExisting:n}]),De],ngContentSelectors:H9,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,i){1&e&&(zn(j9),fe(0,B9,1,2,"div",0),Rt(1),Rt(2,1),fe(3,V9,2,0,"mat-sidenav-content",1)),2&e&&(oe("ngIf",i.hasBackdrop),de(3),oe("ngIf",!i._content))},directives:[Wn,Ry,jf],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-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),q9=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Si,wt,wu,ta],ta,wt]}),n})(),n7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Si,wt],wt]}),n})();const r7=["*",[["mat-toolbar-row"]]],o7=["*","mat-toolbar-row"],s7=Ol(class{constructor(n){this._elementRef=n}});let a7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),l7=(()=>{class n extends s7{constructor(e,i,r){super(e),this._platform=i,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Bn),f(it))},n.\u0275cmp=ht({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,i,r){if(1&e&&qe(r,a7,5),2&e){let o;Te(o=Ie())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,i){2&e&&pt("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",0===i._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[De],ngContentSelectors:o7,decls:2,vars:0,template:function(e,i){1&e&&(zn(r7),Rt(0),Rt(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),c7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt],wt]}),n})();const u7={tooltipState:Ur("state",[Jn("initial, void, hidden",jt({opacity:0,transform:"scale(0)"})),Jn("visible",jt({transform:"scale(1)"})),ni("* => visible",di("200ms cubic-bezier(0, 0, 0.2, 1)",z5([jt({opacity:0,transform:"scale(0)",offset:0}),jt({opacity:.5,transform:"scale(0.99)",offset:.5}),jt({opacity:1,transform:"scale(1)",offset:1})]))),ni("* => hidden",di("100ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:0})))])},B1="tooltip-panel",V1=Zs({passive:!0}),j1=new ke("mat-tooltip-scroll-strategy"),p7={provide:j1,deps:[Gr],useFactory:function f7(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},m7=new ke("mat-tooltip-default-options",{providedIn:"root",factory:function g7(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let v7=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m){this._overlay=e,this._elementRef=i,this._scrollDispatcher=r,this._viewContainerRef=o,this._ngZone=s,this._platform=a,this._ariaDescriber=l,this._focusMonitor=c,this._dir=d,this._defaultOptions=h,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 be,this._handleKeydown=I=>{this._isTooltipVisible()&&27===I.keyCode&&!gr(I)&&(I.preventDefault(),I.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=u,this._document=m,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),d.change.pipe(_t(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),s.runOutsideAngular(()=>{i.nativeElement.addEventListener("keydown",this._handleKeydown)})}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=gt(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}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(_t(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),e.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,V1)}),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){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const i=this._createOverlay();this._detach(),this._portal=this._portal||new Rl(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=i.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),i=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return i.positionChanges.pipe(_t(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:i,panelClass:`${this._cssClassPrefix}-${B1}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(_t(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(_t(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),o.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),o.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i||"below"==i?r={originX:"center",originY:"above"==i?"top":"bottom"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={originX:"start",originY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={originX:"end",originY:"center"});const{x:o,y:s}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:s}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,i=this.position;let r;"above"==i?r={overlayX:"center",overlayY:"bottom"}:"below"==i?r={overlayX:"center",overlayY:"top"}:"before"==i||"left"==i&&e||"right"==i&&!e?r={overlayX:"end",overlayY:"center"}:("after"==i||"right"==i&&e||"left"==i&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:o,y:s}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(hn(1),_t(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return"above"===this.position||"below"===this.position?"top"===i?i="bottom":"bottom"===i&&(i="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){const{overlayY:i,originX:r,originY:o}=e;let s;if(s="center"===i?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===i&&"top"===o?"above":"below",s!==this._currentPosition){const a=this._overlayRef;if(a){const l=`${this._cssClassPrefix}-${B1}-`;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",()=>this.hide()],["wheel",i=>this._wheelListener(i)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const i=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,V1)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const i=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const i=this._elementRef.nativeElement,r=i.style;("on"===e||"INPUT"!==i.nodeName&&"TEXTAREA"!==i.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){Ja()},n.\u0275dir=ge({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),Bl=(()=>{class n extends v7{constructor(e,i,r,o,s,a,l,c,u,d,h,m){super(e,i,r,o,s,a,l,c,u,d,h,m),this._tooltipComponent=y7}}return n.\u0275fac=function(e){return new(e||n)(f(Gr),f(Oe),f(Fu),f(Jt),f(nt),f(Bn),f(nT),f(ms),f(j1),f($i,8),f(m7,8),f(it))},n.\u0275dir=ge({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[De]}),n})(),_7=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new be}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const i=e.toState;"hidden"===i&&!this.isVisible()&&this._onHide.next(),("visible"===i||"hidden"===i)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(f(an))},n.\u0275dir=ge({type:n}),n})(),y7=(()=>{class n extends _7{constructor(e,i){super(e),this._breakpointObserver=i,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(f(an),f(E1))},n.\u0275cmp=ht({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,i){2&e&&bi("zoom","visible"===i._visibility?1:null)},features:[De],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,i){if(1&e&&(X(0,"div",0),Ve("@state.start",function(){return i._animationStart()})("@state.done",function(o){return i._animationDone(o)}),sl(1,"async"),Fe(2),J()),2&e){let r;pt("mat-tooltip-handset",null==(r=al(1,5,i._isHandset))?null:r.matches),oe("ngClass",i.tooltipClass)("@state",i._visibility),de(2),On(i.message)}},directives:[Ro],pipes:[xA],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[u7.tooltipState]},changeDetection:0}),n})(),b7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[p7],imports:[[pT,Si,Vu,wt],wt,ta]}),n})();function H1(n){for(let t in n){let e=n[t]||"";switch(t){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;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":n["-webkit-"+t]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+t]=isNaN(+e)?"0":e}}return n}const Ny="inline",np=["row","column","row-reverse","column-reverse"];function U1(n){let[t,e,i]=z1(n);return function w7(n,t=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":t||null}}(t,e,i)}function z1(n){n=n?n.toLowerCase():"";let[t,e,i]=n.split(" ");return np.find(r=>r===t)||(t=np[0]),e===Ny&&(e=i!==Ny?i:"",i=Ny),[t,C7(e),!!i]}function Gu(n){let[t]=z1(n);return t.indexOf("row")>-1}function C7(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Uo(n,...t){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of t)if(null!=e)for(let i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n}const S7={provide:$g,useFactory:function E7(n,t){return()=>{if(qs(t)){const e=Array.from(n.querySelectorAll(`[class*=${G1}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${G1}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(i,"")})}}},deps:[it,Gi],multi:!0},G1="flex-layout-";let Ly=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[S7]}),n})();class oa{constructor(t=!1,e="all",i="",r="",o=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=r,this.priority=o,this.property=""}clone(){return new oa(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let x7=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,i,r){const o=this.stylesheet.get(e);o?o.set(i,r):this.stylesheet.set(e,new Map([[i,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,i){const r=this.stylesheet.get(e);let o="";if(r){const s=r.get(i);("number"==typeof s||"string"==typeof s)&&(o=s+"")}return o}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const By={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},_s=new ke("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>By}),Vl=new ke("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Vy=new ke("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function q1(n,t){return n=n?n.clone():new oa,t&&(n.mqAlias=t.alias,n.mediaQuery=t.mediaQuery,n.suffix=t.suffix,n.priority=t.priority),n}class Dn{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}let dn=(()=>{class n{constructor(e,i,r,o){this._serverStylesheet=e,this._serverModuleLoaded=i,this._platformId=r,this.layoutConfig=o}applyStyleToElement(e,i,r=null){let o={};"string"==typeof i&&(o[i]=r,i=o),o=this.layoutConfig.disableVendorPrefixes?i:H1(i),this._applyMultiValueStyleToElement(o,e)}applyStyleToElements(e,i=[]){const r=this.layoutConfig.disableVendorPrefixes?e:H1(e);i.forEach(o=>{this._applyMultiValueStyleToElement(r,o)})}getFlowDirection(e){const i="flex-direction";let r=this.lookupStyle(e,i);return[r||"row",this.lookupInlineStyle(e,i)||_l(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,i){return e.getAttribute(i)||""}lookupInlineStyle(e,i){return qs(this._platformId)?e.style.getPropertyValue(i):this._getServerStyle(e,i)}lookupStyle(e,i,r=!1){let o="";return e&&((o=this.lookupInlineStyle(e,i))||(qs(this._platformId)?r||(o=getComputedStyle(e).getPropertyValue(i)):this._serverModuleLoaded&&(o=this._serverStylesheet.getStyleForElement(e,i)))),o?o.trim():""}_applyMultiValueStyleToElement(e,i){Object.keys(e).sort().forEach(r=>{const o=e[r],s=Array.isArray(o)?o:[o];s.sort();for(let a of s)a=a?a+"":"",qs(this._platformId)||!this._serverModuleLoaded?qs(this._platformId)?i.style.setProperty(r,a):this._setServerStyle(i,r,a):this._serverStylesheet.addStyleToElement(i,r,a)})}_setServerStyle(e,i,r){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const o=this._readStyleAttribute(e);o[i]=r||"",this._writeStyleAttribute(e,o)}_getServerStyle(e,i){return this._readStyleAttribute(e)[i]||""}_readStyleAttribute(e){const i={},r=e.getAttribute("style");if(r){const o=r.split(/;+/g);for(let s=0;s<o.length;s++){const a=o[s].trim();if(a.length>0){const l=a.indexOf(":");if(-1===l)throw new Error(`Invalid CSS style: ${a}`);i[a.substr(0,l).trim()]=a.substr(l+1).trim()}}}return i}_writeStyleAttribute(e,i){let r="";for(const o in i)i[o]&&(r+=o+":"+i[o]+";");e.setAttribute("style",r)}}return n.\u0275fac=function(e){return new(e||n)(ae(x7),ae(Vl),ae(Gi),ae(_s))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qu(n,t){return(t&&t.priority||0)-(n&&n.priority||0)}function A7(n,t){return(n.priority||0)-(t.priority||0)}let jy=(()=>{class n{constructor(e,i,r){this._zone=e,this._platformId=i,this._document=r,this.source=new Dt(new oa(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((i,r)=>{i.matches&&e.push(r)}),e}isActive(e){const i=this.registry.get(e);return i?i.matches:this.registerQuery(e).some(r=>r.matches)}observe(e,i=!1){if(e&&e.length){const r=this._observable$.pipe(Qt(s=>!i||e.indexOf(s.mediaQuery)>-1));return Fi(new P(s=>{const a=this.registerQuery(e);if(a.length){const l=a.pop();a.forEach(c=>{s.next(c)}),this.source.next(l)}s.complete()}),r)}return this._observable$}registerQuery(e){const i=Array.isArray(e)?e:[e],r=[];return function M7(n,t){const e=n.filter(i=>!W1[i]);if(e.length>0){const i=e.join(", ");try{const r=t.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(t.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`)),t.head.appendChild(r),e.forEach(o=>W1[o]=r)}catch(r){console.error(r)}}}(i,this._document),i.forEach(o=>{const s=l=>{this._zone.run(()=>this.source.next(new oa(l.matches,o)))};let a=this.registry.get(o);a||(a=this.buildMQL(o),a.addListener(s),this.pendingRemoveListenerFns.push(()=>a.removeListener(s)),this.registry.set(o,a)),a.matches&&r.push(new oa(!0,o))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function D7(n,t){return t&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,qs(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(ae(nt),ae(Gi),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const W1={},T7=[{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}],$1="(orientation: portrait) and (max-width: 599.98px)",Q1="(orientation: landscape) and (max-width: 959.98px)",Y1="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",K1="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Z1="(orientation: portrait) and (min-width: 840px)",X1="(orientation: landscape) and (min-width: 1280px)",zo={HANDSET:`${$1}, ${Q1}`,TABLET:`${Y1} , ${K1}`,WEB:`${Z1}, ${X1} `,HANDSET_PORTRAIT:`${$1}`,TABLET_PORTRAIT:`${Y1} `,WEB_PORTRAIT:`${Z1}`,HANDSET_LANDSCAPE:`${Q1}`,TABLET_LANDSCAPE:`${K1}`,WEB_LANDSCAPE:`${X1}`},I7=[{alias:"handset",priority:2e3,mediaQuery:zo.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:zo.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:zo.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:zo.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:zo.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:zo.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:zo.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:zo.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:zo.WEB_PORTRAIT,overlapping:!0}],O7=/(\.|-|_)/g;function k7(n){let t=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return t.toUpperCase()+e}const N7=new ke("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=mc(Vy),t=mc(_s),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function F7(n,t=[]){const e={};return n.forEach(i=>{e[i.alias]=i}),t.forEach(i=>{e[i.alias]?Uo(e[i.alias],i):e[i.alias]=i}),function R7(n){return n.forEach(t=>{t.suffix||(t.suffix=function P7(n){return n.replace(O7,"|").split("|").map(k7).join("")}(t.alias),t.overlapping=!!t.overlapping)}),n}(Object.keys(e).map(i=>e[i]))}((t.disableDefaultBps?[]:T7).concat(t.addOrientationBps?I7:[]),e)}});let Hy=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(A7)}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=>1==e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>e.suffix?e.suffix:"")}findWithPredicate(e,i){let r=this.findByMap.get(e);return r||(r=this.items.find(i)||null,this.findByMap.set(e,r)),r||null}}return n.\u0275fac=function(e){return new(e||n)(ae(N7))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const jl="print",L7={alias:jl,mediaQuery:jl,priority:1e3};let B7=(()=>{class n{constructor(e,i,r){this.breakpoints=e,this.layoutConfig=i,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new V7,this.deactivations=[]}withPrintQuery(e){return[...e,jl]}isPrintEvent(e){return e.mediaQuery.startsWith(jl)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}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(qu)}updateEvent(e){let i=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(i=this.getEventBreakpoints(e)[0],e.mediaQuery=i?i.mediaQuery:""),q1(e,i)}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 oa(!0,jl))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",i),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(i),this.afterPrintEventListeners.push(r)}interceptEvents(e){return this.registerBeforeAfterPrintHooks(e),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(i)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,i){this.isPrinting=!0,e.activatedBreakpoints=this.queue.addPrintBreakpoints(i)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(e.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const i=this.breakpoints.findByQuery(e.mediaQuery);i&&(this.deactivations.push(i),this.deactivations.sort(qu))}}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 n.\u0275fac=function(e){return new(e||n)(ae(Hy),ae(_s),ae(it))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class V7{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(L7),t.sort(qu),t.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(i=>i.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function j7(n){return!!n&&n.mediaQuery.startsWith(jl)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}let pn=(()=>{class n{constructor(e,i,r){this.matchMedia=e,this.breakpoints=i,this.hook=r,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 be,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(e){const i=this.findByQuery(e.mediaQuery);i&&((e=q1(e,i)).matches&&-1===this.activatedBreakpoints.indexOf(i)?(this.activatedBreakpoints.push(i),this.activatedBreakpoints.sort(qu),this.updateStyles()):!e.matches&&-1!==this.activatedBreakpoints.indexOf(i)&&(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(i),1),this.activatedBreakpoints.sort(qu),this.updateStyles()))}init(e,i,r,o,s=[]){J1(this.updateMap,e,i,r),J1(this.clearMap,e,i,o),this.buildElementKeyMap(e,i),this.watchExtraTriggers(e,i,s)}getValue(e,i,r){const o=this.elementMap.get(e);if(o){const s=void 0!==r?o.get(r):this.getActivatedValues(o,i);if(s)return s.get(i)}}hasValue(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);if(o)return void 0!==o.get(i)||!1}return!1}setValue(e,i,r,o){let s=this.elementMap.get(e);if(s){const l=(s.get(o)||new Map).set(i,r);s.set(o,l),this.elementMap.set(e,s)}else s=(new Map).set(o,(new Map).set(i,r)),this.elementMap.set(e,s);const a=this.getValue(e,i);void 0!==a&&this.updateElement(e,i,a)}trackValue(e,i){return this.subject.asObservable().pipe(Qt(r=>r.element===e&&r.key===i))}updateStyles(){this.elementMap.forEach((e,i)=>{const r=new Set(this.elementKeyMap.get(i));let o=this.getActivatedValues(e);o&&o.forEach((s,a)=>{this.updateElement(i,a,s),r.delete(a)}),r.forEach(s=>{if(o=this.getActivatedValues(e,s),o){const a=o.get(s);this.updateElement(i,s,a)}else this.clearElement(i,s)})})}clearElement(e,i){const r=this.clearMap.get(e);if(r){const o=r.get(i);o&&(o(),this.subject.next({element:e,key:i,value:""}))}}updateElement(e,i,r){const o=this.updateMap.get(e);if(o){const s=o.get(i);s&&(s(r),this.subject.next({element:e,key:i,value:r}))}}releaseElement(e){const i=this.watcherMap.get(e);i&&(i.forEach(o=>o.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((o,s)=>r.delete(s)),this.elementMap.delete(e))}triggerUpdate(e,i){const r=this.elementMap.get(e);if(r){const o=this.getActivatedValues(r,i);o&&(i?this.updateElement(e,i,o.get(i)):o.forEach((s,a)=>this.updateElement(e,a,s)))}}buildElementKeyMap(e,i){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(i)}watchExtraTriggers(e,i,r){if(r&&r.length){let o=this.watcherMap.get(e);if(o||(o=new Map,this.watcherMap.set(e,o)),!o.get(i)){const a=Fi(...r).subscribe(()=>{const l=this.getValue(e,i);this.updateElement(e,i,l)});o.set(i,a)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,i){for(let o=0;o<this.activatedBreakpoints.length;o++){const a=e.get(this.activatedBreakpoints[o].alias);if(a&&(void 0===i||a.has(i)&&null!=a.get(i)))return a}const r=e.get("");return void 0===i||r&&r.has(i)?r:void 0}observeActivations(){const i=this.breakpoints.items.map(r=>r.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(i)).pipe(ei(this.hook.interceptEvents(this)),Qt(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(ae(jy),ae(Hy),ae(B7))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function J1(n,t,e,i){if(void 0!==i){let r=n.get(t);r||(r=new Map,n.set(t,r)),r.set(e,i)}}let bn=(()=>{class n{constructor(e,i,r,o){this.elementRef=e,this.styleBuilder=i,this.styler=r,this.marshal=o,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new be,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(i=>{if(-1!==this.inputs.indexOf(i)){const r=i.split(".").slice(1).join(".");this.setValue(e[i].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,i){const r=this.styleBuilder,o=r.shouldCache;let s=this.styleCache.get(e);(!s||!o)&&(s=r.buildStyles(e,i),o&&this.styleCache.set(e,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),r.sideEffect(e,s,i)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,i=!1){if(e){const[r,o]=this.styler.getFlowDirection(e);if(!o&&i){const s=U1(r);this.styler.applyStyleToElements(s,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,i,r=this.nativeElement){this.styler.applyStyleToElement(r,e,i)}setValue(e,i){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,i)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(Dn),f(dn),f(pn))},n.\u0275dir=ge({type:n,features:[vn]}),n})();function eI(n,t="1",e="1"){let i=[t,e,n],r=n.indexOf("calc");if(r>0){i[2]=tI(n.substring(r).trim());let o=n.substr(0,r).trim().split(" ");2==o.length&&(i[0]=o[0],i[1]=o[1])}else if(0==r)i[2]=tI(n.trim());else{let o=n.split(" ");i=3===o.length?o:[t,e,n]}return i}function tI(n){return n.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Q7=(()=>{class n extends bn{constructor(e,i,r,o,s,a,l){super(e,null,i,r),this.ngClassInstance=l,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new Ro(o,s,e,a)),this.init(),this.setValue("","")}set klass(e){this.ngClassInstance.klass=e,this.setValue(e,"")}updateWithValue(e){this.ngClassInstance.ngClass=e,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(pn),f(ul),f(ss),f(ar),f(Ro,10))},n.\u0275dir=ge({type:n,inputs:{klass:["class","klass"]},features:[De]}),n})();const Y7=["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 ip=(()=>{class n extends Q7{constructor(){super(...arguments),this.inputs=Y7}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();class eW{constructor(t,e,i=!0){this.key=t,this.value=e,this.key=i?t.replace(/['"]/g,"").trim():t.trim(),this.value=i?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function nI(n){let t=typeof n;return"object"===t?n.constructor===Array?"array":n.constructor===Set?"set":"object":t}function rI(n){const[t,...e]=n.split(":");return new eW(t,e.join(":"))}function oI(n,t){return t.key&&(n[t.key]=t.value),n}let iW=(()=>{class n extends bn{constructor(e,i,r,o,s,a,l,c,u){super(e,null,i,r),this.sanitizer=o,this.ngStyleInstance=l,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new lu(e,s,a)),this.init();const d=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(d),this.isServer=c&&_l(u)}updateWithValue(e){const i=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),i),this.isServer&&this.applyStyleToElement(i),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const i=r=>this.sanitizer.sanitize(Nt.STYLE,r)||"";if(e)switch(nI(e)){case"string":return aI(function tW(n,t=";"){return String(n).trim().split(t).map(e=>e.trim()).filter(e=>""!==e)}(e),i);case"array":return aI(e,i);default:return function iI(n,t){let e=[];return"set"===nI(n)?n.forEach(i=>e.push(i)):Object.keys(n).forEach(i=>{e.push(`${i}:${n[i]}`)}),function nW(n,t){return n.map(rI).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(oI,{})}(e,t)}(e,i)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(pn),f(yl),f(ss),f(ar),f(lu,10),f(Vl),f(Gi))},n.\u0275dir=ge({type:n,features:[De]}),n})();const rW=["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 sI=(()=>{class n extends iW{constructor(){super(...arguments),this.inputs=rW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();function aI(n,t){return n.map(rI).filter(i=>!!i).map(i=>(t&&(i.value=t(i.value)),i)).reduce(oI,{})}let lI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Ly]]}),n})(),oW=(()=>{class n extends Dn{buildStyles(e){return U1(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sW=["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 aW=(()=>{class n extends bn{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout",this.styleCache=lW,this.init()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(oW),f(pn))},n.\u0275dir=ge({type:n,features:[De]}),n})(),Wu=(()=>{class n extends aW{constructor(){super(...arguments),this.inputs=sW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();const lW=new Map,cI={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let cW=(()=>{class n extends Dn{constructor(e){super(),this._styler=e}buildStyles(e,i){return e.endsWith(rp)?function vW(n,t){const[e,i]=n.split(" "),o=c=>`-${c}`;let s="0px",a=o(i||e),l="0px";return"rtl"===t?l=o(e):s=o(e),{margin:`0px ${s} ${a} ${l}`}}(e=e.slice(0,e.indexOf(rp)),i.directionality):{}}sideEffect(e,i,r){const o=r.items;if(e.endsWith(rp)){const s=function gW(n,t){const[e,i]=n.split(" ");let o="0px",a="0px";return"rtl"===t?a=e:o=e,{padding:`0px ${o} ${i||e} ${a}`}}(e=e.slice(0,e.indexOf(rp)),r.directionality);this._styler.applyStyleToElements(s,r.items)}else{const s=o.pop(),a=function _W(n,t){const e=uI(t.directionality,t.layout),i=Object.assign({},cI);return i[e]=n,i}(e,r);this._styler.applyStyleToElements(a,o),this._styler.applyStyleToElements(cI,[s])}}}return n.\u0275fac=function(e){return new(e||n)(ae(dn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uW=["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 dW=(()=>{class n extends bn{constructor(e,i,r,o,s,a){super(e,s,o,a),this.zone=i,this.directionality=r,this.styleUtils=o,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new be;const l=[this.directionality.change,this.observerSubject.asObservable()];this.init(l),this.marshal.trackValue(this.nativeElement,"layout").pipe(_t(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const e=this.nativeElement.children,i=[];for(let r=e.length;r--;)i[r]=e[r];return i}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(e){const r=e.value.split(" ");this.layout=r[0],np.find(o=>o===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(e){const i=this.childrenNodes.filter(r=>1===r.nodeType&&this.willDisplay(r)).sort((r,o)=>{const s=+this.styler.lookupStyle(r,"order"),a=+this.styler.lookupStyle(o,"order");return isNaN(s)||isNaN(a)||s===a?0:s>a?1:-1});if(i.length>0){const r=this.directionality.value,o=this.layout;"row"===o&&"rtl"===r?this.styleCache=hW:"row"===o&&"rtl"!==r?this.styleCache=pW:"column"===o&&"rtl"===r?this.styleCache=fW:"column"===o&&"rtl"!==r&&(this.styleCache=mW),this.addStyles(e,{directionality:r,items:i,layout:o})}}clearStyles(){const e=Object.keys(this.mru).length>0,i=e?"padding":uI(this.directionality.value,this.layout);e&&super.clearStyles(),this.styleUtils.applyStyleToElements({[i]:""},this.childrenNodes)}willDisplay(e){const i=this.marshal.getValue(e,"show-hide");return!0===i||void 0===i&&"none"!==this.styleUtils.lookupStyle(e,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(e=>{e.some(r=>r.addedNodes&&r.addedNodes.length>0||r.removedNodes&&r.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(nt),f($i),f(dn),f(cW),f(pn))},n.\u0275dir=ge({type:n,features:[De]}),n})(),zy=(()=>{class n extends dW{constructor(){super(...arguments),this.inputs=uW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();const hW=new Map,fW=new Map,pW=new Map,mW=new Map,rp=" grid";function uI(n,t){switch(t){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":default:return"rtl"===n?"margin-left":"margin-right";case"row-reverse":return"rtl"===n?"margin-right":"margin-left"}}let yW=(()=>{class n extends Dn{constructor(e){super(),this.layoutConfig=e}buildStyles(e,i){let[r,o,...s]=e.split(" "),a=s.join(" ");const l=i.direction.indexOf("column")>-1?"column":"row",c=Gu(l)?"max-width":"max-height",u=Gu(l)?"min-width":"min-height",d=String(a).indexOf("calc")>-1,h=d||"auto"===a,m=String(a).indexOf("%")>-1&&!d,I=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 $=d||I;r="0"==r?0:r,o="0"==o?0:o;const z=!r&&!o;let re={};const se={"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":r=0,a="auto";break;case"grow":a="100%";break;case"noshrink":o=0,a="auto";break;case"auto":break;case"none":r=0,o=0,a="auto";break;default:!$&&!m&&!isNaN(a)&&(a+="%"),"0%"===a&&($=!0),"0px"===a&&(a="0%"),re=Uo(se,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":$?a:"100%"}:{flex:`${r} ${o} ${$?a:"100%"}`})}return re.flex||re["flex-grow"]||(re=Uo(se,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:`${r} ${o} ${a}`})),"0%"!==a&&"0px"!==a&&"0.000000001px"!==a&&"auto"!==a&&(re[u]=z||$&&r?a:null,re[c]=z||!h&&o?a:null),re[u]||re[c]?i.hasWrap&&(re[d?"flex-basis":"flex"]=re[c]?d?re[c]:`${r} ${o} ${re[c]}`:d?re[u]:`${r} ${o} ${re[u]}`):re=Uo(se,d?{"flex-grow":r,"flex-shrink":o,"flex-basis":a}:{flex:`${r} ${o} ${a}`}),Uo(re,{"box-sizing":"border-box"})}}return n.\u0275fac=function(e){return new(e||n)(ae(_s))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bW=["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 CW=(()=>{class n extends bn{constructor(e,i,r,o,s){super(e,o,i,s),this.layoutConfig=r,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(e){this.flexShrink=e||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(e){this.flexGrow=e||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(_t(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(_t(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(e){const r=e.value.split(" ");this.direction=r[0],this.wrap=void 0!==r[1]&&"wrap"===r[1],this.triggerUpdate()}updateWithValue(e){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const r=this.direction,o=r.startsWith("row"),s=this.wrap;o&&s?this.styleCache=SW:o&&!s?this.styleCache=wW:!o&&s?this.styleCache=xW:!o&&!s&&(this.styleCache=EW);const l=eI(String(e).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(l.join(" "),{direction:r,hasWrap:s})}triggerReflow(){const e=this.activatedValue;if(void 0!==e){const i=eI(e+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,i.join(" "))}}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(_s),f(yW),f(pn))},n.\u0275dir=ge({type:n,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[De]}),n})(),$u=(()=>{class n extends CW{constructor(){super(...arguments),this.inputs=bW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();const wW=new Map,EW=new Map,SW=new Map,xW=new Map;let AW=(()=>{class n extends Dn{buildStyles(e){return{order:e&&parseInt(e,10)||""}}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const MW=["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 DW=(()=>{class n extends bn{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="flex-order",this.styleCache=TW,this.init()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(AW),f(pn))},n.\u0275dir=ge({type:n,features:[De]}),n})();const TW=new Map;let Gy=(()=>{class n extends DW{constructor(){super(...arguments),this.inputs=MW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();const zW={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let GW=(()=>{class n extends Dn{buildStyles(e){return zW}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dI=(()=>{class n extends bn{constructor(e,i,r,o){super(e,r,i,o),this.styleCache=qW,this.addStyles("")}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(GW),f(pn))},n.\u0275dir=ge({type:n,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[De]}),n})();const qW=new Map;let WW=(()=>{class n extends Dn{buildStyles(e,i){const r={},[o,s]=e.split(" ");switch(o){case"center":r["justify-content"]="center";break;case"space-around":r["justify-content"]="space-around";break;case"space-between":r["justify-content"]="space-between";break;case"space-evenly":r["justify-content"]="space-evenly";break;case"end":case"flex-end":r["justify-content"]="flex-end";break;default:r["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":r["align-items"]=r["align-content"]="flex-start";break;case"center":r["align-items"]=r["align-content"]="center";break;case"end":case"flex-end":r["align-items"]=r["align-content"]="flex-end";break;case"space-between":r["align-content"]="space-between",r["align-items"]="stretch";break;case"space-around":r["align-content"]="space-around",r["align-items"]="stretch";break;case"baseline":r["align-content"]="stretch",r["align-items"]="baseline";break;default:r["align-items"]=r["align-content"]="stretch"}return Uo(r,{display:i.inline?"inline-flex":"flex","flex-direction":i.layout,"box-sizing":"border-box","max-width":"stretch"===s?Gu(i.layout)?null:"100%":null,"max-height":"stretch"===s&&Gu(i.layout)?"100%":null})}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $W=["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 QW=(()=>{class n extends bn{constructor(e,i,r,o){super(e,r,i,o),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(_t(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(e){const i=this.layout||"row",r=this.inline;"row"===i&&r?this.styleCache=JW:"row"!==i||r?"row-reverse"===i&&r?this.styleCache=t$:"row-reverse"!==i||r?"column"===i&&r?this.styleCache=e$:"column"!==i||r?"column-reverse"===i&&r?this.styleCache=n$:"column-reverse"===i&&!r&&(this.styleCache=XW):this.styleCache=KW:this.styleCache=ZW:this.styleCache=YW,this.addStyles(e,{layout:i,inline:r})}onLayoutChange(e){const i=e.value.split(" ");this.layout=i[0],this.inline=e.value.includes("inline"),np.find(r=>r===this.layout)||(this.layout="row"),this.triggerUpdate()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(dn),f(WW),f(pn))},n.\u0275dir=ge({type:n,features:[De]}),n})(),Qu=(()=>{class n extends QW{constructor(){super(...arguments),this.inputs=$W}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,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:[De]}),n})();const YW=new Map,KW=new Map,ZW=new Map,XW=new Map,JW=new Map,e$=new Map,t$=new Map,n$=new Map;let hI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Ly,xl]]}),n})(),bI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Ly]]}),n})(),SQ=(()=>{class n{constructor(e,i){_l(i)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:_s,useValue:Object.assign(Object.assign({},By),e)},{provide:Vy,useValue:i,multi:!0},{provide:Vl,useValue:!0}]:[{provide:_s,useValue:Object.assign(Object.assign({},By),e)},{provide:Vy,useValue:i,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(ae(Vl),ae(Gi))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[hI,lI,bI],hI,lI,bI]}),n})();function CI(n,t){return t?e=>ku(t.pipe(hn(1),function xQ(){return Le((n,t)=>{n.subscribe(Ge(t,Q))})}()),e.pipe(CI(n))):Rn((e,i)=>n(e,i).pipe(hn(1),ky(e)))}function wI(n,t=If){const e=OT(n,t);return CI(()=>e)}const AQ=["mat-menu-item",""];function MQ(n,t){1&n&&(Jo(),X(0,"svg",2),ot(1,"polygon",3),J())}const EI=["*"];function DQ(n,t){if(1&n){const e=$t();X(0,"div",0),Ve("keydown",function(r){return Ke(e),ye()._handleKeydown(r)})("click",function(){return Ke(e),ye().closed.emit("click")})("@transformMenu.start",function(r){return Ke(e),ye()._onAnimationStart(r)})("@transformMenu.done",function(r){return Ke(e),ye()._onAnimationDone(r)}),X(1,"div",1),Rt(2),J(),J()}if(2&n){const e=ye();oe("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),Mt("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const op={transformMenu:Ur("transformMenu",[Jn("void",jt({opacity:0,transform:"scale(0.8)"})),ni("void => enter",di("120ms cubic-bezier(0, 0, 0.2, 1)",jt({opacity:1,transform:"scale(1)"}))),ni("* => void",di("100ms 25ms linear",jt({opacity:0})))]),fadeInItems:Ur("fadeInItems",[Jn("showing",jt({opacity:1})),ni("void => *",[jt({opacity:0}),di("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},TQ=new ke("MatMenuContent"),qy=new ke("MAT_MENU_PANEL"),IQ=ea(Il(class{}));let Yu=(()=>{class n extends IQ{constructor(e,i,r,o,s){super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=o,this._changeDetectorRef=s,this.role="menuitem",this._hovered=new be,this._focused=new be,this._highlighted=!1,this._triggersSubmenu=!1,o&&o.addItem&&o.addItem(this)}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,i):this._getHostElement().focus(i),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const i=this._elementRef.nativeElement.cloneNode(!0),r=i.querySelectorAll("mat-icon, .material-icons");for(let o=0;o<r.length;o++)r[o].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()}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(it),f(ms),f(qy,8),f(an))},n.\u0275cmp=ht({type:n,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,i){1&e&&Ve("click",function(o){return i._checkDisabled(o)})("mouseenter",function(){return i._handleMouseEnter()}),2&e&&(Mt("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled.toString())("disabled",i.disabled||null),pt("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:[De],attrs:AQ,ngContentSelectors:EI,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&&(zn(),Rt(0),ot(1,"div",0),fe(2,MQ,2,0,"svg",1)),2&e&&(de(1),oe("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),de(1),oe("ngIf",i._triggersSubmenu))},directives:[kl,Wn],encapsulation:2,changeDetection:0}),n})();const SI=new ke("mat-menu-default-options",{providedIn:"root",factory:function OQ(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let kQ=0,Ku=(()=>{class n{constructor(e,i,r){this._elementRef=e,this._ngZone=i,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new rs,this._tabSubscription=S.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new be,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new Ne,this.close=this.closed,this.panelId="mat-menu-panel-"+kQ++}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=gt(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=gt(e)}set panelClass(e){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new oT(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Ai(this._directDescendantItems),vr(e=>Fi(...e.map(i=>i._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Ai(this._directDescendantItems),vr(i=>Fi(...i.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const i=e.keyCode,r=this._keyManager;switch(i){case 27:gr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(38===i||40===i)&&r.setFocusOrigin("keyboard"),r.onKeydown(e)}}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe(hn(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const i=this._keyManager;if(i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const i=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${i}`,o=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));(!o||o===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,i=this.yPosition){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}_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(Ai(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(nt),f(SI))},n.\u0275dir=ge({type:n,contentQueries:function(e,i,r){if(1&e&&(qe(r,TQ,5),qe(r,Yu,5),qe(r,Yu,4)),2&e){let o;Te(o=Ie())&&(i.lazyContent=o.first),Te(o=Ie())&&(i._allItems=o),Te(o=Ie())&&(i.items=o)}},viewQuery:function(e,i){if(1&e&&Bt(lt,5),2&e){let r;Te(r=Ie())&&(i.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),xI=(()=>{class n extends Ku{constructor(e,i,r){super(e,i,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(nt),f(SI))},n.\u0275cmp=ht({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,i){2&e&&Mt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[Lt([{provide:qy,useExisting:n}]),De],ngContentSelectors:EI,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&&(zn(),fe(0,DQ,3,6,"ng-template"))},directives:[Ro],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[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}\n"],encapsulation:2,data:{animation:[op.transformMenu,op.fadeInItems]},changeDetection:0}),n})();const AI=new ke("mat-menu-scroll-strategy"),RQ={provide:AI,deps:[Gr],useFactory:function PQ(n){return()=>n.scrollStrategies.reposition()}},DI=Zs({passive:!0});let FQ=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this._overlay=e,this._element=i,this._viewContainerRef=r,this._menuItemInstance=a,this._dir=l,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=S.EMPTY,this._hoverSubscription=S.EMPTY,this._menuCloseSubscription=S.EMPTY,this._handleTouchStart=u=>{sy(u)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new Ne,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ne,this.onMenuClose=this.menuClosed,this._scrollStrategy=o,this._parentMaterialMenu=s instanceof Ku?s:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,DI),a&&(a._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}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._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,DI),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(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),i=e.getConfig();this._setPosition(i.positionStrategy),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ku&&this.menu._startAnimation()}closeMenu(){this.menu.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){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof Ku?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe(Qt(r=>"void"===r.toState),hn(1),_t(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,i=this.menu.parentMenu;for(;i;)e++,i=i.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Lu({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[i,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[o,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[a,l]=[o,s],[c,u]=[i,r],d=0;this.triggersSubmenu()?(u=i="before"===this.menu.xPosition?"start":"end",r=c="end"===i?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(a="top"===o?"bottom":"top",l="top"===s?"bottom":"top"),e.withPositions([{originX:i,originY:a,overlayX:c,overlayY:o,offsetY:d},{originX:r,originY:a,overlayX:u,overlayY:o,offsetY:d},{originX:i,originY:l,overlayX:c,overlayY:s,offsetY:-d},{originX:r,originY:l,overlayX:u,overlayY:s,offsetY:-d}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),i=this._overlayRef.detachments();return Fi(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:rt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Qt(s=>s!==this._menuItemInstance),Qt(()=>this._menuOpen)):rt(),i)}_handleMousedown(e){oy(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(Qt(e=>e===this._menuItemInstance&&!e.disabled),wI(0,py)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ku&&this.menu._isAnimating?this.menu._animationDone.pipe(hn(1),wI(0,py),_t(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Nu(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(f(Gr),f(Oe),f(Jt),f(AI),f(qy,8),f(Yu,10),f($i,8),f(ms))},n.\u0275dir=ge({type:n,hostVars:3,hostBindings:function(e,i){1&e&&Ve("mousedown",function(o){return i._handleMousedown(o)})("keydown",function(o){return i._handleKeydown(o)})("click",function(o){return i._handleClick(o)}),2&e&&Mt("aria-expanded",i._ariaExpanded)("aria-controls",i._ariaControl)("aria-haspopup",i._ariaHaspopup)},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"}}),n})(),sp=(()=>{class n extends FQ{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275dir=ge({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[De]}),n})(),NQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[RQ],imports:[[Si,wt,Lf,Vu],ta,wt]}),n})(),LQ=(()=>{class n{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=gt(e)}get inset(){return this._inset}set inset(e){this._inset=gt(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ht({type:n,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,i){2&e&&(Mt("aria-orientation",i.vertical?"vertical":"horizontal"),pt("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}\n"],encapsulation:2,changeDetection:0}),n})(),TI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[wt],wt]}),n})();const II=["*"],BQ=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],VQ=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],GQ=Il(ea(class{})),qQ=ea(class{}),kI=new ke("MatList"),WQ=new ke("MatNavList");let $Q=(()=>{class n extends GQ{constructor(e){super(),this._elementRef=e,this._stateChanges=new be,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_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 n.\u0275fac=function(e){return new(e||n)(f(Oe))},n.\u0275cmp=ht({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[Lt([{provide:kI,useExisting:n}]),De,vn],ngContentSelectors:II,decls:1,vars:0,template:function(e,i){1&e&&(zn(),Rt(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.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:transparent;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{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:transparent;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{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 button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}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-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{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}}\n'],encapsulation:2,changeDetection:0}),n})(),Wy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),PI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ge({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),QQ=(()=>{class n extends qQ{constructor(e,i,r,o){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new be,this._disabled=!1,this._isInteractiveList=!!(r||o&&"action-list"===o._getListType()),this._list=r||o;const s=this._getHostElement();"button"===s.nodeName.toLowerCase()&&!s.hasAttribute("type")&&s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(_t(this._destroyed)).subscribe(()=>{i.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=gt(e)}ngAfterContentInit(){!function _T(n,t,e="mat"){n.changes.pipe(Ai(n)).subscribe(({length:i})=>{Pu(t,`${e}-2-line`,!1),Pu(t,`${e}-3-line`,!1),Pu(t,`${e}-multi-line`,!1),2===i||3===i?Pu(t,`${e}-${i}-line`,!0):i>3&&Pu(t,`${e}-multi-line`,!0)})}(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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(an),f(WQ,8),f(kI,8))},n.\u0275cmp=ht({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,i,r){if(1&e&&(qe(r,Wy,5),qe(r,PI,5),qe(r,cy,5)),2&e){let o;Te(o=Ie())&&(i._avatar=o.first),Te(o=Ie())&&(i._icon=o.first),Te(o=Ie())&&(i._lines=o)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,i){2&e&&pt("mat-list-item-disabled",i.disabled)("mat-list-item-avatar",i._avatar||i._icon)("mat-list-item-with-avatar",i._avatar||i._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[De],ngContentSelectors:VQ,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&&(zn(BQ),X(0,"div",0),ot(1,"div",1),Rt(2),X(3,"div",2),Rt(4,1),J(),Rt(5,2),J()),2&e&&(de(1),oe("matRippleTrigger",i._getHostElement())("matRippleDisabled",i._isRippleDisabled()))},directives:[kl],encapsulation:2,changeDetection:0}),n})(),eY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Nf,Lf,wt,dy,Si],Nf,wt,dy,TI]}),n})(),tY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})(),nY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({imports:[[Si,wt,tY,Gf]]}),n})();const ap=q(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"});function NI(){return Le((n,t)=>{let e=null;n._refCount++;const i=Ge(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class iY extends P{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,dt(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,null==t||t.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new S;const e=this.getSubject();t.add(this.source.subscribe(Ge(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=S.EMPTY)}return t}refCount(){return NI()(this)}}function rY(n,t,e,i,r){return(o,s)=>{let a=e,l=t,c=0;o.subscribe(Ge(s,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function LI(n,t){return Le(rY(n,t,arguments.length>=2,!0))}function $y(n){return n<=0?()=>Wr:Le((t,e)=>{let i=[];t.subscribe(Ge(e,r=>{i.push(r),n<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function BI(n=oY){return Le((t,e)=>{let i=!1;t.subscribe(Ge(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function oY(){return new ap}function VI(n){return Le((t,e)=>{let i=!1;t.subscribe(Ge(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function Hl(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Qt((r,o)=>n(r,o,i)):j,hn(1),e?VI(t):BI(()=>new ap))}class Go{constructor(t,e){this.id=t,this.url=e}}class Qy extends Go{constructor(t,e,i="imperative",r=null){super(t,e),this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Zu extends Go{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jI extends Go{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class aY extends Go{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class lY extends Go{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cY extends Go{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uY extends Go{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class dY extends Go{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hY extends Go{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HI{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class UI{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fY{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pY{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mY{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gY{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zI{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const It="primary";class vY{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ul(n){return new vY(n)}const GI="ngNavigationCancelingError";function Yy(n){const t=Error("NavigationCancelingError: "+n);return t[GI]=!0,t}function yY(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=n[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function uo(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!qI(n[r],t[r]))return!1;return!0}function qI(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,o)=>i[o]===r)}return n===t}function WI(n){return Array.prototype.concat.apply([],n)}function $I(n){return n.length>0?n[n.length-1]:null}function ii(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function ho(n){return ah(n)?n:Pc(n)?Qn(Promise.resolve(n)):rt(n)}const wY={exact:function KI(n,t,e){if(!aa(n.segments,t.segments)||!lp(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!KI(n.children[i],t.children[i],e))return!1;return!0},subset:ZI},QI={exact:function EY(n,t){return uo(n,t)},subset:function SY(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>qI(n[e],t[e]))},ignored:()=>!0};function YI(n,t,e){return wY[e.paths](n.root,t.root,e.matrixParams)&&QI[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function ZI(n,t,e){return XI(n,t,t.segments,e)}function XI(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!aa(r,e)||t.hasChildren()||!lp(r,e,i))}if(n.segments.length===e.length){if(!aa(n.segments,e)||!lp(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!ZI(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(aa(n.segments,r)&&lp(n.segments,r,i)&&n.children[It])&&XI(n.children[It],t,o,i)}}function lp(n,t,e){return t.every((i,r)=>QI[e](n[r].parameters,i.parameters))}class sa{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ul(this.queryParams)),this._queryParamMap}toString(){return MY.serialize(this)}}class Pt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ii(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cp(this)}}class Xu{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ul(this.parameters)),this._parameterMap}toString(){return iO(this)}}function aa(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}class JI{}class eO{parse(t){const e=new NY(t);return new sa(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Ju(t.root,!0)}`,i=function IY(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${up(e)}=${up(r)}`).join("&"):`${up(e)}=${up(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function DY(n){return encodeURI(n)}(t.fragment)}`:""}`}}const MY=new eO;function cp(n){return n.segments.map(t=>iO(t)).join("/")}function Ju(n,t){if(!n.hasChildren())return cp(n);if(t){const e=n.children[It]?Ju(n.children[It],!1):"",i=[];return ii(n.children,(r,o)=>{o!==It&&i.push(`${o}:${Ju(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function AY(n,t){let e=[];return ii(n.children,(i,r)=>{r===It&&(e=e.concat(t(i,r)))}),ii(n.children,(i,r)=>{r!==It&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===It?[Ju(n.children[It],!1)]:[`${r}:${Ju(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[It]?`${cp(n)}/${e[0]}`:`${cp(n)}/(${e.join("//")})`}}function tO(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function up(n){return tO(n).replace(/%3B/gi,";")}function Ky(n){return tO(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dp(n){return decodeURIComponent(n)}function nO(n){return dp(n.replace(/\+/g,"%20"))}function iO(n){return`${Ky(n.path)}${function TY(n){return Object.keys(n).map(t=>`;${Ky(t)}=${Ky(n[t])}`).join("")}(n.parameters)}`}const OY=/^[^\/()?;=#]+/;function hp(n){const t=n.match(OY);return t?t[0]:""}const kY=/^[^=?&#]+/,RY=/^[^&#]+/;class NY{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pt([],{}):new Pt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[It]=new Pt(t,e)),i}parseSegment(){const t=hp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Xu(dp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=hp(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=hp(this.remaining);r&&(i=r,this.capture(i))}t[dp(e)]=dp(i)}parseQueryParam(t){const e=function PY(n){const t=n.match(kY);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function FY(n){const t=n.match(RY);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=nO(e),o=nO(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=hp(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let o;i.indexOf(":")>-1?(o=i.substr(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=It);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[It]:new Pt([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class rO{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Zy(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=Zy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return Xy(t,this._root).map(e=>e.value)}}function Zy(n,t){if(n===t.value)return t;for(const e of t.children){const i=Zy(n,e);if(i)return i}return null}function Xy(n,t){if(n===t.value)return[t];for(const e of t.children){const i=Xy(n,e);if(i.length)return i.unshift(t),i}return[]}class qo{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zl(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class oO extends rO{constructor(t,e){super(t),this.snapshot=e,Jy(this,t)}toString(){return this.snapshot.toString()}}function sO(n,t){const e=function LY(n,t){const s=new fp([],{},{},"",{},It,t,null,n.root,-1,{});return new lO("",new qo(s,[]))}(n,t),i=new Dt([new Xu("",{})]),r=new Dt({}),o=new Dt({}),s=new Dt({}),a=new Dt(""),l=new Gl(i,r,s,a,o,It,t,e.root);return l.snapshot=e.root,new oO(new qo(l,[]),e)}class Gl{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ue(t=>Ul(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ue(t=>Ul(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function aO(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function BY(n){return n.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(i))}class fp{constructor(t,e,i,r,o,s,a,l,c,u,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=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=Ul(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ul(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class lO extends rO{constructor(t,e){super(e),this.url=t,Jy(this,e)}toString(){return cO(this._root)}}function Jy(n,t){t.value._routerState=n,t.children.forEach(e=>Jy(n,e))}function cO(n){const t=n.children.length>0?` { ${n.children.map(cO).join(", ")} } `:"";return`${n.value}${t}`}function eb(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,uo(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),uo(t.params,e.params)||n.params.next(e.params),function bY(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!uo(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),uo(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function tb(n,t){const e=uo(n.params,t.params)&&function xY(n,t){return aa(n,t)&&n.every((e,i)=>uo(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||tb(n.parent,t.parent))}function ed(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function jY(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return ed(n,i,r);return ed(n,i)})}(n,t,e);return new qo(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ed(n,a)),s}}const i=function HY(n){return new Gl(new Dt(n.url),new Dt(n.params),new Dt(n.queryParams),new Dt(n.fragment),new Dt(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>ed(n,o));return new qo(i,r)}}function pp(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function td(n){return"object"==typeof n&&null!=n&&n.outlets}function nb(n,t,e,i,r){let o={};return i&&ii(i,(s,a)=>{o[a]=Array.isArray(s)?s.map(l=>`${l}`):`${s}`}),new sa(e.root===n?t:uO(e.root,n,t),o,r)}function uO(n,t,e){const i={};return ii(n.children,(r,o)=>{i[o]=r===t?e:uO(r,t,e)}),new Pt(n.segments,i)}class dO{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&pp(i[0]))throw new Error("Root segment cannot have matrix parameters");const r=i.find(td);if(r&&r!==$I(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ib{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function hO(n,t,e){if(n||(n=new Pt([],{})),0===n.segments.length&&n.hasChildren())return mp(n,t,e);const i=function $Y(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return o;const s=n.segments[r],a=e[i];if(td(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!pO(l,c,s))return o;i+=2}else{if(!pO(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const o=new Pt(n.segments.slice(0,i.pathIndex),{});return o.children[It]=new Pt(n.segments.slice(i.pathIndex),n.children),mp(o,0,r)}return i.match&&0===r.length?new Pt(n.segments,{}):i.match&&!n.hasChildren()?rb(n,t,e):i.match?mp(n,0,r):rb(n,t,e)}function mp(n,t,e){if(0===e.length)return new Pt(n.segments,{});{const i=function WY(n){return td(n[0])?n[0].outlets:{[It]:n}}(e),r={};return ii(i,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=hO(n.children[s],t,o))}),ii(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Pt(n.segments,r)}}function rb(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const o=e[r];if(td(o)){const l=QY(o.outlets);return new Pt(i,l)}if(0===r&&pp(e[0])){i.push(new Xu(n.segments[t].path,fO(e[0]))),r++;continue}const s=td(o)?o.outlets[It]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&pp(a)?(i.push(new Xu(s,fO(a))),r+=2):(i.push(new Xu(s,{})),r++)}return new Pt(i,{})}function QY(n){const t={};return ii(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=rb(new Pt([],{}),0,e))}),t}function fO(n){const t={};return ii(n,(e,i)=>t[i]=`${e}`),t}function pO(n,t,e){return n==e.path&&uo(t,e.parameters)}class KY{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),eb(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=zl(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),ii(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=zl(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=zl(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=zl(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new gY(o.value.snapshot))}),t.children.length&&this.forwardEvent(new pY(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(eb(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),eb(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=function ZY(n){for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),l=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=r,s.resolver=l,s.outlet&&s.outlet.activateWith(r,l),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class ob{constructor(t,e){this.routes=t,this.module=e}}function ys(n){return"function"==typeof n}function la(n){return n instanceof sa}const nd=Symbol("INITIAL_VALUE");function id(){return vr(n=>b1(n.map(t=>t.pipe(hn(1),Ai(nd)))).pipe(LI((t,e)=>{let i=!1;return e.reduce((r,o,s)=>r!==nd?r:(o===nd&&(i=!0),i||!1!==o&&s!==e.length-1&&!la(o)?r:o),t)},nd),Qt(t=>t!==nd),Ue(t=>la(t)?t:!0===t),hn(1)))}class iK{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new rd,this.attachRef=null}}class rd{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new iK,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let mO=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.resolver=r,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Ne,this.deactivateEvents=new Ne,this.attachEvents=new Ne,this.detachEvents=new Ne,this.name=o||It,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){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.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");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 Error("Cannot activate an already activated outlet");this._activatedRoute=e;const s=(i=i||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new rK(e,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(f(rd),f(Jt),f(Pr),So("name"),f(an))},n.\u0275dir=ge({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class rK{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Gl?this.route:t===rd?this.childContexts:this.parent.get(t,e)}}let gO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ht({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,i){1&e&&ot(0,"router-outlet")},directives:[mO],encapsulation:2}),n})();function vO(n,t=""){for(let e=0;e<n.length;e++){const i=n[e];oK(i,sK(t,i))}}function oK(n,t){n.children&&vO(n.children,t)}function sK(n,t){return t?n||t.path?n&&!t.path?`${n}/`:!n&&t.path?t.path:`${n}/${t.path}`:"":n}function sb(n){const t=n.children&&n.children.map(sb),e=t?Object.assign(Object.assign({},n),{children:t}):Object.assign({},n);return!e.component&&(t||e.loadChildren)&&e.outlet&&e.outlet!==It&&(e.component=gO),e}function yr(n){return n.outlet||It}function _O(n,t){const e=n.filter(i=>yr(i)===t);return e.push(...n.filter(i=>yr(i)!==t)),e}const yO={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function gp(n,t,e){var i;if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},yO):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const o=(t.matcher||yY)(e,n,t);if(!o)return Object.assign({},yO);const s={};ii(o.posParams,(l,c)=>{s[c]=l.path});const a=o.consumed.length>0?Object.assign(Object.assign({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:a,positionalParamSegments:null!==(i=o.posParams)&&void 0!==i?i:{}}}function vp(n,t,e,i,r="corrected"){if(e.length>0&&function cK(n,t,e){return e.some(i=>_p(n,t,i)&&yr(i)!==It)}(n,e,i)){const s=new Pt(t,function lK(n,t,e,i){const r={};r[It]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&yr(o)!==It){const s=new Pt([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[yr(o)]=s}return r}(n,t,i,new Pt(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function uK(n,t,e){return e.some(i=>_p(n,t,i))}(n,e,i)){const s=new Pt(n.segments,function aK(n,t,e,i,r,o){const s={};for(const a of i)if(_p(n,e,a)&&!r[yr(a)]){const l=new Pt([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[yr(a)]=l}return Object.assign(Object.assign({},r),s)}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Pt(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function _p(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function bO(n,t,e,i){return!!(yr(n)===i||i!==It&&_p(t,e,n))&&("**"===n.path||gp(t,n,e).matched)}function CO(n,t,e){return 0===t.length&&!n.children[e]}class od{constructor(t){this.segmentGroup=t||null}}class wO{constructor(t){this.urlTree=t}}function yp(n){return new P(t=>t.error(new od(n)))}function EO(n){return new P(t=>t.error(new wO(n)))}function dK(n){return new P(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class pK{constructor(t,e,i,r,o){this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(oo)}apply(){const t=vp(this.urlTree.root,[],[],this.config).segmentGroup,e=new Pt(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,It).pipe(Ue(o=>this.createUrlTree(ab(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Vo(o=>{if(o instanceof wO)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof od?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,It).pipe(Ue(r=>this.createUrlTree(ab(r),t.queryParams,t.fragment))).pipe(Vo(r=>{throw r instanceof od?this.noMatchError(r):r}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const r=t.segments.length>0?new Pt([],{[It]:t}):t;return new sa(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Ue(o=>new Pt([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Qn(r).pipe(Fl(o=>{const s=i.children[o],a=_O(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(Ue(l=>({segment:l,outlet:o})))}),LI((o,s)=>(o[s.outlet]=s.segment,o),{}),function sY(n,t){const e=arguments.length>=2;return i=>i.pipe(n?Qt((r,o)=>n(r,o,i)):j,$y(1),e?VI(t):BI(()=>new ap))}())}expandSegment(t,e,i,r,o,s){return Qn(i).pipe(Fl(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(Vo(c=>{if(c instanceof od)return rt(null);throw c}))),Hl(a=>!!a),Vo((a,l)=>{if(a instanceof ap||"EmptyError"===a.name){if(CO(e,r,o))return rt(new Pt([],{}));throw new od(e)}throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return bO(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):yp(e):yp(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?EO(o):this.lineralizeSegments(i,o).pipe(Rn(s=>{const a=new Pt(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,lastChild:c,positionalParamSegments:u}=gp(e,r,o);if(!a)return yp(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?EO(d):this.lineralizeSegments(r,d).pipe(Rn(h=>this.expandSegment(t,e,i,h.concat(o.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){if("**"===i.path)return i.loadChildren?(i._loadedConfig?rt(i._loadedConfig):this.configLoader.load(t.injector,i)).pipe(Ue(h=>(i._loadedConfig=h,new Pt(r,{})))):rt(new Pt(r,{}));const{matched:s,consumedSegments:a,lastChild:l}=gp(e,i,r);if(!s)return yp(e);const c=r.slice(l);return this.getChildConfig(t,i,r).pipe(Rn(d=>{const h=d.module,m=d.routes,{segmentGroup:I,slicedSegments:$}=vp(e,a,c,m),z=new Pt(I.segments,I.children);if(0===$.length&&z.hasChildren())return this.expandChildren(h,m,z).pipe(Ue(Ee=>new Pt(a,Ee)));if(0===m.length&&0===$.length)return rt(new Pt(a,{}));const re=yr(i)===o;return this.expandSegment(h,z,m,$,re?It:o,!0).pipe(Ue(ve=>new Pt(a.concat(ve.segments),ve.children)))}))}getChildConfig(t,e,i){return e.children?rt(new ob(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?rt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Rn(r=>r?this.configLoader.load(t.injector,e).pipe(Ue(o=>(e._loadedConfig=o,o))):function hK(n){return new P(t=>t.error(Yy(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):rt(new ob([],t))}runCanLoadGuards(t,e,i){const r=e.canLoad;return r&&0!==r.length?rt(r.map(s=>{const a=t.get(s);let l;if(function JY(n){return n&&ys(n.canLoad)}(a))l=a.canLoad(e,i);else{if(!ys(a))throw new Error("Invalid CanLoad guard");l=a(e,i)}return ho(l)})).pipe(id(),ei(s=>{if(!la(s))return;const a=Yy(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Ue(s=>!0===s)):rt(!0)}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return rt(i);if(r.numberOfChildren>1||!r.children[It])return dK(t.redirectTo);r=r.children[It]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new sa(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ii(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return ii(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Pt(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}function ab(n){const t={};for(const i of Object.keys(n.children)){const o=ab(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function mK(n){if(1===n.numberOfChildren&&n.children[It]){const t=n.children[It];return new Pt(n.segments.concat(t.segments),t.children)}return n}(new Pt(n.segments,t))}class SO{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class bp{constructor(t,e){this.component=t,this.route=e}}function vK(n,t,e){const i=n._root;return sd(i,t?t._root:null,e,[i.value])}function Cp(n,t,e){const i=function yK(n){if(!n)return null;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(i?i.module.injector:e).get(n)}function sd(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=zl(t);return n.children.forEach(s=>{(function bK(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function CK(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!aa(n.url,t.url);case"pathParamsOrQueryParamsChange":return!aa(n.url,t.url)||!uo(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tb(n,t)||!uo(n.queryParams,t.queryParams);default:return!tb(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new SO(i)):(o.data=s.data,o._resolvedData=s._resolvedData),sd(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new bp(a.outlet.component,s))}else s&&ad(t,a,r),r.canActivateChecks.push(new SO(i)),sd(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),ii(o,(s,a)=>ad(s,e.getContext(a),r)),r}function ad(n,t,e){const i=zl(n),r=n.value;ii(i,(o,s)=>{ad(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new bp(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}class IK{}function xO(n){return new P(t=>t.error(n))}class kK{constructor(t,e,i,r,o,s){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=s}recognize(){const t=vp(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,It);if(null===e)return null;const i=new fp([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},It,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new qo(i,e),o=new lO(this.url,r);return this.inheritParamsAndData(o._root),o}inheritParamsAndData(t){const e=t.value,i=aO(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=[];for(const o of Object.keys(e.children)){const s=e.children[o],a=_O(t,o),l=this.processSegmentGroup(a,s,o);if(null===l)return null;i.push(...l)}const r=AO(i);return function PK(n){n.sort((t,e)=>t.value.outlet===It?-1:e.value.outlet===It?1:t.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(t,e,i,r){for(const o of t){const s=this.processSegmentAgainstRoute(o,e,i,r);if(null!==s)return s}return CO(e,i,r)?[]:null}processSegmentAgainstRoute(t,e,i,r){if(t.redirectTo||!bO(t,e,i,r))return null;let o,s=[],a=[];if("**"===t.path){const m=i.length>0?$I(i).parameters:{};o=new fp(i,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,TO(t),yr(t),t.component,t,MO(e),DO(e)+i.length,IO(t))}else{const m=gp(e,t,i);if(!m.matched)return null;s=m.consumedSegments,a=i.slice(m.lastChild),o=new fp(s,m.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,TO(t),yr(t),t.component,t,MO(e),DO(e)+s.length,IO(t))}const l=function RK(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:u}=vp(e,s,a,l.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const m=this.processChildren(l,c);return null===m?null:[new qo(o,m)]}if(0===l.length&&0===u.length)return[new qo(o,[])];const d=yr(t)===r,h=this.processSegment(l,c,u,d?It:r);return null===h?null:[new qo(o,h)]}}function FK(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function AO(n){const t=[],e=new Set;for(const i of n){if(!FK(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=AO(i.children);t.push(new qo(i.value,r))}return t.filter(i=>!e.has(i))}function MO(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function DO(n){let t=n,e=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift?t._segmentIndexShift:0;return e-1}function TO(n){return n.data||{}}function IO(n){return n.resolve||{}}function lb(n){return vr(t=>{const e=n(t);return e?Qn(e).pipe(Ue(()=>t)):rt(t)})}class zK extends class UK{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const cb=new ke("ROUTES");class OO{constructor(t,e,i,r){this.injector=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=r}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe(Ue(o=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=o.create(t);return new ob(WI(s.injector.get(cb,void 0,tt.Self|tt.Optional)).map(sb),s)}),Vo(o=>{throw e._loader$=void 0,o}));return e._loader$=new iY(r,()=>new be).pipe(NI()),e._loader$}loadModuleFactory(t){return ho(t()).pipe(Rn(e=>e instanceof bS?rt(e):Qn(this.compiler.compileModuleAsync(e))))}}class qK{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function WK(n){throw n}function $K(n,t,e){return t.parse("/")}function kO(n,t){return rt(null)}const QK={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},YK={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ki=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new be,this.errorHandler=WK,this.malformedUriErrorHandler=$K,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:kO,afterPreactivation:kO},this.urlHandlingStrategy=new qK,this.routeReuseStrategy=new zK,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(oo),this.console=s.get(bh);const d=s.get(nt);this.isNgZoneEnabled=d instanceof nt&&nt.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function CY(){return new sa(new Pt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new OO(s,a,h=>this.triggerEvent(new HI(h)),h=>this.triggerEvent(new UI(h))),this.routerState=sO(this.currentUrlTree,this.rootComponentType),this.transitions=new Dt({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(Qt(r=>0!==r.id),Ue(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),vr(r=>{let o=!1,s=!1;return rt(r).pipe(ei(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),vr(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 wp(a.source)&&(this.browserUrlTree=a.extractedUrl),rt(a).pipe(vr(d=>{const h=this.transitions.getValue();return i.next(new Qy(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Wr:Promise.resolve(d)}),function gK(n,t,e,i){return vr(r=>function fK(n,t,e,i,r){return new pK(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(Ue(o=>Object.assign(Object.assign({},r),{urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ei(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function NK(n,t,e,i,r){return Rn(o=>function OK(n,t,e,i,r="emptyOnly",o="legacy"){try{const s=new kK(n,t,e,i,r,o).recognize();return null===s?xO(new IK):rt(s)}catch(s){return xO(s)}}(n,t,o.urlAfterRedirects,e(o.urlAfterRedirects),i,r).pipe(Ue(s=>Object.assign(Object.assign({},o),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ei(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const m=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(m,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new lY(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:m,source:I,restoredState:$,extras:z}=a,re=new Qy(h,this.serializeUrl(m),I,$);i.next(re);const se=sO(m,this.rootComponentType).snapshot;return rt(Object.assign(Object.assign({},a),{targetSnapshot:se,urlAfterRedirects:m,extras:Object.assign(Object.assign({},z),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),Wr}),lb(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:m}}=a;return this.hooks.beforePreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!m})}),ei(a=>{const l=new cY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Ue(a=>Object.assign(Object.assign({},a),{guards:vK(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function wK(n,t){return Rn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?rt(Object.assign(Object.assign({},e),{guardsResult:!0})):function EK(n,t,e,i){return Qn(n).pipe(Rn(r=>function TK(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?rt(o.map(a=>{const l=Cp(a,t,r);let c;if(function nK(n){return n&&ys(n.canDeactivate)}(l))c=ho(l.canDeactivate(n,t,e,i));else{if(!ys(l))throw new Error("Invalid CanDeactivate guard");c=ho(l(n,t,e,i))}return c.pipe(Hl())})).pipe(id()):rt(!0)}(r.component,r.route,e,t,i)),Hl(r=>!0!==r,!0))}(s,i,r,n).pipe(Rn(a=>a&&function XY(n){return"boolean"==typeof n}(a)?function SK(n,t,e,i){return Qn(t).pipe(Fl(r=>ku(function AK(n,t){return null!==n&&t&&t(new fY(n)),rt(!0)}(r.route.parent,i),function xK(n,t){return null!==n&&t&&t(new mY(n)),rt(!0)}(r.route,i),function DK(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function _K(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>qf(()=>rt(s.guards.map(l=>{const c=Cp(l,s.node,e);let u;if(function tK(n){return n&&ys(n.canActivateChild)}(c))u=ho(c.canActivateChild(i,n));else{if(!ys(c))throw new Error("Invalid CanActivateChild guard");u=ho(c(i,n))}return u.pipe(Hl())})).pipe(id())));return rt(o).pipe(id())}(n,r.path,e),function MK(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return rt(!0);const r=i.map(o=>qf(()=>{const s=Cp(o,t,e);let a;if(function eK(n){return n&&ys(n.canActivate)}(s))a=ho(s.canActivate(t,n));else{if(!ys(s))throw new Error("Invalid CanActivate guard");a=ho(s(t,n))}return a.pipe(Hl())}));return rt(r).pipe(id())}(n,r.route,e))),Hl(r=>!0!==r,!0))}(i,o,n,t):rt(a)),Ue(a=>Object.assign(Object.assign({},e),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ei(a=>{if(la(a.guardsResult)){const c=Yy(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw c.url=a.guardsResult,c}const l=new uY(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Qt(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),lb(a=>{if(a.guards.canActivateChecks.length)return rt(a).pipe(ei(l=>{const c=new dY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),vr(l=>{let c=!1;return rt(l).pipe(function LK(n,t){return Rn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return rt(e);let o=0;return Qn(r).pipe(Fl(s=>function BK(n,t,e,i){return function VK(n,t,e,i){const r=Object.keys(n);if(0===r.length)return rt({});const o={};return Qn(r).pipe(Rn(s=>function jK(n,t,e,i){const r=Cp(n,t,i);return ho(r.resolve?r.resolve(t,e):r(t,e))}(n[s],t,e,i).pipe(ei(a=>{o[s]=a}))),$y(1),Rn(()=>Object.keys(o).length===r.length?rt(o):Wr))}(n._resolve,n,t,i).pipe(Ue(o=>(n._resolvedData=o,n.data=Object.assign(Object.assign({},n.data),aO(n,e).resolve),null)))}(s.route,i,n,t)),ei(()=>o++),$y(1),Rn(s=>o===r.length?rt(e):Wr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ei({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),ei(l=>{const c=new hY(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),lb(a=>{const{targetSnapshot:l,id:c,extractedUrl:u,rawUrl:d,extras:{skipLocationChange:h,replaceUrl:m}}=a;return this.hooks.afterPreactivation(l,{navigationId:c,appliedUrlTree:u,rawUrlTree:d,skipLocationChange:!!h,replaceUrl:!!m})}),Ue(a=>{const l=function VY(n,t,e){const i=ed(n,t._root,e?e._root:void 0);return new oO(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:l})}),ei(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)}),((n,t,e)=>Ue(i=>(new KY(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ei({next(){o=!0},complete(){o=!0}}),ZT(()=>{var a;o||s||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===r.id&&(this.currentNavigation=null)}),Vo(a=>{if(s=!0,function _Y(n){return n&&n[GI]}(a)){const l=la(a.url);l||(this.navigated=!0,this.restoreHistory(r,!0));const c=new jI(r.id,this.serializeUrl(r.extractedUrl),a.message);i.next(c),l?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||wp(r.source)};this.scheduleNavigation(u,"imperative",null,d,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new aY(r.id,this.serializeUrl(r.extractedUrl),a);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Wr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{var r;const o={replaceUrl:!0},s=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(s){const l=Object.assign({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(e.url);this.scheduleNavigation(a,i,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){vO(e),this.config=e.map(sb),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),function UY(n,t,e,i,r){if(0===e.length)return nb(t.root,t.root,t,i,r);const o=function zY(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new dO(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return ii(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new dO(e,t,i)}(e);if(o.toRoot())return nb(t.root,new Pt([],{}),t,i,r);const s=function GY(n,t,e){if(n.isAbsolute)return new ib(t.root,!0,0);if(-1===e.snapshot._lastPathIndex){const o=e.snapshot._urlSegment;return new ib(o,o===t.root,0)}const i=pp(n.commands[0])?0:1;return function qY(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ib(i,!1,r-o)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+i,n.numberOfDoubleDots)}(o,t,n),a=s.processChildren?mp(s.segmentGroup,s.index,o.commands):hO(s.segmentGroup,s.index,o.commands);return nb(s.segmentGroup,a,t,i,r)}(c,this.currentUrlTree,e,d,null!=u?u:null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=la(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function KK(n){for(let t=0;t<n.length;t++){const e=n[t];if(null==e)throw new Error(`The requested path contains ${e} segment at index ${t}`)}}(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(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?Object.assign({},QK):!1===i?Object.assign({},YK):i,la(e))return YI(this.currentUrlTree,e,r);const o=this.parseUrl(e);return YI(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Zu(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){var a,l,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,d=wp(i)&&u&&!wp(u.source),h=u.rawUrl.toString()===e.toString(),m=u.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&h&&m)return Promise.resolve(!0);let $,z,re;s?($=s.resolve,z=s.reject,re=s.promise):re=new Promise((Ee,Pe)=>{$=Ee,z=Pe});const se=++this.navigationId;let ve;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),ve=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):ve=0,this.setTransition({id:se,targetPageId:ve,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:$,reject:z,promise:re,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),re.catch(Ee=>Promise.reject(Ee))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},i.extras.state),this.generateNgRouterState(i.id,i.targetPageId));this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){var r,o;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i){const r=new jI(e.id,this.serializeUrl(e.extractedUrl),i);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Ja()},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function wp(n){return"imperative"!==n}class PO{}class RO{preload(t,e){return rt(null)}}let FO=(()=>{class n{constructor(e,i,r,o){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=new OO(r,i,l=>e.triggerEvent(new HI(l)),l=>e.triggerEvent(new UI(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qt(e=>e instanceof Zu),Fl(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(oo);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i)if(o.loadChildren&&!o.canLoad&&o._loadedConfig){const s=o._loadedConfig;r.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?r.push(this.preloadConfig(e,o)):o.children&&r.push(this.processRoutes(e,o.children));return Qn(r).pipe(Jl(),Ue(o=>{}))}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>(i._loadedConfig?rt(i._loadedConfig):this.loader.load(e.injector,i)).pipe(Rn(o=>(i._loadedConfig=o,this.processRoutes(o.module,o.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(ae(Ki),ae(Ch),ae(At),ae(PO))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),hb=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Qy?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Zu&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zI&&(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 zI(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Ja()},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();const ca=new ke("ROUTER_CONFIGURATION"),NO=new ke("ROUTER_FORROOT_GUARD"),eZ=[ru,{provide:JI,useClass:eO},{provide:Ki,useFactory:function sZ(n,t,e,i,r,o,s={},a,l){const c=new Ki(null,n,t,e,i,r,WI(o));return a&&(c.urlHandlingStrategy=a),l&&(c.routeReuseStrategy=l),function aZ(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,c),s.enableTracing&&c.events.subscribe(u=>{var d,h;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(h=console.groupEnd)||void 0===h||h.call(console)}),c},deps:[JI,rd,ru,At,Ch,cb,ca,[class GK{},new Kn],[class HK{},new Kn]]},rd,{provide:Gl,useFactory:function lZ(n){return n.routerState.root},deps:[Ki]},FO,RO,class JK{preload(t,e){return e().pipe(Vo(()=>rt(null)))}},{provide:ca,useValue:{enableTracing:!1}}];function tZ(){return new tv("Router",Ki)}let nZ=(()=>{class n{constructor(e,i){}static forRoot(e,i){return{ngModule:n,providers:[eZ,LO(e),{provide:NO,useFactory:oZ,deps:[[Ki,new Kn,new xo]]},{provide:ca,useValue:i||{}},{provide:gl,useFactory:rZ,deps:[zs,[new ka(Nh),new Kn],ca]},{provide:hb,useFactory:iZ,deps:[Ki,GH,ca]},{provide:PO,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:RO},{provide:tv,multi:!0,useFactory:tZ},[fb,{provide:qc,multi:!0,useFactory:cZ,deps:[fb]},{provide:BO,useFactory:uZ,deps:[fb]},{provide:$g,multi:!0,useExisting:BO}]]}}static forChild(e){return{ngModule:n,providers:[LO(e)]}}}return n.\u0275fac=function(e){return new(e||n)(ae(NO,8),ae(Ki,8))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})();function iZ(n,t,e){return e.scrollOffset&&t.setOffset(e.scrollOffset),new hb(n,t,e)}function rZ(n,t,e={}){return e.useHash?new O4(n,t):new uA(n,t)}function oZ(n){return"guarded"}function LO(n){return[{provide:ZP,multi:!0,useValue:n},{provide:cb,multi:!0,useValue:n}]}let fb=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new be}appInitializer(){return this.injector.get(D4,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let i=null;const r=new Promise(a=>i=a),o=this.injector.get(Ki),s=this.injector.get(ca);return"disabled"===s.initialNavigation?(o.setUpLocationChangeListener(),i(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(o.hooks.afterPreactivation=()=>this.initNavigation?rt(null):(this.initNavigation=!0,i(!0),this.resultOfPreactivationDone),o.initialNavigation()):i(!0),r})}bootstrapListener(e){const i=this.injector.get(ca),r=this.injector.get(FO),o=this.injector.get(hb),s=this.injector.get(Ki),a=this.injector.get(os);e===a.components[0]&&(("enabledNonBlocking"===i.initialNavigation||void 0===i.initialNavigation)&&s.initialNavigation(),r.setUpPreloading(),o.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(ae(At))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})();function cZ(n){return n.appInitializer.bind(n)}function uZ(n){return n.bootstrapListener.bind(n)}const BO=new ke("Router Initializer");var ua=H(9795);function VO(n,t){if(Array.prototype.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e;return-1}function da(n,t){for(var e=n.length-1;e>=0;e--)!0===t(n[e])&&n.splice(e,1)}function jO(n){throw new Error("Unhandled case for value: '"+n+"'")}var pb=function(){function n(t){void 0===t&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return n.prototype.setTagName=function(t){return this.tagName=t,this},n.prototype.getTagName=function(){return this.tagName||""},n.prototype.setAttr=function(t,e){return this.getAttrs()[t]=e,this},n.prototype.getAttr=function(t){return this.getAttrs()[t]},n.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},n.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},n.prototype.setClass=function(t){return this.setAttr("class",t)},n.prototype.addClass=function(t){for(var s,e=this.getClass(),i=this.whitespaceRegex,r=e?e.split(i):[],o=t.split(i);s=o.shift();)-1===VO(r,s)&&r.push(s);return this.getAttrs().class=r.join(" "),this},n.prototype.removeClass=function(t){for(var s,e=this.getClass(),i=this.whitespaceRegex,r=e?e.split(i):[],o=t.split(i);r.length&&(s=o.shift());){var a=VO(r,s);-1!==a&&r.splice(a,1)}return this.getAttrs().class=r.join(" "),this},n.prototype.getClass=function(){return this.getAttrs().class||""},n.prototype.hasClass=function(t){return-1!==(" "+this.getClass()+" ").indexOf(" "+t+" ")},n.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},n.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},n.prototype.getInnerHTML=function(){return this.innerHTML||""},n.prototype.getInnerHtml=function(){return this.getInnerHTML()},n.prototype.toAnchorString=function(){var t=this.getTagName(),e=this.buildAttrsStr();return["<",t,e=e?" "+e:"",">",this.getInnerHtml(),"</",t,">"].join("")},n.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i+'="'+t[i]+'"');return e.join(" ")},n}(),HO=function(){function n(t){void 0===t&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return n.prototype.build=function(t){return new pb({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},n.prototype.createAttrs=function(t){var e={href:t.getAnchorHref()},i=this.createCssClass(t);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(e.title=t.getAnchorHref()),e},n.prototype.createCssClass=function(t){var e=this.className;if(e){for(var i=[e],r=t.getCssClassSuffixes(),o=0,s=r.length;o<s;o++)i.push(e+"-"+r[o]);return i.join(" ")}return""},n.prototype.processAnchorText=function(t){return this.doTruncate(t)},n.prototype.doTruncate=function(t){var e=this.truncate;if(!e||!e.length)return t;var i=e.length,r=e.location;return"smart"===r?function mZ(n,t,e){var i,r;null==e?(e="…",r=3,i=8):(r=e.length,i=e.length);var s=function(se){var ve="";return se.scheme&&se.host&&(ve+=se.scheme+"://"),se.host&&(ve+=se.host),se.path&&(ve+="/"+se.path),se.query&&(ve+="?"+se.query),se.fragment&&(ve+="#"+se.fragment),ve},a=function(se,ve){var Ee=ve/2,Pe=Math.ceil(Ee),Qe=-1*Math.floor(Ee),ct="";return Qe<0&&(ct=se.substr(Qe)),se.substr(0,Pe)+e+ct};if(n.length<=t)return n;var ve,Ee,Pe,l=t-r,c=(ve={},(Pe=(Ee=n).match(/^([a-z]+):\/\//i))&&(ve.scheme=Pe[1],Ee=Ee.substr(Pe[0].length)),(Pe=Ee.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(ve.host=Pe[1],Ee=Ee.substr(Pe[0].length)),(Pe=Ee.match(/^\/(.*?)(?=(\?|#|$))/i))&&(ve.path=Pe[1],Ee=Ee.substr(Pe[0].length)),(Pe=Ee.match(/^\?(.*?)(?=(#|$))/i))&&(ve.query=Pe[1],Ee=Ee.substr(Pe[0].length)),(Pe=Ee.match(/^#(.*?)$/i))&&(ve.fragment=Pe[1]),ve);if(c.query){var u=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(c.query=c.query.substr(0,u[1].length),n=s(c))}if(n.length<=t||(c.host&&(c.host=c.host.replace(/^www\./,""),n=s(c)),n.length<=t))return n;var d="";if(c.host&&(d+=c.host),d.length>=l)return c.host.length==t?(c.host.substr(0,t-r)+e).substr(0,l+i):a(d,l).substr(0,l+i);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h){if((d+h).length>=l)return(d+h).length==t?(d+h).substr(0,t):(d+a(h,l-d.length)).substr(0,l+i);d+=h}if(c.fragment){var I="#"+c.fragment;if((d+I).length>=l)return(d+I).length==t?(d+I).substr(0,t):(d+a(I,l-d.length)).substr(0,l+i);d+=I}if(c.scheme&&c.host){var z=c.scheme+"://";if((d+z).length<l)return(z+d).substr(0,t)}if(d.length<=t)return d;var re="";return l>0&&(re=d.substr(-1*Math.floor(l/2))),(d.substr(0,Math.ceil(l/2))+e+re).substr(0,l+i)}(t,i):"middle"===r?function gZ(n,t,e){if(n.length<=t)return n;var i,r;null==e?(e="…",i=8,r=3):(i=e.length,r=e.length);var o=t-r,s="";return o>0&&(s=n.substr(-1*Math.floor(o/2))),(n.substr(0,Math.ceil(o/2))+e+s).substr(0,o+i)}(t,i):function vZ(n,t,e){return function fZ(n,t,e){var i;return n.length>t&&(null==e?(e="…",i=3):i=e.length,n=n.substring(0,t-i)+e),n}(n,t,e)}(t,i)},n}(),Wl=function(){function n(t){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return n.prototype.getMatchedText=function(){return this.matchedText},n.prototype.setOffset=function(t){this.offset=t},n.prototype.getOffset=function(){return this.offset},n.prototype.getCssClassSuffixes=function(){return[this.getType()]},n.prototype.buildTag=function(){return this.tagBuilder.build(this)},n}(),mb=function(n,t){return(mb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])})(n,t)};function fo(n,t){function e(){this.constructor=n}mb(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var e,Tn=function(){return Tn=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Tn.apply(this,arguments)},zO=function(n){function t(e){var i=n.call(this,e)||this;return i.email="",i.email=e.email,i}return fo(t,n),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(Wl),GO=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return fo(t,n),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.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;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(Wl),qO=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return fo(t,n),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.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;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var e=n.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},t}(Wl),WO=function(n){function t(e){var i=n.call(this,e)||this;return i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return fo(t,n),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(Wl),$O=function(n){function t(e){var i=n.call(this,e)||this;return i.url="",i.urlMatchType="scheme",i.protocolUrlMatch=!1,i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.schemePrefixRegex=/^(https?:\/\/)?/i,i.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,i.protocolRelativeRegex=/^\/\//,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolUrlMatch=e.protocolUrlMatch,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return fo(t,n),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var i=e.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(i)}catch(r){return i}},t}(Wl),$l=function n(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder},gb=/[A-Za-z]/,yZ=/[\d]/,bZ=/[\D]/,ha=/\s/,vb=/['"]/,CZ=/[\x00-\x1F\x7F]/,QO=/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,YO=QO+/\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,Sp=/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,SZ=YO+Sp,Cn=YO+Sp,xZ="(?:["+Sp+"]{1,3}\\.){3}["+Sp+"]{1,3}",AZ="["+Cn+"](?:["+Cn+"\\-]{0,61}["+Cn+"])?",KO=function(n){return"(?=("+AZ+"))\\"+n},_b=function(n){return"(?:"+KO(n)+"(?:\\."+KO(n+1)+"){0,126}|"+xZ+")"},xp=(new RegExp("["+Cn+".\\-]*["+Cn+"\\-]"),new RegExp("["+Cn+"]")),ZO=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|spreadbetting|travelchannel|wolterskluwer|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|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|rightathome|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--estv75g|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--kpu716f|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pbt977c|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|nationwide|newholland|nextdirect|onyourside|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|telefonica|university|vistaprint|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--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|fujixerox|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|honeywell|institute|insurance|kuokgroup|ladbrokes|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|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--tckwe|xn--vhquv|yodobashi|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|chrysler|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|esurance|etisalat|everbank|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|movistar|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|symantec|training|uconnect|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|cartier|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|iselect|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lancome|lanxess|lasalle|latrobe|leclerc|liaison|limited|lincoln|markets|metlife|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|shriram|singles|staples|starhub|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\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|\u0645\u0648\u0628\u0627\u064a\u0644\u064a|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|active|africa|agency|airbus|airtel|alipay|alsace|alstom|anquan|aramco|author|bayern|beauty|berlin|bharti|blanco|bostik|boston|broker|camera|career|caseih|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|mobily|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|piaget|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|warman|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|dodge|drive|dubai|earth|edeka|email|epost|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|intel|irish|iveco|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|lupin|macys|mango|media|miami|money|mopar|movie|nadex|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|zippo|\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|aigo|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|doha|duck|duns|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|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|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scor|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|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u5927\u4f17\u6c7d\u8f66|\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|bnl|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceb|ceo|cfa|cfd|com|crs|csc|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|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|jcp|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|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|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|srl|srt|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|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\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|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|\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|\u5de5\u884c|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u624b\u8868|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u73e0\u5b9d|\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)/,MZ=new RegExp("["+Cn+"!#$%&'*+/=?^_`{|}~-]"),DZ=new RegExp("^"+ZO.source+"$"),XO=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.localPartCharRegex=MZ,e.strictTldRegex=DZ,e}return fo(t,n),t.prototype.parseMatches=function(e){for(var i=this.tagBuilder,r=this.localPartCharRegex,o=this.strictTldRegex,s=[],a=e.length,l=new Ap,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},u=0,d=0,h=l;u<a;){var m=e.charAt(u);switch(d){case 0:"m"===(We=m)?Qe(1):r.test(We)&&Qe();break;case 1:$(e.charAt(u-1),m);break;case 2:z(m);break;case 3:re(m);break;case 4:se(m);break;case 5:ve(m);break;case 6:Ee(m);break;case 7:Pe(m);break;default:jO(d)}u++}var We;return en(),s;function $(We,on){":"===We?r.test(on)?(d=2,h=new Ap(Tn(Tn({},h),{hasMailtoPrefix:!0}))):ct():c[We]===on||(r.test(on)?d=2:"."===on?d=3:"@"===on?d=4:ct())}function z(We){"."===We?d=3:"@"===We?d=4:r.test(We)||ct()}function re(We){"."===We||"@"===We?ct():r.test(We)?d=2:ct()}function se(We){xp.test(We)?d=5:ct()}function ve(We){"."===We?d=7:"-"===We?d=6:xp.test(We)||en()}function Ee(We){"-"===We||"."===We?en():xp.test(We)?d=5:en()}function Pe(We){"."===We||"-"===We?en():xp.test(We)?(d=5,h=new Ap(Tn(Tn({},h),{hasDomainDot:!0}))):en()}function Qe(We){void 0===We&&(We=2),d=We,h=new Ap({idx:u})}function ct(){d=0,h=l}function en(){if(h.hasDomainDot){var We=e.slice(h.idx,u);/[-.]$/.test(We)&&(We=We.slice(0,-1));var on=h.hasMailtoPrefix?We.slice(7):We;(function Xi(Ji){var mo=(Ji.split(".").pop()||"").toLowerCase();return o.test(mo)})(on)&&s.push(new zO({tagBuilder:i,matchedText:We,offset:h.idx,email:on}))}ct()}},t}($l),Ap=function n(t){void 0===t&&(t={}),this.idx=void 0!==t.idx?t.idx:-1,this.hasMailtoPrefix=!!t.hasMailtoPrefix,this.hasDomainDot=!!t.hasDomainDot},TZ=function(){function n(){}return n.isValid=function(t,e){return!(e&&!this.isValidUriScheme(e)||this.urlMatchDoesNotHaveProtocolOrDot(t,e)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,e)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},n.isValidIpAddress=function(t){var e=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==t.match(e)},n.containsMultipleDots=function(t){var e=t;return this.hasFullProtocolRegex.test(t)&&(e=t.split("://")[1]),e.split("/")[0].indexOf("..")>-1},n.isValidUriScheme=function(t){var e=t.match(this.uriSchemeRegex),i=e&&e[0].toLowerCase();return"javascript:"!==i&&"vbscript:"!==i},n.urlMatchDoesNotHaveProtocolOrDot=function(t,e){return!(!t||e&&this.hasFullProtocolRegex.test(e)||-1!==t.indexOf("."))},n.urlMatchDoesNotHaveAtLeastOneWordChar=function(t,e){return!(!t||!e||this.hasFullProtocolRegex.test(e)||this.hasWordCharAfterProtocolRegex.test(t))},n.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,n.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,n.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+QO+"]"),n.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,n}(),IZ=(e=new RegExp("[/?#](?:["+Cn+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^\u2713]*["+Cn+"\\-+&@#/%=~_()|'$*\\[\\]{}\u2713])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,_b(2),")","|","(","(//)?",/(?:www\.)/.source,_b(6),")","|","(","(//)?",_b(10)+"\\.",ZO.source,"(?![-"+SZ+"])",")",")","(?::[0-9]+)?","(?:"+e.source+")?"].join(""),"gi")),OZ=new RegExp("["+Cn+"]"),JO=function(n){function t(e){var i=n.call(this,e)||this;return i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.matcherRegex=IZ,i.wordCharRegExp=OZ,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return fo(t,n),t.prototype.parseMatches=function(e){for(var c,i=this.matcherRegex,r=this.stripPrefix,o=this.stripTrailingSlash,s=this.decodePercentEncoding,a=this.tagBuilder,l=[],u=function(){var h=c[0],m=c[1],I=c[4],re=c.index,se=c[5]||c[9],ve=e.charAt(re-1);if(!TZ.isValid(h,m)||re>0&&"@"===ve||re>0&&se&&d.wordCharRegExp.test(ve))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),d.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var Ee=d.matchHasInvalidCharAfterTld(h,m);Ee>-1&&(h=h.substr(0,Ee))}var Pe=["http://","https://"].find(function(We){return!!m&&-1!==m.indexOf(We)});if(Pe){var Qe=h.indexOf(Pe);h=h.substr(Qe),m=m.substr(Qe),re+=Qe}l.push(new $O({tagBuilder:a,matchedText:h,offset:re,urlMatchType:m?"scheme":I?"www":"tld",url:h,protocolUrlMatch:!!m,protocolRelativeMatch:!!se,stripPrefix:r,stripTrailingSlash:o,decodePercentEncoding:s}))},d=this;null!==(c=i.exec(e));)u();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var r,i=e.charAt(e.length-1);if(")"===i)r="(";else if("]"===i)r="[";else{if("}"!==i)return!1;r="{"}for(var o=0,s=0,a=e.length-1;s<a;s++){var l=e.charAt(s);l===r?o++:l===i&&(o=Math.max(o-1,0))}return 0===o},t.prototype.matchHasInvalidCharAfterTld=function(e,i){if(!e)return-1;var r=0;i&&(r=e.indexOf(":"),e=e.slice(r));var s=new RegExp("^((.?//)?[-."+Cn+"]*[-"+Cn+"]\\.[-"+Cn+"]+)").exec(e);return null===s?-1:(r+=s[1].length,e=e.slice(s[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?r:-1)},t}($l),kZ=new RegExp("#[_"+Cn+"]{1,139}(?![_"+Cn+"])","g"),PZ=new RegExp("[^"+Cn+"]"),ek=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.matcherRegex=kZ,i.nonWordCharRegex=PZ,i.serviceName=e.serviceName,i}return fo(t,n),t.prototype.parseMatches=function(e){for(var l,i=this.matcherRegex,r=this.nonWordCharRegex,o=this.serviceName,s=this.tagBuilder,a=[];null!==(l=i.exec(e));){var c=l.index,u=e.charAt(c-1);if(0===c||r.test(u)){var d=l[0],h=l[0].slice(1);a.push(new GO({tagBuilder:s,matchedText:d,offset:c,serviceName:o,hashtag:h}))}}return a},t}($l),NZ=new RegExp(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\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)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source+"|"+/(0([1-9]{1}-?[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,"g"),tk=function(n){function t(){var e=null!==n&&n.apply(this,arguments)||this;return e.matcherRegex=NZ,e}return fo(t,n),t.prototype.parseMatches=function(e){for(var s,i=this.matcherRegex,r=this.tagBuilder,o=[];null!==(s=i.exec(e));){var a=s[0],l=a.replace(/[^0-9,;#]/g,""),c=!(!s[1]&&!s[2]),u=0==s.index?"":e.substr(s.index-1,1),d=e.substr(s.index+a.length,1),h=!u.match(/\d/)&&!d.match(/\d/);this.testMatch(s[3])&&this.testMatch(a)&&h&&o.push(new WO({tagBuilder:r,matchedText:a,offset:s.index,number:l,plusSign:c}))}return o},t.prototype.testMatch=function(e){return bZ.test(e)},t}($l),LZ=new RegExp("@[_"+Cn+"]{1,50}(?![_"+Cn+"])","g"),BZ=new RegExp("@[_."+Cn+"]{1,30}(?![_"+Cn+"])","g"),VZ=new RegExp("@[-_."+Cn+"]{1,50}(?![-_"+Cn+"])","g"),jZ=new RegExp("[^"+Cn+"]"),nk=function(n){function t(e){var i=n.call(this,e)||this;return i.serviceName="twitter",i.matcherRegexes={twitter:LZ,instagram:BZ,soundcloud:VZ},i.nonWordCharRegex=jZ,i.serviceName=e.serviceName,i}return fo(t,n),t.prototype.parseMatches=function(e){var l,i=this.serviceName,r=this.matcherRegexes[this.serviceName],o=this.nonWordCharRegex,s=this.tagBuilder,a=[];if(!r)return a;for(;null!==(l=r.exec(e));){var c=l.index,u=e.charAt(c-1);if(0===c||o.test(u)){var d=l[0].replace(/\.+$/g,""),h=d.slice(1);a.push(new qO({tagBuilder:s,matchedText:d,offset:c,serviceName:i,mention:h}))}}return a},t}($l);var po=function n(t){void 0===t&&(t={}),this.idx=void 0!==t.idx?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing},UZ=function(){function n(t){void 0===t&&(t={}),this.version=n.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.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&"twitter"!==e&&"instagram"!==e&&"soundcloud"!==e)throw new Error("invalid `mention` cfg - see docs");var i=this.hashtag;if(!1!==i&&"twitter"!==i&&"facebook"!==i&&"instagram"!==i)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return n.link=function(t,e){return new n(e).link(t)},n.parse=function(t,e){return new n(e).parse(t)},n.prototype.normalizeUrlsCfg=function(t){return null==t&&(t=!0),"boolean"==typeof t?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:"boolean"!=typeof t.schemeMatches||t.schemeMatches,wwwMatches:"boolean"!=typeof t.wwwMatches||t.wwwMatches,tldMatches:"boolean"!=typeof t.tldMatches||t.tldMatches}},n.prototype.normalizeStripPrefixCfg=function(t){return null==t&&(t=!0),"boolean"==typeof t?{scheme:t,www:t}:{scheme:"boolean"!=typeof t.scheme||t.scheme,www:"boolean"!=typeof t.www||t.www}},n.prototype.normalizeTruncateCfg=function(t){return"number"==typeof t?{length:t,location:"end"}:function hZ(n,t){for(var e in t)t.hasOwnProperty(e)&&void 0===n[e]&&(n[e]=t[e]);return n}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},n.prototype.parse=function(t){var e=this,i=["a","style","script"],r=0,o=[];return function HZ(n,t){for(var e=t.onOpenTag,i=t.onCloseTag,r=t.onText,o=t.onComment,s=t.onDoctype,a=new po,l=0,c=n.length,u=0,d=0,h=a;l<c;){var m=n.charAt(l);switch(u){case 0:"<"===m&&Kt();break;case 1:"!"===(Re=m)?u=13:"/"===Re?(u=2,h=new po(Tn(Tn({},h),{isClosing:!0}))):"<"===Re?Kt():gb.test(Re)?(u=3,h=new po(Tn(Tn({},h),{isOpening:!0}))):(u=0,h=a);break;case 2:re(m);break;case 3:z(m);break;case 4:se(m);break;case 5:ve(m);break;case 6:Ee(m);break;case 7:Pe(m);break;case 8:Qe(m);break;case 9:ct(m);break;case 10:en(m);break;case 11:We(m);break;case 12:on(m);break;case 13:"--"===n.substr(l,2)?(l+=2,h=new po(Tn(Tn({},h),{type:"comment"})),u=14):"DOCTYPE"===n.substr(l,7).toUpperCase()?(l+=7,h=new po(Tn(Tn({},h),{type:"doctype"})),u=20):yt();break;case 14:Ji(m);break;case 15:Mi(m);break;case 16:mo(m);break;case 17:go(m);break;case 18:ze(m);break;case 19:Je(m);break;case 20:ut(m);break;default:jO(u)}l++}var Re;function z(Re){ha.test(Re)?(h=new po(Tn(Tn({},h),{name:wr()})),u=4):"<"===Re?Kt():"/"===Re?(h=new po(Tn(Tn({},h),{name:wr()})),u=12):">"===Re?(h=new po(Tn(Tn({},h),{name:wr()})),Pn()):!gb.test(Re)&&!yZ.test(Re)&&":"!==Re&&yt()}function re(Re){">"===Re?yt():gb.test(Re)?u=3:yt()}function se(Re){ha.test(Re)||("/"===Re?u=12:">"===Re?Pn():"<"===Re?Kt():"="===Re||vb.test(Re)||CZ.test(Re)?yt():u=5)}function ve(Re){ha.test(Re)?u=6:"/"===Re?u=12:"="===Re?u=7:">"===Re?Pn():"<"===Re?Kt():vb.test(Re)&&yt()}function Ee(Re){ha.test(Re)||("/"===Re?u=12:"="===Re?u=7:">"===Re?Pn():"<"===Re?Kt():vb.test(Re)?yt():u=5)}function Pe(Re){ha.test(Re)||('"'===Re?u=8:"'"===Re?u=9:/[>=`]/.test(Re)?yt():"<"===Re?Kt():u=10)}function Qe(Re){'"'===Re&&(u=11)}function ct(Re){"'"===Re&&(u=11)}function en(Re){ha.test(Re)?u=4:">"===Re?Pn():"<"===Re&&Kt()}function We(Re){ha.test(Re)?u=4:"/"===Re?u=12:">"===Re?Pn():"<"===Re?Kt():(u=4,function mn(){l--}())}function on(Re){">"===Re?(h=new po(Tn(Tn({},h),{isClosing:!0})),Pn()):u=4}function Ji(Re){"-"===Re?u=15:">"===Re?yt():u=16}function Mi(Re){"-"===Re?u=18:">"===Re?yt():u=16}function mo(Re){"-"===Re&&(u=17)}function go(Re){u="-"===Re?18:16}function ze(Re){">"===Re?Pn():"!"===Re?u=19:"-"===Re||(u=16)}function Je(Re){"-"===Re?u=17:">"===Re?Pn():u=16}function ut(Re){">"===Re?Pn():"<"===Re&&Kt()}function yt(){u=0,h=a}function Kt(){u=1,h=new po({idx:l})}function Pn(){var Re=n.slice(d,h.idx);Re&&r(Re,d),"comment"===h.type?o(h.idx):"doctype"===h.type?s(h.idx):(h.isOpening&&e(h.name,h.idx),h.isClosing&&i(h.name,h.idx)),yt(),d=l+1}function wr(){return n.slice(h.idx+(h.isClosing?2:1),l).toLowerCase()}d<l&&function Di(){var Re=n.slice(d,l);r(Re,d),d=l+1}()}(t,{onOpenTag:function(s){i.indexOf(s)>=0&&r++},onText:function(s,a){if(0===r){var c=function pZ(n,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r,e=[],i=0;r=t.exec(n);)e.push(n.substring(i,r.index)),e.push(r[0]),i=r.index+r[0].length;return e.push(n.substring(i)),e}(s,/( | |<|<|>|>|"|"|')/gi),u=a;c.forEach(function(d,h){if(h%2==0){var m=e.parseText(d,u);o.push.apply(o,m)}u+=d.length})}},onCloseTag:function(s){i.indexOf(s)>=0&&(r=Math.max(r-1,0))},onComment:function(s){},onDoctype:function(s){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},n.prototype.compactMatches=function(t){t.sort(function(l,c){return l.getOffset()-c.getOffset()});for(var e=0;e<t.length-1;e++){var i=t[e],r=i.getOffset(),o=i.getMatchedText().length,s=r+o;if(e+1<t.length){if(t[e+1].getOffset()===r){var a=t[e+1].getMatchedText().length>o?e:e+1;t.splice(a,1);continue}t[e+1].getOffset()<s&&t.splice(e+1,1)}}return t},n.prototype.removeUnwantedMatches=function(t){return this.hashtag||da(t,function(e){return"hashtag"===e.getType()}),this.email||da(t,function(e){return"email"===e.getType()}),this.phone||da(t,function(e){return"phone"===e.getType()}),this.mention||da(t,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||da(t,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.wwwMatches||da(t,function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()}),this.urls.tldMatches||da(t,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),t},n.prototype.parseText=function(t,e){void 0===e&&(e=0),e=e||0;for(var i=this.getMatchers(),r=[],o=0,s=i.length;o<s;o++){for(var a=i[o].parseMatches(t),l=0,c=a.length;l<c;l++)a[l].setOffset(e+a[l].getOffset());r.push.apply(r,a)}return r},n.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"<").replace(/>/g,">"));for(var e=this.parse(t),i=[],r=0,o=0,s=e.length;o<s;o++){var a=e[o];i.push(t.substring(r,a.getOffset())),i.push(this.createMatchReturnVal(a)),r=a.getOffset()+a.getMatchedText().length}return i.push(t.substring(r)),i.join("")},n.prototype.createMatchReturnVal=function(t){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,t)),"string"==typeof e?e:!1===e?t.getMatchedText():e instanceof pb?e.toAnchorString():t.buildTag().toAnchorString()},n.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var t=this.getTagBuilder(),e=[new ek({tagBuilder:t,serviceName:this.hashtag}),new XO({tagBuilder:t}),new tk({tagBuilder:t}),new nk({tagBuilder:t,serviceName:this.mention}),new JO({tagBuilder:t,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=e},n.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new HO({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},n.version="3.14.3",n.AnchorTagBuilder=HO,n.HtmlTag=pb,n.matcher={Email:XO,Hashtag:ek,Matcher:$l,Mention:nk,Phone:tk,Url:JO},n.match={Email:zO,Hashtag:GO,Match:Wl,Mention:qO,Phone:WO,Url:$O},n}();const zZ=UZ;function GZ(n,t){if(1&n){const e=$t();X(0,"div",3),X(1,"button",4),Ve("click",function(){return Ke(e),ye().close()}),Fe(2,"Close"),J(),J()}}const qZ=["toolbarAdditionalButtons"],WZ=["toolbarAdditionalPanelButtons"];function $Z(n,t){1&n&&ot(0,"img",24)}function QZ(n,t){if(1&n&&(X(0,"span",25),Fe(1),J()),2&n){const e=ye();de(1),On(e.session.sessionId)}}function YZ(n,t){1&n&&(X(0,"div",26),X(1,"mat-icon"),Fe(2,"radio_button_checked"),J(),X(3,"span"),Fe(4,"REC"),J(),J())}function KZ(n,t){1&n&&(X(0,"mat-icon",27),Fe(1,"mic"),J())}function ZZ(n,t){1&n&&(X(0,"mat-icon",28),Fe(1,"mic_off"),J())}function XZ(n,t){1&n&&(X(0,"mat-icon",29),Fe(1,"videocam"),J())}function JZ(n,t){1&n&&(X(0,"mat-icon",30),Fe(1,"videocam_off"),J())}function eX(n,t){1&n&&(X(0,"mat-icon",34),Fe(1,"screen_share"),J())}function tX(n,t){1&n&&(X(0,"mat-icon",35),Fe(1,"screen_share"),J())}function nX(n,t){if(1&n){const e=$t();X(0,"button",31),Ve("click",function(){return Ke(e),ye().toggleScreenShare()}),fe(1,eX,2,0,"mat-icon",32),fe(2,tX,2,0,"mat-icon",33),J()}if(2&n){const e=ye();pt("active-btn",e.isScreenShareActive),oe("disabled",e.isConnectionLost),de(1),oe("ngIf",!e.isScreenShareActive),de(1),oe("ngIf",e.isScreenShareActive)}}function iX(n,t){1&n&&(X(0,"mat-icon",39),Fe(1,"fullscreen_exit"),J())}function rX(n,t){1&n&&(X(0,"mat-icon",40),Fe(1,"fullscreen"),J())}function oX(n,t){if(1&n){const e=$t();X(0,"button",36),Ve("click",function(){return Ke(e),ye().toggleFullscreen()}),fe(1,iX,2,0,"mat-icon",37),fe(2,rX,2,0,"mat-icon",38),J()}if(2&n){const e=ye();pt("active-btn",e.isFullscreenActive),oe("disabled",e.isConnectionLost),de(1),oe("ngIf",e.isFullscreenActive),de(1),oe("ngIf",!e.isFullscreenActive)}}function sX(n,t){if(1&n&&(X(0,"button",41),X(1,"mat-icon",42),Fe(2,"more_vert"),J(),J()),2&n){const e=ye();oe("matMenuTriggerFor",oh(18))("disabled",e.isConnectionLost)}}function aX(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"fullscreen"),J())}function lX(n,t){1&n&&(X(0,"span"),Fe(1,"Fullscreen"),J())}function cX(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"fullscreen_exit"),J())}function uX(n,t){1&n&&(X(0,"span"),Fe(1,"Exit fullscreen"),J())}function dX(n,t){if(1&n){const e=$t();X(0,"button",43),Ve("click",function(){return Ke(e),ye().toggleBackgroundEffects()}),X(1,"mat-icon"),Fe(2,"auto_awesome"),J(),X(3,"span"),Fe(4,"Background effects"),J(),J()}2&n&&oe("disabled",!ye().isWebcamVideoActive)}function hX(n,t){1&n&&Xt(0)}function fX(n,t){if(1&n&&(_i(0),fe(1,hX,1,0,"ng-container",44),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.toolbarAdditionalButtonsTemplate)}}function pX(n,t){if(1&n){const e=$t();X(0,"button",45),Ve("click",function(){return Ke(e),ye().leaveSession()}),X(1,"mat-icon",46),Fe(2,"call_end"),J(),J()}}function mX(n,t){if(1&n){const e=$t();X(0,"button",47),Ve("click",function(){return Ke(e),ye().toggleParticipantsPanel()}),X(1,"mat-icon"),Fe(2,"people"),J(),J()}if(2&n){const e=ye();pt("active-btn",e.isParticipantsOpened),oe("disabled",e.isConnectionLost)}}function gX(n,t){if(1&n){const e=$t();X(0,"button",48),Ve("click",function(){return Ke(e),ye().toggleChatPanel()}),X(1,"mat-icon",49),Fe(2," chat "),J(),J()}if(2&n){const e=ye();pt("active-btn",e.isChatOpened),oe("disabled",e.isConnectionLost),de(1),lh("matBadge",e.unreadMessages),oe("matBadgeHidden",0===e.unreadMessages)}}function vX(n,t){1&n&&Xt(0)}function _X(n,t){if(1&n&&(_i(0),fe(1,vX,1,0,"ng-container",44),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.toolbarAdditionalPanelButtonsTemplate)}}const yX=["videoElement"],bX=["chatScroll"],CX=["chatInput"];function wX(n,t){1&n&&(X(0,"p"),Fe(1,"You"),J())}function EX(n,t){if(1&n&&(X(0,"p"),Fe(1),J()),2&n){const e=ye().$implicit;de(1),On(e.nickname)}}function SX(n,t){if(1&n&&(X(0,"div",14),X(1,"div",15),X(2,"div",16),fe(3,wX,2,0,"p",17),fe(4,EX,2,1,"p",17),J(),X(5,"div",18),ot(6,"p",19),sl(7,"linkify"),J(),J(),J()),2&n){const e=t.$implicit;oe("ngClass",e.isLocal?"right":"left"),de(3),oe("ngIf",e.isLocal),de(1),oe("ngIf",!e.isLocal),de(2),oe("innerHTML",al(7,4,e.message),$C)}}const xX=["toolbar"],AX=["panel"],MX=["layout"],DX=["sidenav"],TX=["videoContainer"];function IX(n,t){1&n&&Xt(0)}function OX(n,t){1&n&&Xt(0)}function kX(n,t){1&n&&Xt(0)}function PX(n,t){if(1&n&&(X(0,"div",9),fe(1,kX,1,0,"ng-container",5),J()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.toolbarTemplate)}}const RX=["stream"];function FX(n,t){1&n&&Xt(0)}const ik=function(n){return{OV_big:n}},fa=function(n){return{$implicit:n}};function NX(n,t){if(1&n&&(X(0,"div",3),fe(1,FX,1,0,"ng-container",4),J()),2&n){const e=t.$implicit,i=ye();oe("ngClass",Rr(3,ik,e.videoEnlarged)),de(1),oe("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Rr(5,fa,e))}}function LX(n,t){1&n&&Xt(0)}function BX(n,t){if(1&n&&(X(0,"div",5),fe(1,LX,1,0,"ng-container",4),J()),2&n){const e=t.$implicit,i=ye();oe("ngClass",Rr(3,ik,e.videoEnlarged)),de(1),oe("ngTemplateOutlet",i.streamTemplate)("ngTemplateOutletContext",Rr(5,fa,e))}}const VX=function(n){return{"background-color":n}},jX=["menu"],HX=["streamContainer"],UX=["nicknameInput"];function zX(n,t){if(1&n&&(X(0,"span",15),Fe(1),J()),2&n){const e=ye(4);de(1),On(e._stream.participant.nickname)}}function GX(n,t){if(1&n&&(X(0,"span",15),Fe(1),J()),2&n){const e=ye(4);de(1),Fs("",e._stream.participant.nickname,"_SCREEN")}}function qX(n,t){if(1&n){const e=$t();X(0,"div",13),Ve("click",function(){return Ke(e),ye(3).toggleNicknameForm()}),fe(1,zX,2,1,"span",14),fe(2,GX,2,1,"span",14),J()}if(2&n){const e=ye(3);de(1),oe("ngIf","CAMERA"===e._stream.type),de(1),oe("ngIf","SCREEN"===e._stream.type)}}function WX(n,t){if(1&n){const e=$t();X(0,"div",16),X(1,"input",17,18),Ve("ngModelChange",function(r){return Ke(e),ye(3).nickname=r})("keypress",function(r){return Ke(e),ye(3).updateNickname(r)})("focusout",function(r){return Ke(e),ye(3).updateNickname(r)}),J(),J()}if(2&n){const e=ye(3);pt("fullscreen",e.isFullscreen),de(1),oe("ngModel",e.nickname)}}function $X(n,t){if(1&n&&(X(0,"div",10),fe(1,qX,3,2,"div",11),fe(2,WX,3,3,"div",12),J()),2&n){const e=ye(2);pt("fullscreen",e.isFullscreen),de(1),oe("ngIf",!e.toggleNickname),de(1),oe("ngIf",e.toggleNickname&&!(null!=e._stream.streamManager&&e._stream.streamManager.remote))}}function QX(n,t){if(1&n&&(X(0,"div",19),ot(1,"ov-audio-wave",20),J()),2&n){const e=ye(2);de(1),oe("streamManager",e._stream.streamManager)}}function YX(n,t){if(1&n&&ot(0,"ov-avatar-profile",21),2&n){const e=ye(2);oe("name",e._stream.participant.nickname)("color",e._stream.participant.colorProfile)}}function KX(n,t){1&n&&(X(0,"button",22),X(1,"mat-icon"),Fe(2,"mic_off"),J(),J())}function ZX(n,t){1&n&&(X(0,"span"),Fe(1,"Zoom out"),J())}function XX(n,t){1&n&&(X(0,"span"),Fe(1,"Zoom in"),J())}function JX(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"volume_up"),J())}function eJ(n,t){1&n&&(X(0,"span"),Fe(1,"Mute sound"),J())}function tJ(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"volume_off"),J())}function nJ(n,t){1&n&&(X(0,"span"),Fe(1,"Unmute sound"),J())}function iJ(n,t){if(1&n){const e=$t();X(0,"button",32),Ve("click",function(){return Ke(e),ye(3).toggleMuteForcibly()}),fe(1,JX,2,0,"mat-icon",29),fe(2,eJ,2,0,"span",29),fe(3,tJ,2,0,"mat-icon",29),fe(4,nJ,2,0,"span",29),J()}if(2&n){const e=ye(3);de(1),oe("ngIf",!e._stream.participant.isMutedForcibly),de(1),oe("ngIf",!e._stream.participant.isMutedForcibly),de(1),oe("ngIf",e._stream.participant.isMutedForcibly),de(1),oe("ngIf",e._stream.participant.isMutedForcibly)}}function rJ(n,t){if(1&n){const e=$t();X(0,"button",33),Ve("click",function(){return Ke(e),ye(3).replaceScreenTrack()}),X(1,"mat-icon"),Fe(2,"picture_in_picture"),J(),X(3,"span"),Fe(4,"Replace screen"),J(),J()}}function oJ(n,t){if(1&n){const e=$t();X(0,"div",23),X(1,"button",24),Ve("click",function(r){return Ke(e),ye(2).toggleVideoMenu(r)}),X(2,"mat-icon"),Fe(3,"more_vert"),J(),J(),ot(4,"span",25),X(5,"mat-menu",26,27),X(7,"button",28),Ve("click",function(){return Ke(e),ye(2).toggleVideoEnlarged()}),X(8,"mat-icon"),Fe(9),J(),fe(10,ZX,2,0,"span",29),fe(11,XX,2,0,"span",29),J(),fe(12,iJ,5,4,"button",30),fe(13,rJ,5,0,"button",31),J(),J()}if(2&n){const e=oh(6),i=ye(2);de(4),oe("matMenuTriggerFor",e),de(5),On(i.videoSizeIcon),de(1),oe("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.NORMAL),de(1),oe("ngIf",i.videoSizeIcon===i.videoSizeIconEnum.BIG),de(1),oe("ngIf",!i._stream.local),de(1),oe("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)}}function sJ(n,t){if(1&n){const e=$t();X(0,"div",1,2),fe(2,$X,3,4,"div",3),fe(3,QX,2,1,"div",4),fe(4,YX,1,2,"ov-avatar-profile",5),X(5,"ov-video",6),Ve("dblclick",function(){return Ke(e),ye().toggleVideoEnlarged()}),J(),X(6,"div",7),fe(7,KX,3,0,"button",8),J(),fe(8,oJ,14,6,"div",9),J()}if(2&n){const e=ye();oe("id","container-"+(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.streamId)),de(2),oe("ngIf",!e.isMinimal&&e.showNickname),de(1),oe("ngIf",!e.isMinimal&&e.showAudioDetection&&"CAMERA"===e._stream.type&&(null==e._stream.streamManager||null==e._stream.streamManager.stream?null:e._stream.streamManager.stream.audioActive)),de(1),oe("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.videoActive)&&"CAMERA"===e._stream.type),de(1),oe("streamManager",e._stream.streamManager)("mutedSound",null==e._stream||null==e._stream.participant?null:e._stream.participant.isMutedForcibly),de(2),oe("ngIf",!(null!=e._stream.streamManager&&null!=e._stream.streamManager.stream&&e._stream.streamManager.stream.audioActive)),de(1),oe("ngIf",!e.isMinimal&&e.showSettingsButton)}}const aJ=["participantPanelItemElements"];function lJ(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"volume_up"),J())}function cJ(n,t){1&n&&(X(0,"mat-icon"),Fe(1,"volume_off"),J())}function uJ(n,t){if(1&n){const e=$t();X(0,"button",6),Ve("click",function(){return Ke(e),ye().toggleMuteForcibly()}),fe(1,lJ,2,0,"mat-icon",5),fe(2,cJ,2,0,"mat-icon",5),J()}if(2&n){const e=ye();pt("warn-btn",e._participant.isMutedForcibly),de(1),oe("ngIf",!e._participant.isMutedForcibly),de(1),oe("ngIf",e._participant.isMutedForcibly)}}function dJ(n,t){1&n&&Xt(0)}function hJ(n,t){if(1&n&&(_i(0),fe(1,dJ,1,0,"ng-container",7),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.participantPanelItemElementsTemplate)}}const fJ=["participantPanelItem"],rk=["defaultParticipantPanelItem"];function pJ(n,t){1&n&&Xt(0)}function mJ(n,t){1&n&&ot(0,"mat-divider")}function gJ(n,t){if(1&n&&(X(0,"div",8),fe(1,pJ,1,0,"ng-container",9),fe(2,mJ,1,0,"mat-divider",10),J()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.participantPanelItemTemplate)("ngTemplateOutletContext",Rr(3,fa,e.localParticipant)),de(1),oe("ngIf",!0)}}function vJ(n,t){1&n&&Xt(0)}function _J(n,t){if(1&n&&(X(0,"div",13),fe(1,vJ,1,0,"ng-container",9),J()),2&n){const e=t.$implicit,i=ye(2);de(1),oe("ngTemplateOutlet",i.participantPanelItemTemplate)("ngTemplateOutletContext",Rr(2,fa,e))}}function yJ(n,t){if(1&n&&(X(0,"div",11),fe(1,_J,2,4,"div",12),J()),2&n){const e=ye();de(1),oe("ngForOf",e.remoteParticipants)}}function bJ(n,t){1&n&&ot(0,"ov-participant-panel-item",14),2&n&&oe("participant",t.$implicit)}const yb=".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}",CJ=["participantsPanel"],wJ=["backgroundEffectsPanel"],EJ=["activitiesPanel"],SJ=["chatPanel"],xJ=["additionalPanels"];function AJ(n,t){1&n&&Xt(0)}function MJ(n,t){if(1&n&&(_i(0),fe(1,AJ,1,0,"ng-container",1),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.chatPanelTemplate)}}function DJ(n,t){1&n&&Xt(0)}function TJ(n,t){if(1&n&&(_i(0),fe(1,DJ,1,0,"ng-container",1),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.participantsPanelTemplate)}}function IJ(n,t){1&n&&Xt(0)}function OJ(n,t){if(1&n&&(_i(0),fe(1,IJ,1,0,"ng-container",1),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.backgroundEffectsPanelTemplate)}}function kJ(n,t){1&n&&Xt(0)}function PJ(n,t){if(1&n&&(_i(0),fe(1,kJ,1,0,"ng-container",1),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.activitiesPanelTemplate)}}function RJ(n,t){1&n&&Xt(0)}function FJ(n,t){if(1&n&&(_i(0),fe(1,RJ,1,0,"ng-container",1),yi()),2&n){const e=ye();de(1),oe("ngTemplateOutlet",e.additionalPanelsTemplate)}}function NJ(n,t){if(1&n){const e=$t();X(0,"button",8),Ve("click",function(){const o=Ke(e).$implicit;return ye().applyBackground(o)}),X(1,"mat-icon",9),Fe(2),J(),J()}if(2&n){const e=t.$implicit;pt("active-effect-btn",ye().backgroundSelectedId===e.id),de(1),oe("matTooltip",e.description),de(1),On(e.thumbnail)}}function LJ(n,t){if(1&n){const e=$t();X(0,"div",10),Ve("click",function(){const o=Ke(e).$implicit;return ye().applyBackground(o)}),ot(1,"img",11),J()}if(2&n){const e=t.$implicit;pt("active-effect-btn",ye().backgroundSelectedId===e.id),de(1),oe("src",e.thumbnail,qd)}}function BJ(n,t){1&n&&ot(0,"ov-background-effects-panel")}function VJ(n,t){1&n&&(X(0,"ov-panel"),fe(1,BJ,1,0,"ng-template",null,7,nn),J())}function jJ(n,t){1&n&&fe(0,VJ,3,0,"ng-template",null,6,nn)}function HJ(n,t){if(1&n){const e=$t();X(0,"button",11),Ve("click",function(){return Ke(e),ye(3).toggleBackgroundEffects()}),X(1,"mat-icon"),Fe(2,"auto_awesome"),J(),J()}2&n&&oe("disabled",ye(3).isVideoMuted)}function UJ(n,t){if(1&n&&(fe(0,HJ,3,1,"button",9),ot(1,"ov-stream",10)),2&n){const e=t.$implicit,i=ye(2);oe("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),de(1),oe("stream",e)("displayParticipantName",!1)("settingsButton",!1)}}function zJ(n,t){1&n&&(X(0,"ov-layout"),fe(1,UJ,2,4,"ng-template",null,8,nn),J())}function GJ(n,t){1&n&&(X(0,"h4"),Fe(1,"Set your name"),J())}function qJ(n,t){1&n&&ot(0,"hr")}function WJ(n,t){1&n&&(X(0,"h4"),Fe(1,"Choose your devices"),J())}function $J(n,t){1&n&&ot(0,"hr")}function QJ(n,t){1&n&&(X(0,"mat-icon",32),Fe(1,"videocam"),J())}function YJ(n,t){1&n&&(X(0,"mat-icon",33),Fe(1,"videocam_off"),J())}function KJ(n,t){if(1&n&&(X(0,"mat-option",34),Fe(1),J()),2&n){const e=t.$implicit;oe("value",e.device),de(1),Fs(" ",e.label," ")}}function ZJ(n,t){1&n&&(X(0,"mat-icon",35),Fe(1,"mic"),J())}function XJ(n,t){1&n&&(X(0,"mat-icon",36),Fe(1,"mic_off"),J())}function JJ(n,t){if(1&n&&(X(0,"mat-option",34),Fe(1),J()),2&n){const e=t.$implicit;oe("value",e.device),de(1),Fs(" ",e.label," ")}}function eee(n,t){if(1&n){const e=$t();X(0,"div",12),X(1,"div",13),X(2,"div",14),X(3,"div",15),fe(4,GJ,2,0,"h4",3),fe(5,qJ,1,0,"hr",3),X(6,"div",16),X(7,"button",17),X(8,"mat-icon"),Fe(9,"person"),J(),J(),X(10,"mat-form-field",18),X(11,"mat-label"),Fe(12,"Nickname"),J(),X(13,"input",19),Ve("ngModelChange",function(r){return Ke(e),ye().nickname=r})("change",function(){return Ke(e),ye().updateNickname()}),J(),J(),J(),J(),X(14,"div",20),fe(15,WJ,2,0,"h4",3),fe(16,$J,1,0,"hr",3),X(17,"div",21),X(18,"button",22),Ve("click",function(){return Ke(e),ye().toggleCam()}),fe(19,QJ,2,0,"mat-icon",23),fe(20,YJ,2,0,"mat-icon",24),J(),X(21,"mat-form-field"),X(22,"mat-label"),Fe(23,"Video devices"),J(),X(24,"mat-select",25),Ve("selectionChange",function(r){return Ke(e),ye().onCameraSelected(r)}),fe(25,KJ,2,2,"mat-option",26),J(),J(),J(),X(26,"div",21),X(27,"button",27),Ve("click",function(){return Ke(e),ye().toggleMic()}),fe(28,ZJ,2,0,"mat-icon",28),fe(29,XJ,2,0,"mat-icon",29),J(),X(30,"mat-form-field"),X(31,"mat-label"),Fe(32,"Audio devices"),J(),X(33,"mat-select",25),Ve("selectionChange",function(r){return Ke(e),ye().onMicrophoneSelected(r)}),fe(34,JJ,2,2,"mat-option",26),J(),J(),J(),J(),X(35,"div",30),X(36,"button",31),Ve("click",function(){return Ke(e),ye().joinSession()}),Fe(37,"Join session"),J(),J(),J(),J(),J()}if(2&n){const e=ye();de(4),oe("ngIf",e.windowSize>=960),de(1),oe("ngIf",e.windowSize>=960),de(8),oe("ngModel",e.nickname),de(2),oe("ngIf",e.windowSize>=960),de(1),oe("ngIf",e.windowSize>=960),de(2),pt("warn-btn",e.isVideoMuted),oe("disabled",!e.hasVideoDevices||e.videoMuteChanging),de(1),oe("ngIf",!e.isVideoMuted),de(1),oe("ngIf",e.isVideoMuted),de(4),oe("disabled",e.isVideoMuted||!e.hasVideoDevices)("value",null==e.cameraSelected?null:e.cameraSelected.device),de(1),oe("ngForOf",e.cameras),de(2),pt("warn-btn",e.isAudioMuted),oe("disabled",!e.hasAudioDevices),de(1),oe("ngIf",!e.isAudioMuted),de(1),oe("ngIf",e.isAudioMuted),de(4),oe("disabled",e.isAudioMuted||!e.hasAudioDevices)("value",null==e.microphoneSelected?null:e.microphoneSelected.device),de(1),oe("ngForOf",e.microphones)}}const tee=["defaultToolbar"],nee=["defaultPanel"],iee=["defaultChatPanel"],ree=["defaultParticipantsPanel"],oee=["defaultActivitiesPanel"],see=["defaultLayout"],aee=["defaultStream"];function lee(n,t){if(1&n){const e=$t();X(0,"div",12),X(1,"ov-pre-join",13),Ve("onJoinButtonClicked",function(){return Ke(e),ye()._onJoinButtonClicked()}),J(),J()}}function cee(n,t){1&n&&(X(0,"div",14),ot(1,"mat-spinner",15),X(2,"span"),Fe(3,"Joining the room ..."),J(),J()),2&n&&(de(1),oe("diameter",50))}function uee(n,t){if(1&n&&(X(0,"div",14),X(1,"mat-icon",16),Fe(2,"error"),J(),X(3,"span"),Fe(4),J(),J()),2&n){const e=ye();de(4),On(e.errorMessage)}}function dee(n,t){1&n&&Xt(0)}function hee(n,t){if(1&n&&(_i(0),fe(1,dee,1,0,"ng-container",23),yi()),2&n){const e=ye(3);de(1),oe("ngTemplateOutlet",e.openviduAngularToolbarTemplate)}}function fee(n,t){1&n&&fe(0,hee,2,1,"ng-container",22),2&n&&oe("ngIf",ye(2).openviduAngularToolbarTemplate)}function pee(n,t){1&n&&Xt(0)}function mee(n,t){if(1&n&&(_i(0),fe(1,pee,1,0,"ng-container",23),yi()),2&n){const e=ye(3);de(1),oe("ngTemplateOutlet",e.openviduAngularPanelTemplate)}}function gee(n,t){1&n&&fe(0,mee,2,1,"ng-container",22),2&n&&oe("ngIf",ye(2).openviduAngularPanelTemplate)}function vee(n,t){1&n&&Xt(0)}function _ee(n,t){if(1&n&&(_i(0),fe(1,vee,1,0,"ng-container",23),yi()),2&n){const e=ye(3);de(1),oe("ngTemplateOutlet",e.openviduAngularLayoutTemplate)}}function yee(n,t){1&n&&fe(0,_ee,2,1,"ng-container",22),2&n&&oe("ngIf",ye(2).openviduAngularLayoutTemplate)}function bee(n,t){if(1&n){const e=$t();X(0,"div",17),X(1,"ov-session",18),Ve("onSessionCreated",function(r){return Ke(e),ye()._onSessionCreated(r)}),fe(2,fee,1,1,"ng-template",null,19,nn),fe(4,gee,1,1,"ng-template",null,20,nn),fe(6,yee,1,1,"ng-template",null,21,nn),J(),J()}}function Cee(n,t){1&n&&Xt(0)}function wee(n,t){1&n&&fe(0,Cee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularToolbarAdditionalButtonsTemplate)}function Eee(n,t){1&n&&Xt(0)}function See(n,t){1&n&&fe(0,Eee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularToolbarAdditionalPanelButtonsTemplate)}function xee(n,t){if(1&n){const e=$t();X(0,"ov-toolbar",24),Ve("onLeaveButtonClicked",function(){return Ke(e),ye().onLeaveButtonClicked()})("onCameraButtonClicked",function(){return Ke(e),ye().onCameraButtonClicked()})("onMicrophoneButtonClicked",function(){return Ke(e),ye().onMicrophoneButtonClicked()})("onScreenshareButtonClicked",function(){return Ke(e),ye().onScreenshareButtonClicked()})("onFullscreenButtonClicked",function(){return Ke(e),ye().onFullscreenButtonClicked()})("onParticipantsPanelButtonClicked",function(){return Ke(e),ye().onParticipantsPanelButtonClicked()})("onChatPanelButtonClicked",function(){return Ke(e),ye().onChatPanelButtonClicked()}),fe(1,wee,1,1,"ng-template",null,25,nn),fe(3,See,1,1,"ng-template",null,26,nn),J()}}function Aee(n,t){1&n&&Xt(0)}function Mee(n,t){1&n&&fe(0,Aee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularChatPanelTemplate)}function Dee(n,t){1&n&&Xt(0)}function Tee(n,t){1&n&&fe(0,Dee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularParticipantsPanelTemplate)}function Iee(n,t){1&n&&ot(0,"ov-background-effects-panel",33)}function Oee(n,t){1&n&&Xt(0)}function kee(n,t){1&n&&fe(0,Oee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularActivitiesPanelTemplate)}function Pee(n,t){1&n&&Xt(0)}function Ree(n,t){1&n&&fe(0,Pee,1,0,"ng-container",23),2&n&&oe("ngTemplateOutlet",ye(2).openviduAngularAdditionalPanelsTemplate)}function Fee(n,t){1&n&&(X(0,"ov-panel",27),fe(1,Mee,1,1,"ng-template",null,28,nn),fe(3,Tee,1,1,"ng-template",null,29,nn),fe(5,Iee,1,0,"ng-template",null,30,nn),fe(7,kee,1,1,"ng-template",null,31,nn),fe(9,Ree,1,1,"ng-template",null,32,nn),J())}function Nee(n,t){1&n&&ot(0,"ov-chat-panel",34)}function Lee(n,t){}function Bee(n,t){1&n&&Xt(0)}function Vee(n,t){if(1&n&&fe(0,Bee,1,0,"ng-container",37),2&n){const e=t.$implicit;oe("ngTemplateOutlet",ye(2).openviduAngularParticipantPanelItemTemplate)("ngTemplateOutletContext",Rr(2,fa,e))}}function jee(n,t){1&n&&(X(0,"ov-participants-panel",35),fe(1,Vee,1,4,"ng-template",null,36,nn),J())}function Hee(n,t){1&n&&Xt(0)}function Uee(n,t){if(1&n&&fe(0,Hee,1,0,"ng-container",37),2&n){const e=ye().$implicit;oe("ngTemplateOutlet",ye().openviduAngularParticipantPanelItemElementsTemplate)("ngTemplateOutletContext",Rr(2,fa,e))}}function zee(n,t){1&n&&(X(0,"ov-participant-panel-item",38),fe(1,Uee,1,4,"ng-template",null,39,nn),J()),2&n&&oe("participant",t.$implicit)}function Gee(n,t){1&n&&Xt(0)}function qee(n,t){if(1&n&&fe(0,Gee,1,0,"ng-container",37),2&n){const e=t.$implicit;oe("ngTemplateOutlet",ye(2).openviduAngularStreamTemplate)("ngTemplateOutletContext",Rr(2,fa,e))}}function Wee(n,t){1&n&&(X(0,"ov-layout",40),fe(1,qee,1,4,"ng-template",null,41,nn),J())}function $ee(n,t){1&n&&ot(0,"ov-stream",42),2&n&&oe("stream",t.$implicit)}var wn=(()=>{return(n=wn||(wn={})).CHAT="chat",n.PARTICIPANTS="participants",n.BACKGROUND_EFFECTS="background-effects",n.ACTIVITIES="activities",wn;var n})();let ete=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbar",""]]}),n})(),ok=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbarAdditionalButtons",""]]}),n})(),sk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovToolbarAdditionalPanelButtons",""]]}),n})(),tte=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovPanel",""]]}),n})(),ak=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovAdditionalPanels",""]]}),n})(),lk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovChatPanel",""]]}),n})(),nte=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovBackgroundEffectsPanel",""]]}),n})(),ck=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovActivitiesPanel",""]]}),n})(),uk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantsPanel",""]]}),n})(),dk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantPanelItem",""]]}),n})(),hk=(()=>{class n{constructor(e,i){this.template=e,this.viewContainer=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovParticipantPanelItemElements",""]]}),n})(),ite=(()=>{class n{constructor(e,i){this.template=e,this.container=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovLayout",""]]}),n})(),fk=(()=>{class n{constructor(e,i){this.template=e,this.container=i}}return n.\u0275fac=function(e){return new(e||n)(f(lt),f(Jt))},n.\u0275dir=ge({type:n,selectors:[["","ovStream",""]]}),n})();var bs=(()=>{return(n=bs||(bs={})).ROOT_ELEMENT="OT_root",n.BIG_ELEMENT="OV_big",n.SMALL_ELEMENT="OV_small",n.SIDENAV_CONTAINER="sidenav-container",n.NO_SIZE_ELEMENT="no-size",bs;var n})(),Ql=(()=>{return(n=Ql||(Ql={})).OVER="over",n.SIDE="side",Ql;var n})();class rte{updateLayout(){setTimeout(()=>{var t,e;if("none"===(null===(e=null===(t=this.layoutContainer)||void 0===t?void 0:t.style)||void 0===e?void 0:e.display))return;let i=this.layoutContainer.id;i||(i="OT_"+this.cheapUUID(),this.layoutContainer.id=i);const r=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+i+">."+this.opts.smallClass),this.filterDisplayNone),o=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+i+">."+this.opts.bigClass),this.filterDisplayNone).filter(a=>!r.includes(a)),s=Array.prototype.filter.call(this.layoutContainer.querySelectorAll("#"+i+">*:not(."+this.opts.bigClass+")"),this.filterDisplayNone).filter(a=>!r.includes(a));this.attachElements(o,s,r)},50)}initLayoutContainer(t,e){this.opts={maxRatio:null!=e.maxRatio?e.maxRatio:1.5,minRatio:null!=e.minRatio?e.minRatio:9/16,fixedRatio:null!=e.fixedRatio&&e.fixedRatio,animate:null!=e.animate&&e.animate,bigClass:null!=e.bigClass?e.bigClass:"OT_big",smallClass:null!=e.smallClass?e.smallClass:"OT_small",bigPercentage:null!=e.bigPercentage?e.bigPercentage:.8,bigFixedRatio:null!=e.bigFixedRatio&&e.bigFixedRatio,bigMaxRatio:null!=e.bigMaxRatio?e.bigMaxRatio:1.5,bigMinRatio:null!=e.bigMinRatio?e.bigMinRatio:9/16,bigFirst:null==e.bigFirst||e.bigFirst},this.layoutContainer=t}setLayoutOptions(t){this.opts=t}getLayoutContainer(){return this.layoutContainer}fixAspectRatio(t,e){const i=t.querySelector(".OT_root");if(i){const r=i.style.width;i.style.width=e+"px",i.style.width=r||""}}positionElement(t,e,i,r,o,s){const a={left:e+"px",top:i+"px",width:r+"px",height:o+"px"};this.fixAspectRatio(t,r),setTimeout(()=>{t.style.left=a.left,t.style.top=a.top,t.style.width=a.width,t.style.height=a.height,this.fixAspectRatio(t,r)},10)}getVideoRatio(t){if(!t)return 3/4;const e=t.querySelector("video");return e&&e.videoHeight&&e.videoWidth?e.videoHeight/e.videoWidth:t.videoHeight&&t.videoWidth?t.videoHeight/t.videoWidth:3/4}getCSSNumber(t,e){const i=window.getComputedStyle(t)[e];return i?parseInt(i,10):0}cheapUUID(){return(1e8*Math.random()).toFixed(0)}getHeight(t){const e=window.getComputedStyle(t).height;return e?parseInt(e,10):0}getWidth(t){const e=window.getComputedStyle(t).width;return e?parseInt(e,10):0}getBestDimensions(t,e,i,r,o,s){let a,l,c,u,d,h,m;for(let I=1;I<=i;I++){const $=I,z=Math.ceil(i/$);h=Math.floor(o/z),d=Math.floor(r/$),m=h/d,m>e?(m=e,h=d*m):m<t&&(m=t,d=h/m);const re=d*h*i;(void 0===a||re>a)&&(a=re,s=h,u=d,l=$,c=z)}return{maxArea:a,targetCols:l,targetRows:c,targetHeight:s,targetWidth:u,ratio:s/u}}arrange(t,e,i,r,o,s,a,l,c){let u;const d=t.length;let h;if(s){const ve=this.getVideoRatio(t.length>0?t[0]:null);h=this.getBestDimensions(ve,ve,d,e,i,u)}else h=this.getBestDimensions(a,l,d,e,i,u);let m=0,I=0;const $=[];let z;for(let ve=0;ve<t.length;ve++){ve%h.targetCols==0&&(z={children:[],width:0,height:0},$.push(z));const Ee=t[ve];z.children.push(Ee);let Pe=h.targetWidth;u=h.targetHeight,s&&(Pe=u/this.getVideoRatio(Ee)),z.width+=Pe,z.height=u}let re=0,se=0;for(let ve=0;ve<$.length;ve++)z=$[ve],z.width>e?(z.height=Math.floor(z.height*(e/z.width)),z.width=e):z.width<e&&(se+=1),re+=z.height;if(re<i&&se>0){let ve=i-re;re=0;for(let Ee=0;Ee<$.length;Ee++){if(z=$[Ee],z.width<e){let Pe=ve/se;Pe/z.height>(e-z.width)/z.width&&(Pe=Math.floor((e-z.width)/z.width*z.height)),z.width+=Math.floor(Pe/z.height*z.width),z.height+=Pe,ve-=Pe,se-=1}re+=z.height}}I=(i-re)/2;for(let ve=0;ve<$.length;ve++){z=$[ve],m=(e-z.width)/2;for(let Pe=0;Pe<z.children.length;Pe++){const Qe=z.children[Pe];let ct=h.targetWidth;u=z.height,s&&(ct=Math.floor(u/this.getVideoRatio(Qe))),Qe.style.position="absolute";const en=ct-this.getCSSNumber(Qe,"paddingLeft")-this.getCSSNumber(Qe,"paddingRight")-this.getCSSNumber(Qe,"marginLeft")-this.getCSSNumber(Qe,"marginRight")-this.getCSSNumber(Qe,"borderLeft")-this.getCSSNumber(Qe,"borderRight"),We=u-this.getCSSNumber(Qe,"paddingTop")-this.getCSSNumber(Qe,"paddingBottom")-this.getCSSNumber(Qe,"marginTop")-this.getCSSNumber(Qe,"marginBottom")-this.getCSSNumber(Qe,"borderTop")-this.getCSSNumber(Qe,"borderBottom");this.positionElement(Qe,m+r,I+o,en,We,c),m+=ct}I+=u}}attachElements(t,e,i){const r=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),o=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight");if(this.existBigAndNormalOnes(t,e,i))this.arrangeBigAndSmallOnes(t.length>0?t:e,i.length>0?i:e);else if(this.onlyExistBigOnes(t,e,i))this.arrange(t,o,r,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate);else if(this.existBigAndNormalAndSmallOnes(t,e,i))this.arrangeBigAndSmallOnes(t,e.concat(i));else{const l=e.concat(i);this.arrange(l,o-0,r-0,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)}}arrangeBigAndSmallOnes(t,e){const i=this.getHeight(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderTop")-this.getCSSNumber(this.layoutContainer,"borderBottom"),r=this.getWidth(this.layoutContainer)-this.getCSSNumber(this.layoutContainer,"borderLeft")-this.getCSSNumber(this.layoutContainer,"borderRight");let u,d,s=0,a=0,l=0,c=0;i/r>this.getVideoRatio(t[0])?(u=r,d=Math.floor(i*this.opts.bigPercentage),a=d,l=i-a):(d=i,u=Math.floor(r*this.opts.bigPercentage),s=u,c=r-s),this.opts.bigFirst?(this.arrange(t,u,d,0,0,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate),this.arrange(e,r-s,i-a,s,a,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate)):(this.arrange(e,r-s,i-a,0,0,this.opts.fixedRatio,this.opts.minRatio,this.opts.maxRatio,this.opts.animate),this.arrange(t,u,d,c,l,this.opts.bigFixedRatio,this.opts.bigMinRatio,this.opts.bigMaxRatio,this.opts.animate))}existBigAndNormalOnes(t,e,i){return t.length>0&&e.length>0&&0===i.length||t.length>0&&0===e.length&&i.length>0||0===t.length&&e.length>0&&i.length>0}onlyExistBigOnes(t,e,i){return t.length>0&&0===e.length&&0===i.length}existBigAndNormalAndSmallOnes(t,e,i){return t.length>0&&e.length>0&&i.length>0}filterDisplayNone(t){return"none"!==t.style.display}}let Mp=(()=>{class n{constructor(){}getHTMLElementByClassName(e,i){for(;e&&e!==document.body;){if(e.className.includes(i))return e;e=e.parentElement}return null}toggleFullscreen(e){const i=window.document,r=i.getElementById(e);i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement?i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():i.webkitExitFullscreen&&i.webkitExitFullscreen():r.requestFullscreen?r.requestFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen&&r.webkitRequestFullscreen()}removeNoSizeElementClass(e){null==e||e.classList.remove(bs.NO_SIZE_ELEMENT)}isSmallElement(e){return null==e?void 0:e.className.includes(bs.SMALL_ELEMENT)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Cs=(()=>{return(n=Cs||(Cs={})).NICKNAME_CHANGED="nicknameChanged",n.CHAT="chat",Cs;var n})();let cn=(()=>{class n{constructor(e){this.minimal=new Dt(!1),this.participantName=new Dt(""),this.prejoin=new Dt(!0),this.videoMuted=new Dt(!1),this.audioMuted=new Dt(!1),this.screenshareButton=new Dt(!0),this.fullscreenButton=new Dt(!0),this.leaveButton=new Dt(!0),this.participantsPanelButton=new Dt(!0),this.chatPanelButton=new Dt(!0),this.activitiesPanelButton=new Dt(!0),this.displaySessionName=new Dt(!0),this.displayLogo=new Dt(!0),this.displayParticipantName=new Dt(!0),this.displayAudioDetection=new Dt(!0),this.settingsButton=new Dt(!0),this.participantItemMuteButton=new Dt(!0),this.backgroundEffectsButton=new Dt(!0),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.displayParticipantNameObs=this.displayParticipantName.asObservable(),this.displayAudioDetectionObs=this.displayAudioDetection.asObservable(),this.settingsButtonObs=this.settingsButton.asObservable(),this.participantItemMuteButtonObs=this.participantItemMuteButton.asObservable()}getConfig(){return this.configuration}isProduction(){var e;return null===(e=this.configuration)||void 0===e?void 0:e.production}hasParticipantFactory(){return"function"==typeof this.getConfig().participantFactory}getParticipantFactory(){return this.getConfig().participantFactory}}return n.\u0275fac=function(e){return new(e||n)(ae("OPENVIDU_ANGULAR_CONFIG"))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),br=(()=>{class n{constructor(e){this.openviduAngularConfigSrv=e,this.LOG_FNS=[],this.MSG_PREFIXES=[["[","]"],["[","] WARN: "],["[","] ERROR: "]]}getLoggerFns(e){return this.log=window.console,this.LOG_FNS=[this.log.log,this.log.warn,this.log.error],this.LOG_FNS.map((r,o)=>r.bind(this.log,this.MSG_PREFIXES[o][0]+e+this.MSG_PREFIXES[o][1]))}get(e){const i=this.openviduAngularConfigSrv.isProduction(),r=this;return{d:function(...o){i||r.getLoggerFns(e)[0].apply(this.log,arguments)},w:function(...o){r.getLoggerFns(e)[1].apply(this.log,arguments)},e:function(...o){r.getLoggerFns(e)[2].apply(this.log,arguments)}}}}return n.\u0275fac=function(e){return new(e||n)(ae(cn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Wo=(()=>{return(n=Wo||(Wo={})).FRONT="FRONT",n.BACK="BACK",Wo;var n})(),ld=(()=>{return(n=ld||(ld={})).AUDIO_INPUT="audioinput",n.VIDEO_INPUT="videoinput",ld;var n})(),rn=(()=>{return(n=rn||(rn={})).CAMERA="CAMERA",n.SCREEN="SCREEN",n.CUSTOM="CUSTOM",rn;var n})(),cd=(()=>{return(n=cd||(cd={})).WINDOW="window",n.SCREEN="screen",cd;var n})();let Dp=(()=>{class n{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)&&this.isIOSWithSafari(null==navigator?void 0:navigator.userAgent)}isIPhoneOrIPad(e){const i=/\b(\w*Macintosh\w*)\b/.test(e),r=/\b(\w*iPhone\w*)\b/.test(e)&&/\b(\w*Mobile\w*)\b/.test(e),o="ontouchend"in document;return(i||r)&&o}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 n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ste extends class ote{constructor(t,e){this.streams=new Map,this.id=t.id?t.id:(new Date).getTime().toString(),this.local=t.local,this.nickname=t.nickname,this.colorProfile=t.colorProfile?t.colorProfile:`hsl(${360*Math.random()}, 100%, 80%)`,this.isMutedForcibly="boolean"==typeof t.isMutedForcibly&&t.isMutedForcibly;let i={connected:!e||e.connected,type:e?e.type:rn.CAMERA,streamManager:e?e.streamManager:null,videoEnlarged:!!e&&e.videoEnlarged,connectionId:e?e.connectionId:null,participant:this};this.streams.set(i.type,i)}addConnection(t){t.participant=this,this.streams.set(t.type,t)}isCameraAudioActive(){var t,e;const i=this.getCameraConnection();return i?i.connected&&(null===(e=null===(t=i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.audioActive):this.isScreenAudioActive()}isCameraVideoActive(){var t,e;const i=this.getCameraConnection();return(null==i?void 0:i.connected)&&(null===(e=null===(t=null==i?void 0:i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.videoActive)}isScreenAudioActive(){var t,e;const i=this.getScreenConnection();return!!i&&(null==i?void 0:i.connected)&&(null===(e=null===(t=null==i?void 0:i.streamManager)||void 0===t?void 0:t.stream)||void 0===e?void 0:e.audioActive)}hasConnectionType(t){return this.streams.has(t)}getCameraConnection(){return this.streams.get(rn.CAMERA)}getScreenConnection(){return this.streams.get(rn.SCREEN)}getConnectionTypesActive(){let t=[];return this.isCameraActive()&&t.push(rn.CAMERA),this.isScreenActive()&&t.push(rn.SCREEN),t}setCameraConnectionId(t){this.getCameraConnection().connectionId=t}setScreenConnectionId(t){this.getScreenConnection().connectionId=t}removeConnection(t){const e=this.getConnectionById(t);return this.streams.delete(e.type),e}hasConnectionId(t){return Array.from(this.streams.values()).some(e=>e.connectionId===t)}getConnectionById(t){return Array.from(this.streams.values()).find(e=>e.connectionId===t)}getAvailableConnections(){return Array.from(this.streams.values()).filter(t=>t.connected)}isLocal(){return this.local}setNickname(t){this.nickname=t}getNickname(){return this.nickname}setCameraPublisher(t){const e=this.getCameraConnection();e&&(e.streamManager=t)}setScreenPublisher(t){const e=this.getScreenConnection();e&&(e.streamManager=t)}setPublisher(t,e){const i=this.streams.get(t);i&&(i.streamManager=e)}isCameraActive(){var t;return null===(t=this.getCameraConnection())||void 0===t?void 0:t.connected}enableCamera(){const t=this.getCameraConnection();t&&(t.connected=!0)}disableCamera(){const t=this.getCameraConnection();t&&(t.connected=!1)}isScreenActive(){var t;return null===(t=this.getScreenConnection())||void 0===t?void 0:t.connected}enableScreen(){const t=this.getScreenConnection();t&&(t.connected=!0)}disableScreen(){const t=this.getScreenConnection();t&&(t.connected=!1)}setAllVideoEnlarged(t){this.streams.forEach(e=>e.videoEnlarged=t)}setCameraEnlarged(t){this.streams.get(rn.CAMERA).videoEnlarged=t}setScreenEnlarged(t){this.streams.get(rn.SCREEN).videoEnlarged=t}toggleVideoEnlarged(t){this.streams.forEach(e=>{e.connectionId===t&&(e.videoEnlarged=!e.videoEnlarged)})}someHasVideoEnlarged(){return Array.from(this.streams.values()).some(t=>t.videoEnlarged)}setMutedForcibly(t){this.isMutedForcibly=t}}{}let Cr=(()=>{class n{constructor(e,i){this.openviduAngularConfigSrv=e,this.loggerSrv=i,this._localParticipant=new Dt(null),this._remoteParticipants=new Dt([]),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:rn.SCREEN,videoEnlarged:!0,streamManager:e,connected:!0,connectionId:null};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}toggleMyVideoEnlarged(e){this.localParticipant.toggleVideoEnlarged(e)}resetMyStreamsToNormalSize(){this.localParticipant.someHasVideoEnlarged()&&(this.localParticipant.setAllVideoEnlarged(!1),this.updateLocalParticipant())}clear(){this.disableScreenStream(),this.remoteParticipants=[],this._remoteParticipants=new Dt([]),this.remoteParticipantsObs=this._remoteParticipants.asObservable(),this.updateLocalParticipant()}isMyCameraActive(){return this.localParticipant.isCameraActive()}isMyVideoActive(){return this.localParticipant.isCameraVideoActive()}isMyAudioActive(){var e,i;return(null===(e=this.localParticipant)||void 0===e?void 0:e.isCameraAudioActive())||(null===(i=this.localParticipant)||void 0===i?void 0:i.isScreenAudioActive())}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,r){const o=this.getTypeConnectionData(i),s={type:o,videoEnlarged:o===rn.SCREEN,streamManager:r,connected:!0,connectionId:e},a=this.getParticipantIdFromData(i)||e,l=this.getRemoteParticipantById(a);if(l)this.log.d("Adding connection to existing participant: ",a),l.hasConnectionType(s.type)?(this.log.d("Participant has publisher, updating it"),l.setPublisher(s.type,r)):(this.log.d("Participant has not publisher, adding it"),s.type===rn.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){this.log.w("Deleting connection: ",e);let i=null;if(i=this.localParticipant.hasConnectionId(e)?this.localParticipant:this.getRemoteParticipantByConnectionId(e),i){const r=i.removeConnection(e);if(0===i.streams.size&&(this.remoteParticipants=this.remoteParticipants.filter(o=>o!==i)),r.type===rn.SCREEN){const o=this.remoteParticipants.filter(s=>s.isScreenActive());o.length>0?o[o.length-1].setScreenEnlarged(!0):this.localParticipant.isScreenActive()&&this.localParticipant.setScreenEnlarged(!0)}this.updateRemoteParticipants()}}getRemoteParticipantByConnectionId(e){return this.remoteParticipants.find(i=>i.hasConnectionId(e))}getRemoteParticipantById(e){return this.remoteParticipants.find(i=>i.id===e)}someoneIsSharingScreen(){return this.remoteParticipants.some(e=>e.someHasVideoEnlarged())}toggleRemoteVideoEnlarged(e){this.getRemoteParticipantByConnectionId(e).toggleVideoEnlarged(e)}getNicknameFromConnectionData(e){try{return JSON.parse(e).clientData}catch(i){return"OpenVidu_User"}}setRemoteNickname(e,i){const r=this.getRemoteParticipantByConnectionId(e);r&&(r.setNickname(i),this.updateRemoteParticipants())}setRemoteMutedForcibly(e,i){const r=this.getRemoteParticipantById(e);r&&(r.setMutedForcibly(i),this.updateRemoteParticipants())}updateRemoteParticipants(){this._remoteParticipants.next([...this.remoteParticipants])}getTypeConnectionData(e){try{return JSON.parse(e).type}catch(i){return rn.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 ste(e,i)}}return n.\u0275fac=function(e){return new(e||n)(ae(cn),ae(br))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Zi=(()=>{return(n=Zi||(Zi={})).USER_NICKNAME="openviduCallNickname",n.VIDEO_DEVICE="openviduCallVideoDevice",n.AUDIO_DEVICE="openviduCallAudioDevice",n.AUDIO_MUTED="openviduCallAudioMuted",n.VIDEO_MUTED="openviduCallVideoMuted",Zi;var n})();let ud=(()=>{class n{constructor(e){this.loggerSrv=e,this.storage=window.localStorage,this.log=this.loggerSrv.get("StorageService")}getNickname(){return this.get(Zi.USER_NICKNAME)}setNickname(e){this.set(Zi.USER_NICKNAME,e)}getVideoDevice(){return this.get(Zi.VIDEO_DEVICE)}setVideoDevice(e){this.set(Zi.VIDEO_DEVICE,e)}getAudioDevice(){return this.get(Zi.AUDIO_DEVICE)}setAudioDevice(e){this.set(Zi.AUDIO_DEVICE,e)}isVideoMuted(){return"true"===this.get(Zi.VIDEO_MUTED)}setVideoMuted(e){this.set(Zi.VIDEO_MUTED,`${e}`)}isAudioMuted(){return"true"===this.get(Zi.AUDIO_MUTED)}setAudioMuted(e){this.set(Zi.AUDIO_MUTED,`${e}`)}set(e,i){const r=JSON.stringify({item:i});this.storage.setItem(e,r)}get(e){const i=JSON.parse(this.storage.getItem(e));return(null==i?void 0:i.item)?i.item:null}clear(){this.log.d("Clearing localStorage"),this.storage.clear()}}return n.\u0275fac=function(e){return new(e||n)(ae(br))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dd=(()=>{class n{constructor(e,i,r,o){this.loggerSrv=e,this.platformSrv=i,this.storageSrv=r,this.libSrv=o,this.OV=null,this.cameras=[],this.microphones=[],this.deviceAccessDeniedError=!1,this.log=this.loggerSrv.get("DevicesService")}forceUpdate(){return te(this,void 0,void 0,function*(){yield this.initializeDevices()})}initializeDevices(){return te(this,void 0,void 0,function*(){try{this.OV=new ua.Dn;const e=yield this.OV.getUserMedia({audioSource:void 0,videoSource:void 0});null==e||e.getAudioTracks().forEach(i=>i.stop()),null==e||e.getVideoTracks().forEach(i=>i.stop())}catch(e){this.deviceAccessDeniedError=e.name===ua.Ll.DEVICE_ACCESS_DENIED}this.devices=yield this.OV.getDevices(),this.initializeCustomDevices(this.devices),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)})}initializeCustomDevices(e){const r=e.filter(s=>s.kind===ld.AUDIO_INPUT),o=e.filter(s=>s.kind===ld.VIDEO_INPUT);if(r.length>0){r.forEach(a=>{this.microphones.push({label:a.label,device:a.deviceId})});const s=this.getMicrophoneFromStogare();s?this.microphoneSelected=s:this.microphones.length>0&&(this.microphoneSelected=this.deviceAccessDeniedError&&this.microphones.length>1?this.microphones[1]:this.microphones[0])}if(o.length>0){o.forEach((a,l)=>{const c={label:a.label,device:a.deviceId,type:Wo.BACK};this.platformSrv.isMobile()?c.label.toLowerCase().includes(Wo.FRONT.toLowerCase())&&(c.type=Wo.FRONT):0===l&&(c.type=Wo.FRONT),this.cameras.push(c)});const s=this.getCameraFromStorage();s?this.cameraSelected=s: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){return this.cameraSelected.device!==e}needUpdateAudioTrack(e){return this.microphoneSelected.device!==e}getCameras(){return this.cameras}getMicrophones(){return this.microphones}hasVideoDeviceAvailable(){return!this.videoDevicesDisabled&&this.cameras.length>0}hasAudioDeviceAvailable(){return!this.audioDevicesDisabled&&this.microphones.length>0}cameraNeedsMirror(e){var i;return(null===(i=this.getCameraByDeviceField(e))||void 0===i?void 0:i.type)===Wo.FRONT}areEmptyLabels(){return!!this.cameras.find(e=>""===e.label)||!!this.microphones.find(e=>""===e.label)}disableVideoDevices(){this.videoDevicesDisabled=!0}disableAudioDevices(){this.audioDevicesDisabled=!0}clear(){this.OV=null,this.devices=[],this.cameras=[],this.microphones=[],this.cameraSelected=null,this.microphoneSelected=null,this.videoDevicesDisabled=!1,this.audioDevicesDisabled=!1}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)}}return n.\u0275fac=function(e){return new(e||n)(ae(br),ae(Dp),ae(ud),ae(cn))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Yl=(()=>{class n{constructor(){this.webcamToken="",this.screenToken=""}setWebcamToken(e){this.webcamToken=e}setScreenToken(e){this.screenToken=e}getWebcamToken(){return this.webcamToken}getScreenToken(){return this.screenToken}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Kl=(()=>{return(n=Kl||(Kl={})).CE="CE",n.PRO="PRO",n.ENTERPRISE="ENTERPRISE",Kl;var n})();let ws=(()=>{class n{constructor(e,i,r,o,s,a){this.openviduAngularConfigSrv=e,this.platformService=i,this.loggerSrv=r,this.participantService=o,this.deviceService=s,this.tokenService=a,this.OV=null,this.OVScreen=null,this.webcamSession=null,this.screenSession=null,this.videoSource=void 0,this.audioSource=void 0,this.log=this.loggerSrv.get("OpenViduService")}initialize(){this.OV=new ua.Dn,this.OV.setAdvancedConfiguration({publisherSpeakingEventsOptions:{interval:50}}),this.openviduAngularConfigSrv.isProduction()&&this.OV.enableProdMode(),this.webcamSession=this.OV.initSession(),this.platformService.isMobile()||(this.OVScreen=new ua.Dn,this.openviduAngularConfigSrv.isProduction()&&this.OVScreen.enableProdMode(),this.screenSession=this.OVScreen.initSession())}isOpenViduCE(){return this.ovEdition===Kl.CE}setOpenViduEdition(e){this.ovEdition=e}clear(){var e,i,r,o;return te(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===(o=null===(r=this.participantService.getMyScreenPublisher())||void 0===r?void 0:r.stream)||void 0===o?void 0:o.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 te(this,void 0,void 0,function*(){if(i&&e){const r=this.participantService.getMyNickname(),o=this.participantService.getLocalParticipant().id;e===this.webcamSession?(this.log.d("Connecting webcam session"),yield this.webcamSession.connect(i,{clientData:r,participantId:o,type:rn.CAMERA}),this.participantService.setMyCameraConnectionId(this.webcamSession.connection.connectionId)):e===this.screenSession&&(this.log.d("Connecting screen session"),yield this.screenSession.connect(i,{clientData:`${r}_${rn.SCREEN}`,participantId:o,type:rn.SCREEN}),this.participantService.setMyScreenConnectionId(this.screenSession.connection.connectionId))}})}disconnect(){this.disconnectSession(this.webcamSession),this.disconnectSession(this.screenSession)}initDefaultPublisher(e){return te(this,void 0,void 0,function*(){const i=this.deviceService.hasVideoDeviceAvailable(),r=this.deviceService.hasAudioDeviceAvailable(),o=!this.deviceService.isVideoMuted(),s=!this.deviceService.isAudioMuted();let a=null,l=null;i&&(a=this.deviceService.getCameraSelected().device),r&&(l=this.deviceService.getMicrophoneSelected().device);const u={videoSource:a,audioSource:l,publishVideo:o,publishAudio:s,mirror:this.deviceService.getCameraSelected()&&this.deviceService.getCameraSelected().type===Wo.FRONT};if(i||r){const d=yield this.initPublisher(e,u);return this.participantService.setMyCameraPublisher(d),this.participantService.updateLocalParticipant(),d}this.participantService.setMyCameraPublisher(null)})}initPublisher(e,i){return te(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,r,o,s;return te(this,void 0,void 0,function*(){if(e)if(e===this.participantService.getMyCameraPublisher()){if(null===(r=null===(i=this.webcamSession)||void 0===i?void 0:i.capabilities)||void 0===r?void 0:r.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===(o=this.screenSession)||void 0===o?void 0:o.capabilities)||void 0===s?void 0: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 te(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 r=this.participantService.hasScreenAudioActive();this.isWebcamSessionConnected()||(yield this.connectSession(this.getWebcamSession(),this.tokenService.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(),r),this.participantService.enableWebcamStream()}else yield this.publishVideoAux(this.participantService.getMyCameraPublisher(),e)})}publishVideoAux(e,i){return te(this,void 0,void 0,function*(){e&&(yield e.publishVideo(i,!0),this.participantService.updateLocalParticipant())})}publishAudio(e){return te(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 te(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(),r=(!this.participantService.isMyCameraActive()||!this.participantService.isMyVideoActive())&&e&&this.participantService.isMyAudioActive();console.warn("will be audio active",r);const o={videoSource:cd.SCREEN,audioSource:e?this.deviceService.getMicrophoneSelected().device:null,publishVideo:!0,publishAudio:r,mirror:!1},s=yield this.initPublisher(void 0,o);s.once("accessAllowed",()=>te(this,void 0,void 0,function*(){s.stream.getMediaStream().getVideoTracks()[0].addEventListener("ended",()=>te(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.tokenService.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.tokenService.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())}republishTrack(e){const{videoSource:i,audioSource:r,mirror:o}=e;return new Promise((s,a)=>te(this,void 0,void 0,function*(){i&&(this.log.d("Replacing video track "+i),this.videoSource=i),r&&(this.log.d("Replacing audio track "+r),this.audioSource=r),this.destroyPublisher(this.participantService.getMyCameraPublisher());const l={videoSource:this.videoSource,audioSource:this.audioSource,publishVideo:this.participantService.isMyVideoActive(),publishAudio:this.participantService.isMyAudioActive(),mirror:o},c=yield this.initPublisher(void 0,l);this.participantService.setMyCameraPublisher(c),c.once("streamPlaying",()=>{this.participantService.setMyCameraPublisher(c),s()}),c.once("accessDenied",()=>{a()})}))}sendSignal(e,i,r){const o={data:JSON.stringify(r),type:e,to:i&&i.length>0?i:void 0};this.webcamSession.signal(o)}replaceTrack(e,i){return te(this,void 0,void 0,function*(){try{if(this.log.d(`Replacing ${e} track`,i),e===rn.CAMERA)throw"Replace track feature has a bug. We are trying to fix it";if(e===rn.SCREEN){let r;try{r=yield this.OVScreen.getUserMedia(i),this.participantService.getMyScreenPublisher().stream.getMediaStream().getVideoTracks()[0].stop(),yield this.participantService.getMyScreenPublisher().replaceTrack(r.getVideoTracks()[0])}catch(o){this.log.w("Cannot create the new MediaStream",o)}}}catch(r){this.log.e("Error replacing track ",r)}})}destroyPublisher(e){e&&(e.stream.getWebRtcPeer()&&e.stream.disposeWebRtcPeer(),e.stream.disposeMediaStream(),e.id===this.participantService.getMyCameraPublisher().id?this.participantService.setMyCameraPublisher(e):e.id===this.participantService.getMyScreenPublisher().id&&this.participantService.setMyScreenPublisher(e))}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,r,o,s;return(null===(r=null===(i=this.webcamSession)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)===e||(null===(s=null===(o=this.screenSession)||void 0===o?void 0:o.connection)||void 0===s?void 0:s.connectionId)===e}getRemoteConnections(){return Array.from(this.webcamSession.remoteConnections.values()).filter(i=>{let r;return r=JSON.parse(i.data).type,r!==rn.SCREEN})}disconnectSession(e){var i,r,o,s;e&&(e.sessionId===(null===(i=this.webcamSession)||void 0===i?void 0:i.sessionId)?(this.log.d("Disconnecting webcam session"),null===(r=this.webcamSession)||void 0===r||r.disconnect(),this.webcamSession=null):e.sessionId===(null===(o=this.screenSession)||void 0===o?void 0:o.sessionId)&&(this.log.d("Disconnecting screen session"),null===(s=this.screenSession)||void 0===s||s.disconnect(),this.screenSession=null))}}return n.\u0275fac=function(e){return new(e||n)(ae(cn),ae(Dp),ae(br),ae(Cr),ae(dd),ae(Yl))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$o=(()=>{class n{constructor(e){this.loggerSrv=e,this.isChatOpened=!1,this.isParticipantsOpened=!1,this.isExternalOpened=!1,this._panelOpened=new Dt({opened:!1}),this.log=this.loggerSrv.get("PanelService"),this.panelOpenedObs=this._panelOpened.asObservable()}togglePanel(e){let i;this.log.d(`Toggling ${e} menu`),e===wn.CHAT?(this.isChatOpened=!this.isChatOpened,this.isParticipantsOpened=!1,this.isExternalOpened=!1,i=this.isChatOpened):e===wn.PARTICIPANTS?(this.isParticipantsOpened=!this.isParticipantsOpened,this.isChatOpened=!1,this.isExternalOpened=!1,i=this.isParticipantsOpened):(this.log.d("Toggling external panel"),this.isChatOpened=!1,this.isParticipantsOpened=!1,this.isExternalOpened=!this.isExternalOpened||this.externalType!==e,this.externalType=this.isExternalOpened?e:"",i=this.isExternalOpened),this._panelOpened.next({opened:i,type:e})}isPanelOpened(){return this.isChatPanelOpened()||this.isParticipantsPanelOpened()||this.isExternalPanelOpened()}closePanel(){this.isParticipantsOpened=!1,this.isChatOpened=!1,this.isExternalOpened=!1,this._panelOpened.next({opened:!1})}isChatPanelOpened(){return this.isChatOpened}isParticipantsPanelOpened(){return this.isParticipantsOpened}isExternalPanelOpened(){return this.isExternalOpened}}return n.\u0275fac=function(e){return new(e||n)(ae(br))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ate=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(f(_y),f(WT))},n.\u0275cmp=ht({type:n,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&&(X(0,"h1",0),Fe(1),J(),X(2,"div",1),Fe(3),J(),fe(4,GZ,3,0,"div",2)),2&e&&(de(1),On(i.data.title),de(2),On(i.data.description),de(1),oe("ngIf",i.data.showActionButtons))},directives:[kG,PG,Wn,RG,Bo],encapsulation:2}),n})(),hd=(()=>{class n{constructor(e,i){this.snackBar=e,this.dialog=i}launchNotification(e,i){e.config||(e.config={duration:3e3,verticalPosition:"top",horizontalPosition:"end"});const r=this.snackBar.open(e.message,e.buttonActionText,e.config);i&&r.onAction().subscribe(()=>{i()})}openDialog(e,i,r=!0){try{this.closeDialog()}catch(o){}finally{this.dialogRef=this.dialog.open(ate,{minWidth:"250px",data:{title:e,description:i,showActionButtons:r},disableClose:!r}),this.dialogRef.afterClosed().subscribe(s=>{this.dialogRef=null})}}closeDialog(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(ae(f9),ae(yy))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tp=(()=>{class n{constructor(e,i,r,o,s){this.loggerSrv=e,this.openviduService=i,this.participantService=r,this.panelService=o,this.actionService=s,this._messageList=new Dt([]),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:${Cs.CHAT}`,i=>{const r=i.from.connectionId,o=JSON.parse(i.data),s=this.openviduService.isMyOwnConnection(r);if(this.messageList.push({isLocal:s,nickname:o.nickname,message:o.message}),!this.panelService.isPanelOpened()){const a={message:`${o.nickname.toUpperCase()} sent a message`,cssClassName:"messageSnackbar",buttonActionText:"READ"};this.launchNotification(a),this.messageSound.play().catch(()=>{})}this._messageList.next(this.messageList)})}sendMessage(e){if(""!==(e=e.replace(/ +(?= )/g,""))&&" "!==e){const i={message:e,nickname:this.participantService.getMyNickname()};this.openviduService.sendSignal(Cs.CHAT,void 0,i)}}launchNotification(e){this.actionService.launchNotification(e,this.panelService.togglePanel.bind(this.panelService,wn.CHAT))}}return n.\u0275fac=function(e){return new(e||n)(ae(br),ae(ws),ae(Cr),ae($o),ae(hd))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var fd=(()=>{return(n=fd||(fd={})).STARTED="STARTED",n.STOPPED="STOPPED",fd;var n})();let pk=(()=>{class n{constructor(){this.recordingStatus=new Dt(null),this.recordingStatusObs=this.recordingStatus.asObservable()}startRecording(e){this.recordingStatus.next({status:fd.STARTED,id:e.id,name:e.name,reason:e.reason})}stopRecording(e){this.recordingStatus.next({status:fd.STOPPED,id:e.id,name:e.name,reason:e.reason})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe))},n.\u0275dir=ge({type:n,selectors:[["img","ovLogo",""]],hostBindings:function(e,i){1&e&&Ve("error",function(){return i.loadDefaultLogo()})},inputs:{ovLogo:"ovLogo"}}),n})(),cte=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u,d,h,m,I){this.documentService=e,this.chatService=i,this.panelService=r,this.tokenService=o,this.participantService=s,this.openviduService=a,this.oVDevicesService=l,this.actionService=c,this.loggerSrv=u,this.cd=d,this.libService=h,this.platformService=m,this.recordingService=I,this.onLeaveButtonClicked=new Ne,this.onCameraButtonClicked=new Ne,this.onMicrophoneButtonClicked=new Ne,this.onFullscreenButtonClicked=new Ne,this.onScreenshareButtonClicked=new Ne,this.onParticipantsPanelButtonClicked=new Ne,this.onChatPanelButtonClicked=new Ne,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.showParticipantsPanelButton=!0,this.showActivitiesPanelButton=!0,this.showChatPanelButton=!0,this.showLogo=!0,this.showSessionName=!0,this.videoMuteChanging=!1,this.isRecording=!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 te(this,void 0,void 0,function*(){this.subscribeToToolbarDirectives(),yield this.oVDevicesService.initializeDevices(),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()})}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.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()}toggleMicrophone(){return te(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("There was an error toggling camera",(null==e?void 0:e.error)||(null==e?void 0:e.message))}})}toggleCamera(){return te(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(wn.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("There was an error toggling camera",(null==e?void 0:e.error)||(null==e?void 0:e.message))}this.videoMuteChanging=!1})}toggleScreenShare(){return te(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("Error sharing screen","Your browser does not support screen sharing")}})}leaveSession(){this.log.d("Leaving session..."),this.openviduService.disconnect(),this.onLeaveButtonClicked.emit()}toggleActivitiesPanel(e){}toggleBackgroundEffects(){this.panelService.togglePanel(wn.BACKGROUND_EFFECTS)}toggleParticipantsPanel(){this.onParticipantsPanelButtonClicked.emit(),this.panelService.togglePanel(wn.PARTICIPANTS)}toggleChatPanel(){this.onChatPanelButtonClicked.emit(),this.panelService.togglePanel(wn.CHAT)}toggleFullscreen(){this.isFullscreenActive=!this.isFullscreenActive,this.documentService.toggleFullscreen("session-container"),this.onFullscreenButtonClicked.emit()}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===wn.CHAT,this.isParticipantsOpened=e.opened&&e.type===wn.PARTICIPANTS,this.isActivitiesOpened=e.opened&&e.type===wn.ACTIVITIES,this.isChatOpened&&(this.unreadMessages=0)})}subscribeToChatMessages(){this.chatMessagesSubscription=this.chatService.messagesObs.pipe(Ou(1)).subscribe(e=>{this.panelService.isPanelOpened()||this.unreadMessages++,this.messageList=e,this.cd.markForCheck()})}subscribeToUserMediaProperties(){this.localParticipantSubscription=this.participantService.localParticipantObs.subscribe(e=>{e&&(this.isWebcamVideoActive=e.isCameraVideoActive(),this.isAudioActive=e.isCameraAudioActive()||e.isScreenAudioActive(),this.isScreenShareActive=e.isScreenActive(),this.cd.markForCheck())})}subscribeToRecordingStatus(){}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.cd.markForCheck()}),this.leaveButtonSub=this.libService.leaveButtonObs.subscribe(e=>{this.showLeaveButton=e,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.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e,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()})}}return n.\u0275fac=function(e){return new(e||n)(f(Mp),f(Tp),f($o),f(Yl),f(Cr),f(ws),f(dd),f(hd),f(br),f(an),f(cn),f(Dp),f(pk))},n.\u0275cmp=ht({type:n,selectors:[["ov-toolbar"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,qZ,5,lt),qe(r,WZ,5,lt),qe(r,ok,5),qe(r,sk,5)),2&e){let o;Te(o=Ie())&&(i.toolbarAdditionalButtonsTemplate=o.first),Te(o=Ie())&&(i.toolbarAdditionalPanelButtonsTemplate=o.first),Te(o=Ie())&&(i.externalAdditionalButtons=o.first),Te(o=Ie())&&(i.externalAdditionalPanelButtons=o.first)}},viewQuery:function(e,i){if(1&e&&Bt(sp,5),2&e){let r;Te(r=Ie())&&(i.menuTrigger=r.first)}},hostBindings:function(e,i){1&e&&Ve("resize",function(o){return i.sizeChange(o)},!1,wc)("keydown",function(o){return i.keyDown(o)},!1,Dm)},outputs:{onLeaveButtonClicked:"onLeaveButtonClicked",onCameraButtonClicked:"onCameraButtonClicked",onMicrophoneButtonClicked:"onMicrophoneButtonClicked",onFullscreenButtonClicked:"onFullscreenButtonClicked",onScreenshareButtonClicked:"onScreenshareButtonClicked",onParticipantsPanelButtonClicked:"onParticipantsPanelButtonClicked",onChatPanelButtonClicked:"onChatPanelButtonClicked"},decls:31,vars:28,consts:[["id","toolbar","role","heading","fxLayout","","fxLayoutAlign","center","fxLayoutGap","10px"],["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",4,"ngIf"],["fxFlex","60%","fxFlexOrder","2","fxLayoutAlign","center center","id","media-buttons-container"],["id","mic-btn","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your audio","id","mic",4,"ngIf"],["matTooltip","Unmute your audio","id","mic_off",4,"ngIf"],["id","camera-btn","mat-icon-button","",3,"disabled","click"],["matTooltip","Mute your cam","id","videocam",4,"ngIf"],["matTooltip","Unmute your cam","id","videocam_off",4,"ngIf"],["mat-icon-button","","id","screenshare-btn",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","fullscreen-btn",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled",4,"ngIf"],["menu","matMenu"],["mat-menu-item","","id","fullscreen-btn",3,"click"],[4,"ngIf"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click",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","participants-panel-btn","matTooltip","Participants",3,"disabled","active-btn","click",4,"ngIf"],["mat-icon-button","","id","chat-panel-btn","matTooltip","Chat",3,"disabled","active-btn","click",4,"ngIf"],["id","branding-logo","src","assets/images/logo.png","ovLogo",""],["id","session-name"],["id","recording-tag"],["matTooltip","Mute your audio","id","mic"],["matTooltip","Unmute your audio","id","mic_off"],["matTooltip","Mute your cam","id","videocam"],["matTooltip","Unmute your cam","id","videocam_off"],["mat-icon-button","","id","screenshare-btn",3,"disabled","click"],["matTooltip","Enable screen share",4,"ngIf"],["matTooltip","Disable screen share",4,"ngIf"],["matTooltip","Enable screen share"],["matTooltip","Disable screen share"],["mat-icon-button","","id","fullscreen-btn",3,"disabled","click"],["matTooltip","Exit Fullscreen",4,"ngIf"],["matTooltip","Fullscreen",4,"ngIf"],["matTooltip","Exit Fullscreen"],["matTooltip","Fullscreen"],["mat-icon-button","","id","more-options-btn",3,"matMenuTriggerFor","disabled"],["matTooltip","More options"],["mat-menu-item","","id","virtual-bg-btn",3,"disabled","click"],[4,"ngTemplateOutlet"],["mat-icon-button","","id","leave-btn",3,"click"],["matTooltip","Leave the session"],["mat-icon-button","","id","participants-panel-btn","matTooltip","Participants",3,"disabled","click"],["mat-icon-button","","id","chat-panel-btn","matTooltip","Chat",3,"disabled","click"],["matBadgePosition","above before","matBadgeSize","small","matBadgeColor","accent",3,"matBadge","matBadgeHidden"]],template:function(e,i){1&e&&(X(0,"mat-toolbar",0),X(1,"div",1),X(2,"div"),fe(3,$Z,1,0,"img",2),X(4,"div",3),fe(5,QZ,2,1,"span",4),fe(6,YZ,5,0,"div",5),J(),J(),J(),X(7,"div",6),X(8,"button",7),Ve("click",function(){return i.toggleMicrophone()}),fe(9,KZ,2,0,"mat-icon",8),fe(10,ZZ,2,0,"mat-icon",9),J(),X(11,"button",10),Ve("click",function(){return i.toggleCamera()}),fe(12,XZ,2,0,"mat-icon",11),fe(13,JZ,2,0,"mat-icon",12),J(),fe(14,nX,3,5,"button",13),fe(15,oX,3,5,"button",14),fe(16,sX,3,2,"button",15),X(17,"mat-menu",null,16),X(19,"button",17),Ve("click",function(){return i.toggleFullscreen()}),fe(20,aX,2,0,"mat-icon",18),fe(21,lX,2,0,"span",18),fe(22,cX,2,0,"mat-icon",18),fe(23,uX,2,0,"span",18),J(),fe(24,dX,5,1,"button",19),J(),fe(25,fX,2,1,"ng-container",18),fe(26,pX,3,0,"button",20),J(),X(27,"div",21),fe(28,mX,3,3,"button",22),fe(29,gX,3,5,"button",23),fe(30,_X,2,1,"ng-container",18),J(),J()),2&e&&(de(3),oe("ngIf",!i.isMinimal&&i.showLogo),de(1),pt("colapsed",i.isRecording),de(1),oe("ngIf",!i.isMinimal&&i.session&&i.session.sessionId&&i.showSessionName),de(1),oe("ngIf",i.isRecording),de(2),pt("warn-btn",!i.isAudioActive),oe("disabled",i.isConnectionLost||!i.hasAudioDevices),de(1),oe("ngIf",i.isAudioActive),de(1),oe("ngIf",!i.isAudioActive),de(1),pt("warn-btn",!i.isWebcamVideoActive),oe("disabled",i.isConnectionLost||!i.hasVideoDevices||i.videoMuteChanging),de(1),oe("ngIf",i.isWebcamVideoActive),de(1),oe("ngIf",!i.isWebcamVideoActive),de(1),oe("ngIf",!i.isMinimal&&i.showScreenshareButton),de(1),oe("ngIf",!i.isMinimal&&i.showFullscreenButton&&!i.showBackgroundEffectsButton),de(1),oe("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),de(4),oe("ngIf",!i.isFullscreenActive),de(1),oe("ngIf",!i.isFullscreenActive),de(1),oe("ngIf",i.isFullscreenActive),de(1),oe("ngIf",i.isFullscreenActive),de(1),oe("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),de(1),oe("ngIf",i.toolbarAdditionalButtonsTemplate),de(1),oe("ngIf",i.showLeaveButton),de(2),oe("ngIf",!i.isMinimal&&i.showParticipantsPanelButton),de(1),oe("ngIf",!i.isMinimal&&i.showChatPanelButton),de(1),oe("ngIf",i.toolbarAdditionalPanelButtonsTemplate))},directives:[l7,Wu,Qu,zy,$u,Wn,Gy,Bo,xI,Yu,lte,vs,Bl,sp,cs,Mz],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 15px;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;animation:blinker 1.5s linear infinite}#recording-tag[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;display:inline;vertical-align:sub;margin-right:5px}#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}@media (max-width: 750px){#session-name[_ngcontent-%COMP%]{display:none}}@media (max-width: 850px){#branding-logo[_ngcontent-%COMP%]{display:none}} .mat-menu-panel{margin-bottom:10px}@keyframes blinker{50%{opacity:.2}}"],changeDetection:0}),n})(),ute=(()=>{class n{constructor(){this.type=rn.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===rn.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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ht({type:n,selectors:[["ov-video"]],viewQuery:function(e,i){if(1&e&&Bt(yX,5),2&e){let r;Te(r=Ie())&&(i.videoElement=r.first)}},inputs:{mutedSound:"mutedSound",streamManager:"streamManager"},decls:2,vars:2,consts:[[1,"OT_video-element",3,"muted"],["videoElement",""]],template:function(e,i){1&e&&ot(0,"video",0,1),2&e&&(oe("muted",i.mutedSound),Mt("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}"]}),n})();const dte={urls:{schemeMatches:!0,wwwMatches:!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 hte{constructor(){this.autolinker=new zZ(dte)}link(t){return this.autolinker.link(t)}}let fte=(()=>{class n{constructor(){this.linkifer=new hte}transform(e){return e&&this.linkifer.link(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ti({name:"linkify",type:n,pure:!0}),n})(),pte=(()=>{class n{constructor(e,i,r){this.chatService=e,this.panelService=i,this.cd=r,this.messageList=[]}onKeydownHandler(e){this.panelService.isPanelOpened()&&this.close()}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(wn.CHAT)}subscribeToMessages(){this.chatMessageSubscription=this.chatService.messagesObs.subscribe(e=>{this.messageList=e,this.panelService.isPanelOpened()&&(this.scrollToBottom(),this.cd.markForCheck())})}}return n.\u0275fac=function(e){return new(e||n)(f(Tp),f($o),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-chat-panel"]],viewQuery:function(e,i){if(1&e&&(Bt(bX,5),Bt(CX,5)),2&e){let r;Te(r=Ie())&&(i.chatScroll=r.first),Te(r=Ie())&&(i.chatInput=r.first)}},hostBindings:function(e,i){1&e&&Ve("keydown.escape",function(o){return i.onKeydownHandler(o)},!1,Dm)},decls:19,vars:2,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","","matTooltip","Close",1,"panel-close-button",3,"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","placeholder","Send a message","autocomplete","off","id","chat-input",3,"ngModel","keypress","ngModelChange"],["chatInput",""],["mat-icon-button","","id","send-btn",3,"click"],["matTooltip","Send"],[1,"message",3,"ngClass"],[1,"msg-detail"],[1,"nickname-container"],[4,"ngIf"],[1,"msg-content"],[3,"innerHTML"]],template:function(e,i){1&e&&(X(0,"div",0),X(1,"div",1),X(2,"h3",2),Fe(3,"Chat"),J(),X(4,"button",3),Ve("click",function(){return i.close()}),X(5,"mat-icon"),Fe(6,"close"),J(),J(),J(),X(7,"div",4),X(8,"p",5),Fe(9,"Messages will be removed at the end of the session"),J(),J(),X(10,"div",6,7),fe(12,SX,8,6,"div",8),J(),X(13,"div",9),X(14,"textarea",10,11),Ve("keypress",function(o){return i.eventKeyPress(o)})("ngModelChange",function(o){return i.message=o}),J(),X(16,"button",12),Ve("click",function(){return i.sendMessage()}),X(17,"mat-icon",13),Fe(18,"send"),J(),J(),J(),J()),2&e&&(de(12),oe("ngForOf",i.messageList),de(2),oe("ngModel",i.message))},directives:[Wu,Qu,$u,Bo,Bl,vs,vl,Gy,El,Cu,yf,yu,Ro,ip,Wn],pipes:[fte],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}),n})(),pd=(()=>{class n{constructor(e){this.documentService=e,this._layoutWidthObs=new Dt(0),this.layoutWidthObs=this._layoutWidthObs.asObservable()}initialize(e=null){"number"==typeof e&&e>=0?setTimeout(()=>{this._initialize(),this.sendLayoutWidthEvent()},e):(this._initialize(),this.sendLayoutWidthEvent())}_initialize(){this.openviduLayout=new rte,this.openviduLayoutOptions=this.getOptions();const e=document.getElementById("layout");this.openviduLayout.initLayoutContainer(e,this.openviduLayoutOptions)}getOptions(){return{maxRatio:1.5,minRatio:.5625,fixedRatio:!1,bigClass:bs.BIG_ELEMENT,smallClass:bs.SMALL_ELEMENT,bigPercentage:.8,bigFixedRatio:!1,bigMaxRatio:.5625,bigMinRatio:.5625,bigFirst:!0,animate:!0}}update(e=null){const i=()=>{this.openviduLayout&&(this.openviduLayout.updateLayout(),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.documentService.getHTMLElementByClassName(null===(e=this.openviduLayout)||void 0===e?void 0:e.getLayoutContainer(),bs.SIDENAV_CONTAINER);i&&i.clientWidth&&this._layoutWidthObs.next(i.clientWidth)}}return n.\u0275fac=function(e){return new(e||n)(ae(Mp))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mk=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.actionService=e,this.openviduService=i,this.participantService=r,this.loggerSrv=o,this.chatService=s,this.tokenService=a,this.layoutService=l,this.panelService=c,this.recordingService=u,this.usedInPrejoinPage=!1,this.onSessionCreated=new Ne,this.sidenavMode=Ql.SIDE,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)}ngOnInit(){return te(this,void 0,void 0,function*(){this.usedInPrejoinPage||(this.session=this.openviduService.getWebcamSession(),this.sessionScreen=this.openviduService.getScreenSession(),this.subscribeToConnectionCreatedAndDestroyed(),this.subscribeToStreamCreated(),this.subscribeToStreamDestroyed(),this.subscribeToStreamPropertyChange(),this.subscribeToNicknameChanged(),this.chatService.subscribeToChat(),this.subscribeToReconnection(),this.subscribeToRecordingEvents(),this.onSessionCreated.emit(this.session),yield this.connectToSession())})}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.updateLayoutInterval&&clearInterval(this.updateLayoutInterval),this.layoutService.update()}),this.sideMenu.openedStart.subscribe(()=>{this.updateLayoutInterval=setInterval(()=>this.layoutService.update(),50)}),this.sideMenu.closedStart.subscribe(()=>{this.updateLayoutInterval=setInterval(()=>this.layoutService.update(),50)}),this.menuSubscription=this.panelService.panelOpenedObs.pipe(Ou(1)).subscribe(e=>{this.sideMenu&&(e.opened?this.sideMenu.open():this.sideMenu.close())})}subscribeToLayoutWidth(){this.layoutWidthSubscription=this.layoutService.layoutWidthObs.subscribe(e=>{this.sidenavMode=e<=this.SIDENAV_WIDTH_LIMIT_MODE?Ql.OVER:Ql.SIDE})}connectToSession(){return te(this,void 0,void 0,function*(){try{this.participantService.haveICameraAndScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),this.tokenService.getWebcamToken()),yield this.openviduService.connectSession(this.openviduService.getScreenSession(),this.tokenService.getScreenToken()),yield this.openviduService.publish(this.participantService.getMyCameraPublisher()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):this.participantService.isOnlyMyScreenActive()?(yield this.openviduService.connectSession(this.openviduService.getScreenSession(),this.tokenService.getScreenToken()),yield this.openviduService.publish(this.participantService.getMyScreenPublisher())):(yield this.openviduService.connectSession(this.openviduService.getWebcamSession(),this.tokenService.getWebcamToken()),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("There was an error connecting to the session:",(null==e?void 0:e.error)||(null==e?void 0:e.message))}})}subscribeToConnectionCreatedAndDestroyed(){this.session.on("connectionCreated",e=>{var i,r;const o=null===(i=e.connection)||void 0===i?void 0:i.connectionId,s=this.participantService.getNicknameFromConnectionData(e.connection.data),a=!this.openviduService.isMyOwnConnection(o),l=!(null==s?void 0:s.includes(`_${rn.SCREEN}`)),c=null===(r=e.connection)||void 0===r?void 0:r.data;if(a&&l&&(this.participantService.addRemoteConnection(o,c,null),this.openviduService.needSendNicknameSignal())){const u={clientData:this.participantService.getMyNickname()};this.openviduService.sendSignal(Cs.NICKNAME_CHANGED,[e.connection],u)}}),this.session.on("connectionDestroyed",e=>{const i=this.participantService.getNicknameFromConnectionData(e.connection.data),r=!this.openviduService.isMyOwnConnection(e.connection.connectionId),o=!(null==i?void 0:i.includes(`_${rn.SCREEN}`));r&&o&&this.participantService.removeConnectionByConnectionId(e.connection.connectionId)})}subscribeToStreamCreated(){this.session.on("streamCreated",e=>{var i,r,o,s;const a=null===(r=null===(i=e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId,l=null===(s=null===(o=e.stream)||void 0===o?void 0:o.connection)||void 0===s?void 0:s.data;if(!this.openviduService.isMyOwnConnection(a)){const u=this.session.subscribe(e.stream,void 0);this.participantService.addRemoteConnection(a,l,u)}})}subscribeToStreamDestroyed(){this.session.on("streamDestroyed",e=>{this.participantService.removeConnectionByConnectionId(e.stream.connection.connectionId)})}subscribeToStreamPropertyChange(){this.session.on("streamPropertyChanged",e=>{!this.openviduService.isMyOwnConnection(e.stream.connection.connectionId)&&this.participantService.updateRemoteParticipants()})}subscribeToNicknameChanged(){this.session.on(`signal:${Cs.NICKNAME_CHANGED}`,e=>{const i=e.from.connectionId;if(!this.openviduService.isMyOwnConnection(i)){const o=this.participantService.getNicknameFromConnectionData(e.data);this.participantService.setRemoteNickname(i,o)}})}subscribeToReconnection(){this.session.on("reconnecting",()=>{this.log.w("Connection lost: Reconnecting"),this.actionService.openDialog("Connection Problem","Oops! Trying to reconnect to the session ...",!1)}),this.session.on("reconnected",()=>{this.log.w("Connection lost: Reconnected"),this.actionService.closeDialog()}),this.session.on("sessionDisconnected",e=>{"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)})}}return n.\u0275fac=function(e){return new(e||n)(f(hd),f(ws),f(Cr),f(br),f(Tp),f(Yl),f(pd),f($o),f(pk))},n.\u0275cmp=ht({type:n,selectors:[["ov-session"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,xX,5,lt),qe(r,AX,5,lt),qe(r,MX,5,lt)),2&e){let o;Te(o=Ie())&&(i.toolbarTemplate=o.first),Te(o=Ie())&&(i.panelTemplate=o.first),Te(o=Ie())&&(i.layoutTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(Bt(DX,5),Bt(TX,5,Oe)),2&e){let r;Te(r=Ie())&&(i.sidenavMenu=r.first),Te(r=Ie())&&(i.videoContainer=r.first)}},hostBindings:function(e,i){1&e&&Ve("beforeunload",function(){return i.beforeunloadHandler()},!1,wc)("resize",function(){return i.sizeChange()},!1,wc)},inputs:{usedInPrejoinPage:"usedInPrejoinPage"},outputs:{onSessionCreated:"onSessionCreated"},decls:10,vars:4,consts:[["id","session-container"],[1,"sidenav-container"],["videoContainer",""],["position","end","fixedInViewport","true","fixedTopGap","0","fixedBottomGap","0",1,"sidenav-menu",3,"mode"],["sidenav",""],[4,"ngTemplateOutlet"],[1,"sidenav-main"],["id","layout-container"],["id","footer-container",4,"ngIf"],["id","footer-container"]],template:function(e,i){1&e&&(X(0,"div",0),X(1,"mat-sidenav-container",1,2),X(3,"mat-sidenav",3,4),fe(5,IX,1,0,"ng-container",5),J(),X(6,"mat-sidenav-content",6),X(7,"div",7),fe(8,OX,1,0,"ng-container",5),J(),J(),J(),fe(9,PX,2,1,"div",8),J()),2&e&&(de(3),lh("mode",i.sidenavMode),de(2),oe("ngTemplateOutlet",i.panelTemplate),de(3),oe("ngTemplateOutlet",i.layoutTemplate),de(1),oe("ngIf",i.toolbarTemplate))},directives:[N1,F1,cs,Ry,Wn],styles:["#session-container[_ngcontent-%COMP%]{background-color:var(--ov-primary-color);min-width:400px;height:100%}.sidenav-container[_ngcontent-%COMP%]{position:relative;height:calc(100% - 70px);min-height:calc(100% - 70px);padding-top:10px;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}.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);min-width:400px!important;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;min-width:400px!important}.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%}}"],changeDetection:0}),n})(),mte=(()=>{class n{constructor(){}transform(e){let i=[];return e&&Object.keys(e).length>0&&(Array.isArray(e)?e.forEach(r=>{i=i.concat(r.getAvailableConnections())}):i=e.getAvailableConnections()),i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ti({name:"streams",type:n,pure:!0}),n})(),gte=(()=>{class n{constructor(){}transform(e){return`(${(null==e?void 0:e.getConnectionTypesActive().toString()).replace(",",", ")})`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=ti({name:"streamTypesEnabled",type:n,pure:!0}),n})(),gk=(()=>{class n{constructor(e,i,r){this.layoutService=e,this.participantService=i,this.cd=r,this.remoteParticipants=[]}set externalStream(e){e&&(this.streamTemplate=e.template)}ngOnInit(){this.subscribeToParticipants()}ngAfterViewInit(){this.layoutService.initialize(0),this.layoutService.update(0)}ngOnDestroy(){this.localParticipant=null,this.remoteParticipants=[],this.localParticipantSubs&&this.localParticipantSubs.unsubscribe(),this.remoteParticipantsSubs&&this.remoteParticipantsSubs.unsubscribe(),this.layoutService.clear()}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 n.\u0275fac=function(e){return new(e||n)(f(pd),f(Cr),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-layout"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,RX,5,lt),qe(r,fk,5)),2&e){let o;Te(o=Ie())&&(i.streamTemplate=o.first),Te(o=Ie())&&(i.externalStream=o.first)}},decls:5,vars:6,consts:[["id","layout",1,"layout"],["class","OT_root OT_publisher",3,"ngClass",4,"ngFor","ngForOf"],["class","OT_root OT_publisher","id","remote-participant",3,"ngClass",4,"ngFor","ngForOf"],[1,"OT_root","OT_publisher",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["id","remote-participant",1,"OT_root","OT_publisher",3,"ngClass"]],template:function(e,i){1&e&&(X(0,"div",0),fe(1,NX,2,7,"div",1),sl(2,"streams"),fe(3,BX,2,7,"div",2),sl(4,"streams"),J()),2&e&&(de(1),oe("ngForOf",al(2,2,i.localParticipant)),de(2),oe("ngForOf",al(4,4,i.remoteParticipants)))},directives:[vl,Ro,ip,cs],pipes:[mte],styles:['#remote-participant[_ngcontent-%COMP%]{height:100%}.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;margin: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}),n})();var pa=(()=>{return(n=pa||(pa={})).BIG="zoom_in",n.NORMAL="zoom_out",pa;var n})();let bb=(()=>{class n extends Bu{constructor(){super(...arguments),this.containerSelector=".sidenav-main",this.customClass="cdk-overlay-container"}_createContainer(){const e=document.createElement("div");e.classList.add(this.customClass);let i=this.getElement(this.containerSelector);i||(i=this.getElement("body")),this._containerElement=i.appendChild(e)}setSelector(e){const i=this.getElement("."+this.customClass);if(i&&this.containerSelector!==e){const r=this.getElement(e);this.containerSelector=e,null==r||r.appendChild(i)}}getElement(e){return document.querySelector(e)}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=$e(n)))(i||n)}}(),n.\u0275prov=Ce({token:n,factory:n.\u0275fac}),n})(),vte=(()=>{class n{constructor(e){this.cdkOverlayModel=e}setSelector(e){this.cdkOverlayModel.setSelector(e)}}return n.\u0275fac=function(e){return new(e||n)(ae(bb))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_te=(()=>{class n{constructor(){this.isSpeaking=!1}set streamManager(e){this._streamManager=e,this._streamManager&&(this._streamManager.on("publisherStartSpeaking",i=>{this.isSpeaking=!0}),this._streamManager.on("publisherStopSpeaking",i=>{this.isSpeaking=!1}))}ngOnDestroy(){this._streamManager&&(this._streamManager.off("publisherStartSpeaking"),this._streamManager.off("publisherStopSpeaking"))}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ht({type:n,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&&(X(0,"div",0),ot(1,"div",1),ot(2,"div",2),ot(3,"div",1),J()),2&e&&(de(1),oe("ngClass",i.isSpeaking?"play":"pause"),de(1),oe("ngClass",i.isSpeaking?"play":"pause"),de(1),oe("ngClass",i.isSpeaking?"play":"pause"))},directives:[Ro,ip],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}"]}),n})(),yte=(()=>{class n{constructor(){}set name(e){this.letter=e[0]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ht({type:n,selectors:[["ov-avatar-profile"]],inputs:{name:"name",color:"color"},decls:3,vars:4,consts:[[1,"poster",3,"ngStyle"],["id","poster-text"]],template:function(e,i){1&e&&(X(0,"div",0),X(1,"span",1),Fe(2),J(),J()),2&e&&(oe("ngStyle",Rr(2,VX,i.color)),de(2),On(i.letter))},directives:[lu,sI],styles:[".poster[_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}"]}),n})(),vk=(()=>{class n{constructor(e,i,r,o,s,a,l){this.documentService=e,this.openviduService=i,this.layoutService=r,this.participantService=o,this.storageService=s,this.cdkSrv=a,this.libService=l,this.videoSizeIconEnum=pa,this.videoTypeEnum=rn,this.videoSizeIcon=pa.BIG,this.isMinimal=!1,this.showNickname=!0,this.showAudioDetection=!0,this.showSettingsButton=!0}set streamContainer(e){setTimeout(()=>{e&&(this._streamContainer=e,this.documentService.removeNoSizeElementClass(this._streamContainer.nativeElement))},0)}set stream(e){this._stream=e,this.checkVideoEnlarged(),this._stream.participant&&(this.nickname=this._stream.participant.nickname)}set nicknameInputElement(e){setTimeout(()=>{null==e||e.nativeElement.focus()})}ngOnInit(){this.subscribeToStreamDirectives()}ngOnDestroy(){this.cdkSrv.setSelector("body"),this.settingsButtonSub&&this.settingsButtonSub.unsubscribe(),this.displayAudioDetectionSub&&this.displayAudioDetectionSub.unsubscribe(),this.displayParticipantNameSub&&this.displayParticipantNameSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe()}toggleVideoEnlarged(){var e,i,r,o,s,a,l,c,u,d,h,m;(null===(r=null===(i=null===(e=this._stream.streamManager)||void 0===e?void 0:e.stream)||void 0===i?void 0:i.connection)||void 0===r?void 0:r.connectionId)&&(this.openviduService.isMyOwnConnection(null===(a=null===(s=null===(o=this._stream.streamManager)||void 0===o?void 0:o.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===(m=null===(h=null===(d=this._stream.streamManager)||void 0===d?void 0:d.stream)||void 0===h?void 0:h.connection)||void 0===m?void 0:m.connectionId)),this.layoutService.update()}toggleVideoMenu(e){var i,r;this.menuTrigger.menuOpen?this.menuTrigger.closeMenu():(this.cdkSrv.setSelector("#container-"+(null===(r=null===(i=this._stream.streamManager)||void 0===i?void 0:i.stream)||void 0===r?void 0:r.streamId)),this.menuTrigger.openMenu())}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._stream.participant.id,!this._stream.participant.isMutedForcibly)}toggleNicknameForm(){this._stream.participant.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(Cs.NICKNAME_CHANGED,void 0,{clientData:this.nickname})),this.toggleNicknameForm())}replaceScreenTrack(){return te(this,void 0,void 0,function*(){const e={videoSource:cd.SCREEN,publishVideo:!0,publishAudio:!this.participantService.isMyCameraActive(),mirror:!1};yield this.openviduService.replaceTrack(rn.SCREEN,e)})}checkVideoEnlarged(){this.videoSizeIcon=this._stream.videoEnlarged?pa.NORMAL:pa.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.settingsButtonObs.subscribe(e=>{this.showSettingsButton=e})}}return n.\u0275fac=function(e){return new(e||n)(f(Mp),f(ws),f(pd),f(Cr),f(ud),f(vte),f(cn))},n.\u0275cmp=ht({type:n,selectors:[["ov-stream"]],viewQuery:function(e,i){if(1&e&&(Bt(sp,5),Bt(jX,5),Bt(HX,5,Oe),Bt(UX,5)),2&e){let r;Te(r=Ie())&&(i.menuTrigger=r.first),Te(r=Ie())&&(i.menu=r.first),Te(r=Ie())&&(i.streamContainer=r.first),Te(r=Ie())&&(i.nicknameInputElement=r.first)}},inputs:{stream:"stream"},decls:1,vars:1,consts:[["class","OV_stream no-size",3,"id",4,"ngIf"],[1,"OV_stream","no-size",3,"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","","matTooltip","Settings","aria-label","Video settings menu",3,"click"],[3,"matMenuTriggerFor"],["yPosition","above","xPosition","before"],["menu","matMenu"],["mat-menu-item","","id","videoZoomButton",3,"click"],[4,"ngIf"],["mat-menu-item","","id","volumeButton",3,"click",4,"ngIf"],["mat-menu-item","","id","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&&fe(0,sJ,9,8,"div",0),2&e&&oe("ngIf",i._stream)},directives:[Wn,ute,_1,El,Cu,yf,yu,_te,yte,Bo,vs,Bl,sp,xI,Yu],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:1;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:#000;border-radius:var(--ov-video-radius)}input[_ngcontent-%COMP%]{caret-color:#fff!important}.poster_img[_ngcontent-%COMP%]{position:absolute;z-index:888;max-width:70%;max-height:70%;margin:auto;inset:0}"]}),n})(),_k=(()=>{class n{constructor(e,i,r){this.libService=e,this.participantService=i,this.cd=r,this.showMuteButton=!0}set externalItemElements(e){e&&(this.participantPanelItemElementsTemplate=e.template)}set participant(e){this._participant=e}ngOnInit(){this.subscribeToParticipantPanelItemDirectives()}ngOnDestroy(){this.muteButtonSub&&this.muteButtonSub.unsubscribe()}toggleMuteForcibly(){this.participantService.setRemoteMutedForcibly(this._participant.id,!this._participant.isMutedForcibly)}subscribeToParticipantPanelItemDirectives(){this.muteButtonSub=this.libService.participantItemMuteButton.subscribe(e=>{this.showMuteButton=e,this.cd.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(f(cn),f(Cr),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-participant-panel-item"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,aJ,5,lt),qe(r,hk,5)),2&e){let o;Te(o=Ie())&&(i.participantPanelItemElementsTemplate=o.first),Te(o=Ie())&&(i.externalItemElements=o.first)}},inputs:{participant:"participant"},decls:12,vars:6,consts:[["matListAvatar","",1,"participant-avatar"],["matLine","",1,"participant-nickname"],["matLine","",1,"participant-subtitle"],[1,"participant-action-buttons"],["mat-icon-button","","id","mute-btn",3,"warn-btn","click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","id","mute-btn",3,"click"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(X(0,"mat-list"),X(1,"mat-list-item"),X(2,"mat-icon",0),Fe(3,"person"),J(),X(4,"h3",1),Fe(5),J(),X(6,"p",2),Fe(7),sl(8,"streamTypesEnabled"),J(),X(9,"div",3),fe(10,uJ,3,4,"button",4),fe(11,hJ,2,1,"ng-container",5),J(),J(),J()),2&e&&(de(5),On(i._participant.nickname),de(2),On(al(8,4,i._participant)),de(3),oe("ngIf",!i._participant.local&&i.showMuteButton),de(1),oe("ngIf",i.participantPanelItemElementsTemplate))},directives:[$Q,QQ,vs,Wy,cy,Wn,Bo,cs],pipes:[gte],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}),n})(),bte=(()=>{class n{constructor(e,i,r){this.participantService=e,this.panelService=i,this.cd=r,this.remoteParticipants=[]}set externalParticipantPanelItem(e){e&&(this.participantPanelItemTemplate=e.template)}ngOnInit(){this.localParticipantSubs=this.participantService.localParticipantObs.subscribe(e=>{this.localParticipant=e,this.cd.markForCheck()}),this.remoteParticipantsSubs=this.participantService.remoteParticipantsObs.subscribe(e=>{const i=[];e.forEach(r=>{i.push(Object.create(r))}),this.remoteParticipants=i,this.cd.markForCheck()})}ngOnDestroy(){this.localParticipantSubs&&this.localParticipantSubs.unsubscribe()}ngAfterViewInit(){this.participantPanelItemTemplate||(this.participantPanelItemTemplate=this.defaultParticipantPanelItemTemplate,this.cd.detectChanges())}close(){this.panelService.closePanel()}}return n.\u0275fac=function(e){return new(e||n)(f(Cr),f($o),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-participants-panel"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,fJ,5,lt),qe(r,dk,5)),2&e){let o;Te(o=Ie())&&(i.participantPanelItemTemplate=o.first),Te(o=Ie())&&(i.externalParticipantPanelItem=o.first)}},viewQuery:function(e,i){if(1&e&&Bt(rk,5,lt),2&e){let r;Te(r=Ie())&&(i.defaultParticipantPanelItemTemplate=r.first)}},decls:12,vars:2,consts:[["id","participants-container",1,"panel-container"],[1,"panel-header-container"],[1,"panel-title"],["mat-icon-button","","matTooltip","Close",1,"panel-close-button",3,"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&&(X(0,"div",0),X(1,"div",1),X(2,"h3",2),Fe(3,"Participants"),J(),X(4,"button",3),Ve("click",function(){return i.close()}),X(5,"mat-icon"),Fe(6,"close"),J(),J(),J(),X(7,"div",4),fe(8,gJ,3,5,"div",5),fe(9,yJ,2,1,"div",6),J(),J(),fe(10,bJ,1,1,"ng-template",null,7,nn)),2&e&&(de(8),oe("ngIf",i.localParticipant),de(1),oe("ngIf",i.remoteParticipants.length>0))},directives:[Bo,Bl,vs,Wn,cs,LQ,vl,_k],styles:[yb,".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}),n})();var Yt=(()=>{return(n=Yt||(Yt={})).NONE="NONE",n.BLUR="BLUR",n.IMAGE="IMAGE",Yt;var n})();let yk=(()=>{class n{constructor(e,i){this.participantService=e,this.tokenService=i,this.backgroundSelected=new Dt(""),this.backgrounds=[{id:"no_effect",type:Yt.NONE,thumbnail:"block",description:"No background effect"},{id:"soft_blur",type:Yt.BLUR,thumbnail:"blur_on",description:"Blur effect"},{id:"1",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-1.jpg",src:"assets/backgrounds/bg-1.jpg"},{id:"2",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-2.jpg",src:"assets/backgrounds/bg-2.jpg"},{id:"3",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-3.jpg",src:"assets/backgrounds/bg-3.jpg"},{id:"4",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-4.jpg",src:"assets/backgrounds/bg-4.jpg"},{id:"19",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-19.jpg",src:"assets/backgrounds/bg-19.jpg"},{id:"5",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-5.jpg",src:"assets/backgrounds/bg-5.jpg"},{id:"6",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-6.jpg",src:"assets/backgrounds/bg-6.jpg"},{id:"7",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-7.jpg",src:"assets/backgrounds/bg-7.jpg"},{id:"8",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-8.jpg",src:"assets/backgrounds/bg-8.jpg"},{id:"9",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-9.jpg",src:"assets/backgrounds/bg-9.jpg"},{id:"10",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-10.jpg",src:"assets/backgrounds/bg-10.jpg"},{id:"11",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-11.jpg",src:"assets/backgrounds/bg-11.jpg"},{id:"12",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-12.jpg",src:"assets/backgrounds/bg-12.jpg"},{id:"13",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-13.jpg",src:"assets/backgrounds/bg-13.jpg"},{id:"14",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-14.jpg",src:"assets/backgrounds/bg-14.jpg"},{id:"15",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-15.jpg",src:"assets/backgrounds/bg-15.jpg"},{id:"16",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-16.jpg",src:"assets/backgrounds/bg-16.jpg"},{id:"17",type:Yt.IMAGE,thumbnail:"assets/backgrounds/thumbnails/bg-17.jpg",src:"assets/backgrounds/bg-17.jpg"},{id:"18",type:Yt.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}applyBackground(e){return te(this,void 0,void 0,function*(){if(e.id!==this.backgroundSelected.getValue()){const i=this.participantService.getMyCameraPublisher().stream.filter,r=!!i&&i.type.startsWith("VB:");let o={token:this.tokenService.getWebcamToken(),url:""};e.type===Yt.IMAGE&&(o.url=e.src),r&&this.hasSameTypeAsAbove(e.type)?this.replaceBackground(e):(yield this.removeBackground(),yield this.participantService.getMyCameraPublisher().stream.applyFilter(`VB:${e.type.toLowerCase()}`,o)),this.backgroundSelected.next(e.id)}})}removeBackground(){return te(this,void 0,void 0,function*(){this.isBackgroundApplied()&&(this.backgroundSelected.next("no_effect"),yield this.participantService.getMyCameraPublisher().stream.removeFilter())})}replaceBackground(e){return te(this,void 0,void 0,function*(){yield this.participantService.getMyCameraPublisher().stream.filter.execMethod("update",{url:e.src})})}hasSameTypeAsAbove(e){const i=this.backgrounds.find(r=>r.id===this.backgroundSelected.getValue());return(null==i?void 0:i.type)===e}}return n.\u0275fac=function(e){return new(e||n)(ae(Cr),ae(Yl))},n.\u0275prov=Ce({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bk=(()=>{class n{constructor(e,i){this.panelService=e,this.cd=i}set externalParticipantPanel(e){e&&(this.participantsPanelTemplate=e.template)}set externalBackgroundEffectsPanel(e){e&&(this.backgroundEffectsPanelTemplate=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(Ou(1)).subscribe(e=>{this.isChatPanelOpened=e.opened&&e.type===wn.CHAT,this.isParticipantsPanelOpened=e.opened&&e.type===wn.PARTICIPANTS,this.isBackgroundEffectsPanelOpened=e.opened&&e.type===wn.BACKGROUND_EFFECTS,this.isActivitiesPanelOpened=e.opened&&e.type===wn.ACTIVITIES,this.isExternalPanelOpened=e.opened&&e.type!==wn.PARTICIPANTS&&e.type!==wn.CHAT,this.cd.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(f($o),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-panel"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,CJ,5,lt),qe(r,wJ,5,lt),qe(r,EJ,5,lt),qe(r,SJ,5,lt),qe(r,xJ,5,lt),qe(r,uk,5),qe(r,nte,5),qe(r,ck,5),qe(r,lk,5),qe(r,ak,5)),2&e){let o;Te(o=Ie())&&(i.participantsPanelTemplate=o.first),Te(o=Ie())&&(i.backgroundEffectsPanelTemplate=o.first),Te(o=Ie())&&(i.activitiesPanelTemplate=o.first),Te(o=Ie())&&(i.chatPanelTemplate=o.first),Te(o=Ie())&&(i.additionalPanelsTemplate=o.first),Te(o=Ie())&&(i.externalParticipantPanel=o.first),Te(o=Ie())&&(i.externalBackgroundEffectsPanel=o.first),Te(o=Ie())&&(i.externalActivitiesPanel=o.first),Te(o=Ie())&&(i.externalChatPanel=o.first),Te(o=Ie())&&(i.externalAdditionalPanels=o.first)}},decls:5,vars:5,consts:[[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(fe(0,MJ,2,1,"ng-container",0),fe(1,TJ,2,1,"ng-container",0),fe(2,OJ,2,1,"ng-container",0),fe(3,PJ,2,1,"ng-container",0),fe(4,FJ,2,1,"ng-container",0)),2&e&&(oe("ngIf",i.isChatPanelOpened),de(1),oe("ngIf",i.isParticipantsPanelOpened),de(1),oe("ngIf",i.isBackgroundEffectsPanelOpened),de(1),oe("ngIf",i.isActivitiesPanelOpened),de(1),oe("ngIf",i.additionalPanelsTemplate&&i.isExternalPanelOpened))},directives:[Wn,cs],styles:[yb],changeDetection:0}),n})(),Ck=(()=>{class n{constructor(e,i,r){this.panelService=e,this.backgroundService=i,this.cd=r,this.backgroundImages=[],this.noEffectAndBlurredBackground=[]}ngOnInit(){this.subscribeToBackgroundSelected(),this.backgrounds=this.backgroundService.getBackgrounds(),this.noEffectAndBlurredBackground=this.backgrounds.filter(e=>e.type===Yt.BLUR||e.type===Yt.NONE),this.backgroundImages=this.backgrounds.filter(e=>e.type===Yt.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(wn.BACKGROUND_EFFECTS)}applyBackground(e){return te(this,void 0,void 0,function*(){e.type===Yt.NONE?yield this.removeBackground():yield this.backgroundService.applyBackground(e)})}removeBackground(){return te(this,void 0,void 0,function*(){yield this.backgroundService.removeBackground()})}}return n.\u0275fac=function(e){return new(e||n)(f($o),f(yk),f(an))},n.\u0275cmp=ht({type:n,selectors:[["ov-background-effects-panel"]],decls:19,vars:2,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","","matTooltip","Close",1,"panel-close-button",3,"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&&(X(0,"div",0),X(1,"div",1),X(2,"h3",2),Fe(3,"Background effects"),J(),X(4,"button",3),Ve("click",function(){return i.close()}),X(5,"mat-icon"),Fe(6,"close"),J(),J(),J(),X(7,"div",4),X(8,"div"),X(9,"h4"),Fe(10,"No effects and blurred background"),J(),X(11,"div"),fe(12,NJ,3,4,"button",5),J(),J(),ot(13,"hr"),X(14,"div"),X(15,"h4"),Fe(16,"Background images"),J(),X(17,"div",6),fe(18,LJ,2,3,"div",7),J(),J(),J(),J()),2&e&&(de(12),oe("ngForOf",i.noEffectAndBlurredBackground),de(6),oe("ngForOf",i.backgroundImages))},directives:[Wu,Qu,$u,Bo,Bl,vs,vl],styles:[yb,".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}),n})(),wk=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamDisplayParticipantName",""],["ov-stream","displayParticipantName",""]],inputs:{streamDisplayParticipantName:"streamDisplayParticipantName",displayParticipantName:"displayParticipantName"}}),n})(),Cte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamDisplayAudioDetection",""],["ov-stream","displayAudioDetection",""]],inputs:{streamDisplayAudioDetection:"streamDisplayAudioDetection",displayAudioDetection:"displayAudioDetection"}}),n})(),Ek=(()=>{class n{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.settingsButton.getValue()!==e&&this.libService.settingsButton.next(e)}clear(){this.update(!0)}}return n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","streamSettingsButton",""],["ov-stream","settingsButton",""]],inputs:{streamSettingsButton:"streamSettingsButton",settingsButton:"settingsButton"}}),n})(),wte=(()=>{class n{constructor(e,i,r,o,s,a,l,c,u){this.layoutService=e,this.deviceSrv=i,this.loggerSrv=r,this.openviduService=o,this.participantService=s,this.panelService=a,this.libService=l,this.storageSrv=c,this.backgroundService=u,this.onJoinButtonClicked=new Ne,this.isLoading=!0,this.showBackgroundEffectsButton=!0,this.isMinimal=!1,this.log=this.loggerSrv.get("PreJoinComponent")}sizeChange(){this.windowSize=window.innerWidth,this.layoutService.update()}ngOnInit(){this.subscribeToPrejoinDirectives(),this.subscribeToLocalParticipantEvents(),this.windowSize=window.innerWidth,this.hasVideoDevices=this.deviceSrv.hasVideoDeviceAvailable(),this.hasAudioDevices=this.deviceSrv.hasAudioDeviceAvailable(),this.microphones=this.deviceSrv.getMicrophones(),this.cameras=this.deviceSrv.getCameras(),this.cameraSelected=this.deviceSrv.getCameraSelected(),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected(),this.isVideoMuted=this.deviceSrv.isVideoMuted(),this.isAudioMuted=this.deviceSrv.isAudioMuted(),this.isLoading=!1}ngOnDestroy(){return te(this,void 0,void 0,function*(){this.localParticipantSubscription&&this.localParticipantSubscription.unsubscribe(),this.screenShareStateSubscription&&this.screenShareStateSubscription.unsubscribe(),this.backgroundEffectsButtonSub&&this.backgroundEffectsButtonSub.unsubscribe(),this.minimalSub&&this.minimalSub.unsubscribe(),this.panelService.closePanel()})}onCameraSelected(e){return te(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateVideoTrack(i)){const r=this.deviceSrv.cameraNeedsMirror(i),o={videoSource:i,audioSource:this.microphoneSelected.device,mirror:r},s=this.backgroundService.backgroundSelected.getValue();this.backgroundService.isBackgroundApplied()&&(yield this.backgroundService.removeBackground()),yield this.openviduService.republishTrack(o),this.backgroundService.isBackgroundApplied()&&(yield this.backgroundService.applyBackground(this.backgroundService.backgrounds.find(a=>a.id===s))),this.deviceSrv.setCameraSelected(i),this.cameraSelected=this.deviceSrv.getCameraSelected()}})}onMicrophoneSelected(e){return te(this,void 0,void 0,function*(){const i=null==e?void 0:e.value;if(this.deviceSrv.needUpdateAudioTrack(i)){const r=this.deviceSrv.cameraNeedsMirror(this.cameraSelected.device),o={videoSource:this.cameraSelected.device,audioSource:i,mirror:r};yield this.openviduService.republishTrack(o),this.deviceSrv.setMicSelected(i),this.microphoneSelected=this.deviceSrv.getMicrophoneSelected()}})}toggleCam(){return te(this,void 0,void 0,function*(){this.videoMuteChanging=!0;const e=this.isVideoMuted;yield this.openviduService.publishVideo(e),this.isVideoMuted=!this.isVideoMuted,this.storageSrv.setVideoMuted(this.isVideoMuted),this.isVideoMuted&&this.panelService.isExternalPanelOpened()&&this.panelService.togglePanel(wn.BACKGROUND_EFFECTS),this.videoMuteChanging=!1})}toggleMic(){this.openviduService.publishAudio(this.isAudioMuted),this.isAudioMuted=!this.isAudioMuted,this.storageSrv.setAudioMuted(this.isAudioMuted)}updateNickname(){this.nickname=""===this.nickname?this.participantService.getMyNickname():this.nickname,this.participantService.setMyNickname(this.nickname),this.storageSrv.setNickname(this.nickname)}joinSession(){this.onJoinButtonClicked.emit(),this.panelService.closePanel()}toggleBackgroundEffects(){this.panelService.togglePanel(wn.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.backgroundEffectsButtonSub=this.libService.backgroundEffectsButton.subscribe(e=>{this.showBackgroundEffectsButton=e})}}return n.\u0275fac=function(e){return new(e||n)(f(pd),f(dd),f(br),f(ws),f(Cr),f($o),f(cn),f(ud),f(yk))},n.\u0275cmp=ht({type:n,selectors:[["ov-pre-join"]],hostBindings:function(e,i){1&e&&Ve("resize",function(){return i.sizeChange()},!1,wc)},outputs:{onJoinButtonClicked:"onJoinButtonClicked"},decls:7,vars:3,consts:[["id","prejoin-container","fxLayout.gt-sm","row","fxLayout.lt-md","column",1,"container"],["fxFlex.gt-sm","65%","fxFlex.lt-md","55%","fxLayoutAlign","center center","id","layout-container"],[3,"usedInPrejoinPage"],[4,"ngIf"],["layout",""],["fxFlex.gt-sm","35%","fxFlex.lt-md","45%","fxLayoutAlign","center center","class","media-panel",4,"ngIf"],["panel",""],["backgroundEffectsPanel",""],["stream",""],["mat-icon-button","","id","background-effects-btn",3,"disabled","click",4,"ngIf"],[3,"stream","displayParticipantName","settingsButton"],["mat-icon-button","","id","background-effects-btn",3,"disabled","click"],["fxFlex.gt-sm","35%","fxFlex.lt-md","45%","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"],["id","nickname-input-container"],["mat-icon-button","","disabled",""],["appearance","standard"],["matInput","","type","text","maxlength","20","autocomplete","off",3,"ngModel","ngModelChange","change"],["fxFlex.gt-sm","100%","fxFlex.lt-md","33%","fxLayoutAlign","center center","fxFlexFill","",1,"buttons-container"],[1,"device-container-element"],["mat-icon-button","","id","camera-button",3,"disabled","click"],["matTooltip","Mute Camera","id","videocam",4,"ngIf"],["matTooltip","Unmute Camera","id","videocam_off",4,"ngIf"],[3,"disabled","value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","","id","microhpone-button",3,"disabled","click"],["matTooltip","Mute Audio","id","mic",4,"ngIf"],["matTooltip","Unmute Audio","id","mic_off",4,"ngIf"],["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"],["matTooltip","Mute Camera","id","videocam"],["matTooltip","Unmute Camera","id","videocam_off"],[3,"value"],["matTooltip","Mute Audio","id","mic"],["matTooltip","Unmute Audio","id","mic_off"]],template:function(e,i){1&e&&(X(0,"div",0),X(1,"div",1),X(2,"ov-session",2),fe(3,jJ,2,0,void 0,3),fe(4,zJ,3,0,"ng-template",null,4,nn),J(),J(),fe(6,eee,38,21,"div",5),J()),2&e&&(de(2),oe("usedInPrejoinPage",!0),de(1),oe("ngIf",!i.isMinimal&&i.showBackgroundEffectsButton),de(3),oe("ngIf",i.localParticipant))},directives:[Wu,$u,Qu,mk,Wn,bk,Ck,gk,vk,wk,Ek,Bo,vs,zy,dI,lq,by,_1,El,Cu,yf,yu,k9,vl,Bl,xT],styles:[".container[_ngcontent-%COMP%]{height:100%;padding:80px;background-color:var(--ov-light-color)}#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%] .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{background-color:var(--ov-light-color)!important}#prejoin-container[_ngcontent-%COMP%] .sidenav-menu{width:320px}#prejoin-container[_ngcontent-%COMP%] .layout{min-width:0px!important}#background-effects-btn[_ngcontent-%COMP%]{position:absolute;z-index:1;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}#nickname-input-container[_ngcontent-%COMP%], .device-container-element[_ngcontent-%COMP%]{display:flex}#nickname-input-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .device-container-element[_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%], .device-container-element[_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}.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}#camera-button[_ngcontent-%COMP%]{border-radius:var(--ov-buttons-radius)}.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)}.warn-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-warn-color)!important}.active-btn[_ngcontent-%COMP%]{color:var(--ov-text-color);background-color:var(--ov-tertiary-color)!important}.media-btn[_ngcontent-%COMP%]{margin:auto} .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}@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){.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:80%!important;min-width:80%!important;margin:auto}.buttons-container[_ngcontent-%COMP%], .media-panel-container[_ngcontent-%COMP%]{padding-top:0;max-width:600px}.media-panel[_ngcontent-%COMP%]{align-items:flex-start!important}}"]}),n})(),Sk=(()=>{class n{constructor(e,i,r,o,s,a,l,c){this.loggerSrv=e,this.storageSrv=i,this.participantService=r,this.deviceSrv=o,this.openviduService=s,this.actionService=a,this.libService=l,this.tokenService=c,this.onJoinButtonClicked=new Ne,this.onToolbarLeaveButtonClicked=new Ne,this.onToolbarCameraButtonClicked=new Ne,this.onToolbarMicrophoneButtonClicked=new Ne,this.onToolbarScreenshareButtonClicked=new Ne,this.onToolbarFullscreenButtonClicked=new Ne,this.onToolbarParticipantsPanelButtonClicked=new Ne,this.onToolbarChatPanelButtonClicked=new Ne,this.onSessionCreated=new Ne,this.onParticipantCreated=new Ne,this.joinSessionClicked=!1,this.participantReady=!1,this.tokensReceived=!1,this.error=!1,this.errorMessage="",this.showPrejoin=!0,this.log=this.loggerSrv.get("VideoconferenceComponent")}set tokens(e){e&&e.webcam?(this.log.w("Tokens received"),this.tokenService.setWebcamToken(e.webcam),new URL(e.webcam).searchParams.get("edition")?this.openviduService.setOpenViduEdition(Kl.PRO):(this.openviduService.setOpenViduEdition(Kl.CE),this.libService.backgroundEffectsButton.next(!1)),e.screen?this.tokenService.setScreenToken(e.screen):(this.libService.screenshareButton.next(!1),this.log.w("No screen token found. Screenshare feature will be disabled")),this.tokensReceived=!0):this.log.w("No tokens received")}ngOnInit(){return te(this,void 0,void 0,function*(){this.subscribeToVideconferenceDirectives(),yield this.deviceSrv.initializeDevices();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.onParticipantCreated.emit(this.participantService.getLocalParticipant())})}initwebcamPublisher(){return te(this,void 0,void 0,function*(){try{const e=yield this.openviduService.initDefaultPublisher(void 0);e&&(e.once("accessDenied",i=>{this.handlePublisherError(i)}),e.once("accessAllowed",()=>{this.participantReady=!0}))}catch(e){this.actionService.openDialog(e.name.replace(/_/g," "),e.message,!0),this.log.e(e)}})}ngOnDestroy(){return te(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.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)}_onJoinButtonClicked(){this.joinSessionClicked=!0,this.onJoinButtonClicked.emit()}onLeaveButtonClicked(){this.joinSessionClicked=!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()}_onSessionCreated(e){this.onSessionCreated.emit(e)}handlePublisherError(e){let i;return e.name===ua.Ll.DEVICE_ALREADY_IN_USE?(this.log.w("Video device already in use. Disabling video device..."),this.deviceSrv.disableVideoDevices(),this.initwebcamPublisher()):e.name===ua.Ll.DEVICE_ACCESS_DENIED?(i="Access to media devices was not allowed.",this.deviceSrv.disableVideoDevices(),this.deviceSrv.disableAudioDevices(),this.initwebcamPublisher()):(e.name===ua.Ll.NO_INPUT_SOURCE_SET&&(i="No video or audio devices have been found. Please, connect at least one."),this.actionService.openDialog(e.name.replace(/_/g," "),i,!0),void 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 n.\u0275fac=function(e){return new(e||n)(f(br),f(ud),f(Cr),f(dd),f(ws),f(hd),f(cn),f(Yl))},n.\u0275cmp=ht({type:n,selectors:[["ov-videoconference"]],contentQueries:function(e,i,r){if(1&e&&(qe(r,ete,5),qe(r,ok,5),qe(r,sk,5),qe(r,ak,5),qe(r,tte,5),qe(r,lk,5),qe(r,ck,5),qe(r,uk,5),qe(r,dk,5),qe(r,hk,5),qe(r,ite,5),qe(r,fk,5)),2&e){let o;Te(o=Ie())&&(i.externalToolbar=o.first),Te(o=Ie())&&(i.externalToolbarAdditionalButtons=o.first),Te(o=Ie())&&(i.externalToolbarAdditionalPanelButtons=o.first),Te(o=Ie())&&(i.externalAdditionalPanels=o.first),Te(o=Ie())&&(i.externalPanel=o.first),Te(o=Ie())&&(i.externalChatPanel=o.first),Te(o=Ie())&&(i.externalActivitiesPanel=o.first),Te(o=Ie())&&(i.externalParticipantsPanel=o.first),Te(o=Ie())&&(i.externalParticipantPanelItem=o.first),Te(o=Ie())&&(i.externalParticipantPanelItemElements=o.first),Te(o=Ie())&&(i.externalLayout=o.first),Te(o=Ie())&&(i.externalStream=o.first)}},viewQuery:function(e,i){if(1&e&&(Bt(tee,5,lt),Bt(nee,5,lt),Bt(iee,5,lt),Bt(ree,5,lt),Bt(oee,5,lt),Bt(rk,5,lt),Bt(see,5,lt),Bt(aee,5,lt)),2&e){let r;Te(r=Ie())&&(i.defaultToolbarTemplate=r.first),Te(r=Ie())&&(i.defaultPanelTemplate=r.first),Te(r=Ie())&&(i.defaultChatPanelTemplate=r.first),Te(r=Ie())&&(i.defaultParticipantsPanelTemplate=r.first),Te(r=Ie())&&(i.defaultActivitiesPanelTemplate=r.first),Te(r=Ie())&&(i.defaultParticipantPanelItemTemplate=r.first),Te(r=Ie())&&(i.defaultLayoutTemplate=r.first),Te(r=Ie())&&(i.defaultStreamTemplate=r.first)}},inputs:{tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated"},decls:21,vars:4,consts:[["id","call-container"],["id","pre-join-container",4,"ngIf"],["id","spinner",4,"ngIf"],["id","session-container",4,"ngIf"],["defaultToolbar",""],["defaultPanel",""],["defaultChatPanel",""],["defaultActivitiesPanel",""],["defaultParticipantsPanel",""],["defaultParticipantPanelItem",""],["defaultLayout",""],["defaultStream",""],["id","pre-join-container"],[3,"onJoinButtonClicked"],["id","spinner"],[3,"diameter"],[1,"error-icon"],["id","session-container"],[3,"onSessionCreated"],["toolbar",""],["panel",""],["layout",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["id","default-toolbar",3,"onLeaveButtonClicked","onCameraButtonClicked","onMicrophoneButtonClicked","onScreenshareButtonClicked","onFullscreenButtonClicked","onParticipantsPanelButtonClicked","onChatPanelButtonClicked"],["toolbarAdditionalButtons",""],["toolbarAdditionalPanelButtons",""],["id","default-panel"],["chatPanel",""],["participantsPanel",""],["backgroundEffectsPanel",""],["activitiesPanel",""],["additionalPanels",""],["id","default-background-effects-panel"],["id","default-chat-panel"],["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&&(X(0,"div",0),fe(1,lee,2,0,"div",1),fe(2,cee,4,1,"div",2),fe(3,uee,5,1,"div",2),fe(4,bee,8,0,"div",3),J(),fe(5,xee,5,0,"ng-template",null,4,nn),fe(7,Fee,11,0,"ng-template",null,5,nn),fe(9,Nee,1,0,"ng-template",null,6,nn),fe(11,Lee,0,0,"ng-template",null,7,nn),fe(13,jee,3,0,"ng-template",null,8,nn),fe(15,zee,3,1,"ng-template",null,9,nn),fe(17,Wee,3,0,"ng-template",null,10,nn),fe(19,$ee,1,1,"ng-template",null,11,nn)),2&e&&(de(1),oe("ngIf",i.showPrejoin&&i.tokensReceived&&i.participantReady&&!i.joinSessionClicked),de(1),oe("ngIf",(i.joinSessionClicked||!i.showPrejoin)&&!i.participantReady&&!i.error),de(1),oe("ngIf",i.joinSessionClicked&&!i.participantReady&&i.error),de(1),oe("ngIf",(i.joinSessionClicked||!i.showPrejoin)&&i.participantReady&&i.tokensReceived&&!i.error))},directives:[Wn,wte,Jq,vs,mk,cs,cte,bk,Ck,pte,bte,_k,gk,vk],styles:["#call-container[_ngcontent-%COMP%], #session-container[_ngcontent-%COMP%]{height:100%}#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-text-color)}"]}),n})(),xk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})(),Ete=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","participantPanelItemMuteButton",""],["ov-participant-panel-item","muteButton",""]],inputs:{participantPanelItemMuteButton:"participantPanelItemMuteButton",muteButton:"muteButton"}}),n})(),Ste=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarScreenshareButton",""],["ov-toolbar","screenshareButton",""]],inputs:{toolbarScreenshareButton:"toolbarScreenshareButton",screenshareButton:"screenshareButton"}}),n})(),xte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarFullscreenButton",""],["ov-toolbar","fullscreenButton",""]],inputs:{toolbarFullscreenButton:"toolbarFullscreenButton",fullscreenButton:"fullscreenButton"}}),n})(),Ate=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarLeaveButton",""],["ov-toolbar","leaveButton",""]],inputs:{toolbarLeaveButton:"toolbarLeaveButton",leaveButton:"leaveButton"}}),n})(),Mte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarParticipantsPanelButton",""],["ov-toolbar","participantsPanelButton",""]],inputs:{toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",participantsPanelButton:"participantsPanelButton"}}),n})(),Dte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarChatPanelButton",""],["ov-toolbar","chatPanelButton",""]],inputs:{toolbarChatPanelButton:"toolbarChatPanelButton",chatPanelButton:"chatPanelButton"}}),n})(),Tte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarDisplaySessionName",""],["ov-toolbar","displaySessionName",""]],inputs:{toolbarDisplaySessionName:"toolbarDisplaySessionName",displaySessionName:"displaySessionName"}}),n})(),Ite=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","toolbarDisplayLogo",""],["ov-toolbar","displayLogo",""]],inputs:{toolbarDisplayLogo:"toolbarDisplayLogo",displayLogo:"displayLogo"}}),n})(),Ote=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","minimal",""]],inputs:{minimal:"minimal"}}),n})(),kte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","participantName",""]],inputs:{participantName:"participantName"}}),n})(),Pte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","prejoin",""]],inputs:{prejoin:"prejoin"}}),n})(),Rte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","videoMuted",""]],inputs:{videoMuted:"videoMuted"}}),n})(),Fte=(()=>{class n{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 n.\u0275fac=function(e){return new(e||n)(f(Oe),f(cn))},n.\u0275dir=ge({type:n,selectors:[["ov-videoconference","audioMuted",""]],inputs:{audioMuted:"audioMuted"}}),n})(),Ak=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({}),n})(),Nte=(()=>{class n{static forRoot(e){return{ngModule:n,providers:[cn,{provide:"OPENVIDU_ANGULAR_CONFIG",useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[hd,bb,{provide:Bu,useClass:bb},Tp,$o,dd,Mp,pd,br,Dp,Cr,ud,Yl,ws],imports:[[Si,Aq,v6,_6,nZ.forRoot([]),DT,Rz,c7,Lq,zq,$f,NG,b7,Dz,dq,P9,hy,e9,n7,q9,M1,SQ,NQ,TI,eY,nY,xk,Ak],Si,xk,Ak]}),n})();function Lte(n,t){if(1&n){const e=$t();X(0,"ov-videoconference",1),Ve("onJoinButtonClicked",function(){return Ke(e),ye()._onJoinButtonClicked()})("onToolbarLeaveButtonClicked",function(){return Ke(e),ye()._onToolbarLeaveButtonClicked()})("onToolbarCameraButtonClicked",function(){return Ke(e),ye()._onToolbarCameraButtonClicked()})("onToolbarMicrophoneButtonClicked",function(){return Ke(e),ye()._onToolbarMicrophoneButtonClicked()})("onToolbarScreenshareButtonClicked",function(){return Ke(e),ye()._onToolbarScreenshareButtonClicked()})("onToolbarParticipantsPanelButtonClicked",function(){return Ke(e),ye()._onToolbarParticipantsPanelButtonClicked()})("onToolbarChatPanelButtonClicked",function(){return Ke(e),ye()._onToolbarChatPanelButtonClicked()})("onToolbarFullscreenButtonClicked",function(){return Ke(e),ye()._onToolbarFullscreenButtonClicked()})("onSessionCreated",function(r){return Ke(e),ye()._onSessionCreated(r)})("onParticipantCreated",function(r){return Ke(e),ye()._onParticipantCreated(r)}),J()}if(2&n){const e=ye();oe("participantName",e._participantName)("tokens",e._tokens)("minimal",e._minimal)("prejoin",e._prejoin)("videoMuted",e._videoMuted)("audioMuted",e._audioMuted)("toolbarScreenshareButton",e._toolbarScreenshareButton)("toolbarFullscreenButton",e._toolbarFullscreenButton)("toolbarLeaveButton",e._toolbarLeaveButton)("toolbarChatPanelButton",e._toolbarChatPanelButton)("toolbarParticipantsPanelButton",e._toolbarParticipantsPanelButton)("toolbarDisplayLogo",e._toolbarDisplayLogo)("toolbarDisplaySessionName",e._toolbarDisplaySessionName)("streamDisplayParticipantName",e._streamDisplayParticipantName)("streamDisplayAudioDetection",e._streamDisplayAudioDetection)("streamSettingsButton",e._streamSettingsButton)("participantPanelItemMuteButton",e._participantPanelItemMuteButton)}}let Bte=(()=>{class n{constructor(e,i,r){this.loggerService=e,this.host=i,this.openviduService=r,this._minimal=!1,this._prejoin=!0,this._videoMuted=!1,this._audioMuted=!1,this._toolbarScreenshareButton=!0,this._toolbarFullscreenButton=!0,this._toolbarBackgroundEffectsButton=!0,this._toolbarLeaveButton=!0,this._toolbarChatPanelButton=!0,this._toolbarParticipantsPanelButton=!0,this._toolbarDisplayLogo=!0,this._toolbarDisplaySessionName=!0,this._streamDisplayParticipantName=!0,this._streamDisplayAudioDetection=!0,this._streamSettingsButton=!0,this._participantPanelItemMuteButton=!0,this.onJoinButtonClicked=new Ne,this.onToolbarLeaveButtonClicked=new Ne,this.onToolbarCameraButtonClicked=new Ne,this.onToolbarMicrophoneButtonClicked=new Ne,this.onToolbarScreenshareButtonClicked=new Ne,this.onToolbarFullscreenButtonClicked=new Ne,this.onToolbarParticipantsPanelButtonClicked=new Ne,this.onToolbarChatPanelButtonClicked=new Ne,this.onSessionCreated=new Ne,this.onParticipantCreated=new Ne,this.success=!1,this.log=this.loggerService.get("WebComponent"),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 toolbarFullscreenButton(e){this._toolbarFullscreenButton=this.castToBoolean(e)}set toolbarBackgroundEffectsButton(e){this._toolbarBackgroundEffectsButton=this.castToBoolean(e)}set toolbarLeaveButton(e){this._toolbarLeaveButton=this.castToBoolean(e)}set toolbarChatPanelButton(e){this._toolbarChatPanelButton=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 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)}ngOnInit(){}set tokens(e){var i,r;this.log.d("Webcomponent tokens: ",e);try{this._tokens=this.castToJson(e),this.success=!!(null===(i=this._tokens)||void 0===i?void 0:i.webcam)&&!!(null===(r=this._tokens)||void 0===r?void 0:r.screen)}catch(o){this.log.e(o),this.success||(this.log.e("Parameters received are incorrect: ",e),this.log.e("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()}_onToolbarFullscreenButtonClicked(){this.onToolbarFullscreenButtonClicked.emit()}_onSessionCreated(e){this.onSessionCreated.emit(e)}_onParticipantCreated(e){this.onParticipantCreated.emit(e)}disconnect(){this.openviduService.disconnect()}castToBoolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"!==e&&"false"!==e)throw new Error("Parameter has an incorrect string value.");return"true"===e}throw new Error("Parameter has not a valid type. The parameters must to be string or boolean.")}castToJson(e){if("string"!=typeof e){if("object"==typeof e)return e;throw new Error("Parameter has not a valid type. The parameters must to be string or TokenModel {webcam:string, screen: string}.")}try{return JSON.parse(e)}catch(i){throw this.log.e("Unexpected JSON",i),"Unexpected JSON"}}}return n.\u0275fac=function(e){return new(e||n)(f(br),f(Oe),f(ws))},n.\u0275cmp=ht({type:n,selectors:[["ng-component"]],inputs:{minimal:"minimal",participantName:"participantName",prejoin:"prejoin",videoMuted:"videoMuted",audioMuted:"audioMuted",toolbarScreenshareButton:"toolbarScreenshareButton",toolbarFullscreenButton:"toolbarFullscreenButton",toolbarBackgroundEffectsButton:"toolbarBackgroundEffectsButton",toolbarLeaveButton:"toolbarLeaveButton",toolbarChatPanelButton:"toolbarChatPanelButton",toolbarParticipantsPanelButton:"toolbarParticipantsPanelButton",toolbarDisplayLogo:"toolbarDisplayLogo",toolbarDisplaySessionName:"toolbarDisplaySessionName",streamDisplayParticipantName:"streamDisplayParticipantName",streamDisplayAudioDetection:"streamDisplayAudioDetection",streamSettingsButton:"streamSettingsButton",participantPanelItemMuteButton:"participantPanelItemMuteButton",tokens:"tokens"},outputs:{onJoinButtonClicked:"onJoinButtonClicked",onToolbarLeaveButtonClicked:"onToolbarLeaveButtonClicked",onToolbarCameraButtonClicked:"onToolbarCameraButtonClicked",onToolbarMicrophoneButtonClicked:"onToolbarMicrophoneButtonClicked",onToolbarScreenshareButtonClicked:"onToolbarScreenshareButtonClicked",onToolbarFullscreenButtonClicked:"onToolbarFullscreenButtonClicked",onToolbarParticipantsPanelButtonClicked:"onToolbarParticipantsPanelButtonClicked",onToolbarChatPanelButtonClicked:"onToolbarChatPanelButtonClicked",onSessionCreated:"onSessionCreated",onParticipantCreated:"onParticipantCreated"},decls:1,vars:1,consts:[[3,"participantName","tokens","minimal","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarFullscreenButton","toolbarLeaveButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarFullscreenButtonClicked","onSessionCreated","onParticipantCreated",4,"ngIf"],[3,"participantName","tokens","minimal","prejoin","videoMuted","audioMuted","toolbarScreenshareButton","toolbarFullscreenButton","toolbarLeaveButton","toolbarChatPanelButton","toolbarParticipantsPanelButton","toolbarDisplayLogo","toolbarDisplaySessionName","streamDisplayParticipantName","streamDisplayAudioDetection","streamSettingsButton","participantPanelItemMuteButton","onJoinButtonClicked","onToolbarLeaveButtonClicked","onToolbarCameraButtonClicked","onToolbarMicrophoneButtonClicked","onToolbarScreenshareButtonClicked","onToolbarParticipantsPanelButtonClicked","onToolbarChatPanelButtonClicked","onToolbarFullscreenButtonClicked","onSessionCreated","onParticipantCreated"]],template:function(e,i){1&e&&fe(0,Lte,1,17,"ov-videoconference",0),2&e&&oe("ngIf",i.success)},directives:[Wn,Sk,kte,Ote,Pte,Rte,Fte,Ste,xte,Ate,Dte,Mte,Ite,Tte,wk,Cte,Ek,Ete],encapsulation:2}),n})();const Mk={production:!0};class Vte extends be{constructor(t=1/0,e=1/0,i=ey){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(t),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!t.closed;s+=i?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),e}_trimBuffer(){const{_bufferSize:t,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*t;if(t<1/0&&o<i.length&&i.splice(0,i.length-o),!r){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 Ip={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if("undefined"==typeof window)return Ip.schedule(n,0);if(void 0===window.requestAnimationFrame)return Ip.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let Cb;function Yte(n,t,e){let i=e;return function Ute(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function Gte(n,t){if(!Cb){const e=Element.prototype;Cb=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Cb.call(n,t)}(n,r)||(i=o,0))),i}class Zte{constructor(t,e){this.componentFactory=e.get(Pr).resolveComponentFactory(t)}create(t){return new Xte(this.componentFactory,t)}}class Xte{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Vte(1),this.events=this.eventEmitters.pipe(vr(i=>Fi(...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(nt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ip.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function qte(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=At.create({providers:[],parent:this.injector}),i=function Qte(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o<s;++o){const a=e[o],l=Yte(a,t,r);-1!==l&&i[l].push(a)}return i}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,t),this.viewChangeDetectorRef=this.componentRef.injector.get(an),this.implementsOnChanges=function zte(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(os).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(Ue(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ip.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new Wp(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class Jte extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}let tne=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){const e=function ene(n,t){const e=function $te(n,t){return t.get(Pr).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new Zte(n,t.injector),r=function Wte(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function jte(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends Jte{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=function Hte(n,t,e){if("function"!=typeof CustomEvent){const o=n.createEvent("CustomEvent");return o.initCustomEvent(t,!1,!1,e),o}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}(this.ownerDocument,a.name,a.value);this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(Bte,{injector:this.injector});customElements.define("openvidu-webcomponent",e)}}return n.\u0275fac=function(e){return new(e||n)(ae(At))},n.\u0275mod=Xe({type:n}),n.\u0275inj=Ye({providers:[{provide:Nh,useValue:"/"},Sk],imports:[[Si,HA,gU,Nte.forRoot(Mk)]]}),n})();Mk.production&&function zV(){if(sx)throw new Error("Cannot enable prod mode after platform setup.");ox=!1}(),P5().bootstrapModule(tne).catch(n=>console.error(n))},9272:Se=>{"use strict";Se.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:Se=>{"use strict";Se.exports=[]},9469:Se=>{"use strict";Se.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.5","uuid":"8.3.2","wolfy87-eventemitter":"5.2.9","events":"3.3.0","inherits":"2.0.4"},"description":"OpenVidu Browser","devDependencies":{"@types/node":"17.0.8","@types/platform":"1.3.4","browserify":"17.0.0","grunt":"1.4.1","grunt-cli":"1.4.3","grunt-contrib-copy":"1.0.0","grunt-contrib-sass":"2.0.0","grunt-contrib-uglify":"5.0.1","grunt-contrib-watch":"1.1.0","grunt-postcss":"0.9.0","grunt-string-replace":"1.3.1","grunt-ts":"6.0.0-beta.22","terser":"5.10.0","tsify":"5.0.4","tslint":"6.1.3","typedoc":"0.22.10","typescript":"4.5.4"},"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.22.0"}')}},Se=>{Se(Se.s=7030)}]);
|
|
"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)}]); |