From 1baa16f7a6ee679f556896314cb9c5f372fc9089 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 01:46:43 +0100 Subject: encoding list --- public/bundle.js | 78945 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 78937 insertions(+), 8 deletions(-) (limited to 'public/bundle.js') diff --git a/public/bundle.js b/public/bundle.js index 6bc3c13..0cf5e4b 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -1,16 +1,78945 @@ -!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=322)}([function(t,e,n){t.exports=n(312)()},function(t,e,n){"use strict";n.r(e),n.d(e,"h",function(){return s}),n.d(e,"createElement",function(){return s}),n.d(e,"cloneElement",function(){return l}),n.d(e,"Component",function(){return N}),n.d(e,"render",function(){return F}),n.d(e,"rerender",function(){return f}),n.d(e,"options",function(){return i});var i={},r=[],o=[];function s(t,e){var n,s,a,u,l=o;for(u=arguments.length;u-- >2;)r.push(arguments[u]);for(e&&null!=e.children&&(r.length||r.push(e.children),delete e.children);r.length;)if((s=r.pop())&&void 0!==s.pop)for(u=s.length;u--;)r.push(s[u]);else"boolean"==typeof s&&(s=null),(a="function"!=typeof t)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(a=!1)),a&&n?l[l.length-1]+=s:l===o?l=[s]:l.push(s),n=a;var c=new function(){};return c.nodeName=t,c.children=l,c.attributes=null==e?void 0:e,c.key=null==e?void 0:e.key,void 0!==i.vnode&&i.vnode(c),c}function a(t,e){for(var n in e)t[n]=e[n];return t}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function l(t,e){return s(t.nodeName,a(a({},t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function p(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(i.debounceRendering||u)(f)}function f(){var t,e=h;for(h=[];t=e.pop();)t._dirty&&R(t)}function d(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function m(t){var e=a({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var i in n)void 0===e[i]&&(e[i]=n[i]);return e}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n,i,r){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)n&&n(null),i&&i(t);else if("class"!==e||r)if("style"===e){if(i&&"string"!=typeof i&&"string"!=typeof n||(t.style.cssText=i||""),i&&"object"==typeof i){if("string"!=typeof n)for(var o in n)o in i||(t.style[o]="");for(var o in i)t.style[o]="number"==typeof i[o]&&!1===c.test(o)?i[o]+"px":i[o]}}else if("dangerouslySetInnerHTML"===e)i&&(t.innerHTML=i.__html||"");else if("o"==e[0]&&"n"==e[1]){var s=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),i?n||t.addEventListener(e,v,s):t.removeEventListener(e,v,s),(t._listeners||(t._listeners={}))[e]=i}else if("list"!==e&&"type"!==e&&!r&&e in t)!function(t,e,n){try{t[e]=n}catch(t){}}(t,e,null==i?"":i),null!=i&&!1!==i||t.removeAttribute(e);else{var a=r&&e!==(e=e.replace(/^xlink:?/,""));null==i||!1===i?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof i&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),i):t.setAttribute(e,i))}else t.className=i||""}function v(t){return this._listeners[t.type](i.event&&i.event(t)||t)}var g=[],b=0,w=!1,k=!1;function S(){for(var t;t=g.pop();)i.afterMount&&i.afterMount(t),t.componentDidMount&&t.componentDidMount()}function x(t,e,n,i,r,o){b++||(w=null!=r&&void 0!==r.ownerSVGElement,k=null!=t&&!("__preactattr_"in t));var s=T(t,e,n,i,o);return r&&s.parentNode!==r&&r.appendChild(s),--b||(k=!1,o||S()),s}function T(t,e,n,i,r){var o=t,s=w;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||r)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0))),o.__preactattr_=!0,o;var a,u,l=e.nodeName;if("function"==typeof l)return function(t,e,n,i){var r=t&&t._component,o=r,s=t,a=r&&t._componentConstructor===e.nodeName,u=a,l=m(e);for(;r&&!u&&(r=r._parentComponent);)u=r.constructor===e.nodeName;r&&u&&(!i||r._component)?(M(r,l,3,n,i),t=r.base):(o&&!a&&(j(o),t=s=null),r=C(e.nodeName,l,n),t&&!r.nextBase&&(r.nextBase=t,s=null),M(r,l,1,n,i),t=r.base,s&&t!==s&&(s._component=null,O(s,!1)));return t}(t,e,n,i);if(w="svg"===l||"foreignObject"!==l&&w,l=String(l),(!t||!d(t,l))&&(a=l,(u=w?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=u,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),O(t,!0)}var c=o.firstChild,h=o.__preactattr_,p=e.children;if(null==h){h=o.__preactattr_={};for(var f=o.attributes,v=f.length;v--;)h[f[v].name]=f[v].value}return!k&&p&&1===p.length&&"string"==typeof p[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=p[0]&&(c.nodeValue=p[0]):(p&&p.length||null!=c)&&function(t,e,n,i,r){var o,s,a,u,l,c=t.childNodes,h=[],p={},f=0,m=0,_=c.length,v=0,g=e?e.length:0;if(0!==_)for(var b=0;b<_;b++){var w=c[b],k=w.__preactattr_,S=g&&k?w._component?w._component.__key:k.key:null;null!=S?(f++,p[S]=w):(k||(void 0!==w.splitText?!r||w.nodeValue.trim():r))&&(h[v++]=w)}if(0!==g)for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||e+"Subscription",r=function(t){function r(n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.call(this,n,i));return o[e]=n.store,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,t),r.prototype.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.prototype.render=function(){return i.a.only(this.props.children)},r}(i.b);return r.propTypes={store:a.isRequired,children:o.a.element.isRequired},r.childContextTypes=((t={})[e]=a.isRequired,t[n]=s,t),r}var l=u(),c=n(147),h=n.n(c),p=n(65),f=n.n(p);var d=null,m={notify:function(){}};var y=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.store=e,this.parentSub=n,this.onStateChange=i,this.unsubscribe=null,this.listeners=m}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){var t,e;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(t=[],e=[],{clear:function(){e=d,t=d},notify:function(){for(var n=t=e,i=0;i1&&void 0!==arguments[1]?arguments[1]:{},o=r.getDisplayName,u=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,l=r.methodName,c=void 0===l?"connectAdvanced":l,p=r.renderCountProp,d=void 0===p?void 0:p,m=r.shouldHandleStateChanges,w=void 0===m||m,k=r.storeKey,S=void 0===k?"store":k,x=r.withRef,T=void 0!==x&&x,O=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),P=S+"Subscription",A=v++,C=((e={})[S]=a,e[P]=s,e),E=((n={})[P]=s,n);return function(e){f()("function"==typeof e,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",r=u(n),o=_({},O,{getDisplayName:u,methodName:c,renderCountProp:d,shouldHandleStateChanges:w,storeKey:S,withRef:T,displayName:r,wrappedComponentName:n,WrappedComponent:e}),s=function(n){function s(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t,e));return i.version=A,i.state={},i.renderCount=0,i.store=t[S]||e[S],i.propsMode=Boolean(t[S]),i.setWrappedInstance=i.setWrappedInstance.bind(i),f()(i.store,'Could not find "'+S+'" in either the context or props of "'+r+'". Either wrap the root component in a , or explicitly pass "'+S+'" as a prop to "'+r+'".'),i.initSelector(),i.initSubscription(),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,n),s.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[P]=e||this.context[P],t},s.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},s.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},s.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},s.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},s.prototype.getWrappedInstance=function(){return f()(T,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},s.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},s.prototype.initSelector=function(){var e=t(this.store.dispatch,o);this.selector=function(t,e){var n={run:function(i){try{var r=t(e.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},s.prototype.initSubscription=function(){if(w){var t=(this.propsMode?this.props:this.context)[P];this.subscription=new y(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},s.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},s.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},s.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},s.prototype.addExtraProps=function(t){if(!(T||d||this.propsMode&&this.subscription))return t;var e=_({},t);return T&&(e.ref=this.setWrappedInstance),d&&(e[d]=this.renderCount++),this.propsMode&&this.subscription&&(e[P]=this.subscription),e},s.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(i.c)(e,this.addExtraProps(t.props))},s}(i.b);return s.WrappedComponent=e,s.displayName=r,s.childContextTypes=E,s.contextTypes=C,s.propTypes=C,h()(s,e)}}var k=Object.prototype.hasOwnProperty;function S(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function x(t,e){if(S(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var r=0;r=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=n(t,o),a=i(t,o),u=r(t,o);return(o.pure?z:U)(s,a,u,t,o)}var W=Object.assign||function(t){for(var e=1;e=0;i--){var r=e[i](t);if(r)return r}return function(e,i){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function V(t,e){return t===e}var H=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?w:e,i=t.mapStateToPropsFactories,r=void 0===i?D:i,o=t.mapDispatchToPropsFactories,s=void 0===o?L:o,a=t.mergePropsFactories,u=void 0===a?B:a,l=t.selectorFactory,c=void 0===l?Y:l;return function(t,e,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.pure,l=void 0===a||a,h=o.areStatesEqual,p=void 0===h?V:h,f=o.areOwnPropsEqual,d=void 0===f?x:f,m=o.areStatePropsEqual,y=void 0===m?x:m,_=o.areMergedPropsEqual,v=void 0===_?x:_,g=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=G(t,r,"mapStateToProps"),w=G(e,s,"mapDispatchToProps"),k=G(i,u,"mergeProps");return n(c,W({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:b,initMapDispatchToProps:w,initMergeProps:k,pure:l,areStatesEqual:p,areOwnPropsEqual:d,areStatePropsEqual:y,areMergedPropsEqual:v},g))}}();n.d(e,"Provider",function(){return l}),n.d(e,"createProvider",function(){return u}),n.d(e,"connectAdvanced",function(){return w}),n.d(e,"connect",function(){return H})},function(t,e,n){"use strict";n.r(e),n.d(e,"createStore",function(){return u}),n.d(e,"combineReducers",function(){return c}),n.d(e,"bindActionCreators",function(){return p}),n.d(e,"applyMiddleware",function(){return d}),n.d(e,"compose",function(){return f}),n.d(e,"__DO_NOT_USE__ActionTypes",function(){return r});var i=n(89),r={INIT:"@@redux/INIT"+Math.random().toString(36).substring(7).split("").join("."),REPLACE:"@@redux/REPLACE"+Math.random().toString(36).substring(7).split("").join(".")},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(a)throw a;for(var i=!1,r={},o=0;o0;)n[i]=arguments[i+2];if(!A(t))return t;var r=t.attributes||t.props,s=[Object(o.h)(t.nodeName||t.type,E({},r),t.children||r&&r.children),e];return n&&n.length?s.push(n):e&&e.children&&s.push(e.children),P(o.cloneElement.apply(void 0,s))},isValidElement:A,findDOMNode:function(t){return t&&t.base||t},unmountComponentAtNode:function(t){var e=t._preactCompatRendered&&t._preactCompatRendered.base;return!(!e||e.parentNode!==t||(Object(o.render)(Object(o.h)(f),t,e),0))},Component:B,PureComponent:U,unstable_renderSubtreeIntoContainer:function(t,e,n,i){var r=_(Object(o.h)(v,{context:t.context},e),n),s=r._component||r.base;return i&&i.call(s,r),s},__spread:E};e.d=z}).call(this,n(42))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(85);e.default={system:{load_site:"SYSTEM_LOAD_SITE",running_command:"SYSTEM_RUNNING_COMMAND",command_output:"SYSTEM_COMMAND_OUTPUT",relay_connected:"SYSTEM_RELAY_CONNECTED",relay_disconnected:"SYSTEM_RELAY_DISCONNECTED",rpc_connected:"SYSTEM_RPC_CONNECTED",rpc_disconnected:"SYSTEM_RPC_DISCONNECTED",list_directory:"SYSTEM_LIST_DIRECTORY",listing_directory:"SYSTEM_LISTING_DIRECTORY",count_directory:"SYSTEM_COUNT_DIRECTORY",counting_directory:"SYSTEM_COUNTING_DIRECTORY",stdout:"SYSTEM_STDOUT",stderr:"SYSTEM_STDERR",change_language:"SYSTEM_CHANGE_LANGUAGE"},app:{change_tool:"APP_CHANGE_TOOL",load_progress:"APP_LOAD_PROGRESS"},folder:(0,i.crud_type)("folder",[]),file:(0,i.crud_type)("file",[]),task:(0,i.crud_type)("task",["starting_task","stopping_task","task_begin","task_finish","start_queue","stop_queue","starting_queue","stopping_queue","progress","epoch"]),auth:(0,i.crud_type)("auth",["set_token","set_error","set_current_user","logout_user","loading","initialized","set_return_to"]),socket:{connect:"SOCKET_CONNECT",connect_error:"SOCKET_CONNECT_ERROR",reconnect:"SOCKET_RECONNECT",reconnecting:"SOCKET_RECONNECTING",reconnect_error:"SOCKET_RECONNECT_ERROR",reconnect_failed:"SOCKET_RECONNECT_FAILED",disconnect:"SOCKET_DISCONNECT",error:"SOCKET_ERROR",status:"SOCKET_STATUS",load_params:"SOCKET_LOAD_PARAMS",list_checkpoints:"SOCKET_LIST_CHECKPOINTS",list_sequences:"SOCKET_LIST_SEQUENCES",list_epochs:"SOCKET_LIST_EPOCHS"},player:{get_params:"GET_PARAMS",set_param:"SET_PARAM",send_command:"SEND_COMMAND",loading_checkpoints:"LOADING_CHECKPOINTS",loading_checkpoint:"LOADING_CHECKPOINT",list_checkpoints:"LIST_CHECKPOINTS",loading_sequences:"LOADING_SEQUENCES",loading_sequence:"LOADING_SEQUENCE",load_sequence:"LOAD_SEQUENCE",loading_epochs:"LOADING_EPOCHS",load_epoch:"LOAD_EPOCH",set_fps:"SET_FPS",seeking:"SEEKING",pausing:"PAUSING",playing:"PLAYING",current_frame:"CURRENT_FRAME",start_recording:"START_RECORDING",add_record_frame:"ADD_RECORD_FRAME",save_frame:"SAVE_FRAME",saving_video:"SAVING_VIDEO",save_video:"SAVE_VIDEO",set_fullscreen:"SET_FULLSCREEN"},audioPlayer:{play:"AUDIO_PLAY",pause:"AUDIO_PAUSE",resume:"AUDIO_RESUME",enqueue:"AUDIO_ENQUEUE"},dataset:{load:"DATASET_LOAD",set_folder:"DATASET_SET_FOLDER",upload_files:"DATASET_UPLOAD_FILES",file_progress:"DATASET_FILE_PROGRESS",file_uploaded:"DATASET_FILE_UPLOADED",fetch_url:"DATASET_FETCH_URL",fetch_progress:"DATASET_FETCH_PROGRESS",list_epochs:"DATASET_LIST_EPOCHS"},samplernn:{init:"SAMPLERNN_INIT",set_folder:"SAMPLERNN_SET_FOLDER",load_loss:"SAMPLERNN_LOAD_LOSS",load_graph:"SAMPLERNN_LOAD_GRAPH"},biggan:(0,i.with_type)("biggan",["init","set_folder","load_results"]),pix2pix:(0,i.with_type)("pix2pix",["init","set_folder"]),pix2pixhd:(0,i.with_type)("pix2pixhd",["init","set_folder","load_results","load_dataset_count","load_uprez"]),pix2wav:(0,i.with_type)("pix2wav",["init","set_folder"]),wav2pix:(0,i.with_type)("wav2pix",["load","progress","finish","zip","uploading"]),dashboard:(0,i.with_type)("dashboard",["load"]),morph:(0,i.with_type)("morph",["load"])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),r=n(126),o=p(n(19)),s=p(n(37)),a=p(n(81)),u=p(n(135)),l=p(n(62)),c=p(n(51)),h=n(20);function p(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.default=Object.keys(r.actions).map(function(t){return[t,r.actions[t]]}).concat([["live",o],["queue",s],["system",a],["dataset",l],["audioPlayer",c]]).map(function(t){return[t[0],(0,i.bindActionCreators)(t[1],h.store.dispatch)]}).concat([["socket",u]]).reduce(function(t,e){return(t[e[0]]=e[1])&&t},{})},function(t,e,n){"use strict";n.r(e);var i=n(9),r=n.n(i),o=n(5),s=n(0),a=n.n(s),u=n(145),l=n.n(u),c=n(13),h=n.n(c),p=n(12),f=n.n(p),d=Object.assign||function(t){for(var e=1;e may have only one child element"),this.unlisten=i.listen(function(){t.setState({match:t.computeMatch(i.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){h()(this.props.history===t.history,"You cannot change ")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?o.d.Children.only(t):null},e}(o.d.Component);y.propTypes={history:a.a.object.isRequired,children:a.a.node},y.contextTypes={router:a.a.object},y.childContextTypes={router:a.a.object.isRequired};var _=y,v=_;function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var b=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);b.propTypes={basename:a.a.string,forceRefresh:a.a.bool,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var w=b,k=n(144),S=n.n(k);function x(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var T=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(v,{history:this.history,children:this.props.children})},e}(o.d.Component);T.propTypes={basename:a.a.string,getUserConfirmation:a.a.func,hashType:a.a.oneOf(["hashbang","noslash","slash"]),children:a.a.node};var O=T,P=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["replace","to","innerRef"]);f()(this.context.router,"You should not use outside a ");var r=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return o.d.createElement("a",P({},i,{onClick:this.handleClick,href:r,ref:n}))},e}(o.d.Component);E.propTypes={onClick:a.a.func,target:a.a.string,replace:a.a.bool,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired,innerRef:a.a.oneOfType([a.a.string,a.a.func])},E.defaultProps={replace:!1},E.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired,createHref:a.a.func.isRequired}).isRequired}).isRequired};var M=E,R=n(88),j=n(87),N=function(t){var e=t.pathname,n=t.search,i=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r},F=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,i=void 0===n?["/"]:n,o=t.initialIndex,s=void 0===o?0:o,a=t.keyLength,u=void 0===a?6:a,l=q(),c=function(t){B(y,t),y.length=y.entries.length,l.notifyListeners(y.location,y.action)},h=function(){return Math.random().toString(36).substr(2,u)},p=U(s,0,i.length-1),f=i.map(function(t){return L(t,void 0,"string"==typeof t?h():t.key||h())}),d=N,m=function(t){var n=U(y.index+t,0,y.entries.length-1),i=y.entries[n];l.confirmTransitionTo(i,"POP",e,function(t){t?c({action:"POP",location:i,index:n}):c()})},y={length:f.length,action:"POP",location:f[p],index:p,entries:f,createHref:d,push:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"PUSH",e,function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),c({action:"PUSH",location:i,index:e,entries:n})}})},replace:function(t,n){r()(!("object"===(void 0===t?"undefined":I(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=L(t,n,h(),y.location);l.confirmTransitionTo(i,"REPLACE",e,function(t){t&&(y.entries[y.index]=i,c({action:"REPLACE",location:i}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(t){var e=y.index+t;return e>=0&&e0&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return y};function Y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var W=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return o.d.createElement(_,{history:this.history,children:this.props.children})},e}(o.d.Component);W.propTypes={initialEntries:a.a.array,initialIndex:a.a.number,getUserConfirmation:a.a.func,keyLength:a.a.number,children:a.a.node};var G=W,V=n(63),H=n.n(V),Z={},Q=0,K=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof e&&(e={path:e});var i=e,r=i.path,o=i.exact,s=void 0!==o&&o,a=i.strict,u=void 0!==a&&a,l=i.sensitive,c=void 0!==l&&l;if(null==r)return n;var h=function(t,e){var n=""+e.end+e.strict+e.sensitive,i=Z[n]||(Z[n]={});if(i[t])return i[t];var r=[],o={re:H()(t,r,e),keys:r};return Q<1e4&&(i[t]=o,Q++),o}(r,{end:s,strict:u,sensitive:c}),p=h.re,f=h.keys,d=p.exec(t);if(!d)return null;var m=d[0],y=d.slice(1),_=t===m;return s&&!_?null:{path:r,url:"/"===r&&""===m?"/":m,isExact:_,params:f.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}},$=Object.assign||function(t){for(var e=1;e or withRouter() outside a ");var u=e.route,l=(i||u.location).pathname;return K(l,{path:r,strict:o,exact:s,sensitive:a},u.match)},e.prototype.componentWillMount=function(){h()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),h()(!(this.props.component&&this.props.children&&!J(this.props.children)),"You should not use and in the same route; will be ignored"),h()(!(this.props.render&&this.props.children&&!J(this.props.children)),"You should not use and in the same route; will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){h()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,i=e.component,r=e.render,s=this.context.router,a=s.history,u=s.route,l=s.staticContext,c={match:t,location:this.props.location||u.location,history:a,staticContext:l};return i?t?o.d.createElement(i,c):null:r?t?r(c):null:"function"==typeof n?n(c):n&&!J(n)?o.d.Children.only(n):null},e}(o.d.Component);tt.propTypes={computedMatch:a.a.object,path:a.a.string,exact:a.a.bool,strict:a.a.bool,sensitive:a.a.bool,component:a.a.func,render:a.a.func,children:a.a.oneOfType([a.a.func,a.a.node]),location:a.a.object},tt.contextTypes={router:a.a.shape({history:a.a.object.isRequired,route:a.a.object.isRequired,staticContext:a.a.object})},tt.childContextTypes={router:a.a.object.isRequired};var et=tt,nt=et,it=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","ariaCurrent"]);return o.d.createElement(nt,{path:"object"===(void 0===e?"undefined":rt(e))?e.pathname:e,exact:n,strict:i,location:r,children:function(t){var n=t.location,i=t.match,r=!!(c?c(i,n):i);return o.d.createElement(M,it({to:e,className:r?[a,s].filter(function(t){return t}).join(" "):a,style:r?it({},l,u):l,"aria-current":r&&h},p))}})};ot.propTypes={to:M.propTypes.to,exact:a.a.bool,strict:a.a.bool,location:a.a.object,activeClassName:a.a.string,className:a.a.string,activeStyle:a.a.object,style:a.a.object,isActive:a.a.func,ariaCurrent:a.a.oneOf(["page","step","location","true"])},ot.defaultProps={activeClassName:"active",ariaCurrent:"true"};var st=ot;var at=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(o.d.Component);at.propTypes={when:a.a.bool,message:a.a.oneOfType([a.a.func,a.a.string]).isRequired},at.defaultProps={when:!0},at.contextTypes={router:a.a.shape({history:a.a.shape({block:a.a.func.isRequired}).isRequired}).isRequired};var ut=at,lt={},ct=0,ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){var e=t,n=lt[e]||(lt[e]={});if(n[t])return n[t];var i=H.a.compile(t);return ct<1e4&&(n[t]=i,ct++),i}(t)(e,{pretty:!0})},pt=Object.assign||function(t){for(var e=1;e outside a "),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=L(t.to),n=L(this.props.to);D(e,n)?h()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.computeTo=function(t){var e=t.computedMatch,n=t.to;return e?"string"==typeof n?ht(n,e.params):pt({},n,{pathname:ht(n.pathname,e.params)}):n},e.prototype.perform=function(){var t=this.context.router.history,e=this.props.push,n=this.computeTo(this.props);e?t.push(n):t.replace(n)},e.prototype.render=function(){return null},e}(o.d.Component);ft.propTypes={computedMatch:a.a.object,push:a.a.bool,from:a.a.string,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired},ft.defaultProps={push:!1},ft.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired}).isRequired,staticContext:a.a.object}).isRequired};var dt=ft,mt=Object.assign||function(t){for(var e=1;e",t)}},wt=function(){},kt=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),s=0;s ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=_t(t);return 0!==e.pathname.indexOf(n)?e:mt({},e,{pathname:e.pathname.substr(n.length)})}(e,L(n)),push:this.handlePush,replace:this.handleReplace,go:bt("go"),goBack:bt("goBack"),goForward:bt("goForward"),listen:this.handleListen,block:this.handleBlock};return o.d.createElement(_,mt({},i,{history:r}))},e}(o.d.Component);kt.propTypes={basename:a.a.string,context:a.a.object.isRequired,location:a.a.oneOfType([a.a.string,a.a.object])},kt.defaultProps={basename:"",location:"/"},kt.childContextTypes={router:a.a.object.isRequired};var St=kt;var xt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentWillMount=function(){f()(this.context.router,"You should not use outside a ")},e.prototype.componentWillReceiveProps=function(t){h()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),h()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,i=void 0,r=void 0;return o.d.Children.forEach(e,function(e){if(null==i&&o.d.isValidElement(e)){var s=e.props,a=s.path,u=s.exact,l=s.strict,c=s.sensitive,h=s.from,p=a||h;r=e,i=K(n.pathname,{path:p,exact:u,strict:l,sensitive:c},t.match)}}),i?o.d.cloneElement(r,{location:n,computedMatch:i}):null},e}(o.d.Component);xt.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},xt.propTypes={children:a.a.node,location:a.a.object};var Tt=xt,Ot=K,Pt=n(143),At=n.n(Pt),Ct=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["wrappedComponentRef"]);return o.d.createElement(et,{children:function(e){return o.d.createElement(t,Ct({},i,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.a.func},At()(e,t)};n.d(e,"BrowserRouter",function(){return w}),n.d(e,"HashRouter",function(){return O}),n.d(e,"Link",function(){return M}),n.d(e,"MemoryRouter",function(){return G}),n.d(e,"NavLink",function(){return st}),n.d(e,"Prompt",function(){return ut}),n.d(e,"Redirect",function(){return dt}),n.d(e,"Route",function(){return nt}),n.d(e,"Router",function(){return v}),n.d(e,"StaticRouter",function(){return St}),n.d(e,"Switch",function(){return Tt}),n.d(e,"matchPath",function(){return Ot}),n.d(e,"withRouter",function(){return Et})},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var i=n(24),r=n(113),o=n(56),s=n(206),a=n(44);function u(t){return t}function l(t,e){for(var n=0;n1;)try{return c.stringifyByChunk(t,i,n)}catch(t){n=Math.floor(n/2)}return c.stringifyByChar(t)}function p(t,e){for(var n=0;na)&&void 0===t.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=m,r=p;var _=(1e4*(268435455&(d+=122192928e5))+m)%4294967296;c[l++]=_>>>24&255,c[l++]=_>>>16&255,c[l++]=_>>>8&255,c[l++]=255&_;var v=d/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=p>>>8|128,c[l++]=255&p;for(var g=0;g<6;++g)c[l+g]=h[g];return e||s(c)}},function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n "+t:t}},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.progress;return(0,r.h)("div",{className:"loading"},"Loading",(0,r.h)("br",null),e&&(0,r.h)(s.default,{progress:e}))};var i,r=n(1),o=n(123),s=(i=o)&&i.__esModule?i:{default:i}},function(t,e,n){t.exports=n(317)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.play=e.pause=e.seek=e.load_epoch=e.load_sequence=e.list_sequences=e.list_epochs=e.list_checkpoints=e.set_fullscreen=e.send_command=e.set_param=e.get_params=void 0;var i=s(n(14)),r=s(n(6)),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(39));function s(t){return t&&t.__esModule?t:{default:t}}e.get_params=function(){return i.default.live.get_params(),{type:r.default.player.get_params}},e.set_param=function(t,e){return console.log("set param",t,e),i.default.live.set_param(t,e),{type:r.default.player.set_param,key:t,value:e}},e.send_command=function(t,e){return i.default.live.send_command(t,e),{type:r.default.player.send_command}},e.set_fullscreen=function(t){return{type:r.default.player.set_fullscreen,value:t}},e.list_checkpoints=function(t){return i.default.live.list_checkpoints(t),{type:r.default.player.loading_checkpoints}},e.list_epochs=function(t,e){return i.default.live.list_epochs(t,e),{type:r.default.player.loading_epochs}},e.list_sequences=function(t){return i.default.live.list_sequences(t),{type:r.default.player.loading_sequences}},e.load_sequence=function(t){return i.default.live.load_sequence(t),{type:r.default.player.loading_sequence,sequence_name:t}},e.load_epoch=function(t,e){return i.default.live.load_epoch(t,e),{type:r.default.player.loading_checkpoint,checkpoint_name:t,epoch:e}},e.seek=function(t){return i.default.live.seek(t),{type:r.default.player.seeking}},e.pause=function t(e){return i.default.live.pause(t),o.toggleFPS(!1),{type:r.default.player.pausing}},e.play=function(t){return i.default.live.play(),o.toggleFPS(!0),{type:r.default.player.playing}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispatch=e.store=e.history=void 0;var i=n(3),r=n(307),o=m(n(304)),s=m(n(303)),a=m(n(296)),u=m(n(295)),l=m(n(291)),c=m(n(287)),h=m(n(284)),p=m(n(283)),f=m(n(282)),d=n(281);function m(t){return t&&t.__esModule?t:{default:t}}var y=(0,i.combineReducers)({router:r.routerReducer,auth:a.default,live:u.default,queue:l.default,system:c.default,upload:h.default,dashboard:p.default,audioPlayer:f.default,module:d.moduleReducer}),_=e.history=(0,s.default)(),v=e.store=(0,i.createStore)(y,(0,i.compose)((0,i.applyMiddleware)(o.default,(0,r.routerMiddleware)(_))));e.dispatch=v.dispatch},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileRow=e.FileList=void 0;var i=n(1),r=(n(3),n(2),n(8),s(n(29))),o=s(n(4));function s(t){return t&&t.__esModule?t:{default:t}}var a=o.default.fieldSet(new Set(["name","date","size"])),u=(e.FileList=function(t){var e=t.files,n=t.fields,r=(t.sort,t.title),s=t.linkFiles,l=t.onClick,c=t.onClickParent,h=t.onDelete,p=t.groupDirectories,f=t.parentDirectory,d=t.orderBy,m=void 0===d?"name asc":d,y=t.className,_=void 0===y?"":y,v=t.fileListClassName,g=void 0===v?"filelist":v,b=t.rowClassName,w=void 0===b?"row file":b,k=t.options,S=o.default.sort.orderByFn(m),x=S.mapFn,T=S.sortFn,O=(e||[]).filter(function(t){return!!t}).map(x).sort(T);if(p){var P=O.reduce(function(t,e){return t[e[1].dir].push(e),t},{true:[],false:[]});O=P.true.concat(P.false)}var A=O.map(function(t){return(0,i.h)(u,{file:t[1],fields:a(n),className:w,linkFiles:s,onDelete:h,onClick:l,options:k})});return A&&A.length?(0,i.h)("div",{className:"rows "+_},r&&(0,i.h)("div",{className:"row heading"},(0,i.h)("h3",null,r),"}"),(0,i.h)("div",{className:"rows "+g},f&&(0,i.h)("div",{className:w+" parent"},(0,i.h)("div",{className:"filename",title:"Parent Directory"},(0,i.h)("span",{className:"link",onClick:function(t){return c&&c(t)}},(0,i.h)("i",null,"Parent Directory")))),A)):(0,i.h)("div",{className:"rows "+_},(0,i.h)("div",{className:"row heading"},(0,i.h)("h4",{className:"noFiles"},"No files")))},e.FileRow=function(t){var e=t.file,n=t.linkFiles,s=t.onDelete,u=t.onClick,l=t.className,c=void 0===l?"row file":l,h=t.username,p=void 0===h?"":h,f=t.options,d=a(t.fields),m=o.default.hush_size(e.size),y=e.date||e.created_at,_=e.epoch||e.epochs||0,v=e.count||0,g=void 0,b=void 0;return e.name?b=g=e.name:e.url&&(e.opt&&e.opt.type?(g=e.opt.type+": "+e.opt.title,b=e.opt.token):b=g=e.url.replace(/^https?:\/\//,"")),(0,i.h)("div",{className:c,key:b},d.has("name")&&(0,i.h)("div",{className:"filename",title:e.name||e.url},!1===e.persisted?(0,i.h)("span",{className:"unpersisted"},g):n&&e.url?(0,i.h)("a",{target:"_blank",onClick:function(t){t.metaKey||t.ctrlKey||t.altKey||!u||(t.preventDefault(),u&&u(e,t))},href:e.url},g):(0,i.h)("span",{className:"link",onClick:function(t){return u&&u(e,t)}},g)),d.has("age")&&(0,i.h)("div",{className:"age "+o.default.carbon_date(y)},o.default.get_age(y)),d.has("username")&&(0,i.h)("div",{className:"username"},p),d.has("epoch")&&(0,i.h)("div",{className:"epoch "+o.default.hush_null(_)[0]},_>0?"ep. "+_:""),d.has("date")&&(0,i.h)("div",{className:"date "+o.default.carbon_date(y),title:(0,r.default)(y).format("YYYY-MM-DD HH:mm")},(0,r.default)(y).format("YYYY-MM-DD")),d.has("datetime")&&(0,i.h)("div",{className:"datetime"},(0,i.h)("span",{class:"date "+o.default.carbon_date(y)},(0,r.default)(y).format("YYYY-MM-DD")),(0,i.h)("span",{class:"time "+o.default.carbon_time(y)},(0,r.default)(y).format("H:mm"))),d.has("size")&&(0,i.h)("div",{className:"size "+m[0]},m[1]),d.has("count")&&(0,i.h)("div",{className:"count "+o.default.hush_null(v)[0]},v>0?v+" files":""),(d.has("activity")||d.has("module"))&&(0,i.h)("div",{className:"activity"},d.has("activity")&&e.activity,d.has("module")&&e.module),d.has("delete")&&s&&e.id&&(0,i.h)("div",{className:"destroy",onClick:function(t){return s(e)}},"x"),f&&t.options(e))})},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o>>0,i=0;ixt(t)?(o=t+1,s=a-xt(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Yt(t,e,n){var i,r,o=Ut(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Wt(r=t.year()-1,e,n):s>Wt(t.year(),e,n)?(i=s-Wt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Wt(t,e,n){var i=Ut(t,e,n),r=Ut(t+1,e,n);return(xt(t)-i+r)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),D("week",5),D("isoWeek",5),lt("w",$),lt("ww",$,H),lt("W",$),lt("WW",$,H),dt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=k(t)}),Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),D("day",11),D("weekday",11),D("isoWeekday",11),lt("d",$),lt("e",$),lt("E",$),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),dt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),dt(["d","e","E"],function(t,e,n,i){e[i]=k(t)});var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=at,Qt=at,Kt=at;function $t(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],u=[],l=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(i),a.push(r),u.push(o),l.push(i),l.push(r),l.push(o);for(s.sort(t),a.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)a[e]=ht(a[e]),u[e]=ht(u[e]),l[e]=ht(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function te(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Xt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Xt.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),j("hour","h"),D("hour",13),lt("a",te),lt("A",te),lt("H",$),lt("h",$),lt("k",$),lt("HH",$,H),lt("hh",$,H),lt("kk",$,H),lt("hmm",X),lt("hmmss",J),lt("Hmm",X),lt("Hmmss",J),ft(["H","HH"],vt),ft(["k","kk"],function(t,e,n){var i=k(t);e[vt]=24===i?0:i}),ft(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),ft(["h","hh"],function(t,e,n){e[vt]=k(t),f(n).bigHour=!0}),ft("hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i)),f(n).bigHour=!0}),ft("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r)),f(n).bigHour=!0}),ft("Hmm",function(t,e,n){var i=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i))}),ft("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[vt]=k(t.substr(0,i)),e[gt]=k(t.substr(i,2)),e[bt]=k(t.substr(r))});var ee,ne=At("Hours",!0),ie={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:jt,monthsShort:Nt,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Ht,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},re={},oe={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function ae(e){var n=null;if(!re[e]&&void 0!==t&&t&&t.exports)try{n=ee._abbr,function(){var t=new Error('Cannot find module "undefined"');throw t.code="MODULE_NOT_FOUND",t}(),ue(n)}catch(e){}return re[e]}function ue(t,e){var n;return t&&((n=s(e)?ce(t):le(t,e))?ee=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ee._abbr}function le(t,e){if(null!==e){var n,i=ie;if(e.abbr=t,null!=re[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=re[t]._config;else if(null!=e.parentLocale)if(null!=re[e.parentLocale])i=re[e.parentLocale]._config;else{if(null==(n=ae(e.parentLocale)))return oe[e.parentLocale]||(oe[e.parentLocale]=[]),oe[e.parentLocale].push({name:t,config:e}),null;i=n._config}return re[t]=new M(E(i,e)),oe[t]&&oe[t].forEach(function(t){le(t.name,t.config)}),ue(t),re[t]}return delete re[t],null}function ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ee;if(!r(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o=e&&S(r,n,!0)>=e-1)break;e--}o++}return ee}(t)}function he(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||11Mt(n[mt],n[yt])?_t:n[vt]<0||24Wt(n,o,s)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(a=zt(n,i,r,o,s),t._a[mt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=pe(t._a[mt],r[mt]),(t._dayOfYear>xt(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Bt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[vt]&&0===t._a[gt]&&0===t._a[bt]&&0===t._a[wt]&&(t._nextDay=!0,t._a[vt]=0),t._d=(t._useUTC?Bt:function(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return t<100&&0<=t&&isFinite(a.getFullYear())&&a.setFullYear(t),a}).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[vt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}var de=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ve=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ge=/^\/?Date\((\-?\d+)/i;function be(t){var e,n,i,r,o,s,a=t._i,u=de.exec(a)||me.exec(a);if(u){for(f(t).iso=!0,e=0,n=_e.length;en.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ln.isLocal=function(){return!!this.isValid()&&!this._isUTC},ln.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ln.isUtc=Be,ln.isUTC=Be,ln.zoneAbbr=function(){return this._isUTC?"UTC":""},ln.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ln.dates=T("dates accessor is deprecated. Use date instead.",nn),ln.months=T("months accessor is deprecated. Use month instead",Lt),ln.years=T("years accessor is deprecated. Use year instead",Pt),ln.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ln.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(_(t,this),(t=Te(t))._a){var e=t._isUTC?p(t._a):Pe(t._a);this._isDSTShifted=this.isValid()&&0=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;a[254]=a[254]=1;function l(){s.call(this,"utf-8 decode"),this.leftOver=null}function c(){s.call(this,"utf-8 encode")}e.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,u=0;for(o=0;o>>6,e[s++]=128|63&n):n<65536?(e[s++]=224|n>>>12,e[s++]=128|n>>>6&63,e[s++]=128|63&n):(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63,e[s++]=128|n>>>6&63,e[s++]=128|63&n);return e}(t)},e.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,u=new Array(2*s);for(n=0,e=0;e4)u[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&e1?u[n++]=65533:r<65536?u[n++]=r:(r-=65536,u[n++]=55296|r>>10&1023,u[n++]=56320|1023&r)}return u.length!==n&&(u.subarray?u=u.subarray(0,n):u.length=n),i.applyFromCharCode(u)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(l,s),l.prototype.processChunk=function(t){var n=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}(n),u=n;s!==n.length&&(r.uint8array?(u=n.subarray(0,s),this.leftOver=n.subarray(s,n.length)):(u=n.slice(0,s),this.leftOver=n.slice(s,n.length))),this.push({data:e.utf8decode(u),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=l,i.inherits(c,s),c.prototype.processChunk=function(t){this.push({data:e.utf8encode(t.data),meta:t.meta})},e.Utf8EncodeWorker=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uprez_task=e.splice_task=e.augment_task=e.live_task=e.train_task=e.fetch_task=void 0;var i=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:1;return function(i){if("PLACEHOLDER"!==(t=t.name||t)){var s={module:o.default.name,activity:"train",dataset:t,epoch:0,epochs:n,opt:{folder_id:e}};if(s.dataset)return console.log(s),r.default.queue.add_task(s);console.error("train task: no dataset specified")}}},e.live_task=function(t,e,n){return function(s){var a={module:o.default.name,activity:"live",dataset:t,checkpoint:e,opt:i({},n,{poll_delay:.01})};return console.log(a),console.log("add live task"),r.default.queue.add_task(a)}},e.augment_task=function(t,e){return function(n){if("PLACEHOLDER"!==t){var s={module:o.default.name,activity:"augment",dataset:t,folder_id:e.folder_id,opt:i({},e)};return console.log(s),console.log("add augment task"),r.default.queue.add_task(s)}}},e.splice_task=function(t){return function(e){var n={module:o.default.name,activity:"splice",dataset:t.title,folder_id:t.folder_id,epochs:1,opt:i({},t)};return console.log(n),console.log("add splice task"),r.default.queue.add_task(n)}},e.uprez_task=function(t){return function(e){var n={module:o.default.name,activity:"uprez",dataset:t.dataset,folder_id:t.folder_id,opt:i({},t)};return console.log(n),console.log("add uprez task"),r.default.queue.add_task(n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count_dataset=e.list_epochs=e.load_uprez=e.load_results=e.load_directories=void 0;var i=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=(l(n(15)),l(n(14)),l(n(6))),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(36)),s=l(n(7)),a=l(n(4)),u=l(n(47));function l(t){return t&&t.__esModule?t:{default:t}}e.load_directories=function(t){return function(e){var n=u.default.name;a.default.allProgress([o.load(n),s.default.socket.list_directory({module:n,dir:"sequences"}),s.default.socket.list_directory({module:n,dir:"datasets"}),s.default.socket.list_directory({module:n,dir:"checkpoints"})],function(t,n,i){console.log("pix2pixhd load progress",n,i),e({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(s){var a=i(s,4),u=a[0],l=a[1],c=a[2],h=a[3],p=u.folderLookup,f=u.fileLookup,d=u.datasetLookup,m=u.folders,y=u.files,_=(u.unsortedFolder,u.resultsFolder),v=l.filter(function(t){return t.dir});v.forEach(function(t){o.getDataset(n,d,t.name).isBuilt=!0}),c.filter(function(t){return t.dir}).forEach(function(t){o.getDataset(n,d,t.name).hasDataset=!0});var g=h.filter(function(t){return t.dir});g.forEach(function(t){var e=o.getDataset(n,d,t.name);e.hasCheckpoints=!0,e.checkpoints=[t]}),e({type:r.default.dataset.load,data:{module:n,folderLookup:p,fileLookup:f,datasetLookup:d,folders:m,files:y,sequences:v,datasets:c,checkpoints:g,resultsFolder:_}}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}).catch(function(t){console.error(t)}),t&&(console.log("folder id",t),e({type:r.default.dataset.set_folder,data:{folder_id:t,module:n}}))}},e.load_results=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({name:"results"}),s.default.file.index({module:e,generated:1,limit:250}),s.default.socket.list_directory({module:e,dir:"renders"}),s.default.socket.list_sequences({module:e,dir:"results"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,4),o=n[0],s=n[1],a=n[2],u=n[3];t({type:r.default.pix2pixhd.load_results,results:{resultsFolder:o[0],files:s,renders:a,results:u}})})}},e.load_uprez=function(t){return function(t){var e=u.default.name;a.default.allProgress([s.default.folder.index({name:"results"}),s.default.socket.list_sequences({module:e,dir:"results"}),s.default.file.index({module:e,activity:"uprez"})],function(e,n,i){console.log("pix2pixhd load progress",n,i),t({type:r.default.app.load_progress,progress:{i:n,n:i},data:{module:"pix2pixhd"}})}).then(function(e){var n=i(e,3),o=n[0],s=n[1],a=n[2];t({type:r.default.pix2pixhd.load_uprez,uprez:{resultsFolder:o[0],results:s,files:a}})})}};var c=new RegExp("_net_G.pth$");e.list_epochs=function(t){return function(e){var n=u.default.name;s.default.socket.list_directory({module:n,dir:"checkpoints/"+t}).then(function(t){var i=t.map(function(t){return t.name.match(c)?t.name.replace(c,""):null}).filter(function(t){return!!t});e({type:r.default.dataset.list_epochs,data:{epochs:i,module:n}})})}},e.count_dataset=function(t){return function(e){var n=u.default.name;a.default.allProgress([s.default.socket.list_directory({module:n,dir:"sequences/"+t+"/"}),s.default.socket.count_directory({module:n,dir:"datasets/"+t+"/train_A/"})],function(t,e,n){console.log("pix2pixhd load progress",e,n)}).then(function(n){var o=i(n,2),s=o[0],a=o[1],u=s.length;console.log(u,a),e({type:r.default.pix2pixhd.load_dataset_count,data:{name:t,sequence:s,sequenceCount:u,datasetCount:a}})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(1),o=(n(3),n(2)),s=n(17);(i=s)&&i.__esModule;e.default=(0,o.connect)(function(t){return t.upload},function(t,e){return{}})(function(t){return(0,r.h)("div",{className:"status"},t.status)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];if(!a[t]||e){var n={id:0,module:t,name:"unsorted",files:[],datasets:[]};a[t]=n}return a[t]},l=e.emptyDataset=function(t,e,n,i){(i=i||u(t)).datasets.push(n);var r={name:n,folder_id:i.id,input:[],checkpoints:[],output:[]};return e[n]=r,r},c=e.getDataset=function(t,e,n,i,r){var o=e[n=n.toLowerCase()]||l(t,e,n,i);return r&&(o.date=o.date&&!isNaN(o.date)?Math.max(+new Date(r),o.date):+new Date(r)),o};e.load=function(t){return console.log(t),Promise.all([s.default.folder.index({module:t,limit:0}),s.default.file.index({module:t,limit:0}),s.default.task.index({module:t})]).then(function(e){var n=r(e,3),i=n[0],o=n[1],a=(n[2],{}),l={},h={},p=void 0;l=i.reduce(function(t,e){return t[e.id]={id:e.id,name:e.name,folder:e,files:[],datasets:[]},"results"===e.name&&(p=e),t},{unsorted:u(t,!0)}),p?console.log("got results folder",p):(console.log("creating results folder..."),s.default.folder.create({module:t,name:"results",activity:"results"}).then(function(t){console.log("created folder",t),l.results=t}));var f=o.filter(function(t){return t.generated});return o.filter(function(t){return!t.generated}).reduce(function(e,n){h[n.id]=n,n.name||(n.opt&&n.opt.media&&n.opt.media.token?n.name=n.opt.media.token:n.name=n.url.replace(/^https?:\/\/(www.)?/,"").replace(/[^a-zA-Z0-9_]/g,"_").replace(/_+/g,"_")||"unknown_"+Math.floor(1e3*Math.random()));var i=(n.name||"unsorted").split(".")[0],r=l[n.folder_id]||u(t),o=c(t,e,n.dataset||i,r,n.date||n.created_at);return n.url.match(n.name)&&(n.persisted=!0),o.input.push(n.id),r.files.push(n.id),e},a),f.map(function(e){h[e.id]=e;var n=e.name.split(".")[0].split("-"),i=l[e.folder_id]||u(t);c(t,a,e.dataset||n[0],i,e.date||e.created_at).output.push(e.id),i.files.push(e.id),e.epoch=e.epoch||n[1]}),{folderLookup:l,fileLookup:h,datasetLookup:a,folders:i,files:o,unsortedFolder:l.unsorted,resultsFolder:p}}).catch(function(t){console.error(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stop_queue=e.start_queue=e.add_task=e.stop_task=e.start_task=void 0;var i=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_task(t,e),i({type:o.default.task.starting_task,task:t},e)},e.stop_task=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_task(t,e),i({type:o.default.task.stopping_task,task:t},e)},e.add_task=function(t){return function(e){s.default.task.create(t).then(function(t){r.default.task.add_task(t)})}},e.start_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.start_queue(t,e),i({type:o.default.task.starting_queue,task:t},e)},e.stop_queue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.default.task.stop_queue(t,e),i({type:o.default.task.stopping_queue,task:t},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{loading:!0,progress:null,error:null,data:null,folder_id:0},e=arguments[1];switch(e.type){case s.default.app.load_progress:return r({},t,{progress:e.progress});case s.default.dataset.load:return r({},t,{loading:!1,data:e.data});case s.default.dataset.set_folder:return r({},t,{folder_id:e.data.folder_id});case s.default.folder.create:return r({},t,{loading:!1,data:{folders:t.data.folders.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.id,e.data))}});case s.default.file.create:return function(t,e){if(console.log(e.data),!t.data||!t.data.datasetLookup)return t;var n=void 0,i=void 0,o=void 0,s=void 0,u=void 0;return(u=e.data.dataset?e.data.dataset:e.data.name?e.data.name.split(".")[0]:e.data.url?e.data.url:null)in t.data.datasetLookup?(i=t.data.datasetLookup[u],n=r({},i,{input:e.data.generated?i.input:[e.data.id].concat(i.input),output:e.data.generated?[e.data.id].concat(i.output):i.output})):(console.log(e.data.created_at,e.data.date),n={name:u,date:e.data.created_at||e.data.date,input:e.data.generated?[]:[e.data.id],checkpoints:[],output:e.data.generated?[e.data.id]:[]}),s=t.data.folderLookup[e.data.folder_id],o=r({},s,{datasets:s.datasets.concat([u]),files:s.files.concat([e.data.id])}),r({},t,{loading:!1,data:r({},t.data,{files:t.data.files.concat([e.data.id]),folderLookup:r({},t.data.folderLookup,a({},e.data.folder_id,o)),fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data)),datasetLookup:r({},t.data.datasetLookup,a({},u,n))})})}(t,e);case s.default.file.update:return function(t,e){var n,i=void 0,o=t.data.datasetLookup[e.data.dataset],s=t.data.fileLookup[e.data.id],u=void 0;return s&&e.data.dataset!==s.dataset&&(t.data.datasetLookup[s.dataset]&&(i=t.data.datasetLookup[s.dataset],old_dataset_update=r({},i,{input:i.input.filter(function(t){return t!==e.data.id}),output:i.output.filter(function(t){return t!==e.data.id})})),u=r({},o,{input:e.data.generated?[]:[e.data.id],output:e.data.generated?[e.data.id]:[]})),console.log("old_dataset",old_dataset_update.name),console.log("new_dataset",u.name),r({},t,{loading:!1,data:r({},t.data,{datasetLookup:i?r({},t.data.datasetLookup,(n={},a(n,i.name,old_dataset_update),a(n,o.name,u),n)):u?r({},t.data.datasetLookup,a({},o.name,u)):t.data.datasetLookup,fileLookup:r({},t.data.fileLookup,a({},e.data.id,e.data))})})}(t,e);case s.default.file.destroy:return function(t,e){if(!t.data)return t;var n=r({},t.data.fileLookup),i=r({},t.data.datasetLookup),o=r({},t.data.folderLookup),s=n[e.data.id];if(!s)return t;var a=t.data.datasetLookup[s.dataset],u=void 0;if(a)if((u=r({},a,{input:a.input.filter(function(t){return t!==s.id}),output:a.output.filter(function(t){return t!==s.id})})).input.length||u.checkpoints.length||u.output.length)console.log("dataset just needs sweeping"),i[s.dataset]=u;else{delete i[s.dataset];var l=o[s.folder_id];o[s.folder_id]=r({},l,{datasets:l.datasets.filter(function(t){return t!==s.dataset})})}return delete n[s.id],r({},t,{loading:!1,data:r({},t.data,{folderLookup:o,fileLookup:n,datasetLookup:i})})}(t,e);case s.default.dataset.list_epochs:return r({},t,{epochs:e.data.epochs});default:return t}}},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length&&f())}function f(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(u=l,l=[];++h1)for(var n=1;n 1 && arguments[1] !== undefined ? arguments[1] : []; + return with_type(type, actions.concat(['index_loading', 'index', 'index_error', 'show_loading', 'show', 'show_error', 'create_loading', 'create', 'create_error', 'update_loading', 'update', 'update_error', 'destroy_loading', 'destroy', 'destroy_error', 'upload_loading', 'upload_progress', 'upload_waiting', 'upload_complete', 'upload_error', 'sort'])); +}; + +/***/ }), + +/***/ "./app/client/api/crud.upload.js": +/*!***************************************!*\ + !*** ./app/client/api/crud.upload.js ***! + \***************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.upload_action = undefined; +exports.crud_upload = crud_upload; + +var _crud = __webpack_require__(/*! ./crud.types */ "./app/client/api/crud.types.js"); + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function crud_upload(type, fd, data, dispatch) { + return new Promise(function (resolve, reject) { + var id = data.id; + + Object.keys(data).forEach(function (key) { + if (key !== 'id') { + fd.append(key, data[key]); + } + }); + + console.log('/api/' + type + '/' + id + '/upload/'); + + var xhr = new XMLHttpRequest(); + xhr.upload.addEventListener("progress", uploadProgress, false); + xhr.addEventListener("load", uploadComplete, false); + xhr.addEventListener("error", uploadFailed, false); + xhr.addEventListener("abort", uploadCancelled, false); + xhr.open("POST", '/api/' + type + '/' + id + '/upload/'); + xhr.send(fd); + + dispatch && dispatch({ type: (0, _crud.as_type)(type, 'upload_loading') }); + + var complete = false; + + function uploadProgress(e) { + if (e.lengthComputable) { + var percent = Math.round(e.loaded * 100 / e.total) || 0; + if (percent > 99) { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_waiting'), + percent: percent + }, type, id)); + } else { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_progress'), + percent: percent + }, type, id)); + } + } else { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_error'), + error: 'unable to compute upload progress' + }, type, id)); + } + } + + function uploadComplete(e) { + var parsed = void 0; + try { + parsed = JSON.parse(e.target.responseText); + } catch (e) { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_error'), + error: 'upload failed' + }, type, id)); + reject(e); + return; + } + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_complete'), + data: parsed + }, type, id)); + if (parsed.files && parsed.files.length) { + parsed.files.forEach(function (file) { + console.log(file); + dispatch && dispatch({ + type: (0, _crud.as_type)('file', 'create'), + data: file + }); + }); + } + resolve(parsed); + } + + function uploadFailed(evt) { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_error'), + error: 'upload failed' + }, type, id)); + reject(evt); + } + + function uploadCancelled(evt) { + dispatch && dispatch(_defineProperty({ + type: (0, _crud.as_type)(type, 'upload_error'), + error: 'upload cancelled' + }, type, id)); + reject(evt); + } + }); +} + +var upload_action = exports.upload_action = function upload_action(type, id, fd) { + return function (dispatch) { + return crud_upload(type, id, fd, dispatch); + }; +}; + +/***/ }), + +/***/ "./app/client/api/index.js": +/*!*********************************!*\ + !*** ./app/client/api/index.js ***! + \*********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.actions = exports.parser = exports.util = undefined; + +var _crud = __webpack_require__(/*! ./crud.actions */ "./app/client/api/crud.actions.js"); + +var _util = __webpack_require__(/*! ../util */ "./app/client/util/index.js"); + +var _util2 = _interopRequireDefault(_util); + +var _parser = __webpack_require__(/*! ./parser */ "./app/client/api/parser.js"); + +var parser = _interopRequireWildcard(_parser); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/* +for our crud events, create corresponding actions +the actions fire a 'loading' event, call the underlying api method, and then resolve. +so you can do ... + import { folderActions } from '../../api' + folderActions.index({ module: 'samplernn' }) + folderActions.show(12) + folderActions.create({ module: 'samplernn', name: 'foo' }) + folderActions.update(12, { module: 'pix2pix' }) + folderActions.destroy(12, { confirm: true }) + folderActions.upload(12, form_data) +*/ + +exports.util = _util2.default; +exports.parser = parser; +var actions = exports.actions = ['folder', 'file', 'dataset', 'task', 'user'].reduce(function (a, b) { + return (a[b] = (0, _crud.crud_actions)(b)) && a; +}, {}); + +/***/ }), + +/***/ "./app/client/api/parser.js": +/*!**********************************!*\ + !*** ./app/client/api/parser.js ***! + \**********************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.tumblr = exports.thumbnail = exports.loadImage = exports.tag = exports.parse = exports.lookup = exports.integrations = undefined; + +var _nodeFetch = __webpack_require__(/*! node-fetch */ "./node_modules/node-fetch/browser.js"); + +var _nodeFetch2 = _interopRequireDefault(_nodeFetch); + +var _fetchJsonp = __webpack_require__(/*! fetch-jsonp */ "./node_modules/fetch-jsonp/build/fetch-jsonp.js"); + +var _fetchJsonp2 = _interopRequireDefault(_fetchJsonp); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var integrations = exports.integrations = [{ + type: 'image', + regex: /\.(jpeg|jpg|gif|png|svg)(\?.*)?$/i, + fetch: function fetch(url, done) { + var img = new Image(); + img.onload = function () { + if (!img) return; + var width = img.naturalWidth, + height = img.naturalHeight; + img = null; + done({ + url: url, + type: "image", + token: "", + thumbnail: "", + title: "", + width: width, + height: height + }); + }; + img.src = url; + if (img.complete) { + img.onload(); + } + }, + tag: function tag(media) { + return ''; + } +}, { + type: 'video', + regex: /\.(mp4|webm)(\?.*)?$/i, + fetch: function fetch(url, done) { + var video = document.createElement("video"); + var url_parts = url.replace(/\?.*$/, "").split("/"); + var filename = url_parts[url_parts.length - 1]; + video.addEventListener("loadedmetadata", function () { + var width = video.videoWidth, + height = video.videoHeight; + video = null; + done({ + url: url, + type: "video", + token: url, + thumbnail: "/public/assets/img/video-thumbnail.png", + title: filename, + width: width, + height: height + }); + }); + video.src = url; + video.load(); + }, + tag: function tag(media) { + return '