diff --git a/tgui/packages/tgui/components/Knob.js b/tgui/packages/tgui/components/Knob.js index ce66accfbde..edf97d64cef 100644 --- a/tgui/packages/tgui/components/Knob.js +++ b/tgui/packages/tgui/components/Knob.js @@ -103,12 +103,14 @@ export const Knob = (props) => { )} + viewBox="0 0 100 100" + overflow="visible"> + viewBox="0 0 100 100" + overflow="visible"> { export const AirlockElectronics = (props, context) => { return ( - + diff --git a/tgui/packages/tgui/interfaces/EmotePanelEditor.js b/tgui/packages/tgui/interfaces/EmotePanelEditor.js index c153d84c1a0..81f926a2b88 100644 --- a/tgui/packages/tgui/interfaces/EmotePanelEditor.js +++ b/tgui/packages/tgui/interfaces/EmotePanelEditor.js @@ -7,7 +7,7 @@ export const EmotePanelEditor = (props, context) => { const { customEmotes, allHumanEmotes } = data; return ( - + {allHumanEmotes.sort().map((emote) => ( { const { emped, active, area, position, saved } = data; return ( - + {emped ? ( diff --git a/tgui/packages/tgui/interfaces/ReligiousTool.js b/tgui/packages/tgui/interfaces/ReligiousTool.js index 9ca7a2b01dd..0945ec7dee1 100644 --- a/tgui/packages/tgui/interfaces/ReligiousTool.js +++ b/tgui/packages/tgui/interfaces/ReligiousTool.js @@ -79,7 +79,7 @@ const GetInfoItem = (title, list) => { } else { listItems = list.map((elem) => (
  • - {toTitleCase(elem)} + {toTitleCase(elem)}
  • )); } @@ -121,7 +121,7 @@ const ReligionTab = (props, context) => {
  • - + Favor: {favor} / {max_favor} {' '} @@ -130,7 +130,9 @@ const ReligionTab = (props, context) => {
  • - Piety: {piety} + + Piety: {piety} +
  • @@ -164,7 +166,7 @@ const GetAspectBox = (title, aspects, need_br = true) => { {Object.keys(aspects).map((aspect) => (
  • - + {aspect} = {aspects[aspect]}
  • @@ -187,12 +189,16 @@ const GetCostsBox = (favor, piety, need_br = true) => { {!!favor && (
  • - {favor} favor + + {favor} favor +
  • )} {!!piety && (
  • - {piety} piety + + {piety} piety +
  • )}
    @@ -207,7 +213,7 @@ const SectSelectTab = (props, context) => { const { sects, holds_religious_tool } = data; return ( -
    +
    {sects.map((sect) => ( { ))} -
    +
    {cat === 'RITES' && } {cat === 'SECTS' && } @@ -333,7 +339,7 @@ const ERitesTab = (props, context) => { {rite.tips.map((tip) => (
  • - {tip.replace(/<[/]?i>/g, '')} + {tip.replace(/<[/]?i>/g, '')}
  • ))}
    @@ -657,7 +663,7 @@ const RiteTab = (props, context) => { {rite.tips.map((tip) => (
  • - {tip.replace(/<[/]?i>/g, '')} + {tip.replace(/<[/]?i>/g, '')}
  • ))}
    diff --git a/tgui/public/tgui-panel.bundle.js b/tgui/public/tgui-panel.bundle.js index bc20f54dbb9..08bad76ffde 100644 --- a/tgui/public/tgui-panel.bundle.js +++ b/tgui/public/tgui-panel.bundle.js @@ -318,7 +318,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function h(l,p){if(l==null)return{};var c={};for(var m in l)if({}.hasOwnProperty.call(l,m)){if(p.includes(m))continue;c[m]=l[m]}return c}var f=e.Knob=function(){function l(p){var c=p.animated,m=p.format,u=p.maxValue,v=p.minValue,y=p.unclamped,E=p.onChange,I=p.onDrag,A=p.step,C=p.stepPixelSize,S=p.suppressFlicker,b=p.unit,T=p.value,N=p.className,M=p.style,x=p.fillValue,F=p.color,V=p.ranges,Y=V===void 0?{}:V,K=p.size,W=K===void 0?1:K,B=p.bipolar,L=p.children,j=h(p,s);return(0,n.normalizeProps)((0,n.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:u,minValue:v,unclamped:y,onChange:E,onDrag:I,step:A,stepPixelSize:C,suppressFlicker:S,unit:b,value:T},{children:function(){function R(D){var U=D.dragging,G=D.editing,H=D.value,Z=D.displayValue,st=D.displayElement,ot=D.inputElement,bt=D.handleDragStart,Pt=(0,r.scale)(x!=null?x:Z,v,u),_=(0,r.scale)(Z,v,u),k=F||(0,r.keyOfMatchingRange)(x!=null?x:H,Y)||"default",rt=Math.min((_-.5)*270,225);return(0,n.normalizeProps)((0,n.createVNode)(1,"div",(0,o.classes)(["Knob","Knob--color--"+k,B&&"Knob--bipolar",N,(0,a.computeBoxClassName)(j)]),[(0,n.createVNode)(1,"div","Knob__circle",(0,n.createVNode)(1,"div","Knob__cursorBox",(0,n.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+rt+"deg)"}}),2),U&&(0,n.createVNode)(1,"div","Knob__popupValue",st,0),(0,n.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,n.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,n.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,n.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((B?2.75:2)-Pt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),ot],0,Object.assign({},(0,a.computeBoxProps)(Object.assign({style:Object.assign({"font-size":W+"em"},M)},j)),{onMouseDown:bt})))}return R}()})))}return l}()},78621:function(g,e,t){"use strict";e.__esModule=!0,e.LabeledControls=void 0;var n=t(89005),r=t(39473),o=["children","wrap"],a=["label","children","mx"];/** + */function h(l,p){if(l==null)return{};var c={};for(var m in l)if({}.hasOwnProperty.call(l,m)){if(p.includes(m))continue;c[m]=l[m]}return c}var f=e.Knob=function(){function l(p){var c=p.animated,m=p.format,u=p.maxValue,v=p.minValue,y=p.unclamped,E=p.onChange,I=p.onDrag,A=p.step,C=p.stepPixelSize,S=p.suppressFlicker,b=p.unit,T=p.value,N=p.className,M=p.style,x=p.fillValue,F=p.color,V=p.ranges,Y=V===void 0?{}:V,K=p.size,W=K===void 0?1:K,B=p.bipolar,L=p.children,j=h(p,s);return(0,n.normalizeProps)((0,n.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:m,maxValue:u,minValue:v,unclamped:y,onChange:E,onDrag:I,step:A,stepPixelSize:C,suppressFlicker:S,unit:b,value:T},{children:function(){function R(D){var U=D.dragging,G=D.editing,H=D.value,Z=D.displayValue,st=D.displayElement,ot=D.inputElement,bt=D.handleDragStart,Pt=(0,r.scale)(x!=null?x:Z,v,u),_=(0,r.scale)(Z,v,u),k=F||(0,r.keyOfMatchingRange)(x!=null?x:H,Y)||"default",rt=Math.min((_-.5)*270,225);return(0,n.normalizeProps)((0,n.createVNode)(1,"div",(0,o.classes)(["Knob","Knob--color--"+k,B&&"Knob--bipolar",N,(0,a.computeBoxClassName)(j)]),[(0,n.createVNode)(1,"div","Knob__circle",(0,n.createVNode)(1,"div","Knob__cursorBox",(0,n.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+rt+"deg)"}}),2),U&&(0,n.createVNode)(1,"div","Knob__popupValue",st,0),(0,n.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,n.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100",overflow:"visible"}),(0,n.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,n.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((B?2.75:2)-Pt*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100",overflow:"visible"}),ot],0,Object.assign({},(0,a.computeBoxProps)(Object.assign({style:Object.assign({"font-size":W+"em"},M)},j)),{onMouseDown:bt})))}return R}()})))}return l}()},78621:function(g,e,t){"use strict";e.__esModule=!0,e.LabeledControls=void 0;var n=t(89005),r=t(39473),o=["children","wrap"],a=["label","children","mx"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 10383871c91..a2dfa889812 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -167,7 +167,7 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */function C(l,d){if(l==null)return{};var c={};for(var g in l)if({}.hasOwnProperty.call(l,g)){if(d.includes(g))continue;c[g]=l[g]}return c}var m=n.Knob=function(){function l(d){var c=d.animated,g=d.format,u=d.maxValue,s=d.minValue,h=d.unclamped,p=d.onChange,S=d.onDrag,T=d.step,y=d.stepPixelSize,E=d.suppressFlicker,N=d.unit,V=d.value,I=d.className,O=d.style,x=d.fillValue,w=d.color,F=d.ranges,W=F===void 0?{}:F,$=d.size,z=$===void 0?1:$,k=d.bipolar,M=d.children,D=C(d,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:g,maxValue:u,minValue:s,unclamped:h,onChange:p,onDrag:S,step:T,stepPixelSize:y,suppressFlicker:E,unit:N,value:V},{children:function(){function A(P){var U=P.dragging,K=P.editing,G=P.value,X=P.displayValue,_=P.displayElement,J=P.inputElement,ce=P.handleDragStart,Ee=(0,a.scale)(x!=null?x:X,s,u),le=(0,a.scale)(X,s,u),re=w||(0,a.keyOfMatchingRange)(x!=null?x:G,W)||"default",ye=Math.min((le-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,r.classes)(["Knob","Knob--color--"+re,k&&"Knob--bipolar",I,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+ye+"deg)"}}),2),U&&(0,e.createVNode)(1,"div","Knob__popupValue",_,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((k?2.75:2)-Ee*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":z+"em"},O)},D)),{onMouseDown:ce})))}return A}()})))}return l}()},78621:function(b,n,t){"use strict";n.__esModule=!0,n.LabeledControls=void 0;var e=t(89005),a=t(39473),r=["children","wrap"],o=["label","children","mx"];/** + */function C(l,d){if(l==null)return{};var c={};for(var g in l)if({}.hasOwnProperty.call(l,g)){if(d.includes(g))continue;c[g]=l[g]}return c}var m=n.Knob=function(){function l(d){var c=d.animated,g=d.format,u=d.maxValue,s=d.minValue,h=d.unclamped,p=d.onChange,S=d.onDrag,T=d.step,y=d.stepPixelSize,E=d.suppressFlicker,N=d.unit,V=d.value,I=d.className,O=d.style,x=d.fillValue,w=d.color,F=d.ranges,W=F===void 0?{}:F,$=d.size,z=$===void 0?1:$,k=d.bipolar,M=d.children,D=C(d,v);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,i.DraggableControl,Object.assign({dragMatrix:[0,-1]},{animated:c,format:g,maxValue:u,minValue:s,unclamped:h,onChange:p,onDrag:S,step:T,stepPixelSize:y,suppressFlicker:E,unit:N,value:V},{children:function(){function A(P){var U=P.dragging,K=P.editing,G=P.value,X=P.displayValue,_=P.displayElement,J=P.inputElement,ce=P.handleDragStart,Ee=(0,a.scale)(x!=null?x:X,s,u),le=(0,a.scale)(X,s,u),re=w||(0,a.keyOfMatchingRange)(x!=null?x:G,W)||"default",ye=Math.min((le-.5)*270,225);return(0,e.normalizeProps)((0,e.createVNode)(1,"div",(0,r.classes)(["Knob","Knob--color--"+re,k&&"Knob--bipolar",I,(0,o.computeBoxClassName)(D)]),[(0,e.createVNode)(1,"div","Knob__circle",(0,e.createVNode)(1,"div","Knob__cursorBox",(0,e.createVNode)(1,"div","Knob__cursor"),2,{style:{transform:"rotate("+ye+"deg)"}}),2),U&&(0,e.createVNode)(1,"div","Knob__popupValue",_,0),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringTrackPivot",(0,e.createVNode)(32,"circle","Knob__ringTrack",null,1,{cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100",overflow:"visible"}),(0,e.createVNode)(32,"svg","Knob__ring Knob__ringFillPivot",(0,e.createVNode)(32,"circle","Knob__ringFill",null,1,{style:{"stroke-dashoffset":Math.max(((k?2.75:2)-Ee*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"}),2,{viewBox:"0 0 100 100",overflow:"visible"}),J],0,Object.assign({},(0,o.computeBoxProps)(Object.assign({style:Object.assign({"font-size":z+"em"},O)},D)),{onMouseDown:ce})))}return A}()})))}return l}()},78621:function(b,n,t){"use strict";n.__esModule=!0,n.LabeledControls=void 0;var e=t(89005),a=t(39473),r=["children","wrap"],o=["label","children","mx"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT @@ -272,15 +272,15 @@ * @file * @copyright 2020 Aleksej Komarov * @license MIT - */var f=(0,r.createLogger)("hotkeys"),v={},C=[e.KEY_ESCAPE,e.KEY_ENTER,e.KEY_SPACE,e.KEY_TAB,e.KEY_CTRL,e.KEY_SHIFT,e.KEY_UP,e.KEY_DOWN,e.KEY_LEFT,e.KEY_RIGHT,e.KEY_F5],m={},l=function(p){if(p===16)return"Shift";if(p===17)return"Ctrl";if(p===18)return"Alt";if(p===33)return"Northeast";if(p===34)return"Southeast";if(p===35)return"Southwest";if(p===36)return"Northwest";if(p===37)return"West";if(p===38)return"North";if(p===39)return"East";if(p===40)return"South";if(p===45)return"Insert";if(p===46)return"Delete";if(p>=48&&p<=57||p>=65&&p<=90)return String.fromCharCode(p);if(p>=96&&p<=105)return"Numpad"+(p-96);if(p>=112&&p<=123)return"F"+(p-111);if(p===188)return",";if(p===189)return"-";if(p===190)return"."},d=function(p){var S=String(p);if(S==="Ctrl+F5"||S==="Ctrl+R"){location.reload();return}if(S!=="Ctrl+F"&&!(p.event.defaultPrevented||p.isModifierKey()||C.includes(p.code))){var T=l(p.code);if(T){var y=v[T];if(y)return f.debug("macro",y),Byond.command(y);if(p.isDown()&&!m[T]){m[T]=!0;var E='KeyDown "'+T+'"';return f.debug(E),Byond.command(E)}if(p.isUp()&&m[T]){m[T]=!1;var N='KeyUp "'+T+'"';return f.debug(N),Byond.command(N)}}}},c=n.acquireHotKey=function(){function h(p){C.push(p)}return h}(),g=n.releaseHotKey=function(){function h(p){var S=C.indexOf(p);S>=0&&C.splice(S,1)}return h}(),u=n.releaseHeldKeys=function(){function h(){for(var p=0,S=Object.keys(m);p=48&&p<=57||p>=65&&p<=90)return String.fromCharCode(p);if(p>=96&&p<=105)return"Numpad"+(p-96);if(p>=112&&p<=123)return"F"+(p-111);if(p===188)return",";if(p===189)return"-";if(p===190)return"."},d=function(p){var S=String(p);if(S==="Ctrl+F5"||S==="Ctrl+R"){location.reload();return}if(S!=="Ctrl+F"&&!(p.event.defaultPrevented||p.isModifierKey()||C.includes(p.code))){var T=l(p.code);if(T){var y=v[T];if(y)return f.debug("macro",y),Byond.command(y);if(p.isDown()&&!m[T]){m[T]=!0;var E='KeyDown "'+T+'"';return f.debug(E),Byond.command(E)}if(p.isUp()&&m[T]){m[T]=!1;var N='KeyUp "'+T+'"';return f.debug(N),Byond.command(N)}}}},c=n.acquireHotKey=function(){function h(p){C.push(p)}return h}(),g=n.releaseHotKey=function(){function h(p){var S=C.indexOf(p);S>=0&&C.splice(S,1)}return h}(),u=n.releaseHeldKeys=function(){function h(){for(var p=0,S=Object.keys(m);p=T.length?s=h?s-1:0:s<0&&(s=h?0:T.length-1);var y=this.buttonRefs[s].current;y&&setTimeout(function(){return y.focus()},1),this.setState({current:s})}return u}(),g.render=function(){function u(){var s=this,h=(0,r.useBackend)(this.context),p=h.act,S=h.data,T=S.title,y=S.message,E=S.buttons,N=S.timeout,V=this.state.current,I=function(){function O(){return s.setCurrent(V,!1)}return O}();return(0,e.createComponentVNode)(2,i.Window,{title:T,width:350,height:150,canClose:N>0,children:[N&&(0,e.createComponentVNode)(2,l,{value:N}),(0,e.createComponentVNode)(2,i.Window.Content,{onFocus:I,onClick:I,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",className:"AlertModal__Message",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{m:1,children:y})})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{my:2,children:(0,e.createComponentVNode)(2,o.Flex,{className:"AlertModal__Buttons",children:E.map(function(O,x){return(0,e.createComponentVNode)(2,o.Flex.Item,{mx:1,children:(0,e.createVNode)(1,"div","Button Button--color--default",O,0,{tabIndex:"0",px:3,onClick:function(){function w(){return p("choose",{choice:O})}return w}(),onKeyDown:function(){function w(F){var W=window.event?F.which:F.keyCode;W===f.KEY_SPACE||W===f.KEY_ENTER?p("choose",{choice:O}):W===f.KEY_LEFT||F.shiftKey&&W===f.KEY_TAB?s.setCurrent(V-1,W===f.KEY_LEFT):(W===f.KEY_RIGHT||W===f.KEY_TAB)&&s.setCurrent(V+1,W===f.KEY_RIGHT)}return w}()},null,s.buttonRefs[x])},x)})})})]})})})]})}return u}(),c}(e.Component),l=n.Loader=function(){function d(c){var g=c.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,o.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(g)*100+"%"}}),2)}return d}()},1478:function(b,n,t){"use strict";n.__esModule=!0,n.Apc=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(195),f=n.Apc=function(){function m(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,C)})})}return m}(),v={2:{color:"good",externalPowerText:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435 \u043E\u0442 \u0441\u0435\u0442\u0438",chargingText:"\u0417\u0430\u0440\u044F\u0436\u0435\u043D"},1:{color:"average",externalPowerText:"\u041D\u0438\u0437\u043A\u043E\u0435 \u043D\u0430\u043F\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u0441\u0435\u0442\u0438",chargingText:"\u0418\u0434\u0451\u0442 \u0437\u0430\u0440\u044F\u0434\u043A\u0430..."},0:{color:"bad",externalPowerText:"\u041D\u0435\u0442 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u043F\u0438\u0442\u0430\u043D\u0438\u044F",chargingText:"\u041D\u0435 \u0437\u0430\u0440\u044F\u0436\u0430\u0435\u0442\u0441\u044F"}},C=function(l,d){var c=(0,a.useBackend)(d),g=c.act,u=c.data,s=u.locked,h=u.isOperating,p=u.externalPower,S=u.powerCellStatus,T=u.powerCellCharge,y=u.chargeMode,E=u.charging,N=u.totalLoad,V=u.coverLocked,I=u.siliconUser,O=u.malfCanHack,x=u.nightshiftLights,w=u.smartlightMode,F=u.powerChannels,W=s&&!I,$=v[p]||v[0],z=v[E]||v[0],k=F||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,r.Section,{title:"\u0421\u0435\u0442\u044C",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0412\u0432\u043E\u0434\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",color:$.color,buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"power-off":"times",content:h?"\u0412\u043A\u043B.":"\u0412\u044B\u043A\u043B.",selected:h&&!W,disabled:W,onClick:function(){function M(){return g("breaker")}return M}()}),children:["[ ",$.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0410\u043A\u043A\u0443\u043C\u0443\u043B\u044F\u0442\u043E\u0440",children:!!S&&(0,e.createComponentVNode)(2,r.ProgressBar,{color:"good",fractionDigits:1,value:T*.01})||(0,e.createComponentVNode)(2,r.Box,{color:"bad",children:"\u0418\u0437\u0432\u043B\u0435\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0437\u0430\u0440\u044F\u0434\u043A\u0438",color:z.color,buttons:(0,e.createComponentVNode)(2,r.Button,{icon:y?"sync":"times",content:y?"\u0410\u0432\u0442.":"\u0412\u044B\u043A\u043B.",disabled:W,onClick:function(){function M(){return g("charge")}return M}()}),children:["[ ",z.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u044B",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[k.map(function(M){var D=M.topicParams;return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:M.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{inline:!0,mx:2,color:M.status>=2?"good":"bad",children:M.status>=2?"\u0412\u043A\u043B.":"\u0412\u044B\u043A\u043B."}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",content:"\u0410\u0432\u0442.",selected:!W&&(M.status===1||M.status===3),disabled:W,onClick:function(){function A(){return g("channel",D.auto)}return A}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"power-off",content:"\u0412\u043A\u043B.",selected:!W&&M.status===2,disabled:W,onClick:function(){function A(){return g("channel",D.on)}return A}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"times",content:"\u0412\u044B\u043A\u043B.",selected:!W&&M.status===0,disabled:W,onClick:function(){function A(){return g("channel",D.off)}return A}()})],4),children:M.powerLoad},M.title)}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041E\u0431\u0449\u0430\u044F \u043D\u0430\u0433\u0440\u0443\u0437\u043A\u0430",children:(0,e.createVNode)(1,"b",null,N,0)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u0420\u0430\u0437\u043D\u043E\u0435",buttons:!!I&&(0,e.createFragment)([!!O&&(0,e.createComponentVNode)(2,r.Button,{icon:"terminal",content:"\u041F\u0435\u0440\u0435\u043F\u0440\u043E\u0448\u0438\u0442\u044C",color:"bad",onClick:function(){function M(){return g("hack")}return M}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:"\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C",onClick:function(){function M(){return g("overload")}return M}()})],0),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041A\u0440\u044B\u0448\u043A\u0430",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:V?"lock":"unlock",content:V?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0430":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0430",disabled:W,onClick:function(){function M(){return g("cover")}return M}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041D\u043E\u0447\u043D\u043E\u0439 \u0440\u0435\u0436\u0438\u043C",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",onClick:function(){function M(){return g("toggle_nightshift")}return M}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0440\u0435\u0436\u0438\u043C \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:w,onClick:function(){function M(){return g("change_smartlight")}return M}()})})]})})],4)}},59179:function(b,n,t){"use strict";n.__esModule=!0,n.Materials=n.Autolathe=void 0;var e=t(89005),a=t(64795),r=t(88510),o=t(72253),i=t(36036),f=t(98595),v=t(25328),C=t(35840),m=t(49968),l=t(87341),d=n.Autolathe=function(){function h(p,S){var T=(0,o.useBackend)(S),y=T.act,E=T.data,N=E.recipes,V=E.busy,I=E.materials,O=E.categories,x=E.coeff,w=(0,o.useSharedState)(S,"category",0),F=w[0],W=w[1],$=(0,o.useSharedState)(S,"searchText",""),z=$[0],k=$[1],M=(0,v.createSearch)(z,function(P){return P.name}),D=(0,a.flow)([(0,r.filter)(function(P){return P.category===O[F]||O[F]==="All"}),z&&(0,r.filter)(M),(0,r.sortBy)(function(P){return P.name.toLowerCase()})])(N),A=(0,a.flow)([(0,r.sortBy)(function(P){return P.toLowerCase()})])(O);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:700,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,s)})}),(0,e.createComponentVNode)(2,i.Section,{title:"Recipes",buttons:(0,e.createComponentVNode)(2,i.Dropdown,{width:"190px",options:A,selected:O[F],onSelected:function(){function P(U){return W(O.indexOf(U))}return P}()}),children:[(0,e.createComponentVNode)(2,i.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function P(U,K){return k(K)}return P}(),mb:1}),D.map(function(P){return(0,e.createComponentVNode)(2,i.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{mr:1,children:(0,e.createVNode)(1,"span",(0,C.classes)(["autolathe32x32",P.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})}),(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,i.Button,{color:P.hidden&&"red"||null,icon:"hammer",iconSpin:V===P.name,disabled:!g(P,I),onClick:function(){function U(){return y("make",{make:P.ref})}return U}(),children:(0,v.toTitleCase)(P.name)}),P.max_mult>1&&(0,e.createComponentVNode)(2,i.Box,{as:"span",children:[5,10,P.max_mult/2>>0,P.max_mult].map(function(U){return u(P,I,y,U)})})]}),(0,e.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,e.createComponentVNode)(2,i.Flex,{direction:"row",visibility:"collapse",children:P.requirements&&Object.keys(P.requirements).map(function(U){return(0,e.createComponentVNode)(2,i.Flex,{width:"100%",children:P.requirements[U]>0&&(0,e.createComponentVNode)(2,c,{name:U,amount:P.requirements[U]/x,formatsi:!0,csspath:I.find(function(K){return K.name===U}).path,width:"50%"})||(0,e.createComponentVNode)(2,i.Flex,{width:"50%"})},U)})||(0,e.createComponentVNode)(2,i.Box,{children:"No resources required."})})})]},P.ref)})]})]})})}return h}(),c=function(p,S){var T=p.name,y=p.csspath,E=p.amount,N=p.color,V=p.style,I=p.direction,O=p.width,x=p.formatsi,w=p.formatmoney,F="0";return E<1&&E>0?F=(0,l.toFixed)(E,2):x?F=(0,m.formatSiUnit)(E,0).replace(" ",""):w?F=(0,m.formatMoney)(E):F=E,(0,e.createComponentVNode)(2,i.Flex,{direction:I,align:"center",width:O,children:[(0,e.createComponentVNode)(2,i.Flex.Item,{children:(0,e.createComponentVNode)(2,i.Box,{className:(0,C.classes)(["sheetmaterials32x32",y]),position:"relative",style:V,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:(0,v.toTitleCase)(T)})})}),(0,e.createComponentVNode)(2,i.Flex.Item,{children:(0,e.createComponentVNode)(2,i.Box,{textColor:N,style:{"text-align":"center"},children:F})})]})},g=function(p,S,T){if(T===void 0&&(T=1),p.requirements===null)return!0;for(var y=Object.keys(p.requirements),E=function(){var x=I[V],w=S.find(function(F){return F.name===x});if(!w)return 0;if(w.amount0});return V.length===0?(0,e.createComponentVNode)(2,i.Box,{width:"100%",textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:V.map(function(I){return(0,e.createComponentVNode)(2,i.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,c,{name:I.name,amount:I.amount,csspath:I.path,formatsi:!0,direction:"column"}),(0,e.createComponentVNode)(2,i.Box,{mt:1,style:{"text-align":"center"}})]},I.name)||null})})}return h}()},47823:function(b,n,t){"use strict";n.__esModule=!0,n.BloomEdit=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.BloomEdit=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.glow_brightness_base,g=d.glow_brightness_power,u=d.glow_contrast_base,s=d.glow_contrast_power,h=d.exposure_brightness_base,p=d.exposure_brightness_power,S=d.exposure_contrast_base,T=d.exposure_contrast_power;return(0,e.createComponentVNode)(2,o.Window,{title:"BloomEdit",width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Bloom Edit",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Brightness Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u0411\u0430\u0437\u043E\u0432\u0430\u044F \u044F\u0440\u043A\u043E\u0441\u0442\u044C \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:c,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_brightness_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Brightness Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:g,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_brightness_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Contrast Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:u,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_contrast_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Contrast Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:s,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_contrast_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Brightness Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:h,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_brightness_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Brightness Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:p,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_brightness_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Contrast Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:S,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_contrast_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Contrast Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:T,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_contrast_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Divider),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043B\u0430\u043C\u043F\u044B \u0441 \u043D\u043E\u0432\u044B\u043C\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438",onClick:function(){function y(){return l("update_lamps")}return y}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",onClick:function(){function y(){return l("default")}return y}()})]})]})})})})}return f}()},33758:function(b,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=[["good","\u0421\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0435"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"],["bad","\u041C\u0451\u0440\u0442\u0432"]],v=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043D\u043E\u0432\u043E\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435."],["blind","bad","\u041A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["hasVirus","average","\u0412 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u0432\u0438\u0440\u0443\u0441\u043D\u044B\u0439 \u043F\u0430\u0442\u043E\u0433\u0435\u043D."],["nearsighted","average","\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],C=[["\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F","oxyLoss"],["\u041C\u043E\u0437\u0433\u043E\u0432\u044B\u0435","brainLoss"],["\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F","toxLoss"],["\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435","radLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435","cloneLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435","fireLoss"],["\u041E\u043F\u044C\u044F\u043D\u0435\u043D\u0438\u0435","drunkenness"]],m={average:[.25,.5],bad:[.5,1/0]},l=function(N,V){for(var I=[],O=0;O0?N.filter(function(V){return!!V}).reduce(function(V,I){return(0,e.createFragment)([V,(0,e.createComponentVNode)(2,o.Box,{children:I},I)],0)},null):null},c=n.BodyScanner=function(){function E(N,V){var I=(0,r.useBackend)(V),O=I.data,x=O.occupied,w=O.occupant,F=w===void 0?{}:w,W=x?(0,e.createComponentVNode)(2,g,{occupant:F}):(0,e.createComponentVNode)(2,y);return(0,e.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:W})})}return E}(),g=function(N){var V=N.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,u,{occupant:V}),(0,e.createComponentVNode)(2,s,{occupant:V}),(0,e.createComponentVNode)(2,h,{occupant:V}),(0,e.createComponentVNode)(2,S,{organs:V.extOrgan}),(0,e.createComponentVNode)(2,T,{organs:V.intOrgan})]})},u=function(N,V){var I=(0,r.useBackend)(V),O=I.act,x=I.data,w=x.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function F(){return O("print_p")}return F}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function F(){return O("ejectify")}return F}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:w.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0440\u043E\u0432\u044C",children:w.blood.hasBlood?(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:w.blood.bloodNormal,value:w.blood.bloodLevel/w.blood.bloodNormal,ranges:{good:[.8,1/0],average:[.6,.8],bad:[-1/0,.6]},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,style:{float:"left"},children:[w.blood.pulse," \u0443\u0434/\u043C\u0438\u043D"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[w.blood.percent,"%"]})]}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u041D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[w.stat][0],children:f[w.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(w.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(w.bodyTempF,0)}),"\xB0F"]})]})})},s=function(N){var V=N.occupant;return V.hasBorer||V.blind||V.nearsighted||V.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:v.map(function(I,O){if(V[I[0]])return(0,e.createComponentVNode)(2,o.Box,{color:I[1],bold:I[1]==="bad",children:I[2]},I[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(N){var V=N.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Table,{children:l(C,function(I,O,x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[I[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!O&&O[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,p,{value:V[I[1]],marginBottom:x0&&"0.5rem",value:V.totalLoss/V.maxHealth,ranges:m,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,style:{float:"left"},children:[!!V.bruteLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(V.bruteLoss,0),"\xA0"]}),!!V.fireLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(V.fireLoss,0)]})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(V.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:d([!!V.internalBleeding&&"\u0410\u0440\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u043E\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!V.status.dead&&"\u041E\u0442\u043A\u0430\u0437",!!V.stump&&"\u041A\u0443\u043B\u044C\u0442\u044F",!!V.missing&&"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"])}),(0,e.createComponentVNode)(2,o.Box,{color:"average",children:d([!!V.lungRuptured&&"\u0420\u0430\u0437\u0440\u044B\u0432 \u043B\u0435\u0433\u043A\u043E\u0433\u043E",!!V.status.broken&&V.status.broken,!!V.germ_level&&V.germ_level,!!V.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(O=V.implant)==null?void 0:O.map(function(x,w){return x.name?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:x.name},w):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},w)}),d([!!V.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!V.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041F\u0440\u043E\u0442\u0435\u0437"})])]})})]},I)})]})})},T=function(N){return N.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041D\u0435\u0442 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u0439"})}):(0,e.createComponentVNode)(2,o.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F"})]}),N.organs.map(function(V,I){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",backgroundColor:I%2!==0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:(!!V.dead||!!V.broken)&&"bad"||!!V.robotic&&"label"||(!!V.germ_level||!!V.bruised)&&"average",width:"33%",children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.damage/V.maxHealth,mt:I>0&&"0.5rem",ranges:m,children:(0,a.round)(V.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",children:d([!!V.germ_level&&V.germ_level])}),d([!!V.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041F\u0440\u043E\u0442\u0435\u0437"}),!!V.assisted&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0412\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442"}),!!V.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"\u041E\u0442\u043A\u0430\u0437"})])]})})]},I)})]})})},y=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},26300:function(b,n,t){"use strict";n.__esModule=!0,n.selectCameras=n.prevNextCamera=n.CameraConsoleContent=n.CameraConsole=void 0;var e=t(89005),a=t(88510),r=t(64795),o=t(35840),i=t(25328),f=t(72253),v=t(36036),C=t(98595),m=n.prevNextCamera=function(){function g(u,s){var h,p;if(!s)return[];var S=u.findIndex(function(T){return T.name===s.name});return[(h=u[S-1])==null?void 0:h.name,(p=u[S+1])==null?void 0:p.name]}return g}(),l=n.selectCameras=function(){function g(u,s){s===void 0&&(s="");var h=(0,i.createSearch)(s,function(p){return p.name});return(0,r.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),s&&(0,a.filter)(h),(0,a.sortBy)(function(p){return p.name})])(u)}return g}(),d=n.CameraConsole=function(){function g(u,s){Byond.winget("mapwindow.map","style").then(function(O){Byond.winset(T,"style",O)});var h=(0,f.useBackend)(s),p=h.act,S=h.data,T=S.mapRef,y=S.activeCamera,E=l(S.cameras),N=m(E,y),V=N[0],I=N[1];return(0,e.createComponentVNode)(2,C.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,C.Window.Content,{children:(0,e.createComponentVNode)(2,c)}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),y&&y.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,v.Button,{icon:"chevron-left",disabled:!V,onClick:function(){function O(){return p("switch_camera",{name:V})}return O}()}),(0,e.createComponentVNode)(2,v.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function O(){return p("switch_camera",{name:I})}return O}()})],4),(0,e.createComponentVNode)(2,v.ByondUi,{className:"CameraConsole__map",params:{id:T,type:"map"}})],4)]})}return g}(),c=n.CameraConsoleContent=function(){function g(u,s){var h=(0,f.useBackend)(s),p=h.act,S=h.data,T=(0,f.useLocalState)(s,"searchText",""),y=T[0],E=T[1],N=S.activeCamera,V=l(S.cameras,y);return(0,e.createComponentVNode)(2,v.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,v.Flex.Item,{children:(0,e.createComponentVNode)(2,v.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(){function I(O,x){return E(x)}return I}()})}),(0,e.createComponentVNode)(2,v.Flex.Item,{height:"100%",children:(0,e.createComponentVNode)(2,v.Section,{fill:!0,scrollable:!0,children:V.map(function(I){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",N&&I.name===N.name&&"Button--selected"]),I.name,0,{title:I.name,onClick:function(){function O(){return p("switch_camera",{name:I.name})}return O}()},I.name)})})})]})}return g}()},52927:function(b,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(49968),f=t(98595),v=n.Canister=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.name,s=g.canLabel,h=g.portConnected,p=g.tankPressure,S=g.releasePressure,T=g.defaultReleasePressure,y=g.minReleasePressure,E=g.maxReleasePressure,N=g.valveOpen,V=g.hasHoldingTank,I=g.holdingTank;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:232,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:u,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Relabel",disabled:!s,onClick:function(){function O(){return c("relabel")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:p,format:function(){function O(x){return x<1e4?(0,a.toFixed)(x)+" kPa":(0,i.formatSiUnit)(x*1e3,1,"Pa")}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{size:1.25,color:!!N&&"yellow",value:S,unit:"kPa",minValue:y,maxValue:E,step:5,stepPixelSize:1,onDrag:function(){function O(x,w){return c("pressure",{pressure:w})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){function O(){return c("pressure",{pressure:E})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){function O(){return c("pressure",{pressure:T})}return O}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:N?V?"caution":"danger":null,content:N?"Open":"Closed",onClick:function(){function O(){return c("valve")}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:h?"plug":"times",color:h?"good":"bad"}),(0,e.createComponentVNode)(2,o.Tooltip,{content:h?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!V&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",color:N&&"danger",content:"Eject",onClick:function(){function O(){return c("eject")}return O}()}),children:[!!V&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:I.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:I.tankPressure})," kPa"]})]}),!V&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]})]})})}return C}()},47250:function(b,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=["res","value","dotsize"];function f(g,u){if(g==null)return{};var s={};for(var h in g)if({}.hasOwnProperty.call(g,h)){if(u.includes(h))continue;s[h]=g[h]}return s}function v(g,u){g.prototype=Object.create(u.prototype),g.prototype.constructor=g,C(g,u)}function C(g,u){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,h){return s.__proto__=h,s},C(g,u)}var m=24,l=function(g){function u(h){var p;return p=g.call(this,h)||this,p.canvasRef=(0,e.createRef)(),p.onCVClick=h.onCanvasClick,p}v(u,g);var s=u.prototype;return s.componentDidMount=function(){function h(){this.drawCanvas(this.props)}return h}(),s.componentDidUpdate=function(){function h(){this.drawCanvas(this.props)}return h}(),s.drawCanvas=function(){function h(p){var S=this.canvasRef.current.getContext("2d"),T=p.value,y=T.length;if(y){var E=T[0].length,N=Math.round(this.canvasRef.current.width/y),V=Math.round(this.canvasRef.current.height/E);S.save(),S.scale(N,V);for(var I=0;I0?"good":"average",children:(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T.health)})})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[T.stat][0],children:f[T.stat][1]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,r.LabeledList.Divider),i.map(function(O){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:O.label,children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:T[O.type]/100,ranges:{bad:[.25,1/0]},children:(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T[O.type])})})},O.id)})]}):(0,e.createComponentVNode)(2,r.Flex,{height:"100%",textAlign:"center",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,r.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",onClick:function(){function O(){return u("ejectBeaker")}return O}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u043E\u0441\u0443\u0434"}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,r.Button,{icon:"power-off",onClick:function(){function O(){return u(h?"switchOff":"switchOn")}return O}(),selected:h,disabled:V||!I,children:h?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),I?(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043E\u0437\u0434\u0443\u0445\u0430",color:E,children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:y})," K"]}):(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0432\u043E\u0437\u0434\u0443\u0445\u0430",color:"bad",children:"\u041D\u0435\u0442 \u0432\u043E\u0437\u0434\u0443\u0445\u0430"}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0443\u0434",children:(0,e.createComponentVNode)(2,m)})]})})],4)},m=function(d,c){var g=(0,a.useBackend)(c),u=g.act,s=g.data,h=s.isBeakerLoaded,p=s.beakerVolume;return h?(0,e.createComponentVNode)(2,r.Box,{color:!p&&"bad",children:p?(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:p,format:function(){function S(T){return Math.round(T)+" \u044E\u043D\u0438\u0442\u043E\u0432 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"}return S}()}):"\u0421\u043E\u0441\u0443\u0434 \u043F\u0443\u0441\u0442"}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})}},76310:function(b,n,t){"use strict";n.__esModule=!0,n.CustomAnnounce=void 0;var e=t(89005),a=t(72253),r=t(98595),o=t(36036),i=n.CustomAnnounce=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,r.Window,{width:600,height:500,children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,position:"relative",children:(0,e.createComponentVNode)(2,r.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Preview",fill:!0,children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,fontSize:"24px",children:d.title===null?"":d.title}),(0,e.createComponentVNode)(2,o.Box,{fontSize:"18px",children:d.subtitle===null?"":d.subtitle}),(0,e.createComponentVNode)(2,o.Box,{mt:2,children:d.message===null?"":d.message}),(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:[d.announcer!==null&&"-"," ",d.announcer]}),(0,e.createComponentVNode)(2,o.Box,{mt:2,children:['Current sound is "',d.sound,'"']})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mx:1,mb:1,children:(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Content",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Title",icon:"heading",onClick:function(){function c(){return l("title")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Subtitle",icon:"paragraph",onClick:function(){function c(){return l("subtitle")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Message",icon:"pencil-alt",onClick:function(){function c(){return l("message")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,mr:2,content:"Announcer",icon:"bullhorn",onClick:function(){function c(){return l("announcer")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Chat",icon:"comments",selected:d.flags.text,onClick:function(){function c(){return l("flag_text")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{mx:1,content:"Sound",icon:"volume-up",selected:d.flags.sound,onClick:function(){function c(){return l("flag_sound")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Consoles",icon:"sticky-note",selected:d.flags.comms,onClick:function(){function c(){return l("flag_comms")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sound",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Existing",icon:"list",disabled:!d.rights.funevent,onClick:function(){function c(){return l("sound_select")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Upload",icon:"file-upload",disabled:!(d.rights.sound&&d.rights.funevent),onClick:function(){function c(){return l("sound_upload")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,ml:1,value:parseInt(d.volume,10),disabled:!(d.rights.sound&&d.rights.funevent),width:"60px",step:1,unit:"%",minValue:0,maxValue:200,onChange:function(){function c(g,u){return l("volume",{volume:u})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Test",icon:"user",onClick:function(){function c(){return l("test",{source:"admin"})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Sample",icon:"closed-captioning",onClick:function(){function c(){return l("test",{source:"sample"})}return c}()})]})]}),(0,e.createComponentVNode)(2,o.Box,{mt:2,mb:1,children:(0,e.createComponentVNode)(2,o.Button,{content:"Select preset",icon:"archive",disabled:!d.rights.funevent,onClick:function(){function c(){return l("preset_select")}return c}()})}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Make an announcement",onClick:function(){function c(){return l("announce")}return c}()})})]})})]})})}return f}()},89643:function(b,n,t){"use strict";n.__esModule=!0,n.DisposalUnit=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.DisposalUnit=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c,g;return d.mode===2?(c="good",g="Ready"):d.mode===0?(c="bad",g="Off"):d.mode<0?(c="bad",g="N/A"):d.mode===1?(c="average",g="Pressurizing"):(c="average",g="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:180,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"State",color:c,children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:d.pressure,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-off",disabled:d.isAI||d.panel_open,content:"Disengaged",selected:d.flushing?null:"selected",onClick:function(){function u(){return l("handle-0")}return u}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-on",disabled:d.isAI||d.panel_open,content:"Engaged",selected:d.flushing?"selected":null,onClick:function(){function u(){return l("handle-1")}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-off",disabled:d.mode===-1,content:"Off",selected:d.mode?null:"selected",onClick:function(){function u(){return l("pump-0")}return u}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-on",disabled:d.mode===-1,content:"On",selected:d.mode?"selected":null,onClick:function(){function u(){return l("pump-1")}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,r.Button,{icon:"sign-out-alt",disabled:d.isAI,content:"Eject Contents",onClick:function(){function u(){return l("eject")}return u}()})})]})})})})}return f}()},96305:function(b,n,t){"use strict";n.__esModule=!0,n.EmotePanelEditor=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.EmotePanelEditor=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.customEmotes,g=d.allHumanEmotes;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:g.sort().map(function(u){return(0,e.createComponentVNode)(2,r.Box,{fontSize:"20px",children:(0,e.createComponentVNode)(2,r.Button.Checkbox,{checked:c.includes(u),onClick:function(){function s(){return l("switchEmote",{emote:u})}return s}(),content:u})},u)})})})}return f}()},92493:function(b,n,t){"use strict";n.__esModule=!0,n.Filteriffic=void 0;var e=t(89005),a=t(88510),r=t(87341),o=t(87341),i=t(72253),f=t(36036),v=t(98595),C=["type","priority"];function m(T,y){if(T==null)return{};var E={};for(var N in T)if({}.hasOwnProperty.call(T,N)){if(y.includes(N))continue;E[N]=T[N]}return E}var l=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act;return(0,e.createComponentVNode)(2,f.NumberInput,{value:N,minValue:-500,maxValue:500,stepPixelSize:5,width:"39px",onDrag:function(){function w(F,W){var $;return x("modify_filter_value",{name:I,new_data:($={},$[V]=W,$)})}return w}()})},d=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act,w=(0,i.useLocalState)(E,I+"-"+V,.01),F=w[0],W=w[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{value:N,minValue:-500,maxValue:500,stepPixelSize:4,step:F,format:function(){function $(z){return(0,r.toFixed)(z,(0,o.numberOfDecimalDigits)(F))}return $}(),width:"80px",onDrag:function(){function $(z,k){var M;return x("transition_filter_value",{name:I,new_data:(M={},M[V]=k,M)})}return $}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,f.NumberInput,{value:F,step:.01,format:function(){function $(z){return(0,r.toFixed)(z,4)}return $}(),width:"70px",onChange:function(){function $(z,k){return W(k)}return $}()})],4)},c=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act;return(0,e.createComponentVNode)(2,f.Input,{value:N,width:"250px",onInput:function(){function w(F,W){var $;return x("modify_filter_value",{name:I,new_data:($={},$[V]=W,$)})}return w}()})},g=function(y,E){var N=y.value,V=y.filterName,I=y.name,O=(0,i.useBackend)(E),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_color_value",{name:V})}return w}()}),(0,e.createComponentVNode)(2,f.ColorBox,{color:N,mr:.5}),(0,e.createComponentVNode)(2,f.Input,{value:N,width:"90px",onInput:function(){function w(F,W){var $;return x("transition_filter_value",{name:V,new_data:($={},$[I]=W,$)})}return w}()})],4)},u=function(y,E){var N=y.value,V=y.filterName,I=(0,i.useBackend)(E),O=I.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pencil-alt",onClick:function(){function x(){return O("modify_icon_value",{name:V})}return x}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:N})],4)},s=function(y,E){var N=y.name,V=y.value,I=y.filterName,O=y.filterType,x=(0,i.useBackend)(E),w=x.act,F=x.data,W=F.filter_info,$=W[O].flags;return(0,a.map)(function(z,k){return(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:V&z,content:k,onClick:function(){function M(){var D;return w("modify_filter_value",{name:I,new_data:(D={},D[N]=V^z,D)})}return M}()})})($)},h=function(y,E){var N=y.name,V=y.value,I=y.hasValue,O=y.filterName,x={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},y))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},y))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},y))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},y))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},y))),flags:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},y)))},w={x:"float",y:"float",icon:"icon",render_source:"string",flags:"flags",size:"float",color:"color",offset:"float",radius:"float",falloff:"float",density:"int",threshold:"float",factor:"float",repeat:"int",blend_mode:"int"};return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:N,children:[x[w[N]]||"Not Found (This is an error)"," ",!I&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"average",children:"(Default)"})]})},p=function(y,E){var N=(0,i.useBackend)(E),V=N.act,I=N.data,O=y.name,x=y.filterDataEntry,w=x.type,F=x.priority,W=m(x,C),$=I.filter_info,z=Object.keys($[w].defaults);return(0,e.createComponentVNode)(2,f.Collapsible,{title:O+" ("+w+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{value:F,stepPixelSize:10,width:"60px",onChange:function(){function k(M,D){return V("change_priority",{name:O,new_priority:D})}return k}()}),(0,e.createComponentVNode)(2,f.Button.Input,{content:"Rename",placeholder:O,onCommit:function(){function k(M,D){return V("rename_filter",{name:O,new_name:D})}return k}(),width:"90px"}),(0,e.createComponentVNode)(2,f.Button.Confirm,{icon:"minus",onClick:function(){function k(){return V("remove_filter",{name:O})}return k}()})],4),children:(0,e.createComponentVNode)(2,f.Section,{level:2,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:z.map(function(k){var M=$[w].defaults,D=W[k]||M[k],A=D!==M[k];return(0,e.createComponentVNode)(2,h,{filterName:O,filterType:w,name:k,value:D,hasValue:A},k)})})})})},S=n.Filteriffic=function(){function T(y,E){var N=(0,i.useBackend)(E),V=N.act,I=N.data,O=I.target_name||"Unknown Object",x=I.target_filter_data||{},w=Object.keys(x).length!==0,F=I.filter_info,W=(0,i.useLocalState)(E,"massApplyPath",""),$=W[0],z=W[1],k=(0,i.useLocalState)(E,"hidden",!1),M=k[0],D=k[1];return(0,e.createComponentVNode)(2,v.Window,{title:"Filteriffic",width:500,height:500,children:(0,e.createComponentVNode)(2,v.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.NoticeBox,{danger:!0,children:"DO NOT MESS WITH EXISTING FILTERS IF YOU DO NOT KNOW THE CONSEQUENCES. YOU HAVE BEEN WARNED."}),(0,e.createComponentVNode)(2,f.Section,{title:M?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Box,{mr:.5,inline:!0,children:"MASS EDIT:"}),(0,e.createComponentVNode)(2,f.Input,{value:$,width:"100px",onInput:function(){function A(P,U){return z(U)}return A}()}),(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Apply",confirmContent:"ARE YOU SURE?",onClick:function(){function A(){return V("mass_apply",{path:$})}return A}()})],4):(0,e.createComponentVNode)(2,f.Box,{inline:!0,onDblClick:function(){function A(){return D(!0)}return A}(),children:O}),buttons:(0,e.createComponentVNode)(2,f.Dropdown,{icon:"plus",displayText:"Add Filter",nochevron:!0,options:Object.keys(F),onSelected:function(){function A(P){return V("add_filter",{name:"default",priority:10,type:P})}return A}()}),children:w?(0,a.map)(function(A,P){return(0,e.createComponentVNode)(2,p,{filterDataEntry:A,name:P},P)})(x):(0,e.createComponentVNode)(2,f.Box,{children:"No filters"})})]})})}return T}()},53424:function(b,n,t){"use strict";n.__esModule=!0,n.GPS=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(u){return u?"("+u.join(", ")+")":"ERROR"},f=function(u){return u*(180/Math.PI)},v=function(u,s){if(!(!u||!s)){if(u[2]!==s[2])return null;var h=Math.atan2(s[1]-u[1],s[0]-u[0]),p=Math.sqrt(Math.pow(s[1]-u[1],2)+Math.pow(s[0]-u[0],2));return{angle:f(h),distance:p}}},C=n.GPS=function(){function g(u,s){var h=(0,a.useBackend)(s),p=h.data,S=p.emped,T=p.active,y=p.area,E=p.position,N=p.saved;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Flex,{direction:"column",height:"100%",children:S?(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,m,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,l)}),T?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,d,{area:y,position:E})}),N&&(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,d,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,m)],0)})})})}return g}(),m=function(u,s){var h=u.emp;return(0,e.createComponentVNode)(2,r.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,r.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,r.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,r.Icon,{name:h?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),h?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},l=function(u,s){var h=(0,a.useBackend)(s),p=h.act,S=h.data,T=S.active,y=S.tag,E=S.same_z,N=(0,a.useLocalState)(s,"newTag",y),V=N[0],I=N[1];return(0,e.createComponentVNode)(2,r.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,r.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"On":"Off",onClick:function(){function O(){return p("toggle")}return O}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,r.Input,{width:"5rem",value:y,onEnter:function(){function O(){return p("tag",{newtag:V})}return O}(),onInput:function(){function O(x,w){return I(w)}return O}()}),(0,e.createComponentVNode)(2,r.Button,{disabled:y===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function O(){return p("tag",{newtag:V})}return O}(),children:(0,e.createComponentVNode)(2,r.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,r.Button,{selected:!E,icon:E?"compress":"expand",content:E?"Local Sector":"Global",onClick:function(){function O(){return p("same_z")}return O}()})})]})})},d=function(u,s){var h=u.title,p=u.area,S=u.position;return(0,e.createComponentVNode)(2,r.Section,{title:h||"Position",children:(0,e.createComponentVNode)(2,r.Box,{fontSize:"1.5rem",children:[p&&(0,e.createFragment)([p,(0,e.createVNode)(1,"br")],0),i(S)]})})},c=function(u,s){var h=(0,a.useBackend)(s),p=h.data,S=p.position,T=p.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,r.Section,Object.assign({title:"Signals",overflow:"auto"},u,{children:(0,e.createComponentVNode)(2,r.Table,{children:T.map(function(y){return Object.assign({},y,v(S,y.position))}).map(function(y,E){return(0,e.createComponentVNode)(2,r.Table.Row,{backgroundColor:E%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,r.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:y.tag}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",color:"grey",children:y.area}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:y.distance!==void 0&&(0,e.createComponentVNode)(2,r.Box,{opacity:Math.max(1-Math.min(y.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,r.Icon,{name:y.distance>0?"arrow-right":"circle",rotation:-y.angle}),"\xA0",Math.floor(y.distance)+"m"]})}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:i(y.position)})]},E)})})})))}},48657:function(b,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(49148),f=n.GuestPass=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,r.Tabs,{children:[(0,e.createComponentVNode)(2,r.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function g(){return d("mode",{mode:0})}return g}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,r.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function g(){return d("mode",{mode:1})}return g}(),children:["Records (",c.issue_log.length,")"]})]}),(0,e.createComponentVNode)(2,r.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,r.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("scan")}return g}()})})})}),!c.showlogs&&(0,e.createComponentVNode)(2,r.Section,{title:"Issue Guest Pass",children:[(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("giv_name")}return g}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("reason")}return g}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("duration")}return g}()})})]}),!!c.scan_name&&(0,e.createFragment)([(0,e.createComponentVNode)(2,i.AccessList,{grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function g(u){return d("access",{access:u})}return g}(),grantAll:function(){function g(){return d("grant_all")}return g}(),denyAll:function(){function g(){return d("clear_all")}return g}(),grantDep:function(){function g(u){return d("grant_region",{region:u})}return g}(),denyDep:function(){function g(u){return d("deny_region",{region:u})}return g}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function g(){return d("issue")}return g}()})],4)]}),!!c.showlogs&&(0,e.createComponentVNode)(2,r.Section,{title:"Issuance Log",children:!!c.issue_log.length&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList,{children:c.issue_log.map(function(g,u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:g},u)})}),(0,e.createComponentVNode)(2,r.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function g(){return d("print")}return g}()})],4)||(0,e.createComponentVNode)(2,r.Box,{children:"None."})})]})})}return v}()},76076:function(b,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var e=t(89005),a=t(25328),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(92986),C=t(56518);/** +*/var m=n.AlertModal=function(d){function c(){var u;return u=d.call(this)||this,u.buttonRefs=[(0,e.createRef)()],u.state={current:0},u}v(c,d);var g=c.prototype;return g.componentDidMount=function(){function u(){for(var s=(0,r.useBackend)(this.context),h=s.data,p=h.buttons,S=this.state.current,T=this.buttonRefs[S].current,y=1;y=T.length?s=h?s-1:0:s<0&&(s=h?0:T.length-1);var y=this.buttonRefs[s].current;y&&setTimeout(function(){return y.focus()},1),this.setState({current:s})}return u}(),g.render=function(){function u(){var s=this,h=(0,r.useBackend)(this.context),p=h.act,S=h.data,T=S.title,y=S.message,E=S.buttons,N=S.timeout,V=this.state.current,I=function(){function O(){return s.setCurrent(V,!1)}return O}();return(0,e.createComponentVNode)(2,i.Window,{title:T,width:350,height:150,canClose:N>0,children:[N&&(0,e.createComponentVNode)(2,l,{value:N}),(0,e.createComponentVNode)(2,i.Window.Content,{onFocus:I,onClick:I,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",className:"AlertModal__Message",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Box,{m:1,children:y})})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{my:2,children:(0,e.createComponentVNode)(2,o.Flex,{className:"AlertModal__Buttons",children:E.map(function(O,x){return(0,e.createComponentVNode)(2,o.Flex.Item,{mx:1,children:(0,e.createVNode)(1,"div","Button Button--color--default",O,0,{tabIndex:"0",px:3,onClick:function(){function w(){return p("choose",{choice:O})}return w}(),onKeyDown:function(){function w(F){var W=window.event?F.which:F.keyCode;W===f.KEY_SPACE||W===f.KEY_ENTER?p("choose",{choice:O}):W===f.KEY_LEFT||F.shiftKey&&W===f.KEY_TAB?s.setCurrent(V-1,W===f.KEY_LEFT):(W===f.KEY_RIGHT||W===f.KEY_TAB)&&s.setCurrent(V+1,W===f.KEY_RIGHT)}return w}()},null,s.buttonRefs[x])},x)})})})]})})})]})}return u}(),c}(e.Component),l=n.Loader=function(){function d(c){var g=c.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,o.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(g)*100+"%"}}),2)}return d}()},1478:function(b,n,t){"use strict";n.__esModule=!0,n.Apc=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(195),f=n.Apc=function(){function m(l,d){return(0,e.createComponentVNode)(2,o.Window,{width:500,height:445,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,C)})})}return m}(),v={2:{color:"good",externalPowerText:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435 \u043E\u0442 \u0441\u0435\u0442\u0438",chargingText:"\u0417\u0430\u0440\u044F\u0436\u0435\u043D"},1:{color:"average",externalPowerText:"\u041D\u0438\u0437\u043A\u043E\u0435 \u043D\u0430\u043F\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u0441\u0435\u0442\u0438",chargingText:"\u0418\u0434\u0451\u0442 \u0437\u0430\u0440\u044F\u0434\u043A\u0430..."},0:{color:"bad",externalPowerText:"\u041D\u0435\u0442 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u043F\u0438\u0442\u0430\u043D\u0438\u044F",chargingText:"\u041D\u0435 \u0437\u0430\u0440\u044F\u0436\u0430\u0435\u0442\u0441\u044F"}},C=function(l,d){var c=(0,a.useBackend)(d),g=c.act,u=c.data,s=u.locked,h=u.isOperating,p=u.externalPower,S=u.powerCellStatus,T=u.powerCellCharge,y=u.chargeMode,E=u.charging,N=u.totalLoad,V=u.coverLocked,I=u.siliconUser,O=u.malfCanHack,x=u.nightshiftLights,w=u.smartlightMode,F=u.powerChannels,W=s&&!I,$=v[p]||v[0],z=v[E]||v[0],k=F||[];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.InterfaceLockNoticeBox),(0,e.createComponentVNode)(2,r.Section,{title:"\u0421\u0435\u0442\u044C",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0412\u0432\u043E\u0434\u043D\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",color:$.color,buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"power-off":"times",content:h?"\u0412\u043A\u043B.":"\u0412\u044B\u043A\u043B.",selected:h&&!W,disabled:W,onClick:function(){function M(){return g("breaker")}return M}()}),children:["[ ",$.externalPowerText," ]"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0410\u043A\u043A\u0443\u043C\u0443\u043B\u044F\u0442\u043E\u0440",children:!!S&&(0,e.createComponentVNode)(2,r.ProgressBar,{color:"good",fractionDigits:1,value:T*.01})||(0,e.createComponentVNode)(2,r.Box,{color:"bad",children:"\u0418\u0437\u0432\u043B\u0435\u0447\u0451\u043D"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C \u0437\u0430\u0440\u044F\u0434\u043A\u0438",color:z.color,buttons:(0,e.createComponentVNode)(2,r.Button,{icon:y?"sync":"times",content:y?"\u0410\u0432\u0442.":"\u0412\u044B\u043A\u043B.",disabled:W,onClick:function(){function M(){return g("charge")}return M}()}),children:["[ ",z.chargingText," ]"]})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u044B",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[k.map(function(M){var D=M.topicParams;return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:M.title,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{inline:!0,mx:2,color:M.status>=2?"good":"bad",children:M.status>=2?"\u0412\u043A\u043B.":"\u0412\u044B\u043A\u043B."}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",content:"\u0410\u0432\u0442.",selected:!W&&(M.status===1||M.status===3),disabled:W,onClick:function(){function A(){return g("channel",D.auto)}return A}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"power-off",content:"\u0412\u043A\u043B.",selected:!W&&M.status===2,disabled:W,onClick:function(){function A(){return g("channel",D.on)}return A}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"times",content:"\u0412\u044B\u043A\u043B.",selected:!W&&M.status===0,disabled:W,onClick:function(){function A(){return g("channel",D.off)}return A}()})],4),children:M.powerLoad},M.title)}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041E\u0431\u0449\u0430\u044F \u043D\u0430\u0433\u0440\u0443\u0437\u043A\u0430",children:(0,e.createVNode)(1,"b",null,N,0)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u0420\u0430\u0437\u043D\u043E\u0435",buttons:!!I&&(0,e.createFragment)([!!O&&(0,e.createComponentVNode)(2,r.Button,{icon:"terminal",content:"\u041F\u0435\u0440\u0435\u043F\u0440\u043E\u0448\u0438\u0442\u044C",color:"bad",onClick:function(){function M(){return g("hack")}return M}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:"\u041F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C",onClick:function(){function M(){return g("overload")}return M}()})],0),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041A\u0440\u044B\u0448\u043A\u0430",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:V?"lock":"unlock",content:V?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0430":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u0430",disabled:W,onClick:function(){function M(){return g("cover")}return M}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041D\u043E\u0447\u043D\u043E\u0439 \u0440\u0435\u0436\u0438\u043C",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",onClick:function(){function M(){return g("toggle_nightshift")}return M}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0440\u0435\u0436\u0438\u043C \u043E\u0441\u0432\u0435\u0449\u0435\u043D\u0438\u044F",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"lightbulb-o",content:w,onClick:function(){function M(){return g("change_smartlight")}return M}()})})]})})],4)}},59179:function(b,n,t){"use strict";n.__esModule=!0,n.Materials=n.Autolathe=void 0;var e=t(89005),a=t(64795),r=t(88510),o=t(72253),i=t(36036),f=t(98595),v=t(25328),C=t(35840),m=t(49968),l=t(87341),d=n.Autolathe=function(){function h(p,S){var T=(0,o.useBackend)(S),y=T.act,E=T.data,N=E.recipes,V=E.busy,I=E.materials,O=E.categories,x=E.coeff,w=(0,o.useSharedState)(S,"category",0),F=w[0],W=w[1],$=(0,o.useSharedState)(S,"searchText",""),z=$[0],k=$[1],M=(0,v.createSearch)(z,function(P){return P.name}),D=(0,a.flow)([(0,r.filter)(function(P){return P.category===O[F]||O[F]==="All"}),z&&(0,r.filter)(M),(0,r.sortBy)(function(P){return P.name.toLowerCase()})])(N),A=(0,a.flow)([(0,r.sortBy)(function(P){return P.toLowerCase()})])(O);return(0,e.createComponentVNode)(2,f.Window,{width:550,height:700,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.Section,{title:"Materials",children:(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:(0,e.createComponentVNode)(2,s)})}),(0,e.createComponentVNode)(2,i.Section,{title:"Recipes",buttons:(0,e.createComponentVNode)(2,i.Dropdown,{width:"190px",options:A,selected:O[F],onSelected:function(){function P(U){return W(O.indexOf(U))}return P}()}),children:[(0,e.createComponentVNode)(2,i.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function P(U,K){return k(K)}return P}(),mb:1}),D.map(function(P){return(0,e.createComponentVNode)(2,i.Flex,{justify:"space-between",align:"center",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{mr:1,children:(0,e.createVNode)(1,"span",(0,C.classes)(["autolathe32x32",P.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})}),(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,children:[(0,e.createComponentVNode)(2,i.Button,{color:P.hidden&&"red"||null,icon:"hammer",iconSpin:V===P.name,disabled:!g(P,I),onClick:function(){function U(){return y("make",{make:P.ref})}return U}(),children:(0,v.toTitleCase)(P.name)}),P.max_mult>1&&(0,e.createComponentVNode)(2,i.Box,{as:"span",children:[5,10,P.max_mult/2>>0,P.max_mult].map(function(U){return u(P,I,y,U)})})]}),(0,e.createComponentVNode)(2,i.Flex.Item,{width:"30%",children:(0,e.createComponentVNode)(2,i.Flex,{direction:"row",visibility:"collapse",children:P.requirements&&Object.keys(P.requirements).map(function(U){return(0,e.createComponentVNode)(2,i.Flex,{width:"100%",children:P.requirements[U]>0&&(0,e.createComponentVNode)(2,c,{name:U,amount:P.requirements[U]/x,formatsi:!0,csspath:I.find(function(K){return K.name===U}).path,width:"50%"})||(0,e.createComponentVNode)(2,i.Flex,{width:"50%"})},U)})||(0,e.createComponentVNode)(2,i.Box,{children:"No resources required."})})})]},P.ref)})]})]})})}return h}(),c=function(p,S){var T=p.name,y=p.csspath,E=p.amount,N=p.color,V=p.style,I=p.direction,O=p.width,x=p.formatsi,w=p.formatmoney,F="0";return E<1&&E>0?F=(0,l.toFixed)(E,2):x?F=(0,m.formatSiUnit)(E,0).replace(" ",""):w?F=(0,m.formatMoney)(E):F=E,(0,e.createComponentVNode)(2,i.Flex,{direction:I,align:"center",width:O,children:[(0,e.createComponentVNode)(2,i.Flex.Item,{children:(0,e.createComponentVNode)(2,i.Box,{className:(0,C.classes)(["sheetmaterials32x32",y]),position:"relative",style:V,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:(0,v.toTitleCase)(T)})})}),(0,e.createComponentVNode)(2,i.Flex.Item,{children:(0,e.createComponentVNode)(2,i.Box,{textColor:N,style:{"text-align":"center"},children:F})})]})},g=function(p,S,T){if(T===void 0&&(T=1),p.requirements===null)return!0;for(var y=Object.keys(p.requirements),E=function(){var x=I[V],w=S.find(function(F){return F.name===x});if(!w)return 0;if(w.amount0});return V.length===0?(0,e.createComponentVNode)(2,i.Box,{width:"100%",textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Icon,{textAlign:"center",size:5,name:"inbox"}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"No Materials Loaded.",16)]}):(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:V.map(function(I){return(0,e.createComponentVNode)(2,i.Flex.Item,{width:"80px",children:[(0,e.createComponentVNode)(2,c,{name:I.name,amount:I.amount,csspath:I.path,formatsi:!0,direction:"column"}),(0,e.createComponentVNode)(2,i.Box,{mt:1,style:{"text-align":"center"}})]},I.name)||null})})}return h}()},47823:function(b,n,t){"use strict";n.__esModule=!0,n.BloomEdit=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.BloomEdit=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.glow_brightness_base,g=d.glow_brightness_power,u=d.glow_contrast_base,s=d.glow_contrast_power,h=d.exposure_brightness_base,p=d.exposure_brightness_power,S=d.exposure_contrast_base,T=d.exposure_contrast_power;return(0,e.createComponentVNode)(2,o.Window,{title:"BloomEdit",width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Bloom Edit",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Brightness Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u0411\u0430\u0437\u043E\u0432\u0430\u044F \u044F\u0440\u043A\u043E\u0441\u0442\u044C \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:c,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_brightness_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Brightness Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:g,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_brightness_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Contrast Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u0411\u0430\u0437\u043E\u0432\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:u,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_contrast_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Lamp Contrast Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u043B\u0430\u043C\u043F\u043E\u0447\u043A\u0438 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:s,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("glow_contrast_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Brightness Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:h,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_brightness_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Brightness Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u042F\u0440\u043A\u043E\u0441\u0442\u044C \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:p,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_brightness_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Contrast Base",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:S,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_contrast_base",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Exposure Contrast Power",children:[(0,e.createComponentVNode)(2,r.Box,{inline:!0,children:"\u041A\u043E\u043D\u0442\u0440\u0430\u0441\u0442 \u0441\u0432\u0435\u0447\u0435\u043D\u0438\u044F \u043A\u043E\u043D\u0443\u0441\u0430 \u043D\u0430 power \u0441\u0432\u0435\u0442\u0430"}),(0,e.createComponentVNode)(2,r.NumberInput,{fluid:!0,value:T,minValue:-10,maxValue:10,step:.01,width:"20px",onChange:function(){function y(E,N){return l("exposure_contrast_power",{value:N})}return y}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Divider),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043B\u0430\u043C\u043F\u044B \u0441 \u043D\u043E\u0432\u044B\u043C\u0438 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0430\u043C\u0438",onClick:function(){function y(){return l("update_lamps")}return y}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",onClick:function(){function y(){return l("default")}return y}()})]})]})})})})}return f}()},33758:function(b,n,t){"use strict";n.__esModule=!0,n.BodyScanner=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=[["good","\u0421\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0435"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435"],["bad","\u041C\u0451\u0440\u0442\u0432"]],v=[["hasBorer","bad","\u0412 \u043B\u043E\u0431\u043D\u043E\u0439 \u0434\u043E\u043B\u0435 \u0437\u043B\u043E\u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435 \u043D\u043E\u0432\u043E\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u0438\u0435."],["blind","bad","\u041A\u0430\u0442\u0430\u0440\u0430\u043A\u0442\u0430."],["hasVirus","average","\u0412 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u0432\u0438\u0440\u0443\u0441\u043D\u044B\u0439 \u043F\u0430\u0442\u043E\u0433\u0435\u043D."],["nearsighted","average","\u0421\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u0441\u0435\u0442\u0447\u0430\u0442\u043A\u0438."]],C=[["\u0410\u0441\u0444\u0438\u043A\u0441\u0438\u044F","oxyLoss"],["\u041C\u043E\u0437\u0433\u043E\u0432\u044B\u0435","brainLoss"],["\u0418\u043D\u0442\u043E\u043A\u0441\u0438\u043A\u0430\u0446\u0438\u044F","toxLoss"],["\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435","radLoss"],["\u041C\u0435\u0445\u0430\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435","bruteLoss"],["\u0413\u0435\u043D\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435","cloneLoss"],["\u0422\u0435\u0440\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0435","fireLoss"],["\u041E\u043F\u044C\u044F\u043D\u0435\u043D\u0438\u0435","drunkenness"]],m={average:[.25,.5],bad:[.5,1/0]},l=function(N,V){for(var I=[],O=0;O0?N.filter(function(V){return!!V}).reduce(function(V,I){return(0,e.createFragment)([V,(0,e.createComponentVNode)(2,o.Box,{children:I},I)],0)},null):null},c=n.BodyScanner=function(){function E(N,V){var I=(0,r.useBackend)(V),O=I.data,x=O.occupied,w=O.occupant,F=w===void 0?{}:w,W=x?(0,e.createComponentVNode)(2,g,{occupant:F}):(0,e.createComponentVNode)(2,y);return(0,e.createComponentVNode)(2,i.Window,{resizable:!0,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:W})})}return E}(),g=function(N){var V=N.occupant;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,u,{occupant:V}),(0,e.createComponentVNode)(2,s,{occupant:V}),(0,e.createComponentVNode)(2,h,{occupant:V}),(0,e.createComponentVNode)(2,S,{organs:V.extOrgan}),(0,e.createComponentVNode)(2,T,{organs:V.intOrgan})]})},u=function(N,V){var I=(0,r.useBackend)(V),O=I.act,x=I.data,w=x.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"print",onClick:function(){function F(){return O("print_p")}return F}(),children:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u043E\u0442\u0447\u0435\u0442"}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function F(){return O("ejectify")}return F}(),children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:w.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:w.maxHealth,value:w.health/w.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u0440\u043E\u0432\u044C",children:w.blood.hasBlood?(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:w.blood.bloodNormal,value:w.blood.bloodLevel/w.blood.bloodNormal,ranges:{good:[.8,1/0],average:[.6,.8],bad:[-1/0,.6]},children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,style:{float:"left"},children:[w.blood.pulse," \u0443\u0434/\u043C\u0438\u043D"]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[w.blood.percent,"%"]})]}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u041D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0430"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[w.stat][0],children:f[w.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(w.bodyTempC,0)}),"\xB0C,\xA0",(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:(0,a.round)(w.bodyTempF,0)}),"\xB0F"]})]})})},s=function(N){var V=N.occupant;return V.hasBorer||V.blind||V.nearsighted||V.hasVirus?(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:v.map(function(I,O){if(V[I[0]])return(0,e.createComponentVNode)(2,o.Box,{color:I[1],bold:I[1]==="bad",children:I[2]},I[2])})}):(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u043E."})})},h=function(N){var V=N.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,o.Table,{children:l(C,function(I,O,x){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Table.Row,{color:"label",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[I[0],":"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:!!O&&O[0]+":"})]}),(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,p,{value:V[I[1]],marginBottom:x0&&"0.5rem",value:V.totalLoss/V.maxHealth,ranges:m,children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,style:{float:"left"},children:[!!V.bruteLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"bone"}),(0,a.round)(V.bruteLoss,0),"\xA0"]}),!!V.fireLoss&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"fire"}),(0,a.round)(V.fireLoss,0)]})]}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.round)(V.totalLoss,0)})]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:d([!!V.internalBleeding&&"\u0410\u0440\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u043E\u0435 \u043A\u0440\u043E\u0432\u043E\u0442\u0435\u0447\u0435\u043D\u0438\u0435",!!V.status.dead&&"\u041E\u0442\u043A\u0430\u0437",!!V.stump&&"\u041A\u0443\u043B\u044C\u0442\u044F",!!V.missing&&"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"])}),(0,e.createComponentVNode)(2,o.Box,{color:"average",children:d([!!V.lungRuptured&&"\u0420\u0430\u0437\u0440\u044B\u0432 \u043B\u0435\u0433\u043A\u043E\u0433\u043E",!!V.status.broken&&V.status.broken,!!V.germ_level&&V.germ_level,!!V.open&&"\u041E\u0442\u043A\u0440\u044B\u0442\u044B\u0439 \u0440\u0430\u0437\u0440\u0435\u0437"])}),(O=V.implant)==null?void 0:O.map(function(x,w){return x.name?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:x.name},w):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0418\u043D\u043E\u0440\u043E\u0434\u043D\u044B\u0439 \u043E\u0431\u044A\u0435\u043A\u0442"},w)}),d([!!V.status.splinted&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u041D\u0430\u043B\u043E\u0436\u0435\u043D\u0430 \u0448\u0438\u043D\u0430"}),!!V.status.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041F\u0440\u043E\u0442\u0435\u0437"})])]})})]},I)})]})})},T=function(N){return N.organs.length===0?(0,e.createComponentVNode)(2,o.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041D\u0435\u0442 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u0439"})}):(0,e.createComponentVNode)(2,o.Section,{title:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0435 \u043E\u0440\u0433\u0430\u043D\u044B",children:(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:"\u041F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",children:"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F"})]}),N.organs.map(function(V,I){return(0,e.createComponentVNode)(2,o.Table.Row,{textTransform:"capitalize",backgroundColor:I%2!==0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{color:(!!V.dead||!!V.broken)&&"bad"||!!V.robotic&&"label"||(!!V.germ_level||!!V.bruised)&&"average",width:"33%",children:V.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:V.maxHealth,value:V.damage/V.maxHealth,mt:I>0&&"0.5rem",ranges:m,children:(0,a.round)(V.damage,0)})}),(0,e.createComponentVNode)(2,o.Table.Cell,{textAlign:"right",verticalAlign:"top",width:"33%",pt:I>0&&"calc(0.5rem + 2px)",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",children:d([!!V.germ_level&&V.germ_level])}),d([!!V.robotic&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041F\u0440\u043E\u0442\u0435\u0437"}),!!V.assisted&&(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0412\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442"}),!!V.dead&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",bold:!0,children:"\u041E\u0442\u043A\u0430\u0437"})])]})})]},I)})]})})},y=function(){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},26300:function(b,n,t){"use strict";n.__esModule=!0,n.selectCameras=n.prevNextCamera=n.CameraConsoleContent=n.CameraConsole=void 0;var e=t(89005),a=t(88510),r=t(64795),o=t(35840),i=t(25328),f=t(72253),v=t(36036),C=t(98595),m=n.prevNextCamera=function(){function g(u,s){var h,p;if(!s)return[];var S=u.findIndex(function(T){return T.name===s.name});return[(h=u[S-1])==null?void 0:h.name,(p=u[S+1])==null?void 0:p.name]}return g}(),l=n.selectCameras=function(){function g(u,s){s===void 0&&(s="");var h=(0,i.createSearch)(s,function(p){return p.name});return(0,r.flow)([(0,a.filter)(function(p){return p==null?void 0:p.name}),s&&(0,a.filter)(h),(0,a.sortBy)(function(p){return p.name})])(u)}return g}(),d=n.CameraConsole=function(){function g(u,s){Byond.winget("mapwindow.map","style").then(function(O){Byond.winset(T,"style",O)});var h=(0,f.useBackend)(s),p=h.act,S=h.data,T=S.mapRef,y=S.activeCamera,E=l(S.cameras),N=m(E,y),V=N[0],I=N[1];return(0,e.createComponentVNode)(2,C.Window,{width:870,height:708,children:[(0,e.createVNode)(1,"div","CameraConsole__left",(0,e.createComponentVNode)(2,C.Window.Content,{children:(0,e.createComponentVNode)(2,c)}),2),(0,e.createVNode)(1,"div","CameraConsole__right",[(0,e.createVNode)(1,"div","CameraConsole__toolbar",[(0,e.createVNode)(1,"b",null,"Camera: ",16),y&&y.name||"\u2014"],0),(0,e.createVNode)(1,"div","CameraConsole__toolbarRight",[(0,e.createComponentVNode)(2,v.Button,{icon:"chevron-left",disabled:!V,onClick:function(){function O(){return p("switch_camera",{name:V})}return O}()}),(0,e.createComponentVNode)(2,v.Button,{icon:"chevron-right",disabled:!I,onClick:function(){function O(){return p("switch_camera",{name:I})}return O}()})],4),(0,e.createComponentVNode)(2,v.ByondUi,{className:"CameraConsole__map",params:{id:T,type:"map"}})],4)]})}return g}(),c=n.CameraConsoleContent=function(){function g(u,s){var h=(0,f.useBackend)(s),p=h.act,S=h.data,T=(0,f.useLocalState)(s,"searchText",""),y=T[0],E=T[1],N=S.activeCamera,V=l(S.cameras,y);return(0,e.createComponentVNode)(2,v.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,v.Flex.Item,{children:(0,e.createComponentVNode)(2,v.Input,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(){function I(O,x){return E(x)}return I}()})}),(0,e.createComponentVNode)(2,v.Flex.Item,{height:"100%",children:(0,e.createComponentVNode)(2,v.Section,{fill:!0,scrollable:!0,children:V.map(function(I){return(0,e.createVNode)(1,"div",(0,o.classes)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",N&&I.name===N.name&&"Button--selected"]),I.name,0,{title:I.name,onClick:function(){function O(){return p("switch_camera",{name:I.name})}return O}()},I.name)})})})]})}return g}()},52927:function(b,n,t){"use strict";n.__esModule=!0,n.Canister=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(49968),f=t(98595),v=n.Canister=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.name,s=g.canLabel,h=g.portConnected,p=g.tankPressure,S=g.releasePressure,T=g.defaultReleasePressure,y=g.minReleasePressure,E=g.maxReleasePressure,N=g.valveOpen,V=g.hasHoldingTank,I=g.holdingTank;return(0,e.createComponentVNode)(2,f.Window,{width:300,height:232,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{title:u,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pencil-alt",content:"Relabel",disabled:!s,onClick:function(){function O(){return c("relabel")}return O}()}),children:(0,e.createComponentVNode)(2,o.LabeledControls,{children:[(0,e.createComponentVNode)(2,o.LabeledControls.Item,{minWidth:"66px",label:"Pressure",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:p,format:function(){function O(x){return x<1e4?(0,a.toFixed)(x)+" kPa":(0,i.formatSiUnit)(x*1e3,1,"Pa")}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Regulator",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",left:"-8px",children:[(0,e.createComponentVNode)(2,o.Knob,{size:1.25,color:!!N&&"yellow",value:S,unit:"kPa",minValue:y,maxValue:E,step:5,stepPixelSize:1,onDrag:function(){function O(x,w){return c("pressure",{pressure:w})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){function O(){return c("pressure",{pressure:E})}return O}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){function O(){return c("pressure",{pressure:T})}return O}()})]})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{label:"Valve",children:(0,e.createComponentVNode)(2,o.Button,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:N?V?"caution":"danger":null,content:N?"Open":"Closed",onClick:function(){function O(){return c("valve")}return O}()})}),(0,e.createComponentVNode)(2,o.LabeledControls.Item,{mr:1,label:"Port",children:(0,e.createComponentVNode)(2,o.Box,{position:"relative",children:[(0,e.createComponentVNode)(2,o.Icon,{size:1.25,name:h?"plug":"times",color:h?"good":"bad"}),(0,e.createComponentVNode)(2,o.Tooltip,{content:h?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Holding Tank",buttons:!!V&&(0,e.createComponentVNode)(2,o.Button,{icon:"eject",color:N&&"danger",content:"Eject",onClick:function(){function O(){return c("eject")}return O}()}),children:[!!V&&(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Label",children:I.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:I.tankPressure})," kPa"]})]}),!V&&(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"No Holding Tank"})]})]})})}return C}()},47250:function(b,n,t){"use strict";n.__esModule=!0,n.Canvas=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=["res","value","dotsize"];function f(g,u){if(g==null)return{};var s={};for(var h in g)if({}.hasOwnProperty.call(g,h)){if(u.includes(h))continue;s[h]=g[h]}return s}function v(g,u){g.prototype=Object.create(u.prototype),g.prototype.constructor=g,C(g,u)}function C(g,u){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,h){return s.__proto__=h,s},C(g,u)}var m=24,l=function(g){function u(h){var p;return p=g.call(this,h)||this,p.canvasRef=(0,e.createRef)(),p.onCVClick=h.onCanvasClick,p}v(u,g);var s=u.prototype;return s.componentDidMount=function(){function h(){this.drawCanvas(this.props)}return h}(),s.componentDidUpdate=function(){function h(){this.drawCanvas(this.props)}return h}(),s.drawCanvas=function(){function h(p){var S=this.canvasRef.current.getContext("2d"),T=p.value,y=T.length;if(y){var E=T[0].length,N=Math.round(this.canvasRef.current.width/y),V=Math.round(this.canvasRef.current.height/E);S.save(),S.scale(N,V);for(var I=0;I0?"good":"average",children:(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T.health)})})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:f[T.stat][0],children:f[T.stat][1]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T.bodyTemperature)})," K"]}),(0,e.createComponentVNode)(2,r.LabeledList.Divider),i.map(function(O){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:O.label,children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:T[O.type]/100,ranges:{bad:[.25,1/0]},children:(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:Math.round(T[O.type])})})},O.id)})]}):(0,e.createComponentVNode)(2,r.Flex,{height:"100%",textAlign:"center",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,r.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041F\u0430\u0446\u0438\u0435\u043D\u0442 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})}),(0,e.createComponentVNode)(2,r.Section,{title:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",onClick:function(){function O(){return u("ejectBeaker")}return O}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u043E\u0441\u0443\u0434"}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,r.Button,{icon:"power-off",onClick:function(){function O(){return u(h?"switchOff":"switchOn")}return O}(),selected:h,disabled:V||!I,children:h?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),I?(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0432\u043E\u0437\u0434\u0443\u0445\u0430",color:E,children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:y})," K"]}):(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0432\u043E\u0437\u0434\u0443\u0445\u0430",color:"bad",children:"\u041D\u0435\u0442 \u0432\u043E\u0437\u0434\u0443\u0445\u0430"}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0421\u043E\u0441\u0443\u0434",children:(0,e.createComponentVNode)(2,m)})]})})],4)},m=function(d,c){var g=(0,a.useBackend)(c),u=g.act,s=g.data,h=s.isBeakerLoaded,p=s.beakerVolume;return h?(0,e.createComponentVNode)(2,r.Box,{color:!p&&"bad",children:p?(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:p,format:function(){function S(T){return Math.round(T)+" \u044E\u043D\u0438\u0442\u043E\u0432 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"}return S}()}):"\u0421\u043E\u0441\u0443\u0434 \u043F\u0443\u0441\u0442"}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"})}},76310:function(b,n,t){"use strict";n.__esModule=!0,n.CustomAnnounce=void 0;var e=t(89005),a=t(72253),r=t(98595),o=t(36036),i=n.CustomAnnounce=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,r.Window,{width:600,height:500,children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,position:"relative",children:(0,e.createComponentVNode)(2,r.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Preview",fill:!0,children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,fontSize:"24px",children:d.title===null?"":d.title}),(0,e.createComponentVNode)(2,o.Box,{fontSize:"18px",children:d.subtitle===null?"":d.subtitle}),(0,e.createComponentVNode)(2,o.Box,{mt:2,children:d.message===null?"":d.message}),(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:[d.announcer!==null&&"-"," ",d.announcer]}),(0,e.createComponentVNode)(2,o.Box,{mt:2,children:['Current sound is "',d.sound,'"']})]})})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mx:1,mb:1,children:(0,e.createComponentVNode)(2,o.Section,{title:"Settings",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Content",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Title",icon:"heading",onClick:function(){function c(){return l("title")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Subtitle",icon:"paragraph",onClick:function(){function c(){return l("subtitle")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Message",icon:"pencil-alt",onClick:function(){function c(){return l("message")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,mr:2,content:"Announcer",icon:"bullhorn",onClick:function(){function c(){return l("announcer")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Output",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Chat",icon:"comments",selected:d.flags.text,onClick:function(){function c(){return l("flag_text")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{mx:1,content:"Sound",icon:"volume-up",selected:d.flags.sound,onClick:function(){function c(){return l("flag_sound")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Consoles",icon:"sticky-note",selected:d.flags.comms,onClick:function(){function c(){return l("flag_comms")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sound",children:[(0,e.createComponentVNode)(2,o.Button,{content:"Existing",icon:"list",disabled:!d.rights.funevent,onClick:function(){function c(){return l("sound_select")}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Upload",icon:"file-upload",disabled:!(d.rights.sound&&d.rights.funevent),onClick:function(){function c(){return l("sound_upload")}return c}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animated:!0,ml:1,value:parseInt(d.volume,10),disabled:!(d.rights.sound&&d.rights.funevent),width:"60px",step:1,unit:"%",minValue:0,maxValue:200,onChange:function(){function c(g,u){return l("volume",{volume:u})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Test",icon:"user",onClick:function(){function c(){return l("test",{source:"admin"})}return c}()}),(0,e.createComponentVNode)(2,o.Button,{ml:1,content:"Sample",icon:"closed-captioning",onClick:function(){function c(){return l("test",{source:"sample"})}return c}()})]})]}),(0,e.createComponentVNode)(2,o.Box,{mt:2,mb:1,children:(0,e.createComponentVNode)(2,o.Button,{content:"Select preset",icon:"archive",disabled:!d.rights.funevent,onClick:function(){function c(){return l("preset_select")}return c}()})}),(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Make an announcement",onClick:function(){function c(){return l("announce")}return c}()})})]})})]})})}return f}()},89643:function(b,n,t){"use strict";n.__esModule=!0,n.DisposalUnit=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.DisposalUnit=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c,g;return d.mode===2?(c="good",g="Ready"):d.mode===0?(c="bad",g="Off"):d.mode<0?(c="bad",g="N/A"):d.mode===1?(c="average",g="Pressurizing"):(c="average",g="Idle"),(0,e.createComponentVNode)(2,o.Window,{width:300,height:180,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"State",color:c,children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:d.pressure,minValue:0,maxValue:100})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Handle",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-off",disabled:d.isAI||d.panel_open,content:"Disengaged",selected:d.flushing?null:"selected",onClick:function(){function u(){return l("handle-0")}return u}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-on",disabled:d.isAI||d.panel_open,content:"Engaged",selected:d.flushing?"selected":null,onClick:function(){function u(){return l("handle-1")}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Power",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-off",disabled:d.mode===-1,content:"Off",selected:d.mode?null:"selected",onClick:function(){function u(){return l("pump-0")}return u}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"toggle-on",disabled:d.mode===-1,content:"On",selected:d.mode?"selected":null,onClick:function(){function u(){return l("pump-1")}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Eject",children:(0,e.createComponentVNode)(2,r.Button,{icon:"sign-out-alt",disabled:d.isAI,content:"Eject Contents",onClick:function(){function u(){return l("eject")}return u}()})})]})})})})}return f}()},96305:function(b,n,t){"use strict";n.__esModule=!0,n.EmotePanelEditor=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.EmotePanelEditor=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.customEmotes,g=d.allHumanEmotes;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:400,resizable:!0,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:g.sort().map(function(u){return(0,e.createComponentVNode)(2,r.Box,{fontSize:"20px",children:(0,e.createComponentVNode)(2,r.Button.Checkbox,{checked:c.includes(u),onClick:function(){function s(){return l("switchEmote",{emote:u})}return s}(),content:u})},u)})})})}return f}()},92493:function(b,n,t){"use strict";n.__esModule=!0,n.Filteriffic=void 0;var e=t(89005),a=t(88510),r=t(87341),o=t(87341),i=t(72253),f=t(36036),v=t(98595),C=["type","priority"];function m(T,y){if(T==null)return{};var E={};for(var N in T)if({}.hasOwnProperty.call(T,N)){if(y.includes(N))continue;E[N]=T[N]}return E}var l=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act;return(0,e.createComponentVNode)(2,f.NumberInput,{value:N,minValue:-500,maxValue:500,stepPixelSize:5,width:"39px",onDrag:function(){function w(F,W){var $;return x("modify_filter_value",{name:I,new_data:($={},$[V]=W,$)})}return w}()})},d=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act,w=(0,i.useLocalState)(E,I+"-"+V,.01),F=w[0],W=w[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{value:N,minValue:-500,maxValue:500,stepPixelSize:4,step:F,format:function(){function $(z){return(0,r.toFixed)(z,(0,o.numberOfDecimalDigits)(F))}return $}(),width:"80px",onDrag:function(){function $(z,k){var M;return x("transition_filter_value",{name:I,new_data:(M={},M[V]=k,M)})}return $}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,f.NumberInput,{value:F,step:.01,format:function(){function $(z){return(0,r.toFixed)(z,4)}return $}(),width:"70px",onChange:function(){function $(z,k){return W(k)}return $}()})],4)},c=function(y,E){var N=y.value,V=y.name,I=y.filterName,O=(0,i.useBackend)(E),x=O.act;return(0,e.createComponentVNode)(2,f.Input,{value:N,width:"250px",onInput:function(){function w(F,W){var $;return x("modify_filter_value",{name:I,new_data:($={},$[V]=W,$)})}return w}()})},g=function(y,E){var N=y.value,V=y.filterName,I=y.name,O=(0,i.useBackend)(E),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_color_value",{name:V})}return w}()}),(0,e.createComponentVNode)(2,f.ColorBox,{color:N,mr:.5}),(0,e.createComponentVNode)(2,f.Input,{value:N,width:"90px",onInput:function(){function w(F,W){var $;return x("transition_filter_value",{name:V,new_data:($={},$[I]=W,$)})}return w}()})],4)},u=function(y,E){var N=y.value,V=y.filterName,I=(0,i.useBackend)(E),O=I.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Button,{icon:"pencil-alt",onClick:function(){function x(){return O("modify_icon_value",{name:V})}return x}()}),(0,e.createComponentVNode)(2,f.Box,{inline:!0,ml:1,children:N})],4)},s=function(y,E){var N=y.name,V=y.value,I=y.filterName,O=y.filterType,x=(0,i.useBackend)(E),w=x.act,F=x.data,W=F.filter_info,$=W[O].flags;return(0,a.map)(function(z,k){return(0,e.createComponentVNode)(2,f.Button.Checkbox,{checked:V&z,content:k,onClick:function(){function M(){var D;return w("modify_filter_value",{name:I,new_data:(D={},D[N]=V^z,D)})}return M}()})})($)},h=function(y,E){var N=y.name,V=y.value,I=y.hasValue,O=y.filterName,x={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},y))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},y))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},y))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},y))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},y))),flags:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},y)))},w={x:"float",y:"float",icon:"icon",render_source:"string",flags:"flags",size:"float",color:"color",offset:"float",radius:"float",falloff:"float",density:"int",threshold:"float",factor:"float",repeat:"int",blend_mode:"int"};return(0,e.createComponentVNode)(2,f.LabeledList.Item,{label:N,children:[x[w[N]]||"Not Found (This is an error)"," ",!I&&(0,e.createComponentVNode)(2,f.Box,{inline:!0,color:"average",children:"(Default)"})]})},p=function(y,E){var N=(0,i.useBackend)(E),V=N.act,I=N.data,O=y.name,x=y.filterDataEntry,w=x.type,F=x.priority,W=m(x,C),$=I.filter_info,z=Object.keys($[w].defaults);return(0,e.createComponentVNode)(2,f.Collapsible,{title:O+" ("+w+")",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,f.NumberInput,{value:F,stepPixelSize:10,width:"60px",onChange:function(){function k(M,D){return V("change_priority",{name:O,new_priority:D})}return k}()}),(0,e.createComponentVNode)(2,f.Button.Input,{content:"Rename",placeholder:O,onCommit:function(){function k(M,D){return V("rename_filter",{name:O,new_name:D})}return k}(),width:"90px"}),(0,e.createComponentVNode)(2,f.Button.Confirm,{icon:"minus",onClick:function(){function k(){return V("remove_filter",{name:O})}return k}()})],4),children:(0,e.createComponentVNode)(2,f.Section,{level:2,children:(0,e.createComponentVNode)(2,f.LabeledList,{children:z.map(function(k){var M=$[w].defaults,D=W[k]||M[k],A=D!==M[k];return(0,e.createComponentVNode)(2,h,{filterName:O,filterType:w,name:k,value:D,hasValue:A},k)})})})})},S=n.Filteriffic=function(){function T(y,E){var N=(0,i.useBackend)(E),V=N.act,I=N.data,O=I.target_name||"Unknown Object",x=I.target_filter_data||{},w=Object.keys(x).length!==0,F=I.filter_info,W=(0,i.useLocalState)(E,"massApplyPath",""),$=W[0],z=W[1],k=(0,i.useLocalState)(E,"hidden",!1),M=k[0],D=k[1];return(0,e.createComponentVNode)(2,v.Window,{title:"Filteriffic",width:500,height:500,children:(0,e.createComponentVNode)(2,v.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.NoticeBox,{danger:!0,children:"DO NOT MESS WITH EXISTING FILTERS IF YOU DO NOT KNOW THE CONSEQUENCES. YOU HAVE BEEN WARNED."}),(0,e.createComponentVNode)(2,f.Section,{title:M?(0,e.createFragment)([(0,e.createComponentVNode)(2,f.Box,{mr:.5,inline:!0,children:"MASS EDIT:"}),(0,e.createComponentVNode)(2,f.Input,{value:$,width:"100px",onInput:function(){function A(P,U){return z(U)}return A}()}),(0,e.createComponentVNode)(2,f.Button.Confirm,{content:"Apply",confirmContent:"ARE YOU SURE?",onClick:function(){function A(){return V("mass_apply",{path:$})}return A}()})],4):(0,e.createComponentVNode)(2,f.Box,{inline:!0,onDblClick:function(){function A(){return D(!0)}return A}(),children:O}),buttons:(0,e.createComponentVNode)(2,f.Dropdown,{icon:"plus",displayText:"Add Filter",nochevron:!0,options:Object.keys(F),onSelected:function(){function A(P){return V("add_filter",{name:"default",priority:10,type:P})}return A}()}),children:w?(0,a.map)(function(A,P){return(0,e.createComponentVNode)(2,p,{filterDataEntry:A,name:P},P)})(x):(0,e.createComponentVNode)(2,f.Box,{children:"No filters"})})]})})}return T}()},53424:function(b,n,t){"use strict";n.__esModule=!0,n.GPS=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(u){return u?"("+u.join(", ")+")":"ERROR"},f=function(u){return u*(180/Math.PI)},v=function(u,s){if(!(!u||!s)){if(u[2]!==s[2])return null;var h=Math.atan2(s[1]-u[1],s[0]-u[0]),p=Math.sqrt(Math.pow(s[1]-u[1],2)+Math.pow(s[0]-u[0],2));return{angle:f(h),distance:p}}},C=n.GPS=function(){function g(u,s){var h=(0,a.useBackend)(s),p=h.data,S=p.emped,T=p.active,y=p.area,E=p.position,N=p.saved;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,r.Flex,{direction:"column",height:"100%",children:S?(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,m,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,l)}),T?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,d,{area:y,position:E})}),N&&(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,d,{title:"Saved Position",position:N})}),(0,e.createComponentVNode)(2,r.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,c,{height:"100%"})})],0):(0,e.createComponentVNode)(2,m)],0)})})})}return g}(),m=function(u,s){var h=u.emp;return(0,e.createComponentVNode)(2,r.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,r.Box,{width:"100%",height:"100%",color:"label",textAlign:"center",children:(0,e.createComponentVNode)(2,r.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:"1",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,r.Icon,{name:h?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),h?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},l=function(u,s){var h=(0,a.useBackend)(s),p=h.act,S=h.data,T=S.active,y=S.tag,E=S.same_z,N=(0,a.useLocalState)(s,"newTag",y),V=N[0],I=N[1];return(0,e.createComponentVNode)(2,r.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,r.Button,{selected:T,icon:T?"toggle-on":"toggle-off",content:T?"On":"Off",onClick:function(){function O(){return p("toggle")}return O}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,r.Input,{width:"5rem",value:y,onEnter:function(){function O(){return p("tag",{newtag:V})}return O}(),onInput:function(){function O(x,w){return I(w)}return O}()}),(0,e.createComponentVNode)(2,r.Button,{disabled:y===V,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function O(){return p("tag",{newtag:V})}return O}(),children:(0,e.createComponentVNode)(2,r.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,r.Button,{selected:!E,icon:E?"compress":"expand",content:E?"Local Sector":"Global",onClick:function(){function O(){return p("same_z")}return O}()})})]})})},d=function(u,s){var h=u.title,p=u.area,S=u.position;return(0,e.createComponentVNode)(2,r.Section,{title:h||"Position",children:(0,e.createComponentVNode)(2,r.Box,{fontSize:"1.5rem",children:[p&&(0,e.createFragment)([p,(0,e.createVNode)(1,"br")],0),i(S)]})})},c=function(u,s){var h=(0,a.useBackend)(s),p=h.data,S=p.position,T=p.signals;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,r.Section,Object.assign({title:"Signals",overflow:"auto"},u,{children:(0,e.createComponentVNode)(2,r.Table,{children:T.map(function(y){return Object.assign({},y,v(S,y.position))}).map(function(y,E){return(0,e.createComponentVNode)(2,r.Table.Row,{backgroundColor:E%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,r.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:y.tag}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",color:"grey",children:y.area}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:y.distance!==void 0&&(0,e.createComponentVNode)(2,r.Box,{opacity:Math.max(1-Math.min(y.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,r.Icon,{name:y.distance>0?"arrow-right":"circle",rotation:-y.angle}),"\xA0",Math.floor(y.distance)+"m"]})}),(0,e.createComponentVNode)(2,r.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:i(y.position)})]},E)})})})))}},48657:function(b,n,t){"use strict";n.__esModule=!0,n.GuestPass=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(49148),f=n.GuestPass=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data;return(0,e.createComponentVNode)(2,o.Window,{children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,r.Tabs,{children:[(0,e.createComponentVNode)(2,r.Tabs.Tab,{icon:"id-card",selected:!c.showlogs,onClick:function(){function g(){return d("mode",{mode:0})}return g}(),children:"Issue Pass"}),(0,e.createComponentVNode)(2,r.Tabs.Tab,{icon:"scroll",selected:c.showlogs,onClick:function(){function g(){return d("mode",{mode:1})}return g}(),children:["Records (",c.issue_log.length,")"]})]}),(0,e.createComponentVNode)(2,r.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,r.Button,{icon:c.scan_name?"eject":"id-card",selected:c.scan_name,content:c.scan_name?c.scan_name:"-----",tooltip:c.scan_name?"Eject ID":"Insert ID",onClick:function(){function g(){return d("scan")}return g}()})})})}),!c.showlogs&&(0,e.createComponentVNode)(2,r.Section,{title:"Issue Guest Pass",children:[(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Issue To",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.giv_name?c.giv_name:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("giv_name")}return g}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Reason",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.reason?c.reason:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("reason")}return g}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Duration",children:(0,e.createComponentVNode)(2,r.Button,{icon:"pencil-alt",content:c.duration?c.duration:"-----",disabled:!c.scan_name,onClick:function(){function g(){return d("duration")}return g}()})})]}),!!c.scan_name&&(0,e.createFragment)([(0,e.createComponentVNode)(2,i.AccessList,{grantableList:c.grantableList,accesses:c.regions,selectedList:c.selectedAccess,accessMod:function(){function g(u){return d("access",{access:u})}return g}(),grantAll:function(){function g(){return d("grant_all")}return g}(),denyAll:function(){function g(){return d("clear_all")}return g}(),grantDep:function(){function g(u){return d("grant_region",{region:u})}return g}(),denyDep:function(){function g(u){return d("deny_region",{region:u})}return g}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"id-card",content:c.printmsg,disabled:!c.canprint,onClick:function(){function g(){return d("issue")}return g}()})],4)]}),!!c.showlogs&&(0,e.createComponentVNode)(2,r.Section,{title:"Issuance Log",children:!!c.issue_log.length&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList,{children:c.issue_log.map(function(g,u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:g},u)})}),(0,e.createComponentVNode)(2,r.Button,{icon:"print",content:"Print",disabled:!c.scan_name,onClick:function(){function g(){return d("print")}return g}()})],4)||(0,e.createComponentVNode)(2,r.Box,{children:"None."})})]})})}return v}()},76076:function(b,n,t){"use strict";n.__esModule=!0,n.Loader=n.ListInput=void 0;var e=t(89005),a=t(25328),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(92986),C=t(56518);/** * @file * @copyright 2020 watermelon914 (https://github.com/watermelon914) * @license MIT - */var m=0,l=n.ListInput=function(){function c(g,u){var s=(0,o.useBackend)(u),h=s.act,p=s.data,S=p.title,T=p.message,y=p.buttons,E=p.timeout,N=(0,o.useLocalState)(u,"search_bar",!1),V=N[0],I=N[1],O=(0,o.useLocalState)(u,"displayed_array",y),x=O[0],w=O[1],F=(0,o.useLocalState)(u,"search_array",[]),W=F[0],$=F[1],z=(0,o.useLocalState)(u,"search_index",0),k=z[0],M=z[1],D=(0,o.useLocalState)(u,"last_char_code",null),A=D[0],P=D[1],U=(0,o.useLocalState)(u,"selected_button",y[0]),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,f.Window,{title:S,width:325,height:325,resizable:!0,children:[E!==void 0&&(0,e.createComponentVNode)(2,d,{value:E}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,i.Section,{scrollable:!0,className:"ListInput__Section",width:"100%",fill:!0,title:T,tabIndex:0,onKeyDown:function(){function X(_){if(_.preventDefault(),(0,C.acquireHotKey)(v.KEY_DOWN),(0,C.acquireHotKey)(v.KEY_UP),!(m>performance.now())){if(m=performance.now()+125,_.keyCode===v.KEY_UP||_.keyCode===v.KEY_DOWN){var J=1;_.keyCode===v.KEY_UP&&(J=-1);var ce=0;for(ce;ce=y.length&&(ce=0),G(y[ce]),P(null),document.getElementById(y[ce]).focus();return}if(_.keyCode===v.KEY_SPACE||_.keyCode===v.KEY_ENTER){h("choose",{choice:K});return}var Ee=String.fromCharCode(_.keyCode).toLowerCase();if(Ee){var le;if(Ee===A&&W.length>0){var re=k+1;re0&&($(ye),M(0),le=ye[0])}le&&(P(Ee),G(le),document.getElementById(le).focus())}}}return X}(),buttons:(0,e.createComponentVNode)(2,i.Button,{icon:"search",color:"transparent",selected:V,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){function X(){I(!V),w(y)}return X}(),compact:!0}),children:(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:x.map(function(X){return(0,e.createComponentVNode)(2,i.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",content:X,id:X,width:"100%",selected:K===X,onClick:function(){function _(){if(K===X)h("choose",{choice:X});else{G(X);var J=0;for(J;J=y.length&&(J=0),P(null),document.getElementById(y[J]).focus()}P(null)}return _}()},null,{onComponentDidMount:function(){function _(J){K===X&&J.focus()}return _}()})},X)})})})}),V&&(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(){function X(_,J){return w(y.filter((0,a.createSearch)(J)))}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Flex,{textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){function X(){return h("cancel")}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,ml:1,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:K===null,onClick:function(){function X(){return h("choose",{choice:K})}return X}()})})]})})]})})]})}return c}(),d=n.Loader=function(){function c(g){var u=g.value;return(0,e.createVNode)(1,"div","ListInput__Loader",(0,e.createComponentVNode)(2,i.Box,{className:"ListInput__LoaderProgress",style:{width:(0,r.clamp01)(u)*100+"%"}}),2)}return c}()},70073:function(b,n,t){"use strict";n.__esModule=!0,n.Lootcrate=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Lootcrate=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.code,g=d.buttons_pressed;return(0,e.createComponentVNode)(2,o.Window,{width:235,height:140,theme:"ntos",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-9px",content:1,color:g[0]?c[0]===1||c[1]===1||c[2]===1?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:1})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-14px",content:2,color:g[1]?c[0]===2||c[1]===2||c[2]===2?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:2})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-19px",content:3,color:g[2]?c[0]===3||c[1]===3||c[2]===3?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:3})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-9px",content:4,color:g[3]?c[0]===4||c[1]===4||c[2]===4?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:4})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-14px",content:5,color:g[4]?c[0]===5||c[1]===5||c[2]===5?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:5})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-19px",content:6,color:g[5]?c[0]===6||c[1]===6||c[2]===6?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:6})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-9px",content:7,color:g[6]?c[0]===7||c[1]===7||c[2]===7?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:7})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-14px",content:8,color:g[7]?c[0]===8||c[1]===8||c[2]===8?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:8})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-19px",content:9,color:g[8]?c[0]===9||c[1]===9||c[2]===9?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:9})}return u}()})]})]})})})})}return f}()},76298:function(b,n,t){"use strict";n.__esModule=!0,n.MafiaPanel=void 0;var e=t(89005),a=t(35840),r=t(25328),o=t(72253),i=t(36036),f=t(98595),v=n.MafiaPanel=function(){function u(s,h){var p,S=(0,o.useBackend)(h),T=S.act,y=S.data,E=y.actions,N=y.phase,V=y.roleinfo,I=y.role_theme,O=y.admin_controls;return(0,e.createComponentVNode)(2,f.Window,{title:"\u041C\u0430\u0444\u0438\u044F",theme:I,width:650,height:580,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),E==null?void 0:E.map(function(x){return(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function w(){return T("mf_action",{atype:x})}return w}(),children:x})},x)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,d)}),N!=="\u041D\u0435\u0442 \u0418\u0433\u0440\u044B"&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1.34,basis:0,children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{height:"80px",children:(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(p=V.action_log)==null?void 0:p.map(function(x){return(0,e.createComponentVNode)(2,i.Box,{children:x},x)})})})]})})]})}),!!O&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,g)})]})})})}return u}(),C=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.lobbydata,E=T.phase,N=T.timeleft,V=y?y.filter(function(I){return I.status==="\u0413\u043E\u0442\u043E\u0432"}):null;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"Lobby",buttons:(0,e.createFragment)([(0,e.createTextVNode)("\u0421\u0442\u0430\u0434\u0438\u044F = "),E,(0,e.createTextVNode)(" | "),(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N}),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,i.Button,{icon:"clipboard-check",tooltipPosition:"bottom-start",tooltip:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0432 \u0438\u0433\u0440\u0443. \u0415\u0441\u043B\u0438 \u043E\u043D\u0430 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442, \u0442\u043E\n\u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E.",content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function I(){return S("mf_signup")}return I}()}),(0,e.createComponentVNode)(2,i.Button,{icon:"eye",tooltipPosition:"bottom-start",tooltip:"\u0412\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u0435\u043B\u0435\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u044D\u0442\u043E.\n\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0412\u044B \u0443\u043C\u0438\u0440\u0430\u0435\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0433\u0440\u044B.\n\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442\u044C, \u0435\u0441\u043B\u0438 \u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0440\u0430\u0443\u043D\u0434.",content:"\u041D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u044C",onClick:function(){function I(){return S("mf_spectate")}return I}()})],0),children:[(0,e.createComponentVNode)(2,i.NoticeBox,{info:!0,children:["\u0412 \u043B\u043E\u0431\u0431\u0438 ",V?V.length:"0","/12 \u0432\u0430\u043B\u0438\u0434\u043D\u044B\u0445 \u0438\u0433\u0440\u043E\u043A\u043E\u0432."]}),y==null?void 0:y.map(function(I){return(0,e.createComponentVNode)(2,i.Stack,{className:"candystripe",p:1,align:"baseline",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:I.name}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:"\u0421\u0442\u0430\u0442\u0443\u0441:"}),(0,e.createComponentVNode)(2,i.Stack.Item,{color:I.status==="\u0413\u043E\u0442\u043E\u0432"?"green":"red",children:[I.spectating," ",I.status]})]},I)})]})},m=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.phase,E=T.roleinfo,N=T.timeleft;return(0,e.createComponentVNode)(2,i.Section,{title:y,minHeight:"100px",maxHeight:"50px",buttons:(0,e.createComponentVNode)(2,i.Box,{style:{"font-family":"Consolas, monospace","font-size":"14px","line-height":1.5,"font-weight":"bold"},children:(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N})}),children:(0,e.createComponentVNode)(2,i.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Box,{bold:!0,children:["\u0412\u044B - ",E.role]}),(0,e.createComponentVNode)(2,i.Box,{italic:!0,children:E.desc})]}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:[(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.revealed_icon]),style:{transform:"scale(2) translate(0px, 10%)","vertical-align":"middle"}}),(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.hud_icon]),style:{transform:"scale(2) translate(-5px, -5px)","vertical-align":"middle"}})]})]})})},l=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.all_roles;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0420\u043E\u043B\u0438 \u0438 \u0417\u0430\u043C\u0435\u0442\u043A\u0438",minHeight:"120px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"address-book",tooltipPosition:"bottom-start",tooltip:"\u0412\u0435\u0440\u0445\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u044D\u0442\u043E \u0440\u043E\u043B\u0438 \u0432 \u0438\u0433\u0440\u0435. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0436\u0430\u0442\u044C \u043D\u0430 \u0437\u043D\u0430\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u0430,\n\u0447\u0442\u043E\u0431\u044B \u0443\u0437\u043D\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0440\u043E\u043B\u0438."}),(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",tooltipPosition:"bottom-start",tooltip:"\u041D\u0438\u0436\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u0432\u0430\u0448\u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438. \u041D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0440\u043E\u043B\u044F\u0445 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u043F\u0443\u0441\u0442\u043E\u0439,\n\u043D\u043E \u043D\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u0430\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F(\u0434\u0435\u0442\u0435\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0440\u0430\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F)"})],4),children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Flex,{height:"18px",align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{children:E}),(0,e.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"question",onClick:function(){function N(){return S("mf_lookup",{atype:E.slice(0,-3)})}return N}()})})]})},E)})})})},d=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.judgement_phase;return(0,e.createComponentVNode)(2,i.Section,{title:"\u0421\u0443\u0434",buttons:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"info",tooltipPosition:"left",tooltip:"\u041A\u043E\u0433\u0434\u0430 \u043A\u043E\u0433\u043E-\u0442\u043E \u0441\u0443\u0434\u044F\u0442, \u0432\u044B \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0435\u0433\u043E \u0441\u0443\u0434\u044C\u0431\u0443.\n\u041F\u043E\u0431\u0435\u0434\u0430 \u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D \u043E\u0437\u043D\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A \u0441\u043C\u043E\u0436\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0435\u0449\u0451 \u043E\u0434\u0438\u043D \u0434\u0435\u043D\u044C,\n\u043D\u043E... \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0443\u0436\u0435 \u043D\u0435 \u0441\u043B\u0443\u0447\u0438\u0442\u0441\u044F.\n\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0435 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C, \u043D\u0430\u0436\u0430\u0432 \u043D\u0430 \u0441\u0440\u0435\u0434\u043D\u044E\u044E \u043A\u043D\u043E\u043F\u043A\u0443."}),children:[(0,e.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,e.createComponentVNode)(2,i.Button,{icon:"smile-beam",content:"\u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D!",color:"good",disabled:!y,onClick:function(){function E(){return S("vote_innocent")}return E}()}),!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0441\u0443\u0434\u0438\u0442\u0441\u044F."}),!!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412\u0440\u0435\u043C\u044F \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F. \u041F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u0443\u0439 \u0438\u043B\u0438 \u0432\u043E\u0437\u0434\u0435\u0440\u0436\u0438\u0441\u044C."}),(0,e.createComponentVNode)(2,i.Button,{icon:"angry",color:"bad",disabled:!y,onClick:function(){function E(){return S("vote_guilty")}return E}(),children:"\u0412\u0418\u041D\u041E\u0412\u0415\u041D!"})]}),(0,e.createComponentVNode)(2,i.Flex,{justify:"center",children:(0,e.createComponentVNode)(2,i.Button,{icon:"meh",color:"white",disabled:!y,onClick:function(){function E(){return S("vote_abstain")}return E}(),children:"\u0412\u043E\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044C\u0441\u044F"})})]})},c=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.players;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0418\u0433\u0440\u0430\u0446\u0444\u043E\u043A\u0438",children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){var N;return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Stack,{height:"18px",align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,color:!E.alive&&"red",children:[E.name," ",!E.alive&&"(\u041C\u0401\u0420\u0422\u0412)"]}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,children:E.votes!==void 0&&!!E.alive&&"\u0413\u043E\u043B\u043E\u0441\u0430: "+E.votes}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,minWidth:"42px",textAlign:"center",children:(N=E.actions)==null?void 0:N.map(function(V){return(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function I(){return S("mf_targ_action",{atype:V,target:E.ref})}return I}(),children:V},V)})})]})},E.ref)})})})},g=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data;return(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u0410\u0414\u041C\u0418\u041D \u041F\u0410\u041D\u0415\u041B\u042C \u0423\u041F\u0420\u0410\u0412\u041B\u0415\u041D\u0418\u042F",color:"red",children:(0,e.createComponentVNode)(2,i.Section,{children:[(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043E\u0442 \u041A\u043E\u0434\u0435\u0440\u043E\u0432!",color:"transparent",children:"\u041F\u043E\u0447\u0442\u0438 \u0432\u0441\u0435 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043C\u043E\u0447\u044C \u043C\u043D\u0435 \u043E\u0442\u043B\u0430\u0434\u0438\u0442\u044C \u0438\u0433\u0440\u0443 (\u043E\u0439, \u043E\u0442\u043B\u0430\u0434\u043A\u0430 \u0438\u0433\u0440\u044B \u043D\u0430 12 \u0438\u0433\u0440\u043E\u043A\u043E\u0432!). \u0422\u0430\u043A \u0447\u0442\u043E, \u043E\u043D\u043E \u0432\u0441\u0435 \u0433\u0440\u0443\u0431\u043E\u0432\u0430\u0442\u043E\u0435 \u0438 \u0441\u043A\u043B\u043E\u043D\u043D\u043E \u043B\u043E\u043C\u0430\u0442\u044C\u0441\u044F \u043F\u043E \u043C\u0430\u043B\u0435\u0439\u0448\u0435\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0412\u044B \u0437\u043D\u0430\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043A\u043D\u043E\u043F\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0436\u043C\u0451\u0442\u0435 \u043D\u0430 \u043D\u0435\u0451. \u0422\u0430\u043A \u0436\u0435(\u043E\u0434\u0438\u043D \u0438\u0437 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u0432 \u044D\u0442\u043E \u0441\u0434\u0435\u043B\u0430\u043B), \u043D\u0438\u043A\u043E\u0433\u043E \u043D\u0435 \u0433\u0438\u0431\u0430\u0439\u0442\u0435 \u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0439\u0442\u0435 \u043B\u044E\u0431\u044B\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u0430\u043C\u0438! \u042D\u0442\u043E \u043F\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043A \u0440\u0430\u043D\u0442\u0430\u0439\u043C\u0443, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0432\u0441\u044E \u0438\u0433\u0440\u0443, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440!"}),(0,e.createComponentVNode)(2,i.Button,{icon:"arrow-right",onClick:function(){function y(){return S("next_phase")}return y}(),children:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0430\u0434\u0438\u044F"}),(0,e.createComponentVNode)(2,i.Button,{icon:"home",onClick:function(){function y(){return S("players_home")}return y}(),tooltip:"\u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u0412\u044B \u043D\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0436\u0438\u043C\u0430\u0442\u044C \u044D\u0442\u0443 \u043A\u043D\u043E\u043F\u043A\u0443 \u043E\u0447\u0435\u043D\u044C \u0447\u0430\u0441\u0442\u043E,\n\u044D\u0442\u043E \u043D\u0443\u0436\u043D\u043E \u043D\u0430 \u0442\u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439, \u0435\u0441\u043B\u0438 \u043A\u0430\u043A\u043E\u0439-\u0442\u043E \u0438\u0433\u0440\u043E\u043A\n\u043A\u0430\u043A\u0438\u043C-\u0442\u043E \u043E\u0431\u0440\u0430\u0437\u043E\u043C \u0441\u0431\u0435\u0433\u0430\u0435\u0442 (nullspace, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438, \u043E\u0442\u043A\u0440\u044B\u0442\u0430\u044F \u0434\u0432\u0435\u0440\u044C).\n\u0412 \u043B\u044E\u0431\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435, \u041E\u0427\u0415\u041D\u042C \u041F\u041B\u041E\u0425\u041E \u0415\u0421\u041B\u0418 \u042D\u0422\u041E \u041F\u0420\u041E\u0418\u0417\u041E\u0419\u0414\u0415\u0422.\n\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439 \u044D\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0438\u0433\u0440\u043E\u043A\u043E\u0432 \u0432\u0435\u0440\u043D\u0443\u0442\u044C, \u0430 \u0437\u0430\u0442\u0435\u043C \u0441\u043E\u043E\u0431\u0449\u0438 \u043D\u0430 \u0433\u0438\u0442\u0445\u0430\u0431.",children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0412\u0441\u0435\u0445 \u0414\u043E\u043C\u043E\u0439"}),(0,e.createComponentVNode)(2,i.Button,{icon:"sync-alt",onClick:function(){function y(){return S("new_game")}return y}(),tooltip:"\u042D\u0442\u043E \u043D\u0435\u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u0438\u0433\u0440\u0443 \u0438 \u043F\u043E\u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u043D\u0430\u0447\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E",children:"\u041D\u043E\u0432\u0430\u044F \u0418\u0433\u0440\u0430"}),(0,e.createComponentVNode)(2,i.Button,{icon:"skull",onClick:function(){function y(){return S("nuke")}return y}(),tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u0434\u0430\u0442\u0443\u043C\u044B, \u043E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 landmarks, \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u0445 \u0436\u0438\u0442\u0435\u043B\u0435\u0439 \u0438 \u043C\u0430\u0444\u0438\u044E,\n\u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u043C\u0435\u0441\u0442\u043E \u0438\u0433\u0440\u044B. \u041D\u0430\u0436\u043C\u0438 \u044D\u0442\u043E, \u0435\u0441\u043B\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u0441\u0451 \u043F\u043E\u043B\u043E\u043C\u0430\u043D\u043E.\n\u0422\u044B \u0432\u0435\u0434\u044C \u0443\u0436\u0435 \u0432\u0441\u0451 \u0441\u043B\u043E\u043C\u0430\u043B, \u043D\u0435 \u0442\u0430\u043A \u043B\u0438?",children:"Nuke"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-brush",onClick:function(){function y(){return S("debug_setup")}return y}(),tooltip:"\u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0434\u043B\u044F \u0438\u0433\u0440\u044B, \u044D\u0442\u043E \u0442\u0430\u043A... \u043F\u0440\u043E\u0441\u0442\u043E.\n\u0412\u044B \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0435\u0442\u0435 \u0440\u043E\u043B\u044C \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440, \u043F\u043E\u043A\u0430 \u043D\u0435 \u043D\u0430\u0436\u043C\u0451\u0442\u0435 CANCEL \u0438\u043B\u0438 FINISH.\n\u0421\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u0440\u0430\u0443\u043D\u0434\u0430, \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438.",children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"}),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-roller",onClick:function(){function y(){return S("cancel_setup")}return y}(),tooltip:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0447\u0442\u043E-\u0442\u043E \u043D\u0430\u043F\u0443\u0442\u0430\u043B\u0438, \u0442\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u044E\u0434\u0430 \u043D\u0430\u0436\u0430\u0442\u044C, \u0447\u0442\u043E\u0431\u044B \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443.\n\u0418\u0433\u0440\u0430 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442 \u0435\u0451 \u043F\u043E\u0441\u043B\u0435 \u043A\u0430\u0436\u0434\u043E\u0439 \u0438\u0433\u0440\u044B.",children:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"})]})})}},66238:function(b,n,t){"use strict";n.__esModule=!0,n.Minesweeper=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Minesweeper=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.width,g=d.height,u=d.grid,s=d.mines,h={"\u2000":"#ffffff",1:"#0092cc",2:"#779933",3:"#ff3333",4:"#087099",5:"#cc3333",6:"#A6B2EC",7:"#600095",8:"#E5E5E5"};return(0,e.createComponentVNode)(2,o.Window,{width:c,height:g+32,title:s,className:"Minesweeper__Window",children:(0,e.createComponentVNode)(2,o.Window.Content,{fitted:!0,height:g+32,children:u.map(function(p){return(0,e.createFragment)([p.map(function(S,T){return(0,e.createComponentVNode)(2,r.Button,{className:"Minesweeper__Button",disabled:S.state==="empty"?1:0,textColor:h[S.nearest],content:(0,e.createComponentVNode)(2,r.Box,{className:"Minesweeper__Button-Content",children:S.flag?(0,e.createComponentVNode)(2,r.Icon,{name:"flag",color:"#e73409"}):S.nearest}),onClick:function(){function y(){return l("button_press",{choice_x:S.x,choice_y:S.y})}return y}(),onContextMenu:function(){function y(E){E.preventDefault(),l("button_flag",{choice_x:S.x,choice_y:S.y})}return y}()},T)}),(0,e.createVNode)(1,"br")],0)})})})}return f}()},1102:function(b,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=n.MiningOreProcessingConsole=function(){function d(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.unclaimedPoints,S=h.ores,T=h.showAllOres,y=h.power,E=h.speed,N=h.ore_values;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function V(){return s("insert")}return V}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:y,onClick:function(){function V(){return s("power")}return V}(),children:y?"Processing":"Disabled"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:p<1,icon:"download",onClick:function(){function V(){return s("claim")}return V}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:p})})})}),(0,e.createComponentVNode)(2,l)]})})}return d}(),C=["Not Processing","Smelting","Compressing","Alloying"],m=null,l=function(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.ores,S=h.showAllOres,T=h.ore_values;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function y(){return s("showAllOres")}return y}(),children:S?"All Ores":"Ores in Machine"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:p.length&&p.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.ore),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:y.processing===0&&"red"||y.processing===1&&"green"||y.processing===2&&"blue"||y.processing===3&&"yellow",options:C,selected:C[y.processing],onSelected:function(){function E(N){return s("toggleSmelting",{ore:y.ore,set:C.indexOf(N)})}return E}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:y.amount})})},y.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.Collapsible,{title:"Mineral Value List",children:T.length&&T.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.name),children:[y.amount," points"]},y.name)})})})})]})}},77749:function(b,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=n.MiningStackingConsole=function(){function v(C,m){var l=(0,r.useBackend)(m),d=l.act,c=l.data,g=c.stacktypes,u=c.stackingAmt;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function s(h,p){return d("change_stack",{amt:p})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),g.length&&g.sort().map(function(s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(s.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function h(){return d("release_stack",{stack:s.type})}return h}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s.amt})},s.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return v}()},87684:function(b,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=t(35840),C=["title","items"];function m(s,h){if(s==null)return{};var p={};for(var S in s)if({}.hasOwnProperty.call(s,S)){if(h.includes(S))continue;p[S]=s[S]}return p}var l={Alphabetical:function(){function s(h,p){return h-p}return s}(),"By availability":function(){function s(h,p){return-(h.affordable-p.affordable)}return s}(),"By price":function(){function s(h,p){return h.price-p.price}return s}()},d=n.MiningVendor=function(){function s(h,p){return(0,e.createComponentVNode)(2,i.Window,{width:410,height:450,children:(0,e.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c)]})})}return s}(),c=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=y.has_id,N=y.id,V=y.items,I=(0,r.useLocalState)(p,"search",""),O=I[0],x=I[1],w=(0,r.useLocalState)(p,"sort","Alphabetical"),F=w[0],W=w[1],$=(0,r.useLocalState)(p,"descending",!1),z=$[0],k=$[1],M=(0,a.createSearch)(O,function(P){return P[0]}),D=!1,A=Object.entries(V).map(function(P,U){var K=Object.entries(P[1]).filter(M).map(function(G){return G[1].affordable=E&&N.points>=G[1].price,G[1]}).sort(l[F]);if(K.length!==0)return z&&(K=K.reverse()),D=!0,(0,e.createComponentVNode)(2,u,{title:P[0],items:K},P[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:D?A:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})},g=function(h,p){var S=(0,r.useLocalState)(p,"search",""),T=S[0],y=S[1],E=(0,r.useLocalState)(p,"sort",""),N=E[0],V=E[1],I=(0,r.useLocalState)(p,"descending",!1),O=I[0],x=I[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",autoFocus:!0,onInput:function(){function w(F,W){return y(W)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(){function w(F){return V(F)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:O?"arrow-down":"arrow-up",height:"19px",tooltip:O?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return x(!O)}return w}()})})]})})},u=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=h.title,N=h.items,V=m(h,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:E},V,{children:N.map(function(I){return(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"span",(0,v.classes)(["equipment_locker32x32",I.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"certificate",disabled:!y.has_id||y.id.points=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:s+5})}return N}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:!S||s>=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:E})}return N}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0440\u0435\u0434\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,r.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",disabled:!S||u&&!h,onClick:function(){function N(){return d("toggleSafety")}return N}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0430\u0439\u043C\u0435\u0440",children:(0,e.createComponentVNode)(2,r.Button,{selected:u,icon:"power-off",disabled:!S||h,content:u?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",onClick:function(){function N(){return d("bombSet")}return N}()})})]})]})})})}return v}()},46892:function(b,n,t){"use strict";n.__esModule=!0,n.Orbit=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595);function f(h,p){var S=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(S)return(S=S.call(h)).next.bind(S);if(Array.isArray(h)||(S=v(h))||p&&h&&typeof h.length=="number"){S&&(h=S);var T=0;return function(){return T>=h.length?{done:!0}:{done:!1,value:h[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(h,p){if(h){if(typeof h=="string")return C(h,p);var S={}.toString.call(h).slice(8,-1);return S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set"?Array.from(h):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?C(h,p):void 0}}function C(h,p){(p==null||p>h.length)&&(p=h.length);for(var S=0,T=Array(p);SS},c=function(p,S){var T=p.name,y=S.name;if(!T||!y)return 0;var E=T.match(m),N=y.match(m);if(E&&N&&T.replace(m,"")===y.replace(m,"")){var V=parseInt(E[1],10),I=parseInt(N[1],10);return V-I}return d(T,y)},g=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.searchText,N=p.source,V=p.title,I=N.filter(l(E));return I.sort(c),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+N.length+")",children:I.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{content:O.name,onClick:function(){function x(){return y("orbit",{ref:O.ref})}return x}()},O.name)})})},u=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.color,N=p.thing;return(0,e.createComponentVNode)(2,o.Button,{color:E,onClick:function(){function V(){return y("orbit",{ref:N.ref})}return V}(),children:N.name})},s=n.Orbit=function(){function h(p,S){for(var T=(0,r.useBackend)(S),y=T.act,E=T.data,N=E.alive,V=E.antagonists,I=E.dead,O=E.ghosts,x=E.misc,w=E.npcs,F=(0,r.useLocalState)(S,"searchText",""),W=F[0],$=F[1],z={},k=f(V),M;!(M=k()).done;)for(var D=M.value,A=f(D.antag),P;!(P=A()).done;){var U=P.value;z[U]===void 0&&(z[U]=[]),z[U].push(D)}var K=Object.entries(z);K.sort(function(X,_){return d(X[0],_[0])});var G=function(){function X(_){for(var J=0,ce=[K.map(function(re){var ye=re[0],Ae=re[1];return Ae}),N,O,I,w,x];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(X){var _=X[0],J=X[1];return(0,e.createComponentVNode)(2,o.Section,{title:_,level:2,children:J.filter(l(W)).sort(c).map(function(ce){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ce},ce.name)})},_)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+N.length+")",children:N.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"good",thing:X},X.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+O.length+")",children:O.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:X},X.name)})}),(0,e.createComponentVNode)(2,g,{title:"Dead",source:I,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"NPCs",source:w,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"Misc",source:x,searchText:W})]})})}return h}()},8189:function(b,n,t){"use strict";n.__esModule=!0,n.Particool=void 0;var e=t(89005),a=t(87341),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(9394),C=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:5,width:"39px",onDrag:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"int"}})}return F}()})},m=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return I=I||[0,0,0,0,0,0],(0,e.createComponentVNode)(2,i.Flex,{children:(0,e.createComponentVNode)(2,i.Flex.Item,{children:I.map(function(F,W){return(0,e.createComponentVNode)(2,i.NumberInput,{value:F,onDrag:function(){function $(z,k){I[W]=k,w("modify_particle_value",{new_data:{name:O,value:I,type:"matrix"}})}return $}()},W)})})})},l=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=(0,o.useLocalState)(V,"particleFloatStep",.01),W=F[0],$=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:4,step:W,format:function(){function z(k){return(0,a.toFixed)(k,(0,r.numberOfDecimalDigits)(W))}return z}(),width:"80px",onDrag:function(){function z(k,M){return w("modify_particle_value",{new_data:{name:O,value:M,type:"float"}})}return z}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,i.NumberInput,{value:W,step:.001,format:function(){function z(k){return(0,a.toFixed)(k,4)}return z}(),width:"70px",onChange:function(){function z(k,M){return $(M)}return z}()})],4)},d=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=["num","vector","box","color","circle","sphere","square","cube"],W=["UNIFORM_RAND","NORMAL_RAND","LINEAR_RAND","SQUARE_RAND"],$="",z="",k="",M="";if(v.logger.log(I),I){var D=I.match(/\((.*)\)/);if(D=D||["","","",""],D=D[1].split(", "),D.length===4){$=D[0],M=D[1];var A=D[2].match(/\((.*)\)/);z=A&&A[1];var P=D[3].match(/\((.*)\)/);k=P?P[1]:D[3]}}var U=(0,o.useLocalState)(V,O+"genType",$),K=U[0],G=U[1],X=(0,o.useLocalState)(V,O+"a",z),_=X[0],J=X[1],ce=(0,o.useLocalState)(V,O+"b",k),Ee=ce[0],le=ce[1],re=(0,o.useLocalState)(V,O+"rand",M),ye=re[0],Ae=re[1],xe=function(){v.logger.log(K),w("modify_particle_value",{new_data:{name:O,value:{genType:K,a:_,b:Ee,rand:ye},type:"generator"}})};return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Settings - Hit Set to save",children:(0,e.createComponentVNode)(2,i.Section,{level:2,children:[(0,e.createComponentVNode)(2,i.LabeledList,{children:[(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:K,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+F.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:K,onInput:function(){function Oe(ue,ne){return G(ne)}return Oe}()})})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"A",children:(0,e.createComponentVNode)(2,i.Input,{value:_,onInput:function(){function Oe(ue,ne){return J(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"B",children:(0,e.createComponentVNode)(2,i.Input,{value:Ee,onInput:function(){function Oe(ue,ne){return le(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"Rand Type",children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+W.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:ye,onInput:function(){function Oe(ue,ne){return Ae(ne)}return Oe}()})})})]}),(0,e.createComponentVNode)(2,i.Button,{content:"Set",onClick:function(){function Oe(){return xe()}return Oe}()})]})})},c=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.Input,{value:I,width:"250px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"string"}})}return F}()})},g=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=I?Object.keys(I).map(function(W){return I[W]}):[];return(0,e.createComponentVNode)(2,i.Input,{value:F.join(","),width:"250px",onInput:function(){function W($,z){return w("modify_particle_value",{new_data:{name:O,value:z,type:"numList"}})}return W}()})},u=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function F(){return w("modify_color_value")}return F}()}),(0,e.createComponentVNode)(2,i.ColorBox,{color:I,mr:.5}),(0,e.createComponentVNode)(2,i.Input,{value:I,width:"90px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"color"}})}return F}()})],4)},s=function(N,V){var I=N.value,O=(0,o.useBackend)(V),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_icon_value")}return w}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:I})],4)},h={width:"float",height:"float",count:"int",spawning:"float",bound1:"numlist",bound2:"numlist",gravity:"numlist",gradient:"string",transform:"matrix",lifespan:"float",fade:"float",icon:"icon",icon_state:"string",color:"color",color_change:"float",position:"generator",velocity:"generator",scale:"generator",grow:"generator",rotation:"float",spin:"float",friction:"float",drift:"generator"},p=function(N,V){var I=N.name,O={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},N))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},N))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},N))),numlist:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},N))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},N))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},N))),generator:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},N))),matrix:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},N)))};return(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:I,children:O[h[I]]||"Not Found (This is an error)"})},S=function(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=N.particle;return(0,e.createComponentVNode)(2,i.LabeledList,{children:Object.keys(h).map(function(F){var W=w[F];return(0,e.createComponentVNode)(2,p,{name:F,value:W},F)})})},T=function(){return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Help",children:[(0,e.createComponentVNode)(2,i.Section,{level:2}),(0,e.createComponentVNode)(2,i.Section,{level:2,children:(0,e.createVNode)(1,"table",null,(0,e.createVNode)(1,"tbody",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Generator type",16),(0,e.createVNode)(1,"td",null,"Result type",16),(0,e.createVNode)(1,"td",null,"Description",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"A random number between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector on a line between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"box",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector within a box whose corners are at A and B",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"color",16),(0,e.createVNode)(1,"td",null,"color (string) or color matrix",16),(0,e.createVNode)(1,"td",null,"Result type depends on whether A or B are matrices or not. The result is interpolated between A and B; components are not randomized separately.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"circle",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector in a ring between radius A and B, centered at 0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"sphere",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector in a spherical shell between radius A and B, centered at 0,0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"square",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector between squares of sizes A and B. (The length of the square is between A*2 and B*2, centered at 0,0.)",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"cube",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector between cubes of sizes A and B. (The length of the cube is between A*2 and B*2, centered at 0,0,0.)",16)],4)],4),2)})]})},y=n.Particool=function(){function E(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=x.target_particle||{},F=w&&Object.keys(w).length>0;return(0,e.createComponentVNode)(2,f.Window,{title:"Particool",width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.NoticeBox,{danger:!0,children:[" ",String(Date.now())," ",(0,e.createVNode)(1,"br"),"Particles? ",F.toString()," -",(x.target_particle===null).toString()," ",(0,e.createVNode)(1,"br"),"dazta Json - ",JSON.stringify(x.target_particle)]}),(0,e.createComponentVNode)(2,i.Section,{title:(0,e.createComponentVNode)(2,i.Box,{inline:!0,children:"Particle"}),buttons:F?(0,e.createComponentVNode)(2,i.Button.Confirm,{icon:"minus",content:"Remove Particle",onClick:function(){function W(){return O("remove_particle")}return W}()}):(0,e.createComponentVNode)(2,i.Button,{icon:"plus",content:"Add Particle",onClick:function(){function W(){return O("add_particle")}return W}()}),children:[(0,e.createComponentVNode)(2,T),F?(0,e.createComponentVNode)(2,S,{particle:w}):(0,e.createComponentVNode)(2,i.Box,{children:"No particle"})]})]})})}return E}()},56150:function(b,n,t){"use strict";n.__esModule=!0,n.Photocopier=void 0;var e=t(89005),a=t(36036),r=t(72253),o=t(98595),i=n.Photocopier=function(){function m(l,d){var c=(0,r.useBackend)(d),g=c.data,u=g.isAI,s=g.has_toner,h=g.has_item;return(0,e.createComponentVNode)(2,o.Window,{title:"Photocopier",width:240,height:u?309:234,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[s?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.createComponentVNode)(2,v):(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted item."})}),!!u&&(0,e.createComponentVNode)(2,C)]})})}return m}(),f=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.max_toner,h=u.current_toner,p=s*.66,S=s*.33;return(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[p,s],average:[S,p],bad:[0,S]},value:h,minValue:0,maxValue:s})})},v=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.num_copies,h=u.has_enough_toner;return(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:s,onDrag:function(){function p(S,T){return g("set_copies",{num_copies:T})}return p}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Button,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){function p(){return g("make_copy")}return p}(),children:"Copy"})})]}),(0,e.createComponentVNode)(2,a.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){function p(){return g("remove")}return p}(),children:"Remove item"})]})},C=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.can_AI_print;return(0,e.createComponentVNode)(2,a.Section,{title:"AI Options",children:(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!s,onClick:function(){function h(){return g("ai_photo")}return h}(),children:"Print photo from database"})})})}},57003:function(b,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortablePump=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.direction,u=c.target_pressure,s=c.default_pressure,h=c.min_pressure,p=c.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"sign-in-alt":"sign-out-alt",content:g?"In":"Out",selected:g,onClick:function(){function S(){return d("direction")}return S}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"kPa",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("pressure",{pressure:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("pressure",{pressure:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("pressure",{pressure:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("pressure",{pressure:"max"})}return S}()})]})]})})]})})}return v}()},70069:function(b,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortableScrubber=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.filter_types||[],u=c.target_rate,s=c.default_rate,h=c.min_rate,p=c.max_rate;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Scrubber",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"L/s",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("rate",{rate:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("rate",{rate:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("rate",{rate:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("rate",{rate:"max"})}return S}()})]})]})})]})})}return v}()},31197:function(b,n,t){"use strict";n.__esModule=!0,n.ReligiousTool=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=[],v=function(V,I){if(V===3)return(0,e.createComponentVNode)(2,u);if(I)return(0,e.createComponentVNode)(2,g);if(V===1)return(0,e.createComponentVNode)(2,l);if(V===2)return(0,e.createComponentVNode)(2,E)},C=n.ReligiousTool=function(){function N(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"tab",1),W=F[0],$=F[1],z=w.sects,k=w.encyclopedia;return k.ASPECTS.map(function(M){return f[M.name]=M.color}),(0,e.createComponentVNode)(2,i.Window,{width:1e3,height:700,children:(0,e.createComponentVNode)(2,i.Window.Content,{fontSize:"14px",children:[(0,e.createComponentVNode)(2,o.Tabs,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{direction:"raw",width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===1,onClick:function(){function M(){return $(1)}return M}(),children:["Religion ",(0,e.createComponentVNode)(2,o.Icon,{name:"place-of-worship"})]})}),!z&&(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===2,onClick:function(){function M(){return $(2)}return M}(),children:["Rites ",(0,e.createComponentVNode)(2,o.Icon,{name:"pray"})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===3,onClick:function(){function M(){return $(3)}return M}(),children:["Encyclopedia ",(0,e.createComponentVNode)(2,o.Icon,{name:"book-open"})]})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v(W,z)})]})})}return N}(),m=function(V,I){var O=null;return I.length?O=I.map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:(0,a.toTitleCase)(x)}),2,null,x)}):O=(0,e.createComponentVNode)(2,o.Box,{color:"gray",children:"Nothing."}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:V,fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:I.length?3:0,children:(0,e.createVNode)(1,"ui",null,O,0)})})})},l=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.name,W=w.deities,$=w.favor,z=w.piety,k=w.max_favor,M=w.passive_favor_gain,D=w.aspects,A=w.techs,P=w.god_spells,U=w.holy_reagents,K=w.faith_reactions;return(0,e.createComponentVNode)(2,o.Section,{title:F,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:W}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Stack,{mt:2,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Resources",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:3,children:(0,e.createVNode)(1,"ui",null,[(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"yellow",children:["Favor: ",$," / ",k,(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" "),(0,e.createTextVNode)("(+"),M,(0,e.createTextVNode)(")")],0,{style:{color:"gray","font-size":"8pt"}})]}),2),(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"pink",children:["Piety: ",z]}),2)],4)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Aspects",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",children:d("",D)})})}),m("Techs",A)]}),(0,e.createComponentVNode)(2,o.Stack,{children:[m("God Spells",P),m("Holy Reagents",U),m("Faith Reactions",K)]})]})]})},d=function(V,I,O){return O===void 0&&(O=!0),I?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:[(0,e.createVNode)(1,"ui",null,Object.keys(I).map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:f[x],children:[x," = ",I[x]]}),2,null,x)}),0),O?(0,e.createVNode)(1,"br"):""]})]}):null},c=function(V,I,O){return O===void 0&&(O=!0),!V&&!I?null:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"Costs:"}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,[!!V&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"yellow",children:[V," favor"]}),2),!!I&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:"pink",children:[I," piety"]}),2)],0)}),O?(0,e.createVNode)(1,"br"):""]})},g=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.sects,W=w.holds_religious_tool;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Sect Select",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:F.map(function($){return(0,e.createComponentVNode)(2,o.Collapsible,{title:(0,e.createVNode)(1,"b",null,$.name,0),color:"transparent",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.BlockQuote,{children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:$.desc}),(0,e.createComponentVNode)(2,o.Box,{children:[$.aspect_preset||$.aspects_count?(0,e.createVNode)(1,"br"):"",d("Aspects:",$.aspect_preset),$.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",$.aspects_count," aspects."]})]})]})}),(0,e.createComponentVNode)(2,o.Button,{mt:2,textAlign:"center",icon:"plus",fluid:!0,disabled:!W,onClick:function(){function z(){return x("sect_select",{path:$.path})}return z}(),children:[$.aspects_count?"Create":"Select"," ",$.name]})]},$.name)},$.name)})})})},u=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"cat",""),W=F[0],$=F[1],z=w.encyclopedia;return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Tabs,{vertical:1,children:Object.keys(z).map(function(k){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===k,onClick:function(){function M(){return $(k)}return M}(),children:(0,a.toTitleCase)(k)},k)})}),(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[W==="RITES"&&(0,e.createComponentVNode)(2,s),W==="SECTS"&&(0,e.createComponentVNode)(2,h),W==="ASPECTS"&&(0,e.createComponentVNode)(2,p),W==="GOD SPELLS"&&(0,e.createComponentVNode)(2,S),W==="HOLY REAGENTS"&&(0,e.createComponentVNode)(2,T),W==="FAITH REACTIONS"&&(0,e.createComponentVNode)(2,y)]})})]})},s=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.RITES,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc.replace(/<[/]?i>/g,"")}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"b",null,"Length:",16)," ",A.ritual_length/10," seconds."]}),(0,e.createComponentVNode)(2,o.Box,{color:A.can_talismaned?"green":"red",children:["Can",A.can_talismaned?"":"'t"," be talismaned."]}),A.needed_aspects?(0,e.createVNode)(1,"br"):"",d("Needed Aspects:",A.needed_aspects,!1),(!!A.favor_cost||!!A.piety_cost)&&(0,e.createVNode)(1,"br"),c(A.favor_cost,A.piety_cost,!1),(0,e.createComponentVNode)(2,o.Box,{children:!!A.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,A.tips.map(function(P){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:P.replace(/<[/]?i>/g,"")}),2,null,P)}),0)})]})})]})},A.name)})]})},h=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.SECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),(0,e.createVNode)(1,"br"),d("Aspect Preset:",A.aspect_preset,!1),A.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",A.aspects_count," aspects."]})]})},A.name)})]})},p=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.ASPECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{color:f[A.name],title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),A.god_desc&&(0,e.createComponentVNode)(2,o.Box,{children:[" ",(0,e.createVNode)(1,"br"),A.god_desc]})]})},A.name)})]})},S=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["GOD SPELLS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects),c(A.favor_cost),(0,e.createComponentVNode)(2,o.Box,{children:["Cooldown: ",A.charge_max/10," seconds"]})]})},A.name)})]})},T=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["HOLY REAGENTS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:d("Needed Aspects:",A.needed_aspects,!1)})},A.name)})]})},y=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["FAITH REACTIONS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.convertable_id+" to "+A.result_id}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id),children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects,!1),A.favor_cost?(0,e.createVNode)(1,"br"):"",c(A.favor_cost,0,!1)]})},(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id))})]})},E=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.rites,W=w.favor,$=w.piety,z=w.can_talismaning,k=w.holds_religious_tool,M=(0,r.useSharedState)(I,"searchText",""),D=M[0],A=M[1],P=(0,a.createSearch)(D,function(K){return K.name}),U=D.length>0&&F.filter(P)||F;return(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,X){return A(X)}return K}(),mb:1}),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mt:2,children:U.map(function(K){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:K.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fontColor:"white",disabled:!k||W0?" "+K.piety_cost+" piety":""),disabled:!z||!K.can_talismaned||W0?" and "+K.piety_cost+" piety":"","."]}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:K.desc}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:["Power: ",K.power]}),(0,e.createComponentVNode)(2,o.Box,{children:!!K.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,K.tips.map(function(G){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{children:G.replace(/<[/]?i>/g,"")}),2,null,G)}),0)})]})})]})]})},K.name)})})]})}},54431:function(b,n,t){"use strict";n.__esModule=!0,n.Safe=void 0;var e=t(89005),a=t(59626),r=t(72253),o=t(36036),i=t(98595),f=n.Safe=function(){function l(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open;return(0,e.createComponentVNode)(2,i.Window,{width:625,height:760,theme:"ntos",children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe__engraving-arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),p?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe__dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*h+"deg)"}})]}),!p&&(0,e.createComponentVNode)(2,m)]})})}return l}(),v=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open,S=s.locked,T=function(E,N){return(0,e.createComponentVNode)(2,o.Button,{disabled:p||N&&!S,icon:"arrow-"+(N?"right":"left"),content:(N?"Right":"Left")+" "+E,iconPosition:N?"right":"left",onClick:function(){function V(){return u(N?"turnleft":"turnright",{num:E})}return V}()})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:S,icon:p?"lock":"lock-open",content:p?"Close":"Open",mb:"0.5rem",onClick:function(){function y(){return u("open")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[T(50),T(10),T(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-right",position:"absolute",right:"5px",children:[T(1,!0),T(10,!0),T(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-number",children:h})]})},C=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__contents",overflow:"auto",children:h.map(function(p,S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function T(){return u("retrieve",{index:S+1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:p.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),p.name]}),(0,e.createVNode)(1,"br")],4,p)})})},m=function(d,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe__help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},98984:function(b,n,t){"use strict";n.__esModule=!0,n.SamplerPipe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SamplerPipe=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.gases,g=d.nodeName,u=d.locked;return(0,e.createComponentVNode)(2,o.Window,{title:"Atmospherics Alet System",width:300,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Node name",children:(0,e.createComponentVNode)(2,r.Input,{disabled:u,fluid:!0,value:g,onChange:function(){function s(h,p){return l("setName",{name:p})}return s}()})}),(0,e.createComponentVNode)(2,r.Section,{title:"Gases",children:c.map(function(s){return(0,e.createComponentVNode)(2,r.Section,{title:s.name,children:[(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Lower"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.min,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"min",value:S})}return h}()})})]}),(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Upper"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.max,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"max",value:S})}return h}()})})]})]},s.id)})})]})})}return f}()},23278:function(b,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=c.locked,s=c.l_setshort,h=c.code,p=c.emagged;return(0,e.createComponentVNode)(2,r.Box,{width:"185px",children:(0,e.createComponentVNode)(2,r.Grid,{width:"1px",children:g.map(function(S){return(0,e.createComponentVNode)(2,r.Grid.Column,{children:S.map(function(T){return(0,e.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,mb:"6px",content:T,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!s&&1||T!=="R"&&!u||h==="ERROR"&&T!=="R"&&1,onClick:function(){function y(){return d("type",{digit:T})}return y}()},T)})},S[0])})})})},f=n.SecureSafe=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.code,u=c.l_setshort,s=c.l_set,h=c.emagged,p=c.locked,S=!(s||u);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Box,{m:"6px",children:[S&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!h&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,r.Section,{height:"60px",children:(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",position:"center",fontSize:"35px",children:g&&g||(0,e.createComponentVNode)(2,r.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,r.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,r.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return v}()},32163:function(b,n,t){"use strict";n.__esModule=!0,n.SkillsConsole=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SkillsConsole=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.skill_list,g=d.IQ,u=d.MDI,s=d.skill_min_value,h=d.skill_max_value,p=d.compatible_species,S=d.inserted_cartridge,T=d.cartridge_name,y=d.cartridge_unpacked,E=d.connected_table,N=d.cartridge_points,V=d.connected_patient,I=d.free_points,O=d.can_inject,x=d.power_usage,w=d.power_max,F=d.power_current;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,width:600,height:675,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,r.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Power info",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Active power usage",children:[x/1e3," kW"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available power in area",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:w!=="No data"?F/w:"No data"})})]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{width:"40%",mr:1,children:(0,e.createComponentVNode)(2,r.Section,{title:"Patient status",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[!E&&(0,e.createComponentVNode)(2,r.Box,{children:"CMF manipulion table is not connected"}),!V&&(0,e.createComponentVNode)(2,r.Box,{children:"No patient detected"}),E&&V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"IQ",children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"MDI",children:u})],4)]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,r.Section,{title:"Cartridge information",children:[!S&&(0,e.createComponentVNode)(2,r.Box,{children:"No cartridge inserted"}),S===1&&(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Installed cartridge",children:[T,!y&&(0,e.createComponentVNode)(2,r.Box,{as:"span",m:5,children:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject cartridge",onClick:function(){function W(){l("eject")}return W}(),style:{marginLeft:20}})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Compatible species",children:p.join(", ")}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available USP",children:[y===0&&N,y===1&&I]})]})]})})]})}),y===0&&S===1&&(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("unpack")}return W}(),fluid:!0,color:"danger",tooltip:"This action will destroy the cartridge and begin the CMF manipulation procedure.",children:"Unpack cartridge"})}),y===1&&S===1&&(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"CMF manipulation",children:[Object.keys(c).map(function(W){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{onChange:function(){function $(z,k){c[W]=k,l("change_skill",c)}return $}(),step:1,value:c[W],maxValue:h,stepPixelSize:50,minValue:s})})})},W)}),(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("inject")}return W}(),fluid:!0,disabled:O===0,color:"green",children:"Inject implant"}),(0,e.createComponentVNode)(2,r.Button.Confirm,{onClick:function(){function W(){l("abort")}return W}(),fluid:!0,color:"danger",confirmContent:"Confirm ",children:"Abort"})]})]})})]})})})}return f}()},86162:function(b,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(49968),i=t(98595),f=1e3,v=n.Smes=function(){function C(m,l){var d=(0,a.useBackend)(l),c=d.act,g=d.data,u=g.capacityPercent,s=g.charge,h=g.inputAttempt,p=g.inputting,S=g.inputLevel,T=g.inputLevelMax,y=g.inputAvailable,E=g.outputAttempt,N=g.outputting,V=g.outputLevel,I=g.outputLevelMax,O=g.outputUsed,x=u>=100&&"good"||p&&"average"||"bad",w=N&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,i.Window,{width:340,height:350,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,r.ProgressBar,{fractionDigits:1,value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,r.Section,{title:"Input",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function F(){return c("tryinput")}return F}(),children:h?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:x,children:u>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function F(){return c("input",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:S===0,onClick:function(){function F(){return c("input",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:S/f,fillValue:y/f,minValue:0,maxValue:T/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("input",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:S===T,onClick:function(){function F(){return c("input",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:S===T,onClick:function(){function F(){return c("input",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(y)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Output",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:E?"power-off":"times",selected:E,onClick:function(){function F(){return c("tryoutput")}return F}(),children:E?"On":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:w,children:N?"Sending":s>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function F(){return c("output",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:V===0,onClick:function(){function F(){return c("output",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:V/f,minValue:0,maxValue:I/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("output",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:V===I,onClick:function(){function F(){return c("output",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:V===I,onClick:function(){function F(){return c("output",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(O)})]})})]})})}return C}()},38096:function(b,n,t){"use strict";n.__esModule=!0,n.SpawnersMenu=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(49968),v=n.SpawnersMenu=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.spawners;return(0,e.createComponentVNode)(2,i.Window,{title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0445 \u0440\u043E\u043B\u0435\u0439",width:700,height:525,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[!u.length&&(0,e.createComponentVNode)(2,o.Flex.Item,{fontSize:"14px",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{children:"\u0420\u043E\u043B\u0435\u0439 \u043D\u0435\u0442, \u043D\u043E \u043D\u0435 \u043F\u0435\u0447\u0430\u043B\u044C\u0441\u044F, \u043E\u043D\u0438 \u0441\u043A\u043E\u0440\u043E \u0431\u0443\u0434\u0443\u0442!"})}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(s.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C\u0441\u044F",onClick:function(){function h(){return c("jump",{ref:s.ref})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:s.register_only?s.checked?"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u0417\u0430\u044F\u0432\u0438\u0442\u044C":"\u041F\u043E\u044F\u0432\u0438\u0442\u044C\u0441\u044F",selected:s.checked,blocked:s.blocked,onClick:function(){function h(){return c("spawn",{ref:s.ref})}return h}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[s.time_left&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s.time_type===1?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E",color:s.time_type===1?"green":"red",children:(0,f.formatTime)(s.time_left)}),!!s.register_only&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432",children:s.registered_candidates}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041F\u043E\u0437\u0438\u0446\u0438\u0439 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E",children:s.positions}),s.playing>0&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u0418\u0433\u0440\u0430\u0435\u0442",children:s.playing}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:s.short_desc}),s.important_warning&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0430\u0436\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:s.important_warning}),s.wiki_ref&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0438\u043A\u0438",children:(0,e.createVNode)(1,"a",null,s.wiki_ref,0,{href:"{spawner.wiki_ref}",target:"_blank"})})]})}),(0,e.createVNode)(1,"br")]},s.ref)})]})})})}return C}()},85444:function(b,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=t(9394),v=n.Stack=function(){function c(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=p.amount,T=p.recipes;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:720,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Amount: "+S,children:(0,e.createComponentVNode)(2,C,{recipes:T})})})})}return c}(),C=function(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipes,T=Object.keys(S).sort();return T.map(function(y,E){var N=S[y];return N.ref===void 0?(0,e.createComponentVNode)(2,o.Collapsible,{ml:1,mb:-.7,color:"label",title:y,children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,C,{recipes:N})})},E):(0,e.createComponentVNode)(2,d,{title:y,recipe:N},E)})},m=function(g,u){return g.req_amount>u?0:Math.floor(u/g.req_amount)},l=function(g,u){for(var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipe,T=g.maxMultiplier,y=Math.min(T,Math.floor(S.max_res_amount/S.res_amount)),E=[5,10,25],N=[],V=function(){var w=O[I];y>=w&&N.push((0,e.createComponentVNode)(2,o.Button,{content:w*S.res_amount+"x",onClick:function(){function F(){return h("make",{ref:S.ref,multiplier:w})}return F}()}))},I=0,O=E;I1?"s":""),O+=")",E>1&&(O=E+"x "+O);var x=m(T,S);return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:!x,icon:"wrench",content:O,onClick:function(){function w(){return h("make",{ref:T.ref,multiplier:1})}return w}()})}),N>1&&x>1&&(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,l,{recipe:T,maxMultiplier:x})})]})})})}},1754:function(b,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Tank=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"min"})}return c}()}),(0,e.createComponentVNode)(2,r.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function c(g,u){return l("pressure",{pressure:u})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"max"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"reset"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:d.connected?"toggle-on":"toggle-off",content:"",selected:d.connected?"selected":null,onClick:function(){function c(){return l("internal")}return c}()})]})]})})})})}return f}()},53752:function(b,n,t){"use strict";n.__esModule=!0,n.Vote=void 0;var e=t(89005),a=t(72253),r=t(14596),o=t(36036),i=t(98595),f=n.Vote=function(){function d(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.isAdmin,p=s.currentPoll,S=s.polls,T=Math.min(730,90+(!p||h?45+26*S.filter(function(y){return!y.adminOnly||!!h}).length:0)+(p?135+22*p.choices.length:23));return(0,e.createComponentVNode)(2,i.Window,{width:450,height:T,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(!p||!!h)&&(0,e.createComponentVNode)(2,m),!!p&&(0,e.createComponentVNode)(2,l)]})]})})}return d}(),v=function(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.currentPoll,p=(0,a.useLocalState)(g,"infoModalOpen",!1),S=p[0],T=p[1];return S?h?(0,e.createComponentVNode)(2,o.Modal,{children:["\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canVoteMultiple?"\u0437\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432":"\u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043E\u0434\u0438\u043D \u0432\u0430\u0440\u0438\u0430\u043D\u0442"}),(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canRevote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canUnvote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),h.minimumWinPercentage?(0,e.createFragment)([(0,e.createTextVNode)("\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043D\u0430\u0431\u0440\u0430\u0442\u044C \u043C\u0438\u043D\u0438\u043C\u0443\u043C"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:[h.minimumWinPercentage*100,"%"]}),(0,e.createTextVNode)(", \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E\u0431\u0435\u0434\u0438\u043B")],0):"",h.description&&(0,e.createFragment)([(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Box,{dangerouslySetInnerHTML:{__html:(0,r.sanitizeText)(h.description)}})],4),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,align:"center",onClick:function(){function y(){return T(!1)}return y}(),children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]}):(T(!1),null):null},C=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=(0,a.useLocalState)(g,"infoModalOpen",!1),T=S[0],y=S[1],E=p==null?void 0:p.choices.some(function(N){return N.selected});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!!p&&p.choices.length!==0,title:p?"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435: "+p.poll.name:"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",buttons:p?(0,e.createComponentVNode)(2,o.Button,{icon:"info",color:"transparent",disabled:!p,onClick:function(){function N(){return y(!0)}return N}()}):void 0,children:p&&p.choices.length!==0?(0,e.createFragment)([p.showWarning?(0,e.createComponentVNode)(2,o.NoticeBox,{children:p.poll.message}):"",!!p.question&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:p.question}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack,{fill:!0,justify:"space-around",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B"}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0413\u043E\u043B\u043E\u0441\u0430"})]}),(0,e.createVNode)(1,"br"),p.choices.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{height:"22px",children:[(0,e.createComponentVNode)(2,o.Button,{maxWidth:"260px",ellipsis:!0,disabled:!p.canRevote&&E,selected:N.selected,onClick:function(){function V(){return s("putVote",{choiceRef:N.ref})}return V}(),children:N.name.replace(/^\w/,function(V){return V.toUpperCase()})}),!!N.selected&&(0,e.createComponentVNode)(2,o.Icon,{name:"vote-yea",color:"green",ml:1,verticalAlign:"super"})]}),(0,e.createComponentVNode)(2,o.Box,{mr:15,children:N.votes})]},N.ref)})]})],0):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,mb:"0",children:p?"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432!":"\u041D\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F!"})})})},m=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.isAdmin,S=h.polls;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041D\u0430\u0447\u0430\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,justify:"space-between",children:S?S.map(function(T){return(!T.adminOnly||!!p)&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{horizontal:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{width:9.5,textAlign:"center",onClick:function(){function y(){return s("toggleAdminOnly",{pollRef:T.type})}return y}(),children:T.adminOnly?"\u0422\u043E\u043B\u044C\u043A\u043E \u0430\u0434\u043C\u0438\u043D\u044B":"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0432\u0441\u0435\u043C"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!T.canStart&&!p||T.forceBlocked,color:p?T.canStart?void 0:"red":void 0,tooltip:T.message,content:T.name,onClick:function(){function y(){return s("callVote",{pollRef:T.type})}return y}()})})]})},T.name)}):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0439!"})})})})},l=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=h.isAdmin;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u0438: ",(p==null?void 0:p.timeRemaining)||0,"\u0441"]}),!!S&&!!p&&(0,e.createComponentVNode)(2,o.Button,{color:"red",disabled:!S,onClick:function(){function T(){return s("cancelVote")}return T}(),children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435"})]})})})}},30138:function(b,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Wires=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.wires||[],g=d.status||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:45+c.length*25+(g.length>0?35:0)+g.length*12,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{className:"candystripe",label:u.label?u.label:"\u041F\u0440\u043E\u0432\u043E\u0434\u0430",labelColor:u.color,color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Button,{content:u.cut?"\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u0442\u044C",onClick:function(){function s(){return l("cut",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0443\u043B\u044C\u0441",onClick:function(){function s(){return l("pulse",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:u.attached?"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0440\u0438\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",onClick:function(){function s(){return l("attach",{wire:u.wire})}return s}()})],4)},u.color)})})}),!!g.length&&(0,e.createComponentVNode)(2,r.Section,{children:g.map(function(u){return typeof u=="string"?(0,e.createComponentVNode)(2,r.Box,{children:u},u):(0,e.createComponentVNode)(2,r.Button,{content:u.label,onClick:function(){function s(){return l(u.act,u.act_params?u.act_params:void 0)}return s}()},u)})})]})})}return f}()},49148:function(b,n,t){"use strict";n.__esModule=!0,n.AccessList=void 0;var e=t(89005),a=t(88510),r=t(72253),o=t(36036);function i(l,d){var c=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(c)return(c=c.call(l)).next.bind(c);if(Array.isArray(l)||(c=f(l))||d&&l&&typeof l.length=="number"){c&&(l=c);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(l,d){if(l){if(typeof l=="string")return v(l,d);var c={}.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?v(l,d):void 0}}function v(l,d){(d==null||d>l.length)&&(d=l.length);for(var c=0,g=Array(d);c0&&!O.includes(U.ref)&&!V.includes(U.ref),checked:V.includes(U.ref),onClick:function(){function K(){return x(U.ref)}return K}()},U.desc)})]})]})})}return l}()},195:function(b,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.InterfaceLockNoticeBox=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.siliconUser,c=d===void 0?l.siliconUser:d,g=f.locked,u=g===void 0?l.locked:g,s=f.onLockStatusChange,h=s===void 0?function(){return m("lock")}:s,p=f.accessText,S=p===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":p;return c?(0,e.createComponentVNode)(2,r.NoticeBox,{color:"grey",children:(0,e.createComponentVNode)(2,r.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441:"}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,r.Button,{m:0,color:u?"red":"green",icon:u?"lock":"unlock",content:u?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D",onClick:function(){function T(){h&&h(!u)}return T}()})})]})}):(0,e.createComponentVNode)(2,r.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",S," \u0434\u043B\u044F ",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438":"\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","."]})}return i}()},190:function(b,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.MiningUser=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.insertIdText,c=l.has_id,g=l.id;return(0,e.createComponentVNode)(2,r.NoticeBox,{success:c,children:c?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",g.name,".",(0,e.createVNode)(1,"br"),"You have ",g.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function u(){return m("logoff")}return u}()}),(0,e.createComponentVNode)(2,r.Box,{style:{clear:"both"}})],4):d})}return i}()},78091:function(b,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.PortableBasicInfo=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=l.connected,c=l.holding,g=l.on,u=l.pressure,s=l.power_draw,h=l.cell_charge,p=l.cell_maxcharge,S=h/p;return(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"power-off":"times",content:g?"On":"Off",selected:g,onClick:function(){function T(){return m("power")}return T}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:u})," kPa"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Port",color:d?"good":"average",children:d?"Connected":"Not Connected"})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Cell",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:s})," W"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,.1],average:[.1,.6],good:[.6,1/0]},value:S})})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",disabled:!c,onClick:function(){function T(){return m("eject")}return T}()}),children:c?(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Label",children:c.name}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:c.pressure})," kPa"]})]}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"No holding tank"})})],4)}return i}()},17617:function(b,n,t){"use strict";n.__esModule=!0,n.Layout=void 0;var e=t(89005),a=t(35840),r=t(55937),o=t(24826),i=["className","theme","children"],f=["className","scrollable","children"];/** + */var m=0,l=n.ListInput=function(){function c(g,u){var s=(0,o.useBackend)(u),h=s.act,p=s.data,S=p.title,T=p.message,y=p.buttons,E=p.timeout,N=(0,o.useLocalState)(u,"search_bar",!1),V=N[0],I=N[1],O=(0,o.useLocalState)(u,"displayed_array",y),x=O[0],w=O[1],F=(0,o.useLocalState)(u,"search_array",[]),W=F[0],$=F[1],z=(0,o.useLocalState)(u,"search_index",0),k=z[0],M=z[1],D=(0,o.useLocalState)(u,"last_char_code",null),A=D[0],P=D[1],U=(0,o.useLocalState)(u,"selected_button",y[0]),K=U[0],G=U[1];return(0,e.createComponentVNode)(2,f.Window,{title:S,width:325,height:325,resizable:!0,children:[E!==void 0&&(0,e.createComponentVNode)(2,d,{value:E}),(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",height:"100%",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,children:(0,e.createComponentVNode)(2,i.Section,{scrollable:!0,className:"ListInput__Section",width:"100%",fill:!0,title:T,tabIndex:0,onKeyDown:function(){function X(_){if(_.preventDefault(),(0,C.acquireHotKey)(v.KEY_DOWN),(0,C.acquireHotKey)(v.KEY_UP),!(m>performance.now())){if(m=performance.now()+125,_.keyCode===v.KEY_UP||_.keyCode===v.KEY_DOWN){var J=1;_.keyCode===v.KEY_UP&&(J=-1);var ce=0;for(ce;ce=y.length&&(ce=0),G(y[ce]),P(null),document.getElementById(y[ce]).focus();return}if(_.keyCode===v.KEY_SPACE||_.keyCode===v.KEY_ENTER){h("choose",{choice:K});return}var Ee=String.fromCharCode(_.keyCode).toLowerCase();if(Ee){var le;if(Ee===A&&W.length>0){var re=k+1;re0&&($(ye),M(0),le=ye[0])}le&&(P(Ee),G(le),document.getElementById(le).focus())}}}return X}(),buttons:(0,e.createComponentVNode)(2,i.Button,{icon:"search",color:"transparent",selected:V,tooltip:"Search Bar",tooltipPosition:"left",onClick:function(){function X(){I(!V),w(y)}return X}(),compact:!0}),children:(0,e.createComponentVNode)(2,i.Flex,{wrap:"wrap",children:x.map(function(X){return(0,e.createComponentVNode)(2,i.Flex.Item,{basis:"100%",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",content:X,id:X,width:"100%",selected:K===X,onClick:function(){function _(){if(K===X)h("choose",{choice:X});else{G(X);var J=0;for(J;J=y.length&&(J=0),P(null),document.getElementById(y[J]).focus()}P(null)}return _}()},null,{onComponentDidMount:function(){function _(J){K===X&&J.focus()}return _}()})},X)})})})}),V&&(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Input,{fluid:!0,onInput:function(){function X(_,J){return w(y.filter((0,a.createSearch)(J)))}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{mt:1,children:(0,e.createComponentVNode)(2,i.Flex,{textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"bad",lineHeight:2,content:"Cancel",onClick:function(){function X(){return h("cancel")}return X}()})}),(0,e.createComponentVNode)(2,i.Flex.Item,{grow:1,basis:0,ml:1,children:(0,e.createComponentVNode)(2,i.Button,{fluid:!0,color:"good",lineHeight:2,content:"Confirm",disabled:K===null,onClick:function(){function X(){return h("choose",{choice:K})}return X}()})})]})})]})})]})}return c}(),d=n.Loader=function(){function c(g){var u=g.value;return(0,e.createVNode)(1,"div","ListInput__Loader",(0,e.createComponentVNode)(2,i.Box,{className:"ListInput__LoaderProgress",style:{width:(0,r.clamp01)(u)*100+"%"}}),2)}return c}()},70073:function(b,n,t){"use strict";n.__esModule=!0,n.Lootcrate=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Lootcrate=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.code,g=d.buttons_pressed;return(0,e.createComponentVNode)(2,o.Window,{width:235,height:140,theme:"ntos",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-9px",content:1,color:g[0]?c[0]===1||c[1]===1||c[2]===1?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:1})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-14px",content:2,color:g[1]?c[0]===2||c[1]===2||c[2]===2?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:2})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+6px",right:"-19px",content:3,color:g[2]?c[0]===3||c[1]===3||c[2]===3?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:3})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-9px",content:4,color:g[3]?c[0]===4||c[1]===4||c[2]===4?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:4})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-14px",content:5,color:g[4]?c[0]===5||c[1]===5||c[2]===5?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:5})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+5px",right:"-19px",content:6,color:g[5]?c[0]===6||c[1]===6||c[2]===6?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:6})}return u}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-9px",content:7,color:g[6]?c[0]===7||c[1]===7||c[2]===7?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:7})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-14px",content:8,color:g[7]?c[0]===8||c[1]===8||c[2]===8?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:8})}return u}()}),(0,e.createComponentVNode)(2,r.Button,{top:"+4px",right:"-19px",content:9,color:g[8]?c[0]===9||c[1]===9||c[2]===9?"good":"bad":null,onClick:function(){function u(){return l("test_for_luck",{number:9})}return u}()})]})]})})})})}return f}()},76298:function(b,n,t){"use strict";n.__esModule=!0,n.MafiaPanel=void 0;var e=t(89005),a=t(35840),r=t(25328),o=t(72253),i=t(36036),f=t(98595),v=n.MafiaPanel=function(){function u(s,h){var p,S=(0,o.useBackend)(h),T=S.act,y=S.data,E=y.actions,N=y.phase,V=y.roleinfo,I=y.role_theme,O=y.admin_controls;return(0,e.createComponentVNode)(2,f.Window,{title:"\u041C\u0430\u0444\u0438\u044F",theme:I,width:650,height:580,children:(0,e.createComponentVNode)(2,f.Window.Content,{children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,C)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),E==null?void 0:E.map(function(x){return(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function w(){return T("mf_action",{atype:x})}return w}(),children:x})},x)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,d)}),N!=="\u041D\u0435\u0442 \u0418\u0433\u0440\u044B"&&(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1.34,basis:0,children:(0,e.createComponentVNode)(2,c)}),(0,e.createComponentVNode)(2,i.Stack.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,i.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),!!V&&(0,e.createComponentVNode)(2,i.Stack.Item,{height:"80px",children:(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,children:(p=V.action_log)==null?void 0:p.map(function(x){return(0,e.createComponentVNode)(2,i.Box,{children:x},x)})})})]})})]})}),!!O&&(0,e.createComponentVNode)(2,i.Stack.Item,{children:(0,e.createComponentVNode)(2,g)})]})})})}return u}(),C=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.lobbydata,E=T.phase,N=T.timeleft,V=y?y.filter(function(I){return I.status==="\u0413\u043E\u0442\u043E\u0432"}):null;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"Lobby",buttons:(0,e.createFragment)([(0,e.createTextVNode)("\u0421\u0442\u0430\u0434\u0438\u044F = "),E,(0,e.createTextVNode)(" | "),(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N}),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,i.Button,{icon:"clipboard-check",tooltipPosition:"bottom-start",tooltip:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F \u0432 \u0438\u0433\u0440\u0443. \u0415\u0441\u043B\u0438 \u043E\u043D\u0430 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442, \u0442\u043E\n\u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E.",content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function I(){return S("mf_signup")}return I}()}),(0,e.createComponentVNode)(2,i.Button,{icon:"eye",tooltipPosition:"bottom-start",tooltip:"\u0412\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u0435\u043B\u0435\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u044D\u0442\u043E.\n\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043A\u043B\u044E\u0447\u0430\u0435\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0412\u044B \u0443\u043C\u0438\u0440\u0430\u0435\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442 \u0438\u0433\u0440\u044B.\n\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u0445\u043E\u0434\u0438\u0442\u044C, \u0435\u0441\u043B\u0438 \u0412\u044B \u0432\u043E\u0439\u0434\u0451\u0442\u0435 \u0432 \u0440\u0430\u0443\u043D\u0434.",content:"\u041D\u0430\u0431\u043B\u044E\u0434\u0430\u0442\u044C",onClick:function(){function I(){return S("mf_spectate")}return I}()})],0),children:[(0,e.createComponentVNode)(2,i.NoticeBox,{info:!0,children:["\u0412 \u043B\u043E\u0431\u0431\u0438 ",V?V.length:"0","/12 \u0432\u0430\u043B\u0438\u0434\u043D\u044B\u0445 \u0438\u0433\u0440\u043E\u043A\u043E\u0432."]}),y==null?void 0:y.map(function(I){return(0,e.createComponentVNode)(2,i.Stack,{className:"candystripe",p:1,align:"baseline",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,children:I.name}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:"\u0421\u0442\u0430\u0442\u0443\u0441:"}),(0,e.createComponentVNode)(2,i.Stack.Item,{color:I.status==="\u0413\u043E\u0442\u043E\u0432"?"green":"red",children:[I.spectating," ",I.status]})]},I)})]})},m=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.phase,E=T.roleinfo,N=T.timeleft;return(0,e.createComponentVNode)(2,i.Section,{title:y,minHeight:"100px",maxHeight:"50px",buttons:(0,e.createComponentVNode)(2,i.Box,{style:{"font-family":"Consolas, monospace","font-size":"14px","line-height":1.5,"font-weight":"bold"},children:(0,e.createComponentVNode)(2,i.TimeDisplay,{auto:"down",value:N})}),children:(0,e.createComponentVNode)(2,i.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,textAlign:"center",children:[(0,e.createComponentVNode)(2,i.Box,{bold:!0,children:["\u0412\u044B - ",E.role]}),(0,e.createComponentVNode)(2,i.Box,{italic:!0,children:E.desc})]}),(0,e.createComponentVNode)(2,i.Stack.Item,{children:[(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.revealed_icon]),style:{transform:"scale(2) translate(0px, 10%)","vertical-align":"middle"}}),(0,e.createComponentVNode)(2,i.Box,{className:(0,a.classes)(["mafia32x32",E.hud_icon]),style:{transform:"scale(2) translate(-5px, -5px)","vertical-align":"middle"}})]})]})})},l=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.all_roles;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0420\u043E\u043B\u0438 \u0438 \u0417\u0430\u043C\u0435\u0442\u043A\u0438",minHeight:"120px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"address-book",tooltipPosition:"bottom-start",tooltip:"\u0412\u0435\u0440\u0445\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u044D\u0442\u043E \u0440\u043E\u043B\u0438 \u0432 \u0438\u0433\u0440\u0435. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0430\u0436\u0430\u0442\u044C \u043D\u0430 \u0437\u043D\u0430\u043A \u0432\u043E\u043F\u0440\u043E\u0441\u0430,\n\u0447\u0442\u043E\u0431\u044B \u0443\u0437\u043D\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0440\u043E\u043B\u0438."}),(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"edit",tooltipPosition:"bottom-start",tooltip:"\u041D\u0438\u0436\u043D\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043B - \u0432\u0430\u0448\u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0437\u0430\u043C\u0435\u0442\u043A\u0438. \u041D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0440\u043E\u043B\u044F\u0445 \u043E\u043D \u0431\u0443\u0434\u0435\u0442 \u043F\u0443\u0441\u0442\u043E\u0439,\n\u043D\u043E \u043D\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043F\u0438\u0441\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u0430\u0448\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F(\u0434\u0435\u0442\u0435\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0440\u0430\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F)"})],4),children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Flex,{height:"18px",align:"center",justify:"space-between",children:[(0,e.createComponentVNode)(2,i.Flex.Item,{children:E}),(0,e.createComponentVNode)(2,i.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"question",onClick:function(){function N(){return S("mf_lookup",{atype:E.slice(0,-3)})}return N}()})})]})},E)})})})},d=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.judgement_phase;return(0,e.createComponentVNode)(2,i.Section,{title:"\u0421\u0443\u0434",buttons:(0,e.createComponentVNode)(2,i.Button,{color:"transparent",icon:"info",tooltipPosition:"left",tooltip:"\u041A\u043E\u0433\u0434\u0430 \u043A\u043E\u0433\u043E-\u0442\u043E \u0441\u0443\u0434\u044F\u0442, \u0432\u044B \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0435\u0433\u043E \u0441\u0443\u0434\u044C\u0431\u0443.\n\u041F\u043E\u0431\u0435\u0434\u0430 \u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D \u043E\u0437\u043D\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A \u0441\u043C\u043E\u0436\u0435\u0442 \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u0435\u0449\u0451 \u043E\u0434\u0438\u043D \u0434\u0435\u043D\u044C,\n\u043D\u043E... \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u044F \u044D\u0442\u043E\u0433\u043E \u0443\u0436\u0435 \u043D\u0435 \u0441\u043B\u0443\u0447\u0438\u0442\u0441\u044F.\n\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043D\u0435 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C, \u043D\u0430\u0436\u0430\u0432 \u043D\u0430 \u0441\u0440\u0435\u0434\u043D\u044E\u044E \u043A\u043D\u043E\u043F\u043A\u0443."}),children:[(0,e.createComponentVNode)(2,i.Flex,{justify:"space-around",children:[(0,e.createComponentVNode)(2,i.Button,{icon:"smile-beam",content:"\u041D\u0415\u0412\u0418\u041D\u041E\u0412\u0415\u041D!",color:"good",disabled:!y,onClick:function(){function E(){return S("vote_innocent")}return E}()}),!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0441\u0443\u0434\u0438\u0442\u0441\u044F."}),!!y&&(0,e.createComponentVNode)(2,i.Box,{children:"\u0412\u0440\u0435\u043C\u044F \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F. \u041F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u0443\u0439 \u0438\u043B\u0438 \u0432\u043E\u0437\u0434\u0435\u0440\u0436\u0438\u0441\u044C."}),(0,e.createComponentVNode)(2,i.Button,{icon:"angry",color:"bad",disabled:!y,onClick:function(){function E(){return S("vote_guilty")}return E}(),children:"\u0412\u0418\u041D\u041E\u0412\u0415\u041D!"})]}),(0,e.createComponentVNode)(2,i.Flex,{justify:"center",children:(0,e.createComponentVNode)(2,i.Button,{icon:"meh",color:"white",disabled:!y,onClick:function(){function E(){return S("vote_abstain")}return E}(),children:"\u0412\u043E\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044C\u0441\u044F"})})]})},c=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data,y=T.players;return(0,e.createComponentVNode)(2,i.Section,{fill:!0,scrollable:!0,title:"\u0418\u0433\u0440\u0430\u0446\u0444\u043E\u043A\u0438",children:(0,e.createComponentVNode)(2,i.Flex,{direction:"column",children:y==null?void 0:y.map(function(E){var N;return(0,e.createComponentVNode)(2,i.Flex.Item,{height:"30px",className:"Section__title candystripe",children:(0,e.createComponentVNode)(2,i.Stack,{height:"18px",align:"center",children:[(0,e.createComponentVNode)(2,i.Stack.Item,{grow:!0,color:!E.alive&&"red",children:[E.name," ",!E.alive&&"(\u041C\u0401\u0420\u0422\u0412)"]}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,children:E.votes!==void 0&&!!E.alive&&"\u0413\u043E\u043B\u043E\u0441\u0430: "+E.votes}),(0,e.createComponentVNode)(2,i.Stack.Item,{shrink:0,minWidth:"42px",textAlign:"center",children:(N=E.actions)==null?void 0:N.map(function(V){return(0,e.createComponentVNode)(2,i.Button,{onClick:function(){function I(){return S("mf_targ_action",{atype:V,target:E.ref})}return I}(),children:V},V)})})]})},E.ref)})})})},g=function(s,h){var p=(0,o.useBackend)(h),S=p.act,T=p.data;return(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u0410\u0414\u041C\u0418\u041D \u041F\u0410\u041D\u0415\u041B\u042C \u0423\u041F\u0420\u0410\u0412\u041B\u0415\u041D\u0418\u042F",color:"red",children:(0,e.createComponentVNode)(2,i.Section,{children:[(0,e.createComponentVNode)(2,i.Collapsible,{title:"\u041F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u0435 \u043E\u0442 \u041A\u043E\u0434\u0435\u0440\u043E\u0432!",color:"transparent",children:"\u041F\u043E\u0447\u0442\u0438 \u0432\u0441\u0435 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043C\u043E\u0447\u044C \u043C\u043D\u0435 \u043E\u0442\u043B\u0430\u0434\u0438\u0442\u044C \u0438\u0433\u0440\u0443 (\u043E\u0439, \u043E\u0442\u043B\u0430\u0434\u043A\u0430 \u0438\u0433\u0440\u044B \u043D\u0430 12 \u0438\u0433\u0440\u043E\u043A\u043E\u0432!). \u0422\u0430\u043A \u0447\u0442\u043E, \u043E\u043D\u043E \u0432\u0441\u0435 \u0433\u0440\u0443\u0431\u043E\u0432\u0430\u0442\u043E\u0435 \u0438 \u0441\u043A\u043B\u043E\u043D\u043D\u043E \u043B\u043E\u043C\u0430\u0442\u044C\u0441\u044F \u043F\u043E \u043C\u0430\u043B\u0435\u0439\u0448\u0435\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0412\u044B \u0437\u043D\u0430\u0435\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043A\u043D\u043E\u043F\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0436\u043C\u0451\u0442\u0435 \u043D\u0430 \u043D\u0435\u0451. \u0422\u0430\u043A \u0436\u0435(\u043E\u0434\u0438\u043D \u0438\u0437 \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u0432 \u044D\u0442\u043E \u0441\u0434\u0435\u043B\u0430\u043B), \u043D\u0438\u043A\u043E\u0433\u043E \u043D\u0435 \u0433\u0438\u0431\u0430\u0439\u0442\u0435 \u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0439\u0442\u0435 \u043B\u044E\u0431\u044B\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u0430\u043C\u0438! \u042D\u0442\u043E \u043F\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043A \u0440\u0430\u043D\u0442\u0430\u0439\u043C\u0443, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0432\u0441\u044E \u0438\u0433\u0440\u0443, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043B\u043E\u043C\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440!"}),(0,e.createComponentVNode)(2,i.Button,{icon:"arrow-right",onClick:function(){function y(){return S("next_phase")}return y}(),children:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0430\u0434\u0438\u044F"}),(0,e.createComponentVNode)(2,i.Button,{icon:"home",onClick:function(){function y(){return S("players_home")}return y}(),tooltip:"\u041D\u0430\u0434\u0435\u044E\u0441\u044C, \u0412\u044B \u043D\u0435 \u0431\u0443\u0434\u0435\u0442\u0435 \u043D\u0430\u0436\u0438\u043C\u0430\u0442\u044C \u044D\u0442\u0443 \u043A\u043D\u043E\u043F\u043A\u0443 \u043E\u0447\u0435\u043D\u044C \u0447\u0430\u0441\u0442\u043E,\n\u044D\u0442\u043E \u043D\u0443\u0436\u043D\u043E \u043D\u0430 \u0442\u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439, \u0435\u0441\u043B\u0438 \u043A\u0430\u043A\u043E\u0439-\u0442\u043E \u0438\u0433\u0440\u043E\u043A\n\u043A\u0430\u043A\u0438\u043C-\u0442\u043E \u043E\u0431\u0440\u0430\u0437\u043E\u043C \u0441\u0431\u0435\u0433\u0430\u0435\u0442 (nullspace, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438, \u043E\u0442\u043A\u0440\u044B\u0442\u0430\u044F \u0434\u0432\u0435\u0440\u044C).\n\u0412 \u043B\u044E\u0431\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435, \u041E\u0427\u0415\u041D\u042C \u041F\u041B\u041E\u0425\u041E \u0415\u0421\u041B\u0418 \u042D\u0422\u041E \u041F\u0420\u041E\u0418\u0417\u041E\u0419\u0414\u0415\u0422.\n\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439 \u044D\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0438\u0433\u0440\u043E\u043A\u043E\u0432 \u0432\u0435\u0440\u043D\u0443\u0442\u044C, \u0430 \u0437\u0430\u0442\u0435\u043C \u0441\u043E\u043E\u0431\u0449\u0438 \u043D\u0430 \u0433\u0438\u0442\u0445\u0430\u0431.",children:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0412\u0441\u0435\u0445 \u0414\u043E\u043C\u043E\u0439"}),(0,e.createComponentVNode)(2,i.Button,{icon:"sync-alt",onClick:function(){function y(){return S("new_game")}return y}(),tooltip:"\u042D\u0442\u043E \u043D\u0435\u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u0438\u0433\u0440\u0443 \u0438 \u043F\u043E\u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u043D\u0430\u0447\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E",children:"\u041D\u043E\u0432\u0430\u044F \u0418\u0433\u0440\u0430"}),(0,e.createComponentVNode)(2,i.Button,{icon:"skull",onClick:function(){function y(){return S("nuke")}return y}(),tooltip:"\u0423\u0434\u0430\u043B\u044F\u0435\u0442 \u0434\u0430\u0442\u0443\u043C\u044B, \u043E\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0441\u0435 landmarks, \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435\u0445 \u0436\u0438\u0442\u0435\u043B\u0435\u0439 \u0438 \u043C\u0430\u0444\u0438\u044E,\n\u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u043C\u0435\u0441\u0442\u043E \u0438\u0433\u0440\u044B. \u041D\u0430\u0436\u043C\u0438 \u044D\u0442\u043E, \u0435\u0441\u043B\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u0441\u0451 \u043F\u043E\u043B\u043E\u043C\u0430\u043D\u043E.\n\u0422\u044B \u0432\u0435\u0434\u044C \u0443\u0436\u0435 \u0432\u0441\u0451 \u0441\u043B\u043E\u043C\u0430\u043B, \u043D\u0435 \u0442\u0430\u043A \u043B\u0438?",children:"Nuke"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-brush",onClick:function(){function y(){return S("debug_setup")}return y}(),tooltip:"\u042D\u0442\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443 \u0434\u043B\u044F \u0438\u0433\u0440\u044B, \u044D\u0442\u043E \u0442\u0430\u043A... \u043F\u0440\u043E\u0441\u0442\u043E.\n\u0412\u044B \u0434\u043E\u0431\u0430\u0432\u043B\u044F\u0435\u0442\u0435 \u0440\u043E\u043B\u044C \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440, \u043F\u043E\u043A\u0430 \u043D\u0435 \u043D\u0430\u0436\u043C\u0451\u0442\u0435 CANCEL \u0438\u043B\u0438 FINISH.\n\u0421\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u043E\u0441\u043B\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0438\u044F \u0440\u0430\u0443\u043D\u0434\u0430, \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438.",children:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"}),(0,e.createComponentVNode)(2,i.Button,{icon:"paint-roller",onClick:function(){function y(){return S("cancel_setup")}return y}(),tooltip:"\u0415\u0441\u043B\u0438 \u0432\u044B \u0447\u0442\u043E-\u0442\u043E \u043D\u0430\u043F\u0443\u0442\u0430\u043B\u0438, \u0442\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u044E\u0434\u0430 \u043D\u0430\u0436\u0430\u0442\u044C, \u0447\u0442\u043E\u0431\u044B \u0441\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0441\u0432\u043E\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0443.\n\u0418\u0433\u0440\u0430 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442 \u0435\u0451 \u043F\u043E\u0441\u043B\u0435 \u043A\u0430\u0436\u0434\u043E\u0439 \u0438\u0433\u0440\u044B.",children:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0421\u0432\u043E\u044E \u0418\u0433\u0440\u0443"})]})})}},66238:function(b,n,t){"use strict";n.__esModule=!0,n.Minesweeper=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Minesweeper=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.width,g=d.height,u=d.grid,s=d.mines,h={"\u2000":"#ffffff",1:"#0092cc",2:"#779933",3:"#ff3333",4:"#087099",5:"#cc3333",6:"#A6B2EC",7:"#600095",8:"#E5E5E5"};return(0,e.createComponentVNode)(2,o.Window,{width:c,height:g+32,title:s,className:"Minesweeper__Window",children:(0,e.createComponentVNode)(2,o.Window.Content,{fitted:!0,height:g+32,children:u.map(function(p){return(0,e.createFragment)([p.map(function(S,T){return(0,e.createComponentVNode)(2,r.Button,{className:"Minesweeper__Button",disabled:S.state==="empty"?1:0,textColor:h[S.nearest],content:(0,e.createComponentVNode)(2,r.Box,{className:"Minesweeper__Button-Content",children:S.flag?(0,e.createComponentVNode)(2,r.Icon,{name:"flag",color:"#e73409"}):S.nearest}),onClick:function(){function y(){return l("button_press",{choice_x:S.x,choice_y:S.y})}return y}(),onContextMenu:function(){function y(E){E.preventDefault(),l("button_flag",{choice_x:S.x,choice_y:S.y})}return y}()},T)}),(0,e.createVNode)(1,"br")],0)})})})}return f}()},1102:function(b,n,t){"use strict";n.__esModule=!0,n.MiningOreProcessingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=n.MiningOreProcessingConsole=function(){function d(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.unclaimedPoints,S=h.ores,T=h.showAllOres,y=h.power,E=h.speed,N=h.ore_values;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-right",mr:1,onClick:function(){function V(){return s("insert")}return V}(),children:"Insert ID"}),"in order to claim points."]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",selected:y,onClick:function(){function V(){return s("power")}return V}(),children:y?"Processing":"Disabled"}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current unclaimed points",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:p<1,icon:"download",onClick:function(){function V(){return s("claim")}return V}(),children:"Claim"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:p})})})}),(0,e.createComponentVNode)(2,l)]})})}return d}(),C=["Not Processing","Smelting","Compressing","Alloying"],m=null,l=function(c,g){var u=(0,r.useBackend)(g),s=u.act,h=u.data,p=h.ores,S=h.showAllOres,T=h.ore_values;return(0,e.createComponentVNode)(2,o.Section,{title:"Ore Processing Controls",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:S?"toggle-on":"toggle-off",selected:S,onClick:function(){function y(){return s("showAllOres")}return y}(),children:S?"All Ores":"Ores in Machine"}),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:p.length&&p.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.ore),buttons:(0,e.createComponentVNode)(2,o.Dropdown,{width:"120px",color:y.processing===0&&"red"||y.processing===1&&"green"||y.processing===2&&"blue"||y.processing===3&&"yellow",options:C,selected:C[y.processing],onSelected:function(){function E(N){return s("toggleSmelting",{ore:y.ore,set:C.indexOf(N)})}return E}()}),children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:y.amount})})},y.ore)})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",textAlign:"center",children:"No ores in machine."})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.Collapsible,{title:"Mineral Value List",children:T.length&&T.sort().map(function(y){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(y.name),children:[y.amount," points"]},y.name)})})})})]})}},77749:function(b,n,t){"use strict";n.__esModule=!0,n.MiningStackingConsole=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=n.MiningStackingConsole=function(){function v(C,m){var l=(0,r.useBackend)(m),d=l.act,c=l.data,g=c.stacktypes,u=c.stackingAmt;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Stacker Controls",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stacking",children:(0,e.createComponentVNode)(2,o.NumberInput,{fluid:!0,value:u,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(){function s(h,p){return d("change_stack",{amt:p})}return s}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),g.length&&g.sort().map(function(s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:(0,a.toTitleCase)(s.type),buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function h(){return d("release_stack",{stack:s.type})}return h}(),children:"Eject"}),children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s.amt})},s.type)})||(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}return v}()},87684:function(b,n,t){"use strict";n.__esModule=!0,n.MiningVendor=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(190),v=t(35840),C=["title","items"];function m(s,h){if(s==null)return{};var p={};for(var S in s)if({}.hasOwnProperty.call(s,S)){if(h.includes(S))continue;p[S]=s[S]}return p}var l={Alphabetical:function(){function s(h,p){return h-p}return s}(),"By availability":function(){function s(h,p){return-(h.affordable-p.affordable)}return s}(),"By price":function(){function s(h,p){return h.price-p.price}return s}()},d=n.MiningVendor=function(){function s(h,p){return(0,e.createComponentVNode)(2,i.Window,{width:410,height:450,children:(0,e.createComponentVNode)(2,i.Window.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.createComponentVNode)(2,f.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.createComponentVNode)(2,g),(0,e.createComponentVNode)(2,c)]})})}return s}(),c=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=y.has_id,N=y.id,V=y.items,I=(0,r.useLocalState)(p,"search",""),O=I[0],x=I[1],w=(0,r.useLocalState)(p,"sort","Alphabetical"),F=w[0],W=w[1],$=(0,r.useLocalState)(p,"descending",!1),z=$[0],k=$[1],M=(0,a.createSearch)(O,function(P){return P[0]}),D=!1,A=Object.entries(V).map(function(P,U){var K=Object.entries(P[1]).filter(M).map(function(G){return G[1].affordable=E&&N.points>=G[1].price,G[1]}).sort(l[F]);if(K.length!==0)return z&&(K=K.reverse()),D=!0,(0,e.createComponentVNode)(2,u,{title:P[0],items:K},P[0])});return(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:D?A:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})},g=function(h,p){var S=(0,r.useLocalState)(p,"search",""),T=S[0],y=S[1],E=(0,r.useLocalState)(p,"sort",""),N=E[0],V=E[1],I=(0,r.useLocalState)(p,"descending",!1),O=I[0],x=I[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Flex,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",autoFocus:!0,onInput:function(){function w(F,W){return y(W)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(l),width:"100%",lineHeight:"19px",onSelected:function(){function w(F){return V(F)}return w}()})}),(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:O?"arrow-down":"arrow-up",height:"19px",tooltip:O?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return x(!O)}return w}()})})]})})},u=function(h,p){var S=(0,r.useBackend)(p),T=S.act,y=S.data,E=h.title,N=h.items,V=m(h,C);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:E},V,{children:N.map(function(I){return(0,e.createComponentVNode)(2,o.Table,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"span",(0,v.classes)(["equipment_locker32x32",I.path]),null,1,{style:{"vertical-align":"middle","horizontal-align":"middle"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:I.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"certificate",disabled:!y.has_id||y.id.points=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:s+5})}return N}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:!S||s>=E,width:"23.5%",onClick:function(){function N(){return d("adjustTimer",{time:E})}return N}()})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u041F\u0440\u0435\u0434\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435\u043B\u044C",children:(0,e.createComponentVNode)(2,r.Button,{selected:h,icon:h?"toggle-on":"toggle-off",content:h?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",disabled:!S||u&&!h,onClick:function(){function N(){return d("toggleSafety")}return N}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"\u0422\u0430\u0439\u043C\u0435\u0440",children:(0,e.createComponentVNode)(2,r.Button,{selected:u,icon:"power-off",disabled:!S||h,content:u?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u041E\u0442\u043A\u043B\u044E\u0447\u0451\u043D",onClick:function(){function N(){return d("bombSet")}return N}()})})]})]})})})}return v}()},46892:function(b,n,t){"use strict";n.__esModule=!0,n.Orbit=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595);function f(h,p){var S=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(S)return(S=S.call(h)).next.bind(S);if(Array.isArray(h)||(S=v(h))||p&&h&&typeof h.length=="number"){S&&(h=S);var T=0;return function(){return T>=h.length?{done:!0}:{done:!1,value:h[T++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(h,p){if(h){if(typeof h=="string")return C(h,p);var S={}.toString.call(h).slice(8,-1);return S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set"?Array.from(h):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?C(h,p):void 0}}function C(h,p){(p==null||p>h.length)&&(p=h.length);for(var S=0,T=Array(p);SS},c=function(p,S){var T=p.name,y=S.name;if(!T||!y)return 0;var E=T.match(m),N=y.match(m);if(E&&N&&T.replace(m,"")===y.replace(m,"")){var V=parseInt(E[1],10),I=parseInt(N[1],10);return V-I}return d(T,y)},g=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.searchText,N=p.source,V=p.title,I=N.filter(l(E));return I.sort(c),N.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:V+" - ("+N.length+")",children:I.map(function(O){return(0,e.createComponentVNode)(2,o.Button,{content:O.name,onClick:function(){function x(){return y("orbit",{ref:O.ref})}return x}()},O.name)})})},u=function(p,S){var T=(0,r.useBackend)(S),y=T.act,E=p.color,N=p.thing;return(0,e.createComponentVNode)(2,o.Button,{color:E,onClick:function(){function V(){return y("orbit",{ref:N.ref})}return V}(),children:N.name})},s=n.Orbit=function(){function h(p,S){for(var T=(0,r.useBackend)(S),y=T.act,E=T.data,N=E.alive,V=E.antagonists,I=E.dead,O=E.ghosts,x=E.misc,w=E.npcs,F=(0,r.useLocalState)(S,"searchText",""),W=F[0],$=F[1],z={},k=f(V),M;!(M=k()).done;)for(var D=M.value,A=f(D.antag),P;!(P=A()).done;){var U=P.value;z[U]===void 0&&(z[U]=[]),z[U].push(D)}var K=Object.entries(z);K.sort(function(X,_){return d(X[0],_[0])});var G=function(){function X(_){for(var J=0,ce=[K.map(function(re){var ye=re[0],Ae=re[1];return Ae}),N,O,I,w,x];J0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:K.map(function(X){var _=X[0],J=X[1];return(0,e.createComponentVNode)(2,o.Section,{title:_,level:2,children:J.filter(l(W)).sort(c).map(function(ce){return(0,e.createComponentVNode)(2,u,{color:"bad",thing:ce},ce.name)})},_)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+N.length+")",children:N.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"good",thing:X},X.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+O.length+")",children:O.filter(l(W)).sort(c).map(function(X){return(0,e.createComponentVNode)(2,u,{color:"grey",thing:X},X.name)})}),(0,e.createComponentVNode)(2,g,{title:"Dead",source:I,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"NPCs",source:w,searchText:W}),(0,e.createComponentVNode)(2,g,{title:"Misc",source:x,searchText:W})]})})}return h}()},8189:function(b,n,t){"use strict";n.__esModule=!0,n.Particool=void 0;var e=t(89005),a=t(87341),r=t(87341),o=t(72253),i=t(36036),f=t(98595),v=t(9394),C=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:5,width:"39px",onDrag:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"int"}})}return F}()})},m=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return I=I||[0,0,0,0,0,0],(0,e.createComponentVNode)(2,i.Flex,{children:(0,e.createComponentVNode)(2,i.Flex.Item,{children:I.map(function(F,W){return(0,e.createComponentVNode)(2,i.NumberInput,{value:F,onDrag:function(){function $(z,k){I[W]=k,w("modify_particle_value",{new_data:{name:O,value:I,type:"matrix"}})}return $}()},W)})})})},l=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=(0,o.useLocalState)(V,"particleFloatStep",.01),W=F[0],$=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.NumberInput,{value:I,stepPixelSize:4,step:W,format:function(){function z(k){return(0,a.toFixed)(k,(0,r.numberOfDecimalDigits)(W))}return z}(),width:"80px",onDrag:function(){function z(k,M){return w("modify_particle_value",{new_data:{name:O,value:M,type:"float"}})}return z}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:2,mr:1,children:"Step:"}),(0,e.createComponentVNode)(2,i.NumberInput,{value:W,step:.001,format:function(){function z(k){return(0,a.toFixed)(k,4)}return z}(),width:"70px",onChange:function(){function z(k,M){return $(M)}return z}()})],4)},d=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=["num","vector","box","color","circle","sphere","square","cube"],W=["UNIFORM_RAND","NORMAL_RAND","LINEAR_RAND","SQUARE_RAND"],$="",z="",k="",M="";if(v.logger.log(I),I){var D=I.match(/\((.*)\)/);if(D=D||["","","",""],D=D[1].split(", "),D.length===4){$=D[0],M=D[1];var A=D[2].match(/\((.*)\)/);z=A&&A[1];var P=D[3].match(/\((.*)\)/);k=P?P[1]:D[3]}}var U=(0,o.useLocalState)(V,O+"genType",$),K=U[0],G=U[1],X=(0,o.useLocalState)(V,O+"a",z),_=X[0],J=X[1],ce=(0,o.useLocalState)(V,O+"b",k),Ee=ce[0],le=ce[1],re=(0,o.useLocalState)(V,O+"rand",M),ye=re[0],Ae=re[1],xe=function(){v.logger.log(K),w("modify_particle_value",{new_data:{name:O,value:{genType:K,a:_,b:Ee,rand:ye},type:"generator"}})};return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Settings - Hit Set to save",children:(0,e.createComponentVNode)(2,i.Section,{level:2,children:[(0,e.createComponentVNode)(2,i.LabeledList,{children:[(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:K,children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+F.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:K,onInput:function(){function Oe(ue,ne){return G(ne)}return Oe}()})})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"A",children:(0,e.createComponentVNode)(2,i.Input,{value:_,onInput:function(){function Oe(ue,ne){return J(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"B",children:(0,e.createComponentVNode)(2,i.Input,{value:Ee,onInput:function(){function Oe(ue,ne){return le(ne)}return Oe}()})}),(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:"Rand Type",children:(0,e.createComponentVNode)(2,i.Tooltip,{position:"bottom",content:""+W.join(", "),children:(0,e.createComponentVNode)(2,i.Input,{value:ye,onInput:function(){function Oe(ue,ne){return Ae(ne)}return Oe}()})})})]}),(0,e.createComponentVNode)(2,i.Button,{content:"Set",onClick:function(){function Oe(){return xe()}return Oe}()})]})})},c=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createComponentVNode)(2,i.Input,{value:I,width:"250px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"string"}})}return F}()})},g=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act,F=I?Object.keys(I).map(function(W){return I[W]}):[];return(0,e.createComponentVNode)(2,i.Input,{value:F.join(","),width:"250px",onInput:function(){function W($,z){return w("modify_particle_value",{new_data:{name:O,value:z,type:"numList"}})}return W}()})},u=function(N,V){var I=N.value,O=N.name,x=(0,o.useBackend)(V),w=x.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function F(){return w("modify_color_value")}return F}()}),(0,e.createComponentVNode)(2,i.ColorBox,{color:I,mr:.5}),(0,e.createComponentVNode)(2,i.Input,{value:I,width:"90px",onInput:function(){function F(W,$){return w("modify_particle_value",{new_data:{name:O,value:$,type:"color"}})}return F}()})],4)},s=function(N,V){var I=N.value,O=(0,o.useBackend)(V),x=O.act;return(0,e.createFragment)([(0,e.createComponentVNode)(2,i.Button,{icon:"pencil-alt",onClick:function(){function w(){return x("modify_icon_value")}return w}()}),(0,e.createComponentVNode)(2,i.Box,{inline:!0,ml:1,children:I})],4)},h={width:"float",height:"float",count:"int",spawning:"float",bound1:"numlist",bound2:"numlist",gravity:"numlist",gradient:"string",transform:"matrix",lifespan:"float",fade:"float",icon:"icon",icon_state:"string",color:"color",color_change:"float",position:"generator",velocity:"generator",scale:"generator",grow:"generator",rotation:"float",spin:"float",friction:"float",drift:"generator"},p=function(N,V){var I=N.name,O={int:(0,e.normalizeProps)((0,e.createComponentVNode)(2,C,Object.assign({},N))),float:(0,e.normalizeProps)((0,e.createComponentVNode)(2,l,Object.assign({},N))),string:(0,e.normalizeProps)((0,e.createComponentVNode)(2,c,Object.assign({},N))),numlist:(0,e.normalizeProps)((0,e.createComponentVNode)(2,g,Object.assign({},N))),color:(0,e.normalizeProps)((0,e.createComponentVNode)(2,u,Object.assign({},N))),icon:(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},N))),generator:(0,e.normalizeProps)((0,e.createComponentVNode)(2,d,Object.assign({},N))),matrix:(0,e.normalizeProps)((0,e.createComponentVNode)(2,m,Object.assign({},N)))};return(0,e.createComponentVNode)(2,i.LabeledList.Item,{label:I,children:O[h[I]]||"Not Found (This is an error)"})},S=function(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=N.particle;return(0,e.createComponentVNode)(2,i.LabeledList,{children:Object.keys(h).map(function(F){var W=w[F];return(0,e.createComponentVNode)(2,p,{name:F,value:W},F)})})},T=function(){return(0,e.createComponentVNode)(2,i.Collapsible,{title:"Generator Help",children:[(0,e.createComponentVNode)(2,i.Section,{level:2}),(0,e.createComponentVNode)(2,i.Section,{level:2,children:(0,e.createVNode)(1,"table",null,(0,e.createVNode)(1,"tbody",null,[(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"Generator type",16),(0,e.createVNode)(1,"td",null,"Result type",16),(0,e.createVNode)(1,"td",null,"Description",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"num",16),(0,e.createVNode)(1,"td",null,"A random number between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector on a line between A and B.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"box",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector within a box whose corners are at A and B",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"color",16),(0,e.createVNode)(1,"td",null,"color (string) or color matrix",16),(0,e.createVNode)(1,"td",null,"Result type depends on whether A or B are matrices or not. The result is interpolated between A and B; components are not randomized separately.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"circle",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector in a ring between radius A and B, centered at 0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"sphere",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector in a spherical shell between radius A and B, centered at 0,0,0.",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"square",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random XY-only vector between squares of sizes A and B. (The length of the square is between A*2 and B*2, centered at 0,0.)",16)],4),(0,e.createVNode)(1,"tr",null,[(0,e.createVNode)(1,"td",null,"cube",16),(0,e.createVNode)(1,"td",null,"vector",16),(0,e.createVNode)(1,"td",null,"A random vector between cubes of sizes A and B. (The length of the cube is between A*2 and B*2, centered at 0,0,0.)",16)],4)],4),2)})]})},y=n.Particool=function(){function E(N,V){var I=(0,o.useBackend)(V),O=I.act,x=I.data,w=x.target_particle||{},F=w&&Object.keys(w).length>0;return(0,e.createComponentVNode)(2,f.Window,{title:"Particool",width:700,height:500,children:(0,e.createComponentVNode)(2,f.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,i.NoticeBox,{danger:!0,children:[" ",String(Date.now())," ",(0,e.createVNode)(1,"br"),"Particles? ",F.toString()," -",(x.target_particle===null).toString()," ",(0,e.createVNode)(1,"br"),"dazta Json - ",JSON.stringify(x.target_particle)]}),(0,e.createComponentVNode)(2,i.Section,{title:(0,e.createComponentVNode)(2,i.Box,{inline:!0,children:"Particle"}),buttons:F?(0,e.createComponentVNode)(2,i.Button.Confirm,{icon:"minus",content:"Remove Particle",onClick:function(){function W(){return O("remove_particle")}return W}()}):(0,e.createComponentVNode)(2,i.Button,{icon:"plus",content:"Add Particle",onClick:function(){function W(){return O("add_particle")}return W}()}),children:[(0,e.createComponentVNode)(2,T),F?(0,e.createComponentVNode)(2,S,{particle:w}):(0,e.createComponentVNode)(2,i.Box,{children:"No particle"})]})]})})}return E}()},56150:function(b,n,t){"use strict";n.__esModule=!0,n.Photocopier=void 0;var e=t(89005),a=t(36036),r=t(72253),o=t(98595),i=n.Photocopier=function(){function m(l,d){var c=(0,r.useBackend)(d),g=c.data,u=g.isAI,s=g.has_toner,h=g.has_item;return(0,e.createComponentVNode)(2,o.Window,{title:"Photocopier",width:240,height:u?309:234,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[s?(0,e.createComponentVNode)(2,f):(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted toner cartridge."})}),h?(0,e.createComponentVNode)(2,v):(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:(0,e.createComponentVNode)(2,a.Box,{color:"average",children:"No inserted item."})}),!!u&&(0,e.createComponentVNode)(2,C)]})})}return m}(),f=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.max_toner,h=u.current_toner,p=s*.66,S=s*.33;return(0,e.createComponentVNode)(2,a.Section,{title:"Toner",children:(0,e.createComponentVNode)(2,a.ProgressBar,{ranges:{good:[p,s],average:[S,p],bad:[0,S]},value:h,minValue:0,maxValue:s})})},v=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.num_copies,h=u.has_enough_toner;return(0,e.createComponentVNode)(2,a.Section,{title:"Options",children:[(0,e.createComponentVNode)(2,a.Flex,{children:[(0,e.createComponentVNode)(2,a.Flex.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.NumberInput,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:s,onDrag:function(){function p(S,T){return g("set_copies",{num_copies:T})}return p}()})}),(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Button,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){function p(){return g("make_copy")}return p}(),children:"Copy"})})]}),(0,e.createComponentVNode)(2,a.Button,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){function p(){return g("remove")}return p}(),children:"Remove item"})]})},C=function(l,d){var c=(0,r.useBackend)(d),g=c.act,u=c.data,s=u.can_AI_print;return(0,e.createComponentVNode)(2,a.Section,{title:"AI Options",children:(0,e.createComponentVNode)(2,a.Box,{children:(0,e.createComponentVNode)(2,a.Button,{fluid:!0,icon:"images",textAlign:"center",disabled:!s,onClick:function(){function h(){return g("ai_photo")}return h}(),children:"Print photo from database"})})})}},57003:function(b,n,t){"use strict";n.__esModule=!0,n.PortablePump=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortablePump=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.direction,u=c.target_pressure,s=c.default_pressure,h=c.min_pressure,p=c.max_pressure;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Pump",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"sign-in-alt":"sign-out-alt",content:g?"In":"Out",selected:g,onClick:function(){function S(){return d("direction")}return S}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"kPa",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("pressure",{pressure:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("pressure",{pressure:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("pressure",{pressure:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("pressure",{pressure:"max"})}return S}()})]})]})})]})})}return v}()},70069:function(b,n,t){"use strict";n.__esModule=!0,n.PortableScrubber=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=t(78091),f=n.PortableScrubber=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.filter_types||[],u=c.target_rate,s=c.default_rate,h=c.min_rate,p=c.max_rate;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:405,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,i.PortableBasicInfo),(0,e.createComponentVNode)(2,r.Section,{title:"Scrubber",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Volume Rate",children:(0,e.createComponentVNode)(2,r.NumberInput,{value:u,unit:"L/s",width:"75px",minValue:h,maxValue:p,step:10,onChange:function(){function S(T,y){return d("rate",{rate:y})}return S}()})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Presets",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"minus",disabled:u===h,onClick:function(){function S(){return d("rate",{rate:"min"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"sync",disabled:u===s,onClick:function(){function S(){return d("rate",{rate:"reset"})}return S}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"plus",disabled:u===p,onClick:function(){function S(){return d("rate",{rate:"max"})}return S}()})]})]})})]})})}return v}()},31197:function(b,n,t){"use strict";n.__esModule=!0,n.ReligiousTool=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=[],v=function(V,I){if(V===3)return(0,e.createComponentVNode)(2,u);if(I)return(0,e.createComponentVNode)(2,g);if(V===1)return(0,e.createComponentVNode)(2,l);if(V===2)return(0,e.createComponentVNode)(2,E)},C=n.ReligiousTool=function(){function N(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"tab",1),W=F[0],$=F[1],z=w.sects,k=w.encyclopedia;return k.ASPECTS.map(function(M){return f[M.name]=M.color}),(0,e.createComponentVNode)(2,i.Window,{width:1e3,height:700,children:(0,e.createComponentVNode)(2,i.Window.Content,{fontSize:"14px",children:[(0,e.createComponentVNode)(2,o.Tabs,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{direction:"raw",width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===1,onClick:function(){function M(){return $(1)}return M}(),children:["Religion ",(0,e.createComponentVNode)(2,o.Icon,{name:"place-of-worship"})]})}),!z&&(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===2,onClick:function(){function M(){return $(2)}return M}(),children:["Rites ",(0,e.createComponentVNode)(2,o.Icon,{name:"pray"})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===3,onClick:function(){function M(){return $(3)}return M}(),children:["Encyclopedia ",(0,e.createComponentVNode)(2,o.Icon,{name:"book-open"})]})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:v(W,z)})]})})}return N}(),m=function(V,I){var O=null;return I.length?O=I.map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,a.toTitleCase)(x)}),2,null,x)}):O=(0,e.createComponentVNode)(2,o.Box,{color:"gray",children:"Nothing."}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:V,fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:I.length?3:0,children:(0,e.createVNode)(1,"ui",null,O,0)})})})},l=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.name,W=w.deities,$=w.favor,z=w.piety,k=w.max_favor,M=w.passive_favor_gain,D=w.aspects,A=w.techs,P=w.god_spells,U=w.holy_reagents,K=w.faith_reactions;return(0,e.createComponentVNode)(2,o.Section,{title:F,textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Box,{children:W}),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Stack,{mt:2,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Resources",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",ml:3,children:(0,e.createVNode)(1,"ui",null,[(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"yellow",children:["Favor: ",$," / ",k,(0,e.createVNode)(1,"span",null,[(0,e.createTextVNode)(" "),(0,e.createTextVNode)("(+"),M,(0,e.createTextVNode)(")")],0,{style:{color:"gray","font-size":"8pt"}})]}),2),(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"pink",children:["Piety: ",z]}),2)],4)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",height:22,children:(0,e.createComponentVNode)(2,o.Section,{title:"Aspects",fill:1,children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"left",children:d("",D)})})}),m("Techs",A)]}),(0,e.createComponentVNode)(2,o.Stack,{children:[m("God Spells",P),m("Holy Reagents",U),m("Faith Reactions",K)]})]})]})},d=function(V,I,O){return O===void 0&&(O=!0),I?(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:V}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:[(0,e.createVNode)(1,"ui",null,Object.keys(I).map(function(x){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{color:f[x],inline:!0,children:[x," = ",I[x]]}),2,null,x)}),0),O?(0,e.createVNode)(1,"br"):""]})]}):null},c=function(V,I,O){return O===void 0&&(O=!0),!V&&!I?null:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"Costs:"}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,[!!V&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"yellow",children:[V," favor"]}),2),!!I&&(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"pink",children:[I," piety"]}),2)],0)}),O?(0,e.createVNode)(1,"br"):""]})},g=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.sects,W=w.holds_religious_tool;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:51,scrollable:!0,title:"Sect Select",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:F.map(function($){return(0,e.createComponentVNode)(2,o.Collapsible,{title:(0,e.createVNode)(1,"b",null,$.name,0),color:"transparent",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.BlockQuote,{children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:$.desc}),(0,e.createComponentVNode)(2,o.Box,{children:[$.aspect_preset||$.aspects_count?(0,e.createVNode)(1,"br"):"",d("Aspects:",$.aspect_preset),$.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",$.aspects_count," aspects."]})]})]})}),(0,e.createComponentVNode)(2,o.Button,{mt:2,textAlign:"center",icon:"plus",fluid:!0,disabled:!W,onClick:function(){function z(){return x("sect_select",{path:$.path})}return z}(),children:[$.aspects_count?"Create":"Select"," ",$.name]})]},$.name)},$.name)})})})},u=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=(0,r.useSharedState)(I,"cat",""),W=F[0],$=F[1],z=w.encyclopedia;return(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Tabs,{vertical:1,children:Object.keys(z).map(function(k){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{fluid:!0,selected:W===k,onClick:function(){function M(){return $(k)}return M}(),children:(0,a.toTitleCase)(k)},k)})}),(0,e.createComponentVNode)(2,o.Section,{height:51,fill:!0,scrollable:!0,width:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:[W==="RITES"&&(0,e.createComponentVNode)(2,s),W==="SECTS"&&(0,e.createComponentVNode)(2,h),W==="ASPECTS"&&(0,e.createComponentVNode)(2,p),W==="GOD SPELLS"&&(0,e.createComponentVNode)(2,S),W==="HOLY REAGENTS"&&(0,e.createComponentVNode)(2,T),W==="FAITH REACTIONS"&&(0,e.createComponentVNode)(2,y)]})})]})},s=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.RITES,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc.replace(/<[/]?i>/g,"")}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createVNode)(1,"b",null,"Length:",16)," ",A.ritual_length/10," seconds."]}),(0,e.createComponentVNode)(2,o.Box,{color:A.can_talismaned?"green":"red",children:["Can",A.can_talismaned?"":"'t"," be talismaned."]}),A.needed_aspects?(0,e.createVNode)(1,"br"):"",d("Needed Aspects:",A.needed_aspects,!1),(!!A.favor_cost||!!A.piety_cost)&&(0,e.createVNode)(1,"br"),c(A.favor_cost,A.piety_cost,!1),(0,e.createComponentVNode)(2,o.Box,{children:!!A.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,A.tips.map(function(P){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:P.replace(/<[/]?i>/g,"")}),2,null,P)}),0)})]})})]})},A.name)})]})},h=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.SECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),(0,e.createVNode)(1,"br"),d("Aspect Preset:",A.aspect_preset,!1),A.aspects_count&&(0,e.createComponentVNode)(2,o.Box,{children:["You can choose ",A.aspects_count," aspects."]})]})},A.name)})]})},p=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F.ASPECTS,$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{color:f[A.name],title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:A.desc}),A.god_desc&&(0,e.createComponentVNode)(2,o.Box,{children:[" ",(0,e.createVNode)(1,"br"),A.god_desc]})]})},A.name)})]})},S=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["GOD SPELLS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects),c(A.favor_cost),(0,e.createComponentVNode)(2,o.Box,{children:["Cooldown: ",A.charge_max/10," seconds"]})]})},A.name)})]})},T=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["HOLY REAGENTS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.name}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:A.name,children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:d("Needed Aspects:",A.needed_aspects,!1)})},A.name)})]})},y=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.encyclopedia,W=F["FAITH REACTIONS"],$=(0,r.useSharedState)(I,"searchText",""),z=$[0],k=$[1],M=(0,a.createSearch)(z,function(A){return A.convertable_id+" to "+A.result_id}),D=z.length>0&&W.filter(M)||W;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function A(P,U){return k(U)}return A}(),mb:1}),D.map(function(A){return(0,e.createComponentVNode)(2,o.Section,{title:(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id),children:(0,e.createComponentVNode)(2,o.BlockQuote,{children:[d("Needed Aspects:",A.needed_aspects,!1),A.favor_cost?(0,e.createVNode)(1,"br"):"",c(A.favor_cost,0,!1)]})},(0,a.capitalize)(A.convertable_id)+" to "+(0,a.capitalize)(A.result_id))})]})},E=function(V,I){var O=(0,r.useBackend)(I),x=O.act,w=O.data,F=w.rites,W=w.favor,$=w.piety,z=w.can_talismaning,k=w.holds_religious_tool,M=(0,r.useSharedState)(I,"searchText",""),D=M[0],A=M[1],P=(0,a.createSearch)(D,function(K){return K.name}),U=D.length>0&&F.filter(P)||F;return(0,e.createComponentVNode)(2,o.Section,{height:52,fill:!0,scrollable:!0,width:"100%",children:[(0,e.createComponentVNode)(2,o.Input,{autoFocus:!0,fluid:!0,placeholder:"Search for...",onInput:function(){function K(G,X){return A(X)}return K}(),mb:1}),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,mt:2,children:U.map(function(K){return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:K.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{fontColor:"white",disabled:!k||W0?" "+K.piety_cost+" piety":""),disabled:!z||!K.can_talismaned||W0?" and "+K.piety_cost+" piety":"","."]}),(0,e.createComponentVNode)(2,o.BlockQuote,{children:[(0,e.createComponentVNode)(2,o.Box,{children:K.desc}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{children:["Power: ",K.power]}),(0,e.createComponentVNode)(2,o.Box,{children:!!K.tips.length&&(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:[" ",(0,e.createVNode)(1,"br"),"Tips:"]}),(0,e.createComponentVNode)(2,o.Box,{ml:3,children:(0,e.createVNode)(1,"ui",null,K.tips.map(function(G){return(0,e.createVNode)(1,"li",null,(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:G.replace(/<[/]?i>/g,"")}),2,null,G)}),0)})]})})]})]})},K.name)})})]})}},54431:function(b,n,t){"use strict";n.__esModule=!0,n.Safe=void 0;var e=t(89005),a=t(59626),r=t(72253),o=t(36036),i=t(98595),f=n.Safe=function(){function l(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open;return(0,e.createComponentVNode)(2,i.Window,{width:625,height:760,theme:"ntos",children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving",children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"25%"}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__engraving-hinge",top:"75%"})]}),(0,e.createComponentVNode)(2,o.Icon,{className:"Safe__engraving-arrow",name:"long-arrow-alt-down",size:"3"}),(0,e.createVNode)(1,"br"),p?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe__dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*h+"deg)"}})]}),!p&&(0,e.createComponentVNode)(2,m)]})})}return l}(),v=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.dial,p=s.open,S=s.locked,T=function(E,N){return(0,e.createComponentVNode)(2,o.Button,{disabled:p||N&&!S,icon:"arrow-"+(N?"right":"left"),content:(N?"Right":"Left")+" "+E,iconPosition:N?"right":"left",onClick:function(){function V(){return u(N?"turnleft":"turnright",{num:E})}return V}()})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:S,icon:p?"lock":"lock-open",content:p?"Close":"Open",mb:"0.5rem",onClick:function(){function y(){return u("open")}return y}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[T(50),T(10),T(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-right",position:"absolute",right:"5px",children:[T(1,!0),T(10,!0),T(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe__dialer-number",children:h})]})},C=function(d,c){var g=(0,r.useBackend)(c),u=g.act,s=g.data,h=s.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe__contents",overflow:"auto",children:h.map(function(p,S){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function T(){return u("retrieve",{index:S+1})}return T}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:p.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),p.name]}),(0,e.createVNode)(1,"br")],4,p)})})},m=function(d,c){return(0,e.createComponentVNode)(2,o.Section,{className:"Safe__help",title:"Safe opening instructions (because you all keep forgetting)",children:[(0,e.createComponentVNode)(2,o.Box,{children:["1. Turn the dial left to the first number.",(0,e.createVNode)(1,"br"),"2. Turn the dial right to the second number.",(0,e.createVNode)(1,"br"),"3. Continue repeating this process for each number, switching between left and right each time.",(0,e.createVNode)(1,"br"),"4. Open the safe."]}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"To lock fully, turn the dial to the left after closing the safe."})]})}},98984:function(b,n,t){"use strict";n.__esModule=!0,n.SamplerPipe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SamplerPipe=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.gases,g=d.nodeName,u=d.locked;return(0,e.createComponentVNode)(2,o.Window,{title:"Atmospherics Alet System",width:300,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Node name",children:(0,e.createComponentVNode)(2,r.Input,{disabled:u,fluid:!0,value:g,onChange:function(){function s(h,p){return l("setName",{name:p})}return s}()})}),(0,e.createComponentVNode)(2,r.Section,{title:"Gases",children:c.map(function(s){return(0,e.createComponentVNode)(2,r.Section,{title:s.name,children:[(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Lower"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.min,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"min",value:S})}return h}()})})]}),(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{grow:!0,children:"Upper"}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.NumberInput,{disabled:u,width:5,minValue:0,maxValue:1,step:.01,value:s.threshold.max,onChange:function(){function h(p,S){return l("setBound",{id:s.id,bound:"max",value:S})}return h}()})})]})]},s.id)})})]})})}return f}()},23278:function(b,n,t){"use strict";n.__esModule=!0,n.SecureSafe=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=function(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],u=c.locked,s=c.l_setshort,h=c.code,p=c.emagged;return(0,e.createComponentVNode)(2,r.Box,{width:"185px",children:(0,e.createComponentVNode)(2,r.Grid,{width:"1px",children:g.map(function(S){return(0,e.createComponentVNode)(2,r.Grid.Column,{children:S.map(function(T){return(0,e.createComponentVNode)(2,r.Button,{fluid:!0,bold:!0,mb:"6px",content:T,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!p||!!s&&1||T!=="R"&&!u||h==="ERROR"&&T!=="R"&&1,onClick:function(){function y(){return d("type",{digit:T})}return y}()},T)})},S[0])})})})},f=n.SecureSafe=function(){function v(C,m){var l=(0,a.useBackend)(m),d=l.act,c=l.data,g=c.code,u=c.l_setshort,s=c.l_set,h=c.emagged,p=c.locked,S=!(s||u);return(0,e.createComponentVNode)(2,o.Window,{width:250,height:380,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Box,{m:"6px",children:[S&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!h&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!u&&(0,e.createComponentVNode)(2,r.NoticeBox,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.createComponentVNode)(2,r.Section,{height:"60px",children:(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",position:"center",fontSize:"35px",children:g&&g||(0,e.createComponentVNode)(2,r.Box,{textColor:p?"red":"green",children:p?"LOCKED":"UNLOCKED"})})}),(0,e.createComponentVNode)(2,r.Flex,{ml:"3px",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,i)}),(0,e.createComponentVNode)(2,r.Flex.Item,{ml:"6px",width:"129px"})]})]})})})}return v}()},32163:function(b,n,t){"use strict";n.__esModule=!0,n.SkillsConsole=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.SkillsConsole=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.skill_list,g=d.IQ,u=d.MDI,s=d.skill_min_value,h=d.skill_max_value,p=d.compatible_species,S=d.inserted_cartridge,T=d.cartridge_name,y=d.cartridge_unpacked,E=d.connected_table,N=d.cartridge_points,V=d.connected_patient,I=d.free_points,O=d.can_inject,x=d.power_usage,w=d.power_max,F=d.power_current;return(0,e.createComponentVNode)(2,o.Window,{resizable:!0,width:600,height:675,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,r.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"Power info",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Active power usage",children:[x/1e3," kW"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available power in area",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:w!=="No data"?F/w:"No data"})})]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Stack,{children:[(0,e.createComponentVNode)(2,r.Stack.Item,{width:"40%",mr:1,children:(0,e.createComponentVNode)(2,r.Section,{title:"Patient status",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[!E&&(0,e.createComponentVNode)(2,r.Box,{children:"CMF manipulion table is not connected"}),!V&&(0,e.createComponentVNode)(2,r.Box,{children:"No patient detected"}),E&&V&&(0,e.createFragment)([(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"IQ",children:g}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"MDI",children:u})],4)]})})}),(0,e.createComponentVNode)(2,r.Stack.Item,{width:"60%",children:(0,e.createComponentVNode)(2,r.Section,{title:"Cartridge information",children:[!S&&(0,e.createComponentVNode)(2,r.Box,{children:"No cartridge inserted"}),S===1&&(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Installed cartridge",children:[T,!y&&(0,e.createComponentVNode)(2,r.Box,{as:"span",m:5,children:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject cartridge",onClick:function(){function W(){l("eject")}return W}(),style:{marginLeft:20}})})]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Compatible species",children:p.join(", ")}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available USP",children:[y===0&&N,y===1&&I]})]})]})})]})}),y===0&&S===1&&(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("unpack")}return W}(),fluid:!0,color:"danger",tooltip:"This action will destroy the cartridge and begin the CMF manipulation procedure.",children:"Unpack cartridge"})}),y===1&&S===1&&(0,e.createComponentVNode)(2,r.Stack.Item,{children:(0,e.createComponentVNode)(2,r.Section,{title:"CMF manipulation",children:[Object.keys(c).map(function(W){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:W,children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{onChange:function(){function $(z,k){c[W]=k,l("change_skill",c)}return $}(),step:1,value:c[W],maxValue:h,stepPixelSize:50,minValue:s})})})},W)}),(0,e.createComponentVNode)(2,r.Box,{textAlign:"center",children:[(0,e.createComponentVNode)(2,r.Button,{onClick:function(){function W(){l("inject")}return W}(),fluid:!0,disabled:O===0,color:"green",children:"Inject implant"}),(0,e.createComponentVNode)(2,r.Button.Confirm,{onClick:function(){function W(){l("abort")}return W}(),fluid:!0,color:"danger",confirmContent:"Confirm ",children:"Abort"})]})]})})]})})})}return f}()},86162:function(b,n,t){"use strict";n.__esModule=!0,n.Smes=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(49968),i=t(98595),f=1e3,v=n.Smes=function(){function C(m,l){var d=(0,a.useBackend)(l),c=d.act,g=d.data,u=g.capacityPercent,s=g.charge,h=g.inputAttempt,p=g.inputting,S=g.inputLevel,T=g.inputLevelMax,y=g.inputAvailable,E=g.outputAttempt,N=g.outputting,V=g.outputLevel,I=g.outputLevelMax,O=g.outputUsed,x=u>=100&&"good"||p&&"average"||"bad",w=N&&"good"||s>0&&"average"||"bad";return(0,e.createComponentVNode)(2,i.Window,{width:340,height:350,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,r.ProgressBar,{fractionDigits:1,value:u*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,r.Section,{title:"Input",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:h?"sync-alt":"times",selected:h,onClick:function(){function F(){return c("tryinput")}return F}(),children:h?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:x,children:u>=100&&"Fully Charged"||p&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:S===0,onClick:function(){function F(){return c("input",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:S===0,onClick:function(){function F(){return c("input",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:S/f,fillValue:y/f,minValue:0,maxValue:T/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("input",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:S===T,onClick:function(){function F(){return c("input",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:S===T,onClick:function(){function F(){return c("input",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(y)})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Output",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:E?"power-off":"times",selected:E,onClick:function(){function F(){return c("tryoutput")}return F}(),children:E?"On":"Off"}),children:(0,e.createComponentVNode)(2,r.Box,{color:w,children:N?"Sending":s>0?"Not Sending":"No Charge"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,r.Flex,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function F(){return c("output",{target:"min"})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"backward",disabled:V===0,onClick:function(){function F(){return c("output",{adjust:-1e4})}return F}()})]}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1,mx:1,children:(0,e.createComponentVNode)(2,r.Slider,{value:V/f,minValue:0,maxValue:I/f,step:5,stepPixelSize:4,format:function(){function F(W){return(0,o.formatPower)(W*f,1)}return F}(),onDrag:function(){function F(W,$){return c("output",{target:$*f})}return F}()})}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:[(0,e.createComponentVNode)(2,r.Button,{icon:"forward",disabled:V===I,onClick:function(){function F(){return c("output",{adjust:1e4})}return F}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:V===I,onClick:function(){function F(){return c("output",{target:"max"})}return F}()})]})]})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(O)})]})})]})})}return C}()},38096:function(b,n,t){"use strict";n.__esModule=!0,n.SpawnersMenu=void 0;var e=t(89005),a=t(25328),r=t(72253),o=t(36036),i=t(98595),f=t(49968),v=n.SpawnersMenu=function(){function C(m,l){var d=(0,r.useBackend)(l),c=d.act,g=d.data,u=g.spawners;return(0,e.createComponentVNode)(2,i.Window,{title:"\u041C\u0435\u043D\u044E \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0445 \u0440\u043E\u043B\u0435\u0439",width:700,height:525,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",children:[!u.length&&(0,e.createComponentVNode)(2,o.Flex.Item,{fontSize:"14px",textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{children:"\u0420\u043E\u043B\u0435\u0439 \u043D\u0435\u0442, \u043D\u043E \u043D\u0435 \u043F\u0435\u0447\u0430\u043B\u044C\u0441\u044F, \u043E\u043D\u0438 \u0441\u043A\u043E\u0440\u043E \u0431\u0443\u0434\u0443\u0442!"})}),u.map(function(s){return(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:(0,a.toTitleCase)(s.name),buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C\u0441\u044F",onClick:function(){function h(){return c("jump",{ref:s.ref})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{content:s.register_only?s.checked?"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u0417\u0430\u044F\u0432\u0438\u0442\u044C":"\u041F\u043E\u044F\u0432\u0438\u0442\u044C\u0441\u044F",selected:s.checked,blocked:s.blocked,onClick:function(){function h(){return c("spawn",{ref:s.ref})}return h}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[s.time_left&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s.time_type===1?"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F":"\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E",color:s.time_type===1?"green":"red",children:(0,f.formatTime)(s.time_left)}),!!s.register_only&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432",children:s.registered_candidates}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u041F\u043E\u0437\u0438\u0446\u0438\u0439 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E",children:s.positions}),s.playing>0&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{color:"green",label:"\u0418\u0433\u0440\u0430\u0435\u0442",children:s.playing}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",children:s.short_desc}),s.important_warning&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0430\u0436\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",children:s.important_warning}),s.wiki_ref&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u0438\u043A\u0438",children:(0,e.createVNode)(1,"a",null,s.wiki_ref,0,{href:"{spawner.wiki_ref}",target:"_blank"})})]})}),(0,e.createVNode)(1,"br")]},s.ref)})]})})})}return C}()},85444:function(b,n,t){"use strict";n.__esModule=!0,n.Stack=void 0;var e=t(89005),a=t(87341),r=t(72253),o=t(36036),i=t(98595),f=t(9394),v=n.Stack=function(){function c(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=p.amount,T=p.recipes;return(0,e.createComponentVNode)(2,i.Window,{width:400,height:720,children:(0,e.createComponentVNode)(2,i.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Amount: "+S,children:(0,e.createComponentVNode)(2,C,{recipes:T})})})})}return c}(),C=function(g,u){var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipes,T=Object.keys(S).sort();return T.map(function(y,E){var N=S[y];return N.ref===void 0?(0,e.createComponentVNode)(2,o.Collapsible,{ml:1,mb:-.7,color:"label",title:y,children:(0,e.createComponentVNode)(2,o.Box,{ml:1,children:(0,e.createComponentVNode)(2,C,{recipes:N})})},E):(0,e.createComponentVNode)(2,d,{title:y,recipe:N},E)})},m=function(g,u){return g.req_amount>u?0:Math.floor(u/g.req_amount)},l=function(g,u){for(var s=(0,r.useBackend)(u),h=s.act,p=s.data,S=g.recipe,T=g.maxMultiplier,y=Math.min(T,Math.floor(S.max_res_amount/S.res_amount)),E=[5,10,25],N=[],V=function(){var w=O[I];y>=w&&N.push((0,e.createComponentVNode)(2,o.Button,{content:w*S.res_amount+"x",onClick:function(){function F(){return h("make",{ref:S.ref,multiplier:w})}return F}()}))},I=0,O=E;I1?"s":""),O+=")",E>1&&(O=E+"x "+O);var x=m(T,S);return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Table,{children:(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:!x,icon:"wrench",content:O,onClick:function(){function w(){return h("make",{ref:T.ref,multiplier:1})}return w}()})}),N>1&&x>1&&(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,l,{recipe:T,maxMultiplier:x})})]})})})}},1754:function(b,n,t){"use strict";n.__esModule=!0,n.Tank=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Tank=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:120,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,r.ProgressBar,{value:d.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure Regulator",children:[(0,e.createComponentVNode)(2,r.Button,{icon:"fast-backward",disabled:d.ReleasePressure===d.minReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"min"})}return c}()}),(0,e.createComponentVNode)(2,r.NumberInput,{animated:!0,value:parseFloat(d.releasePressure),width:"65px",unit:"kPa",minValue:d.minReleasePressure,maxValue:d.maxReleasePressure,onChange:function(){function c(g,u){return l("pressure",{pressure:u})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"fast-forward",disabled:d.ReleasePressure===d.maxReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"max"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:"undo",content:"",disabled:d.ReleasePressure===d.defaultReleasePressure,onClick:function(){function c(){return l("pressure",{pressure:"reset"})}return c}()}),(0,e.createComponentVNode)(2,r.Button,{icon:d.connected?"toggle-on":"toggle-off",content:"",selected:d.connected?"selected":null,onClick:function(){function c(){return l("internal")}return c}()})]})]})})})})}return f}()},53752:function(b,n,t){"use strict";n.__esModule=!0,n.Vote=void 0;var e=t(89005),a=t(72253),r=t(14596),o=t(36036),i=t(98595),f=n.Vote=function(){function d(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.isAdmin,p=s.currentPoll,S=s.polls,T=Math.min(730,90+(!p||h?45+26*S.filter(function(y){return!y.adminOnly||!!h}).length:0)+(p?135+22*p.choices.length:23));return(0,e.createComponentVNode)(2,i.Window,{width:450,height:T,children:(0,e.createComponentVNode)(2,i.Window.Content,{children:[(0,e.createComponentVNode)(2,v),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(!p||!!h)&&(0,e.createComponentVNode)(2,m),!!p&&(0,e.createComponentVNode)(2,l)]})]})})}return d}(),v=function(c,g){var u=(0,a.useBackend)(g),s=u.data,h=s.currentPoll,p=(0,a.useLocalState)(g,"infoModalOpen",!1),S=p[0],T=p[1];return S?h?(0,e.createComponentVNode)(2,o.Modal,{children:["\u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u043E\u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u0442\u044C"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canVoteMultiple?"\u0437\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432":"\u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043E\u0434\u0438\u043D \u0432\u0430\u0440\u0438\u0430\u043D\u0442"}),(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canRevote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),"\u0412\u044B"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:h.canUnvote?"\u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C":"\u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"})," ","\u0441\u0432\u043E\u0439 \u0433\u043E\u043B\u043E\u0441",(0,e.createVNode)(1,"br"),h.minimumWinPercentage?(0,e.createFragment)([(0,e.createTextVNode)("\u041D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043D\u0430\u0431\u0440\u0430\u0442\u044C \u043C\u0438\u043D\u0438\u043C\u0443\u043C"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,bold:!0,children:[h.minimumWinPercentage*100,"%"]}),(0,e.createTextVNode)(", \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u043F\u043E\u0431\u0435\u0434\u0438\u043B")],0):"",h.description&&(0,e.createFragment)([(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Box,{dangerouslySetInnerHTML:{__html:(0,r.sanitizeText)(h.description)}})],4),(0,e.createVNode)(1,"hr"),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,align:"center",onClick:function(){function y(){return T(!1)}return y}(),children:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"})]}):(T(!1),null):null},C=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=(0,a.useLocalState)(g,"infoModalOpen",!1),T=S[0],y=S[1],E=p==null?void 0:p.choices.some(function(N){return N.selected});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!!p&&p.choices.length!==0,title:p?"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435: "+p.poll.name:"\u0413\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",buttons:p?(0,e.createComponentVNode)(2,o.Button,{icon:"info",color:"transparent",disabled:!p,onClick:function(){function N(){return y(!0)}return N}()}):void 0,children:p&&p.choices.length!==0?(0,e.createFragment)([p.showWarning?(0,e.createComponentVNode)(2,o.NoticeBox,{children:p.poll.message}):"",!!p.question&&(0,e.createComponentVNode)(2,o.Box,{italic:!0,children:p.question}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack,{fill:!0,justify:"space-around",children:[(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0412\u0430\u0440\u0438\u0430\u043D\u0442\u044B"}),(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:"\u0413\u043E\u043B\u043E\u0441\u0430"})]}),(0,e.createVNode)(1,"br"),p.choices.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{height:"22px",children:[(0,e.createComponentVNode)(2,o.Button,{maxWidth:"260px",ellipsis:!0,disabled:!p.canRevote&&E,selected:N.selected,onClick:function(){function V(){return s("putVote",{choiceRef:N.ref})}return V}(),children:N.name.replace(/^\w/,function(V){return V.toUpperCase()})}),!!N.selected&&(0,e.createComponentVNode)(2,o.Icon,{name:"vote-yea",color:"green",ml:1,verticalAlign:"super"})]}),(0,e.createComponentVNode)(2,o.Box,{mr:15,children:N.votes})]},N.ref)})]})],0):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,mb:"0",children:p?"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432!":"\u041D\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u044F!"})})})},m=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.isAdmin,S=h.polls;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041D\u0430\u0447\u0430\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,justify:"space-between",children:S?S.map(function(T){return(!T.adminOnly||!!p)&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{horizontal:!0,children:[!!p&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{width:9.5,textAlign:"center",onClick:function(){function y(){return s("toggleAdminOnly",{pollRef:T.type})}return y}(),children:T.adminOnly?"\u0422\u043E\u043B\u044C\u043A\u043E \u0430\u0434\u043C\u0438\u043D\u044B":"\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0432\u0441\u0435\u043C"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!T.canStart&&!p||T.forceBlocked,color:p?T.canStart?void 0:"red":void 0,tooltip:T.message,content:T.name,onClick:function(){function y(){return s("callVote",{pollRef:T.type})}return y}()})})]})},T.name)}):(0,e.createComponentVNode)(2,o.NoticeBox,{info:!0,children:"\u041D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0439!"})})})})},l=function(c,g){var u=(0,a.useBackend)(g),s=u.act,h=u.data,p=h.currentPoll,S=h.isAdmin;return(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,o.Box,{fontSize:1.5,children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C \u0432\u0440\u0435\u043C\u0435\u043D\u0438: ",(p==null?void 0:p.timeRemaining)||0,"\u0441"]}),!!S&&!!p&&(0,e.createComponentVNode)(2,o.Button,{color:"red",disabled:!S,onClick:function(){function T(){return s("cancelVote")}return T}(),children:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432\u0430\u043D\u0438\u0435"})]})})})}},30138:function(b,n,t){"use strict";n.__esModule=!0,n.Wires=void 0;var e=t(89005),a=t(72253),r=t(36036),o=t(98595),i=n.Wires=function(){function f(v,C){var m=(0,a.useBackend)(C),l=m.act,d=m.data,c=d.wires||[],g=d.status||[];return(0,e.createComponentVNode)(2,o.Window,{width:350,height:45+c.length*25+(g.length>0?35:0)+g.length*12,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,r.Section,{children:(0,e.createComponentVNode)(2,r.LabeledList,{children:c.map(function(u){return(0,e.createComponentVNode)(2,r.LabeledList.Item,{className:"candystripe",label:u.label?u.label:"\u041F\u0440\u043E\u0432\u043E\u0434\u0430",labelColor:u.color,color:u.color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Button,{content:u.cut?"\u0421\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u0442\u044C",onClick:function(){function s(){return l("cut",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:"\u041F\u0443\u043B\u044C\u0441",onClick:function(){function s(){return l("pulse",{wire:u.wire})}return s}()}),(0,e.createComponentVNode)(2,r.Button,{content:u.attached?"\u041E\u0442\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C":"\u041F\u0440\u0438\u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C",onClick:function(){function s(){return l("attach",{wire:u.wire})}return s}()})],4)},u.color)})})}),!!g.length&&(0,e.createComponentVNode)(2,r.Section,{children:g.map(function(u){return typeof u=="string"?(0,e.createComponentVNode)(2,r.Box,{children:u},u):(0,e.createComponentVNode)(2,r.Button,{content:u.label,onClick:function(){function s(){return l(u.act,u.act_params?u.act_params:void 0)}return s}()},u)})})]})})}return f}()},49148:function(b,n,t){"use strict";n.__esModule=!0,n.AccessList=void 0;var e=t(89005),a=t(88510),r=t(72253),o=t(36036);function i(l,d){var c=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(c)return(c=c.call(l)).next.bind(c);if(Array.isArray(l)||(c=f(l))||d&&l&&typeof l.length=="number"){c&&(l=c);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(l,d){if(l){if(typeof l=="string")return v(l,d);var c={}.toString.call(l).slice(8,-1);return c==="Object"&&l.constructor&&(c=l.constructor.name),c==="Map"||c==="Set"?Array.from(l):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?v(l,d):void 0}}function v(l,d){(d==null||d>l.length)&&(d=l.length);for(var c=0,g=Array(d);c0&&!O.includes(U.ref)&&!V.includes(U.ref),checked:V.includes(U.ref),onClick:function(){function K(){return x(U.ref)}return K}()},U.desc)})]})]})})}return l}()},195:function(b,n,t){"use strict";n.__esModule=!0,n.InterfaceLockNoticeBox=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.InterfaceLockNoticeBox=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.siliconUser,c=d===void 0?l.siliconUser:d,g=f.locked,u=g===void 0?l.locked:g,s=f.onLockStatusChange,h=s===void 0?function(){return m("lock")}:s,p=f.accessText,S=p===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":p;return c?(0,e.createComponentVNode)(2,r.NoticeBox,{color:"grey",children:(0,e.createComponentVNode)(2,r.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,r.Flex.Item,{children:"\u0418\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441:"}),(0,e.createComponentVNode)(2,r.Flex.Item,{grow:1}),(0,e.createComponentVNode)(2,r.Flex.Item,{children:(0,e.createComponentVNode)(2,r.Button,{m:0,color:u?"red":"green",icon:u?"lock":"unlock",content:u?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D",onClick:function(){function T(){h&&h(!u)}return T}()})})]})}):(0,e.createComponentVNode)(2,r.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",S," \u0434\u043B\u044F ",u?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438":"\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438","."]})}return i}()},190:function(b,n,t){"use strict";n.__esModule=!0,n.MiningUser=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.MiningUser=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=f.insertIdText,c=l.has_id,g=l.id;return(0,e.createComponentVNode)(2,r.NoticeBox,{success:c,children:c?(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Box,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",g.name,".",(0,e.createVNode)(1,"br"),"You have ",g.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function u(){return m("logoff")}return u}()}),(0,e.createComponentVNode)(2,r.Box,{style:{clear:"both"}})],4):d})}return i}()},78091:function(b,n,t){"use strict";n.__esModule=!0,n.PortableBasicInfo=void 0;var e=t(89005),a=t(72253),r=t(36036),o=n.PortableBasicInfo=function(){function i(f,v){var C=(0,a.useBackend)(v),m=C.act,l=C.data,d=l.connected,c=l.holding,g=l.on,u=l.pressure,s=l.power_draw,h=l.cell_charge,p=l.cell_maxcharge,S=h/p;return(0,e.createFragment)([(0,e.createComponentVNode)(2,r.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:g?"power-off":"times",content:g?"On":"Off",selected:g,onClick:function(){function T(){return m("power")}return T}()}),children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:u})," kPa"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Port",color:d?"good":"average",children:d?"Connected":"Not Connected"})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Cell",children:(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Load",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:s})," W"]}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Charge",children:(0,e.createComponentVNode)(2,r.ProgressBar,{ranges:{bad:[-1/0,.1],average:[.1,.6],good:[.6,1/0]},value:S})})]})}),(0,e.createComponentVNode)(2,r.Section,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.createComponentVNode)(2,r.Button,{icon:"eject",content:"Eject",disabled:!c,onClick:function(){function T(){return m("eject")}return T}()}),children:c?(0,e.createComponentVNode)(2,r.LabeledList,{children:[(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Label",children:c.name}),(0,e.createComponentVNode)(2,r.LabeledList.Item,{label:"Pressure",children:[(0,e.createComponentVNode)(2,r.AnimatedNumber,{value:c.pressure})," kPa"]})]}):(0,e.createComponentVNode)(2,r.Box,{color:"average",children:"No holding tank"})})],4)}return i}()},17617:function(b,n,t){"use strict";n.__esModule=!0,n.Layout=void 0;var e=t(89005),a=t(35840),r=t(55937),o=t(24826),i=["className","theme","children"],f=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT