import{r as Q,m as nr,n as De,o as ar}from"./index-9600e7d5.js";var St={},Rt={},$={},or=function(i,u,f){var O=document.head||document.getElementsByTagName("head")[0],w=document.createElement("script");typeof u=="function"&&(f=u,u={}),u=u||{},f=f||function(){},w.type=u.type||"text/javascript",w.charset=u.charset||"utf8",w.async="async"in u?!!u.async:!0,w.src=i,u.attrs&&ir(w,u.attrs),u.text&&(w.text=""+u.text);var E="onload"in w?et:ur;E(w,f),w.onload||et(w,f),O.appendChild(w)};function ir(n,i){for(var u in i)n.setAttribute(u,i[u])}function et(n,i){n.onload=function(){this.onerror=this.onload=null,i(null,n)},n.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+this.src),n)}}function ur(n,i){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,i(null,n))}}var lr=function(i){return cr(i)&&!fr(i)};function cr(n){return!!n&&typeof n=="object"}function fr(n){var i=Object.prototype.toString.call(n);return i==="[object RegExp]"||i==="[object Date]"||yr(n)}var sr=typeof Symbol=="function"&&Symbol.for,pr=sr?Symbol.for("react.element"):60103;function yr(n){return n.$$typeof===pr}function dr(n){return Array.isArray(n)?[]:{}}function _e(n,i){return i.clone!==!1&&i.isMergeableObject(n)?ye(dr(n),n,i):n}function hr(n,i,u){return n.concat(i).map(function(f){return _e(f,u)})}function vr(n,i){if(!i.customMerge)return ye;var u=i.customMerge(n);return typeof u=="function"?u:ye}function mr(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(i){return Object.propertyIsEnumerable.call(n,i)}):[]}function tt(n){return Object.keys(n).concat(mr(n))}function Et(n,i){try{return i in n}catch{return!1}}function gr(n,i){return Et(n,i)&&!(Object.hasOwnProperty.call(n,i)&&Object.propertyIsEnumerable.call(n,i))}function Pr(n,i,u){var f={};return u.isMergeableObject(n)&&tt(n).forEach(function(O){f[O]=_e(n[O],u)}),tt(i).forEach(function(O){gr(n,O)||(Et(n,O)&&u.isMergeableObject(i[O])?f[O]=vr(O,u)(n[O],i[O],u):f[O]=_e(i[O],u))}),f}function ye(n,i,u){u=u||{},u.arrayMerge=u.arrayMerge||hr,u.isMergeableObject=u.isMergeableObject||lr,u.cloneUnlessOtherwiseSpecified=_e;var f=Array.isArray(i),O=Array.isArray(n),w=f===O;return w?f?u.arrayMerge(n,i,u):Pr(n,i,u):_e(i,u)}ye.all=function(i,u){if(!Array.isArray(i))throw new Error("first argument should be an array");return i.reduce(function(f,O){return ye(f,O,u)},{})};var _r=ye,Tt=_r;Object.defineProperty($,"__esModule",{value:!0});$.parseStartTime=kr;$.parseEndTime=Ir;$.randomString=Cr;$.queryString=Ur;$.getSDK=Nr;$.getConfig=Wr;$.omit=Vr;$.callPlayer=jr;$.isMediaStream=Hr;$.isBlobUrl=qr;$.supportsWebKitPresentationMode=Kr;var Or=Dt(or),br=Dt(Tt);function Dt(n){return n&&n.__esModule?n:{default:n}}function wr(n,i){return Tr(n)||Er(n,i)||Rr(n,i)||Sr()}function Sr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rr(n,i){if(n){if(typeof n=="string")return rt(n,i);var u=Object.prototype.toString.call(n).slice(8,-1);if(u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set")return Array.from(n);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return rt(n,i)}}function rt(n,i){(i==null||i>n.length)&&(i=n.length);for(var u=0,f=new Array(i);u<i;u++)f[u]=n[u];return f}function Er(n,i){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var u=[],f=!0,O=!1,w=void 0;try{for(var E=n[Symbol.iterator](),L;!(f=(L=E.next()).done)&&(u.push(L.value),!(i&&u.length===i));f=!0);}catch(_){O=!0,w=_}finally{try{!f&&E.return!=null&&E.return()}finally{if(O)throw w}}return u}}function Tr(n){if(Array.isArray(n))return n}var Dr=/[?&#](?:start|t)=([0-9hms]+)/,Lr=/[?&#]end=([0-9hms]+)/,Fe=/(\d+)(h|m|s)/g,Ar=/^\d+$/;function Lt(n,i){if(!(n instanceof Array)){var u=n.match(i);if(u){var f=u[1];if(f.match(Fe))return Mr(f);if(Ar.test(f))return parseInt(f)}}}function Mr(n){for(var i=0,u=Fe.exec(n);u!==null;){var f=u,O=wr(f,3),w=O[1],E=O[2];E==="h"&&(i+=parseInt(w,10)*60*60),E==="m"&&(i+=parseInt(w,10)*60),E==="s"&&(i+=parseInt(w,10)),u=Fe.exec(n)}return i}function kr(n){return Lt(n,Dr)}function Ir(n){return Lt(n,Lr)}function Cr(){return Math.random().toString(36).substr(2,5)}function Ur(n){return Object.keys(n).map(function(i){return"".concat(i,"=").concat(n[i])}).join("&")}function Le(n){return window[n]?window[n]:window.exports&&window.exports[n]?window.exports[n]:window.module&&window.module.exports&&window.module.exports[n]?window.module.exports[n]:null}var se={};function Nr(n,i){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},O=arguments.length>4&&arguments[4]!==void 0?arguments[4]:Or.default,w=Le(i);return w&&f(w)?Promise.resolve(w):new Promise(function(E,L){if(se[n]){se[n].push({resolve:E,reject:L});return}se[n]=[{resolve:E,reject:L}];var _=function(q){se[n].forEach(function(U){return U.resolve(q)})};if(u){var T=window[u];window[u]=function(){T&&T(),_(Le(i))}}O(n,function(k){k?(se[n].forEach(function(q){return q.reject(k)}),se[n]=null):u||_(Le(i))})})}function Wr(n,i){return(0,br.default)(i.config,n.config)}function Vr(n){for(var i,u=arguments.length,f=new Array(u>1?u-1:0),O=1;O<u;O++)f[O-1]=arguments[O];for(var w=(i=[]).concat.apply(i,f),E={},L=Object.keys(n),_=0,T=L;_<T.length;_++){var k=T[_];w.indexOf(k)===-1&&(E[k]=n[k])}return E}function jr(n){var i;if(!this.player||!this.player[n]){var u="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(n,"%c – ");return this.player?this.player[n]||(u+="The method was not available"):u+="The player was not available",console.warn(u,"font-weight: bold",""),null}for(var f=arguments.length,O=new Array(f>1?f-1:0),w=1;w<f;w++)O[w-1]=arguments[w];return(i=this.player)[n].apply(i,O)}function Hr(n){return typeof window<"u"&&typeof window.MediaStream<"u"&&n instanceof window.MediaStream}function qr(n){return/^blob:/.test(n)}function Kr(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),i=/iPhone|iPod/.test(navigator.userAgent)===!1;return n.webkitSupportsPresentationMode&&typeof n.webkitSetPresentationMode=="function"&&i}var H={};Object.defineProperty(H,"__esModule",{value:!0});H.canPlay=H.FLV_EXTENSIONS=H.DASH_EXTENSIONS=H.HLS_EXTENSIONS=H.VIDEO_EXTENSIONS=H.AUDIO_EXTENSIONS=H.MATCH_URL_KALTURA=H.MATCH_URL_VIDYARD=H.MATCH_URL_MIXCLOUD=H.MATCH_URL_DAILYMOTION=H.MATCH_URL_TWITCH_CHANNEL=H.MATCH_URL_TWITCH_VIDEO=H.MATCH_URL_WISTIA=H.MATCH_URL_STREAMABLE=H.MATCH_URL_FACEBOOK_WATCH=H.MATCH_URL_FACEBOOK=H.MATCH_URL_VIMEO=H.MATCH_URL_SOUNDCLOUD=H.MATCH_URL_YOUTUBE=void 0;var nt=$;function $r(n,i){var u;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(u=Br(n))||i&&n&&typeof n.length=="number"){u&&(n=u);var f=0,O=function(){};return{s:O,n:function(){return f>=n.length?{done:!0}:{done:!1,value:n[f++]}},e:function(T){throw T},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,E=!1,L;return{s:function(){u=n[Symbol.iterator]()},n:function(){var T=u.next();return w=T.done,T},e:function(T){E=!0,L=T},f:function(){try{!w&&u.return!=null&&u.return()}finally{if(E)throw L}}}}function Br(n,i){if(n){if(typeof n=="string")return at(n,i);var u=Object.prototype.toString.call(n).slice(8,-1);if(u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set")return Array.from(n);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return at(n,i)}}function at(n,i){(i==null||i>n.length)&&(i=n.length);for(var u=0,f=new Array(i);u<i;u++)f[u]=n[u];return f}var ze=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;H.MATCH_URL_YOUTUBE=ze;var At=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;H.MATCH_URL_SOUNDCLOUD=At;var Mt=/vimeo\.com\/(?!progressive_redirect).+/;H.MATCH_URL_VIMEO=Mt;var kt=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;H.MATCH_URL_FACEBOOK=kt;var It=/^https?:\/\/fb\.watch\/.+$/;H.MATCH_URL_FACEBOOK_WATCH=It;var Ct=/streamable\.com\/([a-z0-9]+)$/;H.MATCH_URL_STREAMABLE=Ct;var Ut=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;H.MATCH_URL_WISTIA=Ut;var Nt=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;H.MATCH_URL_TWITCH_VIDEO=Nt;var Wt=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;H.MATCH_URL_TWITCH_CHANNEL=Wt;var Vt=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;H.MATCH_URL_DAILYMOTION=Vt;var jt=/mixcloud\.com\/([^/]+\/[^/]+)/;H.MATCH_URL_MIXCLOUD=jt;var Ht=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;H.MATCH_URL_VIDYARD=Ht;var qt=/^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-_].*)$/;H.MATCH_URL_KALTURA=qt;var Ze=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;H.AUDIO_EXTENSIONS=Ze;var Qe=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;H.VIDEO_EXTENSIONS=Qe;var Je=/\.(m3u8)($|\?)/i;H.HLS_EXTENSIONS=Je;var Kt=/\.(mpd)($|\?)/i;H.DASH_EXTENSIONS=Kt;var $t=/\.(flv)($|\?)/i;H.FLV_EXTENSIONS=$t;var xr=function n(i){if(i instanceof Array){var u=$r(i),f;try{for(u.s();!(f=u.n()).done;){var O=f.value;if(typeof O=="string"&&n(O)||n(O.src))return!0}}catch(w){u.e(w)}finally{u.f()}return!1}return(0,nt.isMediaStream)(i)||(0,nt.isBlobUrl)(i)?!0:Ze.test(i)||Qe.test(i)||Je.test(i)||Kt.test(i)||$t.test(i)},Fr={youtube:function(i){return i instanceof Array?i.every(function(u){return ze.test(u)}):ze.test(i)},soundcloud:function(i){return At.test(i)&&!Ze.test(i)},vimeo:function(i){return Mt.test(i)&&!Qe.test(i)&&!Je.test(i)},facebook:function(i){return kt.test(i)||It.test(i)},streamable:function(i){return Ct.test(i)},wistia:function(i){return Ut.test(i)},twitch:function(i){return Nt.test(i)||Wt.test(i)},dailymotion:function(i){return Vt.test(i)},mixcloud:function(i){return jt.test(i)},vidyard:function(i){return Ht.test(i)},kaltura:function(i){return qt.test(i)},file:xr};H.canPlay=Fr;var Ae={},ot;function zr(){return ot||(ot=1,function(n){function i(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(d){return typeof d}:i=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(y)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return w=function(){return y},y}function E(y){if(y&&y.__esModule)return y;if(y===null||i(y)!=="object"&&typeof y!="function")return{default:y};var g=w();if(g&&g.has(y))return g.get(y);var d={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in y)if(Object.prototype.hasOwnProperty.call(y,b)){var j=s?Object.getOwnPropertyDescriptor(y,b):null;j&&(j.get||j.set)?Object.defineProperty(d,b,j):d[b]=y[b]}return d.default=y,g&&g.set(y,d),d}function L(y,g){var d=Object.keys(y);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(y);g&&(s=s.filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable})),d.push.apply(d,s)}return d}function _(y){for(var g=1;g<arguments.length;g++){var d=arguments[g]!=null?arguments[g]:{};g%2?L(Object(d),!0).forEach(function(s){r(y,s,d[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(d)):L(Object(d)).forEach(function(s){Object.defineProperty(y,s,Object.getOwnPropertyDescriptor(d,s))})}return y}function T(y,g){return N(y)||C(y,g)||q(y,g)||k()}function k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(y,g){if(y){if(typeof y=="string")return U(y,g);var d=Object.prototype.toString.call(y).slice(8,-1);if(d==="Object"&&y.constructor&&(d=y.constructor.name),d==="Map"||d==="Set")return Array.from(y);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return U(y,g)}}function U(y,g){(g==null||g>y.length)&&(g=y.length);for(var d=0,s=new Array(g);d<g;d++)s[d]=y[d];return s}function C(y,g){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(y)))){var d=[],s=!0,b=!1,j=void 0;try{for(var I=y[Symbol.iterator](),K;!(s=(K=I.next()).done)&&(d.push(K.value),!(g&&d.length===g));s=!0);}catch(F){b=!0,j=F}finally{try{!s&&I.return!=null&&I.return()}finally{if(b)throw j}}return d}}function N(y){if(Array.isArray(y))return y}function W(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function D(y,g){for(var d=0;d<g.length;d++){var s=g[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(y,s.key,s)}}function M(y,g,d){return g&&D(y.prototype,g),d&&D(y,d),y}function A(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&R(y,g)}function R(y,g){return R=Object.setPrototypeOf||function(s,b){return s.__proto__=b,s},R(y,g)}function V(y){var g=a();return function(){var s=e(y),b;if(g){var j=e(this).constructor;b=Reflect.construct(s,arguments,j)}else b=s.apply(this,arguments);return p(this,b)}}function p(y,g){return g&&(i(g)==="object"||typeof g=="function")?g:h(y)}function h(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function e(y){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},e(y)}function r(y,g,d){return g in y?Object.defineProperty(y,g,{value:d,enumerable:!0,configurable:!0,writable:!0}):y[g]=d,y}var t="https://www.youtube.com/iframe_api",o="YT",l="onYouTubeIframeAPIReady",m=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,c=/user\/([a-zA-Z0-9_-]+)\/?/,P=/youtube-nocookie\.com/,S="https://www.youtube-nocookie.com",v=function(y){A(d,y);var g=V(d);function d(){var s;W(this,d);for(var b=arguments.length,j=new Array(b),I=0;I<b;I++)j[I]=arguments[I];return s=g.call.apply(g,[this].concat(j)),r(h(s),"callPlayer",f.callPlayer),r(h(s),"parsePlaylist",function(K){if(K instanceof Array)return{listType:"playlist",playlist:K.map(s.getID).join(",")};if(m.test(K)){var F=K.match(m),x=T(F,2),B=x[1];return{listType:"playlist",list:B.replace(/^UC/,"UU")}}if(c.test(K)){var G=K.match(c),J=T(G,2),ne=J[1];return{listType:"user_uploads",list:ne}}return{}}),r(h(s),"onStateChange",function(K){var F=K.data,x=s.props,B=x.onPlay,G=x.onPause,J=x.onBuffer,ne=x.onBufferEnd,ce=x.onEnded,de=x.onReady,Oe=x.loop,he=x.config,fe=he.playerVars,be=he.onUnstarted,oe=window[o].PlayerState,Xt=oe.UNSTARTED,Zt=oe.PLAYING,Qt=oe.PAUSED,Jt=oe.BUFFERING,er=oe.ENDED,tr=oe.CUED;if(F===Xt&&be(),F===Zt&&(B(),ne()),F===Qt&&G(),F===Jt&&J(),F===er){var rr=!!s.callPlayer("getPlaylist");Oe&&!rr&&(fe.start?s.seekTo(fe.start):s.play()),ce()}F===tr&&de()}),r(h(s),"mute",function(){s.callPlayer("mute")}),r(h(s),"unmute",function(){s.callPlayer("unMute")}),r(h(s),"ref",function(K){s.container=K}),s}return M(d,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(b){return!b||b instanceof Array||m.test(b)?null:b.match(O.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(b,j){var I=this,K=this.props,F=K.playing,x=K.muted,B=K.playsinline,G=K.controls,J=K.loop,ne=K.config,ce=K.onError,de=ne.playerVars,Oe=ne.embedOptions,he=this.getID(b);if(j){if(m.test(b)||c.test(b)||b instanceof Array){this.player.loadPlaylist(this.parsePlaylist(b));return}this.player.cueVideoById({videoId:he,startSeconds:(0,f.parseStartTime)(b)||de.start,endSeconds:(0,f.parseEndTime)(b)||de.end});return}(0,f.getSDK)(t,o,l,function(fe){return fe.loaded}).then(function(fe){I.container&&(I.player=new fe.Player(I.container,_({width:"100%",height:"100%",videoId:he,playerVars:_(_({autoplay:F?1:0,mute:x?1:0,controls:G?1:0,start:(0,f.parseStartTime)(b),end:(0,f.parseEndTime)(b),origin:window.location.origin,playsinline:B?1:0},I.parsePlaylist(b)),de),events:{onReady:function(){J&&I.player.setLoop(!0),I.props.onReady()},onPlaybackRateChange:function(oe){return I.props.onPlaybackRateChange(oe.data)},onStateChange:I.onStateChange,onError:function(oe){return ce(oe.data)}},host:P.test(b)?S:void 0},Oe)))},ce),Oe.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(b){this.callPlayer("seekTo",b),this.props.playing||this.pause()}},{key:"setVolume",value:function(b){this.callPlayer("setVolume",b*100)}},{key:"setPlaybackRate",value:function(b){this.callPlayer("setPlaybackRate",b)}},{key:"setLoop",value:function(b){this.callPlayer("setLoop",b)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var b=this.props.display,j={width:"100%",height:"100%",display:b};return u.default.createElement("div",{style:j},u.default.createElement("div",{ref:this.ref}))}}]),d}(u.Component);n.default=v,r(v,"displayName","YouTube"),r(v,"canPlay",O.canPlay.youtube)}(Ae)),Ae}var Me={},it;function Yr(){return it||(it=1,function(n){function i(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(r){return typeof r}:i=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return w=function(){return a},a}function E(a){if(a&&a.__esModule)return a;if(a===null||i(a)!=="object"&&typeof a!="function")return{default:a};var e=w();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var l=t?Object.getOwnPropertyDescriptor(a,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=a[o]}return r.default=a,e&&e.set(a,r),r}function L(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,t)}return r}function _(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(t){R(a,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(r,t))})}return a}function T(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function k(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function q(a,e,r){return e&&k(a.prototype,e),r&&k(a,r),a}function U(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),e&&C(a,e)}function C(a,e){return C=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},C(a,e)}function N(a){var e=M();return function(){var t=A(a),o;if(e){var l=A(this).constructor;o=Reflect.construct(t,arguments,l)}else o=t.apply(this,arguments);return W(this,o)}}function W(a,e){return e&&(i(e)==="object"||typeof e=="function")?e:D(a)}function D(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function R(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://w.soundcloud.com/player/api.js",p="SC",h=function(a){U(r,a);var e=N(r);function r(){var t;T(this,r);for(var o=arguments.length,l=new Array(o),m=0;m<o;m++)l[m]=arguments[m];return t=e.call.apply(e,[this].concat(l)),R(D(t),"callPlayer",f.callPlayer),R(D(t),"duration",null),R(D(t),"currentTime",null),R(D(t),"fractionLoaded",null),R(D(t),"mute",function(){t.setVolume(0)}),R(D(t),"unmute",function(){t.props.volume!==null&&t.setVolume(t.props.volume)}),R(D(t),"ref",function(c){t.iframe=c}),t}return q(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o,l){var m=this;(0,f.getSDK)(V,p).then(function(c){if(m.iframe){var P=c.Widget.Events,S=P.PLAY,v=P.PLAY_PROGRESS,y=P.PAUSE,g=P.FINISH,d=P.ERROR;l||(m.player=c.Widget(m.iframe),m.player.bind(S,m.props.onPlay),m.player.bind(y,function(){var s=m.duration-m.currentTime;s<.05||m.props.onPause()}),m.player.bind(v,function(s){m.currentTime=s.currentPosition/1e3,m.fractionLoaded=s.loadedProgress}),m.player.bind(g,function(){return m.props.onEnded()}),m.player.bind(d,function(s){return m.props.onError(s)})),m.player.load(o,_(_({},m.props.config.options),{},{callback:function(){m.player.getDuration(function(b){m.duration=b/1e3,m.props.onReady()})}}))}})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(o){this.callPlayer("seekTo",o*1e3)}},{key:"setVolume",value:function(o){this.callPlayer("setVolume",o*100)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.fractionLoaded*this.duration}},{key:"render",value:function(){var o=this.props.display,l={width:"100%",height:"100%",display:o};return u.default.createElement("iframe",{ref:this.ref,src:"https://w.soundcloud.com/player/?url=".concat(encodeURIComponent(this.props.url)),style:l,frameBorder:0,allow:"autoplay"})}}]),r}(u.Component);n.default=h,R(h,"displayName","SoundCloud"),R(h,"canPlay",O.canPlay.soundcloud),R(h,"loopOnEnded",!0)}(Me)),Me}var ke={},ut;function Gr(){return ut||(ut=1,function(n){function i(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(r){return typeof r}:i=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return w=function(){return a},a}function E(a){if(a&&a.__esModule)return a;if(a===null||i(a)!=="object"&&typeof a!="function")return{default:a};var e=w();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var l=t?Object.getOwnPropertyDescriptor(a,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=a[o]}return r.default=a,e&&e.set(a,r),r}function L(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,t)}return r}function _(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(t){R(a,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(r,t))})}return a}function T(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function k(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function q(a,e,r){return e&&k(a.prototype,e),r&&k(a,r),a}function U(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),e&&C(a,e)}function C(a,e){return C=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},C(a,e)}function N(a){var e=M();return function(){var t=A(a),o;if(e){var l=A(this).constructor;o=Reflect.construct(t,arguments,l)}else o=t.apply(this,arguments);return W(this,o)}}function W(a,e){return e&&(i(e)==="object"||typeof e=="function")?e:D(a)}function D(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function R(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://player.vimeo.com/api/player.js",p="Vimeo",h=function(a){U(r,a);var e=N(r);function r(){var t;T(this,r);for(var o=arguments.length,l=new Array(o),m=0;m<o;m++)l[m]=arguments[m];return t=e.call.apply(e,[this].concat(l)),R(D(t),"callPlayer",f.callPlayer),R(D(t),"duration",null),R(D(t),"currentTime",null),R(D(t),"secondsLoaded",null),R(D(t),"mute",function(){t.setMuted(!0)}),R(D(t),"unmute",function(){t.setMuted(!1)}),R(D(t),"ref",function(c){t.container=c}),t}return q(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o){var l=this;this.duration=null,(0,f.getSDK)(V,p).then(function(m){if(l.container){var c=l.props.config,P=c.playerOptions,S=c.title;l.player=new m.Player(l.container,_({url:o,autoplay:l.props.playing,muted:l.props.muted,loop:l.props.loop,playsinline:l.props.playsinline,controls:l.props.controls},P)),l.player.ready().then(function(){var v=l.container.querySelector("iframe");v.style.width="100%",v.style.height="100%",S&&(v.title=S)}).catch(l.props.onError),l.player.on("loaded",function(){l.props.onReady(),l.refreshDuration()}),l.player.on("play",function(){l.props.onPlay(),l.refreshDuration()}),l.player.on("pause",l.props.onPause),l.player.on("seeked",function(v){return l.props.onSeek(v.seconds)}),l.player.on("ended",l.props.onEnded),l.player.on("error",l.props.onError),l.player.on("timeupdate",function(v){var y=v.seconds;l.currentTime=y}),l.player.on("progress",function(v){var y=v.seconds;l.secondsLoaded=y}),l.player.on("bufferstart",l.props.onBuffer),l.player.on("bufferend",l.props.onBufferEnd),l.player.on("playbackratechange",function(v){return l.props.onPlaybackRateChange(v.playbackRate)})}},this.props.onError)}},{key:"refreshDuration",value:function(){var o=this;this.player.getDuration().then(function(l){o.duration=l})}},{key:"play",value:function(){var o=this.callPlayer("play");o&&o.catch(this.props.onError)}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("unload")}},{key:"seekTo",value:function(o){this.callPlayer("setCurrentTime",o)}},{key:"setVolume",value:function(o){this.callPlayer("setVolume",o)}},{key:"setMuted",value:function(o){this.callPlayer("setMuted",o)}},{key:"setLoop",value:function(o){this.callPlayer("setLoop",o)}},{key:"setPlaybackRate",value:function(o){this.callPlayer("setPlaybackRate",o)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var o=this.props.display,l={width:"100%",height:"100%",overflow:"hidden",display:o};return u.default.createElement("div",{key:this.props.url,ref:this.ref,style:l})}}]),r}(u.Component);n.default=h,R(h,"displayName","Vimeo"),R(h,"canPlay",O.canPlay.vimeo),R(h,"forceLoad",!0)}(ke)),ke}var Ie={},lt;function Xr(){return lt||(lt=1,function(n){function i(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(t){return typeof t}:i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(e===null||i(e)!=="object"&&typeof e!="function")return{default:e};var r=w();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var m=o?Object.getOwnPropertyDescriptor(e,l):null;m&&(m.get||m.set)?Object.defineProperty(t,l,m):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t}function L(){return L=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},L.apply(this,arguments)}function _(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function T(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,r,t){return r&&T(e.prototype,r),t&&T(e,t),e}function q(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&U(e,r)}function U(e,r){return U=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},U(e,r)}function C(e){var r=D();return function(){var o=M(e),l;if(r){var m=M(this).constructor;l=Reflect.construct(o,arguments,m)}else l=o.apply(this,arguments);return N(this,l)}}function N(e,r){return r&&(i(r)==="object"||typeof r=="function")?r:W(e)}function W(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},M(e)}function A(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var R="https://connect.facebook.net/en_US/sdk.js",V="FB",p="fbAsyncInit",h="facebook-player-",a=function(e){q(t,e);var r=C(t);function t(){var o;_(this,t);for(var l=arguments.length,m=new Array(l),c=0;c<l;c++)m[c]=arguments[c];return o=r.call.apply(r,[this].concat(m)),A(W(o),"callPlayer",f.callPlayer),A(W(o),"playerID",o.props.config.playerId||"".concat(h).concat((0,f.randomString)())),A(W(o),"mute",function(){o.callPlayer("mute")}),A(W(o),"unmute",function(){o.callPlayer("unmute")}),o}return k(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(l,m){var c=this;if(m){(0,f.getSDK)(R,V,p).then(function(P){return P.XFBML.parse()});return}(0,f.getSDK)(R,V,p).then(function(P){P.init({appId:c.props.config.appId,xfbml:!0,version:c.props.config.version}),P.Event.subscribe("xfbml.render",function(S){c.props.onLoaded()}),P.Event.subscribe("xfbml.ready",function(S){S.type==="video"&&S.id===c.playerID&&(c.player=S.instance,c.player.subscribe("startedPlaying",c.props.onPlay),c.player.subscribe("paused",c.props.onPause),c.player.subscribe("finishedPlaying",c.props.onEnded),c.player.subscribe("startedBuffering",c.props.onBuffer),c.player.subscribe("finishedBuffering",c.props.onBufferEnd),c.player.subscribe("error",c.props.onError),c.props.muted?c.callPlayer("mute"):c.callPlayer("unmute"),c.props.onReady(),document.getElementById(c.playerID).querySelector("iframe").style.visibility="visible")})})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(l){this.callPlayer("seek",l)}},{key:"setVolume",value:function(l){this.callPlayer("setVolume",l)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentPosition")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var l=this.props.config.attributes,m={width:"100%",height:"100%"};return u.default.createElement("div",L({style:m,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false"},l))}}]),t}(u.Component);n.default=a,A(a,"displayName","Facebook"),A(a,"canPlay",O.canPlay.facebook),A(a,"loopOnEnded",!0)}(Ie)),Ie}var Ce={},ct;function Zr(){return ct||(ct=1,function(n){function i(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(a){return typeof a}:i=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(p)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return w=function(){return p},p}function E(p){if(p&&p.__esModule)return p;if(p===null||i(p)!=="object"&&typeof p!="function")return{default:p};var h=w();if(h&&h.has(p))return h.get(p);var a={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in p)if(Object.prototype.hasOwnProperty.call(p,r)){var t=e?Object.getOwnPropertyDescriptor(p,r):null;t&&(t.get||t.set)?Object.defineProperty(a,r,t):a[r]=p[r]}return a.default=p,h&&h.set(p,a),a}function L(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function _(p,h){for(var a=0;a<h.length;a++){var e=h[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(p,e.key,e)}}function T(p,h,a){return h&&_(p.prototype,h),a&&_(p,a),p}function k(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),h&&q(p,h)}function q(p,h){return q=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},q(p,h)}function U(p){var h=W();return function(){var e=D(p),r;if(h){var t=D(this).constructor;r=Reflect.construct(e,arguments,t)}else r=e.apply(this,arguments);return C(this,r)}}function C(p,h){return h&&(i(h)==="object"||typeof h=="function")?h:N(p)}function N(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(p){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},D(p)}function M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="https://cdn.embed.ly/player-0.1.0.min.js",R="playerjs",V=function(p){k(a,p);var h=U(a);function a(){var e;L(this,a);for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return e=h.call.apply(h,[this].concat(t)),M(N(e),"callPlayer",f.callPlayer),M(N(e),"duration",null),M(N(e),"currentTime",null),M(N(e),"secondsLoaded",null),M(N(e),"mute",function(){e.callPlayer("mute")}),M(N(e),"unmute",function(){e.callPlayer("unmute")}),M(N(e),"ref",function(l){e.iframe=l}),e}return T(a,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(r){var t=this;(0,f.getSDK)(A,R).then(function(o){t.iframe&&(t.player=new o.Player(t.iframe),t.player.setLoop(t.props.loop),t.player.on("ready",t.props.onReady),t.player.on("play",t.props.onPlay),t.player.on("pause",t.props.onPause),t.player.on("seeked",t.props.onSeek),t.player.on("ended",t.props.onEnded),t.player.on("error",t.props.onError),t.player.on("timeupdate",function(l){var m=l.duration,c=l.seconds;t.duration=m,t.currentTime=c}),t.player.on("buffered",function(l){var m=l.percent;t.duration&&(t.secondsLoaded=t.duration*m)}),t.props.muted&&t.player.mute())},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(r){this.callPlayer("setCurrentTime",r)}},{key:"setVolume",value:function(r){this.callPlayer("setVolume",r*100)}},{key:"setLoop",value:function(r){this.callPlayer("setLoop",r)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var r=this.props.url.match(O.MATCH_URL_STREAMABLE)[1],t={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(r),frameBorder:"0",scrolling:"no",style:t,allow:"encrypted-media; autoplay; fullscreen;"})}}]),a}(u.Component);n.default=V,M(V,"displayName","Streamable"),M(V,"canPlay",O.canPlay.streamable)}(Ce)),Ce}var Ue={},ft;function Qr(){return ft||(ft=1,function(n){function i(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(t){return typeof t}:i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(e===null||i(e)!=="object"&&typeof e!="function")return{default:e};var r=w();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var m=o?Object.getOwnPropertyDescriptor(e,l):null;m&&(m.get||m.set)?Object.defineProperty(t,l,m):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,o)}return t}function _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?L(Object(t),!0).forEach(function(o){R(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function T(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function k(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,r,t){return r&&k(e.prototype,r),t&&k(e,t),e}function U(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&C(e,r)}function C(e,r){return C=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},C(e,r)}function N(e){var r=M();return function(){var o=A(e),l;if(r){var m=A(this).constructor;l=Reflect.construct(o,arguments,m)}else l=o.apply(this,arguments);return W(this,l)}}function W(e,r){return r&&(i(r)==="object"||typeof r=="function")?r:D(e)}function D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function R(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://fast.wistia.com/assets/external/E-v1.js",p="Wistia",h="wistia-player-",a=function(e){U(t,e);var r=N(t);function t(){var o;T(this,t);for(var l=arguments.length,m=new Array(l),c=0;c<l;c++)m[c]=arguments[c];return o=r.call.apply(r,[this].concat(m)),R(D(o),"callPlayer",f.callPlayer),R(D(o),"playerID",o.props.config.playerId||"".concat(h).concat((0,f.randomString)())),R(D(o),"onPlay",function(){var P;return(P=o.props).onPlay.apply(P,arguments)}),R(D(o),"onPause",function(){var P;return(P=o.props).onPause.apply(P,arguments)}),R(D(o),"onSeek",function(){var P;return(P=o.props).onSeek.apply(P,arguments)}),R(D(o),"onEnded",function(){var P;return(P=o.props).onEnded.apply(P,arguments)}),R(D(o),"onPlaybackRateChange",function(){var P;return(P=o.props).onPlaybackRateChange.apply(P,arguments)}),R(D(o),"mute",function(){o.callPlayer("mute")}),R(D(o),"unmute",function(){o.callPlayer("unmute")}),o}return q(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(l){var m=this,c=this.props,P=c.playing,S=c.muted,v=c.controls,y=c.onReady,g=c.config,d=c.onError;(0,f.getSDK)(V,p).then(function(s){g.customControls&&g.customControls.forEach(function(b){return s.defineControl(b)}),window._wq=window._wq||[],window._wq.push({id:m.playerID,options:_({autoPlay:P,silentAutoPlay:"allow",muted:S,controlsVisibleOnLoad:v,fullscreenButton:v,playbar:v,playbackRateControl:v,qualityControl:v,volumeControl:v,settingsControl:v,smallPlayButton:v},g.options),onReady:function(j){m.player=j,m.unbind(),m.player.bind("play",m.onPlay),m.player.bind("pause",m.onPause),m.player.bind("seek",m.onSeek),m.player.bind("end",m.onEnded),m.player.bind("playbackratechange",m.onPlaybackRateChange),y()}})},d)}},{key:"unbind",value:function(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.unbind(),this.callPlayer("remove")}},{key:"seekTo",value:function(l){this.callPlayer("time",l)}},{key:"setVolume",value:function(l){this.callPlayer("volume",l)}},{key:"setPlaybackRate",value:function(l){this.callPlayer("playbackRate",l)}},{key:"getDuration",value:function(){return this.callPlayer("duration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("time")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var l=this.props.url,m=l&&l.match(O.MATCH_URL_WISTIA)[1],c="wistia_embed wistia_async_".concat(m),P={width:"100%",height:"100%"};return u.default.createElement("div",{id:this.playerID,key:m,className:c,style:P})}}]),t}(u.Component);n.default=a,R(a,"displayName","Wistia"),R(a,"canPlay",O.canPlay.wistia),R(a,"loopOnEnded",!0)}(Ue)),Ue}var Ne={},st;function Jr(){return st||(st=1,function(n){function i(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(t){return typeof t}:i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(e===null||i(e)!=="object"&&typeof e!="function")return{default:e};var r=w();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var m=o?Object.getOwnPropertyDescriptor(e,l):null;m&&(m.get||m.set)?Object.defineProperty(t,l,m):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,o)}return t}function _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?L(Object(t),!0).forEach(function(o){R(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function T(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function k(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,r,t){return r&&k(e.prototype,r),t&&k(e,t),e}function U(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&C(e,r)}function C(e,r){return C=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},C(e,r)}function N(e){var r=M();return function(){var o=A(e),l;if(r){var m=A(this).constructor;l=Reflect.construct(o,arguments,m)}else l=o.apply(this,arguments);return W(this,l)}}function W(e,r){return r&&(i(r)==="object"||typeof r=="function")?r:D(e)}function D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function R(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://player.twitch.tv/js/embed/v1.js",p="Twitch",h="twitch-player-",a=function(e){U(t,e);var r=N(t);function t(){var o;T(this,t);for(var l=arguments.length,m=new Array(l),c=0;c<l;c++)m[c]=arguments[c];return o=r.call.apply(r,[this].concat(m)),R(D(o),"callPlayer",f.callPlayer),R(D(o),"playerID",o.props.config.playerId||"".concat(h).concat((0,f.randomString)())),R(D(o),"mute",function(){o.callPlayer("setMuted",!0)}),R(D(o),"unmute",function(){o.callPlayer("setMuted",!1)}),o}return q(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(l,m){var c=this,P=this.props,S=P.playsinline,v=P.onError,y=P.config,g=P.controls,d=O.MATCH_URL_TWITCH_CHANNEL.test(l),s=d?l.match(O.MATCH_URL_TWITCH_CHANNEL)[1]:l.match(O.MATCH_URL_TWITCH_VIDEO)[1];if(m){d?this.player.setChannel(s):this.player.setVideo("v"+s);return}(0,f.getSDK)(V,p).then(function(b){c.player=new b.Player(c.playerID,_({video:d?"":s,channel:d?s:"",height:"100%",width:"100%",playsinline:S,autoplay:c.props.playing,muted:c.props.muted,controls:d?!0:g,time:(0,f.parseStartTime)(l)},y.options));var j=b.Player,I=j.READY,K=j.PLAYING,F=j.PAUSE,x=j.ENDED,B=j.ONLINE,G=j.OFFLINE,J=j.SEEK;c.player.addEventListener(I,c.props.onReady),c.player.addEventListener(K,c.props.onPlay),c.player.addEventListener(F,c.props.onPause),c.player.addEventListener(x,c.props.onEnded),c.player.addEventListener(J,c.props.onSeek),c.player.addEventListener(B,c.props.onLoaded),c.player.addEventListener(G,c.props.onLoaded)},v)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){this.callPlayer("pause")}},{key:"seekTo",value:function(l){this.callPlayer("seek",l)}},{key:"setVolume",value:function(l){this.callPlayer("setVolume",l)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var l={width:"100%",height:"100%"};return u.default.createElement("div",{style:l,id:this.playerID})}}]),t}(u.Component);n.default=a,R(a,"displayName","Twitch"),R(a,"canPlay",O.canPlay.twitch),R(a,"loopOnEnded",!0)}(Ne)),Ne}var We={},pt;function en(){return pt||(pt=1,function(n){function i(c){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(S){return typeof S}:i=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},i(c)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var c=new WeakMap;return w=function(){return c},c}function E(c){if(c&&c.__esModule)return c;if(c===null||i(c)!=="object"&&typeof c!="function")return{default:c};var P=w();if(P&&P.has(c))return P.get(c);var S={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in c)if(Object.prototype.hasOwnProperty.call(c,y)){var g=v?Object.getOwnPropertyDescriptor(c,y):null;g&&(g.get||g.set)?Object.defineProperty(S,y,g):S[y]=c[y]}return S.default=c,P&&P.set(c,S),S}function L(c,P){var S=Object.keys(c);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);P&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(c,y).enumerable})),S.push.apply(S,v)}return S}function _(c){for(var P=1;P<arguments.length;P++){var S=arguments[P]!=null?arguments[P]:{};P%2?L(Object(S),!0).forEach(function(v){r(c,v,S[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(S)):L(Object(S)).forEach(function(v){Object.defineProperty(c,v,Object.getOwnPropertyDescriptor(S,v))})}return c}function T(c,P){return N(c)||C(c,P)||q(c,P)||k()}function k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q(c,P){if(c){if(typeof c=="string")return U(c,P);var S=Object.prototype.toString.call(c).slice(8,-1);if(S==="Object"&&c.constructor&&(S=c.constructor.name),S==="Map"||S==="Set")return Array.from(c);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return U(c,P)}}function U(c,P){(P==null||P>c.length)&&(P=c.length);for(var S=0,v=new Array(P);S<P;S++)v[S]=c[S];return v}function C(c,P){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(c)))){var S=[],v=!0,y=!1,g=void 0;try{for(var d=c[Symbol.iterator](),s;!(v=(s=d.next()).done)&&(S.push(s.value),!(P&&S.length===P));v=!0);}catch(b){y=!0,g=b}finally{try{!v&&d.return!=null&&d.return()}finally{if(y)throw g}}return S}}function N(c){if(Array.isArray(c))return c}function W(c,P){if(!(c instanceof P))throw new TypeError("Cannot call a class as a function")}function D(c,P){for(var S=0;S<P.length;S++){var v=P[S];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}function M(c,P,S){return P&&D(c.prototype,P),S&&D(c,S),c}function A(c,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(P&&P.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),P&&R(c,P)}function R(c,P){return R=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},R(c,P)}function V(c){var P=a();return function(){var v=e(c),y;if(P){var g=e(this).constructor;y=Reflect.construct(v,arguments,g)}else y=v.apply(this,arguments);return p(this,y)}}function p(c,P){return P&&(i(P)==="object"||typeof P=="function")?P:h(c)}function h(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function e(c){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)},e(c)}function r(c,P,S){return P in c?Object.defineProperty(c,P,{value:S,enumerable:!0,configurable:!0,writable:!0}):c[P]=S,c}var t="https://api.dmcdn.net/all.js",o="DM",l="dmAsyncInit",m=function(c){A(S,c);var P=V(S);function S(){var v;W(this,S);for(var y=arguments.length,g=new Array(y),d=0;d<y;d++)g[d]=arguments[d];return v=P.call.apply(P,[this].concat(g)),r(h(v),"callPlayer",f.callPlayer),r(h(v),"onDurationChange",function(){var s=v.getDuration();v.props.onDuration(s)}),r(h(v),"mute",function(){v.callPlayer("setMuted",!0)}),r(h(v),"unmute",function(){v.callPlayer("setMuted",!1)}),r(h(v),"ref",function(s){v.container=s}),v}return M(S,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(y){var g=this,d=this.props,s=d.controls,b=d.config,j=d.onError,I=d.playing,K=y.match(O.MATCH_URL_DAILYMOTION),F=T(K,2),x=F[1];if(this.player){this.player.load(x,{start:(0,f.parseStartTime)(y),autoplay:I});return}(0,f.getSDK)(t,o,l,function(B){return B.player}).then(function(B){if(g.container){var G=B.player;g.player=new G(g.container,{width:"100%",height:"100%",video:x,params:_({controls:s,autoplay:g.props.playing,mute:g.props.muted,start:(0,f.parseStartTime)(y),origin:window.location.origin},b.params),events:{apiready:g.props.onReady,seeked:function(){return g.props.onSeek(g.player.currentTime)},video_end:g.props.onEnded,durationchange:g.onDurationChange,pause:g.props.onPause,playing:g.props.onPlay,waiting:g.props.onBuffer,error:function(ne){return j(ne)}}})}},j)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(y){this.callPlayer("seek",y)}},{key:"setVolume",value:function(y){this.callPlayer("setVolume",y)}},{key:"getDuration",value:function(){return this.player.duration||null}},{key:"getCurrentTime",value:function(){return this.player.currentTime}},{key:"getSecondsLoaded",value:function(){return this.player.bufferedTime}},{key:"render",value:function(){var y=this.props.display,g={width:"100%",height:"100%",display:y};return u.default.createElement("div",{style:g},u.default.createElement("div",{ref:this.ref}))}}]),S}(u.Component);n.default=m,r(m,"displayName","DailyMotion"),r(m,"canPlay",O.canPlay.dailymotion),r(m,"loopOnEnded",!0)}(We)),We}var Ve={},yt;function tn(){return yt||(yt=1,function(n){function i(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(r){return typeof r}:i=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return w=function(){return a},a}function E(a){if(a&&a.__esModule)return a;if(a===null||i(a)!=="object"&&typeof a!="function")return{default:a};var e=w();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var l=t?Object.getOwnPropertyDescriptor(a,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=a[o]}return r.default=a,e&&e.set(a,r),r}function L(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(a,o).enumerable})),r.push.apply(r,t)}return r}function _(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(t){R(a,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(r,t))})}return a}function T(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function k(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function q(a,e,r){return e&&k(a.prototype,e),r&&k(a,r),a}function U(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),e&&C(a,e)}function C(a,e){return C=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},C(a,e)}function N(a){var e=M();return function(){var t=A(a),o;if(e){var l=A(this).constructor;o=Reflect.construct(t,arguments,l)}else o=t.apply(this,arguments);return W(this,o)}}function W(a,e){return e&&(i(e)==="object"||typeof e=="function")?e:D(a)}function D(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function R(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://widget.mixcloud.com/media/js/widgetApi.js",p="Mixcloud",h=function(a){U(r,a);var e=N(r);function r(){var t;T(this,r);for(var o=arguments.length,l=new Array(o),m=0;m<o;m++)l[m]=arguments[m];return t=e.call.apply(e,[this].concat(l)),R(D(t),"callPlayer",f.callPlayer),R(D(t),"duration",null),R(D(t),"currentTime",null),R(D(t),"secondsLoaded",null),R(D(t),"mute",function(){}),R(D(t),"unmute",function(){}),R(D(t),"ref",function(c){t.iframe=c}),t}return q(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o){var l=this;(0,f.getSDK)(V,p).then(function(m){l.player=m.PlayerWidget(l.iframe),l.player.ready.then(function(){l.player.events.play.on(l.props.onPlay),l.player.events.pause.on(l.props.onPause),l.player.events.ended.on(l.props.onEnded),l.player.events.error.on(l.props.error),l.player.events.progress.on(function(c,P){l.currentTime=c,l.duration=P}),l.props.onReady()})},this.props.onError)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(o){this.callPlayer("seek",o)}},{key:"setVolume",value:function(o){}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var o=this.props,l=o.url,m=o.config,c=l.match(O.MATCH_URL_MIXCLOUD)[1],P={width:"100%",height:"100%"},S=(0,f.queryString)(_(_({},m.options),{},{feed:"/".concat(c,"/")}));return u.default.createElement("iframe",{key:c,ref:this.ref,style:P,src:"https://www.mixcloud.com/widget/iframe/?".concat(S),frameBorder:"0",allow:"autoplay"})}}]),r}(u.Component);n.default=h,R(h,"displayName","Mixcloud"),R(h,"canPlay",O.canPlay.mixcloud),R(h,"loopOnEnded",!0)}(Ve)),Ve}var je={},dt;function rn(){return dt||(dt=1,function(n){function i(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(t){return typeof t}:i=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return w=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(e===null||i(e)!=="object"&&typeof e!="function")return{default:e};var r=w();if(r&&r.has(e))return r.get(e);var t={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var m=o?Object.getOwnPropertyDescriptor(e,l):null;m&&(m.get||m.set)?Object.defineProperty(t,l,m):t[l]=e[l]}return t.default=e,r&&r.set(e,t),t}function L(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),t.push.apply(t,o)}return t}function _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?L(Object(t),!0).forEach(function(o){R(e,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})}return e}function T(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function k(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,r,t){return r&&k(e.prototype,r),t&&k(e,t),e}function U(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&C(e,r)}function C(e,r){return C=Object.setPrototypeOf||function(o,l){return o.__proto__=l,o},C(e,r)}function N(e){var r=M();return function(){var o=A(e),l;if(r){var m=A(this).constructor;l=Reflect.construct(o,arguments,m)}else l=o.apply(this,arguments);return W(this,l)}}function W(e,r){return r&&(i(r)==="object"||typeof r=="function")?r:D(e)}function D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function R(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://play.vidyard.com/embed/v4.js",p="VidyardV4",h="onVidyardAPI",a=function(e){U(t,e);var r=N(t);function t(){var o;T(this,t);for(var l=arguments.length,m=new Array(l),c=0;c<l;c++)m[c]=arguments[c];return o=r.call.apply(r,[this].concat(m)),R(D(o),"callPlayer",f.callPlayer),R(D(o),"mute",function(){o.setVolume(0)}),R(D(o),"unmute",function(){o.props.volume!==null&&o.setVolume(o.props.volume)}),R(D(o),"ref",function(P){o.container=P}),o}return q(t,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(l){var m=this,c=this.props,P=c.playing,S=c.config,v=c.onError,y=c.onDuration,g=l&&l.match(O.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,f.getSDK)(V,p,h).then(function(d){m.container&&(d.api.addReadyListener(function(s,b){m.player||(m.player=b,m.player.on("ready",m.props.onReady),m.player.on("play",m.props.onPlay),m.player.on("pause",m.props.onPause),m.player.on("seek",m.props.onSeek),m.player.on("playerComplete",m.props.onEnded))},g),d.api.renderPlayer(_({uuid:g,container:m.container,autoplay:P?1:0},S.options)),d.api.getPlayerMetadata(g).then(function(s){m.duration=s.length_in_seconds,y(s.length_in_seconds)}))},v)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){window.VidyardV4.api.destroyPlayer(this.player)}},{key:"seekTo",value:function(l){this.callPlayer("seek",l)}},{key:"setVolume",value:function(l){this.callPlayer("setVolume",l)}},{key:"setPlaybackRate",value:function(l){this.callPlayer("setPlaybackSpeed",l)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.callPlayer("currentTime")}},{key:"getSecondsLoaded",value:function(){return null}},{key:"render",value:function(){var l=this.props.display,m={width:"100%",height:"100%",display:l};return u.default.createElement("div",{style:m},u.default.createElement("div",{ref:this.ref}))}}]),t}(u.Component);n.default=a,R(a,"displayName","Vidyard"),R(a,"canPlay",O.canPlay.vidyard)}(je)),je}var He={},ht;function nn(){return ht||(ht=1,function(n){function i(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(a){return typeof a}:i=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(p)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return w=function(){return p},p}function E(p){if(p&&p.__esModule)return p;if(p===null||i(p)!=="object"&&typeof p!="function")return{default:p};var h=w();if(h&&h.has(p))return h.get(p);var a={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in p)if(Object.prototype.hasOwnProperty.call(p,r)){var t=e?Object.getOwnPropertyDescriptor(p,r):null;t&&(t.get||t.set)?Object.defineProperty(a,r,t):a[r]=p[r]}return a.default=p,h&&h.set(p,a),a}function L(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function _(p,h){for(var a=0;a<h.length;a++){var e=h[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(p,e.key,e)}}function T(p,h,a){return h&&_(p.prototype,h),a&&_(p,a),p}function k(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),h&&q(p,h)}function q(p,h){return q=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},q(p,h)}function U(p){var h=W();return function(){var e=D(p),r;if(h){var t=D(this).constructor;r=Reflect.construct(e,arguments,t)}else r=e.apply(this,arguments);return C(this,r)}}function C(p,h){return h&&(i(h)==="object"||typeof h=="function")?h:N(p)}function N(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(p){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},D(p)}function M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="https://cdn.embed.ly/player-0.1.0.min.js",R="playerjs",V=function(p){k(a,p);var h=U(a);function a(){var e;L(this,a);for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return e=h.call.apply(h,[this].concat(t)),M(N(e),"callPlayer",f.callPlayer),M(N(e),"duration",null),M(N(e),"currentTime",null),M(N(e),"secondsLoaded",null),M(N(e),"mute",function(){e.callPlayer("mute")}),M(N(e),"unmute",function(){e.callPlayer("unmute")}),M(N(e),"ref",function(l){e.iframe=l}),e}return T(a,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(r){var t=this;(0,f.getSDK)(A,R).then(function(o){t.iframe&&(t.player=new o.Player(t.iframe),t.player.on("ready",function(){setTimeout(function(){t.player.isReady=!0,t.player.setLoop(t.props.loop),t.props.muted&&t.player.mute(),t.addListeners(t.player,t.props),t.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(r,t){var o=this;r.on("play",t.onPlay),r.on("pause",t.onPause),r.on("ended",t.onEnded),r.on("error",t.onError),r.on("timeupdate",function(l){var m=l.duration,c=l.seconds;o.duration=m,o.currentTime=c})}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(r){this.callPlayer("setCurrentTime",r)}},{key:"setVolume",value:function(r){this.callPlayer("setVolume",r)}},{key:"setLoop",value:function(r){this.callPlayer("setLoop",r)}},{key:"getDuration",value:function(){return this.duration}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"getSecondsLoaded",value:function(){return this.secondsLoaded}},{key:"render",value:function(){var r={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}]),a}(u.Component);n.default=V,M(V,"displayName","Kaltura"),M(V,"canPlay",O.canPlay.kaltura)}(He)),He}var qe={},vt;function an(){return vt||(vt=1,function(n){function i(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(g){return typeof g}:i=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},i(v)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=E(Q),f=$,O=H;function w(){if(typeof WeakMap!="function")return null;var v=new WeakMap;return w=function(){return v},v}function E(v){if(v&&v.__esModule)return v;if(v===null||i(v)!=="object"&&typeof v!="function")return{default:v};var y=w();if(y&&y.has(v))return y.get(v);var g={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in v)if(Object.prototype.hasOwnProperty.call(v,s)){var b=d?Object.getOwnPropertyDescriptor(v,s):null;b&&(b.get||b.set)?Object.defineProperty(g,s,b):g[s]=v[s]}return g.default=v,y&&y.set(v,g),g}function L(){return L=Object.assign||function(v){for(var y=1;y<arguments.length;y++){var g=arguments[y];for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])}return v},L.apply(this,arguments)}function _(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function T(v,y){for(var g=0;g<y.length;g++){var d=y[g];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d)}}function k(v,y,g){return y&&T(v.prototype,y),g&&T(v,g),v}function q(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),y&&U(v,y)}function U(v,y){return U=Object.setPrototypeOf||function(d,s){return d.__proto__=s,d},U(v,y)}function C(v){var y=D();return function(){var d=M(v),s;if(y){var b=M(this).constructor;s=Reflect.construct(d,arguments,b)}else s=d.apply(this,arguments);return N(this,s)}}function N(v,y){return y&&(i(y)==="object"||typeof y=="function")?y:W(v)}function W(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(v){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},M(v)}function A(v,y,g){return y in v?Object.defineProperty(v,y,{value:g,enumerable:!0,configurable:!0,writable:!0}):v[y]=g,v}var R=typeof navigator<"u",V=R&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,p=R&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||V)&&!window.MSStream,h=R&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,a="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",e="Hls",r="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",t="dashjs",o="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",l="flvjs",m=/www\.dropbox\.com\/.+/,c=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,P="https://videodelivery.net/{id}/manifest/video.m3u8",S=function(v){q(g,v);var y=C(g);function g(){var d;_(this,g);for(var s=arguments.length,b=new Array(s),j=0;j<s;j++)b[j]=arguments[j];return d=y.call.apply(y,[this].concat(b)),A(W(d),"onReady",function(){var I;return(I=d.props).onReady.apply(I,arguments)}),A(W(d),"onPlay",function(){var I;return(I=d.props).onPlay.apply(I,arguments)}),A(W(d),"onBuffer",function(){var I;return(I=d.props).onBuffer.apply(I,arguments)}),A(W(d),"onBufferEnd",function(){var I;return(I=d.props).onBufferEnd.apply(I,arguments)}),A(W(d),"onPause",function(){var I;return(I=d.props).onPause.apply(I,arguments)}),A(W(d),"onEnded",function(){var I;return(I=d.props).onEnded.apply(I,arguments)}),A(W(d),"onError",function(){var I;return(I=d.props).onError.apply(I,arguments)}),A(W(d),"onPlayBackRateChange",function(I){return d.props.onPlaybackRateChange(I.target.playbackRate)}),A(W(d),"onEnablePIP",function(){var I;return(I=d.props).onEnablePIP.apply(I,arguments)}),A(W(d),"onDisablePIP",function(I){var K=d.props,F=K.onDisablePIP,x=K.playing;F(I),x&&d.play()}),A(W(d),"onPresentationModeChange",function(I){if(d.player&&(0,f.supportsWebKitPresentationMode)(d.player)){var K=d.player.webkitPresentationMode;K==="picture-in-picture"?d.onEnablePIP(I):K==="inline"&&d.onDisablePIP(I)}}),A(W(d),"onSeek",function(I){d.props.onSeek(I.target.currentTime)}),A(W(d),"mute",function(){d.player.muted=!0}),A(W(d),"unmute",function(){d.player.muted=!1}),A(W(d),"renderSourceElement",function(I,K){return typeof I=="string"?u.default.createElement("source",{key:K,src:I}):u.default.createElement("source",L({key:K},I))}),A(W(d),"renderTrack",function(I,K){return u.default.createElement("track",L({key:K},I))}),A(W(d),"ref",function(I){d.player&&(d.prevPlayer=d.player),d.player=I}),d}return k(g,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),this.player.src=this.getSource(this.props.url),p&&this.player.load()}},{key:"componentDidUpdate",value:function(s){this.shouldUseAudio(this.props)!==this.shouldUseAudio(s)&&(this.removeListeners(this.prevPlayer,s.url),this.addListeners(this.player)),this.props.url!==s.url&&!(0,f.isMediaStream)(this.props.url)&&(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.player.src="",this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(s){var b=this.props,j=b.url,I=b.playsinline;s.addEventListener("play",this.onPlay),s.addEventListener("waiting",this.onBuffer),s.addEventListener("playing",this.onBufferEnd),s.addEventListener("pause",this.onPause),s.addEventListener("seeked",this.onSeek),s.addEventListener("ended",this.onEnded),s.addEventListener("error",this.onError),s.addEventListener("ratechange",this.onPlayBackRateChange),s.addEventListener("enterpictureinpicture",this.onEnablePIP),s.addEventListener("leavepictureinpicture",this.onDisablePIP),s.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(j)||s.addEventListener("canplay",this.onReady),I&&(s.setAttribute("playsinline",""),s.setAttribute("webkit-playsinline",""),s.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(s,b){s.removeEventListener("canplay",this.onReady),s.removeEventListener("play",this.onPlay),s.removeEventListener("waiting",this.onBuffer),s.removeEventListener("playing",this.onBufferEnd),s.removeEventListener("pause",this.onPause),s.removeEventListener("seeked",this.onSeek),s.removeEventListener("ended",this.onEnded),s.removeEventListener("error",this.onError),s.removeEventListener("ratechange",this.onPlayBackRateChange),s.removeEventListener("enterpictureinpicture",this.onEnablePIP),s.removeEventListener("leavepictureinpicture",this.onDisablePIP),s.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(b)||s.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(s){return s.config.forceVideo||s.config.attributes.poster?!1:O.AUDIO_EXTENSIONS.test(s.url)||s.config.forceAudio}},{key:"shouldUseHLS",value:function(s){return this.props.config.forceHLS||h&&this.props.config.forceSafariHLS?!0:p?!1:O.HLS_EXTENSIONS.test(s)||c.test(s)}},{key:"shouldUseDASH",value:function(s){return O.DASH_EXTENSIONS.test(s)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(s){return O.FLV_EXTENSIONS.test(s)||this.props.config.forceFLV}},{key:"load",value:function(s){var b=this,j=this.props.config,I=j.hlsVersion,K=j.hlsOptions,F=j.dashVersion,x=j.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(s)&&(0,f.getSDK)(a.replace("VERSION",I),e).then(function(B){if(b.hls=new B(K),b.hls.on(B.Events.MANIFEST_PARSED,function(){b.props.onReady()}),b.hls.on(B.Events.ERROR,function(J,ne){b.props.onError(J,ne,b.hls,B)}),c.test(s)){var G=s.match(c)[1];b.hls.loadSource(P.replace("{id}",G))}else b.hls.loadSource(s);b.hls.attachMedia(b.player),b.props.onLoaded()}),this.shouldUseDASH(s)&&(0,f.getSDK)(r.replace("VERSION",F),t).then(function(B){b.dash=B.MediaPlayer().create(),b.dash.initialize(b.player,s,b.props.playing),b.dash.on("error",b.props.onError),parseInt(F)<3?b.dash.getDebug().setLogToBrowserConsole(!1):b.dash.updateSettings({debug:{logLevel:B.Debug.LOG_LEVEL_NONE}}),b.props.onLoaded()}),this.shouldUseFLV(s)&&(0,f.getSDK)(o.replace("VERSION",x),l).then(function(B){b.flv=B.createPlayer({type:"flv",url:s}),b.flv.attachMediaElement(b.player),b.flv.on(B.Events.ERROR,function(G,J){b.props.onError(G,J,b.flv,B)}),b.flv.load(),b.props.onLoaded()}),s instanceof Array)this.player.load();else if((0,f.isMediaStream)(s))try{this.player.srcObject=s}catch{this.player.src=window.URL.createObjectURL(s)}}},{key:"play",value:function(){var s=this.player.play();s&&s.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(s){this.player.currentTime=s}},{key:"setVolume",value:function(s){this.player.volume=s}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,f.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(s){try{this.player.playbackRate=s}catch(b){this.props.onError(b)}}},{key:"getDuration",value:function(){if(!this.player)return null;var s=this.player,b=s.duration,j=s.seekable;return b===1/0&&j.length>0?j.end(j.length-1):b}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var s=this.player.buffered;if(s.length===0)return 0;var b=s.end(s.length-1),j=this.getDuration();return b>j?j:b}},{key:"getSource",value:function(s){var b=this.shouldUseHLS(s),j=this.shouldUseDASH(s),I=this.shouldUseFLV(s);if(!(s instanceof Array||(0,f.isMediaStream)(s)||b||j||I))return m.test(s)?s.replace("www.dropbox.com","dl.dropboxusercontent.com"):s}},{key:"render",value:function(){var s=this.props,b=s.url,j=s.playing,I=s.loop,K=s.controls,F=s.muted,x=s.config,B=s.width,G=s.height,J=this.shouldUseAudio(this.props),ne=J?"audio":"video",ce={width:B==="auto"?B:"100%",height:G==="auto"?G:"100%"};return u.default.createElement(ne,L({ref:this.ref,src:this.getSource(b),style:ce,preload:"auto",autoPlay:j||void 0,controls:K,muted:F,loop:I},x.attributes),b instanceof Array&&b.map(this.renderSourceElement),x.tracks.map(this.renderTrack))}}]),g}(u.Component);n.default=S,A(S,"displayName","FilePlayer"),A(S,"canPlay",O.canPlay.file)}(qe)),qe}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=Q,u=$,f=H;function O(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(k){return typeof k}:O=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},O(_)}function w(){if(typeof WeakMap!="function")return null;var _=new WeakMap;return w=function(){return _},_}function E(_){if(_&&_.__esModule)return _;if(_===null||O(_)!=="object"&&typeof _!="function")return{default:_};var T=w();if(T&&T.has(_))return T.get(_);var k={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var U in _)if(Object.prototype.hasOwnProperty.call(_,U)){var C=q?Object.getOwnPropertyDescriptor(_,U):null;C&&(C.get||C.set)?Object.defineProperty(k,U,C):k[U]=_[U]}return k.default=_,T&&T.set(_,k),k}var L=[{key:"youtube",name:"YouTube",canPlay:f.canPlay.youtube,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(zr())})})},{key:"soundcloud",name:"SoundCloud",canPlay:f.canPlay.soundcloud,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Yr())})})},{key:"vimeo",name:"Vimeo",canPlay:f.canPlay.vimeo,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Gr())})})},{key:"facebook",name:"Facebook",canPlay:f.canPlay.facebook,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Xr())})})},{key:"streamable",name:"Streamable",canPlay:f.canPlay.streamable,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Zr())})})},{key:"wistia",name:"Wistia",canPlay:f.canPlay.wistia,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Qr())})})},{key:"twitch",name:"Twitch",canPlay:f.canPlay.twitch,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(Jr())})})},{key:"dailymotion",name:"DailyMotion",canPlay:f.canPlay.dailymotion,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(en())})})},{key:"mixcloud",name:"Mixcloud",canPlay:f.canPlay.mixcloud,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(tn())})})},{key:"vidyard",name:"Vidyard",canPlay:f.canPlay.vidyard,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(rn())})})},{key:"kaltura",name:"Kaltura",canPlay:f.canPlay.kaltura,lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(nn())})})},{key:"file",name:"FilePlayer",canPlay:f.canPlay.file,canEnablePIP:function(T){return f.canPlay.file(T)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!f.AUDIO_EXTENSIONS.test(T)},lazyPlayer:(0,i.lazy)(function(){return Promise.resolve().then(function(){return E(an())})})}];n.default=L})(Rt);var Ee={},mt=Number.isNaN||function(i){return typeof i=="number"&&i!==i};function on(n,i){return!!(n===i||mt(n)&&mt(i))}function un(n,i){if(n.length!==i.length)return!1;for(var u=0;u<n.length;u++)if(!on(n[u],i[u]))return!1;return!0}function ln(n,i){i===void 0&&(i=un);var u,f=[],O,w=!1;function E(){for(var L=[],_=0;_<arguments.length;_++)L[_]=arguments[_];return w&&u===this&&i(L,f)||(O=n.apply(this,L),w=!0,u=this,f=L),O}return E}const cn=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),fn=nr(cn);var sn=typeof Element<"u",pn=typeof Map=="function",yn=typeof Set=="function",dn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function we(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var u,f,O;if(Array.isArray(n)){if(u=n.length,u!=i.length)return!1;for(f=u;f--!==0;)if(!we(n[f],i[f]))return!1;return!0}var w;if(pn&&n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(w=n.entries();!(f=w.next()).done;)if(!i.has(f.value[0]))return!1;for(w=n.entries();!(f=w.next()).done;)if(!we(f.value[1],i.get(f.value[0])))return!1;return!0}if(yn&&n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(w=n.entries();!(f=w.next()).done;)if(!i.has(f.value[0]))return!1;return!0}if(dn&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(i)){if(u=n.length,u!=i.length)return!1;for(f=u;f--!==0;)if(n[f]!==i[f])return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf&&typeof n.valueOf=="function"&&typeof i.valueOf=="function")return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString&&typeof n.toString=="function"&&typeof i.toString=="function")return n.toString()===i.toString();if(O=Object.keys(n),u=O.length,u!==Object.keys(i).length)return!1;for(f=u;f--!==0;)if(!Object.prototype.hasOwnProperty.call(i,O[f]))return!1;if(sn&&n instanceof Element)return!1;for(f=u;f--!==0;)if(!((O[f]==="_owner"||O[f]==="__v"||O[f]==="__o")&&n.$$typeof)&&!we(n[O[f]],i[O[f]]))return!1;return!0}return n!==n&&i!==i}var Bt=function(i,u){try{return we(i,u)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},le={},Ye={},hn={get exports(){return Ye},set exports(n){Ye=n}},vn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mn=vn,gn=mn;function xt(){}function Ft(){}Ft.resetWarningCache=xt;var Pn=function(){function n(f,O,w,E,L,_){if(_!==gn){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}n.isRequired=n;function i(){return n}var u={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:Ft,resetWarningCache:xt};return u.PropTypes=u,u};hn.exports=Pn();Object.defineProperty(le,"__esModule",{value:!0});le.defaultProps=le.propTypes=void 0;var ie=_n(Ye);function _n(n){return n&&n.__esModule?n:{default:n}}var ee=ie.default.string,re=ie.default.bool,pe=ie.default.number,Ke=ie.default.array,ve=ie.default.oneOfType,ae=ie.default.shape,te=ie.default.object,Y=ie.default.func,gt=ie.default.node,On={url:ve([ee,Ke,te]),playing:re,loop:re,controls:re,volume:pe,muted:re,playbackRate:pe,width:ve([ee,pe]),height:ve([ee,pe]),style:te,progressInterval:pe,playsinline:re,pip:re,stopOnUnmount:re,light:ve([re,ee,te]),playIcon:gt,previewTabIndex:pe,fallback:gt,oEmbedUrl:ee,wrapper:ve([ee,Y,ae({render:Y.isRequired})]),config:ae({soundcloud:ae({options:te}),youtube:ae({playerVars:te,embedOptions:te,onUnstarted:Y}),facebook:ae({appId:ee,version:ee,playerId:ee,attributes:te}),dailymotion:ae({params:te}),vimeo:ae({playerOptions:te,title:ee}),file:ae({attributes:te,tracks:Ke,forceVideo:re,forceAudio:re,forceHLS:re,forceSafariHLS:re,forceDASH:re,forceFLV:re,hlsOptions:te,hlsVersion:ee,dashVersion:ee,flvVersion:ee}),wistia:ae({options:te,playerId:ee,customControls:Ke}),mixcloud:ae({options:te}),twitch:ae({options:te,playerId:ee}),vidyard:ae({options:te})}),onReady:Y,onStart:Y,onPlay:Y,onPause:Y,onBuffer:Y,onBufferEnd:Y,onEnded:Y,onError:Y,onDuration:Y,onSeek:Y,onPlaybackRateChange:Y,onProgress:Y,onClickPreview:Y,onEnablePIP:Y,onDisablePIP:Y};le.propTypes=On;var X=function(){},bn={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,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:X},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},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"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:X,onStart:X,onPlay:X,onPause:X,onBuffer:X,onBufferEnd:X,onEnded:X,onError:X,onDuration:X,onSeek:X,onPlaybackRateChange:X,onProgress:X,onClickPreview:X,onEnablePIP:X,onDisablePIP:X};le.defaultProps=bn;var zt={};(function(n){function i(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(r){return typeof r}:i=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},i(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=_(Q),f=E(Bt),O=le,w=$;function E(a){return a&&a.__esModule?a:{default:a}}function L(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return L=function(){return a},a}function _(a){if(a&&a.__esModule)return a;if(a===null||i(a)!=="object"&&typeof a!="function")return{default:a};var e=L();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var l=t?Object.getOwnPropertyDescriptor(a,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=a[o]}return r.default=a,e&&e.set(a,r),r}function T(){return T=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(a[t]=r[t])}return a},T.apply(this,arguments)}function k(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function q(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function U(a,e,r){return e&&q(a.prototype,e),r&&q(a,r),a}function C(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),e&&N(a,e)}function N(a,e){return N=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},N(a,e)}function W(a){var e=A();return function(){var t=R(a),o;if(e){var l=R(this).constructor;o=Reflect.construct(t,arguments,l)}else o=t.apply(this,arguments);return D(this,o)}}function D(a,e){return e&&(i(e)==="object"||typeof e=="function")?e:M(a)}function M(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function R(a){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},R(a)}function V(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var p=5e3,h=function(a){C(r,a);var e=W(r);function r(){var t;k(this,r);for(var o=arguments.length,l=new Array(o),m=0;m<o;m++)l[m]=arguments[m];return t=e.call.apply(e,[this].concat(l)),V(M(t),"mounted",!1),V(M(t),"isReady",!1),V(M(t),"isPlaying",!1),V(M(t),"isLoading",!0),V(M(t),"loadOnReady",null),V(M(t),"startOnPlay",!0),V(M(t),"seekOnPlay",null),V(M(t),"onDurationCalled",!1),V(M(t),"handlePlayerMount",function(c){if(t.player){t.progress();return}t.player=c,t.player.load(t.props.url),t.progress()}),V(M(t),"getInternalPlayer",function(c){return t.player?t.player[c]:null}),V(M(t),"progress",function(){if(t.props.url&&t.player&&t.isReady){var c=t.getCurrentTime()||0,P=t.getSecondsLoaded(),S=t.getDuration();if(S){var v={playedSeconds:c,played:c/S};P!==null&&(v.loadedSeconds=P,v.loaded=P/S),(v.playedSeconds!==t.prevPlayed||v.loadedSeconds!==t.prevLoaded)&&t.props.onProgress(v),t.prevPlayed=v.playedSeconds,t.prevLoaded=v.loadedSeconds}}t.progressTimeout=setTimeout(t.progress,t.props.progressFrequency||t.props.progressInterval)}),V(M(t),"handleReady",function(){if(t.mounted){t.isReady=!0,t.isLoading=!1;var c=t.props,P=c.onReady,S=c.playing,v=c.volume,y=c.muted;P(),!y&&v!==null&&t.player.setVolume(v),t.loadOnReady?(t.player.load(t.loadOnReady,!0),t.loadOnReady=null):S&&t.player.play(),t.handleDurationCheck()}}),V(M(t),"handlePlay",function(){t.isPlaying=!0,t.isLoading=!1;var c=t.props,P=c.onStart,S=c.onPlay,v=c.playbackRate;t.startOnPlay&&(t.player.setPlaybackRate&&v!==1&&t.player.setPlaybackRate(v),P(),t.startOnPlay=!1),S(),t.seekOnPlay&&(t.seekTo(t.seekOnPlay),t.seekOnPlay=null),t.handleDurationCheck()}),V(M(t),"handlePause",function(c){t.isPlaying=!1,t.isLoading||t.props.onPause(c)}),V(M(t),"handleEnded",function(){var c=t.props,P=c.activePlayer,S=c.loop,v=c.onEnded;P.loopOnEnded&&S&&t.seekTo(0),S||(t.isPlaying=!1,v())}),V(M(t),"handleError",function(){var c;t.isLoading=!1,(c=t.props).onError.apply(c,arguments)}),V(M(t),"handleDurationCheck",function(){clearTimeout(t.durationCheckTimeout);var c=t.getDuration();c?t.onDurationCalled||(t.props.onDuration(c),t.onDurationCalled=!0):t.durationCheckTimeout=setTimeout(t.handleDurationCheck,100)}),V(M(t),"handleLoaded",function(){t.isLoading=!1}),t}return U(r,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}},{key:"componentDidUpdate",value:function(o){var l=this;if(this.player){var m=this.props,c=m.url,P=m.playing,S=m.volume,v=m.muted,y=m.playbackRate,g=m.pip,d=m.loop,s=m.activePlayer,b=m.disableDeferredLoading;if(!(0,f.default)(o.url,c)){if(this.isLoading&&!s.forceLoad&&!b&&!(0,w.isMediaStream)(c)){console.warn("ReactPlayer: the attempt to load ".concat(c," is being deferred until the player has loaded")),this.loadOnReady=c;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(c,this.isReady)}!o.playing&&P&&!this.isPlaying&&this.player.play(),o.playing&&!P&&this.isPlaying&&this.player.pause(),!o.pip&&g&&this.player.enablePIP&&this.player.enablePIP(),o.pip&&!g&&this.player.disablePIP&&this.player.disablePIP(),o.volume!==S&&S!==null&&this.player.setVolume(S),o.muted!==v&&(v?this.player.mute():(this.player.unmute(),S!==null&&setTimeout(function(){return l.player.setVolume(S)}))),o.playbackRate!==y&&this.player.setPlaybackRate&&this.player.setPlaybackRate(y),o.loop!==d&&this.player.setLoop&&this.player.setLoop(d)}}},{key:"getDuration",value:function(){return this.isReady?this.player.getDuration():null}},{key:"getCurrentTime",value:function(){return this.isReady?this.player.getCurrentTime():null}},{key:"getSecondsLoaded",value:function(){return this.isReady?this.player.getSecondsLoaded():null}},{key:"seekTo",value:function(o,l){var m=this;if(!this.isReady){o!==0&&(this.seekOnPlay=o,setTimeout(function(){m.seekOnPlay=null},p));return}var c=l?l==="fraction":o>0&&o<1;if(c){var P=this.player.getDuration();if(!P){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(P*o);return}this.player.seekTo(o)}},{key:"render",value:function(){var o=this.props.activePlayer;return o?u.default.createElement(o,T({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),r}(u.Component);n.default=h,V(h,"displayName","Player"),V(h,"propTypes",O.propTypes),V(h,"defaultProps",O.defaultProps)})(zt);var $e={},Pt;function wn(){return Pt||(Pt=1,function(n){function i(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(a){return typeof a}:i=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(p)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=O(Q);function f(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return f=function(){return p},p}function O(p){if(p&&p.__esModule)return p;if(p===null||i(p)!=="object"&&typeof p!="function")return{default:p};var h=f();if(h&&h.has(p))return h.get(p);var a={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in p)if(Object.prototype.hasOwnProperty.call(p,r)){var t=e?Object.getOwnPropertyDescriptor(p,r):null;t&&(t.get||t.set)?Object.defineProperty(a,r,t):a[r]=p[r]}return a.default=p,h&&h.set(p,a),a}function w(p,h){var a=Object.keys(p);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(p);h&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(p,r).enumerable})),a.push.apply(a,e)}return a}function E(p){for(var h=1;h<arguments.length;h++){var a=arguments[h]!=null?arguments[h]:{};h%2?w(Object(a),!0).forEach(function(e){M(p,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(a)):w(Object(a)).forEach(function(e){Object.defineProperty(p,e,Object.getOwnPropertyDescriptor(a,e))})}return p}function L(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}function _(p,h){for(var a=0;a<h.length;a++){var e=h[a];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(p,e.key,e)}}function T(p,h,a){return h&&_(p.prototype,h),a&&_(p,a),p}function k(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(h&&h.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),h&&q(p,h)}function q(p,h){return q=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},q(p,h)}function U(p){var h=W();return function(){var e=D(p),r;if(h){var t=D(this).constructor;r=Reflect.construct(e,arguments,t)}else r=e.apply(this,arguments);return C(this,r)}}function C(p,h){return h&&(i(h)==="object"||typeof h=="function")?h:N(p)}function N(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function D(p){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},D(p)}function M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="64px",R={},V=function(p){k(a,p);var h=U(a);function a(){var e;L(this,a);for(var r=arguments.length,t=new Array(r),o=0;o<r;o++)t[o]=arguments[o];return e=h.call.apply(h,[this].concat(t)),M(N(e),"mounted",!1),M(N(e),"state",{image:null}),M(N(e),"handleKeyPress",function(l){(l.key==="Enter"||l.key===" ")&&e.props.onClick()}),e}return T(a,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(r){var t=this.props,o=t.url,l=t.light;(r.url!==o||r.light!==l)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(r){var t=this,o=r.url,l=r.light,m=r.oEmbedUrl;if(!u.default.isValidElement(l)){if(typeof l=="string"){this.setState({image:l});return}if(R[o]){this.setState({image:R[o]});return}return this.setState({image:null}),window.fetch(m.replace("{url}",o)).then(function(c){return c.json()}).then(function(c){if(c.thumbnail_url&&t.mounted){var P=c.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");t.setState({image:P}),R[o]=P}})}}},{key:"render",value:function(){var r=this.props,t=r.light,o=r.onClick,l=r.playIcon,m=r.previewTabIndex,c=this.state.image,P=u.default.isValidElement(t),S={display:"flex",alignItems:"center",justifyContent:"center"},v={preview:E({width:"100%",height:"100%",backgroundImage:c&&!P?"url(".concat(c,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},S),shadow:E({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:A,width:A,height:A,position:P?"absolute":void 0},S),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},y=u.default.createElement("div",{style:v.shadow,className:"react-player__shadow"},u.default.createElement("div",{style:v.playIcon,className:"react-player__play-icon"}));return u.default.createElement("div",{style:v.preview,className:"react-player__preview",onClick:o,tabIndex:m,onKeyPress:this.handleKeyPress},P?t:null,l||y)}}]),a}(u.Component);n.default=V}($e)),$e}Object.defineProperty(Ee,"__esModule",{value:!0});Ee.createReactPlayer=void 0;var ue=Gt(Q),Sn=Te(Tt),Be=Te(fn),_t=Te(Bt),ge=le,Rn=$,En=Te(zt);function Te(n){return n&&n.__esModule?n:{default:n}}function Pe(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(u){return typeof u}:Pe=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},Pe(n)}function Ot(n,i){var u=Object.keys(n);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(n);i&&(f=f.filter(function(O){return Object.getOwnPropertyDescriptor(n,O).enumerable})),u.push.apply(u,f)}return u}function bt(n){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?Ot(Object(u),!0).forEach(function(f){z(n,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):Ot(Object(u)).forEach(function(f){Object.defineProperty(n,f,Object.getOwnPropertyDescriptor(u,f))})}return n}function Se(){return Se=Object.assign||function(n){for(var i=1;i<arguments.length;i++){var u=arguments[i];for(var f in u)Object.prototype.hasOwnProperty.call(u,f)&&(n[f]=u[f])}return n},Se.apply(this,arguments)}function xe(n){return An(n)||Ln(n)||Dn(n)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dn(n,i){if(n){if(typeof n=="string")return Ge(n,i);var u=Object.prototype.toString.call(n).slice(8,-1);if(u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set")return Array.from(n);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return Ge(n,i)}}function Ln(n){if(typeof Symbol<"u"&&Symbol.iterator in Object(n))return Array.from(n)}function An(n){if(Array.isArray(n))return Ge(n)}function Ge(n,i){(i==null||i>n.length)&&(i=n.length);for(var u=0,f=new Array(i);u<i;u++)f[u]=n[u];return f}function Mn(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function wt(n,i){for(var u=0;u<i.length;u++){var f=i[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}function kn(n,i,u){return i&&wt(n.prototype,i),u&&wt(n,u),n}function In(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),i&&Xe(n,i)}function Xe(n,i){return Xe=Object.setPrototypeOf||function(f,O){return f.__proto__=O,f},Xe(n,i)}function Cn(n){var i=Nn();return function(){var f=Re(n),O;if(i){var w=Re(this).constructor;O=Reflect.construct(f,arguments,w)}else O=f.apply(this,arguments);return Un(this,O)}}function Un(n,i){return i&&(Pe(i)==="object"||typeof i=="function")?i:Z(n)}function Z(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Nn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Re(n){return Re=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},Re(n)}function z(n,i,u){return i in n?Object.defineProperty(n,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[i]=u,n}function Yt(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return Yt=function(){return n},n}function Gt(n){if(n&&n.__esModule)return n;if(n===null||Pe(n)!=="object"&&typeof n!="function")return{default:n};var i=Yt();if(i&&i.has(n))return i.get(n);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in n)if(Object.prototype.hasOwnProperty.call(n,O)){var w=f?Object.getOwnPropertyDescriptor(n,O):null;w&&(w.get||w.set)?Object.defineProperty(u,O,w):u[O]=n[O]}return u.default=n,i&&i.set(n,u),u}var Wn=(0,ue.lazy)(function(){return Promise.resolve().then(function(){return Gt(wn())})}),Vn=typeof window<"u"&&window.document,jn=typeof De<"u"&&De.window&&De.window.document,Hn=Object.keys(ge.propTypes),qn=Vn||jn?ue.Suspense:function(){return null},me=[],Kn=function(i,u){var f,O;return O=f=function(w){In(L,w);var E=Cn(L);function L(){var _;Mn(this,L);for(var T=arguments.length,k=new Array(T),q=0;q<T;q++)k[q]=arguments[q];return _=E.call.apply(E,[this].concat(k)),z(Z(_),"state",{showPreview:!!_.props.light}),z(Z(_),"references",{wrapper:function(C){_.wrapper=C},player:function(C){_.player=C}}),z(Z(_),"handleClickPreview",function(U){_.setState({showPreview:!1}),_.props.onClickPreview(U)}),z(Z(_),"showPreview",function(){_.setState({showPreview:!0})}),z(Z(_),"getDuration",function(){return _.player?_.player.getDuration():null}),z(Z(_),"getCurrentTime",function(){return _.player?_.player.getCurrentTime():null}),z(Z(_),"getSecondsLoaded",function(){return _.player?_.player.getSecondsLoaded():null}),z(Z(_),"getInternalPlayer",function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"player";return _.player?_.player.getInternalPlayer(U):null}),z(Z(_),"seekTo",function(U,C){if(!_.player)return null;_.player.seekTo(U,C)}),z(Z(_),"handleReady",function(){_.props.onReady(Z(_))}),z(Z(_),"getActivePlayer",(0,Be.default)(function(U){for(var C=0,N=[].concat(me,xe(i));C<N.length;C++){var W=N[C];if(W.canPlay(U))return W}return u||null})),z(Z(_),"getConfig",(0,Be.default)(function(U,C){var N=_.props.config;return Sn.default.all([ge.defaultProps.config,ge.defaultProps.config[C]||{},N,N[C]||{}])})),z(Z(_),"getAttributes",(0,Be.default)(function(U){return(0,Rn.omit)(_.props,Hn)})),z(Z(_),"renderActivePlayer",function(U){if(!U)return null;var C=_.getActivePlayer(U);if(!C)return null;var N=_.getConfig(U,C.key);return ue.default.createElement(En.default,Se({},_.props,{key:C.key,ref:_.references.player,config:N,activePlayer:C.lazyPlayer||C,onReady:_.handleReady}))}),_}return kn(L,[{key:"shouldComponentUpdate",value:function(T,k){return!(0,_t.default)(this.props,T)||!(0,_t.default)(this.state,k)}},{key:"componentDidUpdate",value:function(T){var k=this.props.light;!T.light&&k&&this.setState({showPreview:!0}),T.light&&!k&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(T){if(!T)return null;var k=this.props,q=k.light,U=k.playIcon,C=k.previewTabIndex,N=k.oEmbedUrl;return ue.default.createElement(Wn,{url:T,light:q,playIcon:U,previewTabIndex:C,oEmbedUrl:N,onClick:this.handleClickPreview})}},{key:"render",value:function(){var T=this.props,k=T.url,q=T.style,U=T.width,C=T.height,N=T.fallback,W=T.wrapper,D=this.state.showPreview,M=this.getAttributes(k),A=typeof W=="string"?this.references.wrapper:void 0;return ue.default.createElement(W,Se({ref:A,style:bt(bt({},q),{},{width:U,height:C})},M),ue.default.createElement(qn,{fallback:N},D?this.renderPreview(k):this.renderActivePlayer(k)))}}]),L}(ue.Component),z(f,"displayName","ReactPlayer"),z(f,"propTypes",ge.propTypes),z(f,"defaultProps",ge.defaultProps),z(f,"addCustomPlayer",function(w){me.push(w)}),z(f,"removeCustomPlayers",function(){me.length=0}),z(f,"canPlay",function(w){for(var E=0,L=[].concat(me,xe(i));E<L.length;E++){var _=L[E];if(_.canPlay(w))return!0}return!1}),z(f,"canEnablePIP",function(w){for(var E=0,L=[].concat(me,xe(i));E<L.length;E++){var _=L[E];if(_.canEnablePIP&&_.canEnablePIP(w))return!0}return!1}),O};Ee.createReactPlayer=Kn;(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=f(Rt),u=Ee;function f(E){return E&&E.__esModule?E:{default:E}}var O=i.default[i.default.length-1],w=(0,u.createReactPlayer)(i.default,O);n.default=w})(St);const Bn=ar(St);export{Bn as R,Ye as p,Bt as r};