PageSourceSearch

https://agda.com.au/wp-content/themes/agda/dist/frontend/assets/video-embed-1rYO9P8g.js

js agda.com.au collected 2026-10-02 03:38:57 UTC 25,127 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/entry-B3YGwfHj.css"])))=>i.map(i=>d[i]);
2import{r as ae,_ as j,a as Oe,b as W,g as be,j as B,u as we}from"./entry.client-BF1tJIhu.js";import{r as Pe}from"./cjs-DMmwEoUs.js";import{r as Te}from"./index-Chjiymov.js";var X,se;function Ee(){if(se)return X;se=1,X=function(b,n,s){var _=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");typeof n=="function"&&(s=n,n={}),n=n||{},s=s||function(){},r.type=n.type||"text/javascript",r.charset=n.charset||"utf8",r.async="async"in n?!!n.async:!0,r.src=b,n.attrs&&O(r,n.attrs),n.text&&(r.text=""+n.text);var c="onload"in r?u:M;c(r,s),r.onload||u(r,s),_.appendChild(r)};function O(S,b){for(var n in b)S.setAttribute(n,b[n])}function u(S,b){S.onload=function(){this.onerror=this.onload=null,b(null,S)},S.onerror=function(){this.onerror=this.onload=null,b(new Error("Failed to load "+this.src),S)}}function M(S,b){S.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,b(null,S))}}return X}var Y,le;function F(){if(le)return Y;le=1;var O=Object.create,u=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,b=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,s=(o,d)=>{for(var C in d)u(o,C,{get:d[C],enumerable:!0})},_=(o,d,C,k)=>{if(d&&typeof d=="object"||typeof d=="function")for(let x of S(d))!n.call(o,x)&&x!==C&&u(o,x,{get:()=>d[x],enumerable:!(k=M(d,x))||k.enumerable});return o},r=(o,d,C)=>(C=o!=null?O(b(o)):{},_(!o||!o.__esModule?u(C,"default",{value:o,enumerable:!0}):C,o)),c=o=>_(u({},"__esModule",{value:!0}),o),I={};s(I,{callPlayer:()=>t,getConfig:()=>g,getSDK:()=>m,isBlobUrl:()=>N,isMediaStream:()=>l,lazy:()=>U,omit:()=>E,parseEndTime:()=>p,parseStartTime:()=>f,queryString:()=>R,randomString:()=>T,supportsWebKitPresentationMode:()=>z}),Y=c(I);var e=r(ae()),y=r(Ee()),h=r(Pe());const U=o=>e.default.lazy(async()=>{const d=await o();return typeof d.default=="function"?d:d.default}),v=/[?&#](?:start|t)=([0-9hms]+)/,L=/[?&#]end=([0-9hms]+)/,P=/(\d+)(h|m|s)/g,w=/^\d+$/;function i(o,d){if(o instanceof Array)return;const C=o.match(d);if(C){const k=C[1];if(k.match(P))return a(k);if(w.test(k))return parseInt(k)}}function a(o){let d=0,C=P.exec(o);for(;C!==null;){const[,k,x]=C;x==="h"&&(d+=parseInt(k,10)*60*60),x==="m"&&(d+=parseInt(k,10)*60),x==="s"&&(d+=parseInt(k,10)),C=P.exec(o)}return d}function f(o){return i(o,v)}function p(o){return i(o,L)}function T(){return Math.random().toString(36).substr(2,5)}function R(o){return Object.keys(o).map(d=>`${d}=${o[d]}`).join("&")}function A(o){return window[o]?window[o]:window.exports&&window.exports[o]?window.exports[o]:window.module&&window.module.exports&&window.module.exports[o]?window.module.exports[o]:null}const D={},m=function(d,C,k=null,x=()=>!0,q=y.default){const $=A(C);return $&&x($)?Promise.resolve($):new Promise((ne,oe)=>{if(D[d]){D[d].push({resolve:ne,reject:oe});return}D[d]=[{resolve:ne,reject:oe}];const ie=V=>{D[d].forEach(K=>K.resolve(V))};if(k){const V=window[k];window[k]=function(){V&&V(),ie(A(C))}}q(d,V=>{V?(D[d].forEach(K=>K.reject(V)),D[d]=null):k||ie(A(C))})})};function g(o,d){return(0,h.default)(d.config,o.config)}function E(o,...d){const C=[].concat(...d),k={},x=Object.keys(o);for(const q of x)C.indexOf(q)===-1&&(k[q]=o[q]);return k}function t(o,...d){if(!this.player||!this.player[o]){let C=`ReactPlayer: ${this.constructor.displayName} player could not call %c${o}%c – `;return this.player?this.player[o]||(C+="The method was not available"):C+="The player was not available",console.warn(C,"font-weight: bold",""),null}return this.player[o](...d)}function l(o){return typeof window<"u"&&typeof window.MediaStream<"u"&&o instanceof window.MediaStream}function N(o){return/^blob:/.test(o)}function z(o=document.createElement("video")){const d=/iPhone|iPod/.test(navigator.userAgent)===!1;return o.webkitSupportsPresentationMode&&typeof o.webkitSetPresentationMode=="function"&&d}function H(o){return o}return Y}var J,ue;function Se(){if(ue)return J;ue=1;var O=Object.defineProperty,u=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,S=Object.prototype.hasOwnProperty,b=(t,l)=>{for(var N in l)O(t,N,{get:l[N],enumerable:!0})},n=(t,l,N,z)=>{if(l&&typeof l=="object"||typeof l=="function")for(let H of M(l))!S.call(t,H)&&H!==N&&O(t,H,{get:()=>l[H],enumerable:!(z=u(l,H))||z.enumerable});return t},s=t=>n(O({},"__esModule",{value:!0}),t),_={};b(_,{AUDIO_EXTENSIONS:()=>T,DASH_EXTENSIONS:()=>D,FLV_EXTENSIONS:()=>m,HLS_EXTENSIONS:()=>A,MATCH_URL_DAILYMOTION:()=>i,MATCH_URL_FACEBOOK:()=>h,MATCH_URL_FACEBOOK_WATCH:()=>U,MATCH_URL_KALTURA:()=>p,MATCH_URL_MIXCLOUD:()=>a,MATCH_URL_MUX:()=>y,MATCH_URL_SOUNDCLOUD:()=>I,MATCH_URL_STREAMABLE:()=>v,MATCH_URL_TWITCH_CHANNEL:()=>w,MATCH_URL_TWITCH_VIDEO:()=>P,MATCH_URL_VIDYARD:()=>f,MATCH_URL_VIMEO:()=>e,MATCH_URL_WISTIA:()=>L,MATCH_URL_YOUTUBE:()=>c,VIDEO_EXTENSIONS:()=>R,canPlay:()=>E}
2),J=s(_);var r=F();const c=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,I=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,e=/vimeo\.com\/(?!progressive_redirect).+/,y=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,h=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,U=/^https?:\/\/fb\.watch\/.+$/,v=/streamable\.com\/([a-z0-9]+)$/,L=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,P=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,w=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,i=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,a=/mixcloud\.com\/([^/]+\/[^/]+)/,f=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,p=/^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-_].*)$/,T=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,R=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,A=/\.(m3u8)($|\?)/i,D=/\.(mpd)($|\?)/i,m=/\.(flv)($|\?)/i,g=t=>{if(t instanceof Array){for(const l of t)if(typeof l=="string"&&g(l)||g(l.src))return!0;return!1}return(0,r.isMediaStream)(t)||(0,r.isBlobUrl)(t)?!0:T.test(t)||R.test(t)||A.test(t)||D.test(t)||m.test(t)},E={youtube:t=>t instanceof Array?t.every(l=>c.test(l)):c.test(t),soundcloud:t=>I.test(t)&&!T.test(t),vimeo:t=>e.test(t)&&!R.test(t)&&!A.test(t),mux:t=>y.test(t),facebook:t=>h.test(t)||U.test(t),streamable:t=>v.test(t),wistia:t=>L.test(t),twitch:t=>P.test(t)||w.test(t),dailymotion:t=>i.test(t),mixcloud:t=>a.test(t),vidyard:t=>f.test(t),kaltura:t=>p.test(t),file:g};return J}var Z,ce;function Re(){if(ce)return Z;ce=1;var O=Object.defineProperty,u=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,S=Object.prototype.hasOwnProperty,b=(e,y)=>{for(var h in y)O(e,h,{get:y[h],enumerable:!0})},n=(e,y,h,U)=>{if(y&&typeof y=="object"||typeof y=="function")for(let v of M(y))!S.call(e,v)&&v!==h&&O(e,v,{get:()=>y[v],enumerable:!(U=u(y,v))||U.enumerable});return e},s=e=>n(O({},"__esModule",{value:!0}),e),_={};b(_,{default:()=>I}),Z=s(_);var r=F(),c=Se(),I=[{key:"youtube",name:"YouTube",canPlay:c.canPlay.youtube,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./YouTube-CGQzWnCa.js").then(e=>e.Y),__vite__mapDeps([0])))},{key:"soundcloud",name:"SoundCloud",canPlay:c.canPlay.soundcloud,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./SoundCloud-C5r_WX6d.js").then(e=>e.S),__vite__mapDeps([0])))},{key:"vimeo",name:"Vimeo",canPlay:c.canPlay.vimeo,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Vimeo-jOS6S4xK.js").then(e=>e.V),__vite__mapDeps([0])))},{key:"mux",name:"Mux",canPlay:c.canPlay.mux,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Mux-C1NxhFRr.js").then(e=>e.M),__vite__mapDeps([0])))},{key:"facebook",name:"Facebook",canPlay:c.canPlay.facebook,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Facebook-JkvOqDXB.js").then(e=>e.F),__vite__mapDeps([0])))},{key:"streamable",name:"Streamable",canPlay:c.canPlay.streamable,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Streamable-BVuPvZ-v.js").then(e=>e.S),__vite__mapDeps([0])))},{key:"wistia",name:"Wistia",canPlay:c.canPlay.wistia,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Wistia-atNRROUP.js").then(e=>e.W),__vite__mapDeps([0])))},{key:"twitch",name:"Twitch",canPlay:c.canPlay.twitch,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Twitch-CHIqi4P1.js").then(e=>e.T),__vite__mapDeps([0])))},{key:"dailymotion",name:"DailyMotion",canPlay:c.canPlay.dailymotion,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./DailyMotion-DGUxPfYD.js").then(e=>e.D),__vite__mapDeps([0])))},{key:"mixcloud",name:"Mixcloud",canPlay:c.canPlay.mixcloud,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Mixcloud-DYMo49M8.js").then(e=>e.M),__vite__mapDeps([0])))},{key:"vidyard",name:"Vidyard",canPlay:c.canPlay.vidyard,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Vidyard-DEdx_ay6.js").then(e=>e.V),__vite__mapDeps([0])))},{key:"kaltura",name:"Kaltura",canPlay:c.canPlay.kaltura,lazyPlayer:(0,r.lazy)(()=>j(()=>import("./Kaltura-BIr7OAl2.js").then(e=>e.K),__vite__mapDeps([0])))},{key:"file",name:"FilePlayer",canPlay:c.canPlay.file,canEnablePIP:e=>c.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,r.supportsWebKitPresentationMode)())&&!c.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,r.lazy)(()=>j(()=>import("./FilePlayer-BDonCUNJ.js").then(e=>e.F),__vite__mapDeps([0])))}];return Z}var pe=Number.isNaN||function(u){return typeof u=="number"&&u!==u};function Ae(O,u){return!!(O===u||pe(O)&&pe(u))}function Ce(O,u){if(O.length!==u.length)return!1;for(var M=0;M<O.length;M++)if(!Ae(O[M],u[M]))return!1;return!0}function Le(O,u){u===void 0&&(u=Ce);var M,S=[],b,n=!1;function s(){for(var _=[],r=0;r<arguments.length;r++)_[r]=arguments[r];return n&&M===this&&u(_,S)||(b=O.apply(this,_),n=!0,M=this,S=_),b}return s}const Me=Object.freeze(Object.defineProperty({__proto__:null,default:Le},Symbol.toStringTag,{value:"Module"})),Ie=Oe(Me);var Q,fe;function me(){if(fe)return Q;fe=1;var O=typeof Element<"u",u=typeof Map=="function",M=typeof Set=="function",S=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;
2function b(n,s){if(n===s)return!0;if(n&&s&&typeof n=="object"&&typeof s=="object"){if(n.constructor!==s.constructor)return!1;var _,r,c;if(Array.isArray(n)){if(_=n.length,_!=s.length)return!1;for(r=_;r--!==0;)if(!b(n[r],s[r]))return!1;return!0}var I;if(u&&n instanceof Map&&s instanceof Map){if(n.size!==s.size)return!1;for(I=n.entries();!(r=I.next()).done;)if(!s.has(r.value[0]))return!1;for(I=n.entries();!(r=I.next()).done;)if(!b(r.value[1],s.get(r.value[0])))return!1;return!0}if(M&&n instanceof Set&&s instanceof Set){if(n.size!==s.size)return!1;for(I=n.entries();!(r=I.next()).done;)if(!s.has(r.value[0]))return!1;return!0}if(S&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(s)){if(_=n.length,_!=s.length)return!1;for(r=_;r--!==0;)if(n[r]!==s[r])return!1;return!0}if(n.constructor===RegExp)return n.source===s.source&&n.flags===s.flags;if(n.valueOf!==Object.prototype.valueOf&&typeof n.valueOf=="function"&&typeof s.valueOf=="function")return n.valueOf()===s.valueOf();if(n.toString!==Object.prototype.toString&&typeof n.toString=="function"&&typeof s.toString=="function")return n.toString()===s.toString();if(c=Object.keys(n),_=c.length,_!==Object.keys(s).length)return!1;for(r=_;r--!==0;)if(!Object.prototype.hasOwnProperty.call(s,c[r]))return!1;if(O&&n instanceof Element)return!1;for(r=_;r--!==0;)if(!((c[r]==="_owner"||c[r]==="__v"||c[r]==="__o")&&n.$$typeof)&&!b(n[c[r]],s[c[r]]))return!1;return!0}return n!==n&&s!==s}return Q=function(s,_){try{return b(s,_)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}},Q}var G,de;function ve(){if(de)return G;de=1;var O=Object.create,u=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,b=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,s=(R,A)=>{for(var D in A)u(R,D,{get:A[D],enumerable:!0})},_=(R,A,D,m)=>{if(A&&typeof A=="object"||typeof A=="function")for(let g of S(A))!n.call(R,g)&&g!==D&&u(R,g,{get:()=>A[g],enumerable:!(m=M(A,g))||m.enumerable});return R},r=(R,A,D)=>(D=R!=null?O(b(R)):{},_(!R||!R.__esModule?u(D,"default",{value:R,enumerable:!0}):D,R)),c=R=>_(u({},"__esModule",{value:!0}),R),I={};s(I,{defaultProps:()=>T,propTypes:()=>f}),G=c(I);var e=r(Te());const{string:y,bool:h,number:U,array:v,oneOfType:L,shape:P,object:w,func:i,node:a}=e.default,f={url:L([y,v,w]),playing:h,loop:h,controls:h,volume:U,muted:h,playbackRate:U,width:L([y,U]),height:L([y,U]),style:w,progressInterval:U,playsinline:h,pip:h,stopOnUnmount:h,light:L([h,y,w]),playIcon:a,previewTabIndex:U,previewAriaLabel:y,fallback:a,oEmbedUrl:y,wrapper:L([y,i,P({render:i.isRequired})]),config:P({soundcloud:P({options:w}),youtube:P({playerVars:w,embedOptions:w,onUnstarted:i}),facebook:P({appId:y,version:y,playerId:y,attributes:w}),dailymotion:P({params:w}),vimeo:P({playerOptions:w,title:y}),mux:P({attributes:w,version:y}),file:P({attributes:w,tracks:v,forceVideo:h,forceAudio:h,forceHLS:h,forceSafariHLS:h,forceDisableHls:h,forceDASH:h,forceFLV:h,hlsOptions:w,hlsVersion:y,dashVersion:y,flvVersion:y}),wistia:P({options:w,playerId:y,customControls:v}),mixcloud:P({options:w}),twitch:P({options:w,playerId:y}),vidyard:P({options:w})}),onReady:i,onStart:i,onPlay:i,onPause:i,onBuffer:i,onBufferEnd:i,onEnded:i,onError:i,onDuration:i,onSeek:i,onPlaybackRateChange:i,onPlaybackQualityChange:i,onProgress:i,onClickPreview:i,onEnablePIP:i,onDisablePIP:i},p=()=>{},T={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:p},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},mux:{attributes:{},version:"2"},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}}
2,onReady:p,onStart:p,onPlay:p,onPause:p,onBuffer:p,onBufferEnd:p,onEnded:p,onError:p,onDuration:p,onSeek:p,onPlaybackRateChange:p,onPlaybackQualityChange:p,onProgress:p,onClickPreview:p,onEnablePIP:p,onDisablePIP:p};return G}var ee,ye;function De(){if(ye)return ee;ye=1;var O=Object.create,u=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,b=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,s=(i,a,f)=>a in i?u(i,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):i[a]=f,_=(i,a)=>{for(var f in a)u(i,f,{get:a[f],enumerable:!0})},r=(i,a,f,p)=>{if(a&&typeof a=="object"||typeof a=="function")for(let T of S(a))!n.call(i,T)&&T!==f&&u(i,T,{get:()=>a[T],enumerable:!(p=M(a,T))||p.enumerable});return i},c=(i,a,f)=>(f=i!=null?O(b(i)):{},r(!i||!i.__esModule?u(f,"default",{value:i,enumerable:!0}):f,i)),I=i=>r(u({},"__esModule",{value:!0}),i),e=(i,a,f)=>(s(i,typeof a!="symbol"?a+"":a,f),f),y={};_(y,{default:()=>w}),ee=I(y);var h=c(ae()),U=c(me()),v=ve(),L=F();const P=5e3;class w extends h.Component{constructor(){super(...arguments),e(this,"mounted",!1),e(this,"isReady",!1),e(this,"isPlaying",!1),e(this,"isLoading",!0),e(this,"loadOnReady",null),e(this,"startOnPlay",!0),e(this,"seekOnPlay",null),e(this,"onDurationCalled",!1),e(this,"handlePlayerMount",a=>{if(this.player){this.progress();return}this.player=a,this.player.load(this.props.url),this.progress()}),e(this,"getInternalPlayer",a=>this.player?this.player[a]:null),e(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const a=this.getCurrentTime()||0,f=this.getSecondsLoaded(),p=this.getDuration();if(p){const T={playedSeconds:a,played:a/p};f!==null&&(T.loadedSeconds=f,T.loaded=f/p),(T.playedSeconds!==this.prevPlayed||T.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(T),this.prevPlayed=T.playedSeconds,this.prevLoaded=T.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),e(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:a,playing:f,volume:p,muted:T}=this.props;a(),!T&&p!==null&&this.player.setVolume(p),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):f&&this.player.play(),this.handleDurationCheck()}),e(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:a,onPlay:f,playbackRate:p}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&p!==1&&this.player.setPlaybackRate(p),a(),this.startOnPlay=!1),f(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),e(this,"handlePause",a=>{this.isPlaying=!1,this.isLoading||this.props.onPause(a)}),e(this,"handleEnded",()=>{const{activePlayer:a,loop:f,onEnded:p}=this.props;a.loopOnEnded&&f&&this.seekTo(0),f||(this.isPlaying=!1,p())}),e(this,"handleError",(...a)=>{this.isLoading=!1,this.props.onError(...a)}),e(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const a=this.getDuration();a?this.onDurationCalled||(this.props.onDuration(a),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),e(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(a){if(!this.player)return;const{url:f,playing:p,volume:T,muted:R,playbackRate:A,pip:D,loop:m,activePlayer:g,disableDeferredLoading:E}=this.props;if(!(0,U.default)(a.url,f)){if(this.isLoading&&!g.forceLoad&&!E&&!(0,L.isMediaStream)(f)){console.warn(`ReactPlayer: the attempt to load ${f} is being deferred until the player has loaded`),this.loadOnReady=f;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(f,this.isReady)}!a.playing&&p&&!this.isPlaying&&this.player.play(),a.playing&&!p&&this.isPlaying&&this.player.pause(),!
2a.pip&&D&&this.player.enablePIP&&this.player.enablePIP(),a.pip&&!D&&this.player.disablePIP&&this.player.disablePIP(),a.volume!==T&&T!==null&&this.player.setVolume(T),a.muted!==R&&(R?this.player.mute():(this.player.unmute(),T!==null&&setTimeout(()=>this.player.setVolume(T)))),a.playbackRate!==A&&this.player.setPlaybackRate&&this.player.setPlaybackRate(A),a.loop!==m&&this.player.setLoop&&this.player.setLoop(m)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(a,f,p){if(!this.isReady){a!==0&&(this.seekOnPlay=a,setTimeout(()=>{this.seekOnPlay=null},P));return}if(f?f==="fraction":a>0&&a<1){const R=this.player.getDuration();if(!R){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(R*a,p);return}this.player.seekTo(a,p)}render(){const a=this.props.activePlayer;return a?h.default.createElement(a,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}return e(w,"displayName","Player"),e(w,"propTypes",v.propTypes),e(w,"defaultProps",v.defaultProps),ee}var te,_e;function ke(){if(_e)return te;_e=1;var O=Object.create,u=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,b=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,s=(m,g,E)=>g in m?u(m,g,{enumerable:!0,configurable:!0,writable:!0,value:E}):m[g]=E,_=(m,g)=>{for(var E in g)u(m,E,{get:g[E],enumerable:!0})},r=(m,g,E,t)=>{if(g&&typeof g=="object"||typeof g=="function")for(let l of S(g))!n.call(m,l)&&l!==E&&u(m,l,{get:()=>g[l],enumerable:!(t=M(g,l))||t.enumerable});return m},c=(m,g,E)=>(E=m!=null?O(b(m)):{},r(!m||!m.__esModule?u(E,"default",{value:m,enumerable:!0}):E,m)),I=m=>r(u({},"__esModule",{value:!0}),m),e=(m,g,E)=>(s(m,typeof g!="symbol"?g+"":g,E),E),y={};_(y,{createReactPlayer:()=>D}),te=I(y);var h=c(ae()),U=c(Pe()),v=c(Ie),L=c(me()),P=ve(),w=F(),i=c(De());const a=(0,w.lazy)(()=>j(()=>import("./Preview-BfyMO5cL.js").then(m=>m.P),__vite__mapDeps([0]))),f=typeof window<"u"&&window.document&&typeof document<"u",p=typeof W<"u"&&W.window&&W.window.document,T=Object.keys(P.propTypes),R=f||p?h.Suspense:()=>null,A=[],D=(m,g)=>{var E;return E=class extends h.Component{constructor(){super(...arguments),e(this,"state",{showPreview:!!this.props.light}),e(this,"references",{wrapper:t=>{this.wrapper=t},player:t=>{this.player=t}}),e(this,"handleClickPreview",t=>{this.setState({showPreview:!1}),this.props.onClickPreview(t)}),e(this,"showPreview",()=>{this.setState({showPreview:!0})}),e(this,"getDuration",()=>this.player?this.player.getDuration():null),e(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),e(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),e(this,"getInternalPlayer",(t="player")=>this.player?this.player.getInternalPlayer(t):null),e(this,"seekTo",(t,l,N)=>{if(!this.player)return null;this.player.seekTo(t,l,N)}),e(this,"handleReady",()=>{this.props.onReady(this)}),e(this,"getActivePlayer",(0,v.default)(t=>{for(const l of[...A,...m])if(l.canPlay(t))return l;return g||null})),e(this,"getConfig",(0,v.default)((t,l)=>{const{config:N}=this.props;return U.default.all([P.defaultProps.config,P.defaultProps.config[l]||{},N,N[l]||{}])})),e(this,"getAttributes",(0,v.default)(t=>(0,w.omit)(this.props,T))),e(this,"renderActivePlayer",t=>{if(!t)return null;const l=this.getActivePlayer(t);if(!l)return null;const N=this.getConfig(t,l.key);return h.default.createElement(i.default,{...this.props,key:l.key,ref:this.references.player,config:N,activePlayer:l.lazyPlayer||l,onReady:this.handleReady})})}shouldComponentUpdate(t,l){return!(0,L.default)(this.props,t)||!(0,L.default)(this.state,l)}componentDidUpdate(t){const{light:l}=this.props;!t.light&&l&&this.setState({showPreview:!0}),t.light&&!l&&this.setState({showPreview:!1})}renderPreview(t){if(!t)return null;const{light:l,playIcon:N,previewTabIndex:z,oEmbedUrl:H,previewAriaLabel:o}=this.props;return h.default.createElement(a,{url:t,light:l,playIcon:N,previewTabIndex:z,previewAriaLabel:o,oEmbedUrl:H,onClick:this.handleClickPreview})}render(){const{url:t,style:l,width:N,height:z,fallback:H,wrapper:o}=this.props,{showPreview:d}
2=this.state,C=this.getAttributes(t),k=typeof o=="string"?this.references.wrapper:void 0;return h.default.createElement(o,{ref:k,style:{...l,width:N,height:z},...C},h.default.createElement(R,{fallback:H},d?this.renderPreview(t):this.renderActivePlayer(t)))}},e(E,"displayName","ReactPlayer"),e(E,"propTypes",P.propTypes),e(E,"defaultProps",P.defaultProps),e(E,"addCustomPlayer",t=>{A.push(t)}),e(E,"removeCustomPlayers",()=>{A.length=0}),e(E,"canPlay",t=>{for(const l of[...A,...m])if(l.canPlay(t))return!0;return!1}),e(E,"canEnablePIP",t=>{for(const l of[...A,...m])if(l.canEnablePIP&&l.canEnablePIP(t))return!0;return!1}),E};return te}var re,he;function Ue(){if(he)return re;he=1;var O=Object.create,u=Object.defineProperty,M=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,b=Object.getPrototypeOf,n=Object.prototype.hasOwnProperty,s=(v,L)=>{for(var P in L)u(v,P,{get:L[P],enumerable:!0})},_=(v,L,P,w)=>{if(L&&typeof L=="object"||typeof L=="function")for(let i of S(L))!n.call(v,i)&&i!==P&&u(v,i,{get:()=>L[i],enumerable:!(w=M(L,i))||w.enumerable});return v},r=(v,L,P)=>(P=v!=null?O(b(v)):{},_(!v||!v.__esModule?u(P,"default",{value:v,enumerable:!0}):P,v)),c=v=>_(u({},"__esModule",{value:!0}),v),I={};s(I,{default:()=>U}),re=c(I);var e=r(Re()),y=ke();const h=e.default[e.default.length-1];var U=(0,y.createReactPlayer)(e.default,h);return re}var Ne=Ue();const je=be(Ne);function ge(O){return O.videoUrl?we()?null:B.jsx("div",{className:"grid-auto video-player my-5",children:B.jsx("div",{className:"col-span-12 md:col-start-2 md:col-span-10 aspect-video bg-grey-light relative",children:B.jsx(je,{width:"100%",height:"100%",url:O.videoUrl,controls:!0})})}):B.jsx("div",{})}ge.displayName="Block(article/video-embed)";const Ve=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));export{Se as a,F as r,Ve as v};
3//# sourceMappingURL=video-embed-1rYO9P8g.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.