7 lines
105 KiB
JavaScript
7 lines
105 KiB
JavaScript
(self.webpackChunkgms_ui=self.webpackChunkgms_ui||[]).push([[4],{49090:function(Z){Z.exports=function(b,T,M){var W=document.head||document.getElementsByTagName("head")[0],I=document.createElement("script");typeof T=="function"&&(M=T,T={}),T=T||{},M=M||function(){},I.type=T.type||"text/javascript",I.charset=T.charset||"utf8",I.async="async"in T?!!T.async:!0,I.src=b,T.attrs&&g(I,T.attrs),T.text&&(I.text=""+T.text);var A="onload"in I?E:P;A(I,M),I.onload||E(I,M),W.appendChild(I)};function g(U,b){for(var T in b)U.setAttribute(T,b[T])}function E(U,b){U.onload=function(){this.onerror=this.onload=null,b(null,U)},U.onerror=function(){this.onerror=this.onload=null,b(new Error("Failed to load "+this.src),U)}}function P(U,b){U.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,b(null,U))}}},30845:function(Z,g,E){"use strict";E.r(g);var P=Number.isNaN||function(W){return typeof W=="number"&&W!==W};function U(M,W){return!!(M===W||P(M)&&P(W))}function b(M,W){if(M.length!==W.length)return!1;for(var I=0;I<M.length;I++)if(!U(M[I],W[I]))return!1;return!0}function T(M,W){W===void 0&&(W=b);var I,A=[],V,C=!1;function z(){for(var $=[],N=0;N<arguments.length;N++)$[N]=arguments[N];return C&&I===this&&W($,A)||(V=M.apply(this,$),C=!0,I=this,A=$),V}return z}g.default=T},60722:function(Z,g,E){"use strict";function P(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(r){return typeof r}:P=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P(n)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=A(E(67294)),b=W(E(69590)),T=E(85741),M=E(38045);function W(n){return n&&n.__esModule?n:{default:n}}function I(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return I=function(){return n},n}function A(n){if(n&&n.__esModule)return n;if(n===null||P(n)!=="object"&&typeof n!="function")return{default:n};var t=I();if(t&&t.has(n))return t.get(n);var r={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var u=e?Object.getOwnPropertyDescriptor(n,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function V(){return V=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n},V.apply(this,arguments)}function C(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function z(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function $(n,t,r){return t&&z(n.prototype,t),r&&z(n,r),n}function N(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&j(n,t)}function j(n,t){return j=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},j(n,t)}function K(n){var t=S();return function(){var e=w(n),o;if(t){var u=w(this).constructor;o=Reflect.construct(e,arguments,u)}else o=e.apply(this,arguments);return O(this,o)}}function O(n,t){return t&&(P(t)==="object"||typeof t=="function")?t:_(n)}function _(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function S(){if(typeof Reflect=="undefined"||!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(n){return!1}}function w(n){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},w(n)}function k(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}var f=5e3,p=function(n){N(r,n);var t=K(r);function r(){var e;C(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return e=t.call.apply(t,[this].concat(u)),k(_(e),"mounted",!1),k(_(e),"isReady",!1),k(_(e),"isPlaying",!1),k(_(e),"isLoading",!0),k(_(e),"loadOnReady",null),k(_(e),"startOnPlay",!0),k(_(e),"seekOnPlay",null),k(_(e),"onDurationCalled",!1),k(_(e),"handlePlayerMount",function(a){e.player||(e.player=a,e.player.load(e.props.url),e.progress())}),k(_(e),"getInternalPlayer",function(a){return e.player?e.player[a]:null}),k(_(e),"progress",function(){if(e.props.url&&e.player&&e.isReady){var a=e.getCurrentTime()||0,d=e.getSecondsLoaded(),y=e.getDuration();if(y){var v={playedSeconds:a,played:a/y};d!==null&&(v.loadedSeconds=d,v.loaded=d/y),(v.playedSeconds!==e.prevPlayed||v.loadedSeconds!==e.prevLoaded)&&e.props.onProgress(v),e.prevPlayed=v.playedSeconds,e.prevLoaded=v.loadedSeconds}}e.progressTimeout=setTimeout(e.progress,e.props.progressFrequency||e.props.progressInterval)}),k(_(e),"handleReady",function(){if(!!e.mounted){e.isReady=!0,e.isLoading=!1;var a=e.props,d=a.onReady,y=a.playing,v=a.volume,s=a.muted;d(),!s&&v!==null&&e.player.setVolume(v),e.loadOnReady?(e.player.load(e.loadOnReady,!0),e.loadOnReady=null):y&&e.player.play(),e.handleDurationCheck()}}),k(_(e),"handlePlay",function(){e.isPlaying=!0,e.isLoading=!1;var a=e.props,d=a.onStart,y=a.onPlay,v=a.playbackRate;e.startOnPlay&&(e.player.setPlaybackRate&&v!==1&&e.player.setPlaybackRate(v),d(),e.startOnPlay=!1),y(),e.seekOnPlay&&(e.seekTo(e.seekOnPlay),e.seekOnPlay=null),e.handleDurationCheck()}),k(_(e),"handlePause",function(a){e.isPlaying=!1,e.isLoading||e.props.onPause(a)}),k(_(e),"handleEnded",function(){var a=e.props,d=a.activePlayer,y=a.loop,v=a.onEnded;d.loopOnEnded&&y&&e.seekTo(0),y||(e.isPlaying=!1,v())}),k(_(e),"handleError",function(){var a;e.isLoading=!1,(a=e.props).onError.apply(a,arguments)}),k(_(e),"handleDurationCheck",function(){clearTimeout(e.durationCheckTimeout);var a=e.getDuration();a?e.onDurationCalled||(e.props.onDuration(a),e.onDurationCalled=!0):e.durationCheckTimeout=setTimeout(e.handleDurationCheck,100)}),k(_(e),"handleLoaded",function(){e.isLoading=!1}),e}return $(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 u=this;if(!!this.player){var i=this.props,a=i.url,d=i.playing,y=i.volume,v=i.muted,s=i.playbackRate,l=i.pip,c=i.loop,m=i.activePlayer,D=i.disableDeferredLoading;if(!(0,b.default)(o.url,a)){if(this.isLoading&&!m.forceLoad&&!D&&!(0,M.isMediaStream)(a)){console.warn("ReactPlayer: the attempt to load ".concat(a," is being deferred until the player has loaded")),this.loadOnReady=a;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(a,this.isReady)}!o.playing&&d&&!this.isPlaying&&this.player.play(),o.playing&&!d&&this.isPlaying&&this.player.pause(),!o.pip&&l&&this.player.enablePIP&&this.player.enablePIP(),o.pip&&!l&&this.player.disablePIP&&this.player.disablePIP(),o.volume!==y&&y!==null&&this.player.setVolume(y),o.muted!==v&&(v?this.player.mute():(this.player.unmute(),y!==null&&setTimeout(function(){return u.player.setVolume(y)}))),o.playbackRate!==s&&this.player.setPlaybackRate&&this.player.setPlaybackRate(s),o.loop!==c&&this.player.setLoop&&this.player.setLoop(c)}}},{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,u){var i=this;if(!this.isReady){o!==0&&(this.seekOnPlay=o,setTimeout(function(){i.seekOnPlay=null},f));return}var a=u?u==="fraction":o>0&&o<1;if(a){var d=this.player.getDuration();if(!d){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(d*o);return}this.player.seekTo(o)}},{key:"render",value:function(){var o=this.props.activePlayer;return o?U.default.createElement(o,V({},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);g.default=p,k(p,"displayName","Player"),k(p,"propTypes",T.propTypes),k(p,"defaultProps",T.defaultProps)},83855:function(Z,g,E){"use strict";function P(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(n){return typeof n}:P=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(f)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=T(E(67294));function b(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return b=function(){return f},f}function T(f){if(f&&f.__esModule)return f;if(f===null||P(f)!=="object"&&typeof f!="function")return{default:f};var p=b();if(p&&p.has(f))return p.get(f);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in f)if(Object.prototype.hasOwnProperty.call(f,r)){var e=t?Object.getOwnPropertyDescriptor(f,r):null;e&&(e.get||e.set)?Object.defineProperty(n,r,e):n[r]=f[r]}return n.default=f,p&&p.set(f,n),n}function M(f,p){var n=Object.keys(f);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(f);p&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(f,r).enumerable})),n.push.apply(n,t)}return n}function W(f){for(var p=1;p<arguments.length;p++){var n=arguments[p]!=null?arguments[p]:{};p%2?M(Object(n),!0).forEach(function(t){_(f,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(f,t,Object.getOwnPropertyDescriptor(n,t))})}return f}function I(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function A(f,p){for(var n=0;n<p.length;n++){var t=p[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}function V(f,p,n){return p&&A(f.prototype,p),n&&A(f,n),f}function C(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&z(f,p)}function z(f,p){return z=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},z(f,p)}function $(f){var p=K();return function(){var t=O(f),r;if(p){var e=O(this).constructor;r=Reflect.construct(t,arguments,e)}else r=t.apply(this,arguments);return N(this,r)}}function N(f,p){return p&&(P(p)==="object"||typeof p=="function")?p:j(f)}function j(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function K(){if(typeof Reflect=="undefined"||!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(f){return!1}}function O(f){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},O(f)}function _(f,p,n){return p in f?Object.defineProperty(f,p,{value:n,enumerable:!0,configurable:!0,writable:!0}):f[p]=n,f}var S="64px",w={},k=function(f){C(n,f);var p=$(n);function n(){var t;I(this,n);for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return t=p.call.apply(p,[this].concat(e)),_(j(t),"mounted",!1),_(j(t),"state",{image:null}),_(j(t),"handleKeyPress",function(u){(u.key==="Enter"||u.key===" ")&&t.props.onClick()}),t}return V(n,[{key:"componentDidMount",value:function(){this.mounted=!0,this.fetchImage(this.props)}},{key:"componentDidUpdate",value:function(r){var e=this.props,o=e.url,u=e.light;(r.url!==o||r.light!==u)&&this.fetchImage(this.props)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"fetchImage",value:function(r){var e=this,o=r.url,u=r.light,i=r.oEmbedUrl;if(typeof u=="string"){this.setState({image:u});return}if(w[o]){this.setState({image:w[o]});return}return this.setState({image:null}),window.fetch(i.replace("{url}",o)).then(function(a){return a.json()}).then(function(a){if(a.thumbnail_url&&e.mounted){var d=a.thumbnail_url.replace("height=100","height=480");e.setState({image:d}),w[o]=d}})}},{key:"render",value:function(){var r=this.props,e=r.onClick,o=r.playIcon,u=r.previewTabIndex,i=this.state.image,a={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:W({width:"100%",height:"100%",backgroundImage:i?"url(".concat(i,")"):void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer"},a),shadow:W({background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:S,width:S,height:S},a),playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},y=U.default.createElement("div",{style:d.shadow,className:"react-player__shadow"},U.default.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return U.default.createElement("div",{style:d.preview,className:"react-player__preview",onClick:e,tabIndex:u,onKeyPress:this.handleKeyPress},o||y)}}]),n}(U.Component);g.default=k},70390:function(Z,g,E){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.createReactPlayer=void 0;var P=d(E(67294)),U=A(E(82819)),b=A(E(30845)),T=A(E(69590)),M=E(85741),W=E(38045),I=A(E(60722));function A(h){return h&&h.__esModule?h:{default:h}}function V(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?V=function(L){return typeof L}:V=function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},V(h)}function C(h,R){var L=Object.keys(h);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(h);R&&(H=H.filter(function(F){return Object.getOwnPropertyDescriptor(h,F).enumerable})),L.push.apply(L,H)}return L}function z(h){for(var R=1;R<arguments.length;R++){var L=arguments[R]!=null?arguments[R]:{};R%2?C(Object(L),!0).forEach(function(H){i(h,H,L[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(L)):C(Object(L)).forEach(function(H){Object.defineProperty(h,H,Object.getOwnPropertyDescriptor(L,H))})}return h}function $(){return $=Object.assign||function(h){for(var R=1;R<arguments.length;R++){var L=arguments[R];for(var H in L)Object.prototype.hasOwnProperty.call(L,H)&&(h[H]=L[H])}return h},$.apply(this,arguments)}function N(h){return _(h)||O(h)||K(h)||j()}function j(){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 K(h,R){if(!!h){if(typeof h=="string")return S(h,R);var L=Object.prototype.toString.call(h).slice(8,-1);if(L==="Object"&&h.constructor&&(L=h.constructor.name),L==="Map"||L==="Set")return Array.from(h);if(L==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(L))return S(h,R)}}function O(h){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(h))return Array.from(h)}function _(h){if(Array.isArray(h))return S(h)}function S(h,R){(R==null||R>h.length)&&(R=h.length);for(var L=0,H=new Array(R);L<R;L++)H[L]=h[L];return H}function w(h,R){if(!(h instanceof R))throw new TypeError("Cannot call a class as a function")}function k(h,R){for(var L=0;L<R.length;L++){var H=R[L];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(h,H.key,H)}}function f(h,R,L){return R&&k(h.prototype,R),L&&k(h,L),h}function p(h,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(R&&R.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),R&&n(h,R)}function n(h,R){return n=Object.setPrototypeOf||function(H,F){return H.__proto__=F,H},n(h,R)}function t(h){var R=o();return function(){var H=u(h),F;if(R){var Y=u(this).constructor;F=Reflect.construct(H,arguments,Y)}else F=H.apply(this,arguments);return r(this,F)}}function r(h,R){return R&&(V(R)==="object"||typeof R=="function")?R:e(h)}function e(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function o(){if(typeof Reflect=="undefined"||!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(h){return!1}}function u(h){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(L){return L.__proto__||Object.getPrototypeOf(L)},u(h)}function i(h,R,L){return R in h?Object.defineProperty(h,R,{value:L,enumerable:!0,configurable:!0,writable:!0}):h[R]=L,h}function a(){if(typeof WeakMap!="function")return null;var h=new WeakMap;return a=function(){return h},h}function d(h){if(h&&h.__esModule)return h;if(h===null||V(h)!=="object"&&typeof h!="function")return{default:h};var R=a();if(R&&R.has(h))return R.get(h);var L={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var F in h)if(Object.prototype.hasOwnProperty.call(h,F)){var Y=H?Object.getOwnPropertyDescriptor(h,F):null;Y&&(Y.get||Y.set)?Object.defineProperty(L,F,Y):L[F]=h[F]}return L.default=h,R&&R.set(h,L),L}var y=(0,P.lazy)(function(){return Promise.resolve().then(function(){return d(E(83855))})}),v=typeof window!="undefined"&&window.document,s=typeof E.g!="undefined"&&E.g.window&&E.g.window.document,l=Object.keys(M.propTypes),c=v||s?P.Suspense:function(){return null},m=[],D=function(R,L){var H,F;return F=H=function(Y){p(q,Y);var X=t(q);function q(){var B;w(this,q);for(var Q=arguments.length,J=new Array(Q),re=0;re<Q;re++)J[re]=arguments[re];return B=X.call.apply(X,[this].concat(J)),i(e(B),"state",{showPreview:!!B.props.light}),i(e(B),"references",{wrapper:function(G){B.wrapper=G},player:function(G){B.player=G}}),i(e(B),"handleClickPreview",function(x){B.setState({showPreview:!1}),B.props.onClickPreview(x)}),i(e(B),"showPreview",function(){B.setState({showPreview:!0})}),i(e(B),"getDuration",function(){return B.player?B.player.getDuration():null}),i(e(B),"getCurrentTime",function(){return B.player?B.player.getCurrentTime():null}),i(e(B),"getSecondsLoaded",function(){return B.player?B.player.getSecondsLoaded():null}),i(e(B),"getInternalPlayer",function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"player";return B.player?B.player.getInternalPlayer(x):null}),i(e(B),"seekTo",function(x,G){if(!B.player)return null;B.player.seekTo(x,G)}),i(e(B),"handleReady",function(){B.props.onReady(e(B))}),i(e(B),"getActivePlayer",(0,b.default)(function(x){for(var G=0,ee=[].concat(m,N(R));G<ee.length;G++){var te=ee[G];if(te.canPlay(x))return te}return L||null})),i(e(B),"getConfig",(0,b.default)(function(x,G){var ee=B.props.config;return U.default.all([M.defaultProps.config,M.defaultProps.config[G]||{},ee,ee[G]||{}])})),i(e(B),"getAttributes",(0,b.default)(function(x){return(0,W.omit)(B.props,l)})),i(e(B),"renderActivePlayer",function(x){if(!x)return null;var G=B.getActivePlayer(x);if(!G)return null;var ee=B.getConfig(x,G.key);return P.default.createElement(I.default,$({},B.props,{key:G.key,ref:B.references.player,config:ee,activePlayer:G.lazyPlayer||G,onReady:B.handleReady}))}),B}return f(q,[{key:"shouldComponentUpdate",value:function(Q,J){return!(0,T.default)(this.props,Q)||!(0,T.default)(this.state,J)}},{key:"componentDidUpdate",value:function(Q){var J=this.props.light;!Q.light&&J&&this.setState({showPreview:!0}),Q.light&&!J&&this.setState({showPreview:!1})}},{key:"renderPreview",value:function(Q){if(!Q)return null;var J=this.props,re=J.light,x=J.playIcon,G=J.previewTabIndex,ee=J.oEmbedUrl;return P.default.createElement(y,{url:Q,light:re,playIcon:x,previewTabIndex:G,oEmbedUrl:ee,onClick:this.handleClickPreview})}},{key:"render",value:function(){var Q=this.props,J=Q.url,re=Q.style,x=Q.width,G=Q.height,ee=Q.fallback,te=Q.wrapper,ne=this.state.showPreview,oe=this.getAttributes(J);return P.default.createElement(te,$({ref:this.references.wrapper,style:z(z({},re),{},{width:x,height:G})},oe),P.default.createElement(c,{fallback:ee},ne?this.renderPreview(J):this.renderActivePlayer(J)))}}]),q}(P.Component),i(H,"displayName","ReactPlayer"),i(H,"propTypes",M.propTypes),i(H,"defaultProps",M.defaultProps),i(H,"addCustomPlayer",function(Y){m.push(Y)}),i(H,"removeCustomPlayers",function(){m.length=0}),i(H,"canPlay",function(Y){for(var X=0,q=[].concat(m,N(R));X<q.length;X++){var B=q[X];if(B.canPlay(Y))return!0}return!1}),i(H,"canEnablePIP",function(Y){for(var X=0,q=[].concat(m,N(R));X<q.length;X++){var B=q[X];if(B.canEnablePIP&&B.canEnablePIP(Y))return!0}return!1}),F};g.createReactPlayer=D},22004:function(Z,g,E){"use strict";var P;P={value:!0},g.Z=void 0;var U=T(E(86497)),b=E(70390);function T(I){return I&&I.__esModule?I:{default:I}}var M=U.default[U.default.length-1],W=(0,b.createReactPlayer)(U.default,M);g.Z=W},71776:function(Z,g,E){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.canPlay=g.FLV_EXTENSIONS=g.DASH_EXTENSIONS=g.HLS_EXTENSIONS=g.VIDEO_EXTENSIONS=g.AUDIO_EXTENSIONS=g.MATCH_URL_KALTURA=g.MATCH_URL_VIDYARD=g.MATCH_URL_MIXCLOUD=g.MATCH_URL_DAILYMOTION=g.MATCH_URL_TWITCH_CHANNEL=g.MATCH_URL_TWITCH_VIDEO=g.MATCH_URL_WISTIA=g.MATCH_URL_STREAMABLE=g.MATCH_URL_FACEBOOK_WATCH=g.MATCH_URL_FACEBOOK=g.MATCH_URL_VIMEO=g.MATCH_URL_SOUNDCLOUD=g.MATCH_URL_YOUTUBE=void 0;var P=E(38045);function U(r,e){var o;if(typeof Symbol=="undefined"||r[Symbol.iterator]==null){if(Array.isArray(r)||(o=b(r))||e&&r&&typeof r.length=="number"){o&&(r=o);var u=0,i=function(){};return{s:i,n:function(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function(s){throw s},f:i}}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 a=!0,d=!1,y;return{s:function(){o=r[Symbol.iterator]()},n:function(){var s=o.next();return a=s.done,s},e:function(s){d=!0,y=s},f:function(){try{!a&&o.return!=null&&o.return()}finally{if(d)throw y}}}}function b(r,e){if(!!r){if(typeof r=="string")return T(r,e);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return T(r,e)}}function T(r,e){(e==null||e>r.length)&&(e=r.length);for(var o=0,u=new Array(e);o<e;o++)u[o]=r[o];return u}var M=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;g.MATCH_URL_YOUTUBE=M;var W=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/;g.MATCH_URL_SOUNDCLOUD=W;var I=/vimeo\.com\/(?!progressive_redirect).+/;g.MATCH_URL_VIMEO=I;var A=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;g.MATCH_URL_FACEBOOK=A;var V=/^https?:\/\/fb\.watch\/.+$/;g.MATCH_URL_FACEBOOK_WATCH=V;var C=/streamable\.com\/([a-z0-9]+)$/;g.MATCH_URL_STREAMABLE=C;var z=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?(.*)$/;g.MATCH_URL_WISTIA=z;var $=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;g.MATCH_URL_TWITCH_VIDEO=$;var N=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;g.MATCH_URL_TWITCH_CHANNEL=N;var j=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?$/;g.MATCH_URL_DAILYMOTION=j;var K=/mixcloud\.com\/([^/]+\/[^/]+)/;g.MATCH_URL_MIXCLOUD=K;var O=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;g.MATCH_URL_VIDYARD=O;var _=/^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-_].*)$/;g.MATCH_URL_KALTURA=_;var S=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;g.AUDIO_EXTENSIONS=S;var w=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;g.VIDEO_EXTENSIONS=w;var k=/\.(m3u8)($|\?)/i;g.HLS_EXTENSIONS=k;var f=/\.(mpd)($|\?)/i;g.DASH_EXTENSIONS=f;var p=/\.(flv)($|\?)/i;g.FLV_EXTENSIONS=p;var n=function r(e){if(e instanceof Array){var o=U(e),u;try{for(o.s();!(u=o.n()).done;){var i=u.value;if(typeof i=="string"&&r(i)||r(i.src))return!0}}catch(a){o.e(a)}finally{o.f()}return!1}return(0,P.isMediaStream)(e)||(0,P.isBlobUrl)(e)?!0:S.test(e)||w.test(e)||k.test(e)||f.test(e)||p.test(e)},t={youtube:function(e){return e instanceof Array?e.every(function(o){return M.test(o)}):M.test(e)},soundcloud:function(e){return W.test(e)&&!S.test(e)},vimeo:function(e){return I.test(e)&&!w.test(e)&&!k.test(e)},facebook:function(e){return A.test(e)||V.test(e)},streamable:function(e){return C.test(e)},wistia:function(e){return z.test(e)},twitch:function(e){return $.test(e)||N.test(e)},dailymotion:function(e){return j.test(e)},mixcloud:function(e){return K.test(e)},vidyard:function(e){return O.test(e)},kaltura:function(e){return _.test(e)},file:n};g.canPlay=t},36807:function(Z,g,E){"use strict";function P(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(y){return typeof y}:P=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},P(a)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return M=function(){return a},a}function W(a){if(a&&a.__esModule)return a;if(a===null||P(a)!=="object"&&typeof a!="function")return{default:a};var d=M();if(d&&d.has(a))return d.get(a);var y={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s)){var l=v?Object.getOwnPropertyDescriptor(a,s):null;l&&(l.get||l.set)?Object.defineProperty(y,s,l):y[s]=a[s]}return y.default=a,d&&d.set(a,y),y}function I(a,d){var y=Object.keys(a);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(a);d&&(v=v.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),y.push.apply(y,v)}return y}function A(a){for(var d=1;d<arguments.length;d++){var y=arguments[d]!=null?arguments[d]:{};d%2?I(Object(y),!0).forEach(function(v){r(a,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(y)):I(Object(y)).forEach(function(v){Object.defineProperty(a,v,Object.getOwnPropertyDescriptor(y,v))})}return a}function V(a,d){return j(a)||N(a,d)||z(a,d)||C()}function C(){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 z(a,d){if(!!a){if(typeof a=="string")return $(a,d);var y=Object.prototype.toString.call(a).slice(8,-1);if(y==="Object"&&a.constructor&&(y=a.constructor.name),y==="Map"||y==="Set")return Array.from(a);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return $(a,d)}}function $(a,d){(d==null||d>a.length)&&(d=a.length);for(var y=0,v=new Array(d);y<d;y++)v[y]=a[y];return v}function N(a,d){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(a)))){var y=[],v=!0,s=!1,l=void 0;try{for(var c=a[Symbol.iterator](),m;!(v=(m=c.next()).done)&&(y.push(m.value),!(d&&y.length===d));v=!0);}catch(D){s=!0,l=D}finally{try{!v&&c.return!=null&&c.return()}finally{if(s)throw l}}return y}}function j(a){if(Array.isArray(a))return a}function K(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function O(a,d){for(var y=0;y<d.length;y++){var v=d[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}function _(a,d,y){return d&&O(a.prototype,d),y&&O(a,y),a}function S(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&w(a,d)}function w(a,d){return w=Object.setPrototypeOf||function(v,s){return v.__proto__=s,v},w(a,d)}function k(a){var d=n();return function(){var v=t(a),s;if(d){var l=t(this).constructor;s=Reflect.construct(v,arguments,l)}else s=v.apply(this,arguments);return f(this,s)}}function f(a,d){return d&&(P(d)==="object"||typeof d=="function")?d:p(a)}function p(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function n(){if(typeof Reflect=="undefined"||!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(a){return!1}}function t(a){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},t(a)}function r(a,d,y){return d in a?Object.defineProperty(a,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):a[d]=y,a}var e="https://api.dmcdn.net/all.js",o="DM",u="dmAsyncInit",i=function(a){S(y,a);var d=k(y);function y(){var v;K(this,y);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return v=d.call.apply(d,[this].concat(l)),r(p(v),"callPlayer",b.callPlayer),r(p(v),"onDurationChange",function(){var m=v.getDuration();v.props.onDuration(m)}),r(p(v),"mute",function(){v.callPlayer("setMuted",!0)}),r(p(v),"unmute",function(){v.callPlayer("setMuted",!1)}),r(p(v),"ref",function(m){v.container=m}),v}return _(y,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(s){var l=this,c=this.props,m=c.controls,D=c.config,h=c.onError,R=c.playing,L=s.match(T.MATCH_URL_DAILYMOTION),H=V(L,2),F=H[1];if(this.player){this.player.load(F,{start:(0,b.parseStartTime)(s),autoplay:R});return}(0,b.getSDK)(e,o,u,function(Y){return Y.player}).then(function(Y){if(!!l.container){var X=Y.player;l.player=new X(l.container,{width:"100%",height:"100%",video:F,params:A({controls:m,autoplay:l.props.playing,mute:l.props.muted,start:(0,b.parseStartTime)(s),origin:window.location.origin},D.params),events:{apiready:l.props.onReady,seeked:function(){return l.props.onSeek(l.player.currentTime)},video_end:l.props.onEnded,durationchange:l.onDurationChange,pause:l.props.onPause,playing:l.props.onPlay,waiting:l.props.onBuffer,error:function(B){return h(B)}}})}},h)}},{key:"play",value:function(){this.callPlayer("play")}},{key:"pause",value:function(){this.callPlayer("pause")}},{key:"stop",value:function(){}},{key:"seekTo",value:function(s){this.callPlayer("seek",s)}},{key:"setVolume",value:function(s){this.callPlayer("setVolume",s)}},{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 s=this.props.display,l={width:"100%",height:"100%",display:s};return U.default.createElement("div",{style:l},U.default.createElement("div",{ref:this.ref}))}}]),y}(U.Component);g.default=i,r(i,"displayName","DailyMotion"),r(i,"canPlay",T.canPlay.dailymotion),r(i,"loopOnEnded",!0)},31972:function(Z,g,E){"use strict";function P(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(e){return typeof e}:P=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return M=function(){return t},t}function W(t){if(t&&t.__esModule)return t;if(t===null||P(t)!=="object"&&typeof t!="function")return{default:t};var r=M();if(r&&r.has(t))return r.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var i=o?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(e,u,i):e[u]=t[u]}return e.default=t,r&&r.set(t,e),e}function I(){return I=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},I.apply(this,arguments)}function A(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function V(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,r,e){return r&&V(t.prototype,r),e&&V(t,e),t}function z(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&$(t,r)}function $(t,r){return $=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},$(t,r)}function N(t){var r=O();return function(){var o=_(t),u;if(r){var i=_(this).constructor;u=Reflect.construct(o,arguments,i)}else u=o.apply(this,arguments);return j(this,u)}}function j(t,r){return r&&(P(r)==="object"||typeof r=="function")?r:K(t)}function K(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(){if(typeof Reflect=="undefined"||!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(t){return!1}}function _(t){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(t)}function S(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var w="https://connect.facebook.net/en_US/sdk.js",k="FB",f="fbAsyncInit",p="facebook-player-",n=function(t){z(e,t);var r=N(e);function e(){var o;A(this,e);for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),S(K(o),"callPlayer",b.callPlayer),S(K(o),"playerID",o.props.config.playerId||"".concat(p).concat((0,b.randomString)())),S(K(o),"mute",function(){o.callPlayer("mute")}),S(K(o),"unmute",function(){o.callPlayer("unmute")}),o}return C(e,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(u,i){var a=this;if(i){(0,b.getSDK)(w,k,f).then(function(d){return d.XFBML.parse()});return}(0,b.getSDK)(w,k,f).then(function(d){d.init({appId:a.props.config.appId,xfbml:!0,version:a.props.config.version}),d.Event.subscribe("xfbml.render",function(y){a.props.onLoaded()}),d.Event.subscribe("xfbml.ready",function(y){y.type==="video"&&y.id===a.playerID&&(a.player=y.instance,a.player.subscribe("startedPlaying",a.props.onPlay),a.player.subscribe("paused",a.props.onPause),a.player.subscribe("finishedPlaying",a.props.onEnded),a.player.subscribe("startedBuffering",a.props.onBuffer),a.player.subscribe("finishedBuffering",a.props.onBufferEnd),a.player.subscribe("error",a.props.onError),a.props.muted?a.callPlayer("mute"):a.callPlayer("unmute"),a.props.onReady(),document.getElementById(a.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(u){this.callPlayer("seek",u)}},{key:"setVolume",value:function(u){this.callPlayer("setVolume",u)}},{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 u=this.props.config.attributes,i={width:"100%",height:"100%"};return U.default.createElement("div",I({style:i,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"},u))}}]),e}(U.Component);g.default=n,S(n,"displayName","Facebook"),S(n,"canPlay",T.canPlay.facebook),S(n,"loopOnEnded",!0)},14926:function(Z,g,E){"use strict";function P(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(s){return typeof s}:P=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},P(y)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var y=new WeakMap;return M=function(){return y},y}function W(y){if(y&&y.__esModule)return y;if(y===null||P(y)!=="object"&&typeof y!="function")return{default:y};var v=M();if(v&&v.has(y))return v.get(y);var s={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in y)if(Object.prototype.hasOwnProperty.call(y,c)){var m=l?Object.getOwnPropertyDescriptor(y,c):null;m&&(m.get||m.set)?Object.defineProperty(s,c,m):s[c]=y[c]}return s.default=y,v&&v.set(y,s),s}function I(){return I=Object.assign||function(y){for(var v=1;v<arguments.length;v++){var s=arguments[v];for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(y[l]=s[l])}return y},I.apply(this,arguments)}function A(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}function V(y,v){for(var s=0;s<v.length;s++){var l=v[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(y,l.key,l)}}function C(y,v,s){return v&&V(y.prototype,v),s&&V(y,s),y}function z(y,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(v&&v.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),v&&$(y,v)}function $(y,v){return $=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},$(y,v)}function N(y){var v=O();return function(){var l=_(y),c;if(v){var m=_(this).constructor;c=Reflect.construct(l,arguments,m)}else c=l.apply(this,arguments);return j(this,c)}}function j(y,v){return v&&(P(v)==="object"||typeof v=="function")?v:K(y)}function K(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function O(){if(typeof Reflect=="undefined"||!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(y){return!1}}function _(y){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},_(y)}function S(y,v,s){return v in y?Object.defineProperty(y,v,{value:s,enumerable:!0,configurable:!0,writable:!0}):y[v]=s,y}var w=typeof navigator!="undefined",k=w&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,f=w&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||k)&&!window.MSStream,p="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",n="Hls",t="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",r="dashjs",e="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",o="flvjs",u=/www\.dropbox\.com\/.+/,i=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,a="https://videodelivery.net/{id}/manifest/video.m3u8",d=function(y){z(s,y);var v=N(s);function s(){var l;A(this,s);for(var c=arguments.length,m=new Array(c),D=0;D<c;D++)m[D]=arguments[D];return l=v.call.apply(v,[this].concat(m)),S(K(l),"onReady",function(){var h;return(h=l.props).onReady.apply(h,arguments)}),S(K(l),"onPlay",function(){var h;return(h=l.props).onPlay.apply(h,arguments)}),S(K(l),"onBuffer",function(){var h;return(h=l.props).onBuffer.apply(h,arguments)}),S(K(l),"onBufferEnd",function(){var h;return(h=l.props).onBufferEnd.apply(h,arguments)}),S(K(l),"onPause",function(){var h;return(h=l.props).onPause.apply(h,arguments)}),S(K(l),"onEnded",function(){var h;return(h=l.props).onEnded.apply(h,arguments)}),S(K(l),"onError",function(){var h;return(h=l.props).onError.apply(h,arguments)}),S(K(l),"onPlayBackRateChange",function(h){return l.props.onPlaybackRateChange(h.target.playbackRate)}),S(K(l),"onEnablePIP",function(){var h;return(h=l.props).onEnablePIP.apply(h,arguments)}),S(K(l),"onDisablePIP",function(h){var R=l.props,L=R.onDisablePIP,H=R.playing;L(h),H&&l.play()}),S(K(l),"onPresentationModeChange",function(h){if(l.player&&(0,b.supportsWebKitPresentationMode)(l.player)){var R=l.player.webkitPresentationMode;R==="picture-in-picture"?l.onEnablePIP(h):R==="inline"&&l.onDisablePIP(h)}}),S(K(l),"onSeek",function(h){l.props.onSeek(h.target.currentTime)}),S(K(l),"mute",function(){l.player.muted=!0}),S(K(l),"unmute",function(){l.player.muted=!1}),S(K(l),"renderSourceElement",function(h,R){return typeof h=="string"?U.default.createElement("source",{key:R,src:h}):U.default.createElement("source",I({key:R},h))}),S(K(l),"renderTrack",function(h,R){return U.default.createElement("track",I({key:R},h))}),S(K(l),"ref",function(h){l.player&&(l.prevPlayer=l.player),l.player=h}),l}return C(s,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player),f&&this.player.load()}},{key:"componentDidUpdate",value:function(c){this.shouldUseAudio(this.props)!==this.shouldUseAudio(c)&&(this.removeListeners(this.prevPlayer,c.url),this.addListeners(this.player)),this.props.url!==c.url&&!(0,b.isMediaStream)(this.props.url)&&(this.player.srcObject=null)}},{key:"componentWillUnmount",value:function(){this.removeListeners(this.player),this.hls&&this.hls.destroy()}},{key:"addListeners",value:function(c){var m=this.props,D=m.url,h=m.playsinline;c.addEventListener("play",this.onPlay),c.addEventListener("waiting",this.onBuffer),c.addEventListener("playing",this.onBufferEnd),c.addEventListener("pause",this.onPause),c.addEventListener("seeked",this.onSeek),c.addEventListener("ended",this.onEnded),c.addEventListener("error",this.onError),c.addEventListener("ratechange",this.onPlayBackRateChange),c.addEventListener("enterpictureinpicture",this.onEnablePIP),c.addEventListener("leavepictureinpicture",this.onDisablePIP),c.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(D)||c.addEventListener("canplay",this.onReady),h&&(c.setAttribute("playsinline",""),c.setAttribute("webkit-playsinline",""),c.setAttribute("x5-playsinline",""))}},{key:"removeListeners",value:function(c,m){c.removeEventListener("canplay",this.onReady),c.removeEventListener("play",this.onPlay),c.removeEventListener("waiting",this.onBuffer),c.removeEventListener("playing",this.onBufferEnd),c.removeEventListener("pause",this.onPause),c.removeEventListener("seeked",this.onSeek),c.removeEventListener("ended",this.onEnded),c.removeEventListener("error",this.onError),c.removeEventListener("ratechange",this.onPlayBackRateChange),c.removeEventListener("enterpictureinpicture",this.onEnablePIP),c.removeEventListener("leavepictureinpicture",this.onDisablePIP),c.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(m)||c.removeEventListener("canplay",this.onReady)}},{key:"shouldUseAudio",value:function(c){return c.config.forceVideo||c.config.attributes.poster?!1:T.AUDIO_EXTENSIONS.test(c.url)||c.config.forceAudio}},{key:"shouldUseHLS",value:function(c){return this.props.config.forceHLS?!0:f?!1:T.HLS_EXTENSIONS.test(c)||i.test(c)}},{key:"shouldUseDASH",value:function(c){return T.DASH_EXTENSIONS.test(c)||this.props.config.forceDASH}},{key:"shouldUseFLV",value:function(c){return T.FLV_EXTENSIONS.test(c)||this.props.config.forceFLV}},{key:"load",value:function(c){var m=this,D=this.props.config,h=D.hlsVersion,R=D.hlsOptions,L=D.dashVersion,H=D.flvVersion;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(c)&&(0,b.getSDK)(p.replace("VERSION",h),n).then(function(F){if(m.hls=new F(R),m.hls.on(F.Events.MANIFEST_PARSED,function(){m.props.onReady()}),m.hls.on(F.Events.ERROR,function(X,q){m.props.onError(X,q,m.hls,F)}),i.test(c)){var Y=c.match(i)[1];m.hls.loadSource(a.replace("{id}",Y))}else m.hls.loadSource(c);m.hls.attachMedia(m.player),m.props.onLoaded()}),this.shouldUseDASH(c)&&(0,b.getSDK)(t.replace("VERSION",L),r).then(function(F){m.dash=F.MediaPlayer().create(),m.dash.initialize(m.player,c,m.props.playing),m.dash.on("error",m.props.onError),parseInt(L)<3?m.dash.getDebug().setLogToBrowserConsole(!1):m.dash.updateSettings({debug:{logLevel:F.Debug.LOG_LEVEL_NONE}}),m.props.onLoaded()}),this.shouldUseFLV(c)&&(0,b.getSDK)(e.replace("VERSION",H),o).then(function(F){m.flv=F.createPlayer({type:"flv",url:c}),m.flv.attachMediaElement(m.player),m.flv.on(F.Events.ERROR,function(Y,X){m.props.onError(Y,X,m.flv,F)}),m.flv.load(),m.props.onLoaded()}),c instanceof Array)this.player.load();else if((0,b.isMediaStream)(c))try{this.player.srcObject=c}catch(F){this.player.src=window.URL.createObjectURL(c)}}},{key:"play",value:function(){var c=this.player.play();c&&c.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(c){this.player.currentTime=c}},{key:"setVolume",value:function(c){this.player.volume=c}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,b.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,b.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(c){try{this.player.playbackRate=c}catch(m){this.props.onError(m)}}},{key:"getDuration",value:function(){if(!this.player)return null;var c=this.player,m=c.duration,D=c.seekable;return m===Infinity&&D.length>0?D.end(D.length-1):m}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var c=this.player.buffered;if(c.length===0)return 0;var m=c.end(c.length-1),D=this.getDuration();return m>D?D:m}},{key:"getSource",value:function(c){var m=this.shouldUseHLS(c),D=this.shouldUseDASH(c),h=this.shouldUseFLV(c);if(!(c instanceof Array||(0,b.isMediaStream)(c)||m||D||h))return u.test(c)?c.replace("www.dropbox.com","dl.dropboxusercontent.com"):c}},{key:"render",value:function(){var c=this.props,m=c.url,D=c.playing,h=c.loop,R=c.controls,L=c.muted,H=c.config,F=c.width,Y=c.height,X=this.shouldUseAudio(this.props),q=X?"audio":"video",B={width:F==="auto"?F:"100%",height:Y==="auto"?Y:"100%"};return U.default.createElement(q,I({ref:this.ref,src:this.getSource(m),style:B,preload:"auto",autoPlay:D||void 0,controls:R,muted:L,loop:h},H.attributes),m instanceof Array&&m.map(this.renderSourceElement),H.tracks.map(this.renderTrack))}}]),s}(U.Component);g.default=d,S(d,"displayName","FilePlayer"),S(d,"canPlay",T.canPlay.file)},73911:function(Z,g,E){"use strict";function P(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(n){return typeof n}:P=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(f)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return M=function(){return f},f}function W(f){if(f&&f.__esModule)return f;if(f===null||P(f)!=="object"&&typeof f!="function")return{default:f};var p=M();if(p&&p.has(f))return p.get(f);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in f)if(Object.prototype.hasOwnProperty.call(f,r)){var e=t?Object.getOwnPropertyDescriptor(f,r):null;e&&(e.get||e.set)?Object.defineProperty(n,r,e):n[r]=f[r]}return n.default=f,p&&p.set(f,n),n}function I(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function A(f,p){for(var n=0;n<p.length;n++){var t=p[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}function V(f,p,n){return p&&A(f.prototype,p),n&&A(f,n),f}function C(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&z(f,p)}function z(f,p){return z=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},z(f,p)}function $(f){var p=K();return function(){var t=O(f),r;if(p){var e=O(this).constructor;r=Reflect.construct(t,arguments,e)}else r=t.apply(this,arguments);return N(this,r)}}function N(f,p){return p&&(P(p)==="object"||typeof p=="function")?p:j(f)}function j(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function K(){if(typeof Reflect=="undefined"||!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(f){return!1}}function O(f){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},O(f)}function _(f,p,n){return p in f?Object.defineProperty(f,p,{value:n,enumerable:!0,configurable:!0,writable:!0}):f[p]=n,f}var S="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",k=function(f){C(n,f);var p=$(n);function n(){var t;I(this,n);for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return t=p.call.apply(p,[this].concat(e)),_(j(t),"callPlayer",b.callPlayer),_(j(t),"duration",null),_(j(t),"currentTime",null),_(j(t),"secondsLoaded",null),_(j(t),"mute",function(){t.callPlayer("mute")}),_(j(t),"unmute",function(){t.callPlayer("unmute")}),_(j(t),"ref",function(u){t.iframe=u}),t}return V(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(r){var e=this;(0,b.getSDK)(S,w).then(function(o){!e.iframe||(e.player=new o.Player(e.iframe),e.player.on("ready",function(){setTimeout(function(){e.player.isReady=!0,e.player.setLoop(e.props.loop),e.props.muted&&e.player.mute(),e.addListeners(e.player,e.props),e.props.onReady()},500)}))},this.props.onError)}},{key:"addListeners",value:function(r,e){var o=this;r.on("play",e.onPlay),r.on("pause",e.onPause),r.on("ended",e.onEnded),r.on("error",e.onError),r.on("timeupdate",function(u){var i=u.duration,a=u.seconds;o.duration=i,o.currentTime=a})}},{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"})}}]),n}(U.Component);g.default=k,_(k,"displayName","Kaltura"),_(k,"canPlay",T.canPlay.kaltura)},50143:function(Z,g,E){"use strict";function P(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(r){return typeof r}:P=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P(n)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return M=function(){return n},n}function W(n){if(n&&n.__esModule)return n;if(n===null||P(n)!=="object"&&typeof n!="function")return{default:n};var t=M();if(t&&t.has(n))return t.get(n);var r={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var u=e?Object.getOwnPropertyDescriptor(n,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function I(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,e)}return r}function A(n){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(e){w(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function V(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function z(n,t,r){return t&&C(n.prototype,t),r&&C(n,r),n}function $(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&N(n,t)}function N(n,t){return N=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},N(n,t)}function j(n){var t=_();return function(){var e=S(n),o;if(t){var u=S(this).constructor;o=Reflect.construct(e,arguments,u)}else o=e.apply(this,arguments);return K(this,o)}}function K(n,t){return t&&(P(t)==="object"||typeof t=="function")?t:O(n)}function O(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _(){if(typeof Reflect=="undefined"||!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(n){return!1}}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},S(n)}function w(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}var k="https://widget.mixcloud.com/media/js/widgetApi.js",f="Mixcloud",p=function(n){$(r,n);var t=j(r);function r(){var e;V(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return e=t.call.apply(t,[this].concat(u)),w(O(e),"callPlayer",b.callPlayer),w(O(e),"duration",null),w(O(e),"currentTime",null),w(O(e),"secondsLoaded",null),w(O(e),"mute",function(){}),w(O(e),"unmute",function(){}),w(O(e),"ref",function(a){e.iframe=a}),e}return z(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o){var u=this;(0,b.getSDK)(k,f).then(function(i){u.player=i.PlayerWidget(u.iframe),u.player.ready.then(function(){u.player.events.play.on(u.props.onPlay),u.player.events.pause.on(u.props.onPause),u.player.events.ended.on(u.props.onEnded),u.player.events.error.on(u.props.error),u.player.events.progress.on(function(a,d){u.currentTime=a,u.duration=d}),u.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,u=o.url,i=o.config,a=u.match(T.MATCH_URL_MIXCLOUD)[1],d={width:"100%",height:"100%"},y=(0,b.queryString)(A(A({},i.options),{},{feed:"/".concat(a,"/")}));return U.default.createElement("iframe",{key:a,ref:this.ref,style:d,src:"https://www.mixcloud.com/widget/iframe/?".concat(y),frameBorder:"0"})}}]),r}(U.Component);g.default=p,w(p,"displayName","Mixcloud"),w(p,"canPlay",T.canPlay.mixcloud),w(p,"loopOnEnded",!0)},72648:function(Z,g,E){"use strict";function P(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(r){return typeof r}:P=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P(n)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return M=function(){return n},n}function W(n){if(n&&n.__esModule)return n;if(n===null||P(n)!=="object"&&typeof n!="function")return{default:n};var t=M();if(t&&t.has(n))return t.get(n);var r={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var u=e?Object.getOwnPropertyDescriptor(n,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function I(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,e)}return r}function A(n){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(e){w(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function V(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function z(n,t,r){return t&&C(n.prototype,t),r&&C(n,r),n}function $(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&N(n,t)}function N(n,t){return N=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},N(n,t)}function j(n){var t=_();return function(){var e=S(n),o;if(t){var u=S(this).constructor;o=Reflect.construct(e,arguments,u)}else o=e.apply(this,arguments);return K(this,o)}}function K(n,t){return t&&(P(t)==="object"||typeof t=="function")?t:O(n)}function O(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _(){if(typeof Reflect=="undefined"||!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(n){return!1}}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},S(n)}function w(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}var k="https://w.soundcloud.com/player/api.js",f="SC",p=function(n){$(r,n);var t=j(r);function r(){var e;V(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return e=t.call.apply(t,[this].concat(u)),w(O(e),"callPlayer",b.callPlayer),w(O(e),"duration",null),w(O(e),"currentTime",null),w(O(e),"fractionLoaded",null),w(O(e),"mute",function(){e.setVolume(0)}),w(O(e),"unmute",function(){e.props.volume!==null&&e.setVolume(e.props.volume)}),w(O(e),"ref",function(a){e.iframe=a}),e}return z(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o,u){var i=this;(0,b.getSDK)(k,f).then(function(a){if(!!i.iframe){var d=a.Widget.Events,y=d.PLAY,v=d.PLAY_PROGRESS,s=d.PAUSE,l=d.FINISH,c=d.ERROR;u||(i.player=a.Widget(i.iframe),i.player.bind(y,i.props.onPlay),i.player.bind(s,function(){var m=i.duration-i.currentTime;m<.05||i.props.onPause()}),i.player.bind(v,function(m){i.currentTime=m.currentPosition/1e3,i.fractionLoaded=m.loadedProgress}),i.player.bind(l,function(){return i.props.onEnded()}),i.player.bind(c,function(m){return i.props.onError(m)})),i.player.load(o,A(A({},i.props.config.options),{},{callback:function(){i.player.getDuration(function(D){i.duration=D/1e3,i.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,u={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:u,frameBorder:0,allow:"autoplay"})}}]),r}(U.Component);g.default=p,w(p,"displayName","SoundCloud"),w(p,"canPlay",T.canPlay.soundcloud),w(p,"loopOnEnded",!0)},50993:function(Z,g,E){"use strict";function P(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(n){return typeof n}:P=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(f)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return M=function(){return f},f}function W(f){if(f&&f.__esModule)return f;if(f===null||P(f)!=="object"&&typeof f!="function")return{default:f};var p=M();if(p&&p.has(f))return p.get(f);var n={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in f)if(Object.prototype.hasOwnProperty.call(f,r)){var e=t?Object.getOwnPropertyDescriptor(f,r):null;e&&(e.get||e.set)?Object.defineProperty(n,r,e):n[r]=f[r]}return n.default=f,p&&p.set(f,n),n}function I(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function A(f,p){for(var n=0;n<p.length;n++){var t=p[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}function V(f,p,n){return p&&A(f.prototype,p),n&&A(f,n),f}function C(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),p&&z(f,p)}function z(f,p){return z=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},z(f,p)}function $(f){var p=K();return function(){var t=O(f),r;if(p){var e=O(this).constructor;r=Reflect.construct(t,arguments,e)}else r=t.apply(this,arguments);return N(this,r)}}function N(f,p){return p&&(P(p)==="object"||typeof p=="function")?p:j(f)}function j(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function K(){if(typeof Reflect=="undefined"||!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(f){return!1}}function O(f){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},O(f)}function _(f,p,n){return p in f?Object.defineProperty(f,p,{value:n,enumerable:!0,configurable:!0,writable:!0}):f[p]=n,f}var S="https://cdn.embed.ly/player-0.1.0.min.js",w="playerjs",k=function(f){C(n,f);var p=$(n);function n(){var t;I(this,n);for(var r=arguments.length,e=new Array(r),o=0;o<r;o++)e[o]=arguments[o];return t=p.call.apply(p,[this].concat(e)),_(j(t),"callPlayer",b.callPlayer),_(j(t),"duration",null),_(j(t),"currentTime",null),_(j(t),"secondsLoaded",null),_(j(t),"mute",function(){t.callPlayer("mute")}),_(j(t),"unmute",function(){t.callPlayer("unmute")}),_(j(t),"ref",function(u){t.iframe=u}),t}return V(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(r){var e=this;(0,b.getSDK)(S,w).then(function(o){!e.iframe||(e.player=new o.Player(e.iframe),e.player.setLoop(e.props.loop),e.player.on("ready",e.props.onReady),e.player.on("play",e.props.onPlay),e.player.on("pause",e.props.onPause),e.player.on("seeked",e.props.onSeek),e.player.on("ended",e.props.onEnded),e.player.on("error",e.props.onError),e.player.on("timeupdate",function(u){var i=u.duration,a=u.seconds;e.duration=i,e.currentTime=a}),e.player.on("buffered",function(u){var i=u.percent;e.duration&&(e.secondsLoaded=e.duration*i)}),e.props.muted&&e.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(T.MATCH_URL_STREAMABLE)[1],e={width:"100%",height:"100%"};return U.default.createElement("iframe",{ref:this.ref,src:"https://streamable.com/o/".concat(r),frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;"})}}]),n}(U.Component);g.default=k,_(k,"displayName","Streamable"),_(k,"canPlay",T.canPlay.streamable)},29482:function(Z,g,E){"use strict";function P(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(e){return typeof e}:P=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return M=function(){return t},t}function W(t){if(t&&t.__esModule)return t;if(t===null||P(t)!=="object"&&typeof t!="function")return{default:t};var r=M();if(r&&r.has(t))return r.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var i=o?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(e,u,i):e[u]=t[u]}return e.default=t,r&&r.set(t,e),e}function I(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),e.push.apply(e,o)}return e}function A(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?I(Object(e),!0).forEach(function(o){w(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function V(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function C(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function z(t,r,e){return r&&C(t.prototype,r),e&&C(t,e),t}function $(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&N(t,r)}function N(t,r){return N=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},N(t,r)}function j(t){var r=_();return function(){var o=S(t),u;if(r){var i=S(this).constructor;u=Reflect.construct(o,arguments,i)}else u=o.apply(this,arguments);return K(this,u)}}function K(t,r){return r&&(P(r)==="object"||typeof r=="function")?r:O(t)}function O(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){if(typeof Reflect=="undefined"||!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(t){return!1}}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(t)}function w(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var k="https://player.twitch.tv/js/embed/v1.js",f="Twitch",p="twitch-player-",n=function(t){$(e,t);var r=j(e);function e(){var o;V(this,e);for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),w(O(o),"callPlayer",b.callPlayer),w(O(o),"playerID",o.props.config.playerId||"".concat(p).concat((0,b.randomString)())),w(O(o),"mute",function(){o.callPlayer("setMuted",!0)}),w(O(o),"unmute",function(){o.callPlayer("setMuted",!1)}),o}return z(e,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(u,i){var a=this,d=this.props,y=d.playsinline,v=d.onError,s=d.config,l=d.controls,c=T.MATCH_URL_TWITCH_CHANNEL.test(u),m=c?u.match(T.MATCH_URL_TWITCH_CHANNEL)[1]:u.match(T.MATCH_URL_TWITCH_VIDEO)[1];if(i){c?this.player.setChannel(m):this.player.setVideo("v"+m);return}(0,b.getSDK)(k,f).then(function(D){a.player=new D.Player(a.playerID,A({video:c?"":m,channel:c?m:"",height:"100%",width:"100%",playsinline:y,autoplay:a.props.playing,muted:a.props.muted,controls:c?!0:l,time:(0,b.parseStartTime)(u)},s.options));var h=D.Player,R=h.READY,L=h.PLAYING,H=h.PAUSE,F=h.ENDED,Y=h.ONLINE,X=h.OFFLINE,q=h.SEEK;a.player.addEventListener(R,a.props.onReady),a.player.addEventListener(L,a.props.onPlay),a.player.addEventListener(H,a.props.onPause),a.player.addEventListener(F,a.props.onEnded),a.player.addEventListener(q,a.props.onSeek),a.player.addEventListener(Y,a.props.onLoaded),a.player.addEventListener(X,a.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(u){this.callPlayer("seek",u)}},{key:"setVolume",value:function(u){this.callPlayer("setVolume",u)}},{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 u={width:"100%",height:"100%"};return U.default.createElement("div",{style:u,id:this.playerID})}}]),e}(U.Component);g.default=n,w(n,"displayName","Twitch"),w(n,"canPlay",T.canPlay.twitch),w(n,"loopOnEnded",!0)},36596:function(Z,g,E){"use strict";function P(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(e){return typeof e}:P=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return M=function(){return t},t}function W(t){if(t&&t.__esModule)return t;if(t===null||P(t)!=="object"&&typeof t!="function")return{default:t};var r=M();if(r&&r.has(t))return r.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var i=o?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(e,u,i):e[u]=t[u]}return e.default=t,r&&r.set(t,e),e}function I(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),e.push.apply(e,o)}return e}function A(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?I(Object(e),!0).forEach(function(o){w(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function V(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function C(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function z(t,r,e){return r&&C(t.prototype,r),e&&C(t,e),t}function $(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&N(t,r)}function N(t,r){return N=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},N(t,r)}function j(t){var r=_();return function(){var o=S(t),u;if(r){var i=S(this).constructor;u=Reflect.construct(o,arguments,i)}else u=o.apply(this,arguments);return K(this,u)}}function K(t,r){return r&&(P(r)==="object"||typeof r=="function")?r:O(t)}function O(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){if(typeof Reflect=="undefined"||!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(t){return!1}}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(t)}function w(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var k="https://play.vidyard.com/embed/v4.js",f="VidyardV4",p="onVidyardAPI",n=function(t){$(e,t);var r=j(e);function e(){var o;V(this,e);for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),w(O(o),"callPlayer",b.callPlayer),w(O(o),"mute",function(){o.setVolume(0)}),w(O(o),"unmute",function(){o.props.volume!==null&&o.setVolume(o.props.volume)}),w(O(o),"ref",function(d){o.container=d}),o}return z(e,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(u){var i=this,a=this.props,d=a.playing,y=a.config,v=a.onError,s=a.onDuration,l=u&&u.match(T.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,b.getSDK)(k,f,p).then(function(c){!i.container||(c.api.addReadyListener(function(m,D){i.player||(i.player=D,i.player.on("ready",i.props.onReady),i.player.on("play",i.props.onPlay),i.player.on("pause",i.props.onPause),i.player.on("seek",i.props.onSeek),i.player.on("playerComplete",i.props.onEnded))},l),c.api.renderPlayer(A({uuid:l,container:i.container,autoplay:d?1:0},y.options)),c.api.getPlayerMetadata(l).then(function(m){i.duration=m.length_in_seconds,s(m.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(u){this.callPlayer("seek",u)}},{key:"setVolume",value:function(u){this.callPlayer("setVolume",u)}},{key:"setPlaybackRate",value:function(u){this.callPlayer("setPlaybackSpeed",u)}},{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 u=this.props.display,i={width:"100%",height:"100%",display:u};return U.default.createElement("div",{style:i},U.default.createElement("div",{ref:this.ref}))}}]),e}(U.Component);g.default=n,w(n,"displayName","Vidyard"),w(n,"canPlay",T.canPlay.vidyard)},80868:function(Z,g,E){"use strict";function P(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(r){return typeof r}:P=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},P(n)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return M=function(){return n},n}function W(n){if(n&&n.__esModule)return n;if(n===null||P(n)!=="object"&&typeof n!="function")return{default:n};var t=M();if(t&&t.has(n))return t.get(n);var r={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var u=e?Object.getOwnPropertyDescriptor(n,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=n[o]}return r.default=n,t&&t.set(n,r),r}function I(n,t){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);t&&(e=e.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,e)}return r}function A(n){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I(Object(r),!0).forEach(function(e){w(n,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))})}return n}function V(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function C(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function z(n,t,r){return t&&C(n.prototype,t),r&&C(n,r),n}function $(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&N(n,t)}function N(n,t){return N=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},N(n,t)}function j(n){var t=_();return function(){var e=S(n),o;if(t){var u=S(this).constructor;o=Reflect.construct(e,arguments,u)}else o=e.apply(this,arguments);return K(this,o)}}function K(n,t){return t&&(P(t)==="object"||typeof t=="function")?t:O(n)}function O(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _(){if(typeof Reflect=="undefined"||!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(n){return!1}}function S(n){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},S(n)}function w(n,t,r){return t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n}var k="https://player.vimeo.com/api/player.js",f="Vimeo",p=function(n){$(r,n);var t=j(r);function r(){var e;V(this,r);for(var o=arguments.length,u=new Array(o),i=0;i<o;i++)u[i]=arguments[i];return e=t.call.apply(t,[this].concat(u)),w(O(e),"callPlayer",b.callPlayer),w(O(e),"duration",null),w(O(e),"currentTime",null),w(O(e),"secondsLoaded",null),w(O(e),"mute",function(){e.setVolume(0)}),w(O(e),"unmute",function(){e.props.volume!==null&&e.setVolume(e.props.volume)}),w(O(e),"ref",function(a){e.container=a}),e}return z(r,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(o){var u=this;this.duration=null,(0,b.getSDK)(k,f).then(function(i){if(!!u.container){var a=u.props.config,d=a.playerOptions,y=a.title;u.player=new i.Player(u.container,A({url:o,autoplay:u.props.playing,muted:u.props.muted,loop:u.props.loop,playsinline:u.props.playsinline,controls:u.props.controls},d)),u.player.ready().then(function(){var v=u.container.querySelector("iframe");v.style.width="100%",v.style.height="100%",y&&(v.title=y)}).catch(u.props.onError),u.player.on("loaded",function(){u.props.onReady(),u.refreshDuration()}),u.player.on("play",function(){u.props.onPlay(),u.refreshDuration()}),u.player.on("pause",u.props.onPause),u.player.on("seeked",function(v){return u.props.onSeek(v.seconds)}),u.player.on("ended",u.props.onEnded),u.player.on("error",u.props.onError),u.player.on("timeupdate",function(v){var s=v.seconds;u.currentTime=s}),u.player.on("progress",function(v){var s=v.seconds;u.secondsLoaded=s}),u.player.on("bufferstart",u.props.onBuffer),u.player.on("bufferend",u.props.onBufferEnd)}},this.props.onError)}},{key:"refreshDuration",value:function(){var o=this;this.player.getDuration().then(function(u){o.duration=u})}},{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:"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,u={width:"100%",height:"100%",overflow:"hidden",display:o};return U.default.createElement("div",{key:this.props.url,ref:this.ref,style:u})}}]),r}(U.Component);g.default=p,w(p,"displayName","Vimeo"),w(p,"canPlay",T.canPlay.vimeo),w(p,"forceLoad",!0)},8018:function(Z,g,E){"use strict";function P(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(e){return typeof e}:P=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(t)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return M=function(){return t},t}function W(t){if(t&&t.__esModule)return t;if(t===null||P(t)!=="object"&&typeof t!="function")return{default:t};var r=M();if(r&&r.has(t))return r.get(t);var e={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if(Object.prototype.hasOwnProperty.call(t,u)){var i=o?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(e,u,i):e[u]=t[u]}return e.default=t,r&&r.set(t,e),e}function I(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),e.push.apply(e,o)}return e}function A(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?I(Object(e),!0).forEach(function(o){w(t,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(e,o))})}return t}function V(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function C(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function z(t,r,e){return r&&C(t.prototype,r),e&&C(t,e),t}function $(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&N(t,r)}function N(t,r){return N=Object.setPrototypeOf||function(o,u){return o.__proto__=u,o},N(t,r)}function j(t){var r=_();return function(){var o=S(t),u;if(r){var i=S(this).constructor;u=Reflect.construct(o,arguments,i)}else u=o.apply(this,arguments);return K(this,u)}}function K(t,r){return r&&(P(r)==="object"||typeof r=="function")?r:O(t)}function O(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){if(typeof Reflect=="undefined"||!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(t){return!1}}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(t)}function w(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var k="https://fast.wistia.com/assets/external/E-v1.js",f="Wistia",p="wistia-player-",n=function(t){$(e,t);var r=j(e);function e(){var o;V(this,e);for(var u=arguments.length,i=new Array(u),a=0;a<u;a++)i[a]=arguments[a];return o=r.call.apply(r,[this].concat(i)),w(O(o),"callPlayer",b.callPlayer),w(O(o),"playerID",o.props.config.playerId||"".concat(p).concat((0,b.randomString)())),w(O(o),"onPlay",function(){var d;return(d=o.props).onPlay.apply(d,arguments)}),w(O(o),"onPause",function(){var d;return(d=o.props).onPause.apply(d,arguments)}),w(O(o),"onSeek",function(){var d;return(d=o.props).onSeek.apply(d,arguments)}),w(O(o),"onEnded",function(){var d;return(d=o.props).onEnded.apply(d,arguments)}),w(O(o),"onPlaybackRateChange",function(){var d;return(d=o.props).onPlaybackRateChange.apply(d,arguments)}),w(O(o),"mute",function(){o.callPlayer("mute")}),w(O(o),"unmute",function(){o.callPlayer("unmute")}),o}return z(e,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"load",value:function(u){var i=this,a=this.props,d=a.playing,y=a.muted,v=a.controls,s=a.onReady,l=a.config,c=a.onError;(0,b.getSDK)(k,f).then(function(m){l.customControls&&l.customControls.forEach(function(D){return m.defineControl(D)}),window._wq=window._wq||[],window._wq.push({id:i.playerID,options:A({autoPlay:d,silentAutoPlay:"allow",muted:y,controlsVisibleOnLoad:v,fullscreenButton:v,playbar:v,playbackRateControl:v,qualityControl:v,volumeControl:v,settingsControl:v,smallPlayButton:v},l.options),onReady:function(h){i.player=h,i.unbind(),i.player.bind("play",i.onPlay),i.player.bind("pause",i.onPause),i.player.bind("seek",i.onSeek),i.player.bind("end",i.onEnded),i.player.bind("playbackratechange",i.onPlaybackRateChange),s()}})},c)}},{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(u){this.callPlayer("time",u)}},{key:"setVolume",value:function(u){this.callPlayer("volume",u)}},{key:"setPlaybackRate",value:function(u){this.callPlayer("playbackRate",u)}},{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 u=this.props.url,i=u&&u.match(T.MATCH_URL_WISTIA)[1],a="wistia_embed wistia_async_".concat(i),d={width:"100%",height:"100%"};return U.default.createElement("div",{id:this.playerID,key:i,className:a,style:d})}}]),e}(U.Component);g.default=n,w(n,"displayName","Wistia"),w(n,"canPlay",T.canPlay.wistia),w(n,"loopOnEnded",!0)},60356:function(Z,g,E){"use strict";function P(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?P=function(c){return typeof c}:P=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},P(s)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var U=W(E(67294)),b=E(38045),T=E(71776);function M(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return M=function(){return s},s}function W(s){if(s&&s.__esModule)return s;if(s===null||P(s)!=="object"&&typeof s!="function")return{default:s};var l=M();if(l&&l.has(s))return l.get(s);var c={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var D in s)if(Object.prototype.hasOwnProperty.call(s,D)){var h=m?Object.getOwnPropertyDescriptor(s,D):null;h&&(h.get||h.set)?Object.defineProperty(c,D,h):c[D]=s[D]}return c.default=s,l&&l.set(s,c),c}function I(s,l){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(s);l&&(m=m.filter(function(D){return Object.getOwnPropertyDescriptor(s,D).enumerable})),c.push.apply(c,m)}return c}function A(s){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?I(Object(c),!0).forEach(function(m){r(s,m,c[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(c)):I(Object(c)).forEach(function(m){Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(c,m))})}return s}function V(s,l){return j(s)||N(s,l)||z(s,l)||C()}function C(){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 z(s,l){if(!!s){if(typeof s=="string")return $(s,l);var c=Object.prototype.toString.call(s).slice(8,-1);if(c==="Object"&&s.constructor&&(c=s.constructor.name),c==="Map"||c==="Set")return Array.from(s);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return $(s,l)}}function $(s,l){(l==null||l>s.length)&&(l=s.length);for(var c=0,m=new Array(l);c<l;c++)m[c]=s[c];return m}function N(s,l){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(s)))){var c=[],m=!0,D=!1,h=void 0;try{for(var R=s[Symbol.iterator](),L;!(m=(L=R.next()).done)&&(c.push(L.value),!(l&&c.length===l));m=!0);}catch(H){D=!0,h=H}finally{try{!m&&R.return!=null&&R.return()}finally{if(D)throw h}}return c}}function j(s){if(Array.isArray(s))return s}function K(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function O(s,l){for(var c=0;c<l.length;c++){var m=l[c];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(s,m.key,m)}}function _(s,l,c){return l&&O(s.prototype,l),c&&O(s,c),s}function S(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),l&&w(s,l)}function w(s,l){return w=Object.setPrototypeOf||function(m,D){return m.__proto__=D,m},w(s,l)}function k(s){var l=n();return function(){var m=t(s),D;if(l){var h=t(this).constructor;D=Reflect.construct(m,arguments,h)}else D=m.apply(this,arguments);return f(this,D)}}function f(s,l){return l&&(P(l)==="object"||typeof l=="function")?l:p(s)}function p(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function n(){if(typeof Reflect=="undefined"||!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(s){return!1}}function t(s){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(c){return c.__proto__||Object.getPrototypeOf(c)},t(s)}function r(s,l,c){return l in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,s}var e="https://www.youtube.com/iframe_api",o="YT",u="onYouTubeIframeAPIReady",i=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,a=/user\/([a-zA-Z0-9_-]+)\/?/,d=/youtube-nocookie\.com/,y="https://www.youtube-nocookie.com",v=function(s){S(c,s);var l=k(c);function c(){var m;K(this,c);for(var D=arguments.length,h=new Array(D),R=0;R<D;R++)h[R]=arguments[R];return m=l.call.apply(l,[this].concat(h)),r(p(m),"callPlayer",b.callPlayer),r(p(m),"parsePlaylist",function(L){if(L instanceof Array)return{listType:"playlist",playlist:L.map(m.getID).join(",")};if(i.test(L)){var H=L.match(i),F=V(H,2),Y=F[1];return{listType:"playlist",list:Y.replace(/^UC/,"UU")}}if(a.test(L)){var X=L.match(a),q=V(X,2),B=q[1];return{listType:"user_uploads",list:B}}return{}}),r(p(m),"onStateChange",function(L){var H=L.data,F=m.props,Y=F.onPlay,X=F.onPause,q=F.onBuffer,B=F.onBufferEnd,Q=F.onEnded,J=F.onReady,re=F.loop,x=F.config,G=x.playerVars,ee=x.onUnstarted,te=window[o].PlayerState,ne=te.UNSTARTED,oe=te.PLAYING,ae=te.PAUSED,ie=te.BUFFERING,ue=te.ENDED,le=te.CUED;if(H===ne&&ee(),H===oe&&(Y(),B()),H===ae&&X(),H===ie&&q(),H===ue){var ce=!!m.callPlayer("getPlaylist");re&&!ce&&(G.start?m.seekTo(G.start):m.play()),Q()}H===le&&J()}),r(p(m),"mute",function(){m.callPlayer("mute")}),r(p(m),"unmute",function(){m.callPlayer("unMute")}),r(p(m),"ref",function(L){m.container=L}),m}return _(c,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(D){return!D||D instanceof Array||i.test(D)?null:D.match(T.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(D,h){var R=this,L=this.props,H=L.playing,F=L.muted,Y=L.playsinline,X=L.controls,q=L.loop,B=L.config,Q=L.onError,J=B.playerVars,re=B.embedOptions,x=this.getID(D);if(h){if(i.test(D)||a.test(D)||D instanceof Array){this.player.loadPlaylist(this.parsePlaylist(D));return}this.player.cueVideoById({videoId:x,startSeconds:(0,b.parseStartTime)(D)||J.start,endSeconds:(0,b.parseEndTime)(D)||J.end});return}(0,b.getSDK)(e,o,u,function(G){return G.loaded}).then(function(G){!R.container||(R.player=new G.Player(R.container,A({width:"100%",height:"100%",videoId:x,playerVars:A(A({autoplay:H?1:0,mute:F?1:0,controls:X?1:0,start:(0,b.parseStartTime)(D),end:(0,b.parseEndTime)(D),origin:window.location.origin,playsinline:Y?1:0},R.parsePlaylist(D)),J),events:{onReady:function(){q&&R.player.setLoop(!0),R.props.onReady()},onPlaybackRateChange:function(te){return R.props.onPlaybackRateChange(te.data)},onStateChange:R.onStateChange,onError:function(te){return Q(te.data)}},host:d.test(D)?y:void 0},re)))},Q),re.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s 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(D){this.callPlayer("seekTo",D),this.props.playing||this.pause()}},{key:"setVolume",value:function(D){this.callPlayer("setVolume",D*100)}},{key:"setPlaybackRate",value:function(D){this.callPlayer("setPlaybackRate",D)}},{key:"setLoop",value:function(D){this.callPlayer("setLoop",D)}},{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 D=this.props.display,h={width:"100%",height:"100%",display:D};return U.default.createElement("div",{style:h},U.default.createElement("div",{ref:this.ref}))}}]),c}(U.Component);g.default=v,r(v,"displayName","YouTube"),r(v,"canPlay",T.canPlay.youtube)},86497:function(Z,g,E){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var P=E(67294),U=E(38045),b=E(71776);function T(A){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(C){return typeof C}:T=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},T(A)}function M(){if(typeof WeakMap!="function")return null;var A=new WeakMap;return M=function(){return A},A}function W(A){if(A&&A.__esModule)return A;if(A===null||T(A)!=="object"&&typeof A!="function")return{default:A};var V=M();if(V&&V.has(A))return V.get(A);var C={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in A)if(Object.prototype.hasOwnProperty.call(A,$)){var N=z?Object.getOwnPropertyDescriptor(A,$):null;N&&(N.get||N.set)?Object.defineProperty(C,$,N):C[$]=A[$]}return C.default=A,V&&V.set(A,C),C}var I=[{key:"youtube",name:"YouTube",canPlay:b.canPlay.youtube,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(60356))})})},{key:"soundcloud",name:"SoundCloud",canPlay:b.canPlay.soundcloud,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(72648))})})},{key:"vimeo",name:"Vimeo",canPlay:b.canPlay.vimeo,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(80868))})})},{key:"facebook",name:"Facebook",canPlay:b.canPlay.facebook,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(31972))})})},{key:"streamable",name:"Streamable",canPlay:b.canPlay.streamable,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(50993))})})},{key:"wistia",name:"Wistia",canPlay:b.canPlay.wistia,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(8018))})})},{key:"twitch",name:"Twitch",canPlay:b.canPlay.twitch,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(29482))})})},{key:"dailymotion",name:"DailyMotion",canPlay:b.canPlay.dailymotion,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(36807))})})},{key:"mixcloud",name:"Mixcloud",canPlay:b.canPlay.mixcloud,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(50143))})})},{key:"vidyard",name:"Vidyard",canPlay:b.canPlay.vidyard,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(36596))})})},{key:"kaltura",name:"Kaltura",canPlay:b.canPlay.kaltura,lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(73911))})})},{key:"file",name:"FilePlayer",canPlay:b.canPlay.file,canEnablePIP:function(V){return b.canPlay.file(V)&&(document.pictureInPictureEnabled||(0,U.supportsWebKitPresentationMode)())&&!b.AUDIO_EXTENSIONS.test(V)},lazyPlayer:(0,P.lazy)(function(){return Promise.resolve().then(function(){return W(E(14926))})})}];g.default=I},85741:function(Z,g,E){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.defaultProps=g.propTypes=void 0;var P=U(E(45697));function U(K){return K&&K.__esModule?K:{default:K}}var b=P.default.string,T=P.default.bool,M=P.default.number,W=P.default.array,I=P.default.oneOfType,A=P.default.shape,V=P.default.object,C=P.default.func,z=P.default.node,$={url:I([b,W,V]),playing:T,loop:T,controls:T,volume:M,muted:T,playbackRate:M,width:I([b,M]),height:I([b,M]),style:V,progressInterval:M,playsinline:T,pip:T,stopOnUnmount:T,light:I([T,b]),playIcon:z,previewTabIndex:M,fallback:z,oEmbedUrl:b,wrapper:I([b,C,A({render:C.isRequired})]),config:A({soundcloud:A({options:V}),youtube:A({playerVars:V,embedOptions:V,onUnstarted:C}),facebook:A({appId:b,version:b,playerId:b,attributes:V}),dailymotion:A({params:V}),vimeo:A({playerOptions:V,title:b}),file:A({attributes:V,tracks:W,forceVideo:T,forceAudio:T,forceHLS:T,forceDASH:T,forceFLV:T,hlsOptions:V,hlsVersion:b,dashVersion:b,flvVersion:b}),wistia:A({options:V,playerId:b,customControls:W}),mixcloud:A({options:V}),twitch:A({options:V,playerId:b}),vidyard:A({options:V})}),onReady:C,onStart:C,onPlay:C,onPause:C,onBuffer:C,onBufferEnd:C,onEnded:C,onError:C,onDuration:C,onSeek:C,onPlaybackRateChange:C,onProgress:C,onClickPreview:C,onEnablePIP:C,onDisablePIP:C};g.propTypes=$;var N=function(){},j={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:N},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:N,onStart:N,onPlay:N,onPause:N,onBuffer:N,onBufferEnd:N,onEnded:N,onError:N,onDuration:N,onSeek:N,onPlaybackRateChange:N,onProgress:N,onClickPreview:N,onEnablePIP:N,onDisablePIP:N};g.defaultProps=j},38045:function(Z,g,E){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.parseStartTime=O,g.parseEndTime=_,g.randomString=S,g.queryString=w,g.getSDK=p,g.getConfig=n,g.omit=t,g.callPlayer=r,g.isMediaStream=e,g.isBlobUrl=o,g.supportsWebKitPresentationMode=u;var P=b(E(49090)),U=b(E(82819));function b(i){return i&&i.__esModule?i:{default:i}}function T(i,a){return V(i)||A(i,a)||W(i,a)||M()}function M(){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 W(i,a){if(!!i){if(typeof i=="string")return I(i,a);var d=Object.prototype.toString.call(i).slice(8,-1);if(d==="Object"&&i.constructor&&(d=i.constructor.name),d==="Map"||d==="Set")return Array.from(i);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return I(i,a)}}function I(i,a){(a==null||a>i.length)&&(a=i.length);for(var d=0,y=new Array(a);d<a;d++)y[d]=i[d];return y}function A(i,a){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(i)))){var d=[],y=!0,v=!1,s=void 0;try{for(var l=i[Symbol.iterator](),c;!(y=(c=l.next()).done)&&(d.push(c.value),!(a&&d.length===a));y=!0);}catch(m){v=!0,s=m}finally{try{!y&&l.return!=null&&l.return()}finally{if(v)throw s}}return d}}function V(i){if(Array.isArray(i))return i}var C=/[?&#](?:start|t)=([0-9hms]+)/,z=/[?&#]end=([0-9hms]+)/,$=/(\d+)(h|m|s)/g,N=/^\d+$/;function j(i,a){if(!(i instanceof Array)){var d=i.match(a);if(d){var y=d[1];if(y.match($))return K(y);if(N.test(y))return parseInt(y)}}}function K(i){for(var a=0,d=$.exec(i);d!==null;){var y=d,v=T(y,3),s=v[1],l=v[2];l==="h"&&(a+=parseInt(s,10)*60*60),l==="m"&&(a+=parseInt(s,10)*60),l==="s"&&(a+=parseInt(s,10)),d=$.exec(i)}return a}function O(i){return j(i,C)}function _(i){return j(i,z)}function S(){return Math.random().toString(36).substr(2,5)}function w(i){return Object.keys(i).map(function(a){return"".concat(a,"=").concat(i[a])}).join("&")}function k(i){return window[i]?window[i]:window.exports&&window.exports[i]?window.exports[i]:window.module&&window.module.exports&&window.module.exports[i]?window.module.exports[i]:null}var f={};function p(i,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:P.default,s=k(a);return s&&y(s)?Promise.resolve(s):new Promise(function(l,c){if(f[i]){f[i].push({resolve:l,reject:c});return}f[i]=[{resolve:l,reject:c}];var m=function(R){f[i].forEach(function(L){return L.resolve(R)})};if(d){var D=window[d];window[d]=function(){D&&D(),m(k(a))}}v(i,function(h){h?(f[i].forEach(function(R){return R.reject(h)}),f[i]=null):d||m(k(a))})})}function n(i,a){return(0,U.default)(a.config,i.config)}function t(i){for(var a,d=arguments.length,y=new Array(d>1?d-1:0),v=1;v<d;v++)y[v-1]=arguments[v];for(var s=(a=[]).concat.apply(a,y),l={},c=Object.keys(i),m=0,D=c;m<D.length;m++){var h=D[m];s.indexOf(h)===-1&&(l[h]=i[h])}return l}function r(i){var a;if(!this.player||!this.player[i]){var d="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(i,"%c \u2013 ");return this.player?this.player[i]||(d+="The method was not available"):d+="The player was not available",console.warn(d,"font-weight: bold",""),null}for(var y=arguments.length,v=new Array(y>1?y-1:0),s=1;s<y;s++)v[s-1]=arguments[s];return(a=this.player)[i].apply(a,v)}function e(i){return typeof window!="undefined"&&typeof window.MediaStream!="undefined"&&i instanceof window.MediaStream}function o(i){return/^blob:/.test(i)}function u(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),a=/iPhone|iPod/.test(navigator.userAgent)===!1;return i.webkitSupportsPresentationMode&&typeof i.webkitSetPresentationMode=="function"&&a}},82819:function(Z){"use strict";var g=function(_){return E(_)&&!P(_)};function E(O){return!!O&&typeof O=="object"}function P(O){var _=Object.prototype.toString.call(O);return _==="[object RegExp]"||_==="[object Date]"||T(O)}var U=typeof Symbol=="function"&&Symbol.for,b=U?Symbol.for("react.element"):60103;function T(O){return O.$$typeof===b}function M(O){return Array.isArray(O)?[]:{}}function W(O,_){return _.clone!==!1&&_.isMergeableObject(O)?j(M(O),O,_):O}function I(O,_,S){return O.concat(_).map(function(w){return W(w,S)})}function A(O,_){if(!_.customMerge)return j;var S=_.customMerge(O);return typeof S=="function"?S:j}function V(O){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(O).filter(function(_){return O.propertyIsEnumerable(_)}):[]}function C(O){return Object.keys(O).concat(V(O))}function z(O,_){try{return _ in O}catch(S){return!1}}function $(O,_){return z(O,_)&&!(Object.hasOwnProperty.call(O,_)&&Object.propertyIsEnumerable.call(O,_))}function N(O,_,S){var w={};return S.isMergeableObject(O)&&C(O).forEach(function(k){w[k]=W(O[k],S)}),C(_).forEach(function(k){$(O,k)||(z(O,k)&&S.isMergeableObject(_[k])?w[k]=A(k,S)(O[k],_[k],S):w[k]=W(_[k],S))}),w}function j(O,_,S){S=S||{},S.arrayMerge=S.arrayMerge||I,S.isMergeableObject=S.isMergeableObject||g,S.cloneUnlessOtherwiseSpecified=W;var w=Array.isArray(_),k=Array.isArray(O),f=w===k;return f?w?S.arrayMerge(O,_,S):N(O,_,S):W(_,S)}j.all=function(_,S){if(!Array.isArray(_))throw new Error("first argument should be an array");return _.reduce(function(w,k){return j(w,k,S)},{})};var K=j;Z.exports=K}}]);
|