!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}n(10);for(var o=n(11),i=r(o),a=document.querySelectorAll(".sb-soundplayer-widget"),s=0,u=a.length;u>s;s++){var l=a[s],c=l.getAttribute("data-url"),d=l.getAttribute("data-layout");i.create(l,{url:c,layout:d})}},function(e,t,n){t.tree=t.scene=t.deku=n(19),"undefined"!=typeof document&&(t.render=n(20)),t.renderString=n(21),t.element=t.createElement=t.dom=n(23)},function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);if(!e)throw new Error("SoundCloud API clientId is required, get it - https://developers.soundcloud.com/");this._events={},this._clientId=e,this._baseUrl="http://api.soundcloud.com",this.playing=!1,this.duration=0,this.audio=document.createElement("audio")}r.prototype.resolve=function(e,t){if(!e)throw new Error("SoundCloud track or playlist url is required");e=this._baseUrl+"/resolve.json?url="+e+"&client_id="+this._clientId,this._jsonp(e,function(e){e.tracks?this._playlist=e:this._track=e,this.duration=e.duration/1e3,t(e)}.bind(this))},r.prototype._jsonp=function(e,t){var n=document.getElementsByTagName("script")[0]||document.head,r=document.createElement("script"),o="jsonp_callback_"+Math.round(1e5*Math.random());window[o]=function(e){r.parentNode&&r.parentNode.removeChild(r),window[o]=function(){},t(e)},r.src=e+(e.indexOf("?")>=0?"&":"?")+"callback="+o,n.parentNode.insertBefore(r,n)},r.prototype.on=function(e,t){this._events[e]=t,this.audio.addEventListener(e,t,!1)},r.prototype.off=function(e,t){this._events[e]=null,this.audio.removeEventListener(e,t)},r.prototype.unbindAll=function(){for(var e in this._events){var t=this._events[e];t&&this.off(e,t)}},r.prototype.preload=function(e){this._track={stream_url:e},this.audio.src=e+"?client_id="+this._clientId},r.prototype.play=function(e){e=e||{};var t;if(e.streamUrl)t=e.streamUrl;else if(this._playlist){var n=this._playlist.tracks.length;if(n){if(this._playlistIndex=e.playlistIndex||0,this._playlistIndex>=n||this._playlistIndex<0)return void(this._playlistIndex=0);t=this._playlist.tracks[this._playlistIndex].stream_url}}else this._track&&(t=this._track.stream_url);if(!t)throw new Error("There is no tracks to play, use `streamUrl` option or `load` method");t+="?client_id="+this._clientId,t!==this.audio.src&&(this.audio.src=t),this.playing=t,this.audio.play()},r.prototype.pause=function(){this.audio.pause(),this.playing=!1},r.prototype.stop=function(){this.audio.pause(),this.audio.currentTime=0,this.playing=!1},r.prototype.next=function(){var e=this._playlist.tracks.length;this._playlistIndex>=e-1||this._playlist&&e&&this.play({playlistIndex:++this._playlistIndex})},r.prototype.previous=function(){this._playlistIndex<=0||this._playlist&&this._playlist.tracks.length&&this.play({playlistIndex:--this._playlistIndex})},r.prototype.seek=function(e){if(!this.audio.readyState)return!1;var t=e.offsetX/e.target.offsetWidth||(e.layerX-e.target.offsetLeft)/e.target.offsetWidth;this.audio.currentTime=t*(this.audio.duration||0)},e.exports=r},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(1),i=r(o),a={onClick:{type:"function",optional:!0}},s={propTypes:a,shouldUpdate:function(){return!1},render:function(e){var t=e.props;return i["default"].dom("svg",{"class":"sb-soundplayer-widget-cover-logo",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",onClick:t.onClick},i["default"].dom("path",{d:"M10.517 3.742c-.323 0-.49.363-.49.582 0 0-.244 3.591-.244 4.641 0 1.602.15 2.621.15 2.621 0 .222.261.401.584.401.321 0 .519-.179.519-.401 0 0 .398-1.038.398-2.639 0-1.837-.153-4.127-.284-4.592-.112-.395-.313-.613-.633-.613zm-1.996.268c-.323 0-.49.363-.49.582 0 0-.244 3.322-.244 4.372 0 1.602.119 2.621.119 2.621 0 .222.26.401.584.401.321 0 .581-.179.581-.401 0 0 .081-1.007.081-2.608 0-1.837-.206-4.386-.206-4.386 0-.218-.104-.581-.425-.581zm-2.021 1.729c-.324 0-.49.362-.49.582 0 0-.272 1.594-.272 2.644 0 1.602.179 2.559.179 2.559 0 .222.229.463.552.463.321 0 .519-.241.519-.463 0 0 .19-.944.19-2.546 0-1.837-.253-2.657-.253-2.657 0-.22-.104-.582-.425-.582zm-2.046-.358c-.323 0-.49.363-.49.582 0 0-.162 1.92-.162 2.97 0 1.602.069 2.496.069 2.496 0 .222.26.557.584.557.321 0 .581-.304.581-.526 0 0 .143-.936.143-2.538 0-1.837-.206-2.96-.206-2.96 0-.218-.198-.581-.519-.581zm-2.169 1.482c-.272 0-.232.218-.232.218v3.982s-.04.335.232.335c.351 0 .716-.832.716-2.348 0-1.245-.436-2.187-.716-2.187zm18.715-.976c-.289 0-.567.042-.832.116-.417-2.266-2.806-3.989-5.263-3.989-1.127 0-2.095.705-2.931 1.316v8.16s0 .484.5.484h8.526c1.655 0 3-1.55 3-3.155 0-1.607-1.346-2.932-3-2.932zm10.17.857c-1.077-.253-1.368-.389-1.368-.815 0-.3.242-.611.97-.611.621 0 1.106.253 1.542.699l.981-.951c-.641-.669-1.417-1.067-2.474-1.067-1.339 0-2.425.757-2.425 1.99 0 1.338.873 1.736 2.124 2.026 1.281.291 1.513.486 1.513.923 0 .514-.379.738-1.184.738-.65 0-1.26-.223-1.736-.777l-.98.873c.514.757 1.504 1.232 2.639 1.232 1.853 0 2.668-.873 2.668-2.163 0-1.477-1.193-1.845-2.27-2.097zm6.803-2.745c-1.853 0-2.949 1.435-2.949 3.502s1.096 3.501 2.949 3.501c1.852 0 2.949-1.434 2.949-3.501s-1.096-3.502-2.949-3.502zm0 5.655c-1.097 0-1.553-.941-1.553-2.153 0-1.213.456-2.153 1.553-2.153 1.096 0 1.551.94 1.551 2.153.001 1.213-.454 2.153-1.551 2.153zm8.939-1.736c0 1.086-.533 1.756-1.396 1.756-.864 0-1.388-.689-1.388-1.775v-3.897h-1.358v3.916c0 1.978 1.106 3.084 2.746 3.084 1.726 0 2.754-1.136 2.754-3.103v-3.897h-1.358v3.916zm8.142-.89l.019 1.485c-.087-.174-.31-.515-.475-.768l-2.703-3.692h-1.362v6.894h1.401v-2.988l-.02-1.484c.088.175.311.514.475.767l2.79 3.705h1.213v-6.894h-1.339v2.975zm5.895-2.923h-2.124v6.791h2.027c1.746 0 3.474-1.01 3.474-3.395 0-2.484-1.437-3.396-3.377-3.396zm-.097 5.472h-.67v-4.152h.719c1.436 0 2.028.688 2.028 2.076 0 1.242-.651 2.076-2.077 2.076zm7.909-4.229c.611 0 1 .271 1.242.737l1.26-.582c-.426-.883-1.202-1.503-2.483-1.503-1.775 0-3.016 1.435-3.016 3.502 0 2.143 1.191 3.501 2.968 3.501 1.232 0 2.047-.572 2.513-1.533l-1.145-.68c-.358.602-.718.864-1.329.864-1.019 0-1.611-.932-1.611-2.153-.001-1.261.583-2.153 1.601-2.153zm5.17-1.192h-1.359v6.791h4.083v-1.338h-2.724v-5.453zm6.396-.157c-1.854 0-2.949 1.435-2.949 3.502s1.095 3.501 2.949 3.501c1.853 0 2.95-1.434 2.95-3.501s-1.097-3.502-2.95-3.502zm0 5.655c-1.097 0-1.553-.941-1.553-2.153 0-1.213.456-2.153 1.553-2.153 1.095 0 1.55.94 1.55 2.153.001 1.213-.454 2.153-1.55 2.153zm8.557-1.736c0 1.086-.532 1.756-1.396 1.756-.864 0-1.388-.689-1.388-1.775v-3.794h-1.358v3.813c0 1.978 1.106 3.084 2.746 3.084 1.726 0 2.755-1.136 2.755-3.103v-3.794h-1.36v3.813zm5.449-3.907h-2.318v6.978h2.211c1.908 0 3.789-1.037 3.789-3.489 0-2.552-1.565-3.489-3.682-3.489zm-.108 5.623h-.729v-4.266h.783c1.565 0 2.21.706 2.21 2.133.001 1.276-.707 2.133-2.264 2.133z"}))}},u={propTypes:a,render:function(e){var t=e.props;return i["default"].dom("svg",{"class":"sb-soundplayer-widget-button-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",onClick:t.onClick},t.children)}},l={propTypes:a,shouldUpdate:function(){return!1},render:function(e){var t=e.props;return i["default"].dom(u,t,i["default"].dom("path",{d:"M0 0 L32 16 L0 32 z"}))}},c={propTypes:a,shouldUpdate:function(){return!1},render:function(e){var t=e.props;return i["default"].dom(u,t,i["default"].dom("path",{d:"M0 0 H12 V32 H0 z M20 0 H32 V32 H20 z"}))}},d={propTypes:{onClick:{type:"function",optional:!0}},shouldUpdate:function(){return!1},render:function(e){var t=e.props;return i["default"].dom(u,t,i["default"].dom("path",{d:"M4 4 L24 14 V4 H28 V28 H24 V18 L4 28 z "}))}},p={propTypes:{onClick:{type:"function",optional:!0}},shouldUpdate:function(){return!1},render:function(e){var t=e.props;return i["default"].dom(u,t,i["default"].dom("path",{d:"M4 4 H8 V14 L28 4 V28 L8 18 V28 H4 z "}))}};t["default"]={SoundCloudLogoSVG:s,PlayIconSVG:l,PauseIconSVG:c,NextIconSVG:d,PrevIconSVG:p},e.exports=t["default"]},function(e,t,n){e.exports={onBlur:"blur",onChange:"change",onClick:"click",onContextMenu:"contextmenu",onCopy:"copy",onCut:"cut",onDoubleClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragEnter:"dragenter",onDragExit:"dragexit",onDragLeave:"dragleave",onDragOver:"dragover",onDragStart:"dragstart",onDrop:"drop",onFocus:"focus",onInput:"input",onKeyDown:"keydown",onKeyPress:"keypress",onKeyUp:"keyup",onMouseDown:"mousedown",onMouseEnter:"mouseenter",onMouseLeave:"mouseleave",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPaste:"paste",onScroll:"scroll",onSubmit:"submit",onTouchCancel:"touchcancel",onTouchEnd:"touchend",onTouchMove:"touchmove",onTouchStart:"touchstart",onWheel:"wheel"}},function(e,t,n){t.defaults=function(e,t){return Object.keys(t).forEach(function(n){"undefined"==typeof e[n]&&(e[n]=t[n])}),e}},function(e,t,n){var r=Object.prototype.toString;e.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n,r,o){return e.call(t,n,r,o)}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}},function(e,t,n){t=e.exports=n(12)(),t.push([e.id,".sb-soundplayer-widget,.sb-soundplayer-widget-cover{border-radius:3px;background-repeat:no-repeat;position:relative;min-height:240px}.sb-soundplayer-widget{color:#fff;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:#f5f5f5;background-image:url(https://w.soundcloud.com/player/assets/images/logo-200x120-177df3dd.png);background-position:center center;background-size:100px 60px;overflow:hidden;box-sizing:border-box}.sb-soundplayer-widget *,.sb-soundplayer-widget :after,.sb-soundplayer-widget :before{box-sizing:inherit;margin:0;padding:0}.sb-soundplayer-widget-track-info{color:#fff;position:relative;z-index:1;text-align:center;padding-top:80px;padding-bottom:60px;text-transform:uppercase;letter-spacing:.1em}.sb-soundplayer-widget-title,.sb-soundplayer-widget-user{margin:5px 0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sb-soundplayer-widget-user{font-size:14px}.sb-soundplayer-widget-title{font-size:20px}.sb-soundplayer-widget-controls{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 10px 15px;position:relative;z-index:1}.sb-soundplayer-widget-progress-container{background-color:#000;background-color:rgba(0,0,0,.25);width:100%;height:8px;overflow:hidden;cursor:pointer;border-radius:3px}.sb-soundplayer-widget-progress-inner{background-color:#fff;height:100%;-webkit-transition:width .2s ease-in;transition:width .2s ease-in}.sb-soundplayer-widget-cover{background-position:center;background-size:cover}.sb-soundplayer-widget-overlay{background-color:#000;background-color:rgba(0,0,0,.3);position:absolute;top:0;left:0;right:0;bottom:0;border-radius:3px}.sb-soundplayer-widget-play{display:inline-block;color:#fff;font-size:20px;text-decoration:none;line-height:1;padding:8px 16px;height:auto;vertical-align:middle;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;margin-right:12px;position:relative;z-index:2;background-color:transparent;-webkit-transition-duration:.1s;transition-duration:.1s;transition-timing-function:ease-out;-webkit-transition-property:box-shadow;transition-property:box-shadow;-webkit-appearance:none;border-radius:3px;cursor:pointer}.sb-soundplayer-widget-play,.sb-soundplayer-widget-play:before{border:1px solid transparent;-webkit-transition-timing-function:ease-out}.sb-soundplayer-widget-play:before{content:'';display:block;background-color:currentcolor;position:absolute;z-index:-1;top:-1px;right:-1px;bottom:-1px;left:-1px;-webkit-transition-duration:.1s;transition-duration:.1s;transition-timing-function:ease-out;-webkit-transition-property:opacity;transition-property:opacity;opacity:0;border-radius:3px}.sb-soundplayer-widget-play:active,.sb-soundplayer-widget-play:hover{box-shadow:none}.sb-soundplayer-widget-play:focus:before,.sb-soundplayer-widget-play:hover:before{opacity:.09375}.sb-soundplayer-widget-play:focus{outline:0;border-color:transparent;box-shadow:0 0 0 2px}.sb-soundplayer-widget-button-icon{width:1em;height:1em;position:relative;vertical-align:middle}.sb-soundplayer-widget-cover-logo{color:#fff;width:100px;height:14px;position:absolute;top:10px;right:10px;z-index:1}.sb-soundplayer-widget-timer{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;color:#fff;font-size:12px;padding:0 3px 0 15px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sb-soundplayer-widget-message{color:#999;font-size:12px;text-align:center;position:absolute;right:0;left:0;bottom:10px}.sb-soundplayer-widget-message a{color:#666}",""])},function(e,t,n){var r=n(9);"string"==typeof r&&(r=[[e.id,r,""]]);n(43)(r,{singleton:!0});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t.clientId||window.sb_soundplayer_client_id;if(!n)return void console.error(["You must provide SoundCloud clientId for SoundPlayer widget","","Example:","","","Register for an app and get clientId at https://developers.soundcloud.com/"].join("\n"));var r=new c["default"](n),o=a["default"].tree(a["default"].dom(u["default"],{url:t.url,soundCloudAudio:r}));"development"===d&&o.option("validateProps",!0),a["default"].render(o,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.create=o;var i=n(1),a=r(i),s=n(13),u=r(s),l=n(2),c=r(l),d="production"},function(e,t,n){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tr&&(r=0),r>100&&(r=100);var a={width:""+r+"%"};return i["default"].dom("div",{"class":"sb-soundplayer-widget-progress-container",onClick:t},i["default"].dom("div",{"class":"sb-soundplayer-widget-progress-inner",style:a}))}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=r(i);t["default"]={defaultProps:{duration:0,currentTime:0},propTypes:{duration:{type:"number"},currentTime:{type:"number"}},render:function(e){var t=e.props;return a["default"].dom("div",{"class":"sb-soundplayer-widget-timer"},o(t.currentTime)," / ",o(t.duration))}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){i.forEach(function(t){t.playing&&t.playing!==e&&t.stop()})}function o(e){for(var t=!1,n=0,r=i.length;r>n;n++){var o=i[n];if(o.playing===e.playing){t=!0;break}}t||i.push(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stopAllOther=r,t.addToStore=o;var i=[]},function(e,t,n){function r(e){return this instanceof r?(this.options={},this.sources={},void(this.element=e)):new r(e)}var o=n(25);e.exports=r,o(r.prototype),r.prototype.use=function(e){return e(this),this},r.prototype.option=function(e,t){return this.options[e]=t,this},r.prototype.set=function(e,t){return this.sources[e]=t,this.emit("source",e,t),this},r.prototype.mount=function(e){return this.element=e,this.emit("mount",e),this},r.prototype.unmount=function(){return this.element?(this.element=null,this.emit("unmount"),this):void 0}},function(e,t,n){function r(e,t,n){function r(){he(),O(),e.off("unmount",f),e.off("mount",c),e.off("source",w)}function c(){T()}function f(){O(),_e=null}function w(e,t){Te[e]&&Te[e].forEach(function(e){e(t)})}function k(e){le(e),pe(e),ze[e.id]={},Me[e.id]=e,se(e),ne("beforeMount",e,[e.context]),ne("beforeRender",e,[e.context]);var t=C(e),n=I(e.id,"0",t);return e.virtualElement=t,e.nativeElement=n,je.push(e.id),n}function _(e){var t=Me[e];if(t){ne("beforeUnmount",t,[t.context,t.nativeElement]),z(e),ge(e);var n=Ne[e].entities;delete n[e],delete Ne[e],delete Me[e],delete ze[e]}}function C(e){var t=e.component;if(!t.render)throw new Error("Component needs a render function");var n=t.render(e.context,E(e));if(!n)throw new Error("Render function must return an element.");return n}function E(e){return function(t){oe(e,t)}}function T(){Oe.batching?we||(we=a(N)):ke||N()}function N(){return A(),ke?void(we=a(N)):(ke=!0,Ce?_e!==e.element?(Ce=R(Ee,_e,e.element,Ce),_e=e.element,j(Ee)):j(Ee):(_e=e.element,Ce=I(Ee,"0",_e),t.children.length>0&&console.info("deku: The container element is not empty. These elements will be removed. Read more: http://cl.ly/b0Sr"),t===document.body&&console.warn("deku: Using document.body is allowed but it can cause some issues. Read more: http://cl.ly/b0SC"),te(t),t.appendChild(Ce)),M(),void(ke=!1))}function M(){for(var e;e=je.pop();){var t=Me[e];ne("afterRender",t,[t.context,t.nativeElement]),re("afterMount",t,[t.context,t.nativeElement,E(t)])}}function A(){we&&(a.cancel(we),we=0)}function S(e){var t=Me[e];if(pe(t),!ue(t))return j(e);var n=t.virtualElement,r=t.pendingProps,o=t.pendingState,i=t.context.state,a=t.context.props;ne("beforeUpdate",t,[t.context,r,o]),ne("beforeRender",t,[t.context]),se(t);var s=C(t);return s===n?j(e):(t.nativeElement=R(e,n,s,t.nativeElement),t.virtualElement=s,j(e),ne("afterRender",t,[t.context,t.nativeElement]),void re("afterUpdate",t,[t.context,a,i]))}function j(e){y(ze[e],function(e){S(e)})}function z(e){y(ze[e],function(e){_(e)})}function O(){A(),q(Ee,"0",Ce),Ce=null}function I(e,t,n){switch(n.type){case"text":return L(n);case"element":return P(e,t,n);case"component":return U(e,t,n)}}function L(e){return document.createTextNode(e.data)}function P(e,t,n){var r,o=n.attributes,a=n.children,s=n.tagName;if(Oe.pooling&&i(s)){var u=Z(s);r=Q(u.pop()),r.parentNode&&r.parentNode.removeChild(r)}else r=h.isElement(s)?document.createElementNS(h.namespace,s):document.createElement(s);return y(o,function(n,o){K(e,t,r,o,n)}),r.__entity__=e,r.__path__=t,y(a,function(n,o){var i=I(e,t+"."+o,n);i.parentNode||r.appendChild(i)}),r}function U(e,t,n){var r=new o(n.component,n.props,e);return ze[e][t]=r.id,k(r)}function R(e,t,n,r){return D("0",e,t,n,r)}function D(e,t,n,r,o){if(n.type!==r.type)return $(t,e,o,r);switch(r.type){case"text":return V(n,r,o);case"element":return F(e,t,n,r,o);case"component":return G(e,t,n,r,o)}}function V(e,t,n){return t.data!==e.data&&(n.data=t.data),n}function B(e,t,n,r,o){function i(e,t){return null!=t.key&&(e[t.key]=t,s=!0),e}var a=[],s=!1,u=Array.prototype.slice.apply(o.childNodes),l=b(n.children,i,{}),c=b(r.children,i,{}),d=g({},ze[t]);if(s)y(l,function(n,r){if(null==c[r]){var o=e+"."+n.index;q(t,o,u[n.index])}}),y(c,function(n,r){var o=l[r];if(null!=o){var i=e+"."+o.index;a[n.index]=D(i,t,o,n,u[o.index])}}),y(c,function(n,r){var o=l[r];if(null!=o&&o.index!==n.index){var i=e+"."+n.index,a=e+"."+o.index;y(d,function(e,n){a===n&&(delete ze[t][n],ze[t][i]=e)})}}),y(c,function(n,r){var o=e+"."+n.index;null==l[r]&&(a[n.index]=I(t,o,n))});else for(var p=Math.max(n.children.length,r.children.length),f=0;p>f;f++){var h=n.children[f],v=r.children[f];null==v&&q(t,e+"."+h.index,u[h.index]),null==h&&(a[v.index]=I(t,e+"."+v.index,v)),h&&v&&(a[h.index]=D(e+"."+h.index,t,h,v,u[h.index]))}y(a,function(e,t){var n=o.childNodes[t];e!==n&&(n?o.insertBefore(e,n):o.appendChild(e))})}function H(e,t,n,r,o){var i=t.attributes,a=e.attributes;y(i,function(e,t){!v[t]&&t in a&&a[t]===e||K(r,o,n,t,e)}),y(a,function(e,t){t in i||X(r,o,n,t)})}function G(e,t,n,r,o){if(r.component!==n.component)return $(t,e,o,r);var i=ze[t][e];return i&&ie(i,r.props),o}function F(e,t,n,r,o){return r.tagName!==n.tagName?$(t,e,o,r):(H(n,r,o,t,e),B(e,t,n,r,o),o)}function q(e,t,n){var r=ze[e],o=r[t],a=Se[e]||{},s=[];if(o){var l=Me[o];n=l.nativeElement,_(o),s.push(t)}else{if(!J(n))return n.parentNode.removeChild(n);y(r,function(e,n){(n===t||Y(t,n))&&(_(e),s.push(n))}),y(a,function(n,r){(r===t||Y(t,r))&&ye(e,r)})}y(s,function(t){delete ze[e][t]}),n.parentNode.removeChild(n),Oe.pooling&&u(n,function(e){J(e)&&i(e.tagName)&&Z(e.tagName.toLowerCase()).push(e)})}function $(e,t,n,r){var o=n.parentNode,i=Array.prototype.indexOf.call(o.childNodes,n);q(e,t,n);var a=I(e,t,r),s=o.childNodes[i];return s?o.insertBefore(a,s):o.appendChild(a),"root"!==e&&"0"===t&&W(e,a),a}function W(e,t){var n=Me[e];"root"!==n.ownerId&&ze[n.ownerId][0]===e&&(Me[n.ownerId].nativeElement=t,W(n.ownerId,t))}function K(e,t,n,r,o){if(v[r])return void me(e,t,v[r],o);switch(r){case"checked":case"disabled":case"selected":n[r]=!0;break;case"innerHTML":case"value":n[r]=o;break;case h.isAttribute(r):n.setAttributeNS(h.namespace,r,o);break;default:n.setAttribute(r,o)}}function X(e,t,n,r){if(v[r])return void ye(e,t,v[r]);switch(r){case"checked":case"disabled":case"selected":n[r]=!1;break;case"innerHTML":case"value":n[r]="";break;default:n.removeAttribute(r)}}function Y(e,t){return 0===t.indexOf(e+".")}function J(e){return!!e.tagName}function Z(e){var t=Ae[e];if(!t){var n=h.isElement(e)?{namespace:h.namespace,tagName:e}:{tagName:e};t=Ae[e]=new s(n)}return t}function Q(e){return te(e),ee(e),e}function ee(e){for(var t=e.attributes.length-1;t>=0;t--){var n=e.attributes[t].name;e.removeAttribute(n)}}function te(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ne(e,t,n){return"function"==typeof t.component[e]?t.component[e].apply(null,n):void 0}function re(e,t,n){var r=E(t);n.push(r);var o=ne(e,t,n);o&&oe(t,o)}function oe(e,t){x(t)?t.then(function(t){ae(e,t)}):ae(e,t)}function ie(e,t){var n=Me[e];n.pendingProps=t,n.dirty=!0,T()}function ae(e,t){e.pendingState=g(e.pendingState,t),e.dirty=!0,T()}function se(e){e.context={state:e.pendingState,props:e.pendingProps,id:e.id},e.pendingState=g({},e.context.state),e.pendingProps=g({},e.context.props),be(e.context.props,e.propTypes),e.dirty=!1}function ue(e){if(!e.dirty)return!1;if(!e.component.shouldUpdate)return!0;var t=e.pendingProps,n=e.pendingState,r=e.component.shouldUpdate(e.context,t,n);return r}function le(e){ce(e);var t=e.component;t.registered||(de(e),t.registered=!0)}function ce(e){var t=e.component,n=t.entities=t.entities||{};n[e.id]=e,Ne[e.id]=t}function de(e){var t=Ne[e.id],n=t.sources;if(!n){var r=t.entities,o=t.sourceToPropertyName={};t.sources=n=[];var i=t.propTypes;for(var a in i){var s=i[a];s&&s.source&&(n.push(s.source),o[s.source]=a)}n.forEach(function(e){function t(t){var n=o[e];for(var i in r){var a=r[i],s={};s[n]=t,ie(i,g(a.pendingProps,s))}}Te[e]=Te[e]||[],Te[e].push(t)})}}function pe(t){var n=t.component,r=n.sourceToPropertyName,o=n.sources;o.forEach(function(n){var o=r[n];null==t.pendingProps[o]&&(t.pendingProps[o]=e.sources[n])})}function fe(){y(v,function(e){document.body.addEventListener(e,ve,!0)})}function he(){y(v,function(e){document.body.removeEventListener(e,ve,!0)})}function ve(e){for(var t=e.target,n=e.type;t;){var r=d.get(Se,[t.__entity__,t.__path__,n]);if(r){e.delegateTarget=t,r(e);break}t=t.parentNode}}function me(e,t,n,r){d.set(Se,[e,t,n],function(t){var n=Me[e];if(n){var o=E(n),i=r.call(null,t,n.context,o);i&&oe(n,i)}else r.call(null,t)})}function ye(e,t,n){var r=[e];t&&r.push(t),n&&r.push(n),d.del(Se,r)}function ge(e){d.del(Se,[e])}function be(e,t,n){var r=n||"";Oe.validateProps&&(y(t,function(t,n){if(!t)throw new Error("deku: propTypes should have an options object for each type");var o=r?r+"."+n:n,i=d.get(e,n),a=p(i),s=p(t.type),u=t.optional===!0;if(!u||null!=i){if(!u&&null==i)throw new TypeError("Missing property: "+o);if("object"===s)return void be(i,t.type,o);if("string"===s&&a!==t.type)throw new TypeError("Invalid property type: "+o);if("function"===s&&!t.type(i))throw new TypeError("Invalid property type: "+o);if("array"===s&&t.type.indexOf(a)<0)throw new TypeError("Invalid property type: "+o);if(t.expects&&t.expects.indexOf(i)<0)throw new TypeError("Invalid property value: "+o)}}),y(e,function(e,n){if("children"!==n&&!t[n])throw new Error("Unexpected property: "+n)}))}function xe(){return{entities:Me,pools:Ae,handlers:Se,connections:Te,currentElement:_e,options:Oe,app:e,container:t,children:ze}}var we,ke,_e,Ce,Ee="root",Te={},Ne={},Me={},Ae={},Se={},je=[],ze={};if(ze[Ee]={},!l(t))throw new Error("Container element must be a DOM element");var Oe=m(g({},e.options||{},n||{}),{pooling:!0,batching:!0,validateProps:!1});return fe(),e.on("unmount",f),e.on("mount",c),e.on("source",w),e.element&&N(),{remove:r,inspect:xe}}function o(e,t,n){this.id=c(),this.ownerId=n,this.component=e,this.propTypes=e.propTypes||{},this.context={},this.context.id=this.id,this.context.props=m(t||{},e.defaultProps||{}),this.context.state=this.component.initialState?this.component.initialState(this.context.props):{},this.pendingProps=g({},this.context.props),this.pendingState=g({},this.context.state),this.dirty=!1,this.virtualElement=null,this.nativeElement=null,this.displayName=e.name||"Component"}function i(e){return w.indexOf(e)<0}var a=n(26),s=n(27),u=n(28),l=n(38),c=n(37),d=n(40),p=n(6),f=n(5),h=n(22),v=n(4),m=f.defaults,y=n(32),g=n(33),b=n(36),x=n(39),w=["input","textarea"];e.exports=r},function(e,t,n){function r(e){var t="";for(var n in e)"innerHTML"!==n&&(a[n]||(t+=o(n,e[n])));return t}function o(e,t){return" "+e+'="'+t+'"'}var i=n(5),a=n(4),s=i.defaults;e.exports=function(e){function t(t,r){var o=t.propTypes||{},i=s(r||{},t.defaultProps||{}),a=t.initialState?t.initialState(i):{};for(var u in o){var l=o[u];l.source&&(i[u]=e.sources[l.source])}t.beforeMount&&t.beforeMount({props:i,state:a}),t.beforeRender&&t.beforeRender({props:i,state:a});var c=t.render({props:i,state:a});return n(c,"0")}function n(e,o){switch(e.type){case"text":return e.data;case"element":var i=e.children,a=e.attributes,s=e.tagName,u=a.innerHTML,l="<"+s+r(a)+">";if(u)l+=u;else for(var c=0,d=i.length;d>c;c++)l+=n(i[c],o+"."+c);return l+=""+s+">";case"component":return t(e.component,e.props)}throw new Error("Invalid type")}if(!e.element)throw new Error("No element mounted");return n(e.element,"0")}},function(e,t,n){var r=n(30);t.namespace="http://www.w3.org/2000/svg",t.elements=["circle","defs","ellipse","g","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],t.attributes=["cx","cy","d","dx","dy","fill","fillOpacity","fontFamily","fontSize","fx","fy","gradientTransform","gradientUnits","markerEnd","markerMid","markerStart","offset","opacity","patternContentUnits","patternUnits","points","preserveAspectRatio","r","rx","ry","spreadMethod","stopColor","stopOpacity","stroke","strokeDasharray","strokeLinecap","strokeOpacity","strokeWidth","textAnchor","transform","version","viewBox","x1","x2","x","y1","y2","y"],t.isElement=function(e){return-1!==r(t.elements,e)},t.isAttribute=function(e){return-1!==r(t.attributes,e)}},function(e,t,n){function r(e,t,n){if(!e)throw new Error("deku: Element needs a type. Read more: http://cl.ly/b0KZ");2!==arguments.length||"string"!=typeof t&&!Array.isArray(t)||(n=t,t={}),arguments.length>2&&Array.isArray(arguments[2])===!1&&(n=p(arguments,2)),n=n||[],t=t||{},Array.isArray(n)||(n=[n]),n=f(n,1).reduce(o,[]);var r="key"in t?String(t.key):null;delete t.key;var s;return s="string"==typeof e?new a(e,t,r,n):new i(e,t,r,n),s.index=0,s}function o(e,t){if(null==t)return e;if("string"==typeof t||"number"==typeof t){var n=new s(String(t));n.index=e.length,e.push(n)}else t.index=e.length,e.push(t);return e}function i(e,t,n,r){this.key=n,this.props=t,this.type="component",this.component=e,this.props.children=r||[];
}function a(e,t,n,r){this.type="element",this.attributes=u(t),this.tagName=e,this.children=r||[],this.key=n}function s(e){this.type="text",this.data=String(e)}function u(e){e.style&&(e.style=l(e.style)),e["class"]&&(e["class"]=c(e["class"]));var t={};for(var n in e){var r=e[n];null!=r&&r!==!1&&(t[n]=r)}return t}function l(e){if("string"===d(e))return e;var t="";for(var n in e){var r=e[n];t=t+n+":"+r+";"}return t}function c(e){if("object"===d(e)){var t=[];for(var n in e)e[n]&&t.push(n);e=t}if("array"===d(e)){if(0===e.length)return;e=e.join(" ")}return e}var d=n(6),p=n(41),f=n(24);e.exports=r},function(e,t,n){function r(e,t,n){for(var o=0;o0&&Array.isArray(i)?r(i,t,n-1):t.push(i)}return t}function o(e,t){for(var n=0;nr;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){function r(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-o)),r=setTimeout(e,n);return o=t,r}t=e.exports=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||r;var o=(new Date).getTime(),i=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.clearTimeout;t.cancel=function(e){i.call(window,e)}},function(e,t,n){function r(e){if("object"!=typeof e)throw new Error('Please pass parameters. Example -> new Pool({ tagName: "div" })');if("string"!=typeof e.tagName)throw new Error('Please specify a tagName. Example -> new Pool({ tagName: "div" })');this.storage=[],this.tagName=e.tagName.toLowerCase(),this.namespace=e.namespace}r.prototype.push=function(e){e.tagName.toLowerCase()===this.tagName&&this.storage.push(e)},r.prototype.pop=function(e){return 0===this.storage.length?this.create():this.storage.pop()},r.prototype.create=function(){return this.namespace?document.createElementNS(this.namespace,this.tagName):document.createElement(this.tagName)},r.prototype.allocate=function(e){if(!(this.storage.length>=e))for(var t=e-this.storage.length,n=0;t>n;n++)this.storage.push(this.create())},"undefined"!=typeof e&&"undefined"!=typeof e.exports&&(e.exports=r)},function(e,t,n){function r(e,t){"length"in e||(e=[e]),e=o.call(e);for(;e.length;){var n=e.shift(),r=t(n);if(r)return r;n.childNodes&&n.childNodes.length&&(e=o.call(n.childNodes).concat(e))}}var o=Array.prototype.slice;e.exports=r},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t,n){var o,i=e.length,a=void 0!==n?r(t,n):t;for(o=0;i>o;o++)a(e[o],o,e)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=e.length,o=0;for("number"==typeof n&&(o=n,0>o&&(o+=r,0>o&&(o=0)));r>o;o++)if(e[o]===t)return o;return-1}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t,n,o){var i,a,s=e.length,u=void 0!==o?r(t,o):t;for(void 0===n?(i=1,a=e[0]):(i=0,a=n);s>i;i++)a=u(a,e[i],i,e);return a}},function(e,t,n){"use strict";var r=n(29),o=n(34);e.exports=function(e,t,n){return e instanceof Array?r(e,t,n):o(e,t,n)}},function(e,t,n){"use strict";e.exports=function(e){var t,n,r,o,i,a,s=arguments.length;for(n=1;s>n;n++)for(t=arguments[n],o=Object.keys(t),r=o.length,a=0;r>a;a++)i=o[a],e[i]=t[i];return e}},function(e,t,n){"use strict";var r=n(7);e.exports=function(e,t,n){var o,i,a=Object.keys(e),s=a.length,u=void 0!==n?r(t,n):t;for(i=0;s>i;i++)o=a[i],u(e[o],o,e)}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t,n,o){var i,a,s,u=Object.keys(e),l=u.length,c=void 0!==o?r(t,o):t;for(void 0===n?(i=1,s=e[u[0]]):(i=0,s=n);l>i;i++)a=u[i],s=c(s,e[a],a,e);return s}},function(e,t,n){"use strict";var r=n(31),o=n(35);e.exports=function(e,t,n,i){return e instanceof Array?r(e,t,n,i):o(e,t,n,i)}},function(e,t,n){var r=Date.now()%1e9;e.exports=function(){return(1e9*Math.random()>>>0)+r++}},function(e,t,n){e.exports=function(e){return e&&"object"==typeof e?window&&"object"==typeof window.Node?e instanceof window.Node:"number"==typeof e.nodeType&&"string"==typeof e.nodeName:!1}},function(e,t,n){function r(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=r},function(e,t,n){var r,o,i;!function(n,a){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=a():(o=[],r=a,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(){"use strict";function e(e){if(!e)return!0;if(i(e)&&0===e.length)return!0;for(var t in e)if(d.call(e,t))return!1;return!0}function t(e){return c.call(e)}function n(e){return"number"==typeof e||"[object Number]"===t(e)}function r(e){return"string"==typeof e||"[object String]"===t(e)}function o(e){return"object"==typeof e&&"[object Object]"===t(e)}function i(e){return"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===t(e)}function a(e){return"boolean"==typeof e||"[object Boolean]"===t(e)}function s(e){var t=parseInt(e);return t.toString()===e?t:e}function u(t,o,i,a){if(n(o)&&(o=[o]),e(o))return t;if(r(o))return u(t,o.split(".").map(s),i,a);var l=o[0];if(1===o.length){var c=t[l];return void 0!==c&&a||(t[l]=i),c}return void 0===t[l]&&(n(o[1])?t[l]=[]:t[l]={}),u(t[l],o.slice(1),i,a)}function l(t,o){if(n(o)&&(o=[o]),e(t))return void 0;if(e(o))return t;if(r(o))return l(t,o.split("."));var a=s(o[0]),u=t[a];if(1===o.length)void 0!==u&&(i(t)?t.splice(a,1):delete t[a]);else if(void 0!==t[a])return l(t[a],o.slice(1));return t}var c=Object.prototype.toString,d=Object.prototype.hasOwnProperty,p={};return p.has=function(t,a){if(e(t))return!1;if(n(a)?a=[a]:r(a)&&(a=a.split(".")),e(a)||0===a.length)return!1;for(var s=0;so;o++)if(void 0!==(r=p.get(e,t[o])))return r;return n},p.get=function(t,o,i){if(n(o)&&(o=[o]),e(o))return t;if(e(t))return i;if(r(o))return p.get(t,o.split("."),i);var a=s(o[0]);return 1===o.length?void 0===t[a]?i:t[a]:p.get(t[a],o.slice(1),i)},p.del=function(e,t){return l(e,t)},p})},function(e,t,n){e.exports=t=n(42)},function(e,t,n){e.exports=function(e,t,n){var r=[],o=e.length;if(0===o)return r;var i=0>t?Math.max(0,t+o):t||0;for(void 0!==n&&(o=0>n?n+o:n);o-->i;)r[o-i]=e[o];return r}},function(e,t,n){function r(e,t){for(var n=0;n