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

react-dev-os

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dev-os - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

2

dist/bundle.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.devOS=t(require("react")):e.devOS=t(e.react)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=5)}([function(t,r){t.exports=e},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var n={error:function(e,t){if(e instanceof Error)return e;try{return t(e)}catch(e){return e instanceof Error?e:Error(e)}},maybe:function(e,t){return null!=e?t(e):null},sync:function(e,t){return e instanceof Promise?e.then((function(e){return t(e)})):t(e)}};t.default=function(e){var t=function(e,t){return t(e)};return function e(r){return{bind:function(o){return t="string"==typeof o?n[o]:o,e(r)},flow:function(n){return e(t(r,n))},close:function(e){return e?e(r):r}}}(e)}}]).default},function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,"Store",(function(){return v}));var a={isPending:!1,isError:!1,error:null,shouldThrowErrors:!0,shouldTrackAsyncState:!0},s=function(e){return Object.entries(e).reduce((function(e,t){var r=c(t,2),n=r[0],i=r[1],u="function"!=typeof i;return e[n]={configs:u?o({},a,{},i.configs):a,reducer:u?i.reducer:i},e}),{})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((function(e,t){var r=c(t,2),n=(r[0],r[1]),o=n.actions,i=void 0===o?{}:o,u=n.name,a=n.state,l=void 0===a?null:a;return e[u]={actions:s(i),state:l},e}),{})};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var v=function(){function e(t){var r=t.name,n=void 0===r?"":r,o=t.services,i=void 0===o?{}:o,c=t.types;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastUid=0,this.name=n,this.services=i,this.subscribers={},this.types=l(c),this._typeConfigs=c}var t,r;return t=e,(r=[{key:"dispatch",value:function(e,t){var r=y(this._tokenizeAction(e),2),n=r[0],o=r[1],i=this.types[n],c=i.actions[o];return this._setState({typeName:n})(c.reducer({prevState:i.state,services:this.services},t)),this.types[n].state}},{key:"dispatchAsync",value:function(e,t){var r=y(this._tokenizeAction(e),2),n=r[0],o=r[1],i=this.types[n],c=i.actions[o],u=c.configs.shouldTrackAsyncState,a=this._setConfigs({actionName:o,typeName:n}),s=this._setState({typeName:n});return u&&a({isPending:!0,isError:!1,error:null}),Promise.resolve(c.reducer({prevState:i.state,services:this.services},t)).then((function(e){return u&&a({isPending:!1},!1),s(e),e})).catch((function(e){return u&&a({isPending:!1,isError:!0,error:e}),u?c.configs.shouldThrowErrors&&Promise.reject(e):Promise.reject(e)}))}},{key:"getError",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.error}},{key:"getState",value:function(e){return e?this.types[e].state:Object.entries(this.types).reduce((function(e,t){var r=y(t,2),n=r[0],o=r[1].state;return e[n]=o,e}),{})}},{key:"isError",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.isError}},{key:"isPending",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.isPending}},{key:"subscribe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r="uid_".concat(++this.lastUid);return this.subscribers[r]=t,t(this),{onNotify:t,token:r,unsubscribe:function(){return e._unsubscribe(r)}}}},{key:"_notify",value:function(){var e=this;Object.values(this.subscribers).forEach((function(t){return t(e)}))}},{key:"reset",value:function(){this.lastUid=0,this.subscribers={},this.types=l(this._typeConfigs)}},{key:"_setConfigs",value:function(e){var t=this,r=e.actionName,n=e.typeName;return function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.types[n].actions[r].configs;return t.types[n].actions[r].configs=p({},i,{},e),o&&t._notify()}}},{key:"_setState",value:function(e){var t=this,r=e.typeName;return function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.types[r].state=e,n&&t._notify()}}},{key:"_tokenizeAction",value:function(e){var t=y(e.split("."),1)[0];return[t,e.slice(t.length+1)]}},{key:"_unsubscribe",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;delete this.subscribers[e]}}])&&O(t.prototype,r),e}()}])},function(e,t){},function(e,t){},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=function(e){return{height:"5px",width:"5px",cursor:e}};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=function(e){var t=e.cursor,r=e.onResize,c=e.onResizeEnd,a=e.onResizeStart,s=e.style,l=Object(n.useRef)(!1).current,f=function e(t){document.body.style.cursor="auto",document.body.style.userSelect="",window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",e),l&&(l=!1,c(t))},p=function(e){l&&(e.stopImmediatePropagation(),requestAnimationFrame((function(){return r(e)})))};return o.a.createElement("div",{style:u(u({},i(t)),s),draggable:!1,onMouseDown:function(e){document.body.style.cursor=t,document.body.style.userSelect="none",l=!0,a(e),window.addEventListener("mousemove",p),window.addEventListener("mouseup",f)}})};s.defaultProps={cursor:"nwse-resize",onResize:function(){},onResizeEnd:function(){},onResizeStart:function(){},style:{}};var l=s,f={top:{position:"absolute",top:"-2px",left:"0px",width:"100%"},left:{position:"absolute",top:"0px",left:"-2px",height:"100%"},right:{position:"absolute",top:"0px",right:"-2px",height:"100%"},bottom:{position:"absolute",bottom:"-2px",left:"0px",width:"100%"},topLeft:{position:"absolute",top:"-2px",left:"-2px",height:"10px",width:"10px"},topRight:{position:"absolute",top:"-2px",right:"-2px",height:"10px",width:"10px"},bottomLeft:{position:"absolute",bottom:"-2px",left:"-2px",height:"10px",width:"10px"},bottomRight:{position:"absolute",bottom:"-2px",right:"-2px",height:"10px",width:"10px"}},p=function(e){var t=e.onResize,r=e.onResizeEnd,i=e.onResizeStart;return o.a.createElement(n.Fragment,null,o.a.createElement(l,{style:f.top,cursor:"ns-resize",onResize:function(e){return t(e,"top")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.left,cursor:"ew-resize",onResize:function(e){return t(e,"left")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.right,cursor:"ew-resize",onResize:function(e){return t(e,"right")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottom,cursor:"ns-resize",onResize:function(e){return t(e,"bottom")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.topLeft,cursor:"nwse-resize",onResize:function(e){return t(e,"topLeft")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.topRight,cursor:"nesw-resize",onResize:function(e){return t(e,"topRight")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottomLeft,cursor:"nesw-resize",onResize:function(e){return t(e,"bottomLeft")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottomRight,cursor:"nwse-resize",onResize:function(e){return t(e,"bottomRight")},onResizeEnd:r,onResizeStart:i}))};p.defaultProps={onResize:function(){},onResizeEnd:function(){},onResiseStart:function(){}};var b=p,y={bottom:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.height+r.movementY;return{width:t.width,height:o>n.height?o:t.height,top:t.top,left:t.left}},bottomLeft:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX,i=t.height+r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:t.top,left:o>n.width?t.left+r.movementX:t.left}},bottomRight:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX,i=t.height+r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:t.top,left:t.left}},left:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX;return{width:o>n.width?o:t.width,height:t.height,top:t.top,left:o>n.width?t.left+r.movementX:t.left}},right:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX;return{width:o>n.width?o:t.width,height:t.height,top:t.top,left:t.left}},top:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.height-r.movementY;return{width:t.width,height:o>n.height?o:t.height,top:o>n.height?t.top+r.movementY:t.top,left:t.left}},topLeft:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX,i=t.height-r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:i>n.height?t.top+r.movementY:t.top,left:o>n.width?t.left+r.movementX:t.left}},topRight:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX,i=t.height-r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:i>n.height?t.top+r.movementY:t.top,left:t.left}}},d=function(e){var t=e.elem,r=e.event,n=e.handleType,o=e.minSize;return t?y[n]({elem:t.getBoundingClientRect(),event:r,minSize:o}):{width:0,height:0,top:0,left:0}},O=function(e){var t=e.children,r=e.isActive,i=e.minHeight,c=e.minWidth,u=e.onResize,a=e.onResizeEnd,s=e.onResizeStart,l=e.style,f=Object(n.useRef)(null);return o.a.createElement("div",{style:l,ref:f},t,r&&o.a.createElement(b,{onResize:function(e,t){return u(d({elem:f.current,event:e,handleType:t,minSize:{height:i,width:c}}),e)},onResizeEnd:a,onResizeStart:s}))};O.defaultProps={children:null,isActive:!0,minHeight:1,minWidth:1,onResize:function(){},onResizeEnd:function(){},onResizeStart:function(){},style:{}};var v=O,g=function(e){var t=e.children,r=e.style,n=e.title;return o.a.createElement("div",{style:r,title:n},t)};g.defaultProps={children:null,style:{},title:null};var h=g,m=function(e){return o.a.createElement("div",e)};function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var w=o.a.forwardRef((function(e,t){return o.a.createElement("div",j({},e,{ref:t}))}));function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k={actions:{close:function(e){return x(x({},e.prevState),{},{isOpen:!1})},open:function(e){return D(D({},e.prevState),{},{isOpen:!0})},toggle:function(e){var t=e.prevState;return z(z({},t),{},{isOpen:!t.isOpen})}},name:"toolBrowser",state:{isOpen:!1}};function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M={actions:{updateTheme:function(e,t){var r=e.prevState,n=W(W({},r.theme),t);return W(W({},r),{},{theme:n})}},name:"ui",state:{theme:{colors:{primaryColor:null}}}};function T(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $={actions:{add:function(e,t){var r=e.prevState,n=G(G({},r.byId),{},L({},t.id,G({},t))),o=[].concat(T(r.ids),[t.id]);return G(G({},r),{},{byId:n,ids:o})},focus:function(e,t){var r=e.prevState,n=_({},r.byId),o=r.focusedId,i=n[o],c=_({},n),u=r.maxRenderIndex+1,a=n[t];return i&&(c[o]=_(_({},i),{},{isFocused:!1})),c[t]=_(_({},a),{},{isFocused:!0,renderIndex:u}),_(_({},r),{},{byId:c,focusedId:t,maxRenderIndex:u})},remove:function(e,t){var r=e.prevState,n=r.byId,o=X(r.ids).filter((function(e){return e!==t})),i=Object.values(n).reduce((function(e,r){return r.id!==t&&(e[r.id]=r),e}),{});return N(N({},r),{},{byId:i,ids:o})},update:function(e,t){var r=e.prevState,n=r.byId,o=n[t.id],i=Z({},n);return i[o.id]=Z(Z({},o),t),Z(Z({},r),{},{byId:i})}},name:"uiWindows",state:{byId:{},focusedId:null,ids:[],maxRenderIndex:0}},ee=new(r(2).Store)({name:"dev-tools",types:{toolBrowser:k,ui:M,uiWindows:$}});var te=function(e,t){Object(n.useEffect)((function(){return window.addEventListener(e,t),function(){return window.removeEventListener(e,t)}}),[e,t])};function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var oe,ie=(oe=ee,function(e,t){var r=re(Object(n.useState)(void 0===t?e(oe):t),2),o=r[0],i=r[1];return Object(n.useEffect)((function(){var t=!1,r=oe.subscribe((function(r){!t&&i(e(r))}));return function(){t=!0,r.unsubscribe()}}),[]),o});function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.events,r=void 0===t?{}:t;return ue(ue({isOpaque:!0,type:"",title:"",component:function(){return null},position:{x:24,y:24},size:{width:300,height:200}},e),{},{events:ue({onMove:function(){},onResize:function(){}},r),id:se+=1,isFocused:!1,renderIndex:0})},fe=r(1),pe=r.n(fe);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Oe=function(e){var t={x:e.position.x,y:e.position.y<0?0:e.position.y};return ye(ye({},e),{},{position:t})},ve=function(e){var t=window.innerHeight-24,r={x:e.position.x,y:e.position.y>t?t:e.position.y};return ye(ye({},e),{},{position:r})},ge=function(e){var t=-(e.size.width-24),r={x:e.position.x<t?t:e.position.x,y:e.position.y};return ye(ye({},e),{},{position:r})},he=function(e){var t=window.innerWidth-24,r={x:e.position.x>t?t:e.position.x,y:e.position.y};return ye(ye({},e),{},{position:r})};function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pe=function(e){var t={x:e.position.x,y:e.position.y<0?0:e.position.y};return je(je({},e),{},{position:t})},xe=function(e){var t=window.innerHeight-24,r={x:e.position.x,y:e.position.y>t?t:e.position.y};return je(je({},e),{},{position:r})},Se=function(e){var t=-(e.size.width-24),r={x:e.position.x<t?t:e.position.x,y:e.position.y};return je(je({},e),{},{position:r})},Ee=function(e){var t=window.innerWidth-24,r={x:e.position.x>t?t:e.position.x,y:e.position.y};return je(je({},e),{},{position:r})},De={close:function(e){var t=function(e){var t=Object.values(e).reduce((function(e,t){return t.renderIndex>=e.renderIndex&&(e=t),e}),{renderIndex:0});return t?t.id:null}(ee.dispatch("uiWindows.remove",e).byId);t&&ee.dispatch("uiWindows.focus",t)},create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=le(e);ee.dispatch("uiWindows.add",t),ee.dispatch("uiWindows.focus",t.id)},move:function(e){var t=e.elem,r=e.event,n=e.id,o=e.shouldDispatch,i=void 0!==o&&o,c=ee.getState("uiWindows").byId[n];if(t&&c){var u=function(e){var t=e.elem,r=e.event,n=e.uiWindow,o=t.getBoundingClientRect(),i=o.top,c=o.left;return pe()({position:{x:c+r.movementX,y:i+r.movementY},size:n.size}).flow(Oe).flow(ve).flow(ge).flow(he).close().position}({elem:t,event:r,uiWindow:c});t.style.transform="translate(".concat(u.x,"px, ").concat(u.y,"px)"),c.events.onMove({position:u},r),i&&ee.dispatch("uiWindows.update",{id:n,position:u})}},resize:function(e){var t=e.dimensions,r=e.elem,n=e.event,o=e.id,i=e.shouldDispatch,c=void 0!==i&&i,u=ee.getState("uiWindows").byId[o];if(r&&u){var a=function(e,t){return t?{position:{x:e.left,y:e.top},size:{height:e.height,width:e.width}}:pe()({position:{x:e.left,y:e.top},size:{height:e.height,width:e.width}}).flow(Pe).flow(xe).flow(Se).flow(Ee).close()}(t,c),s=a.position,l=a.size;r.style.transform="translate(".concat(s.x,"px, ").concat(s.y,"px)"),r.style.height="".concat(l.height,"px"),r.style.width="".concat(l.width,"px"),u.events.onResize({position:s,size:l},n),c&&ee.dispatch("uiWindows.update",{id:o,position:s,size:l})}}},Ae=r(3),Re=r.n(Ae);function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce=function(e){var t=e.style;return o.a.createElement(m,{style:Ie(Ie({},Re.a.view),t)},o.a.createElement("img",{height:"96px",width:"96px",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAAFK0lEQVR4nO2cS2wbVRSG/zMOzkNpaQqqACWwKGUBgkgVCzaIDa0EAvGsFxEUpMQ8lIADiccWKDC0KnWMQh6qhQxxFxQWJGKDuquQiljQBVQIqYsIsSoqm0otAWHn4TksiFEUeyYe3zue1HO+Xe7c+e/x+efO3DN3FEAQBEEQBEEQBEEQBEEIC9TMwa6PwGRg0rUT4/2eHI41KaTAaZoBdSW/QohMMJo1UN3JBwDCB37FkZqdH0jPzi/V2z89O7+Ump0f8CueNr+EdxpHFhYi+6/8eQqM1zydyLiHgC/TM/OHOq7/Hrcsa11nXFoMME2zF8AUMx8GsKdWnw89aiaT4E1/rjLzN8z8+tTU1FXPATLT3bOFzxmkciW/vLKnNwrmF0DE23evD+VbkGmavcz8MzPH4JB8DUSJ6HnDMC6apvmQ15PTc4UTDCjfRhgYSM8VTqjqbEbZANu2pwHcoiGWeuhj5u+SyWSi3hPS06cfBSOtLQJGOjVdeEyXnLIBRHRYRyAeiAKYSSaTC6Zp7nLraOVy3SD7NPSu9oiI81Yu161DTMcqaLcGjUY4wsw/jY+PP+DUobTa/gaAPh/G7iuuR0d0CDVtGeoTB4joh7GxsapbgpXPdxFh3K+BDaaklc93KevoCCZgugzD+GRr48o/xuMM7PVrUAb2loptys+CVjAAAO6qaiF6xu9BCfysqkarGFAFA47PBm1jEN+vqtGyBgC40/cRmKpnnkd0VMJ/AXBdDgaE629Lzcx/2nnTytvW8PDftY5buVx3ca39Y5Ux6kGHAd8CeFqDjlYI+IOB/S7H46W1jqfS04U8R/B1Z/v6rwBQXGk7QGU8V1rDqwTet80wV1TjVDaAiNLM/AiAHlUtBS5vbWDiC2ByNGCj1z4QJsjGRKkYAQAQ2EvZdsFbmNUoPwOy2exSuVzuB7AIYFlVrwEuA3hlayOxseD3wAT7K3WNJnFtBJ7eIPacUovtv9fPy78AuFdFx4VLv92xu38xFiuriLTsKmgxFiuDeRiAUoIcKIN5RDX5QAsbAACZt+LnAbyrW5cI72xoK9PSBgBAJjGYZXBBlx6DCyffHPxIl17LGwAinkwMxeFlT9pZbG4yMRTfUTtiNwREnBkdSgOIAbjWgMIyEY5mRgcTOpMPhMWADTKjQ4vgyEGAztZ/Fp0FR/pPJobO+BFTyy5Dt8Oc+eyQQTQBxsM1OxC+t5mPZ0fj5/yMI1QzYDPZ0fg5LpafdDreQR1P+J18IMQGAACi1Ot0aAWrjsd0EmoDKGI47hfb9rofe8lVhNoA2HC8yg1EZAb4DzsmmdmWGeA7Bjkmmcl5dujE834AX7KiKOE4GC8CYABn0In36D5rVX94PmOj12mxa8BwNUBXHrxvyBRxDIC5qSWFIgBo/PyvWZDzR1sMdr8FacpDI7egozXaXmpAZyfgdpVv9wzQkodGDLi9RtttDegESiqTvxnuHxPssua+cPvsUksewvsQdinCKjSjGAutAW5FWIVmFGOhNcCtCKvQjGIsvAa4FGH/92hCMRZeA1yKsArNKMbCa0BdtyD3YkwH4TXApQirsG0xpoHwGuBehFXw3QDP2378o1V7a/HWg8rB3FBcvVizmR60POU0zDNgRyAGBIwYEDBiQMCIAQEjBgSMGBAwYkDAiAEBo+9fljlUhoI7MgMCRgwIGDEgYPQ9A+RtaEPIDAgYMSBgxICAEQMCRgwIGDEgYMSAgBEDAkYMEARBEARBEARBEARBEARBEARB8Jl/ASzYY2tTFgUhAAAAAElFTkSuQmCC"}))};Ce.defaultProps={style:{}};var We=Ce,Be={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1"},Me={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",550:"#898989",600:"#757575",700:"#616161",750:"#424242",800:"#323232",900:"#212121"},Te={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ue={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},Fe="#ffffff",Ge={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17"},Le={ellipsis:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},Qe={none:{WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"},text:{WebkitUserSelect:"text",MozUserSelect:"text",MsUserSelect:"text",userSelect:"text"}},_e={view:{display:"flex",flexDirection:"column",alignItems:"center"},icon:{display:"flex",alignItems:"center",justifyContent:"center",height:"96px",width:"96px",marginBottom:"10px",overflow:"hidden"},label:{fontSize:"20px",fontWeight:600,color:Fe},version:{fontSize:"12px",fontWeight:500,color:Me[400]}};function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach((function(t){Ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ve=function(e){var t=e.icon,r=e.label,n=e.style,i=e.version,c=t||We;return o.a.createElement(m,{style:He(He({},_e.view),n)},o.a.createElement(m,{style:_e.icon},o.a.createElement(c,null)),o.a.createElement(h,{style:_e.label},r),o.a.createElement(h,{style:_e.version},"Version: ".concat(i)))};Ve.defaultProps={icon:null,label:"",style:{},version:""};var Xe=Ve,qe={view:{display:"flex",fontSize:"11px",width:"100%"},type:{flex:1,color:Me[400],paddingRight:"10px",textAlign:"right"},value:{flex:1,fontWeight:600,color:Fe}};function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e=function(e){var t=e.style,r=e.type,n=e.value;return o.a.createElement(m,{style:Ze(Ze({},qe.view),t)},o.a.createElement(h,{style:qe.type},r),o.a.createElement(h,{style:qe.value},n))};$e.defaultProps={style:{},type:"",value:""};var et=$e,tt={view:{display:"flex",alignItems:"center",flexDirection:"column",borderTop:"1px solid ".concat(Me[700]),overflow:"hidden"},description:{fontSize:"12px",color:Me[100],textAlign:"center",paddingBottom:"16px",maxHeight:"40px",overflow:"hidden"}};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var it=function(e){var t=e.author,r=e.createdDate,n=e.description,i=e.style;return o.a.createElement(m,{style:nt(nt({},tt.view),i)},o.a.createElement(h,{style:tt.description},n),o.a.createElement(et,{type:"Kind",value:"Tool"}),o.a.createElement(et,{type:"Author",value:t}),o.a.createElement(et,{type:"Created",value:r}))};it.defaultProps={author:"",createdDate:"",description:"",style:{}};var ct=it,ut={view:{display:"flex",flexDirection:"column",backgroundColor:Me[900]},overview:{padding:"16px 0px 28px 0px"},details:{paddingTop:"18px"}};function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?st(Object(r),!0).forEach((function(t){ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pt=function(e){var t=e.selectedTool,r=e.style;return o.a.createElement(m,{style:lt(lt({},ut.view),r)},o.a.createElement(Xe,at({style:ut.overview},t)),o.a.createElement(ct,at({style:ut.details},t)))};pt.defaultProps={selectedTool:{},style:{}};var bt=pt;function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vt={view:dt(dt({cursor:"pointer",fontSize:"12px",fontWeight:"600",color:Fe},Qe.none),Le.ellipsis)};function gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(r),!0).forEach((function(t){mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jt=function(e){var t=e.index,r=e.openUIWindow,n=e.style,i=e.tool,c=e.updateSelectedIndex;return o.a.createElement(m,{style:ht(ht({},vt.view),n),onClick:function(){return r(i.window)},onMouseOver:function(){return c(t)}},i.label)};jt.defaultProps={index:0,openUIWindow:function(){},style:{},tool:{},updateSelectedIndex:function(){}};var wt=jt,Pt={view:{display:"flex",flexDirection:"column",borderRight:"1px solid ".concat(Me[700]),backgroundColor:"rgba(33, 33, 33, .90)"},title:{color:Fe,fontSize:"10px",fontWeight:"700",height:"28px",lineHeight:"28px",paddingLeft:"24px"},list:{flex:1,overflowY:"auto",overflowX:"none"},item:function(e,t){var r=t.primaryColor||Be[800];return{backgroundColor:e&&r,height:"28px",lineHeight:"28px",padding:"0px 24px"}}};function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){Et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dt=function(e){var t=e.openUIWindow,r=e.selectedIndex,n=e.style,i=e.tools,c=e.updateSelectedIndex,u=ee.getState("ui").theme.colors;return o.a.createElement(m,{style:St(St({},Pt.view),n)},o.a.createElement(h,{style:Pt.title},"DEV-OS TOOL BROWSER"),o.a.createElement(m,{style:Pt.list},i.map((function(e,n){var i=r===n;return o.a.createElement(wt,{style:Pt.item(i,u),index:n,key:"ITEM_".concat(n),openUIWindow:t,tool:e,updateSelectedIndex:c})}))))};Dt.defaultProps={openUIWindow:function(){},selectedIndex:0,style:{},tools:[],updateSelectedIndex:function(){}};var At=Dt,Rt=function(e){var t=e.keyCode;40!==t&&38!==t||(e.stopPropagation(),e.preventDefault())},zt={view:function(e){return{display:"flex",position:"absolute",left:"".concat(e-340,"px"),top:"120px",height:"366px",width:"680px",borderRadius:"12px",boxShadow:"rgba(0, 0, 0, 0.38) 0px 20px 20px -3px, 0 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid ".concat(Me[700])}},toolList:{width:"270px",height:"100%"},toolInfo:{height:"100%",width:"410px",padding:"24px"}};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mt=function(e){var t=e.style,r=e.tools,i=Wt(Object(n.useState)(0),2),c=i[0],u=i[1],a=Wt(Object(n.useState)(window.innerWidth/2),2),s=a[0],l=a[1],f=Object(n.useRef)(null),p=function(e){ee.dispatch("toolBrowser.close"),setTimeout((function(){return De.create(e)}),0)},b=function(e){e>=0&&e<=r.length-1&&u(e)};return te("keyup",(function(e){var t=e.keyCode;40===t&&b(c+1),38===t&&b(c-1),13===t&&p(r[c].window),27===t&&ee.dispatch("toolBrowser.close")})),te("keydown",Rt),te("mousedown",(function(e){f&&!f.current.contains(e.target)&&ee.dispatch("toolBrowser.close")})),te("resize",(function(){l(window.innerWidth/2)})),o.a.createElement(w,{style:kt(kt({},zt.view(s)),t),ref:f},o.a.createElement(At,{style:zt.toolList,openUIWindow:p,selectedIndex:c,tools:r,updateSelectedIndex:b}),o.a.createElement(bt,{style:zt.toolInfo,selectedTool:r[c]}))};Mt.defaultProps={style:{},tools:[]};var Tt=Mt,Ut={overflow:"hidden",pointerEvents:"auto",zIndex:2147483647};function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){Lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt=function(e){var t=e.style,r=e.tools.map((function(e){return"function"==typeof e?e():e})),n=ie((function(e){return e.getState("toolBrowser").isOpen}));return te("keyup",(function(e){var t=e.keyCode,r=e.target.tagName.toUpperCase();"INPUT"!==r&&"TEXTAREA"!==r&&84===t&&ee.dispatch("toolBrowser.toggle")})),n&&o.a.createElement(Tt,{style:Gt(Gt({},Ut),t),tools:r})};Qt.defaultProps={style:{},tools:[]};var _t=Qt,Yt={view:{flex:1,position:"relative",borderRight:"1px solid ".concat(Me[700]),borderBottom:"1px solid ".concat(Me[700]),borderLeft:"1px solid ".concat(Me[700]),borderRadius:"0px 0px 6px 6px",backgroundColor:Me[900],overflow:"hidden"}};function Ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(r),!0).forEach((function(t){Vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xt=Object(n.memo)((function(e){var t=e.contentRef,r=e.id,n=e.style,i=ee.getState("uiWindows").byId[r].component,c={closeWindow:function(){return De.close(r)},createWindow:De.create,id:r,theme:ee.getState("ui").theme};return o.a.createElement(w,{style:Nt(Nt({},Yt.view),n),ref:t},o.a.createElement(i,{devOS:c}))}));Xt.defaultProps={contentRef:null,id:null,style:{}};var qt=Xt,Kt=function(e){return{height:"12px",width:"12px",borderRadius:"50%",backgroundColor:e.primaryColor}};function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var er=function(e){var t=e.onClick,r=e.primaryColor,n=e.style;return o.a.createElement(m,{style:Jt(Jt({},Kt({primaryColor:r})),n),onClick:t,onDoubleClick:function(e){return e.stopPropagation()}})};er.defaultProps={onClick:function(){},primaryColor:"",style:{}};var tr=er,rr={view:{display:"flex"},marginRight:{marginRight:"6px"}};function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){ir(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ir(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cr=function(e){var t=e.isFocused,r=e.onClose,n=e.style;return o.a.createElement(m,{style:or(or({},rr.view),n)},o.a.createElement(tr,{style:rr.marginRight,primaryColor:t?Ue[500]:Me[550],onClick:r}),o.a.createElement(tr,{style:rr.marginRight,primaryColor:t?Ge[700]:Me[550]}),o.a.createElement(tr,{primaryColor:t?Te[500]:Me[550]}))};cr.defaultProps={isFocused:!1,onClose:function(){},style:{}};var ur=cr;function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(r),!0).forEach((function(t){lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fr={view:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0px 6px",backgroundColor:Me[750],overflow:"hidden",borderTop:"1px solid ".concat(Me[600]),borderRight:"1px solid ".concat(Me[600]),borderLeft:"1px solid ".concat(Me[600]),borderRadius:"6px 6px 0px 0px"},focused:function(e){return e&&{backgroundColor:Me[800]}},actionButtons:{flex:1,paddingRight:"16px"},title:sr(sr({color:Me[50],fontSize:"13px",fontWeight:700,paddingRight:"16px"},Qe.none),Le.ellipsis),flexSpacer:{flex:1}};function pr(){return(pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Or=function(e){var t=e.contentRef,r=e.id,i=e.style,c=e.uiWindowRef,u=function(e){var t=e.onMove,r=void 0===t?function(){}:t,o=e.onMoveEnd,i=void 0===o?function(){}:o,c=e.onMoveStart,u=void 0===c?function(){}:c,a=Object(n.useRef)(!1).current,s=function(e){return a&&r(e)},l=function e(t){a=!1,i(t),window.removeEventListener("mouseup",e),window.removeEventListener("mousemove",s)};return{events:{onMouseDown:function(e){a=!0,u(e),window.addEventListener("mouseup",l),window.addEventListener("mousemove",s)}}}}(function(e){var t=e.contentRef,r=e.id,n=e.uiWindowRef;return{onMove:function(e){De.move({elem:n.current,event:e,id:r}),e.stopPropagation(),e.preventDefault()},onMoveEnd:function(e){De.move({elem:n.current,event:e,id:r,shouldDispatch:!0}),t.current&&(t.current.style.pointerEvents=""),e.stopPropagation(),e.preventDefault()},onMoveStart:function(){t.current&&(t.current.style.pointerEvents="none")}}}({contentRef:t,id:r,uiWindowRef:c})).events,a=ie((function(e){return e.getState("uiWindows").byId[r]})),s=a.isFocused,l=a.isOpaque,f=a.title;return o.a.createElement(m,pr({style:yr(yr(yr({},fr.view),i),fr.focused(s)),onDoubleClick:function(){return ee.dispatch("uiWindows.update",{id:r,isOpaque:!l})}},u),o.a.createElement(ur,{style:fr.actionButtons,isFocused:s,onClose:function(){return De.close(r)}}),o.a.createElement(h,{style:fr.title},f),o.a.createElement(m,{style:fr.flexSpacer}))};Or.defaultProps={contentRef:null,id:null,style:{},uiWindowRef:null};var vr=Or,gr={display:"flex",flex:1,flexDirection:"column",minWidth:0,minHeight:0};function hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wr=function(e){var t=e.children,r=e.contentRef,n=e.id,i=e.uiWindowRef,c=e.style,u=function(e){var t=e.contentRef,r=e.id,n=e.uiWindowRef;return{handleResize:function(e,t){return De.resize({dimensions:e,elem:n.current,event:t,id:r})},handleResizeEnd:function(e){if(n.current){var o=n.current.getBoundingClientRect();De.resize({dimensions:o,elem:n.current,event:e,id:r,shouldDispatch:!0})}t.current&&(t.current.style.pointerEvents="")},handleResizeStart:function(){t.current&&(t.current.style.pointerEvents="none")}}}({contentRef:r,id:n,uiWindowRef:i}),a=u.handleResize,s=u.handleResizeEnd,l=u.handleResizeStart;return o.a.createElement(v,{style:mr(mr({},c),gr),minHeight:24,minWidth:95,onResize:a,onResizeEnd:s,onResizeStart:l},t)};wr.defaultProps={children:null,contentRef:null,id:null,uiWindowRef:null,style:{}};var Pr=wr,xr={view:function(e){var t=e.position,r=t.x,n=t.y,o=e.size,i=o.width,c=o.height,u=e.isOpaque,a=e.renderIndex;return{position:"absolute",transform:"translate(".concat(r,"px, ").concat(n,"px)"),display:"flex",height:"".concat(c,"px"),width:"".concat(i,"px"),borderRadius:"6px",opacity:u?1:.1,pointerEvents:u?"auto":"none",boxShadow:"rgba(0, 0, 0, 0.19) 0px 10px 15px -3px, 0 4px 6px -2px rgba(0, 0, 0, 0.05)",zIndex:a}},header:{pointerEvents:"auto",minHeight:"24px",height:"24px"}};function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){Dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ar=function(e){var t=e.id,r=e.style,i=Object(n.useRef)(null),c=Object(n.useRef)(null),u=ie((function(e){return e.getState("uiWindows").byId[t]}));return o.a.createElement(w,{style:Er(Er({},xr.view(u)),r),onMouseDown:function(){return!u.isFocused&&ee.dispatch("uiWindows.focus",t)},ref:c},o.a.createElement(Pr,{id:t,contentRef:i,uiWindowRef:c},o.a.createElement(vr,{style:xr.header,id:t,contentRef:i,uiWindowRef:c}),o.a.createElement(qt,{id:t,contentRef:i})))};Ar.defaultProps={id:null,style:{}};var Rr=Ar,zr=r(4),Ir=r.n(zr);function kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(r),!0).forEach((function(t){Wr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Br=function(e){var t=e.style,r=ie((function(e){return e.getState("uiWindows").ids}));return o.a.createElement(m,{style:Cr(Cr({},Ir.a.view),t)},r.map((function(e){return o.a.createElement(Rr,{key:"UI_WINDOW_".concat(e),id:e})})))};Br.defaultProps={style:{}};var Mr=Br,Tr={position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:2147483647,boxSizing:"border-box",verticalAlign:"baseline",lineHeight:"1.5",border:0,margin:0,padding:0,overflow:"hidden",pointerEvents:"none",color:"#424242",fontSize:"14px",fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"};function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach((function(t){Gr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Lr=function(e){var t=e.style,r=e.themeColors,i=e.tools;return Object(n.useEffect)((function(){r&&ee.dispatch("ui.updateTheme",{colors:r})}),[]),o.a.createElement(m,{style:Fr(Fr({},Tr),t)},o.a.createElement(_t,{tools:i}),o.a.createElement(Mr,null))};Lr.defaultProps={style:{},themeColors:null,tools:[]};var Qr=Lr;t.default=Qr}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.devOS=t(require("react")):e.devOS=t(e.react)}(window,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=5)}([function(t,r){t.exports=e},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var n={error:function(e,t){if(e instanceof Error)return e;try{return t(e)}catch(e){return e instanceof Error?e:Error(e)}},maybe:function(e,t){return null!=e?t(e):null},sync:function(e,t){return e instanceof Promise?e.then((function(e){return t(e)})):t(e)}};t.default=function(e){var t=function(e,t){return t(e)};return function e(r){return{bind:function(o){return t="string"==typeof o?n[o]:o,e(r)},flow:function(n){return e(t(r,n))},close:function(e){return e?e(r):r}}}(e)}}]).default},function(e,t,r){window,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,"Store",(function(){return v}));var a={isPending:!1,isError:!1,error:null,shouldThrowErrors:!0,shouldTrackAsyncState:!0},s=function(e){return Object.entries(e).reduce((function(e,t){var r=c(t,2),n=r[0],i=r[1],u="function"!=typeof i;return e[n]={configs:u?o({},a,{},i.configs):a,reducer:u?i.reducer:i},e}),{})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).reduce((function(e,t){var r=c(t,2),n=(r[0],r[1]),o=n.actions,i=void 0===o?{}:o,u=n.name,a=n.state,l=void 0===a?null:a;return e[u]={actions:s(i),state:l},e}),{})};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var v=function(){function e(t){var r=t.name,n=void 0===r?"":r,o=t.services,i=void 0===o?{}:o,c=t.types;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.lastUid=0,this.name=n,this.services=i,this.subscribers={},this.types=l(c),this._typeConfigs=c}var t,r;return t=e,(r=[{key:"dispatch",value:function(e,t){var r=y(this._tokenizeAction(e),2),n=r[0],o=r[1],i=this.types[n],c=i.actions[o];return this._setState({typeName:n})(c.reducer({prevState:i.state,services:this.services},t)),this.types[n].state}},{key:"dispatchAsync",value:function(e,t){var r=y(this._tokenizeAction(e),2),n=r[0],o=r[1],i=this.types[n],c=i.actions[o],u=c.configs.shouldTrackAsyncState,a=this._setConfigs({actionName:o,typeName:n}),s=this._setState({typeName:n});return u&&a({isPending:!0,isError:!1,error:null}),Promise.resolve(c.reducer({prevState:i.state,services:this.services},t)).then((function(e){return u&&a({isPending:!1},!1),s(e),e})).catch((function(e){return u&&a({isPending:!1,isError:!0,error:e}),u?c.configs.shouldThrowErrors&&Promise.reject(e):Promise.reject(e)}))}},{key:"getError",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.error}},{key:"getState",value:function(e){return e?this.types[e].state:Object.entries(this.types).reduce((function(e,t){var r=y(t,2),n=r[0],o=r[1].state;return e[n]=o,e}),{})}},{key:"isError",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.isError}},{key:"isPending",value:function(e){var t=y(this._tokenizeAction(e),2),r=t[0],n=t[1];return this.types[r].actions[n].configs.isPending}},{key:"subscribe",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},r="uid_".concat(++this.lastUid);return this.subscribers[r]=t,t(this),{onNotify:t,token:r,unsubscribe:function(){return e._unsubscribe(r)}}}},{key:"_notify",value:function(){var e=this;Object.values(this.subscribers).forEach((function(t){return t(e)}))}},{key:"reset",value:function(){this.lastUid=0,this.subscribers={},this.types=l(this._typeConfigs)}},{key:"_setConfigs",value:function(e){var t=this,r=e.actionName,n=e.typeName;return function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.types[n].actions[r].configs;return t.types[n].actions[r].configs=p({},i,{},e),o&&t._notify()}}},{key:"_setState",value:function(e){var t=this,r=e.typeName;return function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.types[r].state=e,n&&t._notify()}}},{key:"_tokenizeAction",value:function(e){var t=y(e.split("."),1)[0];return[t,e.slice(t.length+1)]}},{key:"_unsubscribe",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;delete this.subscribers[e]}}])&&O(t.prototype,r),e}()}])},function(e,t){},function(e,t){},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=function(e){return{height:"5px",width:"5px",cursor:e}};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=function(e){var t=e.cursor,r=e.onResize,c=e.onResizeEnd,a=e.onResizeStart,s=e.style,l=Object(n.useRef)(!1).current,f=function e(t){document.body.style.cursor="auto",document.body.style.userSelect="",window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",e),l&&(l=!1,c(t))},p=function(e){l&&(e.stopImmediatePropagation(),requestAnimationFrame((function(){return r(e)})))};return o.a.createElement("div",{style:u(u({},i(t)),s),draggable:!1,onMouseDown:function(e){document.body.style.cursor=t,document.body.style.userSelect="none",l=!0,a(e),window.addEventListener("mousemove",p),window.addEventListener("mouseup",f)}})};s.defaultProps={cursor:"nwse-resize",onResize:function(){},onResizeEnd:function(){},onResizeStart:function(){},style:{}};var l=s,f={top:{position:"absolute",top:"-2px",left:"0px",width:"100%"},left:{position:"absolute",top:"0px",left:"-2px",height:"100%"},right:{position:"absolute",top:"0px",right:"-2px",height:"100%"},bottom:{position:"absolute",bottom:"-2px",left:"0px",width:"100%"},topLeft:{position:"absolute",top:"-2px",left:"-2px",height:"10px",width:"10px"},topRight:{position:"absolute",top:"-2px",right:"-2px",height:"10px",width:"10px"},bottomLeft:{position:"absolute",bottom:"-2px",left:"-2px",height:"10px",width:"10px"},bottomRight:{position:"absolute",bottom:"-2px",right:"-2px",height:"10px",width:"10px"}},p=function(e){var t=e.onResize,r=e.onResizeEnd,i=e.onResizeStart;return o.a.createElement(n.Fragment,null,o.a.createElement(l,{style:f.top,cursor:"ns-resize",onResize:function(e){return t(e,"top")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.left,cursor:"ew-resize",onResize:function(e){return t(e,"left")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.right,cursor:"ew-resize",onResize:function(e){return t(e,"right")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottom,cursor:"ns-resize",onResize:function(e){return t(e,"bottom")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.topLeft,cursor:"nwse-resize",onResize:function(e){return t(e,"topLeft")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.topRight,cursor:"nesw-resize",onResize:function(e){return t(e,"topRight")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottomLeft,cursor:"nesw-resize",onResize:function(e){return t(e,"bottomLeft")},onResizeEnd:r,onResizeStart:i}),o.a.createElement(l,{style:f.bottomRight,cursor:"nwse-resize",onResize:function(e){return t(e,"bottomRight")},onResizeEnd:r,onResizeStart:i}))};p.defaultProps={onResize:function(){},onResizeEnd:function(){},onResiseStart:function(){}};var b=p,y={bottom:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.height+r.movementY;return{width:t.width,height:o>n.height?o:t.height,top:t.top,left:t.left}},bottomLeft:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX,i=t.height+r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:t.top,left:o>n.width?t.left+r.movementX:t.left}},bottomRight:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX,i=t.height+r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:t.top,left:t.left}},left:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX;return{width:o>n.width?o:t.width,height:t.height,top:t.top,left:o>n.width?t.left+r.movementX:t.left}},right:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX;return{width:o>n.width?o:t.width,height:t.height,top:t.top,left:t.left}},top:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.height-r.movementY;return{width:t.width,height:o>n.height?o:t.height,top:o>n.height?t.top+r.movementY:t.top,left:t.left}},topLeft:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width-r.movementX,i=t.height-r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:i>n.height?t.top+r.movementY:t.top,left:o>n.width?t.left+r.movementX:t.left}},topRight:function(e){var t=e.elem,r=e.event,n=e.minSize,o=t.width+r.movementX,i=t.height-r.movementY;return{width:o>n.width?o:t.width,height:i>n.height?i:t.height,top:i>n.height?t.top+r.movementY:t.top,left:t.left}}},d=function(e){var t=e.elem,r=e.event,n=e.handleType,o=e.minSize;return t?y[n]({elem:t.getBoundingClientRect(),event:r,minSize:o}):{width:0,height:0,top:0,left:0}},O=function(e){var t=e.children,r=e.isActive,i=e.minHeight,c=e.minWidth,u=e.onResize,a=e.onResizeEnd,s=e.onResizeStart,l=e.style,f=Object(n.useRef)(null);return o.a.createElement("div",{style:l,ref:f},t,r&&o.a.createElement(b,{onResize:function(e,t){return u(d({elem:f.current,event:e,handleType:t,minSize:{height:i,width:c}}),e)},onResizeEnd:a,onResizeStart:s}))};O.defaultProps={children:null,isActive:!0,minHeight:1,minWidth:1,onResize:function(){},onResizeEnd:function(){},onResizeStart:function(){},style:{}};var v=O,g=function(e){var t=e.children,r=e.style,n=e.title;return o.a.createElement("div",{style:r,title:n},t)};g.defaultProps={children:null,style:{},title:null};var h=g,m=function(e){return o.a.createElement("div",e)};function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var w=o.a.forwardRef((function(e,t){return o.a.createElement("div",j({},e,{ref:t}))}));function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){S(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var k={actions:{close:function(e){return x(x({},e.prevState),{},{isOpen:!1})},open:function(e){return D(D({},e.prevState),{},{isOpen:!0})},toggle:function(e){var t=e.prevState;return z(z({},t),{},{isOpen:!t.isOpen})}},name:"toolBrowser",state:{isOpen:!1}};function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){B(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var M={actions:{updateTheme:function(e,t){var r=e.prevState,n=W(W({},r.theme),t);return W(W({},r),{},{theme:n})}},name:"ui",state:{theme:{colors:{primaryColor:null}}}};function T(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?F(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){V(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function V(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?K(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $={actions:{add:function(e,t){var r=e.prevState,n=G(G({},r.byId),{},L({},t.id,G({},t))),o=[].concat(T(r.ids),[t.id]);return G(G({},r),{},{byId:n,ids:o})},focus:function(e,t){var r=e.prevState,n=_({},r.byId),o=r.focusedId,i=n[o],c=_({},n),u=r.maxRenderIndex+1,a=n[t];return i&&(c[o]=_(_({},i),{},{isFocused:!1})),c[t]=_(_({},a),{},{isFocused:!0,renderIndex:u}),_(_({},r),{},{byId:c,focusedId:t,maxRenderIndex:u})},remove:function(e,t){var r=e.prevState,n=r.byId,o=X(r.ids).filter((function(e){return e!==t})),i=Object.values(n).reduce((function(e,r){return r.id!==t&&(e[r.id]=r),e}),{});return N(N({},r),{},{byId:i,ids:o})},update:function(e,t){var r=e.prevState,n=r.byId,o=n[t.id],i=Z({},n);return i[o.id]=Z(Z({},o),t),Z(Z({},r),{},{byId:i})}},name:"uiWindows",state:{byId:{},focusedId:null,ids:[],maxRenderIndex:0}},ee=new(r(2).Store)({name:"dev-tools",types:{toolBrowser:k,ui:M,uiWindows:$}});var te=function(e,t){Object(n.useEffect)((function(){return window.addEventListener(e,t),function(){return window.removeEventListener(e,t)}}),[e,t])};function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var oe,ie=(oe=ee,function(e,t){var r=re(Object(n.useState)(void 0===t?e(oe):t),2),o=r[0],i=r[1];return Object(n.useEffect)((function(){var t=!1,r=oe.subscribe((function(r){!t&&i(e(r))}));return function(){t=!0,r.unsubscribe()}}),[]),o});function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(r),!0).forEach((function(t){ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var se=0,le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.events,r=void 0===t?{}:t;return ue(ue({isOpaque:!0,type:"",title:"",component:function(){return null},position:{x:24,y:24},size:{height:200,width:300},minSize:{height:24,width:95}},e),{},{events:ue({onMove:function(){},onResize:function(){}},r),id:se+=1,isFocused:!1,renderIndex:0})},fe=r(1),pe=r.n(fe);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Oe=function(e){var t={x:e.position.x,y:e.position.y<0?0:e.position.y};return ye(ye({},e),{},{position:t})},ve=function(e){var t=window.innerHeight-24,r={x:e.position.x,y:e.position.y>t?t:e.position.y};return ye(ye({},e),{},{position:r})},ge=function(e){var t=-(e.size.width-24),r={x:e.position.x<t?t:e.position.x,y:e.position.y};return ye(ye({},e),{},{position:r})},he=function(e){var t=window.innerWidth-24,r={x:e.position.x>t?t:e.position.x,y:e.position.y};return ye(ye({},e),{},{position:r})};function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pe=function(e){var t={x:e.position.x,y:e.position.y<0?0:e.position.y};return je(je({},e),{},{position:t})},xe=function(e){var t=window.innerHeight-24,r={x:e.position.x,y:e.position.y>t?t:e.position.y};return je(je({},e),{},{position:r})},Se=function(e){var t=-(e.size.width-24),r={x:e.position.x<t?t:e.position.x,y:e.position.y};return je(je({},e),{},{position:r})},Ee=function(e){var t=window.innerWidth-24,r={x:e.position.x>t?t:e.position.x,y:e.position.y};return je(je({},e),{},{position:r})},De={close:function(e){var t=function(e){var t=Object.values(e).reduce((function(e,t){return t.renderIndex>=e.renderIndex&&(e=t),e}),{renderIndex:0});return t?t.id:null}(ee.dispatch("uiWindows.remove",e).byId);t&&ee.dispatch("uiWindows.focus",t)},create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=le(e);ee.dispatch("uiWindows.add",t),ee.dispatch("uiWindows.focus",t.id)},move:function(e){var t=e.elem,r=e.event,n=e.id,o=e.shouldDispatch,i=void 0!==o&&o,c=ee.getState("uiWindows").byId[n];if(t&&c){var u=function(e){var t=e.elem,r=e.event,n=e.uiWindow,o=t.getBoundingClientRect(),i=o.top,c=o.left;return pe()({position:{x:c+r.movementX,y:i+r.movementY},size:n.size}).flow(Oe).flow(ve).flow(ge).flow(he).close().position}({elem:t,event:r,uiWindow:c});t.style.transform="translate(".concat(u.x,"px, ").concat(u.y,"px)"),c.events.onMove({position:u},r),i&&ee.dispatch("uiWindows.update",{id:n,position:u})}},resize:function(e){var t=e.dimensions,r=e.elem,n=e.event,o=e.id,i=e.shouldDispatch,c=void 0!==i&&i,u=ee.getState("uiWindows").byId[o];if(r&&u){var a=function(e,t){return t?{position:{x:e.left,y:e.top},size:{height:e.height,width:e.width}}:pe()({position:{x:e.left,y:e.top},size:{height:e.height,width:e.width}}).flow(Pe).flow(xe).flow(Se).flow(Ee).close()}(t,c),s=a.position,l=a.size;r.style.transform="translate(".concat(s.x,"px, ").concat(s.y,"px)"),r.style.height="".concat(l.height,"px"),r.style.width="".concat(l.width,"px"),u.events.onResize({position:s,size:l},n),c&&ee.dispatch("uiWindows.update",{id:o,position:s,size:l})}}},Ae=r(3),Re=r.n(Ae);function ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce=function(e){var t=e.style;return o.a.createElement(m,{style:Ie(Ie({},Re.a.view),t)},o.a.createElement("img",{height:"96px",width:"96px",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAAFK0lEQVR4nO2cS2wbVRSG/zMOzkNpaQqqACWwKGUBgkgVCzaIDa0EAvGsFxEUpMQ8lIADiccWKDC0KnWMQh6qhQxxFxQWJGKDuquQiljQBVQIqYsIsSoqm0otAWHn4TksiFEUeyYe3zue1HO+Xe7c+e/x+efO3DN3FEAQBEEQBEEQBEEQBEEIC9TMwa6PwGRg0rUT4/2eHI41KaTAaZoBdSW/QohMMJo1UN3JBwDCB37FkZqdH0jPzi/V2z89O7+Ump0f8CueNr+EdxpHFhYi+6/8eQqM1zydyLiHgC/TM/OHOq7/Hrcsa11nXFoMME2zF8AUMx8GsKdWnw89aiaT4E1/rjLzN8z8+tTU1FXPATLT3bOFzxmkciW/vLKnNwrmF0DE23evD+VbkGmavcz8MzPH4JB8DUSJ6HnDMC6apvmQ15PTc4UTDCjfRhgYSM8VTqjqbEbZANu2pwHcoiGWeuhj5u+SyWSi3hPS06cfBSOtLQJGOjVdeEyXnLIBRHRYRyAeiAKYSSaTC6Zp7nLraOVy3SD7NPSu9oiI81Yu161DTMcqaLcGjUY4wsw/jY+PP+DUobTa/gaAPh/G7iuuR0d0CDVtGeoTB4joh7GxsapbgpXPdxFh3K+BDaaklc93KevoCCZgugzD+GRr48o/xuMM7PVrUAb2loptys+CVjAAAO6qaiF6xu9BCfysqkarGFAFA47PBm1jEN+vqtGyBgC40/cRmKpnnkd0VMJ/AXBdDgaE629Lzcx/2nnTytvW8PDftY5buVx3ca39Y5Ux6kGHAd8CeFqDjlYI+IOB/S7H46W1jqfS04U8R/B1Z/v6rwBQXGk7QGU8V1rDqwTet80wV1TjVDaAiNLM/AiAHlUtBS5vbWDiC2ByNGCj1z4QJsjGRKkYAQAQ2EvZdsFbmNUoPwOy2exSuVzuB7AIYFlVrwEuA3hlayOxseD3wAT7K3WNJnFtBJ7eIPacUovtv9fPy78AuFdFx4VLv92xu38xFiuriLTsKmgxFiuDeRiAUoIcKIN5RDX5QAsbAACZt+LnAbyrW5cI72xoK9PSBgBAJjGYZXBBlx6DCyffHPxIl17LGwAinkwMxeFlT9pZbG4yMRTfUTtiNwREnBkdSgOIAbjWgMIyEY5mRgcTOpMPhMWADTKjQ4vgyEGAztZ/Fp0FR/pPJobO+BFTyy5Dt8Oc+eyQQTQBxsM1OxC+t5mPZ0fj5/yMI1QzYDPZ0fg5LpafdDreQR1P+J18IMQGAACi1Ot0aAWrjsd0EmoDKGI47hfb9rofe8lVhNoA2HC8yg1EZAb4DzsmmdmWGeA7Bjkmmcl5dujE834AX7KiKOE4GC8CYABn0In36D5rVX94PmOj12mxa8BwNUBXHrxvyBRxDIC5qSWFIgBo/PyvWZDzR1sMdr8FacpDI7egozXaXmpAZyfgdpVv9wzQkodGDLi9RtttDegESiqTvxnuHxPssua+cPvsUksewvsQdinCKjSjGAutAW5FWIVmFGOhNcCtCKvQjGIsvAa4FGH/92hCMRZeA1yKsArNKMbCa0BdtyD3YkwH4TXApQirsG0xpoHwGuBehFXw3QDP2378o1V7a/HWg8rB3FBcvVizmR60POU0zDNgRyAGBIwYEDBiQMCIAQEjBgSMGBAwYkDAiAEBo+9fljlUhoI7MgMCRgwIGDEgYPQ9A+RtaEPIDAgYMSBgxICAEQMCRgwIGDEgYMSAgBEDAkYMEARBEARBEARBEARBEARBEARB8Jl/ASzYY2tTFgUhAAAAAElFTkSuQmCC"}))};Ce.defaultProps={style:{}};var We=Ce,Be={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1"},Me={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",550:"#898989",600:"#757575",700:"#616161",750:"#424242",800:"#323232",900:"#212121"},Te={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Ue={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},Fe="#ffffff",Ge={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17"},Le={ellipsis:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},Qe={none:{WebkitUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",userSelect:"none"},text:{WebkitUserSelect:"text",MozUserSelect:"text",MsUserSelect:"text",userSelect:"text"}},_e={view:{display:"flex",flexDirection:"column",alignItems:"center"},icon:{display:"flex",alignItems:"center",justifyContent:"center",height:"96px",width:"96px",marginBottom:"10px",overflow:"hidden"},label:{fontSize:"20px",fontWeight:600,color:Fe},version:{fontSize:"12px",fontWeight:500,color:Me[400]}};function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(r),!0).forEach((function(t){Ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ye(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ve=function(e){var t=e.icon,r=e.label,n=e.style,i=e.version,c=t||We;return o.a.createElement(m,{style:He(He({},_e.view),n)},o.a.createElement(m,{style:_e.icon},o.a.createElement(c,null)),o.a.createElement(h,{style:_e.label},r),o.a.createElement(h,{style:_e.version},"Version: ".concat(i)))};Ve.defaultProps={icon:null,label:"",style:{},version:""};var Xe=Ve,qe={view:{display:"flex",fontSize:"11px",width:"100%"},type:{flex:1,color:Me[400],paddingRight:"10px",textAlign:"right"},value:{flex:1,fontWeight:600,color:Fe}};function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){Je(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $e=function(e){var t=e.style,r=e.type,n=e.value;return o.a.createElement(m,{style:Ze(Ze({},qe.view),t)},o.a.createElement(h,{style:qe.type},r),o.a.createElement(h,{style:qe.value},n))};$e.defaultProps={style:{},type:"",value:""};var et=$e,tt={view:{display:"flex",alignItems:"center",flexDirection:"column",borderTop:"1px solid ".concat(Me[700]),overflow:"hidden"},description:{fontSize:"12px",color:Me[100],textAlign:"center",paddingBottom:"16px",maxHeight:"40px",overflow:"hidden"}};function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var it=function(e){var t=e.author,r=e.createdDate,n=e.description,i=e.style;return o.a.createElement(m,{style:nt(nt({},tt.view),i)},o.a.createElement(h,{style:tt.description},n),o.a.createElement(et,{type:"Kind",value:"Tool"}),o.a.createElement(et,{type:"Author",value:t}),o.a.createElement(et,{type:"Created",value:r}))};it.defaultProps={author:"",createdDate:"",description:"",style:{}};var ct=it,ut={view:{display:"flex",flexDirection:"column",backgroundColor:Me[900]},overview:{padding:"16px 0px 28px 0px"},details:{paddingTop:"18px"}};function at(){return(at=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?st(Object(r),!0).forEach((function(t){ft(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ft(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pt=function(e){var t=e.selectedTool,r=e.style;return o.a.createElement(m,{style:lt(lt({},ut.view),r)},o.a.createElement(Xe,at({style:ut.overview},t)),o.a.createElement(ct,at({style:ut.details},t)))};pt.defaultProps={selectedTool:{},style:{}};var bt=pt;function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vt={view:dt(dt({cursor:"pointer",fontSize:"12px",fontWeight:"600",color:Fe},Qe.none),Le.ellipsis)};function gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(r),!0).forEach((function(t){mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var jt=function(e){var t=e.index,r=e.openUIWindow,n=e.style,i=e.tool,c=e.updateSelectedIndex;return o.a.createElement(m,{style:ht(ht({},vt.view),n),onClick:function(){return r(i.window)},onMouseOver:function(){return c(t)}},i.label)};jt.defaultProps={index:0,openUIWindow:function(){},style:{},tool:{},updateSelectedIndex:function(){}};var wt=jt,Pt={view:{display:"flex",flexDirection:"column",borderRight:"1px solid ".concat(Me[700]),backgroundColor:"rgba(33, 33, 33, .90)"},title:{color:Fe,fontSize:"10px",fontWeight:"700",height:"28px",lineHeight:"28px",paddingLeft:"24px"},list:{flex:1,overflowY:"auto",overflowX:"none"},item:function(e,t){var r=t.primaryColor||Be[800];return{backgroundColor:e&&r,height:"28px",lineHeight:"28px",padding:"0px 24px"}}};function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){Et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dt=function(e){var t=e.openUIWindow,r=e.selectedIndex,n=e.style,i=e.tools,c=e.updateSelectedIndex,u=ee.getState("ui").theme.colors;return o.a.createElement(m,{style:St(St({},Pt.view),n)},o.a.createElement(h,{style:Pt.title},"DEV-OS TOOL BROWSER"),o.a.createElement(m,{style:Pt.list},i.map((function(e,n){var i=r===n;return o.a.createElement(wt,{style:Pt.item(i,u),index:n,key:"ITEM_".concat(n),openUIWindow:t,tool:e,updateSelectedIndex:c})}))))};Dt.defaultProps={openUIWindow:function(){},selectedIndex:0,style:{},tools:[],updateSelectedIndex:function(){}};var At=Dt,Rt=function(e){var t=e.keyCode;40!==t&&38!==t||(e.stopPropagation(),e.preventDefault())},zt={view:function(e){return{display:"flex",position:"absolute",left:"".concat(e-340,"px"),top:"120px",height:"366px",width:"680px",borderRadius:"12px",boxShadow:"rgba(0, 0, 0, 0.38) 0px 20px 20px -3px, 0 4px 6px -2px rgba(0, 0, 0, 0.05)",border:"1px solid ".concat(Me[700])}},toolList:{width:"270px",height:"100%"},toolInfo:{height:"100%",width:"410px",padding:"24px"}};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Mt=function(e){var t=e.style,r=e.tools,i=Wt(Object(n.useState)(0),2),c=i[0],u=i[1],a=Wt(Object(n.useState)(window.innerWidth/2),2),s=a[0],l=a[1],f=Object(n.useRef)(null),p=function(e){ee.dispatch("toolBrowser.close"),setTimeout((function(){return De.create(e)}),0)},b=function(e){e>=0&&e<=r.length-1&&u(e)};return te("keyup",(function(e){var t=e.keyCode;40===t&&b(c+1),38===t&&b(c-1),13===t&&p(r[c].window),27===t&&ee.dispatch("toolBrowser.close")})),te("keydown",Rt),te("mousedown",(function(e){f&&!f.current.contains(e.target)&&ee.dispatch("toolBrowser.close")})),te("resize",(function(){l(window.innerWidth/2)})),o.a.createElement(w,{style:kt(kt({},zt.view(s)),t),ref:f},o.a.createElement(At,{style:zt.toolList,openUIWindow:p,selectedIndex:c,tools:r,updateSelectedIndex:b}),o.a.createElement(bt,{style:zt.toolInfo,selectedTool:r[c]}))};Mt.defaultProps={style:{},tools:[]};var Tt=Mt,Ut={overflow:"hidden",pointerEvents:"auto",zIndex:2147483647};function Ft(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(r),!0).forEach((function(t){Lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt=function(e){var t=e.style,r=e.tools.map((function(e){return"function"==typeof e?e():e})),n=ie((function(e){return e.getState("toolBrowser").isOpen}));return te("keyup",(function(e){var t=e.keyCode,r=e.target.tagName.toUpperCase();"INPUT"!==r&&"TEXTAREA"!==r&&84===t&&ee.dispatch("toolBrowser.toggle")})),n&&o.a.createElement(Tt,{style:Gt(Gt({},Ut),t),tools:r})};Qt.defaultProps={style:{},tools:[]};var _t=Qt,Yt={view:{flex:1,position:"relative",borderRight:"1px solid ".concat(Me[700]),borderBottom:"1px solid ".concat(Me[700]),borderLeft:"1px solid ".concat(Me[700]),borderRadius:"0px 0px 6px 6px",backgroundColor:Me[900],overflow:"hidden"}};function Ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(r),!0).forEach((function(t){Vt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Vt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xt=Object(n.memo)((function(e){var t=e.contentRef,r=e.id,n=e.style,i=ee.getState("uiWindows").byId[r].component,c={closeWindow:function(){return De.close(r)},createWindow:De.create,id:r,theme:ee.getState("ui").theme};return o.a.createElement(w,{style:Nt(Nt({},Yt.view),n),ref:t},o.a.createElement(i,{devOS:c}))}));Xt.defaultProps={contentRef:null,id:null,style:{}};var qt=Xt,Kt=function(e){return{height:"12px",width:"12px",borderRadius:"50%",backgroundColor:e.primaryColor}};function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(r),!0).forEach((function(t){$t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var er=function(e){var t=e.onClick,r=e.primaryColor,n=e.style;return o.a.createElement(m,{style:Jt(Jt({},Kt({primaryColor:r})),n),onClick:t,onDoubleClick:function(e){return e.stopPropagation()}})};er.defaultProps={onClick:function(){},primaryColor:"",style:{}};var tr=er,rr={view:{display:"flex"},marginRight:{marginRight:"6px"}};function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(r),!0).forEach((function(t){ir(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ir(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cr=function(e){var t=e.isFocused,r=e.onClose,n=e.style;return o.a.createElement(m,{style:or(or({},rr.view),n)},o.a.createElement(tr,{style:rr.marginRight,primaryColor:t?Ue[500]:Me[550],onClick:r}),o.a.createElement(tr,{style:rr.marginRight,primaryColor:t?Ge[700]:Me[550]}),o.a.createElement(tr,{primaryColor:t?Te[500]:Me[550]}))};cr.defaultProps={isFocused:!1,onClose:function(){},style:{}};var ur=cr;function ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ar(Object(r),!0).forEach((function(t){lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fr={view:{display:"flex",justifyContent:"center",alignItems:"center",padding:"0px 6px",backgroundColor:Me[750],overflow:"hidden",borderTop:"1px solid ".concat(Me[600]),borderRight:"1px solid ".concat(Me[600]),borderLeft:"1px solid ".concat(Me[600]),borderRadius:"6px 6px 0px 0px"},focused:function(e){return e&&{backgroundColor:Me[800]}},actionButtons:{flex:1,paddingRight:"16px"},title:sr(sr({color:Me[50],fontSize:"13px",fontWeight:700,paddingRight:"16px"},Qe.none),Le.ellipsis),flexSpacer:{flex:1}};function pr(){return(pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function br(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?br(Object(r),!0).forEach((function(t){dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):br(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Or=function(e){var t=e.contentRef,r=e.id,i=e.style,c=e.uiWindowRef,u=function(e){var t=e.onMove,r=void 0===t?function(){}:t,o=e.onMoveEnd,i=void 0===o?function(){}:o,c=e.onMoveStart,u=void 0===c?function(){}:c,a=Object(n.useRef)(!1).current,s=function(e){return a&&r(e)},l=function e(t){a=!1,i(t),window.removeEventListener("mouseup",e),window.removeEventListener("mousemove",s)};return{events:{onMouseDown:function(e){a=!0,u(e),window.addEventListener("mouseup",l),window.addEventListener("mousemove",s)}}}}(function(e){var t=e.contentRef,r=e.id,n=e.uiWindowRef;return{onMove:function(e){De.move({elem:n.current,event:e,id:r}),e.stopPropagation(),e.preventDefault()},onMoveEnd:function(e){De.move({elem:n.current,event:e,id:r,shouldDispatch:!0}),t.current&&(t.current.style.pointerEvents=""),e.stopPropagation(),e.preventDefault()},onMoveStart:function(){t.current&&(t.current.style.pointerEvents="none")}}}({contentRef:t,id:r,uiWindowRef:c})).events,a=ie((function(e){return e.getState("uiWindows").byId[r]})),s=a.isFocused,l=a.isOpaque,f=a.title;return o.a.createElement(m,pr({style:yr(yr(yr({},fr.view),i),fr.focused(s)),onDoubleClick:function(){return ee.dispatch("uiWindows.update",{id:r,isOpaque:!l})}},u),o.a.createElement(ur,{style:fr.actionButtons,isFocused:s,onClose:function(){return De.close(r)}}),o.a.createElement(h,{style:fr.title},f),o.a.createElement(m,{style:fr.flexSpacer}))};Or.defaultProps={contentRef:null,id:null,style:{},uiWindowRef:null};var vr=Or,gr={display:"flex",flex:1,flexDirection:"column",minWidth:0,minHeight:0};function hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wr=function(e){var t=e.children,r=e.contentRef,n=e.id,i=e.minSize,c=e.uiWindowRef,u=e.style,a=function(e){var t=e.contentRef,r=e.id,n=e.uiWindowRef;return{handleResize:function(e,t){return De.resize({dimensions:e,elem:n.current,event:t,id:r})},handleResizeEnd:function(e){if(n.current){var o=n.current.getBoundingClientRect();De.resize({dimensions:o,elem:n.current,event:e,id:r,shouldDispatch:!0})}t.current&&(t.current.style.pointerEvents="")},handleResizeStart:function(){t.current&&(t.current.style.pointerEvents="none")}}}({contentRef:r,id:n,uiWindowRef:c}),s=a.handleResize,l=a.handleResizeEnd,f=a.handleResizeStart;return o.a.createElement(v,{style:mr(mr({},u),gr),minHeight:i.height,minWidth:i.width,onResize:s,onResizeEnd:l,onResizeStart:f},t)};wr.defaultProps={children:null,contentRef:null,id:null,minSize:{height:0,width:0},uiWindowRef:null,style:{}};var Pr=wr,xr={view:function(e){var t=e.position,r=t.x,n=t.y,o=e.size,i=o.width,c=o.height,u=e.isOpaque,a=e.renderIndex;return{position:"absolute",transform:"translate(".concat(r,"px, ").concat(n,"px)"),display:"flex",height:"".concat(c,"px"),width:"".concat(i,"px"),borderRadius:"6px",opacity:u?1:.1,pointerEvents:u?"auto":"none",boxShadow:"rgba(0, 0, 0, 0.19) 0px 10px 15px -3px, 0 4px 6px -2px rgba(0, 0, 0, 0.05)",zIndex:a}},header:{pointerEvents:"auto",minHeight:"24px",height:"24px"}};function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){Dr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Dr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ar=function(e){var t=e.id,r=e.style,i=Object(n.useRef)(null),c=Object(n.useRef)(null),u=ie((function(e){return e.getState("uiWindows").byId[t]}));return o.a.createElement(w,{style:Er(Er({},xr.view(u)),r),onMouseDown:function(){return!u.isFocused&&ee.dispatch("uiWindows.focus",t)},ref:c},o.a.createElement(Pr,{id:t,contentRef:i,minSize:u.minSize,uiWindowRef:c},o.a.createElement(vr,{style:xr.header,id:t,contentRef:i,uiWindowRef:c}),o.a.createElement(qt,{id:t,contentRef:i})))};Ar.defaultProps={id:null,style:{}};var Rr=Ar,zr=r(4),Ir=r.n(zr);function kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(r),!0).forEach((function(t){Wr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Br=function(e){var t=e.style,r=ie((function(e){return e.getState("uiWindows").ids}));return o.a.createElement(m,{style:Cr(Cr({},Ir.a.view),t)},r.map((function(e){return o.a.createElement(Rr,{key:"UI_WINDOW_".concat(e),id:e})})))};Br.defaultProps={style:{}};var Mr=Br,Tr={position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:2147483647,boxSizing:"border-box",verticalAlign:"baseline",lineHeight:"1.5",border:0,margin:0,padding:0,overflow:"hidden",pointerEvents:"none",color:"#424242",fontSize:"14px",fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"};function Ur(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(r),!0).forEach((function(t){Gr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ur(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Lr=function(e){var t=e.style,r=e.themeColors,i=e.tools;return Object(n.useEffect)((function(){r&&ee.dispatch("ui.updateTheme",{colors:r})}),[]),o.a.createElement(m,{style:Fr(Fr({},Tr),t)},o.a.createElement(_t,{tools:i}),o.a.createElement(Mr,null))};Lr.defaultProps={style:{},themeColors:null,tools:[]};var Qr=Lr;t.default=Qr}])}));
{
"name": "react-dev-os",
"author": "Scotty Rogers",
"version": "0.1.7",
"version": "0.1.8",
"description": "An interactive development environment for react apps.",

@@ -6,0 +6,0 @@ "license": "ISC",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc