packages feed

hylogen 0.1.3.0 → 0.1.3.1

raw patch · 5 files changed

+17/−16 lines, 5 files

Files

README.md view
@@ -1,5 +1,7 @@ # [*H Y L O G E N*](https://hylogen.com) + [![Hackage Status](https://img.shields.io/hackage/v/hylogen.svg)](https://hackage.haskell.org/package/hylogen)+[![Join the chat at https://gitter.im/sleexyz/hylogen](https://badges.gitter.im/sleexyz/hylogen.svg)](https://gitter.im/sleexyz/hylogen?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)  ![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==) @@ -107,3 +109,7 @@ - [hylide](https://github.com/sleexyz/hylide)  +![](data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)+++conceived of at the [recurse center](https://www.recurse.com/) :)
app/Main.hs view
@@ -1,11 +1,14 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DeriveAnyClass #-}   import Paths_hylogen (getDataFileName) import Control.Concurrent import Control.Monad import Data.Aeson+import GHC.Generics import qualified Data.ByteString.Lazy.Char8 as LBS8  import qualified Data.Text as T@@ -26,12 +29,7 @@  data Msg = Err String          | Code String-         deriving (Show)--instance ToJSON Msg where-  toJSON = \case-    Err str -> object [ "error" .= str]-    Code str -> object [ "code" .= str]+         deriving (Show, Generic, ToJSON, FromJSON)  main :: IO () main = do@@ -45,11 +43,8 @@   tid2 <- forkIO $ serveGLSL pathToWatch   putStrLn "Press enter to exit."   void getLine-  -- let fn = do-  --       killThread tid1-  --       killThread tid2-  --       die "diee"-  -- installHandler keyboardSignal (Catch fn) Nothing+  killThread tid1+  killThread tid2   
hylogen.cabal view
@@ -1,5 +1,5 @@ name:                hylogen-version:             0.1.3.0+version:             0.1.3.1 synopsis:            an EDSL for live-coding fragment shaders description:         an EDSL for live-coding fragment shaders homepage:            https://github.com/sleexyz/hylogen
src/Hylogen/Types.hs view
@@ -3,7 +3,7 @@                      , module Hylogen.Types.Texture                      ) where -import Hylogen.Types.Vec hiding (FloatVec, mkSwizz)-import Hylogen.Types.Booly hiding (BoolyType)-import Hylogen.Types.Texture hiding (TextureType)+import Hylogen.Types.Vec hiding (mkSwizz)+import Hylogen.Types.Booly+import Hylogen.Types.Texture 
web/bundle.js view
@@ -30,7 +30,7 @@ 	 * see: https://github.com/dcodeIO/long.js for details
 	 */ !function(a,s){n(192).amd?(o=[],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.e=i))):"object"==typeof e&&e&&e.exports?e.exports=s():(a.dcodeIO=a.dcodeIO||{}).Long=s()}(this,function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return(e&&e.__isLong__)===!0}function n(e,t){var n,r,i;return t?(e>>>=0,(i=e>=0&&256>e)&&(r=u[e])?r:(n=o(e,0>(0|e)?-1:0,!0),i&&(u[e]=n),n)):(e|=0,(i=e>=-128&&128>e)&&(r=s[e])?r:(n=o(e,0>e?-1:0,!1),i&&(s[e]=n),n))}function r(e,t){if(isNaN(e)||!isFinite(e))return t?m:v;if(t){if(0>e)return m;if(e>=p)return _}else{if(-f>=e)return N;if(e+1>=f)return b}return 0>e?r(-e,t).neg():o(e%d|0,e/d|0,t)}function o(t,n,r){return new e(t,n,r)}function i(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return v;if("number"==typeof t&&(n=t,t=!1),n=n||10,2>n||n>36)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return i(e.substring(1),t,n).neg();for(var a=r(l(n,8)),s=v,u=0;u<e.length;u+=8){var c=Math.min(8,e.length-u),d=parseInt(e.substring(u,u+c),n);if(8>c){var p=r(l(n,c));s=s.mul(p).add(r(d))}else s=s.mul(a),s=s.add(r(d))}return s.unsigned=t,s}function a(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?i(t):o(t.low,t.high,t.unsigned)}e.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var s={},u={};e.fromInt=n,e.fromNumber=r,e.fromBits=o;var l=Math.pow;e.fromString=i,e.fromValue=a;var c=1<<24,d=4294967296,p=0x10000000000000000,f=p/2,h=n(c),v=n(0);e.ZERO=v;var m=n(0,!0);e.UZERO=m;var g=n(1);e.ONE=g;var y=n(1,!0);e.UONE=y;var E=n(-1);e.NEG_ONE=E;var b=o(-1,2147483647,!1);e.MAX_VALUE=b;var _=o(-1,-1,!0);e.MAX_UNSIGNED_VALUE=_;var N=o(0,-2147483648,!1);e.MIN_VALUE=N;var w=e.prototype;return w.toInt=function(){return this.unsigned?this.low>>>0:this.low},w.toNumber=function(){return this.unsigned?(this.high>>>0)*d+(this.low>>>0):this.high*d+(this.low>>>0)},w.toString=function(e){if(e=e||10,2>e||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(N)){var t=r(e),n=this.div(t),o=n.mul(t).sub(this);return n.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=r(l(e,6),this.unsigned),a=this,s="";;){var u=a.div(i),c=a.sub(u.mul(i)).toInt()>>>0,d=c.toString(e);if(a=u,a.isZero())return d+s;for(;d.length<6;)d="0"+d;s=""+d+s}},w.getHighBits=function(){return this.high},w.getHighBitsUnsigned=function(){return this.high>>>0},w.getLowBits=function(){return this.low},w.getLowBitsUnsigned=function(){return this.low>>>0},w.getNumBitsAbs=function(){if(this.isNegative())return this.eq(N)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},w.isZero=function(){return 0===this.high&&0===this.low},w.isNegative=function(){return!this.unsigned&&this.high<0},w.isPositive=function(){return this.unsigned||this.high>=0},w.isOdd=function(){return 1===(1&this.low)},w.isEven=function(){return 0===(1&this.low)},w.equals=function(e){return t(e)||(e=a(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?!1:this.high===e.high&&this.low===e.low},w.eq=w.equals,w.notEquals=function(e){return!this.eq(e)},w.neq=w.notEquals,w.lessThan=function(e){return this.comp(e)<0},w.lt=w.lessThan,w.lessThanOrEqual=function(e){return this.comp(e)<=0},w.lte=w.lessThanOrEqual,w.greaterThan=function(e){return this.comp(e)>0},w.gt=w.greaterThan,w.greaterThanOrEqual=function(e){return this.comp(e)>=0},w.gte=w.greaterThanOrEqual,w.compare=function(e){if(t(e)||(e=a(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},w.comp=w.compare,w.negate=function(){return!this.unsigned&&this.eq(N)?N:this.not().add(g)},w.neg=w.negate,w.add=function(e){t(e)||(e=a(e));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,u=e.high>>>16,l=65535&e.high,c=e.low>>>16,d=65535&e.low,p=0,f=0,h=0,v=0;return v+=s+d,h+=v>>>16,v&=65535,h+=i+c,f+=h>>>16,h&=65535,f+=r+l,p+=f>>>16,f&=65535,p+=n+u,p&=65535,o(h<<16|v,p<<16|f,this.unsigned)},w.subtract=function(e){return t(e)||(e=a(e)),this.add(e.neg())},w.sub=w.subtract,w.multiply=function(e){if(this.isZero())return v;if(t(e)||(e=a(e)),e.isZero())return v;if(this.eq(N))return e.isOdd()?N:v;if(e.eq(N))return this.isOdd()?N:v;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(h)&&e.lt(h))return r(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,s=this.low>>>16,u=65535&this.low,l=e.high>>>16,c=65535&e.high,d=e.low>>>16,p=65535&e.low,f=0,m=0,g=0,y=0;return y+=u*p,g+=y>>>16,y&=65535,g+=s*p,m+=g>>>16,g&=65535,g+=u*d,m+=g>>>16,g&=65535,m+=i*p,f+=m>>>16,m&=65535,m+=s*d,f+=m>>>16,m&=65535,m+=u*c,f+=m>>>16,m&=65535,f+=n*p+i*d+s*c+u*l,f&=65535,o(g<<16|y,f<<16|m,this.unsigned)},w.mul=w.multiply,w.divide=function(e){if(t(e)||(e=a(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?m:v;var n,o,i;if(this.eq(N)){if(e.eq(g)||e.eq(E))return N;if(e.eq(N))return g;var s=this.shr(1);return n=s.div(e).shl(1),n.eq(v)?e.isNegative()?g:E:(o=this.sub(e.mul(n)),i=n.add(o.div(e)))}if(e.eq(N))return this.unsigned?m:v;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();for(i=v,o=this;o.gte(e);){n=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var u=Math.ceil(Math.log(n)/Math.LN2),c=48>=u?1:l(2,u-48),d=r(n),p=d.mul(e);p.isNegative()||p.gt(o);)n-=c,d=r(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=g),i=i.add(d),o=o.sub(p)}return i},w.div=w.divide,w.modulo=function(e){return t(e)||(e=a(e)),this.sub(this.div(e).mul(e))},w.mod=w.modulo,w.not=function(){return o(~this.low,~this.high,this.unsigned)},w.and=function(e){return t(e)||(e=a(e)),o(this.low&e.low,this.high&e.high,this.unsigned)},w.or=function(e){return t(e)||(e=a(e)),o(this.low|e.low,this.high|e.high,this.unsigned)},w.xor=function(e){return t(e)||(e=a(e)),o(this.low^e.low,this.high^e.high,this.unsigned)},w.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0===(e&=63)?this:32>e?o(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):o(0,this.low<<e-32,this.unsigned)},w.shl=w.shiftLeft,w.shiftRight=function(e){return t(e)&&(e=e.toInt()),0===(e&=63)?this:32>e?o(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):o(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},w.shr=w.shiftRight,w.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),e&=63,0===e)return this;var n=this.high;if(32>e){var r=this.low;return o(r>>>e|n<<32-e,n>>>e,this.unsigned)}return 32===e?o(n,0,this.unsigned):o(n>>>e-32,0,this.unsigned)},w.shru=w.shiftRightUnsigned,w.toSigned=function(){return this.unsigned?o(this.low,this.high,!1):this},w.toUnsigned=function(){return this.unsigned?this:o(this.low,this.high,!0)},e})}).call(t,n(193)(e))},function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};e.e=s},function(e,t,n){(function(t){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(3),i=n(16),a=n(1);o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,n=this._contexts;if(e){e.length!==n.length?"production"!==t.env.NODE_ENV?a(!1,"Mismatched list of contexts in callback queue"):a(!1):void 0,this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(n[r]);e.length=0,n.length=0}},checkpoint:function(){return this._callbacks?this._callbacks.length:0},rollback:function(e){this._callbacks&&(this._callbacks.length=e,this._contexts.length=e)},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),i.addPoolingTo(r),e.e=r}).call(t,n(0))},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);g(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?l(u,o,n,m.thatReturnsArgument):null!=u&&(v.isValidElement(u)&&(u=v.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function l(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var l=s.getPooled(t,a,o,i);g(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function d(e,t,n){return null}function p(e,t){return g(e,d,null)}function f(e){var t=[];return l(e,t,null,m.thatReturnsArgument),t}var h=n(16),v=n(7),m=n(9),g=n(54),y=h.twoArgumentPooler,E=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,E);var _={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:p,toArray:f};e.e=_},function(e,t,n){(function(t){"use strict";function r(e,n,r){for(var o in n)n.hasOwnProperty(o)&&("production"!==t.env.NODE_ENV?N("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",m[r],o):void 0)}function o(e,n){var r=T.hasOwnProperty(n)?T[n]:null;P.hasOwnProperty(n)&&(r!==C.OVERRIDE_BASE?"production"!==t.env.NODE_ENV?E(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):E(!1):void 0),e&&(r!==C.DEFINE_MANY&&r!==C.DEFINE_MANY_MERGED?"production"!==t.env.NODE_ENV?E(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):E(!1):void 0)}function i(e,n){if(n){"function"==typeof n?"production"!==t.env.NODE_ENV?E(!1,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."):E(!1):void 0,h.isValidElement(n)?"production"!==t.env.NODE_ENV?E(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):E(!1):void 0;var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(w)&&D.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==w){var s=n[a],c=r.hasOwnProperty(a);if(o(c,a),D.hasOwnProperty(a))D[a](e,s);else{var d=T.hasOwnProperty(a),p="function"==typeof s,f=p&&!d&&!c&&n.autobind!==!1;if(f)i.push(a,s),r[a]=s;else if(c){var v=T[a];!d||v!==C.DEFINE_MANY_MERGED&&v!==C.DEFINE_MANY?"production"!==t.env.NODE_ENV?E(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a):E(!1):void 0,v===C.DEFINE_MANY_MERGED?r[a]=u(r[a],s):v===C.DEFINE_MANY&&(r[a]=l(r[a],s))}else r[a]=s,"production"!==t.env.NODE_ENV&&"function"==typeof s&&n.displayName&&(r[a].displayName=n.displayName+"_"+a)}}}}function a(e,n){if(n)for(var r in n){var o=n[r];if(n.hasOwnProperty(r)){var i=r in D;i?"production"!==t.env.NODE_ENV?E(!1,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r):E(!1):void 0;var a=r in e;a?"production"!==t.env.NODE_ENV?E(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r):E(!1):void 0,e[r]=o}}}function s(e,n){e&&n&&"object"==typeof e&&"object"==typeof n?void 0:"production"!==t.env.NODE_ENV?E(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):E(!1);for(var r in n)n.hasOwnProperty(r)&&(void 0!==e[r]?"production"!==t.env.NODE_ENV?E(!1,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r):E(!1):void 0,e[r]=n[r]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,i=r.bind;r.bind=function(a){for(var s=arguments.length,u=Array(s>1?s-1:0),l=1;s>l;l++)u[l-1]=arguments[l];if(a!==e&&null!==a)"production"!==t.env.NODE_ENV?N(!1,"bind(): React component methods may only be bound to the component instance. See %s",o):void 0;else if(!u.length)return"production"!==t.env.NODE_ENV?N(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",o):void 0,r;var c=i.apply(r,arguments);return c.__reactBoundContext=e,c.__reactBoundMethod=n,c.__reactBoundArguments=u,c}}return r}function d(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=c(e,o)}}var p=n(3),f=n(67),h=n(7),v=n(32),m=n(31),g=n(78),y=n(25),E=n(1),b=n(26),_=n(13),N=n(2),w=_({mixins:null}),C=b({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),O=[],T={mixins:C.DEFINE_MANY,statics:C.DEFINE_MANY,propTypes:C.DEFINE_MANY,contextTypes:C.DEFINE_MANY,childContextTypes:C.DEFINE_MANY,getDefaultProps:C.DEFINE_MANY_MERGED,getInitialState:C.DEFINE_MANY_MERGED,getChildContext:C.DEFINE_MANY_MERGED,render:C.DEFINE_ONCE,componentWillMount:C.DEFINE_MANY,componentDidMount:C.DEFINE_MANY,componentWillReceiveProps:C.DEFINE_MANY,shouldComponentUpdate:C.DEFINE_ONCE,componentWillUpdate:C.DEFINE_MANY,componentDidUpdate:C.DEFINE_MANY,componentWillUnmount:C.DEFINE_MANY,updateComponent:C.OVERRIDE_BASE},D={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,v.childContext),e.childContextTypes=p({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,v.context),e.contextTypes=p({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&r(e,n,v.prop),e.propTypes=p({},e.propTypes,n)},statics:function(e,t){a(e,t)},autobind:function(){}},P={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},S=function(){};p(S.prototype,f.prototype,P);var A={createClass:function(e){var n=function(e,r,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?N(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindPairs.length&&d(this),this.props=e,this.context=r,this.refs=y,this.updater=o||g,this.state=null;var i=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&void 0===i&&this.getInitialState._isMockFunction&&(i=null),"object"!=typeof i||Array.isArray(i)?"production"!==t.env.NODE_ENV?E(!1,"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):E(!1):void 0,this.state=i};n.prototype=new S,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],O.forEach(i.bind(null,n)),i(n,e),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),n.prototype.render?void 0:"production"!==t.env.NODE_ENV?E(!1,"createClass(...): Class specification must implement a `render` method."):E(!1),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?N(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"):void 0,"production"!==t.env.NODE_ENV?N(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"):void 0);for(var r in T)n.prototype[r]||(n.prototype[r]=null);return n},injection:{injectMixin:function(e){O.push(e)}}};e.e=A}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||o}var o=n(78),i=n(30),a=n(45),s=n(25),u=n(1),l=n(2);if(r.prototype.isReactComponent={},r.prototype.setState=function(e,n){"object"!=typeof e&&"function"!=typeof e&&null!=e?"production"!==t.env.NODE_ENV?u(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):u(!1):void 0,"production"!==t.env.NODE_ENV&&(i.debugTool.onSetState(),"production"!==t.env.NODE_ENV?l(null!=e,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0),this.updater.enqueueSetState(this,e),n&&this.updater.enqueueCallback(this,n,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")},"production"!==t.env.NODE_ENV){var c={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},d=function(e,n){a&&Object.defineProperty(r.prototype,e,{get:function(){"production"!==t.env.NODE_ENV?l(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1]):void 0}})};for(var p in c)c.hasOwnProperty(p)&&d(p,c[p])}e.e=r}).call(t,n(0))},function(e,t,n){"use strict";var r=n(36),o=n(145),i=n(6),a={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,unmountIDFromEnvironment:function(e){}};i.measureMethods(a,"ReactComponentBrowserEnvironment",{replaceNodeWithMarkup:"replaceNodeWithMarkup"}),e.e=a},function(e,t,n){"use strict";var r={hasCachedChildNodes:1};e.e=r},function(e,t,n){(function(t){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=c.getValue(e);null!=t&&s(this,Boolean(e.multiple),t)}}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(e){null==e||null!==e.value||v||("production"!==t.env.NODE_ENV?f(!1,"`value` prop on `select` should not be null. Consider using the empty string to clear the component or `undefined` for uncontrolled components."):void 0,v=!0)}function a(e,n){var r=e._currentElement._owner;c.checkPropTypes("select",n,r),void 0===n.valueLink||h||("production"!==t.env.NODE_ENV?f(!1,"`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead."):void 0,h=!0);for(var i=0;i<g.length;i++){var a=g[i];null!=n[a]&&(n.multiple?"production"!==t.env.NODE_ENV?f(Array.isArray(n[a]),"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,o(r)):void 0:"production"!==t.env.NODE_ENV?f(!Array.isArray(n[a]),"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,o(r)):void 0)}}function s(e,t,n){var r,o,i=d.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function u(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),p.asap(r,this),n}var l=n(3),c=n(39),d=n(4),p=n(10),f=n(2),h=!1,v=!1,m=!1,g=["value","defaultValue"],y={getNativeProps:function(e,t){return l({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,n){"production"!==t.env.NODE_ENV&&(a(e,n),i(n));var r=c.getValue(n);e._wrapperState={pendingUpdate:!1,initialValue:null!=r?r:n.defaultValue,listeners:null,onChange:u.bind(e),wasMultiple:Boolean(n.multiple)},void 0===n.value||void 0===n.defaultValue||m||("production"!==t.env.NODE_ENV?f(!1,"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://fb.me/react-controlled-components"):void 0,m=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var n=e._currentElement.props;"production"!==t.env.NODE_ENV&&i(n),e._wrapperState.initialValue=void 0;var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(n.multiple);var o=c.getValue(n);null!=o?(e._wrapperState.pendingUpdate=!1,s(e,Boolean(n.multiple),o)):r!==Boolean(n.multiple)&&(null!=n.defaultValue?s(e,Boolean(n.multiple),n.defaultValue):s(e,Boolean(n.multiple),n.multiple?[]:""))}};e.e=y}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(){if(p.current){var e=p.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,n){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=i("uniqueKey",e,n);null!==r&&("production"!==t.env.NODE_ENV?m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s%s',r.parentOrOwner||"",r.childOwner||"",r.url||""):void 0)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=g[e]||(g[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==p.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];l.isValidElement(r)&&o(r,t)}else if(l.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var i=h(e);if(i&&i!==e.entries)for(var a,s=i.call(e);!(a=s.next()).done;)l.isValidElement(a.value)&&o(a.value,t)}}function s(e,n,o,i){for(var a in n)if(n.hasOwnProperty(a)){var s;try{"function"!=typeof n[a]?"production"!==t.env.NODE_ENV?v(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e||"React class",d[i],a):v(!1):void 0,s=n[a](o,a,e,i)}catch(u){s=u}if("production"!==t.env.NODE_ENV?m(!s||s instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",e||"React class",d[i],a,typeof s):void 0,s instanceof Error&&!(s.message in y)){y[s.message]=!0;var l=r();"production"!==t.env.NODE_ENV?m(!1,"Failed propType: %s%s",s.message,l):void 0}}}function u(e){var n=e.type;if("function"==typeof n){var r=n.displayName||n.name;n.propTypes&&s(r,n.propTypes,e.props,c.prop),"function"==typeof n.getDefaultProps&&("production"!==t.env.NODE_ENV?m(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var l=n(7),c=n(32),d=n(31),p=n(15),f=n(45),h=n(50),v=n(1),m=n(2),g={},y={},E={createElement:function(e,n,o){var i="string"==typeof e||"function"==typeof e;"production"!==t.env.NODE_ENV?m(i,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",r()):void 0;var s=l.createElement.apply(this,arguments);if(null==s)return s;if(i)for(var c=2;c<arguments.length;c++)a(arguments[c],e);return u(s),s},createFactory:function(e){var n=E.createElement.bind(null,e);return n.type=e,"production"!==t.env.NODE_ENV&&f&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return"production"!==t.env.NODE_ENV?m(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:e}),e}}),n},cloneElement:function(e,t,n){for(var r=l.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return u(r),r}};e.e=E}).call(t,n(0))},function(e,t,n){"use strict";var r,o={injectEmptyComponentFactory:function(e){r=e}},i={create:function(e){return r(e)}};i.injection=o,e.e=i},function(e,t,n){"use strict";var r={logTopLevelRenders:!1};e.e=r},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(149),i=n(100),a=n(58),s=n(59),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.e=u},function(e,t,n){"use strict";var r=n(26),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.e=o},function(e,t,n){(function(t){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=d[t];return null==n&&(d[t]=n=l(t)),n}function o(e){return c?void 0:"production"!==t.env.NODE_ENV?u(!1,"There is no registered component for the tag %s",e.type):u(!1),new c(e)}function i(e){return new p(e)}function a(e){return e instanceof p}var s=n(3),u=n(1),l=null,c=null,d={},p=null,f={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){p=e},injectComponentClasses:function(e){s(d,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:f};e.e=h}).call(t,n(0))},function(e,t,n){(function(t){"use strict";var r=n(7),o=n(1),i={NATIVE:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.NATIVE:void("production"!==t.env.NODE_ENV?o(!1,"Unexpected node: %s",e):o(!1))}};e.e=i}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,e.constructor&&e.constructor.displayName||""):void 0)}var o=n(2),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}};e.e=i}).call(t,n(0))},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){function t(t,n,r,o,i,a){if(o=o||w,a=a||r,null==n[r]){var s=b[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e){function t(t,n,r,o,i){var a=t[n],s=m(a);if(s!==e){var u=b[o],l=g(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return o(t)}function a(){return o(_.thatReturns(null))}function s(e){function t(t,n,r,o,i){if("function"!=typeof e)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a)){var s=b[o],u=m(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<a.length;l++){var c=e(a,l,r,o,i+"["+l+"]");if(c instanceof Error)return c}return null}return o(t)}function u(){function e(e,t,n,r,o){if(!E.isValidElement(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return o(e)}function l(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=b[o],s=e.name||w,u=y(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return o(t)}function c(e){function t(t,n,o,i,a){for(var s=t[n],u=0;u<e.length;u++)if(r(s,e[u]))return null;var l=b[i],c=JSON.stringify(e);return new Error("Invalid "+l+" `"+a+"` of value `"+s+"` "+("supplied to `"+o+"`, expected one of "+c+"."))}return o(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function d(e){function t(t,n,r,o,i){if("function"!=typeof e)return new Error("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=m(a);if("object"!==s){var u=b[o];return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var l in a)if(a.hasOwnProperty(l)){var c=e(a,l,r,o,i+"."+l);-if(c instanceof Error)return c}return null}return o(t)}function p(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var u=b[o];return new Error("Invalid "+u+" `"+i+"` supplied to "+("`"+r+"`."))}return o(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function f(){function e(e,t,n,r,o){if(!v(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return o(e)}function h(e){function t(t,n,r,o,i){var a=t[n],s=m(a);if("object"!==s){var u=b[o];return new Error("Invalid "+u+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var l in e){var c=e[l];if(c){var d=c(a,l,r,o,i+"."+l);if(d)return d}}return null}return o(t)}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||E.isValidElement(e))return!0;var t=N(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function g(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){return e.constructor&&e.constructor.name?e.constructor.name:w}var E=n(7),b=n(31),_=n(9),N=n(50),w="<<anonymous>>",C={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:a(),arrayOf:s,element:u(),instanceOf:l,node:f(),objectOf:d,oneOf:c,oneOfType:p,shape:h};e.e=C},function(e,t,n){(function(t){"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,n){var r=s.get(e);return r?("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c(null==a.current,"%s(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.",n):void 0),r):("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c(!n,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,e.constructor.displayName):void 0),null)}var a=n(15),s=n(42),u=n(10),l=n(1),c=n(2),d={isMounted:function(e){if("production"!==t.env.NODE_ENV){var n=a.current;null!==n&&("production"!==t.env.NODE_ENV?c(n._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}var r=s.get(e);return r?!!r._renderedComponent:!1},enqueueCallback:function(e,t,n){d.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,n){e&&"function"!=typeof e?"production"!==t.env.NODE_ENV?l(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,o(e)):l(!1):void 0}};e.e=d}).call(t,n(0))},function(e,t,n){"use strict";e.e="15.0.1"},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.e=r},function(e,t,n){(function(t){"use strict";function r(e,n){if(null==n?"production"!==t.env.NODE_ENV?o(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):o(!1):void 0,null==e)return n;var r=Array.isArray(e),i=Array.isArray(n);return r&&i?(e.push.apply(e,n),e):r?(e.push(n),e):i?[e].concat(n):[e,n]}var o=n(1);e.e=r}).call(t,n(0))},function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.e=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.NATIVE?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(77);e.e=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(5),i=null;e.e=r},function(e,t,n){(function(t){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var a=e;!a||"function"!=typeof a.type&&"string"!=typeof a.type?"production"!==t.env.NODE_ENV?c(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==a.type?a.type:typeof a.type,r(a._owner)):c(!1):void 0,n="string"==typeof a.type?l.createInternalComponent(a):o(a.type)?new a.type(a):new p(a)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?d("function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.getNativeNode&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."):void 0),n._mountIndex=0,n._mountImage=null,"production"!==t.env.NODE_ENV&&(n._isOwnerNecessary=!1,n._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(n),n}var a=n(3),s=n(136),u=n(72),l=n(76),c=n(1),d=n(2),p=function(e){this.construct(e)};a(p.prototype,s.Mixin,{_instantiateReactComponent:i}),e.e=i}).call(t,n(0))},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&o[e.type]||"textarea"===t)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.e=r},function(e,t,n){"use strict";var r=n(5),o=n(34),i=n(52),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.e=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(8),i=r(o),a=n(27),s=r(a),u=n(94),l=r(u),c=n(91),d=r(c),p=n(92),f=r(p),h="\nvoid main() {\n  gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",v=i["default"].createClass({getInitialState:function(){return{fsSource:h,showControls:!1,bannerClass:"",error:!1,errorText:""}},componentWillMount:function(){this.connectToServer()},componentDidMount:function(){var e=this;window.setTimeout(function(){e.setState({bannerClass:"hidden"})},3e3)},connectToServer:function(){var e=this,t=new WebSocket("ws://localhost:8080/");t.onopen=function(){console.log("websocket opened!")},t.onclose=function(){console.log("websocket closed"),window.setTimeout(e.connectToServer,1e3)},t.onmessage=function(t){var n=JSON.parse(t.data);void 0!==n.code?e.setState({fsSource:n.code,error:!1,errorText:""}):void 0!==n.error?(console.error(n.error),e.setState({error:!0,errorText:n.error})):console.error("unexpected error!")}},toggleShow:function(){this.setState(function(e){return{showControls:!e.showControls}})},render:function(){var e=this.state.showControls?"hide":"show",t=this.state.showControls?"unhiddenFast":"hiddenFast",n=this.state.error?i["default"].createElement("div",null,i["default"].createElement(f["default"],{text:this.state.errorText})):i["default"].createElement("div",null);return i["default"].createElement("div",{id:"entry"},i["default"].createElement("div",{id:"banner",className:this.state.bannerClass},i["default"].createElement("div",{id:"title"},"Hylogen")),i["default"].createElement("button",{onClick:this.toggleShow,id:"hideButton"},e),i["default"].createElement("div",{className:t},i["default"].createElement(d["default"],{initialState:"usermedia"})),n,i["default"].createElement(l["default"],{startAnimating:!0,fsSource:this.state.fsSource,withOSC:!0}))}});s["default"].render(i["default"].createElement(v,null),document.getElementById("entry"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27),s=(r(a),n(116)),u=n(56),l=r(u),c=i["default"].createClass({propTypes:{initPlaying:o.PropTypes.bool},getDefaultProps:function(){return{initPlaying:!1}},getInitialState:function(){var e=localStorage.getItem("scurl")||"https://soundcloud.com/tennysonmusic/xyz"||"https://soundcloud.com/tennysonmusic/angus-julia-stone-for-you"||"https://soundcloud.com/herzeloyde/deception"||"https://soundcloud.com/aslamin/strannoe-chuvstvo";return{playing:this.props.initPlaying,val:0,url:e}},startPlaying:function(){this.startUpdating(),this.scPlayer.play()},stopPlaying:function(){window.clearTimeout(this.intervalId),this.scPlayer.pause()},componentWillMount:function(){l["default"].initializeAudioSoundCloud(this.state.url,this.props.initPlaying),this.scPlayer=l["default"].scPlayer},componentDidMount:function(){this.props.initPlaying&&this.startUpdating()},componentWillUpdate:function(e,t){t.playing!==this.state.playing&&(t.playing?this.startPlaying():this.stopPlaying())},togglePlay:function(){this.setState(function(e){return{playing:!e.playing}})},update:function(){var e=this.scPlayer.audio.currentTime/(this.scPlayer.duration/100);this.setState({val:e})},startUpdating:function(){this.intervalId=window.setInterval(this.update,100)},componentWillUnmount:function(){window.clearTimeout(this.intervalId)},onUrlChange:function(e){this.setState({url:e.currentTarget.value})},onSubmit:function(e){e.preventDefault(),localStorage.setItem("scurl",this.state.url),this.scPlayer.resolve(this.state.url,function(e){this.setState({playing:!1},function(){this.setState({playing:!0})}.bind(this))}.bind(this))},render:function(){var e=this.state.playing?"[pause]":"[play]";return i["default"].createElement("div",{className:"scPlayer"},i["default"].createElement("div",{className:"row"},i["default"].createElement("button",{onClick:this.togglePlay}," ",e),i["default"].createElement(s.Progress,{innerStyle:{},soundCloudAudio:this.scPlayer,value:this.state.val})),i["default"].createElement("div",{className:"row"},i["default"].createElement("form",{onSubmit:this.onSubmit},i["default"].createElement("input",{value:this.state.url,style:{width:"40vw"},onChange:this.onUrlChange}))))}}),d=i["default"].createClass({componentWillMount:function(){l["default"].initializeAudioUserMedia()},render:function(){return i["default"].createElement("div",null)}});t["default"]=i["default"].createClass({propTypes:{initialState:o.PropTypes.string},getDefaultProps:function(){return{initialState:"sc"}},getInitialState:function(){return{state:this.props.initialState,initPlaying:!1}},onChange:function(e){this.setState({state:e.currentTarget.value,initPlaying:!0})},render:function(){var e="sc"===this.state.state?i["default"].createElement(c,{initPlaying:this.state.initPlaying}):i["default"].createElement(d,null);return i["default"].createElement("div",{className:"audioControls"},i["default"].createElement("div",{className:"inputPicker"},i["default"].createElement("br",null),"sc : ",i["default"].createElement("input",{type:"radio",checked:"sc"===this.state.state,value:"sc",onChange:this.onChange}),i["default"].createElement("br",null),"mic: ",i["default"].createElement("input",{type:"radio",checked:"usermedia"===this.state.state,value:"usermedia",onChange:this.onChange})),e)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27);r(a);t["default"]=i["default"].createClass({propTypes:{text:o.PropTypes.string.isRequired},render:function(){return i["default"].createElement("div",{className:"errorText"},this.props.text)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(97),t["default"]=new function(){this.singleton=void 0,this.getInstance=function(){return void 0===this.singleton&&(this.singleton=new osc.WebSocketPort({url:"ws://localhost:9091"}),this.singleton.open()),this.singleton}.bind(this)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27),s=(r(a),n(56)),u=r(s),l=n(93),c=r(l),d=" attribute vec3 aPosition;\nvarying vec2 uvN;\nvoid main() {\n  gl_Position = vec4(aPosition, 1.0);\n  uvN = aPosition.xy;\n}",p="precision mediump float;\nconst float pi = 3.141592653589793238462643383;\nuniform float osc1;\nuniform float osc2;\nuniform float osc3;\nuniform float osc4;\nuniform float osc5;\nuniform float osc6;\nuniform float osc7;\nuniform float osc8;\nuniform float time;\nuniform vec2 mouse;\nuniform vec2 resolution;\nuniform vec4 audio;\nuniform sampler2D backBuffer;\nuniform sampler2D channel1;\nvarying vec2 uvN;\nvec2 uv() {\n  return 0.5 * uvN  + 0.5;\n}";t["default"]=i["default"].createClass({propTypes:{vsSource:o.PropTypes.string,fsSource:o.PropTypes.string.isRequired,width:o.PropTypes.number,height:o.PropTypes.number,withOSC:o.PropTypes.bool.isRequired,animation:o.PropTypes.bool},getDefaultProps:function(){return{width:Math.max(window.innerHeight,window.innerWidth),height:Math.max(window.innerHeight,window.innerWidth),vsSource:d,animation:!0}},componentDidMount:function(){function e(e){var t=e.target.getBoundingClientRect();n.mouse.x=(e.clientX-t.left)/(t.right-t.left)*2-1,n.mouse.y=(e.clientY-t.bottom)/(t.top-t.bottom)*2-1}var t=this.canvas,n=(this.gl=t.getContext("webgl"),this.state_={});if(n.animationFrameRequest=null,n.bit=0,n.fb=[null,null],n.time0=new Date/1e3,n.audioCallback=null,t.onmousemove=e,n.mouse={x:0,y:0},n.audio={low:0,mid:0,upper:0,high:0},n.audioCallback=u["default"].addCallback(function(e){n.audio.low=e.low,n.audio.mid=e.mid,n.audio.upper=e.upper,n.audio.high=e.high}),n.osc=new Float32Array(8),this.props.withOSC){var r=c["default"].getInstance();r.on("message",function(e){var t=parseInt(e.address.slice(7)),r=e.args[0];n.osc[t]=r})}this.loadProgram()},loadProgram:function(){function e(e,t,n){var r=e.createShader(n);e.shaderSource(r,t),e.compileShader(r);var o=e.getShaderParameter(r,e.COMPILE_STATUS);if(!o)throw console.log(t),"could not compile shader:"+e.getShaderInfoLog(r);return r}function t(){var e={texture:r.createTexture(),framebuffer:r.createFramebuffer()};return r.bindTexture(r.TEXTURE_2D,e.texture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,i,a,0,r.RGBA,r.UNSIGNED_BYTE,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0),r.bindTexture(r.TEXTURE_2D,null),r.bindFramebuffer(r.FRAMEBUFFER,null),e}function n(e){var t=r.createTexture();r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),o.textures.push(t)}var r=this.gl,o=this.state_,i=this.props.width,a=this.props.height,s=e(r,this.props.vsSource,r.VERTEX_SHADER),u=e(r,p+"\n"+this.props.fsSource,r.FRAGMENT_SHADER),l=r.createProgram();r.attachShader(l,s),r.attachShader(l,u),r.linkProgram(l);var c=r.getProgramParameter(l,r.LINK_STATUS);if(!c)throw"program failed to link:"+r.getProgramInfoLog(l);r.useProgram(l),r.bindBuffer(r.ARRAY_BUFFER,r.createBuffer()),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,1,0,1,1,0,-1,-1,0,1,-1,0]),r.STATIC_DRAW),r.aPosition=r.getAttribLocation(l,"aPosition"),r.enableVertexAttribArray(r.aPosition),r.vertexAttribPointer(r.aPosition,3,r.FLOAT,!1,0,0),o.fb[0]=t(),o.fb[1]=t(),o.textures=[];var d=new Image;d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABpAgMAAADZ4ewhAAAADFBMVEVlLWcjHyD///9aukdNbQb8AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgBBsTBjDG601/AAAAbUlEQVRIx2MIxQYYBoVo2Cp0MHXQiC5FcWvUIBJd//9q6P+/ofFAapCJDt4wWxpa/x/s3v//B53o4A2zwSo6WEuNQVvSQgEad1CIMmK41mFwiILprFXgRAilYOE78KKgnLBqJYwKHUSigzMHAADhlJM2vqJTOQAAAABJRU5ErkJggg==",n(d),r.osc1=r.getUniformLocation(l,"osc1"),r.osc2=r.getUniformLocation(l,"osc2"),r.osc3=r.getUniformLocation(l,"osc3"),r.osc4=r.getUniformLocation(l,"osc4"),r.osc5=r.getUniformLocation(l,"osc5"),r.osc6=r.getUniformLocation(l,"osc6"),r.osc7=r.getUniformLocation(l,"osc7"),r.osc8=r.getUniformLocation(l,"osc8"),r.time=r.getUniformLocation(l,"time"),r.mouse=r.getUniformLocation(l,"mouse"),r.audio=r.getUniformLocation(l,"audio"),r.resolution=r.getUniformLocation(l,"resolution"),r.backBuffer=r.getUniformLocation(l,"backBuffer"),r.channel1=r.getUniformLocation(l,"channel1"),this.draw(),this.props.animation&&null===o.animationFrameRequest&&(o.animationFrameRequest=requestAnimationFrame(this.animate))},draw:function(){var e=this.gl,t=this.state_;e.uniform1f(e.osc1,t.osc[0]),e.uniform1f(e.osc2,t.osc[1]),e.uniform1f(e.osc3,t.osc[2]),e.uniform1f(e.osc4,t.osc[3]),e.uniform1f(e.osc5,t.osc[4]),e.uniform1f(e.osc6,t.osc[5]),e.uniform1f(e.osc7,t.osc[6]),e.uniform1f(e.osc8,t.osc[7]),e.uniform1f(e.time,(new Date).getTime()/1e3-t.time0),e.uniform2f(e.mouse,t.mouse.x,t.mouse.y),e.uniform2f(e.resolution,this.props.width,this.props.height),e.uniform4f(e.audio,t.audio.low,t.audio.mid,t.audio.upper,t.audio.high);for(var n=1;n<t.textures.length+1;n++)e.uniform1i(e.channel1,n),e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,t.textures[n-1]);e.uniform1i(e.backBuffer,0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.fb[t.bit].texture),t.bit=(t.bit+1)%2,e.bindFramebuffer(e.FRAMEBUFFER,t.fb[t.bit].framebuffer),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_STRIP,0,4),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.fb[t.bit].texture),e.bindFramebuffer(e.FRAMEBUFFER,null),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_STRIP,0,4)},animate:function(){this.draw(),this.state_.animationFrameRequest=requestAnimationFrame(this.animate)},componentDidUpdate:function(){this.props.animation||(cancelAnimationFrame(this.state_.animationFrameRequest),this.state_.animationFrameRequest=null),this.loadProgram()},componentWillUnmount:function(){cancelAnimationFrame(this.state_.animationFrameRequest),u["default"].removeCallback(this.state_.audioCallback)},render:function(){var e=this;return i["default"].createElement("canvas",{ref:function(t){return e.canvas=t},className:"program",width:this.props.width,height:this.props.height})}})},function(e,t){"use strict";function n(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;n>t;++t)s[t]=e[t],u[e.charCodeAt(t)]=t;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63}function r(e){var t,n,r,o,i,a,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new l(3*s/4-i),r=i>0?s-4:s;var c=0;for(t=0,n=0;r>t;t+=4,n+=3)o=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],a[c++]=o>>16&255,a[c++]=o>>8&255,a[c++]=255&o;return 2===i?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,a[c++]=255&o):1===i&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,a[c++]=o>>8&255,a[c++]=255&o),a}function o(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function i(e,t,n){for(var r,i=[],a=t;n>a;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(o(r));return i.join("")}function a(e){for(var t,n=e.length,r=n%3,o="",a=[],u=16383,l=0,c=n-r;c>l;l+=u)a.push(i(e,l,l+u>c?c:l+u));return 1===r?(t=e[n-1],o+=s[t>>2],o+=s[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=s[t>>10],o+=s[t>>4&63],o+=s[t<<2&63],o+="="),a.push(o),a.join("")}t.toByteArray=r,t.fromByteArray=a;var s=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array;n()},function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.e=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),l=n.slice(),r=l.length,u=0;r>u;u++)l[u].apply(this,i);return!0},r.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(t){e.e=t.osc=n(114)}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;e.e=r},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(98),i=/^-ms-/;e.e=r},function(e,t,n){"use strict";function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=n(107);e.e=r},function(e,t,n){(function(t){"use strict";function r(e){var n=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?"production"!==t.env.NODE_ENV?a(!1,"toArray: Array-like object expected"):a(!1):void 0,"number"!=typeof n?"production"!==t.env.NODE_ENV?a(!1,"toArray: Object needs a length property"):a(!1):void 0,0===n||n-1 in e?void 0:"production"!==t.env.NODE_ENV?a(!1,"toArray: Object should have keys for indices"):a(!1),"function"==typeof e.callee?"production"!==t.env.NODE_ENV?a(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(r){}for(var o=Array(n),i=0;n>i;i++)o[i]=e[i];return o}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var a=n(1);e.e=i}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,n){var o=l;l?void 0:"production"!==t.env.NODE_ENV?u(!1,"createNodesFromMarkup dummy not initialized"):u(!1);var i=r(e),c=i&&s(i);if(c){o.innerHTML=c[1]+e+c[2];for(var d=c[0];d--;)o=o.lastChild}else o.innerHTML=e;var p=o.getElementsByTagName("script");p.length&&(n?void 0:"production"!==t.env.NODE_ENV?u(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):u(!1),a(p).forEach(n));for(var f=Array.from(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return f}var i=n(5),a=n(101),s=n(60),u=n(1),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.e=o}).call(t,n(0))},function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.e=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.e=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(104),i=/^ms-/;e.e=r},function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.e=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(106);e.e=r},function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;e.e=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.e=r},function(e,t,n){"use strict";var r,o=n(5);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.e=r||{}},function(e,t,n){"use strict";var r,o=n(110);r=o.now?function(){return o.now()}:function(){return Date.now()},e.e=r},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-c)-1,f>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:(f?-1:1)*(1/0);a+=Math.pow(2,r),i-=l}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,d=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,v=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+d>=1?p/u:p*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+f]=255&a,f+=h,a/=256,l-=8);e[n+f-h]|=128*v}},function(e,t,n){var r={}.toString;e.e=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,n){(function(r){var o,i,a,a,s=s||{};!function(){"use strict";s.SECS_70YRS=2208988800,s.TWO_32=4294967296,s.defaults={metadata:!1,unpackSingleArgs:!0},s.isBufferEnv="undefined"!=typeof r,s.isCommonJS="undefined"!=typeof e&&e.e,s.isNode=s.isCommonJS&&"undefined"==typeof window,s.isArray=function(e){return e&&"[object Array]"===Object.prototype.toString.call(e)},s.isTypedArrayView=function(e){return e.buffer&&e.buffer instanceof ArrayBuffer},s.isBuffer=function(e){return s.isBufferEnv&&e instanceof r};var t="undefined"!=typeof dcodeIO?dcodeIO.Long:"undefined"!=typeof t?t:s.isNode?n(62):void 0;s.dataView=function(e,t,n){return e.buffer?new DataView(e.buffer,t,n):e instanceof ArrayBuffer?new DataView(e,t,n):new DataView(new Uint8Array(e),t,n)},s.byteArray=function(e){if(e instanceof Uint8Array)return e;var t=e.buffer?e.buffer:e;if(!(t instanceof ArrayBuffer||"undefined"!=typeof t.length&&"string"!=typeof t))throw new Error("Can't wrap a non-array-like object as Uint8Array. Object was: "+JSON.stringify(e,null,2));return new Uint8Array(t)},s.nativeBuffer=function(e){return s.isBufferEnv&&s.isNode?s.isBuffer(e)?e:new r(e.buffer?e:new Uint8Array(e)):s.isTypedArrayView(e)?e:new Uint8Array(e)},s.copyByteArray=function(e,t,n){if(s.isTypedArrayView(e)&&s.isTypedArrayView(t))t.set(e,n);else for(var r=void 0===n?0:n,o=Math.min(t.length-n,e.length),i=0,a=r;o>i;i++,a++)t[a]=e[i];return t},s.readString=function(e,t){for(var n=[],r=t.idx;r<e.byteLength;r++){var o=e.getUint8(r);if(0===o){r++;break}n.push(o)}return r=r+3&-4,t.idx=r,String.fromCharCode.apply(null,n)},s.writeString=function(e){for(var t=e+"\x00",n=t.length,r=n+3&-4,o=new Uint8Array(r),i=0;i<t.length;i++){var a=t.charCodeAt(i);o[i]=a}return o},s.readPrimitive=function(e,t,n,r){var o=e[t](r.idx,!1);return r.idx+=n,o},s.writePrimitive=function(e,t,n,r,o){o=void 0===o?0:o;var i;return t?i=new Uint8Array(t.buffer):(i=new Uint8Array(r),t=new DataView(i.buffer)),t[n](o,e,!1),i},s.readInt32=function(e,t){return s.readPrimitive(e,"getInt32",4,t)},s.writeInt32=function(e,t,n){return s.writePrimitive(e,t,"setInt32",4,n)},s.readInt64=function(e,n){var r=s.readPrimitive(e,"getInt32",4,n),o=s.readPrimitive(e,"getInt32",4,n);return t?new t(o,r):{high:r,low:o,unsigned:!1}},s.writeInt64=function(e,t,n){var r=new Uint8Array(8);return r.set(s.writePrimitive(e.high,t,"setInt32",4,n),0),r.set(s.writePrimitive(e.low,t,"setInt32",4,n+4),4),r},s.readFloat32=function(e,t){return s.readPrimitive(e,"getFloat32",4,t)},s.writeFloat32=function(e,t,n){return s.writePrimitive(e,t,"setFloat32",4,n)},s.readFloat64=function(e,t){return s.readPrimitive(e,"getFloat64",8,t)},s.writeFloat64=function(e,t,n){return s.writePrimitive(e,t,"setFloat64",8,n);+if(c instanceof Error)return c}return null}return o(t)}function p(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var u=b[o];return new Error("Invalid "+u+" `"+i+"` supplied to "+("`"+r+"`."))}return o(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function f(){function e(e,t,n,r,o){if(!v(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return o(e)}function h(e){function t(t,n,r,o,i){var a=t[n],s=m(a);if("object"!==s){var u=b[o];return new Error("Invalid "+u+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var l in e){var c=e[l];if(c){var d=c(a,l,r,o,i+"."+l);if(d)return d}}return null}return o(t)}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||E.isValidElement(e))return!0;var t=N(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function g(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){return e.constructor&&e.constructor.name?e.constructor.name:w}var E=n(7),b=n(31),_=n(9),N=n(50),w="<<anonymous>>",C={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:a(),arrayOf:s,element:u(),instanceOf:l,node:f(),objectOf:d,oneOf:c,oneOfType:p,shape:h};e.e=C},function(e,t,n){(function(t){"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,n){var r=s.get(e);return r?("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c(null==a.current,"%s(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.",n):void 0),r):("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c(!n,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",n,n,e.constructor.displayName):void 0),null)}var a=n(15),s=n(42),u=n(10),l=n(1),c=n(2),d={isMounted:function(e){if("production"!==t.env.NODE_ENV){var n=a.current;null!==n&&("production"!==t.env.NODE_ENV?c(n._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}var r=s.get(e);return r?!!r._renderedComponent:!1},enqueueCallback:function(e,t,n){d.validateCallback(t,n);var o=i(e);return o?(o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],void r(o)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)},validateCallback:function(e,n){e&&"function"!=typeof e?"production"!==t.env.NODE_ENV?l(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,o(e)):l(!1):void 0}};e.e=d}).call(t,n(0))},function(e,t,n){"use strict";e.e="15.0.1"},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.e=r},function(e,t,n){(function(t){"use strict";function r(e,n){if(null==n?"production"!==t.env.NODE_ENV?o(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):o(!1):void 0,null==e)return n;var r=Array.isArray(e),i=Array.isArray(n);return r&&i?(e.push.apply(e,n),e):r?(e.push(n),e):i?[e].concat(n):[e,n]}var o=n(1);e.e=r}).call(t,n(0))},function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.e=r},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.NATIVE?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(77);e.e=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(5),i=null;e.e=r},function(e,t,n){(function(t){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var n;if(null===e||e===!1)n=u.create(i);else if("object"==typeof e){var a=e;!a||"function"!=typeof a.type&&"string"!=typeof a.type?"production"!==t.env.NODE_ENV?c(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==a.type?a.type:typeof a.type,r(a._owner)):c(!1):void 0,n="string"==typeof a.type?l.createInternalComponent(a):o(a.type)?new a.type(a):new p(a)}else"string"==typeof e||"number"==typeof e?n=l.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?d("function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.getNativeNode&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."):void 0),n._mountIndex=0,n._mountImage=null,"production"!==t.env.NODE_ENV&&(n._isOwnerNecessary=!1,n._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(n),n}var a=n(3),s=n(136),u=n(72),l=n(76),c=n(1),d=n(2),p=function(e){this.construct(e)};a(p.prototype,s.Mixin,{_instantiateReactComponent:i}),e.e=i}).call(t,n(0))},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&o[e.type]||"textarea"===t)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.e=r},function(e,t,n){"use strict";var r=n(5),o=n(34),i=n(52),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.e=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(8),i=r(o),a=n(27),s=r(a),u=n(94),l=r(u),c=n(91),d=r(c),p=n(92),f=r(p),h="\nvoid main() {\n  gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n}\n",v=i["default"].createClass({getInitialState:function(){return{fsSource:h,showControls:!1,bannerClass:"",error:!1,errorText:""}},componentWillMount:function(){this.connectToServer()},componentDidMount:function(){var e=this;window.setTimeout(function(){e.setState({bannerClass:"hidden"})},3e3)},connectToServer:function(){var e=this,t=new WebSocket("ws://localhost:8080/");t.onopen=function(){console.log("websocket opened!")},t.onclose=function(){console.log("websocket closed"),window.setTimeout(e.connectToServer,1e3)},t.onmessage=function(t){var n=JSON.parse(t.data);"Code"===n.tag?e.setState({fsSource:n.contents,error:!1,errorText:""}):"Err"===n.tag?(console.error(n.contents),e.setState({error:!0,errorText:n.contents})):console.error("unexpected error!")}},toggleShow:function(){this.setState(function(e){return{showControls:!e.showControls}})},render:function(){var e=this.state.showControls?"hide":"show",t=this.state.showControls?"unhiddenFast":"hiddenFast",n=this.state.error?i["default"].createElement("div",null,i["default"].createElement(f["default"],{text:this.state.errorText})):i["default"].createElement("div",null);return i["default"].createElement("div",{id:"entry"},i["default"].createElement("div",{id:"banner",className:this.state.bannerClass},i["default"].createElement("div",{id:"title"},"Hylogen")),i["default"].createElement("button",{onClick:this.toggleShow,id:"hideButton"},e),i["default"].createElement("div",{className:t},i["default"].createElement(d["default"],{initialState:"usermedia"})),n,i["default"].createElement(l["default"],{startAnimating:!0,fsSource:this.state.fsSource,withOSC:!0}))}});s["default"].render(i["default"].createElement(v,null),document.getElementById("entry"))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27),s=(r(a),n(116)),u=n(56),l=r(u),c=i["default"].createClass({propTypes:{initPlaying:o.PropTypes.bool},getDefaultProps:function(){return{initPlaying:!1}},getInitialState:function(){var e=localStorage.getItem("scurl")||"https://soundcloud.com/tennysonmusic/xyz"||"https://soundcloud.com/tennysonmusic/angus-julia-stone-for-you"||"https://soundcloud.com/herzeloyde/deception"||"https://soundcloud.com/aslamin/strannoe-chuvstvo";return{playing:this.props.initPlaying,val:0,url:e}},startPlaying:function(){this.startUpdating(),this.scPlayer.play()},stopPlaying:function(){window.clearTimeout(this.intervalId),this.scPlayer.pause()},componentWillMount:function(){l["default"].initializeAudioSoundCloud(this.state.url,this.props.initPlaying),this.scPlayer=l["default"].scPlayer},componentDidMount:function(){this.props.initPlaying&&this.startUpdating()},componentWillUpdate:function(e,t){t.playing!==this.state.playing&&(t.playing?this.startPlaying():this.stopPlaying())},togglePlay:function(){this.setState(function(e){return{playing:!e.playing}})},update:function(){var e=this.scPlayer.audio.currentTime/(this.scPlayer.duration/100);this.setState({val:e})},startUpdating:function(){this.intervalId=window.setInterval(this.update,100)},componentWillUnmount:function(){window.clearTimeout(this.intervalId)},onUrlChange:function(e){this.setState({url:e.currentTarget.value})},onSubmit:function(e){e.preventDefault(),localStorage.setItem("scurl",this.state.url),this.scPlayer.resolve(this.state.url,function(e){this.setState({playing:!1},function(){this.setState({playing:!0})}.bind(this))}.bind(this))},render:function(){var e=this.state.playing?"[pause]":"[play]";return i["default"].createElement("div",{className:"scPlayer"},i["default"].createElement("div",{className:"row"},i["default"].createElement("button",{onClick:this.togglePlay}," ",e),i["default"].createElement(s.Progress,{innerStyle:{},soundCloudAudio:this.scPlayer,value:this.state.val})),i["default"].createElement("div",{className:"row"},i["default"].createElement("form",{onSubmit:this.onSubmit},i["default"].createElement("input",{value:this.state.url,style:{width:"40vw"},onChange:this.onUrlChange}))))}}),d=i["default"].createClass({componentWillMount:function(){l["default"].initializeAudioUserMedia()},render:function(){return i["default"].createElement("div",null)}});t["default"]=i["default"].createClass({propTypes:{initialState:o.PropTypes.string},getDefaultProps:function(){return{initialState:"sc"}},getInitialState:function(){return{state:this.props.initialState,initPlaying:!1}},onChange:function(e){this.setState({state:e.currentTarget.value,initPlaying:!0})},render:function(){var e="sc"===this.state.state?i["default"].createElement(c,{initPlaying:this.state.initPlaying}):i["default"].createElement(d,null);return i["default"].createElement("div",{className:"audioControls"},i["default"].createElement("div",{className:"inputPicker"},i["default"].createElement("br",null),"sc : ",i["default"].createElement("input",{type:"radio",checked:"sc"===this.state.state,value:"sc",onChange:this.onChange}),i["default"].createElement("br",null),"mic: ",i["default"].createElement("input",{type:"radio",checked:"usermedia"===this.state.state,value:"usermedia",onChange:this.onChange})),e)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27);r(a);t["default"]=i["default"].createClass({propTypes:{text:o.PropTypes.string.isRequired},render:function(){return i["default"].createElement("div",{className:"errorText"},this.props.text)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(97),t["default"]=new function(){this.singleton=void 0,this.getInstance=function(){return void 0===this.singleton&&(this.singleton=new osc.WebSocketPort({url:"ws://localhost:9091"}),this.singleton.open()),this.singleton}.bind(this)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),i=r(o),a=n(27),s=(r(a),n(56)),u=r(s),l=n(93),c=r(l),d=" attribute vec3 aPosition;\nvarying vec2 uvN;\nvoid main() {\n  gl_Position = vec4(aPosition, 1.0);\n  uvN = aPosition.xy;\n}",p="precision mediump float;\nconst float pi = 3.141592653589793238462643383;\nuniform float osc1;\nuniform float osc2;\nuniform float osc3;\nuniform float osc4;\nuniform float osc5;\nuniform float osc6;\nuniform float osc7;\nuniform float osc8;\nuniform float time;\nuniform vec2 mouse;\nuniform vec2 resolution;\nuniform vec4 audio;\nuniform sampler2D backBuffer;\nuniform sampler2D channel1;\nvarying vec2 uvN;\nvec2 uv() {\n  return 0.5 * uvN  + 0.5;\n}";t["default"]=i["default"].createClass({propTypes:{vsSource:o.PropTypes.string,fsSource:o.PropTypes.string.isRequired,width:o.PropTypes.number,height:o.PropTypes.number,withOSC:o.PropTypes.bool.isRequired,animation:o.PropTypes.bool},getDefaultProps:function(){return{width:Math.max(window.innerHeight,window.innerWidth),height:Math.max(window.innerHeight,window.innerWidth),vsSource:d,animation:!0}},componentDidMount:function(){function e(e){var t=e.target.getBoundingClientRect();n.mouse.x=(e.clientX-t.left)/(t.right-t.left)*2-1,n.mouse.y=(e.clientY-t.bottom)/(t.top-t.bottom)*2-1}var t=this.canvas,n=(this.gl=t.getContext("webgl"),this.state_={});if(n.animationFrameRequest=null,n.bit=0,n.fb=[null,null],n.time0=new Date/1e3,n.audioCallback=null,t.onmousemove=e,n.mouse={x:0,y:0},n.audio={low:0,mid:0,upper:0,high:0},n.audioCallback=u["default"].addCallback(function(e){n.audio.low=e.low,n.audio.mid=e.mid,n.audio.upper=e.upper,n.audio.high=e.high}),n.osc=new Float32Array(8),this.props.withOSC){var r=c["default"].getInstance();r.on("message",function(e){var t=parseInt(e.address.slice(7)),r=e.args[0];n.osc[t]=r})}this.loadProgram()},loadProgram:function(){function e(e,t,n){var r=e.createShader(n);e.shaderSource(r,t),e.compileShader(r);var o=e.getShaderParameter(r,e.COMPILE_STATUS);if(!o)throw console.log(t),"could not compile shader:"+e.getShaderInfoLog(r);return r}function t(){var e={texture:r.createTexture(),framebuffer:r.createFramebuffer()};return r.bindTexture(r.TEXTURE_2D,e.texture),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,i,a,0,r.RGBA,r.UNSIGNED_BYTE,null),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0),r.bindTexture(r.TEXTURE_2D,null),r.bindFramebuffer(r.FRAMEBUFFER,null),e}function n(e){var t=r.createTexture();r.bindTexture(r.TEXTURE_2D,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.NEAREST),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.NEAREST),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,e),o.textures.push(t)}var r=this.gl,o=this.state_,i=this.props.width,a=this.props.height,s=e(r,this.props.vsSource,r.VERTEX_SHADER),u=e(r,p+"\n"+this.props.fsSource,r.FRAGMENT_SHADER),l=r.createProgram();r.attachShader(l,s),r.attachShader(l,u),r.linkProgram(l);var c=r.getProgramParameter(l,r.LINK_STATUS);if(!c)throw"program failed to link:"+r.getProgramInfoLog(l);r.useProgram(l),r.bindBuffer(r.ARRAY_BUFFER,r.createBuffer()),r.bufferData(r.ARRAY_BUFFER,new Float32Array([-1,1,0,1,1,0,-1,-1,0,1,-1,0]),r.STATIC_DRAW),r.aPosition=r.getAttribLocation(l,"aPosition"),r.enableVertexAttribArray(r.aPosition),r.vertexAttribPointer(r.aPosition,3,r.FLOAT,!1,0,0),o.fb[0]=t(),o.fb[1]=t(),o.textures=[];var d=new Image;d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABpAgMAAADZ4ewhAAAADFBMVEVlLWcjHyD///9aukdNbQb8AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgBBsTBjDG601/AAAAbUlEQVRIx2MIxQYYBoVo2Cp0MHXQiC5FcWvUIBJd//9q6P+/ofFAapCJDt4wWxpa/x/s3v//B53o4A2zwSo6WEuNQVvSQgEad1CIMmK41mFwiILprFXgRAilYOE78KKgnLBqJYwKHUSigzMHAADhlJM2vqJTOQAAAABJRU5ErkJggg==",n(d),r.osc1=r.getUniformLocation(l,"osc1"),r.osc2=r.getUniformLocation(l,"osc2"),r.osc3=r.getUniformLocation(l,"osc3"),r.osc4=r.getUniformLocation(l,"osc4"),r.osc5=r.getUniformLocation(l,"osc5"),r.osc6=r.getUniformLocation(l,"osc6"),r.osc7=r.getUniformLocation(l,"osc7"),r.osc8=r.getUniformLocation(l,"osc8"),r.time=r.getUniformLocation(l,"time"),r.mouse=r.getUniformLocation(l,"mouse"),r.audio=r.getUniformLocation(l,"audio"),r.resolution=r.getUniformLocation(l,"resolution"),r.backBuffer=r.getUniformLocation(l,"backBuffer"),r.channel1=r.getUniformLocation(l,"channel1"),this.draw(),this.props.animation&&null===o.animationFrameRequest&&(o.animationFrameRequest=requestAnimationFrame(this.animate))},draw:function(){var e=this.gl,t=this.state_;e.uniform1f(e.osc1,t.osc[0]),e.uniform1f(e.osc2,t.osc[1]),e.uniform1f(e.osc3,t.osc[2]),e.uniform1f(e.osc4,t.osc[3]),e.uniform1f(e.osc5,t.osc[4]),e.uniform1f(e.osc6,t.osc[5]),e.uniform1f(e.osc7,t.osc[6]),e.uniform1f(e.osc8,t.osc[7]),e.uniform1f(e.time,(new Date).getTime()/1e3-t.time0),e.uniform2f(e.mouse,t.mouse.x,t.mouse.y),e.uniform2f(e.resolution,this.props.width,this.props.height),e.uniform4f(e.audio,t.audio.low,t.audio.mid,t.audio.upper,t.audio.high);for(var n=1;n<t.textures.length+1;n++)e.uniform1i(e.channel1,n),e.activeTexture(e.TEXTURE0+n),e.bindTexture(e.TEXTURE_2D,t.textures[n-1]);e.uniform1i(e.backBuffer,0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.fb[t.bit].texture),t.bit=(t.bit+1)%2,e.bindFramebuffer(e.FRAMEBUFFER,t.fb[t.bit].framebuffer),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_STRIP,0,4),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.fb[t.bit].texture),e.bindFramebuffer(e.FRAMEBUFFER,null),e.clear(e.COLOR_BUFFER_BIT),e.drawArrays(e.TRIANGLE_STRIP,0,4)},animate:function(){this.draw(),this.state_.animationFrameRequest=requestAnimationFrame(this.animate)},componentDidUpdate:function(){this.props.animation||(cancelAnimationFrame(this.state_.animationFrameRequest),this.state_.animationFrameRequest=null),this.loadProgram()},componentWillUnmount:function(){cancelAnimationFrame(this.state_.animationFrameRequest),u["default"].removeCallback(this.state_.audioCallback)},render:function(){var e=this;return i["default"].createElement("canvas",{ref:function(t){return e.canvas=t},className:"program",width:this.props.width,height:this.props.height})}})},function(e,t){"use strict";function n(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;n>t;++t)s[t]=e[t],u[e.charCodeAt(t)]=t;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63}function r(e){var t,n,r,o,i,a,s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new l(3*s/4-i),r=i>0?s-4:s;var c=0;for(t=0,n=0;r>t;t+=4,n+=3)o=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],a[c++]=o>>16&255,a[c++]=o>>8&255,a[c++]=255&o;return 2===i?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,a[c++]=255&o):1===i&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,a[c++]=o>>8&255,a[c++]=255&o),a}function o(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function i(e,t,n){for(var r,i=[],a=t;n>a;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(o(r));return i.join("")}function a(e){for(var t,n=e.length,r=n%3,o="",a=[],u=16383,l=0,c=n-r;c>l;l+=u)a.push(i(e,l,l+u>c?c:l+u));return 1===r?(t=e[n-1],o+=s[t>>2],o+=s[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=s[t>>10],o+=s[t>>4&63],o+=s[t<<2&63],o+="="),a.push(o),a.join("")}t.toByteArray=r,t.fromByteArray=a;var s=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array;n()},function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}e.e=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!i(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,i,u,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(n=this._events[e],s(n))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(a(n))for(i=Array.prototype.slice.call(arguments,1),l=n.slice(),r=l.length,u=0;r>u;u++)l[u].apply(this,i);return!0},r.prototype.addListener=function(e,t){var n;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?a(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,a(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,n&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,i,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(0>r)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],o(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(t){e.e=t.osc=n(114)}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;e.e=r},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(98),i=/^-ms-/;e.e=r},function(e,t,n){"use strict";function r(e,t){return e&&t?e===t?!0:o(e)?!1:o(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var o=n(107);e.e=r},function(e,t,n){(function(t){"use strict";function r(e){var n=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?"production"!==t.env.NODE_ENV?a(!1,"toArray: Array-like object expected"):a(!1):void 0,"number"!=typeof n?"production"!==t.env.NODE_ENV?a(!1,"toArray: Object needs a length property"):a(!1):void 0,0===n||n-1 in e?void 0:"production"!==t.env.NODE_ENV?a(!1,"toArray: Object should have keys for indices"):a(!1),"function"==typeof e.callee?"production"!==t.env.NODE_ENV?a(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):a(!1):void 0,e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(r){}for(var o=Array(n),i=0;n>i;i++)o[i]=e[i];return o}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var a=n(1);e.e=i}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,n){var o=l;l?void 0:"production"!==t.env.NODE_ENV?u(!1,"createNodesFromMarkup dummy not initialized"):u(!1);var i=r(e),c=i&&s(i);if(c){o.innerHTML=c[1]+e+c[2];for(var d=c[0];d--;)o=o.lastChild}else o.innerHTML=e;var p=o.getElementsByTagName("script");p.length&&(n?void 0:"production"!==t.env.NODE_ENV?u(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):u(!1),a(p).forEach(n));for(var f=Array.from(o.childNodes);o.lastChild;)o.removeChild(o.lastChild);return f}var i=n(5),a=n(101),s=n(60),u=n(1),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.e=o}).call(t,n(0))},function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.e=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.e=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(104),i=/^ms-/;e.e=r},function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.e=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(106);e.e=r},function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;e.e=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.e=r},function(e,t,n){"use strict";var r,o=n(5);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.e=r||{}},function(e,t,n){"use strict";var r,o=n(110);r=o.now?function(){return o.now()}:function(){return Date.now()},e.e=r},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-c)-1,f>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:(f?-1:1)*(1/0);a+=Math.pow(2,r),i-=l}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,d=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,v=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+d>=1?p/u:p*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+f]=255&a,f+=h,a/=256,l-=8);e[n+f-h]|=128*v}},function(e,t,n){var r={}.toString;e.e=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,n){(function(r){var o,i,a,a,s=s||{};!function(){"use strict";s.SECS_70YRS=2208988800,s.TWO_32=4294967296,s.defaults={metadata:!1,unpackSingleArgs:!0},s.isBufferEnv="undefined"!=typeof r,s.isCommonJS="undefined"!=typeof e&&e.e,s.isNode=s.isCommonJS&&"undefined"==typeof window,s.isArray=function(e){return e&&"[object Array]"===Object.prototype.toString.call(e)},s.isTypedArrayView=function(e){return e.buffer&&e.buffer instanceof ArrayBuffer},s.isBuffer=function(e){return s.isBufferEnv&&e instanceof r};var t="undefined"!=typeof dcodeIO?dcodeIO.Long:"undefined"!=typeof t?t:s.isNode?n(62):void 0;s.dataView=function(e,t,n){return e.buffer?new DataView(e.buffer,t,n):e instanceof ArrayBuffer?new DataView(e,t,n):new DataView(new Uint8Array(e),t,n)},s.byteArray=function(e){if(e instanceof Uint8Array)return e;var t=e.buffer?e.buffer:e;if(!(t instanceof ArrayBuffer||"undefined"!=typeof t.length&&"string"!=typeof t))throw new Error("Can't wrap a non-array-like object as Uint8Array. Object was: "+JSON.stringify(e,null,2));return new Uint8Array(t)},s.nativeBuffer=function(e){return s.isBufferEnv&&s.isNode?s.isBuffer(e)?e:new r(e.buffer?e:new Uint8Array(e)):s.isTypedArrayView(e)?e:new Uint8Array(e)},s.copyByteArray=function(e,t,n){if(s.isTypedArrayView(e)&&s.isTypedArrayView(t))t.set(e,n);else for(var r=void 0===n?0:n,o=Math.min(t.length-n,e.length),i=0,a=r;o>i;i++,a++)t[a]=e[i];return t},s.readString=function(e,t){for(var n=[],r=t.idx;r<e.byteLength;r++){var o=e.getUint8(r);if(0===o){r++;break}n.push(o)}return r=r+3&-4,t.idx=r,String.fromCharCode.apply(null,n)},s.writeString=function(e){for(var t=e+"\x00",n=t.length,r=n+3&-4,o=new Uint8Array(r),i=0;i<t.length;i++){var a=t.charCodeAt(i);o[i]=a}return o},s.readPrimitive=function(e,t,n,r){var o=e[t](r.idx,!1);return r.idx+=n,o},s.writePrimitive=function(e,t,n,r,o){o=void 0===o?0:o;var i;return t?i=new Uint8Array(t.buffer):(i=new Uint8Array(r),t=new DataView(i.buffer)),t[n](o,e,!1),i},s.readInt32=function(e,t){return s.readPrimitive(e,"getInt32",4,t)},s.writeInt32=function(e,t,n){return s.writePrimitive(e,t,"setInt32",4,n)},s.readInt64=function(e,n){var r=s.readPrimitive(e,"getInt32",4,n),o=s.readPrimitive(e,"getInt32",4,n);return t?new t(o,r):{high:r,low:o,unsigned:!1}},s.writeInt64=function(e,t,n){var r=new Uint8Array(8);return r.set(s.writePrimitive(e.high,t,"setInt32",4,n),0),r.set(s.writePrimitive(e.low,t,"setInt32",4,n+4),4),r},s.readFloat32=function(e,t){return s.readPrimitive(e,"getFloat32",4,t)},s.writeFloat32=function(e,t,n){return s.writePrimitive(e,t,"setFloat32",4,n)},s.readFloat64=function(e,t){return s.readPrimitive(e,"getFloat64",8,t)},s.writeFloat64=function(e,t,n){return s.writePrimitive(e,t,"setFloat64",8,n); },s.readChar32=function(e,t){var n=s.readPrimitive(e,"getUint32",4,t);return String.fromCharCode(n)},s.writeChar32=function(e,t,n){var r=e.charCodeAt(0);return void 0===r||-1>r?void 0:s.writePrimitive(r,t,"setUint32",4,n)},s.readBlob=function(e,t){var n=s.readInt32(e,t),r=n+3&-4,o=new Uint8Array(e.buffer,t.idx,n);return t.idx+=r,o},s.writeBlob=function(e){e=s.byteArray(e);var t=e.byteLength,n=t+3&-4,r=4,o=n+r,i=new Uint8Array(o),a=new DataView(i.buffer);return s.writeInt32(t,a),i.set(e,r),i},s.readMIDIBytes=function(e,t){var n=new Uint8Array(e.buffer,t.idx,4);return t.idx+=4,n},s.writeMIDIBytes=function(e){e=s.byteArray(e);var t=new Uint8Array(4);return t.set(e),t},s.readColor=function(e,t){var n=new Uint8Array(e.buffer,t.idx,4),r=n[3]/255;return t.idx+=4,{r:n[0],g:n[1],b:n[2],a:r}},s.writeColor=function(e){var t=Math.round(255*e.a),n=new Uint8Array([e.r,e.g,e.b,t]);return n},s.readTrue=function(){return!0},s.readFalse=function(){return!1},s.readNull=function(){return null},s.readImpulse=function(){return 1},s.readTimeTag=function(e,t){var n=s.readPrimitive(e,"getUint32",4,t),r=s.readPrimitive(e,"getUint32",4,t),o=0===n&&1===r?Date.now():s.ntpToJSTime(n,r);return{raw:[n,r],"native":o}},s.writeTimeTag=function(e){var t=e.raw?e.raw:s.jsToNTPTime(e["native"]),n=new Uint8Array(8),r=new DataView(n.buffer);return s.writeInt32(t[0],r,0),s.writeInt32(t[1],r,4),n},s.timeTag=function(e,t){e=e||0,t=t||Date.now();var n=t/1e3,r=Math.floor(n),o=n-r,i=Math.floor(e),a=e-i,u=o+a;if(u>1){var l=Math.floor(u),c=u-l;i+=l,u=c}var d=r+i+s.SECS_70YRS,p=Math.round(s.TWO_32*u);return{raw:[d,p]}},s.ntpToJSTime=function(e,t){var n=e-s.SECS_70YRS,r=t/s.TWO_32,o=1e3*(n+r);return o},s.jsToNTPTime=function(e){var t=e/1e3,n=Math.floor(t),r=t-n,o=n+s.SECS_70YRS,i=Math.round(s.TWO_32*r);return[o,i]},s.readArguments=function(e,t,n){var r=s.readString(e,n);if(0!==r.indexOf(","))throw new Error("A malformed type tag string was found while reading the arguments of an OSC message. String was: "+r," at offset: "+n.idx);var o=r.substring(1).split(""),i=[];return s.readArgumentsIntoArray(i,o,r,e,t,n),i},s.readArgument=function(e,t,n,r,o){var i=s.argumentTypes[e];if(!i)throw new Error("'"+e+"' is not a valid OSC type tag. Type tag string was: "+t);var a=i.reader,u=s[a](n,o);return r.metadata&&(u={type:e,value:u}),u},s.readArgumentsIntoArray=function(e,t,n,r,o,i){for(var a=0;a<t.length;){var u,l=t[a];if("["===l){var c=t.slice(a+1),d=c.indexOf("]");if(0>d)throw new Error("Invalid argument type tag: an open array type tag ('[') was found without a matching close array tag ('[]'). Type tag was: "+n);var p=c.slice(0,d);u=s.readArgumentsIntoArray([],p,n,r,o,i),a+=d+2}else u=s.readArgument(l,n,r,o,i),a++;e.push(u)}return e},s.writeArguments=function(e,t){var n=s.collectArguments(e,t);return s.joinParts(n)},s.joinParts=function(e){for(var t=new Uint8Array(e.byteLength),n=e.parts,r=0,o=0;o<n.length;o++){var i=n[o];s.copyByteArray(i,t,r),r+=i.length}return t},s.addDataPart=function(e,t){t.parts.push(e),t.byteLength+=e.length},s.writeArrayArguments=function(e,t){for(var n="[",r=0;r<e.length;r++){var o=e[r];n+=s.writeArgument(o,t)}return n+="]"},s.writeArgument=function(e,t){if(s.isArray(e))return s.writeArrayArguments(e,t);var n=e.type,r=s.argumentTypes[n].writer;if(r){var o=s[r](e.value);s.addDataPart(o,t)}return e.type},s.collectArguments=function(e,t,n){s.isArray(e)||(e="undefined"==typeof e?[]:[e]),n=n||{byteLength:0,parts:[]},t.metadata||(e=s.annotateArguments(e));for(var r=",",o=n.parts.length,i=0;i<e.length;i++){var a=e[i];r+=s.writeArgument(a,n)}var u=s.writeString(r);return n.byteLength+=u.byteLength,n.parts.splice(o,0,u),n},s.readMessage=function(e,t,n){t=t||s.defaults;var r=s.dataView(e,e.byteOffset,e.byteLength);n=n||{idx:0};var o=s.readString(r,n);return s.readMessageContents(o,r,t,n)},s.readMessageContents=function(e,t,n,r){if(0!==e.indexOf("/"))throw new Error("A malformed OSC address was found while reading an OSC message. String was: "+e);var o=s.readArguments(t,n,r);return{address:e,args:1===o.length&&n.unpackSingleArgs?o[0]:o}},s.collectMessageParts=function(e,t,n){return n=n||{byteLength:0,parts:[]},s.addDataPart(s.writeString(e.address),n),s.collectArguments(e.args,t,n)},s.writeMessage=function(e,t){if(t=t||s.defaults,!s.isValidMessage(e))throw new Error("An OSC message must contain a valid address. Message was: "+JSON.stringify(e,null,2));var n=s.collectMessageParts(e,t);return s.joinParts(n)},s.isValidMessage=function(e){return e.address&&0===e.address.indexOf("/")},s.readBundle=function(e,t,n){return s.readPacket(e,t,n)},s.collectBundlePackets=function(e,t,n){n=n||{byteLength:0,parts:[]},s.addDataPart(s.writeString("#bundle"),n),s.addDataPart(s.writeTimeTag(e.timeTag),n);for(var r=0;r<e.packets.length;r++){var o=e.packets[r],i=o.address?s.collectMessageParts:s.collectBundlePackets,a=i(o,t);n.byteLength+=a.byteLength,s.addDataPart(s.writeInt32(a.byteLength),n),n.parts=n.parts.concat(a.parts)}return n},s.writeBundle=function(e,t){if(!s.isValidBundle(e))throw new Error("An OSC bundle must contain 'timeTag' and 'packets' properties. Bundle was: "+JSON.stringify(e,null,2));t=t||s.defaults;var n=s.collectBundlePackets(e,t);return s.joinParts(n)},s.isValidBundle=function(e){return void 0!==e.timeTag&&void 0!==e.packets},s.readBundleContents=function(e,t,n,r){for(var o=s.readTimeTag(e,n),i=[];n.idx<r;){var a=s.readInt32(e,n),u=n.idx+a,l=s.readPacket(e,t,n,u);i.push(l)}return{timeTag:o,packets:i}},s.readPacket=function(e,t,n,r){var o=s.dataView(e,e.byteOffset,e.byteLength);r=void 0===r?o.byteLength:r,n=n||{idx:0};var i=s.readString(o,n),a=i[0];if("#"===a)return s.readBundleContents(o,t,n,r);if("/"===a)return s.readMessageContents(i,o,t,n);throw new Error("The header of an OSC packet didn't contain an OSC address or a #bundle string. Header was: "+i)},s.writePacket=function(e,t){if(s.isValidMessage(e))return s.writeMessage(e,t);if(s.isValidBundle(e))return s.writeBundle(e,t);throw new Error("The specified packet was not recognized as a valid OSC message or bundle. Packet was: "+JSON.stringify(e,null,2))},s.argumentTypes={i:{reader:"readInt32",writer:"writeInt32"},h:{reader:"readInt64",writer:"writeInt64"},f:{reader:"readFloat32",writer:"writeFloat32"},s:{reader:"readString",writer:"writeString"},S:{reader:"readString",writer:"writeString"},b:{reader:"readBlob",writer:"writeBlob"},t:{reader:"readTimeTag",writer:"writeTimeTag"},T:{reader:"readTrue"},F:{reader:"readFalse"},N:{reader:"readNull"},I:{reader:"readImpulse"},d:{reader:"readFloat64",writer:"writeFloat64"},c:{reader:"readChar32",writer:"writeChar32"},r:{reader:"readColor",writer:"writeColor"},m:{reader:"readMIDIBytes",writer:"writeMIDIBytes"}},s.inferTypeForArgument=function(e){var t=typeof e;switch(t){case"boolean":return e?"T":"F";case"string":return"s";case"number":return"f";case"undefined":return"N";case"object":if(null===e)return"N";if(e instanceof Uint8Array||e instanceof ArrayBuffer)return"b";if("number"==typeof e.high&&"number"==typeof e.low)return"h"}throw new Error("Can't infer OSC argument type for value: "+JSON.stringify(e,null,2))},s.annotateArguments=function(e){for(var t=[],n=0;n<e.length;n++){var r,o=e[n];if("object"==typeof o&&o.type&&void 0!==o.value)r=o;else if(s.isArray(o))r=s.annotateArguments(o);else{var i=s.inferTypeForArgument(o);r={type:i,value:o}}t.push(r)}return t},s.isCommonJS&&(e.e=s)}(),function(n,r){i=[],o=r,a="function"==typeof o?o.apply(t,i):o,!(void 0!==a&&(e.e=a))}(this,function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function t(e){return(e&&e.__isLong__)===!0}function n(e,t){var n,r,i;return t?(e>>>=0,(i=e>=0&&256>e)&&(r=u[e])?r:(n=o(e,0>(0|e)?-1:0,!0),i&&(u[e]=n),n)):(e|=0,(i=e>=-128&&128>e)&&(r=s[e])?r:(n=o(e,0>e?-1:0,!1),i&&(s[e]=n),n))}function r(e,t){if(isNaN(e)||!isFinite(e))return t?g:m;if(t){if(0>e)return g;if(e>=f)return N}else{if(-h>=e)return w;if(e+1>=h)return _}return 0>e?r(-e,t).neg():o(e%p|0,e/p|0,t)}function o(t,n,r){return new e(t,n,r)}function i(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if("number"==typeof t&&(n=t,t=!1),n=n||10,2>n||n>36)throw RangeError("radix");var o;if((o=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===o)return i(e.substring(1),t,n).neg();for(var a=r(l(n,8)),s=m,u=0;u<e.length;u+=8){var c=Math.min(8,e.length-u),d=parseInt(e.substring(u,u+c),n);if(8>c){var p=r(l(n,c));s=s.mul(p).add(r(d))}else s=s.mul(a),s=s.add(r(d))}return s.unsigned=t,s}function a(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?i(t):o(t.low,t.high,t.unsigned)}e.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t;var s={},u={};e.fromInt=n,e.fromNumber=r,e.fromBits=o;var l=Math.pow;e.fromString=i,e.fromValue=a;var c=65536,d=1<<24,p=c*c,f=p*p,h=f/2,v=n(d),m=n(0);e.ZERO=m;var g=n(0,!0);e.UZERO=g;var y=n(1);e.ONE=y;var E=n(1,!0);e.UONE=E;var b=n(-1);e.NEG_ONE=b;var _=o(-1,2147483647,!1);e.MAX_VALUE=_;var N=o(-1,-1,!0);e.MAX_UNSIGNED_VALUE=N;var w=o(0,-2147483648,!1);e.MIN_VALUE=w;var C=e.prototype;return C.toInt=function(){return this.unsigned?this.low>>>0:this.low},C.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},C.toString=function(e){if(e=e||10,2>e||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var t=r(e),n=this.div(t),o=n.mul(t).sub(this);return n.toString(e)+o.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=r(l(e,6),this.unsigned),a=this,s="";;){var u=a.div(i),c=a.sub(u.mul(i)).toInt()>>>0,d=c.toString(e);if(a=u,a.isZero())return d+s;for(;d.length<6;)d="0"+d;s=""+d+s}},C.getHighBits=function(){return this.high},C.getHighBitsUnsigned=function(){return this.high>>>0},C.getLowBits=function(){return this.low},C.getLowBitsUnsigned=function(){return this.low>>>0},C.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},C.isZero=function(){return 0===this.high&&0===this.low},C.isNegative=function(){return!this.unsigned&&this.high<0},C.isPositive=function(){return this.unsigned||this.high>=0},C.isOdd=function(){return 1===(1&this.low)},C.isEven=function(){return 0===(1&this.low)},C.equals=function(e){return t(e)||(e=a(e)),this.unsigned!==e.unsigned&&this.high>>>31===1&&e.high>>>31===1?!1:this.high===e.high&&this.low===e.low},C.eq=C.equals,C.notEquals=function(e){return!this.eq(e)},C.neq=C.notEquals,C.lessThan=function(e){return this.comp(e)<0},C.lt=C.lessThan,C.lessThanOrEqual=function(e){return this.comp(e)<=0},C.lte=C.lessThanOrEqual,C.greaterThan=function(e){return this.comp(e)>0},C.gt=C.greaterThan,C.greaterThanOrEqual=function(e){return this.comp(e)>=0},C.gte=C.greaterThanOrEqual,C.compare=function(e){if(t(e)||(e=a(e)),this.eq(e))return 0;var n=this.isNegative(),r=e.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},C.comp=C.compare,C.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(y)},C.neg=C.negate,C.add=function(e){t(e)||(e=a(e));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,u=e.high>>>16,l=65535&e.high,c=e.low>>>16,d=65535&e.low,p=0,f=0,h=0,v=0;return v+=s+d,h+=v>>>16,v&=65535,h+=i+c,f+=h>>>16,h&=65535,f+=r+l,p+=f>>>16,f&=65535,p+=n+u,p&=65535,o(h<<16|v,p<<16|f,this.unsigned)},C.subtract=function(e){return t(e)||(e=a(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){if(this.isZero())return m;if(t(e)||(e=a(e)),e.isZero())return m;if(this.eq(w))return e.isOdd()?w:m;if(e.eq(w))return this.isOdd()?w:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return r(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,s=this.low>>>16,u=65535&this.low,l=e.high>>>16,c=65535&e.high,d=e.low>>>16,p=65535&e.low,f=0,h=0,g=0,y=0;return y+=u*p,g+=y>>>16,y&=65535,g+=s*p,h+=g>>>16,g&=65535,g+=u*d,h+=g>>>16,g&=65535,h+=i*p,f+=h>>>16,h&=65535,h+=s*d,f+=h>>>16,h&=65535,h+=u*c,f+=h>>>16,h&=65535,f+=n*p+i*d+s*c+u*l,f&=65535,o(g<<16|y,f<<16|h,this.unsigned)},C.mul=C.multiply,C.divide=function(e){if(t(e)||(e=a(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?g:m;var n,o,i;if(this.eq(w)){if(e.eq(y)||e.eq(b))return w;if(e.eq(w))return y;var s=this.shr(1);return n=s.div(e).shl(1),n.eq(m)?e.isNegative()?y:b:(o=this.sub(e.mul(n)),i=n.add(o.div(e)))}if(e.eq(w))return this.unsigned?g:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();for(i=m,o=this;o.gte(e);){n=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var u=Math.ceil(Math.log(n)/Math.LN2),c=48>=u?1:l(2,u-48),d=r(n),p=d.mul(e);p.isNegative()||p.gt(o);)n-=c,d=r(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=y),i=i.add(d),o=o.sub(p)}return i},C.div=C.divide,C.modulo=function(e){return t(e)||(e=a(e)),this.sub(this.div(e).mul(e))},C.mod=C.modulo,C.not=function(){return o(~this.low,~this.high,this.unsigned)},C.and=function(e){return t(e)||(e=a(e)),o(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return t(e)||(e=a(e)),o(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return t(e)||(e=a(e)),o(this.low^e.low,this.high^e.high,this.unsigned)},C.shiftLeft=function(e){return t(e)&&(e=e.toInt()),0===(e&=63)?this:32>e?o(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):o(0,this.low<<e-32,this.unsigned)},C.shl=C.shiftLeft,C.shiftRight=function(e){return t(e)&&(e=e.toInt()),0===(e&=63)?this:32>e?o(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):o(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},C.shr=C.shiftRight,C.shiftRightUnsigned=function(e){if(t(e)&&(e=e.toInt()),e&=63,0===e)return this;var n=this.high;if(32>e){var r=this.low;return o(r>>>e|n<<32-e,n>>>e,this.unsigned)}return 32===e?o(n,0,this.unsigned):o(n>>>e-32,0,this.unsigned)},C.shru=C.shiftRightUnsigned,C.toSigned=function(){return this.unsigned?o(this.low,this.high,!1):this},C.toUnsigned=function(){return this.unsigned?this:o(this.low,this.high,!0)},e}),function(e,n){"use strict";e.slip=t,n(t)}(this,function(e){"use strict";var t=e;t.END=192,t.ESC=219,t.ESC_END=220,t.ESC_ESC=221,t.byteArray=function(e,t,n){return e instanceof ArrayBuffer?new Uint8Array(e,t,n):e},t.expandByteArray=function(e){var t=new Uint8Array(2*e.length);return t.set(e),t},t.sliceByteArray=function(e,t,n){var r=e.buffer.slice?e.buffer.slice(t,n):e.subarray(t,n);return new Uint8Array(r)},t.encode=function(e,n){n=n||{},n.bufferPadding=n.bufferPadding||4,e=t.byteArray(e,n.offset,n.byteLength);var r=e.length+n.bufferPadding+3&-4,o=new Uint8Array(r),i=1;o[0]=t.END;for(var a=0;a<e.length;a++){i>o.length-3&&(o=t.expandByteArray(o));var s=e[a];s===t.END?(o[i++]=t.ESC,s=t.ESC_END):s===t.ESC&&(o[i++]=t.ESC,s=t.ESC_ESC),o[i++]=s}return o[i]=t.END,t.sliceByteArray(o,0,i+1)},t.Decoder=function(e){e="function"!=typeof e?e||{}:{onMessage:e},this.maxMessageSize=e.maxMessageSize||10485760,this.bufferSize=e.bufferSize||1024,this.msgBuffer=new Uint8Array(this.bufferSize),this.msgBufferIdx=0,this.onMessage=e.onMessage,this.onError=e.onError,this.escape=!1};var n=t.Decoder.prototype;return n.decode=function(e){e=t.byteArray(e);for(var n,r=0;r<e.length;r++){var o=e[r];if(this.escape)o===t.ESC_ESC?o=t.ESC:o===t.ESC_END&&(o=t.END);else{if(o===t.ESC){this.escape=!0;continue}if(o===t.END){n=this.handleEnd();continue}}var i=this.addByte(o);i||this.handleMessageMaxError()}return n},n.handleMessageMaxError=function(){this.onError&&this.onError(this.msgBuffer.subarray(0),"The message is too large; the maximum message size is "+this.maxMessageSize/1024+"KB. Use a larger maxMessageSize if necessary."),this.msgBufferIdx=0,this.escape=!1},n.addByte=function(e){return this.msgBufferIdx>this.msgBuffer.length-1&&(this.msgBuffer=t.expandByteArray(this.msgBuffer)),this.msgBuffer[this.msgBufferIdx++]=e,this.escape=!1,this.msgBuffer.length<this.maxMessageSize},n.handleEnd=function(){if(0!==this.msgBufferIdx){var e=t.sliceByteArray(this.msgBuffer,0,this.msgBufferIdx);return this.onMessage&&this.onMessage(e),this.msgBufferIdx=0,e}},t}),function(){"use strict";function r(){}function o(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function i(e){return function(){return this[e].apply(this,arguments)}}var s=r.prototype,u=this,l=u.EventEmitter;s.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp){t={};for(n in r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n])}else t=r[e]||(r[e]=[]);return t},s.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},s.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},s.addListener=function(e,t){var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},s.on=i("addListener"),s.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},s.once=i("addOnceListener"),s.defineEvent=function(e){return this.getListeners(e),this},s.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},s.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&(n=o(i[r],t),-1!==n&&i[r].splice(n,1));return this},s.off=i("removeListener"),s.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},s.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},s.manipulateListeners=function(e,t,n){var r,o,i=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)i.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(o=t[r])&&("function"==typeof o?i.call(this,r,o):a.call(this,r,o));return this},s.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},s.removeAllListeners=i("removeEvent"),s.emitEvent=function(e,t){var n,r,o,i,a,s=this.getListenersAsObject(e);for(i in s)if(s.hasOwnProperty(i))for(n=s[i].slice(0),o=n.length;o--;)r=n[o],r.once===!0&&this.removeListener(e,r.listener),a=r.listener.apply(this,t||[]),a===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},s.trigger=i("emitEvent"),s.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},s.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},s._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},s._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return u.EventEmitter=l,r},a=function(){return r}.call(t,n,t,e),!(void 0!==a&&(e.e=a))}.call(this);var s=s||n(115),u=u||n(191),l=l||n(96).EventEmitter;!function(){"use strict";s.firePacketEvents=function(e,t,n,r){t.address?e.emit("message",t,n,r):s.fireBundleEvents(e,t,n,r)},s.fireBundleEvents=function(e,t,n,r){e.emit("bundle",t,n,r);for(var o=0;o<t.packets.length;o++){var i=t.packets[o];s.firePacketEvents(e,i,t.timeTag,r)}},s.Port=function(e){this.options=e||{},this.on("data",this.decodeOSC.bind(this))};var t=s.Port.prototype=Object.create(l.prototype);t.constructor=s.Port,t.send=function(e){var t=Array.prototype.slice.call(arguments),n=this.encodeOSC(e),r=s.nativeBuffer(n);t[0]=r,this.sendRaw.apply(this,t)},t.encodeOSC=function(e){e=e.buffer?e.buffer:e;var t;try{t=s.writePacket(e,this.options)}catch(n){this.emit("error",n)}return t},t.decodeOSC=function(e,t){e=s.byteArray(e),this.emit("raw",e,t);try{var n=s.readPacket(e,this.options);this.emit("osc",n,t),s.firePacketEvents(this,n,void 0,t)}catch(r){this.emit("error",r)}},s.SLIPPort=function(e){var t=this,n=this.options=e||{};n.useSLIP=void 0===n.useSLIP?!0:n.useSLIP,this.decoder=new u.Decoder({onMessage:this.decodeOSC.bind(this),onError:function(e){t.emit("error",e)}});var r=n.useSLIP?this.decodeSLIPData:this.decodeOSC;this.on("data",r.bind(this))},t=s.SLIPPort.prototype=Object.create(s.Port.prototype),t.constructor=s.SLIPPort,t.encodeOSC=function(e){e=e.buffer?e.buffer:e;var t;try{var n=s.writePacket(e,this.options);t=u.encode(n)}catch(r){this.emit("error",r)}return t},t.decodeSLIPData=function(e,t){this.decoder.decode(e,t)},s.relay=function(e,t,n,r,o,i){n=n||"message",r=r||"send",o=o||function(){},i=i?[null].concat(i):[];var a=function(e){i[0]=e,e=o(e),t[r].apply(t,i)};return e.on(n,a),{eventName:n,listener:a}},s.relayPorts=function(e,t,n){var r=n.raw?"raw":"osc",o=n.raw?"sendRaw":"send";return s.relay(e,t,r,o,n.transform)},s.stopRelaying=function(e,t){e.removeListener(t.eventName,t.listener)},s.Relay=function(e,t,n){var r=this.options=n||{};r.raw=!1,this.port1=e,this.port2=t,this.listen()},t=s.Relay.prototype=Object.create(l.prototype),t.constructor=s.Relay,t.open=function(){this.port1.open(),this.port2.open()},t.listen=function(){this.port1Spec&&this.port2Spec&&this.close(),this.port1Spec=s.relayPorts(this.port1,this.port2,this.options),this.port2Spec=s.relayPorts(this.port2,this.port1,this.options);var e=this.close.bind(this);this.port1.on("close",e),this.port2.on("close",e)},t.close=function(){s.stopRelaying(this.port1,this.port1Spec),s.stopRelaying(this.port2,this.port2Spec),this.emit("close",this.port1,this.port2)},"undefined"!=typeof e&&e.e&&(e.e=s)}();var s=s;!function(){"use strict";s.WebSocketPort=function(e){s.Port.call(this,e),this.on("open",this.listen.bind(this)),this.socket=e.socket,this.socket&&(1===this.socket.readyState?this.emit("open",this.socket):this.open())};var e=s.WebSocketPort.prototype=Object.create(s.Port.prototype);e.constructor=s.WebSocketPort,e.open=function(){this.socket||(this.socket=new WebSocket(this.options.url)),this.socket.binaryType="arraybuffer";var e=this;this.socket.onopen=function(){e.emit("open",e.socket)}},e.listen=function(){var e=this;this.socket.onmessage=function(t){e.emit("data",t.data,t)},this.socket.onerror=function(t){e.emit("error",t)},this.socket.onclose=function(t){e.emit("close",t)},e.emit("ready")},e.sendRaw=function(e){this.socket&&this.socket.send(e)},e.close=function(e,t){this.socket.close(e,t)}}()}).call(t,n(35).Buffer)},function(e,t,n){(function(t){/*! osc.js 2.0.3, Copyright 2016 Colin Clark | github.com/colinbdclark/osc.js */ var r=r||{};!function(){"use strict";r.SECS_70YRS=2208988800,r.TWO_32=4294967296,r.defaults={metadata:!1,unpackSingleArgs:!0},r.isBufferEnv="undefined"!=typeof t,r.isCommonJS="undefined"!=typeof e&&e.e,r.isNode=r.isCommonJS&&"undefined"==typeof window,r.isArray=function(e){return e&&"[object Array]"===Object.prototype.toString.call(e)},r.isTypedArrayView=function(e){return e.buffer&&e.buffer instanceof ArrayBuffer},r.isBuffer=function(e){return r.isBufferEnv&&e instanceof t};var o="undefined"!=typeof dcodeIO?dcodeIO.Long:"undefined"!=typeof o?o:r.isNode?n(62):void 0;r.dataView=function(e,t,n){return e.buffer?new DataView(e.buffer,t,n):e instanceof ArrayBuffer?new DataView(e,t,n):new DataView(new Uint8Array(e),t,n)},r.byteArray=function(e){if(e instanceof Uint8Array)return e;var t=e.buffer?e.buffer:e;if(!(t instanceof ArrayBuffer||"undefined"!=typeof t.length&&"string"!=typeof t))throw new Error("Can't wrap a non-array-like object as Uint8Array. Object was: "+JSON.stringify(e,null,2));return new Uint8Array(t)},r.nativeBuffer=function(e){return r.isBufferEnv&&r.isNode?r.isBuffer(e)?e:new t(e.buffer?e:new Uint8Array(e)):r.isTypedArrayView(e)?e:new Uint8Array(e)},r.copyByteArray=function(e,t,n){if(r.isTypedArrayView(e)&&r.isTypedArrayView(t))t.set(e,n);else for(var o=void 0===n?0:n,i=Math.min(t.length-n,e.length),a=0,s=o;i>a;a++,s++)t[s]=e[a];return t},r.readString=function(e,t){for(var n=[],r=t.idx;r<e.byteLength;r++){var o=e.getUint8(r);if(0===o){r++;break}n.push(o)}return r=r+3&-4,t.idx=r,String.fromCharCode.apply(null,n)},r.writeString=function(e){for(var t=e+"\x00",n=t.length,r=n+3&-4,o=new Uint8Array(r),i=0;i<t.length;i++){var a=t.charCodeAt(i);o[i]=a}return o},r.readPrimitive=function(e,t,n,r){var o=e[t](r.idx,!1);return r.idx+=n,o},r.writePrimitive=function(e,t,n,r,o){o=void 0===o?0:o;var i;return t?i=new Uint8Array(t.buffer):(i=new Uint8Array(r),t=new DataView(i.buffer)),t[n](o,e,!1),i},r.readInt32=function(e,t){return r.readPrimitive(e,"getInt32",4,t)},r.writeInt32=function(e,t,n){return r.writePrimitive(e,t,"setInt32",4,n)},r.readInt64=function(e,t){var n=r.readPrimitive(e,"getInt32",4,t),i=r.readPrimitive(e,"getInt32",4,t);return o?new o(i,n):{high:n,low:i,unsigned:!1}},r.writeInt64=function(e,t,n){var o=new Uint8Array(8);return o.set(r.writePrimitive(e.high,t,"setInt32",4,n),0),o.set(r.writePrimitive(e.low,t,"setInt32",4,n+4),4),o},r.readFloat32=function(e,t){return r.readPrimitive(e,"getFloat32",4,t)},r.writeFloat32=function(e,t,n){return r.writePrimitive(e,t,"setFloat32",4,n)},r.readFloat64=function(e,t){return r.readPrimitive(e,"getFloat64",8,t)},r.writeFloat64=function(e,t,n){return r.writePrimitive(e,t,"setFloat64",8,n)},r.readChar32=function(e,t){var n=r.readPrimitive(e,"getUint32",4,t);return String.fromCharCode(n)},r.writeChar32=function(e,t,n){var o=e.charCodeAt(0);if(!(void 0===o||-1>o))return r.writePrimitive(o,t,"setUint32",4,n)},r.readBlob=function(e,t){var n=r.readInt32(e,t),o=n+3&-4,i=new Uint8Array(e.buffer,t.idx,n);return t.idx+=o,i},r.writeBlob=function(e){e=r.byteArray(e);var t=e.byteLength,n=t+3&-4,o=4,i=n+o,a=new Uint8Array(i),s=new DataView(a.buffer);return r.writeInt32(t,s),a.set(e,o),a},r.readMIDIBytes=function(e,t){var n=new Uint8Array(e.buffer,t.idx,4);return t.idx+=4,n},r.writeMIDIBytes=function(e){e=r.byteArray(e);var t=new Uint8Array(4);return t.set(e),t},r.readColor=function(e,t){var n=new Uint8Array(e.buffer,t.idx,4),r=n[3]/255;return t.idx+=4,{r:n[0],g:n[1],b:n[2],a:r}},r.writeColor=function(e){var t=Math.round(255*e.a),n=new Uint8Array([e.r,e.g,e.b,t]);return n},r.readTrue=function(){return!0},r.readFalse=function(){return!1},r.readNull=function(){return null},r.readImpulse=function(){return 1},r.readTimeTag=function(e,t){var n=r.readPrimitive(e,"getUint32",4,t),o=r.readPrimitive(e,"getUint32",4,t),i=0===n&&1===o?Date.now():r.ntpToJSTime(n,o);return{raw:[n,o],"native":i}},r.writeTimeTag=function(e){var t=e.raw?e.raw:r.jsToNTPTime(e["native"]),n=new Uint8Array(8),o=new DataView(n.buffer);return r.writeInt32(t[0],o,0),r.writeInt32(t[1],o,4),n},r.timeTag=function(e,t){e=e||0,t=t||Date.now();var n=t/1e3,o=Math.floor(n),i=n-o,a=Math.floor(e),s=e-a,u=i+s;if(u>1){var l=Math.floor(u),c=u-l;a+=l,u=c}var d=o+a+r.SECS_70YRS,p=Math.round(r.TWO_32*u);return{raw:[d,p]}},r.ntpToJSTime=function(e,t){var n=e-r.SECS_70YRS,o=t/r.TWO_32,i=1e3*(n+o);return i},r.jsToNTPTime=function(e){var t=e/1e3,n=Math.floor(t),o=t-n,i=n+r.SECS_70YRS,a=Math.round(r.TWO_32*o);return[i,a]},r.readArguments=function(e,t,n){var o=r.readString(e,n);if(0!==o.indexOf(","))throw new Error("A malformed type tag string was found while reading the arguments of an OSC message. String was: "+o," at offset: "+n.idx);var i=o.substring(1).split(""),a=[];return r.readArgumentsIntoArray(a,i,o,e,t,n),a},r.readArgument=function(e,t,n,o,i){var a=r.argumentTypes[e];if(!a)throw new Error("'"+e+"' is not a valid OSC type tag. Type tag string was: "+t);var s=a.reader,u=r[s](n,i);return o.metadata&&(u={type:e,value:u}),u},r.readArgumentsIntoArray=function(e,t,n,o,i,a){for(var s=0;s<t.length;){var u,l=t[s];if("["===l){var c=t.slice(s+1),d=c.indexOf("]");if(0>d)throw new Error("Invalid argument type tag: an open array type tag ('[') was found without a matching close array tag ('[]'). Type tag was: "+n);var p=c.slice(0,d);u=r.readArgumentsIntoArray([],p,n,o,i,a),s+=d+2}else u=r.readArgument(l,n,o,i,a),s++;e.push(u)}return e},r.writeArguments=function(e,t){var n=r.collectArguments(e,t);return r.joinParts(n)},r.joinParts=function(e){for(var t=new Uint8Array(e.byteLength),n=e.parts,o=0,i=0;i<n.length;i++){var a=n[i];r.copyByteArray(a,t,o),o+=a.length}return t},r.addDataPart=function(e,t){t.parts.push(e),t.byteLength+=e.length},r.writeArrayArguments=function(e,t){for(var n="[",o=0;o<e.length;o++){var i=e[o];n+=r.writeArgument(i,t)}return n+="]"},r.writeArgument=function(e,t){if(r.isArray(e))return r.writeArrayArguments(e,t);var n=e.type,o=r.argumentTypes[n].writer;if(o){var i=r[o](e.value);r.addDataPart(i,t)}return e.type},r.collectArguments=function(e,t,n){r.isArray(e)||(e="undefined"==typeof e?[]:[e]),n=n||{byteLength:0,parts:[]},t.metadata||(e=r.annotateArguments(e));for(var o=",",i=n.parts.length,a=0;a<e.length;a++){var s=e[a];o+=r.writeArgument(s,n)}var u=r.writeString(o);return n.byteLength+=u.byteLength,n.parts.splice(i,0,u),n},r.readMessage=function(e,t,n){t=t||r.defaults;var o=r.dataView(e,e.byteOffset,e.byteLength);n=n||{idx:0};var i=r.readString(o,n);return r.readMessageContents(i,o,t,n)},r.readMessageContents=function(e,t,n,o){if(0!==e.indexOf("/"))throw new Error("A malformed OSC address was found while reading an OSC message. String was: "+e);var i=r.readArguments(t,n,o);return{address:e,args:1===i.length&&n.unpackSingleArgs?i[0]:i}},r.collectMessageParts=function(e,t,n){return n=n||{byteLength:0,parts:[]},r.addDataPart(r.writeString(e.address),n),r.collectArguments(e.args,t,n)},r.writeMessage=function(e,t){if(t=t||r.defaults,!r.isValidMessage(e))throw new Error("An OSC message must contain a valid address. Message was: "+JSON.stringify(e,null,2));var n=r.collectMessageParts(e,t);return r.joinParts(n)},r.isValidMessage=function(e){return e.address&&0===e.address.indexOf("/")},r.readBundle=function(e,t,n){return r.readPacket(e,t,n)},r.collectBundlePackets=function(e,t,n){n=n||{byteLength:0,parts:[]},r.addDataPart(r.writeString("#bundle"),n),r.addDataPart(r.writeTimeTag(e.timeTag),n);for(var o=0;o<e.packets.length;o++){var i=e.packets[o],a=i.address?r.collectMessageParts:r.collectBundlePackets,s=a(i,t);n.byteLength+=s.byteLength,r.addDataPart(r.writeInt32(s.byteLength),n),n.parts=n.parts.concat(s.parts)}return n},r.writeBundle=function(e,t){if(!r.isValidBundle(e))throw new Error("An OSC bundle must contain 'timeTag' and 'packets' properties. Bundle was: "+JSON.stringify(e,null,2));t=t||r.defaults;var n=r.collectBundlePackets(e,t);return r.joinParts(n)},r.isValidBundle=function(e){return void 0!==e.timeTag&&void 0!==e.packets},r.readBundleContents=function(e,t,n,o){for(var i=r.readTimeTag(e,n),a=[];n.idx<o;){var s=r.readInt32(e,n),u=n.idx+s,l=r.readPacket(e,t,n,u);a.push(l)}return{timeTag:i,packets:a}},r.readPacket=function(e,t,n,o){var i=r.dataView(e,e.byteOffset,e.byteLength);o=void 0===o?i.byteLength:o,n=n||{idx:0};var a=r.readString(i,n),s=a[0];if("#"===s)return r.readBundleContents(i,t,n,o);if("/"===s)return r.readMessageContents(a,i,t,n);throw new Error("The header of an OSC packet didn't contain an OSC address or a #bundle string. Header was: "+a)},r.writePacket=function(e,t){if(r.isValidMessage(e))return r.writeMessage(e,t);if(r.isValidBundle(e))return r.writeBundle(e,t);throw new Error("The specified packet was not recognized as a valid OSC message or bundle. Packet was: "+JSON.stringify(e,null,2))},r.argumentTypes={i:{reader:"readInt32",writer:"writeInt32"},h:{reader:"readInt64",writer:"writeInt64"},f:{reader:"readFloat32",writer:"writeFloat32"},s:{reader:"readString",writer:"writeString"},S:{reader:"readString",writer:"writeString"},b:{reader:"readBlob",writer:"writeBlob"},t:{reader:"readTimeTag",writer:"writeTimeTag"},T:{reader:"readTrue"},F:{reader:"readFalse"},N:{reader:"readNull"},I:{reader:"readImpulse"},d:{reader:"readFloat64",writer:"writeFloat64"},c:{reader:"readChar32",writer:"writeChar32"},r:{reader:"readColor",writer:"writeColor"},m:{reader:"readMIDIBytes",writer:"writeMIDIBytes"}},r.inferTypeForArgument=function(e){var t=typeof e;switch(t){case"boolean":return e?"T":"F";case"string":return"s";case"number":return"f";case"undefined":return"N";case"object":if(null===e)return"N";if(e instanceof Uint8Array||e instanceof ArrayBuffer)return"b";if("number"==typeof e.high&&"number"==typeof e.low)return"h"}throw new Error("Can't infer OSC argument type for value: "+JSON.stringify(e,null,2))},r.annotateArguments=function(e){for(var t=[],n=0;n<e.length;n++){var o,i=e[n];if("object"==typeof i&&i.type&&void 0!==i.value)o=i;else if(r.isArray(i))o=r.annotateArguments(i);else{var a=r.inferTypeForArgument(i);o={type:a,value:i}}t.push(o)}return t},r.isCommonJS&&(e.e=r)}()}).call(t,n(35).Buffer)},function(e,t,n){e.e=n(123)},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8),u=r(s),l=n(17),c=r(l),d=n(20),p=u["default"].PropTypes,f=u["default"].Component,h=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.backgroundUrl,n=e.trackName,r=e.artistName,o=e.className,i=e.style,a=e.children,s=c["default"]("sb-soundplayer-cover",o);return u["default"].createElement("div",{className:s,style:Object.assign(i,{backgroundImage:"url("+t+")"})},u["default"].createElement("div",null,u["default"].createElement(d.SoundCloudLogoSVG,null)),u["default"].createElement("div",null,u["default"].createElement("span",{className:"sb-soundplayer-track sb-soundplayer-info-box"},n)),u["default"].createElement("div",null,u["default"].createElement("span",{className:"sb-soundplayer-artist sb-soundplayer-info-box"},"by ",r)),u["default"].Children.map(a,u["default"].cloneElement))}}]),t}(f);h.propTypes={className:p.string,backgroundUrl:p.string.isRequired,trackName:p.string.isRequired,artistName:p.string.isRequired},t["default"]=h,e.e=t["default"]},function(t,n,r){"use strict";var o=function(e){return e&&e.__esModule?e:{"default":e}},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(n,"__esModule",{value:!0});var u=r(8),l=o(u),c=r(17),d=o(c),p=r(24),f=o(p),h=r(20),v=l["default"].PropTypes,m=l["default"].Component,g=function(t){function n(){i(this,n),null!=t&&t.apply(this,arguments)}return s(n,t),a(n,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"handleClick",value:function(){var t=this.props,n=t.soundCloudAudio,r=t.onNextClick;n&&n.next(),r&&r(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,r=d["default"]("sb-soundplayer-play-btn",t);return l["default"].createElement("button",{type:"button",className:r,style:n,onClick:this.handleClick.bind(this)},l["default"].createElement(h.NextIconSVG,null))}}]),n}(m);g.propTypes={className:v.string,onNextClick:v.func,soundCloudAudio:v.instanceOf(f["default"])},n["default"]=g,t.e=n["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8),u=r(s),l=n(17),c=r(l),d=n(24),p=r(d),f=n(20),h=u["default"].PropTypes,v=u["default"].Component,m=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.playing,r=t.seeking;return n!==e.playing||r!==e.seeking}},{key:"handleClick",value:function(e){var t=this.props,n=t.playing,r=t.soundCloudAudio,o=t.onTogglePlay;n?r&&r.pause():r&&r.play(),o&&o(e)}},{key:"render",value:function(){var e=this.props,t=e.playing,n=e.seekingIcon,r=e.seeking,o=e.className,i=e.style,a=void 0;a=r&&n?u["default"].cloneElement(n):t?u["default"].createElement(f.PauseIconSVG,null):u["default"].createElement(f.PlayIconSVG,null);var s=c["default"]("sb-soundplayer-play-btn",o);return u["default"].createElement("button",{type:"button",className:s,style:i,onClick:this.handleClick.bind(this)},a)}}]),t}(v);m.propTypes={className:h.string,seeking:h.bool,playing:h.bool,onTogglePlay:h.func,seekingIcon:h.node,soundCloudAudio:h.instanceOf(p["default"])},m.defaultProps={playing:!1,seeking:!1},t["default"]=m,e.e=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8),u=r(s),l=n(17),c=r(l),d=n(24),p=r(d),f=n(20),h=u["default"].PropTypes,v=u["default"].Component,m=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),i(t,[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"handleClick",value:function(e){var t=this.props,n=t.soundCloudAudio,r=t.onPrevClick;n&&n.previous(),r&&r(e)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.style,r=c["default"]("sb-soundplayer-play-btn",t);return u["default"].createElement("button",{type:"button",className:r,style:n,onClick:this.handleClick.bind(this)},u["default"].createElement(f.PrevIconSVG,null))}}]),t}(v);m.propTypes={className:h.string,onPrevClick:h.func,soundCloudAudio:h.instanceOf(p["default"])},t["default"]=m,e.e=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8),u=r(s),l=n(24),c=r(l),d=n(17),p=r(d),f=u["default"].PropTypes,h=u["default"].Component,v=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),i(t,[{key:"handleSeekTrack",value:function(e){var t=this.props,n=t.onSeekTrack,r=t.soundCloudAudio,o=(e.pageX-e.currentTarget.getBoundingClientRect().left)/e.currentTarget.offsetWidth;r&&!isNaN(r.audio.duration)&&(r.audio.currentTime=o*r.audio.duration),n&&n.call(this,o,e)}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.className,r=e.innerClassName,o=e.style,i=e.innerStyle;0>t&&(t=0),t>100&&(t=100);var a=p["default"]("sb-soundplayer-progress-container",n),s=p["default"]("sb-soundplayer-progress-inner",r);return i=Object.assign(i,{width:""+t+"%"}),u["default"].createElement("div",{className:a,style:o,onClick:this.handleSeekTrack.bind(this)},u["default"].createElement("div",{className:s,style:i}))}}]),t}(h);v.propTypes={className:f.string,innerClassName:u["default"].PropTypes.string,innerStyle:f.object,value:u["default"].PropTypes.number,onSeekTrack:f.func,soundCloudAudio:f.instanceOf(c["default"])},v.defaultProps={value:0},t["default"]=v,e.e=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)};Object.defineProperty(t,"__esModule",{value:!0});var s=n(8),u=r(s),l=n(17),c=r(l),d=u["default"].PropTypes,p=u["default"].Component,f=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),i(t,[{key:"render",value:function(){var e=this.props,n=e.duration,r=e.currentTime,o=e.className,i=e.style,a=c["default"]("sb-soundplayer-timer",o);return u["default"].createElement("div",{className:a,style:i},t.prettyTime(r)," / ",t.prettyTime(n))}}],[{key:"prettyTime",value:function(e){var t=Math.floor(e/3600),n="0"+Math.floor(e%3600/60),r="0"+Math.floor(e%60);return n=n.substr(n.length-2),r=r.substr(r.length-2),isNaN(r)?"00:00":t?""+t+":"+n+":"+r:""+n+":"+r}}]),t}(p);f.propTypes={className:d.string,duration:d.oneOfType([d.string,d.number]),currentTime:d.oneOfType([d.string,d.number])},f.defaultProps={duration:0,currentTime:0},t["default"]=f,e.e=t["default"]},function(e,t,n){"use strict";var r=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(119),i=r(o);t.PlayButton=i["default"];var a=n(118),s=r(a);t.NextButton=s["default"];var u=n(120),l=r(u);t.PrevButton=l["default"];var c=n(121),d=r(c);t.Progress=d["default"];var p=n(122),f=r(p);t.Timer=f["default"];var h=n(117),v=r(h);t.Cover=v["default"];var m=n(20),g=r(m);t.Icons=g["default"]},function(e,t,n){"use strict";var r=n(4),o=n(58),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.e=i},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case P.topCompositionStart:return S.compositionStart;case P.topCompositionEnd:return S.compositionEnd;case P.topCompositionUpdate:return S.compositionUpdate}}function a(e,t){return e===P.topKeyDown&&t.keyCode===_}function s(e,t){switch(e){case P.topKeyUp:return-1!==b.indexOf(t.keyCode);case P.topKeyDown:return t.keyCode!==_;case P.topKeyPress:case P.topMouseDown:case P.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,r){var o,l;if(N?o=i(e):M?s(e,n)&&(o=S.compositionEnd):a(e,n)&&(o=S.compositionStart),!o)return null;O&&(M||o!==S.compositionStart?o===S.compositionEnd&&M&&(l=M.getData()):M=m.getPooled(r));var c=g.getPooled(o,t,n,r);if(l)c.data=l;else{var d=u(n);null!==d&&(c.data=d)}return h.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case P.topCompositionEnd:return u(t);case P.topKeyPress:var n=t.which;return n!==T?null:(A=!0,D);case P.topTextInput:var r=t.data;return r===D&&A?null:r;default:return null}}function d(e,t){if(M){if(e===P.topCompositionEnd||s(e,t)){var n=M.getData();return m.release(M),M=null,n}return null}switch(e){case P.topPaste:return null;case P.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case P.topCompositionEnd:return O?null:t.data;default:return null}}function p(e,t,n,r){var o;if(o=C?c(e,n):d(e,n),!o)return null;var i=y.getPooled(S.beforeInput,t,n,r);return i.data=o,h.accumulateTwoPhaseDispatches(i),i}var f=n(11),h=n(22),v=n(5),m=n(132),g=n(173),y=n(176),E=n(13),b=[9,13,27,32],_=229,N=v.canUseDOM&&"CompositionEvent"in window,w=null;v.canUseDOM&&"documentMode"in document&&(w=document.documentMode);var C=v.canUseDOM&&"TextEvent"in window&&!w&&!r(),O=v.canUseDOM&&(!N||w&&w>8&&11>=w),T=32,D=String.fromCharCode(T),P=f.topLevelTypes,S={beforeInput:{phasedRegistrationNames:{bubbled:E({onBeforeInput:null}),captured:E({onBeforeInputCapture:null})},dependencies:[P.topCompositionEnd,P.topKeyPress,P.topTextInput,P.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:E({onCompositionEnd:null}),captured:E({onCompositionEndCapture:null})},dependencies:[P.topBlur,P.topCompositionEnd,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:E({onCompositionStart:null}),captured:E({onCompositionStartCapture:null})},dependencies:[P.topBlur,P.topCompositionStart,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:E({onCompositionUpdate:null}),captured:E({onCompositionUpdateCapture:null})},dependencies:[P.topBlur,P.topCompositionUpdate,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]}},A=!1,M=null,k={eventTypes:S,extractEvents:function(e,t,n,r){return[l(e,t,n,r),p(e,t,n,r)]}};e.e=k},function(e,t,n){(function(t){"use strict";var r=n(63),o=n(5),i=n(6),a=n(99),s=n(182),u=n(105),l=n(109),c=n(2),d=l(function(e){return u(e)}),p=!1,f="cssFloat";if(o.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(v){p=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}if("production"!==t.env.NODE_ENV)var m=/^(?:webkit|moz|o)[A-Z]/,g=/;\s*$/,y={},E={},b=!1,_=function(e,n){y.hasOwnProperty(e)&&y[e]||(y[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported style property %s. Did you mean %s?%s",e,a(e),O(n)):void 0)},N=function(e,n){y.hasOwnProperty(e)&&y[e]||(y[e]=!0,"production"!==t.env.NODE_ENV?c(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",e,e.charAt(0).toUpperCase()+e.slice(1),O(n)):void 0)},w=function(e,n,r){E.hasOwnProperty(n)&&E[n]||(E[n]=!0,"production"!==t.env.NODE_ENV?c(!1,'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.',O(r),e,n.replace(g,"")):void 0)},C=function(e,n,r){b||(b=!0,"production"!==t.env.NODE_ENV?c(!1,"`NaN` is an invalid value for the `%s` css style property.%s",e,O(r)):void 0)},O=function(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""},T=function(e,t,n){var r;n&&(r=n._currentElement._owner),e.indexOf("-")>-1?_(e,r):m.test(e)?N(e,r):g.test(t)&&w(e,t,r),"number"==typeof t&&isNaN(t)&&C(e,t,r)};var D={createMarkupForStyles:function(e,n){var r="";for(var o in e)if(e.hasOwnProperty(o)){var i=e[o];"production"!==t.env.NODE_ENV&&T(o,i,n),null!=i&&(r+=d(o)+":",r+=s(o,i,n)+";")}return r||null},setValueForStyles:function(e,n,o){var i=e.style;for(var a in n)if(n.hasOwnProperty(a)){"production"!==t.env.NODE_ENV&&T(a,n[a],o);var u=s(a,n[a],o);if("float"!==a&&"cssFloat"!==a||(a=f),u)i[a]=u;else{var l=p&&r.shorthandPropertyExpansions[a];if(l)for(var c in l)i[c]="";else i[a]=""}}}};i.measureMethods(D,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.e=D}).call(t,n(0))},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=C.getPooled(A.change,k,e,O(e));b.accumulateTwoPhaseDispatches(t),w.batchedUpdates(i,t)}function i(e){E.enqueueEvents(e),E.processEventQueue(!1)}function a(e,t){M=e,k=t,M.attachEvent("onchange",o)}function s(){M&&(M.detachEvent("onchange",o),M=null,k=null)}function u(e,t){return e===S.topChange?t:void 0}function l(e,t,n){e===S.topFocus?(s(),a(t,n)):e===S.topBlur&&s()}function c(e,t){M=e,k=t,I=e.value,R=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(M,"value",U),M.attachEvent?M.attachEvent("onpropertychange",p):M.addEventListener("propertychange",p,!1)}function d(){M&&(delete M.value,M.detachEvent?M.detachEvent("onpropertychange",p):M.removeEventListener("propertychange",p,!1),M=null,k=null,I=null,R=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==I&&(I=t,o(e))}}function f(e,t){return e===S.topInput?t:void 0}function h(e,t,n){e===S.topFocus?(d(),c(t,n)):e===S.topBlur&&d()}function v(e,t){return e!==S.topSelectionChange&&e!==S.topKeyUp&&e!==S.topKeyDown||!M||M.value===I?void 0:(I=M.value,k)}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){return e===S.topClick?t:void 0}var y=n(11),E=n(21),b=n(22),_=n(5),N=n(4),w=n(10),C=n(12),O=n(49),T=n(51),D=n(88),P=n(13),S=y.topLevelTypes,A={change:{phasedRegistrationNames:{bubbled:P({onChange:null}),captured:P({onChangeCapture:null})},dependencies:[S.topBlur,S.topChange,S.topClick,S.topFocus,S.topInput,S.topKeyDown,S.topKeyUp,S.topSelectionChange]}},M=null,k=null,I=null,R=null,x=!1;_.canUseDOM&&(x=T("change")&&(!("documentMode"in document)||document.documentMode>8));var V=!1;_.canUseDOM&&(V=T("input")&&(!("documentMode"in document)||document.documentMode>11));var U={get:function(){return R.get.call(this)},set:function(e){I=""+e,R.set.call(this,e)}},L={eventTypes:A,extractEvents:function(e,t,n,o){var i,a,s=t?N.getNodeFromInstance(t):window;if(r(s)?x?i=u:a=l:D(s)?V?i=f:(i=v,a=h):m(s)&&(i=g),i){var c=i(e,t);if(c){var d=C.getPooled(A.change,c,n,o);return d.type="change",b.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t)}};e.e=L},function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.e=r},function(e,t,n){(function(t){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(18),i=n(5),a=n(102),s=n(9),u=n(60),l=n(1),c=/^(<[^ \/>]+)/,d="data-danger-index",p={dangerouslyRenderMarkup:function(e){i.canUseDOM?void 0:"production"!==t.env.NODE_ENV?l(!1,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString for server rendering."):l(!1);for(var n,o={},p=0;p<e.length;p++)e[p]?void 0:"production"!==t.env.NODE_ENV?l(!1,"dangerouslyRenderMarkup(...): Missing markup."):l(!1),n=r(e[p]),n=u(n)?n:"*",o[n]=o[n]||[],o[n][p]=e[p];var f=[],h=0;for(n in o)if(o.hasOwnProperty(n)){var v,m=o[n];for(v in m)if(m.hasOwnProperty(v)){var g=m[v];m[v]=g.replace(c,"$1 "+d+'="'+v+'" ')}for(var y=a(m.join(""),s),E=0;E<y.length;++E){var b=y[E];b.hasAttribute&&b.hasAttribute(d)?(v=+b.getAttribute(d),b.removeAttribute(d),f.hasOwnProperty(v)?"production"!==t.env.NODE_ENV?l(!1,"Danger: Assigning to an already-occupied result index."):l(!1):void 0,f[v]=b,h+=1):"production"!==t.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",b)}}return h!==f.length?"production"!==t.env.NODE_ENV?l(!1,"Danger: Did not assign to every index of resultList."):l(!1):void 0,f.length!==e.length?"production"!==t.env.NODE_ENV?l(!1,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,f.length):l(!1):void 0,f},dangerouslyReplaceNodeWithMarkup:function(e,n){if(i.canUseDOM?void 0:"production"!==t.env.NODE_ENV?l(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering."):l(!1),n?void 0:"production"!==t.env.NODE_ENV?l(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):l(!1),"HTML"===e.nodeName?"production"!==t.env.NODE_ENV?l(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."):l(!1):void 0,"string"==typeof n){var r=a(n,s)[0];e.parentNode.replaceChild(r,e)}else o.replaceChildWithTree(e,n)}};e.e=p}).call(t,n(0))},function(e,t,n){"use strict";var r=n(13),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.e=o},function(e,t,n){"use strict";var r=n(11),o=n(22),i=n(4),a=n(33),s=n(13),u=r.topLevelTypes,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},c={eventTypes:l,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(n.relatedTarget||n.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var s;if(r.window===r)s=r;else{var c=r.ownerDocument;s=c?c.defaultView||c.parentWindow:window}var d,p;if(e===u.topMouseOut){d=t;var f=n.relatedTarget||n.toElement;p=f?i.getClosestInstanceFromNode(f):null}else d=null,p=t;if(d===p)return null;var h=null==d?s:i.getNodeFromInstance(d),v=null==p?s:i.getNodeFromInstance(p),m=a.getPooled(l.mouseLeave,d,n,r);m.type="mouseleave",m.target=h,m.relatedTarget=v;var g=a.getPooled(l.mouseEnter,p,n,r);return g.type="mouseenter",g.target=v,g.relatedTarget=h,o.accumulateEnterLeaveDispatches(m,g,d,p),[m,g]}};e.e=c},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(), this._fallbackText=null}var o=n(3),i=n(16),a=n(86);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;r>e&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.e=r},function(e,t,n){"use strict";var r=n(14),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_SIDE_EFFECTS,s=r.injection.HAS_NUMERIC_VALUE,u=r.injection.HAS_POSITIVE_NUMERIC_VALUE,l=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:u,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,"default":i,defer:i,dir:0,disabled:i,download:l,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,rel:0,required:i,reversed:i,role:0,rows:u,rowSpan:s,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:u,sizes:0,span:u,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:s,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:o|a,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.e=c},function(e,t,n){(function(t){"use strict";var r=n(3),o=n(65),i=n(67),a=n(66),s=n(143),u=n(7),l=n(71),c=n(79),d=n(81),p=n(188),f=n(2),h=u.createElement,v=u.createFactory,m=u.cloneElement;"production"!==t.env.NODE_ENV&&(h=l.createElement,v=l.createFactory,m=l.cloneElement);var g=r;if("production"!==t.env.NODE_ENV){var y=!1;g=function(){return"production"!==t.env.NODE_ENV?f(y,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."):void 0,y=!0,r.apply(null,arguments)}}var E={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:i,createElement:h,cloneElement:m,isValidElement:u.isValidElement,PropTypes:c,createClass:a.createClass,createFactory:v,createMixin:function(e){return e},DOM:s,version:d,__spread:g};e.e=E}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e,n,r){var o=void 0===e[r];"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?u(o,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.",r):void 0),null!=n&&o&&(e[r]=i(n))}var o=n(19),i=n(87),a=n(53),s=n(54),u=n(2),l={instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r,s){if(t||e){var u,l;for(u in t)if(t.hasOwnProperty(u)){l=e&&e[u];var c=l&&l._currentElement,d=t[u];if(null!=l&&a(c,d))o.receiveComponent(l,d,r,s),t[u]=l;else{l&&(n[u]=o.getNativeNode(l),o.unmountComponent(l,!1));var p=i(d);t[u]=p}}for(u in e)!e.hasOwnProperty(u)||t&&t.hasOwnProperty(u)||(l=e[u],n[u]=o.getNativeNode(l),o.unmountComponent(l,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}};e.e=l}).call(t,n(0))},function(e,t,n){(function(t){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}function i(e,n){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?N(null===n||n===!1||l.isValidElement(n),"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",e.displayName||e.name||"Component"):void 0)}var a=n(3),s=n(40),u=n(15),l=n(7),c=n(41),d=n(42),p=n(30),f=n(77),h=n(6),v=n(32),m=n(31),g=n(19),y=n(80),E=n(25),b=n(1),_=n(53),N=n(2);o.prototype.render=function(){var e=d.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return i(e,t),t};var w=1,C={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._nativeParent=null,this._nativeContainerInfo=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,n,r,a){this._context=a,this._mountOrder=w++,this._nativeParent=n,this._nativeContainerInfo=r;var s,c,p=this._processProps(this._currentElement.props),f=this._processContext(a),h=this._currentElement.type;if(h.prototype&&h.prototype.isReactComponent)if("production"!==t.env.NODE_ENV){u.current=this;try{s=new h(p,f,y)}finally{u.current=null}}else s=new h(p,f,y);else{if("production"!==t.env.NODE_ENV){u.current=this;try{s=h(p,f,y)}finally{u.current=null}}else s=h(p,f,y);null!=s&&null!=s.render||(c=s,i(h,c),null===s||s===!1||l.isValidElement(s)?void 0:"production"!==t.env.NODE_ENV?b(!1,"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",h.displayName||h.name||"Component"):b(!1),s=new o(h))}if("production"!==t.env.NODE_ENV){null==s.render&&("production"!==t.env.NODE_ENV?N(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",h.displayName||h.name||"Component"):void 0);var v=s.props!==p,m=h.displayName||h.name||"Component";"production"!==t.env.NODE_ENV?N(void 0===s.props||!v,"%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m):void 0}s.props=p,s.context=f,s.refs=E,s.updater=y,this._instance=s,d.set(s,this),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?N(!s.getInitialState||s.getInitialState.isReactClassApproved,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"):void 0,"production"!==t.env.NODE_ENV?N(!s.getDefaultProps||s.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"):void 0,"production"!==t.env.NODE_ENV?N(!s.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):void 0,"production"!==t.env.NODE_ENV?N(!s.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):void 0,"production"!==t.env.NODE_ENV?N("function"!=typeof s.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"):void 0,"production"!==t.env.NODE_ENV?N("function"!=typeof s.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"):void 0,"production"!==t.env.NODE_ENV?N("function"!=typeof s.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component"):void 0);var g=s.state;void 0===g&&(s.state=g=null),"object"!=typeof g||Array.isArray(g)?"production"!==t.env.NODE_ENV?b(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):b(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var _;return _=s.unstable_handleError?this.performInitialMountWithErrorHandling(c,n,r,e,a):this.performInitialMount(c,n,r,e,a),s.componentDidMount&&e.getReactMountReady().enqueue(s.componentDidMount,s),_},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent()),this._renderedNodeType=f.getType(e),this._renderedComponent=this._instantiateReactComponent(e);var a=g.mountComponent(this._renderedComponent,r,t,n,this._processChildContext(o));return a},getNativeNode:function(){return g.getNativeNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount)if(e){var n=this.getName()+".componentWillUnmount()";c.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(g.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,d.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return E;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var n=this._maskContext(e);if("production"!==t.env.NODE_ENV){var r=this._currentElement.type;r.contextTypes&&this._checkPropTypes(r.contextTypes,n,v.context)}return n},_processChildContext:function(e){var n=this._currentElement.type,r=this._instance;"production"!==t.env.NODE_ENV&&p.debugTool.onBeginProcessingChildContext();var o=r.getChildContext&&r.getChildContext();if("production"!==t.env.NODE_ENV&&p.debugTool.onEndProcessingChildContext(),o){"object"!=typeof n.childContextTypes?"production"!==t.env.NODE_ENV?b(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):b(!1):void 0,"production"!==t.env.NODE_ENV&&this._checkPropTypes(n.childContextTypes,o,v.childContext);for(var i in o)i in n.childContextTypes?void 0:"production"!==t.env.NODE_ENV?b(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",i):b(!1);return a({},e,o)}return e},_processProps:function(e){if("production"!==t.env.NODE_ENV){var n=this._currentElement.type;n.propTypes&&this._checkPropTypes(n.propTypes,e,v.prop)}return e},_checkPropTypes:function(e,n,o){var i=this.getName();for(var a in e)if(e.hasOwnProperty(a)){var s;try{"function"!=typeof e[a]?"production"!==t.env.NODE_ENV?b(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",i||"React class",m[o],a):b(!1):void 0,s=e[a](n,a,i,o)}catch(u){s=u}if(s instanceof Error){var l=r(this);o===v.prop?"production"!==t.env.NODE_ENV?N(!1,"Failed Composite propType: %s%s",s.message,l):void 0:"production"!==t.env.NODE_ENV?N(!1,"Failed Context Types: %s%s",s.message,l):void 0}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&g.receiveComponent(this,this._pendingElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,n,r,o,i){var a,s,u=this._instance,l=!1;this._context===i?a=u.context:(a=this._processContext(i),l=!0),n===r?s=r.props:(s=this._processProps(r.props),l=!0),l&&u.componentWillReceiveProps&&u.componentWillReceiveProps(s,a);var c=this._processPendingState(s,a),d=this._pendingForceUpdate||!u.shouldComponentUpdate||u.shouldComponentUpdate(s,c,a);"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?N(void 0!==d,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):void 0),d?(this._pendingForceUpdate=!1,this._performComponentUpdate(r,s,c,a,e,i)):(this._currentElement=r,this._context=i,u.props=s,u.state=c,u.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=a({},o?r[0]:n.state),s=o?1:0;s<r.length;s++){var u=r[s];a(i,"function"==typeof u?u.call(n,i,e,t):u)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(a=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,l.props=t,l.state=n,l.context=r,this._updateRenderedComponent(o,i),c&&o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,a,s,u),l)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(_(r,o))g.receiveComponent(n,o,e,this._processChildContext(t));else{var i=g.getNativeNode(n);g.unmountComponent(n,!1),this._renderedNodeType=f.getType(o),this._renderedComponent=this._instantiateReactComponent(o);var a=g.mountComponent(this._renderedComponent,e,this._nativeParent,this._nativeContainerInfo,this._processChildContext(t));this._replaceNodeWithMarkup(i,a)}},_replaceNodeWithMarkup:function(e,t){s.replaceNodeWithMarkup(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,n=e.render();return"production"!==t.env.NODE_ENV&&void 0===n&&e.render._isMockFunction&&(n=null),n},_renderValidatedComponent:function(){var e;u.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{u.current=null}return null===e||e===!1||l.isValidElement(e)?void 0:"production"!==t.env.NODE_ENV?b(!1,"%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"):b(!1),e},attachRef:function(e,n){var r=this.getPublicInstance();null==r?"production"!==t.env.NODE_ENV?b(!1,"Stateless function components cannot have refs."):b(!1):void 0;var o=n.getPublicInstance();if("production"!==t.env.NODE_ENV){var i=n&&n.getName?n.getName():"a component";"production"!==t.env.NODE_ENV?N(null!=o,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',e,i,this.getName()):void 0}var a=r.refs===E?r.refs={}:r.refs;a[e]=o},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};h.measureMethods(C,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var O={Mixin:C};e.e=O}).call(t,n(0))},function(e,t,n){(function(t){"use strict";var r=n(4),o=n(156),i=n(43),a=n(6),s=n(19),u=n(10),l=n(81),c=n(183),d=n(85),p=n(190),f=n(2);o.inject();var h=a.measure("React","render",i.render),v={findDOMNode:c,render:h,unmountComponentAtNode:i.unmountComponentAtNode,version:l,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:p};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=d(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:s}),"production"!==t.env.NODE_ENV){var m=n(5);if(m.canUseDOM&&window.top===window.self){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var g=-1===window.location.protocol.indexOf("http")&&-1===navigator.userAgent.indexOf("Firefox");console.debug("Download the React DevTools "+(g?"and use an HTTP server (instead of a file: URL) ":"")+"for a better development experience: https://fb.me/react-devtools")}var y=function(){};"production"!==t.env.NODE_ENV?f(-1!==(y.name||y.toString()).indexOf("testFn"),"It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details."):void 0;var E=document.documentMode&&document.documentMode<8;"production"!==t.env.NODE_ENV?f(!E,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />'):void 0;for(var b=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim],_=0;_<b.length;_++)if(!b[_]){"production"!==t.env.NODE_ENV?f(!1,"One or more ES5 shims expected by React are not available: https://fb.me/react-warning-polyfills"):void 0;break}}}e.e=v}).call(t,n(0))},function(e,t,n){"use strict";var r={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},o={getNativeProps:function(e,t){if(!t.disabled)return t;var n={};for(var o in t)t.hasOwnProperty(o)&&!r[o]&&(n[o]=t[o]);return n}};e.e=o},function(e,t,n){(function(t){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e){if("object"==typeof e){if(Array.isArray(e))return"["+e.map(o).join(", ")+"]";var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);t.push(r+": "+o(e[n]))}return"{"+t.join(", ")+"}"}return"string"==typeof e?JSON.stringify(e):"function"==typeof e?"[function object]":String(e)}function i(e,n,r){if(null!=e&&null!=n&&!F(e,n)){var i,a=r._tag,s=r._currentElement._owner;s&&(i=s.getName());var u=i+"|"+a;Z.hasOwnProperty(u)||(Z[u]=!0,"production"!==t.env.NODE_ENV?W(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",a,s?"of `"+i+"`":"using <"+a+">",o(e),o(n)):void 0)}}function a(e,n){n&&(ne[e._tag]&&(null!=n.children||null!=n.dangerouslySetInnerHTML?"production"!==t.env.NODE_ENV?U(!1,"%s is a void element tag and must not have `children` or use `props.dangerouslySetInnerHTML`.%s",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""):U(!1):void 0),null!=n.dangerouslySetInnerHTML&&(null!=n.children?"production"!==t.env.NODE_ENV?U(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):U(!1):void 0,"object"==typeof n.dangerouslySetInnerHTML&&J in n.dangerouslySetInnerHTML?void 0:"production"!==t.env.NODE_ENV?U(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):U(!1)),"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?W(null==n.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==t.env.NODE_ENV?W(n.suppressContentEditableWarning||!n.contentEditable||null==n.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."):void 0,"production"!==t.env.NODE_ENV?W(null==n.onFocusIn&&null==n.onFocusOut,"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."):void 0),null!=n.style&&"object"!=typeof n.style?"production"!==t.env.NODE_ENV?U(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",r(e)):U(!1):void 0)}function s(e,n,r,o){"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?W("onScroll"!==n||L("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var i=e._nativeContainerInfo,a=i._ownerDocument;a&&(z(n,a),o.getReactMountReady().enqueue(u,{inst:e,registrationName:n,listener:r}))}function u(){var e=this;w.putListener(e.inst,e.registrationName,e.listener)}function l(){var e=this;M.postMountWrapper(e)}function c(){var e=this;e._rootNodeID?void 0:"production"!==t.env.NODE_ENV?U(!1,"Must be mounted to trap events"):U(!1);var n=H(e);switch(n?void 0:"production"!==t.env.NODE_ENV?U(!1,"trapBubbledEvent(...): Requires node to be rendered."):U(!1),e._tag){case"iframe":case"object":e._wrapperState.listeners=[O.trapBubbledEvent(N.topLevelTypes.topLoad,"load",n)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var r in $)$.hasOwnProperty(r)&&e._wrapperState.listeners.push(O.trapBubbledEvent(N.topLevelTypes[r],$[r],n));break;case"img":e._wrapperState.listeners=[O.trapBubbledEvent(N.topLevelTypes.topError,"error",n),O.trapBubbledEvent(N.topLevelTypes.topLoad,"load",n)];break;case"form":e._wrapperState.listeners=[O.trapBubbledEvent(N.topLevelTypes.topReset,"reset",n),O.trapBubbledEvent(N.topLevelTypes.topSubmit,"submit",n)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[O.trapBubbledEvent(N.topLevelTypes.topInvalid,"invalid",n)]}}function d(){k.postUpdateWrapper(this)}function p(e){ie.call(oe,e)||(re.test(e)?void 0:"production"!==t.env.NODE_ENV?U(!1,"Invalid tag: %s",e):U(!1),oe[e]=!0)}function f(e,t){return e.indexOf("-")>=0||null!=t.is}function h(e){var n=e.type;p(n),this._currentElement=e,this._tag=n.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._nativeNode=null,this._nativeParent=null,this._rootNodeID=null,this._domID=null,this._nativeContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0,"production"!==t.env.NODE_ENV&&(this._ancestorInfo=null)}var v=n(3),m=n(124),g=n(126),y=n(18),E=n(128),b=n(14),_=n(37),N=n(11),w=n(21),C=n(28),O=n(29),T=n(68),D=n(138),P=n(69),S=n(4),A=n(146),M=n(148),k=n(70),I=n(151),R=n(164),x=n(6),V=n(34),U=n(1),L=n(51),B=n(13),F=n(61),j=n(55),W=n(2),q=P,Y=w.deleteListener,H=S.getNodeFromInstance,z=O.listenTo,K=C.registrationNameModules,X={string:!0,number:!0},G=B({style:null}),J=B({__html:null}),Q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},Z={},$={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ee={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},te={listing:!0,pre:!0,textarea:!0},ne=v({menuitem:!0},ee),re=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe={},ie={}.hasOwnProperty,ae=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(e,n,r,o){this._rootNodeID=ae++,this._domID=r._idCounter++,this._nativeParent=n,this._nativeContainerInfo=r;var i=this._currentElement.props;switch(this._tag){case"iframe":case"object":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(c,this);break;case"button":i=D.getNativeProps(this,i,n);break;case"input":A.mountWrapper(this,i,n),i=A.getNativeProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"option":M.mountWrapper(this,i,n),i=M.getNativeProps(this,i);break;case"select":k.mountWrapper(this,i,n),i=k.getNativeProps(this,i),e.getReactMountReady().enqueue(c,this);break;case"textarea":I.mountWrapper(this,i,n),i=I.getNativeProps(this,i),e.getReactMountReady().enqueue(c,this)}a(this,i);var s,u;if(null!=n?(s=n._namespaceURI,u=n._tag):r._tag&&(s=r._namespaceURI,u=r._tag),(null==s||s===E.svg&&"foreignobject"===u)&&(s=E.html),s===E.html&&("svg"===this._tag?s=E.svg:"math"===this._tag&&(s=E.mathml)),this._namespaceURI=s,"production"!==t.env.NODE_ENV){var d;null!=n?d=n._ancestorInfo:r._tag&&(d=r._ancestorInfo),d&&j(this._tag,this,d),this._ancestorInfo=j.updatedAncestorInfo(d,this._tag,this)}var p;if(e.useCreateElement){var f,h=r._ownerDocument;if(s===E.html)if("script"===this._tag){var v=h.createElement("div"),g=this._currentElement.type;v.innerHTML="<"+g+"></"+g+">",f=v.removeChild(v.firstChild)}else f=h.createElement(this._currentElement.type);else f=h.createElementNS(s,this._currentElement.type);S.precacheNode(this,f),this._flags|=q.hasCachedChildNodes,this._nativeParent||_.setAttributeForRoot(f),this._updateDOMProperties(null,i,e);var b=y(f);this._createInitialChildren(e,i,o,b),p=b}else{var N=this._createOpenTagMarkupAndPutListeners(e,i),w=this._createContentMarkup(e,i,o);p=!w&&ee[this._tag]?N+"/>":N+">"+w+"</"+this._currentElement.type+">"}switch(this._tag){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return p},_createOpenTagMarkupAndPutListeners:function(e,n){var r="<"+this._currentElement.type;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];if(null!=i)if(K.hasOwnProperty(o))i&&s(this,o,i,e);else{o===G&&(i&&("production"!==t.env.NODE_ENV&&(this._previousStyle=i),i=this._previousStyleCopy=v({},n.style)),i=g.createMarkupForStyles(i,this));var a=null;null!=this._tag&&f(this._tag,n)?Q.hasOwnProperty(o)||(a=_.createMarkupForCustomAttribute(o,i)):a=_.createMarkupForProperty(o,i),a&&(r+=" "+a)}}return e.renderToStaticMarkup?r:(this._nativeParent||(r+=" "+_.createMarkupForRoot()),r+=" "+_.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=V(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return te[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&y.queueHTML(r,o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)y.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u<s.length;u++)y.queueChild(r,s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,i=this._currentElement.props;switch(this._tag){case"button":o=D.getNativeProps(this,o),i=D.getNativeProps(this,i);break;case"input":A.updateWrapper(this),o=A.getNativeProps(this,o),i=A.getNativeProps(this,i);break;case"option":o=M.getNativeProps(this,o),i=M.getNativeProps(this,i);break;case"select":o=k.getNativeProps(this,o),i=k.getNativeProps(this,i);break;case"textarea":I.updateWrapper(this),o=I.getNativeProps(this,o),i=I.getNativeProps(this,i)}a(this,i),this._updateDOMProperties(o,i,e),this._updateDOMChildren(o,i,e,r),"select"===this._tag&&e.getReactMountReady().enqueue(d,this)},_updateDOMProperties:function(e,n,r){var o,a,u;for(o in e)if(!n.hasOwnProperty(o)&&e.hasOwnProperty(o)&&null!=e[o])if(o===G){var l=this._previousStyleCopy;for(a in l)l.hasOwnProperty(a)&&(u=u||{},u[a]="");this._previousStyleCopy=null}else K.hasOwnProperty(o)?e[o]&&Y(this,o):(b.properties[o]||b.isCustomAttribute(o))&&_.deleteValueForProperty(H(this),o);for(o in n){var c=n[o],d=o===G?this._previousStyleCopy:null!=e?e[o]:void 0;if(n.hasOwnProperty(o)&&c!==d&&(null!=c||null!=d))if(o===G)if(c?("production"!==t.env.NODE_ENV&&(i(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=c),c=this._previousStyleCopy=v({},c)):this._previousStyleCopy=null,d){for(a in d)!d.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(u=u||{},u[a]="");for(a in c)c.hasOwnProperty(a)&&d[a]!==c[a]&&(u=u||{},u[a]=c[a])}else u=c;else if(K.hasOwnProperty(o))c?s(this,o,c,r):d&&Y(this,o);else if(f(this._tag,n))Q.hasOwnProperty(o)||_.setValueForAttribute(H(this),o,c);else if(b.properties[o]||b.isCustomAttribute(o)){var p=H(this);null!=c?_.setValueForProperty(p,o,c):_.deleteValueForProperty(p,o)}}u&&g.setValueForStyles(H(this),u,this)},_updateDOMChildren:function(e,t,n,r){var o=X[typeof e.children]?e.children:null,i=X[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,l=null!=i?null:t.children,c=null!=o||null!=a,d=null!=i||null!=s;null!=u&&null==l?this.updateChildren(null,n,r):c&&!d&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,r)},getNativeNode:function(){return H(this)},unmountComponent:function(e){switch(this._tag){case"iframe":case"object":case"img":case"form":case"video":case"audio":var n=this._wrapperState.listeners;if(n)for(var r=0;r<n.length;r++)n[r].remove();break;case"html":case"head":case"body":"production"!==t.env.NODE_ENV?U(!1,"<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag):U(!1)}this.unmountChildren(e),S.uncacheNode(this),w.deleteAllListeners(this),T.unmountIDFromEnvironment(this._rootNodeID),