1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="02447ab8-f3f5-507a-9d70-9ef3160db45e")}catch(e){}}(); 3(self.webpackChunkmurf_web=self.webpackChunkmurf_web||[]).push([[7458],{763:(e,t,r)=>{var s,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l={};((e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})})(l,{AUDIO_EXTENSIONS:()=>L,DASH_EXTENSIONS:()=>I,FLV_EXTENSIONS:()=>M,HLS_EXTENSIONS:()=>A,MATCH_URL_DAILYMOTION:()=>g,MATCH_URL_FACEBOOK:()=>f,MATCH_URL_FACEBOOK_WATCH:()=>y,MATCH_URL_KALTURA:()=>S,MATCH_URL_MIXCLOUD:()=>P,MATCH_URL_MUX:()=>c,MATCH_URL_SOUNDCLOUD:()=>u,MATCH_URL_STREAMABLE:()=>m,MATCH_URL_TWITCH_CHANNEL:()=>b,MATCH_URL_TWITCH_VIDEO:()=>E,MATCH_URL_VIDYARD:()=>w,MATCH_URL_VIMEO:()=>d,MATCH_URL_WISTIA:()=>v,MATCH_URL_YOUTUBE:()=>p,VIDEO_EXTENSIONS:()=>O,canPlay:()=>R}),e.exports=(s=l,((e,t,r,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let l of o(t))a.call(e,l)||l===r||n(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e})(n({},"__esModule",{value:!0}),s));var h=r(17799);const p=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,u=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,d=/vimeo\.com\/(?!progressive_redirect).+/,c=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,f=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,y=/^https?:\/\/fb\.watch\/.+$/,m=/streamable\.com\/([a-z0-9]+)$/,v=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,E=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,b=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,g=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,P=/mixcloud\.com\/([^/]+\/[^/]+)/,w=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,S=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,L=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,O=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,A=/\.(m3u8)($|\?)/i,I=/\.(mpd)($|\?)/i,M=/\.(flv)($|\?)/i,_=e=>{if(e instanceof Array){for(const t of e){if("string"===typeof t&&_(t))return!0;if(_(t.src))return!0}return!1}return!(!(0,h.isMediaStream)(e)&&!(0,h.isBlobUrl)(e))||(L.test(e)||O.test(e)||A.test(e)||I.test(e)||M.test(e))},R={youtube:e=>e instanceof Array?e.every((e=>p.test(e))):p.test(e),soundcloud:e=>u.test(e)&&!L.test(e),vimeo:e=>d.test(e)&&!O.test(e)&&!A.test(e),mux:e=>c.test(e),facebook:e=>f.test(e)||y.test(e),streamable:e=>m.test(e),wistia:e=>v.test(e),twitch:e=>E.test(e)||b.test(e),dailymotion:e=>g.test(e),mixcloud:e=>P.test(e),vidyard:e=>w.test(e),kaltura:e=>S.test(e),file:_}},17799:(e,t,r)=>{var s,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of a(t))h.call(e,n)||n===r||i(e,n,{get:()=>t[n],enumerable:!(s=o(t,n))||s.enumerable});return e},u=(e,t,r)=>(r=null!=e?n(l(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{callPlayer:()=>k,getConfig:()=>_,getSDK:()=>M,isBlobUrl:()=>j,isMediaStream:()=>U,lazy:()=>m,omit:()=>R,parseEndTime:()=>S,parseStartTime:()=>w,queryString:()=>O,randomString:()=>L,supportsWebKitPresentationMode:()=>D}),e.exports=(s=d,p(i({},"__esModule",{value:!0}),s));var c=u(r(65043)),f=u(r(63452)),y=u(r(67789));const m=e=>c.default.lazy((async()=>{const t=await e();return"function"===typeof t.default?t:t.default})),v=/[?&#](?:start|t)=([0-9hms]+)/,E=/[?&#]end=([0-9hms]+)/,b=/(\d+)(h|m|s)/g,g=/^\d+$/;function P(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const e=r[1];if(e.match(b))return function(e){let t=0,r=b.exec(e);for(;null!==r;){const[,s,n]=r;"h"===n&&(t+=60*parseInt(s,10)*60),"m"===n&&(t+=60*parseInt(s,10)),"s"===n&&(t+=parseInt(s,10)),r=b.exec(e)}return t}(e);if(g.test(e))return parseInt(e)}}function w(e){return P(e,v)}function S(e){return P(e,E)}function L(){return Math.random().toString(36).substr(2,5)}function O(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}function A(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const I={},M=function(e){0;return e}((function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>!0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.default;const i=A(t);return i&&s(i)?Promise.resolve(i):new Promise(((s,i)=>{if(I[e])return void I[e].push({resolve:s,reject:i});I[e]=[{resolve:s,reject:i}];const o=t=>{I[e].forEach((e=>e.resolve(t)))};if(r){const e=window[r];window[r]=function(){e&&e(),o(A(t))}}n(e,(s=>{s?(I[e].forEach((e=>e.reject(s))),I[e]=null):r||o(A(t))}))}))}));function _(e,t){return(0,y.default)(t.config,e.config)}function R(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];const n=[].concat(...r),i={},o=Object.keys(e);for(const a of o)-1===n.indexOf(a)&&(i[a]=e[a]);return i}function k(e){if(!this.player||!this.player[e]){let t=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c \u2013 `;return this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];return this.player[e](...r)}function U(e){return"undefined"!==typeof window&&"undefined"!==typeof window.MediaStream&&e instanceof window.MediaStream}function j(e){return/^blob:/.test(e)}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.createElement("video");const t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"===typeof e.webkitSetPresentationMode&&t}},75956:(e,t,r)=>{var s,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of a(t))h.call(e,n)||n===r||i(e,n,{get:()=>
3t[n],enumerable:!(s=o(t,n))||s.enumerable});return e},u=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>w}),e.exports=(s=d,p(i({},"__esModule",{value:!0}),s));var c=((e,t,r)=>(r=null!=e?n(l(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(65043)),f=r(17799),y=r(763);const m="undefined"!==typeof navigator,v=m&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,E=m&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||v)&&!window.MSStream,b=m&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,g=/www\.dropbox\.com\/.+/,P=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;class w extends c.Component{constructor(){var e;super(...arguments),e=this,u(this,"onReady",(function(){return e.props.onReady(...arguments)})),u(this,"onPlay",(function(){return e.props.onPlay(...arguments)})),u(this,"onBuffer",(function(){return e.props.onBuffer(...arguments)})),u(this,"onBufferEnd",(function(){return e.props.onBufferEnd(...arguments)})),u(this,"onPause",(function(){return e.props.onPause(...arguments)})),u(this,"onEnded",(function(){return e.props.onEnded(...arguments)})),u(this,"onError",(function(){return e.props.onError(...arguments)})),u(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),u(this,"onEnablePIP",(function(){return e.props.onEnablePIP(...arguments)})),u(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()})),u(this,"onPresentationModeChange",(e=>{if(this.player&&(0,f.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),u(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),u(this,"mute",(()=>{this.player.muted=!0})),u(this,"unmute",(()=>{this.player.muted=!1})),u(this,"renderSourceElement",((e,t)=>"string"===typeof e?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e}))),u(this,"renderTrack",((e,t)=>c.default.createElement("track",{key:t,...e}))),u(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(E||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,f.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:r}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&(!e.config.attributes.poster&&(y.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio))}
3shouldUseHLS(e){return!!(b&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!E&&!this.props.config.forceDisableHls&&(y.HLS_EXTENSIONS.test(e)||P.test(e))}shouldUseDASH(e){return y.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return y.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:n}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,f.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",t),"Hls").then((t=>{if(this.hls=new t(r),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,r)=>{this.props.onError(e,r,this.hls,t)})),P.test(e)){const t=e.match(P)[1];this.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,f.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(s)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,f.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",n),"flvjs").then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,r)=>{this.props.onError(e,r,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,f.isMediaStream)(e))try{this.player.srcObject=e}catch(i){this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),r=this.getDuration();return t>r?r:t}getSource(e){const t=this.shouldUseHLS(e),r=this.shouldUseDASH(e),s=this.shouldUseFLV(e);if(!(e instanceof Array||(0,f.isMediaStream)(e)||t||r||s))return g.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:r,controls:s,muted:n,config:i,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props)?"audio":"video",h={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return c.default.createElement(l,{ref:this.ref,src:this.getSource(e),style:h,preload:"auto",autoPlay:t||void 0,controls:s,muted:n,loop:r,...i.attributes},e instanceof Array&&e.map(this.renderSourceElement),i.tracks.map(this.renderTrack))}}u(w,"displayName","FilePlayer"),u(w,"canPlay",y.canPlay.file)},97691:(e,t,r)=>{var s,n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=(e,t,r,s)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of a(t))h.call(e,n)||n===r||i(e,n,{get:()=>
3t[n],enumerable:!(s=o(t,n))||s.enumerable});return e},u=(e,t,r)=>(((e,t,r)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{default:()=>w}),e.exports=(s=d,p(i({},"__esModule",{value:!0}),s));var c=((e,t,r)=>(r=null!=e?n(l(e)):{},p(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)))(r(65043)),f=r(32206),y=r(41520);const m="undefined"!==typeof navigator,v=m&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,E=m&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||v)&&!window.MSStream,b=m&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,g=/www\.dropbox\.com\/.+/,P=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/;class w extends c.Component{constructor(){var e;super(...arguments),e=this,u(this,"onReady",(function(){return e.props.onReady(...arguments)})),u(this,"onPlay",(function(){return e.props.onPlay(...arguments)})),u(this,"onBuffer",(function(){return e.props.onBuffer(...arguments)})),u(this,"onBufferEnd",(function(){return e.props.onBufferEnd(...arguments)})),u(this,"onPause",(function(){return e.props.onPause(...arguments)})),u(this,"onEnded",(function(){return e.props.onEnded(...arguments)})),u(this,"onError",(function(){return e.props.onError(...arguments)})),u(this,"onPlayBackRateChange",(e=>this.props.onPlaybackRateChange(e.target.playbackRate))),u(this,"onEnablePIP",(function(){return e.props.onEnablePIP(...arguments)})),u(this,"onDisablePIP",(e=>{const{onDisablePIP:t,playing:r}=this.props;t(e),r&&this.play()})),u(this,"onPresentationModeChange",(e=>{if(this.player&&(0,f.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;"picture-in-picture"===t?this.onEnablePIP(e):"inline"===t&&this.onDisablePIP(e)}})),u(this,"onSeek",(e=>{this.props.onSeek(e.target.currentTime)})),u(this,"mute",(()=>{this.player.muted=!0})),u(this,"unmute",(()=>{this.player.muted=!1})),u(this,"renderSourceElement",((e,t)=>"string"===typeof e?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e}))),u(this,"renderTrack",((e,t)=>c.default.createElement("track",{key:t,...e}))),u(this,"ref",(e=>{this.player&&(this.prevPlayer=this.player),this.player=e}))}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(E||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url===e.url||(0,f.isMediaStream)(this.props.url)||this.props.url instanceof Array||(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:r}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),r&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return!e.config.forceVideo&&(!e.config.attributes.poster&&(y.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio))}
3shouldUseHLS(e){return!!(b&&this.props.config.forceSafariHLS||this.props.config.forceHLS)||!E&&!this.props.config.forceDisableHls&&(y.HLS_EXTENSIONS.test(e)||P.test(e))}shouldUseDASH(e){return y.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return y.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:r,dashVersion:s,flvVersion:n}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,f.getSDK)("https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js".replace("VERSION",t),"Hls").then((t=>{if(this.hls=new t(r),this.hls.on(t.Events.MANIFEST_PARSED,(()=>{this.props.onReady()})),this.hls.on(t.Events.ERROR,((e,r)=>{this.props.onError(e,r,this.hls,t)})),P.test(e)){const t=e.match(P)[1];this.hls.loadSource("https://videodelivery.net/{id}/manifest/video.m3u8".replace("{id}",t))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()})),this.shouldUseDASH(e)&&(0,f.getSDK)("https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js".replace("VERSION",s),"dashjs").then((t=>{this.dash=t.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(s)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:t.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()})),this.shouldUseFLV(e)&&(0,f.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",n),"flvjs").then((t=>{this.flv=t.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(t.Events.ERROR,((e,r)=>{this.props.onError(e,r,this.flv,t)})),this.flv.load(),this.props.onLoaded()})),e instanceof Array)this.player.load();else if((0,f.isMediaStream)(e))try{this.player.srcObject=e}catch(i){this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(0===e.length)return 0;const t=e.end(e.length-1),r=this.getDuration();return t>r?r:t}getSource(e){const t=this.shouldUseHLS(e),r=this.shouldUseDASH(e),s=this.shouldUseFLV(e);if(!(e instanceof Array||(0,f.isMediaStream)(e)||t||r||s))return g.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:r,controls:s,muted:n,config:i,width:o,height:a}=this.props,l=this.shouldUseAudio(this.props)?"audio":"video",h={width:"auto"===o?o:"100%",height:"auto"===a?a:"100%"};return c.default.createElement(l,{ref:this.ref,src:this.getSource(e),style:h,preload:"auto",autoPlay:t||void 0,controls:s,muted:n,loop:r,...i.attributes},e instanceof Array&&e.map(this.renderSourceElement),i.tracks.map(this.renderTrack))}}u(w,"displayName","FilePlayer"),u(w,"canPlay",y.canPlay.file)}}]); 4//# sourceMappingURL=reactPlayerFilePlayer.b10c91fa.chunk.js.map 5//# debugId=02447ab8-f3f5-507a-9d70-9ef3160db45e
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.