PageSourceSearch

https://dyte-multi-faces.netlify.app/static/js/1485.e691aa8d.chunk.js

js dyte-multi-faces.netlify.app collected 2026-10-03 10:41:47 UTC 28,472 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1485],{1485:function(e,t,i){i.r(t),i.d(t,{dyte_grid:function(){return f}});var n=i(3433),a=i(5671),r=i(3144),s=i(2304),o=i(2725),d=i(5855),c=i(7622),u=i(210),l=i(2274),h=i(1723),p=i(5231),v=i(1512),f=function(){function e(t){var i=this;(0,a.Z)(this,e),(0,s.r)(this,t),this.stateUpdate=(0,s.c)(this,"dyteStateUpdate",7),this.hideSelf=!1,this.networkUpdateListener=function(e){var t=e.event;i.connected="connected"===t},this.meetingDisconnectedListener=function(){i.networkUpdateListener({event:"disconnected"})},this.meetingConnectedListener=function(){i.networkUpdateListener({event:"connected"})},this.eventCallback=function(e){var t=i.meeting.self;e===h.P.CAMERA&&(t.videoEnabled?t.disableVideo():t.enableVideo()),e===h.P.MIC&&(t.audioEnabled?t.disableAudio():t.enableAudio()),e===h.P.END&&(h.s.cleanup(),i.stateUpdate.emit({activePipMode:!1}),i.meeting.leaveRoom())},this.enablePipMediaControls=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.meeting,t=e.self.permissions.canProduceAudio,n=e.self.permissions.canProduceVideo;t&&h.s.mountAudioEvents(i.eventCallback),n&&h.s.mountVideoEvents(i.eventCallback)},this.disablePipMediaControls=function(){h.s.unmountAudioEvents(),h.s.unmountVideoEvents()},this.handlePipMediaControls=function(e){"ON_STAGE"===e?i.enablePipMediaControls():i.disablePipMediaControls()},this.filterParticipants=function(e){var t;if(i.overrides&&(null===(t=i.overrides)||void 0===t?void 0:t.videoUnsubscribed)){var n=i.overrides.videoUnsubscribed.preset;n.length>0&&(e=e.filter((function(e){return!n.some((function(t){return void 0!==e.presetName&&e.presetName.match(t)}))})))}return e},this.onSelfVideoUpdateListener=function(e){var t=e.videoEnabled;h.s.updateMediaSession(h.P.CAMERA,t)},this.onSelfAudioUpdateListener=function(e){var t=e.audioEnabled;h.s.updateMediaSession(h.P.MIC,t)},this.onViewModeChanged=function(){null!=i.meeting&&i.updateActiveParticipants()},this.onParticipantJoined=function(e){null!=i.meeting&&(i.participants.some((function(t){return t.id===e.id}))||(i.participants=i.filterParticipants([e].concat((0,n.Z)(i.participants)))),e.isPinned&&!i.pinnedParticipants.some((function(t){return t.id===e.id}))&&(i.pinnedParticipants=i.pinnedParticipants.concat([e])),i.updateWebinarStage())},this.onParticipantLeft=function(e){i.participants=i.participants.filter((function(t){return t.id!==e.id})),i.participants=i.participants.concat(i.meeting.participants.active.toArray().filter((function(e){return!i.participants.find((function(t){return t.id===e.id}))}))),i.participants=i.filterParticipants(i.participants),i.pinnedParticipants=i.pinnedParticipants.filter((function(t){return t.id!==e.id})),e.screenShareEnabled&&i.removeScreenShare(e),i.updateWebinarStage()},this.selfStageJoinListener=function(){i.updateActiveParticipants()},this.selfStageLeaveListener=function(){i.removeScreenShare(i.meeting.self),i.updateActiveParticipants()},this.onPresentationStart=function(){null!=i.meeting&&i.updateActiveParticipants()},this.onPresentationEnd=function(e){null!=i.meeting&&(i.removePinned(e),i.removeScreenShare(e),i.updateActiveParticipants())},this.onScreenShareUpdate=function(e){e.screenShareEnabled?i.addScreenShare(e):i.removeScreenShare(e)},this.onSelfScreenShareUpdate=function(e){e.screenShareEnabled?i.addScreenShare(i.meeting.self):i.removeScreenShare(i.meeting.self)},this.onPluginStateUpdate=function(e,t){t.active?i.plugins.some((function(t){return t.id===e.id}))||(i.plugins=[].concat((0,n.Z)(i.plugins),[e])):i.plugins=i.plugins.filter((function(t){return t.id!==e.id}))},this.onParticipantPinned=function(){i.updateActiveParticipants()},this.onParticipantUnpinned=function(){i.updateActiveParticipants()},this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.showWebinarStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.connected=!0,this.pipSupported=!1,this.pipEnabled=!1,this.layout="row",this.aspectRatio="16:9",this.meeting=void 0,this.gap=8,this.size=void 0,this.states=void 0,this.config=o.d,this.iconPack=d.d,this.t=(0,c.u)(),this.gridSize=v.d,this.overrides={}}
1return(0,r.Z)(e,[{key:"connectedCallback",value:function(){this.meetingChanged(this.meeting)}},{key:"disconnectMeeting",value:function(e){var t,i;if(null!=e){this.participants=[],this.plugins=[];var n=e.self,a=e.participants,r=e.plugins,s=e.meta;a.active.removeListener("participantJoined",this.onParticipantJoined),a.active.removeListener("participantLeft",this.onParticipantLeft),a.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),a.joined.removeListener("peerStartedPresenting",this.onPresentationStart),a.joined.removeListener("peerStoppedPresenting",this.onPresentationEnd),n.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),null===r||void 0===r||r.all.removeListener("stateUpdate",this.onPluginStateUpdate),a.pinned.removeListener("participantJoined",this.onParticipantPinned),a.pinned.removeListener("participantLeft",this.onParticipantUnpinned),n.removeListener("pinned",this.onParticipantPinned),n.removeListener("unpinned",this.onParticipantUnpinned),a.removeListener("viewModeChanged",this.onViewModeChanged),n.removeListener("stageJoined",this.selfStageJoinListener),n.removeListener("stageLeft",this.selfStageLeaveListener),n.removeListener("removedFromStage",this.selfStageLeaveListener),n.removeListener("videoUpdate",this.onSelfVideoUpdateListener),n.removeListener("audioUpdate",this.onSelfAudioUpdateListener),s.removeListener("disconnected",this.meetingDisconnectedListener),s.removeListener("connected",this.meetingConnectedListener),null===(t=e.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.handlePipMediaControls),e.self.removeListener("stageJoined",this.enablePipMediaControls),e.self.removeListener("stageLeft",this.disablePipMediaControls),null===(i=e.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateLiveStreamStage)}}},{key:"disconnectedCallback",value:function(){this.disconnectMeeting(this.meeting)}},{key:"screenShareParticipantsChanged",value:function(e){var t=e.length>0;this.stateUpdate.emit({activeScreenShare:t}),l.s.activeScreenShare=t}},{key:"pluginsChanged",value:function(e){var t=e.length>0;this.stateUpdate.emit({activePlugin:t}),l.s.activePlugin=t}},{key:"pinnedParticipantsChanged",value:function(e){var t=e.length>0;this.stateUpdate.emit({activeSpotlight:t}),l.s.activeSpotlight=t}},{key:"updateActiveParticipants",value:function(){var e,t,i=this.meeting,a=i.self,r=i.participants,s="WEBINAR"===(null===(e=a.config)||void 0===e?void 0:e.viewType)&&"ON_STAGE"!==a.webinarStageStatus,o=null===(t=a.permissions)||void 0===t?void 0:t.isRecorder;this.hideSelf=s||o||a.permissions.hiddenParticipant,this.participants=this.filterParticipants([].concat((0,n.Z)(r.active.toArray().filter((function(e){return e.id!==a.id}))),(0,n.Z)("ACTIVE_GRID"!==r.viewMode||a.isPinned||this.hideSelf?[]:[a]))),this.pinnedParticipants=[].concat((0,n.Z)(r.pinned.toArray().filter((function(e){return e.id!==a.id}))),(0,n.Z)(a.isPinned&&!this.hideSelf?[a]:[])),this.screenShareParticipants=r.joined.toArray().filter((function(e){return e.screenShareEnabled})),a.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([a])),this.updateWebinarStage()}},{key:"updateWebinarStage",value:function(){this.meeting&&"WEBINAR"===this.meeting.meta.viewType?this.showWebinarStage=0===this.participants.length&&0===this.pinnedParticipants.length:this.showWebinarStage=!1}},{key:"updateLiveStreamStage",value:function(){this.showLiveStreamPlayer=(0,p.i)(this.meeting)}},{key:"meetingChanged",value:function(e,t){var i,a,r,s=this;if(null!==t&&this.disconnectMeeting(t),null!=e){var o=e.self,d=e.participants,c=e.plugins,u=e.meta,p=e.stage,v=o.config,f=o.permissions,g="WEBINAR"===(null===v||void 0===v?void 0:v.viewType)&&"ON_STAGE"!==this.meeting.self.webinarStageStatus,m=null===f||void 0===f?void 0:f.isRecorder;if(this.hideSelf=g||m||f.hiddenParticipant,this.participants=this.filterParticipants([].concat((0,n.Z)(d.active.toArray()),(0,n.Z)(o.isPinned||this.hideSelf?[]:[o]))),this.pinnedParticipants=[].concat((0,n.Z)(d.pinned.toArray()),(0,n.Z)(o.isPinned&&!this.hideSelf?[o]:[])),this.screenShareParticipants=d.joined.toArray().filter((function(e){return e.screenShareEnabled})),this.plugins=(null===c||void 0===c?void 0:c.active.toArray())||[],"WEBINAR"===(null===v||void 0===v?void 0:v.viewType)&&(this.canCurrentPeerHost=f.acceptPresentRequests||f.canPresent,this.updateWebinarStage()),this.pipSupported=h.s.isSupported()&&(null===(i=e.self.config)||void 0===i?void 0:i.pipMode),this.pipSupported){h.s.create((function(){}),(function(){s.stateUpdate.emit({activePipMode:!1})}
1),this.eventCallback),this.enablePipMediaControls(e),null===(a=e.stage)||void 0===a||a.on("stageStatusUpdate",this.handlePipMediaControls),e.self.on("stageJoined",this.enablePipMediaControls),e.self.on("stageLeft",this.disablePipMediaControls)}var P=null!==document.pictureInPictureElement,S=this.states||l.s;h.s.isSupported()&&S.activePipMode!==P&&this.stateUpdate.emit({activePipMode:P}),d.active.addListener("participantJoined",this.onParticipantJoined),d.active.addListener("participantLeft",this.onParticipantLeft),d.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),d.joined.addListener("peerStartedPresenting",this.onPresentationStart),d.joined.addListener("peerStoppedPresenting",this.onPresentationEnd),o.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),null===c||void 0===c||c.all.addListener("stateUpdate",this.onPluginStateUpdate),d.pinned.addListener("participantJoined",this.onParticipantPinned),d.pinned.addListener("participantLeft",this.onParticipantUnpinned),o.addListener("pinned",this.onParticipantPinned),o.addListener("videoUpdate",this.onSelfVideoUpdateListener),o.addListener("audioUpdate",this.onSelfAudioUpdateListener),o.addListener("unpinned",this.onParticipantUnpinned),o.addListener("stageJoined",this.selfStageJoinListener),o.addListener("stageLeft",this.selfStageLeaveListener),o.addListener("removedFromStage",this.selfStageLeaveListener),u.addListener("disconnected",this.meetingDisconnectedListener),u.addListener("connected",this.meetingConnectedListener),null===p||void 0===p||p.addListener("stageStatusUpdate",this.updateLiveStreamStage.bind(this)),d.addListener("viewModeChanged",this.onViewModeChanged),(null===(r=e.stage)||void 0===r?void 0:r.status)&&this.updateLiveStreamStage()}}},{key:"addScreenShare",value:function(e){this.screenShareParticipants.some((function(t){return t.id===e.id}))||(this.screenShareParticipants=[].concat((0,n.Z)(this.screenShareParticipants),[e]))}},{key:"removeScreenShare",value:function(e){this.screenShareParticipants=this.screenShareParticipants.filter((function(t){return t.id!==e.id}))}},{key:"removePinned",value:function(e){this.pinnedParticipants=this.pinnedParticipants.filter((function(t){return t.id!==e.id}))}},{key:"render",value:function(){var e={meeting:this.meeting,size:this.size,states:this.states||l.s,config:this.config,iconPack:this.iconPack,t:this.t};return!this.connected&&this.hideSelf?(0,s.h)("div",{class:"webinar-stage"},(0,s.h)("div",{class:"center"},(0,s.h)("h2",null,this.t("stage.reconnecting")))):this.showWebinarStage?(0,s.h)(s.H,null,(0,s.h)("div",{class:"webinar-stage"},(0,s.h)("div",{class:"center"},this.canCurrentPeerHost&&(0,s.h)("div",null,(0,s.h)("h2",null,this.t("stage.empty_host")),(0,s.h)("p",null,this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&(0,s.h)("h2",null,this.t("stage.empty_viewer"))))):this.showLiveStreamPlayer?(0,s.h)(s.H,null,(0,s.h)("dyte-livestream-player",{meeting:this.meeting,size:this.size})):(0,s.h)(s.H,null,(0,s.h)(u.R,{element:"dyte-grid",defaults:e,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}))}},{key:"host",get:function(){return(0,s.g)(this)}}],[{key:"watchers",get:function(){return{screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"],pinnedParticipants:["pinnedParticipantsChanged"],meeting:["meetingChanged"]}}}]),e}();f.style=":host{line-height:initial;font-family:var(--dyte-font-family, sans-serif);display:flex;height:100%;width:100%;overflow:hidden;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;color:rgb(var(--dyte-colors-text-1000, 255 255 255));transition:0.4s}dyte-participant-tile{aspect-ratio:initial;box-sizing:border-box}.webinar-stage{box-sizing:border-box;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--dyte-space-0, 0px);font-weight:normal}.livestream-stage{box-sizing:border-box;margin-left:var(--dyte-space-2, 8px);margin-right:var(--dyte-space-2, 8px);display:flex;height:100%;flex-grow:1;align-content:center;align-items:center;justify-content:center;border-radius:var(--dyte-border-radius-md, 8px);text-align:center;--tw-bg-opacity:1;background-color:rgba(var(--dyte-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--dyte-colors-text-700, 255 255 255 / 0.64))}"},1512:function(e,t,i){i.d(t,{d:function(){return s},u:function(){return a}});var n=i(9439);function a(e){var t=e.dimensions,i=e.count,n=e.aspectRatio,a=e.gap,s=function(e){var t=e.count,i=e.dimensions,n=e.aspectRatio,a=e.gap,s=i.width,o=i.height;
1if(0===s||0===o)return{width:0,height:0,rows:1,cols:1};s-=2*a,o-=2*a;for(var d=a,c=t,u=r(n),l=0,h=0,p=1,v=1,f=[],g=1;g<=c;g++)f.push((s-d*(g-1))/g),f.push((o-d*(g-1))/(g*u));f.sort((function(e,t){return t-e}));for(var m=0,P=f;m<P.length;m++){if(h=(l=P[m])*u,(p=Math.floor((s+d)/(l+d)))*(v=Math.floor((o+d)/(h+d)))>=c){v=Math.ceil(c/p);break}}return{width:l,height:h,rows:v,cols:p}}({dimensions:t,count:i,aspectRatio:n,gap:a}),o=s.width,d=s.height,c=function(e){var t=e.parentDimensions,i=e.dimensions,n=e.rows,a=e.cols,r=e.count,s=e.gap,o=t.width,d=t.height,c=i.width,u=i.height,l=(d-(u*n+(n-1)*s))/2,h=(o-(c*a+(a-1)*s))/2,p=u+s,v=c+s,f=0,g=0,m=r%a;function P(e){var t=r-e;t===m&&(h=(o-(c*t+(t-1)*s))/2);var i=l+g*p,n=h+f*v;return f++,(e+1)%a===0&&(g++,f=0),{top:i,left:n}}return P}({parentDimensions:t,dimensions:{width:o,height:d},rows:s.rows,cols:s.cols,count:i,gap:a});return{width:o,height:d,getPosition:c}}var r=function(e){var t=e.split(":"),i=(0,n.Z)(t,2),a=i[0],r=i[1];return Number.parseInt(r)/Number.parseInt(a)},s={spotlight:"sm",mixed:"sm"}},210:function(e,t,i){i.d(t,{R:function(){return d}});var n=i(9439),a=i(3433),r=i(7762),s=i(2304),o=function(e){var t=e.elements,i=e.defaults,n=e.props,a=void 0===n?{}:n,r=e.deepProps,o=void 0!==r&&r,c=e.elementProps,u=void 0===c?{}:c;return Array.isArray(t)&&0!==t.length?t.map((function(e){return(0,s.h)(d,{element:e,defaults:i,props:a,childProps:o&&a,elementProps:u})})):null},d=function(e,t){var i,d,c=e.element,u=e.defaults,l=e.childProps,h=void 0===l?{}:l,p=e.props,v=void 0===p?{}:p,f=e.onlyChildren,g=void 0!==f&&f,m=e.asHost,P=void 0!==m&&m,S=e.deepProps,y=void 0!==S&&S,A=e.elementProps,E=void 0===A?{}:A,L=u.config,C=u.size,b=u.states,M={};if(Array.isArray(c)){var U=(0,n.Z)(c,2);d=U[0],M=U[1]}else d=c;var R=null===(i=null===L||void 0===L?void 0:L.root)||void 0===i?void 0:i[d];null!=R&&"props"in R&&(v=Object.assign(Object.assign({},R.props),v)),v=Object.assign(Object.assign({},v),M),d in E&&(v=Object.assign(Object.assign({},v),E[d]));var w=function(e){var t=e.element,i=e.size,n=e.states,s=void 0===n?{}:n,o=e.config,d=void 0===o?{}:o,c=[],u=null===d||void 0===d?void 0:d.root[t],l=function(e){c.push(e),"string"===typeof i&&c.push("".concat(e,".").concat(i))};if(l(t),"object"===typeof u&&!Array.isArray(u)&&null!==u){var h=u.state,p=u.states,v=t,f=[];if(Array.isArray(p)){f=p.filter((function(e){return s[e]})),f.sort();var g,m=(0,r.Z)(f);try{for(m.s();!(g=m.n()).done;){var P=g.value;l("".concat(v,".").concat(P))}}catch(L){m.e(L)}finally{m.f()}f.length>1&&l([v].concat((0,a.Z)(f)).join("."))}if("string"===typeof h){var S="".concat(t,"[").concat(h,"=").concat(s[h],"]");l(S);var y,A=(0,r.Z)(f);try{for(A.s();!(y=A.n()).done;){var E=y.value;l("".concat(S,".").concat(E))}}catch(L){A.e(L)}finally{A.f()}f.length>1&&l([S].concat((0,a.Z)(f)).join("."))}}return c}({element:d,size:C,states:b,config:L}),k=function(e){var t=e.selectors,i=e.root;if(!i||!Array.isArray(t))return[];var s,o=[],d=(0,r.Z)(t);try{for(d.s();!(s=d.n()).done;){var c=i[s.value];if(Array.isArray(c))o=(0,a.Z)(c);else if(c){if(c.children&&(o=(0,a.Z)(c.children)),Array.isArray(c.remove)){var u,l=(0,r.Z)(c.remove);try{var h=function(){var e=u.value;o=o.filter((function(t){return"string"===typeof t?t!==e:!Array.isArray(t)||t[0]!==e}))};for(l.s();!(u=l.n()).done;)h()}catch(g){l.e(g)}finally{l.f()}}if(c.addBefore)for(var p=function(){var e,t=(0,n.Z)(f[v],2),i=t[0],r=t[1],s=o.findIndex((function(e){return"string"===typeof e?e===i:!!Array.isArray(e)&&e[0]===i}));s>=0&&(e=o).splice.apply(e,[s,0].concat((0,a.Z)(r)))},v=0,f=Object.entries(c.addBefore);v<f.length;v++)p();Array.isArray(c.add)&&(o=o.concat(c.add)),Array.isArray(c.prepend)&&(o=c.prepend.concat(o))}}}catch(g){d.e(g)}finally{d.f()}return o}({selectors:w,root:L.root});if(g)return(0,s.h)(o,{elements:k,defaults:u,props:h,deepProps:y,elementProps:E});var T=function(e){var t=e.selectors,i=e.styles;if(!Array.isArray(t)||null==i)return{};var n,a={},s=(0,r.Z)(t);try{for(s.s();!(n=s.n()).done;){var o=i[n.value];null!=o&&Object.assign(a,o)}}catch(d){s.e(d)}finally{s.f()}return a}({selectors:w,styles:L.styles});if(P)return(0,s.h)(s.H,Object.assign({},u,{style:T},v),(0,s.h)(o,{elements:k,defaults:u,props:h,deepProps:y,elementProps:E}),t);if(["dyte-header","dyte-controlbar"].includes(d)&&(v.disableRender=!0),d.startsWith("dyte-"))return(0,s.h)(d,Object.assign({},u,{style:T},v),(0,s.h)(o,{elements:k,defaults:u,props:h,deepProps:y,elementProps:E}),t);var D=d.split("#"),I=(0,n.Z)(D,2),O=I[0],_=I[1];return(0,s.h)(O,{id:_,style:T},(0,s.h)(o,{elements:k,defaults:u,props:h,deepProps:y,elementProps:E}),t)}},5231:function(e,t,i){i.d(t,{P:function(){return n},a:function(){return s},b:function(){return l},c:function(){return u},d:function(){return a},e:function(){return d},f:function(){return c},i:function(){return r},s:function(){return o}});var n,a,r=function(e){return!!o(e)&&("LIVESTREAM"===e.meta.viewT
1ype&&"ON_STAGE"!==e.stage.status)},s=function(e){var t;return!!o(e)&&("LIVESTREAM"===e.meta.viewType&&(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.canLivestream))},o=function(e){var t;return(null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions.isV2)&&(null===e||void 0===e?void 0:e.livestream)};!function(e){e.BUFFERING="Buffering",e.ENDED="Ended",e.IDLE="Idle",e.PLAYING="Playing",e.READY="Ready"}(n||(n={})),function(e){e.INITIALIZED="PlayerInitialized",e.QUALITY_CHANGED="PlayerQualityChanged",e.DURATION_CHANGED="PlayerDurationChanged",e.VOLUME_CHANGED="PlayerVolumeChanged",e.MUTED_CHANGED="PlayerMutedChanged",e.PLAYBACK_RATE_CHANGED="PlayerPlaybackRateChanged",e.REBUFFERING="PlayerRebuffering",e.AUDIO_BLOCKED="PlayerAudioBlocked",e.PLAYBACK_BLOCKED="PlayerPlaybackBlocked",e.ERROR="PlayerError",e.RECOVERABLE_ERROR="PlayerRecoverableError",e.ANALYTICS_EVENT="PlayerAnalyticsEvent",e.TIME_UPDATE="PlayerTimeUpdate",e.BUFFER_UPDATE="PlayerBufferUpdate",e.SEEK_COMPLETED="PlayerSeekCompleted",e.SESSION_DATA="PlayerSessionData",e.STATE_CHANGED="PlayerStateChanged",e.WORKER_ERROR="PlayerWorkerError",e.METADATA="PlayerMetadata",e.TEXT_CUE="PlayerTextCue",e.TEXT_METADATA_CUE="PlayerTextMetadataCue",e.AD_CUE="PlayerAdCue",e.STREAM_SOURCE_CUE="PlayerStreamSourceCue",e.NETWORK_UNAVAILABLE="PlayerNetworkUnavailable",e.SEGMENT_DISCONTINUITY="PlayerSegmentDiscontinuity",e.SEGMENT_METADATA="PlayerSegmentMetadata",e.PLAYER_METADATA="PlayerMetadata"}(a||(a={}));var d=[a.TIME_UPDATE,a.BUFFER_UPDATE,a.TEXT_METADATA_CUE,a.PLAYER_METADATA],c=[a.REBUFFERING,a.AUDIO_BLOCKED,a.PLAYBACK_BLOCKED,a.ERROR,a.RECOVERABLE_ERROR,a.WORKER_ERROR,a.NETWORK_UNAVAILABLE,a.ANALYTICS_EVENT,a.PLAYBACK_RATE_CHANGED,a.QUALITY_CHANGED,a.INITIALIZED],u=function(e){var t,i,n,a,r,s;return!!o(e)&&("ALLOWED"===(null===(i=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===i?void 0:i.canProduceAudio)||"ALLOWED"===(null===(a=null===(n=null===e||void 0===e?void 0:e.self)||void 0===n?void 0:n.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"ALLOWED"===(null===(s=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceVideo))},l=function(e){var t,i,n,a,r,s,d,c;return!!o(e)&&("NOT_ALLOWED"!==(null===(i=null===(t=null===e||void 0===e?void 0:e.self)||void 0===t?void 0:t.permissions)||void 0===i?void 0:i.canProduceAudio)||"NOT_ALLOWED"!==(null===(a=null===(n=null===e||void 0===e?void 0:e.self)||void 0===n?void 0:n.permissions)||void 0===a?void 0:a.canProduceScreenshare)||"NOT_ALLOWED"!==(null===(s=null===(r=null===e||void 0===e?void 0:e.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceVideo)||(null===(c=null===(d=null===e||void 0===e?void 0:e.self)||void 0===d?void 0:d.permissions)||void 0===c?void 0:c.canLivestream))}},1723:function(e,t,i){i.d(t,{P:function(){return n},s:function(){return u}});var n,a=i(9439),r=i(5671),s=i(3144),o=720,d=1280,c=function(e,t,i,n,a,r){var s,o,d,c,u=a,l=r,h=Math.min(i/u,n/l),p=u*h,v=l*h,f=1;return p<i&&(f=i/p),Math.abs(f-1)<1e-14&&v<n&&(f=n/v),(s=.5*(u-(d=u/((p*=f)/i))))<0&&(s=0),(o=.5*(l-(c=l/((v*=f)/n))))<0&&(o=0),d>u&&(d=u),c>l&&(c=l),[s,o,d,c,e,t,i,n]};!function(e){e.CAMERA="CAMERA",e.MIC="MIC",e.END="END"}(n||(n={}));var u=new(function(){function e(){(0,r.Z)(this,e),this.tracks=[],this.sources=[],this.enabled=!1}return(0,s.Z)(e,[{key:"isSupported",value:function(){return!!window.chrome&&document.pictureInPictureEnabled}},{key:"cleanup",value:function(){this.isSupported()&&void 0!==document.exitPictureInPicture&&null!==document.pictureInPictureElement&&document.exitPictureInPicture(),this.canvas=void 0,this.video=void 0,this.tracks=[],this.request=void 0}},{key:"createCanvas",value:function(){var e=document.createElement("canvas");e.height=o,e.width=d,this.canvas=e}},{key:"setupEvents",value:function(e){void 0!==navigator.mediaSession&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setActionHandler("hangup",(function(){e(n.END)}))}},{key:"mountAudioEvents",value:function(e){void 0!==navigator.mediaSession&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setActionHandler("togglemicrophone",(function(){e(n.MIC)}))}},{key:"mountVideoEvents",value:function(e){void 0!==navigator.mediaSession&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setActionHandler("togglecamera",(function(){e(n.CAMERA)}))}},{key:"unmountAudioEvents",value:function(){void 0!==navigator.mediaSession&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setActionHandler("togglemicrophone",void 0)}},{key:"unmountVideoEvents",value:function(){void 0!==navigator.mediaSession&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setActionHandler("togglecamera",void 0)}}
1,{key:"drawGrid",value:function(e,t,i){if(void 0!==this.canvas){var n=this.canvas.getContext("2d");n.fillStyle="#000000",n.fillRect(0,0,d,o);for(var r=0,s=0;r<715;){for(var u=0;u<1275&&s<i;){var l=this.tracks[s],h=c(u,r,e,t,l.videoWidth,l.videoHeight),p=(0,a.Z)(h,8),v=p[0],f=p[1],g=p[2],m=p[3],P=p[4],S=p[5],y=p[6],A=p[7];n.drawImage(l,v,f,g,m,P,S,y,A),s+=1,u+=e}r+=t}}}},{key:"paintCanvas",value:function(){var e=this.tracks.length,t=function(e){switch(e){case 0:case 1:return[d,o];case 2:return[Math.floor(640),o];case 3:case 4:return[Math.floor(640),Math.floor(360)];default:return[Math.floor(426.6666666666667),Math.floor(360)]}}(e),i=(0,a.Z)(t,2),n=i[0],r=i[1];this.drawGrid(n,r,e)}},{key:"animate",value:function(){var e=this;void 0!==this.tracks&&this.paintCanvas(),void 0!==this.request&&(this.request=requestAnimationFrame((function(){return e.animate()})))}},{key:"create",value:function(e,t,i){var n=this;this.cleanup(),this.createCanvas(),this.setupEvents(i);var a=document.createElement("video");a.height=o,a.width=d,a.autoplay=!0,a.srcObject=this.canvas.captureStream(24),this.video=a,this.video.onloadedmetadata=function(){try{e(),n.video.onleavepictureinpicture=function(){t()}}catch(i){t(i.getMessage())}},this.paintCanvas()}},{key:"updateMediaSession",value:function(e,t){void 0!==navigator.mediaSession&&(e===n.CAMERA&&void 0!==navigator.mediaSession.setCameraActive&&navigator.mediaSession.setCameraActive(t),e===n.MIC&&void 0!==navigator.mediaSession.setMicrophoneActive&&navigator.mediaSession.setMicrophoneActive(t))}},{key:"updateVideoSources",value:function(){var e=Object.values(this.sources).filter((function(e){return e.enabled})),t=[];e.map((function(e){t.push(e.element)})),this.tracks=t}},{key:"enableSource",value:function(e){void 0!==this.sources[e]&&(this.sources[e].enabled=!0),this.updateVideoSources()}},{key:"disableSource",value:function(e){void 0!==this.sources[e]&&(this.sources[e].enabled=!1),this.updateVideoSources()}},{key:"addSource",value:function(e,t,i){this.sources[e]={element:t,enabled:i}}},{key:"removeSource",value:function(e){delete this.sources[e]}},{key:"removeAllSource",value:function(){this.sources=[]}},{key:"enable",value:function(){var e=this;this.enabled=!0,this.request=requestAnimationFrame((function(){return e.animate()})),this.video.requestPictureInPicture()}},{key:"disable",value:function(){this.enabled=!1,cancelAnimationFrame(this.request),this.request=void 0,document.exitPictureInPicture()}}]),e}())},2274:function(e,t,i){i.d(t,{o:function(){return l},s:function(){return u}});var n=i(7762),a=i(2304),r=function(e){return!("isConnected"in e)||e.isConnected},s=function(e,t){var i;return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];i&&clearTimeout(i),i=setTimeout((function(){i=0,e.apply(void 0,a)}),t)}}((function(e){var t,i=(0,n.Z)(e.keys());try{for(i.s();!(t=i.n()).done;){var a=t.value;e.set(a,e.get(a).filter(r))}}catch(s){i.e(s)}finally{i.f()}}),2e3),o=function(e){return"function"===typeof e?e():e},d=function(e,t){var i=e.indexOf(t);i>=0&&(e[i]=e[e.length-1],e.length--)},c=function(e,t){var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e,t){return e!==t},i=o(e),n=new Map(Object.entries(null!==i&&void 0!==i?i:{})),a={dispose:[],get:[],set:[],reset:[]},r=function(){var t;n=new Map(Object.entries(null!==(t=o(e))&&void 0!==t?t:{})),a.reset.forEach((function(e){return e()}))},s=function(e){return a.get.forEach((function(t){return t(e)})),n.get(e)},c=function(e,i){var r=n.get(e);t(i,r,e)&&(n.set(e,i),a.set.forEach((function(t){return t(e,i,r)})))},u="undefined"===typeof Proxy?{}:new Proxy(i,{get:function(e,t){return s(t)},ownKeys:function(e){return Array.from(n.keys())},getOwnPropertyDescriptor:function(){return{enumerable:!0,configurable:!0}},has:function(e,t){return n.has(t)},set:function(e,t,i){return c(t,i),!0}}),l=function(e,t){return a[e].push(t),function(){d(a[e],t)}};return{state:u,get:s,set:c,on:l,onChange:function(t,i){var n=l("set",(function(e,n){e===t&&i(n)})),a=l("reset",(function(){return i(o(e)[t])}));return function(){n(),a()}},use:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return t.set&&e.push(l("set",t.set)),t.get&&e.push(l("get",t.get)),t.reset&&e.push(l("reset",t.reset)),t.dispose&&e.push(l("dispose",t.dispose)),e}),[]);
1return function(){return n.forEach((function(e){return e()}))}},dispose:function(){a.dispose.forEach((function(e){return e()})),r()},reset:r,forceUpdate:function(e){var t=n.get(e);a.set.forEach((function(i){return i(e,t,t)}))}}}(e,t);return i.use(function(){if("function"!==typeof a.a)return{};var e=new Map;return{dispose:function(){return e.clear()},get:function(t){var i=(0,a.a)();i&&function(e,t,i){var n=e.get(t);n?n.includes(i)||n.push(i):e.set(t,[i])}(e,t,i)},set:function(t){var i=e.get(t);i&&e.set(t,i.filter(a.f)),s(e)},reset:function(){e.forEach((function(e){return e.forEach(a.f)})),s(e)}}}()),i}({}),u=c.state,l=c.onChange}}]);
2//# sourceMappingURL=1485.e691aa8d.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.