Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-player

Package Overview
Dependencies
Maintainers
1
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-player - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Change Log

#### [v0.11.0](https://github.com/CookPete/react-player/compare/v0.10.0...v0.11.0)
> 26 September 2016
* Add onReady prop [`#106`](https://github.com/CookPete/react-player/issues/106)
#### [v0.10.0](https://github.com/CookPete/react-player/compare/v0.9.0...v0.10.0)

@@ -9,0 +15,0 @@ > 25 September 2016

4

dist/ReactPlayer.js

@@ -1,3 +0,3 @@

var ReactPlayer=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(1),p=r(c),f=n(6),d=n(13),h=r(d),y=n(10),v=r(y),m=n(12),b=r(m),g=n(4),_=r(g),w=n(11),P=r(w),T=function(t){function e(){var t,n,r,s;i(this,e);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.seekTo=function(t){r.player&&r.player.seekTo(t)},r.progress=function(){if(r.props.url&&r.player){var t=r.player.getFractionLoaded()||0,e=r.player.getFractionPlayed()||0,n={};t!==r.prevLoaded&&(n.loaded=t),e!==r.prevPlayed&&r.props.playing&&(n.played=e),(n.loaded||n.playing)&&r.props.onProgress(n),r.prevLoaded=t,r.prevPlayed=e}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency)},r.renderPlayer=function(t){var e=t.canPlay(r.props.url),n=r.props,i=n.youtubeConfig,a=n.soundcloudConfig,s=n.vimeoConfig,l=n.fileConfig,c=o(n,["youtubeConfig","soundcloudConfig","vimeoConfig","fileConfig"]),f=function(t){r.player=t},d=e?u({},c,{ref:f}):{};return p["default"].createElement(t,u({key:t.displayName,youtubeConfig:i,soundcloudConfig:a,vimeoConfig:s,fileConfig:l},d))},s=n,a(r,s)}return s(e,t),l(e,[{key:"componentDidMount",value:function(){this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url||this.props.playing!==t.playing||this.props.volume!==t.volume||this.props.height!==t.height||this.props.width!==t.width||this.props.hidden!==t.hidden}},{key:"renderPlayers",value:function(){var t=this.props,e=t.url,n=t.youtubeConfig,r=t.vimeoConfig,o=[];return h["default"].canPlay(e)?o.push(h["default"]):v["default"].canPlay(e)?o.push(v["default"]):b["default"].canPlay(e)?o.push(b["default"]):P["default"].canPlay(e)?o.push(P["default"]):e&&o.push(_["default"]),!h["default"].canPlay(e)&&n.preload&&o.push(h["default"]),!b["default"].canPlay(e)&&r.preload&&o.push(b["default"]),o.map(this.renderPlayer)}},{key:"render",value:function(){var t=u({},this.props.style,{width:this.props.width,height:this.props.height});return p["default"].createElement("div",{style:t,className:this.props.className,hidden:this.props.hidden},this.renderPlayers())}}]),e}(c.Component);T.displayName="ReactPlayer",T.propTypes=f.propTypes,T.defaultProps=f.defaultProps,e["default"]=T,t.exports=e["default"]},function(t,e){t.exports=React},function(t,e,n){var r;(function(t,o,i){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function u(t){J=t}function l(t){tt=t}function c(){return function(){t.nextTick(y)}}function p(){return function(){z(y)}}function f(){var t=0,e=new rt(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=y,function(){t.port2.postMessage(0)}}function h(){return function(){setTimeout(y,1)}}function y(){for(var t=0;t<Z;t+=2){var e=at[t],n=at[t+1];e(n),at[t]=void 0,at[t+1]=void 0}Z=0}function v(){try{var t=n(23);return z=t.runOnLoop||t.runOnContext,p()}catch(e){return h()}}function m(t,e){var n=this,r=new this.constructor(g);void 0===r[lt]&&U(r);var o=n._state;if(o){var i=arguments[o-1];tt(function(){M(o,r,i,n._result)})}else A(n,r,t,e);return r}function b(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return dt.error=e,dt}}function T(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function O(t,e,n){tt(function(t){var r=!1,o=T(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function E(t,e){e._state===pt?x(t,e._result):e._state===ft?S(t,e._result):A(e,void 0,function(e){k(t,e)},function(e){S(t,e)})}function j(t,e,n){e.constructor===t.constructor&&n===st&&constructor.resolve===ut?E(t,e):n===dt?S(t,dt.error):void 0===n?x(t,e):s(n)?O(t,e,n):x(t,e)}function k(t,e){t===e?S(t,_()):a(e)?j(t,e,P(e)):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===ct&&(t._result=e,t._state=pt,0!==t._subscribers.length&&tt(R,t))}function S(t,e){t._state===ct&&(t._state=ft,t._result=e,tt(C,t))}function A(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+pt]=n,o[i+ft]=r,0===i&&t._state&&tt(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?M(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function I(t,e){try{return t(e)}catch(n){return ht.error=n,ht}}function M(t,e,n,r){var o,i,a,u,l=s(n);if(l){if(o=I(n,r),o===ht?(u=!0,i=o.error,o=null):a=!0,e===o)return void S(e,w())}else o=r,a=!0;e._state!==ct||(l&&a?k(e,o):u?S(e,i):t===pt?x(e,o):t===ft&&S(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function F(){return yt++}function U(t){t[lt]=yt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function B(t){return new _t(this,t).promise}function N(t){var e=this;return new e(Q(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function V(t){var e=this,n=new e(g);return S(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this[lt]=F(),this._result=this._state=void 0,this._subscribers=[],g!==t&&("function"!=typeof t&&q(),this instanceof H?L(this,t):W())}function Y(t,e){this._instanceConstructor=t,this.promise=new t(g),this.promise[lt]||U(this.promise),Q(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&x(this.promise,this._result))):S(this.promise,$())}function $(){return new Error("Array Methods must be provided an Array")}function G(){var t;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=gt)}var K;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var z,J,X,Q=K,Z=0,tt=function(t,e){at[Z]=t,at[Z+1]=e,Z+=2,2===Z&&(J?J(y):X())},et="undefined"!=typeof window?window:void 0,nt=et||{},rt=nt.MutationObserver||nt.WebKitMutationObserver,ot="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),it="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,at=new Array(1e3);X=ot?c():rt?f():it?d():void 0===et?v():h();var st=m,ut=b,lt=Math.random().toString(36).substring(16),ct=void 0,pt=1,ft=2,dt=new D,ht=new D,yt=0,vt=B,mt=N,bt=V,gt=H;H.all=vt,H.race=mt,H.resolve=ut,H.reject=bt,H._setScheduler=u,H._setAsap=l,H._asap=tt,H.prototype={constructor:H,then:st,"catch":function(t){return this.then(null,t)}};var _t=Y;Y.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ct&&n<t;n++)this._eachEntry(e[n],n)},Y.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===ut){var o=P(t);if(o===st&&t._state!==ct)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===gt){var i=new n(g);j(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},Y.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ct&&(this._remaining--,t===ft?S(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},Y.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,function(t){n._settledAt(pt,e,t)},function(t){n._settledAt(ft,e,t)})};var wt=G,Pt={Promise:gt,polyfill:wt};n(8).amd?(r=function(){return Pt}.call(e,n,e,i),!(void 0!==r&&(i.exports=r))):"undefined"!=typeof i&&i.exports?i.exports=Pt:"undefined"!=typeof this&&(this.ES6Promise=Pt),wt()}).call(this),i.exports=o.Promise}).call(e,n(7),function(){return this}(),n(9)(t))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(1),u=n(6),l=5e3,c=function(t){function e(){var t,n,i,a;r(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),i.isReady=!1,i.startOnPlay=!0,i.durationOnPlay=!1,i.seekOnPlay=null,i.onPlay=function(){i.startOnPlay&&(i.setVolume(i.props.volume),i.props.onStart(),i.startOnPlay=!1),i.props.onPlay(),i.seekOnPlay&&(i.seekTo(i.seekOnPlay),i.seekOnPlay=null),i.durationOnPlay&&(i.props.onDuration(i.getDuration()),i.durationOnPlay=!1)},i.onReady=function(){i.isReady=!0,(i.props.playing||i.preloading)&&(i.preloading=!1,i.loadOnReady?(i.load(i.loadOnReady),i.loadOnReady=null):i.play());var t=i.getDuration();t?i.props.onDuration(t):i.durationOnPlay=!0},a=n,o(i,a)}return i(e,t),a(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.url&&this.load(this.props.url)}},{key:"componentWillUnmount",value:function(){this.stop(),this.mounted=!1}},{key:"componentWillReceiveProps",value:function(t){this.props.url!==t.url&&t.url?(this.seekOnPlay=null,this.startOnPlay=!0,this.load(t.url)):this.props.url&&!t.url?(this.stop(),clearTimeout(this.updateTimeout)):!this.props.playing&&t.playing?this.play():this.props.playing&&!t.playing?this.pause():this.props.volume!==t.volume&&this.setVolume(t.volume)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url}},{key:"seekTo",value:function(t){var e=this;this.isReady||0===t||(this.seekOnPlay=t,setTimeout(function(){e.seekOnPlay=null},l))}}]),e}(s.Component);c.propTypes=u.propTypes,c.defaultProps=u.defaultProps,e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function v(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:v(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=r(c),f=n(3),d=r(f),h=/\.(mp3|wav|m4a)($|\?)/i,y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"componentDidMount",value:function(){var t=this;this.player.addEventListener("canplay",this.onReady),this.player.addEventListener("play",this.onPlay),this.player.addEventListener("pause",function(){t.mounted&&t.props.onPause()}),this.player.addEventListener("ended",this.props.onEnded),this.player.addEventListener("error",this.props.onError),this.player.setAttribute("webkit-playsinline",""),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){this.player.removeEventListener("canplay",this.onReady),this.player.removeEventListener("play",this.onPlay),this.player.removeEventListener("pause",this.props.onPause),this.player.removeEventListener("ended",this.props.onEnded),this.player.removeEventListener("error",this.props.onError),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"load",value:function(t){this.player.src=t}},{key:"play",value:function(){this.player.play()}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src")}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.player.currentTime=this.getDuration()*t}},{key:"setVolume",value:function(t){this.player.volume=t}},{key:"getDuration",value:function(){return this.isReady?this.player.duration:null}},{key:"getFractionPlayed",value:function(){return this.isReady?this.player.currentTime/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&0!==this.player.buffered.length?this.player.buffered.end(0)/this.getDuration():null}},{key:"render",value:function(){var t=this,e=this.props,n=e.loop,r=e.controls,o=e.fileConfig,i=h.test(this.props.url)?"audio":"video",a={width:"100%",height:"100%",display:this.props.url?"block":"none"};return p["default"].createElement(i,s({ref:function(e){t.player=e},style:a,preload:"auto",controls:r,loop:n},o.attributes))}}],[{key:"canPlay",value:function(t){return!0}}]),e}(d["default"]);y.displayName="FilePlayer",e["default"]=y,t.exports=e["default"]},function(t,e,n){(function(t,r){function o(t,e){this._id=t,this._clearFn=e}var i=n(22).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,u={},l=0;e.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=l++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,i(function(){u[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(e,n(5).setImmediate,n(5).clearImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=e.propTypes=void 0;var r=n(1);e.propTypes={url:r.PropTypes.string,playing:r.PropTypes.bool,loop:r.PropTypes.bool,controls:r.PropTypes.bool,volume:r.PropTypes.number,width:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),height:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),hidden:r.PropTypes.bool,className:r.PropTypes.string,style:r.PropTypes.object,progressFrequency:r.PropTypes.number,soundcloudConfig:r.PropTypes.shape({clientId:r.PropTypes.string}),youtubeConfig:r.PropTypes.shape({playerVars:r.PropTypes.object,preload:r.PropTypes.bool}),vimeoConfig:r.PropTypes.shape({iframeParams:r.PropTypes.object,preload:r.PropTypes.bool}),fileConfig:r.PropTypes.shape({attributes:r.PropTypes.object}),onStart:r.PropTypes.func,onPlay:r.PropTypes.func,onPause:r.PropTypes.func,onBuffer:r.PropTypes.func,onEnded:r.PropTypes.func,onError:r.PropTypes.func,onDuration:r.PropTypes.func,onProgress:r.PropTypes.func},e.defaultProps={playing:!1,loop:!1,controls:!1,volume:.8,width:640,height:360,hidden:!1,progressFrequency:1e3,soundcloudConfig:{clientId:"e8b6f84fbcad14c301ca1355cae1dea2"},youtubeConfig:{playerVars:{},preload:!1},vimeoConfig:{iframeParams:{},preload:!1},fileConfig:{attributes:{}},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onProgress:function(){}}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&s())}function s(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,p,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var d,h=[],y=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function _(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:_(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=o(c),f=n(17),d=o(f),h=n(4),y=o(h),v="//api.soundcloud.com/resolve.json",m=/^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-_]+\/[a-z0-9-_]+)$/,b={},g=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.state={image:null},o=n,a(r,o)}return s(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t,n){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"shouldComponentUpdate",this).call(this,t,n)||this.state.image!==n.image}},{key:"getSongData",value:function(t){var e=this;return b[t]?r.resolve(b[t]):(0,d["default"])(v+"?url="+t+"&client_id="+this.props.soundcloudConfig.clientId).then(function(n){return n.ok?(b[t]=n.json(),b[t]):void e.props.onError(new Error("SoundCloud track could not be resolved"))})}},{key:"load",value:function(t){var e=this;this.stop(),this.getSongData(t).then(function(t){if(e.mounted){if(!t.streamable)return void e.props.onError(new Error("SoundCloud track is not streamable"));var n=t.artwork_url||t.user.avatar_url;n&&e.setState({image:n.replace("-large","-t500x500")}),e.player.src=t.stream_url+"?client_id="+e.props.soundcloudConfig.clientId}},this.props.onError)}},{key:"render",value:function(){var t=this,e=this.props,n=e.url,r=e.loop,o=e.controls,i={display:n?"block":"none",height:"100%",backgroundImage:this.state.image?"url("+this.state.image+")":null,backgroundSize:"cover",backgroundPosition:"center"};return p["default"].createElement("div",{style:i},p["default"].createElement("audio",{ref:function(e){t.player=e},type:"audio/mpeg",preload:"auto",style:{width:"100%",height:"100%"},controls:o,loop:r}))}}],[{key:"canPlay",value:function(t){return m.test(t)}}]),e}(y["default"]);g.displayName="SoundCloud",e["default"]=g,t.exports=e["default"]}).call(e,n(2))},function(t,e,n){(function(r,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(4),p=i(c),f="https://api.streamable.com/videos/",d=/^https?:\/\/streamable.com\/([a-z0-9]+)$/,h={},y=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),l(e,[{key:"getData",value:function(t){var e=this,n=t.match(d)[1];return h[n]?r.resolve(h[n]):o(f+n).then(function(t){return 200===t.status?(h[n]=t.json(),h[n]):void e.props.onError(new Error("Streamable track could not be resolved"))})}},{key:"load",value:function(t){var e=this;this.stop(),this.getData(t).then(function(t){e.mounted&&(e.player.src=t.files.mp4.url)},this.props.onError)}}],[{key:"canPlay",value:function(t){return d.test(t)}}]),e}(p["default"]);y.displayName="Streamable",e["default"]=y,t.exports=e["default"]}).call(e,n(2),n(16))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function w(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:w(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=r(c),f=n(19),d=n(3),h=r(d),y="https://player.vimeo.com/video/",v=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,m=/^https?:\/\/player.vimeo.com/,b="https://vimeo.com/127250231",g={api:1,autoplay:0,badge:0,byline:0,fullscreen:1,portrait:0,title:0},_=function(t){function e(){var t,n,r,a;o(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.onMessage=function(t){if(m.test(t.origin)){r.origin=r.origin||t.origin;var e=JSON.parse(t.data);"ready"===e.event&&(r.postMessage("getDuration"),r.postMessage("addEventListener","playProgress"),r.postMessage("addEventListener","loadProgress"),r.postMessage("addEventListener","play"),r.postMessage("addEventListener","pause"),r.postMessage("addEventListener","finish")),"playProgress"===e.event&&(r.fractionPlayed=e.data.percent),"loadProgress"===e.event&&(r.fractionLoaded=e.data.percent),"play"===e.event&&r.onPlay(),"pause"===e.event&&r.props.onPause(),"finish"===e.event&&r.onEnded(),"getDuration"===e.method&&(r.duration=e.value,r.onReady())}},r.onEnded=function(){r.props.loop&&r.seekTo(0),r.props.onEnded()},r.postMessage=function(t,e){if(r.origin){var n=JSON.stringify({method:t,value:e});return r.iframe.contentWindow&&r.iframe.contentWindow.postMessage(n,r.origin)}},a=n,i(r,a)}return a(e,t),u(e,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.onMessage,!1),!this.props.url&&this.props.vimeoConfig.preload&&(this.preloading=!0,this.load(b)),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onMessage,!1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"getIframeParams",value:function(){return s({},g,this.props.vimeoConfig.iframeParams)}},{key:"load",value:function(t){var e=t.match(v)[3];this.iframe.src=y+e+"?"+(0,f.stringify)(this.getIframeParams())}},{key:"play",value:function(){this.postMessage("play")}},{key:"pause",value:function(){this.postMessage("pause")}},{key:"stop",value:function(){this.iframe.src=""}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.postMessage("seekTo",this.duration*t)}},{key:"setVolume",value:function(t){this.postMessage("setVolume",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getFractionPlayed",value:function(){return this.fractionPlayed||null}},{key:"getFractionLoaded",value:function(){return this.fractionLoaded||null}},{key:"render",value:function(){var t=this,e=this.getIframeParams(),n=e.fullscreen,r={display:this.props.url?"block":"none",width:"100%",height:"100%"};return p["default"].createElement("iframe",{ref:function(e){t.iframe=e},frameBorder:"0",style:r,allowFullScreen:n})}}],[{key:"canPlay",value:function(t){return v.test(t)}}]),e}(h["default"]);_.displayName="Vimeo",e["default"]=_,t.exports=e["default"]},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function k(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:k(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=o(p),d=n(18),h=o(d),y=n(3),v=o(y),m=n(14),b="https://www.youtube.com/iframe_api",g="YT",_="onYouTubeIframeAPIReady",w=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,P="youtube-player",T="https://www.youtube.com/watch?v=GlCmAC4MHek",O={autoplay:0,playsinline:1,showinfo:0,rel:0,iv_load_policy:3},E=0,j=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];
return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.playerId=P+"-"+E++,r.onStateChange=function(t){var e=t.data,n=window[g].PlayerState,o=n.PLAYING,i=n.PAUSED,a=n.BUFFERING,s=n.ENDED,u=n.CUED;e===o&&r.onPlay(),e===i&&r.props.onPause(),e===a&&r.props.onBuffer(),e===s&&r.onEnded(),e===u&&r.onReady()},r.onEnded=function(){r.props.loop&&r.seekTo(0),r.props.onEnded()},o=n,a(r,o)}return s(e,t),l(e,[{key:"componentDidMount",value:function(){!this.props.url&&this.props.youtubeConfig.preload&&(this.preloading=!0,this.load(T)),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"getSDK",value:function(){return window[g]&&window[g].loaded?r.resolve(window[g]):new r(function(t,e){var n=window[_];window[_]=function(){n&&n(),t(window[g])},(0,h["default"])(b,function(t){t&&e(t)})})}},{key:"load",value:function(t){var e=this,n=t&&t.match(w)[1];return this.isReady?void this.player.cueVideoById({videoId:n,startSeconds:(0,m.parseStartTime)(t)}):this.loadingSDK?void(this.loadOnReady=t):(this.loadingSDK=!0,void this.getSDK().then(function(r){e.player=new r.Player(e.playerId,{width:"100%",height:"100%",videoId:n,playerVars:u({},O,{controls:e.props.controls?1:0},e.props.youtubeConfig.playerVars,{start:(0,m.parseStartTime)(t),origin:window.location.origin}),events:{onReady:function(){e.loadingSDK=!1,e.onReady()},onStateChange:e.onStateChange,onError:function(t){return e.props.onError(t.data)}}})},this.props.onError))}},{key:"play",value:function(){this.isReady&&this.player.playVideo&&this.player.playVideo()}},{key:"pause",value:function(){this.isReady&&this.player.pauseVideo&&this.player.pauseVideo()}},{key:"stop",value:function(){this.isReady&&this.player.stopVideo&&this.player.stopVideo()}},{key:"seekTo",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.isReady&&this.player.seekTo&&this.player.seekTo(this.getDuration()*t)}},{key:"setVolume",value:function(t){this.isReady&&this.player.setVolume&&this.player.setVolume(100*t)}},{key:"getDuration",value:function(){return this.isReady&&this.player.getDuration?this.player.getDuration():null}},{key:"getFractionPlayed",value:function(){return this.isReady&&this.getDuration()?this.player.getCurrentTime()/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&this.player.getVideoLoadedFraction?this.player.getVideoLoadedFraction():null}},{key:"render",value:function(){var t={height:"100%",display:this.props.url?"block":"none"};return f["default"].createElement("div",{style:t},f["default"].createElement("div",{id:this.playerId}))}}],[{key:"canPlay",value:function(t){return w.test(t)}}]),e}(v["default"]);j.displayName="YouTube",e["default"]=j,t.exports=e["default"]}).call(e,n(2))},function(t,e){"use strict";function n(t){var e=t.match(i);if(e){var n=e[1];if(n.match(a))return r(n);if(s.test(n))return parseInt(n,10)}return 0}function r(t){for(var e=0,n=a.exec(t);null!==n;){var r=n,i=o(r,3),s=i[1],u=i[2];"h"===u&&(e+=60*parseInt(s,10)*60),"m"===u&&(e+=60*parseInt(s,10)),"s"===u&&(e+=parseInt(s,10)),n=a.exec(t)}return e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.parseStartTime=n;var i=/[\?&#](?:start|t)=([0-9hms]+)/,a=/(\d+)(h|m|s)/g,s=/^\d+$/},function(t,e,n){var r;(function(t,o,i,a){(function(){"use strict";function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function u(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){K=t}function p(t){Q=t}function f(){var e=t.nextTick,n=t.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(e=o),function(){e(m)}}function d(){return function(){G(m)}}function h(){var t=0,e=new et(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function v(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<X;t+=2){var e=ot[t],n=ot[t+1];e(n),ot[t]=void 0,ot[t+1]=void 0}X=0}function b(){try{var t=n(24);return G=t.runOnLoop||t.runOnContext,d()}catch(e){return v()}}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return ut.error=e,ut}}function T(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function O(t,e,n){Q(function(t){var r=!1,o=T(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function E(t,e){e._state===at?x(t,e._result):e._state===st?S(t,e._result):A(e,void 0,function(e){k(t,e)},function(e){S(t,e)})}function j(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=P(e);n===ut?S(t,ut.error):void 0===n?x(t,e):u(n)?O(t,e,n):x(t,e)}}function k(t,e){t===e?S(t,_()):s(e)?j(t,e):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===it&&(t._result=e,t._state=at,0!==t._subscribers.length&&Q(R,t))}function S(t,e){t._state===it&&(t._state=st,t._result=e,Q(C,t))}function A(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+at]=n,o[i+st]=r,0===i&&t._state&&Q(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?M(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function I(t,e){try{return t(e)}catch(n){return lt.error=n,lt}}function M(t,e,n,r){var o,i,a,s,l=u(n);if(l){if(o=I(n,r),o===lt?(s=!0,i=o.error,o=null):a=!0,e===o)return void S(e,w())}else o=r,a=!0;e._state!==it||(l&&a?k(e,o):s?S(e,i):t===at?x(e,o):t===st&&S(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function F(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(g),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?x(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&x(n.promise,n._result))):S(n.promise,n._validationError())}function U(t){return new ct(this,t).promise}function B(t){function e(t){k(o,t)}function n(t){S(o,t)}var r=this,o=new r(g);if(!J(t))return S(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===it&&a<i;a++)A(r.resolve(t[a]),void 0,e,n);return o}function N(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function V(t){var e=this,n=new e(g);return S(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this._id=yt++,this._state=void 0,this._result=void 0,this._subscribers=[],g!==t&&(u(t)||q(),this instanceof H||W(),L(this,t))}function Y(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=vt)}var $;$=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,K,z,J=$,X=0,Q=({}.toString,function(t,e){ot[X]=t,ot[X+1]=e,X+=2,2===X&&(K?K(m):z())}),Z="undefined"!=typeof window?window:void 0,tt=Z||{},et=tt.MutationObserver||tt.WebKitMutationObserver,nt="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),rt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ot=new Array(1e3);z=nt?f():et?h():rt?y():void 0===Z?b():v();var it=void 0,at=1,st=2,ut=new D,lt=new D;F.prototype._validateInput=function(t){return J(t)},F.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},F.prototype._init=function(){this._result=new Array(this.length)};var ct=F;F.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===it&&o<e;o++)t._eachEntry(r[o],o)},F.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;l(t)?t.constructor===r&&t._state!==it?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},F.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===it&&(r._remaining--,t===st?S(o,n):r._result[e]=n),0===r._remaining&&x(o,r._result)},F.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(st,e,t)})};var pt=U,ft=B,dt=N,ht=V,yt=0,vt=H;H.all=pt,H.race=ft,H.resolve=dt,H.reject=ht,H._setScheduler=c,H._setAsap=p,H._asap=Q,H.prototype={constructor:H,then:function(t,e){var n=this,r=n._state;if(r===at&&!t||r===st&&!e)return this;var o=new this.constructor(g),i=n._result;if(r){var a=arguments[r-1];Q(function(){M(r,o,a,i)})}else A(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var mt=Y,bt={Promise:vt,polyfill:mt};n(8).amd?(r=function(){return bt}.call(e,n,e,a),!(void 0!==r&&(a.exports=r))):"undefined"!=typeof a&&a.exports?a.exports=bt:"undefined"!=typeof this&&(this.ES6Promise=bt),mt()}).call(this),a.exports=i.Promise}).call(e,n(7),n(5).setImmediate,function(){return this}(),n(9)(t))},function(t,e,n){(function(e){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function a(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function s(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function u(t){var e=new FileReader;return e.readAsArrayBuffer(t),s(e)}function l(t){var e=new FileReader;return e.readAsText(t),s(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(v.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(v.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(t){if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob?(this.blob=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return e.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return e.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(u)},this.text=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return e.resolve(this._bodyText)}):this.text=function(){var t=a(this);return t?t:e.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(t){var e=t.toUpperCase();return m.indexOf(e)>-1?e:t}function f(t,e){e=e||{};var n=e.body;if(f.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function h(t){var e=new i,n=(t.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();e.append(r,o)}),e}function y(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var v={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};i.prototype.append=function(t,e){t=n(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},i.prototype["delete"]=function(t){delete this.map[n(t)]},i.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[n(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},i.prototype.set=function(t,e){this.map[n(t)]=[r(e)]},i.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),o(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),o(t)},v.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},c.call(f.prototype),c.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,e){if(b.indexOf(e)===-1)throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=f,t.Response=y,t.fetch=function(t,n){return new e(function(e,r){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var i;i=f.prototype.isPrototypeOf(t)&&!n?t:new f(t,n);var a=new XMLHttpRequest;a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:h(a),url:o()},n="response"in a?a.response:a.responseText;e(new y(n,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),i.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),t.exports=self.fetch}).call(e,n(2))},function(t,e,n){var r,o,i;(function(n){!function(n,a){o=[e,t],r=a,i="function"==typeof r?r.apply(e,o):r,!(void 0!==i&&(t.exports=i))}(this,function(t,e){"use strict";function r(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function o(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=t,u=e.timeout||s.timeout,l=e.jsonpCallback||s.jsonpCallback,c=void 0;return new n(function(t,s){var p=e.jsonpCallbackFunction||r(),f=l+"_"+p;window[p]=function(e){t({ok:!0,json:function(){return n.resolve(e)}}),c&&clearTimeout(c),i(f),o(p)},a+=a.indexOf("?")===-1?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+a+l+"="+p),d.id=f,document.getElementsByTagName("head")[0].appendChild(d),c=setTimeout(function(){s(new Error("JSONP request to "+a+" timed out")),o(p),i(f)},u)})}var s={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};e.exports=a})}).call(e,n(15))},function(t,e){function n(t,e){for(var n in e)t.setAttribute(n,e[n])}function r(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function o(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof e&&(i=e,e={}),e=e||{},i=i||function(){},s.type=e.type||"text/javascript",s.charset=e.charset||"utf8",s.async=!("async"in e)||!!e.async,s.src=t,e.attrs&&n(s,e.attrs),e.text&&(s.text=""+e.text);var u="onload"in s?r:o;u(s,i),s.onload||r(s,i),a.appendChild(s)}},function(t,e,n){"use strict";function r(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}var o=n(21),i=n(20);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t){var e=Object.create(null);return"string"!=typeof t?e:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e},e.stringify=function(t,e){var n={encode:!0,strict:!0};return e=i(n,e),t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return r(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&(null===t?i.push(r(n,e)):i.push(r(n,e)+"="+r(t,e)))}),i.join("&")}return r(n,e)+"="+r(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,s=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var l in r)o.call(r,l)&&(s[l]=r[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(s[a[c]]=r[a[c]])}}return s}},function(t,e){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&s())}function s(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,p,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var d,h=[],y=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){},function(t,e){}]);
var ReactPlayer=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(1),p=r(c),f=n(6),d=n(13),h=r(d),y=n(10),v=r(y),m=n(12),b=r(m),g=n(4),_=r(g),w=n(11),P=r(w),T=function(t){function e(){var t,n,r,s;i(this,e);for(var l=arguments.length,c=Array(l),f=0;f<l;f++)c[f]=arguments[f];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),r.seekTo=function(t){r.player&&r.player.seekTo(t)},r.progress=function(){if(r.props.url&&r.player){var t=r.player.getFractionLoaded()||0,e=r.player.getFractionPlayed()||0,n={};t!==r.prevLoaded&&(n.loaded=t),e!==r.prevPlayed&&r.props.playing&&(n.played=e),(n.loaded||n.playing)&&r.props.onProgress(n),r.prevLoaded=t,r.prevPlayed=e}r.progressTimeout=setTimeout(r.progress,r.props.progressFrequency)},r.renderPlayer=function(t){var e=t.canPlay(r.props.url),n=r.props,i=n.youtubeConfig,a=n.soundcloudConfig,s=n.vimeoConfig,l=n.fileConfig,c=o(n,["youtubeConfig","soundcloudConfig","vimeoConfig","fileConfig"]),f=function(t){r.player=t},d=e?u({},c,{ref:f}):{};return p["default"].createElement(t,u({key:t.displayName,youtubeConfig:i,soundcloudConfig:a,vimeoConfig:s,fileConfig:l},d))},s=n,a(r,s)}return s(e,t),l(e,[{key:"componentDidMount",value:function(){this.progress()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.progressTimeout)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url||this.props.playing!==t.playing||this.props.volume!==t.volume||this.props.height!==t.height||this.props.width!==t.width||this.props.hidden!==t.hidden}},{key:"renderPlayers",value:function(){var t=this.props,e=t.url,n=t.youtubeConfig,r=t.vimeoConfig,o=[];return h["default"].canPlay(e)?o.push(h["default"]):v["default"].canPlay(e)?o.push(v["default"]):b["default"].canPlay(e)?o.push(b["default"]):P["default"].canPlay(e)?o.push(P["default"]):e&&o.push(_["default"]),!h["default"].canPlay(e)&&n.preload&&o.push(h["default"]),!b["default"].canPlay(e)&&r.preload&&o.push(b["default"]),o.map(this.renderPlayer)}},{key:"render",value:function(){var t=u({},this.props.style,{width:this.props.width,height:this.props.height});return p["default"].createElement("div",{style:t,className:this.props.className,hidden:this.props.hidden},this.renderPlayers())}}]),e}(c.Component);T.displayName="ReactPlayer",T.propTypes=f.propTypes,T.defaultProps=f.defaultProps,e["default"]=T,t.exports=e["default"]},function(t,e){t.exports=React},function(t,e,n){var r;(function(t,o,i){(function(){"use strict";function a(t){return"function"==typeof t||"object"==typeof t&&null!==t}function s(t){return"function"==typeof t}function u(t){J=t}function l(t){tt=t}function c(){return function(){t.nextTick(y)}}function p(){return function(){z(y)}}function f(){var t=0,e=new rt(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=y,function(){t.port2.postMessage(0)}}function h(){return function(){setTimeout(y,1)}}function y(){for(var t=0;t<Z;t+=2){var e=at[t],n=at[t+1];e(n),at[t]=void 0,at[t+1]=void 0}Z=0}function v(){try{var t=n(23);return z=t.runOnLoop||t.runOnContext,p()}catch(e){return h()}}function m(t,e){var n=this,r=new this.constructor(g);void 0===r[lt]&&U(r);var o=n._state;if(o){var i=arguments[o-1];tt(function(){M(o,r,i,n._result)})}else A(n,r,t,e);return r}function b(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return dt.error=e,dt}}function T(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function O(t,e,n){tt(function(t){var r=!1,o=T(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function E(t,e){e._state===pt?x(t,e._result):e._state===ft?S(t,e._result):A(e,void 0,function(e){k(t,e)},function(e){S(t,e)})}function j(t,e,n){e.constructor===t.constructor&&n===st&&constructor.resolve===ut?E(t,e):n===dt?S(t,dt.error):void 0===n?x(t,e):s(n)?O(t,e,n):x(t,e)}function k(t,e){t===e?S(t,_()):a(e)?j(t,e,P(e)):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===ct&&(t._result=e,t._state=pt,0!==t._subscribers.length&&tt(R,t))}function S(t,e){t._state===ct&&(t._state=ft,t._result=e,tt(C,t))}function A(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+pt]=n,o[i+ft]=r,0===i&&t._state&&tt(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?M(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function I(t,e){try{return t(e)}catch(n){return ht.error=n,ht}}function M(t,e,n,r){var o,i,a,u,l=s(n);if(l){if(o=I(n,r),o===ht?(u=!0,i=o.error,o=null):a=!0,e===o)return void S(e,w())}else o=r,a=!0;e._state!==ct||(l&&a?k(e,o):u?S(e,i):t===pt?x(e,o):t===ft&&S(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function F(){return yt++}function U(t){t[lt]=yt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function B(t){return new _t(this,t).promise}function N(t){var e=this;return new e(Q(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){e(new TypeError("You must pass an array to race."))})}function V(t){var e=this,n=new e(g);return S(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this[lt]=F(),this._result=this._state=void 0,this._subscribers=[],g!==t&&("function"!=typeof t&&q(),this instanceof H?L(this,t):W())}function Y(t,e){this._instanceConstructor=t,this.promise=new t(g),this.promise[lt]||U(this.promise),Q(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?x(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&x(this.promise,this._result))):S(this.promise,$())}function $(){return new Error("Array Methods must be provided an Array")}function G(){var t;if("undefined"!=typeof o)t=o;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=gt)}var K;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var z,J,X,Q=K,Z=0,tt=function(t,e){at[Z]=t,at[Z+1]=e,Z+=2,2===Z&&(J?J(y):X())},et="undefined"!=typeof window?window:void 0,nt=et||{},rt=nt.MutationObserver||nt.WebKitMutationObserver,ot="undefined"==typeof self&&"undefined"!=typeof t&&"[object process]"==={}.toString.call(t),it="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,at=new Array(1e3);X=ot?c():rt?f():it?d():void 0===et?v():h();var st=m,ut=b,lt=Math.random().toString(36).substring(16),ct=void 0,pt=1,ft=2,dt=new D,ht=new D,yt=0,vt=B,mt=N,bt=V,gt=H;H.all=vt,H.race=mt,H.resolve=ut,H.reject=bt,H._setScheduler=u,H._setAsap=l,H._asap=tt,H.prototype={constructor:H,then:st,"catch":function(t){return this.then(null,t)}};var _t=Y;Y.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ct&&n<t;n++)this._eachEntry(e[n],n)},Y.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===ut){var o=P(t);if(o===st&&t._state!==ct)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===gt){var i=new n(g);j(i,t,o),this._willSettleAt(i,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},Y.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ct&&(this._remaining--,t===ft?S(r,n):this._result[e]=n),0===this._remaining&&x(r,this._result)},Y.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,function(t){n._settledAt(pt,e,t)},function(t){n._settledAt(ft,e,t)})};var wt=G,Pt={Promise:gt,polyfill:wt};n(8).amd?(r=function(){return Pt}.call(e,n,e,i),!(void 0!==r&&(i.exports=r))):"undefined"!=typeof i&&i.exports?i.exports=Pt:"undefined"!=typeof this&&(this.ES6Promise=Pt),wt()}).call(this),i.exports=o.Promise}).call(e,n(7),function(){return this}(),n(9)(t))},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(1),u=n(6),l=5e3,c=function(t){function e(){var t,n,i,a;r(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),i.isReady=!1,i.startOnPlay=!0,i.durationOnPlay=!1,i.seekOnPlay=null,i.onPlay=function(){i.startOnPlay&&(i.setVolume(i.props.volume),i.props.onStart(),i.startOnPlay=!1),i.props.onPlay(),i.seekOnPlay&&(i.seekTo(i.seekOnPlay),i.seekOnPlay=null),i.durationOnPlay&&(i.props.onDuration(i.getDuration()),i.durationOnPlay=!1)},i.onReady=function(){i.isReady=!0,i.props.onReady(),(i.props.playing||i.preloading)&&(i.preloading=!1,i.loadOnReady?(i.load(i.loadOnReady),i.loadOnReady=null):i.play());var t=i.getDuration();t?i.props.onDuration(t):i.durationOnPlay=!0},a=n,o(i,a)}return i(e,t),a(e,[{key:"componentDidMount",value:function(){this.mounted=!0,this.props.url&&this.load(this.props.url)}},{key:"componentWillUnmount",value:function(){this.stop(),this.mounted=!1}},{key:"componentWillReceiveProps",value:function(t){this.props.url!==t.url&&t.url?(this.seekOnPlay=null,this.startOnPlay=!0,this.load(t.url)):this.props.url&&!t.url?(this.stop(),clearTimeout(this.updateTimeout)):!this.props.playing&&t.playing?this.play():this.props.playing&&!t.playing?this.pause():this.props.volume!==t.volume&&this.setVolume(t.volume)}},{key:"shouldComponentUpdate",value:function(t){return this.props.url!==t.url}},{key:"seekTo",value:function(t){var e=this;this.isReady||0===t||(this.seekOnPlay=t,setTimeout(function(){e.seekOnPlay=null},l))}}]),e}(s.Component);c.propTypes=u.propTypes,c.defaultProps=u.defaultProps,e["default"]=c,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function v(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:v(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=r(c),f=n(3),d=r(f),h=/\.(mp3|wav|m4a)($|\?)/i,y=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"componentDidMount",value:function(){var t=this;this.player.addEventListener("canplay",this.onReady),this.player.addEventListener("play",this.onPlay),this.player.addEventListener("pause",function(){t.mounted&&t.props.onPause()}),this.player.addEventListener("ended",this.props.onEnded),this.player.addEventListener("error",this.props.onError),this.player.setAttribute("webkit-playsinline",""),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){this.player.removeEventListener("canplay",this.onReady),this.player.removeEventListener("play",this.onPlay),this.player.removeEventListener("pause",this.props.onPause),this.player.removeEventListener("ended",this.props.onEnded),this.player.removeEventListener("error",this.props.onError),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"load",value:function(t){this.player.src=t}},{key:"play",value:function(){this.player.play()}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src")}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.player.currentTime=this.getDuration()*t}},{key:"setVolume",value:function(t){this.player.volume=t}},{key:"getDuration",value:function(){return this.isReady?this.player.duration:null}},{key:"getFractionPlayed",value:function(){return this.isReady?this.player.currentTime/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&0!==this.player.buffered.length?this.player.buffered.end(0)/this.getDuration():null}},{key:"render",value:function(){var t=this,e=this.props,n=e.loop,r=e.controls,o=e.fileConfig,i=h.test(this.props.url)?"audio":"video",a={width:"100%",height:"100%",display:this.props.url?"block":"none"};return p["default"].createElement(i,s({ref:function(e){t.player=e},style:a,preload:"auto",controls:r,loop:n},o.attributes))}}],[{key:"canPlay",value:function(t){return!0}}]),e}(d["default"]);y.displayName="FilePlayer",e["default"]=y,t.exports=e["default"]},function(t,e,n){(function(t,r){function o(t,e){this._id=t,this._clearFn=e}var i=n(22).nextTick,a=Function.prototype.apply,s=Array.prototype.slice,u={},l=0;e.setTimeout=function(){return new o(a.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},e.setImmediate="function"==typeof t?t:function(t){var n=l++,r=!(arguments.length<2)&&s.call(arguments,1);return u[n]=!0,i(function(){u[n]&&(r?t.apply(null,r):t.call(null),e.clearImmediate(n))}),n},e.clearImmediate="function"==typeof r?r:function(t){delete u[t]}}).call(e,n(5).setImmediate,n(5).clearImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProps=e.propTypes=void 0;var r=n(1);e.propTypes={url:r.PropTypes.string,playing:r.PropTypes.bool,loop:r.PropTypes.bool,controls:r.PropTypes.bool,volume:r.PropTypes.number,width:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),height:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.number]),hidden:r.PropTypes.bool,className:r.PropTypes.string,style:r.PropTypes.object,progressFrequency:r.PropTypes.number,soundcloudConfig:r.PropTypes.shape({clientId:r.PropTypes.string}),youtubeConfig:r.PropTypes.shape({playerVars:r.PropTypes.object,preload:r.PropTypes.bool}),vimeoConfig:r.PropTypes.shape({iframeParams:r.PropTypes.object,preload:r.PropTypes.bool}),fileConfig:r.PropTypes.shape({attributes:r.PropTypes.object}),onReady:r.PropTypes.func,onStart:r.PropTypes.func,onPlay:r.PropTypes.func,onPause:r.PropTypes.func,onBuffer:r.PropTypes.func,onEnded:r.PropTypes.func,onError:r.PropTypes.func,onDuration:r.PropTypes.func,onProgress:r.PropTypes.func},e.defaultProps={playing:!1,loop:!1,controls:!1,volume:.8,width:640,height:360,hidden:!1,progressFrequency:1e3,soundcloudConfig:{clientId:"e8b6f84fbcad14c301ca1355cae1dea2"},youtubeConfig:{playerVars:{},preload:!1},vimeoConfig:{iframeParams:{},preload:!1},fileConfig:{attributes:{}},onReady:function(){},onStart:function(){},onPlay:function(){},onPause:function(){},onBuffer:function(){},onEnded:function(){},onError:function(){},onDuration:function(){},onProgress:function(){}}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&s())}function s(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,p,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var d,h=[],y=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function _(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:_(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=o(c),f=n(17),d=o(f),h=n(4),y=o(h),v="//api.soundcloud.com/resolve.json",m=/^https?:\/\/(soundcloud.com|snd.sc)\/([a-z0-9-_]+\/[a-z0-9-_]+)$/,b={},g=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.state={image:null},o=n,a(r,o)}return s(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t,n){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"shouldComponentUpdate",this).call(this,t,n)||this.state.image!==n.image}},{key:"getSongData",value:function(t){var e=this;return b[t]?r.resolve(b[t]):(0,d["default"])(v+"?url="+t+"&client_id="+this.props.soundcloudConfig.clientId).then(function(n){return n.ok?(b[t]=n.json(),b[t]):void e.props.onError(new Error("SoundCloud track could not be resolved"))})}},{key:"load",value:function(t){var e=this;this.stop(),this.getSongData(t).then(function(t){if(e.mounted){if(!t.streamable)return void e.props.onError(new Error("SoundCloud track is not streamable"));var n=t.artwork_url||t.user.avatar_url;n&&e.setState({image:n.replace("-large","-t500x500")}),e.player.src=t.stream_url+"?client_id="+e.props.soundcloudConfig.clientId}},this.props.onError)}},{key:"render",value:function(){var t=this,e=this.props,n=e.url,r=e.loop,o=e.controls,i={display:n?"block":"none",height:"100%",backgroundImage:this.state.image?"url("+this.state.image+")":null,backgroundSize:"cover",backgroundPosition:"center"};return p["default"].createElement("div",{style:i},p["default"].createElement("audio",{ref:function(e){t.player=e},type:"audio/mpeg",preload:"auto",style:{width:"100%",height:"100%"},controls:o,loop:r}))}}],[{key:"canPlay",value:function(t){return m.test(t)}}]),e}(y["default"]);g.displayName="SoundCloud",e["default"]=g,t.exports=e["default"]}).call(e,n(2))},function(t,e,n){(function(r,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(4),p=i(c),f="https://api.streamable.com/videos/",d=/^https?:\/\/streamable.com\/([a-z0-9]+)$/,h={},y=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),l(e,[{key:"getData",value:function(t){var e=this,n=t.match(d)[1];return h[n]?r.resolve(h[n]):o(f+n).then(function(t){return 200===t.status?(h[n]=t.json(),h[n]):void e.props.onError(new Error("Streamable track could not be resolved"))})}},{key:"load",value:function(t){var e=this;this.stop(),this.getData(t).then(function(t){e.mounted&&(e.player.src=t.files.mp4.url)},this.props.onError)}}],[{key:"canPlay",value:function(t){return d.test(t)}}]),e}(p["default"]);y.displayName="Streamable",e["default"]=y,t.exports=e["default"]}).call(e,n(2),n(16))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function w(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:w(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(1),p=r(c),f=n(19),d=n(3),h=r(d),y="https://player.vimeo.com/video/",v=/https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)/,m=/^https?:\/\/player.vimeo.com/,b="https://vimeo.com/127250231",g={api:1,autoplay:0,badge:0,byline:0,fullscreen:1,portrait:0,title:0},_=function(t){function e(){var t,n,r,a;o(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.onMessage=function(t){if(m.test(t.origin)){r.origin=r.origin||t.origin;var e=JSON.parse(t.data);"ready"===e.event&&(r.postMessage("getDuration"),r.postMessage("addEventListener","playProgress"),r.postMessage("addEventListener","loadProgress"),r.postMessage("addEventListener","play"),r.postMessage("addEventListener","pause"),r.postMessage("addEventListener","finish")),"playProgress"===e.event&&(r.fractionPlayed=e.data.percent),"loadProgress"===e.event&&(r.fractionLoaded=e.data.percent),"play"===e.event&&r.onPlay(),"pause"===e.event&&r.props.onPause(),"finish"===e.event&&r.onEnded(),"getDuration"===e.method&&(r.duration=e.value,r.onReady())}},r.onEnded=function(){r.props.loop&&r.seekTo(0),r.props.onEnded()},r.postMessage=function(t,e){if(r.origin){var n=JSON.stringify({method:t,value:e});return r.iframe.contentWindow&&r.iframe.contentWindow.postMessage(n,r.origin)}},a=n,i(r,a)}return a(e,t),u(e,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.onMessage,!1),!this.props.url&&this.props.vimeoConfig.preload&&(this.preloading=!0,this.load(b)),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.onMessage,!1),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentWillUnmount",this).call(this)}},{key:"getIframeParams",value:function(){return s({},g,this.props.vimeoConfig.iframeParams)}},{key:"load",value:function(t){var e=t.match(v)[3];this.iframe.src=y+e+"?"+(0,f.stringify)(this.getIframeParams())}},{key:"play",value:function(){this.postMessage("play")}},{key:"pause",value:function(){this.postMessage("pause")}},{key:"stop",value:function(){this.iframe.src=""}},{key:"seekTo",value:function(t){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.postMessage("seekTo",this.duration*t)}},{key:"setVolume",value:function(t){this.postMessage("setVolume",t)}},{key:"getDuration",value:function(){return this.duration}},{key:"getFractionPlayed",value:function(){return this.fractionPlayed||null}},{key:"getFractionLoaded",value:function(){return this.fractionLoaded||null}},{key:"render",value:function(){var t=this,e=this.getIframeParams(),n=e.fullscreen,r={display:this.props.url?"block":"none",width:"100%",height:"100%"};return p["default"].createElement("iframe",{ref:function(e){t.iframe=e},frameBorder:"0",style:r,allowFullScreen:n})}}],[{key:"canPlay",value:function(t){return v.test(t)}}]),e}(h["default"]);_.displayName="Vimeo",e["default"]=_,t.exports=e["default"]},function(t,e,n){(function(r){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function k(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:k(o,e,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=o(p),d=n(18),h=o(d),y=n(3),v=o(y),m=n(14),b="https://www.youtube.com/iframe_api",g="YT",_="onYouTubeIframeAPIReady",w=/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/,P="youtube-player",T="https://www.youtube.com/watch?v=GlCmAC4MHek",O={autoplay:0,playsinline:1,showinfo:0,rel:0,iv_load_policy:3},E=0,j=function(t){function e(){
var t,n,r,o;i(this,e);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),r.playerId=P+"-"+E++,r.onStateChange=function(t){var e=t.data,n=window[g].PlayerState,o=n.PLAYING,i=n.PAUSED,a=n.BUFFERING,s=n.ENDED,u=n.CUED;e===o&&r.onPlay(),e===i&&r.props.onPause(),e===a&&r.props.onBuffer(),e===s&&r.onEnded(),e===u&&r.onReady()},r.onEnded=function(){r.props.loop&&r.seekTo(0),r.props.onEnded()},o=n,a(r,o)}return s(e,t),l(e,[{key:"componentDidMount",value:function(){!this.props.url&&this.props.youtubeConfig.preload&&(this.preloading=!0,this.load(T)),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"componentDidMount",this).call(this)}},{key:"getSDK",value:function(){return window[g]&&window[g].loaded?r.resolve(window[g]):new r(function(t,e){var n=window[_];window[_]=function(){n&&n(),t(window[g])},(0,h["default"])(b,function(t){t&&e(t)})})}},{key:"load",value:function(t){var e=this,n=t&&t.match(w)[1];return this.isReady?void this.player.cueVideoById({videoId:n,startSeconds:(0,m.parseStartTime)(t)}):this.loadingSDK?void(this.loadOnReady=t):(this.loadingSDK=!0,void this.getSDK().then(function(r){e.player=new r.Player(e.playerId,{width:"100%",height:"100%",videoId:n,playerVars:u({},O,{controls:e.props.controls?1:0},e.props.youtubeConfig.playerVars,{start:(0,m.parseStartTime)(t),origin:window.location.origin}),events:{onReady:function(){e.loadingSDK=!1,e.onReady()},onStateChange:e.onStateChange,onError:function(t){return e.props.onError(t.data)}}})},this.props.onError))}},{key:"play",value:function(){this.isReady&&this.player.playVideo&&this.player.playVideo()}},{key:"pause",value:function(){this.isReady&&this.player.pauseVideo&&this.player.pauseVideo()}},{key:"stop",value:function(){this.isReady&&this.player.stopVideo&&this.player.stopVideo()}},{key:"seekTo",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"seekTo",this).call(this,t),this.isReady&&this.player.seekTo&&this.player.seekTo(this.getDuration()*t)}},{key:"setVolume",value:function(t){this.isReady&&this.player.setVolume&&this.player.setVolume(100*t)}},{key:"getDuration",value:function(){return this.isReady&&this.player.getDuration?this.player.getDuration():null}},{key:"getFractionPlayed",value:function(){return this.isReady&&this.getDuration()?this.player.getCurrentTime()/this.getDuration():null}},{key:"getFractionLoaded",value:function(){return this.isReady&&this.player.getVideoLoadedFraction?this.player.getVideoLoadedFraction():null}},{key:"render",value:function(){var t={height:"100%",display:this.props.url?"block":"none"};return f["default"].createElement("div",{style:t},f["default"].createElement("div",{id:this.playerId}))}}],[{key:"canPlay",value:function(t){return w.test(t)}}]),e}(v["default"]);j.displayName="YouTube",e["default"]=j,t.exports=e["default"]}).call(e,n(2))},function(t,e){"use strict";function n(t){var e=t.match(i);if(e){var n=e[1];if(n.match(a))return r(n);if(s.test(n))return parseInt(n,10)}return 0}function r(t){for(var e=0,n=a.exec(t);null!==n;){var r=n,i=o(r,3),s=i[1],u=i[2];"h"===u&&(e+=60*parseInt(s,10)*60),"m"===u&&(e+=60*parseInt(s,10)),"s"===u&&(e+=parseInt(s,10)),n=a.exec(t)}return e}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.parseStartTime=n;var i=/[\?&#](?:start|t)=([0-9hms]+)/,a=/(\d+)(h|m|s)/g,s=/^\d+$/},function(t,e,n){var r;(function(t,o,i,a){(function(){"use strict";function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function u(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){K=t}function p(t){Q=t}function f(){var e=t.nextTick,n=t.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(n)&&"0"===n[1]&&"10"===n[2]&&(e=o),function(){e(m)}}function d(){return function(){G(m)}}function h(){var t=0,e=new et(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function y(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function v(){return function(){setTimeout(m,1)}}function m(){for(var t=0;t<X;t+=2){var e=ot[t],n=ot[t+1];e(n),ot[t]=void 0,ot[t+1]=void 0}X=0}function b(){try{var t=n(24);return G=t.runOnLoop||t.runOnContext,d()}catch(e){return v()}}function g(){}function _(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function P(t){try{return t.then}catch(e){return ut.error=e,ut}}function T(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function O(t,e,n){Q(function(t){var r=!1,o=T(n,e,function(n){r||(r=!0,e!==n?k(t,n):x(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function E(t,e){e._state===at?x(t,e._result):e._state===st?S(t,e._result):A(e,void 0,function(e){k(t,e)},function(e){S(t,e)})}function j(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=P(e);n===ut?S(t,ut.error):void 0===n?x(t,e):u(n)?O(t,e,n):x(t,e)}}function k(t,e){t===e?S(t,_()):s(e)?j(t,e):x(t,e)}function C(t){t._onerror&&t._onerror(t._result),R(t)}function x(t,e){t._state===it&&(t._result=e,t._state=at,0!==t._subscribers.length&&Q(R,t))}function S(t,e){t._state===it&&(t._state=st,t._result=e,Q(C,t))}function A(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+at]=n,o[i+st]=r,0===i&&t._state&&Q(R,t)}function R(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?M(n,r,o,i):o(i);t._subscribers.length=0}}function D(){this.error=null}function I(t,e){try{return t(e)}catch(n){return lt.error=n,lt}}function M(t,e,n,r){var o,i,a,s,l=u(n);if(l){if(o=I(n,r),o===lt?(s=!0,i=o.error,o=null):a=!0,e===o)return void S(e,w())}else o=r,a=!0;e._state!==it||(l&&a?k(e,o):s?S(e,i):t===at?x(e,o):t===st&&S(e,o))}function L(t,e){try{e(function(e){k(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function F(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(g),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?x(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&x(n.promise,n._result))):S(n.promise,n._validationError())}function U(t){return new ct(this,t).promise}function B(t){function e(t){k(o,t)}function n(t){S(o,t)}var r=this,o=new r(g);if(!J(t))return S(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===it&&a<i;a++)A(r.resolve(t[a]),void 0,e,n);return o}function N(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return k(n,t),n}function V(t){var e=this,n=new e(g);return S(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function W(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this._id=yt++,this._state=void 0,this._result=void 0,this._subscribers=[],g!==t&&(u(t)||q(),this instanceof H||W(),L(this,t))}function Y(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=vt)}var $;$=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,K,z,J=$,X=0,Q=({}.toString,function(t,e){ot[X]=t,ot[X+1]=e,X+=2,2===X&&(K?K(m):z())}),Z="undefined"!=typeof window?window:void 0,tt=Z||{},et=tt.MutationObserver||tt.WebKitMutationObserver,nt="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),rt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,ot=new Array(1e3);z=nt?f():et?h():rt?y():void 0===Z?b():v();var it=void 0,at=1,st=2,ut=new D,lt=new D;F.prototype._validateInput=function(t){return J(t)},F.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},F.prototype._init=function(){this._result=new Array(this.length)};var ct=F;F.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===it&&o<e;o++)t._eachEntry(r[o],o)},F.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;l(t)?t.constructor===r&&t._state!==it?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},F.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===it&&(r._remaining--,t===st?S(o,n):r._result[e]=n),0===r._remaining&&x(o,r._result)},F.prototype._willSettleAt=function(t,e){var n=this;A(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(st,e,t)})};var pt=U,ft=B,dt=N,ht=V,yt=0,vt=H;H.all=pt,H.race=ft,H.resolve=dt,H.reject=ht,H._setScheduler=c,H._setAsap=p,H._asap=Q,H.prototype={constructor:H,then:function(t,e){var n=this,r=n._state;if(r===at&&!t||r===st&&!e)return this;var o=new this.constructor(g),i=n._result;if(r){var a=arguments[r-1];Q(function(){M(r,o,a,i)})}else A(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var mt=Y,bt={Promise:vt,polyfill:mt};n(8).amd?(r=function(){return bt}.call(e,n,e,a),!(void 0!==r&&(a.exports=r))):"undefined"!=typeof a&&a.exports?a.exports=bt:"undefined"!=typeof this&&(this.ES6Promise=bt),mt()}).call(this),a.exports=i.Promise}).call(e,n(7),n(5).setImmediate,function(){return this}(),n(9)(t))},function(t,e,n){(function(e){!function(t){"use strict";function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return v.iterable&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function a(t){return t.bodyUsed?e.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function s(t){return new e(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function u(t){var e=new FileReader;return e.readAsArrayBuffer(t),s(e)}function l(t){var e=new FileReader;return e.readAsText(t),s(e)}function c(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,"string"==typeof t)this._bodyText=t;else if(v.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(v.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(t){if(!v.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},v.blob?(this.blob=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return e.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return e.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(u)},this.text=function(){var t=a(this);if(t)return t;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return e.resolve(this._bodyText)}):this.text=function(){var t=a(this);return t?t:e.resolve(this._bodyText)},v.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(t){var e=t.toUpperCase();return m.indexOf(e)>-1?e:t}function f(t,e){e=e||{};var n=e.body;if(f.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function h(t){var e=new i,n=(t.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),o=n.join(":").trim();e.append(r,o)}),e}function y(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var v={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};i.prototype.append=function(t,e){t=n(t),e=r(e);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(e)},i.prototype["delete"]=function(t){delete this.map[n(t)]},i.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[n(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},i.prototype.set=function(t,e){this.map[n(t)]=[r(e)]},i.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},i.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),o(t)},i.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},i.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),o(t)},v.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},c.call(f.prototype),c.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,e){if(b.indexOf(e)===-1)throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=f,t.Response=y,t.fetch=function(t,n){return new e(function(e,r){function o(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var i;i=f.prototype.isPrototypeOf(t)&&!n?t:new f(t,n);var a=new XMLHttpRequest;a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:h(a),url:o()},n="response"in a?a.response:a.responseText;e(new y(n,t))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials&&(a.withCredentials=!0),"responseType"in a&&v.blob&&(a.responseType="blob"),i.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),t.exports=self.fetch}).call(e,n(2))},function(t,e,n){var r,o,i;(function(n){!function(n,a){o=[e,t],r=a,i="function"==typeof r?r.apply(e,o):r,!(void 0!==i&&(t.exports=i))}(this,function(t,e){"use strict";function r(){return"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random())}function o(t){try{delete window[t]}catch(e){window[t]=void 0}}function i(t){var e=document.getElementById(t);document.getElementsByTagName("head")[0].removeChild(e)}function a(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=t,u=e.timeout||s.timeout,l=e.jsonpCallback||s.jsonpCallback,c=void 0;return new n(function(t,s){var p=e.jsonpCallbackFunction||r(),f=l+"_"+p;window[p]=function(e){t({ok:!0,json:function(){return n.resolve(e)}}),c&&clearTimeout(c),i(f),o(p)},a+=a.indexOf("?")===-1?"?":"&";var d=document.createElement("script");d.setAttribute("src",""+a+l+"="+p),d.id=f,document.getElementsByTagName("head")[0].appendChild(d),c=setTimeout(function(){s(new Error("JSONP request to "+a+" timed out")),o(p),i(f)},u)})}var s={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};e.exports=a})}).call(e,n(15))},function(t,e){function n(t,e){for(var n in e)t.setAttribute(n,e[n])}function r(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function o(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){var a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("script");"function"==typeof e&&(i=e,e={}),e=e||{},i=i||function(){},s.type=e.type||"text/javascript",s.charset=e.charset||"utf8",s.async=!("async"in e)||!!e.async,s.src=t,e.attrs&&n(s,e.attrs),e.text&&(s.text=""+e.text);var u="onload"in s?r:o;u(s,i),s.onload||r(s,i),a.appendChild(s)}},function(t,e,n){"use strict";function r(t,e){return e.encode?e.strict?o(t):encodeURIComponent(t):t}var o=n(21),i=n(20);e.extract=function(t){return t.split("?")[1]||""},e.parse=function(t){var e=Object.create(null);return"string"!=typeof t?e:(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e},e.stringify=function(t,e){var n={encode:!0,strict:!0};return e=i(n,e),t?Object.keys(t).sort().map(function(n){var o=t[n];if(void 0===o)return"";if(null===o)return r(n,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&(null===t?i.push(r(n,e)):i.push(r(n,e)+"="+r(t,e)))}),i.join("&")}return r(n,e)+"="+r(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function r(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(i){return!1}}var o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=r()?Object.assign:function(t,e){for(var r,a,s=n(t),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var l in r)o.call(r,l)&&(s[l]=r[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(r);for(var c=0;c<a.length;c++)i.call(r,a[c])&&(s[a[c]]=r[a[c]])}}return s}},function(t,e){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){y&&d&&(y=!1,d.length?h=d.concat(h):v=-1,h.length&&s())}function s(){if(!y){var t=o(a);y=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,y=!1,i(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,p,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(t){p=r}}();var d,h=[],y=!1,v=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new u(t,e)),1!==h.length||y||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e){},function(t,e){}]);
//# sourceMappingURL=ReactPlayer.js.map

@@ -52,2 +52,3 @@ 'use strict';

_this.isReady = true;
_this.props.onReady();
if (_this.props.playing || _this.preloading) {

@@ -54,0 +55,0 @@ _this.preloading = false;

@@ -36,2 +36,3 @@ 'use strict';

}),
onReady: _react.PropTypes.func,
onStart: _react.PropTypes.func,

@@ -70,2 +71,3 @@ onPlay: _react.PropTypes.func,

},
onReady: function onReady() {},
onStart: function onStart() {},

@@ -72,0 +74,0 @@ onPlay: function onPlay() {},

{
"name": "react-player",
"version": "0.10.0",
"version": "0.11.0",
"description": "A react component for playing a variety of URLs, including file paths, YouTube, SoundCloud, Streamable and Vimeo",

@@ -5,0 +5,0 @@ "main": "lib/ReactPlayer.js",

@@ -94,6 +94,7 @@ ReactPlayer

---- | -----------
`onReady` | Called when media is loaded and ready to play. If `playing` is set to `true`, media will play immediately
`onStart` | Called when media starts playing
`onPlay` | Called when media starts or resumes playing after pausing or buffering
`onProgress` | Callback containing `played` and `loaded` progress as a fraction<br />eg `{ played: 0.12, loaded: 0.34 }`
`onDuration` | Callback containing duration of the media, in seconds
`onStart` | Called when media starts playing
`onPlay` | Called when media starts or resumes playing after pausing or buffering
`onPause` | Called when media is paused

@@ -100,0 +101,0 @@ `onBuffer` | Called when media starts buffering

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc