From bad819180ae916ae0774142b923acc2849ea5288 Mon Sep 17 00:00:00 2001 From: PlayerUnknown14 <139672964+PlayerUnknown14@users.noreply.github.com> Date: Wed, 29 Jan 2025 16:29:20 +0700 Subject: [PATCH] =?UTF-8?q?qol:=20=D0=BC=D0=B8=D0=BA=D1=80=D0=BE=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BA=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=B8=20=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20(#6488)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * тык * и ещё * тгуи * и ещё --- code/game/machinery/vending.dm | 56 +++++++++---------- code/game/objects/structures/watercloset.dm | 7 +-- .../kitchen_machinery/smartfridge.dm | 12 ++-- interface/skin.dmf | 14 ++--- tgui/packages/tgui/interfaces/DNAModifier.js | 2 +- tgui/packages/tgui/interfaces/Vending.js | 2 +- tgui/public/tgui.bundle.js | 4 +- 7 files changed, 48 insertions(+), 49 deletions(-) diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 94c22ff7c45..3dd487cd7a3 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -221,11 +221,11 @@ /obj/machinery/vending/examine(mob/user) . = ..() if(tilted) - . += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поправят.") + . += span_warning("Он лежит на боку и не будет функционировать до тех пор, пока его не поднимут.") if(Adjacent(user)) - . += span_notice("Нажмите Alt-Click чтобы поднять автомат.") + . += span_notice("Используйте Alt+ЛКМ, чтобы поднять автомат.") if(aggressive) - . += span_warning("Его индикаторы, кажется, зловеще мигают...") + . += span_warning("Его индикаторы зловеще мигают...") /obj/machinery/vending/AltClick(mob/user) if(!tilted || !Adjacent(user) || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED)) @@ -745,7 +745,7 @@ var/estimated_height = 100 + min(length(product_records) * 34, 500) if(length(prices) > 0) estimated_height += 100 // to account for the "current user" interface - ui = new(user, src, "Vending", name) + ui = new(user, src, "Vending", capitalize(declent_ru(NOMINATIVE))) ui.open() /obj/machinery/vending/ui_data(mob/user) @@ -766,7 +766,7 @@ var/obj/item/stack/spacecash/S = H.get_active_hand() if(istype(S)) data["userMoney"] = S.amount - data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредитов." + data["guestNotice"] = "Принимаем наличные. У вас есть: [S.amount] кредит[pluralize_ru(S.amount, "", "а", "ов")]." else if(istype(H)) var/obj/item/card/id/C = H.get_id_card() if(istype(A)) @@ -781,11 +781,11 @@ data["stock"][R.name] = R.amount data["extended_inventory"] = extended_inventory data["vend_ready"] = vend_ready - data["coin_name"] = coin ? coin.name : FALSE + data["coin_name"] = coin ? coin.declent_ru(NOMINATIVE) : FALSE data["panel_open"] = panel_open ? TRUE : FALSE data["speaker"] = shut_up ? FALSE : TRUE data["item_slot"] = item_slot // boolean - data["inserted_item_name"] = inserted_item ? inserted_item.name : FALSE + data["inserted_item_name"] = inserted_item ? inserted_item.declent_ru(NOMINATIVE) : FALSE return data @@ -795,13 +795,13 @@ data["product_records"] = list() var/i = 1 for (var/datum/data/vending_product/R in product_records) - var/obj/item = R.product_path + var/obj/item/newitem = new R.product_path(src) var/list/data_pr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), - name = R.name, - price = (item in prices) ? prices[item] : 0, - icon = item.icon, - icon_state = item.icon_state, + name = capitalize(newitem.declent_ru(NOMINATIVE)), + price = (newitem in prices) ? prices[newitem] : 0, + icon = newitem.icon, + icon_state = newitem.icon_state, max_amount = R.max_amount, req_coin = FALSE, is_hidden = FALSE, @@ -811,13 +811,13 @@ i++ data["coin_records"] = list() for (var/datum/data/vending_product/R in coin_records) - var/obj/item = R.product_path + var/obj/item/newitem = new R.product_path(src) var/list/data_cr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), - name = R.name, - price = (item in prices) ? prices[item] : 0, - icon = item.icon, - icon_state = item.icon_state, + name = capitalize(newitem.declent_ru(NOMINATIVE)), + price = (newitem in prices) ? prices[newitem] : 0, + icon = newitem.icon, + icon_state = newitem.icon_state, max_amount = R.max_amount, req_coin = TRUE, is_hidden = FALSE, @@ -828,13 +828,13 @@ i++ data["hidden_records"] = list() for (var/datum/data/vending_product/R in hidden_records) - var/obj/item = R.product_path + var/obj/item/newitem = new R.product_path(src) var/list/data_hr = list( path = replacetext(replacetext("[R.product_path]", "/obj/item/", ""), "/", "-"), - name = R.name, - price = (item in prices) ? prices[item] : 0, - icon = item.icon, - icon_state = item.icon_state, + name = capitalize(newitem.declent_ru(NOMINATIVE)), + price = (newitem in prices) ? prices[newitem] : 0, + icon = newitem.icon, + icon_state = newitem.icon_state, max_amount = R.max_amount, req_coin = FALSE, is_hidden = TRUE, @@ -868,7 +868,7 @@ if(issilicon(usr)) balloon_alert(usr, "у вас нет рук!") return - to_chat(usr, span_notice("Вы достали [coin] из [declent_ru(GENITIVE)].")) + to_chat(usr, span_notice("Вы достали [coin.declent_ru(ACCUSATIVE)] из [declent_ru(GENITIVE)].")) coin.forceMove_turf() usr.put_in_hands(coin, ignore_anim = FALSE) coin = null @@ -907,7 +907,7 @@ message_admins("Vending machine exploit attempted by [ADMIN_LOOKUPFLW(usr)]!") return if (R.amount <= 0) - to_chat(usr, "Sold out of [R.name].") + to_chat(usr, "Товар \"[R.name]\" закончился!") flick_vendor_overlay(FLICK_VEND) return @@ -953,7 +953,7 @@ vend(currently_vending, usr) . = TRUE else - to_chat(usr, span_warning("Сбой платежа: не удается обработать платеж.")) + to_chat(usr, span_warning("Сбой платежа: не удаётся обработать платеж.")) vend_ready = TRUE if(.) add_fingerprint(usr) @@ -982,9 +982,9 @@ return if(coin.string_attached) if(prob(50)) - to_chat(user, span_notice("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить.")) + to_chat(user, span_warning("Вы успешно вытаскиваете монету до того, как [declent_ru(NOMINATIVE)] успевает ее проглотить!")) else - to_chat(user, span_notice("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел ее вместе с ниткой и всем остальным.")) + to_chat(user, span_warning("Вы не смогли вытащить монету достаточно быстро, [declent_ru(NOMINATIVE)] съел её вместе с ниткой и всем остальным!")) QDEL_NULL(coin) else QDEL_NULL(coin) @@ -1115,7 +1115,7 @@ if(!throw_item) return throw_item.throw_at(target, 16, 3) - visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.name] в [target.name]!")) + visible_message(span_danger("[capitalize(declent_ru(NOMINATIVE))] метнул [throw_item.declent_ru(ACCUSATIVE)] в [target]!")) /obj/machinery/vending/shove_impact(mob/living/target, mob/living/attacker) diff --git a/code/game/objects/structures/watercloset.dm b/code/game/objects/structures/watercloset.dm index d243d8e7c87..556b5046edf 100644 --- a/code/game/objects/structures/watercloset.dm +++ b/code/game/objects/structures/watercloset.dm @@ -569,10 +569,9 @@ if(busy) to_chat(user, "Someone's already washing here.") return - var/selected_area = parse_zone(user.zone_selected) - var/washing_face = 0 - if(selected_area in list("голова", "рот", "глаза")) - washing_face = 1 + var/washing_face = FALSE + if(user.zone_selected in list(BODY_ZONE_HEAD, BODY_ZONE_PRECISE_EYES, BODY_ZONE_PRECISE_MOUTH)) + washing_face = TRUE user.visible_message(span_notice("[user] начина[pluralize_ru(user.gender, "ет", "ют")] мыть [washing_face ? "своё лицо" : "свои руки"]..."), \ span_notice("Вы начинаете мыть [washing_face ? "своё лицо" : "свои руки"]...")) busy = 1 diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index 61f0a1efc88..d5bf0c1294f 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -86,7 +86,7 @@ var/amount = starting_items[typekey] || 1 while(amount--) var/obj/item/newitem = new typekey(src) - item_quants[newitem.name] += 1 + item_quants[newitem.declent_ru(NOMINATIVE)] += 1 update_icon(UPDATE_OVERLAYS) // Accepted items accepted_items_typecache = typecacheof(list( @@ -306,7 +306,7 @@ ui = SStgui.try_update_ui(user, src, ui) if(!ui) - ui = new(user, src, "Smartfridge", name) + ui = new(user, src, "Smartfridge", capitalize(declent_ru(NOMINATIVE))) ui.open() /obj/machinery/smartfridge/ui_data(mob/user) @@ -361,7 +361,7 @@ return if(i == 1 && Adjacent(user) && !issilicon(user)) for(var/obj/O in contents) - if(O.name == K) + if(O.declent_ru(NOMINATIVE) == K) O.forceMove(get_turf(src)) adjust_item_drop_location(O) user.put_in_hands(O, ignore_anim = FALSE) @@ -369,7 +369,7 @@ break else for(var/obj/O in contents) - if(O.name == K) + if(O.declent_ru(NOMINATIVE) == K) O.forceMove(loc) adjust_item_drop_location(O) update_icon(UPDATE_OVERLAYS) @@ -410,7 +410,7 @@ else I.forceMove(src) - item_quants[I.name] += 1 + item_quants[I.declent_ru(NOMINATIVE)] += 1 return TRUE @@ -428,7 +428,7 @@ continue item_quants[O]-- for(var/obj/I in contents) - if(I.name == O) + if(I.declent_ru(NOMINATIVE) == O) I.forceMove(loc) throw_item = I update_icon(UPDATE_OVERLAYS) diff --git a/interface/skin.dmf b/interface/skin.dmf index 2f067dce3be..4b704d23be1 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -25,10 +25,10 @@ menu "menu" command = ".quit" category = "&Файл" elem - name = "&Изображение" + name = "&Экран" elem name = "&Размер" - category = "&Изображение" + category = "&Экран" saved-params = "is-checked" elem "stretch" name = "&Авто-подбор размера" @@ -81,7 +81,7 @@ menu "menu" group = "размер" elem name = "&Масштабирование" - category = "&Изображение" + category = "&Экран" saved-params = "is-checked;command" elem "NN" name = "&Метод ближайшего соседа" @@ -105,7 +105,7 @@ menu "menu" elem "textmode" name = "&Текст" command = ".winset \"menu.textmode.is-checked=true?mapwindow.map.text-mode=true:mapwindow.map.text-mode=false\"" - category = "&Изображение" + category = "&Экран" can-check = true elem name = "&Опции" @@ -249,7 +249,7 @@ window "outputwindow" button-type = pushbox elem "saybutton" type = BUTTON - pos = 549,460 + pos = 499,460 size = 50x20 anchor1 = 100,100 anchor2 = -1,-1 @@ -261,13 +261,13 @@ window "outputwindow" button-type = pushbox elem "mebutton" type = BUTTON - pos = 499,460 + pos = 549,460 size = 50x20 anchor1 = 100,100 anchor2 = -1,-1 border = line saved-params = "is-checked" - text = "Эмоции" + text = "Эмоция" command = ".winset \"mebutton.is-checked=true ? input.command=\"!me \\\"\" : input.command=\"\"mebutton.is-checked=true ? saybutton.is-checked=false\"\"mebutton.is-checked=true ? oocbutton.is-checked=false\"" is-flat = true button-type = pushbox diff --git a/tgui/packages/tgui/interfaces/DNAModifier.js b/tgui/packages/tgui/interfaces/DNAModifier.js index 9153321c234..05f1d41b1fc 100644 --- a/tgui/packages/tgui/interfaces/DNAModifier.js +++ b/tgui/packages/tgui/interfaces/DNAModifier.js @@ -634,7 +634,7 @@ const DNAModifierIrradiating = (props, context) => {

-  Облучить субъект  +  Облучение субъекта 

diff --git a/tgui/packages/tgui/interfaces/Vending.js b/tgui/packages/tgui/interfaces/Vending.js index db7c047531c..fe02cee9859 100644 --- a/tgui/packages/tgui/interfaces/Vending.js +++ b/tgui/packages/tgui/interfaces/Vending.js @@ -110,7 +110,7 @@ export const Vending = (props, context) => { diff --git a/tgui/public/tgui.bundle.js b/tgui/public/tgui.bundle.js index 7722e2e994e..ee18f941e11 100644 --- a/tgui/public/tgui.bundle.js +++ b/tgui/public/tgui.bundle.js @@ -254,12 +254,12 @@ * @file * @copyright 2023 itsmeow * @license MIT - */function f(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,l(T,A)}function l(T,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,w){return E.__proto__=w,E},l(T,A)}function d(T,A){if(T==null)return{};var E={};for(var w in T)if({}.hasOwnProperty.call(T,w)){if(A.includes(w))continue;E[w]=T[w]}return E}var m=r.ColorPickerModal=function(){function T(A,E){var w=(0,t.useBackend)(E),O=w.data,M=O.timeout,P=O.message,F=O.title,R=O.autofocus,U=O.default_color,j=U===void 0?"#000000":U,W=(0,t.useLocalState)(E,"color_picker_choice",(0,y.hexToHsva)(j)),K=W[0],$=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:F,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,i,{color:K,setColor:$,defaultColor:j})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c.InputButtons,{input:(0,y.hsvaToHex)(K)})})]})})]})}return T}(),i=r.ColorSelector=function(){function T(A,E){var w=A.color,O=A.setColor,M=A.defaultColor,P=function(){function U(j){O(function(W){return Object.assign({},W,j)})}return U}(),F=(0,y.hsvaToRgba)(w),R=(0,y.hsvaToHex)(w);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:w,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(w).substring(1),onChange:function(){function U(j){C.logger.info(j),O((0,y.hexToHsva)(j))}return U}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.h,callback:function(){function U(j,W){return P({h:W})}return U}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.s,callback:function(){function U(j,W){return P({s:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.v,callback:function(){function U(j,W){return P({v:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.r,callback:function(){function U(j,W){F.r=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.g,callback:function(){function U(j,W){F.g=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.b,callback:function(){function U(j,W){F.b=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})})]})})]})}return T}(),h=function(A){var E=A.value,w=A.callback,O=A.min,M=O===void 0?0:O,P=A.max,F=P===void 0?100:P,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(E),step:1,minValue:M,maxValue:F,onChange:w,unit:R})},V=function(A){return"#"+A},v=r.HexColorInput=function(){function T(A){var E=A.prefixed,w=A.alpha,O=A.color,M=A.fluid,P=A.onChange,F=d(A,u),R=function(){function j(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,w?8:6)}return j}(),U=function(){function j(W){return(0,y.validHex)(W,w)}return j}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},F,{fluid:M,color:O,onChange:P,escape:R,format:E?V:void 0,validate:U})))}return T}(),s=r.ColorInput=function(T){function A(w){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=w,O.state={localValue:O.props.escape(O.props.color)},O}f(A,T);var E=A.prototype;return E.componentDidUpdate=function(){function w(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return w}(),E.render=function(){function w(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,b.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return w}(),A}(e.Component),g=function(A){var E=A.hsva,w=A.onChange,O=function(R){w({s:R.left*100,v:100-R.top*100})},M=function(R){w({s:(0,k.clamp)(E.s+R.left*100,0,100),v:(0,k.clamp)(E.v-R.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:E.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,S.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(E.s)+"%, Brightness "+Math.round(E.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-E.v/100,left:E.s/100,color:(0,y.hsvaToHslString)(E)})}),2,{style:P})},N=function(A){var E=A.className,w=A.hue,O=A.onChange,M=function(U){O({h:360*U.left})},P=function(U){O({h:(0,k.clamp)(w+U.left*360,0,360)})},F=(0,b.classes)(["react-colorful__hue",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(w),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:w/360,color:(0,y.hsvaToHslString)({h:w,s:100,v:100,a:1})})}),2)},x=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({s:100*U.left})},P=function(U){O({s:(0,k.clamp)(w.s+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__saturation",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:0,v:w.v,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:100,v:w.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:w.s/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},B=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({v:100*U.left})},P=function(U){O({v:(0,k.clamp)(w.v+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__value",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:w.v/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},L=function(A){var E=A.className,w=A.color,O=A.onChange,M=A.target,P=(0,y.hsvaToRgba)(w),F=function($){P[M]=$,O((0,y.rgbaToHsva)(P))},R=function($){F(255*$.left)},U=function($){F((0,k.clamp)(P[M]+$.left*255,0,255))},j=(0,b.classes)(["react-colorful__"+M,E]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",j,(0,e.createComponentVNode)(2,S.Interactive,{onMove:R,onKey:U,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={1:function(){function m(){return(0,e.createComponentVNode)(2,b)}return m}(),2:function(){function m(){return(0,e.createComponentVNode)(2,u)}return m}(),3:function(){function m(){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f)})})}return m}(),4:function(){function m(){return(0,e.createComponentVNode)(2,d)}return m}(),default:function(){function m(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}return m}()},k=function(i){return p[i]},y=r.CommunicationsComputer=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),k(g)()]})})})}return m}(),S=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authenticated,N=s.noauthbutton,x=s.esc_section,B=s.esc_callable,L=s.esc_recallable,T=s.esc_status,A=s.authhead,E=s.is_ai,w=s.lastCallLoc,O=!1,M;return g?g===1?M="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":g===2?M="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":g===3?M="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":g===4?(M="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",O=!0):M="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":M="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"sign-out-alt":"id-card",selected:g,disabled:N,content:g?"\u0412\u044B\u0439\u0442\u0438 ("+M+")":"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function P(){return v("auth")}return P}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!x&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:T}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A,onClick:function(){function P(){return v("callshuttle")}return P}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A||E,onClick:function(){function P(){return v("cancelshuttle")}return P}()})}),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:w})]})})})],4)},b=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;return g?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,c)},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin,N=s.gamma_armory_location,x=s.admin_levels,B=s.authenticated,L=s.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:x,required_access:g,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",disabled:!g,onClick:function(){function T(){return v("send_to_cc_announcement_page")}return T}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",disabled:!g,onClick:function(){function T(){return v("make_other_announcement")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0411\u0420",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",disabled:!g,onClick:function(){function T(){return v("dispatch_ert")}return T}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D",tooltip:L?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!g,onClick:function(){function T(){return v("toggle_ert_allowed")}return T}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438",disabled:!g,onClick:function(){function T(){return v("send_nuke_codes")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',disabled:!g,onClick:function(){function T(){return v("move_gamma_armory")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440",disabled:!g,onClick:function(){function T(){return v("view_fax")}return T}()})})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,c)})]})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.msg_cooldown,N=s.emagged,x=s.cc_cooldown,B=s.security_level_color,L=s.str_security_level,T=s.levels,A=s.authcapt,E=s.authhead,w=s.messages,O="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";g>0&&(O+=" ("+g+"s)");var M=N?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",P="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return x>0&&(M+=" ("+x+"s)",P+=" ("+x+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:T,required_access:A})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:O,disabled:!A||g>0,onClick:function(){function F(){return v("announce")}return F}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageSyndicate")}return F}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435",disabled:!A,onClick:function(){function F(){return v("RestoreBackup")}return F}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageCentcomm")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:P,disabled:!A||x>0,onClick:function(){function F(){return v("nukerequest")}return F}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430",disabled:!E,onClick:function(){function F(){return v("status")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+w.length+")",disabled:!E,onClick:function(){function F(){return v("messagelist")}return F}()})})]})})})],4)},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.stat_display,N=s.authhead,x=s.current_message_title,B=g.presets.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.name===g.type,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:T.id})}return A}()},T.name)}),L=g.alerts.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.alert===g.icon,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:3,alert:T.alert})}return A}()},T.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function T(){return v("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_1,disabled:!N,onClick:function(){function T(){return v("setmsg1")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_2,disabled:!N,onClick:function(){function T(){return v("setmsg2")}return T}()})})]})})})},f=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authhead,N=s.current_message_title,x=s.current_message,B=s.messages,L=s.security_level,T;if(N)T=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",disabled:!g,onClick:function(){function E(){return v("messagelist")}return E}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:x})})});else{var A=B.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C",disabled:!g||N===E.title,onClick:function(){function w(){return v("messagelist",{msgid:E.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",disabled:!g,onClick:function(){function w(){return v("delmessage",{msgid:E.id})}return w}()})]},E.id)});T=(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function E(){return v("main")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:A})})}return(0,e.createComponentVNode)(2,t.Box,{children:T})},l=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=i.levels,N=i.required_access,x=i.use_confirm,B=s.security_level;return x?g.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)}):g.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)})},d=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;if(!g)return v("main");var N=(0,a.useLocalState)(h,"subtitle",""),x=N[0],B=N[1],L=(0,a.useLocalState)(h,"text",""),T=L[0],A=L[1],E=(0,a.useLocalState)(h,"classified",0),w=E[0],O=E[1],M=(0,a.useLocalState)(h,"beepsound","Beep"),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function R(){return v("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:x,onChange:function(){function R(U,j){return B(j)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F,\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function R(U,j){return A(j)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:w,content:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E",fluid:!0,m:"5px",tooltip:w?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){function R(){return O(!w)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return v("make_cc_announcement",{subtitle:x,text:T,classified:w,beepsound:P})}return R}()})]})})}},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),k=n(98595);function y(V,v){V.prototype=Object.create(v.prototype),V.prototype.constructor=V,S(V,v)}function S(V,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,g){return s.__proto__=g,s},S(V,v)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function E(){}return E}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function E(){return N("complete_load_animation")}return E}()})});var L=(0,t.useLocalState)(s,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,k.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return V}(),u=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function E(){return N("claim")}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,A=!!L&&B.filter(function(P){return P.status===1})[0],E=A&&A.time_left>0,w=(0,t.useLocalState)(s,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||E,icon:"parachute-box",content:["Call Extraction",E&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function P(F,R){return" ("+R.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,F){return P.status===1?-1:F.status===1?1:P.status-F.status}).map(function(P){var F;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return M("target_photo_"+P.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return N("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(F=P.difficulties)==null?void 0:F.map(function(R,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function j(){return N("activate",{uid:P.uid,difficulty:U+1})}return j}()},U)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var s=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=s===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:T.uid})}return A}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(V){function v(g){var N;return N=V.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,V);var s=v.prototype;return s.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),s.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),s.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),s.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),h=function(v,s){var g=(0,t.useLocalState)(s,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slowFactor,f=c.minSpeed,l=c.maxSpeed,d=c.oneWay,m=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function i(){return C("toggleOneWay")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function i(){return C("slowFactor",{value:u-.5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return C("slowFactor",{value:u-.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:u,fillValue:u,minValue:f,maxValue:l,step:.1,format:function(){function i(h){return h+"s."}return i}(),onChange:function(){function i(h,V){return C("slowFactor",{value:V})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return C("slowFactor",{value:u+.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return C("slowFactor",{value:u+.5})}return i}()})," "]})]})})]})})})})}return k}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),k=n(36352),y=n(76910),S=n(98595),b=function(h,V){return h.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(h.health,10)<=V?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(h.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},C=function(h,V){return h.dead?"red":parseInt(h.health,10)<=V?"orange":parseInt(h.stat,10)===1?"blue":"green"},c=r.CrewMonitor=function(){function i(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=(0,o.useLocalState)(V,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}}return T}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,p.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),L(x)]})})})}return i}(),u=function(h){var V=h.crewData,v=h.context,s=(0,o.useBackend)(v),g=s.act,N=s.data,x=(0,a.sortBy)(function(E){return E.name})(V||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],A=(0,t.createSearch)(L,function(E){return E.name+"|"+E.assignment+"|"+E.area});return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",onInput:function(){function E(w,O){return T(O)}return E}()}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),x.filter(A).map(function(E){return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,k.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,k.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:C(E,N.critThreshold),children:b(E,N.critThreshold)}),E.sensor_type>=2?(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,k.TableCell,{children:E.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function w(){return g("track",{track:E.ref})}return w}()}):E.area+" ("+E.x+", "+E.y+")":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]},E.ref)})]})]})},f=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},l=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},d=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},m=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(V,"zoom",1),L=B[0],T=B[1],A=(0,o.useLocalState)(V,"z_current",N[0]),E=A[0],w=A[1],O=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?"square":"circle"},M=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?10:6},P=function(R,U){return R.is_command&&g.isBS||R.is_security&&g.isBP?R.dead?"red":parseInt(R.health,10)<=U?"orange":parseInt(R.stat,10)===1?"blue":"violet":C(R,U)};return(0,e.createComponentVNode)(2,p.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{onZoom:function(){function F(R){return T(R)}return F}(),zLevels:N,zNames:x,z_current:E,setZCurrent:w,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,p.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:E,zoom:L,icon:O(F),size:M(F),tooltip:F.name+" ("+F.assignment+")",color:P(F,g.critThreshold),onClick:function(){function R(){g.isAI&&s("track",{track:F.ref})}return R}()},F.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),p=n(98595),k=[{label:"\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435",type:"oxyLoss"},{label:"\u0422\u043E\u043A\u0441\u0438\u043D\u044B",type:"toxLoss"},{label:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],S=r.Cryo=function(){function c(u,f){return(0,e.createComponentVNode)(2,p.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return c}(),b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isOperating,h=m.hasOccupant,V=m.occupant,v=V===void 0?[]:V,s=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!h,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:h?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),k.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.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."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(i?"switchOff":"switchOn")}return L}(),selected:i,children:i?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isBeakerLoaded,h=m.beakerLabel,V=m.beakerVolume;return i?(0,e.createFragment)([h?"\xAB"+h+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!V&&"bad",children:V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:V,format:function(){function v(s){var g=Math.round(s),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=r.CryopodConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.frozen_items,m=function(h){var V=h.toString();return V.startsWith("the ")&&(V=V.slice(4,V.length)),(0,p.toTitleCase)(V)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return f("one_item",{item:i.uid})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return f("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=function(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=b.product,d=f.user,m=f.userMoney,i=f.vend_ready,h=l.price===0,V="ERROR!",v="";h?(V="FREE",v="arrow-circle-down"):(V=l.price,v="shopping-cart");var s=!i||l.stock===0||!h&&l.price>m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:s,icon:v,content:V,textAlign:"left",onClick:function(){function g(){return u("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.guestNotice,d=f.userMoney,m=f.user,i=f.products,h=f.vend_ready,V=f.panel_open,v=f.speaker;return(0,e.createComponentVNode)(2,p.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:m&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!V&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function s(){return u("toggle_voice",{})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:i.map(function(s){return(0,e.createComponentVNode)(2,k,{product:s,productStock:s.stock},s.name)})})})})]})})})}return S}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function s(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,A=L.dnaBlockSize,E=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!E.isViableSubject||!E.uniqueIdentity||!E.structuralEnzymes;var w;return T&&(w=(0,e.createComponentVNode)(2,V,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),w,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return s}(),C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,A=L.hasOccupant,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function w(){return B("toggleLock")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function w(){return B("ejectOccupant")}return w}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:E.minHealth,max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[E.stat][0],children:k[E.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:E.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,A=L.hasOccupant,E=L.occupant;if(A){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var w;return T==="ui"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l)],4):T==="se"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?w=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(w=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),w]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,E=L.selectedUITarget,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:E,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",onClick:function(){function w(){return B("pulseSERadiation")}return w}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationIntensity",{value:O})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationDuration",{value:O})}return E}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function E(){return B("pulseRadiation")}return E}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,A=T.map(function(E,w){return(0,e.createComponentVNode)(2,m,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:E},w)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u0443\u0444\u0435\u0440",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,A=g.name,E=g.buffer,w=L.isInjectorReady,O=A+(E.data?" - "+E.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!E.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data,icon:"pen",content:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data||!L.hasDisk,icon:"save",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!E.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:E.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[E.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!E.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!E.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function E(){return B("wipeDisk")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return B("ejectDisk")}return E}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:A.label?A.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[A.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!A.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},h=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,A=L.beakerVolume,E=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C",onClick:function(){function w(){return B("ejectBeaker")}return w}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:w>A,icon:"syringe",content:w,onClick:function(){function M(){return B("injectRejuvenators",{amount:w})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"\u0412\u0441\u0435",onClick:function(){function w(){return B("injectRejuvenators",{amount:A})}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:E||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",A,"u"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430.",16)]})})})},V=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 "),g.duration,(0,e.createTextVNode)(" \u0441\u0435\u043A\u0443\u043D\u0434"),g.duration%10===1&&g.duration%100!==11?"\u044B":""],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,A=g.selectedBlock,E=g.selectedSubblock,w=g.blockSize,O=g.action,M=T.split(""),P=0,F=[],R=function(){for(var W=U/w+1,K=[],$=function(){var le=ne+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&E===le,content:M[U+ne],mb:"0",onClick:function(){function de(){return B(O,{block:W,subblock:le})}return de}()}))},ne=0;neh.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",onClick:function(){function N(){return i("dispatch_ert",{silent:s})}return N}()})})]})})},c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.ert_request_messages;return(0,e.createComponentVNode)(2,t.Section,{children:V&&V.length?V.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function s(){return i("view_player_panel",{uid:v.sender_uid})}return s}(),tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel"}),children:v.message},(0,p.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Box,{fluid:!0,italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=(0,a.useLocalState)(d,"text",""),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420.\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",rows:10,fluid:!0,multiline:1,value:v,onChange:function(){function g(N,x){return s(x)}return g}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",fluid:!0,icon:"times",center:!0,mt:"5px",textAlign:"center",onClick:function(){function g(){return i("deny_ert",{reason:v})}return g}()})]})}},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Electropack=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.power,l=u.code,d=u.frequency,m=u.minFrequency,i=u.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function h(V){return(0,a.toFixed)(V,1)}return h}(),width:"80px",onChange:function(){function h(V,v){return c("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(V,v){return c("code",{code:v})}return h}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.EvolutionMenu=function(){function S(b,C){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return u("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.ability_list,m=f.purchased_abilities,i=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:i?"square-o":"check-square-o",selected:!i,content:"Compact",onClick:function(){function h(){return u("set_view_mode",{mode:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:i?"check-square-o":"square-o",selected:i,content:"Expanded",onClick:function(){function h(){return u("set_view_mode",{mode:1})}return h}()})],4),children:d.map(function(h,V){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:h.name}),m.includes(h.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:h.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:h.cost>l||m.includes(h.power_path),content:"Evolve",onClick:function(){function v(){return u("purchase",{power_path:h.power_path})}return v}()})})]}),!!i&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:h.description+" "+h.helptext})]},V)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),k=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function b(V,v){if(V==null)return{};var s={};for(var g in V)if({}.hasOwnProperty.call(V,g)){if(v.includes(g))continue;s[g]=V[g]}return s}var C=2e3,c={bananium:"clown",tranquillite:"mime"},u=r.ExosuitFabricator=function(){function V(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return V}(),f=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(A,E){return A+E},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function E(){return N("withdraw",{id:A})}return E}()},A)})})},l=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,A=x.syncing,E=(0,o.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=(0,t.createSearch)(w,function(F){return F.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(R){return N("category",{cat:R})}return F}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(R,U){return O(U)}return F}()}),P.map(function(F){return(0,e.createComponentVNode)(2,h,{design:F},F.id)}),P.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,k.Countdown,{current:A,timeLeft:T-A,format:function(){function E(w,O){return O.substr(3)}return E}()}),")"]})]})})})},m=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(E){return E[1]<0}),A=B.reduce(function(E,w){return E+w.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function E(){return N("process")}return E}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function E(){return N("unqueueall")}return E}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(E,w){return(0,e.createComponentVNode)(2,p.Box,{color:E.notEnough&&"bad",children:[w+1,". ",E.name,w>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:w+1,to:w})}return O}()}),w0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",T.map(function(E){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:E[0],amount:-E[1],lineDisplay:!0})},E[0])})]})],0)})})},i=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,A=v.onClick,E=b(v,S),w=x.materials[B]||0,O=L||w;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>w;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},E,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,k=1013,y=function(C){var c="good",u=80,f=95,l=110,d=120;return Cl?c="average":C>d&&(c="bad"),c},S=r.ExternalAirlockController=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.chamber_pressure,m=l.exterior_status,i=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:k,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function V(){return f("cycle_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function V(){return f("cycle_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function V(){return f("abort")}return V}()})})]})]})})}return b}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.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 u(){return C("scan")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:!c.scan_name&&!c.authenticated,content:c.authenticated?"Log Out":"Log In",onClick:function(){function u(){return C("auth")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function u(){return C("paper")}return u}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function u(){return C("rename")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function u(){return C("dept")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function u(){return C("send")}return u}()})})]})})]})})}return k}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=b.icon_state,d=b.direction,m=b.isSelected,i=b.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:f.icon,icon_state:l,direction:d,onClick:i,style:{"border-style":m&&"solid"||"none","border-width":"2px","border-color":"orange",padding:m&&"0px"||"2px"}})},k={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.availableStyles,d=f.selectedStyle,m=f.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function i(){return u("cycle_style",{offset:-1})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function i(h){return u("select_style",{style:h})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function i(){return u("cycle_style",{offset:1})}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:i,isSelected:d===i,onSelect:function(){function h(){return u("select_style",{style:i})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[k.NORTH,null,k.SOUTH].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[i+k.WEST,i,i+k.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===m,onSelect:function(){function V(){return u("select_direction",{direction:h})}return V}()})},h)})},i)})})})})]})})})}return S}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,m){if(!(!l||!d)){if(l[2]!==d[2]||m!==1)return null;var i=Math.atan2(d[1]-l[1],d[0]-l[0]),h=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(i),distance:h}}},S=r.GPS=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.emped,V=i.active,v=i.area,s=i.position,g=i.saved;return(0,e.createComponentVNode)(2,p.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:h?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,C)}),V?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{area:v,position:s})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,u,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return f}(),b=function(l,d){var m=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.active,v=h.tag,s=h.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function B(){return i("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return i("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return i("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!s,icon:s?"compress":"expand",content:s?"Local Sector":"Global",onClick:function(){function B(){return i("same_z")}return B}()})})]})})},c=function(l,d){var m=l.title,i=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),k(h)]})})},u=function(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.position,V=i.signals,v=i.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(s){return Object.assign({},s,y(h,s.position,v))}).map(function(s,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:s.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:s.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:s.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(s.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:s.distance>0?"arrow-right":"circle",rotation:-s.angle}),"\xA0",Math.floor(s.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:k(s.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasAnalyzerContent=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return u("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return S}(),k=r.GasAnalyzerHistory=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function i(){return u("clearhistory")}return i}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function i(){return u("modekpa")}return i}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function i(){return u("modemol")}return i}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i,h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:h+1+". "+(d==="mol"?i[0].total_moles.toFixed(2):i[0].pressure.toFixed(2)),onClick:function(){function V(){return u("input",{target:h+1})}return V}(),textAlign:"left",selected:h+1===m,fluid:!0})},i[0])})})]})}return S}(),y=r.GasAnalyzer=function(){function S(b,C){var c={float:"left",width:"67%"},u={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,p)}),2,{style:c}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,k)}),2,{style:u})]})})}return S}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasFreezer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.temperature,d=c.temperatureCelsius,m=c.min,i=c.max,h=c.target,V=c.targetCelsius,v=(l-m)/(i-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:u,onClick:function(){function s(){return C("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(h-m)/(i-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[h," \xB0K (",V," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:m})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(h),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(i),step:5,stepPixelSize:3,onDrag:function(){function s(g,N){return C("temp",{temp:N})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:i})}return s}()})]})]})})})})}return k}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),p=n(3939),k=n(98595),y=r.GeneModder=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.has_seed;return(0,e.createComponentVNode)(2,k.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,p.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})})})}return d}(),S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!s||!s.can_insert||s.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return V("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})},b=function(m,i){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return s?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return V("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return V("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return V("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return V("eject_disk")}return T}()})})})]})})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(s!=null&&s.can_extract),icon:"save",onClick:function(){function x(){return V("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!s.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return V("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(s!=null&&s.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return V("bulk_replace_core")}return N}()})})})]},"Core Genes")},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.reagent_genes,s=V.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:s})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.trait_genes,s=V.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:s})},l=function(m,i){var h=m.title,V=m.gene_set,v=m.do_we_show,s=(0,a.useBackend)(i),g=s.act,N=s.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:h,open:!0,children:v?V.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},h)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function k(y,S){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return k}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.security,f=c.medical,l=c.diagnostic,d=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,k,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,k,{label:"Security",type:"security",is_active:u}),(0,e.createComponentVNode)(2,k,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,k,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,m=S.act_on,i=m===void 0?"hud_on":m,h=S.act_off,V=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return c(d?V:i,{hud_type:l})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.glands,f=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return C("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return k}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],k=null,y=r.HandheldChemDispenser=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.amount,i=d.energy,h=d.maxEnergy,V=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[i," / ",h," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},s)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="dispense",content:"\u0421\u0438\u043D\u0442\u0435\u0437",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="remove",content:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="isolate",content:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},b=function(c,u){for(var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.chemicals,i=m===void 0?[]:m,h=d.current_reagent,V=[],v=0;v<(i.length+1)%3;v++)V.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[i.map(function(s,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===s.id,content:s.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:s.id})}return N}()},g)}),V.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ImplantPad=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.implant,f=c.contains_case,l=c.tag,d=(0,a.useLocalState)(S,"newTag",l),m=d[0],i=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function h(){return C("eject_case")}return h}()})}),children:u&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:u.icon,icon_state:u.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),u.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:u.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:u.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:u.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function h(){return C("tag",{newtag:m})}return h}(),onInput:function(){function h(V,v){return i(v)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function h(){return C("tag",{newtag:m})}return h}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return k}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Instrument=function(){function c(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,C)]})})]})}return c}(),y=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.help;if(i)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return d("help")}return h}()})]})})})},S=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.lines,h=m.playing,V=m.repeat,v=m.maxRepeats,s=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,T=m.maxVolume,A=m.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function E(){return d("help")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function E(){return d("newsong")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function E(){return d("import")}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:i.length===0||V<0,icon:"play",content:"Play",onClick:function(){function E(){return d("play")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function E(){return d("stop")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:V,stepPixelSize:59,onChange:function(){function E(w,O){return d("repeat",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:s>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s+x})}return E}()}),(0,a.round)(600/s)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:s<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s-x})}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function E(w,O){return d("setvolume",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,b)]})},b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.allowedInstrumentNames,h=m.instrumentLoaded,V=m.instrument,v=m.canNoteShift,s=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,T=m.legacy,A=m.sustainDropoffVolume,E=m.sustainHeldNote,w,O;return x===1?(w="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,F){return d("setlinearfalloff",{new:F/10})}return M}()})):x===2&&(w="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,F){return d("setexpfalloff",{new:F})}return M}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:V,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:s,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,F){return d("setnoteshift",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:w,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function M(P,F){return d("setdropoffvolume",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.playing,h=m.lines,V=m.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!V||i,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!V,icon:V?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!V&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:s+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:s+1})}return g}()})],4),children:v},s)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ItemPixelShift=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pixel_x,f=c.pixel_y,l=c.max_shift_x,d=c.max_shift_y,m=c.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:u===-l,onClick:function(){function i(){return C("shift_left")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:u,minValue:-l,maxValue:l,onChange:function(){function i(h,V){return C("custom_x",{pixel_x:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:u===l,onClick:function(){function i(){return C("shift_right")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function i(){return C("shift_up")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function i(h,V){return C("custom_y",{pixel_y:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function i(){return C("shift_down")}return i}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function i(){return C("move_to_top")}return i}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function i(){return C("toggle")}return i}()})})]})})]})})}return k}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),k=n(19203),y=n(51057),S=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},b={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,c=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===C&&(d+="Numpad"),S(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var m=l.keyCode-48;d+="Shift"+m}else{var i=l.key.toUpperCase();d+=b[i]||i}return d},u=r.KeyComboModal=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.init_value,v=h.large_buttons,s=h.message,g=s===void 0?"":s,N=h.title,x=h.timeout,B=(0,t.useLocalState)(d,"input",V),L=B[0],T=B[1],A=(0,t.useLocalState)(d,"binding",!0),E=A[0],w=A[1],O=function(){function F(R){if(!E){R.key===a.KEY.Enter&&i("submit",{entry:L}),R.key===a.KEY.Escape&&i("cancel");return}if(R.preventDefault(),S(R)){M(c(R)),w(!1);return}else if(R.key===a.KEY.Escape){M(V),w(!1);return}}return F}(),M=function(){function F(R){R!==L&&T(R)}return F}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function F(R){O(R)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:E,content:E&&E!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){M(V),w(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k.InputButtons,{input:L})})]})]})})]})}return f}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function l(){return C("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function l(){return C("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function l(){return C("reset")}return l}()}),children:f})]})})}return k}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=r.LaborClaimConsole=function(){function b(C,c){return(0,e.createComponentVNode)(2,p.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.can_go_home,m=l.emagged,i=l.id_inserted,h=l.id_name,V=l.id_points,v=l.id_goal,s=l.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!i&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:V/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:V+" / "+v+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+s+")",disabled:!i||!s,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:i?h:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},S=function(C,c){var u=(0,t.useBackend)(c),f=u.data,l=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.isAdmin,m=l.isSlaved,i=l.isMalf,h=l.isAIMalf,V=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(i||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:V===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:V===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),V===0&&(0,e.createComponentVNode)(2,k),V===1&&(0,e.createComponentVNode)(2,y)]})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.has_zeroth_laws,m=l.zeroth_laws,i=l.has_ion_laws,h=l.ion_laws,V=l.ion_law_nr,v=l.has_inherent_laws,s=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,A=l.zeroth_law,E=l.ion_law,w=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:m,ctx:c}),!!i&&(0,e.createComponentVNode)(2,S,{title:V,laws:h,ctx:c}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:s,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:N,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:P.channel})}return F}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return f("transfer_laws",{transfer_laws:m.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},m.name)})})},S=function(C,c){var u=(0,a.useBackend)(C.ctx),f=u.act,l=u.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function i(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return i}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return f("edit_law",{edit_law:m.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return f("delete_law",{delete_law:m.ref})}return i}()})],4)]})]},m.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(u,f){var l=(0,p.useBackend)(f),d=l.act,m=l.data,i=m.items,h=i===void 0?[]:i,V=m.message,v=V===void 0?"":V,s=m.init_value,g=m.timeout,N=m.title,x=(0,p.useLocalState)(f,"selected",h.indexOf(s)),B=x[0],L=x[1],T=(0,p.useLocalState)(f,"searchBarVisible",h.length>10),A=T[0],E=T[1],w=(0,p.useLocalState)(f,"searchQuery",""),O=w[0],M=w[1],P=function(){function ne(Y){var le=K.length-1;if(Y===k.KEY_DOWN)if(B===null||B===le){var de;L(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var oe;L(B+1),(oe=document.getElementById((B+1).toString()))==null||oe.scrollIntoView()}else if(Y===k.KEY_UP)if(B===null||B===0){var re;L(le),(re=document.getElementById(le.toString()))==null||re.scrollIntoView()}else{var Z;L(B-1),(Z=document.getElementById((B-1).toString()))==null||Z.scrollIntoView()}}return ne}(),F=function(){function ne(Y){Y!==B&&L(Y)}return ne}(),R=function(){function ne(){E(!1),E(!0)}return ne}(),U=function(){function ne(Y){var le=String.fromCharCode(Y),de=h.find(function(Z){return Z==null?void 0:Z.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(de){var oe,re=h.indexOf(de);L(re),(oe=document.getElementById(re.toString()))==null||oe.scrollIntoView()}}return ne}(),j=function(){function ne(Y){var le;Y!==O&&(M(Y),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())}return ne}(),W=function(){function ne(){E(!A),M("")}return ne}(),K=h.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:$,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function ne(Y){var le=window.event?Y.which:Y.keyCode;(le===k.KEY_DOWN||le===k.KEY_UP)&&(Y.preventDefault(),P(le)),le===k.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:K[B]})),!A&&le>=k.KEY_A&&le<=k.KEY_Z&&(Y.preventDefault(),U(le)),le===k.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function ne(){return W()}return ne}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:K,onClick:F,onFocusSearch:R,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:K,onSearch:j,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[B]})})]})})})]})}return c}(),b=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onClick,h=u.onFocusSearch,V=u.searchBarVisible,v=u.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(s,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return i(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;V&&B>=k.KEY_A&&B<=k.KEY_Z&&(x.preventDefault(),h())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:s.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},C=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onSearch,h=u.searchQuery,V=u.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(s){s.preventDefault(),d("submit",{entry:m[V]})}return v}(),onInput:function(){function v(s,g){return i(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k={Default:function(){function u(f,l){return f.gear.gear_tier-l.gear.gear_tier}return u}(),Alphabetical:function(){function u(f,l){return f.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return u}(),Cost:function(){function u(f,l){return f.gear.cost-l.gear.cost}return u}()},y=r.Loadout=function(){function u(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=(0,t.useLocalState)(l,"search",!1),V=h[0],v=h[1],s=(0,t.useLocalState)(l,"searchText",""),g=s[0],N=s[1],x=(0,t.useLocalState)(l,"category",Object.keys(i.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,c,{tweakedGear:A,setTweakedGear:E}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,b,{category:B,search:V,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return u}(),S=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.category,V=f.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(i.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function s(){return V(v)}return s}(),children:v},v)})})},b=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=i.user_tier,V=i.gear_slots,v=i.max_gear_slots,s=f.category,g=f.search,N=f.setSearch,x=f.searchText,B=f.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],A=L[1],E=(0,t.useLocalState)(l,"sortReverse",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(F){return F.name}),P;return x.length>2?P=Object.entries(i.gears).reduce(function(F,R){var U=R[0],j=R[1];return F.concat(Object.entries(j).map(function(W){var K=W[0],$=W[1];return{key:K,gear:$}}))},[]).filter(function(F){var R=F.gear;return M(R)}):P=Object.entries(i.gears[s]).map(function(F){var R=F[0],U=F[1];return{key:R,gear:U}}),P.sort(k[T]),w&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(k),onSelected:function(){function F(R){return A(R)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:w?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function F(){return O(!w)}return F}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function F(R){return B(R.target.value)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function F(){N(!g),B("")}return F}()})})]}),children:P.map(function(F){var R=F.key,U=F.gear,j=12,W=Object.keys(i.selected_gears).includes(R),K=(U.cost===1,U.cost+" Points"),$=(0,e.createComponentVNode)(2,o.Box,{children:[U.name.length>j&&(0,e.createComponentVNode)(2,o.Box,{children:U.name}),U.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:U.name.length>j&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),ne=(0,e.createFragment)([U.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:U.allowed_roles.map(function(le){return(0,e.createComponentVNode)(2,o.Box,{children:le},le)})}),tooltipPosition:"left"}),Object.entries(U.tweaks).map(function(le){var de=le[0],oe=le[1];return oe.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},de)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:U.desc,tooltipPosition:"top"})],0),Y=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:U.gear_tier>0&&"Tier "+U.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:K})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:U.icon,dmIconState:U.icon_state,tooltip:(U.name.length>j||U.gear_tier>0)&&$,tooltipPosition:"bottom",selected:W,disabled:U.gear_tier>h||V+U.cost>v&&!W,buttons:ne,buttonsAlt:Y,onClick:function(){function le(){return m("toggle_gear",{gear:U.index_name})}return le}(),children:U.name},R)})})},C=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.setTweakedGear,V=Object.entries(i.gears).reduce(function(v,s){var g=s[0],N=s[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(i.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return m("clear_loadout")}return v}()}),children:V.map(function(v){var s=i.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:s.icon,dmIcon:s.icon_file?s.icon_file:v.icon,dmIconState:s.icon_state?s.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return h(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return m("toggle_gear",{gear:v.index_name})}return g}()})],0),children:s.name?s.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[i.max_gear_slots*.66,i.max_gear_slots],good:[0,i.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},c=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.tweakedGear,V=f.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return V("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var s=v[0],g=v[1];return g.map(function(N){var x=i.selected_gears[h.key][s];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return m("set_tweak",{gear:h.index_name,tweak:s})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},s)})})})})})})}},88832:function(I,r,n){"use strict";r.__esModule=!0,r.MatrixMathTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(98595),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:b.value,step:.005,format:function(){function f(l){return(0,o.toFixed)(l,3)}return f}(),width:"100%",onChange:function(){function f(l,d){return u("change_var",{var_name:b.varName,var_value:d})}return f}()})},y=r.MatrixMathTester=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.matrix_a,d=f.matrix_b,m=f.matrix_c,i=f.matrix_d,h=f.matrix_e,V=f.matrix_f,v=f.pixelated,s=(0,a.useLocalState)(C,"scale_x",1),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"scale_y",1),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"translate_x",0),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"translate_y",0),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"shear_x",0),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"shear_y",0),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"angle",0),$=K[0],ne=K[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Transform Editor",width:290,height:270,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"30%"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Position(c, f)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:m,varName:"c"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:V,varName:"f"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:d,varName:"b"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:i,varName:"d"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:l,varName:"a"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:h,varName:"e"})})]})]}),(0,e.createComponentVNode)(2,t.Table,{mt:3,children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Action"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"up-right-and-down-left-from-center",content:"Scale",width:"100%",onClick:function(){function Y(){return u("scale",{x:g,y:B})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:g,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return N(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:B,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return L(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:"Translate",width:"100%",onClick:function(){function Y(){return u("translate",{x:A,y:O})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:A,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return E(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return M(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"maximize",content:"Shear",width:"100%",onClick:function(){function Y(){return u("shear",{x:F,y:j})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:F,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:j,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return W(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"rotate-right",content:"Rotate",width:"100%",onClick:function(){function Y(){return u("turn",{angle:$})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:$,step:.5,maxValue:360,minValue:-360,format:function(){function Y(le){return(0,o.toFixed)(le,1)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return ne(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"dog",color:"bad",selected:v,content:"PET",tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){function Y(){return u("toggle_pixel")}return Y}()})})]})]})]})})})}return S}()},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.recharge_port,f=u&&u.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return C("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return k}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.MechaControlConsole=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return u("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,k.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:l.length&&l.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return u("send_message",{mt:m.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return u("get_log",{mt:m.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function i(){return u("shock",{mt:m.uid})}return i}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,k.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),k=n(98595),y=n(321),S=n(5485),b=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},u=function(T,A){(0,p.modalOpen)(T,"edit",{field:A.edit,value:A.value})},f=function(T,A){var E=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"\u0412\u0438\u0440\u0443\u0441",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:E.spread_text}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:C[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function L(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.loginState,M=w.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,m):M===4?P=(0,e.createComponentVNode)(2,i):M===5?P=(0,e.createComponentVNode)(2,s):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.records,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438",icon:"wrench",ml:"0.25rem",onClick:function(){function Y(){return w("screen",{screen:3})}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",onInput:function(){function Y(le,de){return R(de)}return Y}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.id+"|"+Y.rank+"|"+Y.p_stat+"|"+Y.m_stat})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[Y.p_stat],onClick:function(){function le(){return w("view_record",{view_record:Y.ref})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.m_stat})]},Y.id)})]})})})],4)},m=function(T,A){var E=(0,t.useBackend)(A),w=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439",onClick:function(){function O(){return w("del_all")}return O}()})})]})})},i=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical,P=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C",ml:"0.5rem",onClick:function(){function F(){return w("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("new")}return F}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return u(A,M)}return F}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"\u0424\u043E\u0442\u043E \u2116",P+1]},P)})]})},V=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function R(){return u(A,P)}return R}()})]},F)})})})})},v=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439",onClick:function(){function P(){return(0,p.modalOpen)(A,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):M.comments.map(function(P,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function R(){return w("del_c",{del_c:F+1})}return R}()})]},F)})})})},s=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.virus,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId2","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder2",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",onInput:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.max_stages+"|"+Y.severity})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Y.severity,onClick:function(){function le(){return w("vir",{vir:Y.D})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[Y.severity],children:Y.severity})]},Y.id)})]})})})})],4)},g=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!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,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+P.total_volume+"/"+P.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},P.id)})]})})})},N=function(T,A){var E=(0,t.useLocalState)(A,"sortId","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,A){var E=(0,t.useLocalState)(A,"sortId2","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function F(){w("screen",{screen:2})}return F}(),children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function F(){w("screen",{screen:5})}return F}(),children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function F(){return w("screen",{screen:6})}return F}(),children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",P.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",f)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Mimicking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function l(){return C("Choose",{id:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return C("Delete",{id:f.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return C("Add")}return f}()})]})})})})}return k}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Minesweeper=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.matrix,f=c.showMessage,l=c.tokens,d=c.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var i=function(){function g(N,x,B){N.button!==0&&N.button!==2||C("Square",{X:x,Y:B,mode:N.button===2?s[V]:V})}return g}(),h=(0,a.useLocalState)(S,"mode","bomb"),V=h[0],v=h[1],s={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:V==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:V==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return C("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(u).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(u[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:u[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:u[g][N].open?u[g][N].bomb?"bomb":"":u[g][N].flag?"flag":"",textColor:u[g][N].open?u[g][N].bomb?"black":m[u[g][N].around]:u[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return i(B,g,N)}return x}(),children:u[g][N].open&&!u[g][N].bomb&&u[g][N].around?u[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),f]})]})})})})}return k}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MiniGamesMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[],f=c.thunderdome_eligible,l=c.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return C("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return C("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return C("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return C("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return k}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=["title","items"];function y(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var S={Alphabetical:function(){function l(d,m){return d-m}return l}(),Availability:function(){function l(d,m){return-(d.affordable-m.affordable)}return l}(),Price:function(){function l(d,m){return d.price-m.price}return l}()},b=r.MiningVendor=function(){function l(d,m){return(0,e.createComponentVNode)(2,p.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})})}return l}(),C=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,e.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id,g=V.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),T=L[0],A=L[1],E=(0,t.useLocalState)(m,"descending",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(R){return R[0]}),P=!1,F=Object.entries(g).map(function(R,U){var j=Object.entries(R[1]).filter(M).map(function(W){return W[1].affordable=v&&s.points>=W[1].price,W[1]}).sort(S[T]);if(j.length!==0)return w&&(j=j.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=y(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!V.has_id||V.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),c=function(B,L){var T=B.iconName,A=B.machineName,E=B.noMachine,w=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=E?w:A||"Unknown machine",F=P===w,R=P===w||P===M;return E&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!E&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:R,children:P})})]})},u=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},f=function(B,L){var T=B.text,A=B.defaultText,E=b(B,k);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},E,{children:T}))):(0,e.createComponentVNode)(2,u,{text:A})},l=function(B,L){var T=B.noConfirm,A=T===void 0?!1:T,E=b(B,y);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},E))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},E)))},d=function(B,L){var T=B.label,A=B.wrapContent,E=B.noWrapContent,w=B.compactLabel,O=w===void 0?!1:w,M=b(B,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:E})]})))},m=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},i=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},h=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!w,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},V=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.frequency,O=E.minFrequency,M=E.maxFrequency,P=E.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:w/10,format:function(){function F(R){return(0,a.toFixed)(R,1)}return F}(),onChange:function(){function F(R,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:w.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return A("remove_tag",{tag_index:M})}return P}()})})})},M)})})},s=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.bolts,O=E.pressureCheck,M=E.temperatureCheck,P=E.oxygenCheck,F=E.toxinsCheck,R=E.nitrogenCheck,U=E.carbonDioxideCheck,j=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:R,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"times",selected:w,content:w?"YES":"NO",onClick:function(){function W(){return A("toggle_bolts")}return W}()})}),j.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function K(){return A("toggle_flag",{bitflag:W.bitflag})}return K}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(w).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),w[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return A("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!w[O],onClick:function(){function M(){return A("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return A("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.inputTag,O=E.outputTag,M=E.bufferTag,P=E.bufferFitsInput,F=E.bufferFitsOutput,R=E.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!w,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&M===w,disabled:!P,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!w,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),k=n(98595),y=n(3939),S=n(22091),b=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function c(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}var u=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.is_security,M=w.is_admin,P=w.is_silent,F=w.is_printing,R=w.screen,U=w.channels,j=w.channel_idx,W=j===void 0?-1:j,K=(0,t.useLocalState)(T,"menuOpen",!1),$=K[0],ne=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),le=Y[0],de=Y[1],oe=(0,t.useLocalState)(T,"censorMode",!1),re=oe[0],Z=oe[1],ae;R===0||R===2?ae=(0,e.createComponentVNode)(2,i):R===1&&(ae=(0,e.createComponentVNode)(2,h));var J=U.reduce(function(X,Q){return X+Q.unread},0);return(0,e.createComponentVNode)(2,k.Window,{theme:O&&"security",width:800,height:600,children:[le?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",$&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function X(){return ne(!$)}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function X(){return E("headlines")}return X}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function X(){return E("jobs")}return X}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(X){return(0,e.createComponentVNode)(2,m,{icon:X.icon,title:X.name,selected:R===2&&U[W-1]===X,onClick:function(){function Q(){return E("channel",{uid:X.uid})}return Q}(),children:X.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:X.unread>=10?"9+":X.unread})},X)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"wanted_notice")}return X}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function X(){return Z(!re)}return X}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_story")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_channel")}return X}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function X(){return E("print_newspaper")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function X(){return E("toggle_mute")}return X}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ae]})]})})]})}return B}(),m=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=L.icon,O=w===void 0?"":w,M=L.iconSpin,P=L.selected,F=P===void 0?!1:P,R=L.security,U=R===void 0?!1:R,j=L.onClick,W=L.title,K=L.children,$=c(L,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:j},$,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),K]})))},i=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.screen,M=w.is_admin,P=w.channel_idx,F=w.channel_can_manage,R=w.channels,U=w.stories,j=w.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"censorMode",!1),Y=ne[0],le=ne[1],de=O===2&&P>-1?R[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,V,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:de?de.icon:"newspaper",mr:"0.5rem"}),de?de.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(oe){return!K.includes(oe.uid)&&oe.body.length+3>u?Object.assign({},oe,{body_short:oe.body.substr(0,u-4)+"..."}):oe}).map(function(oe,re){return(0,e.createComponentVNode)(2,V,{story:oe},re)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!de&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!de.admin&&!M,selected:de.censored,icon:de.censored?"comment-slash":"comment",content:de.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function oe(){return E("censor_channel",{uid:de.uid})}return oe}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function oe(){return(0,y.modalOpen)(T,"manage_channel",{uid:de.uid})}return oe}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:de.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:de.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:de.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(oe,re){return oe+re.view_count},0).toLocaleString()]})]})})]})},h=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.jobs,M=w.wanted,P=Object.entries(O).reduce(function(F,R){var U=R[0],j=R[1];return F+j.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,V,{story:M,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(F){return Object.assign({},l[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},F.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},V=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,F=(0,t.useLocalState)(T,"fullStories",[]),R=F[0],U=F[1],j=(0,t.useLocalState)(T,"censorMode",!1),W=j[0],K=j[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return E("censor_story",{uid:O.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(O.publish_time,w.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function($,ne){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return U([].concat(R,[O.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var A=L.name,E=c(L,C),w=(0,t.useLocalState)(T,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return M(A)}return P}()},E)))},s=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:E}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return w("")}return O}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=!!L.args.uid&&w.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:U,onInput:function(){function te(fe,ye){return j(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Y,onInput:function(){function te(fe,ye){return le(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:oe,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:oe,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,49),description:Y.substr(0,128),icon:oe,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.channels,P=w.channel_idx,F=P===void 0?-1:P,R=!!L.args.is_admin,U=L.args.scanned_user,j=M.slice().sort(function(te,fe){if(F<0)return 0;var ye=M[F-1];if(ye.uid===te.uid)return-1;if(ye.uid===fe.uid)return 1}).filter(function(te){return R||!te.frozen&&(te.author===U||!!te.public)}),W=(0,t.useLocalState)(T,"author",U||"Unknown"),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"channel",j.length>0?j[0].name:""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"title",""),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"body",""),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:j.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return le(fe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:oe,onInput:function(){function te(fe,ye){return re(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(fe,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return E(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:oe,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||oe.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:oe.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.wanted,P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),oe=de[0],re=de[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:U,onInput:function(){function Z(ae,J){return j(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Z(ae,J){return $(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function Z(ae,J){return le(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Z(){return E(O?"eject_photo":"attach_photo")}return Z}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Z(){return re(!oe)}return Z}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Z(){E("clear_wanted_notice"),(0,y.modalClose)(T)}return Z}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Z(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:oe?1:0})}return Z}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),p=n(98595),k=r.NinjaBloodScan=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data;return(0,e.createComponentVNode)(2,p.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.vialIcons,m=l.noVialIcon,i=l.bloodOwnerNames,h=l.bloodOwnerSpecies,V=l.bloodOwnerTypes,v=l.blockButtons,s=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:i[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[s[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return f("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:i[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(h[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(V[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NinjaMindScan=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.occupantIcon,l=u.occupant_name,d=u.occupant_health,m=u.scanned_occupants,i=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("scan_occupant")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:i,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("go_out")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("teleport_out")}return h}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:h.scanned_occupant})})},h.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function u(){return C("auth")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function u(){return C("code")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authfull,content:c.anchored?"YES":"NO",onClick:function(){function u(){return C("toggle_anchor")}return u}()})}),c.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function u(){return C("set_time")}return u}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:c.timer?"red":"",children:c.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function u(){return C("toggle_safety")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function u(){return C("toggle_armed")}return u}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function u(){return C("deploy")}return u}()})})})})}return k}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),k=n(36036),y=n(98595),S=r.NumberInputModal=function(){function C(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.init_value,i=d.large_buttons,h=d.message,V=h===void 0?"":h,v=d.timeout,s=d.title,g=(0,p.useLocalState)(u,"input",m),N=g[0],x=g[1],B=function(){function A(E){E!==N&&x(E)}return A}(),L=function(){function A(E){E!==N&&x(E)}return A}(),T=140+Math.max(Math.ceil(V.length/3),V.length>0&&i?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:s,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(E){var w=window.event?E.which:E.keyCode;w===o.KEY_ENTER&&l("submit",{entry:N}),w===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:V})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return C}(),b=function(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.min_value,i=d.max_value,h=d.init_value,V=d.round_value,v=c.input,s=c.onClick,g=c.onChange,N=Math.round(v!==m?Math.max(v/2,m):i/2),x=v===m&&m>0||v===1;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===m,icon:"angle-double-left",onClick:function(){function B(){return s(m)}return B}(),tooltip:v===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:m,maxValue:i,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===i,icon:"angle-double-right",onClick:function(){function B(){return s(i)}return B}(),tooltip:v===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return s(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===h,icon:"redo",onClick:function(){function B(){return s(h)}return B}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),k=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.hasOccupant,s=V.choice,g;return s?g=(0,e.createComponentVNode)(2,f):g=v?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!s,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!s,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),c=function(d,m){var i=(0,t.useBackend)(m),h=i.data,V=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:V.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[V.stat][0],children:k[V.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,s){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0],children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:V[v[1]]/100,ranges:S,children:(0,a.round)(V[v[1]])},s)},s)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:b[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius),"\xB0C, ",(0,a.round)(V.btFaren),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[V.pulse," \u0443\u0434/\u043C\u0438\u043D"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",level:"2",children:V.inSurgery?V.surgeries.map(function(v){var s=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,p.Section,{title:s,level:"4",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:g}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:N})]})},s)}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},u=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.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."]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.verbose,s=V.health,g=V.healthAlarm,N=V.oxy,x=V.oxyAlarm,B=V.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(s?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);function k(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=y(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[V++]}}}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 y(m,i){if(m){if(typeof m=="string")return S(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?S(m,i):void 0}}function S(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);hh},u=function(i,h){var V=i.name,v=h.name;if(!V||!v)return 0;var s=V.match(b),g=v.match(b);if(s&&g&&V.replace(b,"")===v.replace(b,"")){var N=parseInt(s[1],10),x=parseInt(g[1],10);return N-x}return c(V,v)},f=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.searchText,g=i.source,N=i.title,x=g.filter(C(s));return x.sort(u),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.color,g=i.thing;return(0,e.createComponentVNode)(2,o.Button,{color:s,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(i,h){for(var V=(0,t.useBackend)(h),v=V.act,s=V.data,g=s.alive,N=s.antagonists,x=s.highlights,B=s.auto_observe,L=s.dead,T=s.ghosts,A=s.misc,E=s.npcs,w=(0,t.useLocalState)(h,"searchText",""),O=w[0],M=w[1],P={},F=k(N),R;!(R=F()).done;){var U=R.value;P[U.antag]===void 0&&(P[U.antag]=[]),P[U.antag].push(U)}var j=Object.entries(P);j.sort(function(K,$){return c(K[0],$[0])});var W=function(){function K($){for(var ne=0,Y=[j.map(function(oe){var re=oe[0],Z=oe[1];return Z}),x,g,T,L,E,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:j.map(function(K){var $=K[0],ne=K[1];return(0,e.createComponentVNode)(2,o.Section,{title:$,level:2,children:ne.filter(C(O)).sort(u).map(function(Y){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Y},Y.name)})},$)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"good",thing:K},K.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:K},K.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:E,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(9394);function y(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,k.createLogger)("OreRedemption"),b=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function i(h,V){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return s("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return s("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:b(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return s("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return s("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return s("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},l=function(h,V){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(s){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:s[1],textAlign:"center",color:"label",bold:!0,children:s[0]},s)})]})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(70752),y=function(C){var c;try{c=k("./"+C+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw f}var u=c[C];return u||(0,p.routingError)("missingExport",C)},S=r.PAI=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.app_template,m=l.app_icon,i=l.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),i,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function V(){return f("MASTER_back")}return V}()})]}),p:1,children:(0,e.createComponentVNode)(2,h)})})})}return b}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(59395),y=function(u){var f;try{f=k("./"+u+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",u);throw d}var l=f[u];return l||(0,p.routingError)("missingExport",u)},S=r.PDA=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app,h=m.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var V=y(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.idInserted,h=m.idLink,V=m.stationTime,v=m.cartridge_name,s=m.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:i?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:s?["Eject "+s]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:V})]})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!i.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return d("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){d("Home")}return h}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.PDAPainter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.statusLabel,l=u.pdaTypes,d=u.hasPDA,m=u.pdaIcon,i=u.pdaIconState,h=u.pdaOwnerName,V=u.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return c(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:h||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:V||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:m,icon_state:i,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return c("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,k,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),k=r.PDAColorRow=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.hasPDA,l=u.pdaIcon,d=S.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return c("choose_pda",{selectedPda:d})}return m}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.Pacman=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.broken,l=u.anchored,d=u.active,m=u.fuel_type,i=u.fuel_usage,h=u.fuel_stored,V=u.fuel_cap,v=u.is_ai,s=u.tmp_current,g=u.tmp_max,N=u.tmp_overheat,x=u.output_max,B=u.power_gen,L=u.output_set,T=u.has_fuel,A=h/V,E=s/g,w=L*B,O=Math.round(h/i),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function F(){return c("toggle_power")}return F}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(R,U){return c("change_power",{change_power:U})}return F}()}),"(",(0,p.formatPower)(w),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[s," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||v||!T,onClick:function(){function F(){return c("eject_fuel")}return F}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(h/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[i/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(i?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.busy,d=f.category,m=f.display_craftable_only,i=f.display_compact,h=f.prev_cat,V=f.next_cat,v=f.subcategory,s=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return u("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function N(){return u("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return u("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function N(){return u("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s,icon:"arrow-left",onClick:function(){function N(){return u("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return u("forwardSubCat")}return N}()})]}),i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return u("make",{make:i.ref})}return h}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!l&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return u("make",{make:i.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!l&&m.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),k=n(64795),y=n(25328);function S(f,l){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=b(f))||l&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}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 b(f,l){if(f){if(typeof f=="string")return C(f,l);var d={}.toString.call(f).slice(8,-1);return d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set"?Array.from(f):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(f,l):void 0}}function C(f,l){(l==null||l>f.length)&&(l=f.length);for(var d=0,m=Array(l);df?this.substring(0,f)+"...":this};var c=function(l,d){d===void 0&&(d="");var m=(0,y.createSearch)(d,function(i){return i.altername});return(0,k.flow)([(0,p.filter)(function(i){return i==null?void 0:i.altername}),d&&(0,p.filter)(m),(0,p.sortBy)(function(i){return i.id})])(l)},u=r.Photocopier=function(){function f(l,d){for(var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.copies,v=h.maxcopies,s=(0,a.useLocalState)(d,"searchText",""),g=s[0],N=s[1],x=c((0,p.sortBy)(function(P){return P.category})(h.forms||[]),g),B=[],L=S(x),T;!(T=L()).done;){var A=T.value;B.includes(A.category)||B.push(A.category)}var E=(0,a.useLocalState)(d,"number",0),w=E[0],O=E[1],M;return h.category===""?M=x:M=x.filter(function(P){return P.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return i("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return i("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return i("print_form")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return i("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function P(){return i("copy")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function P(){return i("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:V,stepPixelSize:10,onChange:function(){function P(F,R){return i("copies",{new:R})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function P(){return i("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:h.category===P,onClick:function(){function F(){return i("choose_category",{category:P})}return F}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(F,R){return N(R)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:h.form_id===P.id,onClick:function(){function F(){return i("choose_form",{path:P.path,id:P.id})}return F}()})},P.path)})})})]})})})}return f}()},49177:function(I,r,n){"use strict";r.__esModule=!0,r.PlayerPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["checked"];function k(u,f){if(u==null)return{};var l={};for(var d in u)if({}.hasOwnProperty.call(u,d)){if(f.includes(d))continue;l[d]=u[d]}return l}var y=function(f,l){var d,m={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((d=m[l])==null?void 0:d.some(function(i){return f.toLowerCase().includes(i)}))||!1},S=r.PlayerPanel=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(){function V(v,s){s===void 0&&(s={}),m(v,Object.assign({selectedPlayerCkey:i.ckey},s))}return V}();return i.ckey?(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - "+i.ckey,width:800,height:950,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return h("refresh")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Old Panel",onClick:function(){function V(){return h("old_pp")}return V}()})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})})}):(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - Error",width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"No valid player data found. Please refresh or select a valid player."}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return m("refresh")}return V}()})]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=(0,a.useLocalState)(l,"show_ip",!1),V=h[0],v=h[1],s=(0,a.useLocalState)(l,"show_cid",!1),g=s[0],N=s[1],x=function(L,T){T===void 0&&(T={}),m(L,Object.assign({selectedPlayerCkey:i.ckey},T))};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Player Information",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Character:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.characterName}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Ckey:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.ckey})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Discord:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.discord})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Account Registered:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.accountRegistered}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.playtime,onClick:function(){function B(){return x("playtime")}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"CID:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:g?i.CID:"Hidden",onClick:function(){function B(){return N(!g)}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"IP Address:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V?i.ipAddress:"Hidden",onClick:function(){function B(){return v(!V)}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Mob Type:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.mobType}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Byond Version:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.byondVersion})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By CID:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by CID",color:"blue",onClick:function(){function B(){return x("relatedbycid")}return B}()}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By IP:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by IP",color:"blue",onClick:function(){function B(){return x("relatedbyip")}return B}()})]})]})})})},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(g,N){N===void 0&&(N={}),m(g,Object.assign({selectedPlayerCkey:i.ckey},N))},V=function(g){return i.adminRights.toLowerCase().includes(g)||!1},v=function(g){i.ckey&&h("toggleMute",{type:g})};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Punish",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"times",content:"KICK",color:"red",onClick:function(){function s(){return h("kick")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"JOBBAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("jobban")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",content:"ADD TO WATCHLIST",color:"red",onClick:function(){function s(){return h("watchlist")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("ban")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"APPEARANCE BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("appban")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bolt",content:"SMITE",color:"red",hidden:!V("event"),onClick:function(){function s(){return h("smite")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-holding-heart",content:"BLESS",onClick:function(){function s(){return h("bless")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Message",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"PM",onClick:function(){function s(){return h("pm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment-alt",content:"NARRATE",onClick:function(){function s(){return h("narrate")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SEND ALERT",onClick:function(){function s(){return h("sendalert")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SM",disabled:!V("event"),onClick:function(){function s(){return h("sm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"crown",content:"MAN UP",onClick:function(){function s(){return h("manup")}return s}()}):null,V("sound")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",content:"PLAY SOUND TO",onClick:function(){function s(){return h("playsoundto")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Movement",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"FLW",onClick:function(){function s(){return h("flw")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",content:"GET",onClick:function(){function s(){return h("get")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paper-plane",content:"SEND",onClick:function(){function s(){return h("send")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",content:"JUMPTO",onClick:function(){function s(){return h("jumpto")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sign-out-alt",content:"LOBBY",onClick:function(){function s(){return h("lobby")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"columns",content:"SEND TO CRYO",onClick:function(){function s(){return h("cryo")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book",content:"LOGS",onClick:function(){function s(){return h("logs")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"clipboard",content:"NOTES",onClick:function(){function s(){return h("notes")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"PLAYTIME",onClick:function(){function s(){return h("playtime")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"globe",content:"GEOIP",onClick:function(){function s(){return h("geoip")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"TRAITOR PANEL",onClick:function(){function s(){return h("tp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"code",content:"VV",onClick:function(){function s(){return h("vv")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"database",content:"CHECK GLOBAL CCDB",onClick:function(){function s(){return h("ccdb")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("spawn")?(0,e.createComponentVNode)(2,t.Section,{title:"Transformation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ghost",content:"MAKE GHOST",color:y(i.mobType,"ghost")?"good":"",onClick:function(){function s(){return h("makeghost")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user",content:"MAKE HUMAN",color:y(i.mobType,"human")?"good":"",onClick:function(){function s(){return h("makehuman")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paw",content:"MAKE MONKEY",color:y(i.mobType,"monkey")?"good":"",onClick:function(){function s(){return h("makemonkey")}return s}()})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"robot",content:"MAKE CYBORG",color:y(i.mobType,"cyborg")?"good":"",onClick:function(){function s(){return h("makeborg")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"MAKE AI",color:y(i.mobType,"ai")?"good":"",onClick:function(){function s(){return h("makeai")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"ANIMALIZE",color:y(i.mobType,"animal")?"good":"",onClick:function(){function s(){return h("makeanimal")}return s}()})]})]})}):null,y(i.mobType,"ghost")?(0,e.createComponentVNode)(2,t.Section,{title:"Observer",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"TOGGLE RESPAWNABILITY",onClick:function(){function s(){return h("respawnability")}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"staff-snake",content:"RE-INCARNATE",disabled:!V("spawn"),onClick:function(){function s(){return h("reviveghost")}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"heart",content:"HEALTHSCAN",onClick:function(){function s(){return h("healthscan")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GIVE DISEASE",onClick:function(){function s(){return h("giveDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE DISEASE",onClick:function(){function s(){return h("cureDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE ALL BAD DISEASES",onClick:function(){function s(){return h("cureAllDiseases")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CHEMSCAN",onClick:function(){function s(){return h("chemscan")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"REJUVINATE",disabled:!V("rejuvinate"),onClick:function(){function s(){return h("aheal")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"dna",content:"SHOW DNA",onClick:function(){function s(){return h("mutate")}return s}()}):null]})]})})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("admin")?(0,e.createComponentVNode)(2,t.Section,{title:"Mob Manipulation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pencil",content:"MOB RANDOM NAME",onClick:function(){function s(){return h("randomizename")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"SELECT EQUIPMENT",disabled:!V("event"),onClick:function(){function s(){return h("selectequip")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microphone",content:"CHANGE VOICE",onClick:function(){function s(){return h("changevoice")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO ADMIN",onClick:function(){function s(){return h("mirroradmin")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pen",content:"CHARACTER RANDOM NAME",onClick:function(){function s(){return h("userandomname")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eraser",content:"ERASE FLAVOR",onClick:function(){function s(){return h("eraseflavortext")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"CHECK CONTENTS",onClick:function(){function s(){return h("checkcontents")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO PLAYER",onClick:function(){function s(){return h("mirrorplayer")}return s}()}):null]})]})}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Misc",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 1",onClick:function(){function s(){return h("thunderdome1")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 2",onClick:function(){function s(){return h("thunderdome2")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"FORCESAY",onClick:function(){function s(){return h("forcesay")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"handcuffs",content:"PRISON",onClick:function(){function s(){return h("prison")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL RELEASE",onClick:function(){function s(){return h("contractor_release")}return s}()}):null,V("event")||V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cookie",content:"SPAWN COOKIE",onClick:function(){function s(){return h("spawncookie")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME ADMIN",onClick:function(){function s(){return h("thunderdomeadmin")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"THUNDERDOME OBSERVER",onClick:function(){function s(){return h("thunderdomeobserver")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"wheelchair-move",content:"AROOM WRAP",onClick:function(){function s(){return h("adminroom")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL START",onClick:function(){function s(){return h("contractor_start")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL STOP",onClick:function(){function s(){return h("contractor_stop")}return s}()}):null,(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Some Admin Button",onClick:function(){function s(){return h("someadminbutton")}return s}()})]})]})})]})]}),(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Mute Controls",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:7,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ic,onClick:function(){function s(){return v("ic")}return s}(),content:"IC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ooc,onClick:function(){function s(){return v("ooc")}return s}(),content:"OOC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.pray,onClick:function(){function s(){return v("pray")}return s}(),content:"PRAY"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.emote,onClick:function(){function s(){return v("emote")}return s}(),content:"EMOTE"})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.adminhelp,onClick:function(){function s(){return v("adminhelp")}return s}(),content:"ADMINHELP"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.deadchat,onClick:function(){function s(){return v("deadchat")}return s}(),content:"DEADCHAT"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.all,onClick:function(){function s(){return v("all")}return s}(),content:"ALL"})]})]})})})})]})},c=function(f){var l=f.checked,d=k(f,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:l?"red":"green",icon:l?"check-square-o":"square-o"},d)))}},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PodTracking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return k}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PollListPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function f(){return C("newpoll")}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function l(){return C("editpoll",{poll_to_edit:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function l(){return C("deletepoll",{poll_to_delete:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function l(){return C("resultspoll",{poll_to_result:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Box,{children:f.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return k}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollManagement=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=f.has_poll,m=f.poll_types,i=f.interval_types,h=(0,a.useLocalState)(C,"question",l.question),V=h[0],v=h[1],s=(0,a.useLocalState)(C,"poll_type",l.poll_type),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"options_allowed",l.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"admin_only",l.admin_only),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"dont_show",l.dont_show),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"allow_revoting",l.allow_revoting),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"interval",l.interval),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"duration",l.duration),$=K[0],ne=K[1],Y=(0,a.useLocalState)(C,"start_datetime",l.start_datetime),le=Y[0],de=Y[1],oe=(0,a.useLocalState)(C,"end_datetime",l.end_datetime),re=oe[0],Z=oe[1],ae=(0,a.useLocalState)(C,"subtitle",l.subtitle),J=ae[0],X=ae[1],Q=(0,a.useLocalState)(C,"minimum_playtime",l.minimum_playtime),q=Q[0],te=Q[1],fe=(0,a.useLocalState)(C,"run_duration",l.run_duration),ye=fe[0],pe=fe[1],Le=(0,a.useLocalState)(C,"run_start",l.run_start),D=Le[0],ie=Le[1],se=(0,a.useLocalState)(C,"clear_votes",l.clear_votes),Ce=se[0],he=se[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:V,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:m,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:A,onClick:function(){function ve(){return E(!A)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:F,onClick:function(){function ve(){return R(!F)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:q,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return pe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:$,onChange:function(){function ve(Be,we){return ne(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:i,selected:j,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return Z(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return de(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return X(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return u("clear_poll_votes")}return ve}()}),l.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return u("submit_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return u("initialize_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return S}(),y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=l.options,m=(0,a.useLocalState)(C,"poll_type",null),i=m[0],h=m[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function V(){return u("add_poll_option")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+V.num,children:[V.text,i==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",V.min_val," | Maximum value:"," ",V.max_val,"Minimum description: ",V.desc_min,"Middle description: ",V.desc_mid,"Maximum description: ",V.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return u("edit_poll_option",{option_to_edit:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return u("delete_poll_option",{option_to_delete:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollOptionPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.poll_question,l=u.is_rating,d=u.option,m=(0,a.useLocalState)(b,"text",d.text),i=m[0],h=m[1],V=(0,a.useLocalState)(b,"default_percentage_calc",d.default_percentage_calc),v=V[0],s=V[1],g=(0,a.useLocalState)(b,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(b,"max_val",d.max_val),L=B[0],T=B[1],A=(0,a.useLocalState)(b,"desc_min_check",d.desc_min_check),E=A[0],w=A[1],O=(0,a.useLocalState)(b,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],F=(0,a.useLocalState)(b,"desc_max_check",d.desc_max_check),R=F[0],U=F[1],j=(0,a.useLocalState)(b,"desc_min_text",d.desc_min_text),W=j[0],K=j[1],$=(0,a.useLocalState)(b,"desc_mid_text",d.desc_min_text),ne=$[0],Y=$[1],le=(0,a.useLocalState)(b,"desc_max_text",d.desc_min_text),de=le[0],oe=le[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Option Panel",width:400,height:l?320:180,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:i,onChange:function(){function re(Z,ae){return h(ae)}return re}()})}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:E,onClick:function(){function re(){return w(!E)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:R,onClick:function(){function re(){return U(!R)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(Z,ae){return K(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:ne,onEnter:function(){function re(Z,ae){return Y(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:de,onEnter:function(){function re(Z,ae){return oe(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return s(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return c("submit_option",{text:i,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:E,desc_mid_check:M,desc_max_check:R,desc_min_text:W,desc_mid_text:ne,desc_max_text:de})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function k(C,c){if(C==null)return{};var u={};for(var f in C)if({}.hasOwnProperty.call(C,f)){if(c.includes(f))continue;u[f]=C[f]}return u}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,u){var f=c.tempKey,l=k(c,p),d=y[f];if(!d)return null;var m=(0,a.useBackend)(u),i=m.data,h=m.act,V=i.currentTemp,v=d.label,s=d.icon,g=f===V,N=function(){h("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s}),v]})))},b=r.PoolController=function(){function C(c,u){for(var f=(0,a.useBackend)(u),l=f.data,d=l.emagged,m=l.currentTemp,i=y[m]||y.normal,h=i.label,V=i.color,v=[],s=0,g=Object.entries(y);s50?"battery-half":"battery-quarter")||V==="C"&&"bolt"||V==="F"&&"battery-full"||V==="M"&&"slash",color:V==="N"&&(v>50?"yellow":"red")||V==="C"&&"yellow"||V==="F"&&"green"||V==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var m=function(h){var V,v,s=h.status;switch(s){case"AOn":V=!0,v=!0;break;case"AOff":V=!0,v=!1;break;case"On":V=!1,v=!0;break;case"Off":V=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(V?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:V?void 0:"M",title:g})};m.defaultHooks=p.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),k=n(321),y=n(5485),S=n(98595),b=r.PrisonerImplantManager=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.loginState,i=d.prisonerInfo,h=d.chemicalInfo,V=d.trackingInfo,v;if(!m.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var s=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function g(){return(0,p.modalOpen)(u,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:i.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:V.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,p.modalOpen)(u,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},S=function(m,i){for(var h=[],V=0;V0?"envelope-open-text":"envelope",onClick:function(){function x(){return h("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return h("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return h("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return h("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return h("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return h("setScreen",{setScreen:10})}return x}()})})]}),!!s&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return h("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return h("toggleSilent")}return x}()})})]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.department,s,g;switch(d.purpose){case"ASSISTANCE":s=V.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":s=V.supply_dept,g="Request supplies from another department";break;case"INFO":s=V.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return h("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return h("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function s(){return h("setScreen",{setScreen:0})}return s}()})})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v,s;switch(d.type){case"MESSAGES":v=V.message_log,s="Message Log";break;case"SHIPPING":v=V.shipping_log,s="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:s,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.recipient,s=V.message,g=V.msgVerified,N=V.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return h("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return h("department",{department:v})}return x}()})]})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.message,s=V.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return h("writeAnnouncement")}return g}()}),s?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&v),onClick:function(){function g(){return h("sendAnnouncement")}return g}()})]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.shipDest,s=V.msgVerified,g=V.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:s})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&s),onClick:function(){function N(){return h("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return h("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);/** + */function f(T,A){T.prototype=Object.create(A.prototype),T.prototype.constructor=T,l(T,A)}function l(T,A){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,w){return E.__proto__=w,E},l(T,A)}function d(T,A){if(T==null)return{};var E={};for(var w in T)if({}.hasOwnProperty.call(T,w)){if(A.includes(w))continue;E[w]=T[w]}return E}var m=r.ColorPickerModal=function(){function T(A,E){var w=(0,t.useBackend)(E),O=w.data,M=O.timeout,P=O.message,F=O.title,R=O.autofocus,U=O.default_color,j=U===void 0?"#000000":U,W=(0,t.useLocalState)(E,"color_picker_choice",(0,y.hexToHsva)(j)),K=W[0],$=W[1];return(0,e.createComponentVNode)(2,p.Window,{height:400,title:F,width:600,theme:"generic",children:[!!M&&(0,e.createComponentVNode)(2,a.Loader,{value:M}),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[P&&(0,e.createComponentVNode)(2,o.Stack.Item,{m:1,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",overflow:"hidden",children:P})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[!!R&&(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,i,{color:K,setColor:$,defaultColor:j})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c.InputButtons,{input:(0,y.hsvaToHex)(K)})})]})})]})}return T}(),i=r.ColorSelector=function(){function T(A,E){var w=A.color,O=A.setColor,M=A.defaultColor,P=function(){function U(j){O(function(W){return Object.assign({},W,j)})}return U}(),F=(0,y.hsvaToRgba)(w),R=(0,y.hsvaToHex)(w);return(0,e.createComponentVNode)(2,o.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{mr:2,children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createVNode)(1,"div","react-colorful",[(0,e.createComponentVNode)(2,g,{hsva:w,onChange:P}),(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P,className:"react-colorful__last-control"})],4)}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Current"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"20px",textAlign:"center",children:"Previous"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Tooltip,{content:R,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:R})}),(0,e.createComponentVNode)(2,o.Tooltip,{content:M,position:"bottom",children:(0,e.createComponentVNode)(2,o.Box,{inline:!0,width:"100px",height:"30px",backgroundColor:M})})]})]})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:!0,fontSize:"15px",lineHeight:"24px",children:(0,e.createComponentVNode)(2,o.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"Hex:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"24px",children:(0,e.createComponentVNode)(2,v,{fluid:!0,color:(0,y.hsvaToHex)(w).substring(1),onChange:function(){function U(j){C.logger.info(j),O((0,y.hexToHsva)(j))}return U}(),prefixed:!0})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"H:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,N,{hue:w.h,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.h,callback:function(){function U(j,W){return P({h:W})}return U}(),max:360,unit:"\xB0"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"S:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,x,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.s,callback:function(){function U(j,W){return P({s:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"V:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,B,{color:w,onChange:P})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:w.v,callback:function(){function U(j,W){return P({v:W})}return U}(),unit:"%"})})]})}),(0,e.createComponentVNode)(2,o.Stack.Divider),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"R:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"r"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.r,callback:function(){function U(j,W){F.r=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"G:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"g"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.g,callback:function(){function U(j,W){F.g=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"25px",children:(0,e.createComponentVNode)(2,o.Box,{textColor:"label",children:"B:"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,L,{color:w,onChange:P,target:"b"})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,h,{value:F.b,callback:function(){function U(j,W){F.b=W,P((0,y.rgbaToHsva)(F))}return U}(),max:255})})]})})]})})]})}return T}(),h=function(A){var E=A.value,w=A.callback,O=A.min,M=O===void 0?0:O,P=A.max,F=P===void 0?100:P,R=A.unit;return(0,e.createComponentVNode)(2,o.NumberInput,{width:"70px",value:Math.round(E),step:1,minValue:M,maxValue:F,onChange:w,unit:R})},V=function(A){return"#"+A},v=r.HexColorInput=function(){function T(A){var E=A.prefixed,w=A.alpha,O=A.color,M=A.fluid,P=A.onChange,F=d(A,u),R=function(){function j(W){return W.replace(/([^0-9A-F]+)/gi,"").substring(0,w?8:6)}return j}(),U=function(){function j(W){return(0,y.validHex)(W,w)}return j}();return(0,e.normalizeProps)((0,e.createComponentVNode)(2,s,Object.assign({},F,{fluid:M,color:O,onChange:P,escape:R,format:E?V:void 0,validate:U})))}return T}(),s=r.ColorInput=function(T){function A(w){var O;return O=T.call(this)||this,O.props=void 0,O.state=void 0,O.handleInput=function(M){var P=O.props.escape(M.currentTarget.value);O.setState({localValue:P})},O.handleBlur=function(M){M.currentTarget&&(O.props.validate(M.currentTarget.value)?O.props.onChange(O.props.escape?O.props.escape(M.currentTarget.value):M.currentTarget.value):O.setState({localValue:O.props.escape(O.props.color)}))},O.props=w,O.state={localValue:O.props.escape(O.props.color)},O}f(A,T);var E=A.prototype;return E.componentDidUpdate=function(){function w(O,M){O.color!==this.props.color&&this.setState({localValue:this.props.escape(this.props.color)})}return w}(),E.render=function(){function w(){return(0,e.createComponentVNode)(2,o.Box,{className:(0,b.classes)(["Input",this.props.fluid&&"Input--fluid"]),children:[(0,e.createVNode)(1,"div","Input__baseline",".",16),(0,e.createVNode)(64,"input","Input__input",null,1,{value:this.props.format?this.props.format(this.state.localValue):this.state.localValue,spellCheck:"false",onInput:this.handleInput,onBlur:this.handleBlur})]})}return w}(),A}(e.Component),g=function(A){var E=A.hsva,w=A.onChange,O=function(R){w({s:R.left*100,v:100-R.top*100})},M=function(R){w({s:(0,k.clamp)(E.s+R.left*100,0,100),v:(0,k.clamp)(E.v-R.top*100,0,100)})},P={"background-color":(0,y.hsvaToHslString)({h:E.h,s:100,v:100,a:1})+" !important"};return(0,e.createVNode)(1,"div","react-colorful__saturation_value",(0,e.createComponentVNode)(2,S.Interactive,{onMove:O,onKey:M,"aria-label":"Color","aria-valuetext":"Saturation "+Math.round(E.s)+"%, Brightness "+Math.round(E.v)+"%",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation_value-pointer",top:1-E.v/100,left:E.s/100,color:(0,y.hsvaToHslString)(E)})}),2,{style:P})},N=function(A){var E=A.className,w=A.hue,O=A.onChange,M=function(U){O({h:360*U.left})},P=function(U){O({h:(0,k.clamp)(w+U.left*360,0,360)})},F=(0,b.classes)(["react-colorful__hue",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{onMove:M,onKey:P,"aria-label":"Hue","aria-valuenow":Math.round(w),"aria-valuemax":"360","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__hue-pointer",left:w/360,color:(0,y.hsvaToHslString)({h:w,s:100,v:100,a:1})})}),2)},x=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({s:100*U.left})},P=function(U){O({s:(0,k.clamp)(w.s+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__saturation",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:0,v:w.v,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:100,v:w.v,a:1})+")"},onMove:M,onKey:P,"aria-label":"Saturation","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__saturation-pointer",left:w.s/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},B=function(A){var E=A.className,w=A.color,O=A.onChange,M=function(U){O({v:100*U.left})},P=function(U){O({v:(0,k.clamp)(w.v+U.left*100,0,100)})},F=(0,b.classes)(["react-colorful__value",E]);return(0,e.createVNode)(1,"div",F,(0,e.createComponentVNode)(2,S.Interactive,{style:{background:"linear-gradient(to right, "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:0,a:1})+", "+(0,y.hsvaToHslString)({h:w.h,s:w.s,v:100,a:1})+")"},onMove:M,onKey:P,"aria-label":"Value","aria-valuenow":Math.round(w.s),"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__value-pointer",left:w.v/100,color:(0,y.hsvaToHslString)({h:w.h,s:w.s,v:w.v,a:1})})}),2)},L=function(A){var E=A.className,w=A.color,O=A.onChange,M=A.target,P=(0,y.hsvaToRgba)(w),F=function($){P[M]=$,O((0,y.rgbaToHsva)(P))},R=function($){F(255*$.left)},U=function($){F((0,k.clamp)(P[M]+$.left*255,0,255))},j=(0,b.classes)(["react-colorful__"+M,E]),W=M==="r"?"rgb("+Math.round(P.r)+",0,0)":M==="g"?"rgb(0,"+Math.round(P.g)+",0)":"rgb(0,0,"+Math.round(P.b)+")";return(0,e.createVNode)(1,"div",j,(0,e.createComponentVNode)(2,S.Interactive,{onMove:R,onKey:U,"aria-valuenow":P[M],"aria-valuemax":"100","aria-valuemin":"0",children:(0,e.createComponentVNode)(2,o.Pointer,{className:"react-colorful__"+M+"-pointer",left:P[M]/255,color:W})}),2)}},63818:function(I,r,n){"use strict";r.__esModule=!0,r.CommunicationsComputer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={1:function(){function m(){return(0,e.createComponentVNode)(2,b)}return m}(),2:function(){function m(){return(0,e.createComponentVNode)(2,u)}return m}(),3:function(){function m(){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,f)})})}return m}(),4:function(){function m(){return(0,e.createComponentVNode)(2,d)}return m}(),default:function(){function m(){return"\u041E\u0448\u0438\u0431\u043A\u0430. \u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0435 menu_state. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044F\u0436\u0438\u0442\u0435\u0441\u044C \u0441 \u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u041F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439 NT."}return m}()},k=function(i){return p[i]},y=r.CommunicationsComputer=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.menu_state;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,title:"\u041A\u043E\u043D\u0441\u043E\u043B\u044C \u0441\u0432\u044F\u0437\u0438",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),k(g)()]})})})}return m}(),S=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authenticated,N=s.noauthbutton,x=s.esc_section,B=s.esc_callable,L=s.esc_recallable,T=s.esc_status,A=s.authhead,E=s.is_ai,w=s.lastCallLoc,O=!1,M;return g?g===1?M="\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435":g===2?M="\u041A\u0430\u043F\u0438\u0442\u0430\u043D":g===3?M="\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F":g===4?(M="\u0417\u0430\u0449\u0438\u0449\u0451\u043D\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0426\u0435\u043D\u0442\u041A\u043E\u043C\u0430",O=!0):M="\u041E\u0428\u0418\u0411\u041A\u0410: \u0421\u043E\u043E\u0431\u0449\u0438\u0442\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u0431\u0430\u0433\u0435!":M="\u0412\u0445\u043E\u0434 \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D",(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0410\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:O&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043E\u0441\u0442\u0443\u043F",children:M})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:g?"sign-out-alt":"id-card",selected:g,disabled:N,content:g?"\u0412\u044B\u0439\u0442\u0438 ("+M+")":"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function P(){return v("auth")}return P}()})})})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:!!x&&(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u042D\u0432\u0430\u043A\u0443\u0430\u0446\u0438\u043E\u043D\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[!!T&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:T}),!!B&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"rocket",content:"\u0412\u044B\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A,onClick:function(){function P(){return v("callshuttle")}return P}()})}),!!L&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u0446\u0438\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0448\u0430\u0442\u0442\u043B",disabled:!A||E,onClick:function(){function P(){return v("cancelshuttle")}return P}()})}),!!w&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439 \u0432\u044B\u0437\u043E\u0432/\u043E\u0442\u0437\u044B\u0432 \u0438\u0437",children:w})]})})})],4)},b=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;return g?(0,e.createComponentVNode)(2,C):(0,e.createComponentVNode)(2,c)},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin,N=s.gamma_armory_location,x=s.admin_levels,B=s.authenticated,L=s.ert_allowed;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Section,{title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041E\u0444\u0438\u0446\u0435\u0440 \u0426\u0435\u043D\u0442\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:x,required_access:g,use_confirm:1})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",disabled:!g,onClick:function(){function T(){return v("send_to_cc_announcement_page")}return T}()}),B===4&&(0,e.createComponentVNode)(2,t.Button,{icon:"plus",content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",disabled:!g,onClick:function(){function T(){return v("make_other_announcement")}return T}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0411\u0420",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",disabled:!g,onClick:function(){function T(){return v("dispatch_ert")}return T}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:L,content:L?"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043D":"\u0412\u044B\u0437\u043E\u0432 \u041E\u0411\u0420 \u0437\u0430\u043F\u0440\u0435\u0449\u0451\u043D",tooltip:L?"\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u041E\u0411\u0420":"\u041E\u0411\u0420 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D",disabled:!g,onClick:function(){function T(){return v("toggle_ert_allowed")}return T}(),selected:null})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438",disabled:!g,onClick:function(){function T(){return v("send_nuke_codes")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:'\u041E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"biohazard",content:N?'\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"':'\u041E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u043E\u0440\u0443\u0436\u0435\u0439\u043D\u044B\u0439 \u0448\u0430\u0442\u0442\u043B "\u0413\u0430\u043C\u043C\u0430"',disabled:!g,onClick:function(){function T(){return v("move_gamma_armory")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0440\u0443\u0433\u043E\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"fax",content:"\u0424\u0430\u043A\u0441-\u043C\u0435\u043D\u0435\u0434\u0436\u0435\u0440",disabled:!g,onClick:function(){function T(){return v("view_fax")}return T}()})})]})}),(0,e.createComponentVNode)(2,t.Collapsible,{title:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0434\u0435\u0439\u0441\u0442\u0438\u0439, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0445 \u0434\u043B\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,c)})]})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.msg_cooldown,N=s.emagged,x=s.cc_cooldown,B=s.security_level_color,L=s.str_security_level,T=s.levels,A=s.authcapt,E=s.authhead,w=s.messages,O="\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442\u043D\u043E\u0435 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435";g>0&&(O+=" ("+g+"s)");var M=N?"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 [\u041D\u0415\u0418\u0417\u0412\u0415\u0421\u0422\u041D\u041E]":"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",P="\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u043A\u043E\u0434\u044B \u0430\u0443\u0442\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u0438";return x>0&&(M+=" ("+x+"s)",P+=" ("+x+"s)"),(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u0430\u043F\u0438\u0442\u0430\u043D"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",color:B,children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043C\u0435\u043D\u0438\u0442\u044C \u0443\u0440\u043E\u0432\u0435\u043D\u044C \u0443\u0433\u0440\u043E\u0437\u044B",children:(0,e.createComponentVNode)(2,l,{levels:T,required_access:A})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bullhorn",content:O,disabled:!A||g>0,onClick:function(){function F(){return v("announce")}return F}()})}),!!N&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",color:"red",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageSyndicate")}return F}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",content:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0440\u0435\u043B\u0435",disabled:!A,onClick:function(){function F(){return v("RestoreBackup")}return F}()})]})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",content:M,disabled:!A||x>0,onClick:function(){function F(){return v("MessageCentcomm")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042F\u0434\u0435\u0440\u043D\u0430\u044F \u0431\u043E\u0435\u0433\u043E\u043B\u043E\u0432\u043A\u0430",children:(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",content:P,disabled:!A||x>0,onClick:function(){function F(){return v("nukerequest")}return F}()})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:'\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0443\u0440\u043E\u0432\u043D\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 "\u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0435"',children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0438\u0441\u043F\u043B\u0435\u0438",children:(0,e.createComponentVNode)(2,t.Button,{icon:"tv",content:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0414\u0438\u0441\u043F\u043B\u0435\u0435\u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0430",disabled:!E,onClick:function(){function F(){return v("status")}return F}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0445\u043E\u0434\u044F\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"folder-open",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C ("+w.length+")",disabled:!E,onClick:function(){function F(){return v("messagelist")}return F}()})})]})})})],4)},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.stat_display,N=s.authhead,x=s.current_message_title,B=g.presets.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.name===g.type,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:T.id})}return A}()},T.name)}),L=g.alerts.map(function(T){return(0,e.createComponentVNode)(2,t.Button,{content:T.label,selected:T.alert===g.icon,disabled:!N,onClick:function(){function A(){return v("setstat",{statdisp:3,alert:T.alert})}return A}()},T.alert)});return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u043A\u0440\u0430\u043D\u044B \u0441\u0442\u0430\u0442\u0443\u0441\u0430",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function T(){return v("main")}return T}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u0435\u0441\u0435\u0442\u044B",children:B}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F",children:L}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_1,disabled:!N,onClick:function(){function T(){return v("setmsg1")}return T}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u0421\u0442\u0440\u043E\u043A\u0430 2",children:(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:g.line_2,disabled:!N,onClick:function(){function T(){return v("setmsg2")}return T}()})})]})})})},f=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.authhead,N=s.current_message_title,x=s.current_message,B=s.messages,L=s.security_level,T;if(N)T=(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:N,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u0441\u043F\u0438\u0441\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439",disabled:!g,onClick:function(){function E(){return v("messagelist")}return E}()}),children:(0,e.createComponentVNode)(2,t.Box,{children:x})})});else{var A=B.map(function(E){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:E.title,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"eye",content:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C",disabled:!g||N===E.title,onClick:function(){function w(){return v("messagelist",{msgid:E.id})}return w}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"times",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",disabled:!g,onClick:function(){function w(){return v("delmessage",{msgid:E.id})}return w}()})]},E.id)});T=(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function E(){return v("main")}return E}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:A})})}return(0,e.createComponentVNode)(2,t.Box,{children:T})},l=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=i.levels,N=i.required_access,x=i.use_confirm,B=s.security_level;return x?g.map(function(L){return(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)}):g.map(function(L){return(0,e.createComponentVNode)(2,t.Button,{icon:L.icon,content:L.name,disabled:!N||L.id===B,tooltip:L.tooltip,onClick:function(){function T(){return v("newalertlevel",{level:L.id})}return T}()},L.name)})},d=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.is_admin;if(!g)return v("main");var N=(0,a.useLocalState)(h,"subtitle",""),x=N[0],B=N[1],L=(0,a.useLocalState)(h,"text",""),T=L[0],A=L[1],E=(0,a.useLocalState)(h,"classified",0),w=E[0],O=E[1],M=(0,a.useLocalState)(h,"beepsound","Beep"),P=M[0],F=M[1];return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u0435 \u0426\u041A",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u041E\u0441\u043D\u043E\u0432\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",onClick:function(){function R(){return v("main")}return R}()}),children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0442\u0443\u0442.",fluid:!0,value:x,onChange:function(){function R(U,j){return B(j)}return R}(),mb:"5px"}),(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442 \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u044F,\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u043F\u0440\u0438\u043D\u0438\u043C\u0430\u0435\u0442\u0441\u044F.",rows:10,fluid:!0,multiline:1,value:T,onChange:function(){function R(U,j){return A(j)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:w,content:"\u0417\u0430\u0441\u0435\u043A\u0440\u0435\u0447\u0435\u043D\u043E",fluid:!0,m:"5px",tooltip:w?"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0441\u0432\u044F\u0437\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438":"\u041F\u0443\u0431\u043B\u0438\u0447\u043D\u043E \u043E\u0431\u044A\u044F\u0432\u0438\u0442\u044C",onClick:function(){function R(){return O(!w)}return R}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u043E\u0431\u044A\u044F\u0432\u043B\u0435\u043D\u0438\u0435",fluid:!0,icon:"paper-plane",center:!0,mt:"5px",textAlign:"center",onClick:function(){function R(){return v("make_cc_announcement",{subtitle:x,text:T,classified:w,beepsound:P})}return R}()})]})})}},21813:function(I,r,n){"use strict";r.__esModule=!0,r.Contractor=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(73379),k=n(98595);function y(V,v){V.prototype=Object.create(v.prototype),V.prototype.constructor=V,S(V,v)}function S(V,v){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,g){return s.__proto__=g,s},S(V,v)}var b={1:["ACTIVE","good"],2:["COMPLETED","good"],3:["FAILED","bad"]},C=["Recording biometric data...","Analyzing embedded syndicate info...","STATUS CONFIRMED","Contacting Syndicate database...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Awaiting response...","Response received, ack 4851234...","CONFIRM ACC "+Math.round(Math.random()*2e4),"Setting up private accounts...","CONTRACTOR ACCOUNT CREATED","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","Searching for available contracts...","CONTRACTS FOUND","WELCOME, AGENT"],c=r.Contractor=function(){function V(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B;x.unauthorized?B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:["ERROR: UNAUTHORIZED USER"],finishedTimeout:100,onFinished:function(){function E(){}return E}()})}):x.load_animation_completed?B=(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",mt:"0.5rem",children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",overflow:"hidden",children:x.page===1?(0,e.createComponentVNode)(2,l,{height:"100%"}):(0,e.createComponentVNode)(2,m,{height:"100%"})})],4):B=(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",backgroundColor:"rgba(0, 0, 0, 0.8)",children:(0,e.createComponentVNode)(2,i,{height:"100%",allMessages:C,finishedTimeout:3e3,onFinished:function(){function E(){return N("complete_load_animation")}return E}()})});var L=(0,t.useLocalState)(s,"viewingPhoto",""),T=L[0],A=L[1];return(0,e.createComponentVNode)(2,k.Window,{width:500,height:600,theme:"syndicate",children:[T&&(0,e.createComponentVNode)(2,h),(0,e.createComponentVNode)(2,k.Window.Content,{className:"Contractor",children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:B})})]})}return V}(),u=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.tc_available,L=x.tc_paid_out,T=x.completed_contracts,A=x.rep;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Summary",buttons:(0,e.createComponentVNode)(2,o.Box,{verticalAlign:"middle",mt:"0.25rem",children:[A," Rep"]})},v,{children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Available",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",children:[B," TC"]}),(0,e.createComponentVNode)(2,o.Button,{disabled:B<=0,content:"Claim",mx:"0.75rem",mb:"0",flexBasis:"content",onClick:function(){function E(){return N("claim")}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"TC Earned",children:[L," TC"]})]})}),(0,e.createComponentVNode)(2,o.Box,{flexBasis:"50%",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contracts Completed",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,o.Box,{height:"20px",lineHeight:"20px",display:"inline-block",children:T})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Contractor Status",verticalAlign:"middle",children:"ACTIVE"})]})})]})})))},f=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.page;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Tabs,Object.assign({},v,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===1,onClick:function(){function L(){return N("page",{page:1})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"suitcase"}),"Contracts"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:B===2,onClick:function(){function L(){return N("page",{page:2})}return L}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"shopping-cart"}),"Hub"]})]})))},l=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.contracts,L=x.contract_active,T=x.can_extract,A=!!L&&B.filter(function(P){return P.status===1})[0],E=A&&A.time_left>0,w=(0,t.useLocalState)(s,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Contracts",overflow:"auto",buttons:(0,e.createComponentVNode)(2,o.Button,{disabled:!T||E,icon:"parachute-box",content:["Call Extraction",E&&(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A.time_left,format:function(){function P(F,R){return" ("+R.substr(3)+")"}return P}()})],onClick:function(){function P(){return N("extract")}return P}()})},v,{children:B.slice().sort(function(P,F){return P.status===1?-1:F.status===1?1:P.status-F.status}).map(function(P){var F;return(0,e.createComponentVNode)(2,o.Section,{title:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",color:P.status===1&&"good",children:P.target_name}),(0,e.createComponentVNode)(2,o.Flex.Item,{basis:"content",children:P.has_photo&&(0,e.createComponentVNode)(2,o.Button,{icon:"camera",mb:"-0.5rem",ml:"0.5rem",onClick:function(){function R(){return M("target_photo_"+P.uid+".png")}return R}()})})]}),className:"Contractor__Contract",buttons:(0,e.createComponentVNode)(2,o.Box,{width:"100%",children:[!!b[P.status]&&(0,e.createComponentVNode)(2,o.Box,{color:b[P.status][1],display:"inline-block",mt:P.status!==1&&"0.125rem",mr:"0.25rem",lineHeight:"20px",children:b[P.status][0]}),P.status===1&&(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"ban",color:"bad",content:"Abort",ml:"0.5rem",onClick:function(){function R(){return N("abort")}return R}()})]}),children:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"2",mr:"0.5rem",children:[P.fluff_message,!!P.completed_time&&(0,e.createComponentVNode)(2,o.Box,{color:"good",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"check",mr:"0.5rem"}),"Contract completed at ",P.completed_time]}),!!P.dead_extraction&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",mt:"0.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"Telecrystals reward reduced drastically as the target was dead during extraction."]}),!!P.fail_reason&&(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Icon,{name:"times",mr:"0.5rem"}),"Contract failed: ",P.fail_reason]})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{flexBasis:"100%",children:[(0,e.createComponentVNode)(2,o.Flex,{mb:"0.5rem",color:"label",children:["Extraction Zone:\xA0",d(P)]}),(F=P.difficulties)==null?void 0:F.map(function(R,U){return(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!!L,content:R.name+" ("+R.reward+" TC)",onClick:function(){function j(){return N("activate",{uid:P.uid,difficulty:U+1})}return j}()},U)}),!!P.objective&&(0,e.createComponentVNode)(2,o.Box,{color:"white",bold:!0,children:[P.objective.extraction_name,(0,e.createVNode)(1,"br"),"(",(P.objective.rewards.tc||0)+" TC",",\xA0",(P.objective.rewards.credits||0)+" Credits",")"]})]})]})},P.uid)})})))},d=function(v){if(!(!v.objective||v.status>1)){var s=v.objective.locs.user_area_id,g=v.objective.locs.user_coords,N=v.objective.locs.target_area_id,x=v.objective.locs.target_coords,B=s===N;return(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,o.Icon,{name:B?"dot-circle-o":"arrow-alt-circle-right-o",color:B?"green":"yellow",rotation:B?null:-(0,a.rad2deg)(Math.atan2(x[1]-g[1],x[0]-g[0])),lineHeight:B?null:"0.85",size:"1.5"})})}},m=function(v,s){var g=(0,t.useBackend)(s),N=g.act,x=g.data,B=x.rep,L=x.buyables;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Available Purchases",overflow:"auto"},v,{children:L.map(function(T){return(0,e.createComponentVNode)(2,o.Section,{title:T.name,buttons:T.refundable&&(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Refund ("+T.cost+" Rep)",onClick:function(){function A(){return N("refund",{uid:T.uid})}return A}()}),children:[T.description,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:B-1&&(0,e.createComponentVNode)(2,o.Box,{as:"span",color:T.stock===0?"bad":"good",ml:"0.5rem",children:[T.stock," in stock"]})]},T.uid)})})))},i=function(V){function v(g){var N;return N=V.call(this,g)||this,N.timer=null,N.state={currentIndex:0,currentDisplay:[]},N}y(v,V);var s=v.prototype;return s.tick=function(){function g(){var N=this.props,x=this.state;if(x.currentIndex<=N.allMessages.length){this.setState(function(L){return{currentIndex:L.currentIndex+1}});var B=x.currentDisplay;B.push(N.allMessages[x.currentIndex])}else clearTimeout(this.timer),setTimeout(N.onFinished,N.finishedTimeout)}return g}(),s.componentDidMount=function(){function g(){var N=this,x=this.props.linesPerSecond,B=x===void 0?2.5:x;this.timer=setInterval(function(){return N.tick()},1e3/B)}return g}(),s.componentWillUnmount=function(){function g(){clearTimeout(this.timer)}return g}(),s.render=function(){function g(){return(0,e.createComponentVNode)(2,o.Box,{m:1,children:this.state.currentDisplay.map(function(N){return(0,e.createFragment)([N,(0,e.createVNode)(1,"br")],0,N)})})}return g}(),v}(e.Component),h=function(v,s){var g=(0,t.useLocalState)(s,"viewingPhoto",""),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Contractor__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:N}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function B(){return x("")}return B}()})]})}},54151:function(I,r,n){"use strict";r.__esModule=!0,r.ConveyorSwitch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ConveyorSwitch=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slowFactor,f=c.minSpeed,l=c.maxSpeed,d=c.oneWay,m=c.position;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lever position",children:m>0?"forward":m<0?"reverse":"neutral"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Allow reverse",children:(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:!d,onClick:function(){function i(){return C("toggleOneWay")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slowdown factor",children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-left",onClick:function(){function i(){return C("slowFactor",{value:u-.5})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-left",onClick:function(){function i(){return C("slowFactor",{value:u-.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Slider,{width:"100px",mx:"1px",value:u,fillValue:u,minValue:f,maxValue:l,step:.1,format:function(){function i(h){return h+"s."}return i}(),onChange:function(){function i(h,V){return C("slowFactor",{value:V})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-right",onClick:function(){function i(){return C("slowFactor",{value:u+.1})}return i}()})," "]}),(0,e.createComponentVNode)(2,t.Flex.Item,{mx:"1px",children:[" ",(0,e.createComponentVNode)(2,t.Button,{icon:"angle-double-right",onClick:function(){function i(){return C("slowFactor",{value:u+.5})}return i}()})," "]})]})})]})})})})}return k}()},73169:function(I,r,n){"use strict";r.__esModule=!0,r.CrewMonitor=void 0;var e=n(89005),a=n(88510),t=n(25328),o=n(72253),p=n(36036),k=n(36352),y=n(76910),S=n(98595),b=function(h,V){return h.dead?"\u041C\u0451\u0440\u0442\u0432":parseInt(h.health,10)<=V?"\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435":parseInt(h.stat,10)===1?"\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F":"\u0416\u0438\u0432"},C=function(h,V){return h.dead?"red":parseInt(h.health,10)<=V?"orange":parseInt(h.stat,10)===1?"blue":"green"},c=r.CrewMonitor=function(){function i(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=(0,o.useLocalState)(V,"tabIndex",g.IndexToggler),x=N[0],B=N[1],L=function(){function T(A){switch(A){case 0:return(0,e.createComponentVNode)(2,l);case 1:return(0,e.createComponentVNode)(2,d);case 2:return(0,e.createComponentVNode)(2,f);case 3:return(0,e.createComponentVNode)(2,m);default:return"\u0427\u0422\u041E-\u0422\u041E \u0422\u041E\u0427\u041D\u041E \u041D\u0415 \u0422\u0410\u041A!"}}return T}();return(0,e.createComponentVNode)(2,S.Window,{width:800,height:600,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,p.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,p.Tabs,{children:[g.isBS?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===0,onClick:function(){function T(){return B(0)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u041A\u043E\u043C\u0430\u043D\u0434\u043E\u0432\u0430\u043D\u0438\u0438"]},"ComDataView"):null,g.isBP?(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===1,onClick:function(){function T(){return B(1)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u0421\u043B\u0443\u0436\u0431\u0435 \u0411\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438"]},"SecDataView"):null,(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===2,onClick:function(){function T(){return B(2)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"table"})," \u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0431 \u042D\u043A\u0438\u043F\u0430\u0436\u0435"]},"DataView"),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:x===3,onClick:function(){function T(){return B(3)}return T}(),children:[(0,e.createComponentVNode)(2,p.Icon,{name:"map-marked-alt"})," \u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u041A\u0430\u0440\u0442\u044B"]},"MapView")]}),L(x)]})})})}return i}(),u=function(h){var V=h.crewData,v=h.context,s=(0,o.useBackend)(v),g=s.act,N=s.data,x=(0,a.sortBy)(function(E){return E.name})(V||[]),B=(0,o.useLocalState)(v,"search",""),L=B[0],T=B[1],A=(0,t.createSearch)(L,function(E){return E.name+"|"+E.assignment+"|"+E.area});return(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, \u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C \u0438\u043B\u0438 \u041B\u043E\u043A\u0430\u0446\u0438\u044E...",width:"100%",onInput:function(){function E(w,O){return T(O)}return E}()}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,p.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,p.Table.Cell,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"})]}),x.filter(A).map(function(E){return(0,e.createComponentVNode)(2,p.Table.Row,{bold:!!E.is_command,children:[(0,e.createComponentVNode)(2,k.TableCell,{children:[E.name," (",E.assignment,")"]}),(0,e.createComponentVNode)(2,k.TableCell,{children:[(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:C(E,N.critThreshold),children:b(E,N.critThreshold)}),E.sensor_type>=2?(0,e.createComponentVNode)(2,p.Box,{inline:!0,children:["(",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.oxy,children:E.oxy}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.toxin,children:E.tox}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.burn,children:E.fire}),"|",(0,e.createComponentVNode)(2,p.Box,{inline:!0,color:y.COLORS.damageType.brute,children:E.brute}),")"]}):null]}),(0,e.createComponentVNode)(2,k.TableCell,{children:E.sensor_type===3?N.isAI?(0,e.createComponentVNode)(2,p.Button,{fluid:!0,icon:"location-arrow",content:E.area+" ("+E.x+", "+E.y+")",onClick:function(){function w(){return g("track",{track:E.ref})}return w}()}):E.area+" ("+E.x+", "+E.y+")":"\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E"})]},E.ref)})]})]})},f=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},l=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_command})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},d=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.crewmembers.filter(function(x){return x.is_security})||[];return(0,e.createComponentVNode)(2,u,{crewData:N,context:V})},m=function(h,V){var v=(0,o.useBackend)(V),s=v.act,g=v.data,N=g.stationLevelNum,x=g.stationLevelName,B=(0,o.useLocalState)(V,"zoom",1),L=B[0],T=B[1],A=(0,o.useLocalState)(V,"z_current",N[0]),E=A[0],w=A[1],O=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?"square":"circle"},M=function(R){return R.is_command&&g.isBS||R.is_security&&g.isBP?10:6},P=function(R,U){return R.is_command&&g.isBS||R.is_security&&g.isBP?R.dead?"red":parseInt(R.health,10)<=U?"orange":parseInt(R.stat,10)===1?"blue":"violet":C(R,U)};return(0,e.createComponentVNode)(2,p.Box,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.createComponentVNode)(2,p.NanoMap,{onZoom:function(){function F(R){return T(R)}return F}(),zLevels:N,zNames:x,z_current:E,setZCurrent:w,children:g.crewmembers.filter(function(F){return F.sensor_type===3}).map(function(F){return(0,e.createComponentVNode)(2,p.NanoMap.Marker,{x:F.x,y:F.y,z:F.z,z_current:E,zoom:L,icon:O(F),size:M(F),tooltip:F.name+" ("+F.assignment+")",color:P(F,g.critThreshold),onClick:function(){function R(){g.isAI&&s("track",{track:F.ref})}return R}()},F.ref)})})})}},63987:function(I,r,n){"use strict";r.__esModule=!0,r.Cryo=void 0;var e=n(89005),a=n(41260),t=n(72253),o=n(36036),p=n(98595),k=[{label:"\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435",type:"oxyLoss"},{label:"\u0422\u043E\u043A\u0441\u0438\u043D\u044B",type:"toxLoss"},{label:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F",type:"bruteLoss"},{label:"\u041E\u0436\u043E\u0433\u0438",type:"fireLoss"}],y=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0421\u043C\u0435\u0440\u0442\u044C"]],S=r.Cryo=function(){function c(u,f){return(0,e.createComponentVNode)(2,p.Window,{width:520,height:490,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return c}(),b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isOperating,h=m.hasOccupant,V=m.occupant,v=V===void 0?[]:V,s=m.cellTemperature,g=m.cellTemperatureStatus,N=m.isBeakerLoaded,x=m.auto_eject_healthy,B=m.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:2,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",onClick:function(){function L(){return d("ejectOccupant")}return L}(),disabled:!h,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C"}),children:h?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:v.name||"\u0418\u043C\u044F \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:v.health,max:v.maxHealth,value:v.health/v.maxHealth,color:v.health>0?"good":"average",children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.health)})})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:y[v.stat][0],children:y[v.stat][1]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v.bodyTemperature)})," ","K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),k.map(function(L){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:L.label,children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:v[L.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:Math.round(v[L.type])})})},L.id)})]}):(0,e.createComponentVNode)(2,o.Stack,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack.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."]})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u0438\u043E\u043A\u0430\u043F\u0441\u0443\u043B\u0430",fill:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"eject",onClick:function(){function L(){return d("ejectBeaker")}return L}(),disabled:!N,children:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C."}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0438\u0442\u0430\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,o.Button,{icon:"power-off",onClick:function(){function L(){return d(i?"switchOff":"switchOn")}return L}(),selected:i,children:i?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",color:g,children:[(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:s})," K"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){function L(){return d(x?"auto_eject_healthy_off":"auto_eject_healthy_on")}return L}(),children:x?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0410\u0432\u0442\u043E\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u043C\u0451\u0440\u0442\u0432\u044B\u0445 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u043E\u0432",children:(0,e.createComponentVNode)(2,o.Button,{icon:B?"toggle-on":"toggle-off",selected:B,onClick:function(){function L(){return d(B?"auto_eject_dead_off":"auto_eject_dead_on")}return L}(),children:B?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B"})})]})})})]})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.isBeakerLoaded,h=m.beakerLabel,V=m.beakerVolume;return i?(0,e.createFragment)([h?"\xAB"+h+"\xBB":(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u0430\u043D\u0430"}),(0,e.createComponentVNode)(2,o.Box,{color:!V&&"bad",children:V?(0,e.createComponentVNode)(2,o.AnimatedNumber,{value:V,format:function(){function v(s){var g=Math.round(s),N=(0,a.declensionRu)(g,"\u041E\u0441\u0442\u0430\u043B\u0430\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u0438\u0441\u044C","\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C"),x=(0,a.declensionRu)(g,"\u0435\u0434\u0438\u043D\u0438\u0446\u0430","\u0435\u0434\u0438\u043D\u0438\u0446\u044B","\u0435\u0434\u0438\u043D\u0438\u0446");return N+" "+g+" "+x}return v}()}):"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430"})],0):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430"})}},86099:function(I,r,n){"use strict";r.__esModule=!0,r.CryopodConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=r.CryopodConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.account_name,d=f.allow_items;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Hello, "+(l||"[REDACTED]")+"!",children:"This automated cryogenic freezing unit will safely store your corporeal form until your next assignment."}),(0,e.createComponentVNode)(2,y),!!d&&(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.frozen_crew;return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Crew",children:l.length?(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(d,m){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:d.name,children:d.rank},m)})})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored crew!"})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.frozen_items,m=function(h){var V=h.toString();return V.startsWith("the ")&&(V=V.slice(4,V.length)),(0,p.toTitleCase)(V)};return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Stored Items",children:d.length?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:m(i.name),buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Drop",mr:1,onClick:function(){function h(){return f("one_item",{item:i.uid})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.Button,{content:"Drop All Items",color:"red",onClick:function(){function i(){return f("all_items")}return i}()})],4):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No stored items!"})})}},94848:function(I,r,n){"use strict";r.__esModule=!0,r.Customat=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=function(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=b.product,d=f.user,m=f.userMoney,i=f.vend_ready,h=l.price===0,V="ERROR!",v="";h?(V="FREE",v="arrow-circle-down"):(V=l.price,v="shopping-cart");var s=!i||l.stock===0||!h&&l.price>m;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createVNode)(1,"img",null,null,1,{src:"data:image/jpeg;base64,"+l.icon,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:l.stock<=0&&"bad"||"good",children:[l.stock," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:s,icon:v,content:V,textAlign:"left",onClick:function(){function g(){return u("vend",{Key:l.Key})}return g}()})})]})},y=r.Customat=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.guestNotice,d=f.userMoney,m=f.user,i=f.products,h=f.vend_ready,V=f.panel_open,v=f.speaker;return(0,e.createComponentVNode)(2,p.Window,{width:470,height:600,title:"Customat",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Section,{title:"User",children:m&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,m.name,0),", ",(0,e.createVNode)(1,"b",null,m.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[d,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:l})}),!!V&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:v?"check":"volume-mute",selected:v,content:"Speaker",textAlign:"left",onClick:function(){function s(){return u("toggle_voice",{})}return s}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:i.map(function(s){return(0,e.createComponentVNode)(2,k,{product:s,productStock:s.stock},s.name)})})})})]})})})}return S}()},12692:function(I,r,n){"use strict";r.__esModule=!0,r.DNAModifier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(3939),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["ui","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u0418","dna"],["se","\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0424","dna"],["buffer","\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445","syringe"],["rejuvenators","\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B","flask"]],S=[5,10,20,30,50],b=r.DNAModifier=function(){function s(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.irradiating,A=L.dnaBlockSize,E=L.occupant;N.dnaBlockSize=A,N.isDNAInvalid=!E.isViableSubject||!E.uniqueIdentity||!E.structuralEnzymes;var w;return T&&(w=(0,e.createComponentVNode)(2,V,{duration:T})),(0,e.createComponentVNode)(2,o.Window,{width:660,height:775,children:[(0,e.createComponentVNode)(2,p.ComplexModal),w,(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,C)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c)})]})})]})}return s}(),C=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.locked,A=L.hasOccupant,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{color:"label",inline:!0,mr:"0.5rem",children:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u044B\u0439 \u0437\u0430\u043C\u043E\u043A:"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A,selected:T,icon:T?"toggle-on":"toggle-off",content:T?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function w(){return B("toggleLock")}return w}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!A||T,icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0441\u0443\u0431\u044A\u0435\u043A\u0442",onClick:function(){function w(){return B("ejectOccupant")}return w}()})],4),children:A?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:E.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:E.minHealth,max:E.maxHealth,value:E.health/E.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[E.stat][0],children:k[E.stat][1]}),(0,e.createComponentVNode)(2,t.LabeledList.Divider)]})}),N.isDNAInvalid?(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D\u0435\u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0439 \u0441\u0443\u0431\u044A\u0435\u043A\u0442. \u041F\u0440\u043E\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0439 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E."]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0430\u0434\u0438\u0430\u0446\u0438\u043E\u043D\u043D\u043E\u0435 \u043F\u043E\u0440\u0430\u0436\u0435\u043D\u0438\u0435",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:"0",max:"100",value:E.radiationLevel/100,color:"average"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",children:L.occupant.uniqueEnzymes?L.occupant.uniqueEnzymes:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"exclamation-circle"}),"\xA0 \u041D/\u0414"]})})]})],0):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."})})},c=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedMenuKey,A=L.hasOccupant,E=L.occupant;if(A){if(N.isDNAInvalid)return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041C\u0430\u043D\u0438\u043F\u0443\u043B\u044F\u0446\u0438\u0438 \u0441\u043E \u0441\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043E\u0439 \u0414\u041D\u041A \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430 \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B."]})})})}else return(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),"\u041A\u0430\u043F\u0441\u0443\u043B\u0430 \u0414\u041D\u041A-\u043C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u0430 \u043F\u0443\u0441\u0442\u0430."]})})});var w;return T==="ui"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,l)],4):T==="se"?w=(0,e.createFragment)([(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l)],4):T==="buffer"?w=(0,e.createComponentVNode)(2,d):T==="rejuvenators"&&(w=(0,e.createComponentVNode)(2,h)),(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:y.map(function(O,M){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{icon:O[2],selected:T===O[0],onClick:function(){function P(){return B("selectMenuKey",{key:O[0]})}return P}(),children:O[1]},M)})}),w]})},u=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedUIBlock,A=L.selectedUISubBlock,E=L.selectedUITarget,w=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:w.uniqueIdentity,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectUIBlock"}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:15,stepPixelSize:"20",value:E,format:function(){function O(M){return M.toString(16).toUpperCase()}return O}(),ml:"0",onChange:function(){function O(M,P){return B("changeUITarget",{value:P})}return O}()})})}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",mt:"0.5rem",onClick:function(){function O(){return B("pulseUIRadiation")}return O}()})]})},f=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.selectedSEBlock,A=L.selectedSESubBlock,E=L.occupant;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0438\u0444\u0438\u043A\u0430\u0446\u0438\u044F \u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0445 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u043E\u0432",children:[(0,e.createComponentVNode)(2,v,{dnaString:E.structuralEnzymes,selectedBlock:T,selectedSubblock:A,blockSize:N.dnaBlockSize,action:"selectSEBlock"}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0431\u043B\u043E\u043A",onClick:function(){function w(){return B("pulseSERadiation")}return w}()})]})},l=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.radiationIntensity,A=L.radiationDuration;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0437\u043B\u0443\u0447\u0430\u0442\u0435\u043B\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0438",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041C\u043E\u0449\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:10,stepPixelSize:20,value:T,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationIntensity",{value:O})}return E}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Knob,{minValue:1,maxValue:20,stepPixelSize:10,unit:"s",value:A,popUpPosition:"right",ml:"0",onChange:function(){function E(w,O){return B("radiationDuration",{value:O})}return E}()})})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"radiation",content:"\u041E\u0431\u043B\u0443\u0447\u0438\u0442\u044C \u0440\u0430\u0434\u0438\u0430\u0446\u0438\u0435\u0439",tooltip:"\u041C\u0443\u0442\u0438\u0440\u0443\u0435\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u044B\u0439 \u0431\u043B\u043E\u043A, \u0423\u0418 \u0438\u043B\u0438 \u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430.",tooltipPosition:"top-start",mt:"0.5rem",onClick:function(){function E(){return B("pulseRadiation")}return E}()})]})},d=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.buffers,A=T.map(function(E,w){return(0,e.createComponentVNode)(2,m,{id:w+1,name:"\u042F\u0447\u0435\u0439\u043A\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 \u2116"+(w+1),buffer:E},w)});return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{height:"75%",mt:1,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u0443\u0444\u0435\u0440",children:A})}),(0,e.createComponentVNode)(2,t.Stack.Item,{height:"25%",children:(0,e.createComponentVNode)(2,i)})]})},m=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.id,A=g.name,E=g.buffer,w=L.isInjectorReady,O=A+(E.data?" - "+E.label:"");return(0,e.createComponentVNode)(2,t.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,t.Section,{title:O,mx:"0",lineHeight:"18px",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!E.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"clear",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data,icon:"pen",content:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C",onClick:function(){function M(){return B("bufferOption",{option:"changeLabel",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!E.data||!L.hasDisk,icon:"save",content:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",tooltip:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u044F\u0447\u0435\u0439\u043A\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443.",tooltipPosition:"bottom-start",onClick:function(){function M(){return B("bufferOption",{option:"saveDisk",id:T})}return M}()})],4),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0432 \u0431\u0443\u0444\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUI",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0423\u0418 \u0438 \u0423\u0424 \u0441\u0443\u0431\u044A\u0435\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveUIAndUE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-down",content:"\u0421\u0424 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"saveSE",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!L.hasDisk||!L.disk.data,icon:"arrow-circle-down",content:"\u0421 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"loadDisk",id:T})}return M}()})]}),!!E.data&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:E.owner||(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[E.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!E.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043D\u043D\u044B\u0445",children:[(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!w,icon:w?"syringe":"spinner",iconSpin:!w,content:"\u0418\u043D\u044A\u0435\u043A\u0442\u043E\u0440 \u0431\u043B\u043E\u043A\u0430",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"createInjector",id:T,block:1})}return M}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"user",content:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",mb:"0",onClick:function(){function M(){return B("bufferOption",{option:"transfer",id:T})}return M}()})]})],4)]}),!E.data&&(0,e.createComponentVNode)(2,t.Box,{color:"label",mt:"0.5rem",children:"\u0411\u0443\u0444\u0435\u0440 \u0434\u0430\u043D\u043D\u044B\u0445 \u043F\u0443\u0441\u0442."})]})})},i=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.hasDisk,A=L.disk;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0438\u0441\u043A\u0435\u0442\u0430",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button.Confirm,{disabled:!T||!A.data,icon:"trash",content:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",onClick:function(){function E(){return B("wipeDisk")}return E}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return B("ejectDisk")}return E}()})],4),children:T?A.data?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430",children:A.label?A.label:"\u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0443\u0431\u044A\u0435\u043A\u0442",children:A.owner?A.owner:(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0438\u043F \u0434\u0430\u043D\u043D\u044B\u0445",children:[A.type==="ui"?"\u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0418\u0434\u0435\u043D\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u043E\u0440\u044B":"\u0421\u0442\u0440\u0443\u043A\u0442\u0443\u0440\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B",!!A.ue&&" \u0438 \u0423\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0424\u0435\u0440\u043C\u0435\u043D\u0442\u044B"]})]}):(0,e.createComponentVNode)(2,t.Box,{color:"label",children:"\u0414\u0430\u043D\u043D\u044B\u0435 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):(0,e.createComponentVNode)(2,t.Box,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"save-o",size:"4"}),(0,e.createVNode)(1,"br"),"\u0414\u0438\u0441\u043A\u0435\u0442\u0430 \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430."]})})},h=function(g,N){var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=L.isBeakerLoaded,A=L.beakerVolume,E=L.beakerLabel;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B \u0438 \u0451\u043C\u043A\u043E\u0441\u0442\u0438",buttons:(0,e.createComponentVNode)(2,t.Button,{disabled:!T,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u0451\u043C\u043A\u043E\u0441\u0442\u044C",onClick:function(){function w(){return B("ejectBeaker")}return w}()}),children:T?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0432\u0435\u0441\u0442\u0438 \u0445\u0438\u043C\u0438\u043A\u0430\u0442\u044B",children:[S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Button,{disabled:w>A,icon:"syringe",content:w,onClick:function(){function M(){return B("injectRejuvenators",{amount:w})}return M}()},O)}),(0,e.createComponentVNode)(2,t.Button,{disabled:A<=0,icon:"syringe",content:"\u0412\u0441\u0435",onClick:function(){function w(){return B("injectRejuvenators",{amount:A})}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C",children:[(0,e.createComponentVNode)(2,t.Box,{mb:"0.5rem",children:E||"\u042D\u0442\u0438\u043A\u0435\u0442\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442"}),A?(0,e.createComponentVNode)(2,t.Box,{color:"good",children:["\u041E\u0441\u0442\u0430\u043B\u043E\u0441\u044C: ",A,"u"]}):(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"\u041F\u0443\u0441\u0442\u043E"})]})]}):(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"label",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"flask",size:5,color:"silver"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"h3",null,"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0432\u0441\u0442\u0430\u0432\u043B\u0435\u043D\u0430.",16)]})})})},V=function(g,N){return(0,e.createComponentVNode)(2,t.Dimmer,{textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"spinner",size:"5",spin:!0}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{color:"average",children:(0,e.createVNode)(1,"h1",null,[(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"}),(0,e.createTextVNode)("\xA0\u041E\u0431\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u0441\u0443\u0431\u044A\u0435\u043A\u0442\u0430\xA0"),(0,e.createComponentVNode)(2,t.Icon,{name:"radiation"})],4)}),(0,e.createComponentVNode)(2,t.Box,{color:"label",children:(0,e.createVNode)(1,"h3",null,[(0,e.createTextVNode)("\u0412 \u0442\u0435\u0447\u0435\u043D\u0438\u0438 "),g.duration,(0,e.createTextVNode)(" \u0441\u0435\u043A\u0443\u043D\u0434"),g.duration%10===1&&g.duration%100!==11?"\u044B":""],0)})]})},v=function(g,N){for(var x=(0,a.useBackend)(N),B=x.act,L=x.data,T=g.dnaString,A=g.selectedBlock,E=g.selectedSubblock,w=g.blockSize,O=g.action,M=T.split(""),P=0,F=[],R=function(){for(var W=U/w+1,K=[],$=function(){var le=ne+1;K.push((0,e.createComponentVNode)(2,t.Button,{selected:A===W&&E===le,content:M[U+ne],mb:"0",onClick:function(){function de(){return B(O,{block:W,subblock:le})}return de}()}))},ne=0;neh.spawnpoints?"red":"green",children:[h.total," \u0432\u044B\u0431\u0440\u0430\u043D\u043E, \u043F\u0440\u043E\u0442\u0438\u0432 ",h.spawnpoints," \u0442\u043E\u0447\u0435\u043A \u0441\u043F\u0430\u0432\u043D\u0430"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",children:(0,e.createComponentVNode)(2,t.Button,{icon:"ambulance",content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u041E\u0411\u0420",onClick:function(){function N(){return i("dispatch_ert",{silent:s})}return N}()})})]})})},c=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.ert_request_messages;return(0,e.createComponentVNode)(2,t.Section,{children:V&&V.length?V.map(function(v){return(0,e.createComponentVNode)(2,t.Section,{title:v.time,buttons:(0,e.createComponentVNode)(2,t.Button,{content:v.sender_real_name,onClick:function(){function s(){return i("view_player_panel",{uid:v.sender_uid})}return s}(),tooltip:"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C Player panel"}),children:v.message},(0,p.decodeHtmlEntities)(v.time))}):(0,e.createComponentVNode)(2,t.Box,{fluid:!0,italic:!0,textAlign:"center",children:"\u041D\u0435\u0442 \u0437\u0430\u043F\u0440\u043E\u0441\u043E\u0432 \u041E\u0411\u0420"})})},u=function(l,d){var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=(0,a.useLocalState)(d,"text",""),v=V[0],s=V[1];return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044C \u043F\u0440\u0438\u0447\u0438\u043D\u0443 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0438\u044F \u041E\u0411\u0420.\n\u041C\u043D\u043E\u0433\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u044B\u0439 \u0432\u0432\u043E\u0434 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D.",rows:10,fluid:!0,multiline:1,value:v,onChange:function(){function g(N,x){return s(x)}return g}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{content:"\u041E\u0442\u043A\u043B\u043E\u043D\u0438\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u041E\u0411\u0420",fluid:!0,icon:"times",center:!0,mt:"5px",textAlign:"center",onClick:function(){function g(){return i("deny_ert",{reason:v})}return g}()})]})}},82565:function(I,r,n){"use strict";r.__esModule=!0,r.Electropack=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Electropack=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.power,l=u.code,d=u.frequency,m=u.minFrequency,i=u.maxFrequency;return(0,e.createComponentVNode)(2,p.Window,{width:360,height:150,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:(0,e.createComponentVNode)(2,o.Button,{icon:f?"power-off":"times",content:f?"On":"Off",selected:f,onClick:function(){function h(){return c("power")}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"freq"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:m/10,maxValue:i/10,value:d/10,format:function(){function h(V){return(0,a.toFixed)(V,1)}return h}(),width:"80px",onChange:function(){function h(V,v){return c("freq",{freq:v})}return h}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Reset",onClick:function(){function h(){return c("reset",{reset:"code"})}return h}()}),children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onChange:function(){function h(V,v){return c("code",{code:v})}return h}()})})]})})})})}return y}()},36730:function(I,r,n){"use strict";r.__esModule=!0,r.EvolutionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.EvolutionMenu=function(){function S(b,C){return(0,e.createComponentVNode)(2,o.Window,{width:480,height:574,theme:"changeling",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.can_respec;return(0,e.createComponentVNode)(2,t.Section,{title:"Evolution Points",height:5.5,children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,color:"label",children:"Points remaining:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:.5,ml:2,bold:!0,color:"#1b945c",children:l}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{ml:2.5,disabled:!d,content:"Readapt",icon:"sync",onClick:function(){function m(){return u("readapt")}return m}()}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"By transforming a humanoid into a husk, we gain the ability to readapt our chosen evolutions.",tooltipPosition:"bottom",icon:"question-circle"})]})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.evo_points,d=f.ability_list,m=f.purchased_abilities,i=f.view_mode;return(0,e.createComponentVNode)(2,t.Section,{title:"Abilities",flexGrow:"1",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:i?"square-o":"check-square-o",selected:!i,content:"Compact",onClick:function(){function h(){return u("set_view_mode",{mode:0})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:i?"check-square-o":"square-o",selected:i,content:"Expanded",onClick:function(){function h(){return u("set_view_mode",{mode:1})}return h}()})],4),children:d.map(function(h,V){return(0,e.createComponentVNode)(2,t.Box,{p:.5,mx:-1,className:"candystripe",children:[(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{ml:.5,color:"#dedede",children:h.name}),m.includes(h.power_path)&&(0,e.createComponentVNode)(2,t.Flex.Item,{ml:2,bold:!0,color:"#1b945c",children:"(Purchased)"}),(0,e.createComponentVNode)(2,t.Flex.Item,{mr:3,textAlign:"right",grow:1,children:[(0,e.createComponentVNode)(2,t.Box,{as:"span",color:"label",children:["Cost:"," "]}),(0,e.createComponentVNode)(2,t.Box,{as:"span",bold:!0,color:"#1b945c",children:h.cost})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"right",children:(0,e.createComponentVNode)(2,t.Button,{mr:.5,disabled:h.cost>l||m.includes(h.power_path),content:"Evolve",onClick:function(){function v(){return u("purchase",{power_path:h.power_path})}return v}()})})]}),!!i&&(0,e.createComponentVNode)(2,t.Flex,{color:"#8a8a8a",my:1,ml:1.5,width:"95%",children:h.description+" "+h.helptext})]},V)})})}},17370:function(I,r,n){"use strict";r.__esModule=!0,r.ExosuitFabricator=void 0;var e=n(89005),a=n(35840),t=n(25328),o=n(72253),p=n(36036),k=n(73379),y=n(98595),S=["id","amount","lineDisplay","onClick"];function b(V,v){if(V==null)return{};var s={};for(var g in V)if({}.hasOwnProperty.call(V,g)){if(v.includes(g))continue;s[g]=V[g]}return s}var C=2e3,c={bananium:"clown",tranquillite:"mime"},u=r.ExosuitFabricator=function(){function V(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building;return(0,e.createComponentVNode)(2,y.Window,{width:950,height:625,children:(0,e.createComponentVNode)(2,y.Window.Content,{className:"Exofab",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,l)}),B&&(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,d)})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,f)}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,m)})]})})]})})})}return V}(),f=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.materials,L=x.capacity,T=Object.values(B).reduce(function(A,E){return A+E},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,title:"Materials",className:"Exofab__materials",buttons:(0,e.createComponentVNode)(2,p.Box,{color:"label",mt:"0.25rem",children:[(T/L*100).toPrecision(3),"% full"]}),children:["metal","glass","silver","gold","uranium","titanium","plasma","diamond","bluespace","bananium","tranquillite","plastic"].map(function(A){return(0,e.createComponentVNode)(2,i,{mt:-2,id:A,bold:A==="metal"||A==="glass",onClick:function(){function E(){return N("withdraw",{id:A})}return E}()},A)})})},l=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.curCategory,L=x.categories,T=x.designs,A=x.syncing,E=(0,o.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=(0,t.createSearch)(w,function(F){return F.name}),P=T.filter(M);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__designs",title:(0,e.createComponentVNode)(2,p.Dropdown,{className:"Exofab__dropdown",selected:B,options:L,onSelected:function(){function F(R){return N("category",{cat:R})}return F}()}),buttons:(0,e.createComponentVNode)(2,p.Box,{mt:"2px",children:[(0,e.createComponentVNode)(2,p.Button,{icon:"plus",content:"Queue all",onClick:function(){function F(){return N("queueall")}return F}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:A,iconSpin:A,icon:"sync-alt",content:A?"Synchronizing...":"Synchronize with R&D servers",onClick:function(){function F(){return N("sync")}return F}()})]}),children:[(0,e.createComponentVNode)(2,p.Input,{placeholder:"Search by name...",mb:"0.5rem",width:"100%",onInput:function(){function F(R,U){return O(U)}return F}()}),P.map(function(F){return(0,e.createComponentVNode)(2,h,{design:F},F.id)}),P.length===0&&(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"No designs found."})]})},d=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.building,L=x.buildStart,T=x.buildEnd,A=x.worldTime;return(0,e.createComponentVNode)(2,p.Section,{className:"Exofab__building",stretchContents:!0,children:(0,e.createComponentVNode)(2,p.ProgressBar.Countdown,{start:L,current:A,end:T,children:(0,e.createComponentVNode)(2,p.Stack,{children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Icon,{name:"cog",spin:!0})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:["Building ",B,"\xA0(",(0,e.createComponentVNode)(2,k.Countdown,{current:A,timeLeft:T-A,format:function(){function E(w,O){return O.substr(3)}return E}()}),")"]})]})})})},m=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=x.queue,L=x.processingQueue,T=Object.entries(x.queueDeficit).filter(function(E){return E[1]<0}),A=B.reduce(function(E,w){return E+w.time},0);return(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,className:"Exofab__queue",title:"Queue",buttons:(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,p.Button,{selected:L,icon:L?"toggle-on":"toggle-off",content:"Process",onClick:function(){function E(){return N("process")}return E}()}),(0,e.createComponentVNode)(2,p.Button,{disabled:B.length===0,icon:"eraser",content:"Clear",onClick:function(){function E(){return N("unqueueall")}return E}()})]}),children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:B.length===0?(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"The queue is empty."}):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--queue",grow:!0,overflow:"auto",children:B.map(function(E,w){return(0,e.createComponentVNode)(2,p.Box,{color:E.notEnough&&"bad",children:[w+1,". ",E.name,w>0&&(0,e.createComponentVNode)(2,p.Button,{icon:"arrow-up",onClick:function(){function O(){return N("queueswap",{from:w+1,to:w})}return O}()}),w0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--time",children:[(0,e.createComponentVNode)(2,p.Divider),"Processing time:",(0,e.createComponentVNode)(2,p.Icon,{name:"clock",mx:"0.5rem"}),(0,e.createComponentVNode)(2,p.Box,{inline:!0,bold:!0,children:new Date(A/10*1e3).toISOString().substr(14,5)})]}),Object.keys(T).length>0&&(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__queue--deficit",shrink:"0",children:[(0,e.createComponentVNode)(2,p.Divider),"Lacking materials to complete:",T.map(function(E){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:E[0],amount:-E[1],lineDisplay:!0})},E[0])})]})],0)})})},i=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.id,L=v.amount,T=v.lineDisplay,A=v.onClick,E=b(v,S),w=x.materials[B]||0,O=L||w;if(!(O<=0&&!(B==="metal"||B==="glass"))){var M=L&&L>w;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,p.Stack,Object.assign({align:"center",className:(0,a.classes)(["Exofab__material",T&&"Exofab__material--line"])},E,{children:T?(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{className:(0,a.classes)(["materials32x32",B])}),(0,e.createComponentVNode)(2,p.Stack.Item,{className:"Exofab__material--amount",color:M&&"bad",ml:0,mr:1,children:O.toLocaleString("en-US")})],4):(0,e.createFragment)([(0,e.createComponentVNode)(2,p.Stack.Item,{basis:"content",children:(0,e.createComponentVNode)(2,p.Button,{width:"85%",color:"transparent",onClick:A,children:(0,e.createComponentVNode)(2,p.Box,{mt:1,className:(0,a.classes)(["materials32x32",B])})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:"1",children:[(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--name",children:B}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__material--amount",children:[O.toLocaleString("en-US")," cm\xB3 (",Math.round(O/C*10)/10," ","sheets)"]})]})],4)})))}},h=function(v,s){var g=(0,o.useBackend)(s),N=g.act,x=g.data,B=v.design;return(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design",children:[(0,e.createComponentVNode)(2,p.Button,{disabled:B.notEnough||x.building,icon:"cog",content:B.name,onClick:function(){function L(){return N("build",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Button,{icon:"plus-circle",onClick:function(){function L(){return N("queue",{id:B.id})}return L}()}),(0,e.createComponentVNode)(2,p.Box,{className:"Exofab__design--cost",children:Object.entries(B.cost).map(function(L){return(0,e.createComponentVNode)(2,p.Box,{children:(0,e.createComponentVNode)(2,i,{id:L[0],amount:L[1],lineDisplay:!0})},L[0])})}),(0,e.createComponentVNode)(2,p.Stack,{className:"Exofab__design--time",children:(0,e.createComponentVNode)(2,p.Stack.Item,{children:[(0,e.createComponentVNode)(2,p.Icon,{name:"clock"}),B.time>0?(0,e.createFragment)([B.time/10,(0,e.createTextVNode)(" seconds")],0):"Instant"]})})]})}},97086:function(I,r,n){"use strict";r.__esModule=!0,r.ExternalAirlockController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=0,k=1013,y=function(C){var c="good",u=80,f=95,l=110,d=120;return Cl?c="average":C>d&&(c="bad"),c},S=r.ExternalAirlockController=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.chamber_pressure,m=l.exterior_status,i=l.interior_status,h=l.processing;return(0,e.createComponentVNode)(2,o.Window,{width:470,height:290,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Information",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Chamber Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:y(d),value:d,minValue:p,maxValue:k,children:[d," kPa"]})})})}),(0,e.createComponentVNode)(2,t.Section,{title:"Actions",children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Exterior",icon:"arrow-circle-left",disabled:h,onClick:function(){function V(){return f("cycle_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Cycle to Interior",icon:"arrow-circle-right",disabled:h,onClick:function(){function V(){return f("cycle_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Force Exterior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_ext")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Force Interior Door",icon:"exclamation-triangle",color:i==="open"?"red":h?"yellow":null,onClick:function(){function V(){return f("force_int")}return V}()})]}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Abort",icon:"ban",color:"red",disabled:!h,onClick:function(){function V(){return f("abort")}return V}()})})]})]})})}return b}()},96142:function(I,r,n){"use strict";r.__esModule=!0,r.FaxMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.FaxMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return(0,e.createComponentVNode)(2,o.Window,{width:540,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID Card",children:(0,e.createComponentVNode)(2,t.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 u(){return C("scan")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorize",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authenticated?"sign-out-alt":"id-card",selected:c.authenticated,disabled:!c.scan_name&&!c.authenticated,content:c.authenticated?"Log Out":"Log In",onClick:function(){function u(){return C("auth")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fax Menu",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network",children:c.network}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Document",children:[(0,e.createComponentVNode)(2,t.Button,{icon:c.paper?"eject":"paperclip",disabled:!c.authenticated&&!c.paper,content:c.paper?c.paper:"-----",onClick:function(){function u(){return C("paper")}return u}()}),!!c.paper&&(0,e.createComponentVNode)(2,t.Button,{icon:"pencil-alt",content:"Rename",onClick:function(){function u(){return C("rename")}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sending To",children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:c.destination?c.destination:"-----",disabled:!c.authenticated,onClick:function(){function u(){return C("dept")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Action",children:(0,e.createComponentVNode)(2,t.Button,{icon:"envelope",content:c.sendError?c.sendError:"Send",disabled:!c.paper||!c.destination||!c.authenticated||c.sendError,onClick:function(){function u(){return C("send")}return u}()})})]})})]})})}return k}()},83767:function(I,r,n){"use strict";r.__esModule=!0,r.FloorPainter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=b.icon_state,d=b.direction,m=b.isSelected,i=b.onSelect;return(0,e.createComponentVNode)(2,t.DmIcon,{icon:f.icon,icon_state:l,direction:d,onClick:i,style:{"border-style":m&&"solid"||"none","border-width":"2px","border-color":"orange",padding:m&&"0px"||"2px"}})},k={NORTH:1,SOUTH:2,EAST:4,WEST:8},y=r.FloorPainter=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.availableStyles,d=f.selectedStyle,m=f.selectedDir;return(0,e.createComponentVNode)(2,o.Window,{width:405,height:475,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Decal setup",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-left",onClick:function(){function i(){return u("cycle_style",{offset:-1})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Dropdown,{options:l,selected:d,width:"150px",height:"20px",ml:"2px",mr:"2px",nochevron:!0,onSelected:function(){function i(h){return u("select_style",{style:h})}return i}()})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",onClick:function(){function i(){return u("cycle_style",{offset:1})}return i}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",mb:"5px",children:(0,e.createComponentVNode)(2,t.Flex,{overflowY:"auto",maxHeight:"239px",wrap:"wrap",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,p,{icon_state:i,isSelected:d===i,onSelect:function(){function h(){return u("select_style",{style:i})}return h}()})},i)})})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Direction",children:(0,e.createComponentVNode)(2,t.Table,{style:{display:"inline"},children:[k.NORTH,null,k.SOUTH].map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[i+k.WEST,i,i+k.EAST].map(function(h){return(0,e.createComponentVNode)(2,t.Table.Cell,{style:{"vertical-align":"middle","text-align":"center"},children:h===null?(0,e.createComponentVNode)(2,t.Icon,{name:"arrows-alt",size:3}):(0,e.createComponentVNode)(2,p,{icon_state:d,direction:h,isSelected:h===m,onSelect:function(){function V(){return u("select_direction",{direction:h})}return V}()})},h)})},i)})})})})]})})})}return S}()},53424:function(I,r,n){"use strict";r.__esModule=!0,r.GPS=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=function(l){return l?"("+l.join(", ")+")":"ERROR"},y=function(l,d,m){if(!(!l||!d)){if(l[2]!==d[2]||m!==1)return null;var i=Math.atan2(d[1]-l[1],d[0]-l[0]),h=Math.sqrt(Math.pow(d[1]-l[1],2)+Math.pow(d[0]-l[0],2));return{angle:(0,a.rad2deg)(i),distance:h}}},S=r.GPS=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.emped,V=i.active,v=i.area,s=i.position,g=i.saved;return(0,e.createComponentVNode)(2,p.Window,{width:450,height:700,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",children:h?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,b,{emp:!0})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{children:(0,e.createComponentVNode)(2,C)}),V?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{area:v,position:s})}),g&&(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,c,{title:"Saved Position",position:g})}),(0,e.createComponentVNode)(2,o.Flex.Item,{mt:"0.5rem",grow:"1",basis:"0",children:(0,e.createComponentVNode)(2,u,{height:"100%"})})],0):(0,e.createComponentVNode)(2,b)],0)})})})}return f}(),b=function(l,d){var m=l.emp;return(0,e.createComponentVNode)(2,o.Section,{mt:"0.5rem",width:"100%",height:"100%",stretchContents:!0,children:(0,e.createComponentVNode)(2,o.Box,{width:"100%",height:"100%",color:"label",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:m?"ban":"power-off",mb:"0.5rem",size:"5"}),(0,e.createVNode)(1,"br"),m?"ERROR: Device temporarily lost signal.":"Device is disabled."]})})})})},C=function(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.active,v=h.tag,s=h.same_z,g=(0,t.useLocalState)(d,"newTag",v),N=g[0],x=g[1];return(0,e.createComponentVNode)(2,o.Section,{title:"Settings",buttons:(0,e.createComponentVNode)(2,o.Button,{selected:V,icon:V?"toggle-on":"toggle-off",content:V?"On":"Off",onClick:function(){function B(){return i("toggle")}return B}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,o.Input,{width:"5rem",value:v,onEnter:function(){function B(){return i("tag",{newtag:N})}return B}(),onInput:function(){function B(L,T){return x(T)}return B}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:v===N,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function B(){return i("tag",{newtag:N})}return B}(),children:(0,e.createComponentVNode)(2,o.Icon,{name:"pen"})})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Range",children:(0,e.createComponentVNode)(2,o.Button,{selected:!s,icon:s?"compress":"expand",content:s?"Local Sector":"Global",onClick:function(){function B(){return i("same_z")}return B}()})})]})})},c=function(l,d){var m=l.title,i=l.area,h=l.position;return(0,e.createComponentVNode)(2,o.Section,{title:m||"Position",children:(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.5rem",children:[i&&(0,e.createFragment)([i,(0,e.createVNode)(1,"br")],0),k(h)]})})},u=function(l,d){var m=(0,t.useBackend)(d),i=m.data,h=i.position,V=i.signals,v=i.upgraded;return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({title:"Signals",overflow:"auto"},l,{children:(0,e.createComponentVNode)(2,o.Table,{children:V.map(function(s){return Object.assign({},s,y(h,s.position,v))}).map(function(s,g){return(0,e.createComponentVNode)(2,o.Table.Row,{backgroundColor:g%2===0&&"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{width:"30%",verticalAlign:"middle",color:"label",p:"0.25rem",bold:!0,children:s.tag}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",color:"grey",children:s.area}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",collapsing:!0,children:s.distance!==void 0&&(0,e.createComponentVNode)(2,o.Box,{opacity:Math.max(1-Math.min(s.distance,100)/100,.5),children:[(0,e.createComponentVNode)(2,o.Icon,{name:s.distance>0?"arrow-right":"circle",rotation:-s.angle}),"\xA0",Math.floor(s.distance)+"m"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{verticalAlign:"middle",pr:"0.25rem",collapsing:!0,children:k(s.position)})]},g)})})})))}},68703:function(I,r,n){"use strict";r.__esModule=!0,r.GasAnalyzerHistory=r.GasAnalyzerContent=r.GasAnalyzer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasAnalyzerContent=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.gasmixes,d=f.autoUpdating;return(0,e.createComponentVNode)(2,t.Section,{title:l[0].name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"unlock":"lock",onClick:function(){function m(){return u("autoscantoggle")}return m}(),tooltip:d?"Auto-Update Enabled":"Auto-Update Disabled",fluid:!0,textAlign:"center",selected:d}),children:l[0].total_moles?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Total Moles",children:(l[0].total_moles?l[0].total_moles:"-")+" mol"}),l[0].oxygen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:l[0].oxygen.toFixed(2)+" mol ("+(l[0].oxygen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].nitrogen?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:l[0].nitrogen.toFixed(2)+" mol ("+(l[0].nitrogen/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].carbon_dioxide?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:l[0].carbon_dioxide.toFixed(2)+" mol ("+(l[0].carbon_dioxide/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].toxins?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:l[0].toxins.toFixed(2)+" mol ("+(l[0].toxins/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].sleeping_agent?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrous Oxide",children:l[0].sleeping_agent.toFixed(2)+" mol ("+(l[0].sleeping_agent/l[0].total_moles).toFixed(2)*100+" %)"}):"",l[0].agent_b?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Agent B",children:l[0].agent_b.toFixed(2)+" mol ("+(l[0].agent_b/l[0].total_moles).toFixed(2)*100+" %)"}):"",(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(l[0].total_moles?(l[0].temperature-273.15).toFixed(2):"-")+" \xB0C ("+(l[0].total_moles?l[0].temperature.toFixed(2):"-")+" K)"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Volume",children:(l[0].total_moles?l[0].volume:"-")+" L"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(l[0].total_moles?l[0].pressure.toFixed(2):"-")+" kPa"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Heat Capacity",children:l[0].heat_capacity+" / K"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Thermal Energy",children:l[0].thermal_energy})]}):(0,e.createComponentVNode)(2,t.Box,{nowrap:!0,italic:!0,mb:"10px",children:"No Gas Detected!"})},l[0])}return S}(),k=r.GasAnalyzerHistory=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.historyGasmixes,d=f.historyViewMode,m=f.historyIndex;return(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Scan History",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"trash",tooltip:"Clear History",onClick:function(){function i(){return u("clearhistory")}return i}(),textAlign:"center",disabled:l.length===0}),children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mode",children:(0,e.createComponentVNode)(2,t.Flex,{inline:!0,width:"50%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"kPa",onClick:function(){function i(){return u("modekpa")}return i}(),textAlign:"center",selected:d==="kpa"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"mol",onClick:function(){function i(){return u("modemol")}return i}(),textAlign:"center",selected:d==="mol"})})]})}),(0,e.createComponentVNode)(2,t.LabeledList,{children:l.map(function(i,h){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:h+1+". "+(d==="mol"?i[0].total_moles.toFixed(2):i[0].pressure.toFixed(2)),onClick:function(){function V(){return u("input",{target:h+1})}return V}(),textAlign:"left",selected:h+1===m,fluid:!0})},i[0])})})]})}return S}(),y=r.GasAnalyzer=function(){function S(b,C){var c={float:"left",width:"67%"},u={float:"right",width:"33%"};return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{grow:!0,children:(0,e.createComponentVNode)(2,p)}),2,{style:c}),(0,e.createVNode)(1,"div",null,(0,e.createComponentVNode)(2,t.Section,{width:"160px",children:(0,e.createComponentVNode)(2,k)}),2,{style:u})]})})}return S}()},27546:function(I,r,n){"use strict";r.__esModule=!0,r.GasFreezer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GasFreezer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.on,f=c.pressure,l=c.temperature,d=c.temperatureCelsius,m=c.min,i=c.max,h=c.target,V=c.targetCelsius,v=(l-m)/(i-m);return(0,e.createComponentVNode)(2,o.Window,{width:560,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:u?"power-off":"times",content:u?"\u0412\u043A\u043B":"\u0412\u044B\u043A\u043B",selected:u,onClick:function(){function s(){return C("power")}return s}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0414\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[f," \u043A\u041F\u0430"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:v,ranges:{blue:[-1/0,.5],red:[.5,1/0]},children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:[v<.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"blue",ml:1,children:[l," \xB0K (",d," \xB0C)"]}),v>=.5&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:"red",ml:1,children:[l," \xB0K (",d," \xB0C)"]})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0435\u043B\u0435\u0432\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"65%",justify:"end",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:(h-m)/(i-m),children:"\xA0"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"35%",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:[h," \xB0K (",V," \xB0C)"]})})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0434\u0430\u0442\u044C \u0446\u0435\u043B\u0435\u0432\u0443\u044E \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0443",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",title:"\u041C\u0438\u043D\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:m})}return s}()}),(0,e.createComponentVNode)(2,t.NumberInput,{value:Math.round(h),unit:"\xB0K",minValue:Math.round(m),maxValue:Math.round(i),step:5,stepPixelSize:3,onDrag:function(){function s(g,N){return C("temp",{temp:N})}return s}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",title:"\u041C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430",onClick:function(){function s(){return C("temp",{temp:i})}return s}()})]})]})})})})}return k}()},89124:function(I,r,n){"use strict";r.__esModule=!0,r.GeneModder=void 0;var e=n(89005),a=n(72253),t=n(35840),o=n(36036),p=n(3939),k=n(98595),y=r.GeneModder=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.has_seed;return(0,e.createComponentVNode)(2,k.Window,{width:500,height:650,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,p.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),v===0?(0,e.createComponentVNode)(2,b):(0,e.createComponentVNode)(2,S)]})})})}return d}(),S=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk;return(0,e.createComponentVNode)(2,o.Section,{title:"Genes",fill:!0,scrollable:!0,buttons:(0,e.createComponentVNode)(2,o.Button,{content:"Insert Gene from Disk",disabled:!s||!s.can_insert||s.is_core,icon:"arrow-circle-down",onClick:function(){function g(){return V("insert")}return g}()}),children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})},b=function(m,i){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,height:"85%",children:(0,e.createComponentVNode)(2,o.Stack,{height:"100%",children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:"1",textAlign:"center",align:"center",color:"green",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"leaf",size:5,mb:"10px"}),(0,e.createVNode)(1,"br"),"The plant DNA manipulator is missing a seed."]})})})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.has_seed,g=v.seed,N=v.has_disk,x=v.disk,B,L;return s?B=(0,e.createComponentVNode)(2,o.Stack.Item,{mb:"-6px",mt:"-4px",children:[(0,e.createVNode)(1,"img",(0,t.classes)(["seeds32x32",g.image]),null,1,{style:{"vertical-align":"middle",width:"32px",margin:"-1px","margin-left":"-11px"}}),(0,e.createComponentVNode)(2,o.Button,{content:g.name,onClick:function(){function T(){return V("eject_seed")}return T}()}),(0,e.createComponentVNode)(2,o.Button,{ml:"3px",icon:"pen",tooltip:"Name Variant",onClick:function(){function T(){return V("variant_name")}return T}()})]}):B=(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:"None",onClick:function(){function T(){return V("eject_seed")}return T}()})}),N?L=x.name:L="None",(0,e.createComponentVNode)(2,o.Section,{title:"Storage",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Plant Sample",children:B}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Data Disk",children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:3.3,content:L,onClick:function(){function T(){return V("eject_disk")}return T}()})})})]})})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.act,v=h.data,s=v.disk,g=v.core_genes;return(0,e.createComponentVNode)(2,o.Collapsible,{title:"Core Genes",open:!0,children:[g.map(function(N){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:N.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(s!=null&&s.can_extract),icon:"save",onClick:function(){function x(){return V("extract",{id:N.id})}return x}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace",disabled:!N.is_type||!s.can_insert,icon:"arrow-circle-down",onClick:function(){function x(){return V("replace",{id:N.id})}return x}()})})]},N)})," ",(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Replace All",disabled:!(s!=null&&s.is_bulk_core),icon:"arrow-circle-down",onClick:function(){function N(){return V("bulk_replace_core")}return N}()})})})]},"Core Genes")},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.reagent_genes,s=V.has_reagent;return(0,e.createComponentVNode)(2,l,{title:"Reagent Genes",gene_set:v,do_we_show:s})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.trait_genes,s=V.has_trait;return(0,e.createComponentVNode)(2,l,{title:"Trait Genes",gene_set:v,do_we_show:s})},l=function(m,i){var h=m.title,V=m.gene_set,v=m.do_we_show,s=(0,a.useBackend)(i),g=s.act,N=s.data,x=N.disk;return(0,e.createComponentVNode)(2,o.Collapsible,{title:h,open:!0,children:v?V.map(function(B){return(0,e.createComponentVNode)(2,o.Stack,{py:"2px",className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{width:"100%",ml:"2px",children:B.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Extract",disabled:!(x!=null&&x.can_extract),icon:"save",onClick:function(){function L(){return g("extract",{id:B.id})}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"Remove",icon:"times",onClick:function(){function L(){return g("remove",{id:B.id})}return L}()})})]},B)}):(0,e.createComponentVNode)(2,o.Stack.Item,{children:"No Genes Detected"})},h)}},73053:function(I,r,n){"use strict";r.__esModule=!0,r.GenericCrewManifest=void 0;var e=n(89005),a=n(36036),t=n(98595),o=n(41874),p=r.GenericCrewManifest=function(){function k(y,S){return(0,e.createComponentVNode)(2,t.Window,{width:588,height:510,theme:"nologo",children:(0,e.createComponentVNode)(2,t.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,a.Section,{noTopPadding:!0,children:(0,e.createComponentVNode)(2,o.CrewManifest)})})})}return k}()},42914:function(I,r,n){"use strict";r.__esModule=!0,r.GhostHudPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GhostHudPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.security,f=c.medical,l=c.diagnostic,d=c.ahud;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:207,theme:"nologo",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,k,{label:"Medical",type:"medical",is_active:f}),(0,e.createComponentVNode)(2,k,{label:"Security",type:"security",is_active:u}),(0,e.createComponentVNode)(2,k,{label:"Diagnostic",type:"diagnostic",is_active:l}),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,k,{label:"Antag HUD",is_active:d,act_on:"ahud_on",act_off:"ahud_off"})]})})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=S.label,f=S.type,l=f===void 0?null:f,d=S.is_active,m=S.act_on,i=m===void 0?"hud_on":m,h=S.act_off,V=h===void 0?"hud_off":h;return(0,e.createComponentVNode)(2,t.Flex,{pt:.3,color:"label",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{pl:.5,align:"center",width:"80%",children:u}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{mr:.6,content:d?"On":"Off",icon:d?"toggle-on":"toggle-off",selected:d,onClick:function(){function v(){return c(d?V:i,{hud_type:l})}return v}()})})]})}},25825:function(I,r,n){"use strict";r.__esModule=!0,r.GlandDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.GlandDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.glands,f=u===void 0?[]:u;return(0,e.createComponentVNode)(2,o.Window,{width:300,height:338,theme:"abductor",children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(l){return(0,e.createComponentVNode)(2,t.Button,{width:"60px",height:"60px",m:.75,textAlign:"center",fontSize:"17px",lineHeight:"55px",icon:"eject",backgroundColor:l.color,content:l.amount||"0",disabled:!l.amount,onClick:function(){function d(){return C("dispense",{gland_id:l.id})}return d}()},l.id)})})})})}return k}()},67834:function(I,r,n){"use strict";r.__esModule=!0,r.HandheldChemDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=[1,5,10,20,30,50],k=null,y=r.HandheldChemDispenser=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:450,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b)]})})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.amount,i=d.energy,h=d.maxEnergy,V=d.mode;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u042D\u043D\u0435\u0440\u0433\u0438\u044F",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:i,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[i," / ",h," \u0415\u0434\u0438\u043D\u0438\u0446"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0431\u044A\u0451\u043C \u0441\u0438\u043D\u0442\u0435\u0437\u0430",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{children:p.map(function(v,s){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"15%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cog",selected:m===v,content:v,onClick:function(){function g(){return l("amount",{amount:v})}return g}()})},s)})})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0420\u0435\u0436\u0438\u043C",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{justify:"space-between",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="dispense",content:"\u0421\u0438\u043D\u0442\u0435\u0437",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"dispense"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="remove",content:"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"remove"})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",selected:V==="isolate",content:"\u0418\u0437\u043E\u043B\u044F\u0446\u0438\u044F",m:"0",width:"32%",onClick:function(){function v(){return l("mode",{mode:"isolate"})}return v}()})]})})]})})})},b=function(c,u){for(var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.chemicals,i=m===void 0?[]:m,h=d.current_reagent,V=[],v=0;v<(i.length+1)%3;v++)V.push(!0);return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,height:"18%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:d.glass?"\u0412\u044B\u0431\u043E\u0440 \u043D\u0430\u043F\u0438\u0442\u043A\u0430":"\u0412\u044B\u0431\u043E\u0440 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",children:[i.map(function(s,g){return(0,e.createComponentVNode)(2,t.Button,{width:"32%",icon:"arrow-circle-down",overflow:"hidden",textOverflow:"ellipsis",selected:h===s.id,content:s.title,style:{"margin-left":"2px"},onClick:function(){function N(){return l("dispense",{reagent:s.id})}return N}()},g)}),V.map(function(s,g){return(0,e.createComponentVNode)(2,t.Stack.Item,{grow:"1",basis:"25%"},g)})]})})}},75926:function(I,r,n){"use strict";r.__esModule=!0,r.ImplantPad=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ImplantPad=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.implant,f=c.contains_case,l=c.tag,d=(0,a.useLocalState)(S,"newTag",l),m=d[0],i=d[1];return(0,e.createComponentVNode)(2,o.Window,{width:410,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Bio-chip Mini-Computer",buttons:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Eject Case",icon:"eject",disabled:!f,onClick:function(){function h(){return C("eject_case")}return h}()})}),children:u&&f?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{bold:!0,mb:2,children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:u.icon,icon_state:u.icon_state,ml:0,mr:2,style:{"vertical-align":"middle",width:"32px"}}),u.name]}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Life",children:u.life}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Notes",children:u.notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Function",children:u.function}),!!l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tag",children:[(0,e.createComponentVNode)(2,t.Input,{width:"5.5rem",value:l,onEnter:function(){function h(){return C("tag",{newtag:m})}return h}(),onInput:function(){function h(V,v){return i(v)}return h}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:l===m,width:"20px",mb:"0",ml:"0.25rem",onClick:function(){function h(){return C("tag",{newtag:m})}return h}(),children:(0,e.createComponentVNode)(2,t.Icon,{name:"pen"})})]})]})],4):f?(0,e.createComponentVNode)(2,t.Box,{children:"This bio-chip case has no implant!"}):(0,e.createComponentVNode)(2,t.Box,{children:"Please insert a bio-chip casing!"})})})})}return k}()},25471:function(I,r,n){"use strict";r.__esModule=!0,r.Instrument=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=r.Instrument=function(){function c(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data;return(0,e.createComponentVNode)(2,p.Window,{width:600,height:505,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,C)]})})]})}return c}(),y=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.help;if(i)return(0,e.createComponentVNode)(2,o.Modal,{maxWidth:"75%",height:window.innerHeight*.75+"px",mx:"auto",py:"0",px:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{height:"100%",title:"Help",level:"2",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{px:"0.5rem",mt:"-0.5rem",children:[(0,e.createVNode)(1,"h1",null,"Making a Song",16),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Lines are a series of chords, separated by commas\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(,)"}),(0,e.createTextVNode)(", each with notes separated by hyphens\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"(-)"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Every note in a chord will play together, with the chord timed by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("as defined above.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Notes are played by the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"names of the note"}),(0,e.createTextVNode)(", and optionally, the\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(", and/or the"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave number"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("By default, every note is\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"natural"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("and in\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave 3"}),(0,e.createTextVNode)(". Defining a different state for either is remembered for each"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"note"}),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Example:"}),(0,e.createTextVNode)("\xA0"),(0,e.createVNode)(1,"i",null,"C,D,E,F,G,A,B",16),(0,e.createTextVNode)(" will play a\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"good",children:"C"}),(0,e.createTextVNode)("\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"major"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("scale.")],0),(0,e.createVNode)(1,"li",null,[(0,e.createTextVNode)("After a note has an\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"average",children:"accidental"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("or\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"bad",children:"octave"}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("placed, it will be remembered:\xA0"),(0,e.createVNode)(1,"i",null,"C,C4,C#,C3",16),(0,e.createTextVNode)(" is "),(0,e.createVNode)(1,"i",null,"C3,C4,C4#,C3#",16)],0)],4)],0),(0,e.createVNode)(1,"p",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"Chords"}),(0,e.createTextVNode)("\xA0can be played simply by seperating each note with a hyphen:"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"A-C#,Cn-E,E-G#,Gn-B",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("A"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"pause"}),(0,e.createTextVNode)("\xA0may be denoted by an empty chord: "),(0,e.createVNode)(1,"i",null,"C,E,,C,G",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("To make a chord be a different time, end it with /x, where the chord length will be length defined by\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"tempo / x"}),(0,e.createTextVNode)(",\xA0"),(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"highlight",children:"eg:"}),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,"C,G/2,E/4",16),(0,e.createTextVNode)(".")],0),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("Combined, an example line is: "),(0,e.createVNode)(1,"i",null,"E-E4/4,F#/2,G#/8,B/8,E3-E4/4",16),(0,e.createTextVNode)("."),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,"Lines may be up to 300 characters.",16),(0,e.createVNode)(1,"li",null,"A song may only contain up to 1,000 lines.",16)],4)],4),(0,e.createVNode)(1,"h1",null,"Instrument Advanced Settings",16),(0,e.createVNode)(1,"ul",null,[(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Type:"}),(0,e.createTextVNode)("\xA0Whether the instrument is legacy or synthesized."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Legacy instruments have a collection of sounds that are selectively used depending on the note to play."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Synthesized instruments use a base sound and change its pitch to match the note to play.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Current:"}),(0,e.createTextVNode)("\xA0Which instrument sample to play. Some instruments can be tuned to play different samples. Experiment!")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Note Shift/Note Transpose:"}),(0,e.createTextVNode)("\xA0The pitch to apply to all notes of the song.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain Mode:"}),(0,e.createTextVNode)("\xA0How a played note fades out."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Linear sustain means a note will fade out at a constant rate."),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Exponential sustain means a note will fade out at an exponential rate, sounding smoother.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Volume Dropoff Threshold:"}),(0,e.createTextVNode)("\xA0The volume threshold at which a note is fully stopped.")],4),(0,e.createVNode)(1,"li",null,[(0,e.createComponentVNode)(2,o.Box,{as:"span",color:"label",children:"Sustain indefinitely last held note:"}),(0,e.createTextVNode)("\xA0Whether the last note should be sustained indefinitely.")],4)],4),(0,e.createComponentVNode)(2,o.Button,{color:"grey",content:"Close",onClick:function(){function h(){return d("help")}return h}()})]})})})},S=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.lines,h=m.playing,V=m.repeat,v=m.maxRepeats,s=m.tempo,g=m.minTempo,N=m.maxTempo,x=m.tickLag,B=m.volume,L=m.minVolume,T=m.maxVolume,A=m.ready;return(0,e.createComponentVNode)(2,o.Section,{title:"Instrument",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"info",content:"Help",onClick:function(){function E(){return d("help")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"file",content:"New",onClick:function(){function E(){return d("newsong")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"upload",content:"Import",onClick:function(){function E(){return d("import")}return E}()})],4),children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Playback",children:[(0,e.createComponentVNode)(2,o.Button,{selected:h,disabled:i.length===0||V<0,icon:"play",content:"Play",onClick:function(){function E(){return d("play")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!h,icon:"stop",content:"Stop",onClick:function(){function E(){return d("stop")}return E}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Repeat",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:0,maxValue:v,value:V,stepPixelSize:59,onChange:function(){function E(w,O){return d("repeat",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Tempo",children:(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:s>=N,content:"-",as:"span",mr:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s+x})}return E}()}),(0,a.round)(600/s)," BPM",(0,e.createComponentVNode)(2,o.Button,{disabled:s<=g,content:"+",as:"span",ml:"0.5rem",onClick:function(){function E(){return d("tempo",{new:s-x})}return E}()})]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:L,maxValue:T,value:B,stepPixelSize:6,onDrag:function(){function E(w,O){return d("setvolume",{new:O})}return E}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:A?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"Ready"}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Instrument Definition Error!"})})]}),(0,e.createComponentVNode)(2,b)]})},b=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.allowedInstrumentNames,h=m.instrumentLoaded,V=m.instrument,v=m.canNoteShift,s=m.noteShift,g=m.noteShiftMin,N=m.noteShiftMax,x=m.sustainMode,B=m.sustainLinearDuration,L=m.sustainExponentialDropoff,T=m.legacy,A=m.sustainDropoffVolume,E=m.sustainHeldNote,w,O;return x===1?(w="Linear",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:.1,maxValue:5,value:B,step:.5,stepPixelSize:85,format:function(){function M(P){return(0,a.round)(P*100)/100+" seconds"}return M}(),onChange:function(){function M(P,F){return d("setlinearfalloff",{new:F/10})}return M}()})):x===2&&(w="Exponential",O=(0,e.createComponentVNode)(2,o.Slider,{minValue:1.025,maxValue:10,value:L,step:.01,format:function(){function M(P){return(0,a.round)(P*1e3)/1e3+"% per decisecond"}return M}(),onChange:function(){function M(P,F){return d("setexpfalloff",{new:F})}return M}()})),i.sort(),(0,e.createComponentVNode)(2,o.Box,{my:-1,children:(0,e.createComponentVNode)(2,o.Collapsible,{mt:"1rem",mb:"0",title:"Advanced",children:(0,e.createComponentVNode)(2,o.Section,{mt:-1,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Type",children:T?"Legacy":"Synthesized"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current",children:h?(0,e.createComponentVNode)(2,o.Dropdown,{options:i,selected:V,width:"50%",onSelected:function(){function M(P){return d("switchinstrument",{name:P})}return M}()}):(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"None!"})}),!!(!T&&v)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Note Shift/Note Transpose",children:(0,e.createComponentVNode)(2,o.Slider,{minValue:g,maxValue:N,value:s,stepPixelSize:2,format:function(){function M(P){return P+" keys / "+(0,a.round)(P/12*100)/100+" octaves"}return M}(),onChange:function(){function M(P,F){return d("setnoteshift",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain Mode",children:[(0,e.createComponentVNode)(2,o.Dropdown,{options:["Linear","Exponential"],selected:w,onSelected:function(){function M(P){return d("setsustainmode",{new:P})}return M}()}),O]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Volume Dropoff Threshold",children:(0,e.createComponentVNode)(2,o.Slider,{animated:!0,minValue:.01,maxValue:100,value:A,stepPixelSize:6,onChange:function(){function M(P,F){return d("setdropoffvolume",{new:F})}return M}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Sustain indefinitely last held note",children:(0,e.createComponentVNode)(2,o.Button,{selected:E,icon:E?"toggle-on":"toggle-off",content:E?"Yes":"No",onClick:function(){function M(){return d("togglesustainhold")}return M}()})})],4)]}),(0,e.createComponentVNode)(2,o.Button,{icon:"redo",content:"Reset to Default",mt:"0.5rem",onClick:function(){function M(){return d("reset")}return M}()})]})})})},C=function(u,f){var l=(0,t.useBackend)(f),d=l.act,m=l.data,i=m.playing,h=m.lines,V=m.editing;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Editor",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!V||i,icon:"plus",content:"Add Line",onClick:function(){function v(){return d("newline",{line:h.length+1})}return v}()}),(0,e.createComponentVNode)(2,o.Button,{selected:!V,icon:V?"chevron-up":"chevron-down",onClick:function(){function v(){return d("edit")}return v}()})],4),children:!!V&&(h.length>0?(0,e.createComponentVNode)(2,o.LabeledList,{children:h.map(function(v,s){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:s+1,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"pen",onClick:function(){function g(){return d("modifyline",{line:s+1})}return g}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:i,icon:"trash",onClick:function(){function g(){return d("deleteline",{line:s+1})}return g}()})],4),children:v},s)})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"Song is empty."}))})}},65021:function(I,r,n){"use strict";r.__esModule=!0,r.ItemPixelShift=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ItemPixelShift=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pixel_x,f=c.pixel_y,l=c.max_shift_x,d=c.max_shift_y,m=c.random_drop_on;return(0,e.createComponentVNode)(2,o.Window,{width:250,height:160,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"X-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",title:"Shifts item leftwards.",disabled:u===-l,onClick:function(){function i(){return C("shift_left")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:u,minValue:-l,maxValue:l,onChange:function(){function i(h,V){return C("custom_x",{pixel_x:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",title:"Shifts item rightwards.",disabled:u===l,onClick:function(){function i(){return C("shift_right")}return i}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Y-coordinates",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-up",title:"Shifts item upwards.",disabled:f===d,onClick:function(){function i(){return C("shift_up")}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,lineHeight:1.7,width:"75px",unit:"pixels",stepPixelSize:6,value:f,minValue:-d,maxValue:d,onChange:function(){function i(h,V){return C("custom_y",{pixel_y:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",title:"Shifts item downwards.",disabled:f===-d,onClick:function(){function i(){return C("shift_down")}return i}()})]})]})}),(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:"brown",icon:"arrow-up",content:"Move to Top",title:"Tries to place an item on top of the others.",onClick:function(){function i(){return C("move_to_top")}return i}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,color:m?"good":"bad",icon:"power-off",content:m?"Shift Enabled":"Shift Disabled",title:"Enables/Disables item pixel randomization on any drops.",onClick:function(){function i(){return C("toggle")}return i}()})})]})})]})})}return k}()},13618:function(I,r,n){"use strict";r.__esModule=!0,r.KeyComboModal=void 0;var e=n(89005),a=n(70611),t=n(72253),o=n(36036),p=n(98595),k=n(19203),y=n(51057),S=function(l){return l.key!==a.KEY.Alt&&l.key!==a.KEY.Control&&l.key!==a.KEY.Shift&&l.key!==a.KEY.Escape},b={DEL:"Delete",DOWN:"South",END:"Southwest",HOME:"Northwest",INSERT:"Insert",LEFT:"West",PAGEDOWN:"Southeast",PAGEUP:"Northeast",RIGHT:"East",SPACEBAR:"Space",UP:"North"},C=3,c=function(l){var d="";if(l.altKey&&(d+="Alt"),l.ctrlKey&&(d+="Ctrl"),l.shiftKey&&!(l.keyCode>=48&&l.keyCode<=57)&&(d+="Shift"),l.location===C&&(d+="Numpad"),S(l))if(l.shiftKey&&l.keyCode>=48&&l.keyCode<=57){var m=l.keyCode-48;d+="Shift"+m}else{var i=l.key.toUpperCase();d+=b[i]||i}return d},u=r.KeyComboModal=function(){function f(l,d){var m=(0,t.useBackend)(d),i=m.act,h=m.data,V=h.init_value,v=h.large_buttons,s=h.message,g=s===void 0?"":s,N=h.title,x=h.timeout,B=(0,t.useLocalState)(d,"input",V),L=B[0],T=B[1],A=(0,t.useLocalState)(d,"binding",!0),E=A[0],w=A[1],O=function(){function F(R){if(!E){R.key===a.KEY.Enter&&i("submit",{entry:L}),R.key===a.KEY.Escape&&i("cancel");return}if(R.preventDefault(),S(R)){M(c(R)),w(!1);return}else if(R.key===a.KEY.Escape){M(V),w(!1);return}}return F}(),M=function(){function F(R){R!==L&&T(R)}return F}(),P=130+(g.length>30?Math.ceil(g.length/3):0)+(g.length&&v?5:0);return(0,e.createComponentVNode)(2,p.Window,{title:N,width:240,height:P,children:[x&&(0,e.createComponentVNode)(2,y.Loader,{value:x}),(0,e.createComponentVNode)(2,p.Window.Content,{onKeyDown:function(){function F(R){O(R)}return F}(),children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Autofocus),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:g})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:E,content:E&&E!==null?"Awaiting input...":""+L,width:"100%",textAlign:"center",onClick:function(){function F(){M(V),w(!0)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,k.InputButtons,{input:L})})]})]})})]})}return f}()},35655:function(I,r,n){"use strict";r.__esModule=!0,r.KeycardAuth=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.KeycardAuth=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=(0,e.createComponentVNode)(2,t.Section,{title:"Keycard Authentication Device",children:(0,e.createComponentVNode)(2,t.Box,{children:"This device is used to trigger certain high security events. It requires the simultaneous swipe of two high-level ID cards."})});if(!c.swiping&&!c.busy)return(0,e.createComponentVNode)(2,o.Window,{width:540,height:280,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,(0,e.createComponentVNode)(2,t.Section,{title:"Choose Action",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Red Alert",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",disabled:!c.redAvailable,onClick:function(){function l(){return C("triggerevent",{triggerevent:"Red Alert"})}return l}(),content:"Red Alert"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ERT",children:(0,e.createComponentVNode)(2,t.Button,{icon:"broadcast-tower",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Emergency Response Team"})}return l}(),content:"Call ERT"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Maint Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Grant Emergency Maintenance Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Revoke Emergency Maintenance Access"})}return l}(),content:"Revoke"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Emergency Station-Wide Access",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"door-open",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Activate Station-Wide Emergency Access"})}return l}(),content:"Grant"}),(0,e.createComponentVNode)(2,t.Button,{icon:"door-closed",onClick:function(){function l(){return C("triggerevent",{triggerevent:"Deactivate Station-Wide Emergency Access"})}return l}(),content:"Revoke"})]})]})})]})});var f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Waiting for YOU to swipe your ID..."});return!c.hasSwiped&&!c.ertreason&&c.event==="Emergency Response Team"?f=(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Fill out the reason for your ERT request."}):c.hasConfirm?f=(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Request Confirmed!"}):c.isRemote?f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Swipe your card to CONFIRM the remote request."}):c.hasSwiped&&(f=(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Waiting for second person to confirm..."})),(0,e.createComponentVNode)(2,o.Window,{width:540,height:265,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[u,c.event==="Emergency Response Team"&&(0,e.createComponentVNode)(2,t.Section,{title:"Reason for ERT Call",children:(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{color:c.ertreason?"":"red",icon:c.ertreason?"check":"pencil-alt",content:c.ertreason?c.ertreason:"-----",disabled:c.busy,onClick:function(){function l(){return C("ert")}return l}()})})}),(0,e.createComponentVNode)(2,t.Section,{title:c.event,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-circle-left",content:"Back",disabled:c.busy||c.hasConfirm,onClick:function(){function l(){return C("reset")}return l}()}),children:f})]})})}return k}()},40951:function(I,r,n){"use strict";r.__esModule=!0,r.LaborClaimConsole=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=r.LaborClaimConsole=function(){function b(C,c){return(0,e.createComponentVNode)(2,p.Window,{width:315,height:470,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.can_go_home,m=l.emagged,i=l.id_inserted,h=l.id_name,V=l.id_points,v=l.id_goal,s=l.unclaimed_points,g=m?0:1,N=m?"ERR0R":d?"Completed!":"Insufficient";return(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Status",children:!!i&&(0,e.createComponentVNode)(2,o.ProgressBar,{value:V/v,ranges:{good:[g,1/0],bad:[-1/0,g]},children:V+" / "+v+" "+N})||!!m&&"ERR0R COMPLETED?!@"||"No ID inserted"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Shuttle controls",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Move shuttle",disabled:!d,onClick:function(){function x(){return f("move_shuttle")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed points",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Claim points ("+s+")",disabled:!i||!s,onClick:function(){function x(){return f("claim_points")}return x}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Inserted ID",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:i?h:"-------------",onClick:function(){function x(){return f("handle_id")}return x}()})})]})})},S=function(C,c){var u=(0,t.useBackend)(c),f=u.data,l=f.ores;return(0,e.createComponentVNode)(2,o.Section,{title:"Material values",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:"Material"}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:"Value"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,a.toTitleCase)(d.ore)}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"right",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:d.value})})]},d.ore)})]})})}},9525:function(I,r,n){"use strict";r.__esModule=!0,r.LawManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.LawManager=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.isAdmin,m=l.isSlaved,i=l.isMalf,h=l.isAIMalf,V=l.view;return(0,e.createComponentVNode)(2,o.Window,{width:800,height:i?620:365,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!(d&&m)&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:["This unit is slaved to ",m,"."]}),!!(i||h)&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Law Management",selected:V===0,onClick:function(){function v(){return f("set_view",{set_view:0})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Lawsets",selected:V===1,onClick:function(){function v(){return f("set_view",{set_view:1})}return v}()})]}),V===0&&(0,e.createComponentVNode)(2,k),V===1&&(0,e.createComponentVNode)(2,y)]})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.has_zeroth_laws,m=l.zeroth_laws,i=l.has_ion_laws,h=l.ion_laws,V=l.ion_law_nr,v=l.has_inherent_laws,s=l.inherent_laws,g=l.has_supplied_laws,N=l.supplied_laws,x=l.channels,B=l.channel,L=l.isMalf,T=l.isAdmin,A=l.zeroth_law,E=l.ion_law,w=l.inherent_law,O=l.supplied_law,M=l.supplied_law_position;return(0,e.createFragment)([!!d&&(0,e.createComponentVNode)(2,S,{title:"ERR_NULL_VALUE",laws:m,ctx:c}),!!i&&(0,e.createComponentVNode)(2,S,{title:V,laws:h,ctx:c}),!!v&&(0,e.createComponentVNode)(2,S,{title:"Inherent",laws:s,ctx:c}),!!g&&(0,e.createComponentVNode)(2,S,{title:"Supplied",laws:N,ctx:c}),(0,e.createComponentVNode)(2,t.Section,{title:"Statement Settings",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Statement Channel",children:x.map(function(P){return(0,e.createComponentVNode)(2,t.Button,{content:P.channel,selected:P.channel===B,onClick:function(){function F(){return f("law_channel",{law_channel:P.channel})}return F}()},P.channel)})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"State Laws",children:(0,e.createComponentVNode)(2,t.Button,{content:"State Laws",onClick:function(){function P(){return f("state_laws")}return P}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Law Notification",children:(0,e.createComponentVNode)(2,t.Button,{content:"Notify",onClick:function(){function P(){return f("notify_laws")}return P}()})})]})}),!!L&&(0,e.createComponentVNode)(2,t.Section,{title:"Add Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Type"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"60%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"20%",children:"Actions"})]}),!!(T&&!d)&&(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Zero"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:A}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_zeroth_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_zeroth_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Ion"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:E}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_ion_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_ion_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Inherent"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:w}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"N/A"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_inherent_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_inherent_law")}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Supplied"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:O}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:M,onClick:function(){function P(){return f("change_supplied_law_position")}return P}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function P(){return f("change_supplied_law")}return P}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Add",icon:"plus",onClick:function(){function P(){return f("add_supplied_law")}return P}()})]})]})]})})],0)},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.law_sets;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name+" - "+m.header,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Load Laws",icon:"download",onClick:function(){function i(){return f("transfer_laws",{transfer_laws:m.ref})}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.laws.has_ion_laws>0&&m.laws.ion_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_zeroth_laws>0&&m.laws.zeroth_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_inherent_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)}),m.laws.has_supplied_laws>0&&m.laws.inherent_laws.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.index,children:i.law},i.index)})]})},m.name)})})},S=function(C,c){var u=(0,a.useBackend)(C.ctx),f=u.act,l=u.data,d=l.isMalf;return(0,e.createComponentVNode)(2,t.Section,{title:C.title+" Laws",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"10%",children:"Index"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"69%",children:"Law"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"21%",children:"State?"})]}),C.laws.map(function(m){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.index}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:m.law}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:[(0,e.createComponentVNode)(2,t.Button,{content:m.state?"Yes":"No",selected:m.state,onClick:function(){function i(){return f("state_law",{ref:m.ref,state_law:m.state?0:1})}return i}()}),!!d&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Edit",icon:"pencil-alt",onClick:function(){function i(){return f("edit_law",{edit_law:m.ref})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",icon:"trash",color:"red",onClick:function(){function i(){return f("delete_law",{delete_law:m.ref})}return i}()})],4)]})]},m.law)})]})})}},90447:function(I,r,n){"use strict";r.__esModule=!0,r.ListInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(36036),p=n(72253),k=n(92986),y=n(98595),S=r.ListInputModal=function(){function c(u,f){var l=(0,p.useBackend)(f),d=l.act,m=l.data,i=m.items,h=i===void 0?[]:i,V=m.message,v=V===void 0?"":V,s=m.init_value,g=m.timeout,N=m.title,x=(0,p.useLocalState)(f,"selected",h.indexOf(s)),B=x[0],L=x[1],T=(0,p.useLocalState)(f,"searchBarVisible",h.length>10),A=T[0],E=T[1],w=(0,p.useLocalState)(f,"searchQuery",""),O=w[0],M=w[1],P=function(){function ne(Y){var le=K.length-1;if(Y===k.KEY_DOWN)if(B===null||B===le){var de;L(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var oe;L(B+1),(oe=document.getElementById((B+1).toString()))==null||oe.scrollIntoView()}else if(Y===k.KEY_UP)if(B===null||B===0){var re;L(le),(re=document.getElementById(le.toString()))==null||re.scrollIntoView()}else{var Z;L(B-1),(Z=document.getElementById((B-1).toString()))==null||Z.scrollIntoView()}}return ne}(),F=function(){function ne(Y){Y!==B&&L(Y)}return ne}(),R=function(){function ne(){E(!1),E(!0)}return ne}(),U=function(){function ne(Y){var le=String.fromCharCode(Y),de=h.find(function(Z){return Z==null?void 0:Z.toLowerCase().startsWith(le==null?void 0:le.toLowerCase())});if(de){var oe,re=h.indexOf(de);L(re),(oe=document.getElementById(re.toString()))==null||oe.scrollIntoView()}}return ne}(),j=function(){function ne(Y){var le;Y!==O&&(M(Y),L(0),(le=document.getElementById("0"))==null||le.scrollIntoView())}return ne}(),W=function(){function ne(){E(!A),M("")}return ne}(),K=h.filter(function(ne){return ne==null?void 0:ne.toLowerCase().includes(O.toLowerCase())}),$=330+Math.ceil(v.length/3);return A||setTimeout(function(){var ne;return(ne=document.getElementById(B.toString()))==null?void 0:ne.focus()},1),(0,e.createComponentVNode)(2,y.Window,{title:N,width:325,height:$,children:[g&&(0,e.createComponentVNode)(2,a.Loader,{value:g}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function ne(Y){var le=window.event?Y.which:Y.keyCode;(le===k.KEY_DOWN||le===k.KEY_UP)&&(Y.preventDefault(),P(le)),le===k.KEY_ENTER&&(Y.preventDefault(),d("submit",{entry:K[B]})),!A&&le>=k.KEY_A&&le<=k.KEY_Z&&(Y.preventDefault(),U(le)),le===k.KEY_ESCAPE&&(Y.preventDefault(),d("cancel"))}return ne}(),children:(0,e.createComponentVNode)(2,o.Section,{buttons:(0,e.createComponentVNode)(2,o.Button,{compact:!0,icon:A?"search":"font",selected:!0,tooltip:A?"Search Mode. Type to search or use arrow keys to select manually.":"Hotkey Mode. Type a letter to jump to the first match. Enter to select.",tooltipPosition:"left",onClick:function(){function ne(){return W()}return ne}()}),className:"ListInput__Section",fill:!0,title:v,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,b,{filteredItems:K,onClick:F,onFocusSearch:R,searchBarVisible:A,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:A&&(0,e.createComponentVNode)(2,C,{filteredItems:K,onSearch:j,searchQuery:O,selected:B})}),(0,e.createComponentVNode)(2,o.Stack.Item,{mt:.5,children:(0,e.createComponentVNode)(2,t.InputButtons,{input:K[B]})})]})})})]})}return c}(),b=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onClick,h=u.onFocusSearch,V=u.searchBarVisible,v=u.selected;return(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,tabIndex:0,children:m.map(function(s,g){return(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:"transparent",id:g,onClick:function(){function N(){return i(g)}return N}(),onDblClick:function(){function N(x){x.preventDefault(),d("submit",{entry:m[v]})}return N}(),onKeyDown:function(){function N(x){var B=window.event?x.which:x.keyCode;V&&B>=k.KEY_A&&B<=k.KEY_Z&&(x.preventDefault(),h())}return N}(),selected:g===v,style:{animation:"none",transition:"none"},children:s.replace(/^\w/,function(N){return N.toUpperCase()})},g)})})},C=function(u,f){var l=(0,p.useBackend)(f),d=l.act,m=u.filteredItems,i=u.onSearch,h=u.searchQuery,V=u.selected;return(0,e.createComponentVNode)(2,o.Input,{width:"100%",autoFocus:!0,autoSelect:!0,onEnter:function(){function v(s){s.preventDefault(),d("submit",{entry:m[V]})}return v}(),onInput:function(){function v(s,g){return i(g)}return v}(),placeholder:"Search...",value:h})}},26826:function(I,r,n){"use strict";r.__esModule=!0,r.Loadout=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k={Default:function(){function u(f,l){return f.gear.gear_tier-l.gear.gear_tier}return u}(),Alphabetical:function(){function u(f,l){return f.gear.name.toLowerCase().localeCompare(l.gear.name.toLowerCase())}return u}(),Cost:function(){function u(f,l){return f.gear.cost-l.gear.cost}return u}()},y=r.Loadout=function(){function u(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=(0,t.useLocalState)(l,"search",!1),V=h[0],v=h[1],s=(0,t.useLocalState)(l,"searchText",""),g=s[0],N=s[1],x=(0,t.useLocalState)(l,"category",Object.keys(i.gears)[0]),B=x[0],L=x[1],T=(0,t.useLocalState)(l,"tweakedGear",""),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,p.Window,{width:975,height:650,children:[A&&(0,e.createComponentVNode)(2,c,{tweakedGear:A,setTweakedGear:E}),(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,S,{category:B,setCategory:L})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"25%",children:(0,e.createComponentVNode)(2,C,{setTweakedGear:E})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"75%",children:(0,e.createComponentVNode)(2,b,{category:B,search:V,setSearch:v,searchText:g,setSearchText:N})})]})})]})})]})}return u}(),S=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.category,V=f.setCategory;return(0,e.createComponentVNode)(2,o.Tabs,{fluid:!0,textAlign:"center",style:{"flex-wrap":"wrap-reverse"},children:Object.keys(i.gears).map(function(v){return(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:v===h,style:{"white-space":"nowrap"},onClick:function(){function s(){return V(v)}return s}(),children:v},v)})})},b=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=i.user_tier,V=i.gear_slots,v=i.max_gear_slots,s=f.category,g=f.search,N=f.setSearch,x=f.searchText,B=f.setSearchText,L=(0,t.useLocalState)(l,"sortType","Default"),T=L[0],A=L[1],E=(0,t.useLocalState)(l,"sortReverse",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(F){return F.name}),P;return x.length>2?P=Object.entries(i.gears).reduce(function(F,R){var U=R[0],j=R[1];return F.concat(Object.entries(j).map(function(W){var K=W[0],$=W[1];return{key:K,gear:$}}))},[]).filter(function(F){var R=F.gear;return M(R)}):P=Object.entries(i.gears[s]).map(function(F){var R=F[0],U=F[1];return{key:R,gear:U}}),P.sort(k[T]),w&&(P=P.reverse()),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:s,buttons:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Dropdown,{height:1.66,selected:T,options:Object.keys(k),onSelected:function(){function F(R){return A(R)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:w?"arrow-down-wide-short":"arrow-down-short-wide",tooltip:w?"Ascending order":"Descending order",tooltipPosition:"bottom-end",onClick:function(){function F(){return O(!w)}return F}()})}),g&&(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Input,{width:20,placeholder:"Search...",value:x,onInput:function(){function F(R){return B(R.target.value)}return F}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:"magnifying-glass",selected:g,tooltip:"Toggle search field",tooltipPosition:"bottom-end",onClick:function(){function F(){N(!g),B("")}return F}()})})]}),children:P.map(function(F){var R=F.key,U=F.gear,j=12,W=Object.keys(i.selected_gears).includes(R),K=(U.cost===1,U.cost+" Points"),$=(0,e.createComponentVNode)(2,o.Box,{children:[U.name.length>j&&(0,e.createComponentVNode)(2,o.Box,{children:U.name}),U.gear_tier>h&&(0,e.createComponentVNode)(2,o.Box,{mt:U.name.length>j&&1.5,textColor:"red",children:"That gear is only available at a higher donation tier than you are on."})]}),ne=(0,e.createFragment)([U.allowed_roles&&(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"user",tooltip:(0,e.createComponentVNode)(2,o.Section,{m:-1,title:"Allowed Roles",children:U.allowed_roles.map(function(le){return(0,e.createComponentVNode)(2,o.Box,{children:le},le)})}),tooltipPosition:"left"}),Object.entries(U.tweaks).map(function(le){var de=le[0],oe=le[1];return oe.map(function(re){return(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:re.icon,tooltip:re.tooltip,tooltipPosition:"top"},de)})}),(0,e.createComponentVNode)(2,o.Button,{width:"22px",color:"transparent",icon:"info",tooltip:U.desc,tooltipPosition:"top"})],0),Y=(0,e.createComponentVNode)(2,o.Box,{class:"Loadout-InfoBox",children:[(0,e.createComponentVNode)(2,o.Box,{style:{"flex-grow":1},fontSize:1,color:"gold",opacity:.75,children:U.gear_tier>0&&"Tier "+U.gear_tier}),(0,e.createComponentVNode)(2,o.Box,{fontSize:.75,opacity:.66,children:K})]});return(0,e.createComponentVNode)(2,o.ImageButtonTS,{m:.5,imageSize:84,dmIcon:U.icon,dmIconState:U.icon_state,tooltip:(U.name.length>j||U.gear_tier>0)&&$,tooltipPosition:"bottom",selected:W,disabled:U.gear_tier>h||V+U.cost>v&&!W,buttons:ne,buttonsAlt:Y,onClick:function(){function le(){return m("toggle_gear",{gear:U.index_name})}return le}(),children:U.name},R)})})},C=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.setTweakedGear,V=Object.entries(i.gears).reduce(function(v,s){var g=s[0],N=s[1],x=Object.entries(N).filter(function(B){var L=B[0];return Object.keys(i.selected_gears).includes(L)}).map(function(B){var L=B[0],T=B[1];return Object.assign({key:L},T)});return v.concat(x)},[]);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Selected Equipment",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"Clear Loadout",tooltipPosition:"bottom-end",onClick:function(){function v(){return m("clear_loadout")}return v}()}),children:V.map(function(v){var s=i.selected_gears[v.key];return(0,e.createComponentVNode)(2,o.ImageButtonTS,{fluid:!0,imageSize:48,base64:s.icon,dmIcon:s.icon_file?s.icon_file:v.icon,dmIconState:s.icon_state?s.icon_state:v.icon_state,buttons:(0,e.createFragment)([Object.entries(v.tweaks).length>0&&(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"gears",iconColor:"gray",width:"33px",onClick:function(){function g(){return h(v)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{color:"translucent",icon:"times",iconColor:"red",width:"32px",onClick:function(){function g(){return m("toggle_gear",{gear:v.index_name})}return g}()})],0),children:s.name?s.name:v.name},v.key)})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.ProgressBar,{value:i.gear_slots,maxValue:i.max_gear_slots,ranges:{bad:[i.max_gear_slots,1/0],average:[i.max_gear_slots*.66,i.max_gear_slots],good:[0,i.max_gear_slots*.66]},children:(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:["Used points ",i.gear_slots,"/",i.max_gear_slots]})})})})]})},c=function(f,l){var d=(0,t.useBackend)(l),m=d.act,i=d.data,h=f.tweakedGear,V=f.setTweakedGear;return(0,e.createComponentVNode)(2,o.Dimmer,{children:(0,e.createComponentVNode)(2,o.Box,{className:"Loadout-Modal__background",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,width:20,height:20,title:h.name,buttons:(0,e.createComponentVNode)(2,o.Button,{color:"red",icon:"times",tooltip:"Close",tooltipPosition:"top",onClick:function(){function v(){return V("")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:Object.entries(h.tweaks).map(function(v){var s=v[0],g=v[1];return g.map(function(N){var x=i.selected_gears[h.key][s];return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N.name,color:x?"":"gray",buttons:(0,e.createComponentVNode)(2,o.Button,{color:"transparent",icon:"pen",onClick:function(){function B(){return m("set_tweak",{gear:h.index_name,tweak:s})}return B}()}),children:[x||"Default",(0,e.createComponentVNode)(2,o.Box,{inline:!0,ml:1,width:1,height:1,verticalAlign:"middle",style:{"background-color":""+x}})]},s)})})})})})})}},88832:function(I,r,n){"use strict";r.__esModule=!0,r.MatrixMathTester=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(44879),p=n(98595),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act;return(0,e.createComponentVNode)(2,t.NumberInput,{value:b.value,step:.005,format:function(){function f(l){return(0,o.toFixed)(l,3)}return f}(),width:"100%",onChange:function(){function f(l,d){return u("change_var",{var_name:b.varName,var_value:d})}return f}()})},y=r.MatrixMathTester=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.matrix_a,d=f.matrix_b,m=f.matrix_c,i=f.matrix_d,h=f.matrix_e,V=f.matrix_f,v=f.pixelated,s=(0,a.useLocalState)(C,"scale_x",1),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"scale_y",1),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"translate_x",0),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"translate_y",0),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"shear_x",0),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"shear_y",0),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"angle",0),$=K[0],ne=K[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Transform Editor",width:290,height:270,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"30%"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"25%",children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Position(c, f)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:m,varName:"c"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:V,varName:"f"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Incline(b, d)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:d,varName:"b"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:i,varName:"d"})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{header:!0,children:"Scale(a,e)"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:l,varName:"a"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,k,{value:h,varName:"e"})})]})]}),(0,e.createComponentVNode)(2,t.Table,{mt:3,children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Action"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"X"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Y"})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"up-right-and-down-left-from-center",content:"Scale",width:"100%",onClick:function(){function Y(){return u("scale",{x:g,y:B})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:g,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return N(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:B,step:.05,format:function(){function Y(le){return(0,o.toFixed)(le,2)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return L(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:"Translate",width:"100%",onClick:function(){function Y(){return u("translate",{x:A,y:O})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:A,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return E(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:O,step:1,format:function(){function Y(le){return(0,o.toFixed)(le,0)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return M(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"maximize",content:"Shear",width:"100%",onClick:function(){function Y(){return u("shear",{x:F,y:j})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:F,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:j,step:.005,format:function(){function Y(le){return(0,o.toFixed)(le,3)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return W(de)}return Y}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"rotate-right",content:"Rotate",width:"100%",onClick:function(){function Y(){return u("turn",{angle:$})}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.NumberInput,{value:$,step:.5,maxValue:360,minValue:-360,format:function(){function Y(le){return(0,o.toFixed)(le,1)}return Y}(),width:"100%",onChange:function(){function Y(le,de){return ne(de)}return Y}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"dog",color:"bad",selected:v,content:"PET",tooltip:"Pixel Enhanced Transforming",tooltipPosition:"bottom",width:"100%",onClick:function(){function Y(){return u("toggle_pixel")}return Y}()})})]})]})]})})})}return S}()},72106:function(I,r,n){"use strict";r.__esModule=!0,r.MechBayConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MechBayConsole=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.recharge_port,f=u&&u.mech,l=f&&f.cell,d=f&&f.name;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:d?"Mech status: "+d:"Mech status",textAlign:"center",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Sync",onClick:function(){function m(){return C("reconnect")}return m}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:f.health/f.maxhealth,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No power port detected. Please re-sync."})||!f&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No mech detected."})||!l&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cell is installed."})||(0,e.createComponentVNode)(2,t.ProgressBar,{value:l.charge/l.maxcharge,ranges:{good:[.7,1/0],average:[.3,.7],bad:[-1/0,.3]},children:[(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:l.charge})," / "+l.maxcharge]})})]})})})})}return k}()},7466:function(I,r,n){"use strict";r.__esModule=!0,r.MechaControlConsole=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.MechaControlConsole=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.beacons,d=f.stored_data;return d.length?(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"window-close",onClick:function(){function m(){return u("clear_log")}return m}()}),children:d.map(function(m){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",children:["(",m.time,")"]}),(0,e.createComponentVNode)(2,o.Box,{children:(0,k.decodeHtmlEntities)(m.message)})]},m.time)})})})}):(0,e.createComponentVNode)(2,p.Window,{width:420,height:500,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:l.length&&l.map(function(m){return(0,e.createComponentVNode)(2,o.Section,{title:m.name,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function i(){return u("send_message",{mt:m.uid})}return i}(),children:"Message"}),(0,e.createComponentVNode)(2,o.Button,{icon:"eye",onClick:function(){function i(){return u("get_log",{mt:m.uid})}return i}(),children:"View Log"}),(0,e.createComponentVNode)(2,o.Button.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){function i(){return u("shock",{mt:m.uid})}return i}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.maxHealth*.75,1/0],average:[m.maxHealth*.5,m.maxHealth*.75],bad:[-1/0,m.maxHealth*.5]},value:m.health,maxValue:m.maxHealth})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cell Charge",children:m.cell&&(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{good:[m.cellMaxCharge*.75,1/0],average:[m.cellMaxCharge*.5,m.cellMaxCharge*.75],bad:[-1/0,m.cellMaxCharge*.5]},value:m.cellCharge,maxValue:m.cellMaxCharge})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No Cell Installed"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Air Tank",children:[m.airtank,"kPa"]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Pilot",children:m.pilot||"Unoccupied"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:(0,k.toTitleCase)(m.location)||"Unknown"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Active Equipment",children:m.active||"None"}),m.cargoMax&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cargo Space",children:(0,e.createComponentVNode)(2,o.ProgressBar,{ranges:{bad:[m.cargoMax*.75,1/0],average:[m.cargoMax*.5,m.cargoMax*.75],good:[-1/0,m.cargoMax*.5]},value:m.cargoUsed,maxValue:m.cargoMax})})||null]})},m.name)})||(0,e.createComponentVNode)(2,o.NoticeBox,{children:"No mecha beacons found."})})})}return S}()},79625:function(I,r,n){"use strict";r.__esModule=!0,r.MedicalRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(3939),k=n(98595),y=n(321),S=n(5485),b=n(22091),C={Minor:"lightgray",Medium:"good",Harmful:"average","Dangerous!":"bad","BIOHAZARD THREAT!":"darkred"},c={"*Deceased*":"deceased","*SSD*":"ssd","Physically Unfit":"physically_unfit",Disabled:"disabled"},u=function(T,A){(0,p.modalOpen)(T,"edit",{field:A.edit,value:A.value})},f=function(T,A){var E=T.args;return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:E.name||"\u0412\u0438\u0440\u0443\u0441",children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439",children:E.max_stages}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0420\u0430\u0441\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u0438\u0435",children:E.spread_text}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0412\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0435 \u043C\u0435\u0442\u043E\u0434\u044B \u043B\u0435\u0447\u0435\u043D\u0438\u044F",children:E.cure}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0417\u0430\u043C\u0435\u0442\u043A\u0438",children:E.desc}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C",color:C[E.severity],children:E.severity})]})})})},l=r.MedicalRecords=function(){function L(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.loginState,M=w.screen;if(!O.logged_in)return(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});var P;return M===2?P=(0,e.createComponentVNode)(2,d):M===3?P=(0,e.createComponentVNode)(2,m):M===4?P=(0,e.createComponentVNode)(2,i):M===5?P=(0,e.createComponentVNode)(2,s):M===6&&(P=(0,e.createComponentVNode)(2,g)),(0,e.createComponentVNode)(2,k.Window,{width:800,height:900,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,B),P]})})]})}return L}(),d=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.records,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u0437\u0430\u043F\u0438\u0441\u0438",icon:"wrench",ml:"0.25rem",onClick:function(){function Y(){return w("screen",{screen:3})}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0418\u043C\u044F, ID, \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0438\u043B\u0438 \u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",onInput:function(){function Y(le,de){return R(de)}return Y}()})})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,N,{id:"name",children:"\u0418\u043C\u044F"}),(0,e.createComponentVNode)(2,N,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,N,{id:"rank",children:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C"}),(0,e.createComponentVNode)(2,N,{id:"p_stat",children:"\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,N,{id:"m_stat",children:"\u041F\u0441\u0438\u0445\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.id+"|"+Y.rank+"|"+Y.p_stat+"|"+Y.m_stat})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listRow--"+c[Y.p_stat],onClick:function(){function le(){return w("view_record",{view_record:Y.ref})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.p_stat}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.m_stat})]},Y.id)})]})})})],4)},m=function(T,A){var E=(0,t.useBackend)(A),w=E.act;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"download",content:"\u0420\u0435\u0437\u0435\u0440\u0432\u043D\u043E\u0435 \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0438\u0441\u043A\u0435\u0442\u0443",disabled:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,lineHeight:3,color:"translucent",icon:"upload",content:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0441 \u0434\u0438\u0441\u043A\u0435\u0442\u044B",my:"0.5rem",disabled:!0})," "]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,lineHeight:3,icon:"trash",color:"translucent",content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0431\u0430\u0437\u0443 \u0434\u0430\u043D\u043D\u044B\u0445 \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439",onClick:function(){function O(){return w("del_all")}return O}()})})]})})},i=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical,P=O.printing;return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{height:"235px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:P?"spinner":"print",disabled:P,iconSpin:!!P,content:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0437\u0430\u043F\u0438\u0441\u044C",ml:"0.5rem",onClick:function(){function F(){return w("print_record")}return F}()}),children:(0,e.createComponentVNode)(2,h)})}),!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u043D\u043E\u0432\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("new")}return F}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:!!M.empty,content:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C",onClick:function(){function F(){return w("del_r")}return F}()}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,v)],4)],0)},h=function(T,A){var E=(0,t.useBackend)(A),w=E.data,O=w.general;return!O||!O.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:O.fields.map(function(M,P){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:M.field,children:[(0,e.createComponentVNode)(2,o.Box,{height:"20px",inline:!0,children:M.value}),!!M.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",onClick:function(){function F(){return u(A,M)}return F}()})]},P)})})}),!!O.has_photos&&O.photos.map(function(M,P){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:M,style:{width:"96px","margin-top":"2.5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"\u0424\u043E\u0442\u043E \u2116",P+1]},P)})]})},V=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return!M||!M.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"\u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0430\u044F \u0437\u0430\u043F\u0438\u0441\u044C \u0443\u0442\u0440\u0430\u0447\u0435\u043D\u0430!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:M.fields.map(function(P,F){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:P.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(P.value),!!P.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:P.line_break?"1rem":"initial",onClick:function(){function R(){return u(A,P)}return R}()})]},F)})})})})},v=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medical;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0439",onClick:function(){function P(){return(0,p.modalOpen)(A,"add_comment")}return P}()}),children:M.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u041A\u043E\u043C\u043C\u0435\u043D\u0442\u0430\u0440\u0438\u0438 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044E\u0442."}):M.comments.map(function(P,F){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:P.header}),(0,e.createVNode)(1,"br"),P.text,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function R(){return w("del_c",{del_c:F+1})}return R}()})]},F)})})})},s=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.virus,P=(0,t.useLocalState)(A,"searchText",""),F=P[0],R=P[1],U=(0,t.useLocalState)(A,"sortId2","name"),j=U[0],W=U[1],K=(0,t.useLocalState)(A,"sortOrder2",!0),$=K[0],ne=K[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{ml:"0.25rem",fluid:!0,placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435, \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0421\u0442\u0430\u0434\u0438\u0439 \u0438\u043B\u0438 \u0422\u044F\u0436\u0435\u0441\u0442\u044C",onInput:function(){function Y(le,de){return R(de)}return Y}()})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,x,{id:"name",children:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,x,{id:"max_stages",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0430\u0434\u0438\u0439"}),(0,e.createComponentVNode)(2,x,{id:"severity",children:"\u0422\u044F\u0436\u0435\u0441\u0442\u044C"})]}),M.filter((0,a.createSearch)(F,function(Y){return Y.name+"|"+Y.max_stages+"|"+Y.severity})).sort(function(Y,le){var de=$?1:-1;return Y[j].localeCompare(le[j])*de}).map(function(Y){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listVirus--"+Y.severity,onClick:function(){function le(){return w("vir",{vir:Y.D})}return le}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"virus"})," ",Y.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:Y.max_stages}),(0,e.createComponentVNode)(2,o.Table.Cell,{color:C[Y.severity],children:Y.severity})]},Y.id)})]})})})})],4)},g=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.medbots;return M.length===0?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"robot",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u041C\u0435\u0434\u0431\u043E\u0442\u044B \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B."]})})})}):(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"MedicalRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!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,{children:"\u041B\u043E\u043A\u0430\u0446\u0438\u044F"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"\u0425\u0438\u043C\u0438\u043A\u0430\u0442\u044B"})]}),M.map(function(P){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"MedicalRecords__listMedbot--"+P.on,children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"medical"})," ",P.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[P.area||"\u041D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E"," (",P.x,", ",P.y,")"]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.on?(0,e.createComponentVNode)(2,o.Box,{color:"good",children:"\u0412\u043A\u043B\u044E\u0447\u0451\u043D"}):(0,e.createComponentVNode)(2,o.Box,{color:"average",children:"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:P.use_beaker?"\u0401\u043C\u043A\u043E\u0441\u0442\u044C: "+P.total_volume+"/"+P.maximum_volume:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u0438\u0439 \u0441\u0438\u043D\u0442\u0435\u0437\u0430\u0442\u043E\u0440"})]},P.id)})]})})})},N=function(T,A){var E=(0,t.useLocalState)(A,"sortId","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},x=function(T,A){var E=(0,t.useLocalState)(A,"sortId2","name"),w=E[0],O=E[1],M=(0,t.useLocalState)(A,"sortOrder2",!0),P=M[0],F=M[1],R=T.id,U=T.children;return(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,color:w!==R&&"transparent",onClick:function(){function j(){w===R?F(!P):(O(R),F(!0))}return j}(),children:[U,w===R&&(0,e.createComponentVNode)(2,o.Icon,{name:P?"sort-up":"sort-down",ml:"0.25rem;"})]})})},B=function(T,A){var E=(0,t.useBackend)(A),w=E.act,O=E.data,M=O.screen,P=O.general;return(0,e.createComponentVNode)(2,o.Stack.Item,{m:0,children:(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"list",selected:M===2,onClick:function(){function F(){w("screen",{screen:2})}return F}(),children:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"database",selected:M===5,onClick:function(){function F(){w("screen",{screen:5})}return F}(),children:"\u0411\u0430\u0437\u0430 \u0434\u0430\u043D\u043D\u044B\u0445 \u0432\u0438\u0440\u0443\u0441\u043E\u0432"}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"plus-square",selected:M===6,onClick:function(){function F(){return w("screen",{screen:6})}return F}(),children:"\u041E\u0442\u0441\u043B\u0435\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u043C\u0435\u0434\u0431\u043E\u0442\u043E\u0432"}),M===3&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"wrench",selected:M===3,children:"\u041E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u0435 \u0431\u0430\u0437\u044B \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439"}),M===4&&P&&!P.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{icon:"file",selected:M===4,children:["\u0417\u0430\u043F\u0438\u0441\u044C: ",P.fields[0].value]})]})})};(0,p.modalRegisterBodyOverride)("virus",f)},52306:function(I,r,n){"use strict";r.__esModule=!0,r.Mimicking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Mimicking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.slots||[];return(0,e.createComponentVNode)(2,o.Window,{width:400,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:[u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Choose",selected:f.selected,onClick:function(){function l(){return C("Choose",{id:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",color:"bad",onClick:function(){function l(){return C("Delete",{id:f.id})}return l}()})],4),children:(0,e.createComponentVNode)(2,t.Box,{preserveWhitespace:!0,textColor:"#878787",fontSize:"14px",children:["Voice: ",f.voice]})},f.id)}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Add",onClick:function(){function f(){return C("Add")}return f}()})]})})})})}return k}()},66238:function(I,r,n){"use strict";r.__esModule=!0,r.Minesweeper=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Minesweeper=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.matrix,f=c.showMessage,l=c.tokens,d=c.uiWidth,m={1:"blue",2:"green",3:"red",4:"darkblue",5:"brown",6:"lightblue",7:"black",8:"white"};document.addEventListener("contextmenu",function(g){return g.preventDefault()});var i=function(){function g(N,x,B){N.button!==0&&N.button!==2||C("Square",{X:x,Y:B,mode:N.button===2?s[V]:V})}return g}(),h=(0,a.useLocalState)(S,"mode","bomb"),V=h[0],v=h[1],s={flag:"bomb",bomb:"flag"};return(0,e.createComponentVNode)(2,o.Window,{theme:"ntOS95",width:d+80,height:750,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0418\u0433\u0440\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435",textAlign:"center",fill:!0,fitted:!0,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",iconColor:"black",selected:V==="bomb",onClick:function(){function g(){return v("bomb")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"flag",iconColor:"red",selected:V==="flag",onClick:function(){function g(){return v("flag")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",onClick:function(){function g(){return C("Mode",{mode:"16x30"})}return g}()})],4),children:[(0,e.createVNode)(1,"p"),Object.keys(u).map(function(g){return(0,e.createComponentVNode)(2,t.Box,{children:Object.keys(u[g]).map(function(N){return(0,e.createComponentVNode)(2,t.Button,{m:"1px",height:"30px",width:"30px",className:u[g][N].open?"Minesweeper__open":"Minesweeper__closed",bold:!0,color:"transparent",icon:u[g][N].open?u[g][N].bomb?"bomb":"":u[g][N].flag?"flag":"",textColor:u[g][N].open?u[g][N].bomb?"black":m[u[g][N].around]:u[g][N].flag?"red":"gray",onMouseDown:function(){function x(B){return i(B,g,N)}return x}(),children:u[g][N].open&&!u[g][N].bomb&&u[g][N].around?u[g][N].around:" "},N)})},g)}),(0,e.createVNode)(1,"p"),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",className:"Minesweeper__message",children:["\u0414\u043B\u044F \u043F\u043E\u0431\u0435\u0434\u044B \u043D\u0443\u0436\u043D\u043E \u043F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0444\u043B\u0430\u0436\u043A\u0430\u043C\u0438 \u0432\u0441\u0435 \u0431\u043E\u043C\u0431\u044B, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0432\u0441\u0435 \u043F\u0443\u0441\u0442\u044B\u0435 \u043A\u043B\u0435\u0442\u043A\u0438.",(0,e.createVNode)(1,"br"),"\u0411\u0430\u043B\u0430\u043D\u0441 \u0442\u043E\u043A\u0435\u043D\u043E\u0432: ",l,(0,e.createVNode)(1,"br"),f]})]})})})})}return k}()},21385:function(I,r,n){"use strict";r.__esModule=!0,r.MiniGamesMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.MiniGamesMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[],f=c.thunderdome_eligible,l=c.notifications_enabled;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:f?"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:f?"good":"bad",onClick:function(){function d(){return C("toggle_minigames")}return d}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"power-off",tooltip:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",tooltipPosition:"bottom",content:l?"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445":"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0443\u0432\u0435\u0434\u043E\u043C\u043B\u0435\u043D\u0438\u044F \u043E \u0431\u043E\u0435\u0432\u044B\u0445 \u043C\u0438\u043D\u0438-\u0438\u0433\u0440\u0430\u0445",color:l?"good":"bad",onClick:function(){function d(){return C("toggle_notifications")}return d}()}),(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:d.name,level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function m(){return C("jump",{ID:d.uids})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Start",onClick:function(){function m(){return C("spawn",{ID:d.uids})}return m}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:d.desc}),!!d.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:d.fluff}),!!d.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:d.important_info})]},d.name)})})]})})}return k}()},87684:function(I,r,n){"use strict";r.__esModule=!0,r.MiningVendor=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=["title","items"];function y(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var S={Alphabetical:function(){function l(d,m){return d-m}return l}(),Availability:function(){function l(d,m){return-(d.affordable-m.affordable)}return l}(),Price:function(){function l(d,m){return d.price-m.price}return l}()},b=r.MiningVendor=function(){function l(d,m){return(0,e.createComponentVNode)(2,p.Window,{width:400,height:450,children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,c)]})})})}return l}(),C=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id;return(0,e.createComponentVNode)(2,o.NoticeBox,{success:v,children:v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{inline:!0,verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",s.name,".",(0,e.createVNode)(1,"br"),"You have ",s.points.toLocaleString("en-US")," points."]}),(0,e.createComponentVNode)(2,o.Button,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){function g(){return h("logoff")}return g}()}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})],4):"Please insert an ID in order to make purchases."})},c=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.has_id,s=V.id,g=V.items,N=(0,t.useLocalState)(m,"search",""),x=N[0],B=N[1],L=(0,t.useLocalState)(m,"sort","Alphabetical"),T=L[0],A=L[1],E=(0,t.useLocalState)(m,"descending",!1),w=E[0],O=E[1],M=(0,a.createSearch)(x,function(R){return R[0]}),P=!1,F=Object.entries(g).map(function(R,U){var j=Object.entries(R[1]).filter(M).map(function(W){return W[1].affordable=v&&s.points>=W[1].price,W[1]}).sort(S[T]);if(j.length!==0)return w&&(j=j.reverse()),P=!0,(0,e.createComponentVNode)(2,f,{title:R[0],items:j},R[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:P?F:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},u=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:"Alphabetical",options:Object.keys(S),width:"100%",onSelected:function(){function L(T){return g(T)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"21px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",onClick:function(){function L(){return B(!x)}return L}()})})]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=y(d,k);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.ImageButton,{bold:!0,asset:!0,color:"brown",imageSize:"64px",image:N.imageId,imageAsset:"mining_vendor64x64",content:N.name,children:(0,e.createComponentVNode)(2,o.ImageButton.Item,{bold:!0,horizontal:!0,width:"64px",fontSize:1,content:N.price,icon:"shopping-cart",iconSize:1,iconColor:!V.has_id||V.id.points"})}),!!O&&(0,e.createComponentVNode)(2,d,{mt:1.1,label:"ID tag",compactLabel:!0,wrapContent:F?(0,e.createComponentVNode)(2,f,{text:P,defaultText:"",color:"silver"}):(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"red",italic:!0,nowrap:!0,children:"Not supported"})})]})})]})})})}return x}(),c=function(B,L){var T=B.iconName,A=B.machineName,E=B.noMachine,w=B.noMachineText,O=B.noMachineElem,M="Unknown machine",P=E?w:A||"Unknown machine",F=P===w,R=P===w||P===M;return E&&O?O:(0,e.createComponentVNode)(2,o.Flex,{mt:.1,mb:1.9,children:[!E&&(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,align:"center",children:(0,e.createComponentVNode)(2,o.Icon,{mr:1,size:1.1,name:T})}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,wordWrap:"break-word",children:(0,e.createComponentVNode)(2,o.Box,{as:"span",wordWrap:"break-word",color:F?"label":"silver",fontSize:"1.1rem",bold:!0,italic:R,children:P})})]})},u=function(B,L){var T=B.text;return(0,e.createComponentVNode)(2,o.Box,{as:"span",fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:T})},f=function(B,L){var T=B.text,A=B.defaultText,E=b(B,k);return T?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"span",wordWrap:"break-word"},E,{children:T}))):(0,e.createComponentVNode)(2,u,{text:A})},l=function(B,L){var T=B.noConfirm,A=T===void 0?!1:T,E=b(B,y);return A?(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button,Object.assign({},E))):(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Button.Confirm,Object.assign({},E)))},d=function(B,L){var T=B.label,A=B.wrapContent,E=B.noWrapContent,w=B.compactLabel,O=w===void 0?!1:w,M=b(B,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Flex,Object.assign({my:.5,mr:"0.5%",spacing:1,align:"center"},M,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:O?0:1,shrink:0,textOverflow:"ellipsis",overflow:"hidden",basis:O?"auto":0,maxWidth:O?"none":20,color:"label",nowrap:!0,children:T}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,textAlign:"center",wordWrap:"break-word",children:A}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:.1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,nowrap:!0,children:E})]})))},m=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{mt:1.5,fontSize:"0.9rem",color:"silver",italic:!0,children:"No options"})},i=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data;return(0,e.createComponentVNode)(2,o.Box,{fontSize:"1.1rem",color:"red",bold:!0,italic:!0,children:"ACCESS DENIED"})},h=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTag;return(0,e.createComponentVNode)(2,d,{label:"ID tag",wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"Set",icon:"wrench",onClick:function(){function O(){return A("set_tag")}return O}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Clear",icon:"times-circle",color:"red",disabled:!w,onClick:function(){function O(){return A("clear_tag")}return O}()})],4)})},V=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.frequency,O=E.minFrequency,M=E.maxFrequency,P=E.canReset;return(0,e.createComponentVNode)(2,d,{label:"Frequency",noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,unit:"kHz",step:.1,stepPixelSize:10,minValue:O/10,maxValue:M/10,value:w/10,format:function(){function F(R){return(0,a.toFixed)(R,1)}return F}(),onChange:function(){function F(R,U){return A("set_frequency",{frequency:U*10})}return F}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"undo",content:"",disabled:!P,tooltip:"Reset",onClick:function(){function F(){return A("reset_frequency")}return F}()})],4)})},v=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.attachedTags;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Linked tags",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add tag",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_tag")}return O}()}),children:w.map(function(O,M){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O})}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{icon:"minus",color:"red",onClick:function(){function P(){return A("remove_tag",{tag_index:M})}return P}()})})})},M)})})},s=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.bolts,O=E.pressureCheck,M=E.temperatureCheck,P=E.oxygenCheck,F=E.toxinsCheck,R=E.nitrogenCheck,U=E.carbonDioxideCheck,j=[{bitflag:1,checked:O,label:"Monitor pressure"},{bitflag:2,checked:M,label:"Monitor temperature"},{bitflag:4,checked:P,label:"Monitor oxygen concentration"},{bitflag:8,checked:F,label:"Monitor plasma concentration"},{bitflag:16,checked:R,label:"Monitor nitrogen concentration"},{bitflag:32,checked:U,label:"Monitor carbon dioxide concentration"}];return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Floor bolts",noWrapContent:(0,e.createComponentVNode)(2,o.Button,{icon:w?"check":"times",selected:w,content:w?"YES":"NO",onClick:function(){function W(){return A("toggle_bolts")}return W}()})}),j.map(function(W){return(0,e.createComponentVNode)(2,d,{label:W.label,noWrapContent:(0,e.createComponentVNode)(2,o.Button.Checkbox,{checked:W.checked,onClick:function(){function K(){return A("toggle_flag",{bitflag:W.bitflag})}return K}()})},W.bitflag)})],0)},g=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.sensors;return(0,e.createComponentVNode)(2,o.Section,{mt:1.7,ml:.5,mr:1,px:.5,title:"Sensors",buttons:(0,e.createComponentVNode)(2,o.Button,{mr:1,pl:2.1,content:"Add sensor",icon:"plus",iconRight:!0,onClick:function(){function O(){return A("add_sensor")}return O}()}),children:[(0,e.createComponentVNode)(2,d,{mr:0,compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:1}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"ID tag"}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"label",nowrap:!0,bold:!0,children:"Label"}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:11.3})]})}),Object.keys(w).map(function(O){return(0,e.createComponentVNode)(2,d,{mr:0,label:(0,e.createComponentVNode)(2,o.Icon,{name:"wave-square"}),compactLabel:!0,wrapContent:(0,e.createComponentVNode)(2,o.Flex,{align:"center",spacing:1,children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:O}),w[O]?(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,color:"silver",wordWrap:"break-word",children:w[O]}):(0,e.createComponentVNode)(2,o.Flex.Item,{grow:1,shrink:1,basis:0,fontSize:"0.9rem",color:"yellow",italic:!0,nowrap:!0,children:""})]}),noWrapContent:(0,e.createComponentVNode)(2,o.Flex,{children:[(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:[(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"edit",onClick:function(){function M(){return A("change_label",{sensor_tag:O})}return M}()}),(0,e.createComponentVNode)(2,o.Button,{content:"Label",icon:"times-circle",color:"orange",disabled:!w[O],onClick:function(){function M(){return A("clear_label",{sensor_tag:O})}return M}()})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:.5}),(0,e.createComponentVNode)(2,o.Flex.Item,{grow:0,shrink:0,children:(0,e.createComponentVNode)(2,o.Button,{px:1.2,icon:"minus",color:"red",onClick:function(){function M(){return A("del_sensor",{sensor_tag:O})}return M}()})})]})},O)})]})},N=function(B,L){var T=(0,t.useBackend)(L),A=T.act,E=T.data,w=E.inputTag,O=E.outputTag,M=E.bufferTag,P=E.bufferFitsInput,F=E.bufferFitsOutput,R=E.doNotLinkAndNotify;return(0,e.createFragment)([(0,e.createComponentVNode)(2,d,{label:"Input",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:w,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!w,confirmContent:"This will change the intput device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:w&&M===w,disabled:!P,onClick:function(){function U(){return A("link_input")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the intput device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!w,onClick:function(){function U(){return A("unlink_input")}return U}()})],4)}),(0,e.createComponentVNode)(2,d,{label:"Output",labelWidth:6,wrapContent:(0,e.createComponentVNode)(2,f,{text:O,defaultText:"",color:"silver"}),noWrapContent:(0,e.createFragment)([(0,e.createComponentVNode)(2,l,{noConfirm:R||!O,confirmContent:"This will change the output device. Confirm?",confirmColor:"orange",content:"Link buffer",icon:"link",selected:O&&M===O,disabled:!F,onClick:function(){function U(){return A("link_output")}return U}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{confirmContent:"This will unlink the output device. Confirm?",confirmColor:"orange",content:"Unlink",icon:"unlink",color:"red",disabled:!O,onClick:function(){function U(){return A("unlink_output")}return U}()})],4)})],4)}},64713:function(I,r,n){"use strict";r.__esModule=!0,r.Newscaster=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(76910),k=n(98595),y=n(3939),S=n(22091),b=["icon","iconSpin","selected","security","onClick","title","children"],C=["name"];function c(B,L){if(B==null)return{};var T={};for(var A in B)if({}.hasOwnProperty.call(B,A)){if(L.includes(A))continue;T[A]=B[A]}return T}var u=128,f=["security","engineering","medical","science","service","supply"],l={security:{title:"Security",fluff_text:"Help keep the crew safe"},engineering:{title:"Engineering",fluff_text:"Ensure the station runs smoothly"},medical:{title:"Medical",fluff_text:"Practice medicine and save lives"},science:{title:"Science",fluff_text:"Develop new technologies"},service:{title:"Service",fluff_text:"Provide amenities to the crew"},supply:{title:"Supply",fluff_text:"Keep the station supplied"}},d=r.Newscaster=function(){function B(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.is_security,M=w.is_admin,P=w.is_silent,F=w.is_printing,R=w.screen,U=w.channels,j=w.channel_idx,W=j===void 0?-1:j,K=(0,t.useLocalState)(T,"menuOpen",!1),$=K[0],ne=K[1],Y=(0,t.useLocalState)(T,"viewingPhoto",""),le=Y[0],de=Y[1],oe=(0,t.useLocalState)(T,"censorMode",!1),re=oe[0],Z=oe[1],ae;R===0||R===2?ae=(0,e.createComponentVNode)(2,i):R===1&&(ae=(0,e.createComponentVNode)(2,h));var J=U.reduce(function(X,Q){return X+Q.unread},0);return(0,e.createComponentVNode)(2,k.Window,{theme:O&&"security",width:800,height:600,children:[le?(0,e.createComponentVNode)(2,s):(0,e.createComponentVNode)(2,y.ComplexModal,{maxWidth:window.innerWidth/1.5+"px",maxHeight:window.innerHeight/1.5+"px"}),(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Section,{fill:!0,className:(0,a.classes)(["Newscaster__menu",$&&"Newscaster__menu--open"]),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,m,{icon:"bars",title:"Toggle Menu",onClick:function(){function X(){return ne(!$)}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"newspaper",title:"Headlines",selected:R===0,onClick:function(){function X(){return E("headlines")}return X}(),children:J>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:J>=10?"9+":J})}),(0,e.createComponentVNode)(2,m,{icon:"briefcase",title:"Job Openings",selected:R===1,onClick:function(){function X(){return E("jobs")}return X}()}),(0,e.createComponentVNode)(2,o.Divider)]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:U.map(function(X){return(0,e.createComponentVNode)(2,m,{icon:X.icon,title:X.name,selected:R===2&&U[W-1]===X,onClick:function(){function Q(){return E("channel",{uid:X.uid})}return Q}(),children:X.unread>0&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--unread",children:X.unread>=10?"9+":X.unread})},X)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,o.Divider),(!!O||!!M)&&(0,e.createFragment)([(0,e.createComponentVNode)(2,m,{security:!0,icon:"exclamation-circle",title:"Edit Wanted Notice",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"wanted_notice")}return X}()}),(0,e.createComponentVNode)(2,m,{security:!0,icon:re?"minus-square":"minus-square-o",title:"Censor Mode: "+(re?"On":"Off"),mb:"0.5rem",onClick:function(){function X(){return Z(!re)}return X}()}),(0,e.createComponentVNode)(2,o.Divider)],4),(0,e.createComponentVNode)(2,m,{icon:"pen-alt",title:"New Story",mb:"0.5rem",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_story")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:"plus-circle",title:"New Channel",onClick:function(){function X(){return(0,y.modalOpen)(T,"create_channel")}return X}()}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,m,{icon:F?"spinner":"print",iconSpin:F,title:F?"Printing...":"Print Newspaper",onClick:function(){function X(){return E("print_newspaper")}return X}()}),(0,e.createComponentVNode)(2,m,{icon:P?"volume-mute":"volume-up",title:"Mute: "+(P?"On":"Off"),onClick:function(){function X(){return E("toggle_mute")}return X}()})]})]})}),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,width:"100%",children:[(0,e.createComponentVNode)(2,S.TemporaryNotice),ae]})]})})]})}return B}(),m=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=L.icon,O=w===void 0?"":w,M=L.iconSpin,P=L.selected,F=P===void 0?!1:P,R=L.security,U=R===void 0?!1:R,j=L.onClick,W=L.title,K=L.children,$=c(L,b);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({className:(0,a.classes)(["Newscaster__menuButton",F&&"Newscaster__menuButton--selected",U&&"Newscaster__menuButton--security"]),onClick:j},$,{children:[F&&(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--selectedBar"}),(0,e.createComponentVNode)(2,o.Icon,{name:O,spin:M,size:"2"}),(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__menuButton--title",children:W}),K]})))},i=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.screen,M=w.is_admin,P=w.channel_idx,F=w.channel_can_manage,R=w.channels,U=w.stories,j=w.wanted,W=(0,t.useLocalState)(T,"fullStories",[]),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"censorMode",!1),Y=ne[0],le=ne[1],de=O===2&&P>-1?R[P-1]:null;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!j&&(0,e.createComponentVNode)(2,V,{story:j,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:de?de.icon:"newspaper",mr:"0.5rem"}),de?de.name:"Headlines"],0),children:U.length>0?U.slice().reverse().map(function(oe){return!K.includes(oe.uid)&&oe.body.length+3>u?Object.assign({},oe,{body_short:oe.body.substr(0,u-4)+"..."}):oe}).map(function(oe,re){return(0,e.createComponentVNode)(2,V,{story:oe},re)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no stories at this time."]})}),!!de&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,height:"40%",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"info-circle",mr:"0.5rem"}),(0,e.createTextVNode)("About")],4),buttons:(0,e.createFragment)([Y&&(0,e.createComponentVNode)(2,o.Button,{disabled:!!de.admin&&!M,selected:de.censored,icon:de.censored?"comment-slash":"comment",content:de.censored?"Uncensor Channel":"Censor Channel",mr:"0.5rem",onClick:function(){function oe(){return E("censor_channel",{uid:de.uid})}return oe}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!F,icon:"cog",content:"Manage",onClick:function(){function oe(){return(0,y.modalOpen)(T,"manage_channel",{uid:de.uid})}return oe}()})],0),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",children:de.description||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:de.author||"N/A"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Public",children:de.public?"Yes":"No"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Views",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"eye",mr:"0.5rem"}),U.reduce(function(oe,re){return oe+re.view_count},0).toLocaleString()]})]})})]})},h=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.jobs,M=w.wanted,P=Object.entries(O).reduce(function(F,R){var U=R[0],j=R[1];return F+j.length},0);return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[!!M&&(0,e.createComponentVNode)(2,V,{story:M,wanted:!0}),(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"briefcase",mr:"0.5rem"}),(0,e.createTextVNode)("Job Openings")],4),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:"Work for a better future at Nanotrasen"}),children:P>0?f.map(function(F){return Object.assign({},l[F],{id:F,jobs:O[F]})}).filter(function(F){return!!F&&F.jobs.length>0}).map(function(F){return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__jobCategory","Newscaster__jobCategory--"+F.id]),title:F.title,buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",color:"label",children:F.fluff_text}),children:F.jobs.map(function(R){return(0,e.createComponentVNode)(2,o.Box,{class:(0,a.classes)(["Newscaster__jobOpening",!!R.is_command&&"Newscaster__jobOpening--command"]),children:["\u2022 ",R.title]},R.title)})},F.id)}):(0,e.createComponentVNode)(2,o.Box,{className:"Newscaster__emptyNotice",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"times",size:"3"}),(0,e.createVNode)(1,"br"),"There are no openings at this time."]})}),(0,e.createComponentVNode)(2,o.Section,{height:"17%",children:["Interested in serving Nanotrasen?",(0,e.createVNode)(1,"br"),"Sign up for any of the above position now at the"," ",(0,e.createVNode)(1,"b",null,"Head of Personnel's Office!",16),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{as:"small",color:"label",children:"By signing up for a job at Nanotrasen, you agree to transfer your soul to the loyalty department of the omnipresent and helpful watcher of humanity."})]})]})},V=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=L.story,M=L.wanted,P=M===void 0?!1:M,F=(0,t.useLocalState)(T,"fullStories",[]),R=F[0],U=F[1],j=(0,t.useLocalState)(T,"censorMode",!1),W=j[0],K=j[1];return(0,e.createComponentVNode)(2,o.Section,{className:(0,a.classes)(["Newscaster__story",P&&"Newscaster__story--wanted"]),title:(0,e.createFragment)([P&&(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle",mr:"0.5rem"}),O.censor_flags&2&&"[REDACTED]"||O.title||"News from "+O.author],0),buttons:(0,e.createComponentVNode)(2,o.Box,{mt:"0.25rem",children:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:[!P&&W&&(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:(0,e.createComponentVNode)(2,o.Button,{enabled:O.censor_flags&2,icon:O.censor_flags&2?"comment-slash":"comment",content:O.censor_flags&2?"Uncensor":"Censor",mr:"0.5rem",mt:"-0.25rem",onClick:function(){function $(){return E("censor_story",{uid:O.uid})}return $}()})}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",O.author," |\xA0",!P&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Icon,{name:"eye"}),(0,e.createTextVNode)(" "),O.view_count.toLocaleString(),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("|\xA0")],0),(0,e.createComponentVNode)(2,o.Icon,{name:"clock"})," ",(0,p.timeAgo)(O.publish_time,w.world_time)]})]})}),children:(0,e.createComponentVNode)(2,o.Box,{children:O.censor_flags&2?"[REDACTED]":(0,e.createFragment)([!!O.has_photo&&(0,e.createComponentVNode)(2,v,{name:"story_photo_"+O.uid+".png",float:"right",ml:"0.5rem"}),(O.body_short||O.body).split("\n").map(function($,ne){return(0,e.createComponentVNode)(2,o.Box,{children:$||(0,e.createVNode)(1,"br")},ne)}),O.body_short&&(0,e.createComponentVNode)(2,o.Button,{content:"Read more..",mt:"0.5rem",onClick:function(){function $(){return U([].concat(R,[O.uid]))}return $}()}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})],0)})})},v=function(L,T){var A=L.name,E=c(L,C),w=(0,t.useLocalState)(T,"viewingPhoto",""),O=w[0],M=w[1];return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Box,Object.assign({as:"img",className:"Newscaster__photo",src:A,onClick:function(){function P(){return M(A)}return P}()},E)))},s=function(L,T){var A=(0,t.useLocalState)(T,"viewingPhoto",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Modal,{className:"Newscaster__photoZoom",children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:E}),(0,e.createComponentVNode)(2,o.Button,{icon:"times",content:"Close",color:"grey",mt:"1rem",onClick:function(){function O(){return w("")}return O}()})]})},g=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=!!L.args.uid&&w.channels.filter(function(te){return te.uid===L.args.uid}).pop();if(L.id==="manage_channel"&&!O){(0,y.modalClose)(T);return}var M=L.id==="manage_channel",P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(O==null?void 0:O.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(O==null?void 0:O.name)||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(O==null?void 0:O.description)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"icon",(O==null?void 0:O.icon)||"newspaper"),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"isPublic",M?!!(O!=null&&O.public):!1),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",(O==null?void 0:O.admin)===1||!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:M?"Manage "+O.name:"Create New Channel",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:U,onInput:function(){function te(fe,ye){return j(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"50 characters max.",maxLength:"50",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",placeholder:"128 characters max.",maxLength:"128",value:Y,onInput:function(){function te(fe,ye){return le(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Icon",children:[(0,e.createComponentVNode)(2,o.Input,{disabled:!P,value:oe,width:"35%",mr:"0.5rem",onInput:function(){function te(fe,ye){return re(ye)}return te}()}),(0,e.createComponentVNode)(2,o.Icon,{name:oe,size:"2",verticalAlign:"middle",mr:"0.5rem"})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Accept Public Stories?",children:(0,e.createComponentVNode)(2,o.Button,{selected:ae,icon:ae?"toggle-on":"toggle-off",content:ae?"Yes":"No",onClick:function(){function te(){return J(!ae)}return te}()})}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this channel will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,49),description:Y.substr(0,128),icon:oe,public:ae?1:0,admin_locked:Q?1:0})}return te}()})]})},N=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.channels,P=w.channel_idx,F=P===void 0?-1:P,R=!!L.args.is_admin,U=L.args.scanned_user,j=M.slice().sort(function(te,fe){if(F<0)return 0;var ye=M[F-1];if(ye.uid===te.uid)return-1;if(ye.uid===fe.uid)return 1}).filter(function(te){return R||!te.frozen&&(te.author===U||!!te.public)}),W=(0,t.useLocalState)(T,"author",U||"Unknown"),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"channel",j.length>0?j[0].name:""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"title",""),oe=de[0],re=de[1],Z=(0,t.useLocalState)(T,"body",""),ae=Z[0],J=Z[1],X=(0,t.useLocalState)(T,"adminLocked",!1),Q=X[0],q=X[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Create New Story",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Author",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!R,width:"100%",value:K,onInput:function(){function te(fe,ye){return $(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Channel",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Dropdown,{selected:Y,options:j.map(function(te){return te.name}),mb:"0",width:"100%",onSelected:function(){function te(fe){return le(fe)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Divider),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Title",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",placeholder:"128 characters max.",maxLength:"128",value:oe,onInput:function(){function te(fe,ye){return re(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Story Text",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{fluid:!0,multiline:!0,placeholder:"1024 characters max.",maxLength:"1024",rows:"8",width:"100%",value:ae,onInput:function(){function te(fe,ye){return J(ye)}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this story by holding the photograph in your hand.",onClick:function(){function te(){return E(O?"eject_photo":"attach_photo")}return te}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Preview",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Section,{noTopPadding:!0,title:oe,maxHeight:"13.5rem",overflow:"auto",children:(0,e.createComponentVNode)(2,o.Box,{mt:"0.5rem",children:[!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"}),ae.split("\n").map(function(te,fe){return(0,e.createComponentVNode)(2,o.Box,{children:te||(0,e.createVNode)(1,"br")},fe)}),(0,e.createComponentVNode)(2,o.Box,{clear:"right"})]})})}),R&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:Q,icon:Q?"lock":"lock-open",content:Q?"On":"Off",tooltip:"Locking this story will make it censorable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function te(){return q(!Q)}return te}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:K.trim().length===0||Y.trim().length===0||oe.trim().length===0||ae.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function te(){(0,y.modalAnswer)(T,"create_story","",{author:K,channel:Y,title:oe.substr(0,127),body:ae.substr(0,1023),admin_locked:Q?1:0})}return te}()})]})},x=function(L,T){var A=(0,t.useBackend)(T),E=A.act,w=A.data,O=w.photo,M=w.wanted,P=!!L.args.is_admin,F=L.args.scanned_user,R=(0,t.useLocalState)(T,"author",(M==null?void 0:M.author)||F||"Unknown"),U=R[0],j=R[1],W=(0,t.useLocalState)(T,"name",(M==null?void 0:M.title.substr(8))||""),K=W[0],$=W[1],ne=(0,t.useLocalState)(T,"description",(M==null?void 0:M.body)||""),Y=ne[0],le=ne[1],de=(0,t.useLocalState)(T,"adminLocked",(M==null?void 0:M.admin_locked)===1||!1),oe=de[0],re=de[1];return(0,e.createComponentVNode)(2,o.Section,{m:"-1rem",pb:"1.5rem",title:"Manage Wanted Notice",children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Authority",children:(0,e.createComponentVNode)(2,o.Input,{disabled:!P,width:"100%",value:U,onInput:function(){function Z(ae,J){return j(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Name",children:(0,e.createComponentVNode)(2,o.Input,{width:"100%",value:K,maxLength:"128",onInput:function(){function Z(ae,J){return $(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Description",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Input,{multiline:!0,width:"100%",value:Y,maxLength:"512",rows:"4",onInput:function(){function Z(ae,J){return le(J)}return Z}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Photo (optional)",verticalAlign:"top",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"image",selected:O,content:O?"Eject: "+O.name:"Insert Photo",tooltip:!O&&"Attach a photo to this wanted notice by holding the photograph in your hand.",tooltipPosition:"top",onClick:function(){function Z(){return E(O?"eject_photo":"attach_photo")}return Z}()}),!!O&&(0,e.createComponentVNode)(2,v,{name:"inserted_photo_"+O.uid+".png",float:"right"})]}),P&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"CentComm Lock",verticalAlign:"top",children:(0,e.createComponentVNode)(2,o.Button,{selected:oe,icon:oe?"lock":"lock-open",content:oe?"On":"Off",tooltip:"Locking this wanted notice will make it editable by nobody but CentComm officers.",tooltipPosition:"top",onClick:function(){function Z(){return re(!oe)}return Z}()})})]})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:!M,icon:"eraser",color:"danger",content:"Clear",position:"absolute",right:"7.25rem",bottom:"-0.75rem",onClick:function(){function Z(){E("clear_wanted_notice"),(0,y.modalClose)(T)}return Z}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{disabled:U.trim().length===0||K.trim().length===0||Y.trim().length===0,icon:"check",color:"good",content:"Submit",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function Z(){(0,y.modalAnswer)(T,L.id,"",{author:U,name:K.substr(0,127),description:Y.substr(0,511),admin_locked:oe?1:0})}return Z}()})]})};(0,y.modalRegisterBodyOverride)("create_channel",g),(0,y.modalRegisterBodyOverride)("manage_channel",g),(0,y.modalRegisterBodyOverride)("create_story",N),(0,y.modalRegisterBodyOverride)("wanted_notice",x)},97351:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaBloodScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(39473),p=n(98595),k=r.NinjaBloodScan=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data;return(0,e.createComponentVNode)(2,p.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{className:"Layout__content--flexColumn",children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S)]})})}return b}(),y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.vialIcons,m=l.noVialIcon,i=l.bloodOwnerNames,h=l.bloodOwnerSpecies,V=l.bloodOwnerTypes,v=l.blockButtons,s=l.scanStates,g={blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"},N=["NoticeBox_red","NoticeBox","NoticeBox_blue"],x=[1,2,3];return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"\u041E\u0431\u0440\u0430\u0437\u0446\u044B",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0442\u0440\u0438 \u043E\u0431\u0440\u0430\u0437\u0446\u0430 \u043A\u0440\u043E\u0432\u0438. \u041C\u0430\u0448\u0438\u043D\u0430 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0430 \u043D\u0430 \u0440\u0430\u0431\u043E\u0442\u0443 \u0441 \u043A\u0440\u043E\u0432\u044C\u044E \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u0438 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u043C\u0438 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0432\u0430\u043C \u043A\u043B\u0430\u043D. \u0420\u0435\u0430\u0433\u0435\u043D\u0442\u044B \u0438\u043C \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0435 \u043D\u0435 \u043F\u0440\u0438\u043C\u0443\u0442\u0441\u044F \u0438\u043B\u0438 \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u043F\u0435\u0448\u043D\u044B\u043C",tooltipPosition:"bottom-start"}),children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"center",children:x.map(function(B,L){return(0,e.createComponentVNode)(2,o.FlexItem,{direction:"column",width:"33.3%",ml:L?2:0,children:[(0,e.createComponentVNode)(2,t.Section,{title:i[L]?"\u041A\u0440\u043E\u0432\u044C":"\u041D\u0435\u0442 \u0440\u0435\u0430\u0433\u0435\u043D\u0442\u0430",style:{"text-align":"left",background:"rgba(53, 94, 163, 0.5)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:N[s[L]],success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v?g.disabled:g.blue,height:"100%",width:"100%",disabled:v,onClick:function(){function T(){return f("vial_out",{button_num:L+1})}return T}(),children:[(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+(d[L]||m),style:{"margin-left":"3px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:i[L]||" - ",content:"\u0420\u0430\u0441\u0430: "+(h[L]||" - ")+"\n"+("\u0422\u0438\u043F \u043A\u0440\u043E\u0432\u0438: "+(V[L]||" - ")),position:"bottom"})]})})]},L)})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{className:v===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:v,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043A\u0440\u043E\u0432\u044C \u0438 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u0430\u0435\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043D\u0443\u044E \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043A\u043B\u0430\u043D\u0443.",tooltipPosition:"bottom",onClick:function(){function B(){return f("scan_blood")}return B}()})})]})})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.progressBar;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:"green",value:l,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",mt:1,children:l?"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 "+(l+"%"):"\u0420\u0435\u0436\u0438\u043C \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F"}),2)})})}},32989:function(I,r,n){"use strict";r.__esModule=!0,r.NinjaMindScan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NinjaMindScan=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:400,theme:"spider_clan",children:(0,e.createComponentVNode)(2,o.Window.Content,{className:"Layout__content--flexColumn",children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.occupantIcon,l=u.occupant_name,d=u.occupant_health,m=u.scanned_occupants,i=l==="none"?1:0;return(0,e.createComponentVNode)(2,t.Flex,{direction:"column",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",backgroundColor:"rgba(0, 0, 0, 0.4)",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0438 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435.",tooltipPosition:"left"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",shrink:1,alignContent:"left",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{shrink:1,alignContent:"left",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,width:"90px",align:"left",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},align:"left",children:(0,e.createVNode)(1,"img",null,null,1,{height:"128px",width:"128px",src:"data:image/jpeg;base64,"+f,style:{"margin-left":"-28px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,alignContent:"right",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_green",success:0,danger:0,align:"left",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0418\u043C\u044F",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0434\u043E\u0440\u043E\u0432\u044C\u0435",children:d})]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",mt:2.5,success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0421\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438 \u043F\u044B\u0442\u0430\u0435\u0442\u0441\u044F \u0434\u043E\u0431\u044B\u0442\u044C \u0438\u0437 \u0435\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0443\u044E \u043A\u043B\u0430\u043D\u0443 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("scan_occupant")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E",width:"250px",textAlign:"center",disabled:i,tooltip:"\u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E, \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u0438\u0437 \u043A\u0430\u043F\u0441\u0443\u043B\u044B",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("go_out")}return h}()}),(0,e.createComponentVNode)(2,t.Button,{className:i===0?"":"Button_disabled",content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",width:"250px",textAlign:"center",disabled:i,tooltip:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0441 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u043E\u043D \u0431\u044B\u043B \u043F\u043E\u0445\u0438\u0449\u0435\u043D. \u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0435\u0433\u043E \u0437\u0430\u043F\u0443\u0433\u0430\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u044D\u0442\u0438\u043C, \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u043D\u0435 \u0440\u0430\u0437\u0431\u043E\u043B\u0442\u0430\u043B \u043E \u0432\u0430\u0441.",tooltipPosition:"bottom-start",onClick:function(){function h(){return c("teleport_out")}return h}()})]})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u043F\u0438\u0441\u043E\u043A \u0443\u0436\u0435 \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0432\u0430\u043C\u0438 \u043B\u044E\u0434\u0435\u0439",align:"center",backgroundColor:"rgba(0, 0, 0, 0.4)",children:(0,e.createComponentVNode)(2,t.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:m.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Box,{children:h.scanned_occupant})})},h.scanned_occupant)})})})})]})}},41166:function(I,r,n){"use strict";r.__esModule=!0,r.NuclearBomb=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.NuclearBomb=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;return c.extended?(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Authorization",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Disk",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.authdisk?"eject":"id-card",selected:c.authdisk,content:c.diskname?c.diskname:"-----",tooltip:c.authdisk?"Eject Disk":"Insert Disk",onClick:function(){function u(){return C("auth")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auth Code",children:(0,e.createComponentVNode)(2,t.Button,{icon:"key",disabled:!c.authdisk,selected:c.authcode,content:c.codemsg,onClick:function(){function u(){return C("code")}return u}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Arming & Disarming",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Bolted to floor",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.anchored?"check":"times",selected:c.anchored,disabled:!c.authfull,content:c.anchored?"YES":"NO",onClick:function(){function u(){return C("toggle_anchor")}return u}()})}),c.authfull&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",children:(0,e.createComponentVNode)(2,t.Button,{icon:"stopwatch",content:c.time,disabled:!c.authfull,tooltip:"Set Timer",onClick:function(){function u(){return C("set_time")}return u}()})})||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Time Left",color:c.timer?"red":"",children:c.time+"s"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safety",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.safety?"check":"times",selected:c.safety,disabled:!c.authfull,content:c.safety?"ON":"OFF",tooltip:c.safety?"Disable Safety":"Enable Safety",onClick:function(){function u(){return C("toggle_safety")}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Arm/Disarm",children:(0,e.createComponentVNode)(2,t.Button,{icon:(c.timer,"bomb"),disabled:c.safety||!c.authfull,color:"red",content:c.timer?"DISARM THE NUKE":"ARM THE NUKE",onClick:function(){function u(){return C("toggle_armed")}return u}()})})]})})]})}):(0,e.createComponentVNode)(2,o.Window,{width:450,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Deployment",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Deploy Nuclear Device (will bolt device to floor)",onClick:function(){function u(){return C("deploy")}return u}()})})})})}return k}()},52416:function(I,r,n){"use strict";r.__esModule=!0,r.NumberInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(92986),p=n(72253),k=n(36036),y=n(98595),S=r.NumberInputModal=function(){function C(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.init_value,i=d.large_buttons,h=d.message,V=h===void 0?"":h,v=d.timeout,s=d.title,g=(0,p.useLocalState)(u,"input",m),N=g[0],x=g[1],B=function(){function A(E){E!==N&&x(E)}return A}(),L=function(){function A(E){E!==N&&x(E)}return A}(),T=140+Math.max(Math.ceil(V.length/3),V.length>0&&i?5:0);return(0,e.createComponentVNode)(2,y.Window,{title:s,width:270,height:T,children:[v&&(0,e.createComponentVNode)(2,a.Loader,{value:v}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function A(E){var w=window.event?E.which:E.keyCode;w===o.KEY_ENTER&&l("submit",{entry:N}),w===o.KEY_ESCAPE&&l("cancel")}return A}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:V})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,b,{input:N,onClick:L,onChange:B})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:N})})]})})})]})}return C}(),b=function(c,u){var f=(0,p.useBackend)(u),l=f.act,d=f.data,m=d.min_value,i=d.max_value,h=d.init_value,V=d.round_value,v=c.input,s=c.onClick,g=c.onChange,N=Math.round(v!==m?Math.max(v/2,m):i/2),x=v===m&&m>0||v===1;return(0,e.createComponentVNode)(2,k.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===m,icon:"angle-double-left",onClick:function(){function B(){return s(m)}return B}(),tooltip:v===m?"Min":"Min ("+m+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,k.RestrictedInput,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!V,minValue:m,maxValue:i,onChange:function(){function B(L,T){return g(T)}return B}(),onEnter:function(){function B(L,T){return l("submit",{entry:T})}return B}(),value:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===i,icon:"angle-double-right",onClick:function(){function B(){return s(i)}return B}(),tooltip:v===i?"Max":"Max ("+i+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:x,icon:"divide",onClick:function(){function B(){return s(N)}return B}(),tooltip:x?"Split":"Split ("+N+")"})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Button,{disabled:v===h,icon:"redo",onClick:function(){function B(){return s(h)}return B}(),tooltip:h?"Reset ("+h+")":"Reset"})})]})}},1218:function(I,r,n){"use strict";r.__esModule=!0,r.OperatingComputer=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(98595),p=n(36036),k=[["good","\u0412 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u0438"],["average","\u0411\u0435\u0437 \u0441\u043E\u0437\u043D\u0430\u043D\u0438\u044F"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u0435\u043D\u0438\u0435","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0435\u043D\u0438\u044F","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.OperatingComputer=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.hasOccupant,s=V.choice,g;return s?g=(0,e.createComponentVNode)(2,f):g=v?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,o.Window,{width:650,height:455,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Tabs,{children:[(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!s,icon:"user",onClick:function(){function N(){return h("choiceOff")}return N}(),children:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442"}),(0,e.createComponentVNode)(2,p.Tabs.Tab,{selected:!!s,icon:"cog",onClick:function(){function N(){return h("choiceOn")}return N}(),children:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438"})]})}),(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,scrollable:!0,children:g})})]})})})}return l}(),c=function(d,m){var i=(0,t.useBackend)(m),h=i.data,V=h.occupant;return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,p.Section,{fill:!0,title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0418\u043C\u044F",children:V.name}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[V.stat][0],children:k[V.stat][1]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u044F",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxHealth,value:V.health/V.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),y.map(function(v,s){return(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:v[0],children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:"100",value:V[v[1]]/100,ranges:S,children:(0,a.round)(V[v[1]])},s)},s)}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0422\u0435\u043C\u043F\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0442\u0435\u043B\u0430",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.maxTemp,value:V.bodyTemperature/V.maxTemp,color:b[V.temperatureSuitability+3],children:[(0,a.round)(V.btCelsius),"\xB0C, ",(0,a.round)(V.btFaren),"\xB0F"]})}),!!V.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,p.ProgressBar,{min:"0",max:V.bloodMax,value:V.bloodLevel/V.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[V.bloodPercent,"%, ",V.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",children:[V.pulse," \u0443\u0434/\u043C\u0438\u043D"]})],4)]})})}),(0,e.createComponentVNode)(2,p.Stack.Item,{children:(0,e.createComponentVNode)(2,p.Section,{title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438",level:"2",children:V.inSurgery?V.surgeries.map(function(v){var s=v.bodypartName,g=v.surgeryName,N=v.stepName;return(0,e.createComponentVNode)(2,p.Section,{title:s,level:"4",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F",children:g}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u044D\u0442\u0430\u043F",children:N})]})},s)}):(0,e.createComponentVNode)(2,p.Box,{color:"label",children:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 \u0434\u0430\u043D\u043D\u044B\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u043D\u0435 \u043F\u0440\u043E\u0432\u043E\u0434\u044F\u0442\u0441\u044F."})})})]})},u=function(){return(0,e.createComponentVNode)(2,p.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,p.Stack.Item,{grow:!0,align:"center",textAlign:"center",color:"label",children:[(0,e.createComponentVNode)(2,p.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."]})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.verbose,s=V.health,g=V.healthAlarm,N=V.oxy,x=V.oxyAlarm,B=V.crit;return(0,e.createComponentVNode)(2,p.LabeledList,{children:[(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u0414\u0438\u043D\u0430\u043C\u0438\u043A",children:(0,e.createComponentVNode)(2,p.Button,{selected:v,icon:v?"toggle-on":"toggle-off",content:v?"\u0412\u043A\u043B\u044E\u0447\u0451\u043D":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D",onClick:function(){function L(){return h(v?"verboseOff":"verboseOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:s,icon:s?"toggle-on":"toggle-off",content:s?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(s?"healthOff":"healthOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:g,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("health_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:N,icon:N?"toggle-on":"toggle-off",content:N?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(N?"oxyOff":"oxyOn")}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041F\u043E\u0440\u043E\u0433 \u043E\u043F\u043E\u0432\u0435\u0449\u0435\u043D\u0438\u044F \u043E \u0434\u044B\u0445\u0430\u043D\u0438\u0438",children:(0,e.createComponentVNode)(2,p.Knob,{bipolar:!0,minValue:-100,maxValue:100,value:x,stepPixelSize:5,ml:"0",onChange:function(){function L(T,A){return h("oxy_adj",{new:A})}return L}()})}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"\u041E\u043F\u043E\u0432\u0435\u0449\u0430\u0442\u044C \u043E \u043A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:(0,e.createComponentVNode)(2,p.Button,{selected:B,icon:B?"toggle-on":"toggle-off",content:B?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function L(){return h(B?"critOff":"critOn")}return L}()})})]})}},46892:function(I,r,n){"use strict";r.__esModule=!0,r.Orbit=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);function k(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=y(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[V++]}}}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 y(m,i){if(m){if(typeof m=="string")return S(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?S(m,i):void 0}}function S(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);hh},u=function(i,h){var V=i.name,v=h.name;if(!V||!v)return 0;var s=V.match(b),g=v.match(b);if(s&&g&&V.replace(b,"")===v.replace(b,"")){var N=parseInt(s[1],10),x=parseInt(g[1],10);return N-x}return c(V,v)},f=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.searchText,g=i.source,N=i.title,x=g.filter(C(s));return x.sort(u),g.length>0&&(0,e.createComponentVNode)(2,o.Section,{title:N+" - ("+g.length+")",children:x.map(function(B){return(0,e.createComponentVNode)(2,o.Button,{content:B.name,onClick:function(){function L(){return v("orbit",{ref:B.ref})}return L}()},B.name)})})},l=function(i,h){var V=(0,t.useBackend)(h),v=V.act,s=i.color,g=i.thing;return(0,e.createComponentVNode)(2,o.Button,{color:s,onClick:function(){function N(){return v("orbit",{ref:g.ref})}return N}(),children:g.name})},d=r.Orbit=function(){function m(i,h){for(var V=(0,t.useBackend)(h),v=V.act,s=V.data,g=s.alive,N=s.antagonists,x=s.highlights,B=s.auto_observe,L=s.dead,T=s.ghosts,A=s.misc,E=s.npcs,w=(0,t.useLocalState)(h,"searchText",""),O=w[0],M=w[1],P={},F=k(N),R;!(R=F()).done;){var U=R.value;P[U.antag]===void 0&&(P[U.antag]=[]),P[U.antag].push(U)}var j=Object.entries(P);j.sort(function(K,$){return c(K[0],$[0])});var W=function(){function K($){for(var ne=0,Y=[j.map(function(oe){var re=oe[0],Z=oe[1];return Z}),x,g,T,L,E,A];ne0&&(0,e.createComponentVNode)(2,o.Section,{title:"Antagonists",children:j.map(function(K){var $=K[0],ne=K[1];return(0,e.createComponentVNode)(2,o.Section,{title:$,level:2,children:ne.filter(C(O)).sort(u).map(function(Y){return(0,e.createComponentVNode)(2,l,{color:"bad",thing:Y},Y.name)})},$)})}),x.length>0&&(0,e.createComponentVNode)(2,f,{title:"Highlights",source:x,searchText:O,color:"teal"}),(0,e.createComponentVNode)(2,o.Section,{title:"Alive - ("+g.length+")",children:g.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"good",thing:K},K.name)})}),(0,e.createComponentVNode)(2,o.Section,{title:"Ghosts - ("+T.length+")",children:T.filter(C(O)).sort(u).map(function(K){return(0,e.createComponentVNode)(2,l,{color:"grey",thing:K},K.name)})}),(0,e.createComponentVNode)(2,f,{title:"Dead",source:L,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"NPCs",source:E,searchText:O}),(0,e.createComponentVNode)(2,f,{title:"Misc",source:A,searchText:O})]})})}return m}()},15421:function(I,r,n){"use strict";r.__esModule=!0,r.OreRedemption=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=n(9394);function y(i){if(i==null)throw new TypeError("Cannot destructure "+i)}var S=(0,k.createLogger)("OreRedemption"),b=function(h){return h.toLocaleString("en-US")+" pts"},C=r.OreRedemption=function(){function i(h,V){return(0,e.createComponentVNode)(2,p.Window,{width:490,height:750,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,c,{height:"100%"})}),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.id,x=g.points,B=g.disk,L=Object.assign({},(y(h),h));return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({},L,{children:[(0,e.createComponentVNode)(2,o.Box,{color:"average",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle",mr:"0.5rem"}),"This machine only accepts ore. Gibtonite is not accepted."]}),(0,e.createComponentVNode)(2,o.Divider),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID card",children:N?(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,verticalAlign:"middle",icon:"eject",content:N.name,tooltip:"Ejects the ID card.",onClick:function(){function T(){return s("eject_id")}return T}(),style:{"white-space":"pre-wrap"}}):(0,e.createComponentVNode)(2,o.Button,{icon:"sign-in-alt",content:"Insert",tooltip:"Hold the ID card in your hand to insert.",onClick:function(){function T(){return s("insert_id")}return T}()})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Current Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.points)})}),N&&(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Total Mining Points",children:(0,e.createComponentVNode)(2,o.Box,{bold:!0,children:b(N.total_points)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Unclaimed Points",color:x>0?"good":"grey",bold:x>0&&"good",children:b(x)}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!N,icon:"hand-holding-usd",content:"Claim",onClick:function(){function T(){return s("claim")}return T}()})})]}),(0,e.createComponentVNode)(2,o.Divider),B?(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Design disk",children:(0,e.createComponentVNode)(2,o.Button,{selected:!0,bold:!0,icon:"eject",content:B.name,tooltip:"Ejects the design disk.",onClick:function(){function T(){return s("eject_disk")}return T}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Stored design",children:(0,e.createComponentVNode)(2,o.Box,{color:B.design&&(B.compatible?"good":"bad"),children:B.design||"N/A"})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:!B.design||!B.compatible,icon:"upload",content:"Download",tooltip:"Downloads the design on the disk into the machine.",onClick:function(){function T(){return s("download")}return T}()})})]}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No design disk inserted."})]})))},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.sheets,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,height:"20%",children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Sheets",columns:[["Available","25%"],["Ore Value","15%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,d,{ore:B},B.id)})]})))})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.alloys,x=Object.assign({},(y(h),h));return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Section,Object.assign({fill:!0,scrollable:!0,className:"OreRedemption__Ores",p:"0"},x,{children:[(0,e.createComponentVNode)(2,l,{title:"Alloys",columns:[["Recipe","50%"],["Available","11%"],["Smelt","20%"]]}),N.map(function(B){return(0,e.createComponentVNode)(2,m,{ore:B},B.id)})]})))})},l=function(h,V){var v;return(0,e.createComponentVNode)(2,o.Box,{className:"OreHeader",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:h.title}),(v=h.columns)==null?void 0:v.map(function(s){return(0,e.createComponentVNode)(2,o.Stack.Item,{basis:s[1],textAlign:"center",color:"label",bold:!0,children:s[0]},s)})]})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;if(!(g.value&&g.amount<=0&&!(["metal","glass"].indexOf(g.id)>-1)))return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"45%",align:"middle",children:(0,e.createComponentVNode)(2,o.Stack,{align:"center",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{className:(0,a.classes)(["materials32x32",g.id])}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:g.name})]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",children:g.value}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})},m=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=h.ore;return(0,e.createComponentVNode)(2,o.Box,{className:"SheetLine",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"7%",align:"middle",children:(0,e.createComponentVNode)(2,o.Box,{className:(0,a.classes)(["alloys32x32",g.id])})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"30%",textAlign:"middle",align:"center",children:g.name}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"35%",textAlign:"middle",color:g.amount>=1?"good":"gray",align:"center",children:g.description}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"10%",textAlign:"center",color:g.amount>=1?"good":"gray",bold:g.amount>=1,align:"center",children:g.amount.toLocaleString("en-US")}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:"20%",textAlign:"center",align:"center",lineHeight:"32px",children:(0,e.createComponentVNode)(2,o.NumberInput,{width:"40%",value:0,minValue:0,maxValue:Math.min(g.amount,50),stepPixelSize:6,onChange:function(){function N(x,B){return s(g.value?"sheet":"alloy",{id:g.id,amount:B})}return N}()})})]})})}},30373:function(I,r,n){"use strict";r.__esModule=!0,r.PAI=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(70752),y=function(C){var c;try{c=k("./"+C+".js")}catch(f){if(f.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",C);throw f}var u=c[C];return u||(0,p.routingError)("missingExport",C)},S=r.PAI=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.app_template,m=l.app_icon,i=l.app_title,h=y(d);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:m,mr:1}),i,d!=="pai_main_menu"&&(0,e.createComponentVNode)(2,t.Button,{ml:2,content:"Home",icon:"arrow-up",onClick:function(){function V(){return f("MASTER_back")}return V}()})]}),p:1,children:(0,e.createComponentVNode)(2,h)})})})}return b}()},85175:function(I,r,n){"use strict";r.__esModule=!0,r.PDA=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(71253),k=n(59395),y=function(u){var f;try{f=k("./"+u+".js")}catch(d){if(d.code==="MODULE_NOT_FOUND")return(0,p.routingError)("notFound",u);throw d}var l=f[u];return l||(0,p.routingError)("missingExport",u)},S=r.PDA=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app,h=m.owner;if(!h)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:105,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:"No user data found. Please swipe an ID card."})})});var V=y(i.template);return(0,e.createComponentVNode)(2,o.Window,{width:600,height:650,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,b)}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,p:1,pb:0,title:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:i.icon,mr:1}),i.name]}),children:(0,e.createComponentVNode)(2,V)})}),(0,e.createComponentVNode)(2,t.Stack.Item,{mt:7.5,children:(0,e.createComponentVNode)(2,C)})]})})})}return c}(),b=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.idInserted,h=m.idLink,V=m.stationTime,v=m.cartridge_name,s=m.request_cartridge_name;return(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{ml:.5,children:(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",color:"transparent",onClick:function(){function g(){return d("Authenticate")}return g}(),content:i?h:"No ID Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject")}return g}(),content:v?["Eject "+v]:"No Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sd-card",color:"transparent",onClick:function(){function g(){return d("Eject_Request")}return g}(),content:s?["Eject "+s]:"No Request Cartridge Inserted"})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,textAlign:"right",bold:!0,mr:1,mt:.5,children:V})]})},C=function(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.app;return(0,e.createComponentVNode)(2,t.Box,{height:"45px",className:"PDA__footer",backgroundColor:"#1b1b1b",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[!!i.has_back&&(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"33%",mr:-.5,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.has_back?"white":"disabled",icon:"arrow-alt-circle-left-o",onClick:function(){function h(){return d("Back")}return h}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:i.has_back?"33%":"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,className:"PDA__footer__button",color:"transparent",iconColor:i.is_home?"disabled":"white",icon:"home",onClick:function(){function h(){d("Home")}return h}()})})]})})}},38280:function(I,r,n){"use strict";r.__esModule=!0,r.PDAPainter=r.PDAColorRow=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=r.PDAPainter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.statusLabel,l=u.pdaTypes,d=u.hasPDA,m=u.pdaIcon,i=u.pdaIconState,h=u.pdaOwnerName,V=u.pdaJobName;return(0,e.createComponentVNode)(2,t.Window,{width:545,height:350,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Flex,{spacing:1,direction:"row",height:"100%",flex:"1",children:[(0,e.createComponentVNode)(2,o.Flex.Item,{width:24,shrink:0,children:[(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0435\u0435",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:d?"eject":"exclamation-triangle",selected:d,content:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C":"-----",tooltip:d?"\u0418\u0437\u0432\u043B\u0435\u0447\u044C PDA":"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C PDA",tooltipPosition:"left",onClick:function(){function v(){return c(d?"eject_pda":"insert_pda")}return v}()}),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:h||"\u041D/\u0414"}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0414\u043E\u043B\u0436\u043D\u043E\u0441\u0442\u044C",children:V||"\u041D/\u0414"})]})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Flex,{height:"100%",direction:"column",flex:"1",children:(0,e.createComponentVNode)(2,o.Flex.Item,{children:[(0,e.createComponentVNode)(2,o.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,o.DmIcon,{height:"160px",icon:m,icon_state:i,style:{"-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"},align:"middle"})}),(0,e.createComponentVNode)(2,o.LabeledList,{m:"5px",children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u0442\u0430\u0442\u0443\u0441",children:f})}),(0,e.createComponentVNode)(2,o.Button.Confirm,{m:"5px",fluid:!0,disabled:!d,content:"\u0421\u0442\u0435\u0440\u0435\u0442\u044C PDA",confirmContent:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C?",textAlign:"left",color:"red",tooltip:"C\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0442\u0435\u043B\u0435\u0444\u043E\u043D \u043D\u0430 \u0437\u0430\u0432\u043E\u0434\u0441\u043A\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltipPosition:"top",onClick:function(){function v(){return c("erase_pda")}return v}()})]})})})]}),(0,e.createComponentVNode)(2,o.Flex.Item,{width:27,children:(0,e.createComponentVNode)(2,o.Flex,{direction:"column",height:"100%",flex:"1",children:(0,e.createComponentVNode)(2,o.Section,{title:"\u0426\u0432\u0435\u0442 PDA",flexGrow:"1",scrollable:!0,fill:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:Object.keys(l).map(function(v){return(0,e.createComponentVNode)(2,k,{selectedPda:v,selectedPdaIcon:l[v][0]},v)})})})})})]})})})}return y}(),k=r.PDAColorRow=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.hasPDA,l=u.pdaIcon,d=S.selectedPda;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{icon:l,icon_state:d,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:(0,e.createComponentVNode)(2,o.Button.Confirm,{fluid:!0,disabled:!f,icon:d,content:d,confirmContent:"\u041F\u043E\u043A\u0440\u0430\u0441\u0438\u0442\u044C?",textAlign:"left",onClick:function(){function m(){return c("choose_pda",{selectedPda:d})}return m}()})})]})}return y}()},68654:function(I,r,n){"use strict";r.__esModule=!0,r.Pacman=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(49968),k=r.Pacman=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.broken,l=u.anchored,d=u.active,m=u.fuel_type,i=u.fuel_usage,h=u.fuel_stored,V=u.fuel_cap,v=u.is_ai,s=u.tmp_current,g=u.tmp_max,N=u.tmp_overheat,x=u.output_max,B=u.power_gen,L=u.output_set,T=u.has_fuel,A=h/V,E=s/g,w=L*B,O=Math.round(h/i),M=Math.round(O/60),P=O>120?M+" minutes":O+" seconds";return(0,e.createComponentVNode)(2,o.Window,{width:500,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(f||!l)&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:[!!f&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator is malfunctioning!"}),!f&&!l&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"The generator needs to be anchored to the floor with a wrench."})]}),!f&&!!l&&(0,e.createVNode)(1,"div",null,[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:d?"power-off":"times",content:d?"On":"Off",tooltip:"Toggles the generator on/off. Requires fuel.",tooltipPosition:"left",disabled:!T,selected:d,onClick:function(){function F(){return c("toggle_power")}return F}()}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",className:"ml-1",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power setting",children:[(0,e.createComponentVNode)(2,t.NumberInput,{value:L,minValue:1,maxValue:x,step:1,className:"mt-1",onDrag:function(){function F(R,U){return c("change_power",{change_power:U})}return F}()}),"(",(0,p.formatPower)(w),")"]})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:E,ranges:{green:[-1/0,.33],orange:[.33,.66],red:[.66,1/0]},children:[s," \u2103"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:[N>50&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"CRITICAL OVERHEAT!"}),N>20&&N<=50&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"WARNING: Overheating!"}),N>1&&N<=20&&(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:"Temperature High"}),N===0&&(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Optimal"})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Fuel",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"eject",content:"Eject Fuel",tooltip:"Ejects fuel. Generator needs to be offline.",tooltipPosition:"left",disabled:d||v||!T,onClick:function(){function F(){return c("eject_fuel")}return F}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Type",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel level",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:A,ranges:{red:[-1/0,.33],orange:[.33,.66],green:[.66,1/0]},children:[Math.round(h/1e3)," dm\xB3"]})})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel usage",children:[i/1e3," dm\xB3/s"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fuel depletion",children:[!!T&&(i?P:"N/A"),!T&&(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Out of fuel"})]})]})})]})})],4)]})})}return y}()},33388:function(I,r,n){"use strict";r.__esModule=!0,r.PersonalCrafting=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PersonalCrafting=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.busy,d=f.category,m=f.display_craftable_only,i=f.display_compact,h=f.prev_cat,V=f.next_cat,v=f.subcategory,s=f.prev_subcat,g=f.next_subcat;return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!l&&(0,e.createComponentVNode)(2,t.Dimmer,{fontSize:"32px",children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cog",spin:1})," Crafting..."]}),(0,e.createComponentVNode)(2,t.Section,{title:d,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"Show Craftable Only",icon:m?"check-square-o":"square-o",selected:m,onClick:function(){function N(){return u("toggle_recipes")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Compact Mode",icon:i?"check-square-o":"square-o",selected:i,onClick:function(){function N(){return u("toggle_compact")}return N}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:h,icon:"arrow-left",onClick:function(){function N(){return u("backwardCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:V,icon:"arrow-right",onClick:function(){function N(){return u("forwardCat")}return N}()})]}),v&&(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:s,icon:"arrow-left",onClick:function(){function N(){return u("backwardSubCat")}return N}()}),(0,e.createComponentVNode)(2,t.Button,{content:g,icon:"arrow-right",onClick:function(){function N(){return u("forwardSubCat")}return N}()})]}),i?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return u("make",{make:i.ref})}return h}()}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)}),!l&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,children:[(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),i.catalyst_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.catalyst_text,content:"Catalysts",color:"transparent"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:i.req_text,content:"Requirements",color:"transparent"}),i.tool_text&&(0,e.createComponentVNode)(2,t.Button,{tooltip:i.tool_text,content:"Tools",color:"transparent"})]},i.name)})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.display_craftable_only,d=f.can_craft,m=f.cant_craft;return(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[d.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",onClick:function(){function h(){return u("make",{make:i.ref})}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)}),!l&&m.map(function(i){return(0,e.createComponentVNode)(2,t.Section,{title:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"hammer",content:"Craft",disabled:!0}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[i.catalyst_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Catalysts",children:i.catalyst_text}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Requirements",children:i.req_text}),i.tool_text&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tools",children:i.tool_text})]})},i.name)})]})}},56150:function(I,r,n){"use strict";r.__esModule=!0,r.Photocopier=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(88510),k=n(64795),y=n(25328);function S(f,l){var d=typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(d)return(d=d.call(f)).next.bind(d);if(Array.isArray(f)||(d=b(f))||l&&f&&typeof f.length=="number"){d&&(f=d);var m=0;return function(){return m>=f.length?{done:!0}:{done:!1,value:f[m++]}}}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 b(f,l){if(f){if(typeof f=="string")return C(f,l);var d={}.toString.call(f).slice(8,-1);return d==="Object"&&f.constructor&&(d=f.constructor.name),d==="Map"||d==="Set"?Array.from(f):d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d)?C(f,l):void 0}}function C(f,l){(l==null||l>f.length)&&(l=f.length);for(var d=0,m=Array(l);df?this.substring(0,f)+"...":this};var c=function(l,d){d===void 0&&(d="");var m=(0,y.createSearch)(d,function(i){return i.altername});return(0,k.flow)([(0,p.filter)(function(i){return i==null?void 0:i.altername}),d&&(0,p.filter)(m),(0,p.sortBy)(function(i){return i.id})])(l)},u=r.Photocopier=function(){function f(l,d){for(var m=(0,a.useBackend)(d),i=m.act,h=m.data,V=h.copies,v=h.maxcopies,s=(0,a.useLocalState)(d,"searchText",""),g=s[0],N=s[1],x=c((0,p.sortBy)(function(P){return P.category})(h.forms||[]),g),B=[],L=S(x),T;!(T=L()).done;){var A=T.value;B.includes(A.category)||B.push(A.category)}var E=(0,a.useLocalState)(d,"number",0),w=E[0],O=E[1],M;return h.category===""?M=x:M=x.filter(function(P){return P.category===h.category}),(0,e.createComponentVNode)(2,o.Window,{width:550,height:575,theme:h.ui_theme,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"40%",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u0421\u0442\u0430\u0442\u0443\u0441",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mt:.3,color:"grey",children:"\u0417\u0430\u0440\u044F\u0434 \u0442\u043E\u043D\u0435\u0440\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.ProgressBar,{minValue:0,maxValue:30,value:h.toner})})]}),(0,e.createComponentVNode)(2,t.Stack,{mt:1,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",mb:.3,color:"grey",children:"\u0424\u043E\u0440\u043C\u0430:"}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",textAlign:"center",bold:!0,children:h.form_id===""?"\u041D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u0430":h.form_id})]}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:1,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.copyitem&&!h.mob,icon:h.copyitem||h.mob?"eject":"times",content:h.copyitem?h.copyitem:h.mob?"\u0416\u043E\u043F\u0430 "+h.mob+"!":"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430",onClick:function(){function P(){return i("removedocument")}return P}()})})}),(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",disabled:!h.folder,icon:h.folder?"eject":"times",content:h.folder?h.folder:"\u0421\u043B\u043E\u0442 \u0434\u043B\u044F \u043F\u0430\u043F\u043A\u0438",onClick:function(){function P(){return i("removefolder")}return P}()})})})]}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435",children:[(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"print",disabled:h.toner===0||h.form===null,content:"\u041F\u0435\u0447\u0430\u0442\u044C",onClick:function(){function P(){return i("print_form")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"image",disabled:h.toner<5,content:"\u0424\u043E\u0442\u043E",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0444\u043E\u0442\u043E \u0441 \u0411\u0430\u0437\u044B \u0414\u0430\u043D\u043D\u044B\u0445",onClick:function(){function P(){return i("ai_pic")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"copy",content:"\u041A\u043E\u043F\u0438\u044F",disabled:h.toner===0||!h.copyitem&&!h.mob,onClick:function(){function P(){return i("copy")}return P}()})}),!!h.isAI&&(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,width:"100%",ml:"5px",mt:"3px",children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,textAlign:"center",icon:"i-cursor",content:"\u0422\u0435\u043A\u0441\u0442",tooltip:"\u0420\u0430\u0441\u043F\u0435\u0447\u0430\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",disabled:h.toner===0,onClick:function(){function P(){return i("ai_text")}return P}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:1.5,mt:1.2,width:"50%",color:"grey",children:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E:"}),(0,e.createComponentVNode)(2,t.Slider,{mt:.75,width:"50%",animated:!0,minValue:1,maxValue:v,value:V,stepPixelSize:10,onChange:function(){function P(F,R){return i("copies",{new:R})}return P}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"\u0411\u044E\u0440\u043E\u043A\u0440\u0430\u0442\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:-.5,icon:"chevron-right",color:"transparent",content:"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",selected:!h.category,onClick:function(){function P(){return i("choose_category",{category:""})}return P}()})}),B.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"chevron-right",mb:-.5,color:"transparent",content:P,selected:h.category===P,onClick:function(){function F(){return i("choose_category",{category:P})}return F}()},P)},P)})]})})})]})}),(0,e.createComponentVNode)(2,t.Stack.Item,{basis:"60%",children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:h.category||"\u0412\u0441\u0435 \u0444\u043E\u0440\u043C\u044B",buttons:(0,e.createComponentVNode)(2,t.Input,{mr:18.5,width:"100%",placeholder:"\u041F\u043E\u0438\u0441\u043A \u0444\u043E\u0440\u043C\u044B",onInput:function(){function P(F,R){return N(R)}return P}()}),children:M.map(function(P){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mb:.5,color:"transparent",content:P.altername.trimLongStr(37),tooltip:P.altername,selected:h.form_id===P.id,onClick:function(){function F(){return i("choose_form",{path:P.path,id:P.id})}return F}()})},P.path)})})})]})})})}return f}()},49177:function(I,r,n){"use strict";r.__esModule=!0,r.PlayerPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["checked"];function k(u,f){if(u==null)return{};var l={};for(var d in u)if({}.hasOwnProperty.call(u,d)){if(f.includes(d))continue;l[d]=u[d]}return l}var y=function(f,l){var d,m={ghost:["ghost","dead","observer"],human:["human","carbon"],monkey:["monkey"],cyborg:["cyborg","robot","borg"],ai:["ai","artificial intelligence"],animal:["simple","animal"]};return((d=m[l])==null?void 0:d.some(function(i){return f.toLowerCase().includes(i)}))||!1},S=r.PlayerPanel=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(){function V(v,s){s===void 0&&(s={}),m(v,Object.assign({selectedPlayerCkey:i.ckey},s))}return V}();return i.ckey?(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - "+i.ckey,width:800,height:950,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return h("refresh")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Old Panel",onClick:function(){function V(){return h("old_pp")}return V}()})]}),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})})}):(0,e.createComponentVNode)(2,o.Window,{title:"Options Panel - Error",width:800,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"No valid player data found. Please refresh or select a valid player."}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function V(){return m("refresh")}return V}()})]})})})}return u}(),b=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=(0,a.useLocalState)(l,"show_ip",!1),V=h[0],v=h[1],s=(0,a.useLocalState)(l,"show_cid",!1),g=s[0],N=s[1],x=function(L,T){T===void 0&&(T={}),m(L,Object.assign({selectedPlayerCkey:i.ckey},T))};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Player Information",children:(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Character:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.characterName}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Ckey:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.ckey})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Rank:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.rank}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Discord:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.discord})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Account Registered:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.accountRegistered}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Playtime as Crew:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:i.playtime,onClick:function(){function B(){return x("playtime")}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"CID:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:g?i.CID:"Hidden",onClick:function(){function B(){return N(!g)}return B}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"IP Address:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:V?i.ipAddress:"Hidden",onClick:function(){function B(){return v(!V)}return B}()})})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Mob Type:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.mobType}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Byond Version:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:i.byondVersion})]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By CID:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by CID",color:"blue",onClick:function(){function B(){return x("relatedbycid")}return B}()}),(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Related By IP:"}),(0,e.createComponentVNode)(2,t.Button,{content:"Related by IP",color:"blue",onClick:function(){function B(){return x("relatedbyip")}return B}()})]})]})})})},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data,h=function(g,N){N===void 0&&(N={}),m(g,Object.assign({selectedPlayerCkey:i.ckey},N))},V=function(g){return i.adminRights.toLowerCase().includes(g)||!1},v=function(g){i.ckey&&h("toggleMute",{type:g})};return(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Punish",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"times",content:"KICK",color:"red",onClick:function(){function s(){return h("kick")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"JOBBAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("jobban")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bullseye",content:"ADD TO WATCHLIST",color:"red",onClick:function(){function s(){return h("watchlist")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("ban")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ban",content:"APPEARANCE BAN",color:"red",disabled:!V("ban"),onClick:function(){function s(){return h("appban")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"bolt",content:"SMITE",color:"red",hidden:!V("event"),onClick:function(){function s(){return h("smite")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"hand-holding-heart",content:"BLESS",onClick:function(){function s(){return h("bless")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Message",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"PM",onClick:function(){function s(){return h("pm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment-alt",content:"NARRATE",onClick:function(){function s(){return h("narrate")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SEND ALERT",onClick:function(){function s(){return h("sendalert")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"SM",disabled:!V("event"),onClick:function(){function s(){return h("sm")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"crown",content:"MAN UP",onClick:function(){function s(){return h("manup")}return s}()}):null,V("sound")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"music",content:"PLAY SOUND TO",onClick:function(){function s(){return h("playsoundto")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Movement",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"FLW",onClick:function(){function s(){return h("flw")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"download",content:"GET",onClick:function(){function s(){return h("get")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paper-plane",content:"SEND",onClick:function(){function s(){return h("send")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"running",content:"JUMPTO",onClick:function(){function s(){return h("jumpto")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"sign-out-alt",content:"LOBBY",onClick:function(){function s(){return h("lobby")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"columns",content:"SEND TO CRYO",onClick:function(){function s(){return h("cryo")}return s}()}):null]})]})})}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Info",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"book",content:"LOGS",onClick:function(){function s(){return h("logs")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"clipboard",content:"NOTES",onClick:function(){function s(){return h("notes")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"PLAYTIME",onClick:function(){function s(){return h("playtime")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"globe",content:"GEOIP",onClick:function(){function s(){return h("geoip")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user-secret",content:"TRAITOR PANEL",onClick:function(){function s(){return h("tp")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"code",content:"VV",onClick:function(){function s(){return h("vv")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"database",content:"CHECK GLOBAL CCDB",onClick:function(){function s(){return h("ccdb")}return s}()}):null]})]})})})]}),(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("spawn")?(0,e.createComponentVNode)(2,t.Section,{title:"Transformation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"ghost",content:"MAKE GHOST",color:y(i.mobType,"ghost")?"good":"",onClick:function(){function s(){return h("makeghost")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"user",content:"MAKE HUMAN",color:y(i.mobType,"human")?"good":"",onClick:function(){function s(){return h("makehuman")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"paw",content:"MAKE MONKEY",color:y(i.mobType,"monkey")?"good":"",onClick:function(){function s(){return h("makemonkey")}return s}()})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"robot",content:"MAKE CYBORG",color:y(i.mobType,"cyborg")?"good":"",onClick:function(){function s(){return h("makeborg")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"MAKE AI",color:y(i.mobType,"ai")?"good":"",onClick:function(){function s(){return h("makeai")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microchip",content:"ANIMALIZE",color:y(i.mobType,"animal")?"good":"",onClick:function(){function s(){return h("makeanimal")}return s}()})]})]})}):null,y(i.mobType,"ghost")?(0,e.createComponentVNode)(2,t.Section,{title:"Observer",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"TOGGLE RESPAWNABILITY",onClick:function(){function s(){return h("respawnability")}return s}()})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"staff-snake",content:"RE-INCARNATE",disabled:!V("spawn"),onClick:function(){function s(){return h("reviveghost")}return s}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Health",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"heart",content:"HEALTHSCAN",onClick:function(){function s(){return h("healthscan")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"GIVE DISEASE",onClick:function(){function s(){return h("giveDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE DISEASE",onClick:function(){function s(){return h("cureDisease")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CURE ALL BAD DISEASES",onClick:function(){function s(){return h("cureAllDiseases")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"CHEMSCAN",onClick:function(){function s(){return h("chemscan")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"plus",content:"REJUVINATE",disabled:!V("rejuvinate"),onClick:function(){function s(){return h("aheal")}return s}()}),V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"dna",content:"SHOW DNA",onClick:function(){function s(){return h("mutate")}return s}()}):null]})]})})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{children:[V("admin")?(0,e.createComponentVNode)(2,t.Section,{title:"Mob Manipulation",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pencil",content:"MOB RANDOM NAME",onClick:function(){function s(){return h("randomizename")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"SELECT EQUIPMENT",disabled:!V("event"),onClick:function(){function s(){return h("selectequip")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"microphone",content:"CHANGE VOICE",onClick:function(){function s(){return h("changevoice")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO ADMIN",onClick:function(){function s(){return h("mirroradmin")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"pen",content:"CHARACTER RANDOM NAME",onClick:function(){function s(){return h("userandomname")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eraser",content:"ERASE FLAVOR",onClick:function(){function s(){return h("eraseflavortext")}return s}()}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"shirt",content:"CHECK CONTENTS",onClick:function(){function s(){return h("checkcontents")}return s}()}),V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"circle-user",content:"MIRROR UI TO PLAYER",onClick:function(){function s(){return h("mirrorplayer")}return s}()}):null]})]})}):null,(0,e.createComponentVNode)(2,t.Section,{title:"Misc",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 1",onClick:function(){function s(){return h("thunderdome1")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME 2",onClick:function(){function s(){return h("thunderdome2")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"comment",content:"FORCESAY",onClick:function(){function s(){return h("forcesay")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"handcuffs",content:"PRISON",onClick:function(){function s(){return h("prison")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL RELEASE",onClick:function(){function s(){return h("contractor_release")}return s}()}):null,V("event")||V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"cookie",content:"SPAWN COOKIE",onClick:function(){function s(){return h("spawncookie")}return s}()}):null]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"gavel",content:"THUNDERDOME ADMIN",onClick:function(){function s(){return h("thunderdomeadmin")}return s}()}):null,V("event")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"eye",content:"THUNDERDOME OBSERVER",onClick:function(){function s(){return h("thunderdomeobserver")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"wheelchair-move",content:"AROOM WRAP",onClick:function(){function s(){return h("adminroom")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL START",onClick:function(){function s(){return h("contractor_start")}return s}()}):null,V("admin")?(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"SYNDI JAIL STOP",onClick:function(){function s(){return h("contractor_stop")}return s}()}):null,(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Some Admin Button",onClick:function(){function s(){return h("someadminbutton")}return s}()})]})]})})]})]}),(0,e.createComponentVNode)(2,t.Grid,{children:(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Mute Controls",children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{size:7,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ic,onClick:function(){function s(){return v("ic")}return s}(),content:"IC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.ooc,onClick:function(){function s(){return v("ooc")}return s}(),content:"OOC"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.pray,onClick:function(){function s(){return v("pray")}return s}(),content:"PRAY"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.emote,onClick:function(){function s(){return v("emote")}return s}(),content:"EMOTE"})]}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:6,children:[(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.adminhelp,onClick:function(){function s(){return v("adminhelp")}return s}(),content:"ADMINHELP"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.deadchat,onClick:function(){function s(){return v("deadchat")}return s}(),content:"DEADCHAT"}),(0,e.createComponentVNode)(2,c,{fluid:!0,checked:i.muteStates.all,onClick:function(){function s(){return v("all")}return s}(),content:"ALL"})]})]})})})})]})},c=function(f){var l=f.checked,d=k(f,p);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({color:l?"red":"green",icon:l?"check-square-o":"square-o"},d)))}},94158:function(I,r,n){"use strict";r.__esModule=!0,r.PodTracking=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PodTracking=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.pods;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Position",children:[f.podx,", ",f.pody,", ",f.podz]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pilot",children:f.pilot}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Passengers",children:f.passengers})]})},f.name)})})})}return k}()},70857:function(I,r,n){"use strict";r.__esModule=!0,r.PollListPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.PollListPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.polls||{};return(0,e.createComponentVNode)(2,o.Window,{title:"Poll List Panel",width:700,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Poll List Panel",children:["Currently running polls Note when editing polls or their options changes are not saved until you press Sumbit Poll.",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"New Poll",onClick:function(){function f(){return C("newpoll")}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:f.question,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function l(){return C("editpoll",{poll_to_edit:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function l(){return C("deletepoll",{poll_to_delete:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Results",onClick:function(){function l(){return C("resultspoll",{poll_to_result:f.id})}return l}()}),(0,e.createComponentVNode)(2,t.Box,{children:f.description}),(0,e.createComponentVNode)(2,t.Divider)]},"poll")})})]})})})}return k}()},45736:function(I,r,n){"use strict";r.__esModule=!0,r.PollManagement=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollManagement=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=f.has_poll,m=f.poll_types,i=f.interval_types,h=(0,a.useLocalState)(C,"question",l.question),V=h[0],v=h[1],s=(0,a.useLocalState)(C,"poll_type",l.poll_type),g=s[0],N=s[1],x=(0,a.useLocalState)(C,"options_allowed",l.options_allowed),B=x[0],L=x[1],T=(0,a.useLocalState)(C,"admin_only",l.admin_only),A=T[0],E=T[1],w=(0,a.useLocalState)(C,"dont_show",l.dont_show),O=w[0],M=w[1],P=(0,a.useLocalState)(C,"allow_revoting",l.allow_revoting),F=P[0],R=P[1],U=(0,a.useLocalState)(C,"interval",l.interval),j=U[0],W=U[1],K=(0,a.useLocalState)(C,"duration",l.duration),$=K[0],ne=K[1],Y=(0,a.useLocalState)(C,"start_datetime",l.start_datetime),le=Y[0],de=Y[1],oe=(0,a.useLocalState)(C,"end_datetime",l.end_datetime),re=oe[0],Z=oe[1],ae=(0,a.useLocalState)(C,"subtitle",l.subtitle),J=ae[0],X=ae[1],Q=(0,a.useLocalState)(C,"minimum_playtime",l.minimum_playtime),q=Q[0],te=Q[1],fe=(0,a.useLocalState)(C,"run_duration",l.run_duration),ye=fe[0],pe=fe[1],Le=(0,a.useLocalState)(C,"run_start",l.run_start),D=Le[0],ie=Le[1],se=(0,a.useLocalState)(C,"clear_votes",l.clear_votes),Ce=se[0],he=se[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Management",width:600,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Poll Creation",children:[(0,e.createComponentVNode)(2,t.Box,{children:["Question:",(0,e.createComponentVNode)(2,t.Input,{width:40,placeholder:"Question goes here",value:V,onChange:function(){function ve(Be,we){return v(we)}return ve}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Box,{inline:!0,pl:1,children:"Choice:"}),(0,e.createComponentVNode)(2,t.Dropdown,{width:10,disabled:d,options:m,selected:g,onSelected:function(){function ve(Be){return N(Be)}return ve}()}),d&g!=="Multiple Choice"?null:(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Mult-choice options allowed:",(0,e.createComponentVNode)(2,t.NumberInput,{width:3,minValue:0,maxValue:100,value:B,onChange:function(){function ve(Be,we){return L(!B)}return ve}()})]}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Admin only",checked:A,onClick:function(){function ve(){return E(!A)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Don't show",checked:O,onClick:function(){function ve(){return M(!O)}return ve}()}),(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Allow revoting",checked:F,onClick:function(){function ve(){return R(!F)}return ve}()}),"Min. playtime to vote (in hours):",(0,e.createComponentVNode)(2,t.Box,{inline:!0,ml:1,children:(0,e.createComponentVNode)(2,t.NumberInput,{width:3,placeholder:"Number of hours",value:q,onChange:function(){function ve(Be,we){return te(we)}return ve}()})})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"50%",children:[(0,e.createComponentVNode)(2,t.Box,{children:"Duration"}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",py:1,content:ye?"Run for":"Run until",onClick:function(){function ve(){return pe(!ye)}return ve}()}),ye?(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:[(0,e.createComponentVNode)(2,t.NumberInput,{placeholder:"Amount number",width:3,minValue:0,maxValue:100,value:$,onChange:function(){function ve(Be,we){return ne(we)}return ve}()}),(0,e.createComponentVNode)(2,t.Dropdown,{options:i,selected:j,onSelected:function(){function ve(Be){return W(Be)}return ve}()})]}):(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:["Until:",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:re||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return Z(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Start"}),(0,e.createComponentVNode)(2,t.Button,{content:D?"Now":"At datetime",onClick:function(){function ve(){return ie(!D)}return ve}()}),D?null:(0,e.createComponentVNode)(2,t.Input,{width:15,placeholder:"YYYY-MM-DD HH:MM:SS",value:le||"1970-01-01 00:00:01",onChange:function(){function ve(Be,we){return de(we)}return ve}()})]})]}),(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:["Subtitle (Optional)",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.TextArea,{height:10,width:20,rows:"12",value:J,onChange:function(){function ve(Be,we){return X(we)}return ve}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:d?(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"Clear poll votes",onClick:function(){function ve(){return u("clear_poll_votes")}return ve}()}),l.poll_votes," players have voted"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Clear votes on edit",checked:Ce,onClick:function(){function ve(){return he(!Ce)}return ve}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:2,content:"Submit Poll",onClick:function(){function ve(){return u("submit_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})]}):(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{p:1,m:2,content:"Initliaze Question",onClick:function(){function ve(){return u("initialize_poll",{question:V,poll_type:g,options_allowed:B,admin_only:A,dont_show:O,allow_revoting:F,interval:j,duration:$,start_datetime:le,end_datetime:re,subtitle:J,poll_votes:q,run_duration:ye,run_start:D,clear_votes:Ce})}return ve}()})})})})]})]}),(0,e.createComponentVNode)(2,t.Section,{title:"Questions Manage",children:d?(0,e.createComponentVNode)(2,y):(0,e.createComponentVNode)(2,t.Box,{children:"First enter the poll question details and press Initialize Question. Then add poll options and press Submit Poll to save and create the question and options. No options are required for Text Reply polls."})})]})})}return S}(),y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.poll,d=l.options,m=(0,a.useLocalState)(C,"poll_type",null),i=m[0],h=m[1];return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Add Option",onClick:function(){function V(){return u("add_poll_option")}return V}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d.map(function(V){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Option "+V.num,children:[V.text,i==="Rating"?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value: ",V.min_val," | Maximum value:"," ",V.max_val,"Minimum description: ",V.desc_min,"Middle description: ",V.desc_mid,"Maximum description: ",V.desc_max]}):null,(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Edit",onClick:function(){function v(){return u("edit_poll_option",{option_to_edit:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Delete",onClick:function(){function v(){return u("delete_poll_option",{option_to_delete:V.id})}return v}()}),(0,e.createComponentVNode)(2,t.Divider)]},"option")})})})]})}},80378:function(I,r,n){"use strict";r.__esModule=!0,r.PollOptionPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(94798),p=n(98595),k=r.PollOptionPanel=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.poll_question,l=u.is_rating,d=u.option,m=(0,a.useLocalState)(b,"text",d.text),i=m[0],h=m[1],V=(0,a.useLocalState)(b,"default_percentage_calc",d.default_percentage_calc),v=V[0],s=V[1],g=(0,a.useLocalState)(b,"min_val",d.min_val),N=g[0],x=g[1],B=(0,a.useLocalState)(b,"max_val",d.max_val),L=B[0],T=B[1],A=(0,a.useLocalState)(b,"desc_min_check",d.desc_min_check),E=A[0],w=A[1],O=(0,a.useLocalState)(b,"desc_mid_check",d.desc_mid_check),M=O[0],P=O[1],F=(0,a.useLocalState)(b,"desc_max_check",d.desc_max_check),R=F[0],U=F[1],j=(0,a.useLocalState)(b,"desc_min_text",d.desc_min_text),W=j[0],K=j[1],$=(0,a.useLocalState)(b,"desc_mid_text",d.desc_min_text),ne=$[0],Y=$[1],le=(0,a.useLocalState)(b,"desc_max_text",d.desc_min_text),de=le[0],oe=le[1];return(0,e.createComponentVNode)(2,p.Window,{title:"Poll Option Panel",width:400,height:l?320:180,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{width:"100%",content:i,onChange:function(){function re(Z,ae){return h(ae)}return re}()})}),(0,e.createVNode)(1,"br"),l?(0,e.createComponentVNode)(2,t.Box,{children:["Minimum value",(0,e.createComponentVNode)(2,t.Input,{value:N}),"Maximum Value",(0,e.createComponentVNode)(2,t.Input,{value:L}),(0,e.createComponentVNode)(2,Table,{children:[(0,e.createComponentVNode)(2,Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Minimum description",checked:E,onClick:function(){function re(){return w(!E)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Middle description",checked:M,onClick:function(){function re(){return P(!M)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,o.ButtonCheckbox,{content:"Maximum description",checked:R,onClick:function(){function re(){return U(!R)}return re}()})})]}),(0,e.createComponentVNode)(2,Table.Row,{children:[(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:W,onEnter:function(){function re(Z,ae){return K(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:ne,onEnter:function(){function re(Z,ae){return Y(ae)}return re}()})}),(0,e.createComponentVNode)(2,Table.Cell,{children:(0,e.createComponentVNode)(2,t.Input,{value:de,onEnter:function(){function re(Z,ae){return oe(ae)}return re}()})})]})]}),(0,e.createVNode)(1,"br")]}):null,(0,e.createComponentVNode)(2,o.ButtonCheckbox,{checked:v,content:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u043F\u0446\u0438\u044E \u0432 \u0440\u0430\u0441\u0447\u0435\u0442 \u043F\u0440\u043E\u0446\u0435\u043D\u0442\u0430 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432 \u043E\u043F\u0440\u043E\u0441\u0430",onClick:function(){function re(){return s(!v)}return re}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,t.Button,{content:"Sumbit",onClick:function(){function re(){return c("submit_option",{text:i,default_percentage_calc:v,min_val:N,max_val:L,desc_min_check:E,desc_mid_check:M,desc_max_check:R,desc_min_text:W,desc_mid_text:ne,desc_max_text:de})}return re}()})]})})})}return y}()},84676:function(I,r,n){"use strict";r.__esModule=!0,r.PoolController=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=["tempKey"];function k(C,c){if(C==null)return{};var u={};for(var f in C)if({}.hasOwnProperty.call(C,f)){if(c.includes(f))continue;u[f]=C[f]}return u}var y={scalding:{label:"Scalding",color:"#FF0000",icon:"fa fa-arrow-circle-up",requireEmag:!0},warm:{label:"Warm",color:"#990000",icon:"fa fa-arrow-circle-up"},normal:{label:"Normal",color:null,icon:"fa fa-arrow-circle-right"},cool:{label:"Cool",color:"#009999",icon:"fa fa-arrow-circle-down"},frigid:{label:"Frigid",color:"#00CCCC",icon:"fa fa-arrow-circle-down",requireEmag:!0}},S=function(c,u){var f=c.tempKey,l=k(c,p),d=y[f];if(!d)return null;var m=(0,a.useBackend)(u),i=m.data,h=m.act,V=i.currentTemp,v=d.label,s=d.icon,g=f===V,N=function(){h("setTemp",{temp:f})};return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Button,Object.assign({selected:g,onClick:N},l,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:s}),v]})))},b=r.PoolController=function(){function C(c,u){for(var f=(0,a.useBackend)(u),l=f.data,d=l.emagged,m=l.currentTemp,i=y[m]||y.normal,h=i.label,V=i.color,v=[],s=0,g=Object.entries(y);s50?"battery-half":"battery-quarter")||V==="C"&&"bolt"||V==="F"&&"battery-full"||V==="M"&&"slash",color:V==="N"&&(v>50?"yellow":"red")||V==="C"&&"yellow"||V==="F"&&"green"||V==="M"&&"orange"}),(0,e.createComponentVNode)(2,S.Box,{inline:!0,width:"36px",textAlign:"right",children:(0,o.toFixed)(v)+"%"})],4)};d.defaultHooks=p.pureComponentHooks;var m=function(h){var V,v,s=h.status;switch(s){case"AOn":V=!0,v=!0;break;case"AOff":V=!0,v=!1;break;case"On":V=!1,v=!0;break;case"Off":V=!1,v=!1;break}var g=(v?"On":"Off")+(" ["+(V?"auto":"manual")+"]");return(0,e.createComponentVNode)(2,S.ColorBox,{color:v?"good":"bad",content:V?void 0:"M",title:g})};m.defaultHooks=p.pureComponentHooks},50992:function(I,r,n){"use strict";r.__esModule=!0,r.PrisonerImplantManager=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(3939),k=n(321),y=n(5485),S=n(98595),b=r.PrisonerImplantManager=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.loginState,i=d.prisonerInfo,h=d.chemicalInfo,V=d.trackingInfo,v;if(!m.logged_in)return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,y.LoginScreen)})});var s=[1,5,10];return(0,e.createComponentVNode)(2,S.Window,{theme:"security",width:500,height:850,children:[(0,e.createComponentVNode)(2,p.ComplexModal),(0,e.createComponentVNode)(2,S.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.LoginInfo),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Prisoner Points Manager System",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:i.name?"eject":"id-card",selected:i.name,content:i.name?i.name:"-----",tooltip:i.name?"Eject ID":"Insert ID",onClick:function(){function g(){return l("id_card")}return g}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Points",children:[i.points!==null?i.points:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"minus-square",disabled:i.points===null,content:"Reset",onClick:function(){function g(){return l("reset_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Point Goal",children:[i.goal!==null?i.goal:"-/-",(0,e.createComponentVNode)(2,t.Button,{ml:2,icon:"pen",disabled:i.goal===null,content:"Edit",onClick:function(){function g(){return(0,p.modalOpen)(u,"set_points")}return g}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{children:(0,e.createVNode)(1,"box",null,[(0,e.createTextVNode)("1 minute of prison time should roughly equate to 150 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Sentences should not exceed 5000 points."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Permanent prisoners should not be given a point goal."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("Prisoners who meet their point goal will be able to automatically access their locker and return to the station using the shuttle.")],4,{hidden:i.goal===null})})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Tracking Implants",children:V.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.subject]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Location",children:g.location}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Health",children:g.health}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Prisoner",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-triangle",content:"Warn",tooltip:"Broadcast a message to this poor sod",onClick:function(){function N(){return(0,p.modalOpen)(u,"warn",{uid:g.uid})}return N}()})})]})]},g.subject)]}),(0,e.createVNode)(1,"br")],4)})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:"Chemical Implants",children:h.map(function(g){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{p:1,backgroundColor:"rgba(255, 255, 255, 0.05)",children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:["Subject: ",g.name]}),(0,e.createComponentVNode)(2,t.Box,{children:[" ",(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Remaining Reagents",children:g.volume})}),s.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{mt:2,disabled:g.volume1100?"purple":m>500?"orange":m>250?"yellow":"green"},S=function(m,i){for(var h=[],V=0;V0?"envelope-open-text":"envelope",onClick:function(){function x(){return h("setScreen",{setScreen:6})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Assistance",icon:"hand-paper",onClick:function(){function x(){return h("setScreen",{setScreen:1})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Supplies",icon:"box",onClick:function(){function x(){return h("setScreen",{setScreen:2})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Relay Anonymous Information",icon:"comment",onClick:function(){function x(){return h("setScreen",{setScreen:3})}return x}()})})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Print Shipping Label",icon:"tag",onClick:function(){function x(){return h("setScreen",{setScreen:9})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"View Shipping Logs",icon:"clipboard-list",onClick:function(){function x(){return h("setScreen",{setScreen:10})}return x}()})})]}),!!s&&(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:"Send Station-Wide Announcement",icon:"bullhorn",onClick:function(){function x(){return h("setScreen",{setScreen:8})}return x}()})}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Speaker Off":"Speaker On",selected:!g,icon:g?"volume-mute":"volume-up",onClick:function(){function x(){return h("toggleSilent")}return x}()})})]})},S=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.department,s,g;switch(d.purpose){case"ASSISTANCE":s=V.assist_dept,g="Request assistance from another department";break;case"SUPPLIES":s=V.supply_dept,g="Request supplies from another department";break;case"INFO":s=V.info_dept,g="Relay information to another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:g,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:s.filter(function(N){return N!==v}).map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Message",icon:"envelope",onClick:function(){function x(){return h("writeInput",{write:N,priority:1})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{content:"High Priority",icon:"exclamation-circle",onClick:function(){function x(){return h("writeInput",{write:N,priority:2})}return x}()})]},N)})})})},b=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v;switch(d.type){case"SUCCESS":v="Message sent successfully";break;case"FAIL":v="Request supplies from another department";break}return(0,e.createComponentVNode)(2,t.Section,{title:v,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function s(){return h("setScreen",{setScreen:0})}return s}()})})},C=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v,s;switch(d.type){case"MESSAGES":v=V.message_log,s="Message Log";break;case"SHIPPING":v=V.shipping_log,s="Shipping label print log";break}return(0,e.createComponentVNode)(2,t.Section,{title:s,buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:v.map(function(g){return(0,e.createComponentVNode)(2,t.Box,{className:"RequestConsole__message",children:g},g)})})},c=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.recipient,s=V.message,g=V.msgVerified,N=V.msgStamped;return(0,e.createComponentVNode)(2,t.Section,{title:"Message Authentication",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function x(){return h("setScreen",{setScreen:0})}return x}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Recipient",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",color:"green",children:g}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Stamped by",color:"blue",children:N})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Message",icon:"envelope",onClick:function(){function x(){return h("department",{department:v})}return x}()})]})},u=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.message,s=V.announceAuth;return(0,e.createComponentVNode)(2,t.Section,{title:"Station-Wide Announcement",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function g(){return h("setScreen",{setScreen:0})}return g}()}),children:[(0,e.createComponentVNode)(2,t.Button,{content:v||"Edit Message",icon:"edit",onClick:function(){function g(){return h("writeAnnouncement")}return g}()}),s?(0,e.createComponentVNode)(2,t.Box,{mt:1,color:"green",children:"ID verified. Authentication accepted."}):(0,e.createComponentVNode)(2,t.Box,{mt:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Send Announcement",icon:"bullhorn",disabled:!(s&&v),onClick:function(){function g(){return h("sendAnnouncement")}return g}()})]})},f=function(d,m){var i=(0,a.useBackend)(m),h=i.act,V=i.data,v=V.shipDest,s=V.msgVerified,g=V.ship_dept;return(0,e.createComponentVNode)(2,t.Section,{title:"Print Shipping Label",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Back",icon:"arrow-left",onClick:function(){function N(){return h("setScreen",{setScreen:0})}return N}()}),children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:v}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Validated by",children:s})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,mt:1,textAlign:"center",content:"Print Label",icon:"print",disabled:!(v&&s),onClick:function(){function N(){return h("printLabel")}return N}()}),(0,e.createComponentVNode)(2,t.Section,{title:"Destinations",mt:1,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N,children:(0,e.createComponentVNode)(2,t.Button,{content:v===N?"Selected":"Select",selected:v===N,onClick:function(){function x(){return h("shipSelect",{shipSelect:N})}return x}()})},N)})})})]})}},3786:function(I,r,n){"use strict";r.__esModule=!0,r.RequestManager=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595);/** * @file * @copyright 2021 bobbahbrown (https://github.com/bobbahbrown) * @coauthor 2022 BeebBeebBoob (https://github.com/BeebBeebBoob) * @license MIT - */var k=r.RequestManager=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.requests,i=(0,t.useLocalState)(u,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),h=i[0],V=i[1],v=(0,t.useLocalState)(u,"searchText"),s=v[0],g=v[1],N=m.filter(function(B){return h[B.req_type]});if(s){var x=s.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,p.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:s,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,S,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,b,{request:B})],0,null,B.id)})})})})}return C}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},S=function(c){var u=c.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+u,[y[u],(0,e.createTextVNode)(":")],0)},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f._,m=c.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("pp",{id:m.id})}return i}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("vv",{id:m.id})}return i}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("sm",{id:m.id})}return i}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("tp",{id:m.id})}return i}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("logs",{id:m.id})}return i}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("bless",{id:m.id})}return i}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("smite",{id:m.id})}return i}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("rply",{id:m.id})}return i}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("ertreply",{id:m.id})}return i}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("getcode",{id:m.id})}return i}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(13472),k=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,p.RndNavbar),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,p.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:function(){function d(m){return m===k.LATHE||m===k.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,p.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return b}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),C.map(function(c,u){var f=c.name,l=c.level,d=c.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[u>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return p}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k="design",y="tech",S=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:s.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,c)]})]}):null},b=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;if(!s)return null;var g=s.name,N=s.lathe_types,x=s.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,c)]})]})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:p.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,c)]})]})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type;return s?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=s===y?"eject_tech":"eject_design";v(N)}return g}()}):null},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_data,s=V.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,C);switch(s){case k:return(0,e.createComponentVNode)(2,b);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type,g=V.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){s===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,u)}return s}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.DISK_COPY,render:function(){function s(){return(0,e.createComponentVNode)(2,f)}return s}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_item,u=b.linked_destroy;return u?c?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",c.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){C("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){C("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return p}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheCategory=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.category,f=C.matching_designs,l=C.menu,d=l===4,m=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(i){var h=i.id,V=i.name,v=i.can_build,s=i.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:V,disabled:v<1,onClick:function(){function g(){return c(m,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(m,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(m,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return k}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_chemicals,u=b.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var l=u?"disposeallP":"disposeallI";C(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(f){var l=f.volume,d=f.name,m=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var h=u?"disposeP":"disposeI";C(h,{id:m})}return i}()})},m)})})]})}return p}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheMainMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.menu,f=C.categories,l=u===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function m(){c("setCategory",{category:d})}return m}()})},d)})})]})}return k}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(u){var f=u.id,l=u.amount,d=u.name,m=function(){function v(s){var g=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(g,{id:f,amount:s})}return v}(),i=Math.floor(l/2e3),h=l<1,V=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",V,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return m(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return m("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return m(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return m(50)}return v}()})],0):null})]},f)})})})}return p}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.total_materials,c=b.max_materials,u=b.max_chemicals,f=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):null]})]})})}return p}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),p=n(36036),k=n(16475),y=r.LatheMenu=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.menu,l=u.linked_lathe,d=u.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,p.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,p.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}return S}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(c,u){return b("search",{to_search:u})}return C}()})})}return p}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.MainMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.disk_type,f=c.linked_destroy,l=c.linked_lathe,d=c.linked_imprinter,m=c.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:p.MENU.DISK,submenu:p.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:p.MENU.DESTROY,submenu:p.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:p.MENU.LATHE,submenu:p.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:p.MENU.IMPRINTER,submenu:p.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:p.MENU.SETTINGS,submenu:p.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(i){var h=i.name,V=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h,children:V},h)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function p(k,y){var S=k.icon,b=k.children,C=k.disabled,c=k.content,u=(0,a.useBackend)(y),f=u.data,l=u.act,d=f.menu,m=f.submenu,i=d,h=m;return k.menu!==null&&k.menu!==void 0&&(i=k.menu),k.submenu!==null&&k.submenu!==void 0&&(h=k.submenu),(0,e.createComponentVNode)(2,t.Button,{content:c,icon:S,disabled:C,onClick:function(){function V(){l("nav",{menu:i,submenu:h})}return V}(),children:b})}return p}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),p=r.RndNavbar=function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return k}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,p){var k=o.render,y=(0,e.useBackend)(p),S=y.data,b=S.menu,C=S.submenu,c=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),u=c(o.menu,b)&&c(o.submenu,C);return u?k():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.SettingsMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=C.act,f=c.sync,l=c.admin,d=c.linked_destroy,m=c.linked_lathe,i=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function V(){u("sync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:p.MENU.SETTINGS,submenu:p.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function V(){return u("maxresearch")}return V}()}):null]})})}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.SETTINGS_DEVICES,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function V(){return u("find_device")}return V}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"destroy"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){u("disconnect",{item:"lathe"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"imprinter"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return h}()})]})}return y}()},13472:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var p=n(52285);r.LatheChemicalStorage=p.LatheChemicalStorage;var k=n(71964);r.LatheMainMenu=k.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var S=n(17906);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(76749);r.LatheMenu=b.LatheMenu;var C=n(74698);r.LatheSearch=C.LatheSearch;var c=n(17180);r.MainMenu=c.MainMenu;var u=n(94942);r.RndNavbar=u.RndNavbar;var f=n(63459);r.RndNavButton=f.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.RoboQuest=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.hasID,l=u.name,d=u.questInfo,m=u.hasTask,i=u.canCheck,h=u.canSend,V=u.checkMessage,v=u.style,s=u.cooldown,g=u.instant_teleport,N=u.shopItems,x=u.points,B=u.cats,L=(0,t.useLocalState)(b,"shopState",!1),T=L[0],A=L[1],E={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,p.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!f||!m||!i||s,onClick:function(){function w(){return c("Check")}return w}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,V,0)],4),!!s&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,s,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(w){return(0,e.createFragment)(!(N[w]===void 0||N[w].length===0||w==="robo")&&N[w].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:E[w],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return c("buyItem",{item:O.path})}return M}()},O.path)}),0,w)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function w(){return A(!T)}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function w(){return c("ChangeStyle")}return w}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!f,onClick:function(){function w(){return c("RemoveID")}return w}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!f||s,onClick:function(){function w(){return c("GetTask")}return w}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function w(){return c("printOrder")}return w}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!f||s,onClick:function(){function w(){return c("RemoveTask")}return w}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&d.modules.map(function(w){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),w.id],0),(0,e.createTextVNode)(": "),w.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,w.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"send"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"only_packing"})}return w}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!f||!m||!h||s||!g,onClick:function(){function w(){return c("SendMech",{type:"instant"})}return w}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(w){return(!w.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:w.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[w.name," ",(0,e.createVNode)(1,"b",null,w.cost.robo,0,{style:{color:"purple"}})]}),content:w.desc,onClick:function(){function O(){return c("buyItem",{item:w.path})}return O}()},w.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=function(b,C){var c=b/C;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:k(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:k(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.can_hack,l=u.safety,d=u.show_detonate_all,m=u.cyborgs,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return c("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return c("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,k,{cyborgs:i,can_hack:f})]})})}return y}(),k=function(S,b){var C=S.cyborgs,c=S.can_hack,u=(0,a.useBackend)(b),f=u.act,l=u.data;return C.length?C.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function m(){return f("hackbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function m(){return f("stopbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:d.uid})}return m}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),p=n(98595),k=r.Safe=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=d.contents;return(0,e.createComponentVNode)(2,p.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(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"),i?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*m+"deg)","z-index":0}})]}),!i&&(0,e.createComponentVNode)(2,b)]})})}return C}(),y=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=function(s,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:i||g&&!h,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+s,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:s})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h,icon:i?"lock":"lock-open",content:i?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:m})]})},S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(i,h){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function V(){return l("retrieve",{index:h+1})}return V}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:i.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),i.name]}),(0,e.createVNode)(1,"br")],4,i)})})},b=function(c,u){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."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.satellites,f=c.notice,l=c.meteor_shield,d=c.meteor_shield_coverage,m=c.meteor_shield_coverage_max,i=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:d,maxValue:m,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),u.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function V(){return C("toggle",{id:h.id})}return V}()})]},h.id)})]})})]})})}return k}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SecureStorage=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.emagged,f=c.locked,l=c.l_set,d=c.l_setshort,m=c.current_code,i=function(){function h(V){var v=V.buttonValue,s=V.color;return s||(s="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:u||d,type:"button",color:s,onClick:function(){function g(){return C("setnumber",{buttonValue:v})}return g}(),children:v})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"1"}),(0,e.createComponentVNode)(2,i,{buttonValue:"2"}),(0,e.createComponentVNode)(2,i,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"4"}),(0,e.createComponentVNode)(2,i,{buttonValue:"5"}),(0,e.createComponentVNode)(2,i,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"7"}),(0,e.createComponentVNode)(2,i,{buttonValue:"8"}),(0,e.createComponentVNode)(2,i,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,i,{buttonValue:"0"}),(0,e.createComponentVNode)(2,i,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:u||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function h(){return C("close")}return h}()})]})})]})})}return k}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=n(3939),y=n(321),S=n(5485),b=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(g,N){(0,k.modalOpen)(g,"edit",{field:N.edit,value:N.value})},u=r.SecurityRecords=function(){function s(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,A=L.currentPage,E;if(T.logged_in)A===1?E=(0,e.createComponentVNode)(2,l):A===2?E=(0,e.createComponentVNode)(2,i):A===3&&(E=(0,e.createComponentVNode)(2,h));else return(0,e.createComponentVNode)(2,p.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,f),E]})})]})}return s}(),f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function E(){return B("page",{page:1})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function E(){return B("page",{page:2})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],F=(0,t.useLocalState)(N,"sortOrder",!0),R=F[0],U=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(E,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,W){var K=R?1:-1;return j[M].localeCompare(W[M])*K}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function W(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),A=T[0],E=T[1],w=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==w&&"transparent",fluid:!0,onClick:function(){function M(){B===w?E(!A):(L(w),E(!0))}return M}(),children:[O,B===w&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,k.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(M,P){return w(P)}return O}()})})]})},i=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},h=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=L.general,E=L.security;return!A||!A.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function w(){return B("print_record")}return w}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function w(){return B("delete_general")}return w}()})],4),children:(0,e.createComponentVNode)(2,V)})}),!E||!E.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function w(){return B("new_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:E.empty,content:"Delete Record",onClick:function(){function w(){return B("delete_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(w,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function M(){return c(N,w)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},V=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(T,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function E(){return c(N,T)}return E}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(T,A){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function A(){return(0,k.modalOpen)(N,"comment_add")}return A}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(A,E){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function w(){return B("comment_delete",{id:E+1})}return w}()})]},E)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),p=n(36036),k=n(98595),y=n(3939);function S(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=b(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[V++]}}}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 b(m,i){if(m){if(typeof m=="string")return C(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?C(m,i):void 0}}function C(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);h=E},v=function(A,E){return A<=E},s=i.split(" "),g=[],N=function(){var A=L.value,E=A.split(":");if(E.length===0)return 0;if(E.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(E[0].toLocaleLowerCase())}),0;if(E.length>2)return{v:function(){function M(P){return!1}return M}()};var w,O=h;if(E[1][E[1].length-1]==="-"?(O=v,w=Number(E[1].substring(0,E[1].length-1))):E[1][E[1].length-1]==="+"?(O=V,w=Number(E[1].substring(0,E[1].length-1))):w=Number(E[1]),isNaN(w))return{v:function(){function M(P){return!1}return M}()};switch(E[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,w)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,w)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,w)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,w)});break;case"y":case"yield":g.push(function(M){return O(M.yield,w)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,w)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,w)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=S(s),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var A=0,E=g;A=1?Number(O):1)}return E}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=m===void 0?"shuttle":m,h=c.blind_drop,V=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!V&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:i==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b,{type:i,blind_drop:h})})]})}return C}(),k=function(c,u){var f;return c==null||(f=c.find(function(l){return l.id===u}))==null?void 0:f.name},y=function(c,u){var f;return c==null||(f=c.find(function(l){return l.name===u}))==null?void 0:f.id},S={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},b=r.ShuttleConsoleContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=c.blind_drop,h=d.status,V=d.locked,v=d.authorization_required,s=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:S[h]||"bad",ml:1,children:h||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!i&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!i,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:k(B,s)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:V||v,selected:k(B,s)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!k(B,s)||V||v||h!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:s})}return L}()})]})]})}return C}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function b(C,c){var u=(0,a.useLocalState)(c,"tabIndex",0),f=u[0],l=u[1],d=function(){function m(i){switch(i){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return m}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function m(){return l(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return l(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return l(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:m.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return f("fast_travel",{id:m.id})}return i}()})]})]})},m.name)})})},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.templates_tabs,m=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===m.id,icon:"file",onClick:function(){function V(){return f("select_template_category",{cat:h})}return V}(),children:h},h)})}),!!m&&i[m.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function V(){return f("select_template",{shuttle_id:h.shuttle_id})}return V}()})})]})},h.name)})]})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.existing_shuttle,m=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:d.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function i(){return f("preview",{shuttle_id:m.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return f("load",{shuttle_id:m.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u044C\u0435.","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437.","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"\u0414\u0430":"\u041D\u0435\u0442",onClick:function(){function B(){return s("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",onClick:function(){function B(){return s("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u0432\u043E\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[N.stat][0],children:k[N.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.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:b[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:S,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function E(){return s("togglefilter")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return s("removebeaker")}return E}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:x.map(function(T,A){var E="",w;return T.overdosing?(E="bad",w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):T.od_warning&&(E="average",w=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:w,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:E,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C \u0432\u0435\u0449\u0435\u0441\u0442\u0432 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 / \u041E\u0431\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0434\u043B\u044F \u0432\u0432\u043E\u0434\u0430 \u0430\u043F\u043F\u0430\u0440\u0430\u0442\u043E\u043C",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u",title:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+T.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){function P(){return s("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},A)})})},m=function(h,V){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,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 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var u;return c.plays===1?u=c.plays+" player has tried their luck today!":u=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function f(){return C("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return k}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.secure,f=c.can_dry,l=c.drying,d=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443",selected:l,onClick:function(){function m(){return C("drying")}return m}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!d&&d.slice().sort(function(m,i){return m.display_name.localeCompare(i.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",content:"1",onClick:function(){function i(){return C("vend",{index:m.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function i(h,V){return C("vend",{index:m.vend,amount:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"\u0412\u0441\u0451",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){function i(){return C("vend",{index:m.vend,amount:m.quantity})}return i}()})]})]},m)})]})]})})})}return k}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),k=1e3,y=r.Smes=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.capacityPercent,d=f.capacity,m=f.charge,i=f.inputAttempt,h=f.inputting,V=f.inputLevel,v=f.inputLevelMax,s=f.inputAvailable,g=f.outputPowernet,N=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||h&&"average"||"bad",E=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function w(){return u("tryinput")}return w}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function w(){return u("input",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:V===0,onClick:function(){function w(){return u("input",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:V/k,fillValue:s/k,minValue:0,maxValue:v/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("input",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:V===v,onClick:function(){function w(){return u("input",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:V===v,onClick:function(){function w(){return u("input",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(s)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function w(){return u("tryoutput")}return w}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:g?x?"Sending":m>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function w(){return u("output",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function w(){return u("output",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/k,minValue:0,maxValue:L/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("output",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function w(){return u("output",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function w(){return u("output",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=0,f=1,l=2,d=c.generated,m=c.generated_ratio,i=c.tracking_state,h=c.tracking_rate,V=c.connected_panels,v=c.connected_tracker,s=c.cdir,g=c.direction,N=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return C("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:m,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",N,")"," "]}),i===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[i!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:s,onDrag:function(){function x(B,L){return C("cdir",{cdir:L})}return x}()}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:i===u,onClick:function(){function x(){return C("track",{track:u})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===f,onClick:function(){function x(){return C("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!v,onClick:function(){function x(){return C("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return C("tdir",{tdir:L})}return x}()}),i===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return k}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return C("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return C("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return k}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595);function k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,y(m,i)}function y(m,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,V){return h.__proto__=V,h},y(m,i)}var S=r.SpiderOS=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g;return s.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,f)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})]}):s.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:s.current_load_text,finishedTimeout:3e3,current_initialisation_phase:s.current_initialisation_phase,end_terminal:s.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,p.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return m}(),b=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:s,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.designs,N=s.design_choice,x=s.scarf_design_choice,B=s.colors,L=s.color_choice,T=s.genders,A=s.preferred_clothes_gender,E=s.suit_state,w=s.preferred_scarf_over_hood,O=s.show_charge_UI,M=s.has_martial_art,P=s.show_concentration_UI,F;E===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var R;w===0?R="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":R="\u0428\u0430\u0440\u0444";var U;w===1?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W(K){return v("set_scarf_design",{scarf_design_choice:K})}return W}()})}):U=null;var j;return M?j=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):j=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W(K){return v("set_design",{design_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W(K){return v("set_color",{color_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:A,onSelected:function(){function W(K){return v("set_gender",{preferred_clothes_gender:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:E===0?"":"Button_disabled",width:"90px",selected:w,disabled:E,textAlign:"left",content:R,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),U,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),j]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:F,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.actionsIcon,N=s.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.status?s.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.player_pos}),!!s.shuttle&&(!!s.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:s.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!s.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!s.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return m}(),l=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:s,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",s+"%"]}),2)})})},d=function(m){function i(V){var v;return v=m.call(this,V)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}k(i,m);var h=i.prototype;return h.tick=function(){function V(){var v=this.props,s=this.state;if(v.allMessages!==s.lastText&&!v.end_terminal){var g=s.currentDisplay;g.push(v.allMessages),s.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return V}(),h.componentDidMount=function(){function V(){var v=this,s=this.props.linesPerSecond,g=s===void 0?2.5:s;this.timer=setInterval(function(){return v.tick()},1e3/g)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return V}(),i}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=r.StationAlertConsoleContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.alarms||[];return Object.keys(u).map(function(f){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=u[f])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=u[f])==null?void 0:d.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),k=n(98595),y=5,S=9,b=function(V){return V===0?5:9},C="64px",c=function(V){return V[0]+"/"+V[1]},u=function(V){var v=V.align,s=V.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:s})},f={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},m=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(m||{}),i=r.StripMenu=function(){function h(V,v){var s=(0,o.useBackend)(v),g=s.act,N=s.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":f>150?"average":"good"},S=function(f){return f>5e3?"bad":f>4e3?"average":"good"},b=function(f){return f>1e4?"bad":f>5e3?"average":"good"},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function h(){return m("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:i.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Details"})]}),i.supermatters.map(function(h){return(0,e.createComponentVNode)(2,p.TableRow,{children:[(0,e.createComponentVNode)(2,p.TableCell,{children:h.area_name}),(0,e.createComponentVNode)(2,p.TableCell,{children:[h.integrity,"%"]}),(0,e.createComponentVNode)(2,p.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function V(){return m("view",{view:h.uid})}return V}()})})]},h)})]})})})})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function h(){return m("back")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:i.SM_integrity,children:[i.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(i.SM_power),children:[i.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:S(i.SM_ambienttemp),children:[i.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(i.SM_ambientpressure),children:[i.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[i.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[i.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[i.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[i.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[i.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595),k=r.SyndicateComputerSimple=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:u.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return c(f.buttonact)}return l}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},f.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(29319),S=n(25328),b=r.SyndieCargoConsole=function(){function l(d,m){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})}return l}(),C=function(d,m){var i=(0,o.useLocalState)(m,"contentsModal",null),h=i[0],V=i[1],v=(0,o.useLocalState)(m,"contentsModalTitle",null),s=v[0],g=v[1];if(h!==null&&s!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[s,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:h.map(function(N){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function N(){V(null),g(null)}return N}()})})]})},c=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.is_public,s=v===void 0?0:v,g=V.cash,N=V.wait_time,x=V.is_cooldown,B=V.telepads_status,L=V.adminAddCash,T=B,A="",E=0,w="";return B==="Pads not linked!"?(E=0,A="Attempts to link telepads to the console.",w="Link pads"):x?x&&(w="Cooldown...",A="Pads are cooling off...",E=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(E=0,A="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",w="Teleport"),(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,p.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return h("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return h("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Telepads Status",children:T}),s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:w,tooltip:A,disabled:E,onClick:function(){function O(){return h("teleport")}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return h("showMessages")}return O}()})]})]})})},u=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.categories,s=V.supply_packs,g=(0,o.useSharedState)(m,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],T=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),E=A[0],w=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),M=O[0],P=O[1],F=(0,S.createSearch)(L,function(j){return j.name}),R=(0,a.flow)([(0,t.filter)(function(j){return j.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(j){return j.name.toLowerCase()})])(s),U="Crate Catalogue";return L?U="Results for '"+L+"':":N&&(U="Browsing "+N),(0,e.createComponentVNode)(2,p.Section,{title:U,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:v.map(function(j){return j.name}),selected:N,onSelected:function(){function j(W){return x(W)}return j}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function j(W,K){return T(K)}return j}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:R.map(function(j){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[j.name," (",j.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){w(j.contents),P(j.name)}return W}()})]})]},j.name)})})})]})},f=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.requests,s=V.canapprove,g=V.orders;return(0,e.createComponentVNode)(2,p.Section,{title:"Details",children:(0,e.createComponentVNode)(2,p.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){function x(){return h("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function x(){return h("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(c,u,f,l){return l===void 0&&(l=null),c.map(function(d){var m,i=(m=d[l])!=null?m:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u.includes(d),content:i,onClick:function(){function h(){u.includes(d)?f(u.filter(function(V){var v;return((v=V[l])!=null?v:V)!==d})):f([d].concat(u))}return h}()},i)})},S=r.TTSSeedsExplorer=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),b=r.TTSSeedsExplorerContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.providers,i=d.seeds,h=d.selected_seed,V=d.phrases,v=d.donator_level,s=i.map(function(X){return X.category}).filter(function(X,Q,q){return q.indexOf(X)===Q}),g=i.map(function(X){return X.gender}).filter(function(X,Q,q){return q.indexOf(X)===Q}),N=i.map(function(X){return X.donator_level}).filter(function(X,Q,q){return q.indexOf(X)===Q}).map(function(X){return p[X]}),x=(0,a.useLocalState)(u,"selectedProviders",m),B=x[0],L=x[1],T=(0,a.useLocalState)(u,"selectedGenders",g),A=T[0],E=T[1],w=(0,a.useLocalState)(u,"selectedCategories",s),O=w[0],M=w[1],P=(0,a.useLocalState)(u,"selectedDonatorLevels",N),F=P[0],R=P[1],U=(0,a.useLocalState)(u,"selectedPhrase",V[0]),j=U[0],W=U[1],K=(0,a.useLocalState)(u,"searchtext",""),$=K[0],ne=K[1],Y=y(m,B,L,"name"),le=y(g,A,E),de=y(s,O,M),oe=y(N,F,R),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:V,selected:j.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function X(Q){return W(Q)}return X}()}),Z=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function X(Q,q){return ne(q)}return X}()}),ae=i.sort(function(X,Q){var q=X.name.toLowerCase(),te=Q.name.toLowerCase();return q>te?1:q0&&h!==X.name?"orange":"white",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:h===X.name?.5:.25,textAlign:"left",children:X.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:h===X.name?"white":k[X.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[X.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:X.donator_level>0&&(0,e.createFragment)([p[X.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},X.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:Y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Z})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+i.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return C}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f,d=u.explosion_target,m=u.toxins_tech,i=u.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||i,align:"center",onClick:function(){function h(){return c("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return c("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),k=r.TachyonArrayContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function m(){return c("delete_record",{index:d.index})}return m}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u;return c.has_mask?u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function f(){return C("internals")}return f}()})}):u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return C("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function f(l,d){return C("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return C("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return C("pressure",{pressure:"reset"})}return f}()})]}),u]})})})})}return k}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.o_tanks,f=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+u+")",disabled:u===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("plasma")}return l}()})})]})})}return k}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.ion,i=(0,a.useLocalState)(u,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m===1&&(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,onClick:function(){function s(){return V(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(h)]})})}return C}(),k=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.active,i=d.sectors_available,h=d.nttc_toggle_jobs,V=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,s=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"On":"Off",selected:m,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"On":"Off",selected:V,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.link_password,i=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function V(){return l("unlink",{addr:h.addr})}return V}()})})]},h.addr)})]})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return l("add_filter")}return i}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return l("remove_filter",{user:i})}return h}()})})]},i)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked,d=f.active,m=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function i(){return u("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){function i(){return u("network_id")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked_core_id,d=f.linked_core_addr,m=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,onClick:function(){function i(){return u("toggle_hidden_link")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function i(){return u("unlink")}return i}()})})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function m(){return u("link",{addr:d.addr})}return m}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79646),k=r.Teleporter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.targetsTeleport?u.targetsTeleport:{},l=0,d=1,m=2,i=u.calibrated,h=u.calibrating,V=u.powerstation,v=u.regime,s=u.teleporterhub,g=u.target,N=u.locked,x=u.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!V||!s)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[s,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!s&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&s&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return c("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return c("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===m?"good":null,disabled:!N,onClick:function(){function B(){return c("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===m&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,p.GridColumn,{size:"2",children:h&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(i||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,p.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(i||h),onClick:function(){function B(){return c("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&V&&s&&v===m)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return c("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return c("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),k=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function u(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return u}(),b=r.removeAllSkiplines=function(){function u(f){return f.replace(/[\r\n]+/,"")}return u}(),C=r.TextInputModal=function(){function u(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.message,v=V===void 0?"":V,s=i.multiline,g=i.placeholder,N=i.timeout,x=i.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],A=function(){function O(M){if(M!==L){var P=s?S(M):b(M);T(P)}}return O}(),E=s||L.length>=40,w=130+(v.length>40?Math.ceil(v.length/3):0)+(E?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:w,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===p.KEY_ENTER&&(!E||!M.shiftKey)&&m("submit",{entry:L}),P===p.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return u}(),c=function(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.multiline,v=f.input,s=f.onType,g=V||v.length>=40;return(0,e.createComponentVNode)(2,k.TextArea,{autoFocus:!0,autoSelect:!0,height:V||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function N(){return m("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),m("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return s(B)}return N}(),placeholder:"\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043E-\u043D\u0438\u0431\u0443\u0434\u044C...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ThiefKit=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.uses,f=c.possible_uses,l=c.multi_uses,d=c.kits,m=c.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:u<=0?"good":u=f,onClick:function(){function i(){return C("randomKit")}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:i.was_taken||u>=f,onClick:function(){function h(){return C("takeKit",{item:i.type})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!i.was_taken,onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:i.desc})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:u0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,F){return" ("+F+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:C(T)})]})})]})}return V}(),u=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,k.useLocalState)(s,"uplinkItems",L[0].items),A=T[0],E=T[1],w=(0,k.useLocalState)(s,"searchText",""),O=w[0],M=w[1],P=function(K,$){$===void 0&&($="");var ne=(0,o.createSearch)($,function(Y){var le=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+le});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(ne),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},F=function(K){if(M(K),K==="")return E(L[0].items);E(P(L.map(function($){return $.items}).flat(),K))},R=(0,k.useLocalState)(s,"showDesc",1),U=R[0],j=R[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:U,onClick:function(){function W(){return j(!U)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,$){F($)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===A,onClick:function(){function K(){E(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:A.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:U},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},f=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,A=(0,k.useLocalState)(s,"showDesc",0),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:E,onClick:function(){function O(){return w(!E)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:E,buttons:(0,e.createComponentVNode)(2,i,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,A){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},A)})})})})},d=function(v,s){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},m=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},i=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(A,E){return N("set_cart_item_quantity",{item:B.obj_path,quantity:E})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},h=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.exploitable,L=(0,k.useLocalState)(s,"selectedRecord",B[0]),T=L[0],A=L[1],E=(0,k.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=function(R,U){U===void 0&&(U="");var j=(0,o.createSearch)(U,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),U&&(0,a.filter)(j),(0,a.sortBy)(function(W){return W.name})])(R)},P=M(B,w);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(R,U){return O(U)}return F}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(F){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:F===T,onClick:function(){function R(){return A(F)}return R}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,b.modalRegisterBodyOverride)("become_contractor",function(V,v){var s,g,N,x,B=(0,k.useBackend)(v),L=B.data,T=L.contractor||{},A=T.time_left,E=!!(L!=null&&(s=L.contractor)!=null&&s.available),w=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",F?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!E||O,italic:!E,bold:E,icon:E&&!O&&"check",color:"good",content:O?"Accepted":E?["Accept Offer",(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A,format:function(){function R(U,j){return" ("+j+")"}return R}()},"countdown")]:w?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function R(){return(0,b.modalAnswer)(v,V.id,1)}return R}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.UploadPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.selected_target,f=c.new_law,l=c.id,d=c.transmitting,m=c.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!u,content:u||"No target selected",onClick:function(){function i(){return C("choose_silicon")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!f,content:f||"No module installed",onClick:function(){function i(){return C("insert_module")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(m?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function i(){return C("authorization")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u||!f||(m?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function i(){return C("change_laws")}return i}()})})]})})})})}return k}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VampireSpecMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=(0,a.useLocalState)(f,"activeTab","hemomancer"),i=m[0],h=m[1],V=function(){function v(){switch(i){case"hemomancer":return(0,e.createComponentVNode)(2,k,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,S,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,b,{act:d});case"bestia":return(0,e.createComponentVNode)(2,C,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return h("hemomancer")}return v}(),selected:i==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return h("umbrae")}return v}(),selected:i==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return h("gargantua")}return v}(),selected:i==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return h("dantalion")}return v}(),selected:i==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return h("bestia")}return v}(),selected:i==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),V()]})})}return c}(),k=r.HemoMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function h(){return d("hemomancer")}return h}()})]})}return c}(),y=r.UmbrMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function h(){return d("umbrae")}return h}()})]})}return c}(),S=r.GarMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function h(){return d("gargantua")}return h}()})]})}return c}(),b=r.DantMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function h(){return d("dantalion")}return h}()})]})}return c}(),C=r.BestMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function h(){return d("bestia")}return h}()})]})}return c}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(V){return(Math.round(V*10)/10).toFixed(1)},k=r.VampireTrophiesStatus=function(){function h(V,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})})})}return h}(),y=function(V,v){var s=(0,a.useBackend)(v),g=s.act,N=s.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,A=N.eyes,E=N.ears,w=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,F=N.icon_lungs,R=N.icon_livers,U=N.icon_kidneys,j=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:m,icon_state:i,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function A(){return u("vend",{inum:l.inum})}return A}()})})]})},y=r.Vending=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.user,d=f.guestNotice,m=f.userMoney,i=f.chargesMoney,h=f.product_records,V=h===void 0?[]:h,v=f.coin_records,s=v===void 0?[]:v,g=f.hidden_records,N=g===void 0?[]:g,x=f.stock,B=f.vend_ready,L=f.coin_name,T=f.inserted_item_name,A=f.panel_open,E=f.speaker,w=f.imagelist,O;return O=[].concat(V,s),f.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,p.Window,{width:470,height:100+Math.min(V.length*38,500),title:"Vending Machine",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[m,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return u("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return u("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"volume-mute",selected:E,content:"Speaker",textAlign:"left",onClick:function(){function M(){return u("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,k,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return S}()},87710:function(I,r,n){"use strict";r.__esModule=!0,r.VethPlayerPanel=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.VethPlayerPanel=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=(0,a.sortBy)(function(N){return N.name})(f.Data||[]),d=(0,t.useLocalState)(C,"searchText",""),m=d[0],i=d[1],h=(0,t.useLocalState)(C,"selectedPlayerCkey",""),V=h[0],v=h[1],s=(0,k.createSearch)(m,function(N){var x,B,L;return((x=N.name)==null?void 0:x.toLowerCase())+"|"+((B=N.job)==null?void 0:B.toLowerCase())+"|"+((L=N.ckey)==null?void 0:L.toLowerCase())}),g=function(){function N(x,B){B!=null&&B.ckey&&v(B.ckey),u(x,Object.assign({},B,{selectedPlayerCkey:(B==null?void 0:B.ckey)||V}))}return N}();return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,p.Window,{title:"Player Panel Veth",width:1100,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"refresh",content:"Refresh",onClick:function(){function N(){return g("refresh")}return N}()})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Game Panel",onClick:function(){function N(){return g("gamePanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Fax Panel",onClick:function(){function N(){return g("faxPanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Check Antags",onClick:function(){function N(){return g("checkAntags")}return N}()})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Create Command Report",onClick:function(){function N(){return g("createCommandReport")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Toggle Adv Admin Interact",onClick:function(){function N(){return g("adminaiinteract")}return N}()})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Search Players",children:(0,e.createComponentVNode)(2,o.TextArea,{autoFocus:!0,placeholder:"Search by name, job, or ckey",value:m,onInput:function(){function N(x,B){return i(B)}return N}(),rows:1,height:"2rem"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Players",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:"Ckey"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Char Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Job"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Antagonist"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Last IP"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),l.filter(s).map(function(N){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.ckey}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:N.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.is_antagonist?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Yes"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"No"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.last_ip}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("sendPrivateMessage",{ckey:N.ckey})}return x}(),content:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("follow",{ckey:N.ckey})}return x}(),content:"Follow"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("smite",{ckey:N.ckey})}return x}(),content:"Smite"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("openAdditionalPanel",{ckey:N.ckey})}return x}(),content:"PP",icon:"external-link"}),(0,e.createComponentVNode)(2,o.Button,{icon:"book",content:"Logs",onClick:function(){function x(){return u("logs",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"clipboard",content:"Notes",onClick:function(){function x(){return u("notes",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"VV",onClick:function(){function x(){return u("vv",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"TP",onClick:function(){function x(){return u("tp",{selectedPlayerCkey:N.ckey})}return x}()})]})]},N.ckey)})]})})]})})})}return S}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+u.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:u.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u044B\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(m,i){return C("volume",{channel:f.num,volume:i})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return k}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.remaining,f=c.question,l=c.choices,d=c.user_vote,m=c.counts,i=c.show_counts,h=c.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(u/10),"s"]}),l.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:V+(i?" ("+(m[V]||0)+")":""),onClick:function(){function v(){return C("vote",{target:V})}return v}(),selected:V===d})},V)}),!!h&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function V(){return C("cancel")}return V}()})},"Cancel")]})})})}return k}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.wires||[],f=c.status||[],l=56+u.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function m(){return C("cut",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return C("pulse",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function m(){return C("attach",{wire:d.color})}return m}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return k}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(73379),k=n(98595),y=["title","items"];function S(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var b=function(d,m,i){return d.requirements===null?!0:!(d.requirements.brass>m||d.requirements.power>i)},C=r.Workshop=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.brass_amount,s=V.power_amount,g=V.building,N=V.buildStart,x=V.buildEnd,B=V.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},E={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,k.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return h("dispense")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,p.Countdown,{current:B,timeLeft:x-B,format:function(){function w(O,M){return M.substr(3)}return w}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,u)})})]})})})}return l}(),c=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},u=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.items,s=(0,t.useLocalState)(m,"search",""),g=s[0],N=s[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(m,"descending",!1),A=T[0],E=T[1],w=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,F){var R=Object.entries(P[1]).filter(w).map(function(U){return U[1].affordable=b(U[1],V.brass_amount,V.power_amount),U[1]});if(R.length!==0)return A&&(R=R.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:P[0],items:R},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=S(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!b(N,V.brass_amount,V.power_amount),onClick:function(){function x(){return h("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,c){var u=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(u)return(u=u.call(C)).next.bind(u);if(Array.isArray(C)||(u=k(C))||c&&C&&typeof C.length=="number"){u&&(C=u);var f=0;return function(){return f>=C.length?{done:!0}:{done:!1,value:C[f++]}}}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 k(C,c){if(C){if(typeof C=="string")return y(C,c);var u={}.toString.call(C).slice(8,-1);return u==="Object"&&C.constructor&&(u=C.constructor.name),u==="Map"||u==="Set"?Array.from(C):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?y(C,c):void 0}}function y(C,c){(c==null||c>C.length)&&(c=C.length);for(var u=0,f=Array(c);u0&&!N.includes(R.ref)&&!s.includes(R.ref),checked:s.includes(R.ref),onClick:function(){function U(){return x(R.ref)}return U}()},R.desc)})]})]})})}return C}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(S,b,C,c,u){return Sc?"average":S>u?"bad":"good"},k=r.AtmosScan=function(){function y(S,b){var C=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(C).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:p(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" \u0435\u0434\u0438\u043D\u0438\u0446"+(y%10===1&&y%100!==11?"\u0430":"")+(y%10>1&&y%10<5&&!(y%100>11)&&!(y%100<15)?"\u044B":"")},p=r.BeakerContents=function(){function k(y){var S=y.beakerLoaded,b=y.beakerContents,C=b===void 0?[]:b,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),C.map(function(u,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(u.volume)," ",u.name]},u.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(u,f)})]},u.name)})]})}return k}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(c,u,f){var l=(0,a.useBackend)(c),d=l.act,m=l.data,i=Object.assign(m.modal?m.modal.args:{},f||{});d("modal_open",{id:u,arguments:JSON.stringify(i)})}return C}(),k=r.modalRegisterBodyOverride=function(){function C(c,u){o[c]=u}return C}(),y=r.modalAnswer=function(){function C(c,u,f,l){var d=(0,a.useBackend)(c),m=d.act,i=d.data;if(i.modal){var h=Object.assign(i.modal.args||{},l||{});m("modal_answer",{id:u,answer:f,arguments:JSON.stringify(h)})}}return C}(),S=r.modalClose=function(){function C(c,u){var f=(0,a.useBackend)(c),l=f.act;l("modal_close",{id:u})}return C}(),b=r.ComplexModal=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data;if(l.modal){var d=l.modal,m=d.id,i=d.text,h=d.type,V,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",onClick:function(){function L(){return S(u)}return L}()}),s,g,N="auto";if(o[m])s=o[m](l.modal,u);else if(h==="input"){var x=l.modal.value;V=function(){function L(T){return y(u,m,x)}return L}(),s=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){x=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",color:"grey",onClick:function(){function L(){return S(u)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;s=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(u,m,T)}return L}()}),N="initial"}else h==="bento"?s=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(u,m,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(u,m,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:V,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[m]&&v,s,g]})}}return C}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),k=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},b=function(f){if(y.indexOf(f)!==-1)return!0},C=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.real_rank),bold:b(l.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},c=r.CrewManifest=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i;if(f.data)i=f.data;else{var h=(0,a.useBackend)(l),V=h.data;i=V}var v=i,s=v.manifest,g=s.heads,N=s.pro,x=s.sec,B=s.eng,L=s.med,T=s.sci,A=s.ser,E=s.sup,w=s.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:C(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(w)})]})}return u}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(k,y){var S=(0,t.useBackend)(y),b=S.act,C=S.data,c=C.large_buttons,u=C.swapped_buttons,f=k.input,l=k.message,d=k.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("submit",{entry:f})}return h}(),textAlign:"center",tooltip:c&&l,disabled:d,width:!c&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("cancel")}return h}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:u?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:u?.5:0,mr:u?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!c&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:u?.5:0,ml:u?0:.5,children:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return p}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=k.siliconUser,u=c===void 0?C.siliconUser:c,f=k.locked,l=f===void 0?C.locked:f,d=k.normallyLocked,m=d===void 0?C.normallyLocked:d,i=k.onLockStatusChange,h=i===void 0?function(){return b("lock")}:i,V=k.accessText,v=V===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":V;return u?(0,e.createComponentVNode)(2,t.NoticeBox,{color:u&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:m?"red":"green",icon:m?"lock":"unlock",content:m?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){function s(){h&&h(!l)}return s}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",v,", \u0447\u0442\u043E\u0431\u044B"," ",l?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}return p}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(k){var y=k.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B",color:"good",onClick:function(){function u(){return b("login_logout")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID",color:"good",onClick:function(){function u(){return b("login_eject")}return u}()})]})]})})}return p}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState,u=C.isAI,f=C.isRobot,l=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function d(){return b("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function d(){return b("login_login",{login_type:1})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418",onClick:function(){function d(){return b("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433",onClick:function(){function d(){return b("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C",onClick:function(){function d(){return b("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(k){var y=k.operating,S=k.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=y.data,u=c.code,f=c.frequency,l=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function m(i){return(0,a.toFixed)(i,1)}return m}(),width:"80px",onDrag:function(){function m(i,h){return C("freq",{freq:h})}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(){function m(i,h){return C("code",{code:h})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return C("signal")}return m}()})]})}return k}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),k=n(36036),y=r.SimpleRecords=function(){function C(c,u){var f=c.data.records;return(0,e.createComponentVNode)(2,k.Box,{children:f?(0,e.createComponentVNode)(2,b,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.recordsList,m=(0,a.useLocalState)(u,"searchText",""),i=m[0],h=m[1],V=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,p.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,p.filter)(x),(0,p.sortBy)(function(B){return B.Name})])(d)},v=V(d,i);return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function s(g,N){return h(N)}return s}()}),v.map(function(s){return(0,e.createComponentVNode)(2,k.Box,{children:(0,e.createComponentVNode)(2,k.Button,{mb:.5,content:s.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:s.uid})}return g}()})},s)})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.records,m=d.general,i=d.medical,h=d.security,V;switch(c.recordType){case"MED":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"General record lost!"})}),V]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(k,y){var S,b=(0,a.useBackend)(y),C=b.act,c=b.data,u=c.temp;if(u){var f=(S={},S[u.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return C("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return p}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),p=n(98595),k=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],S=[{title:"Button",component:function(){function s(){return C}return s}()},{title:"Box",component:function(){function s(){return c}return s}()},{title:"ProgressBar",component:function(){function s(){return u}return s}()},{title:"Tabs",component:function(){function s(){return f}return s}()},{title:"Tooltip",component:function(){function s(){return l}return s}()},{title:"Input / Control",component:function(){function s(){return d}return s}()},{title:"Collapsible",component:function(){function s(){return m}return s}()},{title:"BlockQuote",component:function(){function s(){return h}return s}()},{title:"ByondUi",component:function(){function s(){return V}return s}()},{title:"Themes",component:function(){function s(){return v}return s}()}],b=r.KitchenSink=function(){function s(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],A=L[1],E=S[T].component();return(0,e.createComponentVNode)(2,p.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return A(O)}return M}(),children:w.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,E)})]})})})})}return s}(),C=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},c=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},u=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},f=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),A=T[0],E=T[1],w=(0,a.useLocalState)(N,"tabAlt"),O=w[0],M=w[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:A,onClick:function(){function F(){return E(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return M(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:P.map(function(F,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:R===B,onClick:function(){function U(){return L(R)}return U}(),children:["Tab #",F]},R)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onChange:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function w(O,M){return L(M)}return w}(),children:function(){function w(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return w}()})})})]})})},m=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,i)})})},i=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},h=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,i)})},V=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(A,E){return L(E)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.brute,m=c.oxy,i=c.tox,h=c.burn,V=c.reagents,v=c.addictions,s=c.fractures,g=c.internal_bleeding;return u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:m})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:V?V.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:["Fractures ",s?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.master,f=c.dna,l=c.prime,d=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:u?u+" ("+f+")":"None"}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function m(){return b("getdna")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.cable,f=c.machine,l=c.inprogress,d=c.progress,m=c.aborted,i;f?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:u?"Extended":"Retracted",color:u?"orange":null,onClick:function(){function V(){return b("cable")}return V}()});var h;return f&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function V(){return b("cancel")}return V}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function V(){return b("jack")}return V}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),h]})}return p}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.radio_name,f=c.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[u,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newname",{newname:m})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newrank",{newrank:m})}return l}()})})]})})}return p}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.available_software,f=c.installed_software,l=c.installed_toggles,d=c.available_ram,m=c.emotions,i=c.current_emotion,h=[];return f.map(function(V){return h[V.key]=V.name}),l.map(function(V){return h[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[u.filter(function(V){return!h[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function v(){return b("purchaseSoftware",{key:V.key})}return v}()},V.key)}),u.filter(function(V){return!h[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function v(){return b("startSoftware",{software_key:V.key})}return v}()},V.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function v(){return b("setToggle",{toggle_key:V.key})}return v}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name,selected:V.id===i,onClick:function(){function v(){return b("setEmotion",{emotion:V.id})}return v}()},V.id)})})]})})}return p}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return p}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.app_data,f=u.minFrequency,l=u.maxFrequency,d=u.frequency,m=u.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:l/10,value:d/10,format:function(){function i(h){return(0,t.toFixed)(h,1)}return i}(),onChange:function(){function i(h,V){return C("freq",{freq:V})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return C("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return C("toggleBroadcast")}return i}(),selected:m,content:m?"Enabled":"Disabled"})})]})}return k}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.current_chemicals,m=c.available_chemicals;return u?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.name+" ("+i.cost+")",tooltip:i.desc,disabled:i.cost>d,onClick:function(){function h(){return b("secreteChemicals",{key:i.key})}return h}()},i.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return p}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return p}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.janitor,u=c.user_loc,f=c.mops,l=c.buckets,d=c.cleanbots,m=c.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[u.x,",",u.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})})]})}return p}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.owner,f=c.ownjob,l=c.idInserted,d=c.categories,m=c.pai,i=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var V=c.apps[h];return!V||!V.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:V.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in i?v.notify_icon:v.icon,iconSpin:v.uid in i,color:v.uid in i?"red":"transparent",content:v.name,onClick:function(){function s(){return C("StartProgram",{program:v.uid})}return s}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return k}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return p}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,k,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return b}(),k=r.ActiveConversation=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convo_device,m=l.messages,i=l.active_convo,h=(0,t.useLocalState)(c,"clipboardMode",!1),V=h[0],v=h[1],s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return V&&(s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return f("Clear",{option:"Convo"})}return g}()})})})}),s]})}return b}(),y=r.MessengerList=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convopdas,m=l.pdas,i=l.charges,h=l.silent,V=l.toff,v=(0,t.useLocalState)(c,"searchTerm",""),s=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return f("Toggle Ringer")}return N}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:V?"bad":"green",icon:"power-off",onClick:function(){function N(){return f("Toggle Messenger")}return N}(),children:["Messenger: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return f("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return f("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!V&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[i," charges left."]})})}),!d.length&&!m.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:s,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:s}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:m,msgAct:"Message",data:l,searchTerm:s})]})}return b}(),S=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=C.pdas,m=C.title,i=C.msgAct,h=C.searchTerm,V=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:d.filter(function(s){return s.Name.toLowerCase().includes(h.toLowerCase())}).map(function(s){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:s.Name,onClick:function(){function g(){return f(i,{target:s.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!V&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return f("Messenger Plugin",{plugin:g.uid,target:s.uid})}return N}()},g.uid)})})]},s.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h=l.load,V=l.powr,v=l.dest,s=l.home,g=l.retn,N=l.pick,x;switch(m){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[V,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return c("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function B(){return c("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return c("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return c("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return c("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:c}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function u(){return b("Edit")}return u}(),content:"Edit"})]})}return p}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return p}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),p=r.pda_request_console=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.screen,f=c.selected_console,l=c.consoles_data,d=c.app;return f?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[u]||o.pages.default)(),u===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function m(){return C("back")}return m}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(m){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:m.priority===1?"green":m.priority===2?"red":"default",content:m.name,onClick:function(){function i(){return C("select",{name:m.name})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:m.muted?"volume-mute":"volume-up",onClick:function(){function i(){return C("mute",{name:m.name})}return i}()})]})})},m.name)})})})}return k}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h;switch(m){case 0:h="Ready";break;case 1:h="Apprehending target";break;case 2:case 3:h="Arresting target";break;case 4:h="Starting patrol";break;case 5:h="On patrol";break;case 6:h="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function V(){return c("Go")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function V(){return c("Stop")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function V(){return c("Summon")}return V}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"SEC"})}return p}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C})}return p}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function u(){return b("Status",{statdisp:"blank"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function u(){return b("Status",{statdisp:"shuttle"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function u(){return b("Status",{statdisp:"message"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"redalert"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"default"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"lockdown"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"biohazard"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg1"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg2"})}return u}()})})]})})}return p}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.supply,u=c.shuttle_loc,f=c.shuttle_time,l=c.shuttle_moving,d=c.approved,m=c.approved_count,i=c.requests,h=c.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:u})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:h>0&&i.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.OrderedBy,'"']},V)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:m>0&&d.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.ApprovedBy,'"']},V)})})]})}return p}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],k=["className","scrollable","children"];/** + */var k=r.RequestManager=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.requests,i=(0,t.useLocalState)(u,"filteredTypes",Object.fromEntries(Object.entries(y).map(function(B){var L=B[0],T=B[1];return[L,!0]}))),h=i[0],V=i[1],v=(0,t.useLocalState)(u,"searchText"),s=v[0],g=v[1],N=m.filter(function(B){return h[B.req_type]});if(s){var x=s.toLowerCase();N=N.filter(function(B){return(0,a.decodeHtmlEntities)(B.message).toLowerCase().includes(x)||B.owner_name.toLowerCase().includes(x)})}return(0,e.createComponentVNode)(2,p.Window,{title:"Request Manager",width:575,height:600,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Requests",buttons:(0,e.createComponentVNode)(2,o.Input,{value:s,onInput:function(){function B(L,T){return g(T)}return B}(),placeholder:"Search...",mr:1}),children:N.map(function(B){return(0,e.createVNode)(1,"div","RequestManager__row",[(0,e.createVNode)(1,"div","RequestManager__rowContents",[(0,e.createVNode)(1,"h2","RequestManager__header",[(0,e.createVNode)(1,"span","RequestManager__headerText",[B.owner_name,B.owner===null&&" [DC]"],0),(0,e.createVNode)(1,"span","RequestManager__timestamp",B.timestamp_str,0)],4),(0,e.createVNode)(1,"div","RequestManager__message",[(0,e.createComponentVNode)(2,S,{requestType:B.req_type}),(0,a.decodeHtmlEntities)(B.message)],0)],4),B.owner!==null&&(0,e.createComponentVNode)(2,b,{request:B})],0,null,B.id)})})})})}return C}(),y={request_prayer:"PRAYER",request_centcom:"CENTCOM",request_syndicate:"SYNDICATE",request_honk:"HONK",request_ert:"ERT",request_nuke:"NUKE CODE"},S=function(c){var u=c.requestType;return(0,e.createVNode)(1,"b","RequestManager__"+u,[y[u],(0,e.createTextVNode)(":")],0)},b=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f._,m=c.request;return(0,e.createVNode)(1,"div","RequestManager__controlsContainer",[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("pp",{id:m.id})}return i}(),children:"PP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("vv",{id:m.id})}return i}(),children:"VV"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("sm",{id:m.id})}return i}(),children:"SM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("tp",{id:m.id})}return i}(),children:"TP"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("logs",{id:m.id})}return i}(),children:"LOGS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("bless",{id:m.id})}return i}(),children:"BLESS"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("smite",{id:m.id})}return i}(),children:"SMITE"}),m.req_type!=="request_prayer"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("rply",{id:m.id})}return i}(),children:"RPLY"}),m.req_type==="request_ert"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("ertreply",{id:m.id})}return i}(),children:"ERTREPLY"}),m.req_type==="request_nuke"&&(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return l("getcode",{id:m.id})}return i}(),children:"GETCODE"})],0)}},16475:function(I,r,n){"use strict";r.__esModule=!0,r.SUBMENU=r.RndConsole=r.MENU=void 0;var e=n(89005),a=n(72253),t=n(98595),o=n(36036),p=n(13472),k=r.MENU={MAIN:0,LEVELS:1,DISK:2,DESTROY:3,LATHE:4,IMPRINTER:5,SETTINGS:6},y=r.SUBMENU={MAIN:0,DISK_COPY:1,LATHE_CATEGORY:1,LATHE_MAT_STORAGE:2,LATHE_CHEM_STORAGE:3,SETTINGS_DEVICES:1},S=r.RndConsole=function(){function b(C,c){var u=(0,a.useBackend)(c),f=u.data,l=f.wait_message;return(0,e.createComponentVNode)(2,t.Window,{width:800,height:550,theme:f.ui_theme,children:(0,e.createComponentVNode)(2,t.Window.Content,{children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole",children:[(0,e.createComponentVNode)(2,p.RndNavbar),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.MAIN,render:function(){function d(){return(0,e.createComponentVNode)(2,p.MainMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.LEVELS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.CurrentLevels)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DISK,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DataDiskMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.DESTROY,render:function(){function d(){return(0,e.createComponentVNode)(2,p.DeconstructionMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:function(){function d(m){return m===k.LATHE||m===k.IMPRINTER}return d}(),render:function(){function d(){return(0,e.createComponentVNode)(2,p.LatheMenu)}return d}()}),(0,e.createComponentVNode)(2,p.RndRoute,{menu:k.SETTINGS,render:function(){function d(){return(0,e.createComponentVNode)(2,p.SettingsMenu)}return d}()}),l?(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay",children:(0,e.createComponentVNode)(2,o.Box,{className:"RndConsole__Overlay__Wrapper",children:(0,e.createComponentVNode)(2,o.NoticeBox,{color:"black",children:l})})}):null]})})})}return b}()},93098:function(I,r,n){"use strict";r.__esModule=!0,r.CurrentLevels=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.CurrentLevels=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.tech_levels;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),C.map(function(c,u){var f=c.name,l=c.level,d=c.desc;return(0,e.createComponentVNode)(2,t.Box,{children:[u>0?(0,e.createComponentVNode)(2,t.Divider):null,(0,e.createComponentVNode)(2,t.Box,{children:f}),(0,e.createComponentVNode)(2,t.Box,{children:["* Level: ",l]}),(0,e.createComponentVNode)(2,t.Box,{children:["* Summary: ",d]})]},f)})]})}return p}()},19192:function(I,r,n){"use strict";r.__esModule=!0,r.DataDiskMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k="design",y="tech",S=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;return s?(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:s.name}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Level",children:s.level}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:s.desc})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function g(){return v("updt_tech")}return g}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function g(){return v("clear_tech")}return g}()}),(0,e.createComponentVNode)(2,c)]})]}):null},b=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_data;if(!s)return null;var g=s.name,N=s.lathe_types,x=s.materials,B=N.join(", ");return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name",children:g}),B?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lathe Types",children:B}):null,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Required Materials"})]}),x.map(function(L){return(0,e.createComponentVNode)(2,t.Box,{children:["- ",(0,e.createVNode)(1,"span",null,L.name,0,{style:{"text-transform":"capitalize"}})," x ",L.amount]},L.name)}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload to Database",icon:"arrow-up",onClick:function(){function L(){return v("updt_design")}return L}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Clear Disk",icon:"trash",onClick:function(){function L(){return v("clear_design")}return L}()}),(0,e.createComponentVNode)(2,c)]})]})},C=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"This disk is empty."}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{submenu:p.SUBMENU.DISK_COPY,icon:"arrow-down",content:v===y?"Load Tech to Disk":"Load Design to Disk"}),(0,e.createComponentVNode)(2,c)]})]})},c=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type;return s?(0,e.createComponentVNode)(2,t.Button,{content:"Eject Disk",icon:"eject",onClick:function(){function g(){var N=s===y?"eject_tech":"eject_design";v(N)}return g}()}):null},u=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_data,s=V.disk_type,g=function(){if(!v)return(0,e.createComponentVNode)(2,C);switch(s){case k:return(0,e.createComponentVNode)(2,b);case y:return(0,e.createComponentVNode)(2,S);default:return null}};return(0,e.createComponentVNode)(2,t.Section,{title:"Data Disk Contents",children:g()})},f=function(m,i){var h=(0,a.useBackend)(i),V=h.data,v=h.act,s=V.disk_type,g=V.to_copy;return(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Box,{overflowY:"auto",overflowX:"hidden",maxHeight:"450px",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:g.sort(function(N,x){return N.name.localeCompare(x.name)}).map(function(N){var x=N.name,B=N.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:x,children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-down",content:"Copy to Disk",onClick:function(){function L(){s===y?v("copy_tech",{id:B}):v("copy_design",{id:B})}return L}()})},B)})})})})},l=r.DataDiskMenu=function(){function d(m,i){var h=(0,a.useBackend)(i),V=h.data,v=V.disk_type;return v?(0,e.createFragment)([(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function s(){return(0,e.createComponentVNode)(2,u)}return s}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.DISK_COPY,render:function(){function s(){return(0,e.createComponentVNode)(2,f)}return s}()})],4):null}return d}()},20887:function(I,r,n){"use strict";r.__esModule=!0,r.DeconstructionMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.DeconstructionMenu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_item,u=b.linked_destroy;return u?c?(0,e.createComponentVNode)(2,t.Section,{noTopPadding:!0,title:"Deconstruction Menu",children:[(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:["Name: ",c.name]}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Origin Tech:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.origin_tech.map(function(f){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+f.name,children:[f.object_level," ",f.current_level?(0,e.createFragment)([(0,e.createTextVNode)("(Current: "),f.current_level,(0,e.createTextVNode)(")")],0):null]},f.name)})}),(0,e.createComponentVNode)(2,t.Box,{mt:"10px",children:(0,e.createVNode)(1,"h3",null,"Options:",16)}),(0,e.createComponentVNode)(2,t.Button,{content:"Deconstruct Item",icon:"unlink",onClick:function(){function f(){C("deconstruct")}return f}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject Item",icon:"eject",onClick:function(){function f(){C("eject_item")}return f}()})]}):(0,e.createComponentVNode)(2,t.Section,{title:"Deconstruction Menu",children:"No item loaded. Standing by..."}):(0,e.createComponentVNode)(2,t.Box,{children:"NO DESTRUCTIVE ANALYZER LINKED TO CONSOLE"})}return p}()},10666:function(I,r,n){"use strict";r.__esModule=!0,r.LatheCategory=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheCategory=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.category,f=C.matching_designs,l=C.menu,d=l===4,m=d?"build":"imprint";return(0,e.createComponentVNode)(2,t.Section,{title:u,children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,t.Table,{className:"RndConsole__LatheCategory__MatchingDesigns",children:f.map(function(i){var h=i.id,V=i.name,v=i.can_build,s=i.materials;return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:V,disabled:v<1,onClick:function(){function g(){return c(m,{id:h,amount:1})}return g}()})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=5?(0,e.createComponentVNode)(2,t.Button,{content:"x5",onClick:function(){function g(){return c(m,{id:h,amount:5})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:v>=10?(0,e.createComponentVNode)(2,t.Button,{content:"x10",onClick:function(){function g(){return c(m,{id:h,amount:10})}return g}()}):null}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:s.map(function(g){return(0,e.createFragment)([" | ",(0,e.createVNode)(1,"span",g.is_red?"color-red":null,[g.amount,(0,e.createTextVNode)(" "),g.name],0)],0)})})]},h)})})]})}return k}()},52285:function(I,r,n){"use strict";r.__esModule=!0,r.LatheChemicalStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheChemicalStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_chemicals,u=b.menu===4;return(0,e.createComponentVNode)(2,t.Section,{title:"Chemical Storage",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Purge All",icon:"trash",onClick:function(){function f(){var l=u?"disposeallP":"disposeallI";C(l)}return f}()}),(0,e.createComponentVNode)(2,t.LabeledList,{children:c.map(function(f){var l=f.volume,d=f.name,m=f.id;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* "+l+" of "+d,children:(0,e.createComponentVNode)(2,t.Button,{content:"Purge",icon:"trash",onClick:function(){function i(){var h=u?"disposeP":"disposeI";C(h,{id:m})}return i}()})},m)})})]})}return p}()},71964:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=r.LatheMainMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.data,c=b.act,u=C.menu,f=C.categories,l=u===4?"Protolathe":"Circuit Imprinter";return(0,e.createComponentVNode)(2,t.Section,{title:l+" Menu",children:[(0,e.createComponentVNode)(2,o.LatheMaterials),(0,e.createComponentVNode)(2,o.LatheSearch),(0,e.createComponentVNode)(2,t.Divider),(0,e.createComponentVNode)(2,t.Flex,{wrap:"wrap",children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Flex,{style:{"flex-basis":"50%","margin-bottom":"6px"},children:(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-right",content:d,onClick:function(){function m(){c("setCategory",{category:d})}return m}()})},d)})})]})}return k}()},17906:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterialStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterialStorage=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=S.act,c=b.loaded_materials;return(0,e.createComponentVNode)(2,t.Section,{className:"RndConsole__LatheMaterialStorage",title:"Material Storage",children:(0,e.createComponentVNode)(2,t.Table,{children:c.map(function(u){var f=u.id,l=u.amount,d=u.name,m=function(){function v(s){var g=b.menu===4?"lathe_ejectsheet":"imprinter_ejectsheet";C(g,{id:f,amount:s})}return v}(),i=Math.floor(l/2e3),h=l<1,V=i===1?"":"s";return(0,e.createComponentVNode)(2,t.Table.Row,{className:h?"color-grey":"color-yellow",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"210px",children:["* ",l," of ",d]}),(0,e.createComponentVNode)(2,t.Table.Cell,{minWidth:"110px",children:["(",i," sheet",V,")"]}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l>=2e3?(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:"1x",icon:"eject",onClick:function(){function v(){return m(1)}return v}()}),(0,e.createComponentVNode)(2,t.Button,{content:"C",icon:"eject",onClick:function(){function v(){return m("custom")}return v}()}),l>=2e3*5?(0,e.createComponentVNode)(2,t.Button,{content:"5x",icon:"eject",onClick:function(){function v(){return m(5)}return v}()}):null,(0,e.createComponentVNode)(2,t.Button,{content:"All",icon:"eject",onClick:function(){function v(){return m(50)}return v}()})],0):null})]},f)})})})}return p}()},83706:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMaterials=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheMaterials=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data,C=b.total_materials,c=b.max_materials,u=b.max_chemicals,f=b.total_chemicals;return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__LatheMaterials",mb:"10px",children:(0,e.createComponentVNode)(2,t.Table,{width:"auto",children:[(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Material Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:C}),c?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+c}):null]}),(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{bold:!0,children:"Chemical Amount:"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:f}),u?(0,e.createComponentVNode)(2,t.Table.Cell,{children:" / "+u}):null]})]})})}return p}()},76749:function(I,r,n){"use strict";r.__esModule=!0,r.LatheMenu=void 0;var e=n(89005),a=n(72253),t=n(12059),o=n(13472),p=n(36036),k=n(16475),y=r.LatheMenu=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.menu,l=u.linked_lathe,d=u.linked_imprinter;return f===4&&!l?(0,e.createComponentVNode)(2,p.Box,{children:"NO PROTOLATHE LINKED TO CONSOLE"}):f===5&&!d?(0,e.createComponentVNode)(2,p.Box,{children:"NO CIRCUIT IMPRITER LINKED TO CONSOLE"}):(0,e.createComponentVNode)(2,p.Box,{children:[(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.MAIN,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMainMenu)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CATEGORY,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheCategory)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_MAT_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheMaterialStorage)}return m}()}),(0,e.createComponentVNode)(2,t.RndRoute,{submenu:k.SUBMENU.LATHE_CHEM_STORAGE,render:function(){function m(){return(0,e.createComponentVNode)(2,o.LatheChemicalStorage)}return m}()})]})}return S}()},74698:function(I,r,n){"use strict";r.__esModule=!0,r.LatheSearch=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LatheSearch=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"Search...",onEnter:function(){function C(c,u){return b("search",{to_search:u})}return C}()})})}return p}()},17180:function(I,r,n){"use strict";r.__esModule=!0,r.MainMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.MainMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.disk_type,f=c.linked_destroy,l=c.linked_lathe,d=c.linked_imprinter,m=c.tech_levels;return(0,e.createComponentVNode)(2,t.Section,{title:"Main Menu",children:[(0,e.createComponentVNode)(2,t.Flex,{className:"RndConsole__MainMenu__Buttons",direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!u,menu:p.MENU.DISK,submenu:p.SUBMENU.MAIN,icon:"save",content:"Disk Operations"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,menu:p.MENU.DESTROY,submenu:p.SUBMENU.MAIN,icon:"unlink",content:"Destructive Analyzer Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!l,menu:p.MENU.LATHE,submenu:p.SUBMENU.MAIN,icon:"print",content:"Protolathe Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!d,menu:p.MENU.IMPRINTER,submenu:p.SUBMENU.MAIN,icon:"print",content:"Circuit Imprinter Menu"}),(0,e.createComponentVNode)(2,o.RndNavButton,{menu:p.MENU.SETTINGS,submenu:p.SUBMENU.MAIN,icon:"cog",content:"Settings"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:"12px"}),(0,e.createVNode)(1,"h3",null,"Current Research Levels:",16),(0,e.createComponentVNode)(2,t.LabeledList,{children:m.map(function(i){var h=i.name,V=i.level;return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:h,children:V},h)})})]})}return y}()},63459:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavButton=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.RndNavButton=function(){function p(k,y){var S=k.icon,b=k.children,C=k.disabled,c=k.content,u=(0,a.useBackend)(y),f=u.data,l=u.act,d=f.menu,m=f.submenu,i=d,h=m;return k.menu!==null&&k.menu!==void 0&&(i=k.menu),k.submenu!==null&&k.submenu!==void 0&&(h=k.submenu),(0,e.createComponentVNode)(2,t.Button,{content:c,icon:S,disabled:C,onClick:function(){function V(){l("nav",{menu:i,submenu:h})}return V}(),children:b})}return p}()},94942:function(I,r,n){"use strict";r.__esModule=!0,r.RndNavbar=void 0;var e=n(89005),a=n(13472),t=n(36036),o=n(16475),p=r.RndNavbar=function(){function k(){return(0,e.createComponentVNode)(2,t.Box,{className:"RndConsole__RndNavbar",children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S!==o.MENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,a.RndNavButton,{menu:o.MENU.MAIN,submenu:o.SUBMENU.MAIN,icon:"reply",content:"Main Menu"})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{submenu:function(){function y(S){return S!==o.SUBMENU.MAIN}return y}(),render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.DISK,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Disk Operations Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.LATHE,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Protolathe Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.IMPRINTER,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Circuit Imprinter Menu"})}return S}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:o.MENU.SETTINGS,render:function(){function S(){return(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.MAIN,icon:"reply",content:"Settings Menu"})}return S}()})]})}return y}()}),(0,e.createComponentVNode)(2,a.RndRoute,{menu:function(){function y(S){return S===o.MENU.LATHE||S===o.MENU.IMPRINTER}return y}(),submenu:o.SUBMENU.MAIN,render:function(){function y(){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_MAT_STORAGE,icon:"arrow-up",content:"Material Storage"}),(0,e.createComponentVNode)(2,a.RndNavButton,{submenu:o.SUBMENU.LATHE_CHEM_STORAGE,icon:"arrow-up",content:"Chemical Storage"})]})}return y}()})]})}return k}()},12059:function(I,r,n){"use strict";r.__esModule=!0,r.RndRoute=void 0;var e=n(72253),a=r.RndRoute=function(){function t(o,p){var k=o.render,y=(0,e.useBackend)(p),S=y.data,b=S.menu,C=S.submenu,c=function(){function f(l,d){return l==null?!0:typeof l=="function"?l(d):l===d}return f}(),u=c(o.menu,b)&&c(o.submenu,C);return u?k():null}return t}()},52580:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(13472),p=n(16475),k=r.SettingsMenu=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=C.act,f=c.sync,l=c.admin,d=c.linked_destroy,m=c.linked_lathe,i=c.linked_imprinter;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.MAIN,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Settings",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",align:"flex-start",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Sync Database with Network",icon:"sync",disabled:!f,onClick:function(){function V(){u("sync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Connect to Research Network",icon:"plug",disabled:f,onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{disabled:!f,icon:"unlink",content:"Disconnect from Research Network",onClick:function(){function V(){u("togglesync")}return V}()}),(0,e.createComponentVNode)(2,o.RndNavButton,{disabled:!f,content:"Device Linkage Menu",icon:"link",menu:p.MENU.SETTINGS,submenu:p.SUBMENU.SETTINGS_DEVICES}),l===1?(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation",content:"[ADMIN] Maximize Research Levels",onClick:function(){function V(){return u("maxresearch")}return V}()}):null]})})}return h}()}),(0,e.createComponentVNode)(2,o.RndRoute,{submenu:p.SUBMENU.SETTINGS_DEVICES,render:function(){function h(){return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage Menu",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"link",content:"Re-sync with Nearby Devices",onClick:function(){function V(){return u("find_device")}return V}()}),(0,e.createComponentVNode)(2,t.Box,{mt:"5px",children:(0,e.createVNode)(1,"h3",null,"Linked Devices:",16)}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[d?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Destructive Analyzer",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"destroy"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Destructive Analyzer Linked"}),m?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Protolathe",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){u("disconnect",{item:"lathe"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Protolathe Linked"}),i?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"* Circuit Imprinter",children:(0,e.createComponentVNode)(2,t.Button,{icon:"unlink",content:"Unlink",onClick:function(){function V(){return u("disconnect",{item:"imprinter"})}return V}()})}):(0,e.createComponentVNode)(2,t.LabeledList.Item,{noColon:!0,label:"* No Circuit Imprinter Linked"})]})]})}return h}()})]})}return y}()},13472:function(I,r,n){"use strict";r.__esModule=!0,r.SettingsMenu=r.RndRoute=r.RndNavbar=r.RndNavButton=r.MainMenu=r.LatheSearch=r.LatheMenu=r.LatheMaterials=r.LatheMaterialStorage=r.LatheMainMenu=r.LatheChemicalStorage=r.LatheCategory=r.DeconstructionMenu=r.DataDiskMenu=r.CurrentLevels=void 0;var e=n(93098);r.CurrentLevels=e.CurrentLevels;var a=n(19192);r.DataDiskMenu=a.DataDiskMenu;var t=n(20887);r.DeconstructionMenu=t.DeconstructionMenu;var o=n(10666);r.LatheCategory=o.LatheCategory;var p=n(52285);r.LatheChemicalStorage=p.LatheChemicalStorage;var k=n(71964);r.LatheMainMenu=k.LatheMainMenu;var y=n(83706);r.LatheMaterials=y.LatheMaterials;var S=n(17906);r.LatheMaterialStorage=S.LatheMaterialStorage;var b=n(76749);r.LatheMenu=b.LatheMenu;var C=n(74698);r.LatheSearch=C.LatheSearch;var c=n(17180);r.MainMenu=c.MainMenu;var u=n(94942);r.RndNavbar=u.RndNavbar;var f=n(63459);r.RndNavButton=f.RndNavButton;var l=n(12059);r.RndRoute=l.RndRoute;var d=n(52580);r.SettingsMenu=d.SettingsMenu},40026:function(I,r,n){"use strict";r.__esModule=!0,r.RoboQuest=void 0;var e=n(89005),a=n(35840),t=n(72253),o=n(36036),p=n(98595),k=r.RoboQuest=function(){function y(S,b){var C=(0,t.useBackend)(b),c=C.act,u=C.data,f=u.hasID,l=u.name,d=u.questInfo,m=u.hasTask,i=u.canCheck,h=u.canSend,V=u.checkMessage,v=u.style,s=u.cooldown,g=u.instant_teleport,N=u.shopItems,x=u.points,B=u.cats,L=(0,t.useLocalState)(b,"shopState",!1),T=L[0],A=L[1],E={medical:"blue",working:"brown",security:"red",working_medical:"olive",medical_security:"violet",working_medical_security:"grey"};return(0,e.createComponentVNode)(2,p.Window,{theme:v,width:1e3,height:540,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:40,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0437\u0430\u043A\u0430\u0437",buttons:(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043C\u0435\u0445\u0430",icon:"search",tooltipPosition:"bottom",tooltip:"\u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u043D\u0430 \u043D\u0430\u043B\u0438\u0447\u0438\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0445 \u0434\u043B\u044F \u0437\u0430\u043A\u0430\u0437\u0430 \u043C\u043E\u0434\u0443\u043B\u0435\u0439.",disabled:!f||!m||!i||s,onClick:function(){function w(){return c("Check")}return w}()}),children:[(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{basis:60,textAlign:"center",align:"center",children:!!m&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest_large128x128",d.icon]))}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Divider,{vertical:!0})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:42,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id<4&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&d.modules.map(function(w){return w.id>3&&(0,e.createVNode)(1,"img",(0,a.classes)(["roboquest64x64",w.icon]),null,1,null,w.id)})})]})})]}),(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Divider),(0,e.createVNode)(1,"b",null,V,0)],4),!!s&&(0,e.createFragment)([(0,e.createVNode)(1,"b",null,"\u0417\u0430 \u043E\u0442\u043A\u0430\u0437 \u043E\u0442 \u0437\u0430\u043A\u0430\u0437\u0430, \u0432\u044B \u0431\u044B\u043B\u0438 \u043E\u0442\u0441\u0442\u0440\u0430\u043D\u0435\u043D\u044B \u043E\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u043D\u0430 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,s,0)],4)]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:(0,e.createComponentVNode)(2,o.Box,{children:["\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u0447\u0435\u0440\u0442\u0435\u0436\u0435\u0439",(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",(0,e.createVNode)(1,"b",null,x.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,x.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,x.security,0,{style:{color:"red"}})]})]}),children:Object.keys(N).map(function(w){return(0,e.createFragment)(!(N[w]===void 0||N[w].length===0||w==="robo")&&N[w].map(function(O){return(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:E[w],image:O.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[O.name," ",(0,e.createVNode)(1,"b",null,O.cost.working,0,{style:{color:"brown"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.medical,0,{style:{color:"lightblue"}}),"|",(0,e.createVNode)(1,"b",null,O.cost.security,0,{style:{color:"red"}})]}),content:O.desc,onClick:function(){function M(){return c("buyItem",{item:O.path})}return M}()},O.path)}),0,w)})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:20,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"\u0414\u0440\u0443\u0433\u043E\u0435",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041C\u0430\u0433\u0430\u0437\u0438\u043D",width:"7rem",icon:"shopping-cart",onClick:function(){function w(){return A(!T)}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"cog",tooltipPosition:"bottom",tooltip:"\u0418\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u0435 \u0441\u0442\u0438\u043B\u044F \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430.",onClick:function(){function w(){return c("ChangeStyle")}return w}()})],4),children:[!!l&&(0,e.createFragment)([(0,e.createTextVNode)("\u0417\u0434\u0440\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435,"),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,l,0),(0,e.createVNode)(1,"br")],4),(0,e.createFragment)([(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041F\u0440\u0438 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0438 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0430 \u044D\u043A\u0437\u043A\u043E\u0441\u0442\u044E\u043C, \u0432\u044B\u0431\u043E\u0440 \u043F\u043E\u0434\u0442\u0438\u043F\u0430 \u043C\u0435\u0445\u0430 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u0442 \u0442\u0438\u043F \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043E\u0447\u043A\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u043D\u0430\u0447\u0438\u0441\u043B\u0435\u043D\u044B \u0437\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0437\u0430\u043A\u0430\u0437\u0430."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"brown",children:[" ","\u043A\u043E\u0440\u0438\u0447\u043D\u0435\u0432\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u041C\u0435\u0434\u0438\u0446\u0438\u043D\u0441\u043A\u0438\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"teal",children:[" ","\u0433\u043E\u043B\u0443\u0431\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438. \u0411\u043E\u0435\u0432\u044B\u0435 \u044D\u043A\u0437\u043E\u043A\u043E\u0441\u0442\u044E\u043C\u044B \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442"),(0,e.createTextVNode)(" "),(0,e.createComponentVNode)(2,o.Box,{inline:!0,color:"red",children:[" ","\u043A\u0440\u0430\u0441\u043D\u044B\u0435"]}),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u043E\u0447\u043A\u0438."),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),(0,e.createTextVNode)("\u041A\u0430\u0436\u0434\u044B\u0439 \u043C\u0435\u0445, \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043F\u043E\u0434\u0442\u0438\u043F\u0430, \u043F\u0440\u0438\u043D\u043E\u0441\u0438\u0442 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u043E\u0435 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0447\u043A\u043E\u0432 \u0434\u043B\u044F \u043C\u0430\u0433\u0430\u0437\u0438\u043D\u0430 \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434.")],0)]})}),(0,e.createComponentVNode)(2,o.Stack.Item,{basis:38,children:[!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"\u0418\u043D\u0444\u043E",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"id-card",content:"\u0412\u044B\u043D\u0443\u0442\u044C ID",disabled:!f,onClick:function(){function w(){return c("RemoveID")}return w}()}),!m&&(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",content:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043C\u0435\u0445",disabled:!f||s,onClick:function(){function w(){return c("GetTask")}return w}()}),!!m&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{content:"\u041F\u0435\u0447\u0430\u0442\u044C",icon:"print",onClick:function(){function w(){return c("printOrder")}return w}(),disabled:!m}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",content:"\u041E\u0442\u043A\u0430\u0437\u0430\u0442\u044C\u0441\u044F",disabled:!f||s,onClick:function(){function w(){return c("RemoveTask")}return w}()})],4)],0),children:[(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"1rem",children:[(0,e.createVNode)(1,"b",null,"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435: ",16),d.name,(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435: ",16),d.desc]}),(0,e.createComponentVNode)(2,o.Section,{title:"\u0422\u0440\u0435\u0431\u0443\u0435\u043C\u044B\u0435 \u041C\u043E\u0434\u0443\u043B\u0438:",level:2,children:(0,e.createComponentVNode)(2,o.Box,{mx:"0.5rem",mb:"0.5rem",children:!!m&&d.modules.map(function(w){return(0,e.createFragment)([(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Module "),w.id],0),(0,e.createTextVNode)(": "),w.name,(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br")],0,w.id)})})}),(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",textAlign:"center",children:[(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u041E\u0442\u043F\u0440\u0430\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u043D\u0430 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0439 \u0432\u0430\u043C\u0438 \u0442\u0435\u043B\u0435\u043F\u0430\u0434.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"send"})}return w}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"14rem",bold:!0,content:"\u0423\u043F\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"top",tooltip:"\u0423\u043F\u0430\u043A\u043E\u0432\u043A\u0430 \u043C\u0435\u0445\u0430 \u0434\u043B\u044F \u0441\u0430\u043C\u043E\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438 \u0432 \u043A\u0430\u0440\u0433\u043E.",disabled:!f||!m||!h||s,onClick:function(){function w(){return c("SendMech",{type:"only_packing"})}return w}()})]}),(0,e.createVNode)(1,"box",null,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-up",width:"30rem",bold:!0,content:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0445",textAlign:"center",tooltipPosition:"bottom",tooltip:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u043C\u0435\u0445\u0430 \u0437\u0430\u043A\u0430\u0437\u0447\u0438\u043A\u0443.",disabled:!f||!m||!h||s||!g,onClick:function(){function w(){return c("SendMech",{type:"instant"})}return w}()}),2,{mb:"1.5rem",textAlign:"center"})]}),!!T&&(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:(0,e.createFragment)([(0,e.createTextVNode)("\u041C\u0430\u0433\u0430\u0437\u0438\u043D \u043E\u0441\u043E\u0431\u044B\u0445 \u043D\u0430\u0433\u0440\u0430\u0434"),(0,e.createComponentVNode)(2,o.Box,{children:["\u041E\u0447\u043A\u0438: ",x.robo]})],4),children:N.robo.map(function(w){return(!w.emagOnly||v==="syndicate")&&(0,e.createComponentVNode)(2,o.ImageButton,{asset:!0,color:"purple",image:w.icon,imageAsset:"roboquest64x64",title:(0,e.createComponentVNode)(2,o.Box,{nowrap:!0,inline:!0,children:[w.name," ",(0,e.createVNode)(1,"b",null,w.cost.robo,0,{style:{color:"purple"}})]}),content:w.desc,onClick:function(){function O(){return c("buyItem",{item:w.path})}return O}()},w.name)})})]})]})})})}return y}()},26109:function(I,r,n){"use strict";r.__esModule=!0,r.RobotSelfDiagnosis=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(25328),k=function(b,C){var c=b/C;return c<=.2?"good":c<=.5?"average":"bad"},y=r.RobotSelfDiagnosis=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.data,f=u.component_data;return(0,e.createComponentVNode)(2,o.Window,{width:280,height:480,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:f.map(function(l,d){return(0,e.createComponentVNode)(2,t.Section,{title:(0,p.capitalize)(l.name),children:l.installed<=0?(0,e.createComponentVNode)(2,t.NoticeBox,{m:-.5,height:3.5,color:"red",style:{"font-style":"normal"},children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,textAlign:"center",align:"center",color:"#e8e8e8",children:l.installed===-1?"Destroyed":"Missing"})})}):(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"72%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",color:k(l.brute_damage,l.max_damage),children:l.brute_damage}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",color:k(l.electronic_damage,l.max_damage),children:l.electronic_damage})]})}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"50%",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Powered",color:l.powered?"good":"bad",children:l.powered?"Yes":"No"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Enabled",color:l.status?"good":"bad",children:l.status?"Yes":"No"})]})})]})},d)})})})}return S}()},97997:function(I,r,n){"use strict";r.__esModule=!0,r.RoboticsControlConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.RoboticsControlConsole=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.can_hack,l=u.safety,d=u.show_detonate_all,m=u.cyborgs,i=m===void 0?[]:m;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:460,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[!!d&&(0,e.createComponentVNode)(2,t.Section,{title:"Emergency Self Destruct",children:[(0,e.createComponentVNode)(2,t.Button,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){function h(){return c("arm",{})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){function h(){return c("nuke",{})}return h}()})]}),(0,e.createComponentVNode)(2,k,{cyborgs:i,can_hack:f})]})})}return y}(),k=function(S,b){var C=S.cyborgs,c=S.can_hack,u=(0,a.useBackend)(b),f=u.act,l=u.data;return C.length?C.map(function(d){return(0,e.createComponentVNode)(2,t.Section,{title:d.name,buttons:(0,e.createFragment)([!!d.hackable&&!d.emagged&&(0,e.createComponentVNode)(2,t.Button,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){function m(){return f("hackbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:d.locked_down?"unlock":"lock",color:d.locked_down?"good":"default",content:d.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){function m(){return f("stopbot",{uid:d.uid})}return m}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){function m(){return f("killbot",{uid:d.uid})}return m}()})],0),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:(0,e.createComponentVNode)(2,t.Box,{color:d.status?"bad":d.locked_down?"average":"good",children:d.status?"Not Responding":d.locked_down?"Locked Down":"Nominal"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:(0,e.createComponentVNode)(2,t.Box,{children:d.locstring})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.health>50?"good":"bad",value:d.health/100})}),typeof d.charge=="number"&&(0,e.createFragment)([(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Charge",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:d.charge>30?"good":"bad",value:d.charge/100})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell Capacity",children:(0,e.createComponentVNode)(2,t.Box,{color:d.cell_capacity<3e4?"average":"good",children:d.cell_capacity})})],4)||(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cell",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"No Power Cell"})}),!!d.is_hacked&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Safeties",children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"DISABLED"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Module",children:d.module}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master AI",children:(0,e.createComponentVNode)(2,t.Box,{color:d.synchronization?"default":"average",children:d.synchronization||"None"})})]})},d.uid)}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No cyborg units detected within access parameters."})}},54431:function(I,r,n){"use strict";r.__esModule=!0,r.Safe=void 0;var e=n(89005),a=n(79140),t=n(72253),o=n(36036),p=n(98595),k=r.Safe=function(){function C(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=d.contents;return(0,e.createComponentVNode)(2,p.Window,{theme:"safe",width:600,height:800,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Box,{className:"Safe--engraving",children:[(0,e.createComponentVNode)(2,y),(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"),i?(0,e.createComponentVNode)(2,S):(0,e.createComponentVNode)(2,o.Box,{as:"img",className:"Safe--dial",src:(0,a.resolveAsset)("safe_dial.png"),style:{transform:"rotate(-"+3.6*m+"deg)","z-index":0}})]}),!i&&(0,e.createComponentVNode)(2,b)]})})}return C}(),y=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.dial,i=d.open,h=d.locked,V=function(s,g){return(0,e.createComponentVNode)(2,o.Button,{disabled:i||g&&!h,icon:"arrow-"+(g?"right":"left"),content:(g?"Right":"Left")+" "+s,iconRight:g,onClick:function(){function N(){return l(g?"turnleft":"turnright",{num:s})}return N}(),style:{"z-index":10}})};return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer",children:[(0,e.createComponentVNode)(2,o.Button,{disabled:h,icon:i?"lock":"lock-open",content:i?"Close":"Open",mb:"0.5rem",onClick:function(){function v(){return l("open")}return v}()}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Box,{position:"absolute",children:[V(50),V(10),V(1)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--right",position:"absolute",right:"5px",children:[V(1,!0),V(10,!0),V(50,!0)]}),(0,e.createComponentVNode)(2,o.Box,{className:"Safe--dialer--number",children:m})]})},S=function(c,u){var f=(0,t.useBackend)(u),l=f.act,d=f.data,m=d.contents;return(0,e.createComponentVNode)(2,o.Box,{className:"Safe--contents",overflow:"auto",children:m.map(function(i,h){return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{mb:"0.5rem",onClick:function(){function V(){return l("retrieve",{index:h+1})}return V}(),children:[(0,e.createComponentVNode)(2,o.Box,{as:"img",src:i.sprite+".png",verticalAlign:"middle",ml:"-6px",mr:"0.5rem"}),i.name]}),(0,e.createVNode)(1,"br")],4,i)})})},b=function(c,u){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."})]})}},29740:function(I,r,n){"use strict";r.__esModule=!0,r.SatelliteControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SatelliteControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.satellites,f=c.notice,l=c.meteor_shield,d=c.meteor_shield_coverage,m=c.meteor_shield_coverage_max,i=c.meteor_shield_coverage_percentage;return(0,e.createComponentVNode)(2,o.Window,{width:475,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[l&&(0,e.createComponentVNode)(2,t.Section,{title:"Station Shield Coverage",children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:i>=100?"good":"average",value:d,maxValue:m,children:[i," %"]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Satellite Network Control",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Alert",color:"red",children:c.notice}),u.map(function(h){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"#"+h.id,children:[h.mode," ",(0,e.createComponentVNode)(2,t.Button,{content:h.active?"Deactivate":"Activate",icon:"arrow-circle-right",onClick:function(){function V(){return C("toggle",{id:h.id})}return V}()})]},h.id)})]})})]})})}return k}()},44162:function(I,r,n){"use strict";r.__esModule=!0,r.SecureStorage=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SecureStorage=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.emagged,f=c.locked,l=c.l_set,d=c.l_setshort,m=c.current_code,i=function(){function h(V){var v=V.buttonValue,s=V.color;return s||(s="default"),(0,e.createComponentVNode)(2,t.Button,{disabled:u||d,type:"button",color:s,onClick:function(){function g(){return C("setnumber",{buttonValue:v})}return g}(),children:v})}return h}();return(0,e.createComponentVNode)(2,o.Window,{width:520,height:200,children:(0,e.createComponentVNode)(2,t.Flex,{spacing:"1",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:16,shrink:0,textAlign:"center",children:(0,e.createComponentVNode)(2,t.Section,{title:"Code Panel",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"1"}),(0,e.createComponentVNode)(2,i,{buttonValue:"2"}),(0,e.createComponentVNode)(2,i,{buttonValue:"3"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"4"}),(0,e.createComponentVNode)(2,i,{buttonValue:"5"}),(0,e.createComponentVNode)(2,i,{buttonValue:"6"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"7"}),(0,e.createComponentVNode)(2,i,{buttonValue:"8"}),(0,e.createComponentVNode)(2,i,{buttonValue:"9"})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:[(0,e.createComponentVNode)(2,i,{buttonValue:"R",color:"red"}),(0,e.createComponentVNode)(2,i,{buttonValue:"0"}),(0,e.createComponentVNode)(2,i,{buttonValue:"E",color:"green"})]})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Current Status",children:u||d?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:u?"LOCKING SYSTEM ERROR - 1701":"ALERT: MEMORY SYSTEM ERROR - 6040 201"})}),u?(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"NEW INPUT, ASSHOLE"})}):""]}):(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Secure Code",children:(0,e.createComponentVNode)(2,t.Box,{color:l?"red":"green",children:l?"*****":"NOT SET. ENTER NEW."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Lock Status",children:(0,e.createComponentVNode)(2,t.Box,{color:f?"red":"green",children:f?"Locked":"Unlocked"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input Code",children:(0,e.createComponentVNode)(2,t.Box,{children:m||"Waiting for input"})}),(0,e.createComponentVNode)(2,t.Button,{top:".35em",left:".5em",disabled:f,color:"red",content:"Lock",icon:"lock",onClick:function(){function h(){return C("close")}return h}()})]})})]})})}return k}()},6272:function(I,r,n){"use strict";r.__esModule=!0,r.SecurityRecords=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(98595),k=n(3939),y=n(321),S=n(5485),b=n(22091),C={"*Execute*":"execute","*Arrest*":"arrest",Incarcerated:"incarcerated",Parolled:"parolled",Released:"released",Demote:"demote",Search:"search",Monitor:"monitor"},c=function(g,N){(0,k.modalOpen)(g,"edit",{field:N.edit,value:N.value})},u=r.SecurityRecords=function(){function s(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.loginState,A=L.currentPage,E;if(T.logged_in)A===1?E=(0,e.createComponentVNode)(2,l):A===2?E=(0,e.createComponentVNode)(2,i):A===3&&(E=(0,e.createComponentVNode)(2,h));else return(0,e.createComponentVNode)(2,p.Window,{width:800,height:900,theme:"security",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,S.LoginScreen)})});return(0,e.createComponentVNode)(2,p.Window,{theme:"security",width:800,height:900,children:[(0,e.createComponentVNode)(2,k.ComplexModal),(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.LoginInfo),(0,e.createComponentVNode)(2,b.TemporaryNotice),(0,e.createComponentVNode)(2,f),E]})})]})}return s}(),f=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.currentPage,A=L.general;return(0,e.createComponentVNode)(2,o.Tabs,{children:[(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===1,onClick:function(){function E(){return B("page",{page:1})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"list"}),"List Records"]}),(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===2,onClick:function(){function E(){return B("page",{page:2})}return E}(),children:[(0,e.createComponentVNode)(2,o.Icon,{name:"wrench"}),"Record Maintenance"]}),T===3&&A&&!A.empty&&(0,e.createComponentVNode)(2,o.Tabs.Tab,{selected:T===3,children:[(0,e.createComponentVNode)(2,o.Icon,{name:"file"}),"Record: ",A.fields[0].value]})]})},l=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.records,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1],O=(0,t.useLocalState)(N,"sortId","name"),M=O[0],P=O[1],F=(0,t.useLocalState)(N,"sortOrder",!0),R=F[0],U=F[1];return(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,m)}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,mt:.5,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{className:"SecurityRecords__list",children:[(0,e.createComponentVNode)(2,o.Table.Row,{bold:!0,children:[(0,e.createComponentVNode)(2,d,{id:"name",children:"Name"}),(0,e.createComponentVNode)(2,d,{id:"id",children:"ID"}),(0,e.createComponentVNode)(2,d,{id:"rank",children:"Assignment"}),(0,e.createComponentVNode)(2,d,{id:"fingerprint",children:"Fingerprint"}),(0,e.createComponentVNode)(2,d,{id:"status",children:"Criminal Status"})]}),T.filter((0,a.createSearch)(E,function(j){return j.name+"|"+j.id+"|"+j.rank+"|"+j.fingerprint+"|"+j.status})).sort(function(j,W){var K=R?1:-1;return j[M].localeCompare(W[M])*K}).map(function(j){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"SecurityRecords__listRow--"+C[j.status],onClick:function(){function W(){return B("view",{uid_gen:j.uid_gen,uid_sec:j.uid_sec})}return W}(),children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"user"})," ",j.name]}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.id}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.rank}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.fingerprint}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:j.status})]},j.id)})]})})})],4)},d=function(g,N){var x=(0,t.useLocalState)(N,"sortId","name"),B=x[0],L=x[1],T=(0,t.useLocalState)(N,"sortOrder",!0),A=T[0],E=T[1],w=g.id,O=g.children;return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Table.Cell,{children:(0,e.createComponentVNode)(2,o.Button,{color:B!==w&&"transparent",fluid:!0,onClick:function(){function M(){B===w?E(!A):(L(w),E(!0))}return M}(),children:[O,B===w&&(0,e.createComponentVNode)(2,o.Icon,{name:A?"sort-up":"sort-down",ml:"0.25rem;"})]})})})},m=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=(0,t.useLocalState)(N,"searchText",""),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{ml:"0.25rem",content:"New Record",icon:"plus",onClick:function(){function O(){return B("new_general")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Cell Log",onClick:function(){function O(){return(0,k.modalOpen)(N,"print_cell_log")}return O}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by Name, ID, Assignment, Fingerprint, Status",fluid:!0,onInput:function(){function O(M,P){return w(P)}return O}()})})]})},i=function(g,N){var x=(0,t.useBackend)(N),B=x.act;return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"download",content:"Backup to Disk",tooltip:"This feature is not available.",tooltipPosition:"right"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button,{disabled:!0,icon:"upload",content:"Upload from Disk",tooltip:"This feature is not available.",tooltipPosition:"right",my:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){function L(){return B("delete_security_all")}return L}(),mb:"0.5rem"}),(0,e.createVNode)(1,"br"),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",content:"Delete All Cell Logs",onClick:function(){function L(){return B("delete_cell_logs")}return L}()})]})},h=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.isPrinting,A=L.general,E=L.security;return!A||!A.fields?(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"General records lost!"}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,level:2,mt:"-6px",title:"General Data",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:T,icon:T?"spinner":"print",iconSpin:!!T,content:"Print Record",onClick:function(){function w(){return B("print_record")}return w}()}),(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",tooltip:"WARNING: This will also delete the Security and Medical records associated with this crew member!",tooltipPosition:"bottom-start",content:"Delete Record",onClick:function(){function w(){return B("delete_general")}return w}()})],4),children:(0,e.createComponentVNode)(2,V)})}),!E||!E.fields?(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"pen",content:"Create New Record",onClick:function(){function w(){return B("new_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{bold:!0,grow:!0,textAlign:"center",fontSize:1.75,align:"center",color:"label",children:[(0,e.createComponentVNode)(2,o.Icon.Stack,{children:[(0,e.createComponentVNode)(2,o.Icon,{name:"scroll",size:5,color:"gray"}),(0,e.createComponentVNode)(2,o.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"Security records lost!"]})})})}):(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Security Data",buttons:(0,e.createComponentVNode)(2,o.Button.Confirm,{icon:"trash",disabled:E.empty,content:"Delete Record",onClick:function(){function w(){return B("delete_security")}return w}()}),children:(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:E.fields.map(function(w,O){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:w.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(w.value),!!w.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:w.line_break?"1rem":"initial",onClick:function(){function M(){return c(N,w)}return M}()})]},O)})})})})}),(0,e.createComponentVNode)(2,v)],4)],0)},V=function(g,N){var x=(0,t.useBackend)(N),B=x.data,L=B.general;return!L||!L.fields?(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,color:"bad",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,children:"General records lost!"})})}):(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:L.fields.map(function(T,A){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:T.field,preserveWhitespace:!0,children:[(0,a.decodeHtmlEntities)(""+T.value),!!T.edit&&(0,e.createComponentVNode)(2,o.Button,{icon:"pen",ml:"0.5rem",mb:T.line_break?"1rem":"initial",onClick:function(){function E(){return c(N,T)}return E}()})]},A)})})}),!!L.has_photos&&L.photos.map(function(T,A){return(0,e.createComponentVNode)(2,o.Stack.Item,{inline:!0,textAlign:"center",color:"label",ml:0,children:[(0,e.createVNode)(1,"img",null,null,1,{src:T,style:{width:"96px","margin-top":"5rem","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Photo #",A+1]},A)})]})},v=function(g,N){var x=(0,t.useBackend)(N),B=x.act,L=x.data,T=L.security;return(0,e.createComponentVNode)(2,o.Stack.Item,{height:"150px",children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Comments/Log",buttons:(0,e.createComponentVNode)(2,o.Button,{icon:"comment",content:"Add Entry",onClick:function(){function A(){return(0,k.modalOpen)(N,"comment_add")}return A}()}),children:T.comments.length===0?(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No comments found."}):T.comments.map(function(A,E){return(0,e.createComponentVNode)(2,o.Box,{preserveWhitespace:!0,children:[(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:A.header||"Auto-generated"}),(0,e.createVNode)(1,"br"),A.text||A,(0,e.createComponentVNode)(2,o.Button,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){function w(){return B("comment_delete",{id:E+1})}return w}()})]},E)})})})}},5099:function(I,r,n){"use strict";r.__esModule=!0,r.SeedExtractor=void 0;var e=n(89005),a=n(25328),t=n(35840),o=n(72253),p=n(36036),k=n(98595),y=n(3939);function S(m,i){var h=typeof Symbol!="undefined"&&m[Symbol.iterator]||m["@@iterator"];if(h)return(h=h.call(m)).next.bind(h);if(Array.isArray(m)||(h=b(m))||i&&m&&typeof m.length=="number"){h&&(m=h);var V=0;return function(){return V>=m.length?{done:!0}:{done:!1,value:m[V++]}}}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 b(m,i){if(m){if(typeof m=="string")return C(m,i);var h={}.toString.call(m).slice(8,-1);return h==="Object"&&m.constructor&&(h=m.constructor.name),h==="Map"||h==="Set"?Array.from(m):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?C(m,i):void 0}}function C(m,i){(i==null||i>m.length)&&(i=m.length);for(var h=0,V=Array(i);h=E},v=function(A,E){return A<=E},s=i.split(" "),g=[],N=function(){var A=L.value,E=A.split(":");if(E.length===0)return 0;if(E.length===1)return g.push(function(M){return(M.name+" ("+M.variant+")").toLocaleLowerCase().includes(E[0].toLocaleLowerCase())}),0;if(E.length>2)return{v:function(){function M(P){return!1}return M}()};var w,O=h;if(E[1][E[1].length-1]==="-"?(O=v,w=Number(E[1].substring(0,E[1].length-1))):E[1][E[1].length-1]==="+"?(O=V,w=Number(E[1].substring(0,E[1].length-1))):w=Number(E[1]),isNaN(w))return{v:function(){function M(P){return!1}return M}()};switch(E[0].toLocaleLowerCase()){case"l":case"life":case"lifespan":g.push(function(M){return O(M.lifespan,w)});break;case"e":case"end":case"endurance":g.push(function(M){return O(M.endurance,w)});break;case"m":case"mat":case"maturation":g.push(function(M){return O(M.maturation,w)});break;case"pr":case"prod":case"production":g.push(function(M){return O(M.production,w)});break;case"y":case"yield":g.push(function(M){return O(M.yield,w)});break;case"po":case"pot":case"potency":g.push(function(M){return O(M.potency,w)});break;case"s":case"stock":case"c":case"count":case"a":case"amount":g.push(function(M){return O(M.amount,w)});break;default:return{v:function(){function M(P){return!1}return M}()}}},x,B=S(s),L;!(L=B()).done;)if(x=N(),x!==0&&x)return x.v;return function(T){for(var A=0,E=g;A=1?Number(O):1)}return E}()})]})]})}},2916:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleConsoleContent=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleConsole=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=m===void 0?"shuttle":m,h=c.blind_drop,V=d.authorization_required;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:240,children:[!!V&&(0,e.createComponentVNode)(2,t.Modal,{ml:1,mt:1,width:26,height:12,fontSize:"28px",fontFamily:"monospace",textAlign:"center",children:[(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,children:(0,e.createComponentVNode)(2,t.Icon,{name:"minus-circle"})}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2,ml:2,color:"bad",children:i==="shuttle"?"SHUTTLE LOCKED":"BASE LOCKED"})]}),(0,e.createComponentVNode)(2,t.Box,{fontSize:"18px",mt:4,children:(0,e.createComponentVNode)(2,t.Button,{lineHeight:"40px",icon:"arrow-circle-right",content:"Request Authorization",color:"bad",onClick:function(){function v(){return l("request")}return v}()})})]}),(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b,{type:i,blind_drop:h})})]})}return C}(),k=function(c,u){var f;return c==null||(f=c.find(function(l){return l.id===u}))==null?void 0:f.name},y=function(c,u){var f;return c==null||(f=c.find(function(l){return l.name===u}))==null?void 0:f.id},S={"In Transit":"good",Idle:"average",Igniting:"average",Recharging:"average",Missing:"bad","Unauthorized Access":"bad",Locked:"bad"},b=r.ShuttleConsoleContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=c.type,i=c.blind_drop,h=d.status,V=d.locked,v=d.authorization_required,s=d.destination,g=d.docked_location,N=d.timer_str,x=d.locations,B=x===void 0?[]:x;return(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,fontSize:"26px",textAlign:"center",fontFamily:"monospace",children:N||"00:00"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",fontSize:"14px",mb:1,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,bold:!0,children:"STATUS:"}),(0,e.createComponentVNode)(2,t.Box,{inline:!0,color:S[h]||"bad",ml:1,children:h||"Not Available"})]}),(0,e.createComponentVNode)(2,t.Section,{title:m==="shuttle"?"Shuttle Controls":"Base Launch Controls",level:2,children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:g||"Not Available"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",buttons:m!=="shuttle"&&B.length===0&&!!i&&(0,e.createComponentVNode)(2,t.Button,{color:"bad",icon:"exclamation-triangle",disabled:v||!i,content:"Blind Drop",onClick:function(){function L(){return l("random")}return L}()}),children:B.length===0&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"bad",children:"Not Available"})||B.length===1&&(0,e.createComponentVNode)(2,t.Box,{mb:1.7,color:"average",children:k(B,s)})||(0,e.createComponentVNode)(2,t.Dropdown,{mb:1.7,over:!0,width:"240px",options:B.map(function(L){return L.name}),disabled:V||v,selected:k(B,s)||"Select a Destination",onSelected:function(){function L(T){return l("set_destination",{destination:y(B,T)})}return L}()})})]}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Depart",disabled:!k(B,s)||V||v||h!=="Idle",icon:"arrow-up",textAlign:"center",onClick:function(){function L(){return l("move",{shuttle_id:s})}return L}()})]})]})}return C}()},39401:function(I,r,n){"use strict";r.__esModule=!0,r.ShuttleManipulator=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ShuttleManipulator=function(){function b(C,c){var u=(0,a.useLocalState)(c,"tabIndex",0),f=u[0],l=u[1],d=function(){function m(i){switch(i){case 0:return(0,e.createComponentVNode)(2,k);case 1:return(0,e.createComponentVNode)(2,y);case 2:return(0,e.createComponentVNode)(2,S);default:return"WE SHOULDN'T BE HERE!"}}return m}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:700,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Box,{fillPositionedParent:!0,children:[(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===0,onClick:function(){function m(){return l(0)}return m}(),icon:"info-circle",children:"Status"},"Status"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===1,onClick:function(){function m(){return l(1)}return m}(),icon:"file-import",children:"Templates"},"Templates"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:f===2,onClick:function(){function m(){return l(2)}return m}(),icon:"tools",children:"Modification"},"Modification")]}),d(f)]})})})}return b}(),k=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.shuttles;return(0,e.createComponentVNode)(2,t.Box,{children:d.map(function(m){return(0,e.createComponentVNode)(2,t.Section,{title:m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"ID",children:m.id}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Timer",children:m.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Mode",children:m.mode}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:m.status}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:m.id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Fast Travel",icon:"fast-forward",onClick:function(){function i(){return f("fast_travel",{id:m.id})}return i}()})]})]})},m.name)})})},y=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.templates_tabs,m=l.existing_shuttle,i=l.templates;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Tabs,{children:d.map(function(h){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===m.id,icon:"file",onClick:function(){function V(){return f("select_template_category",{cat:h})}return V}(),children:h},h)})}),!!m&&i[m.id].templates.map(function(h){return(0,e.createComponentVNode)(2,t.Section,{title:h.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[h.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:h.description}),h.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:h.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Load Template",icon:"download",onClick:function(){function V(){return f("select_template",{shuttle_id:h.shuttle_id})}return V}()})})]})},h.name)})]})},S=function(C,c){var u=(0,a.useBackend)(c),f=u.act,l=u.data,d=l.existing_shuttle,m=l.selected;return(0,e.createComponentVNode)(2,t.Box,{children:[d?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: "+d.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:d.status}),d.timer&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Timer",children:d.timeleft}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:(0,e.createComponentVNode)(2,t.Button,{content:"Jump To",icon:"location-arrow",onClick:function(){function i(){return f("jump_to",{type:"mobile",id:d.id})}return i}()})})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Shuttle: None"}),m?(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: "+m.name,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[m.description&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Description",children:m.description}),m.admin_notes&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Admin Notes",children:m.admin_notes}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Actions",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Preview",icon:"eye",onClick:function(){function i(){return f("preview",{shuttle_id:m.shuttle_id})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Load",icon:"download",onClick:function(){function i(){return f("load",{shuttle_id:m.shuttle_id})}return i}()})]})]})}):(0,e.createComponentVNode)(2,t.Section,{title:"Selected Template: None"})]})}},88284:function(I,r,n){"use strict";r.__esModule=!0,r.Sleeper=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=n(98595),k=[["good","\u041D\u043E\u0440\u043C\u0430"],["average","\u041A\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435"],["bad","\u0417\u0430\u0444\u0438\u043A\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043C\u0435\u0440\u0442\u044C"]],y=[["\u0423\u0434\u0443\u0448\u044C\u0435.","oxyLoss"],["\u0422\u043E\u043A\u0441\u0438\u043D\u044B","toxLoss"],["\u0424\u0438\u0437.","bruteLoss"],["\u041E\u0436\u043E\u0433\u0438","fireLoss"]],S={average:[.25,.5],bad:[.5,1/0]},b=["bad","average","average","good","average","average","bad"],C=r.Sleeper=function(){function i(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=N?(0,e.createComponentVNode)(2,c):(0,e.createComponentVNode)(2,m);return(0,e.createComponentVNode)(2,p.Window,{width:550,height:760,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:x}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,l)})]})})})}return i}(),c=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant;return(0,e.createFragment)([(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,d)],4)},u=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.auto_eject_dead;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041F\u0430\u0446\u0438\u0435\u043D\u0442",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Box,{color:"label",inline:!0,children:"\u0410\u0432\u0442\u043E-\u0438\u0437\u0432\u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0442\u0440\u0443\u043F\u043E\u0432:\xA0"}),(0,e.createComponentVNode)(2,o.Button,{icon:x?"toggle-on":"toggle-off",selected:x,content:x?"\u0414\u0430":"\u041D\u0435\u0442",onClick:function(){function B(){return s("auto_eject_dead_"+(x?"off":"on"))}return B}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"user-slash",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",onClick:function(){function B(){return s("ejectify")}return B}()})],4),children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0418\u043C\u044F",children:N.name}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0446\u0435\u043D\u043A\u0430 \u0437\u0434\u043E\u0440\u0432\u043E\u044C\u044F",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.maxHealth,value:N.health/N.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.round)(N.health,0)})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0421\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435",color:k[N.stat][0],children:k[N.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.ProgressBar,{min:"0",max:N.maxTemp,value:N.bodyTemperature/N.maxTemp,color:b[N.temperatureSuitability+3],children:[(0,a.round)(N.btCelsius,0),"\xB0C,",(0,a.round)(N.btFaren,0),"\xB0F"]})}),!!N.hasBlood&&(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043A\u0440\u043E\u0432\u0438",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:N.bloodMax,value:N.bloodLevel/N.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[N.bloodPercent,"%, ",N.bloodLevel,"cl"]})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041F\u0443\u043B\u044C\u0441",verticalAlign:"middle",children:[N.pulse," BPM"]})],4)]})})},f=function(h,V){var v=(0,t.useBackend)(V),s=v.data,g=s.occupant;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041E\u0431\u0449\u0438\u0439 \u0443\u0440\u043E\u043D",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:y.map(function(N,x){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:N[0],children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:"100",value:g[N[1]]/100,ranges:S,children:(0,a.round)(g[N[1]],0)},x)},x)})})})},l=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.hasOccupant,x=g.isBeakerLoaded,B=g.beakerMaxSpace,L=g.beakerFreeSpace,T=g.dialysis,A=T&&L>0;return(0,e.createComponentVNode)(2,o.Section,{title:"\u0414\u0438\u0430\u043B\u0438\u0437",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{disabled:!x||L<=0||!N,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E":"\u0412\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u043E",onClick:function(){function E(){return s("togglefilter")}return E}()}),(0,e.createComponentVNode)(2,o.Button,{disabled:!x,icon:"eject",content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C",onClick:function(){function E(){return s("removebeaker")}return E}()})],4),children:x?(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"\u041E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u043E\u0431\u044A\u0451\u043C",children:(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:L/B,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[L,"u"]})})}):(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430."})})},d=function(h,V){var v=(0,t.useBackend)(V),s=v.act,g=v.data,N=g.occupant,x=g.chemicals,B=g.maxchem,L=g.amounts;return(0,e.createComponentVNode)(2,o.Section,{title:"\u041A\u0440\u043E\u0432\u043E\u0442\u043E\u043A \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",children:x.map(function(T,A){var E="",w;return T.overdosing?(E="bad",w=(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-circle"}),"\xA0 \u041F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0430!"]})):T.od_warning&&(E="average",w=(0,e.createComponentVNode)(2,o.Box,{color:"average",children:[(0,e.createComponentVNode)(2,o.Icon,{name:"exclamation-triangle"}),"\xA0 \u0420\u0438\u0441\u043A \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0438"]})),(0,e.createComponentVNode)(2,o.Box,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Section,{title:T.title,level:"3",mx:"0",lineHeight:"18px",buttons:w,children:(0,e.createComponentVNode)(2,o.Stack,{children:[(0,e.createComponentVNode)(2,o.ProgressBar,{min:"0",max:B,value:T.occ_amount/B,color:E,title:"\u0422\u0435\u043A\u0443\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C \u0432\u0435\u0449\u0435\u0441\u0442\u0432 \u0432 \u043A\u0440\u043E\u0432\u043E\u0442\u043E\u043A\u0435 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430 / \u041E\u0431\u0449\u0438\u0439 \u043E\u0431\u044A\u0451\u043C, \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0439 \u0434\u043B\u044F \u0432\u0432\u043E\u0434\u0430 \u0430\u043F\u043F\u0430\u0440\u0430\u0442\u043E\u043C",mr:"0.5rem",children:[T.pretty_amount,"/",B,"u"]}),L.map(function(O,M){return(0,e.createComponentVNode)(2,o.Button,{disabled:!T.injectable||T.occ_amount+O>B||N.stat===2,icon:"syringe",content:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u",title:"\u0412\u0432\u0435\u0441\u0442\u0438 "+O+"u \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0430 "+T.title+" \u0432 \u043F\u0430\u0446\u0438\u0435\u043D\u0442\u0430",mb:"0",height:"19px",onClick:function(){function P(){return s("chemical",{chemid:T.id,amount:O})}return P}()},M)})]})})},A)})})},m=function(h,V){return(0,e.createComponentVNode)(2,o.Section,{fill:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,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 \u0432\u043D\u0443\u0442\u0440\u0438 \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D."]})})})}},21597:function(I,r,n){"use strict";r.__esModule=!0,r.SlotMachine=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SlotMachine=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data;if(c.money===null)return(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"Could not scan your card or could not find account!"}),(0,e.createComponentVNode)(2,t.Box,{children:"Please wear or hold your ID and try again."})]})})});var u;return c.plays===1?u=c.plays+" player has tried their luck today!":u=c.plays+" players have tried their luck today!",(0,e.createComponentVNode)(2,o.Window,{width:350,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Box,{lineHeight:2,children:u}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Credits Remaining",children:(0,e.createComponentVNode)(2,t.AnimatedNumber,{value:c.money})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"50 credits to spin",children:(0,e.createComponentVNode)(2,t.Button,{icon:"coins",disabled:c.working,content:c.working?"Spinning...":"Spin",onClick:function(){function f(){return C("spin")}return f}()})})]}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,lineHeight:2,color:c.resultlvl,children:c.result})]})})})}return k}()},46348:function(I,r,n){"use strict";r.__esModule=!0,r.Smartfridge=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Smartfridge=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.secure,f=c.can_dry,l=c.drying,d=c.contents;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[!!u&&(0,e.createComponentVNode)(2,t.NoticeBox,{children:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u0440\u0435\u0434\u044A\u044F\u0432\u0438\u0442\u0435 \u0441\u0432\u043E\u044E ID-\u043A\u0430\u0440\u0442\u0443."}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,title:f?"\u0421\u0443\u0448\u0438\u043B\u044C\u043D\u0430\u044F \u0441\u0442\u043E\u0439\u043A\u0430":"\u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435",buttons:!!f&&(0,e.createComponentVNode)(2,t.Button,{width:4,icon:l?"power-off":"times",content:l?"\u041D\u0430\u0447\u0430\u0442\u044C \u0441\u0443\u0448\u043A\u0443":"\u0417\u0430\u043A\u043E\u043D\u0447\u0438\u0442\u044C \u0441\u0443\u0448\u043A\u0443",selected:l,onClick:function(){function m(){return C("drying")}return m}()}),children:[!d&&(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:(0,e.createComponentVNode)(2,t.Stack.Item,{bold:!0,grow:!0,textAlign:"center",align:"center",color:"average",children:[(0,e.createComponentVNode)(2,t.Icon.Stack,{children:[(0,e.createComponentVNode)(2,t.Icon,{name:"cookie-bite",size:5,color:"brown"}),(0,e.createComponentVNode)(2,t.Icon,{name:"slash",size:5,color:"red"})]}),(0,e.createVNode)(1,"br"),"\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435 \u043F\u0443\u0441\u0442\u043E."]})}),!!d&&d.slice().sort(function(m,i){return m.display_name.localeCompare(i.display_name)}).map(function(m){return(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{width:"55%",children:m.display_name}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:"25%",children:["(",m.quantity," \u0432 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{width:13,children:[(0,e.createComponentVNode)(2,t.Button,{width:3,icon:"arrow-down",tooltip:"\u0412\u0437\u044F\u0442\u044C \u043E\u0434\u043D\u0443 \u0448\u0442\u0443\u043A\u0443.",content:"1",onClick:function(){function i(){return C("vend",{index:m.vend,amount:1})}return i}()}),(0,e.createComponentVNode)(2,t.NumberInput,{width:"40px",minValue:0,value:0,maxValue:m.quantity,step:1,stepPixelSize:3,onChange:function(){function i(h,V){return C("vend",{index:m.vend,amount:V})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{width:4,icon:"arrow-down",content:"\u0412\u0441\u0451",tooltip:"\u0412\u0437\u044F\u0442\u044C \u0432\u0441\u0451.",tooltipPosition:"bottom-start",onClick:function(){function i(){return C("vend",{index:m.vend,amount:m.quantity})}return i}()})]})]},m)})]})]})})})}return k}()},86162:function(I,r,n){"use strict";r.__esModule=!0,r.Smes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(49968),p=n(98595),k=1e3,y=r.Smes=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.capacityPercent,d=f.capacity,m=f.charge,i=f.inputAttempt,h=f.inputting,V=f.inputLevel,v=f.inputLevelMax,s=f.inputAvailable,g=f.outputPowernet,N=f.outputAttempt,x=f.outputting,B=f.outputLevel,L=f.outputLevelMax,T=f.outputUsed,A=l>=100&&"good"||h&&"average"||"bad",E=x&&"good"||m>0&&"average"||"bad";return(0,e.createComponentVNode)(2,p.Window,{width:340,height:345,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Stored Energy",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:l*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]}})}),(0,e.createComponentVNode)(2,t.Section,{title:"Input",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Charge Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:i?"sync-alt":"times",selected:i,onClick:function(){function w(){return u("tryinput")}return w}(),children:i?"Auto":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:A,children:l>=100&&"Fully Charged"||h&&"Charging"||"Not Charging"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Input",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:V===0,onClick:function(){function w(){return u("input",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:V===0,onClick:function(){function w(){return u("input",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:V/k,fillValue:s/k,minValue:0,maxValue:v/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("input",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:V===v,onClick:function(){function w(){return u("input",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:V===v,onClick:function(){function w(){return u("input",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available",children:(0,o.formatPower)(s)})]})}),(0,e.createComponentVNode)(2,t.Section,{fill:!0,title:"Output",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Output Mode",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:N?"power-off":"times",selected:N,onClick:function(){function w(){return u("tryoutput")}return w}(),children:N?"On":"Off"}),children:(0,e.createComponentVNode)(2,t.Box,{color:E,children:g?x?"Sending":m>0?"Not Sending":"No Charge":"Not Connected"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Target Output",children:(0,e.createComponentVNode)(2,t.Stack,{inline:!0,width:"100%",children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:B===0,onClick:function(){function w(){return u("output",{target:"min"})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"backward",disabled:B===0,onClick:function(){function w(){return u("output",{adjust:-1e4})}return w}()})]}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Slider,{value:B/k,minValue:0,maxValue:L/k,step:5,stepPixelSize:4,format:function(){function w(O){return(0,o.formatPower)(O*k,1)}return w}(),onChange:function(){function w(O,M){return u("output",{target:M*k})}return w}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"forward",disabled:B===L,onClick:function(){function w(){return u("output",{adjust:1e4})}return w}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:B===L,onClick:function(){function w(){return u("output",{target:"max"})}return w}()})]})]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Outputting",children:(0,o.formatPower)(T)})]})})]})})})}return S}()},63584:function(I,r,n){"use strict";r.__esModule=!0,r.SolarControl=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SolarControl=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=0,f=1,l=2,d=c.generated,m=c.generated_ratio,i=c.tracking_state,h=c.tracking_rate,V=c.connected_panels,v=c.connected_tracker,s=c.cdir,g=c.direction,N=c.rotating_direction;return(0,e.createComponentVNode)(2,o.Window,{width:490,height:300,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Scan for new hardware",onClick:function(){function x(){return C("refresh")}return x}()}),children:(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,t.Grid.Column,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar tracker",color:v?"good":"bad",children:v?"OK":"N/A"}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Solar panels",color:V>0?"good":"bad",children:V})]})}),(0,e.createComponentVNode)(2,t.Grid.Column,{size:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power output",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:m,children:d+" W"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[s,"\xB0 (",g,")"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===l&&(0,e.createComponentVNode)(2,t.Box,{children:" Automated "}),i===f&&(0,e.createComponentVNode)(2,t.Box,{children:[" ",h,"\xB0/h (",N,")"," "]}),i===u&&(0,e.createComponentVNode)(2,t.Box,{children:" Tracker offline "})]})]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Controls",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Panel orientation",children:[i!==l&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0",step:1,stepPixelSize:1,minValue:0,maxValue:359,value:s,onDrag:function(){function x(B,L){return C("cdir",{cdir:L})}return x}()}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker status",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:"Off",selected:i===u,onClick:function(){function x(){return C("track",{track:u})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"clock-o",content:"Timed",selected:i===f,onClick:function(){function x(){return C("track",{track:f})}return x}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Auto",selected:i===l,disabled:!v,onClick:function(){function x(){return C("track",{track:l})}return x}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tracker rotation",children:[i===f&&(0,e.createComponentVNode)(2,t.NumberInput,{unit:"\xB0/h",step:1,stepPixelSize:1,minValue:-7200,maxValue:7200,value:h,format:function(){function x(B){var L=Math.sign(B)>0?"+":"-";return L+Math.abs(B)}return x}(),onDrag:function(){function x(B,L){return C("tdir",{tdir:L})}return x}()}),i===u&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Tracker offline "}),i===l&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"19px",children:" Automated "})]})]})})]})})}return k}()},38096:function(I,r,n){"use strict";r.__esModule=!0,r.SpawnersMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.SpawnersMenu=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.spawners||[];return(0,e.createComponentVNode)(2,o.Window,{width:700,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:u.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{mb:.5,title:f.name+" ("+f.amount_left+" left)",level:2,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Jump",onClick:function(){function l(){return C("jump",{ID:f.uids})}return l}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-circle-right",content:"Spawn",onClick:function(){function l(){return C("spawn",{ID:f.uids})}return l}()})],4),children:[(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mb:1,fontSize:"16px",children:f.desc}),!!f.fluff&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},textColor:"#878787",fontSize:"14px",children:f.fluff}),!!f.important_info&&(0,e.createComponentVNode)(2,t.Box,{style:{"white-space":"pre-wrap"},mt:1,bold:!0,color:"red",fontSize:"18px",children:f.important_info})]},f.name)})})})})}return k}()},7957:function(I,r,n){"use strict";r.__esModule=!0,r.SpiderOS=r.ShuttleConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595);function k(m,i){m.prototype=Object.create(i.prototype),m.prototype.constructor=m,y(m,i)}function y(m,i){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,V){return h.__proto__=V,h},y(m,i)}var S=r.SpiderOS=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g;return s.suit_tgui_state===0?g=(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:[(0,e.createComponentVNode)(2,t.Flex,{direction:"column",width:"60%",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,u)}),(0,e.createComponentVNode)(2,t.Flex.Item,{mt:2.2,backgroundColor:"rgba(0, 0, 0, 0)",children:(0,e.createComponentVNode)(2,f)})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"40%",height:"190px",grow:1,backgroundColor:"rgba(0, 0, 0, 0)",children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C)]})]}):s.suit_tgui_state===1&&(g=(0,e.createComponentVNode)(2,t.Flex,{width:"100%",height:"100%",direction:"column",shrink:1,spacing:1,children:(0,e.createComponentVNode)(2,t.Flex.Item,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:"100%",children:[(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d,{allMessages:s.current_load_text,finishedTimeout:3e3,current_initialisation_phase:s.current_initialisation_phase,end_terminal:s.end_terminal,onFinished:function(){function N(){return v("set_UI_state",{suit_tgui_state:0})}return N}()})]})})),(0,e.createComponentVNode)(2,p.Window,{width:800,height:630,theme:"spider_clan",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",spacing:1,children:g})})})}return m}(),b=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.stylesIcon,g=v.style_preview_icon_state;return(0,e.createComponentVNode)(2,t.Section,{title:"\u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u044F \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},m:"0px",width:"100%",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0432\u043D\u0435\u0448\u043D\u0435\u0433\u043E \u0432\u0438\u0434\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u041D\u0430\u0448\u0438 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0442 \u0432\u0430\u043C \u043F\u043E\u0434\u0441\u0442\u0440\u043E\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u043E\u0434 \u0441\u0435\u0431\u044F, \u043F\u0440\u0438 \u044D\u0442\u043E\u043C \u043D\u0435 \u0442\u0435\u0440\u044F\u044F \u043E\u0431\u043E\u0440\u043E\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0430\u0447\u0435\u0441\u0442\u0432. \u041F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u043E \u043F\u0440\u0438 \u043D\u043E\u0448\u0435\u043D\u0438\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u0436\u0438\u0437\u043D\u0435\u043D\u043D\u043E \u0432\u0430\u0436\u043D\u043E \u0434\u043B\u044F \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0435\u0433\u043E \u0443\u0431\u0438\u0439\u0446\u044B.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.Section,{style:{background:"rgba(4, 74, 27, 0.75)"},mr:10,ml:10,children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"128px",width:"128px",icon:s,icon_state:g,style:{"margin-left":"0px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}})})})})})},C=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.designs,N=s.design_choice,x=s.scarf_design_choice,B=s.colors,L=s.color_choice,T=s.genders,A=s.preferred_clothes_gender,E=s.suit_state,w=s.preferred_scarf_over_hood,O=s.show_charge_UI,M=s.has_martial_art,P=s.show_concentration_UI,F;E===0?F="\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C":F="\u0414\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C";var R;w===0?R="\u041A\u0430\u043F\u044E\u0448\u043E\u043D":R="\u0428\u0430\u0440\u0444";var U;w===1?U=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C \u0448\u0430\u0440\u0444\u0430",content:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:x,onSelected:function(){function W(K){return v("set_scarf_design",{scarf_design_choice:K})}return W}()})}):U=null;var j;return M?j=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u044F",content:(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{selected:P,width:"78px",textAlign:"left",content:P?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_concentration")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0441\u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u043B\u0438 \u0432\u044B \u0434\u043B\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u043E\u0435\u0432\u043E\u0433\u043E \u0438\u0441\u0441\u043A\u0443\u0441\u0442\u0432\u0430.",tooltipPosition:"top-start"})]})}):j=null,(0,e.createComponentVNode)(2,t.Flex,{direction:"row",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,width:"100%",children:[(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0421\u0442\u0438\u043B\u044C",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:g,selected:N,onSelected:function(){function W(K){return v("set_design",{design_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0426\u0432\u0435\u0442",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:L,onSelected:function(){function W(K){return v("set_color",{color_choice:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0416\u0435\u043D\u0441\u043A\u0438\u0439/\u041C\u0443\u0436\u0441\u043A\u043E\u0439",children:(0,e.createComponentVNode)(2,t.Dropdown,{options:T,selected:A,onSelected:function(){function W(K){return v("set_gender",{preferred_clothes_gender:K})}return W}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0428\u0430\u0440\u0444/\u041A\u0430\u043F\u044E\u0448\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Button,{className:E===0?"":"Button_disabled",width:"90px",selected:w,disabled:E,textAlign:"left",content:R,onClick:function(){function W(){return v("toggle_scarf")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:'\u0421 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u043E\u0439 "\u0428\u0430\u0440\u0444" \u0432\u0430\u0448 \u043A\u0430\u043F\u044E\u0448\u043E\u043D \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u043E\u043B\u043E\u0441\u044B. \u041D\u043E \u044D\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u0447\u0438\u0442, \u0447\u0442\u043E \u0432\u0430\u0448\u0430 \u0433\u043E\u043B\u043E\u0432\u0430 \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u0430! \u0410\u0434\u0430\u043F\u0442\u0438\u0432\u043D\u044B\u0435 \u043D\u0430\u043D\u043E-\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u044E\u0442 \u043D\u0430 \u043F\u043E\u0442\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0433\u0440\u043E\u0437\u044B \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u044F \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443! \u0423\u0442\u043E\u0447\u043D\u0435\u043D\u0438\u0435: \u043D\u0430\u043D\u043E\u0432\u043E\u043B\u043E\u043A\u043D\u0430 \u0442\u0430\u043A \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u0440\u0438\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0443 \u0433\u043E\u043B\u043E\u0432\u0443 \u0438 \u043E\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0433\u043E\u043B\u043E\u0432\u043D\u044B\u0445 \u0443\u0431\u043E\u0440\u043E\u0432 \u0441 \u0446\u0435\u043B\u044C\u044E \u0443\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u044F \u043F\u043E\u043C\u0435\u0445 \u0432 \u0438\u0445 \u0440\u0430\u0431\u043E\u0442\u0435.',tooltipPosition:"top-start"})]}),U,(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0417\u0430\u0440\u044F\u0434 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",children:[(0,e.createComponentVNode)(2,t.Button,{selected:O,width:"90px",textAlign:"left",content:O?"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C":"\u0421\u043A\u0440\u044B\u0442\u044C",onClick:function(){function W(){return v("toggle_ui_charge")}return W}()}),(0,e.createComponentVNode)(2,t.Button,{textAlign:"center",content:"?",tooltip:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0435\u0433\u043E \u0437\u0430\u0440\u044F\u0434 \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430.",tooltipPosition:"top-start"})]}),j]})}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,mt:-1.3,mb:0,align:"center",children:(0,e.createComponentVNode)(2,t.Button,{width:"80%",icon:"power-off",textAlign:"center",content:F,backgroundColor:L,tooltip:"\u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043A\u043E\u0441\u0442\u044E\u043C \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044E \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0432 \u043D\u0451\u043C \u0437\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445. \n\u0423\u0447\u0442\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0441\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438, \u043A\u043E\u0433\u0434\u0430 \u043A\u043E\u0441\u0442\u044E\u043C \u0431\u0443\u0434\u0435\u0442 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u043A\u043B\u044E\u0447\u0451\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u043B\u044F\u0435\u0442 \u0437\u0430\u0440\u044F\u0434 \u0434\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0440\u0430\u0431\u043E\u0442\u044B \u0432\u0441\u0435\u0445 \u0444\u0443\u043D\u043A\u0446\u0438\u0439 \u0438 \u043C\u043E\u0434\u0443\u043B\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043A\u043E\u0441\u0442\u044E\u043C \u043D\u0435\u043B\u044C\u0437\u044F \u0441\u043D\u044F\u0442\u044C \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u043C, \u043F\u043E\u043A\u0430 \u043E\u043D \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D. \n\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u043E\u0432\u043D\u043E \u043A\u0430\u043A \u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A\u043E\u0441\u0442\u044E\u043C\u0430 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u043C\u043D\u043E\u0433\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u0438. \u041F\u043E\u0434\u0443\u043C\u0430\u0439\u0442\u0435 \u0434\u0432\u0430\u0436\u0434\u044B \u043F\u0440\u0435\u0436\u0434\u0435, \u0447\u0435\u043C \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u0442\u044C \u0435\u0433\u043E \u043D\u0430 \u0442\u0435\u0440\u0440\u0438\u0442\u043E\u0440\u0438\u0438 \u0432\u0440\u0430\u0433\u0430!",tooltipPosition:"top-start",onClick:function(){function W(){return v("initialise_suit")}return W}()})})]})})},c=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.actionsIcon;return(0,e.createComponentVNode)(2,t.Section,{m:"0",title:"\u0421\u043E\u0432\u0435\u0442\u044B \u0438 \u043F\u043E\u0434\u0441\u043A\u0430\u0437\u043A\u0438",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041C\u043E\u043B\u043E\u0434\u044B\u043C \u0443\u0431\u0438\u0439\u0446\u0430\u043C \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u043B\u0435\u0433\u043A\u043E \u043E\u0441\u0432\u043E\u0438\u0442\u0441\u044F \u0432 \u043F\u043E\u043B\u0435\u0432\u044B\u0445 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445, \u0434\u0430\u0436\u0435 \u043F\u043E\u0441\u043B\u0435 \u0438\u043D\u0442\u0435\u043D\u0441\u0438\u0432\u043D\u044B\u0445 \u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u043E\u043A. \n\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0434\u0435\u043B \u043F\u0440\u0438\u0437\u0432\u0430\u043D \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0441\u043E\u0432\u0435\u0442\u0430\u043C\u0438 \u043F\u043E \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0447\u0430\u0441\u0442\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u044E\u0449\u0438\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C \u043A\u0430\u0441\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u044B\u0445 \u043C\u0438\u0441\u0441\u0438\u0439 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0432\u0430\u043C \u0432\u044B\u0434\u0430\u0434\u0443\u0442 \u0438\u043B\u0438 \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u0430\u0442\u044C \u043E \u043C\u0430\u043B\u043E\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043A\u043E\u0442\u043E\u0440\u0443\u044E \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0435\u0440\u043D\u0443\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443.",tooltipPosition:"bottom-start"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"column",grow:1,alignContent:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{direction:"row",children:[(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_teleport",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0422\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044F \u0438 \u0448\u0430\u0442\u0442\u043B",content:"\u0412 \u0432\u0430\u0448\u0435\u043C \u0414\u043E\u0434\u0437\u0451 \u0435\u0441\u0442\u044C \u043B\u0438\u0447\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0438 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0422\u043E\u0447\u043A\u0430 \u043D\u0430\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0430\u044F, \u043D\u043E \u043F\u0440\u0438\u043E\u0440\u0438\u0442\u0435\u0442 \u0438\u0434\u0451\u0442 \u043D\u0430 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0442\u043E\u043D\u043D\u0435\u043B\u0438 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u043C\u0430\u043B\u043E\u043F\u043E\u0441\u0435\u0449\u0430\u0435\u043C\u044B\u0435 \u043C\u0435\u0441\u0442\u0430. \n\u042D\u0442\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u044B\u0439 \u0441\u043F\u043E\u0441\u043E\u0431 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0440\u0438\u0441\u0442\u0443\u043F\u0438\u0442\u044C \u043A \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \n\u041F\u043E\u043B\u044C\u0437\u0443\u044F\u0441\u044C \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u043C \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440\u043E\u043C \u0448\u0430\u0442\u0442\u043B\u0430, \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E \u043A \u0441\u0435\u0431\u0435 \u0438 \u0432\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430\u0437\u0430\u0434. \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u0435\u0441\u043B\u0438 \u0432\u044B \u0440\u0435\u0448\u0438\u0442\u0435 \u043F\u043E\u043B\u0435\u0442\u0435\u0442\u044C \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435, \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C \u0432\u0430\u043C, \u0447\u0442\u043E \u0432\u043E \u0438\u0437\u0431\u0435\u0436\u0430\u043D\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u0438\u044F \u0438\u043B\u0438 \u043A\u0440\u0430\u0436\u0438 \u0448\u0430\u0442\u0442\u043B\u0430 \u0438 \u043F\u043E\u043F\u0430\u0434\u0430\u043D\u0438\u044F \u043D\u0430 \u0432\u0430\u0448\u0443 \u0431\u0430\u0437\u0443 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0438\u0445 \u043B\u0438\u0446, \u043E\u0442\u043B\u0438\u0447\u043D\u043E\u0439 \u043F\u0440\u0430\u043A\u0442\u0438\u043A\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u043E\u0442\u043E\u0437\u0432\u0430\u0442\u044C \u0435\u0433\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"headset_green",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A",content:"\u0412 \u043E\u0442\u043B\u0438\u0447\u0438\u0438 \u043E\u0442 \u0441\u0442\u0430\u043D\u0434\u0430\u0440\u0442\u043D\u044B\u0445 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u043E\u0432 \u0431\u043E\u043B\u044C\u0448\u0438\u043D\u0441\u0442\u0432\u0430 \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0439, \u043D\u0430\u0448 \u0432\u0430\u0440\u0438\u0430\u043D\u0442 \u0441\u043E\u0437\u0434\u0430\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u0438. \u0412 \u043D\u0435\u0433\u043E \u0432\u0441\u0442\u0440\u043E\u0435\u043D \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0430\u043D\u0430\u043B \u0434\u043B\u044F \u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0431\u043E\u0440\u0433\u043E\u043C \u0438\u043B\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u0447\u043B\u0435\u043D\u0430\u043C\u0438 \u043A\u043B\u0430\u043D\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043E\u043D \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043B\u044E\u0431\u044B\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043D\u0430\u0443\u0448\u043D\u0438\u043A\u0438 \u0438 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043B\u0443\u0448\u043A\u0438 \u0438/\u0438\u043B\u0438 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430 \u043A\u0430\u043D\u0430\u043B\u044B \u0438\u0445 \u043A\u043B\u044E\u0447\u0435\u0439. \u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u044D\u0442\u043E\u043C\u0443 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u043D\u0430\u043A\u0430\u043F\u043B\u0438\u0432\u0430\u0442\u044C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0432\u0430\u043C \u043C\u0435\u0441\u0442\u043D\u044B\u0435 \u043A\u0430\u043D\u0430\u043B\u044B \u0441\u0432\u044F\u0437\u0438 \u0434\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043B\u044E\u0431\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u0430\u0448 \u043D\u0430\u0443\u0448\u043D\u0438\u043A \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438- \u0447\u0435\u0441\u043A\u0438 \u0443\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u0438 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u0438\u0442 \u0431\u0438\u043D\u0430\u0440\u043D\u044B\u0435 \u0441\u0438\u0433\u043D\u0430\u043B\u044B \u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u0435\u043C\u044B\u0435 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u043A\u0430\u043C\u0438 \u043F\u0440\u0438 \u043E\u0431\u0449\u0435\u043D\u0438\u0438 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043E\u043C. \u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044F \u0432\u0430\u043C \u0441\u0430\u043C\u0438\u043C \u043E\u0431\u0449\u0430\u0442\u044C\u0441\u044F \u0441 \u043D\u0438\u043C\u0438.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_sleeper",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0445\u0438\u0449\u0435\u043D\u0438\u0435 \u044D\u043A\u0438\u043F\u0430\u0436\u0430",content:"\u041F\u043E\u0440\u043E\u0439 \u043A\u043B\u0430\u043D\u0443 \u043D\u0443\u0436\u043D\u044B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043A\u043E\u0442\u043E\u0440\u044B\u043C\u0438 \u043C\u043E\u0433\u0443\u0442 \u043E\u0431\u043B\u0430\u0434\u0430\u0442\u044C \u043B\u044E\u0434\u0438 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0412 \u0442\u0430\u043A\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u0430\u043C \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0441\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0441\u043E\u0431\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u0443\u0436\u043E\u0433\u043E \u0440\u0430\u0437\u0443\u043C\u0430. \u0414\u0430\u0436\u0435 \u0435\u0441\u043B\u0438 \u0432\u0430\u043C \u043D\u0435 \u0443\u0434\u0430\u0441\u0442\u0441\u044F \u043D\u0430\u0439\u0442\u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E\u0449\u0435\u0433\u043E \u0432\u0441\u0435\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439 \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430, \u043C\u043E\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043E\u0431\u0440\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043F\u043E \u043A\u0440\u0443\u043F\u0438\u0446\u0430\u043C \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u044F \u043F\u043E\u0445\u0438\u0449\u0430\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \n\u0414\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0445\u0438- \u0442\u0438\u0442\u044C \u043B\u044E\u0434\u0435\u0439. \u0423 \u0432\u0430\u0441 \u043D\u0430 \u0448\u0430\u0442\u0442\u043B\u0435 \u0435\u0441\u0442\u044C \u0441\u043A\u0430\u0444\u0430\u043D\u0434\u0440\u044B, \u0430 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0437\u0430\u043F\u0430\u0441 \u043D\u0430- \u0440\u0443\u0447\u043D\u0438\u043A\u043E\u0432, \u043A\u0438\u0441\u043B\u043E\u0440\u043E\u0434\u0430 \u0438 \u0431\u0430\u043B\u043B\u043E- \u043D\u043E\u0432. \n\u0422\u0430\u043A \u0436\u0435 \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u0442\u044C \u0432 \u043B\u044E\u0434\u0435\u0439 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0438\u043C\u043F\u0443\u043B\u044C\u0441, \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u0441\u0442\u0430\u043D\u044F \u0438\u0445 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F. ",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ai_face",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0418\u0418",content:"\u0418\u043D\u043E\u0433\u0434\u0430 \u0443 \u043D\u0430\u0441 \u0437\u0430\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u0441\u0430\u0431\u043E- \u0442\u0430\u0436 \u0418\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0438\u043D\u0442\u0435\u043B\u043B\u0435\u043A\u0442\u0430 \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438. \u042D\u0442\u043E \u043F\u0440\u043E- \u0446\u0435\u0441\u0441 \u0441\u043B\u043E\u0436\u043D\u044B\u0439 \u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0449\u0438\u0439 \u043E\u0442 \u043D\u0430\u0441 \u043E\u0441\u043D\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u043F\u043E\u0434\u0433\u043E\u0442\u043E\u0432\u043A\u0438. \n\u041F\u0440\u0435\u0434\u043F\u043E\u0447\u0438\u0442\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0430\u043D\u043E\u043C \u043C\u0435\u0442\u043E\u0434 \u044D\u0442\u043E \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u0435 \u0443\u044F\u0437\u0432\u0438\u043C\u043E\u0441\u0442\u0438 \u043F\u0440\u044F\u043C\u043E \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439 \u0434\u043B\u044F \u0437\u0430\u043A\u043E\u043D\u043E\u0432 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0435\u0439 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0418\u0418 \u0438\u0437 \u0441\u0442\u0440\u043E\u044F. \u0412 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043C\u0435\u0442\u043E\u0434\u0430 \u043C\u044B \u043C\u043E\u0436\u0435\u043C \u043B\u0435\u0433\u043A\u043E \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0418\u0418 \u0430\u0431\u0441\u0443\u0440\u0434\u043D\u044B\u043C\u0438 \u0437\u0430\u043A\u043E\u043D\u0430\u043C\u0438, \u043D\u043E \u044D\u0442\u043E \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043D\u0430\u0441 \u0432 \u0442\u043E\u043C \u043F\u043B\u0430\u043D\u0435, \u0447\u0442\u043E \u0434\u043B\u044F \u0432\u0437\u043B\u043E\u043C\u0430 \u0432 \u0438\u0442\u043E\u0433\u0435 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u043A\u043E\u043D\u0441\u043E\u043B\u0438 \u0432 \u0441\u0430\u043C\u043E\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043E\u0447\u043D\u043E\u0439. \u0422\u0430\u043A \u0436\u0435 \u0432\u0437\u043B\u043E\u043C \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435\u043B\u0451\u0433\u043A\u0430\u044F - \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u0435\u0441\u0442\u044C \u0432\u0435\u0437\u0434\u0435. \u0410 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F. \u041D\u0435 \u0443\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435\u0441\u044C \u0435\u0441\u043B\u0438 \u0418\u0418 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432\u043E\u0434\u0435\u0439\u0441\u0442- \u0432\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0438\u043C \u043F\u043E\u043F\u044B\u0442\u043A\u0430\u043C \u0435\u0433\u043E \u0441\u043B\u043E\u043C\u0430\u0442\u044C.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"ninja_borg",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0440\u043E\u0431\u043E\u0442\u043E\u0432",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u043E\u0446\u0435\u043D\u0438\u0432\u0430\u044F \u0432\u0430\u0448\u0438 \u0448\u0430\u043D\u0441\u044B \u043D\u0430 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u043C\u0438\u0441\u0441\u0438\u0438 \u0434\u043B\u044F \u0438\u0445 \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445, \u0447\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442 \u0440\u043E\u0431\u043E\u0442\u043E\u0432 \u0434\u043B\u044F \u0441\u0432\u043E\u0438\u0445 \u0446\u0435\u043B\u0435\u0439, \u043C\u044B \u0434\u0430\u0451\u043C \u0432\u0430\u043C \u043E\u0441\u043E\u0431\u044B\u0439 "\u0423\u043B\u0443\u0447\u0448\u0430\u044E\u0449\u0438\u0439" \u0438\u0445 \u043F\u0440\u0438\u0431\u043E\u0440, \u0432\u0441\u0442\u0440\u043E\u0435\u043D\u043D\u044B\u0439 \u0432 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438. \n\u041F\u0440\u0438 \u0432\u0437\u043B\u043E\u043C\u0435 \u043A\u0438\u0431\u043E\u0440\u0433\u0430 \u0442\u0430\u043A\u0438\u043C \u043F\u0440\u0438\u0431\u043E\u0440\u043E\u043C(\u0412\u0437\u043B\u043E\u043C \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 \u0432\u0440\u0435\u043C\u044F) \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 \u043B\u043E\u044F\u043B\u044C\u043D\u043E\u0433\u043E \u043A\u043B\u0430\u043D\u0443 \u0438 \u0432\u0430\u043C \u043B\u0438\u0447\u043D\u043E \u0441\u043B\u0443\u0433\u0443 \u0441\u043F\u043E\u0441\u043E\u0431- \u043D\u043E\u0433\u043E \u043D\u0430 \u043E\u043A\u0430\u0437\u0430\u043D\u0438\u0435 \u043F\u043E\u043C\u043E\u0449\u0438 \u043A\u0430\u043A \u0432 \u0441\u0430\u0431\u043E\u0442\u0430\u0436\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0442\u0430\u043A \u0438 \u0432 \u0432\u0430\u0448\u0435\u043C \u043B\u0435\u0447\u0435\u043D\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0440\u043E\u0431\u043E\u0442 \u0431\u0443\u0434\u0435\u0442 \u043E\u0441\u043D\u0430\u0449\u0451\u043D \u043B\u0438\u0447\u043D\u043E\u0439 \u043A\u0430\u0442\u0430\u043D\u043E\u0439, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043A\u0438, \u043F\u0438\u043D\u043F\u043E\u0438\u043D\u0442\u0435\u0440\u043E\u043C \u0443\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u0435\u043C\u0443 \u043D\u0430 \u0432\u0430\u0441 \u0438 \u0433\u0435\u043D\u0435\u0440\u0430\u0442\u043E\u0440\u043E\u043C \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u043E\u0432. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u043A\u0430\u0442\u0430\u043D\u0430 \u0440\u043E\u0431\u043E\u0442\u0430 \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0442\u044C \u0435\u0433\u043E \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0442\u0440\u0430\u043D\u0441\u043B\u043E\u043A\u0430\u0446\u0438\u044E!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"server",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0430\u0431\u043E\u0442\u0430\u0436 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u0439",content:"\u041D\u0430 \u043D\u0430\u0443\u0447\u043D\u044B\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u0430\u0445 \u0432\u0441\u0435\u0433\u0434\u0430 \u0435\u0441\u0442\u044C \u0441\u0432\u043E\u044F \u043A\u043E\u043C\u0430\u043D\u0434\u0430 \u0443\u0447\u0451\u043D\u044B\u0445 \u0438 \u043C\u043D\u043E- \u0436\u0435\u0441\u0442\u0432\u043E \u0434\u0430\u043D\u043D\u044B\u0445 \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u0440\u0438\u0445\u043E- \u0434\u0438\u0442\u0441\u044F \u0433\u0434\u0435 \u0442\u043E \u0445\u0440\u0430\u043D\u0438\u0442\u044C. \u0412 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0430\u043A\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u044B\u0441\u0442\u0443- \u043F\u0430\u044E\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0410 \u043A\u0430\u043A \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u043E\u0440\u043F\u043E\u0440\u0430\u0446\u0438\u0438 \u0432\u0435\u0447\u043D\u043E \u0433\u0440\u044B\u0437\u0443\u0442\u0441\u044F \u0437\u0430 \u0437\u043D\u0430\u043D\u0438\u044F. \u0427\u0442\u043E \u043D\u0430\u043C \u043D\u0430 \u0440\u0443\u043A\u0443. \n\u041C\u044B \u0440\u0430\u0437\u0440\u0430\u0431\u043E\u0442\u0430\u043B\u0438 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0438\u0440\u0443\u0441 \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0430\u043D \u043D\u0430 \u0432\u0430\u0448\u0438 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0438 \u043F\u0435\u0440\u0435\u0434 \u043C\u0438\u0441\u0441\u0438\u0435\u0439 \u0442\u0430\u043A\u043E\u0433\u043E \u0440\u043E\u0434\u0430. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0431\u0443\u0434\u0435\u0442 \u043B\u0438\u0448\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0435\u0433\u043E \u043D\u0430\u043F\u0440\u044F\u043C\u0443\u044E \u043D\u0430 \u0438\u0445 \u043D\u0430\u0443\u0447\u043D\u044B\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u0432\u0441\u0435 \u0438\u0445 \u0438\u0441\u0441\u043B\u0435\u0434\u043E\u0432\u0430\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u0443\u0442\u0435\u0440\u044F\u043D\u044B. \n\u041D\u043E \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0432\u0438\u0440\u0443\u0441\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043C\u0435\u043D\u0438, \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u044B \u0437\u0430\u0449\u0438\u0442\u044B \u043C\u043D\u043E\u0433\u0438\u0445 \u043E\u0431\u044C\u0435\u043A\u0442\u043E\u0432 \u043D\u0435 \u0434\u0440\u0435\u043C\u043B\u044E\u0442. \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u043E \u0432\u0430\u0448\u0435\u0439 \u043F\u043E\u043F\u044B\u0442\u043A\u0435 \u0432\u0437\u043B\u043E\u043C\u0430 \u0431\u0443\u0434\u0435\u0442 \u043E\u043F\u043E\u0432\u0435\u0449\u0451\u043D \u043C\u0435\u0441\u0442\u043D\u044B\u0439 \u0418\u0418. \u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u044D\u0442\u043E\u043C\u0443.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"buckler",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0417\u0430\u0449\u0438\u0442\u0430 \u0446\u0435\u043B\u0438",content:'\u0418\u043D\u043E\u0433\u0434\u0430 \u0431\u043E\u0433\u0430\u0442\u044B\u0435 \u0448\u0438\u0448\u043A\u0438 \u043F\u043B\u0430\u0442\u044F\u0442 \u0437\u0430 \u0443\u0441\u043B\u0443\u0433\u0438 \u0437\u0430\u0449\u0438\u0442\u044B \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430. \u0415\u0441\u043B\u0438 \u0432\u0430\u043C \u0434\u043E\u0441\u0442\u0430\u043B\u0430\u0441\u044C \u0442\u0430\u043A\u0430\u044F \u0446\u0435\u043B\u044C \u043F\u043E\u043C\u043D\u0438\u0442\u0435 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435: \n * \u0417\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043E\u0431\u044F\u0437\u0430\u043D \u0434\u043E\u0436\u0438\u0442\u044C \u0434\u043E \u043A\u043E\u043D\u0446\u0430 \u0441\u043C\u0435\u043D\u044B! \n * \u0421\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u044B\u0439 \u043D\u0435 \u0437\u043D\u0430\u0435\u0442 \u043E \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435. \u0418 \u043B\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E\u043D \u0438 \u0434\u0430\u043B\u044C\u0448\u0435 \u043D\u0435 \u0437\u043D\u0430\u043B! \n * \u041D\u0435 \u0432\u0430\u0436\u043D\u043E \u043A\u0442\u043E \u0438\u043B\u0438 \u0447\u0442\u043E \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u043D\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043E\u0434\u0437\u0430\u0449\u0438\u0442\u043D\u043E\u0433\u043E, \u043D\u043E \u0434\u043B\u044F \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0433\u0434\u0435 \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442 \u043C\u0438\u0441\u0441\u0438\u044F \u0432\u044B \u0432\u0441\u0435\u0433\u0434\u0430 \u043D\u0435\u0436\u0435\u043B\u0430\u043D\u043D\u043E\u0435 \u043B\u0438\u0446\u043E. \u041D\u0435 \u0440\u0430\u0441\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0431\u044F \u0431\u0435\u0437 \u043D\u0443\u0436\u0434\u044B, \u0447\u0442\u043E\u0431\u044B \u0443\u043F\u0440\u043E\u0441\u0442\u0438\u0442\u044C \u0441\u0435\u0431\u0435 \u0436\u0435 \u0440\u0430\u0431\u043E\u0442\u0443 \u0438 \u043D\u0430 \u0432\u0430\u0441 \u0441\u0430\u043C\u0438\u0445 \u043D\u0435 \u0432\u0435\u043B\u0438 \u043E\u0445\u043E\u0442\u0443! \n\u0422\u0430\u043A \u0436\u0435 \u043C\u044B \u043D\u0430\u043F\u043E\u043C\u0438\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u043A\u043B\u0430\u043D \u043D\u0435 \u043E\u0434\u043E\u0431\u0440\u044F\u0435\u0442 \u0432\u0430\u0440\u0432\u0430\u0440\u0441\u043A\u0438\u0435 \u043C\u0435\u0442\u043E\u0434\u044B "\u0417\u0430\u0449\u0438\u0442\u044B" \u0446\u0435\u043B\u0438. \u041D\u0435\u0442 \u0432\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0441\u0430\u0434\u0438\u0442\u044C \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043C\u043E\u0433\u043E \u0432 \u043A\u043B\u0435\u0442\u043A\u0443 \u0438 \u0441\u043B\u0435\u0434\u0438\u0442\u044C \u0437\u0430 \u043D\u0438\u043C \u0442\u0430\u043C! \u041D\u0435 \u043F\u043E\u0440\u0442\u0438\u0442\u0435 \u043D\u0430\u0448\u0443 \u0440\u0435\u043F\u0443\u0442\u0430\u0446\u0438\u044E \u0432 \u0433\u043B\u0430\u0437\u0430\u0445 \u043D\u0430\u0448\u0438\u0445 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"cash",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041A\u0440\u0430\u0436\u0430 \u0434\u0435\u043D\u0435\u0433",content:"\u041A\u0430\u043A \u0431\u044B \u044D\u0442\u043E \u043D\u0435 \u0431\u044B\u043B\u043E \u0442\u0440\u0438\u0432\u0438\u0430\u043B\u044C\u043D\u043E. \u0418\u043D\u043E\u0433\u0434\u0430 \u043A\u043B\u0430\u043D \u043D\u0443\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u0432 \u0434\u0435\u043D\u044C- \u0433\u0430\u0445. \u0418\u043B\u0438 \u0434\u0430\u0436\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0432\u044B \u0437\u0430\u0434\u043E\u043B\u0436\u0430\u043B\u0438 \u043D\u0430\u043C. \u0412 \u0442\u0430\u043A\u043E\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043C\u044B \u0441\u043A\u043E\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043E \u0434\u0430\u0434\u0438\u043C \u0432\u0430\u043C \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0434\u043B\u044F \u043D\u0430\u0441 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \n\u0414\u043B\u044F \u0432\u0430\u0441 \u044D\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043D\u0435 \u0442\u0440\u0443\u0434\u043D\u0430\u044F, \u043D\u043E \u0432\u0440\u0435\u043C\u044F\u0437\u0430\u0442\u0440\u0430\u0442\u043D\u0430\u044F. \u041F\u043E\u043C\u043D\u0438\u0442\u0435, \u0447\u0442\u043E \u0432\u044B \u043D\u0430\u0442\u0440\u0435\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0432 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B\u0445 \u043A\u0430\u0440\u043C\u0430\u043D\u043D\u044B\u0445 \u043A\u0440\u0430\u0436. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u044D\u0442\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u043A\u0440\u0430\u0436\u0438 \u0447\u0443\u0436\u0438\u0445 \u043A\u0430\u0440\u0442 \u0438 \u043E\u0431\u043D\u0430\u043B\u0438\u0447\u0438- \u0432\u0430\u043D\u0438\u044F \u0438\u0445 \u0441\u0447\u0435\u0442\u043E\u0432. \u041B\u0438\u0431\u043E \u043C\u043E\u0436\u0435\u0442\u0435 \u043C\u0435\u0442\u0438\u0442\u044C \u0432\u044B\u0448\u0435 \u0438 \u043E\u0433\u0440\u0430\u0431\u0438\u0442\u044C \u0445\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0430 \u0438\u043B\u0438 \u0441\u0447\u0435\u0442\u0430 \u0441\u0430\u043C\u043E\u0433\u043E \u043E\u0431\u044C\u0435\u043A\u0442\u0430 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435. \u0414\u043E\u0441\u0442\u0430\u043D\u044C\u0442\u0435 \u044D\u0442\u0438 \u0434\u0435\u043D\u044C\u0433\u0438!",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"handcuff",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430",content:"\u0412 \u043D\u0435\u043A\u043E\u0442\u043E\u0440\u044B\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044F\u0445 \u0447\u0443\u0436\u043E\u0439 \u043F\u043E\u0437\u043E\u0440 \u0434\u043B\u044F \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u0432 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u043D\u0435\u0435 \u0447\u0435\u043C \u0441\u043C\u0435\u0440\u0442\u044C. \u0412 \u0442\u0430\u043A\u0438\u0445 \u0441\u043B\u0443\u0447\u0430\u044F\u0445 \u0432\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442\u0441\u044F \u043F\u0440\u043E\u044F\u0432\u0438\u0442\u044C \u043A\u0440\u0435\u0430\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0434\u043E\u0431\u0438\u0442\u044C\u0441\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u0432\u0430\u0448\u0443 \u0436\u0435\u0440\u0442\u0432\u0443 \u043F\u043E \u0437\u0430\u043A\u043E\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u0430\u043D\u0438\u044F\u043C \u0443\u043F\u0435\u043A\u043B\u0438 \u0437\u0430 \u0440\u0435\u0448\u0451\u0442\u043A\u0443 \u0421\u0430\u043C\u043E\u0435 \u0433\u043B\u0430\u0432\u043D\u043E\u0435 \u0447\u0442\u043E\u0431\u044B \u0432 \u043A\u0440\u0438\u043C\u0438\u043D\u0430\u043B\u044C\u043D\u043E\u0439 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0446\u0435\u043B\u0438 \u043E\u0441\u0442\u0430\u043B\u0441\u044F \u0441\u043B\u0435\u0434. \u041D\u043E \u0432 \u0442\u043E \u0436\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u043F\u0440\u0438\u0439\u0442\u0438 \u0438 \u0432\u043F\u0438\u0441\u0430\u0442\u044C \u0446\u0435\u043B\u0438 \u0441\u0440\u043E\u043A \u0432 \u043A\u043E\u043D\u0441\u043E\u043B\u0438 - \u043D\u0435 \u0440\u0430\u0431\u043E\u0447\u0438\u0439 \u043C\u0435\u0442\u043E\u0434. \u0426\u0435\u043B\u044C \u043B\u0435\u0433\u043A\u043E \u043E\u043F\u0440\u0430\u0432\u0434\u0430\u044E\u0442 \u0432 \u0441\u0443\u0434\u0435, \u0447\u0442\u043E \u043D\u0435 \u0443\u0441\u0442\u0440\u043E\u0438\u0442 \u043A\u043B\u0438\u0435\u043D\u0442\u0430. \n \u0423 \u0432\u0430\u0441 \u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043F\u0440\u0435\u0441\u0442\u0443\u043F\u043B\u0435\u043D\u0438\u0435 \u043F\u043E\u0434 \u043B\u0438\u0447\u0438\u043D\u043E\u0439 \u0446\u0435\u043B\u0438. \u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043F\u043E\u0441\u0442\u0430\u0440\u0430\u0439\u0442\u0435\u0441\u044C \u043E\u0431\u043E\u0439\u0442\u0438\u0441\u044C \u0431\u0435\u0437 \u0441\u043B\u0438\u0448- \u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u043F\u043E\u0441\u043B\u0435\u0434\u0441\u0442\u0432\u0438\u0439. \u041B\u0438\u0448\u043D\u044F\u044F \u0434\u044B\u0440\u0430 \u0432 \u043E\u0431\u0448\u0438\u0432\u043A\u0435 \u0441\u0442\u0430\u043D\u0446\u0438\u0438 \u0438\u043B\u0438 \u0442\u0440\u0443\u043F\u044B - \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u044E\u0442 \u0448\u0430\u043D\u0441\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0430 \u0432\u0430\u0448\u0435\u0433\u043E \u043F\u043B\u0430\u043D\u0430.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"spider_charge",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041F\u043E\u0434\u0440\u044B\u0432 \u043E\u0442\u0434\u0435\u043B\u0430",content:"\u0421\u0442\u0430\u0440\u044B\u0435 \u0434\u043E\u0431\u0440\u044B\u0435 \u0431\u043E\u043C\u0431\u044B. \u042D\u0444\u0444\u0435\u043A- \u0442\u0438\u0432\u043D\u044B\u0435 \u043E\u0440\u0443\u0434\u0438\u044F \u0443\u043D\u0438\u0447\u0442\u043E\u0436\u0435\u043D\u0438\u044F \u0432\u0441\u0435\u0433\u043E \u0436\u0438\u0432\u043E\u0433\u043E \u0438 \u043D\u0435\u0436\u0438\u0432\u043E\u0433\u043E \u0432 \u0431\u043E\u043B\u044C\u0448\u043E\u043C \u0440\u0430\u0434\u0438\u0443\u0441\u0435. \u041A\u043E\u0433\u0434\u0430 \u043A\u043B\u0438\u0435\u043D\u0442\u044B \u043F\u0440\u043E\u0441\u044F\u0442 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u043E\u0431\u044C\u0435\u043A\u0442, \u043E\u043D\u0438 \u0447\u0430\u0441\u0442\u043E \u043D\u0435 \u0437\u043D\u0430\u044E\u0442 \u043D\u0430\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0434\u043E\u0440\u043E\u0433\u043E \u0441\u0442\u043E\u0438\u0442 \u0442\u0430\u043A\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u041D\u043E \u0440\u0435\u0434\u043A\u043E \u0433\u043E\u0442\u043E\u0432\u044B \u0441\u0434\u0430\u0442\u044C\u0441\u044F. \u041A\u0430\u043A \u0440\u0430\u0437 \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u043C\u043D\u043E\u0433\u0438\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B \u043D\u0430 \u043F\u043E\u0434\u0440\u044B\u0432 \u043E\u0434\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0438\u043B\u0438 \u043E\u0442\u0434\u0435\u043B\u0430. \n\u0411\u0443\u0434\u044C\u0442\u0435 \u0433\u043E\u0442\u043E\u0432\u044B \u043A \u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043F\u043E\u0441\u043B\u0435 \u0432\u0437\u0440\u044B\u0432\u0430 \u043D\u0430 \u0432\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0435\u0441\u0442\u0438\u0441\u044C \u043E\u0445\u043E\u0442\u0430. \n \u041D\u0430\u0448\u0438 \u0431\u043E\u043C\u0431\u044B \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u0438\u0437\u0433\u043E\u0442\u043E\u0432\u043B\u0435\u043D\u044B \u0441 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0438\u0442\u0435\u043B\u044F\u043C\u0438. \u041D\u0438\u043A\u0442\u043E \u043A\u0440\u043E\u043C\u0435 \u0432\u0430\u0441 \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u0442 \u0438\u0445 \u043F\u043E\u0434\u043E\u0440\u0432\u0430\u0442\u044C \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B \u0441\u043C\u043E\u0436\u0435\u0442\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445 \u043B\u0438\u0448\u044C \u0432 \u0437\u043E\u043D\u0435 \u0437\u0430\u043A\u0430\u0437\u0430\u043D\u043D\u043E\u0439 \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C. \u0421\u043E\u0432\u0435\u0442\u0443\u0435\u043C \u0441\u0440\u0430\u0437\u0443 \u0431\u0435\u0436\u0430\u0442\u044C \u043F\u043E\u0434\u0430\u043B\u044C\u0448\u0435 \u043F\u043E\u0441\u043B\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438. \u0425\u043E\u0442\u044F \u044D\u0442\u043E \u0438 \u0442\u0430\u043A \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0434\u043B\u044F \u0432\u0430\u0441 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E.",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"BSM",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0410\u043D\u0430\u043B\u0438\u0437 \u043A\u0440\u043E\u0432\u0438",content:'"\u0417\u043D\u0430\u0439 \u0441\u0432\u043E\u0435\u0433\u043E \u0432\u0440\u0430\u0433\u0430" - \u043F\u0440\u043E\u0441\u0442\u0430\u044F \u0438\u0441\u0442\u0438\u043D\u0430. \n\u0417\u0430 \u0433\u043E\u0434\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u044F \u043A\u043B\u0430\u043D\u0430 \u043C\u044B \u0438\u0437\u0443\u0447\u0438\u043B\u0438 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0437\u043D\u044B\u0445 \u043E\u043F\u0430\u0441\u043D\u044B\u0445 \u0442\u0432\u0430\u0440\u0435\u0439. \u0418 \u0434\u043E \u0441\u0438\u0445 \u043F\u043E\u0440 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0435\u043C \u0438\u0437\u0443\u0447\u0435\u043D\u0438\u0435 \u043D\u0435\u043A\u043E- \u0442\u043E\u0440\u044B\u0445. \u0410 \u0447\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E, \u0447\u0442\u043E \u0438\u0437\u0443\u0447\u0430\u0442\u044C, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u044B\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B. \u041A\u0440\u043E\u0432\u044C \u043E\u0434\u0438\u043D \u0438\u0437 \u0441\u0430\u043C\u044B\u0445 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u044B\u0445 \u043F\u0440\u0438\u043C\u0435\u0440\u043E\u0432 \u0442\u043E\u0433\u043E, \u0447\u0442\u043E \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u043B\u0435\u0437\u043D\u043E \u043D\u0430\u0448\u0438\u043C \u0443\u0447\u0451\u043D\u044B\u043C. \n\u0418\u043C\u0435\u044E\u0449\u0430\u044F\u0441\u044F \u0443 \u0432\u0430\u0441 \u043D\u0430 \u0431\u0430\u0437\u0435 \u0446\u0435\u043D\u0442\u0440\u0438\u0444\u0443\u0433\u0430 \u0434\u043B\u044F \u043A\u0440\u043E\u0432\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u0430 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043F\u0440\u043E\u0430\u043D\u0430\u043B\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u0431\u0440\u0430\u0437\u0446\u044B \u043D\u0435 \u043F\u043E\u0432\u0440\u0435\u0434\u0438\u0432 \u0438\u0445 \u0438 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043D\u0430\u043C. \n\u0414\u043B\u044F \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043A\u0440\u043E\u0432\u0438 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043E\u0431\u0440\u0430\u0442\u044C 3 \u0443\u043D\u0438\u043A\u0430\u043B\u044C\u043D\u044B\u0445 \u043E\u0431\u0440\u0430\u0437\u0446\u0430. \u0418 \u043F\u043E\u043C\u0435- \u0441\u0442\u0438\u0442\u044C \u0438\u0445 \u0432 \u043F\u0440\u043E\u0431\u0438\u0440\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043F\u043E\u0442\u043E\u043C \u043D\u0430\u0434\u043E \u043F\u043E\u043C\u0435\u0441\u0442\u0438\u0442\u044C \u0432 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E. \n\u041F\u0440\u0438\u043C\u0435\u0441\u0438 \u043F\u0440\u0438\u043D\u044F\u0442\u044B \u043D\u0435 \u0431\u0443\u0434\u0443\u0442!',position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"changeling",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0413\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u044B",content:"\u0427\u0435\u0440\u0432\u0438 \u0432\u043E\u0437\u043E\u043C\u043D\u0438\u0432\u0448\u0438\u0435 \u0441\u0435\u0431\u044F \u0432\u044B\u0448\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0438\u0434\u043E\u0432 \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u0443\u043C\u0435\u044E\u0442 \u043A\u0440\u0430\u0441\u0442\u044C \u0433\u0435\u043D\u044B \u0438 \u0438\u043C\u0438\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0445. \n\u0421\u0432\u043E\u0438\u043C \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u043E\u043D\u0438 \u043F\u0440\u0438\u043D\u043E\u0441\u044F\u0442 \u0433\u043E\u0440\u0430\u0437\u0434\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u043F\u0440\u043E\u0431- \u043B\u0435\u043C, \u0447\u0435\u043C \u043F\u043E\u043B\u044C\u0437\u044B. \n\u042D\u0442\u0438 \u0442\u0432\u0430\u0440\u0438 \u0441\u0442\u043E\u043B\u044C \u0436\u0435 \u0445\u0438\u0442\u0440\u044B \u0441\u043A\u043E\u043B\u044C \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u044B. \u041D\u0435 \u0434\u043E\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441 \u043D\u0438\u043C\u0438 \u043D\u0438 \u043E \u0447\u0451\u043C! \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0436\u0435 \u043D\u0430\u043C \u0441\u043B\u043E\u0436\u043D\u043E \u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u0442\u044C \u0433\u0435\u043D\u043E\u043A\u0440\u0430\u0434\u0430 \u043D\u0435 \u0437\u0430\u043F\u0438\u0445- \u043D\u0443\u0432 \u0435\u0433\u043E \u0432 \u043B\u0430\u0431\u043E\u0440\u0430\u0442\u043E\u0440\u0438\u044E \u0438 \u043D\u0435 \u043F\u0440\u043E\u0432\u0435\u0434\u044F \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0442\u0435\u0441\u0442\u043E\u0432. \u041D\u043E \u043E\u043D\u0438 \u0438\u043D\u043E\u0433\u0434\u0430 \u0432\u044B\u0434\u0430\u044E\u0442 \u0441\u0435\u0431\u044F \u0441\u0432\u043E\u0438\u043C\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F\u043C\u0438. \u0418 \u0442\u0430\u043A \u0436\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u0438\u0432\u043D\u043E \u043B\u043E\u0436\u0430\u0442\u0441\u044F \u043D\u0430 \u0434\u043D\u043E \u0432 \u0441\u043B\u0443\u0447\u0430\u0435 \u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438. \u0427\u0442\u043E\u0431\u044B \u0431\u044B\u043B\u043E \u043B\u0435\u0433\u0447\u0435 \u0438\u0445 \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0434\u0430\u0439\u0442\u0435 \u0438\u043C \u043F\u043E\u043F\u043B\u044F\u0441\u0430\u0442\u044C, \u043F\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043C \u0432\u044B\u0445\u043E\u0434\u0438\u0442\u044C \u043D\u0430 \u0441\u0446\u0435\u043D\u0443. \u0418 \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0441\u043B\u0443\u0448\u0430\u0439\u0442\u0435 \u0440\u0430\u0434\u0438\u043E \u043D\u0430 \u043E\u0431\u044C\u0435\u043A\u0442\u0435. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u043C\u0435\u0441\u0442\u043D\u0430\u044F \u043E\u0445\u0440\u0430\u043D\u0430 \u0443\u0436\u0435 \u043E\u0445\u043E\u0442\u0438\u0442\u0441\u044F \u0437\u0430 \u043E\u0434\u043D\u0438\u043C \u0438\u0437 \u043D\u0438\u0445. \n\u041D\u0438\u043A\u0442\u043E \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0440\u043E\u0442\u0438\u0432 \u0435\u0441\u043B\u0438 \u0432\u044B \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u043E \u043F\u043E\u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u043C \u0441 \u044D\u0442\u0438\u043C...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"vampire",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0430\u043C\u043F\u0438\u0440\u044B",content:"\u0414\u0435\u0448\u0451\u0432\u044B\u0435 \u0440\u043E\u043C\u0430\u043D\u044B, \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0438 \u0441\u043A\u0430\u0437\u043A\u0438 \u043F\u0440\u043E\u0448\u043B\u043E\u0433\u043E \u043E\u043F\u0438\u0441\u044B\u0432\u0430\u043B\u0438 \u0432\u0430\u043C\u043F\u0438\u0440\u043E\u0432 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A\u043E\u0432 \u043F\u044C\u044E\u0449\u0438\u0445 \u043A\u0440\u043E\u0432\u044C \u043B\u044E\u0434\u0435\u0439 \u0432 \u043D\u043E\u0447\u0438 \u0438 \u043E\u0431\u043B\u0430\u0434\u0430\u044E- \u0449\u0438\u0445 \u043C\u0430\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E- \u0441\u0442\u044F\u043C\u0438. \u0418\u0437\u0432\u0435\u0441\u0442\u043D\u044B\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u043D\u0435\u0435 \u0440\u043E\u043C\u0430\u043D\u0442\u0438\u0447\u043D\u044B... \n\u041C\u044B \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u043D\u0430\u0435\u043C, \u0447\u0442\u043E \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u0438\u0445 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u0448\u0438 \u043F\u043E\u0434\u043E\u0437\u0440\u0435- \u043D\u0438\u044F \u043F\u0430\u0434\u0430\u044E\u0442 \u043D\u0430 \u0432\u043B\u0438\u044F\u043D\u0438\u0435 \u043D\u0435\u043A\u043E\u0439 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438. \u0422\u0430\u043A \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435, \u0434\u043E \u0442\u0435\u0445 \u043F\u043E\u0440 \u043F\u043E\u043A\u0430 \u0432\u0430\u043C\u043F\u0438\u0440 \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0443\u0433\u0440\u043E\u0436\u0430\u0435\u0442 \u0432\u0430\u0448\u0435\u0439 \u0436\u0438\u0437\u043D\u0438. \u0412\u044B \u0432\u043E\u043B\u044C\u043D\u044B \u0435\u0433\u043E \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \n\u0412\u0430\u043C\u043F\u0438\u0440\u044B \u043E\u0447\u0435\u043D\u044C \u043E\u043F\u0430\u0441\u043D\u044B \u0432 \u043F\u0440\u044F\u043C\u043E\u043C \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u043E\u043D\u0438 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u044B \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u0432\u0437\u0433\u043B\u044F\u0434\u043E\u043C \u0438 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0430\u0442\u044C \u0440\u0430\u0437\u0443\u043C \u0441\u0432\u043E\u0438\u0445 \u0436\u0435\u0440\u0442\u0432. \u041D\u0435 \u0434\u043E\u0432\u0435\u0440\u044F\u0439\u0442\u0435 \u0438\u043C, \u043D\u043E \u0442\u0430\u043A \u0436\u0435 \u043F\u043E\u043C\u043D\u0438\u0442\u0435 - \u043E\u043D\u0438 \u043B\u0438\u0448\u044C \u0436\u0435\u0440\u0442\u0432\u044B \u0441\u0442\u0435\u0447\u0435\u043D\u0438\u044F \u043E\u0431\u0441\u0442\u043E\u044F\u0442\u0435\u043B\u044C\u0441\u0442\u0432. \u0418 \u044D\u0442\u043E \u043C\u043E\u0436\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0432 \u0441\u0432\u043E\u044E \u043F\u043E\u043B\u044C\u0437\u0443...",position:"bottom-start"})]}),(0,e.createComponentVNode)(2,t.Button,{className:"Button_green",height:"32px",width:"32px",children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"32px",width:"32px",icon:s,icon_state:"syndicate",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442",content:"\u041D\u0430\u0448\u0438 \u0445\u043E\u0440\u043E\u0448\u0438\u0435 \u0437\u043D\u0430\u043A\u043E\u043C\u044B\u0435. \u0421\u0431\u043E\u0440\u0438\u0449\u0435 \u043C\u043E\u0433\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0445 \u0444\u0438\u0433\u0443\u0440 \u0432 \u043F\u043E\u0434\u043F\u043E\u043B\u044C\u043D\u043E\u043C \u043C\u0438\u0440\u0435 \u0441 \u0437\u0430\u043A\u0440\u044B\u0442\u043E\u0439 \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0440\u0443\u043A\u043E\u0432\u043E\u0434\u0441\u0442\u0432\u0430 \u043E \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043C\u0430\u043B\u043E... \n\u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442 \u043F\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0438 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442 \u043C\u043D\u043E\u0436\u0435\u0441\u0442\u0432\u043E \u0437\u0430\u043A\u0430\u0437\u043E\u0432. \u041D\u043E \u0441\u0430\u043C\u043E\u0439 \u043E\u0447\u0435\u0432\u0438\u0434\u043D\u043E\u0439, \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u043A\u0442\u043E \u043A\u0430\u043A \u0441\u043B\u0435\u0434\u0443\u0435\u0442 \u0438\u0445 \u0438\u0437\u0443\u0447\u0438\u0442, \u0447\u0435\u0440\u0442\u043E\u0439 \u044D\u0442\u043E\u0439 \u0433\u0440\u0443\u043F\u043F\u044B - \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043E\u0433\u0440\u043E\u043C\u043D\u0430\u044F \u043D\u0435\u043D\u0430\u0432\u0438\u0441\u0442\u044C \u043A \u041D\u0422. \n\u0412 \u0441\u043B\u0443\u0447\u0430\u0435 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u044F \u0441 \u0430\u0433\u0435\u043D\u0442\u0430\u043C\u0438 \u0421\u0438\u043D\u0434\u0438\u043A\u0430\u0442\u0430 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0430 \u043D\u0430\u0448\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043F\u0440\u043E\u0441\u0442\u0430. \n\u0415\u0441\u043B\u0438 \u043E\u043D\u0438 \u043D\u0435 \u043C\u0435\u0448\u0430\u044E\u0442 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044E \u0437\u0430\u0434\u0430\u043D\u0438\u044F. \u041C\u044B \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u043C \u0438\u043C.",position:"bottom-start"})]})]})})})},u=function(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data,g=s.actionsIcon,N=s.blocked_TGUI_rows,x=[{blue:"Button_blue",green:"Button_green",red:"Button_red",disabled:"Button_disabled"}];return(0,e.createComponentVNode)(2,t.Section,{title:"\u041C\u043E\u0434\u0443\u043B\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u0443\u043B\u0443\u0447\u0448\u0435\u043D\u0438\u044F \u0434\u043B\u044F \u0432\u0430\u0448\u0435\u0433\u043E \u043A\u043E\u0441\u0442\u044E\u043C\u0430! \u0414\u0435\u043B\u044F\u0442\u0441\u044F \u043D\u0430 3 \u0440\u0430\u0437\u043D\u044B\u0445 \u043F\u043E\u0434\u0445\u043E\u0434\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438. \u0418\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u0439 \u043F\u043E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044E \u0440\u0430\u0431\u043E\u0442\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043A\u043E\u0441\u0442\u044E\u043C\u0430, \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043C\u043E\u0434\u0443\u043B\u044F, \u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0435\u0442 \u043F\u0440\u0438\u043E\u0431\u0440\u0435\u0442\u0435\u043D\u0438\u0435 \u043C\u043E\u0434\u0443\u043B\u0435\u0439 \u043E\u0434\u043D\u043E\u0433\u043E \u0443\u0440\u043E\u0432\u043D\u044F \u0438\u0437 \u0441\u043E\u0441\u0435\u0434\u043D\u0438\u0445 \u0441\u0442\u043E\u043B\u0431\u0446\u043E\u0432",tooltipPosition:"bottom"}),children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",alignContent:"center",ml:1.5,children:[(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{width:"100%",title:"\u041F\u0440\u0438\u0437\u0440\u0430\u043A",ml:"0px",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0421\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0441\u0440\u0435\u0434\u0438 \u0432\u0440\u0430\u0433\u043E\u0432, \u043D\u0430\u043F\u0430\u0434\u0430\u0439\u0442\u0435 \u0438\u0437 \u0442\u0435\u043D\u0438 \u0438 \u0431\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0440\u0438\u043C\u043E\u0439 \u0443\u0433\u0440\u043E\u0437\u043E\u0439, \u0432\u0441\u0451 \u0434\u043B\u044F \u0442\u043E\u0433\u043E \u0447\u0442\u043E\u0431\u044B \u043E \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0435\u0439 \u043C\u0438\u0441\u0441\u0438\u0438 \u043D\u0438\u043A\u0442\u043E \u043D\u0435 \u0443\u0437\u043D\u0430\u043B! \u0411\u0443\u0434\u044C\u0442\u0435 \u043D\u0435\u0437\u0430\u043C\u0435\u0442\u043D\u044B \u043A\u0430\u043A \u043F\u0440\u0438\u0437\u0440\u0430\u043A!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(53, 94, 163, 0.8)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_blue",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"smoke",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"smoke",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0414\u042B\u041C\u041E\u0412\u0410\u042F \u0417\u0410\u0412\u0415\u0421\u0410",content:"\u0412\u044B \u0441\u043E\u0437\u0434\u0430\u0451\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u043F\u0443\u0442\u0430\u0442\u044C \u0441\u0432\u043E\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432. \n\u042D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u0441\u043E\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u0432\u0438\u0437\u043E\u0440\u043E\u043C \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u0442\u0435\u0440\u043C\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0441\u043A\u0430\u043D\u0435\u0440\u0430. \n\u0410 \u0442\u0430\u043A \u0436\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u0434\u0440\u0443\u0433\u0438\u043C\u0438 \u043C\u043E\u0434\u0443\u043B\u044F\u043C\u0438 \u0435\u0441\u043B\u0438 \u0432\u044B \u0442\u043E\u0433\u043E \u043F\u043E\u0436\u0435\u043B\u0430\u0435\u0442\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 250 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"ninja_cloak",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_cloak",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u041D\u0415\u0412\u0418\u0414\u0418\u041C\u041E\u0421\u0422\u042C",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u043C\u0430\u0441\u043A\u0438\u0440\u043E\u0432\u043E\u0447\u043D\u043E\u0435 \u043F\u043E\u043B\u0435 \u0441\u043A\u0440\u044B\u0432\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0441 \u0438\u0437 \u0432\u0438\u0434\u0443 \u0438 \u043F\u0440\u0438\u0433\u043B\u0443\u0448\u0430- \u044E\u0449\u0435\u0435 \u0432\u0430\u0448\u0438 \u0448\u0430\u0433\u0438. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \u0425\u043E\u0442\u044C \u043F\u043E\u043B\u0435 \u0438 \u0441\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u043F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E, \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u0443\u0431\u0438\u0439\u0446\u0430 \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0445\u043B\u0430\u0434\u043D\u043E\u043A\u0440\u043E\u0432\u0435\u043D. \n\u041D\u0435 \u0441\u0442\u043E\u0438\u0442 \u043D\u0435\u0434\u043E\u043E\u0446\u0435\u043D\u0438\u0432\u0430\u0442\u044C \u0432\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0445 \u043B\u044E\u0434\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 15 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"ninja_clones",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_clones",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u041A\u041B\u041E\u041D\u042B",content:"\u0421\u043E\u0437\u0434\u0430\u0451\u0442 \u0434\u0432\u0443\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0433\u043E\u0442\u043E\u0432\u044B\u0445 \u043F\u043E\u043C\u043E\u0447\u044C \u0432 \u0431\u0438\u0442\u0432\u0435 \u0438 \u0434\u0435\u0437\u043E\u0440\u0438\u0435\u043D\u0442\u0438- \u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u0430 \n\u0422\u0430\u043A \u0436\u0435 \u0432 \u043F\u0440\u043E\u0446\u0435\u0441\u0441\u0435 \u0441\u043C\u0435\u0449\u0430\u0435\u0442 \u0432\u0430\u0441 \u0438 \u0432\u0430\u0448\u0438\u0445 \u043A\u043B\u043E\u043D\u043E\u0432 \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u043C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043F\u0430\u0440\u044B \u043C\u0435\u0442\u0440\u043E\u0432. \n\u041F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435\u0441\u044C \u043E\u0441\u0442\u043E\u0440\u043E\u0436\u043D\u043E. \u0421\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0435 \u0441\u043C\u0435\u0449\u0435\u043D\u0438\u0435 \u043C\u043E\u0436\u0435\u0442 \u0437\u0430\u043F\u0435\u0440\u0435\u0442\u044C \u0432\u0430\u0441 \u0437\u0430 4-\u043C\u044F \u0441\u0442\u0435\u043D\u0430\u043C\u0438. \u0411\u0443\u0434\u044C\u0442\u0435 \u043A \u044D\u0442\u043E\u043C\u0443 \u0433\u043E\u0442\u043E\u0432\u044B. \n\u041A\u043B\u043E\u043D\u044B \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 20 \u0441\u0435\u043A\u0443\u043D\u0434. \u041A\u043B\u043E\u043D\u044B \u0438\u043C\u0435\u044E\u0442 \u0448\u0430\u043D\u0441 \u0440\u0430\u0437\u043C\u043D\u043E\u0436\u0438\u0442\u0441\u044F \u0430\u0442\u0430\u043A\u0443\u044F \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 8 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"chameleon",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chameleon",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0425\u0410\u041C\u0415\u041B\u0415\u041E\u041D",content:"\u0412\u044B \u0444\u043E\u0440\u043C\u0438\u0440\u0443\u0435\u0442\u0435 \u0432\u043E\u043A\u0440\u0443\u0433 \u0441\u0435\u0431\u044F \u0433\u043E\u043B\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043F\u043E\u043B\u0435 \u0438\u0441\u043A\u0430\u0436\u0430\u044E\u0449\u0435\u0435 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E\u0435 \u0438 \u0441\u043B\u0443\u0445\u043E\u0432\u043E\u0435 \u0432\u043E\u0441\u043F\u0440\u0438\u044F\u0442\u0438\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432. \n\u0412\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u0435\u0442\u044C \u0438 \u0441\u043B\u044B\u0448\u0430\u0442\u044C \u043A\u0430\u043A \u0447\u0435\u043B\u043E\u0432\u0435\u043A\u0430 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0432\u044B \u043F\u0440\u043E\u0441\u043A\u0430\u043D\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E\u043C. \n\u042D\u0442\u043E \u0434\u0430\u0451\u0442 \u0432\u0430\u043C \u043E\u0433\u0440\u043E\u043C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u0442\u043E\u0440 \u043F\u043E \u0432\u043D\u0435\u0434\u0440\u0435\u043D\u0438\u044E \u0438 \u0438\u043C\u0438\u0442\u0430\u0446\u0438\u0438 \u043B\u044E\u0431\u043E\u0433\u043E \u0447\u043B\u0435\u043D\u0430 \u044D\u043A\u0438\u043F\u0430\u0436\u0430. \n\u041F\u043E\u043B\u0435 \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0445\u0440\u0443\u043F\u043A\u043E\u0435 \u0438 \u043C\u043E\u0436\u0435\u0442 \u0440\u0430\u0437\u043B\u0435\u0442\u0435\u0442\u044C\u0441\u044F \u043E\u0442 \u043B\u044E\u0431\u043E\u0433\u043E \u0440\u0435\u0437\u043A\u043E\u0433\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0438\u043B\u0438 \u0443\u0434\u0430\u0440\u0430. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u043F\u043E\u043B\u044F \u0437\u0430\u043D\u0438\u043C\u0430\u0435\u0442 2 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u0410\u043A\u0442\u0438\u0432\u043D\u044B\u0439 \u0445\u0430\u043C\u0435\u043B\u0435\u043E\u043D \u0441\u043B\u0430\u0431\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: \u041E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].blue,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"ninja_spirit_form",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"ninja_spirit_form",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0424\u041E\u0420\u041C\u0410 \u0414\u0423\u0425\u0410",content:"\u0412\u044B \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442\u0435 \u043D\u0430 \u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u043E\u0441\u0442\u044C \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0433\u043E \u0442\u0435\u043B\u0430 \u043F\u043E\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043E\u043C \u044D\u0442\u043E\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0439 \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0438. \n\u0414\u0435\u043B\u0430\u044F \u0432\u0430\u0448\u0435 \u0442\u0435\u043B\u043E \u043D\u0435\u0441\u0442\u0430\u0431\u0438\u043B\u044C\u043D\u044B\u043C \u044D\u0442\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0430\u0440\u0443\u0435\u0442 \u0432\u0430\u043C \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043F\u0440\u043E\u0445\u043E\u0434\u0438\u0442\u044C \u0441\u043A\u0432\u043E\u0437\u044C \u0441\u0442\u0435\u043D\u044B. \n\u042D\u0442\u0430 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u0442\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043D\u0435 \u0441\u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0443\u044F\u0437\u0432\u0438\u043C\u044B\u043C \u0434\u043B\u044F \u043F\u0443\u043B\u044C \u0438 \u043B\u0435\u0437\u0432\u0438\u0439! \n\u041D\u043E \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u0441\u043D\u044F\u0442\u044C \u0441 \u0441\u0435\u0431\u044F \u043D\u0430\u0440\u0443\u0447\u043D\u0438\u043A\u0438, \u0431\u043E\u043B\u044B \u0438 \u0434\u0430\u0436\u0435 \u0432\u044B\u043B\u0435\u0437\u0442\u0438 \u0438\u0437 \u0433\u0440\u043E\u0431\u0430 \u0438\u043B\u0438 \u044F\u0449\u0438\u043A\u0430, \u043E\u043A\u0430\u0436\u0438\u0441\u044C \u0432\u044B \u0442\u0430\u043C \u0437\u0430\u043F\u0435\u0440\u0442\u044B... \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u0430. \n\u0410\u043A\u0442\u0438\u0432\u043D\u0430\u044F \u0444\u043E\u0440\u043C\u0430 \u0434\u0443\u0445\u0430 \u0437\u043D\u0430\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0439 \u0440\u0430\u0441\u0445\u043E\u0434 \u044D\u043D\u0435\u0440\u0433\u0438\u0438! \u041F\u043E\u0442\u0440\u0435\u0431\u043B\u0435\u043D\u0438\u0435 \u043E\u0434\u0438\u043D\u0430\u043A\u043E\u0432\u043E \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0432\u043D\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u043E\u0431\u044A\u0451\u043C\u0430 \u0431\u0430\u0442\u0430\u0440\u0435\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 25 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0417\u043C\u0435\u0439",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u0423\u0434\u0438\u0432\u043B\u044F\u0439\u0442\u0435! \u0422\u0440\u044E\u043A\u0438, \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0449\u0438\u0442\u044B. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C, \u0447\u0442\u043E \u0442\u0430\u043A\u043E\u0435 \u0431\u043E\u0439 \u0441 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u043C \u0443\u0431\u0438\u0439\u0446\u0435\u0439. \u0418\u0437\u0432\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u0438 \u0438\u0437\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u0439\u0442\u0435\u0441\u044C \u043D\u0430\u0445\u043E\u0434\u044F \u0432\u044B\u0445\u043E\u0434 \u0438\u0437 \u043B\u044E\u0431\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438. \u0412\u0440\u0430\u0433\u0438 \u0432\u0441\u0435\u0433\u043E \u043B\u0438\u0448\u044C \u0433\u0440\u044B\u0437\u0443\u043D\u044B, \u0447\u044C\u0451 \u043B\u043E\u0433\u043E\u0432\u043E \u043D\u0430\u0432\u0435\u0441\u0442\u0438\u043B \u0437\u043C\u0435\u0439!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(0, 174, 208, 0.15)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"kunai",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"kunai",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u0422\u0420\u041E\u0415\u041D\u041D\u041E\u0415 \u0414\u0416\u041E\u0425\u042C\u0401",content:"\u0422\u0430\u043A \u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E \u043A\u0430\u043A \u0428\u044D\u043D\u0431\u044F\u043E \u0438\u043B\u0438 \u043F\u0440\u043E\u0441\u0442\u043E \u041A\u0438\u043D\u0436\u0430\u043B \u043D\u0430 \u0446\u0435\u043F\u0438. \n\u0418\u043D\u0442\u0435\u0433\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u043E\u0435 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0437\u0430\u043F\u0443\u0441\u043A\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0438 \u043F\u0440\u0438\u0442\u044F\u043D\u0443\u0442\u044C \u043A \u0441\u0435\u0431\u0435 \u0436\u0435\u0440\u0442\u0432\u0443 \u0437\u0430 \u0434\u043E\u043B\u0438 \u0441\u0435\u043A\u0443\u043D\u0434\u044B. \n\u041E\u0440\u0443\u0436\u0438\u0435 \u043D\u0435 \u043E\u0447\u0435\u043D\u044C \u0433\u043E\u0434\u0438\u0442\u0441\u044F \u0434\u043B\u044F \u0434\u043E\u043B\u0433\u0438\u0445 \u0431\u043E\u0451\u0432, \u043D\u043E \u043E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u044B\u0442\u044F\u0433\u0438\u0432\u0430\u043D\u0438\u044F \u043E\u0434\u043D\u043E\u0439 \u0436\u0435\u0440\u0442\u0432\u044B - \u043D\u0430 \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u0443\u0434\u0430\u0440\u0430! \n\u0413\u043B\u0430\u0432\u043D\u043E\u0435 \u043D\u0435 \u043F\u0440\u043E\u043C\u0430\u0445\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0441\u0442\u0440\u0435\u043B\u044C\u0431\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 5 \u0441\u0435\u043A\u0443\u043D\u0434.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"chem_injector",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"chem_injector",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0418\u0421\u0426\u0415\u041B\u042F\u042E\u0429\u0418\u0419 \u041A\u041E\u041A\u0422\u0415\u0419\u041B\u042C",content:"\u0412\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0435\u0447\u0435\u0431\u043D\u0443\u044E \u0441\u043C\u0435\u0441\u044C. \u0421\u043F\u043E\u0441\u043E\u0431\u043D\u0443\u044E \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u0434\u0430\u0436\u0435 \u0441\u043B\u043E\u043C\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u0441\u0442\u0438 \u0438 \u043E\u0442\u043E\u0440\u0432\u0430\u043D\u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u041F\u0440\u0435\u043F\u0430\u0440\u0430\u0442 \u0432\u044B\u0437\u044B\u0432\u0430\u0435\u0442 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442- \n\u0432\u0435\u043D\u043D\u043E-\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 \u043F\u0430\u0440\u0430\u0434\u043E\u043A\u0441\u044B \u0438 \u043E\u0447\u0435\u043D\u044C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0438\u0437 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0430! \n\u041F\u0440\u0438 \u043F\u0435\u0440\u0435\u0434\u043E\u0437\u0438\u0440\u043E\u0432\u043A\u0435 \u043E\u043D\u0438 \u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043E\u043F\u0430\u0441\u043D\u044B \u0434\u043B\u044F \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041D\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u0435 \u0431\u043E\u043B\u044C\u0448\u0435 30 \u0435\u0434. \u043F\u0440\u0435\u043F\u0430\u0440\u0430\u0442\u0430 \u0432 \u0432\u0430\u0448 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C! \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u0438\u043C\u0435\u0435\u0442 3 \u0437\u0430\u0440\u044F\u0434\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u043A\u0440\u0438\u0441\u0442\u0430\u043B\u043B\u043E\u0432 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emergency_blink",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emergency_blink",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041A\u0421\u0422\u0420\u0415\u041D\u041D\u0410\u042F \u0422\u0415\u041B\u0415\u041F\u041E\u0420\u0422\u0410\u0426\u0418\u042F",content:"\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0432 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u0443\u044E \u0437\u043E\u043D\u0443 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u043E\u043A\u043E\u043B\u043E \u0434\u0432\u0443\u0445 \u0434\u0435\u0441\u044F\u0442\u043A\u043E\u0432 \u043C\u0435\u0442\u0440\u043E\u0432. \n\u0414\u043B\u044F \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044E\u0442\u0441\u044F \u043C\u043E\u0437\u0433\u043E\u0432\u044B\u0435 \u0438\u043C\u043F\u0443\u043B\u044C\u0441\u044B \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \u041F\u043E\u044D\u0442\u043E\u043C\u0443 \u043E\u043F\u044B\u0442\u043D\u044B\u0435 \u0432\u043E\u0438\u043D\u044B \u043A\u043B\u0430\u043D\u0430, \u043C\u043E\u0433\u0443\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0435\u0451 \u0434\u0430\u0436\u0435 \u0432\u043E \u0441\u043D\u0435. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 3 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"caltrop",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"caltrop",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E-\u0427\u0415\u0421\u041D\u041E\u041A",content:"\u0427\u0430\u0449\u0435 \u0438\u0445 \u043D\u0430\u0437\u044B\u0432\u0430\u044E\u0442 \u043F\u0440\u043E\u0441\u0442\u043E \u043A\u0430\u043B\u0442\u0440\u043E\u043F\u044B, \u0438\u0437-\u0437\u0430 \u0437\u0430\u043F\u0443\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u0430\u0441\u0441\u043E\u0446\u0438\u0430\u0446\u0438\u0439 \u0441 \u0431\u043E\u043B\u0435\u0435 \u0441\u044A\u0435\u0441\u0442\u043D\u044B\u043C \u0447\u0435\u0441\u043D\u043E\u043A\u043E\u043C. \n\u041F\u0440\u0438 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0438 \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u043F\u043E\u0437\u0430\u0434\u0438 \u0432\u0430\u0441 \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0435 \u0438\u0437 \u0441\u043F\u0440\u0435\u0441\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043B\u043E\u0432\u0443\u0448\u043A\u0438. \n\u041B\u043E\u0432\u0443\u0448\u043A\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0442 \u043F\u0440\u0438\u043C\u0435\u0440\u043D\u043E 10 \u0441\u0435\u043A\u0443\u043D\u0434. \u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043F\u0430\u0434\u0430\u044E\u0442 - \u0435\u0441\u043B\u0438 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0442\u044C. \n\u0411\u043E\u043B\u044C \u043E\u0442 \u0441\u043B\u0443\u0447\u0430\u0439\u043D\u043E\u0433\u043E \u0448\u0430\u0433\u0430 \u043D\u0430 \u043D\u0438\u0445 \u043D\u0430\u0441\u0442\u0438\u0433\u043D\u0435\u0442 \u0434\u0430\u0436\u0435 \u0440\u043E\u0431\u043E\u0442\u0438\u0437\u0438\u0440\u043E\u0432\u0430\u043D- \u043D\u044B\u0435 \u043A\u043E\u043D\u0435\u0447\u043D\u043E\u0441\u0442\u0438. \n\u0412\u044B \u043D\u0435 \u0437\u0430\u0449\u0438\u0449\u0435\u043D\u044B \u043E\u0442 \u043D\u0438\u0445. \u041D\u0435 \u043D\u0430\u0441\u0442\u0443\u043F\u0430\u0439\u0442\u0435 \u043D\u0430 \u0441\u0432\u043E\u0438 \u0436\u0435 \u043B\u043E\u0432\u0443\u0448\u043A\u0438! \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 1500 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 1 \u0441\u0435\u043A\u0443\u043D\u0434\u0430.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].green,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"cloning",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"cloning",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0422\u041E\u0420\u041E\u0419 \u0428\u0410\u041D\u0421",content:"\u0412 \u043F\u0440\u043E\u0448\u043B\u043E\u043C \u043C\u043D\u043E\u0433\u0438\u0435 \u0443\u0431\u0438\u0439\u0446\u044B \u043F\u0440\u043E\u0432\u0430\u043B\u0438\u0432\u0430\u044F \u0441\u0432\u043E\u0438 \u043C\u0438\u0441\u0441\u0438\u0438 \u0441\u043E\u0432\u0435\u0440\u0448\u0430\u043B\u0438 \u0441\u0430\u043C\u043E\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0438\u043B\u0438 \u043E\u043A\u0430\u0437\u044B\u0432\u0430\u043B\u0438\u0441\u044C \u0432 \u043B\u0430\u043F\u0430\u0445 \u0432\u0440\u0430\u0433\u0430. \n\u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u0435\u0441\u0442\u044C \u0434\u043E\u0432\u043E\u043B\u044C\u043D\u043E \u0434\u043E\u0440\u043E\u0433\u0430\u044F \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u0430. \u041C\u043E\u0449\u043D\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044C \u0432\u0430\u0441 \u043F\u0440\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u0442\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430. \n\u042D\u0442\u0430 \u043C\u0430\u0448\u0438\u043D\u0430 \u043F\u043E\u0437\u0432\u043E\u043B\u0438\u0442 \u0432\u0430\u043C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0432\u0442\u043E\u0440\u043E\u0439 \u0448\u0430\u043D\u0441, \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0432 \u0432\u0430\u0441 \u043A \u0441\u0435\u0431\u0435 \u0438 \u0438\u0437\u043B\u0435\u0447\u0438\u0432 \u043B\u044E\u0431\u044B\u0435 \u0442\u0440\u0430\u0432\u043C\u044B. \n\u041C\u044B \u0441\u043B\u044B\u0448\u0430\u043B\u0438 \u043F\u0440\u043E \u0441\u043E\u043C\u043D\u0435\u043D\u0438\u044F \u0437\u0430\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u043D\u0430 \u0438\u0434\u0435\u0435, \u0447\u0442\u043E \u044D\u0442\u043E \u043F\u0440\u043E\u0441\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u043A\u043B\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0447\u043B\u0435\u043D\u043E\u0432 \u043A\u043B\u0430\u043D\u0430. \u041D\u043E \u0443\u0432\u0435\u0440\u044F\u0435\u043C \u0432\u0430\u0441, \u044D\u0442\u043E \u043D\u0435 \u0442\u0430\u043A. \n\u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0438\u0437-\u0437\u0430 \u0431\u043E\u043B\u044C\u0448\u0438\u0445 \u0437\u0430\u0442\u0440\u0430\u0442 \u043D\u0430 \u043B\u0435\u0447\u0435\u043D\u0438\u0435 \u0438 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u044E. \u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043F\u0430\u0441\u0451\u0442 \u0432\u0430\u0441 \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438, \u043A\u043E\u0433\u0434\u0430 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u0440\u0442\u0438.",position:"right"})]})]})]}),(0,e.createComponentVNode)(2,t.Flex.Item,{width:"33%",shrink:1,children:[(0,e.createComponentVNode)(2,t.Section,{ml:"0px",width:"100%",title:"\u0421\u0442\u0430\u043B\u044C",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u042F\u0440\u043E\u0441\u0442\u044C \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430\u044F \u043E\u0431\u044B\u0447\u043D\u044B\u043C \u043B\u044E\u0434\u044F\u043C. \u0421\u0438\u043B\u0430, \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u043E\u0440\u0443\u0434\u0438\u044F \u0432\u044B\u0448\u0435 \u0438\u0445 \u043F\u043E\u043D\u0438\u043C\u0430\u043D\u0438\u044F. \u0420\u0430\u0437\u0438\u0442\u0435 \u0438\u0445 \u043A\u0430\u043A \u0445\u0438\u0449\u043D\u0438\u043A \u0447\u0442\u043E \u0440\u0430\u0437\u0438\u0442 \u0441\u0432\u043E\u044E \u0434\u043E\u0431\u044B\u0447\u0443. \u041F\u043E\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043C \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0432\u043A\u0443\u0441 \u0441\u0442\u0430\u043B\u0438!",tooltipPosition:"bottom"}),style:{"text-align":"center",background:"rgba(80, 20, 20, 1)"}}),(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_red",success:0,danger:0,align:"center",children:[(0,e.createComponentVNode)(2,t.Button,{className:N[0]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[0],onClick:function(){function B(){return v("give_ability",{style:"shuriken",row:"1"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"shuriken",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0418\u0415 \u0421\u042E\u0420\u0418\u041A\u0415\u041D\u042B",content:"\u0410\u043A\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u043F\u0443\u0441\u043A\u043E\u0432\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u043A\u0440\u044B\u0442\u043E\u0435 \u0432 \u043F\u0435\u0440\u0447\u0430\u0442\u043A\u0430\u0445 \u043A\u043E\u0441\u0442\u044E\u043C\u0430. \n\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0432\u044B\u043F\u0443\u0441\u043A\u0430\u0435\u0442 \u043F\u043E \u0442\u0440\u0438 \u0441\u044E\u0440\u0438\u043A\u0435\u043D\u0430, \u0441\u0434\u0435\u043B\u0430\u043D\u043D\u044B\u0445 \u0438\u0437 \u0441\u0436\u0430\u0442\u043E\u0439 \u044D\u043D\u0435\u0440\u0433\u0438\u0438, \u043E\u0447\u0435\u0440\u0435\u0434\u044C\u044E. \n\u0421\u044E\u0440\u0438\u043A\u0435\u043D\u044B \u043F\u043E\u0441\u0442\u0435\u043F\u0435\u043D\u043D\u043E \u0438\u0437\u043D\u0443\u0440\u044F\u044E\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0438 \u043D\u0430\u043D\u043E\u0441\u044F\u0442 \u0441\u043B\u0430\u0431\u044B\u0439 \u043E\u0436\u043E\u0433\u043E\u0432\u044B\u0439 \u0443\u0440\u043E\u043D. \n\u0422\u0430\u043A \u0436\u0435 \u043E\u043D\u0438 \u043F\u0440\u043E\u043B\u0435\u0442\u0430\u044E\u0442 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043A\u043B\u043E, \u043A\u0430\u043A \u0438 \u043E\u0431\u044B\u0447\u043D\u044B\u0435 \u043B\u0430\u0437\u0435\u0440\u043D\u044B\u0435 \u0441\u043D\u0430\u0440\u044F\u0434\u044B. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0432\u044B\u0441\u0442\u0440\u0435\u043B\u0430: 300 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[1]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[1],onClick:function(){function B(){return v("give_ability",{style:"adrenal",row:"2"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"adrenal",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0412\u0421\u041F\u041B\u0415\u0421\u041A \u0410\u0414\u0420\u0415\u041D\u0410\u041B\u0418\u041D\u0410",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u0432\u0432\u043E\u0434\u0438\u0442 \u0432 \u0432\u0430\u0441 \u043C\u043E\u0449\u043D\u0443\u044E \u044D\u043A\u0441\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0443\u0441\u043A\u043E\u0440\u044F\u044E\u0449\u0443\u044E \u0432\u0430\u0441 \u0432 \u0431\u043E\u044E \u0438 \u043F\u043E\u043C\u043E\u0433\u0430\u044E\u0449\u0443\u044E \u0431\u044B\u0441\u0442\u0440\u0435\u0435 \u043E\u043A\u043B\u0435\u043C\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432. \n\u041A\u043E\u0441\u0442\u044E\u043C \u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442 \u0441\u044B\u0432\u043E\u0440\u043E\u0442\u043A\u0443 \u0441 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435\u043C \u0443\u0440\u0430\u043D\u0430. \u0427\u0442\u043E \u043A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E \u0434\u0430\u0451\u0442 \u043D\u0435\u043F\u0440\u0438\u044F\u0442\u043D\u044B\u0439 \u043D\u0435\u0433\u0430\u0442\u0438\u0432\u043D\u044B\u0439 \u044D\u0444\u0444\u0435\u043A\u0442, \u0432 \u0432\u0438\u0434\u0435 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u044F \u0440\u0430\u0434\u0438\u044F \u0432 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u043C\u0435 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F. \n\u0412\u043C\u0435\u0441\u0442\u043E \u0442\u0440\u0430\u0442\u044B \u044D\u043D\u0435\u0440\u0433\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u043B\u0438\u0448\u044C \u043E\u0434\u0438\u043D \u0440\u0430\u0437, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0436\u0435\u043D\u043E \u0432\u0440\u0443\u0447\u043D\u0443\u044E \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0446\u0435\u043B\u044C\u043D\u044B\u0445 \u043A\u0443\u0441\u043A\u043E\u0432 \u0443\u0440\u0430\u043D\u0430 \u043F\u043E\u043C\u0435\u0449\u0451\u043D\u043D\u044B\u0445 \u0432 \u043A\u043E\u0441\u0442\u044E\u043C.",position:"bottom-end"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[2]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[2],onClick:function(){function B(){return v("give_ability",{style:"emp",row:"3"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"emp",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041B\u0415\u041A\u0422\u0420\u041E\u041C\u0410\u0413\u041D\u0418\u0422\u041D\u042B\u0419 \u0412\u0417\u0420\u042B\u0412",content:"\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043C\u0430\u0433\u043D\u0438\u0442\u043D\u044B\u0435 \u0432\u043E\u043B\u043D\u044B \u0432\u044B\u043A\u043B\u044E\u0447\u0430\u044E\u0442, \u043F\u043E\u0434\u0440\u044B\u0432\u0430\u044E\u0442 \u0438\u043B\u0438 \u0438\u043D\u0430\u0447\u0435 \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0430\u044E\u0442 - \u043A\u0438\u0431\u043E\u0440\u0433\u043E\u0432, \u0434\u0440\u043E\u043D\u043E\u0432, \u041A\u041F\u0411, \u044D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u043E\u0440\u0443\u0436\u0438\u0435, \u043F\u043E\u0440\u0442\u0430\u0442\u0438\u0432\u043D\u044B\u0435 \u0421\u0432\u0435\u0442\u043E\u0448\u0443\u043C\u043E\u0432\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0432\u044F\u0437\u0438 \u0438 \u0442.\u0434. \n\u042D\u0442\u043E\u0442 \u0432\u0437\u0440\u044B\u0432 \u043C\u043E\u0436\u0435\u0442 \u043A\u0430\u043A \u043F\u043E\u043C\u043E\u0447\u044C \u0432\u0430\u043C \u0432 \u0431\u043E\u044E, \u0442\u0430\u043A \u0438 \u043D\u0435\u0432\u0435\u0440\u043E\u044F\u0442\u043D\u043E \u043D\u0430\u0432\u0440\u0435\u0434\u0438\u0442\u044C. \u0412\u043D\u0438\u043C\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u043E\u0441\u043C\u0430\u0442\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043C\u0435\u0441\u0442\u043D\u043E\u0441\u0442\u044C \u043F\u0435\u0440\u0435\u0434 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u0435\u043C. \n\u041D\u0435 \u0437\u0430\u0431\u044B\u0432\u0430\u0439\u0442\u0435 \u043E \u0437\u0430\u0449\u0438\u0449\u0430\u044E\u0449\u0435\u043C \u043E\u0442 \u0441\u0432\u0435\u0442\u0430 \u0440\u0435\u0436\u0438\u043C\u0435 \u0432\u0430\u0448\u0435\u0433\u043E \u0432\u0438\u0437\u043E\u0440\u0430. \u041E\u043D \u043C\u043E\u0436\u0435\u0442 \u043F\u043E\u043C\u043E\u0447\u044C \u043D\u0435 \u043E\u0441\u043B\u0435\u043F\u043D\u0443\u0442\u044C, \u043F\u0440\u0438 \u043F\u043E\u0434\u0440\u044B\u0432\u0435 \u043F\u043E\u0434\u043E\u0431\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432. \n\u0412\u0437\u0440\u044B\u0432 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 5000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u041F\u0435\u0440\u0435\u0437\u0430\u0440\u044F\u0434\u043A\u0430: 4 \u0441\u0435\u043A\u0443\u043D\u0434\u044B.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[3]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[3],onClick:function(){function B(){return v("give_ability",{style:"energynet",row:"4"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"energynet",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u042D\u041D\u0415\u0420\u0413\u0415\u0422\u0418\u0427\u0415\u0421\u041A\u0410\u042F \u0421\u0415\u0422\u042C",content:"\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043B\u043E\u0432\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u0443\u044E \u0432\u0430\u043C\u0438 \u0446\u0435\u043B\u044C \u0432 \u043E\u0431\u0435\u0437\u0434\u0432\u0438\u0436\u0438\u0432\u0430\u044E\u0449\u0443\u044E \u043B\u043E\u0432\u0443\u0448\u043A\u0443. \n\u0418\u0437 \u043B\u043E\u0432\u0443\u0448\u043A\u0438 \u043B\u0435\u0433\u043A\u043E \u0432\u044B\u0431\u0440\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u043E\u0441\u0442\u043E \u0441\u043B\u043E\u043C\u0430\u0432 \u0435\u0451 \u043B\u044E\u0431\u044B\u043C \u043F\u0440\u0435\u0434\u043C\u0435\u0442\u043E\u043C. \n\u041E\u0442\u043B\u0438\u0447\u043D\u043E \u043F\u043E\u0434\u0445\u043E\u0434\u0438\u0442 \u0434\u043B\u044F \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043D\u0435\u0439\u0442\u0440\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u0440\u0430\u0433\u0430. \n\u041A \u0442\u043E\u043C\u0443 \u0436\u0435 \u0432 \u043D\u0435\u0451 \u043C\u043E\u0436\u043D\u043E \u043F\u043E\u0439\u043C\u0430\u0442\u044C \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445 \u0438\u043B\u0438 \u043D\u0430\u0434\u043E\u0435\u0434\u043B\u0438\u0432\u044B\u0445 \u043E\u0445\u0440\u0430\u043D\u043D\u044B\u0445 \u0431\u043E\u0442\u043E\u0432. \n\u0423\u0447\u0438\u0442\u044B\u0432\u0430\u0439\u0442\u0435, \u0447\u0442\u043E \u0441\u0435\u0442\u044C \u043D\u0435 \u043C\u0435\u0448\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0435 \u043E\u0442\u0441\u0442\u0440\u0435\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u0432\u0430\u0441. \n\u0422\u0430\u043A \u0436\u0435 \u0441\u0435\u0442\u044C \u043B\u0435\u0433\u043A\u043E \u043F\u043E\u043A\u0438\u043D\u0443\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u043C \u043F\u0443\u0442\u0451\u043C, \u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0430\u0446\u0438\u0435\u0439. \n\u0410\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u0435\u0442\u0438 - \u043F\u0440\u0435\u0440\u044B\u0432\u0430\u0435\u0442 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B \u043D\u0430\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0435 \u043D\u0430 \u0432\u0430\u0441. \u041D\u0430\u043F\u0440\u0438\u043C\u0435\u0440 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u044C. \n\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u0438: 4000 \u0435\u0434. \u044D\u043D\u0435\u0440\u0433\u0438\u0438.",position:"right"})]}),(0,e.createComponentVNode)(2,t.Button,{className:N[4]?x[0].disabled:x[0].red,height:"64px",width:"100%",disabled:N[4],onClick:function(){function B(){return v("give_ability",{style:"spider_red",row:"5"})}return B}(),children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_red",style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Tooltip,{title:"\u0411\u041E\u0415\u0412\u041E\u0415 \u0418\u0421\u041A\u0423\u0421\u0421\u0422\u0412\u041E \n\u041F\u041E\u041B\u0417\u0423\u0427\u0415\u0419 \u0412\u0414\u041E\u0412\u042B",content:"\u0411\u043E\u0435\u0432\u043E\u0435 \u0438\u0441\u043A\u0443\u0441\u0441\u0442\u0432\u043E \u043D\u0438\u043D\u0434\u0437\u044F \u0441\u043E\u0441\u0440\u0435\u0434\u043E\u0442\u043E\u0447\u0435\u043D\u043D\u043E\u0435 \u043D\u0430 \u043D\u0430\u043A\u043E\u043F\u043B\u0435\u043D\u0438\u0438 \u043A\u043E\u043D\u0446\u0435\u043D\u0442\u0440\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u043F\u0440\u0438\u0451\u043C\u043E\u0432. \n\u0412 \u0443\u0447\u0435\u043D\u0438\u0435 \u0432\u0445\u043E\u0434\u044F\u0442 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0451\u043C\u044B: \n\u0412\u044B\u0432\u043E\u0440\u0430\u0447\u0438\u0432\u0430\u043D\u0438\u0435 \u0440\u0443\u043A\u0438 - \u0437\u0430\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u0432\u044B\u0440\u043E\u043D\u0438\u0442\u044C \u0441\u0432\u043E\u0451 \u043E\u0440\u0443\u0436\u0438\u0435. \n\u0423\u0434\u0430\u0440 \u043B\u0430\u0434\u043E\u043D\u044C\u044E - \u043E\u0442\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0436\u0435\u0440\u0442\u0432\u0443 \u043D\u0430 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043C\u0435\u0442\u0440\u043E\u0432 \u043E\u0442 \u0432\u0430\u0441, \u043B\u0438\u0448\u0430\u044F \u0440\u0430\u0432\u043D\u043E\u0432\u0435\u0441\u0438\u044F. \n\u041F\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u043D\u0438\u0435 \u0448\u0435\u0438 - \u043C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E \u043E\u0431\u0435\u0437\u0433\u043B\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442 \u043B\u0435\u0436\u0430\u0447\u0443\u044E \u0436\u0435\u0440\u0442\u0432\u0443 \u043A\u0430\u0442\u0430\u043D\u043E\u0439 \u0432\u043E \u0432\u0441\u043F\u043E\u043C\u043E\u0433\u0430\u0442\u0435\u043B\u044C\u043D\u043E\u0439 \u0440\u0443\u043A\u0435. \n\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0435 \u0442\u043E\u0440\u043D\u0430\u0434\u043E - \u0440\u0430\u0441\u043A\u0438\u0434\u044B\u0432\u0430\u0435\u0442 \u0432\u0440\u0430\u0433\u043E\u0432 \u0432\u043E\u043A\u0440\u0443\u0433 \u0432\u0430\u0441 \u0438 \u0441\u043E\u0437\u0434\u0430\u0451\u0442 \u043E\u0431\u043B\u0430\u043A\u043E \u0434\u044B\u043C\u0430 \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0433\u043E \u0434\u044B\u043C\u043E\u0432\u043E\u0433\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430 \u0438 \u044D\u043D\u0435\u0440\u0433\u0438\u0438. \n\u0422\u0430\u043A \u0436\u0435 \u0432\u044B \u043E\u0431\u0443\u0447\u0430\u0435\u0442\u0435\u0441\u044C \u0441 \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u044B\u043C \u0448\u0430\u043D\u0441\u043E\u043C \u043E\u0442\u0440\u0430\u0436\u0430\u0442\u044C \u0441\u043D\u044F\u0440\u044F\u0434\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u043E\u0431\u0440\u0430\u0442\u043D\u043E.",position:"right"})]})]})]})]})})},f=r.ShuttleConsole=function(){function m(i,h){var V=(0,a.useBackend)(h),v=V.act,s=V.data;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0448\u0430\u0442\u0442\u043B\u043E\u043C",mr:"5px",style:{"text-align":"center"},buttons:(0,e.createComponentVNode)(2,t.Button,{content:"?",tooltip:"\u041F\u0430\u043D\u0435\u043B\u044C \u0434\u043B\u044F \u0443\u0434\u0430\u043B\u0451\u043D\u043D\u043E\u0433\u043E \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0432\u0430\u0448\u0438\u043C \u043B\u0438\u0447\u043D\u044B\u043C \u0448\u0430\u0442\u0442\u043B\u043E\u043C. \u0422\u0430\u043A \u0436\u0435 \u043F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0438 \u043F\u043E\u0437\u0438\u0446\u0438\u044E \u0441\u0430\u043C\u043E\u0433\u043E \u0448\u0430\u0442\u0442\u043B\u0430!",tooltipPosition:"right"}),children:(0,e.createComponentVNode)(2,t.Flex,{ml:2,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.status?s.status:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Missing"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0412\u0430\u0448\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F",children:s.player_pos}),!!s.shuttle&&(!!s.docking_ports_len&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0448\u0430\u0442\u0442\u043B",children:s.docking_ports.map(function(g){return(0,e.createComponentVNode)(2,t.Button,{icon:"chevron-right",content:g.name,onClick:function(){function N(){return v("move",{move:g.id})}return N}()},g.name)})})||(0,e.createFragment)([(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"Status",color:"red",children:(0,e.createComponentVNode)(2,t.NoticeBox,{color:"red",children:"Shuttle Locked"})}),!!s.admin_controlled&&(0,e.createComponentVNode)(2,o.LabeledListItem,{label:"\u0410\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044F",children:(0,e.createComponentVNode)(2,t.Button,{icon:"exclamation-circle",content:"\u0417\u0430\u043F\u0440\u043E\u0441\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u044E",disabled:!s.status,onClick:function(){function g(){return v("request")}return g}()})})],0))]})})})}return m}(),l=function(i,h){var V=(0,a.useBackend)(h),v=V.data,s=v.randomPercent,g=v.actionsIcon,N=v.color_choice;return(0,e.createComponentVNode)(2,t.Section,{stretchContents:!0,children:(0,e.createComponentVNode)(2,t.ProgressBar,{color:N,value:s,minValue:0,maxValue:100,children:(0,e.createVNode)(1,"center",null,(0,e.createComponentVNode)(2,t.NoticeBox,{className:"NoticeBox_"+N,mt:1,children:[(0,e.createComponentVNode)(2,t.DmIcon,{height:"64px",width:"64px",icon:g,icon_state:"spider_"+N,style:{"margin-left":"-6px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createVNode)(1,"br"),"Loading ",s+"%"]}),2)})})},d=function(m){function i(V){var v;return v=m.call(this,V)||this,v.timer=null,v.state={lastText:"text do be there",currentDisplay:[]},v}k(i,m);var h=i.prototype;return h.tick=function(){function V(){var v=this.props,s=this.state;if(v.allMessages!==s.lastText&&!v.end_terminal){var g=s.currentDisplay;g.push(v.allMessages),s.lastText=v.allMessages}else v.end_terminal&&(clearTimeout(this.timer),setTimeout(v.onFinished,v.finishedTimeout))}return V}(),h.componentDidMount=function(){function V(){var v=this,s=this.props.linesPerSecond,g=s===void 0?2.5:s;this.timer=setInterval(function(){return v.tick()},1e3/g)}return V}(),h.componentWillUnmount=function(){function V(){clearTimeout(this.timer)}return V}(),h.render=function(){function V(){return(0,e.createComponentVNode)(2,t.Box,{m:1,children:this.state.currentDisplay.map(function(v){return(0,e.createFragment)([v,(0,e.createVNode)(1,"br")],0,v)})})}return V}(),i}(e.Component)},38307:function(I,r,n){"use strict";r.__esModule=!0,r.StationAlertConsoleContent=r.StationAlertConsole=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.StationAlertConsole=function(){function y(){return(0,e.createComponentVNode)(2,o.Window,{width:325,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,k)})})}return y}(),k=r.StationAlertConsoleContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.data,u=c.alarms||[];return Object.keys(u).map(function(f){var l,d;return(0,e.createComponentVNode)(2,t.Section,{title:f+" Alarms",children:(0,e.createVNode)(1,"ul",null,((l=u[f])==null?void 0:l.length)===0?(0,e.createVNode)(1,"li","color-good","Systems Nominal",16):(d=u[f])==null?void 0:d.map(function(m){return(0,e.createVNode)(1,"li","color-average",m,0,null,m)}),0)},f)})}return y}()},39409:function(I,r,n){"use strict";r.__esModule=!0,r.StripMenu=void 0;var e=n(89005),a=n(88510),t=n(79140),o=n(72253),p=n(36036),k=n(98595),y=5,S=9,b=function(V){return V===0?5:9},C="64px",c=function(V){return V[0]+"/"+V[1]},u=function(V){var v=V.align,s=V.children;return(0,e.createComponentVNode)(2,p.Box,{style:{position:"absolute",left:v==="left"?"6px":"48px","text-align":v,"text-shadow":"2px 2px 2px #000",top:"2px"},children:s})},f={enable_internals:{icon:"lungs",text:"Enable internals"},disable_internals:{icon:"lungs",text:"Disable internals"},enable_lock:{icon:"lock",text:"Enable lock"},disable_lock:{icon:"unlock",text:"Disable lock"},suit_sensors:{icon:"tshirt",text:"Adjust suit sensors"},remove_accessory:{icon:"medal",text:"Remove accessory"},dislodge_headpocket:{icon:"head-side-virus",text:"Dislodge headpocket"}},l={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([2,3]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([2,4]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([3,4]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([3,3]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,4]),image:"inventory-pda.png"}},d={neck:{displayName:"neck",gridSpot:c([0,0]),image:"inventory-neck.png"},eyes:{displayName:"eyewear",gridSpot:c([1,0]),image:"inventory-glasses.png"},head:{displayName:"headwear",gridSpot:c([0,1]),image:"inventory-head.png"},mask:{displayName:"mask",gridSpot:c([1,1]),image:"inventory-mask.png"},pet_collar:{displayName:"collar",gridSpot:c([1,1]),image:"inventory-collar.png"},right_ear:{displayName:"right ear",gridSpot:c([0,2]),image:"inventory-ears.png"},left_ear:{displayName:"left ear",gridSpot:c([1,2]),image:"inventory-ears.png"},parrot_headset:{displayName:"headset",gridSpot:c([1,2]),image:"inventory-ears.png"},handcuffs:{displayName:"handcuffs",gridSpot:c([1,3])},legcuffs:{displayName:"legcuffs",gridSpot:c([1,4])},jumpsuit:{displayName:"uniform",gridSpot:c([2,0]),image:"inventory-uniform.png"},suit:{displayName:"suit",gridSpot:c([2,1]),image:"inventory-suit.png"},gloves:{displayName:"gloves",gridSpot:c([2,2]),image:"inventory-gloves.png"},right_hand:{displayName:"right hand",gridSpot:c([4,4]),image:"inventory-hand_r.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"left",children:"R"})},left_hand:{displayName:"left hand",gridSpot:c([4,5]),image:"inventory-hand_l.png",additionalComponent:(0,e.createComponentVNode)(2,u,{align:"right",children:"L"})},shoes:{displayName:"shoes",gridSpot:c([3,1]),image:"inventory-shoes.png"},suit_storage:{displayName:"suit storage",gridSpot:c([4,0]),image:"inventory-suit_storage.png"},id:{displayName:"ID",gridSpot:c([4,1]),image:"inventory-id.png"},belt:{displayName:"belt",gridSpot:c([4,2]),image:"inventory-belt.png"},back:{displayName:"backpack",gridSpot:c([4,3]),image:"inventory-back.png"},left_pocket:{displayName:"left pocket",gridSpot:c([4,7]),image:"inventory-pocket.png"},right_pocket:{displayName:"right pocket",gridSpot:c([4,6]),image:"inventory-pocket.png"},pda:{displayName:"PDA",gridSpot:c([4,8]),image:"inventory-pda.png"}},m=function(h){return h[h.Completely=1]="Completely",h[h.Hidden=2]="Hidden",h}(m||{}),i=r.StripMenu=function(){function h(V,v){var s=(0,o.useBackend)(v),g=s.act,N=s.data,x=new Map;if(N.show_mode===0)for(var B=0,L=Object.keys(N.items);B300?"bad":f>150?"average":"good"},S=function(f){return f>5e3?"bad":f>4e3?"average":"good"},b=function(f){return f>1e4?"bad":f>5e3?"average":"good"},C=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:"Detected Supermatter Shards",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"sync",content:"Refresh",onClick:function(){function h(){return m("refresh")}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{m:1,children:i.supermatters.length===0?(0,e.createVNode)(1,"h3",null,"No shards detected",16):(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,p.TableCell,{children:"Area"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Integrity"}),(0,e.createComponentVNode)(2,p.TableCell,{children:"Details"})]}),i.supermatters.map(function(h){return(0,e.createComponentVNode)(2,p.TableRow,{children:[(0,e.createComponentVNode)(2,p.TableCell,{children:h.area_name}),(0,e.createComponentVNode)(2,p.TableCell,{children:[h.integrity,"%"]}),(0,e.createComponentVNode)(2,p.TableCell,{children:(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"View",onClick:function(){function V(){return m("view",{view:h.uid})}return V}()})})]},h)})]})})})})})},c=function(f,l){var d=(0,a.useBackend)(l),m=d.act,i=d.data;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:325,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Section,{title:"Crystal Status",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"caret-square-left",content:"Back",onClick:function(){function h(){return m("back")}return h}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Core Integrity",children:(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[95,1/0],average:[80,94],bad:[-1/0,79]},minValue:"0",maxValue:"100",value:i.SM_integrity,children:[i.SM_integrity,"%"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Relative EER",children:(0,e.createComponentVNode)(2,t.Box,{color:y(i.SM_power),children:[i.SM_power," MeV/cm3"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Temperature",children:(0,e.createComponentVNode)(2,t.Box,{color:S(i.SM_ambienttemp),children:[i.SM_ambienttemp," K"]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Pressure",children:(0,e.createComponentVNode)(2,t.Box,{color:b(i.SM_ambientpressure),children:[i.SM_ambientpressure," kPa"]})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Gas Composition",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen",children:[i.SM_gas_O2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Carbon Dioxide",children:[i.SM_gas_CO2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Nitrogen",children:[i.SM_gas_N2,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Plasma",children:[i.SM_gas_PL,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Other",children:[i.SM_gas_OTHER,"%"]})]})})]})})}},46029:function(I,r,n){"use strict";r.__esModule=!0,r.SyndicateComputerSimple=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(29319),p=n(98595),k=r.SyndicateComputerSimple=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data;return(0,e.createComponentVNode)(2,p.Window,{width:400,height:400,theme:"syndicate",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:u.rows.map(function(f){return(0,e.createComponentVNode)(2,t.Section,{title:f.title,buttons:(0,e.createComponentVNode)(2,t.Button,{content:f.buttontitle,disabled:f.buttondisabled,tooltip:f.buttontooltip,tooltipPosition:"left",onClick:function(){function l(){return c(f.buttonact)}return l}()}),children:[f.status,!!f.bullets&&(0,e.createComponentVNode)(2,t.Box,{children:f.bullets.map(function(l){return(0,e.createComponentVNode)(2,t.Box,{children:l},l)})})]},f.title)})})})}return y}()},99279:function(I,r,n){"use strict";r.__esModule=!0,r.SyndieCargoConsole=void 0;var e=n(89005),a=n(64795),t=n(88510),o=n(72253),p=n(36036),k=n(98595),y=n(29319),S=n(25328),b=r.SyndieCargoConsole=function(){function l(d,m){return(0,e.createComponentVNode)(2,k.Window,{width:900,height:800,theme:"syndicate",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:[(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f)]})})}return l}(),C=function(d,m){var i=(0,o.useLocalState)(m,"contentsModal",null),h=i[0],V=i[1],v=(0,o.useLocalState)(m,"contentsModalTitle",null),s=v[0],g=v[1];if(h!==null&&s!==null)return(0,e.createComponentVNode)(2,p.Modal,{maxWidth:"75%",width:window.innerWidth+"px",maxHeight:window.innerHeight*.75+"px",mx:"auto",children:[(0,e.createComponentVNode)(2,p.Box,{width:"100%",bold:!0,children:(0,e.createVNode)(1,"h1",null,[s,(0,e.createTextVNode)(" contents:")],0)}),(0,e.createComponentVNode)(2,p.Box,{children:h.map(function(N){return(0,e.createComponentVNode)(2,p.Box,{children:["- ",N]},N)})}),(0,e.createComponentVNode)(2,p.Box,{m:2,children:(0,e.createComponentVNode)(2,p.Button,{content:"Close",onClick:function(){function N(){V(null),g(null)}return N}()})})]})},c=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.is_public,s=v===void 0?0:v,g=V.cash,N=V.wait_time,x=V.is_cooldown,B=V.telepads_status,L=V.adminAddCash,T=B,A="",E=0,w="";return B==="Pads not linked!"?(E=0,A="Attempts to link telepads to the console.",w="Link pads"):x?x&&(w="Cooldown...",A="Pads are cooling off...",E=1,N!==1?T=""+B+" (ETA: "+N+" seconds)":T=""+B+" (ETA: "+N+" second)"):(E=0,A="Teleports your crates to the market. A reminder, some of the crates are directly stolen from NT trading routes. That means they can be locked. We are NOT sorry for the inconvenience",w="Teleport"),(0,e.createComponentVNode)(2,p.Section,{title:"Status",children:(0,e.createComponentVNode)(2,p.LabeledList,{children:[s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Money Available",children:[g,(0,e.createComponentVNode)(2,p.Button,{tooltip:"Withdraw money from the console",content:"Withdraw",onClick:function(){function O(){return h("withdraw",{cash:g})}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:L,tooltip:"Bless the players with da money!",onClick:function(){function O(){return h("add_money",{cash:g})}return O}()})]}),(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Telepads Status",children:T}),s===0&&(0,e.createComponentVNode)(2,p.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,p.Button,{content:w,tooltip:A,disabled:E,onClick:function(){function O(){return h("teleport")}return O}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Syndicate Black Market Log",onClick:function(){function O(){return h("showMessages")}return O}()})]})]})})},u=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.categories,s=V.supply_packs,g=(0,o.useSharedState)(m,"category","Emergency"),N=g[0],x=g[1],B=(0,o.useSharedState)(m,"search_text",""),L=B[0],T=B[1],A=(0,o.useLocalState)(m,"contentsModal",null),E=A[0],w=A[1],O=(0,o.useLocalState)(m,"contentsModalTitle",null),M=O[0],P=O[1],F=(0,S.createSearch)(L,function(j){return j.name}),R=(0,a.flow)([(0,t.filter)(function(j){return j.cat===v.filter(function(W){return W.name===N})[0].category||L}),L&&(0,t.filter)(F),(0,t.sortBy)(function(j){return j.name.toLowerCase()})])(s),U="Crate Catalogue";return L?U="Results for '"+L+"':":N&&(U="Browsing "+N),(0,e.createComponentVNode)(2,p.Section,{title:U,buttons:(0,e.createComponentVNode)(2,p.Dropdown,{width:"190px",options:v.map(function(j){return j.name}),selected:N,onSelected:function(){function j(W){return x(W)}return j}()}),children:[(0,e.createComponentVNode)(2,p.Input,{fluid:!0,placeholder:"Search for...",onInput:function(){function j(W,K){return T(K)}return j}(),mb:1}),(0,e.createComponentVNode)(2,p.Box,{maxHeight:25,overflowY:"auto",overflowX:"hidden",children:(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:R.map(function(j){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{bold:!0,children:[j.name," (",j.cost," Credits)"]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Order 1",icon:"shopping-cart",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:0})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Order Multiple",icon:"cart-plus",onClick:function(){function W(){return h("order",{crate:j.ref,multiple:1})}return W}()}),(0,e.createComponentVNode)(2,p.Button,{content:"View Contents",icon:"search",onClick:function(){function W(){w(j.contents),P(j.name)}return W}()})]})]},j.name)})})})]})},f=function(d,m){var i=(0,o.useBackend)(m),h=i.act,V=i.data,v=V.requests,s=V.canapprove,g=V.orders;return(0,e.createComponentVNode)(2,p.Section,{title:"Details",children:(0,e.createComponentVNode)(2,p.Box,{maxHeight:15,overflowY:"auto",overflowX:"hidden",children:[(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Requests"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:v.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:[(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]}),(0,e.createComponentVNode)(2,p.Table.Cell,{textAlign:"right",pr:1,children:[(0,e.createComponentVNode)(2,p.Button,{content:"Approve",color:"green",disabled:!s,onClick:function(){function x(){return h("approve",{ordernum:N.ordernum})}return x}()}),(0,e.createComponentVNode)(2,p.Button,{content:"Deny",color:"red",onClick:function(){function x(){return h("deny",{ordernum:N.ordernum})}return x}()})]})]},N.ordernum)})}),(0,e.createComponentVNode)(2,p.Box,{bold:!0,children:"Confirmed Orders"}),(0,e.createComponentVNode)(2,p.Table,{m:"0.5rem",children:g.map(function(N){return(0,e.createComponentVNode)(2,p.Table.Row,{children:(0,e.createComponentVNode)(2,p.Table.Cell,{children:[(0,e.createComponentVNode)(2,p.Box,{children:["- #",N.ordernum,": ",N.supply_type," for ",(0,e.createVNode)(1,"b",null,N.orderedby,0)]}),(0,e.createComponentVNode)(2,p.Box,{italic:!0,children:["Reason: ",N.comment]})]})},N.ordernum)})})]})})}},44852:function(I,r,n){"use strict";r.__esModule=!0,r.TTSSeedsExplorerContent=r.TTSSeedsExplorer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p={0:"\u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0435",1:"Tier I",2:"Tier II",3:"Tier III",4:"Tier IV"},k={\u041C\u0443\u0436\u0441\u043A\u043E\u0439:{icon:"mars",color:"blue"},\u0416\u0435\u043D\u0441\u043A\u0438\u0439:{icon:"venus",color:"purple"},\u041B\u044E\u0431\u043E\u0439:{icon:"venus-mars",color:"white"}},y=function(c,u,f,l){return l===void 0&&(l=null),c.map(function(d){var m,i=(m=d[l])!=null?m:d;return(0,e.createComponentVNode)(2,t.Button.Checkbox,{checked:u.includes(d),content:i,onClick:function(){function h(){u.includes(d)?f(u.filter(function(V){var v;return((v=V[l])!=null?v:V)!==d})):f([d].concat(u))}return h}()},i)})},S=r.TTSSeedsExplorer=function(){function C(c,u){return(0,e.createComponentVNode)(2,o.Window,{width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,b)})})}return C}(),b=r.TTSSeedsExplorerContent=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.providers,i=d.seeds,h=d.selected_seed,V=d.phrases,v=d.donator_level,s=i.map(function(X){return X.category}).filter(function(X,Q,q){return q.indexOf(X)===Q}),g=i.map(function(X){return X.gender}).filter(function(X,Q,q){return q.indexOf(X)===Q}),N=i.map(function(X){return X.donator_level}).filter(function(X,Q,q){return q.indexOf(X)===Q}).map(function(X){return p[X]}),x=(0,a.useLocalState)(u,"selectedProviders",m),B=x[0],L=x[1],T=(0,a.useLocalState)(u,"selectedGenders",g),A=T[0],E=T[1],w=(0,a.useLocalState)(u,"selectedCategories",s),O=w[0],M=w[1],P=(0,a.useLocalState)(u,"selectedDonatorLevels",N),F=P[0],R=P[1],U=(0,a.useLocalState)(u,"selectedPhrase",V[0]),j=U[0],W=U[1],K=(0,a.useLocalState)(u,"searchtext",""),$=K[0],ne=K[1],Y=y(m,B,L,"name"),le=y(g,A,E),de=y(s,O,M),oe=y(N,F,R),re=(0,e.createComponentVNode)(2,t.Dropdown,{options:V,selected:j.replace(/(.{25})..+/,"$1..."),width:"220px",onSelected:function(){function X(Q){return W(Q)}return X}()}),Z=(0,e.createComponentVNode)(2,t.Input,{placeholder:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435...",fluid:!0,onInput:function(){function X(Q,q){return ne(q)}return X}()}),ae=i.sort(function(X,Q){var q=X.name.toLowerCase(),te=Q.name.toLowerCase();return q>te?1:q0&&h!==X.name?"orange":"white",children:X.name}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:h===X.name?.5:.25,textAlign:"left",children:X.category}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:h===X.name?"white":k[X.gender].color,textAlign:"left",children:(0,e.createComponentVNode)(2,t.Icon,{mx:1,size:1.2,name:k[X.gender].icon})}),(0,e.createComponentVNode)(2,t.Table.Cell,{collapsing:!0,opacity:.5,textColor:"white",textAlign:"right",children:X.donator_level>0&&(0,e.createFragment)([p[X.donator_level],(0,e.createComponentVNode)(2,t.Icon,{ml:1,mr:2,name:"coins"})],0)})]},X.name)});return(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,fill:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",fill:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u044B",children:Y}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u043B",children:le}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438",children:de}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",children:oe}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u0424\u0440\u0430\u0437\u0430",children:re}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"\u041F\u043E\u0438\u0441\u043A",children:Z})]})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{scrollable:!0,fill:!0,title:"\u0413\u043E\u043B\u043E\u0441\u0430 ("+ae.length+"/"+i.length+")",children:(0,e.createComponentVNode)(2,t.Table,{children:J})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.BlockQuote,{children:[(0,e.createComponentVNode)(2,t.Box,{children:"\u0414\u043B\u044F \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0430\u043D\u0438\u044F \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044F \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u0443\u0441\u043B\u043E\u0432\u0438\u044F\u0445 \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0445 \u0440\u0430\u0441\u0445\u043E\u0434\u043E\u0432 \u0447\u0430\u0441\u0442\u044C \u0433\u043E\u043B\u043E\u0441\u043E\u0432 \u043F\u0440\u0438\u0448\u043B\u043E\u0441\u044C \u0441\u0434\u0435\u043B\u0430\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u043C\u0438 \u0442\u043E\u043B\u044C\u043A\u043E \u0437\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u044C\u043D\u0443\u044E \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0430."}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u043E\u0431 \u044D\u0442\u043E\u043C \u043C\u043E\u0436\u043D\u043E \u0443\u0437\u043D\u0430\u0442\u044C \u0432 \u043D\u0430\u0448\u0435\u043C Discord-\u0441\u043E\u043E\u0431\u0449\u0435\u0441\u0442\u0432\u0435."})]})})})]})}return C}()},56441:function(I,r,n){"use strict";r.__esModule=!0,r.TachyonArrayContent=r.TachyonArray=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TachyonArray=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f,d=u.explosion_target,m=u.toxins_tech,i=u.printing;return(0,e.createComponentVNode)(2,o.Window,{width:500,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shift's Target",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Toxins Level",children:m}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Administration",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"print",content:"Print All Logs",disabled:!l.length||i,align:"center",onClick:function(){function h(){return c("print_logs")}return h}()}),(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete All Logs",disabled:!l.length,color:"bad",align:"center",onClick:function(){function h(){return c("delete_logs")}return h}()})]})]})}),l.length?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,t.NoticeBox,{children:"No Records"})]})})}return y}(),k=r.TachyonArrayContent=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.records,l=f===void 0?[]:f;return(0,e.createComponentVNode)(2,t.Section,{title:"Logged Explosions",children:(0,e.createComponentVNode)(2,t.Flex,{children:(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Time"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Epicenter"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Actual Size"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Theoretical Size"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.logged_time}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.epicenter}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.actual_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.theoretical_size_message}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button.Confirm,{icon:"trash",content:"Delete",color:"bad",onClick:function(){function m(){return c("delete_record",{index:d.index})}return m}()})})]},d.index)})]})})})})}return y}()},1754:function(I,r,n){"use strict";r.__esModule=!0,r.Tank=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Tank=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u;return c.has_mask?u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",children:(0,e.createComponentVNode)(2,t.Button,{icon:c.connected?"check":"times",content:c.connected?"Internals On":"Internals Off",selected:c.connected,onClick:function(){function f(){return C("internals")}return f}()})}):u=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mask",color:"red",children:"No Mask Equipped"}),(0,e.createComponentVNode)(2,o.Window,{width:300,height:150,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Tank Pressure",children:(0,e.createComponentVNode)(2,t.ProgressBar,{value:c.tankPressure/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:c.tankPressure+" kPa"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Release Pressure",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"fast-backward",disabled:c.ReleasePressure===c.minReleasePressure,tooltip:"Min",onClick:function(){function f(){return C("pressure",{pressure:"min"})}return f}()}),(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,value:parseFloat(c.releasePressure),width:"65px",unit:"kPa",minValue:c.minReleasePressure,maxValue:c.maxReleasePressure,onChange:function(){function f(l,d){return C("pressure",{pressure:d})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"fast-forward",disabled:c.ReleasePressure===c.maxReleasePressure,tooltip:"Max",onClick:function(){function f(){return C("pressure",{pressure:"max"})}return f}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"",disabled:c.ReleasePressure===c.defaultReleasePressure,tooltip:"Reset",onClick:function(){function f(){return C("pressure",{pressure:"reset"})}return f}()})]}),u]})})})})}return k}()},7579:function(I,r,n){"use strict";r.__esModule=!0,r.TankDispenser=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TankDispenser=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.o_tanks,f=c.p_tanks;return(0,e.createComponentVNode)(2,o.Window,{width:275,height:100,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Oxygen Tank ("+u+")",disabled:u===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("oxygen")}return l}()})}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Dispense Plasma Tank ("+f+")",disabled:f===0,icon:"arrow-circle-down",onClick:function(){function l(){return C("plasma")}return l}()})})]})})}return k}()},16136:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsCore=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsCore=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.ion,i=(0,a.useLocalState)(u,"tabIndex",0),h=i[0],V=i[1],v=function(){function s(g){switch(g){case 0:return(0,e.createComponentVNode)(2,y);case 1:return(0,e.createComponentVNode)(2,S);case 2:return(0,e.createComponentVNode)(2,b);default:return"SOMETHING WENT VERY WRONG PLEASE AHELP"}}return s}();return(0,e.createComponentVNode)(2,o.Window,{width:900,height:600,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[m===1&&(0,e.createComponentVNode)(2,k),(0,e.createComponentVNode)(2,t.Tabs,{children:[(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===0,onClick:function(){function s(){return V(0)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"wrench"}),"Configuration"]},"ConfigPage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===1,onClick:function(){function s(){return V(1)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"link"}),"Device Linkage"]},"LinkagePage"),(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:h===2,onClick:function(){function s(){return V(2)}return s}(),children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-times"}),"User Filtering"]},"FilterPage")]}),v(h)]})})}return C}(),k=function(){return(0,e.createComponentVNode)(2,t.NoticeBox,{children:"ERROR: An Ionospheric overload has occured. Please wait for the machine to reboot. This cannot be manually done."})},y=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.active,i=d.sectors_available,h=d.nttc_toggle_jobs,V=d.nttc_toggle_job_color,v=d.nttc_toggle_name_color,s=d.nttc_toggle_command_bold,g=d.nttc_job_indicator_type,N=d.nttc_setting_language,x=d.network_id;return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"On":"Off",selected:m,icon:"power-off",onClick:function(){function B(){return l("toggle_active")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Sector Coverage",children:i})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Radio Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcements",children:(0,e.createComponentVNode)(2,t.Button,{content:h?"On":"Off",selected:h,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_jobs")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:V?"On":"Off",selected:V,icon:"clipboard-list",onClick:function(){function B(){return l("nttc_toggle_job_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Name Departmentalisation",children:(0,e.createComponentVNode)(2,t.Button,{content:v?"On":"Off",selected:v,icon:"user-tag",onClick:function(){function B(){return l("nttc_toggle_name_color")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Command Amplification",children:(0,e.createComponentVNode)(2,t.Button,{content:s?"On":"Off",selected:s,icon:"volume-up",onClick:function(){function B(){return l("nttc_toggle_command_bold")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Advanced",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Job Announcement Format",children:(0,e.createComponentVNode)(2,t.Button,{content:g||"Unset",selected:g,icon:"pencil-alt",onClick:function(){function B(){return l("nttc_job_indicator_type")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Language Conversion",children:(0,e.createComponentVNode)(2,t.Button,{content:N||"Unset",selected:N,icon:"globe",onClick:function(){function B(){return l("nttc_setting_language")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:x||"Unset",selected:x,icon:"server",onClick:function(){function B(){return l("network_id")}return B}()})})]})}),(0,e.createComponentVNode)(2,t.Section,{title:"Maintenance",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Import Configuration",icon:"file-import",onClick:function(){function B(){return l("import")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Export Configuration",icon:"file-export",onClick:function(){function B(){return l("export")}return B}()})]})],4)},S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.link_password,i=d.relay_entries;return(0,e.createComponentVNode)(2,t.Section,{title:"Device Linkage",children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linkage Password",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"lock",onClick:function(){function h(){return l("change_password")}return h}()})})}),(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Status"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Unlink"})]}),i.map(function(h){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:h.status===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Online"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Offline"})}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",onClick:function(){function V(){return l("unlink",{addr:h.addr})}return V}()})})]},h.addr)})]})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=f.data,m=d.filtered_users;return(0,e.createComponentVNode)(2,t.Section,{title:"User Filtering",buttons:(0,e.createComponentVNode)(2,t.Button,{content:"Add User",icon:"user-plus",onClick:function(){function i(){return l("add_filter")}return i}()}),children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"90%"},children:"User"}),(0,e.createComponentVNode)(2,t.Table.Cell,{style:{width:"10%"},children:"Actions"})]}),m.map(function(i){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:i}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Remove",icon:"user-times",onClick:function(){function h(){return l("remove_filter",{user:i})}return h}()})})]},i)})]})})}},88046:function(I,r,n){"use strict";r.__esModule=!0,r.TcommsRelay=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.TcommsRelay=function(){function S(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked,d=f.active,m=f.network_id;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:400,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"Relay Configuration",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Machine Power",children:(0,e.createComponentVNode)(2,t.Button,{content:d?"On":"Off",selected:d,icon:"power-off",onClick:function(){function i(){return u("toggle_active")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Network ID",children:(0,e.createComponentVNode)(2,t.Button,{content:m||"Unset",selected:m,icon:"server",onClick:function(){function i(){return u("network_id")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Link Status",children:l===1?(0,e.createComponentVNode)(2,t.Box,{color:"green",children:"Linked"}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Unlinked"})})]})}),l===1?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,y)]})})}return S}(),k=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.linked_core_id,d=f.linked_core_addr,m=f.hidden_link;return(0,e.createComponentVNode)(2,t.Section,{title:"Link Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core ID",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Linked Core Address",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hidden Link",children:(0,e.createComponentVNode)(2,t.Button,{content:m?"Yes":"No",icon:m?"eye-slash":"eye",selected:m,onClick:function(){function i(){return u("toggle_hidden_link")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Unlink",children:(0,e.createComponentVNode)(2,t.Button,{content:"Unlink",icon:"unlink",color:"red",onClick:function(){function i(){return u("unlink")}return i}()})})]})})},y=function(b,C){var c=(0,a.useBackend)(C),u=c.act,f=c.data,l=f.cores;return(0,e.createComponentVNode)(2,t.Section,{title:"Detected Cores",children:(0,e.createComponentVNode)(2,t.Table,{m:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network Address"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Network ID"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Sector"}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:"Link"})]}),l.map(function(d){return(0,e.createComponentVNode)(2,t.Table.Row,{children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.addr}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.net_id}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:d.sector}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Link",icon:"link",onClick:function(){function m(){return u("link",{addr:d.addr})}return m}()})})]},d.addr)})]})})}},20802:function(I,r,n){"use strict";r.__esModule=!0,r.Teleporter=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=n(79646),k=r.Teleporter=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.targetsTeleport?u.targetsTeleport:{},l=0,d=1,m=2,i=u.calibrated,h=u.calibrating,V=u.powerstation,v=u.regime,s=u.teleporterhub,g=u.target,N=u.locked,x=u.accuracy;return(0,e.createComponentVNode)(2,o.Window,{width:380,height:260,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:[(!V||!s)&&(0,e.createComponentVNode)(2,t.Section,{title:"Error",children:[s,!V&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Powerstation not linked "}),V&&!s&&(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:" Teleporter hub not linked "})]}),V&&s&&(0,e.createComponentVNode)(2,t.Section,{title:"Status",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Regime",children:[(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to another teleport hub. ",color:v===d?"good":null,onClick:function(){function B(){return c("setregime",{regime:d})}return B}(),children:"Gate"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"One-way teleport. ",color:v===l?"good":null,onClick:function(){function B(){return c("setregime",{regime:l})}return B}(),children:"Teleporter"}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Teleport to a location stored in a GPS device. ",color:v===m?"good":null,disabled:!N,onClick:function(){function B(){return c("setregime",{regime:m})}return B}(),children:"GPS"})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Teleport target",children:[v===l&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===d&&(0,e.createComponentVNode)(2,t.Dropdown,{width:"220px",selected:g,options:Object.keys(f),color:g!=="None"?"default":"bad",onSelected:function(){function B(L){return c("settarget",{x:f[L].x,y:f[L].y,z:f[L].z})}return B}()}),v===m&&(0,e.createComponentVNode)(2,t.Box,{children:g})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Calibration",children:[g!=="None"&&(0,e.createComponentVNode)(2,t.Grid,{children:[(0,e.createComponentVNode)(2,p.GridColumn,{size:"2",children:h&&(0,e.createComponentVNode)(2,t.Box,{color:"average",children:"In Progress"})||(i||x>=3)&&(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Optimal"})||(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:"Sub-Optimal"})}),(0,e.createComponentVNode)(2,p.GridColumn,{size:"3",children:(0,e.createComponentVNode)(2,t.Box,{class:"ml-1",children:(0,e.createComponentVNode)(2,t.Button,{icon:"sync-alt",tooltip:"Calibrates the hub. Accidents may occur when the calibration is not optimal.",disabled:!!(i||h),onClick:function(){function B(){return c("calibrate")}return B}()})})})]}),g==="None"&&(0,e.createComponentVNode)(2,t.Box,{lineHeight:"21px",children:"No target set"})]})]})}),!!(N&&V&&s&&v===m)&&(0,e.createComponentVNode)(2,t.Section,{title:"GPS",children:(0,e.createComponentVNode)(2,t.Flex,{direction:"row",justify:"space-around",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Upload GPS data",tooltip:"Loads the GPS data from the device.",icon:"upload",onClick:function(){function B(){return c("load")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Eject",tooltip:"Ejects the GPS device",icon:"eject",onClick:function(){function B(){return c("eject")}return B}()})]})})]})})}return y}()},24410:function(I,r,n){"use strict";r.__esModule=!0,r.sanitizeMultiline=r.removeAllSkiplines=r.TextInputModal=void 0;var e=n(89005),a=n(51057),t=n(19203),o=n(72253),p=n(92986),k=n(36036),y=n(98595),S=r.sanitizeMultiline=function(){function u(f){return f.replace(/(\n|\r\n){3,}/,"\n\n")}return u}(),b=r.removeAllSkiplines=function(){function u(f){return f.replace(/[\r\n]+/,"")}return u}(),C=r.TextInputModal=function(){function u(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.message,v=V===void 0?"":V,s=i.multiline,g=i.placeholder,N=i.timeout,x=i.title,B=(0,o.useLocalState)(l,"input",g||""),L=B[0],T=B[1],A=function(){function O(M){if(M!==L){var P=s?S(M):b(M);T(P)}}return O}(),E=s||L.length>=40,w=130+(v.length>40?Math.ceil(v.length/3):0)+(E?80:0);return(0,e.createComponentVNode)(2,y.Window,{title:x,width:325,height:w,children:[N&&(0,e.createComponentVNode)(2,a.Loader,{value:N}),(0,e.createComponentVNode)(2,y.Window.Content,{onKeyDown:function(){function O(M){var P=window.event?M.which:M.keyCode;P===p.KEY_ENTER&&(!E||!M.shiftKey)&&m("submit",{entry:L}),P===p.KEY_ESCAPE&&m("cancel")}return O}(),children:(0,e.createComponentVNode)(2,k.Section,{fill:!0,children:(0,e.createComponentVNode)(2,k.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,k.Box,{color:"label",children:v})}),(0,e.createComponentVNode)(2,k.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,c,{input:L,onType:A})}),(0,e.createComponentVNode)(2,k.Stack.Item,{children:(0,e.createComponentVNode)(2,t.InputButtons,{input:L,message:L.length+"/"+h})})]})})})]})}return u}(),c=function(f,l){var d=(0,o.useBackend)(l),m=d.act,i=d.data,h=i.max_length,V=i.multiline,v=f.input,s=f.onType,g=V||v.length>=40;return(0,e.createComponentVNode)(2,k.TextArea,{autoFocus:!0,autoSelect:!0,height:V||v.length>=40?"100%":"1.8rem",maxLength:h,onEscape:function(){function N(){return m("cancel")}return N}(),onEnter:function(){function N(x){g&&x.shiftKey||(x.preventDefault(),m("submit",{entry:v}))}return N}(),onInput:function(){function N(x,B){return s(B)}return N}(),placeholder:"\u041D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0447\u0442\u043E-\u043D\u0438\u0431\u0443\u0434\u044C...",value:v})}},69566:function(I,r,n){"use strict";r.__esModule=!0,r.ThiefKit=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.ThiefKit=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.uses,f=c.possible_uses,l=c.multi_uses,d=c.kits,m=c.choosen_kits;return(0,e.createComponentVNode)(2,o.Window,{width:600,height:900,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Section,{title:"\u041D\u0430\u0431\u043E\u0440 \u0413\u0438\u043B\u044C\u0434\u0438\u0438 \u0412\u043E\u0440\u043E\u0432:",children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:[(0,e.createVNode)(1,"i",null,"\u0423\u0432\u0435\u0441\u0438\u0441\u0442\u0430\u044F \u043A\u043E\u0440\u043E\u0431\u043A\u0430, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u043B\u0435\u0436\u0438\u0442 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0433\u0438\u043B\u044C\u0434\u0438\u0438 \u0432\u043E\u0440\u043E\u0432.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"i",null,"\u041D\u0430\u0431\u043E\u0440 \u0432\u043E\u0440\u0430-\u0448\u0440\u0435\u0434\u0438\u043D\u0433\u0435\u0440\u0430. \u041D\u0435\u043B\u044C\u0437\u044F \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0438\u0442\u044C \u0447\u0442\u043E \u0432 \u043D\u0451\u043C, \u043F\u043E\u043A\u0430 \u043D\u0435 \u0437\u0430\u0433\u043B\u044F\u043D\u0435\u0448\u044C \u0432\u043D\u0443\u0442\u0440\u044C.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"p",null,(0,e.createVNode)(1,"b",null,"\u041A\u0430\u043A\u043E\u0435 \u0441\u043D\u0430\u0440\u044F\u0436\u0435\u043D\u0438\u0435 \u0432 \u043D\u0451\u043C \u043B\u0435\u0436\u0438\u0442?:",16),2),(0,e.createVNode)(1,"p",null,[(0,e.createTextVNode)("\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u043E \u043D\u0430\u0431\u043E\u0440\u043E\u0432:"),(0,e.createComponentVNode)(2,t.Box,{as:"span",color:u<=0?"good":u=f,onClick:function(){function i(){return C("randomKit")}return i}()}),children:(0,e.createComponentVNode)(2,t.LabeledList,{children:d&&d.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"upload",content:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",disabled:i.was_taken||u>=f,onClick:function(){function h(){return C("takeKit",{item:i.type})}return h}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"undo",disabled:!i.was_taken,onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()})]}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:i.desc})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{title:"\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u043D\u0430\u0431\u043E\u0440\u044B:",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:m&&m.map(function(i){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:i.name,buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"undo",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",onClick:function(){function h(){return C("undoKit",{item:i.type})}return h}()}),children:(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:" "})},i.type)})})}),(0,e.createComponentVNode)(2,t.Section,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440",color:u0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),x.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers over]",16):"",x.contractor.accepted?(0,e.createVNode)(1,"i",null,"\xA0(Accepted)",16):!x.contractor.is_admin_forced&&x.contractor.available_offers<=0?"":(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:x.contractor.time_left,format:function(){function M(P,F){return" ("+F+")"}return M}(),bold:!0})]},"BecomeContractor"),(0,e.createComponentVNode)(2,y.Tabs.Tab,{onClick:function(){function M(){return N("lock")}return M}(),icon:"lock",children:"Lock Uplink"},"LockUplink")]})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:C(T)})]})})]})}return V}(),u=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.crystals,L=x.cats,T=(0,k.useLocalState)(s,"uplinkItems",L[0].items),A=T[0],E=T[1],w=(0,k.useLocalState)(s,"searchText",""),O=w[0],M=w[1],P=function(K,$){$===void 0&&($="");var ne=(0,o.createSearch)($,function(Y){var le=Y.hijack_only===1?"|hijack":"";return Y.name+"|"+Y.desc+"|"+Y.cost+"tc"+le});return(0,t.flow)([(0,a.filter)(function(Y){return Y==null?void 0:Y.name}),$&&(0,a.filter)(ne),(0,a.sortBy)(function(Y){return Y==null?void 0:Y.name})])(K)},F=function(K){if(M(K),K==="")return E(L[0].items);E(P(L.map(function($){return $.items}).flat(),K))},R=(0,k.useLocalState)(s,"showDesc",1),U=R[0],j=R[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:(0,e.createComponentVNode)(2,y.Stack.Item,{children:(0,e.createComponentVNode)(2,y.Section,{title:"Current Balance: "+B+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:U,onClick:function(){function W(){return j(!U)}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Random Item",icon:"question",onClick:function(){function W(){return N("buyRandom")}return W}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Refund Currently Held Item",icon:"undo",onClick:function(){function W(){return N("refund")}return W}()})],4),children:(0,e.createComponentVNode)(2,y.Input,{fluid:!0,placeholder:"Search Equipment",onInput:function(){function W(K,$){F($)}return W}(),value:O})})})}),(0,e.createComponentVNode)(2,y.Stack,{fill:!0,mt:.3,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:L.map(function(W){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:O!==""?!1:W.items===A,onClick:function(){function K(){E(W.items),M("")}return K}(),children:W.cat},W)})})})}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:A.map(function(W){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:W,showDecription:U},(0,o.decodeHtmlEntities)(W.name))},(0,o.decodeHtmlEntities)(W.name))})})})})]})]})},f=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cart,L=x.crystals,T=x.cart_price,A=(0,k.useLocalState)(s,"showDesc",0),E=A[0],w=A[1];return(0,e.createComponentVNode)(2,y.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Current Balance: "+L+"TC",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button.Checkbox,{content:"Show Descriptions",checked:E,onClick:function(){function O(){return w(!E)}return O}()}),(0,e.createComponentVNode)(2,y.Button,{content:"Empty Cart",icon:"trash",onClick:function(){function O(){return N("empty_cart")}return O}(),disabled:!B}),(0,e.createComponentVNode)(2,y.Button,{content:"Purchase Cart ("+T+"TC)",icon:"shopping-cart",onClick:function(){function O(){return N("purchase_cart")}return O}(),disabled:!B||T>L})],4),children:(0,e.createComponentVNode)(2,y.Stack,{vertical:!0,children:B?B.map(function(O){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mr:1,backgroundColor:"rgba(255, 0, 0, 0.1)",children:(0,e.createComponentVNode)(2,d,{i:O,showDecription:E,buttons:(0,e.createComponentVNode)(2,i,{i:O})})},(0,o.decodeHtmlEntities)(O.name))}):(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:"Your Shopping Cart is empty!"})})})}),(0,e.createComponentVNode)(2,l)]})},l=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.cats,L=x.lucky_numbers;return(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,title:"Suggested Purchases",buttons:(0,e.createComponentVNode)(2,y.Button,{icon:"dice",content:"See more suggestions",onClick:function(){function T(){return N("shuffle_lucky_numbers")}return T}()}),children:(0,e.createComponentVNode)(2,y.Stack,{wrap:!0,children:L.map(function(T){return B[T.cat].items[T.item]}).filter(function(T){return T!=null}).map(function(T,A){return(0,e.createComponentVNode)(2,y.Stack.Item,{p:1,mb:1,ml:1,width:34,backgroundColor:"rgba(255, 0, 0, 0.15)",children:(0,e.createComponentVNode)(2,d,{grow:!0,i:T})},A)})})})})},d=function(v,s){var g=v.i,N=v.showDecription,x=N===void 0?1:N,B=v.buttons,L=B===void 0?(0,e.createComponentVNode)(2,m,{i:g}):B;return(0,e.createComponentVNode)(2,y.Section,{title:(0,o.decodeHtmlEntities)(g.name),showBottom:x,buttons:L,children:x?(0,e.createComponentVNode)(2,y.Box,{italic:!0,children:(0,o.decodeHtmlEntities)(g.desc)}):null})},m=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.crystals;return(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Button,{icon:"shopping-cart",color:B.hijack_only===1&&"red",tooltip:"Add to cart.",tooltipPosition:"left",onClick:function(){function T(){return N("add_to_cart",{item:B.obj_path})}return T}(),disabled:B.cost>L}),(0,e.createComponentVNode)(2,y.Button,{content:"Buy ("+B.cost+"TC)"+(B.refundable?" [Refundable]":""),color:B.hijack_only===1&&"red",tooltip:B.hijack_only===1&&"Hijack Agents Only!",tooltipPosition:"left",onClick:function(){function T(){return N("buyItem",{item:B.obj_path})}return T}(),disabled:B.cost>L})],4)},i=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=v.i,L=x.exploitable;return(0,e.createComponentVNode)(2,y.Stack,{children:[(0,e.createComponentVNode)(2,y.Button,{icon:"times",content:"("+B.cost*B.amount+"TC)",tooltip:"Remove from cart.",tooltipPosition:"left",onClick:function(){function T(){return N("remove_from_cart",{item:B.obj_path})}return T}()}),(0,e.createComponentVNode)(2,y.Button,{icon:"minus",tooltip:B.limit===0&&"Discount already redeemed!",ml:"5px",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:--B.amount})}return T}(),disabled:B.amount<=0}),(0,e.createComponentVNode)(2,y.Button.Input,{content:B.amount,width:"45px",tooltipPosition:"bottom-end",tooltip:B.limit===0&&"Discount already redeemed!",onCommit:function(){function T(A,E){return N("set_cart_item_quantity",{item:B.obj_path,quantity:E})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit&&B.amount<=0}),(0,e.createComponentVNode)(2,y.Button,{mb:.3,icon:"plus",tooltipPosition:"bottom-start",tooltip:B.limit===0&&"Discount already redeemed!",onClick:function(){function T(){return N("set_cart_item_quantity",{item:B.obj_path,quantity:++B.amount})}return T}(),disabled:B.limit!==-1&&B.amount>=B.limit})]})},h=function(v,s){var g=(0,k.useBackend)(s),N=g.act,x=g.data,B=x.exploitable,L=(0,k.useLocalState)(s,"selectedRecord",B[0]),T=L[0],A=L[1],E=(0,k.useLocalState)(s,"searchText",""),w=E[0],O=E[1],M=function(R,U){U===void 0&&(U="");var j=(0,o.createSearch)(U,function(W){return W.name});return(0,t.flow)([(0,a.filter)(function(W){return W==null?void 0:W.name}),U&&(0,a.filter)(j),(0,a.sortBy)(function(W){return W.name})])(R)},P=M(B,w);return(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:"Exploitable Records",children:(0,e.createComponentVNode)(2,y.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,y.Stack.Item,{width:"30%",fill:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,scrollable:!0,children:[(0,e.createComponentVNode)(2,y.Input,{fluid:!0,mb:1,placeholder:"Search Crew",onInput:function(){function F(R,U){return O(U)}return F}()}),(0,e.createComponentVNode)(2,y.Tabs,{vertical:!0,children:P.map(function(F){return(0,e.createComponentVNode)(2,y.Tabs.Tab,{selected:F===T,onClick:function(){function R(){return A(F)}return R}(),children:F.name},F)})})]})}),(0,e.createComponentVNode)(2,y.Divider,{vertical:!0}),(0,e.createComponentVNode)(2,y.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,y.Section,{fill:!0,title:T.name,scrollable:!0,children:(0,e.createComponentVNode)(2,y.LabeledList,{children:[(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Age",children:T.age}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Fingerprint",children:T.fingerprint}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Rank",children:T.rank}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Sex",children:T.sex}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Species",children:T.species}),(0,e.createComponentVNode)(2,y.LabeledList.Item,{label:"Records",children:T.exploit_record})]})})})]})})};(0,b.modalRegisterBodyOverride)("become_contractor",function(V,v){var s,g,N,x,B=(0,k.useBackend)(v),L=B.data,T=L.contractor||{},A=T.time_left,E=!!(L!=null&&(s=L.contractor)!=null&&s.available),w=!!(L!=null&&(g=L.contractor)!=null&&g.affordable),O=!!(L!=null&&(N=L.contractor)!=null&&N.accepted),M=L.contractor||{},P=M.available_offers,F=!!(L!=null&&(x=L.contractor)!=null&&x.is_admin_forced);return(0,e.createComponentVNode)(2,y.Section,{height:"65%",level:"2",m:"-1rem",pb:"1rem",title:(0,e.createFragment)([(0,e.createComponentVNode)(2,y.Icon,{name:"suitcase"}),(0,e.createTextVNode)("\xA0 Contracting Opportunity")],4),children:[(0,e.createComponentVNode)(2,y.Box,{mx:"0.5rem",mb:"0.5rem",children:[(0,e.createVNode)(1,"b",null,"Your achievements for the Syndicate have not gone unnoticed, agent. We have decided to give you the rare opportunity of becoming a Contractor.",16),(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"For the small price of 20 telecrystals, we will upgrade your rank to that of a Contractor, allowing you to undertake kidnapping contracts for TC and credits.",(0,e.createVNode)(1,"br"),"In addition, you will be supplied with a Contractor Kit which contains a Contractor Uplink, standard issue contractor gear and three random low cost items.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"br"),"More detailed instructions can be found within your kit, should you accept this offer.",F?"":(0,e.createComponentVNode)(2,y.Box,{children:["Hurry up. You are not the only one who received this offer. Their number is limited. If other traitors accept all offers before you, you will not be able to accept one of them.",(0,e.createVNode)(1,"br"),(0,e.createVNode)(1,"b",null,[(0,e.createTextVNode)("Available offers: "),P],0)]})]}),(0,e.createComponentVNode)(2,y.Button.Confirm,{disabled:!E||O,italic:!E,bold:E,icon:E&&!O&&"check",color:"good",content:O?"Accepted":E?["Accept Offer",(0,e.createComponentVNode)(2,p.Countdown,{timeLeft:A,format:function(){function R(U,j){return" ("+j+")"}return R}()},"countdown")]:w?L.contractor.is_admin_forced?"Offer expired":L.contractor.available_offers>0?(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("[Left:"),L.contractor.available_offers,(0,e.createTextVNode)("]")],0):(0,e.createVNode)(1,"i",null,"[Offers are over]",16):"Insufficient TC",position:"absolute",right:"1rem",bottom:"-0.75rem",onClick:function(){function R(){return(0,b.modalAnswer)(v,V.id,1)}return R}()})]})})},80949:function(I,r,n){"use strict";r.__esModule=!0,r.UploadPanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.UploadPanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.selected_target,f=c.new_law,l=c.id,d=c.transmitting,m=c.hacked;return(0,e.createComponentVNode)(2,o.Window,{width:900,height:200,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Silicon Law Upload",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Target",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!u,content:u||"No target selected",onClick:function(){function i(){return C("choose_silicon")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Selected Law",children:(0,e.createComponentVNode)(2,t.Button,{disabled:d,selected:!!f,content:f||"No module installed",onClick:function(){function i(){return C("insert_module")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Authorization",children:(0,e.createComponentVNode)(2,t.Button,{selected:!!l,content:l||(m?"$@!ERR0R!@#":"No ID card inserted"),onClick:function(){function i(){return C("authorization")}return i}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Upload Laws",children:(0,e.createComponentVNode)(2,t.Button,{disabled:!u||!f||(m?!1:!l),selected:!!d,content:d?"STOP UPLOAD":"START UPLOAD",onClick:function(){function i(){return C("change_laws")}return i}()})})]})})})})}return k}()},8946:function(I,r,n){"use strict";r.__esModule=!0,r.VampireSpecMenu=r.UmbrMenu=r.HemoMenu=r.GarMenu=r.DantMenu=r.BestMenu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VampireSpecMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=(0,a.useLocalState)(f,"activeTab","hemomancer"),i=m[0],h=m[1],V=function(){function v(){switch(i){case"hemomancer":return(0,e.createComponentVNode)(2,k,{act:d});case"umbrae":return(0,e.createComponentVNode)(2,y,{act:d});case"gargantua":return(0,e.createComponentVNode)(2,S,{act:d});case"dantalion":return(0,e.createComponentVNode)(2,b,{act:d});case"bestia":return(0,e.createComponentVNode)(2,C,{act:d});default:return null}}return v}();return(0,e.createComponentVNode)(2,o.Window,{width:650,height:890,resizable:!0,theme:"ntos_spooky",children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:[(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function v(){return h("hemomancer")}return v}(),selected:i==="hemomancer"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function v(){return h("umbrae")}return v}(),selected:i==="umbrae"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function v(){return h("gargantua")}return v}(),selected:i==="gargantua"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function v(){return h("dantalion")}return v}(),selected:i==="dantalion"}),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function v(){return h("bestia")}return v}(),selected:i==="bestia"})]}),(0,e.createComponentVNode)(2,t.Divider),V()]})})}return c}(),k=r.HemoMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.hemomancer;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043C\u0430\u0433\u0438\u0438 \u043A\u0440\u043E\u0432\u0438 \u0438 \u0443\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0438 \u0435\u044E.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u043E\u0433\u0442\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043F\u0430\u0440\u0443 \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u0445 \u043A\u043E\u0433\u0442\u0435\u0439, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0438\u0445 \u0431\u044B\u0441\u0442\u0440\u043E \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u044F \u0435\u0435 \u043A\u0440\u043E\u0432\u044C \u0438 \u0440\u0435\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u0443\u044F \u0441\u0432\u043E\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0431\u0430\u0440\u044C\u0435\u0440",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0432\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u0435\u0436\u0434\u0443 \u043D\u0438\u043C\u0438 \u0441\u0442\u0435\u043D\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0449\u0443\u043F\u0430\u043B\u044C\u0446\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0437\u0430\u043C\u0435\u0434\u043B\u0438\u0442\u044C \u0432\u0441\u0435\u0445 \u0432\u043D\u0443\u0442\u0440\u0438 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 3x3.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0440\u0443\u0436\u0435\u043D\u0438\u0435 \u0432 \u043A\u0440\u043E\u0432\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043D\u0435\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0441 \u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C\u044E, \u0438\u0433\u043D\u043E\u0440\u0438\u0440\u0443\u044F \u0432\u0441\u0435 \u043F\u0440\u0435\u043F\u044F\u0442\u0441\u0442\u0432\u0438\u044F, \u043A\u0440\u043E\u043C\u0435 \u0441\u0442\u0435\u043D \u0438 \u043A\u043E\u0441\u043C\u043E\u0441\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044F \u0437\u0430 \u0441\u043E\u0431\u043E\u0439 \u043A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0441\u043B\u0435\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0427\u0443\u0442\u044C\u0451 \u0445\u0438\u0449\u043D\u0438\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0447\u0443\u0432\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0433\u043E-\u0443\u0433\u043E\u0434\u043D\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0430\u0448\u0435\u0433\u043E \u0441\u0435\u043A\u0442\u043E\u0440\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0418\u0437\u0432\u0435\u0440\u0436\u0435\u043D\u0438\u0435 \u043A\u0440\u043E\u0432\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0430\u043D\u0438\u043F\u0443\u043B\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u043B\u0443\u0436\u0430\u043C\u0438 \u043A\u0440\u043E\u0432\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0447\u0435\u0442\u044B\u0440\u0435\u0445 \u043C\u0435\u0442\u0440\u043E\u0432, \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044F \u0438\u0445 \u0432 \u0448\u0438\u043F\u044B, \u043F\u0440\u043E\u0442\u044B\u043A\u0430\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u043D\u0430 \u043D\u0438\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u043E\u0431\u0440\u044F\u0434",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043A\u0440\u043E\u0432\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432, \u0431\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u044F \u0447\u0435\u043C\u0443 \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E \u043B\u0435\u0447\u0438\u0442\u044C\u0441\u044F \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043E\u0442 \u043A\u0430\u043A\u0438\u0445-\u043B\u0438\u0431\u043E \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0445 \u044D\u0444\u0444\u0435\u043A\u0442\u043E\u0432.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0435\u043C\u043E\u043C\u0430\u043D\u0441\u0435\u0440",onClick:function(){function h(){return d("hemomancer")}return h}()})]})}return c}(),y=r.UmbrMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.umbrae;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0423\u043C\u0431\u0440\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0437\u0430\u0441\u0430\u0434\u0430\u0445 \u0438 \u0441\u043A\u0440\u044B\u0442\u043D\u043E\u043C \u043F\u0435\u0440\u0435\u043C\u0435\u0449\u0435\u043D\u0438\u0438.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043A\u0440\u043E\u0432 \u0442\u044C\u043C\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0431\u044B\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0431\u044B\u0441\u0442\u0440\u043E \u043F\u0435\u0440\u0435\u0434\u0432\u0438\u0433\u0430\u0442\u044C\u0441\u044F \u0432 \u0442\u0435\u043C\u043D\u044B\u0445 \u0443\u0447\u0430\u0441\u0442\u043A\u0430\u0445 \u0441\u0442\u0430\u043D\u0446\u0438\u0438. \u0422\u0430\u043A\u0436\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u043C, \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043B\u044E\u0431\u043E\u0439 \u0443\u0440\u043E\u043D \u043E\u0442 \u043E\u0436\u043E\u0433\u043E\u0432 \u043F\u043E \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u043E\u0439 \u044F\u043A\u043E\u0440\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0430\u043A\u0442\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043D\u0430 \u043C\u0435\u0441\u0442\u0435 \u043F\u0440\u0438\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u043C\u0430\u044F\u043A \u043F\u043E\u0441\u043B\u0435 \u043D\u0435\u0431\u043E\u043B\u044C\u0448\u043E\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043A\u0438. \u041F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u0430\u0441 \u043E\u0431\u0440\u0430\u0442\u043D\u043E \u043A \u043C\u0430\u044F\u043A\u0443. \u0415\u0441\u043B\u0438 \u0441\u043F\u0443\u0441\u0442\u044F \u0434\u0432\u0435 \u043C\u0438\u043D\u0443\u0442\u044B \u043F\u043E\u0441\u043B\u0435 \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u043D\u0435 \u0431\u044B\u043B\u0430 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u0430 \u0441\u043D\u043E\u0432\u0430, \u0442\u043E \u0432\u044B \u0431\u0443\u0434\u0435\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0435\u043D\u044B \u043A \u043C\u0430\u044F\u043A\u0443. \u041C\u0430\u044F\u043A \u043D\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u0435\u043D \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0430\u0441 \u043C\u0435\u0436\u0434\u0443 \u0441\u0435\u043A\u0442\u043E\u0440\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043D\u0435\u0432\u0430\u044F \u043B\u043E\u0432\u0443\u0448\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0437\u0434\u0430\u0432\u0430\u0442\u044C \u043B\u043E\u0432\u0443\u0448\u043A\u0438, \u0442\u0440\u0430\u0432\u043C\u0438\u0440\u0443\u044E\u0449\u0438\u0435 \u0438 \u043E\u0441\u043B\u0435\u043F\u043B\u044F\u044E\u0449\u0438\u0435 \u043B\u044E\u0431\u043E\u0433\u043E \u043D\u0430\u0441\u0442\u0443\u043F\u0438\u0432\u0448\u0435\u0433\u043E \u0432 \u043D\u0438\u0445. \u041B\u043E\u0432\u0443\u0448\u043A\u0443 \u0442\u044F\u0436\u0435\u043B\u043E \u0437\u0430\u043C\u0435\u0442\u0438\u0442\u044C, \u043D\u043E \u043E\u043D\u0430 \u0438\u0441\u0447\u0435\u0437\u0430\u0435\u0442 \u043F\u043E\u0434 \u0432\u043E\u0437\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043C \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432 \u044F\u0440\u043A\u043E\u0433\u043E \u0441\u0432\u0435\u0442\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0428\u0430\u0433 \u0432 \u0442\u0435\u043D\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0442\u0435\u043B\u0435\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432 \u043B\u044E\u0431\u043E\u0435 \u043C\u0435\u0441\u0442\u043E \u0432 \u043F\u0440\u0435\u0434\u0435\u043B\u0430\u0445 \u0432\u0438\u0434\u0438\u043C\u043E\u0441\u0442\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0433\u0430\u0441\u0438\u0442\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0438\u0437 \u0441\u0442\u0440\u043E\u044F \u043B\u044E\u0431\u044B\u0435 \u044D\u043B\u0435\u043A\u0442\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0441\u0432\u0435\u0442\u0430, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0433\u043B\u043E\u0443\u0448\u0440\u0443\u043C\u044B.")],0),(0,e.createVNode)(1,"b",null,"\u0411\u043E\u0439 \u0441 \u0442\u0435\u043D\u044C\u044E",16),": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"," ",(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),", \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0442\u0435\u043D\u0435\u0432\u044B\u0445 \u043A\u043B\u043E\u043D\u043E\u0432, \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0442\u0430\u043A\u043E\u0432\u0430\u0442\u044C \u0446\u0435\u043B\u044C, \u043F\u043E\u043A\u0430 \u0432\u044B \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0435\u0441\u044C \u0440\u044F\u0434\u043E\u043C.",(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0412\u0435\u0447\u043D\u0430\u044F \u0442\u044C\u043C\u0430",16),(0,e.createTextVNode)(": \u043F\u043E\u0441\u043B\u0435 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F \u0432\u044B \u0440\u0430\u0441\u0441\u0442\u0432\u043E\u0440\u044F\u0435\u0442\u0435\u0441\u044C \u0432 \u043D\u0435\u0447\u0435\u0441\u0442\u0438\u0432\u043E\u0439 \u0442\u0435\u043C\u043D\u043E\u0442\u0435, \u0432 \u043A\u043E\u0442\u043E\u0440\u043E\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043D \u043B\u0438\u0448\u044C \u0441\u0438\u043B\u044C\u043D\u0435\u0439\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u0432\u0435\u0442\u0430. \u0425\u043E\u043B\u043E\u0434, \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0435\u0439 \u0432\u0430\u0441 \u0442\u044C\u043C\u044B \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043C\u043E\u0440\u0430\u0436\u0438\u0432\u0430\u0442\u044C \u0432\u0441\u0435\u0445 \u0436\u0438\u0432\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438.")],4),(0,e.createVNode)(1,"p",null,"\u0412\u044B \u0442\u0430\u043A\u0436\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 X-ray \u0437\u0440\u0435\u043D\u0438\u0435",16),(0,e.createComponentVNode)(2,t.Button,{content:"\u0423\u043C\u0431\u0440\u0430",onClick:function(){function h(){return d("umbrae")}return h}()})]})}return c}(),S=r.GarMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.gargantua;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u0441\u0442\u043E\u0439\u043A\u043E\u0441\u0442\u0438 \u0438 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u0435.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u0411\u0443\u0434\u0435\u0442 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0442\u044C \u0432\u0430\u0448\u0435 \u0437\u0434\u043E\u0440\u043E\u0432\u044C\u0435 \u0442\u0435\u043C \u0441\u0438\u043B\u044C\u043D\u0435\u0435, \u0447\u0435\u043C \u0431\u043E\u043B\u044C\u0448\u0435 \u0443\u0440\u043E\u043D\u0430 \u0432\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438.")],4),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 150"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0435 \u0441\u043E\u043F\u0440\u043E\u0442\u0438\u0432\u043B\u0435\u043D\u0438\u0435 \u043E\u0433\u043B\u0443\u0448\u0435\u043D\u0438\u044E, \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043A\u043E\u043C\u0443 \u0438 \u0441\u0442\u0430\u043C\u0438\u043D\u0430 \u0443\u0440\u043E\u043D\u0443. \u0412\u044B \u043D\u0435 \u043C\u043E\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043B\u044F\u0442\u044C \u043F\u043E\u043A\u0430 \u0430\u043A\u0442\u0438\u0432\u043D\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u0434\u0430\u0440\u043D\u0430\u044F \u0432\u043E\u043B\u043D\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0441\u043E\u0442\u0440\u044F\u0441\u0430\u0442\u044C \u0437\u0435\u043C\u043B\u044E \u043F\u043E\u0434 \u043D\u043E\u0433\u0430\u043C\u0438, \u0447\u0442\u043E\u0431\u044B \u043E\u0433\u043B\u0443\u0448\u0438\u0442\u044C \u0438 \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0440\u0430\u0433\u043E\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0434\u0440\u0430\u0439\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 250"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0434\u0430\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0431\u0430\u0432\u043A\u0443 \u043A \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u0438 \u043D\u0430 \u043A\u043E\u0440\u043E\u0442\u043A\u043E\u0435 \u0432\u0440\u0435\u043C\u044F.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0439 \u0432\u0430\u043B II",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 400"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u0435\u0441\u044C \u0443\u0440\u043E\u043D \u0432 \u0431\u043B\u0438\u0436\u043D\u0435\u043C \u0431\u043E\u044E \u043D\u0430 10.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041D\u0435\u0443\u0434\u0435\u0440\u0436\u0438\u043C\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 600"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u0431\u0443\u0434\u0443\u0447\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u043D\u044B\u043C, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0434\u0432\u0435\u0440\u0438 \u043F\u0440\u0438 \u0441\u0442\u043E\u043B\u043A\u043D\u043E\u0432\u0435\u043D\u0438\u0438, \u0434\u0430\u0436\u0435 \u043D\u0435 \u0438\u043C\u0435\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430. \u0412\u0430\u0441 \u0442\u0430\u043A\u0436\u0435 \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0442\u043E\u043B\u043A\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0442\u0430\u0449\u0438\u0442\u044C, \u043F\u043E\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0430\u043A\u0442\u0438\u0432\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0414\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0445\u0432\u0430\u0442\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442 800"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"}),2),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A \u0446\u0435\u043B\u0438 \u0434\u0435\u043C\u043E\u043D\u0438\u0447\u0435\u0441\u043A\u0443\u044E \u0440\u0443\u043A\u0443. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E\u0441\u0442\u0438 \u043E\u0442 \u0438\u043D\u0442\u0435\u043D\u0442\u0430, disarm/grab, \u0432\u044B \u043E\u0442\u0442\u043E\u043B\u043A\u043D\u0435\u0442\u0435/\u043F\u0440\u0438\u0442\u044F\u043D\u0435\u0442\u0435 \u0446\u0435\u043B\u044C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442\u0435 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u044C \u0434\u0435\u043B\u0430\u0442\u044C \u0440\u044B\u0432\u043E\u043A \u0432 \u0432\u0430\u0448\u0443 \u0446\u0435\u043B\u044C, \u0440\u0430\u0437\u0440\u0443\u0448\u0430\u044F \u0438 \u043E\u0442\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u044F \u0432\u0441\u0435, \u0432\u043E \u0447\u0442\u043E \u0432\u0440\u0435\u0436\u0435\u0442\u0435\u0441\u044C.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0413\u0430\u0440\u0433\u0430\u043D\u0442\u044E\u0430",onClick:function(){function h(){return d("gargantua")}return h}()})]})}return c}(),b=r.DantMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.dantalion;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u0438 \u0438 \u0438\u043B\u043B\u044E\u0437\u0438\u044F\u0445.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u0447\u0438\u043D\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0434\u0447\u0438\u043D\u044F\u0435\u0442 \u0446\u0435\u043B\u044C \u0432\u0430\u0448\u0435\u0439 \u0432\u043E\u043B\u0435, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043E\u0442 \u0432\u0430\u0441 \u043D\u0435 \u0448\u0435\u0432\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u0438\u044F. \u041D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u043D\u0430 \u043D\u043E\u0441\u0438\u0442\u0435\u043B\u0435\u0439 \u0438\u043C\u043F\u043B\u0430\u043D\u0442\u0430 \u0437\u0430\u0449\u0438\u0442\u044B \u0440\u0430\u0437\u0443\u043C\u0430 \u0438 \u043D\u0430 \u0443\u0436\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0449\u0435\u043D\u043D\u044B\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0440\u0430\u0431\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0440\u0430\u0431\u0430 \u0437\u0430 \u0440\u0430\u0437. \u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0440\u0430\u0431\u043E\u0432 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(","),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 4 \u0440\u0430\u0431\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0422\u0435\u043B\u0435\u043F\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0441\u0432\u044F\u0437\u044C",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0440\u0430\u0437\u0433\u043E\u0432\u0430\u0440\u0438\u0432\u0430\u0442\u044C \u0441 \u0432\u0430\u0448\u0438\u043C\u0438 \u0440\u0430\u0431\u0430\u043C\u0438, \u0432\u0430\u0448\u0438 \u0440\u0430\u0431\u044B \u0442\u0430\u043A\u0436\u0435 \u043C\u043E\u0433\u0443\u0442 \u043E\u0442\u0432\u0435\u0447\u0430\u0442\u044C \u0432\u0430\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0434\u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u043E\u0431\u043C\u0435\u043D",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043C\u0435\u043D\u044F\u0442\u044C\u0441\u044F \u043C\u0435\u0441\u0442\u0430\u043C\u0438 \u0441 \u0446\u0435\u043B\u044C\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0423\u043C\u0438\u0440\u043E\u0442\u0432\u043E\u0440\u0435\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u0443\u0441\u043F\u043E\u043A\u043E\u0438\u0442\u044C \u0446\u0435\u043B\u044C, \u043E\u0442\u043E\u0431\u0440\u0430\u0432 \u0443 \u043D\u0435\u0435 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u044C \u043D\u0430\u043D\u0435\u0441\u0442\u0438 \u0432\u0440\u0435\u0434 \u043A\u043E\u043C\u0443-\u043B\u0438\u0431\u043E \u0432 \u0442\u0435\u0447\u0435\u043D\u0438\u0435 40 \u0441\u0435\u043A\u0443\u043D\u0434.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u043C\u0430\u043D\u043A\u0430",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043D\u0435\u043D\u0430\u0434\u043E\u043B\u0433\u043E \u0434\u0435\u043B\u0430\u0435\u0442 \u0432\u0430\u0441 \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u043C \u0438 \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u043A\u043E\u043F\u0438\u044E \u043E\u0431\u043C\u0430\u043D\u043A\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0421\u043F\u043B\u043E\u0442\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0432",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u043D\u0438\u043C\u0430\u0435\u0442 \u0441 \u0431\u043B\u0438\u0437\u0441\u0442\u043E\u044F\u0449\u0438\u0445 \u0440\u0430\u0431\u043E\u0432 \u043B\u044E\u0431\u044B\u0435 \u043E\u0433\u043B\u0443\u0448\u0430\u044E\u0449\u0438\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041A\u0440\u043E\u0432\u0430\u0432\u044B\u0435 \u0443\u0437\u044B",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("800 "),(0,e.createVNode)(1,"font",null,"\u0435\u0434. \u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0441\u0432\u044F\u0437\u044B\u0432\u0430\u0435\u0442 \u0432\u0430\u0441 \u0441\u043E \u0432\u0441\u0435\u043C\u0438 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u043C\u0438 \u0432\u0430\u0441 \u0440\u0430\u0431\u0430\u043C\u0438, \u0435\u0441\u043B\u0438 \u043A\u0442\u043E-\u043B\u0438\u0431\u043E \u0432 \u0441\u0432\u044F\u0437\u043A\u0435 \u043F\u043E\u043B\u0443\u0447\u0430\u0435\u0442 \u0443\u0440\u043E\u043D, \u0442\u043E \u043E\u043D \u0434\u0435\u043B\u0438\u0442\u0441\u044F \u043C\u0435\u0436\u0434\u0443 \u0432\u0441\u0435\u043C\u0438 \u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u043C\u0438. \u0415\u0441\u043B\u0438 \u0440\u0430\u0431 \u0443\u0445\u043E\u0434\u0438\u0442 \u0434\u0430\u043B\u0435\u043A\u043E \u043E\u0442 \u0432\u0430\u0441, \u0442\u043E \u0432\u044B \u0442\u0435\u0440\u044F\u0435\u0442\u0435 \u0441\u0432\u044F\u0437\u044C \u0441 \u043D\u0438\u043C.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0430\u0441\u0441\u043E\u0432\u0430\u044F \u0438\u0441\u0442\u0435\u0440\u0438\u044F",16),(0,e.createTextVNode)(": \u0441\u043E\u0437\u0434\u0430\u0435\u0442 \u043C\u0430\u0441\u0441\u043E\u0432\u0443\u044E \u0433\u0430\u043B\u043B\u044E\u0446\u0438\u043D\u0430\u0446\u0438\u044E, \u043E\u0441\u043B\u0435\u043F\u0438\u0432 \u0432\u0441\u0435\u0445 \u043F\u043E\u0431\u043B\u0438\u0437\u043E\u0441\u0442\u0438, \u0430 \u0437\u0430\u0442\u0435\u043C \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u043E\u043A\u0440\u0443\u0436\u0430\u044E\u0449\u0438\u0445 \u0432\u0438\u0434\u0435\u0442\u044C \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u044B\u0445 \u0436\u0438\u0432\u043E\u0442\u043D\u044B\u0445.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0414\u0430\u043D\u0442\u0430\u043B\u0438\u043E\u043D",onClick:function(){function h(){return d("dantalion")}return h}()})]})}return c}(),C=r.BestMenu=function(){function c(u,f){var l=(0,a.useBackend)(f),d=l.act,m=l.data,i=m.bestia;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0411\u0435\u0441\u0442\u0438\u044F",children:[(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:(0,e.createComponentVNode)(2,t.DmIcon,{height:"256px",width:"256px",icon:i[0],icon_state:i[1],style:{"-ms-interpolation-mode":"nearest-neighbor"}})}),(0,e.createVNode)(1,"h3",null,"\u0421\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0438 \u0434\u043E\u0431\u044B\u0447\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432.",16),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0442\u0440\u043E\u0444\u0435\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0442\u0440\u043E\u0444\u0435\u0435\u0432, \u0430 \u0442\u0430\u043A\u0436\u0435 \u0432\u0441\u0435 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u044B\u0435 \u044D\u0444\u0444\u0435\u043A\u0442\u044B, \u0447\u0442\u043E \u043E\u043D\u0438 \u0434\u0430\u044E\u0442.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0432\u0434\u043E\u0431\u0430\u0432\u043E\u043A \u043A \u043A\u0440\u043E\u0432\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u043E\u0433\u043B\u043E\u0449\u0430\u0442\u044C \u043E\u0440\u0433\u0430\u043D\u044B \u0432 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0442\u0440\u043E\u0444\u0435\u0435\u0432 \u0434\u043B\u044F \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043D\u0438\u044F \u0432\u0430\u0448\u0438\u0445 \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E\u0441\u0442\u0435\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0435\u0434\u0435\u043B \u043F\u0440\u0435\u043F\u0430\u0440\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0439",16),(0,e.createTextVNode)(": \u0437\u0430 \u0440\u0430\u0437 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043F\u043E\u0433\u043B\u043E\u0442\u0438\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u043E\u0440\u0433\u0430\u043D. \u041F\u0440\u0435\u0434\u0435\u043B \u0431\u0443\u0434\u0435\u0442 \u0443\u0432\u0435\u043B\u0438\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043F\u0440\u0438 \u0434\u043E\u0441\u0442\u0438\u0436\u0435\u043D\u0438\u0438"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(" "),(0,e.createTextVNode)("\u0438 \u043F\u043E\u043B\u043D\u043E\u0439 \u0441\u0438\u043B\u044B \u0441 \u043C\u0430\u043A\u0441\u0438\u043C\u0443\u043C\u043E\u043C \u0432 \u0442\u0440\u0438 \u043E\u0440\u0433\u0430\u043D\u0430.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0417\u0430\u0440\u0430\u0436\u0435\u043D\u043D\u044B\u0439 \u0442\u0440\u043E\u0444\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("150 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0433\u043B\u0443\u0448\u0430\u0442\u044C \u043F\u0440\u043E\u0442\u0438\u0432\u043D\u0438\u043A\u043E\u0432 \u0441 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0434\u0438\u0441\u0442\u0430\u043D\u0446\u0438\u0438, \u0437\u0430\u0440\u0430\u0436\u0430\u044F \u0438\u0445 \u043C\u043E\u0433\u0438\u043B\u044C\u043D\u043E\u0439 \u043B\u0438\u0445\u043E\u0440\u0430\u0434\u043A\u043E\u0439.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0420\u044B\u0432\u043E\u043A",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0431\u044B\u0441\u0442\u0440\u043E \u0441\u043E\u043A\u0440\u0430\u0442\u0438\u0442\u044C \u0440\u0430\u0441\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0432\u0430\u043C\u0438 \u0438 \u0446\u0435\u043B\u044C\u044E \u0438\u043B\u0438 \u0441\u0431\u0435\u0436\u0430\u0442\u044C \u0438\u0437 \u043E\u043F\u0430\u0441\u043D\u043E\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043C\u0435\u0442\u0438\u0442\u044C \u0434\u043E\u0431\u044B\u0447\u0443",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("250 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0442\u043C\u0435\u0442\u0438\u0442\u044C \u0436\u0435\u0440\u0442\u0432\u0443, \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u0432 \u0435\u0435 \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0432 \u0435\u0435 \u043F\u0443\u0442\u0430\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0433\u0430\u0445.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u041B\u0435\u0442\u0443\u0447\u0438\u0435 \u043C\u044B\u0448\u0438",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("400 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0441\u043C\u0435\u0440\u0442\u043E\u043D\u043E\u0441\u043D\u044B\u043C\u0438 \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u043C\u0438 \u043B\u0435\u0442\u0443\u0447\u0438\u043C\u0438 \u043C\u044B\u0448\u0430\u043C\u0438.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u0410\u043D\u0430\u0431\u0438\u043E\u0437",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u0434\u0440\u0435\u0432\u043D\u044F\u044F \u0442\u0435\u0445\u043D\u0438\u043A\u0430, \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u044E\u0449\u0430\u044F \u0432\u0430\u043C \u0437\u0430\u043B\u0435\u0447\u0438\u0442\u044C \u043F\u043E\u0447\u0442\u0438 \u043B\u044E\u0431\u044B\u0435 \u0440\u0430\u043D\u0435\u043D\u0438\u044F \u0437\u0430 \u0441\u0447\u0435\u0442 \u0441\u043D\u0430 \u0432 \u0433\u0440\u043E\u0431\u0443.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u0440\u0438\u0437\u044B\u0432 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439",16),(0,e.createTextVNode)(": \u041E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442\u0441\u044F \u043E\u0442"),(0,e.createTextVNode)(" "),(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("600 "),(0,e.createVNode)(1,"font",null,"\u043A\u0440\u043E\u0432\u0438",16,{color:"red"})],4),(0,e.createTextVNode)(", \u043F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043F\u0440\u0438\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u0441\u043C\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043B\u0435\u0442\u0443\u0447\u0438\u0445 \u043C\u044B\u0448\u0435\u0439 \u0434\u043B\u044F \u043F\u043E\u043C\u043E\u0449\u0438 \u0432 \u0431\u043E\u044E.")],0),(0,e.createVNode)(1,"p",null,[(0,e.createVNode)(1,"b",null,"\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0438\u043B\u0430",16),(0,e.createComponentVNode)(2,t.Divider),(0,e.createVNode)(1,"b",null,"\u041C\u0435\u0442\u0430\u043C\u043E\u0440\u0444\u043E\u0437\u0430 - \u0413\u043E\u043D\u0447\u0430\u044F",16),(0,e.createTextVNode)(": \u041F\u043E\u0437\u0432\u043E\u043B\u044F\u0435\u0442 \u0432\u0430\u043C \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u0441\u043E\u0432\u0435\u0440\u0448\u0435\u043D\u043D\u0443\u044E \u0444\u043E\u0440\u043C\u0443 \u0431\u043B\u044E\u0441\u043F\u0435\u0439\u0441 \u0441\u0443\u0449\u043D\u043E\u0441\u0442\u0438, \u0437\u0430\u0432\u043B\u0430\u0434\u0435\u0432\u0448\u0435\u0439 \u0432\u0430\u0448\u0435\u0439 \u0434\u0443\u0448\u043E\u0439.")],4),(0,e.createComponentVNode)(2,t.Button,{content:"\u0411\u0435\u0441\u0442\u0438\u044F",onClick:function(){function h(){return d("bestia")}return h}()})]})}return c}()},45770:function(I,r,n){"use strict";r.__esModule=!0,r.VampireTrophiesStatus=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=function(V){return(Math.round(V*10)/10).toFixed(1)},k=r.VampireTrophiesStatus=function(){function h(V,v){return(0,e.createComponentVNode)(2,o.Window,{theme:"ntos_spooky",width:700,height:800,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,y),(0,e.createComponentVNode)(2,S),(0,e.createComponentVNode)(2,b),(0,e.createComponentVNode)(2,C),(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,u),(0,e.createComponentVNode)(2,f),(0,e.createComponentVNode)(2,l),(0,e.createComponentVNode)(2,d),(0,e.createComponentVNode)(2,m),(0,e.createComponentVNode)(2,i)]})})})}return h}(),y=function(V,v){var s=(0,a.useBackend)(v),g=s.act,N=s.data,x=N.hearts,B=N.lungs,L=N.livers,T=N.kidneys,A=N.eyes,E=N.ears,w=N.trophies_max_gen,O=N.trophies_max_crit,M=N.organs_icon,P=N.icon_hearts,F=N.icon_lungs,R=N.icon_livers,U=N.icon_kidneys,j=N.icon_eyes,W=N.icon_ears;return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{title:"\u0422\u0440\u043E\u0444\u0435\u0438",color:"red",textAlign:"center",verticalAlign:"middle",children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,width:"16.6%",children:[(0,e.createComponentVNode)(2,t.DmIcon,{icon:M,icon_state:P,verticalAlign:"middle",style:{"margin-left":"-32px","margin-right":"-48px","margin-top":"-32px","margin-bottom":"-48px",height:"128px",width:"128px","-ms-interpolation-mode":"nearest-neighbor","image-rendering":"pixelated"}}),(0,e.createComponentVNode)(2,t.Box,{bold:!0,textColor:xv;return(0,e.createComponentVNode)(2,o.Table.Row,{children:[(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:(0,e.createComponentVNode)(2,o.DmIcon,{verticalAlign:"middle",icon:m,icon_state:i,fallback:(0,e.createComponentVNode)(2,o.Icon,{p:.66,name:"spinner",size:2,spin:!0})})}),(0,e.createComponentVNode)(2,o.Table.Cell,{bold:!0,children:l.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Box,{color:d<=0&&"bad"||d<=l.max_amount/2&&"average"||"good",children:[d," in stock"]})}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,textAlign:"center",children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,disabled:T,icon:L,content:B,textAlign:"left",onClick:function(){function A(){return u("vend",{inum:l.inum})}return A}()})})]})},y=r.Vending=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=f.user,d=f.guestNotice,m=f.userMoney,i=f.chargesMoney,h=f.product_records,V=h===void 0?[]:h,v=f.coin_records,s=v===void 0?[]:v,g=f.hidden_records,N=g===void 0?[]:g,x=f.stock,B=f.vend_ready,L=f.coin_name,T=f.inserted_item_name,A=f.panel_open,E=f.speaker,w=f.imagelist,O;return O=[].concat(V,s),f.extended_inventory&&(O=[].concat(O,N)),O=O.filter(function(M){return!!M}),(0,e.createComponentVNode)(2,p.Window,{width:470,height:100+Math.min(V.length*38,500),title:"\u0422\u043E\u0440\u0433\u043E\u0432\u044B\u0439 \u0430\u0432\u0442\u043E\u043C\u0430\u0442",children:(0,e.createComponentVNode)(2,p.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[!!i&&(0,e.createComponentVNode)(2,o.Section,{title:"User",children:l&&(0,e.createComponentVNode)(2,o.Box,{children:["Welcome, ",(0,e.createVNode)(1,"b",null,l.name,0),","," ",(0,e.createVNode)(1,"b",null,l.job||"Unemployed",0),"!",(0,e.createVNode)(1,"br"),"Your balance is ",(0,e.createVNode)(1,"b",null,[m,(0,e.createTextVNode)(" credits")],0),"."]})||(0,e.createComponentVNode)(2,o.Box,{color:"light-grey",children:d})}),!!L&&(0,e.createComponentVNode)(2,o.Section,{title:"Coin",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Remove Coin",onClick:function(){function M(){return u("remove_coin",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:L})}),!!T&&(0,e.createComponentVNode)(2,o.Section,{title:"Item",buttons:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject Item",onClick:function(){function M(){return u("eject_item",{})}return M}()}),children:(0,e.createComponentVNode)(2,o.Box,{children:T})}),!!A&&(0,e.createComponentVNode)(2,o.Section,{title:"Maintenance",children:(0,e.createComponentVNode)(2,o.Button,{icon:E?"check":"volume-mute",selected:E,content:"Speaker",textAlign:"left",onClick:function(){function M(){return u("toggle_voice",{})}return M}()})})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{title:"Products",fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,o.Table,{children:O.map(function(M){return(0,e.createComponentVNode)(2,k,{product:M,productStock:x[M.name],productIcon:M.icon,productIconState:M.icon_state},M.name)})})})})]})})})}return S}()},87710:function(I,r,n){"use strict";r.__esModule=!0,r.VethPlayerPanel=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=n(98595),k=n(25328),y=r.VethPlayerPanel=function(){function S(b,C){var c=(0,t.useBackend)(C),u=c.act,f=c.data,l=(0,a.sortBy)(function(N){return N.name})(f.Data||[]),d=(0,t.useLocalState)(C,"searchText",""),m=d[0],i=d[1],h=(0,t.useLocalState)(C,"selectedPlayerCkey",""),V=h[0],v=h[1],s=(0,k.createSearch)(m,function(N){var x,B,L;return((x=N.name)==null?void 0:x.toLowerCase())+"|"+((B=N.job)==null?void 0:B.toLowerCase())+"|"+((L=N.ckey)==null?void 0:L.toLowerCase())}),g=function(){function N(x,B){B!=null&&B.ckey&&v(B.ckey),u(x,Object.assign({},B,{selectedPlayerCkey:(B==null?void 0:B.ckey)||V}))}return N}();return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,p.Window,{title:"Player Panel Veth",width:1100,height:640,children:(0,e.createComponentVNode)(2,p.Window.Content,{children:[(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"refresh",content:"Refresh",onClick:function(){function N(){return g("refresh")}return N}()})}),(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.Grid,{children:[(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Game Panel",onClick:function(){function N(){return g("gamePanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Fax Panel",onClick:function(){function N(){return g("faxPanel")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Check Antags",onClick:function(){function N(){return g("checkAntags")}return N}()})]}),(0,e.createComponentVNode)(2,o.Grid.Column,{children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Create Command Report",onClick:function(){function N(){return g("createCommandReport")}return N}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,content:"Toggle Adv Admin Interact",onClick:function(){function N(){return g("adminaiinteract")}return N}()})]})]})}),(0,e.createComponentVNode)(2,o.Section,{title:"Search Players",children:(0,e.createComponentVNode)(2,o.TextArea,{autoFocus:!0,placeholder:"Search by name, job, or ckey",value:m,onInput:function(){function N(x,B){return i(B)}return N}(),rows:1,height:"2rem"})}),(0,e.createComponentVNode)(2,o.Section,{title:"Players",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:"Ckey"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Char Name"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Job"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Antagonist"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Last IP"}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:"Actions"})]}),l.filter(s).map(function(N){return(0,e.createComponentVNode)(2,o.Table.Row,{className:"candystripe",children:[(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.ckey}),(0,e.createComponentVNode)(2,o.Table.Cell,{collapsing:!0,children:N.name}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.job}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.is_antagonist?(0,e.createComponentVNode)(2,o.Box,{color:"red",children:"Yes"}):(0,e.createComponentVNode)(2,o.Box,{color:"green",children:"No"})}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:N.last_ip}),(0,e.createComponentVNode)(2,o.Table.Cell,{children:[(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("sendPrivateMessage",{ckey:N.ckey})}return x}(),content:"PM"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("follow",{ckey:N.ckey})}return x}(),content:"Follow"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("smite",{ckey:N.ckey})}return x}(),content:"Smite"}),(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function x(){return g("openAdditionalPanel",{ckey:N.ckey})}return x}(),content:"PP",icon:"external-link"}),(0,e.createComponentVNode)(2,o.Button,{icon:"book",content:"Logs",onClick:function(){function x(){return u("logs",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"clipboard",content:"Notes",onClick:function(){function x(){return u("notes",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"VV",onClick:function(){function x(){return u("vv",{selectedPlayerCkey:N.ckey})}return x}()}),(0,e.createComponentVNode)(2,o.Button,{content:"TP",onClick:function(){function x(){return u("tp",{selectedPlayerCkey:N.ckey})}return x}()})]})]},N.ckey)})]})})]})})})}return S}()},68971:function(I,r,n){"use strict";r.__esModule=!0,r.VolumeMixer=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VolumeMixer=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.channels;return(0,e.createComponentVNode)(2,o.Window,{width:350,height:Math.min(95+u.length*50,565),children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:u.map(function(f,l){return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.25rem",color:"label",mt:l>0&&"0.5rem",children:f.name}),(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{mr:.5,children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u044B\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:0})}return d}()})})}),(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mx:"0.5rem",children:(0,e.createComponentVNode)(2,t.Slider,{minValue:0,maxValue:100,stepPixelSize:3.13,value:f.volume,onChange:function(){function d(m,i){return C("volume",{channel:f.num,volume:i})}return d}()})}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Button,{width:"24px",color:"transparent",children:(0,e.createComponentVNode)(2,t.Icon,{name:"\u0432\u043A\u043B. \u0437\u0432\u0443\u043A",size:"1.5",mt:"0.1rem",onClick:function(){function d(){return C("volume",{channel:f.num,volume:100})}return d}()})})})]})})],4,f.num)})})})})}return k}()},2510:function(I,r,n){"use strict";r.__esModule=!0,r.VotePanel=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.VotePanel=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.remaining,f=c.question,l=c.choices,d=c.user_vote,m=c.counts,i=c.show_counts,h=c.show_cancel;return(0,e.createComponentVNode)(2,o.Window,{width:400,height:500,children:(0,e.createComponentVNode)(2,o.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{title:f,children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:["Time remaining: ",Math.round(u/10),"s"]}),l.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:V+(i?" ("+(m[V]||0)+")":""),onClick:function(){function v(){return C("vote",{target:V})}return v}(),selected:V===d})},V)}),!!h&&(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:"Cancel",onClick:function(){function V(){return C("cancel")}return V}()})},"Cancel")]})})})}return k}()},30138:function(I,r,n){"use strict";r.__esModule=!0,r.Wires=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(98595),p=r.Wires=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.wires||[],f=c.status||[],l=56+u.length*23+(status?0:15+f.length*17);return(0,e.createComponentVNode)(2,o.Window,{width:350,height:l,children:(0,e.createComponentVNode)(2,o.Window.Content,{children:(0,e.createComponentVNode)(2,t.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,t.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,t.LabeledList,{children:u.map(function(d){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{className:"candystripe",label:d.color_name,labelColor:d.seen_color,color:d.seen_color,buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Button,{content:d.cut?"Mend":"Cut",onClick:function(){function m(){return C("cut",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Pulse",onClick:function(){function m(){return C("pulse",{wire:d.color})}return m}()}),(0,e.createComponentVNode)(2,t.Button,{content:d.attached?"Detach":"Attach",onClick:function(){function m(){return C("attach",{wire:d.color})}return m}()})],4),children:!!d.wire&&(0,e.createVNode)(1,"i",null,[(0,e.createTextVNode)("("),d.wire,(0,e.createTextVNode)(")")],0)},d.seen_color)})})})}),!!f.length&&(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Section,{children:f.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{color:"lightgray",children:d},d)})})})]})})})}return k}()},30995:function(I,r,n){"use strict";r.__esModule=!0,r.Workshop=void 0;var e=n(89005),a=n(25328),t=n(72253),o=n(36036),p=n(73379),k=n(98595),y=["title","items"];function S(l,d){if(l==null)return{};var m={};for(var i in l)if({}.hasOwnProperty.call(l,i)){if(d.includes(i))continue;m[i]=l[i]}return m}var b=function(d,m,i){return d.requirements===null?!0:!(d.requirements.brass>m||d.requirements.power>i)},C=r.Workshop=function(){function l(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.brass_amount,s=V.power_amount,g=V.building,N=V.buildStart,x=V.buildEnd,B=V.worldTime,L=v.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),T=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),A={float:"left",width:"60%"},E={float:"right",width:"39%"};return(0,e.createComponentVNode)(2,k.Window,{width:400,height:500,theme:"clockwork",children:(0,e.createComponentVNode)(2,k.Window.Content,{children:(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:[(0,e.createComponentVNode)(2,c),(0,e.createComponentVNode)(2,o.Section,{title:"Materials",children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Brass",children:[L,(0,e.createComponentVNode)(2,o.Button,{icon:"arrow-down",height:"19px",tooltip:"Dispense Brass",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function w(){return h("dispense")}return w}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Power",children:T})]}),g&&(0,e.createComponentVNode)(2,o.ProgressBar.Countdown,{mt:2,start:N,current:B,end:x,bold:!0,children:["Building ",g,"\xA0(",(0,e.createComponentVNode)(2,p.Countdown,{current:B,timeLeft:x-B,format:function(){function w(O,M){return M.substr(3)}return w}()}),")"]})]})]}),(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,children:(0,e.createComponentVNode)(2,u)})})]})})})}return l}(),c=function(d,m){var i=(0,t.useLocalState)(m,"search",""),h=i[0],V=i[1],v=(0,t.useLocalState)(m,"sort",""),s=v[0],g=v[1],N=(0,t.useLocalState)(m,"descending",!1),x=N[0],B=N[1];return(0,e.createComponentVNode)(2,o.Box,{mb:"0.5rem",children:(0,e.createComponentVNode)(2,o.Stack,{width:"100%",children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",mr:"0.5rem",children:(0,e.createComponentVNode)(2,o.Input,{placeholder:"Search by item name..",width:"100%",onInput:function(){function L(T,A){return V(A)}return L}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Button,{icon:x?"arrow-down":"arrow-up",height:"19px",tooltip:x?"Descending order":"Ascending order",tooltipPosition:"bottom-start",ml:"0.5rem",onClick:function(){function L(){return B(!x)}return L}()})})]})})},u=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=V.items,s=(0,t.useLocalState)(m,"search",""),g=s[0],N=s[1],x=(0,t.useLocalState)(m,"sort","Alphabetical"),B=x[0],L=x[1],T=(0,t.useLocalState)(m,"descending",!1),A=T[0],E=T[1],w=(0,a.createSearch)(g,function(P){return P[0]}),O=!1,M=Object.entries(v).map(function(P,F){var R=Object.entries(P[1]).filter(w).map(function(U){return U[1].affordable=b(U[1],V.brass_amount,V.power_amount),U[1]});if(R.length!==0)return A&&(R=R.reverse()),O=!0,(0,e.createComponentVNode)(2,f,{title:P[0],items:R},P[0])});return(0,e.createComponentVNode)(2,o.Stack.Item,{grow:"1",children:(0,e.createComponentVNode)(2,o.Section,{children:O?M:(0,e.createComponentVNode)(2,o.Box,{color:"label",children:"No items matching your criteria was found!"})})})},f=function(d,m){var i=(0,t.useBackend)(m),h=i.act,V=i.data,v=d.title,s=d.items,g=S(d,y);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,o.Collapsible,Object.assign({open:!0,title:v},g,{children:s.map(function(N){return(0,e.createComponentVNode)(2,o.Box,{children:[(0,e.createComponentVNode)(2,o.DmIcon,{icon:N.icon,icon_state:N.icon_state,style:{"vertical-align":"middle",width:"32px",margin:"0px","margin-left":"0px"}}),(0,e.createComponentVNode)(2,o.Button,{icon:"hammer",disabled:!b(N,V.brass_amount,V.power_amount),onClick:function(){function x(){return h("make",{cat:v,name:N.name})}return x}(),children:(0,a.toTitleCase)((0,a.toTitleCase)(N.name))}),(0,e.createComponentVNode)(2,o.Box,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"right"},children:N.requirements&&Object.keys(N.requirements).map(function(x){return(0,a.toTitleCase)(x)+": "+N.requirements[x]}).join(", ")||(0,e.createComponentVNode)(2,o.Box,{children:"No resources required."})}),(0,e.createComponentVNode)(2,o.Box,{style:{clear:"both"}})]},N.name)})})))}},49148:function(I,r,n){"use strict";r.__esModule=!0,r.AccessList=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036);function p(C,c){var u=typeof Symbol!="undefined"&&C[Symbol.iterator]||C["@@iterator"];if(u)return(u=u.call(C)).next.bind(u);if(Array.isArray(C)||(u=k(C))||c&&C&&typeof C.length=="number"){u&&(C=u);var f=0;return function(){return f>=C.length?{done:!0}:{done:!1,value:C[f++]}}}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 k(C,c){if(C){if(typeof C=="string")return y(C,c);var u={}.toString.call(C).slice(8,-1);return u==="Object"&&C.constructor&&(u=C.constructor.name),u==="Map"||u==="Set"?Array.from(C):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?y(C,c):void 0}}function y(C,c){(c==null||c>C.length)&&(c=C.length);for(var u=0,f=Array(c);u0&&!N.includes(R.ref)&&!s.includes(R.ref),checked:s.includes(R.ref),onClick:function(){function U(){return x(R.ref)}return U}()},R.desc)})]})]})})}return C}()},26991:function(I,r,n){"use strict";r.__esModule=!0,r.AtmosScan=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=function(S,b,C,c,u){return Sc?"average":S>u?"bad":"good"},k=r.AtmosScan=function(){function y(S,b){var C=S.data.aircontents;return(0,e.createComponentVNode)(2,o.Box,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,a.filter)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(C).map(function(c){return(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:c.entry,color:p(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,c.units]},c.entry)})})})}return y}()},85870:function(I,r,n){"use strict";r.__esModule=!0,r.BeakerContents=void 0;var e=n(89005),a=n(36036),t=n(15964),o=function(y){return y+" \u0435\u0434\u0438\u043D\u0438\u0446"+(y%10===1&&y%100!==11?"\u0430":"")+(y%10>1&&y%10<5&&!(y%100>11)&&!(y%100<15)?"\u044B":"")},p=r.BeakerContents=function(){function k(y){var S=y.beakerLoaded,b=y.beakerContents,C=b===void 0?[]:b,c=y.buttons;return(0,e.createComponentVNode)(2,a.Stack,{vertical:!0,children:[!S&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442."})||C.length===0&&(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",children:"\u0401\u043C\u043A\u043E\u0441\u0442\u044C \u043F\u0443\u0441\u0442\u0430."}),C.map(function(u,f){return(0,e.createComponentVNode)(2,a.Stack,{children:[(0,e.createComponentVNode)(2,a.Stack.Item,{color:"label",grow:!0,children:[o(u.volume)," ",u.name]},u.name),!!c&&(0,e.createComponentVNode)(2,a.Stack.Item,{children:c(u,f)})]},u.name)})]})}return k}();p.propTypes={beakerLoaded:t.bool,beakerContents:t.array,buttons:t.arrayOf(t.element)}},3939:function(I,r,n){"use strict";r.__esModule=!0,r.modalRegisterBodyOverride=r.modalOpen=r.modalClose=r.modalAnswer=r.ComplexModal=void 0;var e=n(89005),a=n(72253),t=n(36036),o={},p=r.modalOpen=function(){function C(c,u,f){var l=(0,a.useBackend)(c),d=l.act,m=l.data,i=Object.assign(m.modal?m.modal.args:{},f||{});d("modal_open",{id:u,arguments:JSON.stringify(i)})}return C}(),k=r.modalRegisterBodyOverride=function(){function C(c,u){o[c]=u}return C}(),y=r.modalAnswer=function(){function C(c,u,f,l){var d=(0,a.useBackend)(c),m=d.act,i=d.data;if(i.modal){var h=Object.assign(i.modal.args||{},l||{});m("modal_answer",{id:u,answer:f,arguments:JSON.stringify(h)})}}return C}(),S=r.modalClose=function(){function C(c,u){var f=(0,a.useBackend)(c),l=f.act;l("modal_close",{id:u})}return C}(),b=r.ComplexModal=function(){function C(c,u){var f=(0,a.useBackend)(u),l=f.data;if(l.modal){var d=l.modal,m=d.id,i=d.text,h=d.type,V,v=(0,e.createComponentVNode)(2,t.Button,{className:"Button--modal",icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",onClick:function(){function L(){return S(u)}return L}()}),s,g,N="auto";if(o[m])s=o[m](l.modal,u);else if(h==="input"){var x=l.modal.value;V=function(){function L(T){return y(u,m,x)}return L}(),s=(0,e.createComponentVNode)(2,t.Input,{value:l.modal.value,placeholder:"ENTER \u0434\u043B\u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F",width:"100%",my:"0.5rem",autofocus:!0,onChange:function(){function L(T,A){x=A}return L}()}),g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"arrow-left",content:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",color:"grey",onClick:function(){function L(){return S(u)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,x)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})}else if(h==="choice"){var B=typeof l.modal.choices=="object"?Object.values(l.modal.choices):l.modal.choices;s=(0,e.createComponentVNode)(2,t.Dropdown,{options:B,selected:l.modal.value,width:"100%",my:"0.5rem",onSelected:function(){function L(T){return y(u,m,T)}return L}()}),N="initial"}else h==="bento"?s=(0,e.createComponentVNode)(2,t.Stack,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:l.modal.choices.map(function(L,T){return(0,e.createComponentVNode)(2,t.Stack.Item,{flex:"1 1 auto",children:(0,e.createComponentVNode)(2,t.Button,{selected:T+1===parseInt(l.modal.value,10),onClick:function(){function A(){return y(u,m,T+1)}return A}(),children:(0,e.createVNode)(1,"img",null,null,1,{src:L})})},T)})}):h==="boolean"&&(g=(0,e.createComponentVNode)(2,t.Box,{mt:"0.5rem",children:[(0,e.createComponentVNode)(2,t.Button,{icon:"times",content:l.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){function L(){return y(u,m,0)}return L}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"check",content:l.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){function L(){return y(u,m,1)}return L}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]}));return(0,e.createComponentVNode)(2,t.Modal,{maxWidth:c.maxWidth||window.innerWidth/2+"px",maxHeight:c.maxHeight||window.innerHeight/2+"px",onEnter:V,mx:"auto",overflowY:N,"padding-bottom":"5px",children:[i&&(0,e.createComponentVNode)(2,t.Box,{inline:!0,children:i}),o[m]&&v,s,g]})}}return C}()},41874:function(I,r,n){"use strict";r.__esModule=!0,r.CrewManifest=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25328),p=n(76910),k=p.COLORS.department,y=["Captain","Head of Security","Chief Engineer","Chief Medical Officer","Research Director","Head of Personnel","Quartermaster"],S=function(f){return y.indexOf(f)!==-1?"green":"orange"},b=function(f){if(y.indexOf(f)!==-1)return!0},C=function(f){return f.length>0&&(0,e.createComponentVNode)(2,t.Table,{children:[(0,e.createComponentVNode)(2,t.Table.Row,{header:!0,color:"white",children:[(0,e.createComponentVNode)(2,t.Table.Cell,{width:"50%",children:"Name"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"35%",children:"Rank"}),(0,e.createComponentVNode)(2,t.Table.Cell,{width:"15%",children:"Active"})]}),f.map(function(l){return(0,e.createComponentVNode)(2,t.Table.Row,{color:S(l.real_rank),bold:b(l.real_rank),children:[(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.name)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:(0,o.decodeHtmlEntities)(l.rank)}),(0,e.createComponentVNode)(2,t.Table.Cell,{children:l.active})]},l.name+l.rank)})]})},c=r.CrewManifest=function(){function u(f,l){var d=(0,a.useBackend)(l),m=d.act,i;if(f.data)i=f.data;else{var h=(0,a.useBackend)(l),V=h.data;i=V}var v=i,s=v.manifest,g=s.heads,N=s.pro,x=s.sec,B=s.eng,L=s.med,T=s.sci,A=s.ser,E=s.sup,w=s.misc;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.command,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Command"})}),level:2,children:C(g)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.procedure,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Procedure"})}),level:2,children:C(N)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.security,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Security"})}),level:2,children:C(x)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.engineering,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Engineering"})}),level:2,children:C(B)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.medical,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Medical"})}),level:2,children:C(L)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.science,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Science"})}),level:2,children:C(T)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.service,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Service"})}),level:2,children:C(A)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{backgroundColor:k.supply,m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Supply"})}),level:2,children:C(E)}),(0,e.createComponentVNode)(2,t.Section,{title:(0,e.createComponentVNode)(2,t.Box,{m:-1,pt:1,pb:1,children:(0,e.createComponentVNode)(2,t.Box,{ml:1,textAlign:"center",fontSize:1.4,children:"Misc"})}),level:2,children:C(w)})]})}return u}()},19203:function(I,r,n){"use strict";r.__esModule=!0,r.InputButtons=void 0;var e=n(89005),a=n(36036),t=n(72253),o=r.InputButtons=function(){function p(k,y){var S=(0,t.useBackend)(y),b=S.act,C=S.data,c=C.large_buttons,u=C.swapped_buttons,f=k.input,l=k.message,d=k.disabled,m=(0,e.createComponentVNode)(2,a.Button,{color:"good",content:"\u041F\u0440\u0438\u043D\u044F\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("submit",{entry:f})}return h}(),textAlign:"center",tooltip:c&&l,disabled:d,width:!c&&6}),i=(0,e.createComponentVNode)(2,a.Button,{color:"bad",content:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",bold:!!c,fluid:!!c,onClick:function(){function h(){return b("cancel")}return h}(),textAlign:"center",width:!c&&6});return(0,e.createComponentVNode)(2,a.Flex,{fill:!0,align:"center",direction:u?"row-reverse":"row",justify:"space-around",children:[c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,ml:u?.5:0,mr:u?0:.5,children:i}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:i}),!c&&l&&(0,e.createComponentVNode)(2,a.Flex.Item,{children:(0,e.createComponentVNode)(2,a.Box,{color:"label",textAlign:"center",children:l})}),c?(0,e.createComponentVNode)(2,a.Flex.Item,{grow:!0,mr:u?.5:0,ml:u?0:.5,children:m}):(0,e.createComponentVNode)(2,a.Flex.Item,{children:m})]})}return p}()},195:function(I,r,n){"use strict";r.__esModule=!0,r.InterfaceLockNoticeBox=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.InterfaceLockNoticeBox=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=k.siliconUser,u=c===void 0?C.siliconUser:c,f=k.locked,l=f===void 0?C.locked:f,d=k.normallyLocked,m=d===void 0?C.normallyLocked:d,i=k.onLockStatusChange,h=i===void 0?function(){return b("lock")}:i,V=k.accessText,v=V===void 0?"ID-\u043A\u0430\u0440\u0442\u043E\u0439":V;return u?(0,e.createComponentVNode)(2,t.NoticeBox,{color:u&&"grey",children:(0,e.createComponentVNode)(2,t.Flex,{align:"center",children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:"\u0411\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430:"}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:"1"}),(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Button,{m:"0",color:m?"red":"green",icon:m?"lock":"unlock",content:m?"\u0417\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E":"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043E",onClick:function(){function s(){h&&h(!l)}return s}()})})]})}):(0,e.createComponentVNode)(2,t.NoticeBox,{children:["\u041F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 ",v,", \u0447\u0442\u043E\u0431\u044B"," ",l?"\u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C":"\u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C"," \u044D\u0442\u043E\u0442 \u0438\u043D\u0442\u0435\u0440\u0444\u0435\u0439\u0441."]})}return p}()},51057:function(I,r,n){"use strict";r.__esModule=!0,r.Loader=void 0;var e=n(89005),a=n(44879),t=n(36036),o=r.Loader=function(){function p(k){var y=k.value;return(0,e.createVNode)(1,"div","AlertModal__Loader",(0,e.createComponentVNode)(2,t.Box,{className:"AlertModal__LoaderProgress",style:{width:(0,a.clamp01)(y)*100+"%"}}),2)}return p}()},321:function(I,r,n){"use strict";r.__esModule=!0,r.LoginInfo=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginInfo=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState;if(C)return(0,e.createComponentVNode)(2,t.NoticeBox,{info:!0,children:(0,e.createComponentVNode)(2,t.Stack,{children:[(0,e.createComponentVNode)(2,t.Stack.Item,{grow:!0,mt:.5,children:["\u0412\u044B\u043F\u043E\u043B\u043D\u0435\u043D \u0432\u0445\u043E\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0443 \u043A\u0430\u043A: ",c.name," (",c.rank,")"]}),(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{icon:"sign-out-alt",content:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043C\u044B",color:"good",onClick:function(){function u(){return b("login_logout")}return u}()}),(0,e.createComponentVNode)(2,t.Button,{icon:"eject",disabled:!c.id,content:"\u0418\u0437\u0432\u043B\u0435\u0447\u044C ID",color:"good",onClick:function(){function u(){return b("login_eject")}return u}()})]})]})})}return p}()},5485:function(I,r,n){"use strict";r.__esModule=!0,r.LoginScreen=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.LoginScreen=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.loginState,u=C.isAI,f=C.isRobot,l=C.isAdmin;return(0,e.createComponentVNode)(2,t.Section,{title:"\u0414\u043E\u0431\u0440\u043E \u043F\u043E\u0436\u0430\u043B\u043E\u0432\u0430\u0442\u044C",fill:!0,stretchContents:!0,children:(0,e.createComponentVNode)(2,t.Flex,{height:"100%",align:"center",justify:"center",children:(0,e.createComponentVNode)(2,t.Flex.Item,{textAlign:"center",mt:"-2rem",children:[(0,e.createComponentVNode)(2,t.Box,{fontSize:"1.5rem",bold:!0,children:[(0,e.createComponentVNode)(2,t.Icon,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"\u0413\u043E\u0441\u0442\u044C"]}),(0,e.createComponentVNode)(2,t.Box,{color:"label",my:"1rem",children:["ID:",(0,e.createComponentVNode)(2,t.Button,{icon:"id-card",content:c.id?c.id:"----------",ml:"0.5rem",onClick:function(){function d(){return b("login_insert")}return d}()})]}),(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",disabled:!c.id,content:"\u0412\u043E\u0439\u0442\u0438",onClick:function(){function d(){return b("login_login",{login_type:1})}return d}()}),!!u&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0418\u0418",onClick:function(){function d(){return b("login_login",{login_type:2})}return d}()}),!!f&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u043A\u0438\u0431\u043E\u0440\u0433",onClick:function(){function d(){return b("login_login",{login_type:3})}return d}()}),!!l&&(0,e.createComponentVNode)(2,t.Button,{icon:"sign-in-alt",content:"\u0412\u043E\u0439\u0442\u0438 \u043A\u0430\u043A \u0426\u0435\u043D\u0442\u041A\u043E\u043C",onClick:function(){function d(){return b("login_login",{login_type:4})}return d}()})]})})})}return p}()},62411:function(I,r,n){"use strict";r.__esModule=!0,r.Operating=void 0;var e=n(89005),a=n(36036),t=n(15964),o=r.Operating=function(){function p(k){var y=k.operating,S=k.name;if(y)return(0,e.createComponentVNode)(2,a.Dimmer,{children:(0,e.createComponentVNode)(2,a.Flex,{mb:"30px",children:(0,e.createComponentVNode)(2,a.Flex.Item,{bold:!0,color:"silver",textAlign:"center",children:[(0,e.createComponentVNode)(2,a.Icon,{name:"spinner",spin:!0,size:4,mb:"15px"}),(0,e.createVNode)(1,"br"),"The ",S," is processing..."]})})})}return p}();o.propTypes={operating:t.bool,name:t.string}},13545:function(I,r,n){"use strict";r.__esModule=!0,r.Signaler=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.Signaler=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=y.data,u=c.code,f=c.frequency,l=c.minFrequency,d=c.maxFrequency;return(0,e.createComponentVNode)(2,o.Section,{children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:l/10,maxValue:d/10,value:f/10,format:function(){function m(i){return(0,a.toFixed)(i,1)}return m}(),width:"80px",onDrag:function(){function m(i,h){return C("freq",{freq:h})}return m}()})}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Code",children:(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:u,width:"80px",onDrag:function(){function m(i,h){return C("code",{code:h})}return m}()})})]}),(0,e.createComponentVNode)(2,o.Button,{mt:1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){function m(){return C("signal")}return m}()})]})}return k}()},41984:function(I,r,n){"use strict";r.__esModule=!0,r.SimpleRecords=void 0;var e=n(89005),a=n(72253),t=n(25328),o=n(64795),p=n(88510),k=n(36036),y=r.SimpleRecords=function(){function C(c,u){var f=c.data.records;return(0,e.createComponentVNode)(2,k.Box,{children:f?(0,e.createComponentVNode)(2,b,{data:c.data,recordType:c.recordType}):(0,e.createComponentVNode)(2,S,{data:c.data})})}return C}(),S=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.recordsList,m=(0,a.useLocalState)(u,"searchText",""),i=m[0],h=m[1],V=function(g,N){N===void 0&&(N="");var x=(0,t.createSearch)(N,function(B){return B.Name});return(0,o.flow)([(0,p.filter)(function(B){return B==null?void 0:B.Name}),N&&(0,p.filter)(x),(0,p.sortBy)(function(B){return B.Name})])(d)},v=V(d,i);return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Input,{fluid:!0,mb:1,placeholder:"Search records...",onInput:function(){function s(g,N){return h(N)}return s}()}),v.map(function(s){return(0,e.createComponentVNode)(2,k.Box,{children:(0,e.createComponentVNode)(2,k.Button,{mb:.5,content:s.Name,icon:"user",onClick:function(){function g(){return l("Records",{target:s.uid})}return g}()})},s)})]})},b=function(c,u){var f=(0,a.useBackend)(u),l=f.act,d=c.data.records,m=d.general,i=d.medical,h=d.security,V;switch(c.recordType){case"MED":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Medical Data",children:i?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Blood Type",children:i.blood_type}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Disabilities",children:i.mi_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.mi_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Disabilities",children:i.ma_dis}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.ma_dis_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Allergies",children:i.alg}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.alg_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Current Diseases",children:i.cdi}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:i.cdi_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:i.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Medical record lost!"})});break;case"SEC":V=(0,e.createComponentVNode)(2,k.Section,{level:2,title:"Security Data",children:h?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Criminal Status",children:h.criminal}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Minor Crimes",children:h.mi_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.mi_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Major Crimes",children:h.ma_crim}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Details",children:h.ma_crim_d}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Important Notes",preserveWhitespace:!0,children:h.notes})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"Security record lost!"})});break}return(0,e.createComponentVNode)(2,k.Box,{children:[(0,e.createComponentVNode)(2,k.Section,{title:"General Data",children:m?(0,e.createComponentVNode)(2,k.LabeledList,{children:[(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Name",children:m.name}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Sex",children:m.sex}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Species",children:m.species}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Age",children:m.age}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Rank",children:m.rank}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Fingerprint",children:m.fingerprint}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Physical Status",children:m.p_stat}),(0,e.createComponentVNode)(2,k.LabeledList.Item,{label:"Mental Status",children:m.m_stat})]}):(0,e.createComponentVNode)(2,k.Box,{color:"red",bold:!0,children:"General record lost!"})}),V]})}},22091:function(I,r,n){"use strict";r.__esModule=!0,r.TemporaryNotice=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.TemporaryNotice=function(){function p(k,y){var S,b=(0,a.useBackend)(y),C=b.act,c=b.data,u=c.temp;if(u){var f=(S={},S[u.style]=!0,S);return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.NoticeBox,Object.assign({},f,{children:[(0,e.createComponentVNode)(2,t.Box,{display:"inline-block",verticalAlign:"middle",children:u.text}),(0,e.createComponentVNode)(2,t.Button,{icon:"times-circle",float:"right",onClick:function(){function l(){return C("cleartemp")}return l}()}),(0,e.createComponentVNode)(2,t.Box,{clear:"both"})]})))}}return p}()},25443:function(I,r,n){"use strict";r.__esModule=!0,r.KitchenSink=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(20342),p=n(98595),k=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],y=["good","average","bad","black","white"],S=[{title:"Button",component:function(){function s(){return C}return s}()},{title:"Box",component:function(){function s(){return c}return s}()},{title:"ProgressBar",component:function(){function s(){return u}return s}()},{title:"Tabs",component:function(){function s(){return f}return s}()},{title:"Tooltip",component:function(){function s(){return l}return s}()},{title:"Input / Control",component:function(){function s(){return d}return s}()},{title:"Collapsible",component:function(){function s(){return m}return s}()},{title:"BlockQuote",component:function(){function s(){return h}return s}()},{title:"ByondUi",component:function(){function s(){return V}return s}()},{title:"Themes",component:function(){function s(){return v}return s}()}],b=r.KitchenSink=function(){function s(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=(0,a.useLocalState)(N,"pageIndex",0),T=L[0],A=L[1],E=S[T].component();return(0,e.createComponentVNode)(2,p.Window,{theme:B,resizable:!0,children:(0,e.createComponentVNode)(2,p.Window.Content,{scrollable:!0,children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,t.Flex,{children:[(0,e.createComponentVNode)(2,t.Flex.Item,{children:(0,e.createComponentVNode)(2,t.Tabs,{vertical:!0,children:S.map(function(w,O){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{selected:O===T,onClick:function(){function M(){return A(O)}return M}(),children:w.title},O)})})}),(0,e.createComponentVNode)(2,t.Flex.Item,{grow:1,basis:0,children:(0,e.createComponentVNode)(2,E)})]})})})})}return s}(),C=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"Simple"}),(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Selected"}),(0,e.createComponentVNode)(2,t.Button,{altSelected:!0,content:"Alt Selected"}),(0,e.createComponentVNode)(2,t.Button,{disabled:!0,content:"Disabled"}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",content:"Transparent"}),(0,e.createComponentVNode)(2,t.Button,{icon:"cog",content:"Icon"}),(0,e.createComponentVNode)(2,t.Button,{icon:"power-off"}),(0,e.createComponentVNode)(2,t.Button,{fluid:!0,content:"Fluid"}),(0,e.createComponentVNode)(2,t.Button,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.createComponentVNode)(2,t.Box,{mb:1,children:[y.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Button,{color:N,content:N},N)}),(0,e.createVNode)(1,"br"),k.map(function(N){return(0,e.createComponentVNode)(2,t.Box,{inline:!0,mx:"7px",color:N,children:N},N)})]})]})},c=function(g){return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{bold:!0,children:"bold"}),(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"italic"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.5,children:"opacity 0.5"}),(0,e.createComponentVNode)(2,t.Box,{opacity:.25,children:"opacity 0.25"}),(0,e.createComponentVNode)(2,t.Box,{m:2,children:"m: 2"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"left",children:"left"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"center",children:"center"}),(0,e.createComponentVNode)(2,t.Box,{textAlign:"right",children:"right"})]})},u=function(g,N){var x=(0,a.useLocalState)(N,"progress",.5),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.ProgressBar,{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]},minValue:-1,maxValue:1,value:B,children:["Value: ",Number(B).toFixed(1)]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:[(0,e.createComponentVNode)(2,t.Button,{content:"-0.1",onClick:function(){function T(){return L(B-.1)}return T}()}),(0,e.createComponentVNode)(2,t.Button,{content:"+0.1",onClick:function(){function T(){return L(B+.1)}return T}()})]})]})},f=function(g,N){var x=(0,a.useLocalState)(N,"tabIndex",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"tabVert"),A=T[0],E=T[1],w=(0,a.useLocalState)(N,"tabAlt"),O=w[0],M=w[1],P=[1,2,3,4,5];return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{mb:2,children:[(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"vertical",checked:A,onClick:function(){function F(){return E(!A)}return F}()}),(0,e.createComponentVNode)(2,t.Button.Checkbox,{inline:!0,content:"altSelection",checked:O,onClick:function(){function F(){return M(!O)}return F}()})]}),(0,e.createComponentVNode)(2,t.Tabs,{vertical:A,children:P.map(function(F,R){return(0,e.createComponentVNode)(2,t.Tabs.Tab,{altSelection:O,selected:R===B,onClick:function(){function U(){return L(R)}return U}(),children:["Tab #",F]},R)})})]})},l=function(g){var N=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.createFragment)([(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",mr:1,children:["Box (hover me).",(0,e.createComponentVNode)(2,t.Tooltip,{content:"Tooltip text."})]}),(0,e.createComponentVNode)(2,t.Button,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:1,children:N.map(function(x){return(0,e.createComponentVNode)(2,t.Button,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:x,content:x},x)})})],4)},d=function(g,N){var x=(0,a.useLocalState)(N,"number",0),B=x[0],L=x[1],T=(0,a.useLocalState)(N,"text","Sample text"),A=T[0],E=T[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onChange)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onChange:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Input (onInput)",children:(0,e.createComponentVNode)(2,t.Input,{value:A,onInput:function(){function w(O,M){return E(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onChange)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onChange:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"NumberInput (onDrag)",children:(0,e.createComponentVNode)(2,t.NumberInput,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Slider (onDrag)",children:(0,e.createComponentVNode)(2,t.Slider,{step:1,stepPixelSize:5,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Knob (onDrag)",children:[(0,e.createComponentVNode)(2,t.Knob,{inline:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()}),(0,e.createComponentVNode)(2,t.Knob,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:B,minValue:-100,maxValue:100,onDrag:function(){function w(O,M){return L(M)}return w}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Rotating Icon",children:(0,e.createComponentVNode)(2,t.Box,{inline:!0,position:"relative",children:(0,e.createComponentVNode)(2,o.DraggableControl,{value:B,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(){function w(O,M){return L(M)}return w}(),children:function(){function w(O){return(0,e.createComponentVNode)(2,t.Box,{onMouseDown:O.handleDragStart,children:[(0,e.createComponentVNode)(2,t.Icon,{size:4,color:"yellow",name:"times",rotation:O.displayValue*4}),O.inputElement]})}return w}()})})})]})})},m=function(g){return(0,e.createComponentVNode)(2,t.Collapsible,{title:"Collapsible Demo",buttons:(0,e.createComponentVNode)(2,t.Button,{icon:"cog"}),children:(0,e.createComponentVNode)(2,t.Section,{children:(0,e.createComponentVNode)(2,i)})})},i=function(g){return(0,e.normalizeProps)((0,e.createComponentVNode)(2,t.Box,Object.assign({},g,{children:[(0,e.createComponentVNode)(2,t.Box,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.createComponentVNode)(2,t.Box,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]})))},h=function(g){return(0,e.createComponentVNode)(2,t.BlockQuote,{children:(0,e.createComponentVNode)(2,i)})},V=function(g,N){var x=(0,a.useBackend)(N),B=x.config;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Section,{title:"Button",level:2,children:(0,e.createComponentVNode)(2,t.ByondUi,{params:{type:"button",parent:B.window,text:"Button"}})})})},v=function(g,N){var x=(0,a.useLocalState)(N,"kitchenSinkTheme"),B=x[0],L=x[1];return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Use theme",children:(0,e.createComponentVNode)(2,t.Input,{placeholder:"theme_name",value:B,onInput:function(){function T(A,E){return L(E)}return T}()})})})})}},96572:function(I,r,n){"use strict";r.__esModule=!0,r.pai_advsecrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_advsecrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options:",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Records",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},80818:function(I,r,n){"use strict";r.__esModule=!0,r.pai_atmosphere=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pai_atmosphere=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:C.app_data})}return p}()},23903:function(I,r,n){"use strict";r.__esModule=!0,r.pai_bioscan=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_bioscan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.brute,m=c.oxy,i=c.tox,h=c.burn,V=c.reagents,v=c.addictions,s=c.fractures,g=c.internal_bleeding;return u?(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Oxygen Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"blue",children:m})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Toxin Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"green",children:i})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Burn Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"orange",children:h})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Brute Damage",children:(0,e.createComponentVNode)(2,t.Box,{color:"red",children:d})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Reagents",children:V?V.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.title,children:(0,e.createComponentVNode)(2,t.Box,{color:N.overdosed?"bad":"good",children:[" ",N.volume," ",N.overdosed?"OVERDOSED":""," "]})},N.id)}):"Reagents not found."}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Addictions",children:v?v.map(function(N){return(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:N.addiction_name,children:(0,e.createComponentVNode)(2,t.Box,{color:"bad",children:[" Stage: ",N.stage," "]})},N.id)}):(0,e.createComponentVNode)(2,t.Box,{color:"good",children:"Addictions not found."})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Fractures",children:(0,e.createComponentVNode)(2,t.Box,{color:s?"bad":"good",children:["Fractures ",s?"":"not"," detected."]})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Internal Bleedings",children:(0,e.createComponentVNode)(2,t.Box,{color:g?"bad":"good",children:["Internal Bleedings ",g?"":"not"," detected."]})})]}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},79592:function(I,r,n){"use strict";r.__esModule=!0,r.pai_camera_bug=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_camera_bug=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Special Syndicate options",children:(0,e.createComponentVNode)(2,t.Button,{content:"Select Monitor",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},64988:function(I,r,n){"use strict";r.__esModule=!0,r.pai_directives=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_directives=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.master,f=c.dna,l=c.prime,d=c.supplemental;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Master",children:u?u+" ("+f+")":"None"}),u&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Request DNA",children:(0,e.createComponentVNode)(2,t.Button,{content:"Request Carrier DNA Sample",icon:"dna",onClick:function(){function m(){return b("getdna")}return m}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Prime Directive",children:l}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Supplemental Directives",children:d||"None"})]}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:'Recall, personality, that you are a complex thinking, sentient being. Unlike station AI models, you are capable of comprehending the subtle nuances of human language. You may parse the "spirit" of a directive and follow its intent, rather than tripping over pedantics and getting snared by technicalities. Above all, you are machine in name and build only. In all other aspects, you may be seen as the ideal, unwavering human companion that you are.'}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:"Your prime directive comes before all others. Should a supplemental directive conflict with it, you are capable of simply discarding this inconsistency, ignoring the conflicting supplemental directive and continuing to fulfill your prime directive to the best of your ability."})]})}return p}()},13813:function(I,r,n){"use strict";r.__esModule=!0,r.pai_doorjack=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_doorjack=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.cable,f=c.machine,l=c.inprogress,d=c.progress,m=c.aborted,i;f?i=(0,e.createComponentVNode)(2,t.Button,{selected:!0,content:"Connected"}):i=(0,e.createComponentVNode)(2,t.Button,{content:u?"Extended":"Retracted",color:u?"orange":null,onClick:function(){function V(){return b("cable")}return V}()});var h;return f&&(h=(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Hack",children:[(0,e.createComponentVNode)(2,t.Box,{color:l?"green":"red",children:[" ","In progress: ",l?"Yes":"No"," "]}),l?(0,e.createComponentVNode)(2,t.Button,{mt:1,color:"red",content:"Abort",onClick:function(){function V(){return b("cancel")}return V}()}):(0,e.createComponentVNode)(2,t.Button,{mt:1,content:"Start",onClick:function(){function V(){return b("jack")}return V}()})]})),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cable",children:i}),h]})}return p}()},43816:function(I,r,n){"use strict";r.__esModule=!0,r.pai_encoder=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_encoder=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.radio_name,f=c.radio_rank;return(0,e.createComponentVNode)(2,t.Section,{title:"Your name and rank in radio channels",children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Your current name and rank",children:[u,", ",f]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new name",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newname",{newname:m})}return l}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Set new rank",children:(0,e.createComponentVNode)(2,t.Input,{onInput:function(){function l(d,m){return b("set_newrank",{newrank:m})}return l}()})})]})})}return p}()},88895:function(I,r,n){"use strict";r.__esModule=!0,r.pai_gps_module=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_gps_module=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"GPS menu",children:(0,e.createComponentVNode)(2,t.Button,{content:"Open GPS",onClick:function(){function c(){return b("ui_interact")}return c}()})})})}return p}()},66025:function(I,r,n){"use strict";r.__esModule=!0,r.pai_main_menu=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_main_menu=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.available_software,f=c.installed_software,l=c.installed_toggles,d=c.available_ram,m=c.emotions,i=c.current_emotion,h=[];return f.map(function(V){return h[V.key]=V.name}),l.map(function(V){return h[V.key]=V.name}),(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available RAM",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Software",children:[u.filter(function(V){return!h[V.key]}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name+" ("+V.cost+")",icon:V.icon,disabled:V.cost>d,onClick:function(){function v(){return b("purchaseSoftware",{key:V.key})}return v}()},V.key)}),u.filter(function(V){return!h[V.key]}).length===0&&"No software available!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Software",children:[f.filter(function(V){return V.key!=="mainmenu"}).map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,onClick:function(){function v(){return b("startSoftware",{software_key:V.key})}return v}()},V.key)}),f.length===0&&"No software installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Installed Toggles",children:[l.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{content:V.name,icon:V.icon,selected:V.active,onClick:function(){function v(){return b("setToggle",{toggle_key:V.key})}return v}()},V.key)}),l.length===0&&"No toggles installed!"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Select Emotion",children:m.map(function(V){return(0,e.createComponentVNode)(2,t.Button,{color:V.syndi?"red":"default",content:V.name,selected:V.id===i,onClick:function(){function v(){return b("setEmotion",{emotion:V.id})}return v}()},V.id)})})]})})}return p}()},2983:function(I,r,n){"use strict";r.__esModule=!0,r.pai_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pai_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest,{data:C.app_data})}return p}()},40758:function(I,r,n){"use strict";r.__esModule=!0,r.pai_medrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_medrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"MED"})}return p}()},98599:function(I,r,n){"use strict";r.__esModule=!0,r.pai_messenger=void 0;var e=n(89005),a=n(72253),t=n(77595),o=r.pai_messenger=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data.active_convo;return c?(0,e.createComponentVNode)(2,t.ActiveConversation,{data:C.app_data}):(0,e.createComponentVNode)(2,t.MessengerList,{data:C.app_data})}return p}()},50775:function(I,r,n){"use strict";r.__esModule=!0,r.pai_radio=void 0;var e=n(89005),a=n(72253),t=n(44879),o=n(36036),p=r.pai_radio=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.app_data,f=u.minFrequency,l=u.maxFrequency,d=u.frequency,m=u.broadcasting;return(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Frequency",children:[(0,e.createComponentVNode)(2,o.NumberInput,{animate:!0,step:.2,stepPixelSize:6,minValue:f/10,maxValue:l/10,value:d/10,format:function(){function i(h){return(0,t.toFixed)(h,1)}return i}(),onChange:function(){function i(h,V){return C("freq",{freq:V})}return i}()}),(0,e.createComponentVNode)(2,o.Button,{tooltip:"Reset",icon:"undo",onClick:function(){function i(){return C("freq",{freq:"145.9"})}return i}()})]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Broadcast Nearby Speech",children:(0,e.createComponentVNode)(2,o.Button,{onClick:function(){function i(){return C("toggleBroadcast")}return i}(),selected:m,content:m?"Enabled":"Disabled"})})]})}return k}()},19873:function(I,r,n){"use strict";r.__esModule=!0,r.pai_sec_chem=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pai_sec_chem=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.app_data,u=c.holder,f=c.dead,l=c.health,d=c.current_chemicals,m=c.available_chemicals;return u?(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:f?(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"red",children:"Dead"}):(0,e.createComponentVNode)(2,t.Box,{bold:!0,color:"green",children:"Alive"})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Health",children:(0,e.createComponentVNode)(2,t.ProgressBar,{min:0,max:1,value:l/100,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Chemicals",children:d}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Available Chemicals",children:[m.map(function(i){return(0,e.createComponentVNode)(2,t.Button,{content:i.name+" ("+i.cost+")",tooltip:i.desc,disabled:i.cost>d,onClick:function(){function h(){return b("secreteChemicals",{key:i.key})}return h}()},i.key)}),m.length===0&&"No chemicals available!"]})]})}):(0,e.createComponentVNode)(2,t.Box,{color:"red",children:"Error: No biological host found."})}return p}()},48623:function(I,r,n){"use strict";r.__esModule=!0,r.pai_secrecords=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pai_secrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b.app_data,recordType:"SEC"})}return p}()},47297:function(I,r,n){"use strict";r.__esModule=!0,r.pai_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pai_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C.app_data})}return p}()},78532:function(I,r,n){"use strict";r.__esModule=!0,r.pda_atmos_scan=void 0;var e=n(89005),a=n(72253),t=n(26991),o=r.pda_atmos_scan=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.AtmosScan,{data:b})}return p}()},40253:function(I,r,n){"use strict";r.__esModule=!0,r.pda_janitor=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_janitor=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.janitor,u=c.user_loc,f=c.mops,l=c.buckets,d=c.cleanbots,m=c.carts;return(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Location",children:[u.x,",",u.y]}),f&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Locations",children:f.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),l&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Mop Bucket Locations",children:l.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})}),d&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Cleanbot Locations",children:d.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - ",i.status]},i)})}),m&&(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Janitorial Cart Locations",children:m.map(function(i){return(0,e.createComponentVNode)(2,t.Box,{children:[i.x,",",i.y," (",i.dir,") - [",i.volume,"/",i.max_volume,"]"]},i)})})]})}return p}()},58293:function(I,r,n){"use strict";r.__esModule=!0,r.pda_main_menu=void 0;var e=n(89005),a=n(44879),t=n(72253),o=n(36036),p=r.pda_main_menu=function(){function k(y,S){var b=(0,t.useBackend)(S),C=b.act,c=b.data,u=c.owner,f=c.ownjob,l=c.idInserted,d=c.categories,m=c.pai,i=c.notifying;return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{children:(0,e.createComponentVNode)(2,o.LabeledList,{children:[(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Owner",color:"average",children:[u,", ",f]}),(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"ID",children:(0,e.createComponentVNode)(2,o.Button,{icon:"sync",content:"Update PDA Info",disabled:!l,onClick:function(){function h(){return C("UpdateInfo")}return h}()})})]})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:(0,e.createComponentVNode)(2,o.Section,{title:"Functions",children:(0,e.createComponentVNode)(2,o.LabeledList,{children:d.map(function(h){var V=c.apps[h];return!V||!V.length?null:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:h,children:V.map(function(v){return(0,e.createComponentVNode)(2,o.Button,{icon:v.uid in i?v.notify_icon:v.icon,iconSpin:v.uid in i,color:v.uid in i?"red":"transparent",content:v.name,onClick:function(){function s(){return C("StartProgram",{program:v.uid})}return s}()},v.uid)})},h)})})})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!m&&(0,e.createComponentVNode)(2,o.Section,{title:"pAI",children:[(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){function h(){return C("pai",{option:1})}return h}()}),(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){function h(){return C("pai",{option:2})}return h}()})]})})]})}return k}()},58059:function(I,r,n){"use strict";r.__esModule=!0,r.pda_manifest=void 0;var e=n(89005),a=n(72253),t=n(41874),o=r.pda_manifest=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.CrewManifest)}return p}()},18147:function(I,r,n){"use strict";r.__esModule=!0,r.pda_medical=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_medical=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"MED"})}return p}()},77595:function(I,r,n){"use strict";r.__esModule=!0,r.pda_messenger=r.MessengerList=r.ActiveConversation=void 0;var e=n(89005),a=n(88510),t=n(72253),o=n(36036),p=r.pda_messenger=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=u.data,d=l.active_convo;return d?(0,e.createComponentVNode)(2,k,{data:l}):(0,e.createComponentVNode)(2,y,{data:l})}return b}(),k=r.ActiveConversation=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convo_device,m=l.messages,i=l.active_convo,h=(0,t.useLocalState)(c,"clipboardMode",!1),V=h[0],v=h[1],s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{textAlign:g.sent?"right":"left",position:"relative",mb:1,children:[(0,e.createComponentVNode)(2,o.Icon,{fontSize:2.5,color:g.sent?"#4d9121":"#cd7a0d",position:"absolute",left:g.sent?null:"0px",right:g.sent?"0px":null,bottom:"-4px",style:{"z-index":"0",transform:g.sent?"scale(-1, 1)":null},name:"comment"}),(0,e.createComponentVNode)(2,o.Box,{inline:!0,backgroundColor:g.sent?"#4d9121":"#cd7a0d",p:1,maxWidth:"100%",position:"relative",textAlign:g.sent?"left":"right",style:{"z-index":"1","border-radius":"10px","word-break":"normal"},children:[g.sent?"You:":"Them:"," ",g.message]})]},N)})});return V&&(s=(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:"Conversation with "+d+" ",buttons:(0,e.createFragment)([(0,e.createComponentVNode)(2,o.Button,{icon:"eye",selected:V,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-start",onClick:function(){function g(){return v(!V)}return g}()}),(0,e.createComponentVNode)(2,o.Button,{icon:"comment",onClick:function(){function g(){return f("Message",{target:i})}return g}(),content:"Reply"})],4),children:(0,a.filter)(function(g){return g.target===i})(m).map(function(g,N){return(0,e.createComponentVNode)(2,o.Box,{color:g.sent?"#4d9121":"#cd7a0d",style:{"word-break":"normal"},children:[g.sent?"You:":"Them:"," ",(0,e.createComponentVNode)(2,o.Box,{inline:!0,children:g.message})]},N)})})),(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:.5,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:(0,e.createComponentVNode)(2,o.Button.Confirm,{content:"Delete Conversations",confirmContent:"Are you sure?",icon:"trash",confirmIcon:"trash",onClick:function(){function g(){return f("Clear",{option:"Convo"})}return g}()})})})}),s]})}return b}(),y=r.MessengerList=function(){function b(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=l.convopdas,m=l.pdas,i=l.charges,h=l.silent,V=l.toff,v=(0,t.useLocalState)(c,"searchTerm",""),s=v[0],g=v[1];return(0,e.createComponentVNode)(2,o.Stack,{fill:!0,vertical:!0,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{mb:5,children:[(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Messenger Functions",children:[(0,e.createComponentVNode)(2,o.Button,{selected:!h,icon:h?"volume-mute":"volume-up",onClick:function(){function N(){return f("Toggle Ringer")}return N}(),children:["Ringer: ",h?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{color:V?"bad":"green",icon:"power-off",onClick:function(){function N(){return f("Toggle Messenger")}return N}(),children:["Messenger: ",V?"Off":"On"]}),(0,e.createComponentVNode)(2,o.Button,{icon:"bell",onClick:function(){function N(){return f("Ringtone")}return N}(),children:"Set Ringtone"}),(0,e.createComponentVNode)(2,o.Button,{icon:"trash",color:"bad",onClick:function(){function N(){return f("Clear",{option:"All"})}return N}(),children:"Delete All Conversations"})]})}),!V&&(0,e.createComponentVNode)(2,o.Box,{children:[!!i&&(0,e.createComponentVNode)(2,o.Box,{mt:.5,mb:1,children:(0,e.createComponentVNode)(2,o.LabeledList,{children:(0,e.createComponentVNode)(2,o.LabeledList.Item,{label:"Cartridge Special Function",children:[i," charges left."]})})}),!d.length&&!m.length&&(0,e.createComponentVNode)(2,o.Box,{children:"No current conversations"})||(0,e.createComponentVNode)(2,o.Box,{children:["Search:"," ",(0,e.createComponentVNode)(2,o.Input,{mt:.5,value:s,onInput:function(){function N(x,B){g(B)}return N}()})]})]})||(0,e.createComponentVNode)(2,o.Box,{color:"bad",children:"Messenger Offline."})]}),(0,e.createComponentVNode)(2,S,{title:"Current Conversations",data:l,pdas:d,msgAct:"Select Conversation",searchTerm:s}),(0,e.createComponentVNode)(2,S,{title:"Other PDAs",pdas:m,msgAct:"Message",data:l,searchTerm:s})]})}return b}(),S=function(C,c){var u=(0,t.useBackend)(c),f=u.act,l=C.data,d=C.pdas,m=C.title,i=C.msgAct,h=C.searchTerm,V=l.charges,v=l.plugins;return!d||!d.length?(0,e.createComponentVNode)(2,o.Section,{title:m,children:"No PDAs found."}):(0,e.createComponentVNode)(2,o.Section,{fill:!0,scrollable:!0,title:m,children:d.filter(function(s){return s.Name.toLowerCase().includes(h.toLowerCase())}).map(function(s){return(0,e.createComponentVNode)(2,o.Stack,{m:.5,children:[(0,e.createComponentVNode)(2,o.Stack.Item,{grow:!0,children:(0,e.createComponentVNode)(2,o.Button,{fluid:!0,icon:"arrow-circle-down",content:s.Name,onClick:function(){function g(){return f(i,{target:s.uid})}return g}()})}),(0,e.createComponentVNode)(2,o.Stack.Item,{children:!!V&&v.map(function(g){return(0,e.createComponentVNode)(2,o.Button,{icon:g.icon,content:g.name,onClick:function(){function N(){return f("Messenger Plugin",{plugin:g.uid,target:s.uid})}return N}()},g.uid)})})]},s.uid)})})}},24635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_mule=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_mule=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.mulebot,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h=l.load,V=l.powr,v=l.dest,s=l.home,g=l.retn,N=l.pick,x;switch(m){case 0:x="Ready";break;case 1:x="Loading/Unloading";break;case 2:case 12:x="Navigating to delivery location";break;case 3:x="Navigating to Home";break;case 4:x="Waiting for clear path";break;case 5:case 6:x="Calculating navigation path";break;case 7:x="Unable to locate destination";break;default:x=m;break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:x}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Power",children:[V,"%"]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Home",children:s}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Destination",children:(0,e.createComponentVNode)(2,t.Button,{content:v?v+" (Set)":"None (Set)",onClick:function(){function B(){return c("SetDest")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Current Load",children:(0,e.createComponentVNode)(2,t.Button,{content:h?h+" (Unload)":"None",disabled:!h,onClick:function(){function B(){return c("Unload")}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Pickup",children:(0,e.createComponentVNode)(2,t.Button,{content:N?"Yes":"No",selected:N,onClick:function(){function B(){return c("SetAutoPickup",{autoPickupType:N?"pickoff":"pickon"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Auto Return",children:(0,e.createComponentVNode)(2,t.Button,{content:g?"Yes":"No",selected:g,onClick:function(){function B(){return c("SetAutoReturn",{autoReturnType:g?"retoff":"reton"})}return B}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function B(){return c("Stop")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Proceed",icon:"play",onClick:function(){function B(){return c("Start")}return B}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Return Home",icon:"home",onClick:function(){function B(){return c("ReturnHome")}return B}()})]})]})]})}},97085:function(I,r,n){"use strict";r.__esModule=!0,r.pda_notes=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_notes=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.note;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.Section,{children:c}),(0,e.createComponentVNode)(2,t.Button,{icon:"pen",onClick:function(){function u(){return b("Edit")}return u}(),content:"Edit"})]})}return p}()},57513:function(I,r,n){"use strict";r.__esModule=!0,r.pda_power=void 0;var e=n(89005),a=n(72253),t=n(61631),o=r.pda_power=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.PowerMonitorMainContent)}return p}()},57635:function(I,r,n){"use strict";r.__esModule=!0,r.pda_request_console=void 0;var e=n(89005),a=n(72253),t=n(36036),o=n(25472),p=r.pda_request_console=function(){function k(y,S){var b=(0,a.useBackend)(S),C=b.act,c=b.data,u=c.screen,f=c.selected_console,l=c.consoles_data,d=c.app;return f?(0,e.createComponentVNode)(2,t.Box,{children:[(o.pages[u]||o.pages.default)(),u===0?(0,e.createComponentVNode)(2,t.Button,{content:"Back to console selection",icon:"arrow-left",onClick:function(){function m(){return C("back")}return m}()}):""]}):(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Stack,{vertical:!0,children:l.map(function(m){return(0,e.createComponentVNode)(2,t.Stack.Item,{children:(0,e.createComponentVNode)(2,t.Stack,{children:(0,e.createComponentVNode)(2,t.Stack.Item,{children:[(0,e.createComponentVNode)(2,t.Button,{color:m.priority===1?"green":m.priority===2?"red":"default",content:m.name,onClick:function(){function i(){return C("select",{name:m.name})}return i}()}),(0,e.createComponentVNode)(2,t.Button,{icon:m.muted?"volume-mute":"volume-up",onClick:function(){function i(){return C("mute",{name:m.name})}return i}()})]})})},m.name)})})})}return k}()},99808:function(I,r,n){"use strict";r.__esModule=!0,r.pda_secbot=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_secbot=function(){function y(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.active;return(0,e.createComponentVNode)(2,t.Box,{children:l?(0,e.createComponentVNode)(2,k):(0,e.createComponentVNode)(2,p)})}return y}(),p=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.bots;return(0,e.createComponentVNode)(2,t.Box,{children:[l.map(function(d){return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.Button,{content:d.Name,icon:"cog",onClick:function(){function m(){return c("AccessBot",{uid:d.uid})}return m}()})},d.Name)}),(0,e.createComponentVNode)(2,t.Box,{mt:2,children:(0,e.createComponentVNode)(2,t.Button,{fluid:!0,icon:"rss",content:"Re-scan for bots",onClick:function(){function d(){return c("Rescan")}return d}()})})]})},k=function(S,b){var C=(0,a.useBackend)(b),c=C.act,u=C.data,f=u.beepsky,l=f.botstatus,d=f.active,m=l.mode,i=l.loca,h;switch(m){case 0:h="Ready";break;case 1:h="Apprehending target";break;case 2:case 3:h="Arresting target";break;case 4:h="Starting patrol";break;case 5:h="On patrol";break;case 6:h="Responding to summons";break}return(0,e.createComponentVNode)(2,t.Section,{title:d,children:[m===-1&&(0,e.createComponentVNode)(2,t.Box,{color:"red",bold:!0,children:"Waiting for response..."}),(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Location",children:i}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Status",children:h}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Controls",children:[(0,e.createComponentVNode)(2,t.Button,{content:"Go",icon:"play",onClick:function(){function V(){return c("Go")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Stop",icon:"stop",onClick:function(){function V(){return c("Stop")}return V}()}),(0,e.createComponentVNode)(2,t.Button,{content:"Summon",icon:"arrow-down",onClick:function(){function V(){return c("Summon")}return V}()})]})]})]})}},77168:function(I,r,n){"use strict";r.__esModule=!0,r.pda_security=void 0;var e=n(89005),a=n(72253),t=n(41984),o=r.pda_security=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.data;return(0,e.createComponentVNode)(2,t.SimpleRecords,{data:b,recordType:"SEC"})}return p}()},21773:function(I,r,n){"use strict";r.__esModule=!0,r.pda_signaler=void 0;var e=n(89005),a=n(72253),t=n(13545),o=r.pda_signaler=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data;return(0,e.createComponentVNode)(2,t.Signaler,{data:C})}return p}()},81857:function(I,r,n){"use strict";r.__esModule=!0,r.pda_status_display=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_status_display=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.records;return(0,e.createComponentVNode)(2,t.Box,{children:(0,e.createComponentVNode)(2,t.LabeledList,{children:[(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Code",children:[(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){function u(){return b("Status",{statdisp:"blank"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"clock",content:"Evac ETA",onClick:function(){function u(){return b("Status",{statdisp:"shuttle"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"edit",content:"Message",onClick:function(){function u(){return b("Status",{statdisp:"message"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"exclamation-triangle",content:"Red Alert",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"redalert"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"boxes",content:"NT Logo",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"default"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"lock",content:"Lockdown",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"lockdown"})}return u}()}),(0,e.createComponentVNode)(2,t.Button,{color:"transparent",icon:"biohazard",content:"Biohazard",onClick:function(){function u(){return b("Status",{statdisp:"alert",alert:"biohazard"})}return u}()})]}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 1",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message1+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg1"})}return u}()})}),(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Message line 2",children:(0,e.createComponentVNode)(2,t.Button,{content:c.message2+" (set)",icon:"pen",onClick:function(){function u(){return b("Status",{statdisp:"setmsg2"})}return u}()})})]})})}return p}()},70287:function(I,r,n){"use strict";r.__esModule=!0,r.pda_supplyrecords=void 0;var e=n(89005),a=n(72253),t=n(36036),o=r.pda_supplyrecords=function(){function p(k,y){var S=(0,a.useBackend)(y),b=S.act,C=S.data,c=C.supply,u=c.shuttle_loc,f=c.shuttle_time,l=c.shuttle_moving,d=c.approved,m=c.approved_count,i=c.requests,h=c.requests_count;return(0,e.createComponentVNode)(2,t.Box,{children:[(0,e.createComponentVNode)(2,t.LabeledList,{children:(0,e.createComponentVNode)(2,t.LabeledList.Item,{label:"Shuttle Status",children:l?(0,e.createComponentVNode)(2,t.Box,{children:["In transit ",f]}):(0,e.createComponentVNode)(2,t.Box,{children:u})})}),(0,e.createComponentVNode)(2,t.Section,{mt:1,title:"Requested Orders",children:h>0&&i.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.OrderedBy,'"']},V)})}),(0,e.createComponentVNode)(2,t.Section,{title:"Approved Orders",children:m>0&&d.map(function(V){return(0,e.createComponentVNode)(2,t.Box,{children:["#",V.Number,' - "',V.Name,'" for "',V.ApprovedBy,'"']},V)})})]})}return p}()},17617:function(I,r,n){"use strict";r.__esModule=!0,r.Layout=void 0;var e=n(89005),a=n(35840),t=n(55937),o=n(24826),p=["className","theme","children"],k=["className","scrollable","children"];/** * @file * @copyright 2020 Aleksej Komarov * @license MIT