Files
CHOMPStation2/tgui/public/tgui.bundle.js
2024-02-19 19:16:23 +01:00

404 lines
1.4 MiB

(function(){(function(){var ku={44352:function(S,y,t){"use strict";/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function e(i,s){return s!=null&&typeof Symbol!="undefined"&&s[Symbol.hasInstance]?!!s[Symbol.hasInstance](i):i instanceof s}function a(i){"@swc/helpers - typeof";return i&&typeof Symbol!="undefined"&&i.constructor===Symbol?"symbol":typeof i}var n=t(44583),r=t(7864);function o(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,C=1;C<arguments.length;C++)s+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m=new Set,b={};function g(i,s){d(i,s),d(i+"Capture",s)}function d(i,s){for(b[i]=s,i=0;i<s.length;i++)m.add(s[i])}var f=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),v=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,c={},u={};function h(i){return v.call(u,i)?!0:v.call(c,i)?!1:l.test(i)?u[i]=!0:(c[i]=!0,!1)}function x(i,s,C,w){if(C!==null&&C.type===0)return!1;switch(typeof s=="undefined"?"undefined":a(s)){case"function":case"symbol":return!0;case"boolean":return w?!1:C!==null?!C.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function j(i,s,C,w){if(s===null||typeof s=="undefined"||x(i,s,C,w))return!0;if(w)return!1;if(C!==null)switch(C.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function p(i,s,C,w,$,X,te){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=w,this.attributeNamespace=$,this.mustUseProperty=C,this.propertyName=i,this.type=s,this.sanitizeURL=X,this.removeEmptyString=te}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){_[i]=new p(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];_[s]=new p(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){_[i]=new p(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){_[i]=new p(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){_[i]=new p(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){_[i]=new p(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){_[i]=new p(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){_[i]=new p(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){_[i]=new p(i,5,!1,i.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function I(i){return i[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(i){var s=i.replace(E,I);_[s]=new p(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(E,I);_[s]=new p(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(E,I);_[s]=new p(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){_[i]=new p(i,1,!1,i.toLowerCase(),null,!1,!1)}),_.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){_[i]=new p(i,1,!1,i.toLowerCase(),null,!0,!0)});function O(i,s,C,w){var $=_.hasOwnProperty(s)?_[s]:null;($!==null?$.type!==0:w||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(j(s,C,$,w)&&(C=null),w||$===null?h(s)&&(C===null?i.removeAttribute(s):i.setAttribute(s,""+C)):$.mustUseProperty?i[$.propertyName]=C===null?$.type===3?!1:"":C:(s=$.attributeName,w=$.attributeNamespace,C===null?i.removeAttribute(s):($=$.type,C=$===3||$===4&&C===!0?"":""+C,w?i.setAttributeNS(w,s,C):i.setAttribute(s,C))))}var M=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),A=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),Y=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),G=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Q=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function Z(i){return i===null||typeof i!="object"?null:(i=F&&i[F]||i["@@iterator"],typeof i=="function"?i:null)}var oe=Object.assign,le;function ue(i){if(le===void 0)try{throw Error()}catch(C){var s=C.stack.trim().match(/\n( *(at )?)/);le=s&&s[1]||""}return"\n"+le+i}var he=!1;function de(i,s){if(!i||he)return"";he=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(Ae){var w=Ae}Reflect.construct(i,[],s)}else{try{s.call()}catch(Ae){w=Ae}i.call(s.prototype)}else{try{throw Error()}catch(Ae){w=Ae}i()}}catch(Ae){if(Ae&&w&&typeof Ae.stack=="string"){for(var $=Ae.stack.split("\n"),X=w.stack.split("\n"),te=$.length-1,me=X.length-1;1<=te&&0<=me&&$[te]!==X[me];)me--;for(;1<=te&&0<=me;te--,me--)if($[te]!==X[me]){if(te!==1||me!==1)do if(te--,me--,0>me||$[te]!==X[me]){var Ee="\n"+$[te].replace(" at new "," at ");return i.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",i.displayName)),Ee}while(1<=te&&0<=me);break}}}finally{he=!1,Error.prepareStackTrace=C}return(i=i?i.displayName||i.name:"")?ue(i):""}function ve(i){switch(i.tag){case 5:return ue(i.type);case 16:return ue("Lazy");case 13:return ue("Suspense");case 19:return ue("SuspenseList");case 0:case 2:case 15:return i=de(i.type,!1),i;case 11:return i=de(i.type.render,!1),i;case 1:return i=de(i.type,!0),i;default:return""}}function pe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case B:return"Fragment";case A:return"Portal";case L:return"Profiler";case U:return"StrictMode";case H:return"Suspense";case N:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case Y:return(i.displayName||"Context")+".Consumer";case k:return(i._context.displayName||"Context")+".Provider";case V:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case q:return s=i.displayName||null,s!==null?s:pe(i.type)||"Memo";case G:s=i._payload,i=i._init;try{return pe(i(s))}catch(C){}}return null}function be(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(s);case 8:return s===U?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ye(i){switch(typeof i=="undefined"?"undefined":a(i)){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Te(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ke(i){var s=Te(i)?"checked":"value",C=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),w=""+i[s];if(!i.hasOwnProperty(s)&&typeof C!="undefined"&&typeof C.get=="function"&&typeof C.set=="function"){var $=C.get,X=C.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return $.call(this)},set:function(me){w=""+me,X.call(this,me)}}),Object.defineProperty(i,s,{enumerable:C.enumerable}),{getValue:function(){return w},setValue:function(me){w=""+me},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function $e(i){i._valueTracker||(i._valueTracker=Ke(i))}function We(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var C=s.getValue(),w="";return i&&(w=Te(i)?i.checked?"true":"false":i.value),i=w,i!==C?(s.setValue(i),!0):!1}function Qe(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(s){return i.body}}function Ye(i,s){var C=s.checked;return oe({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C!=null?C:i._wrapperState.initialChecked})}function mt(i,s){var C=s.defaultValue==null?"":s.defaultValue,w=s.checked!=null?s.checked:s.defaultChecked;C=ye(s.value!=null?s.value:C),i._wrapperState={initialChecked:w,initialValue:C,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function vt(i,s){s=s.checked,s!=null&&O(i,"checked",s,!1)}function ht(i,s){vt(i,s);var C=ye(s.value),w=s.type;if(C!=null)w==="number"?(C===0&&i.value===""||i.value!=C)&&(i.value=""+C):i.value!==""+C&&(i.value=""+C);else if(w==="submit"||w==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?He(i,s.type,C):s.hasOwnProperty("defaultValue")&&He(i,s.type,ye(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function ot(i,s,C){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var w=s.type;if(!(w!=="submit"&&w!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,C||s===i.value||(i.value=s),i.defaultValue=s}C=i.name,C!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,C!==""&&(i.name=C)}function He(i,s,C){(s!=="number"||Qe(i.ownerDocument)!==i)&&(C==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+C&&(i.defaultValue=""+C))}var Ne=Array.isArray;function ke(i,s,C,w){if(i=i.options,s){s={};for(var $=0;$<C.length;$++)s["$"+C[$]]=!0;for(C=0;C<i.length;C++)$=s.hasOwnProperty("$"+i[C].value),i[C].selected!==$&&(i[C].selected=$),$&&w&&(i[C].defaultSelected=!0)}else{for(C=""+ye(C),s=null,$=0;$<i.length;$++){if(i[$].value===C){i[$].selected=!0,w&&(i[$].defaultSelected=!0);return}s!==null||i[$].disabled||(s=i[$])}s!==null&&(s.selected=!0)}}function we(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(o(91));return oe({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function qe(i,s){var C=s.value;if(C==null){if(C=s.children,s=s.defaultValue,C!=null){if(s!=null)throw Error(o(92));if(Ne(C)){if(1<C.length)throw Error(o(93));C=C[0]}s=C}s==null&&(s=""),C=s}i._wrapperState={initialValue:ye(C)}}function Je(i,s){var C=ye(s.value),w=ye(s.defaultValue);C!=null&&(C=""+C,C!==i.value&&(i.value=C),s.defaultValue==null&&i.defaultValue!==C&&(i.defaultValue=C)),w!=null&&(i.defaultValue=""+w)}function lt(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function at(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xt(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?at(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Wt,zt=function(i){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(s,C,w,$){MSApp.execUnsafeLocalFunction(function(){return i(s,C,w,$)})}:i}(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Wt=Wt||document.createElement("div"),Wt.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Wt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function bt(i,s){if(s){var C=i.firstChild;if(C&&C===i.lastChild&&C.nodeType===3){C.nodeValue=s;return}}i.textContent=s}var st={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},it=["Webkit","ms","Moz","O"];Object.keys(st).forEach(function(i){it.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),st[s]=st[i]})});function gt(i,s,C){return s==null||typeof s=="boolean"||s===""?"":C||typeof s!="number"||s===0||st.hasOwnProperty(i)&&st[i]?(""+s).trim():s+"px"}function Pt(i,s){i=i.style;for(var C in s)if(s.hasOwnProperty(C)){var w=C.indexOf("--")===0,$=gt(C,s[C],w);C==="float"&&(C="cssFloat"),w?i.setProperty(C,$):i[C]=$}}var Ft=oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Yt(i,s){if(s){if(Ft[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(o(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(o(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(o(61))}if(s.style!=null&&typeof s.style!="object")throw Error(o(62))}}function ln(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tn=null;function yn(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Bn=null,Tt=null,Kn=null;function Jn(i){if(i=Mi(i)){if(typeof Bn!="function")throw Error(o(280));var s=i.stateNode;s&&(s=Ma(s),Bn(i.stateNode,i.type,s))}}function Xr(i){Tt?Kn?Kn.push(i):Kn=[i]:Tt=i}function wr(){if(Tt){var i=Tt,s=Kn;if(Kn=Tt=null,Jn(i),s)for(i=0;i<s.length;i++)Jn(s[i])}}function Rr(i,s){return i(s)}function Br(){}var Kr=!1;function Gr(i,s,C){if(Kr)return i(s,C);Kr=!0;try{return Rr(i,s,C)}finally{Kr=!1,(Tt!==null||Kn!==null)&&(Br(),wr())}}function En(i,s){var C=i.stateNode;if(C===null)return null;var w=Ma(C);if(w===null)return null;C=w[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(i=i.type,w=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!w;break e;default:i=!1}if(i)return null;if(C&&typeof C!="function")throw Error(o(231,s,typeof C=="undefined"?"undefined":a(C)));return C}var In=!1;if(f)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){In=!0}}),window.addEventListener("test",kn,kn),window.removeEventListener("test",kn,kn)}catch(i){In=!1}function On(i,s,C,w,$,X,te,me,Ee){var Ae=Array.prototype.slice.call(arguments,3);try{s.apply(C,Ae)}catch(Be){this.onError(Be)}}var Pn=!1,Ln=null,qn=!1,Yr=null,bo={onError:function(s){Pn=!0,Ln=s}};function Fo(i,s,C,w,$,X,te,me,Ee){Pn=!1,Ln=null,On.apply(bo,arguments)}function ui(i,s,C,w,$,X,te,me,Ee){if(Fo.apply(this,arguments),Pn){if(Pn){var Ae=Ln;Pn=!1,Ln=null}else throw Error(o(198));qn||(qn=!0,Yr=Ae)}}function er(i){var s=i,C=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,s.flags&4098&&(C=s.return),i=s.return;while(i)}return s.tag===3?C:null}function yo(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function Qr(i){if(er(i)!==i)throw Error(o(188))}function Vo(i){var s=i.alternate;if(!s){if(s=er(i),s===null)throw Error(o(188));return s!==i?null:i}for(var C=i,w=s;;){var $=C.return;if($===null)break;var X=$.alternate;if(X===null){if(w=$.return,w!==null){C=w;continue}break}if($.child===X.child){for(X=$.child;X;){if(X===C)return Qr($),i;if(X===w)return Qr($),s;X=X.sibling}throw Error(o(188))}if(C.return!==w.return)C=$,w=X;else{for(var te=!1,me=$.child;me;){if(me===C){te=!0,C=$,w=X;break}if(me===w){te=!0,w=$,C=X;break}me=me.sibling}if(!te){for(me=X.child;me;){if(me===C){te=!0,C=X,w=$;break}if(me===w){te=!0,w=X,C=$;break}me=me.sibling}if(!te)throw Error(o(189))}}if(C.alternate!==w)throw Error(o(190))}if(C.tag!==3)throw Error(o(188));return C.stateNode.current===C?i:s}function Nn(i){return i=Vo(i),i!==null?lr(i):null}function lr(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=lr(i);if(s!==null)return s;i=i.sibling}return null}var mn=r.unstable_scheduleCallback,cr=r.unstable_cancelCallback,di=r.unstable_shouldYield,fi=r.unstable_requestPaint,Zt=r.unstable_now,hi=r.unstable_getCurrentPriorityLevel,kr=r.unstable_ImmediatePriority,Ho=r.unstable_UserBlockingPriority,Zr=r.unstable_NormalPriority,br=r.unstable_LowPriority,_o=r.unstable_IdlePriority,Jr=null,dt=null;function qr(i){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Jr,i,void 0,(i.current.flags&128)===128)}catch(s){}}var Mn=Math.clz32?Math.clz32:ur,Vn=Math.log,eo=Math.LN2;function ur(i){return i>>>=0,i===0?32:31-(Vn(i)/eo|0)|0}var Un=64,en=4194304;function tr(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function yr(i,s){var C=i.pendingLanes;if(C===0)return 0;var w=0,$=i.suspendedLanes,X=i.pingedLanes,te=C&268435455;if(te!==0){var me=te&~$;me!==0?w=tr(me):(X&=te,X!==0&&(w=tr(X)))}else te=C&~$,te!==0?w=tr(te):X!==0&&(w=tr(X));if(w===0)return 0;if(s!==0&&s!==w&&!(s&$)&&($=w&-w,X=s&-s,$>=X||$===16&&(X&4194240)!==0))return s;if(w&4&&(w|=C&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=w;0<s;)C=31-Mn(s),$=1<<C,w|=i[C],s&=~$;return w}function mi(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vi(i,s){for(var C=i.suspendedLanes,w=i.pingedLanes,$=i.expirationTimes,X=i.pendingLanes;0<X;){var te=31-Mn(X),me=1<<te,Ee=$[te];Ee===-1?(!(me&C)||me&w)&&($[te]=mi(me,s)):Ee<=s&&(i.expiredLanes|=me),X&=~me}}function nr(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Co(){var i=Un;return Un<<=1,!(Un&4194240)&&(Un=64),i}function to(i){for(var s=[],C=0;31>C;C++)s.push(i);return s}function dr(i,s,C){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Mn(s),i[s]=C}function pi(i,s){var C=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var w=i.eventTimes;for(i=i.expirationTimes;0<C;){var $=31-Mn(C),X=1<<$;s[$]=0,w[$]=-1,i[$]=-1,C&=~X}}function Eo(i,s){var C=i.entangledLanes|=s;for(i=i.entanglements;C;){var w=31-Mn(C),$=1<<w;$&s|i[w]&s&&(i[w]|=s),C&=~$}}var Vt=0;function Io(i){return i&=-i,1<i?4<i?i&268435455?16:536870912:4:1}var Hn,Lr,no,re,Fe,Xo=!1,ro=[],Tn=null,fr=null,Xn=null,_r=new Map,Oo=new Map,fn=[],Ui="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function gi(i,s){switch(i){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":_r.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(s.pointerId)}}function Gn(i,s,C,w,$,X){return i===null||i.nativeEvent!==X?(i={blockedOn:s,domEventName:C,eventSystemFlags:w,nativeEvent:X,targetContainers:[$]},s!==null&&(s=Mi(s),s!==null&&Lr(s)),i):(i.eventSystemFlags|=w,s=i.targetContainers,$!==null&&s.indexOf($)===-1&&s.push($),i)}function $i(i,s,C,w,$){switch(s){case"focusin":return Tn=Gn(Tn,i,s,C,w,$),!0;case"dragenter":return fr=Gn(fr,i,s,C,w,$),!0;case"mouseover":return Xn=Gn(Xn,i,s,C,w,$),!0;case"pointerover":var X=$.pointerId;return _r.set(X,Gn(_r.get(X)||null,i,s,C,w,$)),!0;case"gotpointercapture":return X=$.pointerId,Oo.set(X,Gn(Oo.get(X)||null,i,s,C,w,$)),!0}return!1}function Nr(i){var s=oi(i.target);if(s!==null){var C=er(s);if(C!==null){if(s=C.tag,s===13){if(s=yo(C),s!==null){i.blockedOn=s,Fe(i.priority,function(){no(C)});return}}else if(s===3&&C.stateNode.current.memoizedState.isDehydrated){i.blockedOn=C.tag===3?C.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Po(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var C=ao(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(C===null){C=i.nativeEvent;var w=new C.constructor(C.type,C);tn=w,C.target.dispatchEvent(w),tn=null}else return s=Mi(C),s!==null&&Lr(s),i.blockedOn=C,!1;s.shift()}return!0}function zi(i,s,C){Po(i)&&C.delete(s)}function wn(){Xo=!1,Tn!==null&&Po(Tn)&&(Tn=null),fr!==null&&Po(fr)&&(fr=null),Xn!==null&&Po(Xn)&&(Xn=null),_r.forEach(zi),Oo.forEach(zi)}function Go(i,s){i.blockedOn===s&&(i.blockedOn=null,Xo||(Xo=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,wn)))}function Mo(i){function s($){return Go($,i)}if(0<ro.length){Go(ro[0],i);for(var C=1;C<ro.length;C++){var w=ro[C];w.blockedOn===i&&(w.blockedOn=null)}}for(Tn!==null&&Go(Tn,i),fr!==null&&Go(fr,i),Xn!==null&&Go(Xn,i),_r.forEach(s),Oo.forEach(s),C=0;C<fn.length;C++)w=fn[C],w.blockedOn===i&&(w.blockedOn=null);for(;0<fn.length&&(C=fn[0],C.blockedOn===null);)Nr(C),C.blockedOn===null&&fn.shift()}var So=M.ReactCurrentBatchConfig,oo=!0;function Ua(i,s,C,w){var $=Vt,X=So.transition;So.transition=null;try{Vt=1,pa(i,s,C,w)}finally{Vt=$,So.transition=X}}function vs(i,s,C,w){var $=Vt,X=So.transition;So.transition=null;try{Vt=4,pa(i,s,C,w)}finally{Vt=$,So.transition=X}}function pa(i,s,C,w){if(oo){var $=ao(i,s,C,w);if($===null)Za(i,s,w,io,C),gi(i,w);else if($i($,i,s,C,w))w.stopPropagation();else if(gi(i,w),s&4&&-1<Ui.indexOf(i)){for(;$!==null;){var X=Mi($);if(X!==null&&Hn(X),X=ao(i,s,C,w),X===null&&Za(i,s,w,io,C),X===$)break;$=X}$!==null&&w.stopPropagation()}else Za(i,s,w,null,C)}}var io=null;function ao(i,s,C,w){if(io=null,i=yn(w),i=oi(i),i!==null)if(s=er(i),s===null)i=null;else if(C=s.tag,C===13){if(i=yo(s),i!==null)return i;i=null}else if(C===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return io=i,null}function Wi(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hi()){case kr:return 1;case Ho:return 4;case Zr:case br:return 16;case _o:return 536870912;default:return 16}default:return 16}}var hr=null,so=null,Cr=null;function mr(){if(Cr)return Cr;var i,s=so,C=s.length,w,$="value"in hr?hr.value:hr.textContent,X=$.length;for(i=0;i<C&&s[i]===$[i];i++);var te=C-i;for(w=1;w<=te&&s[C-w]===$[X-w];w++);return Cr=$.slice(i,1<w?1-w:void 0)}function cn(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Yo(){return!0}function xi(){return!1}function vn(i){function s(C,w,$,X,te){this._reactName=C,this._targetInst=$,this.type=w,this.nativeEvent=X,this.target=te,this.currentTarget=null;for(var me in i)i.hasOwnProperty(me)&&(C=i[me],this[me]=C?C(X):X[me]);return this.isDefaultPrevented=(X.defaultPrevented!=null?X.defaultPrevented:X.returnValue===!1)?Yo:xi,this.isPropagationStopped=xi,this}return oe(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():a(w.returnValue)!=="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=Yo)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():a(w.cancelBubble)!=="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),s}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Er=vn(Ur),rr=oe({},Ur,{view:0,detail:0}),ne=vn(rr),ze,Qo,ji,Do=oe({},rr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jo,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==ji&&(ji&&s.type==="mousemove"?(ze=s.screenX-ji.screenX,Qo=s.screenY-ji.screenY):Qo=ze=0,ji=s),ze)},movementY:function(s){return"movementY"in s?s.movementY:Qo}}),Zo=vn(Do),$a=oe({},Do,{dataTransfer:0}),Fi=vn($a),ps=oe({},rr,{relatedTarget:0}),ga=vn(ps),Ao=oe({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),za=vn(Ao),Wa=oe({},Ur,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Vi=vn(Wa),bi=oe({},Ur,{data:0}),Fa=vn(bi),lo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gs={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Va={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xa(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Va[i])?!!s[i]:!1}function Jo(){return xa}var xs=oe({},rr,{key:function(s){if(s.key){var C=lo[s.key]||s.key;if(C!=="Unidentified")return C}return s.type==="keypress"?(s=cn(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?gs[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jo,charCode:function(s){return s.type==="keypress"?cn(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?cn(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Hi=vn(xs),js=oe({},Do,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xi=vn(js),yi=oe({},rr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jo}),bs=vn(yi),ys=oe({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),_s=vn(ys),$r=oe({},Do,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),Zs=vn($r),Gi=[9,13,27,32],Yi=f&&"CompositionEvent"in window,_i=null;f&&"documentMode"in document&&(_i=document.documentMode);var Cs=f&&"TextEvent"in window&&!_i,To=f&&(!Yi||_i&&8<_i&&11>=_i),ja=" ",Qi=!1;function Ha(i,s){switch(i){case"keyup":return Gi.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Es(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var wo=!1;function Js(i,s){switch(i){case"compositionend":return Es(s);case"keypress":return s.which!==32?null:(Qi=!0,ja);case"textInput":return i=s.data,i===ja&&Qi?null:i;default:return null}}function ba(i,s){if(wo)return i==="compositionend"||!Yi&&Ha(i,s)?(i=mr(),Cr=so=hr=null,wo=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return To&&s.locale!=="ko"?null:s.data;default:return null}}var qs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Is(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!qs[i.type]:s==="textarea"}function zr(i,s,C,w){Xr(w),s=Ja(s,"onChange"),0<s.length&&(C=new Er("onChange","change",null,C,w),i.push({event:C,listeners:s}))}var co=null,qo=null;function Xa(i){nl(i,0)}function vr(i){var s=ta(i);if(We(s))return i}function ya(i,s){if(i==="change")return s}var Ci=!1;if(f){var Zi;if(f){var ei="oninput"in document;if(!ei){var uo=document.createElement("div");uo.setAttribute("oninput","return;"),ei=typeof uo.oninput=="function"}Zi=ei}else Zi=!1;Ci=Zi&&(!document.documentMode||9<document.documentMode)}function pn(){co&&(co.detachEvent("onpropertychange",Ji),qo=co=null)}function Ji(i){if(i.propertyName==="value"&&vr(qo)){var s=[];zr(s,qo,i,yn(i)),Gr(Xa,s)}}function Os(i,s,C){i==="focusin"?(pn(),co=s,qo=C,co.attachEvent("onpropertychange",Ji)):i==="focusout"&&pn()}function Ei(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return vr(qo)}function Ps(i,s){if(i==="click")return vr(s)}function el(i,s){if(i==="input"||i==="change")return vr(s)}function _a(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var $n=typeof Object.is=="function"?Object.is:_a;function Ir(i,s){if($n(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var C=Object.keys(i),w=Object.keys(s);if(C.length!==w.length)return!1;for(w=0;w<C.length;w++){var $=C[w];if(!v.call(s,$)||!$n(i[$],s[$]))return!1}return!0}function Ga(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function P(i,s){var C=Ga(i);i=0;for(var w;C;){if(C.nodeType===3){if(w=i+C.textContent.length,i<=s&&w>=s)return{node:C,offset:s-i};i=w}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=Ga(C)}}function ee(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?ee(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function ae(){for(var i=window,s=Qe();e(s,i.HTMLIFrameElement);){try{var C=typeof s.contentWindow.location.href=="string"}catch(w){C=!1}if(C)i=s.contentWindow;else break;s=Qe(i.document)}return s}function fe(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function ie(i){var s=ae(),C=i.focusedElem,w=i.selectionRange;if(s!==C&&C&&C.ownerDocument&&ee(C.ownerDocument.documentElement,C)){if(w!==null&&fe(C)){if(s=w.start,i=w.end,i===void 0&&(i=s),"selectionStart"in C)C.selectionStart=s,C.selectionEnd=Math.min(i,C.value.length);else if(i=(s=C.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var $=C.textContent.length,X=Math.min(w.start,$);w=w.end===void 0?X:Math.min(w.end,$),!i.extend&&X>w&&($=w,w=X,X=$),$=P(C,X);var te=P(C,w);$&&te&&(i.rangeCount!==1||i.anchorNode!==$.node||i.anchorOffset!==$.offset||i.focusNode!==te.node||i.focusOffset!==te.offset)&&(s=s.createRange(),s.setStart($.node,$.offset),i.removeAllRanges(),X>w?(i.addRange(s),i.extend(te.node,te.offset)):(s.setEnd(te.node,te.offset),i.addRange(s)))}}for(s=[],i=C;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<s.length;C++)i=s[C],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Ce=f&&"documentMode"in document&&11>=document.documentMode,ge=null,Oe=null,De=null,Ue=!1;function ft(i,s,C){var w=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;Ue||ge==null||ge!==Qe(w)||(w=ge,"selectionStart"in w&&fe(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),De&&Ir(De,w)||(De=w,w=Ja(Oe,"onSelect"),0<w.length&&(s=new Er("onSelect","select",null,s,C),i.push({event:s,listeners:w}),s.target=ge)))}function et(i,s){var C={};return C[i.toLowerCase()]=s.toLowerCase(),C["Webkit"+i]="webkit"+s,C["Moz"+i]="moz"+s,C}var Ct={animationend:et("Animation","AnimationEnd"),animationiteration:et("Animation","AnimationIteration"),animationstart:et("Animation","AnimationStart"),transitionend:et("Transition","TransitionEnd")},Ot={},Ut={};f&&(Ut=document.createElement("div").style,"AnimationEvent"in window||(delete Ct.animationend.animation,delete Ct.animationiteration.animation,delete Ct.animationstart.animation),"TransitionEvent"in window||delete Ct.transitionend.transition);function Gt(i){if(Ot[i])return Ot[i];if(!Ct[i])return i;var s=Ct[i],C;for(C in s)if(s.hasOwnProperty(C)&&C in Ut)return Ot[i]=s[C];return i}var Nt=Gt("animationend"),hn=Gt("animationiteration"),Lt=Gt("animationstart"),Ca=Gt("transitionend"),Ya=new Map,Ms="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function or(i,s){Ya.set(i,s),g(s,[i])}for(var fo=0;fo<Ms.length;fo++){var Ii=Ms[fo],Al=Ii.toLowerCase(),Tl=Ii[0].toUpperCase()+Ii.slice(1);or(Al,"on"+Tl)}or(Nt,"onAnimationEnd"),or(hn,"onAnimationIteration"),or(Lt,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(Ca,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),g("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),g("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),g("onBeforeInput",["compositionend","keypress","textInput","paste"]),g("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ti="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tl=new Set("cancel close invalid load scroll toggle".split(" ").concat(ti));function Ss(i,s,C){var w=i.type||"unknown-event";i.currentTarget=C,ui(w,s,void 0,i),i.currentTarget=null}function nl(i,s){s=(s&4)!==0;for(var C=0;C<i.length;C++){var w=i[C],$=w.event;w=w.listeners;e:{var X=void 0;if(s)for(var te=w.length-1;0<=te;te--){var me=w[te],Ee=me.instance,Ae=me.currentTarget;if(me=me.listener,Ee!==X&&$.isPropagationStopped())break e;Ss($,me,Ae),X=Ee}else for(te=0;te<w.length;te++){if(me=w[te],Ee=me.instance,Ae=me.currentTarget,me=me.listener,Ee!==X&&$.isPropagationStopped())break e;Ss($,me,Ae),X=Ee}}}if(qn)throw i=Yr,qn=!1,Yr=null,i}function Jt(i,s){var C=s[Ks];C===void 0&&(C=s[Ks]=new Set);var w=i+"__bubble";C.has(w)||(As(s,i,2,!1),C.add(w))}function Ds(i,s,C){var w=0;s&&(w|=4),As(C,i,w,s)}var Qa="_reactListening"+Math.random().toString(36).slice(2);function Oi(i){if(!i[Qa]){i[Qa]=!0,m.forEach(function(C){C!=="selectionchange"&&(tl.has(C)||Ds(C,!1,i),Ds(C,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Qa]||(s[Qa]=!0,Ds("selectionchange",!1,s))}}function As(i,s,C,w){switch(Wi(s)){case 1:var $=Ua;break;case 4:$=vs;break;default:$=pa}C=$.bind(null,s,C,i),$=void 0,!In||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||($=!0),w?$!==void 0?i.addEventListener(s,C,{capture:!0,passive:$}):i.addEventListener(s,C,!0):$!==void 0?i.addEventListener(s,C,{passive:$}):i.addEventListener(s,C,!1)}function Za(i,s,C,w,$){var X=w;if(!(s&1)&&!(s&2)&&w!==null)e:for(;;){if(w===null)return;var te=w.tag;if(te===3||te===4){var me=w.stateNode.containerInfo;if(me===$||me.nodeType===8&&me.parentNode===$)break;if(te===4)for(te=w.return;te!==null;){var Ee=te.tag;if((Ee===3||Ee===4)&&(Ee=te.stateNode.containerInfo,Ee===$||Ee.nodeType===8&&Ee.parentNode===$))return;te=te.return}for(;me!==null;){if(te=oi(me),te===null)return;if(Ee=te.tag,Ee===5||Ee===6){w=X=te;continue e}me=me.parentNode}}w=w.return}Gr(function(){var Ae=X,Be=yn(C),Ge=[];e:{var Xe=Ya.get(i);if(Xe!==void 0){var pt=Er,jt=i;switch(i){case"keypress":if(cn(C)===0)break e;case"keydown":case"keyup":pt=Hi;break;case"focusin":jt="focus",pt=ga;break;case"focusout":jt="blur",pt=ga;break;case"beforeblur":case"afterblur":pt=ga;break;case"click":if(C.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pt=Zo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pt=Fi;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pt=bs;break;case Nt:case hn:case Lt:pt=za;break;case Ca:pt=_s;break;case"scroll":pt=ne;break;case"wheel":pt=Zs;break;case"copy":case"cut":case"paste":pt=Vi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pt=Xi}var _t=(s&4)!==0,Cn=!_t&&i==="scroll",Pe=_t?Xe!==null?Xe+"Capture":null:Xe;_t=[];for(var Ie=Ae,Me;Ie!==null;){Me=Ie;var rt=Me.stateNode;if(Me.tag===5&&rt!==null&&(Me=rt,Pe!==null&&(rt=En(Ie,Pe),rt!=null&&_t.push(Pi(Ie,rt,Me)))),Cn)break;Ie=Ie.return}0<_t.length&&(Xe=new pt(Xe,jt,null,C,Be),Ge.push({event:Xe,listeners:_t}))}}if(!(s&7)){e:{if(Xe=i==="mouseover"||i==="pointerover",pt=i==="mouseout"||i==="pointerout",Xe&&C!==tn&&(jt=C.relatedTarget||C.fromElement)&&(oi(jt)||jt[Wr]))break e;if((pt||Xe)&&(Xe=Be.window===Be?Be:(Xe=Be.ownerDocument)?Xe.defaultView||Xe.parentWindow:window,pt?(jt=C.relatedTarget||C.toElement,pt=Ae,jt=jt?oi(jt):null,jt!==null&&(Cn=er(jt),jt!==Cn||jt.tag!==5&&jt.tag!==6)&&(jt=null)):(pt=null,jt=Ae),pt!==jt)){if(_t=Zo,rt="onMouseLeave",Pe="onMouseEnter",Ie="mouse",(i==="pointerout"||i==="pointerover")&&(_t=Xi,rt="onPointerLeave",Pe="onPointerEnter",Ie="pointer"),Cn=pt==null?Xe:ta(pt),Me=jt==null?Xe:ta(jt),Xe=new _t(rt,Ie+"leave",pt,C,Be),Xe.target=Cn,Xe.relatedTarget=Me,rt=null,oi(Be)===Ae&&(_t=new _t(Pe,Ie+"enter",jt,C,Be),_t.target=Me,_t.relatedTarget=Cn,rt=_t),Cn=rt,pt&&jt)t:{for(_t=pt,Pe=jt,Ie=0,Me=_t;Me;Me=qi(Me))Ie++;for(Me=0,rt=Pe;rt;rt=qi(rt))Me++;for(;0<Ie-Me;)_t=qi(_t),Ie--;for(;0<Me-Ie;)Pe=qi(Pe),Me--;for(;Ie--;){if(_t===Pe||Pe!==null&&_t===Pe.alternate)break t;_t=qi(_t),Pe=qi(Pe)}_t=null}else _t=null;pt!==null&&Ea(Ge,Xe,pt,_t,!1),jt!==null&&Cn!==null&&Ea(Ge,Cn,jt,_t,!0)}}e:{if(Xe=Ae?ta(Ae):window,pt=Xe.nodeName&&Xe.nodeName.toLowerCase(),pt==="select"||pt==="input"&&Xe.type==="file")var It=ya;else if(Is(Xe))if(Ci)It=el;else{It=Ei;var wt=Os}else(pt=Xe.nodeName)&&pt.toLowerCase()==="input"&&(Xe.type==="checkbox"||Xe.type==="radio")&&(It=Ps);if(It&&(It=It(i,Ae))){zr(Ge,It,C,Be);break e}wt&&wt(i,Xe,Ae),i==="focusout"&&(wt=Xe._wrapperState)&&wt.controlled&&Xe.type==="number"&&He(Xe,"number",Xe.value)}switch(wt=Ae?ta(Ae):window,i){case"focusin":(Is(wt)||wt.contentEditable==="true")&&(ge=wt,Oe=Ae,De=null);break;case"focusout":De=Oe=ge=null;break;case"mousedown":Ue=!0;break;case"contextmenu":case"mouseup":case"dragend":Ue=!1,ft(Ge,C,Be);break;case"selectionchange":if(Ce)break;case"keydown":case"keyup":ft(Ge,C,Be)}var Rt;if(Yi)e:{switch(i){case"compositionstart":var kt="onCompositionStart";break e;case"compositionend":kt="onCompositionEnd";break e;case"compositionupdate":kt="onCompositionUpdate";break e}kt=void 0}else wo?Ha(i,C)&&(kt="onCompositionEnd"):i==="keydown"&&C.keyCode===229&&(kt="onCompositionStart");kt&&(To&&C.locale!=="ko"&&(wo||kt!=="onCompositionStart"?kt==="onCompositionEnd"&&wo&&(Rt=mr()):(hr=Be,so="value"in hr?hr.value:hr.textContent,wo=!0)),wt=Ja(Ae,kt),0<wt.length&&(kt=new Fa(kt,i,null,C,Be),Ge.push({event:kt,listeners:wt}),Rt?kt.data=Rt:(Rt=Es(C),Rt!==null&&(kt.data=Rt)))),(Rt=Cs?Js(i,C):ba(i,C))&&(Ae=Ja(Ae,"onBeforeInput"),0<Ae.length&&(Be=new Fa("onBeforeInput","beforeinput",null,C,Be),Ge.push({event:Be,listeners:Ae}),Be.data=Rt))}nl(Ge,s)})}function Pi(i,s,C){return{instance:i,listener:s,currentTarget:C}}function Ja(i,s){for(var C=s+"Capture",w=[];i!==null;){var $=i,X=$.stateNode;$.tag===5&&X!==null&&($=X,X=En(i,C),X!=null&&w.unshift(Pi(i,X,$)),X=En(i,s),X!=null&&w.push(Pi(i,X,$))),i=i.return}return w}function qi(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Ea(i,s,C,w,$){for(var X=s._reactName,te=[];C!==null&&C!==w;){var me=C,Ee=me.alternate,Ae=me.stateNode;if(Ee!==null&&Ee===w)break;me.tag===5&&Ae!==null&&(me=Ae,$?(Ee=En(C,X),Ee!=null&&te.unshift(Pi(C,Ee,me))):$||(Ee=En(C,X),Ee!=null&&te.push(Pi(C,Ee,me)))),C=C.return}te.length!==0&&i.push({event:s,listeners:te})}var wl=/\r\n?/g,Rl=/\u0000|\uFFFD/g;function rl(i){return(typeof i=="string"?i:""+i).replace(wl,"\n").replace(Rl,"")}function qa(i,s,C){if(s=rl(s),rl(i)!==s&&C)throw Error(o(425))}function ea(){}var Ts=null,ws=null;function es(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ia=typeof setTimeout=="function"?setTimeout:void 0,Bl=typeof clearTimeout=="function"?clearTimeout:void 0,ts=typeof Promise=="function"?Promise:void 0,ns=typeof queueMicrotask=="function"?queueMicrotask:typeof ts!="undefined"?function(s){return ts.resolve(null).then(s).catch(Rs)}:Ia;function Rs(i){setTimeout(function(){throw i})}function Oa(i,s){var C=s,w=0;do{var $=C.nextSibling;if(i.removeChild(C),$&&$.nodeType===8)if(C=$.data,C==="/$"){if(w===0){i.removeChild($),Mo(s);return}w--}else C!=="$"&&C!=="$?"&&C!=="$!"||w++;C=$}while(C);Mo(s)}function ni(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function Bs(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var C=i.data;if(C==="$"||C==="$!"||C==="$?"){if(s===0)return i;s--}else C==="/$"&&s++}i=i.previousSibling}return null}var ri=Math.random().toString(36).slice(2),ho="__reactFiber$"+ri,Pa="__reactProps$"+ri,Wr="__reactContainer$"+ri,Ks="__reactEvents$"+ri,ks="__reactListeners$"+ri,Kl="__reactHandles$"+ri;function oi(i){var s=i[ho];if(s)return s;for(var C=i.parentNode;C;){if(s=C[Wr]||C[ho]){if(C=s.alternate,s.child!==null||C!==null&&C.child!==null)for(i=Bs(i);i!==null;){if(C=i[ho])return C;i=Bs(i)}return s}i=C,C=i.parentNode}return null}function Mi(i){return i=i[ho]||i[Wr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ta(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(o(33))}function Ma(i){return i[Pa]||null}var Sa=[],Si=-1;function Ro(i){return{current:i}}function on(i){0>Si||(i.current=Sa[Si],Sa[Si]=null,Si--)}function rn(i,s){Si++,Sa[Si]=i.current,i.current=s}var ii={},zn=Ro(ii),Yn=Ro(!1),mo=ii;function na(i,s){var C=i.type.contextTypes;if(!C)return ii;var w=i.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===s)return w.__reactInternalMemoizedMaskedChildContext;var $={},X;for(X in C)$[X]=s[X];return w&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=$),$}function Sn(i){return i=i.childContextTypes,i!=null}function rs(){on(Yn),on(zn)}function kl(i,s,C){if(zn.current!==ii)throw Error(o(168));rn(zn,s),rn(Yn,C)}function Ls(i,s,C){var w=i.stateNode;if(s=s.childContextTypes,typeof w.getChildContext!="function")return C;w=w.getChildContext();for(var $ in w)if(!($ in s))throw Error(o(108,be(i)||"Unknown",$));return oe({},C,w)}function ra(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||ii,mo=zn.current,rn(zn,i),rn(Yn,Yn.current),!0}function ol(i,s,C){var w=i.stateNode;if(!w)throw Error(o(169));C?(i=Ls(i,s,mo),w.__reactInternalMemoizedMergedChildContext=i,on(Yn),on(zn),rn(zn,i)):on(Yn),rn(Yn,C)}var Bo=null,oa=!1,Ns=!1;function Us(i){Bo===null?Bo=[i]:Bo.push(i)}function Ec(i){oa=!0,Us(i)}function Fr(){if(!Ns&&Bo!==null){Ns=!0;var i=0,s=Vt;try{var C=Bo;for(Vt=1;i<C.length;i++){var w=C[i];do w=w(!0);while(w!==null)}Bo=null,oa=!1}catch($){throw Bo!==null&&(Bo=Bo.slice(i+1)),mn(kr,Fr),$}finally{Vt=s,Ns=!1}}return null}var Di=[],Ai=0,os=null,ia=0,Or=[],pr=0,Ko=null,ko=1,ai="";function aa(i,s){Di[Ai++]=ia,Di[Ai++]=os,os=i,ia=s}function is(i,s,C){Or[pr++]=ko,Or[pr++]=ai,Or[pr++]=Ko,Ko=i;var w=ko;i=ai;var $=32-Mn(w)-1;w&=~(1<<$),C+=1;var X=32-Mn(s)+$;if(30<X){var te=$-$%5;X=(w&(1<<te)-1).toString(32),w>>=te,$-=te,ko=1<<32-Mn(s)+$|C<<$|w,ai=X+i}else ko=1<<X|C<<$|w,ai=i}function il(i){i.return!==null&&(aa(i,1),is(i,1,0))}function al(i){for(;i===os;)os=Di[--Ai],Di[Ai]=null,ia=Di[--Ai],Di[Ai]=null;for(;i===Ko;)Ko=Or[--pr],Or[pr]=null,ai=Or[--pr],Or[pr]=null,ko=Or[--pr],Or[pr]=null}var Pr=null,Mr=null,un=!1,gr=null;function Ll(i,s){var C=jo(5,null,null,0);C.elementType="DELETED",C.stateNode=s,C.return=i,s=i.deletions,s===null?(i.deletions=[C],i.flags|=16):s.push(C)}function Nl(i,s){switch(i.tag){case 5:var C=i.type;return s=s.nodeType!==1||C.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,Pr=i,Mr=ni(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,Pr=i,Mr=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(C=Ko!==null?{id:ko,overflow:ai}:null,i.memoizedState={dehydrated:s,treeContext:C,retryLane:1073741824},C=jo(18,null,null,0),C.stateNode=s,C.return=i,i.child=C,Pr=i,Mr=null,!0):!1;default:return!1}}function T(i){return(i.mode&1)!==0&&(i.flags&128)===0}function R(i){if(un){var s=Mr;if(s){var C=s;if(!Nl(i,s)){if(T(i))throw Error(o(418));s=ni(C.nextSibling);var w=Pr;s&&Nl(i,s)?Ll(w,C):(i.flags=i.flags&-4097|2,un=!1,Pr=i)}}else{if(T(i))throw Error(o(418));i.flags=i.flags&-4097|2,un=!1,Pr=i}}}function z(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Pr=i}function W(i){if(i!==Pr)return!1;if(!un)return z(i),un=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!es(i.type,i.memoizedProps)),s&&(s=Mr)){if(T(i))throw K(),Error(o(418));for(;s;)Ll(i,s),s=ni(s.nextSibling)}if(z(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var C=i.data;if(C==="/$"){if(s===0){Mr=ni(i.nextSibling);break e}s--}else C!=="$"&&C!=="$!"&&C!=="$?"||s++}i=i.nextSibling}Mr=null}}else Mr=Pr?ni(i.stateNode.nextSibling):null;return!0}function K(){for(var i=Mr;i;)i=ni(i.nextSibling)}function J(){Mr=Pr=null,un=!1}function se(i){gr===null?gr=[i]:gr.push(i)}var ce=M.ReactCurrentBatchConfig;function xe(i,s){if(i&&i.defaultProps){s=oe({},s),i=i.defaultProps;for(var C in i)s[C]===void 0&&(s[C]=i[C]);return s}return s}var je=Ro(null),_e=null,Re=null,Le=null;function Se(){Le=Re=_e=null}function Ve(i){var s=je.current;on(je),i._currentValue=s}function Ze(i,s,C){for(;i!==null;){var w=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,w!==null&&(w.childLanes|=s)):w!==null&&(w.childLanes&s)!==s&&(w.childLanes|=s),i===C)break;i=i.return}}function nt(i,s){_e=i,Le=Re=null,i=i.dependencies,i!==null&&i.firstContext!==null&&(i.lanes&s&&(Dr=!0),i.firstContext=null)}function tt(i){var s=i._currentValue;if(Le!==i)if(i={context:i,memoizedValue:s,next:null},Re===null){if(_e===null)throw Error(o(308));Re=i,_e.dependencies={lanes:0,firstContext:i}}else Re=Re.next=i;return s}var ct=null;function Et(i){ct===null?ct=[i]:ct.push(i)}function ut(i,s,C,w){var $=s.interleaved;return $===null?(C.next=C,Et(s)):(C.next=$.next,$.next=C),s.interleaved=C,yt(i,w)}function yt(i,s){i.lanes|=s;var C=i.alternate;for(C!==null&&(C.lanes|=s),C=i,i=i.return;i!==null;)i.childLanes|=s,C=i.alternate,C!==null&&(C.childLanes|=s),C=i,i=i.return;return C.tag===3?C.stateNode:null}var Mt=!1;function At(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dt(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Kt(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function Ht(i,s,C){var w=i.updateQueue;if(w===null)return null;if(w=w.shared,Qt&2){var $=w.pending;return $===null?s.next=s:(s.next=$.next,$.next=s),w.pending=s,yt(i,C)}return $=w.interleaved,$===null?(s.next=s,Et(w)):(s.next=$.next,$.next=s),w.interleaved=s,yt(i,C)}function Bt(i,s,C){if(s=s.updateQueue,s!==null&&(s=s.shared,(C&4194240)!==0)){var w=s.lanes;w&=i.pendingLanes,C|=w,s.lanes=C,Eo(i,C)}}function St(i,s){var C=i.updateQueue,w=i.alternate;if(w!==null&&(w=w.updateQueue,C===w)){var $=null,X=null;if(C=C.firstBaseUpdate,C!==null){do{var te={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};X===null?$=X=te:X=X.next=te,C=C.next}while(C!==null);X===null?$=X=s:X=X.next=s}else $=X=s;C={baseState:w.baseState,firstBaseUpdate:$,lastBaseUpdate:X,shared:w.shared,effects:w.effects},i.updateQueue=C;return}i=C.lastBaseUpdate,i===null?C.firstBaseUpdate=s:i.next=s,C.lastBaseUpdate=s}function nn(i,s,C,w){var $=i.updateQueue;Mt=!1;var X=$.firstBaseUpdate,te=$.lastBaseUpdate,me=$.shared.pending;if(me!==null){$.shared.pending=null;var Ee=me,Ae=Ee.next;Ee.next=null,te===null?X=Ae:te.next=Ae,te=Ee;var Be=i.alternate;Be!==null&&(Be=Be.updateQueue,me=Be.lastBaseUpdate,me!==te&&(me===null?Be.firstBaseUpdate=Ae:me.next=Ae,Be.lastBaseUpdate=Ee))}if(X!==null){var Ge=$.baseState;te=0,Be=Ae=Ee=null,me=X;do{var Xe=me.lane,pt=me.eventTime;if((w&Xe)===Xe){Be!==null&&(Be=Be.next={eventTime:pt,lane:0,tag:me.tag,payload:me.payload,callback:me.callback,next:null});e:{var jt=i,_t=me;switch(Xe=s,pt=C,_t.tag){case 1:if(jt=_t.payload,typeof jt=="function"){Ge=jt.call(pt,Ge,Xe);break e}Ge=jt;break e;case 3:jt.flags=jt.flags&-65537|128;case 0:if(jt=_t.payload,Xe=typeof jt=="function"?jt.call(pt,Ge,Xe):jt,Xe==null)break e;Ge=oe({},Ge,Xe);break e;case 2:Mt=!0}}me.callback!==null&&me.lane!==0&&(i.flags|=64,Xe=$.effects,Xe===null?$.effects=[me]:Xe.push(me))}else pt={eventTime:pt,lane:Xe,tag:me.tag,payload:me.payload,callback:me.callback,next:null},Be===null?(Ae=Be=pt,Ee=Ge):Be=Be.next=pt,te|=Xe;if(me=me.next,me===null){if(me=$.shared.pending,me===null)break;Xe=me,me=Xe.next,Xe.next=null,$.lastBaseUpdate=Xe,$.shared.pending=null}}while(!0);if(Be===null&&(Ee=Ge),$.baseState=Ee,$.firstBaseUpdate=Ae,$.lastBaseUpdate=Be,s=$.shared.interleaved,s!==null){$=s;do te|=$.lane,$=$.next;while($!==s)}else X===null&&($.shared.lanes=0);Ba|=te,i.lanes=te,i.memoizedState=Ge}}function xn(i,s,C){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var w=i[s],$=w.callback;if($!==null){if(w.callback=null,w=C,typeof $!="function")throw Error(o(191,$));$.call(w)}}}var gn=new n.Component().refs;function dn(i,s,C,w){s=i.memoizedState,C=C(w,s),C=C==null?s:oe({},s,C),i.memoizedState=C,i.lanes===0&&(i.updateQueue.baseState=C)}var Dn={isMounted:function(s){return(s=s._reactInternals)?er(s)===s:!1},enqueueSetState:function(s,C,w){s=s._reactInternals;var $=jr(),X=fa(s),te=Kt($,X);te.payload=C,w!=null&&(te.callback=w),C=Ht(s,te,X),C!==null&&(Wo(C,s,X,$),Bt(C,s,X))},enqueueReplaceState:function(s,C,w){s=s._reactInternals;var $=jr(),X=fa(s),te=Kt($,X);te.tag=1,te.payload=C,w!=null&&(te.callback=w),C=Ht(s,te,X),C!==null&&(Wo(C,s,X,$),Bt(C,s,X))},enqueueForceUpdate:function(s,C){s=s._reactInternals;var w=jr(),$=fa(s),X=Kt(w,$);X.tag=2,C!=null&&(X.callback=C),C=Ht(s,X,$),C!==null&&(Wo(C,s,$,w),Bt(C,s,$))}};function Ti(i,s,C,w,$,X,te){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(w,X,te):s.prototype&&s.prototype.isPureReactComponent?!Ir(C,w)||!Ir($,X):!0}function vo(i,s,C){var w=!1,$=ii,X=s.contextType;return typeof X=="object"&&X!==null?X=tt(X):($=Sn(s)?mo:zn.current,w=s.contextTypes,X=(w=w!=null)?na(i,$):ii),s=new s(C,X),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Dn,i.stateNode=s,s._reactInternals=i,w&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=$,i.__reactInternalMemoizedMaskedChildContext=X),s}function Da(i,s,C,w){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(C,w),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(C,w),s.state!==i&&Dn.enqueueReplaceState(s,s.state,null)}function Aa(i,s,C,w){var $=i.stateNode;$.props=C,$.state=i.memoizedState,$.refs=gn,At(i);var X=s.contextType;typeof X=="object"&&X!==null?$.context=tt(X):(X=Sn(s)?mo:zn.current,$.context=na(i,X)),$.state=i.memoizedState,X=s.getDerivedStateFromProps,typeof X=="function"&&(dn(i,s,X,C),$.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"||typeof $.UNSAFE_componentWillMount!="function"&&typeof $.componentWillMount!="function"||(s=$.state,typeof $.componentWillMount=="function"&&$.componentWillMount(),typeof $.UNSAFE_componentWillMount=="function"&&$.UNSAFE_componentWillMount(),s!==$.state&&Dn.enqueueReplaceState($,$.state,null),nn(i,C,$,w),$.state=i.memoizedState),typeof $.componentDidMount=="function"&&(i.flags|=4194308)}function Lo(i,s,C){if(i=C.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(C._owner){if(C=C._owner,C){if(C.tag!==1)throw Error(o(309));var w=C.stateNode}if(!w)throw Error(o(147,i));var $=w,X=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===X?s.ref:(s=function(me){var Ee=$.refs;Ee===gn&&(Ee=$.refs={}),me===null?delete Ee[X]:Ee[X]=me},s._stringRef=X,s)}if(typeof i!="string")throw Error(o(284));if(!C._owner)throw Error(o(290,i))}return i}function wi(i,s){throw i=Object.prototype.toString.call(s),Error(o(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function Ri(i){var s=i._init;return s(i._payload)}function No(i){function s(Pe,Ie){if(i){var Me=Pe.deletions;Me===null?(Pe.deletions=[Ie],Pe.flags|=16):Me.push(Ie)}}function C(Pe,Ie){if(!i)return null;for(;Ie!==null;)s(Pe,Ie),Ie=Ie.sibling;return null}function w(Pe,Ie){for(Pe=new Map;Ie!==null;)Ie.key!==null?Pe.set(Ie.key,Ie):Pe.set(Ie.index,Ie),Ie=Ie.sibling;return Pe}function $(Pe,Ie){return Pe=ma(Pe,Ie),Pe.index=0,Pe.sibling=null,Pe}function X(Pe,Ie,Me){return Pe.index=Me,i?(Me=Pe.alternate,Me!==null?(Me=Me.index,Me<Ie?(Pe.flags|=2,Ie):Me):(Pe.flags|=2,Ie)):(Pe.flags|=1048576,Ie)}function te(Pe){return i&&Pe.alternate===null&&(Pe.flags|=2),Pe}function me(Pe,Ie,Me,rt){return Ie===null||Ie.tag!==6?(Ie=gc(Me,Pe.mode,rt),Ie.return=Pe,Ie):(Ie=$(Ie,Me),Ie.return=Pe,Ie)}function Ee(Pe,Ie,Me,rt){var It=Me.type;return It===B?Be(Pe,Ie,Me.props.children,rt,Me.key):Ie!==null&&(Ie.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===G&&Ri(It)===Ie.type)?(rt=$(Ie,Me.props),rt.ref=Lo(Pe,Ie,Me),rt.return=Pe,rt):(rt=Cl(Me.type,Me.key,Me.props,null,Pe.mode,rt),rt.ref=Lo(Pe,Ie,Me),rt.return=Pe,rt)}function Ae(Pe,Ie,Me,rt){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Me.containerInfo||Ie.stateNode.implementation!==Me.implementation?(Ie=xc(Me,Pe.mode,rt),Ie.return=Pe,Ie):(Ie=$(Ie,Me.children||[]),Ie.return=Pe,Ie)}function Be(Pe,Ie,Me,rt,It){return Ie===null||Ie.tag!==7?(Ie=Na(Me,Pe.mode,rt,It),Ie.return=Pe,Ie):(Ie=$(Ie,Me),Ie.return=Pe,Ie)}function Ge(Pe,Ie,Me){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number")return Ie=gc(""+Ie,Pe.mode,Me),Ie.return=Pe,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case D:return Me=Cl(Ie.type,Ie.key,Ie.props,null,Pe.mode,Me),Me.ref=Lo(Pe,null,Ie),Me.return=Pe,Me;case A:return Ie=xc(Ie,Pe.mode,Me),Ie.return=Pe,Ie;case G:var rt=Ie._init;return Ge(Pe,rt(Ie._payload),Me)}if(Ne(Ie)||Z(Ie))return Ie=Na(Ie,Pe.mode,Me,null),Ie.return=Pe,Ie;wi(Pe,Ie)}return null}function Xe(Pe,Ie,Me,rt){var It=Ie!==null?Ie.key:null;if(typeof Me=="string"&&Me!==""||typeof Me=="number")return It!==null?null:me(Pe,Ie,""+Me,rt);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case D:return Me.key===It?Ee(Pe,Ie,Me,rt):null;case A:return Me.key===It?Ae(Pe,Ie,Me,rt):null;case G:return It=Me._init,Xe(Pe,Ie,It(Me._payload),rt)}if(Ne(Me)||Z(Me))return It!==null?null:Be(Pe,Ie,Me,rt,null);wi(Pe,Me)}return null}function pt(Pe,Ie,Me,rt,It){if(typeof rt=="string"&&rt!==""||typeof rt=="number")return Pe=Pe.get(Me)||null,me(Ie,Pe,""+rt,It);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case D:return Pe=Pe.get(rt.key===null?Me:rt.key)||null,Ee(Ie,Pe,rt,It);case A:return Pe=Pe.get(rt.key===null?Me:rt.key)||null,Ae(Ie,Pe,rt,It);case G:var wt=rt._init;return pt(Pe,Ie,Me,wt(rt._payload),It)}if(Ne(rt)||Z(rt))return Pe=Pe.get(Me)||null,Be(Ie,Pe,rt,It,null);wi(Ie,rt)}return null}function jt(Pe,Ie,Me,rt){for(var It=null,wt=null,Rt=Ie,kt=Ie=0,Fn=null;Rt!==null&&kt<Me.length;kt++){Rt.index>kt?(Fn=Rt,Rt=null):Fn=Rt.sibling;var qt=Xe(Pe,Rt,Me[kt],rt);if(qt===null){Rt===null&&(Rt=Fn);break}i&&Rt&&qt.alternate===null&&s(Pe,Rt),Ie=X(qt,Ie,kt),wt===null?It=qt:wt.sibling=qt,wt=qt,Rt=Fn}if(kt===Me.length)return C(Pe,Rt),un&&aa(Pe,kt),It;if(Rt===null){for(;kt<Me.length;kt++)Rt=Ge(Pe,Me[kt],rt),Rt!==null&&(Ie=X(Rt,Ie,kt),wt===null?It=Rt:wt.sibling=Rt,wt=Rt);return un&&aa(Pe,kt),It}for(Rt=w(Pe,Rt);kt<Me.length;kt++)Fn=pt(Rt,Pe,kt,Me[kt],rt),Fn!==null&&(i&&Fn.alternate!==null&&Rt.delete(Fn.key===null?kt:Fn.key),Ie=X(Fn,Ie,kt),wt===null?It=Fn:wt.sibling=Fn,wt=Fn);return i&&Rt.forEach(function(va){return s(Pe,va)}),un&&aa(Pe,kt),It}function _t(Pe,Ie,Me,rt){var It=Z(Me);if(typeof It!="function")throw Error(o(150));if(Me=It.call(Me),Me==null)throw Error(o(151));for(var wt=It=null,Rt=Ie,kt=Ie=0,Fn=null,qt=Me.next();Rt!==null&&!qt.done;kt++,qt=Me.next()){Rt.index>kt?(Fn=Rt,Rt=null):Fn=Rt.sibling;var va=Xe(Pe,Rt,qt.value,rt);if(va===null){Rt===null&&(Rt=Fn);break}i&&Rt&&va.alternate===null&&s(Pe,Rt),Ie=X(va,Ie,kt),wt===null?It=va:wt.sibling=va,wt=va,Rt=Fn}if(qt.done)return C(Pe,Rt),un&&aa(Pe,kt),It;if(Rt===null){for(;!qt.done;kt++,qt=Me.next())qt=Ge(Pe,qt.value,rt),qt!==null&&(Ie=X(qt,Ie,kt),wt===null?It=qt:wt.sibling=qt,wt=qt);return un&&aa(Pe,kt),It}for(Rt=w(Pe,Rt);!qt.done;kt++,qt=Me.next())qt=pt(Rt,Pe,kt,qt.value,rt),qt!==null&&(i&&qt.alternate!==null&&Rt.delete(qt.key===null?kt:qt.key),Ie=X(qt,Ie,kt),wt===null?It=qt:wt.sibling=qt,wt=qt);return i&&Rt.forEach(function(pd){return s(Pe,pd)}),un&&aa(Pe,kt),It}function Cn(Pe,Ie,Me,rt){if(typeof Me=="object"&&Me!==null&&Me.type===B&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case D:e:{for(var It=Me.key,wt=Ie;wt!==null;){if(wt.key===It){if(It=Me.type,It===B){if(wt.tag===7){C(Pe,wt.sibling),Ie=$(wt,Me.props.children),Ie.return=Pe,Pe=Ie;break e}}else if(wt.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===G&&Ri(It)===wt.type){C(Pe,wt.sibling),Ie=$(wt,Me.props),Ie.ref=Lo(Pe,wt,Me),Ie.return=Pe,Pe=Ie;break e}C(Pe,wt);break}else s(Pe,wt);wt=wt.sibling}Me.type===B?(Ie=Na(Me.props.children,Pe.mode,rt,Me.key),Ie.return=Pe,Pe=Ie):(rt=Cl(Me.type,Me.key,Me.props,null,Pe.mode,rt),rt.ref=Lo(Pe,Ie,Me),rt.return=Pe,Pe=rt)}return te(Pe);case A:e:{for(wt=Me.key;Ie!==null;){if(Ie.key===wt)if(Ie.tag===4&&Ie.stateNode.containerInfo===Me.containerInfo&&Ie.stateNode.implementation===Me.implementation){C(Pe,Ie.sibling),Ie=$(Ie,Me.children||[]),Ie.return=Pe,Pe=Ie;break e}else{C(Pe,Ie);break}else s(Pe,Ie);Ie=Ie.sibling}Ie=xc(Me,Pe.mode,rt),Ie.return=Pe,Pe=Ie}return te(Pe);case G:return wt=Me._init,Cn(Pe,Ie,wt(Me._payload),rt)}if(Ne(Me))return jt(Pe,Ie,Me,rt);if(Z(Me))return _t(Pe,Ie,Me,rt);wi(Pe,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,Ie!==null&&Ie.tag===6?(C(Pe,Ie.sibling),Ie=$(Ie,Me),Ie.return=Pe,Pe=Ie):(C(Pe,Ie),Ie=gc(Me,Pe.mode,rt),Ie.return=Pe,Pe=Ie),te(Pe)):C(Pe,Ie)}return Cn}var po=No(!0),Ta=No(!1),Vr={},Sr=Ro(Vr),wa=Ro(Vr),Bi=Ro(Vr);function Ki(i){if(i===Vr)throw Error(o(174));return i}function as(i,s){switch(rn(Bi,s),rn(wa,i),rn(Sr,Vr),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Xt(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=Xt(s,i)}on(Sr),rn(Sr,s)}function sa(){on(Sr),on(wa),on(Bi)}function sl(i){Ki(Bi.current);var s=Ki(Sr.current),C=Xt(s,i.type);s!==C&&(rn(wa,i),rn(Sr,C))}function ss(i){wa.current===i&&(on(Sr),on(wa))}var sn=Ro(0);function ls(i){for(var s=i;s!==null;){if(s.tag===13){var C=s.memoizedState;if(C!==null&&(C=C.dehydrated,C===null||C.data==="$?"||C.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var $s=[];function Uo(){for(var i=0;i<$s.length;i++)$s[i]._workInProgressVersionPrimary=null;$s.length=0}var ki=M.ReactCurrentDispatcher,cs=M.ReactCurrentBatchConfig,si=0,an=null,jn=null,_n=null,Ra=!1,la=!1,zs=0,Lu=0;function ir(){throw Error(o(321))}function Ul(i,s){if(s===null)return!1;for(var C=0;C<s.length&&C<i.length;C++)if(!$n(i[C],s[C]))return!1;return!0}function $l(i,s,C,w,$,X){if(si=X,an=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,ki.current=i===null||i.memoizedState===null?zu:Wu,i=C(w,$),la){X=0;do{if(la=!1,zs=0,25<=X)throw Error(o(301));X+=1,_n=jn=null,s.updateQueue=null,ki.current=Fu,i=C(w,$)}while(la)}if(ki.current=ul,s=jn!==null&&jn.next!==null,si=0,_n=jn=an=null,Ra=!1,s)throw Error(o(300));return i}function zl(){var i=zs!==0;return zs=0,i}function li(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?an.memoizedState=_n=i:_n=_n.next=i,_n}function go(){if(jn===null){var i=an.alternate;i=i!==null?i.memoizedState:null}else i=jn.next;var s=_n===null?an.memoizedState:_n.next;if(s!==null)_n=s,jn=i;else{if(i===null)throw Error(o(310));jn=i,i={memoizedState:jn.memoizedState,baseState:jn.baseState,baseQueue:jn.baseQueue,queue:jn.queue,next:null},_n===null?an.memoizedState=_n=i:_n=_n.next=i}return _n}function Ws(i,s){return typeof s=="function"?s(i):s}function Wl(i){var s=go(),C=s.queue;if(C===null)throw Error(o(311));C.lastRenderedReducer=i;var w=jn,$=w.baseQueue,X=C.pending;if(X!==null){if($!==null){var te=$.next;$.next=X.next,X.next=te}w.baseQueue=$=X,C.pending=null}if($!==null){X=$.next,w=w.baseState;var me=te=null,Ee=null,Ae=X;do{var Be=Ae.lane;if((si&Be)===Be)Ee!==null&&(Ee=Ee.next={lane:0,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null}),w=Ae.hasEagerState?Ae.eagerState:i(w,Ae.action);else{var Ge={lane:Be,action:Ae.action,hasEagerState:Ae.hasEagerState,eagerState:Ae.eagerState,next:null};Ee===null?(me=Ee=Ge,te=w):Ee=Ee.next=Ge,an.lanes|=Be,Ba|=Be}Ae=Ae.next}while(Ae!==null&&Ae!==X);Ee===null?te=w:Ee.next=me,$n(w,s.memoizedState)||(Dr=!0),s.memoizedState=w,s.baseState=te,s.baseQueue=Ee,C.lastRenderedState=w}if(i=C.interleaved,i!==null){$=i;do X=$.lane,an.lanes|=X,Ba|=X,$=$.next;while($!==i)}else $===null&&(C.lanes=0);return[s.memoizedState,C.dispatch]}function Fl(i){var s=go(),C=s.queue;if(C===null)throw Error(o(311));C.lastRenderedReducer=i;var w=C.dispatch,$=C.pending,X=s.memoizedState;if($!==null){C.pending=null;var te=$=$.next;do X=i(X,te.action),te=te.next;while(te!==$);$n(X,s.memoizedState)||(Dr=!0),s.memoizedState=X,s.baseQueue===null&&(s.baseState=X),C.lastRenderedState=X}return[X,w]}function Ic(){}function Oc(i,s){var C=an,w=go(),$=s(),X=!$n(w.memoizedState,$);if(X&&(w.memoizedState=$,Dr=!0),w=w.queue,Vl(Sc.bind(null,C,w,i),[i]),w.getSnapshot!==s||X||_n!==null&&_n.memoizedState.tag&1){if(C.flags|=2048,Fs(9,Mc.bind(null,C,w,$,s),void 0,null),Wn===null)throw Error(o(349));si&30||Pc(C,s,$)}return $}function Pc(i,s,C){i.flags|=16384,i={getSnapshot:s,value:C},s=an.updateQueue,s===null?(s={lastEffect:null,stores:null},an.updateQueue=s,s.stores=[i]):(C=s.stores,C===null?s.stores=[i]:C.push(i))}function Mc(i,s,C,w){s.value=C,s.getSnapshot=w,Dc(s)&&Ac(i)}function Sc(i,s,C){return C(function(){Dc(s)&&Ac(i)})}function Dc(i){var s=i.getSnapshot;i=i.value;try{var C=s();return!$n(i,C)}catch(w){return!0}}function Ac(i){var s=yt(i,1);s!==null&&Wo(s,i,1,-1)}function Tc(i){var s=li();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:i},s.queue=i,i=i.dispatch=$u.bind(null,an,i),[s.memoizedState,i]}function Fs(i,s,C,w){return i={tag:i,create:s,destroy:C,deps:w,next:null},s=an.updateQueue,s===null?(s={lastEffect:null,stores:null},an.updateQueue=s,s.lastEffect=i.next=i):(C=s.lastEffect,C===null?s.lastEffect=i.next=i:(w=C.next,C.next=i,i.next=w,s.lastEffect=i)),i}function wc(){return go().memoizedState}function ll(i,s,C,w){var $=li();an.flags|=i,$.memoizedState=Fs(1|s,C,void 0,w===void 0?null:w)}function cl(i,s,C,w){var $=go();w=w===void 0?null:w;var X=void 0;if(jn!==null){var te=jn.memoizedState;if(X=te.destroy,w!==null&&Ul(w,te.deps)){$.memoizedState=Fs(s,C,X,w);return}}an.flags|=i,$.memoizedState=Fs(1|s,C,X,w)}function Rc(i,s){return ll(8390656,8,i,s)}function Vl(i,s){return cl(2048,8,i,s)}function Bc(i,s){return cl(4,2,i,s)}function Kc(i,s){return cl(4,4,i,s)}function kc(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Lc(i,s,C){return C=C!=null?C.concat([i]):null,cl(4,4,kc.bind(null,s,i),C)}function Hl(){}function Nc(i,s){var C=go();s=s===void 0?null:s;var w=C.memoizedState;return w!==null&&s!==null&&Ul(s,w[1])?w[0]:(C.memoizedState=[i,s],i)}function Uc(i,s){var C=go();s=s===void 0?null:s;var w=C.memoizedState;return w!==null&&s!==null&&Ul(s,w[1])?w[0]:(i=i(),C.memoizedState=[i,s],i)}function $c(i,s,C){return si&21?($n(C,s)||(C=Co(),an.lanes|=C,Ba|=C,i.baseState=!0),s):(i.baseState&&(i.baseState=!1,Dr=!0),i.memoizedState=C)}function Nu(i,s){var C=Vt;Vt=C!==0&&4>C?C:4,i(!0);var w=cs.transition;cs.transition={};try{i(!1),s()}finally{Vt=C,cs.transition=w}}function zc(){return go().memoizedState}function Uu(i,s,C){var w=fa(i);if(C={lane:w,action:C,hasEagerState:!1,eagerState:null,next:null},Wc(i))Fc(s,C);else if(C=ut(i,s,C,w),C!==null){var $=jr();Wo(C,i,w,$),Vc(C,s,w)}}function $u(i,s,C){var w=fa(i),$={lane:w,action:C,hasEagerState:!1,eagerState:null,next:null};if(Wc(i))Fc(s,$);else{var X=i.alternate;if(i.lanes===0&&(X===null||X.lanes===0)&&(X=s.lastRenderedReducer,X!==null))try{var te=s.lastRenderedState,me=X(te,C);if($.hasEagerState=!0,$.eagerState=me,$n(me,te)){var Ee=s.interleaved;Ee===null?($.next=$,Et(s)):($.next=Ee.next,Ee.next=$),s.interleaved=$;return}}catch(Ae){}finally{}C=ut(i,s,$,w),C!==null&&($=jr(),Wo(C,i,w,$),Vc(C,s,w))}}function Wc(i){var s=i.alternate;return i===an||s!==null&&s===an}function Fc(i,s){la=Ra=!0;var C=i.pending;C===null?s.next=s:(s.next=C.next,C.next=s),i.pending=s}function Vc(i,s,C){if(C&4194240){var w=s.lanes;w&=i.pendingLanes,C|=w,s.lanes=C,Eo(i,C)}}var ul={readContext:tt,useCallback:ir,useContext:ir,useEffect:ir,useImperativeHandle:ir,useInsertionEffect:ir,useLayoutEffect:ir,useMemo:ir,useReducer:ir,useRef:ir,useState:ir,useDebugValue:ir,useDeferredValue:ir,useTransition:ir,useMutableSource:ir,useSyncExternalStore:ir,useId:ir,unstable_isNewReconciler:!1},zu={readContext:tt,useCallback:function(s,C){return li().memoizedState=[s,C===void 0?null:C],s},useContext:tt,useEffect:Rc,useImperativeHandle:function(s,C,w){return w=w!=null?w.concat([s]):null,ll(4194308,4,kc.bind(null,C,s),w)},useLayoutEffect:function(s,C){return ll(4194308,4,s,C)},useInsertionEffect:function(s,C){return ll(4,2,s,C)},useMemo:function(s,C){var w=li();return C=C===void 0?null:C,s=s(),w.memoizedState=[s,C],s},useReducer:function(s,C,w){var $=li();return C=w!==void 0?w(C):C,$.memoizedState=$.baseState=C,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:C},$.queue=s,s=s.dispatch=Uu.bind(null,an,s),[$.memoizedState,s]},useRef:function(s){var C=li();return s={current:s},C.memoizedState=s},useState:Tc,useDebugValue:Hl,useDeferredValue:function(s){return li().memoizedState=s},useTransition:function(){var s=Tc(!1),C=s[0];return s=Nu.bind(null,s[1]),li().memoizedState=s,[C,s]},useMutableSource:function(){},useSyncExternalStore:function(s,C,w){var $=an,X=li();if(un){if(w===void 0)throw Error(o(407));w=w()}else{if(w=C(),Wn===null)throw Error(o(349));si&30||Pc($,C,w)}X.memoizedState=w;var te={value:w,getSnapshot:C};return X.queue=te,Rc(Sc.bind(null,$,te,s),[s]),$.flags|=2048,Fs(9,Mc.bind(null,$,te,w,C),void 0,null),w},useId:function(){var s=li(),C=Wn.identifierPrefix;if(un){var w=ai,$=ko;w=($&~(1<<32-Mn($)-1)).toString(32)+w,C=":"+C+"R"+w,w=zs++,0<w&&(C+="H"+w.toString(32)),C+=":"}else w=Lu++,C=":"+C+"r"+w.toString(32)+":";return s.memoizedState=C},unstable_isNewReconciler:!1},Wu={readContext:tt,useCallback:Nc,useContext:tt,useEffect:Vl,useImperativeHandle:Lc,useInsertionEffect:Bc,useLayoutEffect:Kc,useMemo:Uc,useReducer:Wl,useRef:wc,useState:function(){return Wl(Ws)},useDebugValue:Hl,useDeferredValue:function(s){var C=go();return $c(C,jn.memoizedState,s)},useTransition:function(){var s=Wl(Ws)[0],C=go().memoizedState;return[s,C]},useMutableSource:Ic,useSyncExternalStore:Oc,useId:zc,unstable_isNewReconciler:!1},Fu={readContext:tt,useCallback:Nc,useContext:tt,useEffect:Vl,useImperativeHandle:Lc,useInsertionEffect:Bc,useLayoutEffect:Kc,useMemo:Uc,useReducer:Fl,useRef:wc,useState:function(){return Fl(Ws)},useDebugValue:Hl,useDeferredValue:function(s){var C=go();return jn===null?C.memoizedState=s:$c(C,jn.memoizedState,s)},useTransition:function(){var s=Fl(Ws)[0],C=go().memoizedState;return[s,C]},useMutableSource:Ic,useSyncExternalStore:Oc,useId:zc,unstable_isNewReconciler:!1};function us(i,s){try{var C="",w=s;do C+=ve(w),w=w.return;while(w);var $=C}catch(X){$="\nError generating stack: "+X.message+"\n"+X.stack}return{value:i,source:s,stack:$,digest:null}}function Xl(i,s,C){return{value:i,source:null,stack:C!=null?C:null,digest:s!=null?s:null}}function Gl(i,s){try{console.error(s.value)}catch(C){setTimeout(function(){throw C})}}var Vu=typeof WeakMap=="function"?WeakMap:Map;function Hc(i,s,C){C=Kt(-1,C),C.tag=3,C.payload={element:null};var w=s.value;return C.callback=function(){gl||(gl=!0,cc=w),Gl(i,s)},C}function Xc(i,s,C){C=Kt(-1,C),C.tag=3;var w=i.type.getDerivedStateFromError;if(typeof w=="function"){var $=s.value;C.payload=function(){return w($)},C.callback=function(){Gl(i,s)}}var X=i.stateNode;return X!==null&&typeof X.componentDidCatch=="function"&&(C.callback=function(){Gl(i,s),typeof w!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var te=s.stack;this.componentDidCatch(s.value,{componentStack:te!==null?te:""})}),C}function Gc(i,s,C){var w=i.pingCache;if(w===null){w=i.pingCache=new Vu;var $=new Set;w.set(s,$)}else $=w.get(s),$===void 0&&($=new Set,w.set(s,$));$.has(C)||($.add(C),i=id.bind(null,i,s,C),s.then(i,i))}function Yc(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function Qc(i,s,C,w,$){return i.mode&1?(i.flags|=65536,i.lanes=$,i):(i===s?i.flags|=65536:(i.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(s=Kt(-1,1),s.tag=2,Ht(C,s,1))),C.lanes|=1),i)}var Hu=M.ReactCurrentOwner,Dr=!1;function xr(i,s,C,w){s.child=i===null?Ta(s,null,C,w):po(s,i.child,C,w)}function Zc(i,s,C,w,$){C=C.render;var X=s.ref;return nt(s,$),w=$l(i,s,C,w,X,$),C=zl(),i!==null&&!Dr?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~$,Li(i,s,$)):(un&&C&&il(s),s.flags|=1,xr(i,s,w,$),s.child)}function Jc(i,s,C,w,$){if(i===null){var X=C.type;return typeof X=="function"&&!pc(X)&&X.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(s.tag=15,s.type=X,qc(i,s,X,w,$)):(i=Cl(C.type,null,w,s,s.mode,$),i.ref=s.ref,i.return=s,s.child=i)}if(X=i.child,!(i.lanes&$)){var te=X.memoizedProps;if(C=C.compare,C=C!==null?C:Ir,C(te,w)&&i.ref===s.ref)return Li(i,s,$)}return s.flags|=1,i=ma(X,w),i.ref=s.ref,i.return=s,s.child=i}function qc(i,s,C,w,$){if(i!==null){var X=i.memoizedProps;if(Ir(X,w)&&i.ref===s.ref)if(Dr=!1,s.pendingProps=w=X,(i.lanes&$)!==0)i.flags&131072&&(Dr=!0);else return s.lanes=i.lanes,Li(i,s,$)}return Yl(i,s,C,w,$)}function eu(i,s,C){var w=s.pendingProps,$=w.children,X=i!==null?i.memoizedState:null;if(w.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},rn(fs,Hr),Hr|=C;else{if(!(C&1073741824))return i=X!==null?X.baseLanes|C:C,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,rn(fs,Hr),Hr|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=X!==null?X.baseLanes:C,rn(fs,Hr),Hr|=w}else X!==null?(w=X.baseLanes|C,s.memoizedState=null):w=C,rn(fs,Hr),Hr|=w;return xr(i,s,$,C),s.child}function tu(i,s){var C=s.ref;(i===null&&C!==null||i!==null&&i.ref!==C)&&(s.flags|=512,s.flags|=2097152)}function Yl(i,s,C,w,$){var X=Sn(C)?mo:zn.current;return X=na(s,X),nt(s,$),C=$l(i,s,C,w,X,$),w=zl(),i!==null&&!Dr?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~$,Li(i,s,$)):(un&&w&&il(s),s.flags|=1,xr(i,s,C,$),s.child)}function nu(i,s,C,w,$){if(Sn(C)){var X=!0;ra(s)}else X=!1;if(nt(s,$),s.stateNode===null)fl(i,s),vo(s,C,w),Aa(s,C,w,$),w=!0;else if(i===null){var te=s.stateNode,me=s.memoizedProps;te.props=me;var Ee=te.context,Ae=C.contextType;typeof Ae=="object"&&Ae!==null?Ae=tt(Ae):(Ae=Sn(C)?mo:zn.current,Ae=na(s,Ae));var Be=C.getDerivedStateFromProps,Ge=typeof Be=="function"||typeof te.getSnapshotBeforeUpdate=="function";Ge||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(me!==w||Ee!==Ae)&&Da(s,te,w,Ae),Mt=!1;var Xe=s.memoizedState;te.state=Xe,nn(s,w,te,$),Ee=s.memoizedState,me!==w||Xe!==Ee||Yn.current||Mt?(typeof Be=="function"&&(dn(s,C,Be,w),Ee=s.memoizedState),(me=Mt||Ti(s,C,me,w,Xe,Ee,Ae))?(Ge||typeof te.UNSAFE_componentWillMount!="function"&&typeof te.componentWillMount!="function"||(typeof te.componentWillMount=="function"&&te.componentWillMount(),typeof te.UNSAFE_componentWillMount=="function"&&te.UNSAFE_componentWillMount()),typeof te.componentDidMount=="function"&&(s.flags|=4194308)):(typeof te.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=w,s.memoizedState=Ee),te.props=w,te.state=Ee,te.context=Ae,w=me):(typeof te.componentDidMount=="function"&&(s.flags|=4194308),w=!1)}else{te=s.stateNode,Dt(i,s),me=s.memoizedProps,Ae=s.type===s.elementType?me:xe(s.type,me),te.props=Ae,Ge=s.pendingProps,Xe=te.context,Ee=C.contextType,typeof Ee=="object"&&Ee!==null?Ee=tt(Ee):(Ee=Sn(C)?mo:zn.current,Ee=na(s,Ee));var pt=C.getDerivedStateFromProps;(Be=typeof pt=="function"||typeof te.getSnapshotBeforeUpdate=="function")||typeof te.UNSAFE_componentWillReceiveProps!="function"&&typeof te.componentWillReceiveProps!="function"||(me!==Ge||Xe!==Ee)&&Da(s,te,w,Ee),Mt=!1,Xe=s.memoizedState,te.state=Xe,nn(s,w,te,$);var jt=s.memoizedState;me!==Ge||Xe!==jt||Yn.current||Mt?(typeof pt=="function"&&(dn(s,C,pt,w),jt=s.memoizedState),(Ae=Mt||Ti(s,C,Ae,w,Xe,jt,Ee)||!1)?(Be||typeof te.UNSAFE_componentWillUpdate!="function"&&typeof te.componentWillUpdate!="function"||(typeof te.componentWillUpdate=="function"&&te.componentWillUpdate(w,jt,Ee),typeof te.UNSAFE_componentWillUpdate=="function"&&te.UNSAFE_componentWillUpdate(w,jt,Ee)),typeof te.componentDidUpdate=="function"&&(s.flags|=4),typeof te.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof te.componentDidUpdate!="function"||me===i.memoizedProps&&Xe===i.memoizedState||(s.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||me===i.memoizedProps&&Xe===i.memoizedState||(s.flags|=1024),s.memoizedProps=w,s.memoizedState=jt),te.props=w,te.state=jt,te.context=Ee,w=Ae):(typeof te.componentDidUpdate!="function"||me===i.memoizedProps&&Xe===i.memoizedState||(s.flags|=4),typeof te.getSnapshotBeforeUpdate!="function"||me===i.memoizedProps&&Xe===i.memoizedState||(s.flags|=1024),w=!1)}return Ql(i,s,C,w,X,$)}function Ql(i,s,C,w,$,X){tu(i,s);var te=(s.flags&128)!==0;if(!w&&!te)return $&&ol(s,C,!1),Li(i,s,X);w=s.stateNode,Hu.current=s;var me=te&&typeof C.getDerivedStateFromError!="function"?null:w.render();return s.flags|=1,i!==null&&te?(s.child=po(s,i.child,null,X),s.child=po(s,null,me,X)):xr(i,s,me,X),s.memoizedState=w.state,$&&ol(s,C,!0),s.child}function ru(i){var s=i.stateNode;s.pendingContext?kl(i,s.pendingContext,s.pendingContext!==s.context):s.context&&kl(i,s.context,!1),as(i,s.containerInfo)}function ou(i,s,C,w,$){return J(),se($),s.flags|=256,xr(i,s,C,w),s.child}var Zl={dehydrated:null,treeContext:null,retryLane:0};function Jl(i){return{baseLanes:i,cachePool:null,transitions:null}}function iu(i,s,C){var w=s.pendingProps,$=sn.current,X=!1,te=(s.flags&128)!==0,me;if((me=te)||(me=i!==null&&i.memoizedState===null?!1:($&2)!==0),me?(X=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&($|=1),rn(sn,$&1),i===null)return R(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?(s.mode&1?i.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(te=w.children,i=w.fallback,X?(w=s.mode,X=s.child,te={mode:"hidden",children:te},!(w&1)&&X!==null?(X.childLanes=0,X.pendingProps=te):X=El(te,w,0,null),i=Na(i,w,C,null),X.return=s,i.return=s,X.sibling=i,s.child=X,s.child.memoizedState=Jl(C),s.memoizedState=Zl,i):ql(s,te));if($=i.memoizedState,$!==null&&(me=$.dehydrated,me!==null))return Xu(i,s,te,w,me,$,C);if(X){X=w.fallback,te=s.mode,$=i.child,me=$.sibling;var Ee={mode:"hidden",children:w.children};return!(te&1)&&s.child!==$?(w=s.child,w.childLanes=0,w.pendingProps=Ee,s.deletions=null):(w=ma($,Ee),w.subtreeFlags=$.subtreeFlags&14680064),me!==null?X=ma(me,X):(X=Na(X,te,C,null),X.flags|=2),X.return=s,w.return=s,w.sibling=X,s.child=w,w=X,X=s.child,te=i.child.memoizedState,te=te===null?Jl(C):{baseLanes:te.baseLanes|C,cachePool:null,transitions:te.transitions},X.memoizedState=te,X.childLanes=i.childLanes&~C,s.memoizedState=Zl,w}return X=i.child,i=X.sibling,w=ma(X,{mode:"visible",children:w.children}),!(s.mode&1)&&(w.lanes=C),w.return=s,w.sibling=null,i!==null&&(C=s.deletions,C===null?(s.deletions=[i],s.flags|=16):C.push(i)),s.child=w,s.memoizedState=null,w}function ql(i,s){return s=El({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function dl(i,s,C,w){return w!==null&&se(w),po(s,i.child,null,C),i=ql(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function Xu(i,s,C,w,$,X,te){if(C)return s.flags&256?(s.flags&=-257,w=Xl(Error(o(422))),dl(i,s,te,w)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(X=w.fallback,$=s.mode,w=El({mode:"visible",children:w.children},$,0,null),X=Na(X,$,te,null),X.flags|=2,w.return=s,X.return=s,w.sibling=X,s.child=w,s.mode&1&&po(s,i.child,null,te),s.child.memoizedState=Jl(te),s.memoizedState=Zl,X);if(!(s.mode&1))return dl(i,s,te,null);if($.data==="$!"){if(w=$.nextSibling&&$.nextSibling.dataset,w)var me=w.dgst;return w=me,X=Error(o(419)),w=Xl(X,w,void 0),dl(i,s,te,w)}if(me=(te&i.childLanes)!==0,Dr||me){if(w=Wn,w!==null){switch(te&-te){case 4:$=2;break;case 16:$=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:$=32;break;case 536870912:$=268435456;break;default:$=0}$=$&(w.suspendedLanes|te)?0:$,$!==0&&$!==X.retryLane&&(X.retryLane=$,yt(i,$),Wo(w,i,$,-1))}return vc(),w=Xl(Error(o(421))),dl(i,s,te,w)}return $.data==="$?"?(s.flags|=128,s.child=i.child,s=ad.bind(null,i),$._reactRetry=s,null):(i=X.treeContext,Mr=ni($.nextSibling),Pr=s,un=!0,gr=null,i!==null&&(Or[pr++]=ko,Or[pr++]=ai,Or[pr++]=Ko,ko=i.id,ai=i.overflow,Ko=s),s=ql(s,w.children),s.flags|=4096,s)}function au(i,s,C){i.lanes|=s;var w=i.alternate;w!==null&&(w.lanes|=s),Ze(i.return,s,C)}function ec(i,s,C,w,$){var X=i.memoizedState;X===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:w,tail:C,tailMode:$}:(X.isBackwards=s,X.rendering=null,X.renderingStartTime=0,X.last=w,X.tail=C,X.tailMode=$)}function su(i,s,C){var w=s.pendingProps,$=w.revealOrder,X=w.tail;if(xr(i,s,w.children,C),w=sn.current,w&2)w=w&1|2,s.flags|=128;else{if(i!==null&&i.flags&128)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&au(i,C,s);else if(i.tag===19)au(i,C,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}w&=1}if(rn(sn,w),!(s.mode&1))s.memoizedState=null;else switch($){case"forwards":for(C=s.child,$=null;C!==null;)i=C.alternate,i!==null&&ls(i)===null&&($=C),C=C.sibling;C=$,C===null?($=s.child,s.child=null):($=C.sibling,C.sibling=null),ec(s,!1,$,C,X);break;case"backwards":for(C=null,$=s.child,s.child=null;$!==null;){if(i=$.alternate,i!==null&&ls(i)===null){s.child=$;break}i=$.sibling,$.sibling=C,C=$,$=i}ec(s,!0,C,null,X);break;case"together":ec(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function fl(i,s){!(s.mode&1)&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Li(i,s,C){if(i!==null&&(s.dependencies=i.dependencies),Ba|=s.lanes,!(C&s.childLanes))return null;if(i!==null&&s.child!==i.child)throw Error(o(153));if(s.child!==null){for(i=s.child,C=ma(i,i.pendingProps),s.child=C,C.return=s;i.sibling!==null;)i=i.sibling,C=C.sibling=ma(i,i.pendingProps),C.return=s;C.sibling=null}return s.child}function Gu(i,s,C){switch(s.tag){case 3:ru(s),J();break;case 5:sl(s);break;case 1:Sn(s.type)&&ra(s);break;case 4:as(s,s.stateNode.containerInfo);break;case 10:var w=s.type._context,$=s.memoizedProps.value;rn(je,w._currentValue),w._currentValue=$;break;case 13:if(w=s.memoizedState,w!==null)return w.dehydrated!==null?(rn(sn,sn.current&1),s.flags|=128,null):C&s.child.childLanes?iu(i,s,C):(rn(sn,sn.current&1),i=Li(i,s,C),i!==null?i.sibling:null);rn(sn,sn.current&1);break;case 19:if(w=(C&s.childLanes)!==0,i.flags&128){if(w)return su(i,s,C);s.flags|=128}if($=s.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),rn(sn,sn.current),w)break;return null;case 22:case 23:return s.lanes=0,eu(i,s,C)}return Li(i,s,C)}var lu,tc,cu,uu;lu=function(s,C){for(var w=C.child;w!==null;){if(w.tag===5||w.tag===6)s.appendChild(w.stateNode);else if(w.tag!==4&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===C)break;for(;w.sibling===null;){if(w.return===null||w.return===C)return;w=w.return}w.sibling.return=w.return,w=w.sibling}},tc=function(){},cu=function(s,C,w,$){var X=s.memoizedProps;if(X!==$){s=C.stateNode,Ki(Sr.current);var te=null;switch(w){case"input":X=Ye(s,X),$=Ye(s,$),te=[];break;case"select":X=oe({},X,{value:void 0}),$=oe({},$,{value:void 0}),te=[];break;case"textarea":X=we(s,X),$=we(s,$),te=[];break;default:typeof X.onClick!="function"&&typeof $.onClick=="function"&&(s.onclick=ea)}Yt(w,$);var me;w=null;for(Be in X)if(!$.hasOwnProperty(Be)&&X.hasOwnProperty(Be)&&X[Be]!=null)if(Be==="style"){var Ee=X[Be];for(me in Ee)Ee.hasOwnProperty(me)&&(w||(w={}),w[me]="")}else Be!=="dangerouslySetInnerHTML"&&Be!=="children"&&Be!=="suppressContentEditableWarning"&&Be!=="suppressHydrationWarning"&&Be!=="autoFocus"&&(b.hasOwnProperty(Be)?te||(te=[]):(te=te||[]).push(Be,null));for(Be in $){var Ae=$[Be];if(Ee=X!=null?X[Be]:void 0,$.hasOwnProperty(Be)&&Ae!==Ee&&(Ae!=null||Ee!=null))if(Be==="style")if(Ee){for(me in Ee)!Ee.hasOwnProperty(me)||Ae&&Ae.hasOwnProperty(me)||(w||(w={}),w[me]="");for(me in Ae)Ae.hasOwnProperty(me)&&Ee[me]!==Ae[me]&&(w||(w={}),w[me]=Ae[me])}else w||(te||(te=[]),te.push(Be,w)),w=Ae;else Be==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,Ee=Ee?Ee.__html:void 0,Ae!=null&&Ee!==Ae&&(te=te||[]).push(Be,Ae)):Be==="children"?typeof Ae!="string"&&typeof Ae!="number"||(te=te||[]).push(Be,""+Ae):Be!=="suppressContentEditableWarning"&&Be!=="suppressHydrationWarning"&&(b.hasOwnProperty(Be)?(Ae!=null&&Be==="onScroll"&&Jt("scroll",s),te||Ee===Ae||(te=[])):(te=te||[]).push(Be,Ae))}w&&(te=te||[]).push("style",w);var Be=te;(C.updateQueue=Be)&&(C.flags|=4)}},uu=function(s,C,w,$){w!==$&&(C.flags|=4)};function Vs(i,s){if(!un)switch(i.tailMode){case"hidden":s=i.tail;for(var C=null;s!==null;)s.alternate!==null&&(C=s),s=s.sibling;C===null?i.tail=null:C.sibling=null;break;case"collapsed":C=i.tail;for(var w=null;C!==null;)C.alternate!==null&&(w=C),C=C.sibling;w===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:w.sibling=null}}function ar(i){var s=i.alternate!==null&&i.alternate.child===i.child,C=0,w=0;if(s)for(var $=i.child;$!==null;)C|=$.lanes|$.childLanes,w|=$.subtreeFlags&14680064,w|=$.flags&14680064,$.return=i,$=$.sibling;else for($=i.child;$!==null;)C|=$.lanes|$.childLanes,w|=$.subtreeFlags,w|=$.flags,$.return=i,$=$.sibling;return i.subtreeFlags|=w,i.childLanes=C,s}function Yu(i,s,C){var w=s.pendingProps;switch(al(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ar(s),null;case 1:return Sn(s.type)&&rs(),ar(s),null;case 3:return w=s.stateNode,sa(),on(Yn),on(zn),Uo(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(i===null||i.child===null)&&(W(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,gr!==null&&(fc(gr),gr=null))),tc(i,s),ar(s),null;case 5:ss(s);var $=Ki(Bi.current);if(C=s.type,i!==null&&s.stateNode!=null)cu(i,s,C,w,$),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!w){if(s.stateNode===null)throw Error(o(166));return ar(s),null}if(i=Ki(Sr.current),W(s)){w=s.stateNode,C=s.type;var X=s.memoizedProps;switch(w[ho]=s,w[Pa]=X,i=(s.mode&1)!==0,C){case"dialog":Jt("cancel",w),Jt("close",w);break;case"iframe":case"object":case"embed":Jt("load",w);break;case"video":case"audio":for($=0;$<ti.length;$++)Jt(ti[$],w);break;case"source":Jt("error",w);break;case"img":case"image":case"link":Jt("error",w),Jt("load",w);break;case"details":Jt("toggle",w);break;case"input":mt(w,X),Jt("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!X.multiple},Jt("invalid",w);break;case"textarea":qe(w,X),Jt("invalid",w)}Yt(C,X),$=null;for(var te in X)if(X.hasOwnProperty(te)){var me=X[te];te==="children"?typeof me=="string"?w.textContent!==me&&(X.suppressHydrationWarning!==!0&&qa(w.textContent,me,i),$=["children",me]):typeof me=="number"&&w.textContent!==""+me&&(X.suppressHydrationWarning!==!0&&qa(w.textContent,me,i),$=["children",""+me]):b.hasOwnProperty(te)&&me!=null&&te==="onScroll"&&Jt("scroll",w)}switch(C){case"input":$e(w),ot(w,X,!0);break;case"textarea":$e(w),lt(w);break;case"select":case"option":break;default:typeof X.onClick=="function"&&(w.onclick=ea)}w=$,s.updateQueue=w,w!==null&&(s.flags|=4)}else{te=$.nodeType===9?$:$.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=at(C)),i==="http://www.w3.org/1999/xhtml"?C==="script"?(i=te.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof w.is=="string"?i=te.createElement(C,{is:w.is}):(i=te.createElement(C),C==="select"&&(te=i,w.multiple?te.multiple=!0:w.size&&(te.size=w.size))):i=te.createElementNS(i,C),i[ho]=s,i[Pa]=w,lu(i,s,!1,!1),s.stateNode=i;e:{switch(te=ln(C,w),C){case"dialog":Jt("cancel",i),Jt("close",i),$=w;break;case"iframe":case"object":case"embed":Jt("load",i),$=w;break;case"video":case"audio":for($=0;$<ti.length;$++)Jt(ti[$],i);$=w;break;case"source":Jt("error",i),$=w;break;case"img":case"image":case"link":Jt("error",i),Jt("load",i),$=w;break;case"details":Jt("toggle",i),$=w;break;case"input":mt(i,w),$=Ye(i,w),Jt("invalid",i);break;case"option":$=w;break;case"select":i._wrapperState={wasMultiple:!!w.multiple},$=oe({},w,{value:void 0}),Jt("invalid",i);break;case"textarea":qe(i,w),$=we(i,w),Jt("invalid",i);break;default:$=w}Yt(C,$),me=$;for(X in me)if(me.hasOwnProperty(X)){var Ee=me[X];X==="style"?Pt(i,Ee):X==="dangerouslySetInnerHTML"?(Ee=Ee?Ee.__html:void 0,Ee!=null&&zt(i,Ee)):X==="children"?typeof Ee=="string"?(C!=="textarea"||Ee!=="")&&bt(i,Ee):typeof Ee=="number"&&bt(i,""+Ee):X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&X!=="autoFocus"&&(b.hasOwnProperty(X)?Ee!=null&&X==="onScroll"&&Jt("scroll",i):Ee!=null&&O(i,X,Ee,te))}switch(C){case"input":$e(i),ot(i,w,!1);break;case"textarea":$e(i),lt(i);break;case"option":w.value!=null&&i.setAttribute("value",""+ye(w.value));break;case"select":i.multiple=!!w.multiple,X=w.value,X!=null?ke(i,!!w.multiple,X,!1):w.defaultValue!=null&&ke(i,!!w.multiple,w.defaultValue,!0);break;default:typeof $.onClick=="function"&&(i.onclick=ea)}switch(C){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return ar(s),null;case 6:if(i&&s.stateNode!=null)uu(i,s,i.memoizedProps,w);else{if(typeof w!="string"&&s.stateNode===null)throw Error(o(166));if(C=Ki(Bi.current),Ki(Sr.current),W(s)){if(w=s.stateNode,C=s.memoizedProps,w[ho]=s,(X=w.nodeValue!==C)&&(i=Pr,i!==null))switch(i.tag){case 3:qa(w.nodeValue,C,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&qa(w.nodeValue,C,(i.mode&1)!==0)}X&&(s.flags|=4)}else w=(C.nodeType===9?C:C.ownerDocument).createTextNode(w),w[ho]=s,s.stateNode=w}return ar(s),null;case 13:if(on(sn),w=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(un&&Mr!==null&&s.mode&1&&!(s.flags&128))K(),J(),s.flags|=98560,X=!1;else if(X=W(s),w!==null&&w.dehydrated!==null){if(i===null){if(!X)throw Error(o(318));if(X=s.memoizedState,X=X!==null?X.dehydrated:null,!X)throw Error(o(317));X[ho]=s}else J(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;ar(s),X=!1}else gr!==null&&(fc(gr),gr=null),X=!0;if(!X)return s.flags&65536?s:null}return s.flags&128?(s.lanes=C,s):(w=w!==null,w!==(i!==null&&i.memoizedState!==null)&&w&&(s.child.flags|=8192,s.mode&1&&(i===null||sn.current&1?Rn===0&&(Rn=3):vc())),s.updateQueue!==null&&(s.flags|=4),ar(s),null);case 4:return sa(),tc(i,s),i===null&&Oi(s.stateNode.containerInfo),ar(s),null;case 10:return Ve(s.type._context),ar(s),null;case 17:return Sn(s.type)&&rs(),ar(s),null;case 19:if(on(sn),X=s.memoizedState,X===null)return ar(s),null;if(w=(s.flags&128)!==0,te=X.rendering,te===null)if(w)Vs(X,!1);else{if(Rn!==0||i!==null&&i.flags&128)for(i=s.child;i!==null;){if(te=ls(i),te!==null){for(s.flags|=128,Vs(X,!1),w=te.updateQueue,w!==null&&(s.updateQueue=w,s.flags|=4),s.subtreeFlags=0,w=C,C=s.child;C!==null;)X=C,i=w,X.flags&=14680066,te=X.alternate,te===null?(X.childLanes=0,X.lanes=i,X.child=null,X.subtreeFlags=0,X.memoizedProps=null,X.memoizedState=null,X.updateQueue=null,X.dependencies=null,X.stateNode=null):(X.childLanes=te.childLanes,X.lanes=te.lanes,X.child=te.child,X.subtreeFlags=0,X.deletions=null,X.memoizedProps=te.memoizedProps,X.memoizedState=te.memoizedState,X.updateQueue=te.updateQueue,X.type=te.type,i=te.dependencies,X.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),C=C.sibling;return rn(sn,sn.current&1|2),s.child}i=i.sibling}X.tail!==null&&Zt()>hs&&(s.flags|=128,w=!0,Vs(X,!1),s.lanes=4194304)}else{if(!w)if(i=ls(te),i!==null){if(s.flags|=128,w=!0,C=i.updateQueue,C!==null&&(s.updateQueue=C,s.flags|=4),Vs(X,!0),X.tail===null&&X.tailMode==="hidden"&&!te.alternate&&!un)return ar(s),null}else 2*Zt()-X.renderingStartTime>hs&&C!==1073741824&&(s.flags|=128,w=!0,Vs(X,!1),s.lanes=4194304);X.isBackwards?(te.sibling=s.child,s.child=te):(C=X.last,C!==null?C.sibling=te:s.child=te,X.last=te)}return X.tail!==null?(s=X.tail,X.rendering=s,X.tail=s.sibling,X.renderingStartTime=Zt(),s.sibling=null,C=sn.current,rn(sn,w?C&1|2:C&1),s):(ar(s),null);case 22:case 23:return mc(),w=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==w&&(s.flags|=8192),w&&s.mode&1?Hr&1073741824&&(ar(s),s.subtreeFlags&6&&(s.flags|=8192)):ar(s),null;case 24:return null;case 25:return null}throw Error(o(156,s.tag))}function Qu(i,s){switch(al(s),s.tag){case 1:return Sn(s.type)&&rs(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return sa(),on(Yn),on(zn),Uo(),i=s.flags,i&65536&&!(i&128)?(s.flags=i&-65537|128,s):null;case 5:return ss(s),null;case 13:if(on(sn),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(o(340));J()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return on(sn),null;case 4:return sa(),null;case 10:return Ve(s.type._context),null;case 22:case 23:return mc(),null;case 24:return null;default:return null}}var hl=!1,sr=!1,Zu=typeof WeakSet=="function"?WeakSet:Set,xt=null;function ds(i,s){var C=i.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(w){bn(i,s,w)}else C.current=null}function nc(i,s,C){try{C()}catch(w){bn(i,s,w)}}var du=!1;function Ju(i,s){if(Ts=oo,i=ae(),fe(i)){if("selectionStart"in i)var C={start:i.selectionStart,end:i.selectionEnd};else e:{C=(C=i.ownerDocument)&&C.defaultView||window;var w=C.getSelection&&C.getSelection();if(w&&w.rangeCount!==0){C=w.anchorNode;var $=w.anchorOffset,X=w.focusNode;w=w.focusOffset;try{C.nodeType,X.nodeType}catch(rt){C=null;break e}var te=0,me=-1,Ee=-1,Ae=0,Be=0,Ge=i,Xe=null;t:for(;;){for(var pt;Ge!==C||$!==0&&Ge.nodeType!==3||(me=te+$),Ge!==X||w!==0&&Ge.nodeType!==3||(Ee=te+w),Ge.nodeType===3&&(te+=Ge.nodeValue.length),(pt=Ge.firstChild)!==null;)Xe=Ge,Ge=pt;for(;;){if(Ge===i)break t;if(Xe===C&&++Ae===$&&(me=te),Xe===X&&++Be===w&&(Ee=te),(pt=Ge.nextSibling)!==null)break;Ge=Xe,Xe=Ge.parentNode}Ge=pt}C=me===-1||Ee===-1?null:{start:me,end:Ee}}else C=null}C=C||{start:0,end:0}}else C=null;for(ws={focusedElem:i,selectionRange:C},oo=!1,xt=s;xt!==null;)if(s=xt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,xt=i;else for(;xt!==null;){s=xt;try{var jt=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(jt!==null){var _t=jt.memoizedProps,Cn=jt.memoizedState,Pe=s.stateNode,Ie=Pe.getSnapshotBeforeUpdate(s.elementType===s.type?_t:xe(s.type,_t),Cn);Pe.__reactInternalSnapshotBeforeUpdate=Ie}break;case 3:var Me=s.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(rt){bn(s,s.return,rt)}if(i=s.sibling,i!==null){i.return=s.return,xt=i;break}xt=s.return}return jt=du,du=!1,jt}function Hs(i,s,C){var w=s.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var $=w=w.next;do{if(($.tag&i)===i){var X=$.destroy;$.destroy=void 0,X!==void 0&&nc(s,C,X)}$=$.next}while($!==w)}}function ml(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var C=s=s.next;do{if((C.tag&i)===i){var w=C.create;C.destroy=w()}C=C.next}while(C!==s)}}function rc(i){var s=i.ref;if(s!==null){var C=i.stateNode;switch(i.tag){case 5:i=C;break;default:i=C}typeof s=="function"?s(i):s.current=i}}function fu(i){var s=i.alternate;s!==null&&(i.alternate=null,fu(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[ho],delete s[Pa],delete s[Ks],delete s[ks],delete s[Kl])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function hu(i){return i.tag===5||i.tag===3||i.tag===4}function mu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||hu(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function oc(i,s,C){var w=i.tag;if(w===5||w===6)i=i.stateNode,s?C.nodeType===8?C.parentNode.insertBefore(i,s):C.insertBefore(i,s):(C.nodeType===8?(s=C.parentNode,s.insertBefore(i,C)):(s=C,s.appendChild(i)),C=C._reactRootContainer,C!=null||s.onclick!==null||(s.onclick=ea));else if(w!==4&&(i=i.child,i!==null))for(oc(i,s,C),i=i.sibling;i!==null;)oc(i,s,C),i=i.sibling}function ic(i,s,C){var w=i.tag;if(w===5||w===6)i=i.stateNode,s?C.insertBefore(i,s):C.appendChild(i);else if(w!==4&&(i=i.child,i!==null))for(ic(i,s,C),i=i.sibling;i!==null;)ic(i,s,C),i=i.sibling}var Qn=null,$o=!1;function ca(i,s,C){for(C=C.child;C!==null;)vu(i,s,C),C=C.sibling}function vu(i,s,C){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Jr,C)}catch(me){}switch(C.tag){case 5:sr||ds(C,s);case 6:var w=Qn,$=$o;Qn=null,ca(i,s,C),Qn=w,$o=$,Qn!==null&&($o?(i=Qn,C=C.stateNode,i.nodeType===8?i.parentNode.removeChild(C):i.removeChild(C)):Qn.removeChild(C.stateNode));break;case 18:Qn!==null&&($o?(i=Qn,C=C.stateNode,i.nodeType===8?Oa(i.parentNode,C):i.nodeType===1&&Oa(i,C),Mo(i)):Oa(Qn,C.stateNode));break;case 4:w=Qn,$=$o,Qn=C.stateNode.containerInfo,$o=!0,ca(i,s,C),Qn=w,$o=$;break;case 0:case 11:case 14:case 15:if(!sr&&(w=C.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){$=w=w.next;do{var X=$,te=X.destroy;X=X.tag,te!==void 0&&(X&2||X&4)&&nc(C,s,te),$=$.next}while($!==w)}ca(i,s,C);break;case 1:if(!sr&&(ds(C,s),w=C.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=C.memoizedProps,w.state=C.memoizedState,w.componentWillUnmount()}catch(me){bn(C,s,me)}ca(i,s,C);break;case 21:ca(i,s,C);break;case 22:C.mode&1?(sr=(w=sr)||C.memoizedState!==null,ca(i,s,C),sr=w):ca(i,s,C);break;default:ca(i,s,C)}}function pu(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var C=i.stateNode;C===null&&(C=i.stateNode=new Zu),s.forEach(function(w){var $=sd.bind(null,i,w);C.has(w)||(C.add(w),w.then($,$))})}}function zo(i,s){var C=s.deletions;if(C!==null)for(var w=0;w<C.length;w++){var $=C[w];try{var X=i,te=s,me=te;e:for(;me!==null;){switch(me.tag){case 5:Qn=me.stateNode,$o=!1;break e;case 3:Qn=me.stateNode.containerInfo,$o=!0;break e;case 4:Qn=me.stateNode.containerInfo,$o=!0;break e}me=me.return}if(Qn===null)throw Error(o(160));vu(X,te,$),Qn=null,$o=!1;var Ee=$.alternate;Ee!==null&&(Ee.return=null),$.return=null}catch(Ae){bn($,s,Ae)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)gu(s,i),s=s.sibling}function gu(i,s){var C=i.alternate,w=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(zo(s,i),ci(i),w&4){try{Hs(3,i,i.return),ml(3,i)}catch(_t){bn(i,i.return,_t)}try{Hs(5,i,i.return)}catch(_t){bn(i,i.return,_t)}}break;case 1:zo(s,i),ci(i),w&512&&C!==null&&ds(C,C.return);break;case 5:if(zo(s,i),ci(i),w&512&&C!==null&&ds(C,C.return),i.flags&32){var $=i.stateNode;try{bt($,"")}catch(_t){bn(i,i.return,_t)}}if(w&4&&($=i.stateNode,$!=null)){var X=i.memoizedProps,te=C!==null?C.memoizedProps:X,me=i.type,Ee=i.updateQueue;if(i.updateQueue=null,Ee!==null)try{me==="input"&&X.type==="radio"&&X.name!=null&&vt($,X),ln(me,te);var Ae=ln(me,X);for(te=0;te<Ee.length;te+=2){var Be=Ee[te],Ge=Ee[te+1];Be==="style"?Pt($,Ge):Be==="dangerouslySetInnerHTML"?zt($,Ge):Be==="children"?bt($,Ge):O($,Be,Ge,Ae)}switch(me){case"input":ht($,X);break;case"textarea":Je($,X);break;case"select":var Xe=$._wrapperState.wasMultiple;$._wrapperState.wasMultiple=!!X.multiple;var pt=X.value;pt!=null?ke($,!!X.multiple,pt,!1):Xe!==!!X.multiple&&(X.defaultValue!=null?ke($,!!X.multiple,X.defaultValue,!0):ke($,!!X.multiple,X.multiple?[]:"",!1))}$[Pa]=X}catch(_t){bn(i,i.return,_t)}}break;case 6:if(zo(s,i),ci(i),w&4){if(i.stateNode===null)throw Error(o(162));$=i.stateNode,X=i.memoizedProps;try{$.nodeValue=X}catch(_t){bn(i,i.return,_t)}}break;case 3:if(zo(s,i),ci(i),w&4&&C!==null&&C.memoizedState.isDehydrated)try{Mo(s.containerInfo)}catch(_t){bn(i,i.return,_t)}break;case 4:zo(s,i),ci(i);break;case 13:zo(s,i),ci(i),$=i.child,$.flags&8192&&(X=$.memoizedState!==null,$.stateNode.isHidden=X,!X||$.alternate!==null&&$.alternate.memoizedState!==null||(lc=Zt())),w&4&&pu(i);break;case 22:if(Be=C!==null&&C.memoizedState!==null,i.mode&1?(sr=(Ae=sr)||Be,zo(s,i),sr=Ae):zo(s,i),ci(i),w&8192){if(Ae=i.memoizedState!==null,(i.stateNode.isHidden=Ae)&&!Be&&i.mode&1)for(xt=i,Be=i.child;Be!==null;){for(Ge=xt=Be;xt!==null;){switch(Xe=xt,pt=Xe.child,Xe.tag){case 0:case 11:case 14:case 15:Hs(4,Xe,Xe.return);break;case 1:ds(Xe,Xe.return);var jt=Xe.stateNode;if(typeof jt.componentWillUnmount=="function"){w=Xe,C=Xe.return;try{s=w,jt.props=s.memoizedProps,jt.state=s.memoizedState,jt.componentWillUnmount()}catch(_t){bn(w,C,_t)}}break;case 5:ds(Xe,Xe.return);break;case 22:if(Xe.memoizedState!==null){bu(Ge);continue}}pt!==null?(pt.return=Xe,xt=pt):bu(Ge)}Be=Be.sibling}e:for(Be=null,Ge=i;;){if(Ge.tag===5){if(Be===null){Be=Ge;try{$=Ge.stateNode,Ae?(X=$.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none"):(me=Ge.stateNode,Ee=Ge.memoizedProps.style,te=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null,me.style.display=gt("display",te))}catch(_t){bn(i,i.return,_t)}}}else if(Ge.tag===6){if(Be===null)try{Ge.stateNode.nodeValue=Ae?"":Ge.memoizedProps}catch(_t){bn(i,i.return,_t)}}else if((Ge.tag!==22&&Ge.tag!==23||Ge.memoizedState===null||Ge===i)&&Ge.child!==null){Ge.child.return=Ge,Ge=Ge.child;continue}if(Ge===i)break e;for(;Ge.sibling===null;){if(Ge.return===null||Ge.return===i)break e;Be===Ge&&(Be=null),Ge=Ge.return}Be===Ge&&(Be=null),Ge.sibling.return=Ge.return,Ge=Ge.sibling}}break;case 19:zo(s,i),ci(i),w&4&&pu(i);break;case 21:break;default:zo(s,i),ci(i)}}function ci(i){var s=i.flags;if(s&2){try{e:{for(var C=i.return;C!==null;){if(hu(C)){var w=C;break e}C=C.return}throw Error(o(160))}switch(w.tag){case 5:var $=w.stateNode;w.flags&32&&(bt($,""),w.flags&=-33);var X=mu(i);ic(i,X,$);break;case 3:case 4:var te=w.stateNode.containerInfo,me=mu(i);oc(i,me,te);break;default:throw Error(o(161))}}catch(Ee){bn(i,i.return,Ee)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function qu(i,s,C){xt=i,xu(i,s,C)}function xu(i,s,C){for(var w=(i.mode&1)!==0;xt!==null;){var $=xt,X=$.child;if($.tag===22&&w){var te=$.memoizedState!==null||hl;if(!te){var me=$.alternate,Ee=me!==null&&me.memoizedState!==null||sr;me=hl;var Ae=sr;if(hl=te,(sr=Ee)&&!Ae)for(xt=$;xt!==null;)te=xt,Ee=te.child,te.tag===22&&te.memoizedState!==null?yu($):Ee!==null?(Ee.return=te,xt=Ee):yu($);for(;X!==null;)xt=X,xu(X,s,C),X=X.sibling;xt=$,hl=me,sr=Ae}ju(i,s,C)}else $.subtreeFlags&8772&&X!==null?(X.return=$,xt=X):ju(i,s,C)}}function ju(i){for(;xt!==null;){var s=xt;if(s.flags&8772){var C=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:sr||ml(5,s);break;case 1:var w=s.stateNode;if(s.flags&4&&!sr)if(C===null)w.componentDidMount();else{var $=s.elementType===s.type?C.memoizedProps:xe(s.type,C.memoizedProps);w.componentDidUpdate($,C.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var X=s.updateQueue;X!==null&&xn(s,X,w);break;case 3:var te=s.updateQueue;if(te!==null){if(C=null,s.child!==null)switch(s.child.tag){case 5:C=s.child.stateNode;break;case 1:C=s.child.stateNode}xn(s,te,C)}break;case 5:var me=s.stateNode;if(C===null&&s.flags&4){C=me;var Ee=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":Ee.autoFocus&&C.focus();break;case"img":Ee.src&&(C.src=Ee.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var Ae=s.alternate;if(Ae!==null){var Be=Ae.memoizedState;if(Be!==null){var Ge=Be.dehydrated;Ge!==null&&Mo(Ge)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}sr||s.flags&512&&rc(s)}catch(Xe){bn(s,s.return,Xe)}}if(s===i){xt=null;break}if(C=s.sibling,C!==null){C.return=s.return,xt=C;break}xt=s.return}}function bu(i){for(;xt!==null;){var s=xt;if(s===i){xt=null;break}var C=s.sibling;if(C!==null){C.return=s.return,xt=C;break}xt=s.return}}function yu(i){for(;xt!==null;){var s=xt;try{switch(s.tag){case 0:case 11:case 15:var C=s.return;try{ml(4,s)}catch(Ee){bn(s,C,Ee)}break;case 1:var w=s.stateNode;if(typeof w.componentDidMount=="function"){var $=s.return;try{w.componentDidMount()}catch(Ee){bn(s,$,Ee)}}var X=s.return;try{rc(s)}catch(Ee){bn(s,X,Ee)}break;case 5:var te=s.return;try{rc(s)}catch(Ee){bn(s,te,Ee)}}}catch(Ee){bn(s,s.return,Ee)}if(s===i){xt=null;break}var me=s.sibling;if(me!==null){me.return=s.return,xt=me;break}xt=s.return}}var ed=Math.ceil,vl=M.ReactCurrentDispatcher,ac=M.ReactCurrentOwner,xo=M.ReactCurrentBatchConfig,Qt=0,Wn=null,An=null,Zn=0,Hr=0,fs=Ro(0),Rn=0,Xs=null,Ba=0,pl=0,sc=0,Gs=null,Ar=null,lc=0,hs=1/0,Ni=null,gl=!1,cc=null,ua=null,xl=!1,da=null,jl=0,Ys=0,uc=null,bl=-1,yl=0;function jr(){return Qt&6?Zt():bl!==-1?bl:bl=Zt()}function fa(i){return i.mode&1?Qt&2&&Zn!==0?Zn&-Zn:ce.transition!==null?(yl===0&&(yl=Co()),yl):(i=Vt,i!==0||(i=window.event,i=i===void 0?16:Wi(i.type)),i):1}function Wo(i,s,C,w){if(50<Ys)throw Ys=0,uc=null,Error(o(185));dr(i,C,w),(!(Qt&2)||i!==Wn)&&(i===Wn&&(!(Qt&2)&&(pl|=C),Rn===4&&ha(i,Zn)),Tr(i,w),C===1&&Qt===0&&!(s.mode&1)&&(hs=Zt()+500,oa&&Fr()))}function Tr(i,s){var C=i.callbackNode;vi(i,s);var w=yr(i,i===Wn?Zn:0);if(w===0)C!==null&&cr(C),i.callbackNode=null,i.callbackPriority=0;else if(s=w&-w,i.callbackPriority!==s){if(C!=null&&cr(C),s===1)i.tag===0?Ec(Cu.bind(null,i)):Us(Cu.bind(null,i)),ns(function(){!(Qt&6)&&Fr()}),C=null;else{switch(Io(w)){case 1:C=kr;break;case 4:C=Ho;break;case 16:C=Zr;break;case 536870912:C=_o;break;default:C=Zr}C=Au(C,_u.bind(null,i))}i.callbackPriority=s,i.callbackNode=C}}function _u(i,s){if(bl=-1,yl=0,Qt&6)throw Error(o(327));var C=i.callbackNode;if(ms()&&i.callbackNode!==C)return null;var w=yr(i,i===Wn?Zn:0);if(w===0)return null;if(w&30||w&i.expiredLanes||s)s=_l(i,w);else{s=w;var $=Qt;Qt|=2;var X=Iu();(Wn!==i||Zn!==s)&&(Ni=null,hs=Zt()+500,ka(i,s));do try{rd();break}catch(me){Eu(i,me)}while(!0);Se(),vl.current=X,Qt=$,An!==null?s=0:(Wn=null,Zn=0,s=Rn)}if(s!==0){if(s===2&&($=nr(i),$!==0&&(w=$,s=dc(i,$))),s===1)throw C=Xs,ka(i,0),ha(i,w),Tr(i,Zt()),C;if(s===6)ha(i,w);else{if($=i.current.alternate,!(w&30)&&!td($)&&(s=_l(i,w),s===2&&(X=nr(i),X!==0&&(w=X,s=dc(i,X))),s===1))throw C=Xs,ka(i,0),ha(i,w),Tr(i,Zt()),C;switch(i.finishedWork=$,i.finishedLanes=w,s){case 0:case 1:throw Error(o(345));case 2:La(i,Ar,Ni);break;case 3:if(ha(i,w),(w&130023424)===w&&(s=lc+500-Zt(),10<s)){if(yr(i,0)!==0)break;if($=i.suspendedLanes,($&w)!==w){jr(),i.pingedLanes|=i.suspendedLanes&$;break}i.timeoutHandle=Ia(La.bind(null,i,Ar,Ni),s);break}La(i,Ar,Ni);break;case 4:if(ha(i,w),(w&4194240)===w)break;for(s=i.eventTimes,$=-1;0<w;){var te=31-Mn(w);X=1<<te,te=s[te],te>$&&($=te),w&=~X}if(w=$,w=Zt()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*ed(w/1960))-w,10<w){i.timeoutHandle=Ia(La.bind(null,i,Ar,Ni),w);break}La(i,Ar,Ni);break;case 5:La(i,Ar,Ni);break;default:throw Error(o(329))}}}return Tr(i,Zt()),i.callbackNode===C?_u.bind(null,i):null}function dc(i,s){var C=Gs;return i.current.memoizedState.isDehydrated&&(ka(i,s).flags|=256),i=_l(i,s),i!==2&&(s=Ar,Ar=C,s!==null&&fc(s)),i}function fc(i){Ar===null?Ar=i:Ar.push.apply(Ar,i)}function td(i){for(var s=i;;){if(s.flags&16384){var C=s.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var w=0;w<C.length;w++){var $=C[w],X=$.getSnapshot;$=$.value;try{if(!$n(X(),$))return!1}catch(te){return!1}}}if(C=s.child,s.subtreeFlags&16384&&C!==null)C.return=s,s=C;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ha(i,s){for(s&=~sc,s&=~pl,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var C=31-Mn(s),w=1<<C;i[C]=-1,s&=~w}}function Cu(i){if(Qt&6)throw Error(o(327));ms();var s=yr(i,0);if(!(s&1))return Tr(i,Zt()),null;var C=_l(i,s);if(i.tag!==0&&C===2){var w=nr(i);w!==0&&(s=w,C=dc(i,w))}if(C===1)throw C=Xs,ka(i,0),ha(i,s),Tr(i,Zt()),C;if(C===6)throw Error(o(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,La(i,Ar,Ni),Tr(i,Zt()),null}function hc(i,s){var C=Qt;Qt|=1;try{return i(s)}finally{Qt=C,Qt===0&&(hs=Zt()+500,oa&&Fr())}}function Ka(i){da!==null&&da.tag===0&&!(Qt&6)&&ms();var s=Qt;Qt|=1;var C=xo.transition,w=Vt;try{if(xo.transition=null,Vt=1,i)return i()}finally{Vt=w,xo.transition=C,Qt=s,!(Qt&6)&&Fr()}}function mc(){Hr=fs.current,on(fs)}function ka(i,s){i.finishedWork=null,i.finishedLanes=0;var C=i.timeoutHandle;if(C!==-1&&(i.timeoutHandle=-1,Bl(C)),An!==null)for(C=An.return;C!==null;){var w=C;switch(al(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&rs();break;case 3:sa(),on(Yn),on(zn),Uo();break;case 5:ss(w);break;case 4:sa();break;case 13:on(sn);break;case 19:on(sn);break;case 10:Ve(w.type._context);break;case 22:case 23:mc()}C=C.return}if(Wn=i,An=i=ma(i.current,null),Zn=Hr=s,Rn=0,Xs=null,sc=pl=Ba=0,Ar=Gs=null,ct!==null){for(s=0;s<ct.length;s++)if(C=ct[s],w=C.interleaved,w!==null){C.interleaved=null;var $=w.next,X=C.pending;if(X!==null){var te=X.next;X.next=$,w.next=te}C.pending=w}ct=null}return i}function Eu(i,s){do{var C=An;try{if(Se(),ki.current=ul,Ra){for(var w=an.memoizedState;w!==null;){var $=w.queue;$!==null&&($.pending=null),w=w.next}Ra=!1}if(si=0,_n=jn=an=null,la=!1,zs=0,ac.current=null,C===null||C.return===null){Rn=1,Xs=s,An=null;break}e:{var X=i,te=C.return,me=C,Ee=s;if(s=Zn,me.flags|=32768,Ee!==null&&typeof Ee=="object"&&typeof Ee.then=="function"){var Ae=Ee,Be=me,Ge=Be.tag;if(!(Be.mode&1)&&(Ge===0||Ge===11||Ge===15)){var Xe=Be.alternate;Xe?(Be.updateQueue=Xe.updateQueue,Be.memoizedState=Xe.memoizedState,Be.lanes=Xe.lanes):(Be.updateQueue=null,Be.memoizedState=null)}var pt=Yc(te);if(pt!==null){pt.flags&=-257,Qc(pt,te,me,X,s),pt.mode&1&&Gc(X,Ae,s),s=pt,Ee=Ae;var jt=s.updateQueue;if(jt===null){var _t=new Set;_t.add(Ee),s.updateQueue=_t}else jt.add(Ee);break e}else{if(!(s&1)){Gc(X,Ae,s),vc();break e}Ee=Error(o(426))}}else if(un&&me.mode&1){var Cn=Yc(te);if(Cn!==null){!(Cn.flags&65536)&&(Cn.flags|=256),Qc(Cn,te,me,X,s),se(us(Ee,me));break e}}X=Ee=us(Ee,me),Rn!==4&&(Rn=2),Gs===null?Gs=[X]:Gs.push(X),X=te;do{switch(X.tag){case 3:X.flags|=65536,s&=-s,X.lanes|=s;var Pe=Hc(X,Ee,s);St(X,Pe);break e;case 1:me=Ee;var Ie=X.type,Me=X.stateNode;if(!(X.flags&128)&&(typeof Ie.getDerivedStateFromError=="function"||Me!==null&&typeof Me.componentDidCatch=="function"&&(ua===null||!ua.has(Me)))){X.flags|=65536,s&=-s,X.lanes|=s;var rt=Xc(X,me,s);St(X,rt);break e}}X=X.return}while(X!==null)}Pu(C)}catch(It){s=It,An===C&&C!==null&&(An=C=C.return);continue}break}while(!0)}function Iu(){var i=vl.current;return vl.current=ul,i===null?ul:i}function vc(){(Rn===0||Rn===3||Rn===2)&&(Rn=4),Wn===null||!(Ba&268435455)&&!(pl&268435455)||ha(Wn,Zn)}function _l(i,s){var C=Qt;Qt|=2;var w=Iu();(Wn!==i||Zn!==s)&&(Ni=null,ka(i,s));do try{nd();break}catch($){Eu(i,$)}while(!0);if(Se(),Qt=C,vl.current=w,An!==null)throw Error(o(261));return Wn=null,Zn=0,Rn}function nd(){for(;An!==null;)Ou(An)}function rd(){for(;An!==null&&!di();)Ou(An)}function Ou(i){var s=Du(i.alternate,i,Hr);i.memoizedProps=i.pendingProps,s===null?Pu(i):An=s,ac.current=null}function Pu(i){var s=i;do{var C=s.alternate;if(i=s.return,s.flags&32768){if(C=Qu(C,s),C!==null){C.flags&=32767,An=C;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{Rn=6,An=null;return}}else if(C=Yu(C,s,Hr),C!==null){An=C;return}if(s=s.sibling,s!==null){An=s;return}An=s=i}while(s!==null);Rn===0&&(Rn=5)}function La(i,s,C){var w=Vt,$=xo.transition;try{xo.transition=null,Vt=1,od(i,s,C,w)}finally{xo.transition=$,Vt=w}return null}function od(i,s,C,w){do ms();while(da!==null);if(Qt&6)throw Error(o(327));C=i.finishedWork;var $=i.finishedLanes;if(C===null)return null;if(i.finishedWork=null,i.finishedLanes=0,C===i.current)throw Error(o(177));i.callbackNode=null,i.callbackPriority=0;var X=C.lanes|C.childLanes;if(pi(i,X),i===Wn&&(An=Wn=null,Zn=0),!(C.subtreeFlags&2064)&&!(C.flags&2064)||xl||(xl=!0,Au(Zr,function(){return ms(),null})),X=(C.flags&15990)!==0,C.subtreeFlags&15990||X){X=xo.transition,xo.transition=null;var te=Vt;Vt=1;var me=Qt;Qt|=4,ac.current=null,Ju(i,C),gu(C,i),ie(ws),oo=!!Ts,ws=Ts=null,i.current=C,qu(C,i,$),fi(),Qt=me,Vt=te,xo.transition=X}else i.current=C;if(xl&&(xl=!1,da=i,jl=$),X=i.pendingLanes,X===0&&(ua=null),qr(C.stateNode,w),Tr(i,Zt()),s!==null)for(w=i.onRecoverableError,C=0;C<s.length;C++)$=s[C],w($.value,{componentStack:$.stack,digest:$.digest});if(gl)throw gl=!1,i=cc,cc=null,i;return jl&1&&i.tag!==0&&ms(),X=i.pendingLanes,X&1?i===uc?Ys++:(Ys=0,uc=i):Ys=0,Fr(),null}function ms(){if(da!==null){var i=Io(jl),s=xo.transition,C=Vt;try{if(xo.transition=null,Vt=16>i?16:i,da===null)var w=!1;else{if(i=da,da=null,jl=0,Qt&6)throw Error(o(331));var $=Qt;for(Qt|=4,xt=i.current;xt!==null;){var X=xt,te=X.child;if(xt.flags&16){var me=X.deletions;if(me!==null){for(var Ee=0;Ee<me.length;Ee++){var Ae=me[Ee];for(xt=Ae;xt!==null;){var Be=xt;switch(Be.tag){case 0:case 11:case 15:Hs(8,Be,X)}var Ge=Be.child;if(Ge!==null)Ge.return=Be,xt=Ge;else for(;xt!==null;){Be=xt;var Xe=Be.sibling,pt=Be.return;if(fu(Be),Be===Ae){xt=null;break}if(Xe!==null){Xe.return=pt,xt=Xe;break}xt=pt}}}var jt=X.alternate;if(jt!==null){var _t=jt.child;if(_t!==null){jt.child=null;do{var Cn=_t.sibling;_t.sibling=null,_t=Cn}while(_t!==null)}}xt=X}}if(X.subtreeFlags&2064&&te!==null)te.return=X,xt=te;else e:for(;xt!==null;){if(X=xt,X.flags&2048)switch(X.tag){case 0:case 11:case 15:Hs(9,X,X.return)}var Pe=X.sibling;if(Pe!==null){Pe.return=X.return,xt=Pe;break e}xt=X.return}}var Ie=i.current;for(xt=Ie;xt!==null;){te=xt;var Me=te.child;if(te.subtreeFlags&2064&&Me!==null)Me.return=te,xt=Me;else e:for(te=Ie;xt!==null;){if(me=xt,me.flags&2048)try{switch(me.tag){case 0:case 11:case 15:ml(9,me)}}catch(It){bn(me,me.return,It)}if(me===te){xt=null;break e}var rt=me.sibling;if(rt!==null){rt.return=me.return,xt=rt;break e}xt=me.return}}if(Qt=$,Fr(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Jr,i)}catch(It){}w=!0}return w}finally{Vt=C,xo.transition=s}}return!1}function Mu(i,s,C){s=us(C,s),s=Hc(i,s,1),i=Ht(i,s,1),s=jr(),i!==null&&(dr(i,1,s),Tr(i,s))}function bn(i,s,C){if(i.tag===3)Mu(i,i,C);else for(;s!==null;){if(s.tag===3){Mu(s,i,C);break}else if(s.tag===1){var w=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(ua===null||!ua.has(w))){i=us(C,i),i=Xc(s,i,1),s=Ht(s,i,1),i=jr(),s!==null&&(dr(s,1,i),Tr(s,i));break}}s=s.return}}function id(i,s,C){var w=i.pingCache;w!==null&&w.delete(s),s=jr(),i.pingedLanes|=i.suspendedLanes&C,Wn===i&&(Zn&C)===C&&(Rn===4||Rn===3&&(Zn&130023424)===Zn&&500>Zt()-lc?ka(i,0):sc|=C),Tr(i,s)}function Su(i,s){s===0&&(i.mode&1?(s=en,en<<=1,!(en&130023424)&&(en=4194304)):s=1);var C=jr();i=yt(i,s),i!==null&&(dr(i,s,C),Tr(i,C))}function ad(i){var s=i.memoizedState,C=0;s!==null&&(C=s.retryLane),Su(i,C)}function sd(i,s){var C=0;switch(i.tag){case 13:var w=i.stateNode,$=i.memoizedState;$!==null&&(C=$.retryLane);break;case 19:w=i.stateNode;break;default:throw Error(o(314))}w!==null&&w.delete(s),Su(i,C)}var Du;Du=function(s,C,w){if(s!==null)if(s.memoizedProps!==C.pendingProps||Yn.current)Dr=!0;else{if(!(s.lanes&w)&&!(C.flags&128))return Dr=!1,Gu(s,C,w);Dr=!!(s.flags&131072)}else Dr=!1,un&&C.flags&1048576&&is(C,ia,C.index);switch(C.lanes=0,C.tag){case 2:var $=C.type;fl(s,C),s=C.pendingProps;var X=na(C,zn.current);nt(C,w),X=$l(null,C,$,s,X,w);var te=zl();return C.flags|=1,typeof X=="object"&&X!==null&&typeof X.render=="function"&&X.$$typeof===void 0?(C.tag=1,C.memoizedState=null,C.updateQueue=null,Sn($)?(te=!0,ra(C)):te=!1,C.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,At(C),X.updater=Dn,C.stateNode=X,X._reactInternals=C,Aa(C,$,s,w),C=Ql(null,C,$,!0,te,w)):(C.tag=0,un&&te&&il(C),xr(null,C,X,w),C=C.child),C;case 16:$=C.elementType;e:{switch(fl(s,C),s=C.pendingProps,X=$._init,$=X($._payload),C.type=$,X=C.tag=cd($),s=xe($,s),X){case 0:C=Yl(null,C,$,s,w);break e;case 1:C=nu(null,C,$,s,w);break e;case 11:C=Zc(null,C,$,s,w);break e;case 14:C=Jc(null,C,$,xe($.type,s),w);break e}throw Error(o(306,$,""))}return C;case 0:return $=C.type,X=C.pendingProps,X=C.elementType===$?X:xe($,X),Yl(s,C,$,X,w);case 1:return $=C.type,X=C.pendingProps,X=C.elementType===$?X:xe($,X),nu(s,C,$,X,w);case 3:e:{if(ru(C),s===null)throw Error(o(387));$=C.pendingProps,te=C.memoizedState,X=te.element,Dt(s,C),nn(C,$,null,w);var me=C.memoizedState;if($=me.element,te.isDehydrated)if(te={element:$,isDehydrated:!1,cache:me.cache,pendingSuspenseBoundaries:me.pendingSuspenseBoundaries,transitions:me.transitions},C.updateQueue.baseState=te,C.memoizedState=te,C.flags&256){X=us(Error(o(423)),C),C=ou(s,C,$,w,X);break e}else if($!==X){X=us(Error(o(424)),C),C=ou(s,C,$,w,X);break e}else for(Mr=ni(C.stateNode.containerInfo.firstChild),Pr=C,un=!0,gr=null,w=Ta(C,null,$,w),C.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(J(),$===X){C=Li(s,C,w);break e}xr(s,C,$,w)}C=C.child}return C;case 5:return sl(C),s===null&&R(C),$=C.type,X=C.pendingProps,te=s!==null?s.memoizedProps:null,me=X.children,es($,X)?me=null:te!==null&&es($,te)&&(C.flags|=32),tu(s,C),xr(s,C,me,w),C.child;case 6:return s===null&&R(C),null;case 13:return iu(s,C,w);case 4:return as(C,C.stateNode.containerInfo),$=C.pendingProps,s===null?C.child=po(C,null,$,w):xr(s,C,$,w),C.child;case 11:return $=C.type,X=C.pendingProps,X=C.elementType===$?X:xe($,X),Zc(s,C,$,X,w);case 7:return xr(s,C,C.pendingProps,w),C.child;case 8:return xr(s,C,C.pendingProps.children,w),C.child;case 12:return xr(s,C,C.pendingProps.children,w),C.child;case 10:e:{if($=C.type._context,X=C.pendingProps,te=C.memoizedProps,me=X.value,rn(je,$._currentValue),$._currentValue=me,te!==null)if($n(te.value,me)){if(te.children===X.children&&!Yn.current){C=Li(s,C,w);break e}}else for(te=C.child,te!==null&&(te.return=C);te!==null;){var Ee=te.dependencies;if(Ee!==null){me=te.child;for(var Ae=Ee.firstContext;Ae!==null;){if(Ae.context===$){if(te.tag===1){Ae=Kt(-1,w&-w),Ae.tag=2;var Be=te.updateQueue;if(Be!==null){Be=Be.shared;var Ge=Be.pending;Ge===null?Ae.next=Ae:(Ae.next=Ge.next,Ge.next=Ae),Be.pending=Ae}}te.lanes|=w,Ae=te.alternate,Ae!==null&&(Ae.lanes|=w),Ze(te.return,w,C),Ee.lanes|=w;break}Ae=Ae.next}}else if(te.tag===10)me=te.type===C.type?null:te.child;else if(te.tag===18){if(me=te.return,me===null)throw Error(o(341));me.lanes|=w,Ee=me.alternate,Ee!==null&&(Ee.lanes|=w),Ze(me,w,C),me=te.sibling}else me=te.child;if(me!==null)me.return=te;else for(me=te;me!==null;){if(me===C){me=null;break}if(te=me.sibling,te!==null){te.return=me.return,me=te;break}me=me.return}te=me}xr(s,C,X.children,w),C=C.child}return C;case 9:return X=C.type,$=C.pendingProps.children,nt(C,w),X=tt(X),$=$(X),C.flags|=1,xr(s,C,$,w),C.child;case 14:return $=C.type,X=xe($,C.pendingProps),X=xe($.type,X),Jc(s,C,$,X,w);case 15:return qc(s,C,C.type,C.pendingProps,w);case 17:return $=C.type,X=C.pendingProps,X=C.elementType===$?X:xe($,X),fl(s,C),C.tag=1,Sn($)?(s=!0,ra(C)):s=!1,nt(C,w),vo(C,$,X),Aa(C,$,X,w),Ql(null,C,$,!0,s,w);case 19:return su(s,C,w);case 22:return eu(s,C,w)}throw Error(o(156,C.tag))};function Au(i,s){return mn(i,s)}function ld(i,s,C,w){this.tag=i,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jo(i,s,C,w){return new ld(i,s,C,w)}function pc(i){return i=i.prototype,!(!i||!i.isReactComponent)}function cd(i){if(typeof i=="function")return pc(i)?1:0;if(i!=null){if(i=i.$$typeof,i===V)return 11;if(i===q)return 14}return 2}function ma(i,s){var C=i.alternate;return C===null?(C=jo(i.tag,s,i.key,i.mode),C.elementType=i.elementType,C.type=i.type,C.stateNode=i.stateNode,C.alternate=i,i.alternate=C):(C.pendingProps=s,C.type=i.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=i.flags&14680064,C.childLanes=i.childLanes,C.lanes=i.lanes,C.child=i.child,C.memoizedProps=i.memoizedProps,C.memoizedState=i.memoizedState,C.updateQueue=i.updateQueue,s=i.dependencies,C.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},C.sibling=i.sibling,C.index=i.index,C.ref=i.ref,C}function Cl(i,s,C,w,$,X){var te=2;if(w=i,typeof i=="function")pc(i)&&(te=1);else if(typeof i=="string")te=5;else e:switch(i){case B:return Na(C.children,$,X,s);case U:te=8,$|=8;break;case L:return i=jo(12,C,s,$|2),i.elementType=L,i.lanes=X,i;case H:return i=jo(13,C,s,$),i.elementType=H,i.lanes=X,i;case N:return i=jo(19,C,s,$),i.elementType=N,i.lanes=X,i;case Q:return El(C,$,X,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:te=10;break e;case Y:te=9;break e;case V:te=11;break e;case q:te=14;break e;case G:te=16,w=null;break e}throw Error(o(130,i==null?i:typeof i=="undefined"?"undefined":a(i),""))}return s=jo(te,C,s,$),s.elementType=i,s.type=w,s.lanes=X,s}function Na(i,s,C,w){return i=jo(7,i,w,s),i.lanes=C,i}function El(i,s,C,w){return i=jo(22,i,w,s),i.elementType=Q,i.lanes=C,i.stateNode={isHidden:!1},i}function gc(i,s,C){return i=jo(6,i,null,s),i.lanes=C,i}function xc(i,s,C){return s=jo(4,i.children!==null?i.children:[],i.key,s),s.lanes=C,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function ud(i,s,C,w,$){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=w,this.onRecoverableError=$,this.mutableSourceEagerHydrationData=null}function jc(i,s,C,w,$,X,te,me,Ee){return i=new ud(i,s,C,me,Ee),s===1?(s=1,X===!0&&(s|=8)):s=0,X=jo(3,null,null,s),i.current=X,X.stateNode=i,X.memoizedState={element:w,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},At(X),i}function dd(i,s,C){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:w==null?null:""+w,children:i,containerInfo:s,implementation:C}}function Tu(i){if(!i)return ii;i=i._reactInternals;e:{if(er(i)!==i||i.tag!==1)throw Error(o(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Sn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(o(171))}if(i.tag===1){var C=i.type;if(Sn(C))return Ls(i,C,s)}return s}function wu(i,s,C,w,$,X,te,me,Ee){return i=jc(C,w,!0,i,$,X,te,me,Ee),i.context=Tu(null),C=i.current,w=jr(),$=fa(C),X=Kt(w,$),X.callback=s!=null?s:null,Ht(C,X,$),i.current.lanes=$,dr(i,$,w),Tr(i,w),i}function Il(i,s,C,w){var $=s.current,X=jr(),te=fa($);return C=Tu(C),s.context===null?s.context=C:s.pendingContext=C,s=Kt(X,te),s.payload={element:i},w=w===void 0?null:w,w!==null&&(s.callback=w),i=Ht($,s,te),i!==null&&(Wo(i,$,te,X),Bt(i,$,te)),te}function Ol(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function Ru(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var C=i.retryLane;i.retryLane=C!==0&&C<s?C:s}}function bc(i,s){Ru(i,s),(i=i.alternate)&&Ru(i,s)}function fd(){return null}var Bu=typeof reportError=="function"?reportError:function(s){console.error(s)};function yc(i){this._internalRoot=i}Pl.prototype.render=yc.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(o(409));Il(i,s,null,null)},Pl.prototype.unmount=yc.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;Ka(function(){Il(null,i,null,null)}),s[Wr]=null}};function Pl(i){this._internalRoot=i}Pl.prototype.unstable_scheduleHydration=function(i){if(i){var s=re();i={blockedOn:null,target:i,priority:s};for(var C=0;C<fn.length&&s!==0&&s<fn[C].priority;C++);fn.splice(C,0,i),C===0&&Nr(i)}};function _c(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Ml(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Ku(){}function hd(i,s,C,w,$){if($){if(typeof w=="function"){var X=w;w=function(){var Be=Ol(te);X.call(Be)}}var te=wu(s,w,i,0,null,!1,!1,"",Ku);return i._reactRootContainer=te,i[Wr]=te.current,Oi(i.nodeType===8?i.parentNode:i),Ka(),te}for(;$=i.lastChild;)i.removeChild($);if(typeof w=="function"){var me=w;w=function(){var Be=Ol(Ee);me.call(Be)}}var Ee=jc(i,0,!1,null,null,!1,!1,"",Ku);return i._reactRootContainer=Ee,i[Wr]=Ee.current,Oi(i.nodeType===8?i.parentNode:i),Ka(function(){Il(s,Ee,C,w)}),Ee}function Sl(i,s,C,w,$){var X=C._reactRootContainer;if(X){var te=X;if(typeof $=="function"){var me=$;$=function(){var Ae=Ol(te);me.call(Ae)}}Il(s,te,i,$)}else te=hd(C,s,i,$,w);return Ol(te)}Hn=function(s){switch(s.tag){case 3:var C=s.stateNode;if(C.current.memoizedState.isDehydrated){var w=tr(C.pendingLanes);w!==0&&(Eo(C,w|1),Tr(C,Zt()),!(Qt&6)&&(hs=Zt()+500,Fr()))}break;case 13:Ka(function(){var $=yt(s,1);if($!==null){var X=jr();Wo($,s,1,X)}}),bc(s,1)}},Lr=function(s){if(s.tag===13){var C=yt(s,134217728);if(C!==null){var w=jr();Wo(C,s,134217728,w)}bc(s,134217728)}},no=function(s){if(s.tag===13){var C=fa(s),w=yt(s,C);if(w!==null){var $=jr();Wo(w,s,C,$)}bc(s,C)}},re=function(){return Vt},Fe=function(s,C){var w=Vt;try{return Vt=s,C()}finally{Vt=w}},Bn=function(s,C,w){switch(C){case"input":if(ht(s,w),C=w.name,w.type==="radio"&&C!=null){for(w=s;w.parentNode;)w=w.parentNode;for(w=w.querySelectorAll("input[name="+JSON.stringify(""+C)+'][type="radio"]'),C=0;C<w.length;C++){var $=w[C];if($!==s&&$.form===s.form){var X=Ma($);if(!X)throw Error(o(90));We($),ht($,X)}}}break;case"textarea":Je(s,w);break;case"select":C=w.value,C!=null&&ke(s,!!w.multiple,C,!1)}},Rr=hc,Br=Ka;var md={usingClientEntryPoint:!1,Events:[Mi,ta,Ma,Xr,wr,hc]},Qs={findFiberByHostInstance:oi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vd={bundleType:Qs.bundleType,version:Qs.version,rendererPackageName:Qs.rendererPackageName,rendererConfig:Qs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=Nn(s),s===null?null:s.stateNode},findFiberByHostInstance:Qs.findFiberByHostInstance||fd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Jr=Dl.inject(vd),dt=Dl}catch(i){}}y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=md,y.createPortal=function(i,s){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_c(s))throw Error(o(200));return dd(i,s,null,C)},y.createRoot=function(i,s){if(!_c(i))throw Error(o(299));var C=!1,w="",$=Bu;return s!=null&&(s.unstable_strictMode===!0&&(C=!0),s.identifierPrefix!==void 0&&(w=s.identifierPrefix),s.onRecoverableError!==void 0&&($=s.onRecoverableError)),s=jc(i,1,!1,null,null,C,!1,w,$),i[Wr]=s.current,Oi(i.nodeType===8?i.parentNode:i),new yc(s)},y.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(o(188)):(i=Object.keys(i).join(","),Error(o(268,i)));return i=Nn(s),i=i===null?null:i.stateNode,i},y.flushSync=function(i){return Ka(i)},y.hydrate=function(i,s,C){if(!Ml(s))throw Error(o(200));return Sl(null,i,s,!0,C)},y.hydrateRoot=function(i,s,C){if(!_c(i))throw Error(o(405));var w=C!=null&&C.hydratedSources||null,$=!1,X="",te=Bu;if(C!=null&&(C.unstable_strictMode===!0&&($=!0),C.identifierPrefix!==void 0&&(X=C.identifierPrefix),C.onRecoverableError!==void 0&&(te=C.onRecoverableError)),s=wu(s,null,i,1,C!=null?C:null,$,!1,X,te),i[Wr]=s.current,Oi(i),w)for(i=0;i<w.length;i++)C=w[i],$=C._getVersion,$=$(C._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[C,$]:s.mutableSourceEagerHydrationData.push(C,$);return new Pl(s)},y.render=function(i,s,C){if(!Ml(s))throw Error(o(200));return Sl(null,i,s,!1,C)},y.unmountComponentAtNode=function(i){if(!Ml(i))throw Error(o(40));return i._reactRootContainer?(Ka(function(){Sl(null,null,i,!1,function(){i._reactRootContainer=null,i[Wr]=null})}),!0):!1},y.unstable_batchedUpdates=hc,y.unstable_renderSubtreeIntoContainer=function(i,s,C,w){if(!Ml(C))throw Error(o(200));if(i==null||i._reactInternals===void 0)throw Error(o(38));return Sl(i,s,C,!1,w)},y.version="18.2.0-next-9e3b772b8-20220608"},7769:function(S,y,t){"use strict";var e,a=t(16160);if(1)y.H=a.createRoot,e=a.hydrateRoot;else var n},16160:function(S,y,t){"use strict";function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(a){console.error(a)}}e(),S.exports=t(44352)},81570:function(S,y,t){"use strict";var e;function a(r,o){return o!=null&&typeof Symbol!="undefined"&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](r):r instanceof o}function n(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(r)}(function(r){var o=arguments,m=function(){var l=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,c=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,u=/[^-+\dA-Z]/g;return function(h,x,j,p){if(o.length===1&&v(h)==="string"&&!/\d/.test(h)&&(x=h,h=void 0),h=h||h===0?h:new Date,a(h,Date)||(h=new Date(h)),isNaN(h))throw TypeError("Invalid date");x=String(m.masks[x]||x||m.masks.default);var _=x.slice(0,4);(_==="UTC:"||_==="GMT:")&&(x=x.slice(4),j=!0,_==="GMT:"&&(p=!0));var E=function(){return j?"getUTC":"get"},I=function(){return h[E()+"Date"]()},O=function(){return h[E()+"Day"]()},M=function(){return h[E()+"Month"]()},D=function(){return h[E()+"FullYear"]()},A=function(){return h[E()+"Hours"]()},B=function(){return h[E()+"Minutes"]()},U=function(){return h[E()+"Seconds"]()},L=function(){return h[E()+"Milliseconds"]()},k=function(){return j?0:h.getTimezoneOffset()},Y=function(){return d(h)},V=function(){return f(h)},H={d:function(){return I()},dd:function(){return b(I())},ddd:function(){return m.i18n.dayNames[O()]},DDD:function(){return g({y:D(),m:M(),d:I(),_:E(),dayName:m.i18n.dayNames[O()],short:!0})},dddd:function(){return m.i18n.dayNames[O()+7]},DDDD:function(){return g({y:D(),m:M(),d:I(),_:E(),dayName:m.i18n.dayNames[O()+7]})},m:function(){return M()+1},mm:function(){return b(M()+1)},mmm:function(){return m.i18n.monthNames[M()]},mmmm:function(){return m.i18n.monthNames[M()+12]},yy:function(){return String(D()).slice(2)},yyyy:function(){return b(D(),4)},h:function(){return A()%12||12},hh:function(){return b(A()%12||12)},H:function(){return A()},HH:function(){return b(A())},M:function(){return B()},MM:function(){return b(B())},s:function(){return U()},ss:function(){return b(U())},l:function(){return b(L(),3)},L:function(){return b(Math.floor(L()/10))},t:function(){return A()<12?m.i18n.timeNames[0]:m.i18n.timeNames[1]},tt:function(){return A()<12?m.i18n.timeNames[2]:m.i18n.timeNames[3]},T:function(){return A()<12?m.i18n.timeNames[4]:m.i18n.timeNames[5]},TT:function(){return A()<12?m.i18n.timeNames[6]:m.i18n.timeNames[7]},Z:function(){return p?"GMT":j?"UTC":(String(h).match(c)||[""]).pop().replace(u,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(k()>0?"-":"+")+b(Math.floor(Math.abs(k())/60)*100+Math.abs(k())%60,4)},p:function(){return(k()>0?"-":"+")+b(Math.floor(Math.abs(k())/60),2)+":"+b(Math.floor(Math.abs(k())%60),2)},S:function(){return["th","st","nd","rd"][I()%10>3?0:(I()%100-I()%10!=10)*I()%10]},W:function(){return Y()},WW:function(){return b(Y())},N:function(){return V()}};return x.replace(l,function(N){return N in H?H[N]():N.slice(1,N.length-1)})}}();m.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},m.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var b=function(c,u){for(c=String(c),u=u||2;c.length<u;)c="0"+c;return c},g=function(c){var u=c.y,h=c.m,x=c.d,j=c._,p=c.dayName,_=c.short,E=_===void 0?!1:_,I=new Date,O=new Date;O.setDate(O[j+"Date"]()-1);var M=new Date;M.setDate(M[j+"Date"]()+1);var D=function(){return I[j+"Date"]()},A=function(){return I[j+"Month"]()},B=function(){return I[j+"FullYear"]()},U=function(){return O[j+"Date"]()},L=function(){return O[j+"Month"]()},k=function(){return O[j+"FullYear"]()},Y=function(){return M[j+"Date"]()},V=function(){return M[j+"Month"]()},H=function(){return M[j+"FullYear"]()};return B()===u&&A()===h&&D()===x?E?"Tdy":"Today":k()===u&&L()===h&&U()===x?E?"Ysd":"Yesterday":H()===u&&V()===h&&Y()===x?E?"Tmw":"Tomorrow":p},d=function(c){var u=new Date(c.getFullYear(),c.getMonth(),c.getDate());u.setDate(u.getDate()-(u.getDay()+6)%7+3);var h=new Date(u.getFullYear(),0,4);h.setDate(h.getDate()-(h.getDay()+6)%7+3);var x=u.getTimezoneOffset()-h.getTimezoneOffset();u.setHours(u.getHours()-x);var j=(u-h)/(864e5*7);return 1+Math.floor(j)},f=function(c){var u=c.getDay();return u===0&&(u=7),u},v=function(c){return c===null?"null":c===void 0?"undefined":n(c)!=="object"?n(c):Array.isArray(c)?"array":{}.toString.call(c).slice(8,-1).toLowerCase()};e=function(){return m}.call(y,t,y,S),e!==void 0&&(S.exports=e)})(void 0)},68540:function(S){function y(o,m){return m!=null&&typeof Symbol!="undefined"&&m[Symbol.hasInstance]?!!m[Symbol.hasInstance](o):o instanceof m}var t=typeof Element!="undefined",e=typeof Map=="function",a=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function r(o,m){if(o===m)return!0;if(o&&m&&typeof o=="object"&&typeof m=="object"){if(o.constructor!==m.constructor)return!1;var b,g,d;if(Array.isArray(o)){if(b=o.length,b!=m.length)return!1;for(g=b;g--!==0;)if(!r(o[g],m[g]))return!1;return!0}var f;if(e&&y(o,Map)&&y(m,Map)){if(o.size!==m.size)return!1;for(f=o.entries();!(g=f.next()).done;)if(!m.has(g.value[0]))return!1;for(f=o.entries();!(g=f.next()).done;)if(!r(g.value[1],m.get(g.value[0])))return!1;return!0}if(a&&y(o,Set)&&y(m,Set)){if(o.size!==m.size)return!1;for(f=o.entries();!(g=f.next()).done;)if(!m.has(g.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(m)){if(b=o.length,b!=m.length)return!1;for(g=b;g--!==0;)if(o[g]!==m[g])return!1;return!0}if(o.constructor===RegExp)return o.source===m.source&&o.flags===m.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof m.valueOf=="function")return o.valueOf()===m.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof m.toString=="function")return o.toString()===m.toString();if(d=Object.keys(o),b=d.length,b!==Object.keys(m).length)return!1;for(g=b;g--!==0;)if(!Object.prototype.hasOwnProperty.call(m,d[g]))return!1;if(t&&y(o,Element))return!1;for(g=b;g--!==0;)if(!((d[g]==="_owner"||d[g]==="__v"||d[g]==="__o")&&o.$$typeof)&&!r(o[d[g]],m[d[g]]))return!1;return!0}return o!==o&&m!==m}S.exports=function(m,b){try{return r(m,b)}catch(g){if((g.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw g}}},6293:function(S,y,t){"use strict";/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var e=t(44583),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function b(g,d,f){var v,l={},c=null,u=null;f!==void 0&&(c=""+f),d.key!==void 0&&(c=""+d.key),d.ref!==void 0&&(u=d.ref);for(v in d)r.call(d,v)&&!m.hasOwnProperty(v)&&(l[v]=d[v]);if(g&&g.defaultProps)for(v in d=g.defaultProps,d)l[v]===void 0&&(l[v]=d[v]);return{$$typeof:a,type:g,key:c,ref:u,props:l,_owner:o.current}}y.Fragment=n,y.jsx=b,y.jsxs=b},80934:function(S,y){"use strict";/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function t(F){"@swc/helpers - typeof";return F&&typeof Symbol!="undefined"&&F.constructor===Symbol?"symbol":typeof F}var e=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),b=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),l=Symbol.iterator;function c(F){return F===null||typeof F!="object"?null:(F=l&&F[l]||F["@@iterator"],typeof F=="function"?F:null)}var u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,x={};function j(F,Z,oe){this.props=F,this.context=Z,this.refs=x,this.updater=oe||u}j.prototype.isReactComponent={},j.prototype.setState=function(F,Z){if(typeof F!="object"&&typeof F!="function"&&F!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,F,Z,"setState")},j.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function p(){}p.prototype=j.prototype;function _(F,Z,oe){this.props=F,this.context=Z,this.refs=x,this.updater=oe||u}var E=_.prototype=new p;E.constructor=_,h(E,j.prototype),E.isPureReactComponent=!0;var I=Array.isArray,O=Object.prototype.hasOwnProperty,M={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function A(F,Z,oe){var le,ue={},he=null,de=null;if(Z!=null)for(le in Z.ref!==void 0&&(de=Z.ref),Z.key!==void 0&&(he=""+Z.key),Z)O.call(Z,le)&&!D.hasOwnProperty(le)&&(ue[le]=Z[le]);var ve=arguments.length-2;if(ve===1)ue.children=oe;else if(1<ve){for(var pe=Array(ve),be=0;be<ve;be++)pe[be]=arguments[be+2];ue.children=pe}if(F&&F.defaultProps)for(le in ve=F.defaultProps,ve)ue[le]===void 0&&(ue[le]=ve[le]);return{$$typeof:e,type:F,key:he,ref:de,props:ue,_owner:M.current}}function B(F,Z){return{$$typeof:e,type:F.type,key:Z,ref:F.ref,props:F.props,_owner:F._owner}}function U(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function L(F){var Z={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(oe){return Z[oe]})}var k=/\/+/g;function Y(F,Z){return typeof F=="object"&&F!==null&&F.key!=null?L(""+F.key):Z.toString(36)}function V(F,Z,oe,le,ue){var he=typeof F=="undefined"?"undefined":t(F);(he==="undefined"||he==="boolean")&&(F=null);var de=!1;if(F===null)de=!0;else switch(he){case"string":case"number":de=!0;break;case"object":switch(F.$$typeof){case e:case a:de=!0}}if(de)return de=F,ue=ue(de),F=le===""?"."+Y(de,0):le,I(ue)?(oe="",F!=null&&(oe=F.replace(k,"$&/")+"/"),V(ue,Z,oe,"",function(be){return be})):ue!=null&&(U(ue)&&(ue=B(ue,oe+(!ue.key||de&&de.key===ue.key?"":(""+ue.key).replace(k,"$&/")+"/")+F)),Z.push(ue)),1;if(de=0,le=le===""?".":le+":",I(F))for(var ve=0;ve<F.length;ve++){he=F[ve];var pe=le+Y(he,ve);de+=V(he,Z,oe,pe,ue)}else if(pe=c(F),typeof pe=="function")for(F=pe.call(F),ve=0;!(he=F.next()).done;)he=he.value,pe=le+Y(he,ve++),de+=V(he,Z,oe,pe,ue);else if(he==="object")throw Z=String(F),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return de}function H(F,Z,oe){if(F==null)return F;var le=[],ue=0;return V(F,le,"","",function(he){return Z.call(oe,he,ue++)}),le}function N(F){if(F._status===-1){var Z=F._result;Z=Z(),Z.then(function(oe){(F._status===0||F._status===-1)&&(F._status=1,F._result=oe)},function(oe){(F._status===0||F._status===-1)&&(F._status=2,F._result=oe)}),F._status===-1&&(F._status=0,F._result=Z)}if(F._status===1)return F._result.default;throw F._result}var q={current:null},G={transition:null},Q={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:G,ReactCurrentOwner:M};y.Children={map:H,forEach:function(Z,oe,le){H(Z,function(){oe.apply(this,arguments)},le)},count:function(Z){var oe=0;return H(Z,function(){oe++}),oe},toArray:function(Z){return H(Z,function(oe){return oe})||[]},only:function(Z){if(!U(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},y.Component=j,y.Fragment=n,y.Profiler=o,y.PureComponent=_,y.StrictMode=r,y.Suspense=d,y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Q,y.cloneElement=function(F,Z,oe){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var le=h({},F.props),ue=F.key,he=F.ref,de=F._owner;if(Z!=null){if(Z.ref!==void 0&&(he=Z.ref,de=M.current),Z.key!==void 0&&(ue=""+Z.key),F.type&&F.type.defaultProps)var ve=F.type.defaultProps;for(pe in Z)O.call(Z,pe)&&!D.hasOwnProperty(pe)&&(le[pe]=Z[pe]===void 0&&ve!==void 0?ve[pe]:Z[pe])}var pe=arguments.length-2;if(pe===1)le.children=oe;else if(1<pe){ve=Array(pe);for(var be=0;be<pe;be++)ve[be]=arguments[be+2];le.children=ve}return{$$typeof:e,type:F.type,key:ue,ref:he,props:le,_owner:de}},y.createContext=function(F){return F={$$typeof:b,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:m,_context:F},F.Consumer=F},y.createElement=A,y.createFactory=function(F){var Z=A.bind(null,F);return Z.type=F,Z},y.createRef=function(){return{current:null}},y.forwardRef=function(F){return{$$typeof:g,render:F}},y.isValidElement=U,y.lazy=function(F){return{$$typeof:v,_payload:{_status:-1,_result:F},_init:N}},y.memo=function(F,Z){return{$$typeof:f,type:F,compare:Z===void 0?null:Z}},y.startTransition=function(F){var Z=G.transition;G.transition={};try{F()}finally{G.transition=Z}},y.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},y.useCallback=function(F,Z){return q.current.useCallback(F,Z)},y.useContext=function(F){return q.current.useContext(F)},y.useDebugValue=function(){},y.useDeferredValue=function(F){return q.current.useDeferredValue(F)},y.useEffect=function(F,Z){return q.current.useEffect(F,Z)},y.useId=function(){return q.current.useId()},y.useImperativeHandle=function(F,Z,oe){return q.current.useImperativeHandle(F,Z,oe)},y.useInsertionEffect=function(F,Z){return q.current.useInsertionEffect(F,Z)},y.useLayoutEffect=function(F,Z){return q.current.useLayoutEffect(F,Z)},y.useMemo=function(F,Z){return q.current.useMemo(F,Z)},y.useReducer=function(F,Z,oe){return q.current.useReducer(F,Z,oe)},y.useRef=function(F){return q.current.useRef(F)},y.useState=function(F){return q.current.useState(F)},y.useSyncExternalStore=function(F,Z,oe){return q.current.useSyncExternalStore(F,Z,oe)},y.useTransition=function(){return q.current.useTransition()},y.version="18.2.0"},44583:function(S,y,t){"use strict";S.exports=t(80934)},88095:function(S,y,t){"use strict";S.exports=t(6293)},495:function(S){function y(a,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](a):a instanceof n}function t(a){"@swc/helpers - typeof";return a&&typeof Symbol!="undefined"&&a.constructor===Symbol?"symbol":typeof a}var e=function(a){"use strict";var n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(G,Q,F){G[Q]=F.value},m,b=typeof Symbol=="function"?Symbol:{},g=b.iterator||"@@iterator",d=b.asyncIterator||"@@asyncIterator",f=b.toStringTag||"@@toStringTag";function v(G,Q,F){return Object.defineProperty(G,Q,{value:F,enumerable:!0,configurable:!0,writable:!0}),G[Q]}try{v({},"")}catch(G){v=function(F,Z,oe){return F[Z]=oe}}function l(G,Q,F,Z){var oe=Q&&y(Q.prototype,_)?Q:_,le=Object.create(oe.prototype),ue=new H(Z||[]);return o(le,"_invoke",{value:L(G,F,ue)}),le}a.wrap=l;function c(G,Q,F){try{return{type:"normal",arg:G.call(Q,F)}}catch(Z){return{type:"throw",arg:Z}}}var u="suspendedStart",h="suspendedYield",x="executing",j="completed",p={};function _(){}function E(){}function I(){}var O={};v(O,g,function(){return this});var M=Object.getPrototypeOf,D=M&&M(M(N([])));D&&D!==n&&r.call(D,g)&&(O=D);var A=I.prototype=_.prototype=Object.create(O);E.prototype=I,o(A,"constructor",{value:I,configurable:!0}),o(I,"constructor",{value:E,configurable:!0}),E.displayName=v(I,f,"GeneratorFunction");function B(G){["next","throw","return"].forEach(function(Q){v(G,Q,function(F){return this._invoke(Q,F)})})}a.isGeneratorFunction=function(G){var Q=typeof G=="function"&&G.constructor;return Q?Q===E||(Q.displayName||Q.name)==="GeneratorFunction":!1},a.mark=function(G){return Object.setPrototypeOf?Object.setPrototypeOf(G,I):(G.__proto__=I,v(G,f,"GeneratorFunction")),G.prototype=Object.create(A),G},a.awrap=function(G){return{__await:G}};function U(G,Q){function F(le,ue,he,de){var ve=c(G[le],G,ue);if(ve.type==="throw")de(ve.arg);else{var pe=ve.arg,be=pe.value;return be&&typeof be=="object"&&r.call(be,"__await")?Q.resolve(be.__await).then(function(ye){F("next",ye,he,de)},function(ye){F("throw",ye,he,de)}):Q.resolve(be).then(function(ye){pe.value=ye,he(pe)},function(ye){return F("throw",ye,he,de)})}}var Z;function oe(le,ue){function he(){return new Q(function(de,ve){F(le,ue,de,ve)})}return Z=Z?Z.then(he,he):he()}o(this,"_invoke",{value:oe})}B(U.prototype),v(U.prototype,d,function(){return this}),a.AsyncIterator=U,a.async=function(G,Q,F,Z,oe){oe===void 0&&(oe=Promise);var le=new U(l(G,Q,F,Z),oe);return a.isGeneratorFunction(Q)?le:le.next().then(function(ue){return ue.done?ue.value:le.next()})};function L(G,Q,F){var Z=u;return function(le,ue){if(Z===x)throw new Error("Generator is already running");if(Z===j){if(le==="throw")throw ue;return q()}for(F.method=le,F.arg=ue;;){var he=F.delegate;if(he){var de=k(he,F);if(de){if(de===p)continue;return de}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(Z===u)throw Z=j,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);Z=x;var ve=c(G,Q,F);if(ve.type==="normal"){if(Z=F.done?j:h,ve.arg===p)continue;return{value:ve.arg,done:F.done}}else ve.type==="throw"&&(Z=j,F.method="throw",F.arg=ve.arg)}}}function k(G,Q){var F=Q.method,Z=G.iterator[F];if(Z===m)return Q.delegate=null,F==="throw"&&G.iterator.return&&(Q.method="return",Q.arg=m,k(G,Q),Q.method==="throw")||F!=="return"&&(Q.method="throw",Q.arg=new TypeError("The iterator does not provide a '"+F+"' method")),p;var oe=c(Z,G.iterator,Q.arg);if(oe.type==="throw")return Q.method="throw",Q.arg=oe.arg,Q.delegate=null,p;var le=oe.arg;if(!le)return Q.method="throw",Q.arg=new TypeError("iterator result is not an object"),Q.delegate=null,p;if(le.done)Q[G.resultName]=le.value,Q.next=G.nextLoc,Q.method!=="return"&&(Q.method="next",Q.arg=m);else return le;return Q.delegate=null,p}B(A),v(A,f,"Generator"),v(A,g,function(){return this}),v(A,"toString",function(){return"[object Generator]"});function Y(G){var Q={tryLoc:G[0]};1 in G&&(Q.catchLoc=G[1]),2 in G&&(Q.finallyLoc=G[2],Q.afterLoc=G[3]),this.tryEntries.push(Q)}function V(G){var Q=G.completion||{};Q.type="normal",delete Q.arg,G.completion=Q}function H(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(Y,this),this.reset(!0)}a.keys=function(G){var Q=Object(G),F=[];for(var Z in Q)F.push(Z);return F.reverse(),function oe(){for(;F.length;){var le=F.pop();if(le in Q)return oe.value=le,oe.done=!1,oe}return oe.done=!0,oe}};function N(G){if(G!=null){var Q=G[g];if(Q)return Q.call(G);if(typeof G.next=="function")return G;if(!isNaN(G.length)){var F=-1,Z=function oe(){for(;++F<G.length;)if(r.call(G,F))return oe.value=G[F],oe.done=!1,oe;return oe.value=m,oe.done=!0,oe};return Z.next=Z}}throw new TypeError((typeof G=="undefined"?"undefined":t(G))+" is not iterable")}a.values=N;function q(){return{value:m,done:!0}}return H.prototype={constructor:H,reset:function(Q){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(V),!Q)for(var F in this)F.charAt(0)==="t"&&r.call(this,F)&&!isNaN(+F.slice(1))&&(this[F]=m)},stop:function(){this.done=!0;var Q=this.tryEntries[0],F=Q.completion;if(F.type==="throw")throw F.arg;return this.rval},dispatchException:function(Q){if(this.done)throw Q;var F=this;function Z(ve,pe){return ue.type="throw",ue.arg=Q,F.next=ve,pe&&(F.method="next",F.arg=m),!!pe}for(var oe=this.tryEntries.length-1;oe>=0;--oe){var le=this.tryEntries[oe],ue=le.completion;if(le.tryLoc==="root")return Z("end");if(le.tryLoc<=this.prev){var he=r.call(le,"catchLoc"),de=r.call(le,"finallyLoc");if(he&&de){if(this.prev<le.catchLoc)return Z(le.catchLoc,!0);if(this.prev<le.finallyLoc)return Z(le.finallyLoc)}else if(he){if(this.prev<le.catchLoc)return Z(le.catchLoc,!0)}else if(de){if(this.prev<le.finallyLoc)return Z(le.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Q,F){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var oe=this.tryEntries[Z];if(oe.tryLoc<=this.prev&&r.call(oe,"finallyLoc")&&this.prev<oe.finallyLoc){var le=oe;break}}le&&(Q==="break"||Q==="continue")&&le.tryLoc<=F&&F<=le.finallyLoc&&(le=null);var ue=le?le.completion:{};return ue.type=Q,ue.arg=F,le?(this.method="next",this.next=le.finallyLoc,p):this.complete(ue)},complete:function(Q,F){if(Q.type==="throw")throw Q.arg;return Q.type==="break"||Q.type==="continue"?this.next=Q.arg:Q.type==="return"?(this.rval=this.arg=Q.arg,this.method="return",this.next="end"):Q.type==="normal"&&F&&(this.next=F),p},finish:function(Q){for(var F=this.tryEntries.length-1;F>=0;--F){var Z=this.tryEntries[F];if(Z.finallyLoc===Q)return this.complete(Z.completion,Z.afterLoc),V(Z),p}},catch:function(G){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var F=this.tryEntries[Q];if(F.tryLoc===G){var Z=F.completion;if(Z.type==="throw"){var oe=Z.arg;V(F)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(Q,F,Z){return this.delegate={iterator:N(Q),resultName:F,nextLoc:Z},this.method==="next"&&(this.arg=m),p}},a}(S.exports);try{regeneratorRuntime=e}catch(a){typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},95565:function(S,y){"use strict";/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function t(N,q){var G=N.length;N.push(q);e:for(;0<G;){var Q=G-1>>>1,F=N[Q];if(0<n(F,q))N[Q]=q,N[G]=F,G=Q;else break e}}function e(N){return N.length===0?null:N[0]}function a(N){if(N.length===0)return null;var q=N[0],G=N.pop();if(G!==q){N[0]=G;e:for(var Q=0,F=N.length,Z=F>>>1;Q<Z;){var oe=2*(Q+1)-1,le=N[oe],ue=oe+1,he=N[ue];if(0>n(le,G))ue<F&&0>n(he,le)?(N[Q]=he,N[ue]=G,Q=ue):(N[Q]=le,N[oe]=G,Q=oe);else if(ue<F&&0>n(he,G))N[Q]=he,N[ue]=G,Q=ue;else break e}}return q}function n(N,q){var G=N.sortIndex-q.sortIndex;return G!==0?G:N.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var r=performance;y.unstable_now=function(){return r.now()}}else{var o=Date,m=o.now();y.unstable_now=function(){return o.now()-m}}var b=[],g=[],d=1,f=null,v=3,l=!1,c=!1,u=!1,h=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var q=e(g);q!==null;){if(q.callback===null)a(g);else if(q.startTime<=N)a(g),q.sortIndex=q.expirationTime,t(b,q);else break;q=e(g)}}function _(N){if(u=!1,p(N),!c)if(e(b)!==null)c=!0,V(E);else{var q=e(g);q!==null&&H(_,q.startTime-N)}}function E(N,q){c=!1,u&&(u=!1,x(M),M=-1),l=!0;var G=v;try{for(p(q),f=e(b);f!==null&&(!(f.expirationTime>q)||N&&!B());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,v=f.priorityLevel;var F=Q(f.expirationTime<=q);q=y.unstable_now(),typeof F=="function"?f.callback=F:f===e(b)&&a(b),p(q)}else a(b);f=e(b)}if(f!==null)var Z=!0;else{var oe=e(g);oe!==null&&H(_,oe.startTime-q),Z=!1}return Z}finally{f=null,v=G,l=!1}}var I=!1,O=null,M=-1,D=5,A=-1;function B(){return!(y.unstable_now()-A<D)}function U(){if(O!==null){var N=y.unstable_now();A=N;var q=!0;try{q=O(!0,N)}finally{q?L():(I=!1,O=null)}}else I=!1}var L;if(typeof j=="function")L=function(){j(U)};else if(typeof MessageChannel!="undefined"){var k=new MessageChannel,Y=k.port2;k.port1.onmessage=U,L=function(){Y.postMessage(null)}}else L=function(){h(U,0)};function V(N){O=N,I||(I=!0,L())}function H(N,q){M=h(function(){N(y.unstable_now())},q)}y.unstable_IdlePriority=5,y.unstable_ImmediatePriority=1,y.unstable_LowPriority=4,y.unstable_NormalPriority=3,y.unstable_Profiling=null,y.unstable_UserBlockingPriority=2,y.unstable_cancelCallback=function(N){N.callback=null},y.unstable_continueExecution=function(){c||l||(c=!0,V(E))},y.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<N?Math.floor(1e3/N):5},y.unstable_getCurrentPriorityLevel=function(){return v},y.unstable_getFirstCallbackNode=function(){return e(b)},y.unstable_next=function(N){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var G=v;v=q;try{return N()}finally{v=G}},y.unstable_pauseExecution=function(){},y.unstable_requestPaint=function(){},y.unstable_runWithPriority=function(N,q){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var G=v;v=N;try{return q()}finally{v=G}},y.unstable_scheduleCallback=function(N,q,G){var Q=y.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?Q+G:Q):G=Q,N){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=G+F,N={id:d++,callback:q,priorityLevel:N,startTime:G,expirationTime:F,sortIndex:-1},G>Q?(N.sortIndex=G,t(g,N),e(b)===null&&N===e(g)&&(u?(x(M),M=-1):u=!0,H(_,G-Q))):(N.sortIndex=F,t(b,N),c||l||(c=!0,V(E))),N},y.unstable_shouldYield=B,y.unstable_wrapCallback=function(N){var q=v;return function(){var G=v;v=q;try{return N.apply(this,arguments)}finally{v=G}}}},7864:function(S,y,t){"use strict";S.exports=t(95565)},80408:function(){self.fetch||(self.fetch=function(S,y){return y=y||{},new Promise(function(t,e){var a=new XMLHttpRequest,n=[],r={},o=function b(){return{ok:(a.status/100|0)==2,statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:b,headers:{keys:function(){return n},entries:function(){return n.map(function(d){return[d,a.getResponseHeader(d)]})},get:function(d){return a.getResponseHeader(d)},has:function(d){return a.getResponseHeader(d)!=null}}}};for(var m in a.open(y.method||"get",S,!0),a.onload=function(){a.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(b,g){r[g]||n.push(r[g]=g)}),t(o())},a.onerror=e,a.withCredentials=y.credentials=="include",y.headers)a.setRequestHeader(m,y.headers[m]);a.send(y.body||null)})})},11358:function(S,y,t){"use strict";t.d(y,{OY:function(){return j},TS:function(){return c},Tj:function(){return m},Ul:function(){return d},hS:function(){return u},pb:function(){return o}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(M,D){(D==null||D>M.length)&&(D=M.length);for(var A=0,B=new Array(D);A<D;A++)B[A]=M[A];return B}function a(M){"@swc/helpers - typeof";return M&&typeof Symbol!="undefined"&&M.constructor===Symbol?"symbol":typeof M}function n(M,D){if(M){if(typeof M=="string")return e(M,D);var A=Object.prototype.toString.call(M).slice(8,-1);if(A==="Object"&&M.constructor&&(A=M.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return e(M,D)}}function r(M,D){var A=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(A)return(A=A.call(M)).next.bind(A);if(Array.isArray(M)||(A=n(M))||D&&M&&typeof M.length=="number"){A&&(M=A);var B=0;return function(){return B>=M.length?{done:!0}:{done:!1,value:M[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=function(M){return function(D){if(D==null)return D;if(Array.isArray(D)){for(var A=[],B=0;B<D.length;B++){var U=D[B];M(U,B,D)&&A.push(U)}return A}throw new Error("filter() can't iterate on type "+(typeof D=="undefined"?"undefined":a(D)))}},m=function(M){return function(D){if(D==null)return D;if(Array.isArray(D))return D.map(M);if(typeof D=="object")return Object.entries(D).map(function(A){var B=A[0],U=A[1];return M(U,B,D)});throw new Error("map() can't iterate on type "+(typeof D=="undefined"?"undefined":a(D)))}},b=function(M,D){for(var A=[],B=r(M),U;!(U=B()).done;){var L=U.value,k=D(L);k!==void 0&&A.push(k)}return A},g=function(M,D){for(var A=M.criteria,B=D.criteria,U=A.length,L=0;L<U;L++){var k=A[L],Y=B[L];if(k<Y)return-1;if(k>Y)return 1}return 0},d=function(){for(var M=arguments.length,D=new Array(M),A=0;A<M;A++)D[A]=arguments[A];return function(B){var U=function(H){var N=B[H];k.push({criteria:D.map(function(q){return q(N)}),value:N})};if(!Array.isArray(B))return B;for(var L=B.length,k=[],Y=0;Y<L;Y++)U(Y);k.sort(g);for(var V=[];L--;)V[L]=k[L].value;return V}},f=d(),v=d(),l=function(M,D){return new Array(D-M).fill(null).map(function(A,B){return B+M})},c=function(M,D){return function(A){var B=A.length,U,L;for(D===void 0?(U=1,L=A[0]):(U=0,L=D);U<B;U++)L=M(L,A[U],U,A);return L}},u=function(M){return function(D){var A=D.length,B=[],U=M?[]:B,L=-1;e:for(;++L<A;){var k=D[L],Y=M?M(k):k;if(Y===Y){for(var V=U.length;V--;)if(U[V]===Y)continue e;M&&U.push(Y),B.push(k)}else U.includes(Y)||(U!==B&&U.push(Y),B.push(k))}return B}},h=u(),x=function(){for(var M=arguments.length,D=new Array(M),A=0;A<M;A++)D[A]=arguments[A];if(D.length===0)return[];for(var B=D.length,U=D[0].length,L=[],k=0;k<U;k++){for(var Y=[],V=0;V<B;V++)Y.push(D[V][k]);L.push(Y)}return L},j=function(M){return function(){for(var D=arguments.length,A=new Array(D),B=0;B<D;B++)A[B]=arguments[B];return m(function(U){return M.apply(void 0,[].concat(U))})(x.apply(void 0,[].concat(A)))}},p=function(M,D,A){if(D.length===0)return 0;for(var B=M(A),U=[0,D.length],L=U[0],k=U[1],Y=void 0,V=0;L<k;)if(V=L+k>>1,Y=M(D[V]),Y<B)L=V+1;else{if(Y===B)return V;k=V}return Y>B?V:V+1},_=function(M){return function(D,A){var B=[].concat(D);return B.splice(p(M,D,A),0,A),B}},E=function(M,D){for(var A=[],B=[],U=D,L=r(M),k;!(k=L()).done;){var Y=k.value;B.push(Y),U--,U||(U=D,A.push(B),B=[])}return B.length&&A.push(B),A},I=function(M){return typeof M=="object"&&M!==null},O=function(){for(var M=arguments.length,D=new Array(M),A=0;A<M;A++)D[A]=arguments[A];for(var B={},U=r(D),L;!(L=U()).done;)for(var k=L.value,Y=r(Object.keys(k)),V;!(V=Y()).done;){var H=V.value,N=B[H],q=k[H];Array.isArray(N)&&Array.isArray(q)?B[H]=[].concat(N,q):I(N)&&I(q)?B[H]=O(N,q):B[H]=q}return B}},80324:function(S,y,t){"use strict";t.d(y,{b:function(){return e}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=function(){"use strict";function a(){this.listeners={}}var n=a.prototype;return n.on=function(o,m){this.listeners[o]=this.listeners[o]||[],this.listeners[o].push(m)},n.off=function(o,m){var b=this.listeners[o];if(!b)throw new Error('There is no listeners for "'+o+'"');this.listeners[o]=b.filter(function(g){return g!==m})},n.emit=function(o){for(var m=arguments.length,b=new Array(m>1?m-1:0),g=1;g<m;g++)b[g-1]=arguments[g];var d=this.listeners[o];if(d)for(var f=0,v=d.length;f<v;f+=1){var l=d[f];l.apply(void 0,[].concat(b))}},n.clear=function(){this.listeners={}},a}()},28763:function(S,y,t){"use strict";t.d(y,{L:function(){return o}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(b,g){(g==null||g>b.length)&&(g=b.length);for(var d=0,f=new Array(g);d<g;d++)f[d]=b[d];return f}function a(b,g){if(b){if(typeof b=="string")return e(b,g);var d=Object.prototype.toString.call(b).slice(8,-1);if(d==="Object"&&b.constructor&&(d=b.constructor.name),d==="Map"||d==="Set")return Array.from(d);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return e(b,g)}}function n(b,g){var d=typeof Symbol!="undefined"&&b[Symbol.iterator]||b["@@iterator"];if(d)return(d=d.call(b)).next.bind(d);if(Array.isArray(b)||(d=a(b))||g&&b&&typeof b.length=="number"){d&&(b=d);var f=0;return function(){return f>=b.length?{done:!0}:{done:!1,value:b[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.")}var r=void 0,o=function(){for(var b=arguments.length,g=new Array(b),d=0;d<b;d++)g[d]=arguments[d];var f=r;return function(v){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(var h=v,x=n(g),j;!(j=x()).done;){var p=j.value;Array.isArray(p)?h=o.apply(void 0,[].concat(p)).apply(f,[].concat([h],c)):p&&(h=p.apply(void 0,[].concat([h],c)))}return h}},m=function(){for(var b=arguments.length,g=new Array(b),d=0;d<b;d++)g[d]=arguments[d];return g.length===0?function(f){return f}:g.length===1?g[0]:g.reduce(function(f,v){return function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),h=1;h<c;h++)u[h-1]=arguments[h];return f.apply(void 0,[].concat([v.apply(void 0,[].concat([l],u))],u))}})}},61652:function(S,y,t){"use strict";t.d(y,{R:function(){return p},Ri:function(){return n},Ss:function(){return o},W8:function(){return V},Yw:function(){return zt},aW:function(){return a},bh:function(){return ht},cH:function(){return m},gf:function(){return x},iU:function(){return h},iy:function(){return f},re:function(){return r},s6:function(){return d},sP:function(){return we},sV:function(){return ot},zh:function(){return j}});/**
* All possible browser keycodes, in one file.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=8,a=9,n=13,r=16,o=17,m=18,b=19,g=20,d=27,f=32,v=33,l=34,c=35,u=36,h=37,x=38,j=39,p=40,_=45,E=46,I=48,O=49,M=50,D=51,A=52,B=53,U=54,L=55,k=56,Y=57,V=65,H=66,N=67,q=68,G=69,Q=70,F=71,Z=72,oe=73,le=74,ue=75,he=76,de=77,ve=78,pe=79,be=80,ye=81,Te=82,Ke=83,$e=84,We=85,Qe=86,Ye=87,mt=88,vt=89,ht=90,ot=112,He=113,Ne=114,ke=115,we=116,qe=117,Je=118,lt=119,at=120,Xt=121,Wt=122,zt=123,bt=186,st=187,it=188,gt=189,Pt=190,Ft=191,Yt=219,ln=220,tn=221,yn=222},5229:function(S,y,t){"use strict";t.d(y,{J$:function(){return o},LI:function(){return b},Mg:function(){return g},TG:function(){return f},hs:function(){return m},qE:function(){return r}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(l,c){(c==null||c>l.length)&&(c=l.length);for(var u=0,h=new Array(c);u<c;u++)h[u]=l[u];return h}function a(l,c){if(l){if(typeof l=="string")return e(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(u);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(l,c)}}function n(l,c){var u=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=a(l))||c&&l&&typeof l.length=="number"){u&&(l=u);var h=0;return function(){return h>=l.length?{done:!0}:{done:!1,value:l[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(l,c,u){return l<c?c:l>u?u:l},o=function(l){return l<0?0:l>1?1:l},m=function(l,c,u){return(l-c)/(u-c)},b=function(l,c){if(!l||isNaN(l))return l;var u,h,x,j;return c|=0,u=Math.pow(10,c),l*=u,j=+(l>0)|-(l<0),x=Math.abs(l%1)>=.4999999999854481,h=Math.floor(l),x&&(l=h+(j>0)),(x?l:Math.round(l))/u},g=function(l,c){return c===void 0&&(c=0),Number(l).toFixed(Math.max(c,0))},d=function(l,c){return c&&l>=c[0]&&l<=c[1]},f=function(l,c){for(var u=n(Object.keys(c)),h;!(h=u()).done;){var x=h.value,j=c[x];if(d(l,j))return x}},v=function(l){return Math.floor(l)!==l&&l.toString().split(".")[1].length||0}},3710:function(S,y,t){"use strict";t.d(y,{k:function(){return f}});/**
* Ghetto performance measurement tools.
*
* Uses NODE_ENV to remove itself from production builds.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e,a=60,n=1e3/a,r=!!((e=window.performance)!=null&&e.now),o={},m={},b=function(v,l){},g=function(v,l){if(0)var c,u,h},d=function(v){var l=v/n;return v.toFixed(v<10?1:0)+"ms ("+l.toFixed(2)+" frames)"},f={mark:b,measure:g}},84352:function(S,y,t){"use strict";t.d(y,{Ly:function(){return e},a_:function(){return n},b5:function(){return r}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=function(o){for(var m="",b=0;b<o.length;b++){var g=o[b];typeof g=="string"&&(m+=g+" ")}return m},a=function(o){return Array.isArray(o)?o.flat().filter(function(m){return m}):typeof o=="object"?[o]:[]},n=function(o,m){var b;for(b in o)if(!(b in m))return!0;for(b in m)if(o[b]!==m[b])return!0;return!1},r=function(o){return o!=null&&typeof o!="boolean"}},40001:function(S,y,t){"use strict";t.d(y,{HY:function(){return b},Tw:function(){return m},VP:function(){return g},y$:function(){return o}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(d,f){(f==null||f>d.length)&&(f=d.length);for(var v=0,l=new Array(f);v<f;v++)l[v]=d[v];return l}function a(){return a=Object.assign||function(d){for(var f=1;f<arguments.length;f++){var v=arguments[f];for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&(d[l]=v[l])}return d},a.apply(this,arguments)}function n(d,f){if(d){if(typeof d=="string")return e(d,f);var v=Object.prototype.toString.call(d).slice(8,-1);if(v==="Object"&&d.constructor&&(v=d.constructor.name),v==="Map"||v==="Set")return Array.from(v);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return e(d,f)}}function r(d,f){var v=typeof Symbol!="undefined"&&d[Symbol.iterator]||d["@@iterator"];if(v)return(v=v.call(d)).next.bind(v);if(Array.isArray(d)||(v=n(d))||f&&d&&typeof d.length=="number"){v&&(d=v);var l=0;return function(){return l>=d.length?{done:!0}:{done:!1,value:d[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=function(d,f){if(f)return f(o)(d);var v,l=[],c=function(){return v},u=function(x){l.push(x)},h=function(x){v=d(v,x);for(var j=0;j<l.length;j++)l[j]()};return h({type:"@@INIT"}),{dispatch:h,subscribe:u,getState:c}},m=function(){for(var d=arguments.length,f=new Array(d),v=0;v<d;v++)f[v]=arguments[v];return function(l){return function(c){for(var u=arguments.length,h=new Array(u>1?u-1:0),x=1;x<u;x++)h[x-1]=arguments[x];var j=l.apply(void 0,[].concat([c],h)),p=function(){throw new Error("Dispatching while constructing your middleware is not allowed.")},_={getState:j.getState,dispatch:function(I){for(var O=arguments.length,M=new Array(O>1?O-1:0),D=1;D<O;D++)M[D-1]=arguments[D];return p.apply(void 0,[].concat([I],M))}},E=f.map(function(I){return I(_)});return p=E.reduceRight(function(I,O){return O(I)},j.dispatch),a({},j,{dispatch:p})}}},b=function(d){var f=Object.keys(d);return function(v,l){v===void 0&&(v={});for(var c=a({},v),u=!1,h=r(f),x;!(x=h()).done;){var j=x.value,p=d[j],_=v[j],E=p(_,l);_!==E&&(u=!0,c[j]=E)}return u?c:v}},g=function(d,f){var v=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var h={type:d};if(f){var x=f.apply(void 0,[].concat(c));if(!x)throw new Error("prepare function did not return an object");h=a({},h,x)}else h.payload=c[0];return h};return v.toString=function(){return d},v.type=d,v.match=function(l){return l.type===d},v}},97668:function(S,y,t){"use strict";t.d(y,{IG:function(){return _}});/**
* Browser-agnostic abstraction of key-value web storage.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(E,I,O,M,D,A,B){try{var U=E[A](B),L=U.value}catch(k){O(k);return}U.done?I(L):Promise.resolve(L).then(M,D)}function a(E){return function(){var I=this,O=arguments;return new Promise(function(M,D){var A=E.apply(I,O);function B(L){e(A,M,D,B,U,"next",L)}function U(L){e(A,M,D,B,U,"throw",L)}B(void 0)})}}function n(E,I){var O,M,D,A,B={label:0,sent:function(){if(D[0]&1)throw D[1];return D[1]},trys:[],ops:[]};return A={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function U(k){return function(Y){return L([k,Y])}}function L(k){if(O)throw new TypeError("Generator is already executing.");for(;B;)try{if(O=1,M&&(D=k[0]&2?M.return:k[0]?M.throw||((D=M.return)&&D.call(M),0):M.next)&&!(D=D.call(M,k[1])).done)return D;switch(M=0,D&&(k=[k[0]&2,D.value]),k[0]){case 0:case 1:D=k;break;case 4:return B.label++,{value:k[1],done:!1};case 5:B.label++,M=k[1],k=[0];continue;case 7:k=B.ops.pop(),B.trys.pop();continue;default:if(D=B.trys,!(D=D.length>0&&D[D.length-1])&&(k[0]===6||k[0]===2)){B=0;continue}if(k[0]===3&&(!D||k[1]>D[0]&&k[1]<D[3])){B.label=k[1];break}if(k[0]===6&&B.label<D[1]){B.label=D[1],D=k;break}if(D&&B.label<D[2]){B.label=D[2],B.ops.push(k);break}D[2]&&B.ops.pop(),B.trys.pop();continue}k=I.call(E,B)}catch(Y){k=[6,Y],M=0}finally{O=D=0}if(k[0]&5)throw k[1];return{value:k[0]?k[1]:void 0,done:!0}}}var r=0,o=1,m=2,b=1,g="chomp",d="storage-v1",f="readonly",v="readwrite",l=function(E){return function(){try{return!!E()}catch(I){return!1}}},c=l(function(){return window.localStorage&&window.localStorage.getItem}),u=l(function(){return(window.indexedDB||window.msIndexedDB)&&(window.IDBTransaction||window.msIDBTransaction)}),h=function(){"use strict";function E(){this.impl=r,this.store={}}var I=E.prototype;return I.get=function(M){return this.store[M]},I.set=function(M,D){this.store[M]=D},I.remove=function(M){this.store[M]=void 0},I.clear=function(){this.store={}},E}(),x=function(){"use strict";function E(){this.impl=o}var I=E.prototype;return I.get=function(M){var D=localStorage.getItem(M);if(typeof D=="string")return JSON.parse(D)},I.set=function(M,D){localStorage.setItem(M,JSON.stringify(D))},I.remove=function(M){localStorage.removeItem(M)},I.clear=function(){localStorage.clear()},E}(),j=function(){"use strict";function E(){this.impl=m,this.dbPromise=new Promise(function(O,M){var D=window.indexedDB||window.msIndexedDB,A=D.open(g,b);A.onupgradeneeded=function(){try{A.result.createObjectStore(d)}catch(B){M(new Error("Failed to upgrade IDB: "+A.error))}},A.onsuccess=function(){return O(A.result)},A.onerror=function(){M(new Error("Failed to open IDB: "+A.error))}})}var I=E.prototype;return I.getStore=function(M){return this.dbPromise.then(function(D){return D.transaction(d,M).objectStore(d)})},I.get=function(M){var D=this;return a(function(){var A;return n(this,function(B){switch(B.label){case 0:return[4,D.getStore(f)];case 1:return A=B.sent(),[2,new Promise(function(U,L){var k=A.get(M);k.onsuccess=function(){return U(k.result)},k.onerror=function(){return L(k.error)}})]}})})()},I.set=function(M,D){var A=this;return a(function(){var B;return n(this,function(U){switch(U.label){case 0:return D===null&&(D=void 0),[4,A.getStore(v)];case 1:return B=U.sent(),B.put(D,M),[2]}})})()},I.remove=function(M){var D=this;return a(function(){var A;return n(this,function(B){switch(B.label){case 0:return[4,D.getStore(v)];case 1:return A=B.sent(),A.delete(M),[2]}})})()},I.clear=function(){var M=this;return a(function(){var D;return n(this,function(A){switch(A.label){case 0:return[4,M.getStore(v)];case 1:return D=A.sent(),D.clear(),[2]}})})()},E}(),p=function(){"use strict";function E(){this.backendPromise=a(function(){var O,M;return n(this,function(D){switch(D.label){case 0:if(!u())return[3,4];D.label=1;case 1:return D.trys.push([1,3,,4]),O=new j,[4,O.dbPromise];case 2:return D.sent(),[2,O];case 3:return M=D.sent(),[3,4];case 4:return c()?[2,new x]:[2,new h]}})})()}var I=E.prototype;return I.get=function(M){var D=this;return a(function(){var A;return n(this,function(B){switch(B.label){case 0:return[4,D.backendPromise];case 1:return A=B.sent(),[2,A.get(M)]}})})()},I.set=function(M,D){var A=this;return a(function(){var B;return n(this,function(U){switch(U.label){case 0:return[4,A.backendPromise];case 1:return B=U.sent(),[2,B.set(M,D)]}})})()},I.remove=function(M){var D=this;return a(function(){var A;return n(this,function(B){switch(B.label){case 0:return[4,D.backendPromise];case 1:return A=B.sent(),[2,A.remove(M)]}})})()},I.clear=function(){var M=this;return a(function(){var D;return n(this,function(A){switch(A.label){case 0:return[4,M.backendPromise];case 1:return D=A.sent(),[2,D.clear()]}})})()},E}(),_=new p},33854:function(S,y,t){"use strict";t.d(y,{Sn:function(){return f},XZ:function(){return m},ZH:function(){return b},c1:function(){return r},jT:function(){return v}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(c,u){(u==null||u>c.length)&&(u=c.length);for(var h=0,x=new Array(u);h<u;h++)x[h]=c[h];return x}function a(c,u){if(c){if(typeof c=="string")return e(c,u);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(h);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return e(c,u)}}function n(c,u){var h=typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(h)return(h=h.call(c)).next.bind(h);if(Array.isArray(c)||(h=a(c))||u&&c&&typeof c.length=="number"){h&&(c=h);var x=0;return function(){return x>=c.length?{done:!0}:{done:!1,value:c[x++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=function(c){if(Array.isArray(c))return r(c.join(""));for(var u=c.split("\n"),h,x=n(u),j;!(j=x()).done;)for(var p=j.value,_=0;_<p.length;_++){var E=p[_];if(E!==" "){(h===void 0||_<h)&&(h=_);break}}return h||(h=0),u.map(function(I){return I.substr(h).trimRight()}).join("\n").trim()},o=function(c){var u=function(x){return x.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},h=new RegExp("^"+c.split(/\*+/).map(u).join(".*")+"$");return function(x){return h.test(x)}},m=function(c,u){var h=c.toLowerCase().trim();return function(x){if(!h)return!0;var j=u?u(x):x;return j?j.toLowerCase().includes(h):!1}},b=function(c){return Array.isArray(c)?c.map(b):c.charAt(0).toUpperCase()+c.slice(1).toLowerCase()},g=function(c){return c.replace(/(^\w{1})|(\s+\w{1})/g,function(u){return u.toUpperCase()})},d=function(c){return c.replace(/^\w/,function(u){return u.toUpperCase()})},f=function(c){if(Array.isArray(c))return c.map(f);if(typeof c!="string")return c;for(var u=["Id","Tv"],h=["A","An","And","As","At","But","By","For","For","From","In","Into","Near","Nor","Of","On","Onto","Or","The","To","With"],x=c.replace(/([^\W_]+[^\s-]*) */g,function(A){return A.charAt(0).toUpperCase()+A.substr(1).toLowerCase()}),j=n(h),p;!(p=j()).done;){var _=p.value,E=new RegExp("\\s"+_+"\\s","g");x=x.replace(E,function(A){return A.toLowerCase()})}for(var I=n(u),O;!(O=I()).done;){var M=O.value,D=new RegExp("\\b"+M+"\\b","g");x=x.replace(D,function(A){return A.toLowerCase()})}return x},v=function(c){if(!c)return c;var u=/&(nbsp|amp|quot|lt|gt|apos);/g,h={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">",apos:"'"};return c.replace(/<br>/gi,"\n").replace(/<\/?[a-z0-9-_]+[^>]*>/gi,"").replace(u,function(x,j){return h[j]}).replace(/&#?([0-9]+);/gi,function(x,j){var p=parseInt(j,10);return String.fromCharCode(p)}).replace(/&#x?([0-9a-f]+);/gi,function(x,j){var p=parseInt(j,16);return String.fromCharCode(p)})},l=function(c){return Object.keys(c).map(function(u){return encodeURIComponent(u)+"="+encodeURIComponent(c[u])}).join("&")}},68554:function(S,y,t){"use strict";t.d(y,{CO:function(){return m},Jk:function(){return l},Xd:function(){return f},Z4:function(){return b},tk:function(){return g}});var e=t(11358);/**
* N-dimensional vector manipulation functions.
*
* Vectors are plain number arrays, i.e. [x, y, z].
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var a=function(u,h){return u+h},n=function(u,h){return u-h},r=function(u,h){return u*h},o=function(u,h){return u/h},m=function(){for(var u=arguments.length,h=new Array(u),x=0;x<u;x++)h[x]=arguments[x];return(0,e.TS)(function(j,p){return(0,e.OY)(a)(j,p)})(h)},b=function(){for(var u=arguments.length,h=new Array(u),x=0;x<u;x++)h[x]=arguments[x];return(0,e.TS)(function(j,p){return(0,e.OY)(n)(j,p)})(h)},g=function(){for(var u=arguments.length,h=new Array(u),x=0;x<u;x++)h[x]=arguments[x];return(0,e.TS)(function(j,p){return(0,e.OY)(r)(j,p)})(h)},d=function(){for(var u=arguments.length,h=new Array(u),x=0;x<u;x++)h[x]=arguments[x];return reduce(function(j,p){return zipWith(o)(j,p)})(h)},f=function(u,h){return(0,e.Tj)(function(x){return x*h})(u)},v=function(u){return map(function(h){return-h})(u)},l=function(u){return Math.sqrt((0,e.TS)(a)((0,e.OY)(r)(u,u)))},c=function(u){return d(u,l(u))}},80676:function(S,y,t){"use strict";t.d(y,{h:function(){return b},l:function(){return m}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function e(g,d){(d==null||d>g.length)&&(d=g.length);for(var f=0,v=new Array(d);f<d;f++)v[f]=g[f];return v}function a(g,d){if(g){if(typeof g=="string")return e(g,d);var f=Object.prototype.toString.call(g).slice(8,-1);if(f==="Object"&&g.constructor&&(f=g.constructor.name),f==="Map"||f==="Set")return Array.from(f);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return e(g,d)}}function n(g,d){var f=typeof Symbol!="undefined"&&g[Symbol.iterator]||g["@@iterator"];if(f)return(f=f.call(g)).next.bind(f);if(Array.isArray(g)||(f=a(g))||d&&g&&typeof g.length=="number"){f&&(g=f);var v=0;return function(){return v>=g.length?{done:!0}:{done:!1,value:g[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.")}var r=[/v4shim/i],o={},m=function(g){return o[g]||g},b=function(g){return function(d){return function(f){var v=f.type,l=f.payload;if(v==="asset/stylesheet"){Byond.loadCss(l);return}if(v==="asset/mappings"){for(var c=function(){var x=h.value;if(r.some(function(_){return _.test(x)}))return"continue";var j=l[x],p=x.split(".").pop();o[x]=j,p==="css"&&Byond.loadCss(j),p==="js"&&Byond.loadJs(j)},u=n(Object.keys(l)),h;!(h=u()).done;)c();return}d(f)}}}},4413:function(S,y,t){"use strict";t.d(y,{H$:function(){return u},J3:function(){return c},JV:function(){return j},Oc:function(){return D},QY:function(){return B},Ul:function(){return A},jB:function(){return E},pX:function(){return I}});var e=t(3710),a=t(40001),n=t(58463),r=t(80116),o=t(46989),m=t(47868),b=t(17002);/**
* This file provides a clear separation layer between backend updates
* and what state our React app sees.
*
* Sometimes backend can response without a "data" field, but our final
* state will still contain previous "data" because we are merging
* the response with already existing state.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function g(k,Y){(Y==null||Y>k.length)&&(Y=k.length);for(var V=0,H=new Array(Y);V<Y;V++)H[V]=k[V];return H}function d(){return d=Object.assign||function(k){for(var Y=1;Y<arguments.length;Y++){var V=arguments[Y];for(var H in V)Object.prototype.hasOwnProperty.call(V,H)&&(k[H]=V[H])}return k},d.apply(this,arguments)}function f(k,Y){if(k){if(typeof k=="string")return g(k,Y);var V=Object.prototype.toString.call(k).slice(8,-1);if(V==="Object"&&k.constructor&&(V=k.constructor.name),V==="Map"||V==="Set")return Array.from(V);if(V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V))return g(k,Y)}}function v(k,Y){var V=typeof Symbol!="undefined"&&k[Symbol.iterator]||k["@@iterator"];if(V)return(V=V.call(k)).next.bind(V);if(Array.isArray(k)||(V=f(k))||Y&&k&&typeof k.length=="number"){V&&(k=V);var H=0;return function(){return H>=k.length?{done:!0}:{done:!1,value:k[H++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l=(0,m.h)("backend"),c,u=function(k){c=k},h=(0,a.VP)("backend/update"),x=(0,a.VP)("backend/setSharedState"),j=(0,a.VP)("backend/suspendStart"),p=function(){return{type:"backend/suspendSuccess",payload:{timestamp:Date.now()}}},_={config:{},data:{},shared:{},suspended:Date.now(),suspending:!1},E=function(k,Y){k===void 0&&(k=_);var V=Y.type,H=Y.payload;if(V==="backend/update"){var N=d({},k.config,H.config),q=d({},k.data,H.static_data,H.data),G=d({},k.shared);if(H.shared)for(var Q=v(Object.keys(H.shared)),F;!(F=Q()).done;){var Z=F.value,oe=H.shared[Z];oe===""?G[Z]=void 0:G[Z]=JSON.parse(oe)}return d({},k,{config:N,data:q,shared:G,suspended:!1})}if(V==="backend/setSharedState"){var le=H.key,ue=H.nextState,he;return d({},k,{shared:d({},k.shared,(he={},he[le]=ue,he))})}if(V==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),V==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),V==="backend/suspendStart")return d({},k,{suspending:!0});if(V==="backend/suspendSuccess"){var de=H.timestamp;return d({},k,{data:{},shared:{},config:d({},k.config,{title:"",status:1}),suspending:!1,suspended:de})}return k},I=function(k){var Y,V;return function(H){return function(N){var q=M(k.getState()).suspended,G=N.type,Q=N.payload;if(G==="update"){k.dispatch(h(Q));return}if(G==="suspend"){k.dispatch(p());return}if(G==="ping"){Byond.sendMessage("ping/reply");return}if(G==="byond/mousedown"&&r.Nh.emit("byond/mousedown"),G==="byond/mouseup"&&r.Nh.emit("byond/mouseup"),G==="byond/ctrldown"&&r.Nh.emit("byond/ctrldown"),G==="byond/ctrlup"&&r.Nh.emit("byond/ctrlup"),G==="backend/suspendStart"&&!V){l.log("suspending ("+Byond.windowId+")");var F=function(){return Byond.sendMessage("suspend")};F(),V=setInterval(F,2e3)}if(G==="backend/suspendSuccess"&&((0,b.Su)(),clearInterval(V),V=void 0,Byond.winset(Byond.windowId,{"is-visible":!1}),setImmediate(function(){return(0,o.$)()})),G==="backend/update"){var Z,oe,le=(oe=Q.config)==null||(Z=oe.window)==null?void 0:Z.fancy;Y===void 0?Y=le:Y!==le&&(l.log("changing fancy mode to",le),Y=le,Byond.winset(Byond.windowId,{titlebar:!le,"can-resize":!le}))}return G==="backend/update"&&q&&(l.log("backend/update",Q),(0,b.P7)(),(0,n.MN)(),setImmediate(function(){e.k.mark("resume/start");var ue=M(k.getState()).suspended;ue||(Byond.winset(Byond.windowId,{"is-visible":!0}),e.k.mark("resume/finish"))})),H(N)}}},O=function(k,Y){Y===void 0&&(Y={});var V=typeof Y=="object"&&Y!==null&&!Array.isArray(Y);if(!V){l.error("Payload for act() must be an object, got this:",Y);return}Byond.sendMessage("act/"+k,Y)},M=function(k){return k.backend||{}},D=function(){var k,Y=c==null||(k=c.getState())==null?void 0:k.backend;return d({},Y,{act:O})},A=function(k,Y){var V,H=c==null||(V=c.getState())==null?void 0:V.backend,N,q=(N=H==null?void 0:H.shared)!=null?N:{},G=k in q?q[k]:Y;return[G,function(Q){c.dispatch(x({key:k,nextState:typeof Q=="function"?Q(G):Q}))}]},B=function(k,Y){var V,H=c==null||(V=c.getState())==null?void 0:V.backend,N,q=(N=H==null?void 0:H.shared)!=null?N:{},G=k in q?q[k]:Y;return[G,function(Q){Byond.sendMessage({type:"setSharedState",key:k,value:JSON.stringify(typeof Q=="function"?Q(G):Q)||""})}]},U=function(){return c.dispatch},L=function(k){return k(c==null?void 0:c.getState())}},60001:function(S,y,t){"use strict";t.d(y,{Fl:function(){return E},WP:function(){return I},az:function(){return O},zA:function(){return d}});var e=t(84352),a=t(44583),n=t(1568);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function r(M,D){(D==null||D>M.length)&&(D=M.length);for(var A=0,B=new Array(D);A<D;A++)B[A]=M[A];return B}function o(){return o=Object.assign||function(M){for(var D=1;D<arguments.length;D++){var A=arguments[D];for(var B in A)Object.prototype.hasOwnProperty.call(A,B)&&(M[B]=A[B])}return M},o.apply(this,arguments)}function m(M,D){if(M==null)return{};var A={},B=Object.keys(M),U,L;for(L=0;L<B.length;L++)U=B[L],!(D.indexOf(U)>=0)&&(A[U]=M[U]);return A}function b(M,D){if(M){if(typeof M=="string")return r(M,D);var A=Object.prototype.toString.call(M).slice(8,-1);if(A==="Object"&&M.constructor&&(A=M.constructor.name),A==="Map"||A==="Set")return Array.from(A);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return r(M,D)}}function g(M,D){var A=typeof Symbol!="undefined"&&M[Symbol.iterator]||M["@@iterator"];if(A)return(A=A.call(M)).next.bind(A);if(Array.isArray(M)||(A=b(M))||D&&M&&typeof M.length=="number"){A&&(M=A);var B=0;return function(){return B>=M.length?{done:!0}:{done:!1,value:M[B++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=function(M){if(typeof M=="string")return M.endsWith("px")?parseFloat(M)/12+"rem":M;if(typeof M=="number")return M+"rem"},f=function(M){if(typeof M=="string")return d(M);if(typeof M=="number")return d(M*.5)},v=function(M){return!l(M)},l=function(M){return typeof M=="string"&&n.NE.includes(M)},c=function(M){return function(D,A){(typeof A=="number"||typeof A=="string")&&(D[M]=A)}},u=function(M,D){return function(A,B){(typeof B=="number"||typeof B=="string")&&(A[M]=D(B))}},h=function(M,D){return function(A,B){B&&(A[M]=D)}},x=function(M,D,A){return function(B,U){if(typeof U=="number"||typeof U=="string")for(var L=0;L<A.length;L++)B[M+"-"+A[L]]=D(U)}},j=function(M){return function(D,A){v(A)&&(D[M]=A)}},p={bottom:u("bottom",d),fontFamily:c("fontFamily"),fontSize:u("fontSize",d),height:u("height",d),left:u("left",d),maxHeight:u("maxHeight",d),maxWidth:u("maxWidth",d),minHeight:u("minHeight",d),minWidth:u("minWidth",d),opacity:c("opacity"),overflow:c("overflow"),overflowX:c("overflowX"),overflowY:c("overflowY"),position:c("position"),right:u("right",d),textAlign:c("textAlign"),top:u("top",d),verticalAlign:c("verticalAlign"),width:u("width",d),lineHeight:function(M,D){typeof D=="number"?M.lineHeight=D:typeof D=="string"&&(M.lineHeight=d(D))},textTransform:c("text-transform"),m:x("margin",f,["Top","Bottom","Left","Right"]),mx:x("margin",f,["Left","Right"]),my:x("margin",f,["Top","Bottom"]),mt:u("marginTop",f),mb:u("marginBottom",f),ml:u("marginLeft",f),mr:u("marginRight",f),p:x("padding",f,["Top","Bottom","Left","Right"]),px:x("padding",f,["Left","Right"]),py:x("padding",f,["Top","Bottom"]),pt:u("paddingTop",f),pb:u("paddingBottom",f),pl:u("paddingLeft",f),pr:u("paddingRight",f),color:j("color"),textColor:j("color"),backgroundColor:j("backgroundColor"),flexGrow:c("flex-grow"),flexWrap:c("flex-wrap"),flexBasis:c("flex-basis"),flex:c("flex"),fillPositionedParent:function(M,D){D&&(M.position="absolute",M.top=0,M.bottom=0,M.left=0,M.right=0)}},_={bold:h("fontWeight","bold"),inline:h("display","inline-block"),italic:h("fontStyle","italic"),nowrap:h("whiteSpace","nowrap"),preserveWhitespace:h("whiteSpace","pre-wrap")},E=function(M){for(var D={},A={},B=g(Object.keys(M)),U;!(U=B()).done;){var L=U.value;if(L!=="style"){var k=M[L],Y=p[L]||_[L];Y?Y(A,k):D[L]=k}}return D.style=o({},A,M.style),D},I=function(M){var D=M.textColor||M.color,A=M.backgroundColor;return(0,e.Ly)([l(D)&&"color-"+D,l(A)&&"color-bg-"+A])},O=function(M){var D=M.as,A=D===void 0?"div":D,B=M.className,U=M.children,L=m(M,["as","className","children"]),k=B?B+" "+I(L):I(L),Y=E(L);return A==="img"&&(Y.style["-ms-interpolation-mode"]="nearest-neighbor"),(0,a.createElement)(typeof A=="string"?A:"div",o({},Y,{className:k}),U)}},86808:function(S,y,t){"use strict";t.d(y,{Hj:function(){return b},XI:function(){return m},nA:function(){return g}});var e=t(88095),a=t(84352),n=t(60001);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function r(){return r=Object.assign||function(d){for(var f=1;f<arguments.length;f++){var v=arguments[f];for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&(d[l]=v[l])}return d},r.apply(this,arguments)}function o(d,f){if(d==null)return{};var v={},l=Object.keys(d),c,u;for(u=0;u<l.length;u++)c=l[u],!(f.indexOf(c)>=0)&&(v[c]=d[c]);return v}var m=function(d){var f=d.className,v=d.collapsing,l=d.children,c=o(d,["className","collapsing","children"]);return(0,e.jsx)("table",r({className:(0,a.Ly)(["Table",v&&"Table--collapsing",f,(0,n.WP)(c)])},(0,n.Fl)(c),{children:(0,e.jsx)("tbody",{children:l})}))},b=function(d){var f=d.className,v=d.header,l=o(d,["className","header"]);return(0,e.jsx)("tr",r({className:(0,a.Ly)(["Table__row",v&&"Table__row--header",f,(0,n.WP)(d)])},(0,n.Fl)(l)))},g=function(d){var f=d.className,v=d.collapsing,l=d.header,c=o(d,["className","collapsing","header"]);return(0,e.jsx)("td",r({className:(0,a.Ly)(["Table__cell",v&&"Table__cell--collapsing",l&&"Table__cell--header",f,(0,n.WP)(d)])},(0,n.Fl)(c)))};m.Row=b,m.Cell=g},92514:function(S,y,t){"use strict";t.d(y,{zv:function(){return f},y5:function(){return v},Z8:function(){return x},Y0:function(){return I},az:function(){return p.az},$n:function(){return wn},D1:function(){return xi},t1:function(){return $a},Nt:function(){return ga},BK:function(){return Wa},Rr:function(){return Va},cG:function(){return xa},Hx:function(){return yi},ms:function(){return Ha},so:function(){return vr},xA:function(){return Ji},In:function(){return B},pd:function(){return Ca},N6:function(){return Tl},Wx:function(){return Ss},Ki:function(){return Jt},aF:function(){return ws},tx:function(){return Oa},IC:function(){return Pa},Q7:function(){return oi},ND:function(){return ja},z2:function(){return Ga},SM:function(){return na},wn:function(){return Bo},Ap:function(){return Us},BJ:function(){return ae},XI:function(){return ei.XI},tU:function(){return Ai},fs:function(){return ko},m_:function(){return fn}});var e=t(88095),a=t(5229),n=t(44583);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function r(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&o(T,R)}function o(T,R){return o=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},o(T,R)}var m=function(T){return typeof T=="number"&&Number.isFinite(T)&&!Number.isNaN(T)},b=1e3/60,g=.8333,d=.001,f=function(T){"use strict";r(R,T);function R(W){var K;K=T.call(this,W)||this,K.ref=(0,n.createRef)(),K.currentValue=0;var J=W.initial,se=W.value;return J!==void 0&&m(J)?K.currentValue=J:m(se)&&(K.currentValue=se),K}var z=R.prototype;return z.componentDidMount=function(){this.currentValue!==this.props.value&&this.startTicking()},z.componentWillUnmount=function(){this.stopTicking()},z.shouldComponentUpdate=function(K){return K.value!==this.props.value&&this.startTicking(),!1},z.startTicking=function(){var K=this;this.interval===void 0&&(this.interval=setInterval(function(){return K.tick()},b))},z.stopTicking=function(){this.interval!==void 0&&(clearInterval(this.interval),this.interval=void 0)},z.tick=function(){var K=this.currentValue,J=this.props.value;m(J)?this.currentValue=K*g+J*(1-g):this.stopTicking(),Math.abs(J-this.currentValue)<Math.max(d,d*J)&&(this.currentValue=J,this.stopTicking()),this.ref.current&&(this.ref.current.textContent=this.getText())},z.getText=function(){var K=this,J=K.props,se=K.currentValue,ce=J.format,xe=J.value;if(!m(xe))return String(xe);if(ce)return ce(this.currentValue);var je=String(xe).split(".")[1],_e=je?je.length:0;return(0,a.Mg)(se,(0,a.qE)(_e,0,8))},z.render=function(){return(0,e.jsx)("span",{ref:this.ref,children:this.getText()})},R}(n.Component),v=function(T){var R=(0,n.createRef)();return(0,n.useEffect)(function(){setTimeout(function(){var z;(z=R.current)==null||z.focus()},1)},[]),(0,e.jsx)("div",{ref:R,tabIndex:-1,children:T.children})};function l(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&c(T,R)}function c(T,R){return c=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},c(T,R)}var u=1e3,h=1e3,x=function(T){"use strict";l(R,T);function R(W){var K;return K=T.call(this,W)||this,K.state={hidden:!1},K}var z=R.prototype;return z.createTimer=function(){var K=this,J=this.props,se=J.interval,ce=se===void 0?u:se,xe=J.time,je=xe===void 0?h:xe;clearInterval(this.interval),clearTimeout(this.timer),this.setState({hidden:!1}),this.interval=setInterval(function(){K.setState({hidden:!0}),K.timer=setTimeout(function(){K.setState({hidden:!1})},je)},ce+je)},z.componentDidMount=function(){this.createTimer()},z.componentDidUpdate=function(K){(K.interval!==this.props.interval||K.time!==this.props.time)&&this.createTimer()},z.componentWillUnmount=function(){clearInterval(this.interval),clearTimeout(this.timer)},z.render=function(){return(0,e.jsx)("span",{style:{visibility:this.state.hidden?"hidden":"visible"},children:this.props.children})},R}(n.Component),j=t(84352),p=t(60001);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function _(){return _=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},_.apply(this,arguments)}function E(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function I(T){var R=T.className,z=E(T,["className"]);return(0,e.jsx)(p.az,_({className:(0,j.Ly)(["BlockQuote",R])},z))}var O=t(61652);/**
* @file
* @copyright 2020 Aleksej Komarov
* @author Original Aleksej Komarov
* @author Changes ThePotato97
* @license MIT
*/function M(){return M=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},M.apply(this,arguments)}function D(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var A=/-o$/,B=function(T){var R=T.name,z=T.size,W=T.spin,K=T.className,J=T.rotation,se=D(T,["name","size","spin","className","rotation"]),ce=se.style||{};z&&(ce.fontSize=z*100+"%"),J&&(ce.transform="rotate("+J+"deg)"),se.style=ce;var xe=(0,p.Fl)(se),je="";if(R.startsWith("tg-"))je=R;else{var _e=A.test(R),Re=R.replace(A,""),Le=!Re.startsWith("fa-");je=_e?"far ":"fas ",Le&&(je+="fa-"),je+=Re,W&&(je+=" fa-spin")}return(0,e.jsx)("i",M({className:(0,j.Ly)(["Icon",je,K,(0,p.WP)(se)])},xe))},U=function(T){var R=T.className,z=T.children,W=D(T,["className","children"]);return(0,e.jsx)("span",M({className:(0,j.Ly)(["IconStack",R,(0,p.WP)(W)])},(0,p.Fl)(W),{children:z}))};B.Stack=U;function L(T){if(T==null)return window;if(T.toString()!=="[object Window]"){var R=T.ownerDocument;return R&&R.defaultView||window}return T}function k(T,R){return R!=null&&typeof Symbol!="undefined"&&R[Symbol.hasInstance]?!!R[Symbol.hasInstance](T):T instanceof R}function Y(T){var R=L(T).Element;return k(T,R)||k(T,Element)}function V(T){var R=L(T).HTMLElement;return k(T,R)||k(T,HTMLElement)}function H(T){if(typeof ShadowRoot=="undefined")return!1;var R=L(T).ShadowRoot;return k(T,R)||k(T,ShadowRoot)}var N=Math.max,q=Math.min,G=Math.round;function Q(){var T=navigator.userAgentData;return T!=null&&T.brands&&Array.isArray(T.brands)?T.brands.map(function(R){return R.brand+"/"+R.version}).join(" "):navigator.userAgent}function F(){return!/^((?!chrome|android).)*safari/i.test(Q())}function Z(T,R,z){R===void 0&&(R=!1),z===void 0&&(z=!1);var W=T.getBoundingClientRect(),K=1,J=1;R&&V(T)&&(K=T.offsetWidth>0&&G(W.width)/T.offsetWidth||1,J=T.offsetHeight>0&&G(W.height)/T.offsetHeight||1);var se=Y(T)?L(T):window,ce=se.visualViewport,xe=!F()&&z,je=(W.left+(xe&&ce?ce.offsetLeft:0))/K,_e=(W.top+(xe&&ce?ce.offsetTop:0))/J,Re=W.width/K,Le=W.height/J;return{width:Re,height:Le,top:_e,right:je+Re,bottom:_e+Le,left:je,x:je,y:_e}}function oe(T){var R=L(T),z=R.pageXOffset,W=R.pageYOffset;return{scrollLeft:z,scrollTop:W}}function le(T){return{scrollLeft:T.scrollLeft,scrollTop:T.scrollTop}}function ue(T){return T===L(T)||!V(T)?oe(T):le(T)}function he(T){return T?(T.nodeName||"").toLowerCase():null}function de(T){return((Y(T)?T.ownerDocument:T.document)||window.document).documentElement}function ve(T){return Z(de(T)).left+oe(T).scrollLeft}function pe(T){return L(T).getComputedStyle(T)}function be(T){var R=pe(T),z=R.overflow,W=R.overflowX,K=R.overflowY;return/auto|scroll|overlay|hidden/.test(z+K+W)}function ye(T){var R=T.getBoundingClientRect(),z=G(R.width)/T.offsetWidth||1,W=G(R.height)/T.offsetHeight||1;return z!==1||W!==1}function Te(T,R,z){z===void 0&&(z=!1);var W=V(R),K=V(R)&&ye(R),J=de(R),se=Z(T,K,z),ce={scrollLeft:0,scrollTop:0},xe={x:0,y:0};return(W||!W&&!z)&&((he(R)!=="body"||be(J))&&(ce=ue(R)),V(R)?(xe=Z(R,!0),xe.x+=R.clientLeft,xe.y+=R.clientTop):J&&(xe.x=ve(J))),{x:se.left+ce.scrollLeft-xe.x,y:se.top+ce.scrollTop-xe.y,width:se.width,height:se.height}}function Ke(T){var R=Z(T),z=T.offsetWidth,W=T.offsetHeight;return Math.abs(R.width-z)<=1&&(z=R.width),Math.abs(R.height-W)<=1&&(W=R.height),{x:T.offsetLeft,y:T.offsetTop,width:z,height:W}}function $e(T){return he(T)==="html"?T:T.assignedSlot||T.parentNode||(H(T)?T.host:null)||de(T)}function We(T){return["html","body","#document"].indexOf(he(T))>=0?T.ownerDocument.body:V(T)&&be(T)?T:We($e(T))}function Qe(T,R){var z;R===void 0&&(R=[]);var W=We(T),K=W===((z=T.ownerDocument)==null?void 0:z.body),J=L(W),se=K?[J].concat(J.visualViewport||[],be(W)?W:[]):W,ce=R.concat(se);return K?ce:ce.concat(Qe($e(se)))}function Ye(T){return["table","td","th"].indexOf(he(T))>=0}function mt(T){return!V(T)||pe(T).position==="fixed"?null:T.offsetParent}function vt(T){var R=/firefox/i.test(Q()),z=/Trident/i.test(Q());if(z&&V(T)){var W=pe(T);if(W.position==="fixed")return null}var K=$e(T);for(H(K)&&(K=K.host);V(K)&&["html","body"].indexOf(he(K))<0;){var J=pe(K);if(J.transform!=="none"||J.perspective!=="none"||J.contain==="paint"||["transform","perspective"].indexOf(J.willChange)!==-1||R&&J.willChange==="filter"||R&&J.filter&&J.filter!=="none")return K;K=K.parentNode}return null}function ht(T){for(var R=L(T),z=mt(T);z&&Ye(z)&&pe(z).position==="static";)z=mt(z);return z&&(he(z)==="html"||he(z)==="body"&&pe(z).position==="static")?R:z||vt(T)||R}var ot="top",He="bottom",Ne="right",ke="left",we="auto",qe=[ot,He,Ne,ke],Je="start",lt="end",at="clippingParents",Xt="viewport",Wt="popper",zt="reference",bt=qe.reduce(function(T,R){return T.concat([R+"-"+Je,R+"-"+lt])},[]),st=[].concat(qe,[we]).reduce(function(T,R){return T.concat([R,R+"-"+Je,R+"-"+lt])},[]),it="beforeRead",gt="read",Pt="afterRead",Ft="beforeMain",Yt="main",ln="afterMain",tn="beforeWrite",yn="write",Bn="afterWrite",Tt=[it,gt,Pt,Ft,Yt,ln,tn,yn,Bn];function Kn(T){var R=new Map,z=new Set,W=[];T.forEach(function(J){R.set(J.name,J)});function K(J){z.add(J.name);var se=[].concat(J.requires||[],J.requiresIfExists||[]);se.forEach(function(ce){if(!z.has(ce)){var xe=R.get(ce);xe&&K(xe)}}),W.push(J)}return T.forEach(function(J){z.has(J.name)||K(J)}),W}function Jn(T){var R=Kn(T);return Tt.reduce(function(z,W){return z.concat(R.filter(function(K){return K.phase===W}))},[])}function Xr(T){var R;return function(){return R||(R=new Promise(function(z){Promise.resolve().then(function(){R=void 0,z(T())})})),R}}function wr(T){var R=T.reduce(function(z,W){var K=z[W.name];return z[W.name]=K?Object.assign({},K,W,{options:Object.assign({},K.options,W.options),data:Object.assign({},K.data,W.data)}):W,z},{});return Object.keys(R).map(function(z){return R[z]})}var Rr={placement:"bottom",modifiers:[],strategy:"absolute"};function Br(){for(var T=arguments.length,R=new Array(T),z=0;z<T;z++)R[z]=arguments[z];return!R.some(function(W){return!(W&&typeof W.getBoundingClientRect=="function")})}function Kr(T){T===void 0&&(T={});var R=T,z=R.defaultModifiers,W=z===void 0?[]:z,K=R.defaultOptions,J=K===void 0?Rr:K;return function(ce,xe,je){je===void 0&&(je=J);var _e={placement:"bottom",orderedModifiers:[],options:Object.assign({},Rr,J),modifiersData:{},elements:{reference:ce,popper:xe},attributes:{},styles:{}},Re=[],Le=!1,Se={state:_e,setOptions:function(tt){var ct=typeof tt=="function"?tt(_e.options):tt;Ze(),_e.options=Object.assign({},J,_e.options,ct),_e.scrollParents={reference:Y(ce)?Qe(ce):ce.contextElement?Qe(ce.contextElement):[],popper:Qe(xe)};var Et=Jn(wr([].concat(W,_e.options.modifiers)));return _e.orderedModifiers=Et.filter(function(ut){return ut.enabled}),Ve(),Se.update()},forceUpdate:function(){if(!Le){var tt=_e.elements,ct=tt.reference,Et=tt.popper;if(Br(ct,Et)){_e.rects={reference:Te(ct,ht(Et),_e.options.strategy==="fixed"),popper:Ke(Et)},_e.reset=!1,_e.placement=_e.options.placement,_e.orderedModifiers.forEach(function(Ht){return _e.modifiersData[Ht.name]=Object.assign({},Ht.data)});for(var ut=0;ut<_e.orderedModifiers.length;ut++){if(_e.reset===!0){_e.reset=!1,ut=-1;continue}var yt=_e.orderedModifiers[ut],Mt=yt.fn,At=yt.options,Dt=At===void 0?{}:At,Kt=yt.name;typeof Mt=="function"&&(_e=Mt({state:_e,options:Dt,name:Kt,instance:Se})||_e)}}}},update:Xr(function(){return new Promise(function(nt){Se.forceUpdate(),nt(_e)})}),destroy:function(){Ze(),Le=!0}};if(!Br(ce,xe))return Se;Se.setOptions(je).then(function(nt){!Le&&je.onFirstUpdate&&je.onFirstUpdate(nt)});function Ve(){_e.orderedModifiers.forEach(function(nt){var tt=nt.name,ct=nt.options,Et=ct===void 0?{}:ct,ut=nt.effect;if(typeof ut=="function"){var yt=ut({state:_e,name:tt,instance:Se,options:Et}),Mt=function(){};Re.push(yt||Mt)}})}function Ze(){Re.forEach(function(nt){return nt()}),Re=[]}return Se}}var Gr=null,En={passive:!0};function In(T){var R=T.state,z=T.instance,W=T.options,K=W.scroll,J=K===void 0?!0:K,se=W.resize,ce=se===void 0?!0:se,xe=L(R.elements.popper),je=[].concat(R.scrollParents.reference,R.scrollParents.popper);return J&&je.forEach(function(_e){_e.addEventListener("scroll",z.update,En)}),ce&&xe.addEventListener("resize",z.update,En),function(){J&&je.forEach(function(_e){_e.removeEventListener("scroll",z.update,En)}),ce&&xe.removeEventListener("resize",z.update,En)}}var kn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:In,data:{}};function On(T){return T.split("-")[0]}function Pn(T){return T.split("-")[1]}function Ln(T){return["top","bottom"].indexOf(T)>=0?"x":"y"}function qn(T){var R=T.reference,z=T.element,W=T.placement,K=W?On(W):null,J=W?Pn(W):null,se=R.x+R.width/2-z.width/2,ce=R.y+R.height/2-z.height/2,xe;switch(K){case ot:xe={x:se,y:R.y-z.height};break;case He:xe={x:se,y:R.y+R.height};break;case Ne:xe={x:R.x+R.width,y:ce};break;case ke:xe={x:R.x-z.width,y:ce};break;default:xe={x:R.x,y:R.y}}var je=K?Ln(K):null;if(je!=null){var _e=je==="y"?"height":"width";switch(J){case Je:xe[je]=xe[je]-(R[_e]/2-z[_e]/2);break;case lt:xe[je]=xe[je]+(R[_e]/2-z[_e]/2);break;default:}}return xe}function Yr(T){var R=T.state,z=T.name;R.modifiersData[z]=qn({reference:R.rects.reference,element:R.rects.popper,strategy:"absolute",placement:R.placement})}var bo={name:"popperOffsets",enabled:!0,phase:"read",fn:Yr,data:{}},Fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ui(T,R){var z=T.x,W=T.y,K=R.devicePixelRatio||1;return{x:G(z*K)/K||0,y:G(W*K)/K||0}}function er(T){var R,z=T.popper,W=T.popperRect,K=T.placement,J=T.variation,se=T.offsets,ce=T.position,xe=T.gpuAcceleration,je=T.adaptive,_e=T.roundOffsets,Re=T.isFixed,Le=se.x,Se=Le===void 0?0:Le,Ve=se.y,Ze=Ve===void 0?0:Ve,nt=typeof _e=="function"?_e({x:Se,y:Ze}):{x:Se,y:Ze};Se=nt.x,Ze=nt.y;var tt=se.hasOwnProperty("x"),ct=se.hasOwnProperty("y"),Et=ke,ut=ot,yt=window;if(je){var Mt=ht(z),At="clientHeight",Dt="clientWidth";if(Mt===L(z)&&(Mt=de(z),pe(Mt).position!=="static"&&ce==="absolute"&&(At="scrollHeight",Dt="scrollWidth")),Mt=Mt,K===ot||(K===ke||K===Ne)&&J===lt){ut=He;var Kt=Re&&Mt===yt&&yt.visualViewport?yt.visualViewport.height:Mt[At];Ze-=Kt-W.height,Ze*=xe?1:-1}if(K===ke||(K===ot||K===He)&&J===lt){Et=Ne;var Ht=Re&&Mt===yt&&yt.visualViewport?yt.visualViewport.width:Mt[Dt];Se-=Ht-W.width,Se*=xe?1:-1}}var Bt=Object.assign({position:ce},je&&Fo),St=_e===!0?ui({x:Se,y:Ze},L(z)):{x:Se,y:Ze};if(Se=St.x,Ze=St.y,xe){var nn;return Object.assign({},Bt,(nn={},nn[ut]=ct?"0":"",nn[Et]=tt?"0":"",nn.transform=(yt.devicePixelRatio||1)<=1?"translate("+Se+"px, "+Ze+"px)":"translate3d("+Se+"px, "+Ze+"px, 0)",nn))}return Object.assign({},Bt,(R={},R[ut]=ct?Ze+"px":"",R[Et]=tt?Se+"px":"",R.transform="",R))}function yo(T){var R=T.state,z=T.options,W=z.gpuAcceleration,K=W===void 0?!0:W,J=z.adaptive,se=J===void 0?!0:J,ce=z.roundOffsets,xe=ce===void 0?!0:ce,je={placement:On(R.placement),variation:Pn(R.placement),popper:R.elements.popper,popperRect:R.rects.popper,gpuAcceleration:K,isFixed:R.options.strategy==="fixed"};R.modifiersData.popperOffsets!=null&&(R.styles.popper=Object.assign({},R.styles.popper,er(Object.assign({},je,{offsets:R.modifiersData.popperOffsets,position:R.options.strategy,adaptive:se,roundOffsets:xe})))),R.modifiersData.arrow!=null&&(R.styles.arrow=Object.assign({},R.styles.arrow,er(Object.assign({},je,{offsets:R.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:xe})))),R.attributes.popper=Object.assign({},R.attributes.popper,{"data-popper-placement":R.placement})}var Qr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yo,data:{}};function Vo(T){var R=T.state;Object.keys(R.elements).forEach(function(z){var W=R.styles[z]||{},K=R.attributes[z]||{},J=R.elements[z];!V(J)||!he(J)||(Object.assign(J.style,W),Object.keys(K).forEach(function(se){var ce=K[se];ce===!1?J.removeAttribute(se):J.setAttribute(se,ce===!0?"":ce)}))})}function Nn(T){var R=T.state,z={popper:{position:R.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(R.elements.popper.style,z.popper),R.styles=z,R.elements.arrow&&Object.assign(R.elements.arrow.style,z.arrow),function(){Object.keys(R.elements).forEach(function(W){var K=R.elements[W],J=R.attributes[W]||{},se=Object.keys(R.styles.hasOwnProperty(W)?R.styles[W]:z[W]),ce=se.reduce(function(xe,je){return xe[je]="",xe},{});!V(K)||!he(K)||(Object.assign(K.style,ce),Object.keys(J).forEach(function(xe){K.removeAttribute(xe)}))})}}var lr={name:"applyStyles",enabled:!0,phase:"write",fn:Vo,effect:Nn,requires:["computeStyles"]};function mn(T,R,z){var W=On(T),K=[ke,ot].indexOf(W)>=0?-1:1,J=typeof z=="function"?z(Object.assign({},R,{placement:T})):z,se=J[0],ce=J[1];return se=se||0,ce=(ce||0)*K,[ke,Ne].indexOf(W)>=0?{x:ce,y:se}:{x:se,y:ce}}function cr(T){var R=T.state,z=T.options,W=T.name,K=z.offset,J=K===void 0?[0,0]:K,se=st.reduce(function(_e,Re){return _e[Re]=mn(Re,R.rects,J),_e},{}),ce=se[R.placement],xe=ce.x,je=ce.y;R.modifiersData.popperOffsets!=null&&(R.modifiersData.popperOffsets.x+=xe,R.modifiersData.popperOffsets.y+=je),R.modifiersData[W]=se}var di={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cr},fi={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(T){return T.replace(/left|right|bottom|top/g,function(R){return fi[R]})}var hi={start:"end",end:"start"};function kr(T){return T.replace(/start|end/g,function(R){return hi[R]})}function Ho(T,R){var z=L(T),W=de(T),K=z.visualViewport,J=W.clientWidth,se=W.clientHeight,ce=0,xe=0;if(K){J=K.width,se=K.height;var je=F();(je||!je&&R==="fixed")&&(ce=K.offsetLeft,xe=K.offsetTop)}return{width:J,height:se,x:ce+ve(T),y:xe}}function Zr(T){var R,z=de(T),W=oe(T),K=(R=T.ownerDocument)==null?void 0:R.body,J=N(z.scrollWidth,z.clientWidth,K?K.scrollWidth:0,K?K.clientWidth:0),se=N(z.scrollHeight,z.clientHeight,K?K.scrollHeight:0,K?K.clientHeight:0),ce=-W.scrollLeft+ve(T),xe=-W.scrollTop;return pe(K||z).direction==="rtl"&&(ce+=N(z.clientWidth,K?K.clientWidth:0)-J),{width:J,height:se,x:ce,y:xe}}function br(T,R){var z=R.getRootNode&&R.getRootNode();if(T.contains(R))return!0;if(z&&H(z)){var W=R;do{if(W&&T.isSameNode(W))return!0;W=W.parentNode||W.host}while(W)}return!1}function _o(T){return Object.assign({},T,{left:T.x,top:T.y,right:T.x+T.width,bottom:T.y+T.height})}function Jr(T,R){var z=Z(T,!1,R==="fixed");return z.top=z.top+T.clientTop,z.left=z.left+T.clientLeft,z.bottom=z.top+T.clientHeight,z.right=z.left+T.clientWidth,z.width=T.clientWidth,z.height=T.clientHeight,z.x=z.left,z.y=z.top,z}function dt(T,R,z){return R===Xt?_o(Ho(T,z)):Y(R)?Jr(R,z):_o(Zr(de(T)))}function qr(T){var R=Qe($e(T)),z=["absolute","fixed"].indexOf(pe(T).position)>=0,W=z&&V(T)?ht(T):T;return Y(W)?R.filter(function(K){return Y(K)&&br(K,W)&&he(K)!=="body"}):[]}function Mn(T,R,z,W){var K=R==="clippingParents"?qr(T):[].concat(R),J=[].concat(K,[z]),se=J[0],ce=J.reduce(function(xe,je){var _e=dt(T,je,W);return xe.top=N(_e.top,xe.top),xe.right=q(_e.right,xe.right),xe.bottom=q(_e.bottom,xe.bottom),xe.left=N(_e.left,xe.left),xe},dt(T,se,W));return ce.width=ce.right-ce.left,ce.height=ce.bottom-ce.top,ce.x=ce.left,ce.y=ce.top,ce}function Vn(){return{top:0,right:0,bottom:0,left:0}}function eo(T){return Object.assign({},Vn(),T)}function ur(T,R){return R.reduce(function(z,W){return z[W]=T,z},{})}function Un(T,R){R===void 0&&(R={});var z=R,W=z.placement,K=W===void 0?T.placement:W,J=z.strategy,se=J===void 0?T.strategy:J,ce=z.boundary,xe=ce===void 0?at:ce,je=z.rootBoundary,_e=je===void 0?Xt:je,Re=z.elementContext,Le=Re===void 0?Wt:Re,Se=z.altBoundary,Ve=Se===void 0?!1:Se,Ze=z.padding,nt=Ze===void 0?0:Ze,tt=eo(typeof nt!="number"?nt:ur(nt,qe)),ct=Le===Wt?zt:Wt,Et=T.rects.popper,ut=T.elements[Ve?ct:Le],yt=Mn(Y(ut)?ut:ut.contextElement||de(T.elements.popper),xe,_e,se),Mt=Z(T.elements.reference),At=qn({reference:Mt,element:Et,strategy:"absolute",placement:K}),Dt=_o(Object.assign({},Et,At)),Kt=Le===Wt?Dt:Mt,Ht={top:yt.top-Kt.top+tt.top,bottom:Kt.bottom-yt.bottom+tt.bottom,left:yt.left-Kt.left+tt.left,right:Kt.right-yt.right+tt.right},Bt=T.modifiersData.offset;if(Le===Wt&&Bt){var St=Bt[K];Object.keys(Ht).forEach(function(nn){var xn=[Ne,He].indexOf(nn)>=0?1:-1,gn=[ot,He].indexOf(nn)>=0?"y":"x";Ht[nn]+=St[gn]*xn})}return Ht}function en(T,R){R===void 0&&(R={});var z=R,W=z.placement,K=z.boundary,J=z.rootBoundary,se=z.padding,ce=z.flipVariations,xe=z.allowedAutoPlacements,je=xe===void 0?st:xe,_e=Pn(W),Re=_e?ce?bt:bt.filter(function(Ve){return Pn(Ve)===_e}):qe,Le=Re.filter(function(Ve){return je.indexOf(Ve)>=0});Le.length===0&&(Le=Re);var Se=Le.reduce(function(Ve,Ze){return Ve[Ze]=Un(T,{placement:Ze,boundary:K,rootBoundary:J,padding:se})[On(Ze)],Ve},{});return Object.keys(Se).sort(function(Ve,Ze){return Se[Ve]-Se[Ze]})}function tr(T){if(On(T)===we)return[];var R=Zt(T);return[kr(T),R,kr(R)]}function yr(T){var R=T.state,z=T.options,W=T.name;if(!R.modifiersData[W]._skip){for(var K=z.mainAxis,J=K===void 0?!0:K,se=z.altAxis,ce=se===void 0?!0:se,xe=z.fallbackPlacements,je=z.padding,_e=z.boundary,Re=z.rootBoundary,Le=z.altBoundary,Se=z.flipVariations,Ve=Se===void 0?!0:Se,Ze=z.allowedAutoPlacements,nt=R.options.placement,tt=On(nt),ct=tt===nt,Et=xe||(ct||!Ve?[Zt(nt)]:tr(nt)),ut=[nt].concat(Et).reduce(function(Ri,No){return Ri.concat(On(No)===we?en(R,{placement:No,boundary:_e,rootBoundary:Re,padding:je,flipVariations:Ve,allowedAutoPlacements:Ze}):No)},[]),yt=R.rects.reference,Mt=R.rects.popper,At=new Map,Dt=!0,Kt=ut[0],Ht=0;Ht<ut.length;Ht++){var Bt=ut[Ht],St=On(Bt),nn=Pn(Bt)===Je,xn=[ot,He].indexOf(St)>=0,gn=xn?"width":"height",dn=Un(R,{placement:Bt,boundary:_e,rootBoundary:Re,altBoundary:Le,padding:je}),Dn=xn?nn?Ne:ke:nn?He:ot;yt[gn]>Mt[gn]&&(Dn=Zt(Dn));var Ti=Zt(Dn),vo=[];if(J&&vo.push(dn[St]<=0),ce&&vo.push(dn[Dn]<=0,dn[Ti]<=0),vo.every(function(Ri){return Ri})){Kt=Bt,Dt=!1;break}At.set(Bt,vo)}if(Dt)for(var Da=Ve?3:1,Aa=function(No){var po=ut.find(function(Ta){var Vr=At.get(Ta);if(Vr)return Vr.slice(0,No).every(function(Sr){return Sr})});if(po)return Kt=po,"break"},Lo=Da;Lo>0;Lo--){var wi=Aa(Lo);if(wi==="break")break}R.placement!==Kt&&(R.modifiersData[W]._skip=!0,R.placement=Kt,R.reset=!0)}}var mi={name:"flip",enabled:!0,phase:"main",fn:yr,requiresIfExists:["offset"],data:{_skip:!1}};function vi(T){return T==="x"?"y":"x"}function nr(T,R,z){return N(T,q(R,z))}function Co(T,R,z){var W=nr(T,R,z);return W>z?z:W}function to(T){var R=T.state,z=T.options,W=T.name,K=z.mainAxis,J=K===void 0?!0:K,se=z.altAxis,ce=se===void 0?!1:se,xe=z.boundary,je=z.rootBoundary,_e=z.altBoundary,Re=z.padding,Le=z.tether,Se=Le===void 0?!0:Le,Ve=z.tetherOffset,Ze=Ve===void 0?0:Ve,nt=Un(R,{boundary:xe,rootBoundary:je,padding:Re,altBoundary:_e}),tt=On(R.placement),ct=Pn(R.placement),Et=!ct,ut=Ln(tt),yt=vi(ut),Mt=R.modifiersData.popperOffsets,At=R.rects.reference,Dt=R.rects.popper,Kt=typeof Ze=="function"?Ze(Object.assign({},R.rects,{placement:R.placement})):Ze,Ht=typeof Kt=="number"?{mainAxis:Kt,altAxis:Kt}:Object.assign({mainAxis:0,altAxis:0},Kt),Bt=R.modifiersData.offset?R.modifiersData.offset[R.placement]:null,St={x:0,y:0};if(Mt){if(J){var nn,xn=ut==="y"?ot:ke,gn=ut==="y"?He:Ne,dn=ut==="y"?"height":"width",Dn=Mt[ut],Ti=Dn+nt[xn],vo=Dn-nt[gn],Da=Se?-Dt[dn]/2:0,Aa=ct===Je?At[dn]:Dt[dn],Lo=ct===Je?-Dt[dn]:-At[dn],wi=R.elements.arrow,Ri=Se&&wi?Ke(wi):{width:0,height:0},No=R.modifiersData["arrow#persistent"]?R.modifiersData["arrow#persistent"].padding:Vn(),po=No[xn],Ta=No[gn],Vr=nr(0,At[dn],Ri[dn]),Sr=Et?At[dn]/2-Da-Vr-po-Ht.mainAxis:Aa-Vr-po-Ht.mainAxis,wa=Et?-At[dn]/2+Da+Vr+Ta+Ht.mainAxis:Lo+Vr+Ta+Ht.mainAxis,Bi=R.elements.arrow&&ht(R.elements.arrow),Ki=Bi?ut==="y"?Bi.clientTop||0:Bi.clientLeft||0:0,as=(nn=Bt==null?void 0:Bt[ut])!=null?nn:0,sa=Dn+Sr-as-Ki,sl=Dn+wa-as,ss=nr(Se?q(Ti,sa):Ti,Dn,Se?N(vo,sl):vo);Mt[ut]=ss,St[ut]=ss-Dn}if(ce){var sn,ls=ut==="x"?ot:ke,$s=ut==="x"?He:Ne,Uo=Mt[yt],ki=yt==="y"?"height":"width",cs=Uo+nt[ls],si=Uo-nt[$s],an=[ot,ke].indexOf(tt)!==-1,jn=(sn=Bt==null?void 0:Bt[yt])!=null?sn:0,_n=an?cs:Uo-At[ki]-Dt[ki]-jn+Ht.altAxis,Ra=an?Uo+At[ki]+Dt[ki]-jn-Ht.altAxis:si,la=Se&&an?Co(_n,Uo,Ra):nr(Se?_n:cs,Uo,Se?Ra:si);Mt[yt]=la,St[yt]=la-Uo}R.modifiersData[W]=St}}var dr={name:"preventOverflow",enabled:!0,phase:"main",fn:to,requiresIfExists:["offset"]},pi=function(R,z){return R=typeof R=="function"?R(Object.assign({},z.rects,{placement:z.placement})):R,eo(typeof R!="number"?R:ur(R,qe))};function Eo(T){var R,z=T.state,W=T.name,K=T.options,J=z.elements.arrow,se=z.modifiersData.popperOffsets,ce=On(z.placement),xe=Ln(ce),je=[ke,Ne].indexOf(ce)>=0,_e=je?"height":"width";if(!(!J||!se)){var Re=pi(K.padding,z),Le=Ke(J),Se=xe==="y"?ot:ke,Ve=xe==="y"?He:Ne,Ze=z.rects.reference[_e]+z.rects.reference[xe]-se[xe]-z.rects.popper[_e],nt=se[xe]-z.rects.reference[xe],tt=ht(J),ct=tt?xe==="y"?tt.clientHeight||0:tt.clientWidth||0:0,Et=Ze/2-nt/2,ut=Re[Se],yt=ct-Le[_e]-Re[Ve],Mt=ct/2-Le[_e]/2+Et,At=nr(ut,Mt,yt),Dt=xe;z.modifiersData[W]=(R={},R[Dt]=At,R.centerOffset=At-Mt,R)}}function Vt(T){var R=T.state,z=T.options,W=z.element,K=W===void 0?"[data-popper-arrow]":W;K!=null&&(typeof K=="string"&&(K=R.elements.popper.querySelector(K),!K)||br(R.elements.popper,K)&&(R.elements.arrow=K))}var Io={name:"arrow",enabled:!0,phase:"main",fn:Eo,effect:Vt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hn(T,R,z){return z===void 0&&(z={x:0,y:0}),{top:T.top-R.height-z.y,right:T.right-R.width+z.x,bottom:T.bottom-R.height+z.y,left:T.left-R.width-z.x}}function Lr(T){return[ot,Ne,He,ke].some(function(R){return T[R]>=0})}function no(T){var R=T.state,z=T.name,W=R.rects.reference,K=R.rects.popper,J=R.modifiersData.preventOverflow,se=Un(R,{elementContext:"reference"}),ce=Un(R,{altBoundary:!0}),xe=Hn(se,W),je=Hn(ce,K,J),_e=Lr(xe),Re=Lr(je);R.modifiersData[z]={referenceClippingOffsets:xe,popperEscapeOffsets:je,isReferenceHidden:_e,hasPopperEscaped:Re},R.attributes.popper=Object.assign({},R.attributes.popper,{"data-popper-reference-hidden":_e,"data-popper-escaped":Re})}var re={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:no},Fe=[kn,bo,Qr,lr,di,mi,dr,Io,re],Xo=Kr({defaultModifiers:Fe}),ro=t(16160);function Tn(){return Tn=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Tn.apply(this,arguments)}function fr(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Xn(T,R)}function Xn(T,R){return Xn=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Xn(T,R)}var _r={modifiers:[{name:"eventListeners",enabled:!1}]},Oo={width:0,height:0,top:0,right:0,bottom:0,left:0,x:0,y:0,toJSON:function(){return null}},fn=function(T){"use strict";fr(R,T);function R(){return T.apply(this,arguments)}var z=R.prototype;return z.getDOMNode=function(){return(0,ro.findDOMNode)(this)},z.componentDidMount=function(){var K=this,J=this.getDOMNode();J&&(J.addEventListener("mouseenter",function(){var se=R.renderedTooltip;se===void 0&&(se=document.createElement("div"),se.className="Tooltip",document.body.appendChild(se),R.renderedTooltip=se),R.currentHoveredElement=J,se.style.opacity="1",K.renderPopperContent()}),J.addEventListener("mouseleave",function(){K.fadeOut()}))},z.fadeOut=function(){R.currentHoveredElement===this.getDOMNode()&&(R.currentHoveredElement=void 0,R.renderedTooltip.style.opacity="0")},z.renderPopperContent=function(){var K=this,J=R.renderedTooltip;J&&(0,ro.render)((0,e.jsx)("span",{children:this.props.content}),J,function(){var se=R.singletonPopper;se===void 0?(se=Xo(R.virtualElement,J,Tn({},_r,{placement:K.props.position||"auto"})),R.singletonPopper=se):(se.setOptions(Tn({},_r,{placement:K.props.position||"auto"})),se.update())})},z.componentDidUpdate=function(){R.currentHoveredElement===this.getDOMNode()&&this.renderPopperContent()},z.componentWillUnmount=function(){this.fadeOut()},z.render=function(){return this.props.children},R}(n.Component);fn.virtualElement={getBoundingClientRect:function(){var T,R;return(R=(T=fn.currentHoveredElement)==null?void 0:T.getBoundingClientRect())!=null?R:Oo}};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Ui(T,R,z,W,K,J,se){try{var ce=T[J](se),xe=ce.value}catch(je){z(je);return}ce.done?R(xe):Promise.resolve(xe).then(W,K)}function gi(T){return function(){var R=this,z=arguments;return new Promise(function(W,K){var J=T.apply(R,z);function se(xe){Ui(J,W,K,se,ce,"next",xe)}function ce(xe){Ui(J,W,K,se,ce,"throw",xe)}se(void 0)})}}function Gn(){return Gn=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Gn.apply(this,arguments)}function $i(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Po(T,R)}function Nr(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Po(T,R){return Po=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Po(T,R)}function zi(T,R){var z,W,K,J,se={label:0,sent:function(){if(K[0]&1)throw K[1];return K[1]},trys:[],ops:[]};return J={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function ce(je){return function(_e){return xe([je,_e])}}function xe(je){if(z)throw new TypeError("Generator is already executing.");for(;se;)try{if(z=1,W&&(K=je[0]&2?W.return:je[0]?W.throw||((K=W.return)&&K.call(W),0):W.next)&&!(K=K.call(W,je[1])).done)return K;switch(W=0,K&&(je=[je[0]&2,K.value]),je[0]){case 0:case 1:K=je;break;case 4:return se.label++,{value:je[1],done:!1};case 5:se.label++,W=je[1],je=[0];continue;case 7:je=se.ops.pop(),se.trys.pop();continue;default:if(K=se.trys,!(K=K.length>0&&K[K.length-1])&&(je[0]===6||je[0]===2)){se=0;continue}if(je[0]===3&&(!K||je[1]>K[0]&&je[1]<K[3])){se.label=je[1];break}if(je[0]===6&&se.label<K[1]){se.label=K[1],K=je;break}if(K&&se.label<K[2]){se.label=K[2],se.ops.push(je);break}K[2]&&se.ops.pop(),se.trys.pop();continue}je=R.call(T,se)}catch(_e){je=[6,_e],W=0}finally{z=K=0}if(je[0]&5)throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}}var wn=function(T){var R=T.className,z=T.fluid,W=T.icon,K=T.iconRotation,J=T.iconSpin,se=T.iconColor,ce=T.iconPosition,xe=T.iconSize,je=T.color,_e=T.disabled,Re=T.selected,Le=T.tooltip,Se=T.tooltipPosition,Ve=T.ellipsis,Ze=T.compact,nt=T.circular,tt=T.content,ct=T.children,Et=T.onClick,ut=T.verticalAlignContent,yt=Nr(T,["className","fluid","icon","iconRotation","iconSpin","iconColor","iconPosition","iconSize","color","disabled","selected","tooltip","tooltipPosition","ellipsis","compact","circular","content","children","onClick","verticalAlignContent"]),Mt=!!(tt||ct);yt.onClick=function(Dt){!_e&&Et&&Et(Dt)};var At=(0,e.jsx)("div",Gn({className:(0,j.Ly)(["Button",z&&"Button--fluid",_e&&"Button--disabled",Re&&"Button--selected",Mt&&"Button--hasContent",Ve&&"Button--ellipsis",nt&&"Button--circular",Ze&&"Button--compact",ce&&"Button--iconPosition--"+ce,ut&&"Button--flex",ut&&z&&"Button--flex--fluid",ut&&"Button--verticalAlignContent--"+ut,je&&typeof je=="string"?"Button--color--"+je:"Button--color--default",R,(0,p.WP)(yt)]),tabIndex:!_e&&"0",onKeyDown:function(Dt){if(T.captureKeys!==!1){var Kt=window.event?Dt.which:Dt.keyCode;if(Kt===O.iy||Kt===O.Ri){Dt.preventDefault(),!_e&&Et&&Et(Dt);return}if(Kt===O.s6){Dt.preventDefault();return}}}},(0,p.Fl)(yt),{children:(0,e.jsxs)("div",{className:"Button__content",children:[W&&ce!=="right"&&(0,e.jsx)(B,{name:W,color:se,rotation:K,spin:J}),tt,ct,W&&ce==="right"&&(0,e.jsx)(B,{name:W,color:se,rotation:K,spin:J,fontSize:xe})]})}));return Le&&(At=(0,e.jsx)(fn,{content:Le,position:Se,children:At})),At},Go=function(T){var R=T.checked,z=Nr(T,["checked"]);return(0,e.jsx)(wn,Gn({color:"transparent",icon:R?"check-square-o":"square-o",selected:R},z))};wn.Checkbox=Go;var Mo=function(T){"use strict";$i(R,T);function R(W){var K;return K=T.call(this,W)||this,K.state={clickedOnce:!1},K.handleClick=function(){K.state.clickedOnce&&K.setClickedOnce(!1)},K}var z=R.prototype;return z.setClickedOnce=function(K){var J=this;this.setState({clickedOnce:K}),K?setTimeout(function(){return window.addEventListener("click",J.handleClick)}):window.removeEventListener("click",this.handleClick)},z.render=function(){var K=this,J=this.props,se=J.confirmContent,ce=se===void 0?"Confirm?":se,xe=J.confirmColor,je=xe===void 0?"bad":xe,_e=J.confirmIcon,Re=J.icon,Le=J.color,Se=J.content,Ve=J.onClick,Ze=Nr(J,["confirmContent","confirmColor","confirmIcon","icon","color","content","onClick"]);return(0,e.jsx)(wn,Gn({content:this.state.clickedOnce?ce:Se,icon:this.state.clickedOnce?_e:Re,color:this.state.clickedOnce?je:Le,onClick:function(){return K.state.clickedOnce?Ve():K.setClickedOnce(!0)}},Ze))},R}(n.Component);wn.Confirm=Mo;var So=function(T){"use strict";$i(R,T);function R(W){var K;return K=T.call(this,W)||this,K.inputRef=(0,n.createRef)(),K.state={inInput:!1},K}var z=R.prototype;return z.setInInput=function(K){if(this.setState({inInput:K}),this.inputRef){var J=this.inputRef.current;if(K){J.value=this.props.currentValue||"";try{J.focus(),J.select()}catch(se){}}}},z.commitResult=function(K){if(this.inputRef){var J=this.inputRef.current,se=J.value!=="";if(se){this.props.onCommit(K,J.value);return}else{if(!this.props.defaultValue)return;this.props.onCommit(K,this.props.defaultValue)}}},z.render=function(){var K=this,J=this.props,se=J.fluid,ce=J.content,xe=J.icon,je=J.iconRotation,_e=J.iconSpin,Re=J.tooltip,Le=J.tooltipPosition,Se=J.color,Ve=Se===void 0?"default":Se,Ze=J.placeholder,nt=J.maxLength,tt=Nr(J,["fluid","content","icon","iconRotation","iconSpin","tooltip","tooltipPosition","color","placeholder","maxLength"]),ct=(0,e.jsxs)(p.az,Gn({className:(0,j.Ly)(["Button",se&&"Button--fluid","Button--color--"+Ve])},tt,{onClick:function(){return K.setInInput(!0)},children:[xe&&(0,e.jsx)(B,{name:xe,rotation:je,spin:_e}),(0,e.jsx)("div",{children:ce}),(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:this.state.inInput?"":"none",textAlign:"left"},onBlur:function(Et){K.state.inInput&&(K.setInInput(!1),K.commitResult(Et))},onKeyDown:function(Et){if(Et.keyCode===O.Ri){K.setInInput(!1),K.commitResult(Et);return}Et.keyCode===O.s6&&K.setInInput(!1)}})]}));return Re&&(ct=(0,e.jsx)(fn,{content:Re,position:Le,children:ct})),ct},R}(n.Component);wn.Input=So;var oo=function(T){"use strict";$i(R,T);function R(W){var K;return K=T.call(this,W)||this,K.inputRef=(0,n.createRef)(),K}var z=R.prototype;return z.read=function(K){return gi(function(){var J;return zi(this,function(se){switch(se.label){case 0:return J=Array.from(K).map(function(ce){var xe=new FileReader;return new Promise(function(je){xe.onload=function(){return je(xe.result)},xe.readAsText(ce)})}),[4,Promise.all(J)];case 1:return[2,se.sent()]}})})()},z.render=function(){var K=this,J=this.props,se=J.onSelectFiles,ce=J.accept,xe=J.multiple,je=Nr(J,["onSelectFiles","accept","multiple"]),_e=this,Re=(0,e.jsx)("input",{hidden:!0,type:"file",ref:this.inputRef,accept:ce,multiple:xe,onChange:gi(function(){var Le,Se;return zi(this,function(Ve){switch(Ve.label){case 0:return Le=_e.inputRef.current.files,Le.length?[4,_e.read(Le)]:[3,2];case 1:Se=Ve.sent(),se(xe?Se:Se[0]),Ve.label=2;case 2:return[2]}})})});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(wn,Gn({},je,{onClick:function(){K.inputRef.current.click()}})),Re]})},R}(n.Component);wn.File=oo;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var Ua=function(T,R,z){z===void 0&&(z=!1);var W;return function(){for(var K=arguments.length,J=new Array(K),se=0;se<K;se++)J[se]=arguments[se];var ce=function(){W=null,z||T.apply(void 0,[].concat(J))},xe=z&&!W;clearTimeout(W),W=setTimeout(ce,R),xe&&T.apply(void 0,[].concat(J))}},vs=function(T,R){var z,W;return function K(){for(var J=arguments.length,se=new Array(J),ce=0;ce<J;ce++)se[ce]=arguments[ce];var xe=Date.now();W&&clearTimeout(W),!z||xe-z>=R?(T.apply(null,se),z=xe):W=setTimeout(function(){return K.apply(void 0,[].concat(se))},R-(xe-(z!=null?z:0)))}},pa=function(T){return new Promise(function(R){return setTimeout(R,T)})},io=t(47868);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function ao(){return ao=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ao.apply(this,arguments)}function Wi(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&so(T,R)}function hr(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function so(T,R){return so=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},so(T,R)}var Cr=(0,io.h)("ByondUi"),mr=[],cn=function(T){var R=mr.length;mr.push(null);var z=T||"byondui_"+R;return Cr.log("allocated '"+z+"'"),{render:function(W){Cr.log("rendering '"+z+"'"),mr[R]=z,Byond.winset(z,W)},unmount:function(){Cr.log("unmounting '"+z+"'"),mr[R]=null,Byond.winset(z,{parent:""})}}};window.addEventListener("beforeunload",function(){for(var T=0;T<mr.length;T++){var R=mr[T];typeof R=="string"&&(Cr.log("unmounting '"+R+"' (beforeunload)"),mr[T]=null,Byond.winset(R,{parent:""}))}});var Yo=function(T){var R,z=(R=window.devicePixelRatio)!=null?R:1,W=T.getBoundingClientRect();return{pos:[W.left*z,W.top*z],size:[(W.right-W.left)*z,(W.bottom-W.top)*z]}},xi=function(T){"use strict";Wi(R,T);function R(W){var K,J;return K=T.call(this,W)||this,K.containerRef=(0,n.createRef)(),K.byondUiElement=cn((J=W.params)==null?void 0:J.id),K.handleResize=Ua(function(){K.forceUpdate()},100),K}var z=R.prototype;return z.shouldComponentUpdate=function(K){var J=this.props,se=J.params,ce=se===void 0?{}:se,xe=hr(J,["params"]),je=K.params,_e=je===void 0?{}:je,Re=hr(K,["params"]);return(0,j.a_)(ce,_e)||(0,j.a_)(xe,Re)},z.componentDidMount=function(){window.addEventListener("resize",this.handleResize),this.componentDidUpdate(),this.handleResize()},z.componentDidUpdate=function(){var K=this.props,J=K.params,se=J===void 0?{}:J,ce=Yo(this.containerRef.current);Cr.debug("bounding box",ce),this.byondUiElement.render(ao({parent:Byond.windowId},se,{pos:ce.pos[0]+","+ce.pos[1],size:ce.size[0]+"x"+ce.size[1]}))},z.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize),this.byondUiElement.unmount()},z.render=function(){var K=this.props,J=K.params,se=hr(K,["params"]);return(0,e.jsx)("div",ao({ref:this.containerRef},(0,p.Fl)(se),{children:(0,e.jsx)("div",{style:{minHeight:"22px"}})}))},R}(n.Component),vn=t(11358);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Ur(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function Er(){return Er=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Er.apply(this,arguments)}function rr(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&ze(T,R)}function ne(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function ze(T,R){return ze=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},ze(T,R)}var Qo=void 0,ji=function(T,R,z,W){if(T.length===0)return[];var K=(0,vn.OY)(Math.min).apply(Qo,[].concat(T)),J=(0,vn.OY)(Math.max).apply(Qo,[].concat(T));z!==void 0&&(K[0]=z[0],J[0]=z[1]),W!==void 0&&(K[1]=W[0],J[1]=W[1]);var se=(0,vn.Tj)(function(ce){return(0,vn.OY)(function(xe,je,_e,Re){return(xe-je)/(_e-je)*Re})(ce,K,J,R)})(T);return se},Do=function(T){for(var R="",z=0;z<T.length;z++){var W=T[z];R+=W[0]+","+W[1]+" "}return R},Zo=function(T){"use strict";rr(R,T);function R(W){var K;return K=T.call(this,W)||this,K.handleResize=function(){var J=K.ref.current;J&&K.setState({viewBox:[J.offsetWidth,J.offsetHeight]})},K.ref=(0,n.createRef)(),K.state={viewBox:[600,200]},K.handleResize=K.handleResize.bind(Ur(K)),K}var z=R.prototype;return z.componentDidMount=function(){window.addEventListener("resize",this.handleResize),this.handleResize()},z.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},z.render=function(){var K=this.props,J=K.data,se=J===void 0?[]:J,ce=K.rangeX,xe=K.rangeY,je=K.fillColor,_e=je===void 0?"none":je,Re=K.strokeColor,Le=Re===void 0?"#ffffff":Re,Se=K.strokeWidth,Ve=Se===void 0?2:Se,Ze=ne(K,["data","rangeX","rangeY","fillColor","strokeColor","strokeWidth"]),nt=this.state.viewBox,tt=ji(se,nt,ce,xe);if(tt.length>0){var ct=tt[0],Et=tt[tt.length-1];tt.push([nt[0]+Ve,Et[1]]),tt.push([nt[0]+Ve,-Ve]),tt.push([-Ve,-Ve]),tt.push([-Ve,ct[1]])}var ut=Do(tt),yt=Er({},Ze,{className:"",ref:this.ref});return(0,e.jsx)(p.az,Er({position:"relative"},Ze,{children:(0,e.jsx)(p.az,Er({},yt,{children:(0,e.jsx)("svg",{viewBox:"0 0 "+nt[0]+" "+nt[1],preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},children:(0,e.jsx)("polyline",{transform:"scale(1, -1) translate(0, -"+nt[1]+")",fill:_e,stroke:Le,strokeWidth:Ve,points:ut})})}))}))},R}(n.Component),$a={Line:Zo};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Fi(){return Fi=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Fi.apply(this,arguments)}function ps(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function ga(T){var R=T.children,z=T.color,W=T.title,K=T.buttons,J=ps(T,["children","color","title","buttons"]),se=(0,n.useState)(T.open),ce=se[0],xe=se[1];return(0,e.jsxs)(p.az,{mb:1,children:[(0,e.jsxs)("div",{className:"Table",children:[(0,e.jsx)("div",{className:"Table__cell",children:(0,e.jsx)(wn,Fi({fluid:!0,color:z,icon:ce?"chevron-down":"chevron-right",onClick:function(){return xe(!ce)}},J,{children:W}))}),K&&(0,e.jsx)("div",{className:"Table__cell Table__cell--collapsing",children:K})]}),ce&&(0,e.jsx)(p.az,{mt:1,children:R})]})}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Ao(){return Ao=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Ao.apply(this,arguments)}function za(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Wa(T){var R=T.content,z=T.children,W=T.className,K=za(T,["content","children","className"]);return K.color=R?null:"default",K.backgroundColor=T.color||"default",(0,e.jsx)("div",Ao({className:(0,j.Ly)(["ColorBox",W,(0,p.WP)(K)])},(0,p.Fl)(K),{children:R||"."}))}/**
* @file
* @copyright 2022 raffclar
* @license MIT
*/var Vi=function(T){var R=T.title,z=T.onClose,W=T.children,K=T.width,J=T.height;return(0,e.jsx)("div",{className:"Dialog",children:(0,e.jsxs)(p.az,{className:"Dialog__content",width:K||"370px",height:J,children:[(0,e.jsxs)("div",{className:"Dialog__header",children:[(0,e.jsx)("div",{className:"Dialog__title",children:R}),(0,e.jsx)(p.az,{mr:2,children:(0,e.jsx)(wn,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:z})})]}),W]})})},bi=function(T){var R=T.onClick,z=T.children;return(0,e.jsx)(wn,{onClick:R,className:"Dialog__button",verticalAlignContent:"middle",children:z})};Vi.Button=bi;var Fa=function(T){var R=T.documentName,z=T.onSave,W=T.onDiscard,K=T.onClose;return _jsxs(Vi,{title:"Notepad",onClose:K,children:[_jsxs("div",{className:"Dialog__body",children:["Do you want to save changes to ",R,"?"]}),_jsxs("div",{className:"Dialog__footer",children:[_jsx(bi,{onClick:z,children:"Save"}),_jsx(bi,{onClick:W,children:"Don't Save"}),_jsx(bi,{onClick:K,children:"Cancel"})]})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function lo(){return lo=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},lo.apply(this,arguments)}function gs(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Va(T){var R=T.className,z=T.children,W=gs(T,["className","children"]);return(0,e.jsx)(p.az,lo({className:(0,j.Ly)(["Dimmer",R])},W,{children:(0,e.jsx)("div",{className:"Dimmer__inner",children:z})}))}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function xa(T){var R=T.hidden,z=T.vertical;return(0,e.jsx)("div",{className:(0,j.Ly)(["Divider",R&&"Divider--hidden",z?"Divider--vertical":"Divider--horizontal"])})}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Jo(){return Jo=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Jo.apply(this,arguments)}function xs(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Hi(T,R)}function Hi(T,R){return Hi=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Hi(T,R)}var js=400,Xi=function(T,R){return T.screenX*R[0]+T.screenY*R[1]},yi=function(T){"use strict";xs(R,T);function R(W){var K;return K=T.call(this,W)||this,K.inputRef=(0,n.createRef)(),K.state={value:W.value,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},K.flickerTimer=null,K.suppressFlicker=function(){var J=K.props.suppressFlicker;J>0&&(K.setState({suppressingFlicker:!0}),clearTimeout(K.flickerTimer),K.flickerTimer=setTimeout(function(){K.setState({suppressingFlicker:!1})},J))},K.handleDragStart=function(J){var se=K.props,ce=se.value,xe=se.dragMatrix,je=K.state.editing;je||(document.body.style["pointer-events"]="none",K.ref=J.target,K.setState({dragging:!1,origin:Xi(J,xe),value:ce,internalValue:ce}),K.timer=setTimeout(function(){K.setState({dragging:!0})},250),K.dragInterval=setInterval(function(){var _e=K.state,Re=_e.dragging,Le=_e.value,Se=K.props.onDrag;Re&&Se&&Se(J,Le)},K.props.updateRate||js),document.addEventListener("mousemove",K.handleDragMove),document.addEventListener("mouseup",K.handleDragEnd))},K.handleDragMove=function(J){var se=K.props,ce=se.minValue,xe=se.maxValue,je=se.step,_e=se.stepPixelSize,Re=se.dragMatrix;K.setState(function(Le){var Se=Jo({},Le),Ve=Xi(J,Re)-Se.origin;if(Le.dragging){var Ze=Number.isFinite(ce)?ce%je:0;Se.internalValue=(0,a.qE)(Se.internalValue+Ve*je/_e,ce-je,xe+je),Se.value=(0,a.qE)(Se.internalValue-Se.internalValue%je+Ze,ce,xe),Se.origin=Xi(J,Re)}else Math.abs(Ve)>4&&(Se.dragging=!0);return Se})},K.handleDragEnd=function(J){var se=K.props,ce=se.onChange,xe=se.onDrag,je=K.state,_e=je.dragging,Re=je.value,Le=je.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(K.timer),clearInterval(K.dragInterval),K.setState({dragging:!1,editing:!_e,origin:null}),document.removeEventListener("mousemove",K.handleDragMove),document.removeEventListener("mouseup",K.handleDragEnd),_e)K.suppressFlicker(),ce&&ce(J,Re),xe&&xe(J,Re);else if(K.inputRef){var Se=K.inputRef.current;Se.value=Le;try{Se.focus(),Se.select()}catch(Ve){}}},K}var z=R.prototype;return z.render=function(){var K=this,J=this.state,se=J.dragging,ce=J.editing,xe=J.value,je=J.suppressingFlicker,_e=this.props,Re=_e.animated,Le=_e.value,Se=_e.unit,Ve=_e.minValue,Ze=_e.maxValue,nt=_e.unclamped,tt=_e.format,ct=_e.onChange,Et=_e.onDrag,ut=_e.children,yt=_e.height,Mt=_e.lineHeight,At=_e.fontSize,Dt=Le;(se||je)&&(Dt=xe);var Kt=(0,e.jsxs)(e.Fragment,{children:[Re&&!se&&!je?(0,e.jsx)(f,{value:Dt,format:tt}):tt?tt(Dt):Dt,Se?" "+Se:""]}),Ht=(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ce?void 0:"none",height:yt,lineHeight:Mt,fontsize:At},onBlur:function(Bt){if(ce){var St;if(nt?St=parseFloat(Bt.target.value):St=(0,a.qE)(parseFloat(Bt.target.value),Ve,Ze),Number.isNaN(St)){K.setState({editing:!1});return}K.setState({editing:!1,value:St}),K.suppressFlicker(),ct&&ct(Bt,St),Et&&Et(Bt,St)}},onKeyDown:function(Bt){if(Bt.keyCode===13){var St;if(nt?St=parseFloat(Bt.target.value):St=(0,a.qE)(parseFloat(Bt.target.value),Ve,Ze),Number.isNaN(St)){K.setState({editing:!1});return}K.setState({editing:!1,value:St}),K.suppressFlicker(),ct&&ct(Bt,St),Et&&Et(Bt,St);return}if(Bt.keyCode===27){K.setState({editing:!1});return}}});return ut({dragging:se,editing:ce,value:Le,displayValue:Dt,displayElement:Kt,inputElement:Ht,handleDragStart:this.handleDragStart})},R}(n.Component);yi.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50,dragMatrix:[1,0]};var bs=t(68540),ys=t.n(bs),_s=function(R){return Array.isArray(R)?R[0]:R},$r=function(R){if(typeof R=="function"){for(var z=arguments.length,W=new Array(z>1?z-1:0),K=1;K<z;K++)W[K-1]=arguments[K];return R.apply(void 0,W)}},Zs=function(R,z){if(typeof R=="function")return $r(R,z);R!=null&&(R.current=z)},Gi=function(R){return R.reduce(function(z,W){var K=W[0],J=W[1];return z[K]=J,z},{})},Yi=typeof window!="undefined"&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect,_i=[],Cs=function(R,z,W){W===void 0&&(W={});var K=n.useRef(null),J={onFirstUpdate:W.onFirstUpdate,placement:W.placement||"bottom",strategy:W.strategy||"absolute",modifiers:W.modifiers||_i},se=n.useState({styles:{popper:{position:J.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),ce=se[0],xe=se[1],je=n.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(Se){var Ve=Se.state,Ze=Object.keys(Ve.elements);ro.flushSync(function(){xe({styles:Gi(Ze.map(function(nt){return[nt,Ve.styles[nt]||{}]})),attributes:Gi(Ze.map(function(nt){return[nt,Ve.attributes[nt]]}))})})},requires:["computeStyles"]}},[]),_e=n.useMemo(function(){var Le={onFirstUpdate:J.onFirstUpdate,placement:J.placement,strategy:J.strategy,modifiers:[].concat(J.modifiers,[je,{name:"applyStyles",enabled:!1}])};return ys()(K.current,Le)?K.current||Le:(K.current=Le,Le)},[J.onFirstUpdate,J.placement,J.strategy,J.modifiers,je]),Re=n.useRef();return Yi(function(){Re.current&&Re.current.setOptions(_e)},[_e]),Yi(function(){if(!(R==null||z==null)){var Le=W.createPopper||Xo,Se=Le(R,z,_e);return Re.current=Se,function(){Se.destroy(),Re.current=null}}},[R,z,W.createPopper]),{state:Re.current?Re.current.state:null,styles:ce.styles,attributes:ce.attributes,update:Re.current?Re.current.update:null,forceUpdate:Re.current?Re.current.forceUpdate:null}};function To(){return To=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},To.apply(this,arguments)}function ja(T){var R=T.children,z=T.content,W=T.isOpen,K=T.onClickOutside,J=T.placement,se=(0,n.useState)(null),ce=se[0],xe=se[1],je=(0,n.useState)(null),_e=je[0],Re=je[1],Le=(0,n.useRef)(null),Se=(0,n.useRef)(null),Ve=Cs(ce,_e,{placement:J}),Ze=Ve.styles,nt=Ve.attributes;function tt(ct){var Et,ut;!((Et=Le.current)!=null&&Et.contains(ct.target))&&!((ut=Se.current)!=null&&ut.contains(ct.target))&&(K==null||K())}return(0,n.useEffect)(function(){return W?document.addEventListener("mousedown",tt):document.removeEventListener("mousedown",tt),function(){document.removeEventListener("mousedown",tt)}},[W]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{ref:function(ct){xe(ct),Se.current=ct},children:R}),W&&(0,e.jsx)("div",To({ref:function(ct){Re(ct),Le.current=ct},style:To({},Ze.popper,{zIndex:5})},nt.popper,{children:z}))]})}function Qi(T){return typeof T=="string"?T:T.value}function Ha(T){var R=T.buttons,z=T.className,W=T.clipSelectedText,K=W===void 0?!0:W,J=T.color,se=J===void 0?"default":J,ce=T.disabled,xe=T.displayText,je=T.icon,_e=T.iconRotation,Re=T.iconSpin,Le=T.menuWidth,Se=Le===void 0?"15rem":Le,Ve=T.noChevron,Ze=T.onClick,nt=T.onSelected,tt=T.options,ct=tt===void 0?[]:tt,Et=T.over,ut=T.selected,yt=T.width,Mt=(0,n.useState)(!1),At=Mt[0],Dt=Mt[1],Kt=Et?!At:At,Ht=(0,n.useRef)(null),Bt=(0,n.useCallback)(function(St){if(!(ct.length<1||ce)){var nn=0,xn=ct.length-1,gn=ct.findIndex(function(Dn){return Qi(Dn)===ut});gn<0&&(gn=St==="next"?xn:nn);var dn=gn;St==="next"?dn=gn===xn?nn:gn++:dn=gn===nn?xn:gn--,nt==null||nt(Qi(ct[dn]))}},[ce,nt,ct,ut]);return(0,n.useEffect)(function(){var St;At&&((St=Ht.current)==null||St.focus())},[At]),(0,e.jsx)(ja,{isOpen:At,onClickOutside:function(){return Dt(!1)},placement:Et?"top-start":"bottom-start",content:(0,e.jsxs)("div",{className:"Layout Dropdown__menu",style:{minWidth:Se},ref:Ht,children:[ct.length===0&&(0,e.jsx)("div",{className:"Dropdown__menuentry",children:"No options"}),ct.map(function(St,nn){var xn=Qi(St);return(0,e.jsx)("div",{className:(0,j.Ly)(["Dropdown__menuentry",ut===xn&&"selected"]),onClick:function(){Dt(!1),nt==null||nt(xn)},children:typeof St=="string"?St:St.displayText},nn)})]}),children:(0,e.jsx)("div",{children:(0,e.jsxs)("div",{className:"Dropdown",style:{width:(0,p.zA)(yt)},children:[(0,e.jsxs)("div",{className:(0,j.Ly)(["Dropdown__control","Button","Button--dropdown","Button--color--"+se,ce&&"Button--disabled",z]),onClick:function(St){ce&&!At||(Dt(!At),Ze==null||Ze(St))},children:[je&&(0,e.jsx)(B,{mr:1,name:je,rotation:_e,spin:Re}),(0,e.jsx)("span",{className:"Dropdown__selected-text",style:{overflow:K?"hidden":"visible"},children:xe||ut}),!Ve&&(0,e.jsx)("span",{className:"Dropdown__arrow-button",children:(0,e.jsx)(B,{name:Kt?"chevron-up":"chevron-down"})})]}),R&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(wn,{disabled:ce,height:1.8,icon:"chevron-left",onClick:function(){Bt("previous")}}),(0,e.jsx)(wn,{disabled:ce,height:1.8,icon:"chevron-right",onClick:function(){Bt("next")}})]})]})})})}function Es(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function wo(){return wo=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},wo.apply(this,arguments)}function Js(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&ba(T,R)}function ba(T,R){return ba=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},ba(T,R)}var qs=5,Is=null;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function zr(){return zr=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},zr.apply(this,arguments)}function co(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var qo=function(T){return(0,j.Ly)(["Flex",T.inline&&"Flex--inline",Byond.IS_LTE_IE10&&"Flex--iefix",Byond.IS_LTE_IE10&&T.direction==="column"&&"Flex--iefix--column",(0,p.WP)(T)])},Xa=function(T){var R=T.className,z=T.direction,W=T.wrap,K=T.align,J=T.justify,se=T.inline,ce=co(T,["className","direction","wrap","align","justify","inline"]);return(0,p.Fl)(zr({style:zr({},ce.style,{flexDirection:z,flexWrap:W===!0?"wrap":W,alignItems:K,justifyContent:J})},ce))},vr=function(T){var R=T.className,z=co(T,["className"]);return(0,e.jsx)("div",zr({className:(0,j.Ly)([R,qo(z)])},Xa(z)))},ya=function(T){return(0,j.Ly)(["Flex__item",Byond.IS_LTE_IE10&&"Flex__item--iefix",(0,p.WP)(T)])},Ci=function(T){var R=T.className,z=T.style,W=T.grow,K=T.order,J=T.shrink,se=T.basis,ce=T.align,xe=co(T,["className","style","grow","order","shrink","basis","align"]),je,_e=(je=se!=null?se:T.width)!=null?je:W!==void 0?0:void 0;return(0,p.Fl)(zr({style:zr({},z,{flexGrow:W!==void 0&&Number(W),flexShrink:J!==void 0&&Number(J),flexBasis:(0,p.zA)(_e),order:K,alignSelf:ce})},xe))},Zi=function(T){var R=T.className,z=co(T,["className"]);return(0,e.jsx)("div",zr({className:(0,j.Ly)([R,ya(T)])},Ci(z)))};vr.Item=Zi;var ei=t(86808);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function uo(){return uo=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},uo.apply(this,arguments)}function pn(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Ji=function(T){var R=T.children,z=pn(T,["children"]);return(0,e.jsx)(ei.XI,uo({},z,{children:(0,e.jsx)(ei.XI.Row,{children:R})}))},Os=function(T){var R=T.size,z=R===void 0?1:R,W=T.style,K=pn(T,["size","style"]);return(0,e.jsx)(ei.XI.Cell,uo({style:uo({width:z+"%"},W)},K))};Ji.Column=Os;function Ei(){return Ei=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Ei.apply(this,arguments)}function Ps(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var el=function(T){var R=T.className,z=T.fixBlur,W=z===void 0?!0:z,K=T.objectFit,J=K===void 0?"fill":K,se=T.src,ce=T.tooltip,xe=Ps(T,["className","fixBlur","objectFit","src","tooltip"]),je=computeBoxProps(xe);je.style=Ei({},je.style,{"-ms-interpolation-mode":W?"nearest-neighbor":"auto",objectFit:J});var _e=_jsx("img",Ei({className:R,src:se},je));return ce&&(_e=_jsx(Tooltip,{content:ce,children:_e})),_e},_a=t(1568);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function $n(){return $n=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},$n.apply(this,arguments)}function Ir(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Ga=function(T){var R=T.className,z=T.value,W=T.minValue,K=W===void 0?0:W,J=T.maxValue,se=J===void 0?1:J,ce=T.color,xe=T.ranges,je=xe===void 0?{}:xe,_e=T.children,Re=Ir(T,["className","value","minValue","maxValue","color","ranges","children"]),Le=(0,a.hs)(z,K,se),Se=_e!==void 0,Ve=ce||(0,a.TG)(z,je)||"default",Ze=(0,p.Fl)(Re),nt=["ProgressBar",R,(0,p.WP)(Re)],tt={width:(0,a.J$)(Le)*100+"%"};return _a.NE.includes(Ve)||Ve==="default"?nt.push("ProgressBar--color--"+Ve):(Ze.style=$n({},Ze.style,{borderColor:Ve}),tt.backgroundColor=Ve),(0,e.jsxs)("div",$n({className:(0,j.Ly)(nt)},Ze,{children:[(0,e.jsx)("div",{className:"ProgressBar__fill ProgressBar__fill--animated",style:tt}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Se?_e:(0,a.Mg)(Le*100)+"%"})]}))};/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/function P(){return P=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},P.apply(this,arguments)}function ee(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var ae=function(T){var R=T.className,z=T.vertical,W=T.fill,K=T.zebra,J=ee(T,["className","vertical","fill","zebra"]);return(0,e.jsx)("div",P({className:(0,j.Ly)(["Stack",W&&"Stack--fill",z?"Stack--vertical":"Stack--horizontal",K&&"Stack--zebra",R,qo(T)])},Xa(P({direction:z?"column":"row"},J))))},fe=function(T){var R=T.className,z=T.innerRef,W=ee(T,["className","innerRef"]);return(0,e.jsx)("div",P({className:(0,j.Ly)(["Stack__item",R,ya(W)]),ref:z},Ci(W)))};ae.Item=fe;var ie=function(T){var R=T.className,z=T.hidden,W=ee(T,["className","hidden"]);return(0,e.jsx)("div",P({className:(0,j.Ly)(["Stack__item","Stack__divider",z&&"Stack__divider--hidden",R,ya(W)])},Ci(W)))};ae.Divider=ie;function Ce(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function ge(){return ge=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ge.apply(this,arguments)}function Oe(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Ue(T,R)}function De(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Ue(T,R){return Ue=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Ue(T,R)}var ft=.5,et=1.5,Ct=.1,Ot=null;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Ut(){return Ut=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Ut.apply(this,arguments)}function Gt(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&hn(T,R)}function Nt(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function hn(T,R){return hn=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},hn(T,R)}var Lt=function(T){return typeof T!="number"&&typeof T!="string"?"":String(T)},Ca=function(T){"use strict";Gt(R,T);function R(W){var K;return K=T.call(this,W)||this,K.inputRef=(0,n.createRef)(),K.state={editing:!1},K.handleInput=function(J){var se=K.state.editing,ce=K.props.onInput;se||K.setEditing(!0),ce&&ce(J,J.target.value)},K.handleFocus=function(J){var se=K.state.editing;se||K.setEditing(!0)},K.handleBlur=function(J){var se=K.state.editing,ce=K.props.onChange;se&&(K.setEditing(!1),ce&&ce(J,J.target.value))},K.handleKeyDown=function(J){var se=K.props,ce=se.onInput,xe=se.onChange,je=se.onEnter;if(J.keyCode===O.Ri){K.setEditing(!1),xe&&xe(J,J.target.value),ce&&ce(J,J.target.value),je&&je(J,J.target.value),K.props.selfClear?J.target.value="":J.target.blur();return}if(J.keyCode===O.s6){if(K.props.onEscape){K.props.onEscape(J);return}K.setEditing(!1),J.target.value=Lt(K.props.value),J.target.blur();return}},K}var z=R.prototype;return z.componentDidMount=function(){var K=this,J=this.props.value,se=this.inputRef.current;se&&(se.value=Lt(J)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){se.focus(),K.props.autoSelect&&se.select()},1)},z.componentDidUpdate=function(K,J){var se=this.state.editing,ce=K.value,xe=this.props.value,je=this.inputRef.current;je&&!se&&ce!==xe&&(je.value=Lt(xe))},z.setEditing=function(K){this.setState({editing:K})},z.render=function(){var K=this.props,J=K.selfClear,se=K.onInput,ce=K.onChange,xe=K.onEnter,je=K.value,_e=K.maxLength,Re=K.placeholder,Le=Nt(K,["selfClear","onInput","onChange","onEnter","value","maxLength","placeholder"]),Se=Le.className,Ve=Le.fluid,Ze=Le.monospace,nt=Nt(Le,["className","fluid","monospace"]);return(0,e.jsxs)(p.az,Ut({className:(0,j.Ly)(["Input",Ve&&"Input--fluid",Ze&&"Input--monospace",Se])},nt,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{ref:this.inputRef,className:"Input__input",placeholder:Re,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,maxLength:_e})]}))},R}(n.Component),Ya=t(5030);function Ms(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&or(T,R)}function or(T,R){return or=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},or(T,R)}var fo=null;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Ii(){return Ii=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Ii.apply(this,arguments)}function Al(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Tl=function(T){var R=T.animated,z=T.format,W=T.maxValue,K=T.minValue,J=T.unclamped,se=T.onChange,ce=T.onDrag,xe=T.step,je=T.stepPixelSize,_e=T.suppressFlicker,Re=T.unit,Le=T.value,Se=T.className,Ve=T.style,Ze=T.fillValue,nt=T.color,tt=T.ranges,ct=tt===void 0?{}:tt,Et=T.size,ut=Et===void 0?1:Et,yt=T.bipolar,Mt=T.children,At=Al(T,["animated","format","maxValue","minValue","unclamped","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","style","fillValue","color","ranges","size","bipolar","children"]);return(0,e.jsx)(yi,{dragMatrix:[0,-1],animated:R,format:z,maxValue:W,minValue:K,unclamped:J,onChange:se,onDrag:ce,step:xe,stepPixelSize:je,suppressFlicker:_e,unit:Re,value:Le,children:function(Dt){var Kt=Dt.dragging,Ht=Dt.editing,Bt=Dt.value,St=Dt.displayValue,nn=Dt.displayElement,xn=Dt.inputElement,gn=Dt.handleDragStart,dn=(0,a.hs)(Ze!=null?Ze:St,K,W),Dn=(0,a.hs)(St,K,W),Ti=nt||(0,a.TG)(Ze!=null?Ze:Bt,ct)||"default",vo=Math.min((Dn-.5)*270,225);return(0,e.jsxs)("div",Ii({className:(0,j.Ly)(["Knob","Knob--color--"+Ti,yt&&"Knob--bipolar",Se,(0,p.WP)(At)])},(0,p.Fl)(Ii({style:Ii({fontSize:ut+"em"},Ve)},At)),{onMouseDown:gn,children:[(0,e.jsx)("div",{className:"Knob__circle",children:(0,e.jsx)("div",{className:"Knob__cursorBox",style:{transform:"rotate("+vo+"deg)"},children:(0,e.jsx)("div",{className:"Knob__cursor"})})}),Kt&&(0,e.jsx)("div",{className:"Knob__popupValue",children:nn}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringTrackPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringTrack",cx:"50",cy:"50",r:"50"})}),(0,e.jsx)("svg",{className:"Knob__ring Knob__ringFillPivot",viewBox:"0 0 100 100",children:(0,e.jsx)("circle",{className:"Knob__ringFill",style:{strokeDashoffset:Math.max(((yt?2.75:2)-dn*1.5)*Math.PI*50,0)},cx:"50",cy:"50",r:"50"})}),xn]}))}})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function ti(){return ti=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ti.apply(this,arguments)}function tl(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Ss(T){var R=T.children,z=T.wrap,W=tl(T,["children","wrap"]);return(0,e.jsx)(vr,ti({mx:-.5,wrap:z,align:"stretch",justify:"space-between"},W,{children:R}))}function nl(T){var R=T.label,z=T.children,W=T.mx,K=W===void 0?1:W,J=tl(T,["label","children","mx"]);return(0,e.jsx)(vr.Item,{mx:K,children:(0,e.jsxs)(vr,ti({height:"100%",direction:"column",align:"center",textAlign:"center",justify:"space-between"},J,{children:[(0,e.jsx)(vr.Item,{}),(0,e.jsx)(vr.Item,{children:z}),(0,e.jsx)(vr.Item,{color:"label",children:R})]}))})}Ss.Item=nl;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var Jt=function(T){var R=T.children;return(0,e.jsx)("table",{className:"LabeledList",children:R})},Ds=function(T){var R=T.className,z=T.label,W=T.labelColor,K=W===void 0?"label":W,J=T.labelWrap,se=T.color,ce=T.textAlign,xe=T.buttons,je=T.content,_e=T.children,Re=T.verticalAlign,Le=Re===void 0?"baseline":Re,Se=T.tooltip,Ve;z&&(Ve=z,typeof z=="string"&&(Ve+=":")),Se!==void 0&&(Ve=(0,e.jsx)(fn,{content:Se,children:(0,e.jsx)(p.az,{as:"span",style:{borderBottom:"2px dotted rgba(255, 255, 255, 0.8)"},children:Ve})}));var Ze=(0,e.jsx)(p.az,{as:"td",color:K,className:(0,j.Ly)(["LabeledList__cell",!J&&"LabeledList__label--nowrap"]),verticalAlign:Le,children:Ve});return(0,e.jsxs)("tr",{className:(0,j.Ly)(["LabeledList__row",R]),children:[Ze,(0,e.jsxs)(p.az,{as:"td",color:se,textAlign:ce,className:(0,j.Ly)(["LabeledList__cell","LabeledList__content"]),colSpan:xe?void 0:2,verticalAlign:Le,children:[je,_e]}),xe&&(0,e.jsx)("td",{className:"LabeledList__cell LabeledList__buttons",children:xe})]})},Qa=function(T){var R=T.size?(0,p.zA)(Math.max(0,T.size-1)):0;return(0,e.jsx)("tr",{className:"LabeledList__row",children:(0,e.jsx)("td",{colSpan:3,style:{paddingTop:R,paddingBottom:R},children:(0,e.jsx)(xa,{})})})};Jt.Item=Ds,Jt.Divider=Qa;/**
* @file
* @copyright 2022 Aleksej Komarov
* @license MIT
*/function Oi(){return Oi=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Oi.apply(this,arguments)}function As(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Pi(T,R)}function Za(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Pi(T,R){return Pi=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Pi(T,R)}var Ja=function(T){"use strict";As(R,T);function R(W){var K;return K=T.call(this,W)||this,K.handleClick=function(J){if(!K.props.menuRef.current){io.v.log("Menu.handleClick(): No ref");return}K.props.menuRef.current.contains(J.target)?io.v.log("Menu.handleClick(): Inside"):(io.v.log("Menu.handleClick(): Outside"),K.props.onOutsideClick())},K}var z=R.prototype;return z.componentWillMount=function(){window.addEventListener("click",this.handleClick)},z.componentWillUnmount=function(){window.removeEventListener("click",this.handleClick)},z.render=function(){var K=this.props,J=K.width,se=K.children;return(0,e.jsx)("div",{className:"MenuBar__menu",style:{width:J},children:se})},R}(n.Component),qi=function(T){"use strict";As(R,T);function R(W){var K;return K=T.call(this,W)||this,K.menuRef=(0,n.createRef)(),K}var z=R.prototype;return z.render=function(){var K=this.props,J=K.open,se=K.openWidth,ce=K.children,xe=K.disabled,je=K.display,_e=K.onMouseOver,Re=K.onClick,Le=K.onOutsideClick,Se=Za(K,["open","openWidth","children","disabled","display","onMouseOver","onClick","onOutsideClick"]),Ve=Se.className,Ze=Za(Se,["className"]);return(0,e.jsxs)("div",{ref:this.menuRef,children:[(0,e.jsx)(p.az,Oi({className:(0,j.Ly)(["MenuBar__MenuBarButton","MenuBar__font","MenuBar__hover",Ve])},Ze,{onClick:xe?function(){return null}:Re,onMouseOver:_e,children:(0,e.jsx)("span",{className:"MenuBar__MenuBarButton-text",children:je})})),J&&(0,e.jsx)(Ja,{width:se,menuRef:this.menuRef,onOutsideClick:Le,children:ce})]})},R}(n.Component),Ea=function(T){var R=T.entry,z=T.children,W=T.openWidth,K=T.display,J=T.setOpenMenuBar,se=T.openMenuBar,ce=T.setOpenOnHover,xe=T.openOnHover,je=T.disabled,_e=T.className;return(0,e.jsx)(qi,{openWidth:W,display:K,disabled:je,open:se===R,className:_e,onClick:function(){var Re=se===R?null:R;J(Re),ce(!xe)},onOutsideClick:function(){J(null),ce(!1)},onMouseOver:function(){xe&&J(R)},children:z})},wl=function(T){var R=T.value,z=T.displayText,W=T.onClick,K=T.checked;return(0,e.jsxs)(p.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__MenuItemToggle","MenuBar__hover"]),onClick:function(){return W(R)},children:[(0,e.jsx)("div",{className:"MenuBar__MenuItemToggle__check",children:K&&(0,e.jsx)(B,{size:1.3,name:"check"})}),z]})};Ea.MenuItemToggle=wl;var Rl=function(T){var R=T.value,z=T.displayText,W=T.onClick;return(0,e.jsx)(p.az,{className:(0,j.Ly)(["MenuBar__font","MenuBar__MenuItem","MenuBar__hover"]),onClick:function(){return W(R)},children:z})};Ea.MenuItem=Rl;var rl=function(){return(0,e.jsx)("div",{className:"MenuBar__Separator"})};Ea.Separator=rl;var qa=function(T){var R=T.children;return(0,e.jsx)(p.az,{className:"MenuBar",children:R})};qa.Dropdown=Ea;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function ea(){return ea=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ea.apply(this,arguments)}function Ts(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var ws=function(T){var R=T.className,z=T.children,W=T.onEnter,K=Ts(T,["className","children","onEnter"]),J;return W&&(J=function(se){var ce=se.which||se.keyCode;ce===13&&W(se)}),(0,e.jsx)(Va,{onKeyDown:J,children:(0,e.jsx)("div",ea({className:(0,j.Ly)(["Modal",R,(0,p.WP)(K)])},(0,p.Fl)(K),{children:z}))})},es=t(4413);function Ia(){return Ia=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Ia.apply(this,arguments)}function Bl(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&ts(T,R)}function ts(T,R){return ts=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},ts(T,R)}var ns=function(T){return T.stopPropagation&&T.stopPropagation(),T.preventDefault&&T.preventDefault(),T.cancelBubble=!0,T.returnValue=!1,!1},Rs=280,Oa=function(T){"use strict";Bl(R,T);function R(W){var K;K=T.call(this,W)||this;var J=window.innerWidth/2-256,se=window.innerHeight/2-256;return K.state={offsetX:J,offsetY:se,transform:"none",dragging:!1,originX:null,originY:null,zoom:1},K.handleDragStart=function(ce){K.ref=ce.target,K.setState({dragging:!1,originX:ce.screenX,originY:ce.screenY}),document.addEventListener("mousemove",K.handleDragMove),document.addEventListener("mouseup",K.handleDragEnd),ns(ce)},K.handleDragMove=function(ce){K.setState(function(xe){var je=Ia({},xe),_e=ce.screenX-je.originX,Re=ce.screenY-je.originY;return xe.dragging?(je.offsetX+=_e,je.offsetY+=Re,je.originX=ce.screenX,je.originY=ce.screenY):je.dragging=!0,je}),ns(ce)},K.handleDragEnd=function(ce){K.setState({dragging:!1,originX:null,originY:null}),document.removeEventListener("mousemove",K.handleDragMove),document.removeEventListener("mouseup",K.handleDragEnd),ns(ce)},K.handleOnClick=function(ce){var xe=ce.offsetX/K.state.zoom/Rs,je=1-ce.offsetY/K.state.zoom/Rs;ce.byondX=xe,ce.byondY=je,typeof K.props.onClick=="function"&&K.props.onClick(ce)},K.handleZoom=function(ce,xe){K.setState(function(je){var _e=Math.min(Math.max(xe,1),8),Re=(_e-je.zoom)*1.5;je.zoom=_e;var Le=je.offsetX-262*Re;Le<-500&&(Le=-500),Le>500&&(Le=500);var Se=je.offsetY-256*Re;return Se<-200&&(Se=-200),Se>200&&(Se=200),je.offsetX=Le,je.offsetY=Se,W.onZoom&&W.onZoom(je.zoom),je})},K}var z=R.prototype;return z.render=function(){var K=(0,es.Oc)(this.context).config,J=this.state,se=J.dragging,ce=J.offsetX,xe=J.offsetY,je=J.zoom,_e=je===void 0?1:je,Re=this.props.children,Le=K.map+"_nanomap_z"+K.mapZLevel+".png",Se=Rs*_e+"px",Ve={width:Se,height:Se,"margin-top":xe+"px","margin-left":ce+"px",overflow:"hidden",position:"relative","background-image":"url("+Le+")","background-size":"cover","background-repeat":"no-repeat","text-align":"center",cursor:se?"move":"auto"};return(0,e.jsxs)(p.az,{className:"NanoMap__container",children:[(0,e.jsx)(p.az,{style:Ve,textAlign:"center",onMouseDown:this.handleDragStart,onClick:this.handleOnClick,children:(0,e.jsx)(p.az,{children:Re})}),(0,e.jsx)(Bs,{zoom:_e,onZoom:this.handleZoom})]})},R}(n.Component),ni=function(T,R){var z=T.x,W=T.y,K=T.zoom,J=K===void 0?1:K,se=T.icon,ce=T.tooltip,xe=T.color,je=T.onClick,_e=function(Se){ns(Se),je&&je(Se)},Re=z*2*J-J-3,Le=W*2*J-J-3;return(0,e.jsx)("div",{children:(0,e.jsxs)(p.az,{position:"absolute",className:"NanoMap__marker",lineHeight:"0",bottom:Le+"px",left:Re+"px",onMouseDown:_e,children:[(0,e.jsx)(B,{name:se,color:xe,fontSize:"6px"}),(0,e.jsx)(fn,{content:ce})]})})};Oa.Marker=ni;var Bs=function(T){var R=(0,es.Oc)(),z=R.act,W=R.config,K=R.data;return(0,e.jsx)(p.az,{className:"NanoMap__zoomer",children:(0,e.jsxs)(Jt,{children:[(0,e.jsx)(Jt.Item,{label:"Zoom",children:(0,e.jsx)(Us,{minValue:"1",maxValue:"8",stepPixelSize:"10",format:function(J){return J+"x"},value:T.zoom,onDrag:function(J,se){return T.onZoom(J,se)}})}),(0,e.jsx)(Jt.Item,{label:"Z-Level",children:K.map_levels.sort(function(J,se){return Number(J)-Number(se)}).map(function(J){return(0,e.jsx)(wn,{selected:~~J===~~W.mapZLevel,content:J,onClick:function(){z("setZLevel",{mapZLevel:J})}},J)})})]})})};Oa.Zoomer=Bs;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function ri(){return ri=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ri.apply(this,arguments)}function ho(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Pa(T){var R=T.className,z=T.color,W=T.info,K=T.success,J=T.danger,se=ho(T,["className","color","info","success","danger"]);return(0,e.jsx)(p.az,ri({className:(0,j.Ly)(["NoticeBox",z&&"NoticeBox--color--"+z,W&&"NoticeBox--type--info",K&&"NoticeBox--type--success",J&&"NoticeBox--type--danger",R])},se))}/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Wr(){return Wr=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Wr.apply(this,arguments)}function Ks(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&ks(T,R)}function ks(T,R){return ks=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},ks(T,R)}var Kl=400,oi=function(T){"use strict";Ks(R,T);function R(W){var K;K=T.call(this,W)||this;var J=W.value;return K.inputRef=(0,n.createRef)(),K.state={value:J,dragging:!1,editing:!1,internalValue:null,origin:null,suppressingFlicker:!1},K.flickerTimer=null,K.suppressFlicker=function(){var se=K.props.suppressFlicker;se>0&&(K.setState({suppressingFlicker:!0}),clearTimeout(K.flickerTimer),K.flickerTimer=setTimeout(function(){return K.setState({suppressingFlicker:!1})},se))},K.handleDragStart=function(se){var ce=K.props.value,xe=K.state.editing;xe||(document.body.style["pointer-events"]="none",K.ref=se.target,K.setState({dragging:!1,origin:se.screenY,value:ce,internalValue:ce}),K.timer=setTimeout(function(){K.setState({dragging:!0})},250),K.dragInterval=setInterval(function(){var je=K.state,_e=je.dragging,Re=je.value,Le=K.props.onDrag;_e&&Le&&Le(se,Re)},K.props.updateRate||Kl),document.addEventListener("mousemove",K.handleDragMove),document.addEventListener("mouseup",K.handleDragEnd))},K.handleDragMove=function(se){var ce=K.props,xe=ce.minValue,je=ce.maxValue,_e=ce.step,Re=ce.stepPixelSize;K.setState(function(Le){var Se=Wr({},Le),Ve=Se.origin-se.screenY;if(Le.dragging){var Ze=Number.isFinite(xe)?xe%_e:0;Se.internalValue=(0,a.qE)(Se.internalValue+Ve*_e/Re,xe-_e,je+_e),Se.value=(0,a.qE)(Se.internalValue-Se.internalValue%_e+Ze,xe,je),Se.origin=se.screenY}else Math.abs(Ve)>4&&(Se.dragging=!0);return Se})},K.handleDragEnd=function(se){var ce=K.props,xe=ce.onChange,je=ce.onDrag,_e=K.state,Re=_e.dragging,Le=_e.value,Se=_e.internalValue;if(document.body.style["pointer-events"]="auto",clearTimeout(K.timer),clearInterval(K.dragInterval),K.setState({dragging:!1,editing:!Re,origin:null}),document.removeEventListener("mousemove",K.handleDragMove),document.removeEventListener("mouseup",K.handleDragEnd),Re)K.suppressFlicker(),xe&&xe(se,Le),je&&je(se,Le);else if(K.inputRef){var Ve=K.inputRef.current;Ve.value=Se;try{Ve.focus(),Ve.select()}catch(Ze){}}},K}var z=R.prototype;return z.render=function(){var K=this,J=this.state,se=J.dragging,ce=J.editing,xe=J.value,je=J.suppressingFlicker,_e=this.props,Re=_e.className,Le=_e.fluid,Se=_e.animated,Ve=_e.value,Ze=_e.unit,nt=_e.minValue,tt=_e.maxValue,ct=_e.height,Et=_e.width,ut=_e.lineHeight,yt=_e.fontSize,Mt=_e.format,At=_e.onChange,Dt=_e.onDrag,Kt=Ve;(se||je)&&(Kt=xe);var Ht=(0,e.jsxs)("div",{className:"NumberInput__content",children:[Se&&!se&&!je?(0,e.jsx)(f,{value:Kt,format:Mt}):Mt?Mt(Kt):Kt,Ze?" "+Ze:""]});return(0,e.jsxs)(p.az,{className:(0,j.Ly)(["NumberInput",Le&&"NumberInput--fluid",Re]),minWidth:Et,minHeight:ct,lineHeight:ut,fontSize:yt,onMouseDown:this.handleDragStart,children:[(0,e.jsx)("div",{className:"NumberInput__barContainer",children:(0,e.jsx)("div",{className:"NumberInput__bar",style:{height:(0,a.qE)((Kt-nt)/(tt-nt)*100,0,100)+"%"}})}),Ht,(0,e.jsx)("input",{ref:this.inputRef,className:"NumberInput__input",style:{display:ce?void 0:"none",height:ct,lineHeight:ut,fontSize:yt},onBlur:function(Bt){if(ce){var St=(0,a.qE)(parseFloat(Bt.target.value),nt,tt);if(Number.isNaN(St)){K.setState({editing:!1});return}K.setState({editing:!1,value:St}),K.suppressFlicker(),At&&At(Bt,St),Dt&&Dt(Bt,St)}},onKeyDown:function(Bt){if(Bt.keyCode===13){var St=(0,a.qE)(parseFloat(Bt.target.value),nt,tt);if(Number.isNaN(St)){K.setState({editing:!1});return}K.setState({editing:!1,value:St}),K.suppressFlicker(),At&&At(Bt,St),Dt&&Dt(Bt,St);return}if(Bt.keyCode===27){K.setState({editing:!1});return}}})]})},R}(n.Component);oi.defaultProps={minValue:-1/0,maxValue:1/0,step:1,stepPixelSize:1,suppressFlicker:50};function Mi(){return Mi=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Mi.apply(this,arguments)}function ta(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Sa(T,R)}function Ma(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Sa(T,R){return Sa=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Sa(T,R)}var Si=0,Ro=1e4,on=function(T,R,z,W){var K=R||Si,J=z||z===0?z:Ro,se=W?T.replace(/[^\-\d.]/g,""):T.replace(/[^\-\d]/g,"");return W&&(se=zn(se,K),se=Yn(".",se)),R<0?(se=ii(se),se=Yn("-",se)):se=se.replaceAll("-",""),K<=1&&J>=0?rn(se,K,J,W):se},rn=function(T,R,z,W){var K=W?parseFloat(T):parseInt(T,10);if(!isNaN(K)&&(T.slice(-1)!=="."||K<Math.floor(R))){var J=(0,a.qE)(K,R,z);if(K!==J)return String(J)}return T},ii=function(T){var R=T,z=T.indexOf("-");return z>0?(T=T.replace("-",""),R="-".concat(T)):z===0&&T.indexOf("-",z+1)>0&&(R=T.replaceAll("-","")),R},zn=function(T,R){var z=T,W=Math.sign(R)*Math.floor(Math.abs(R));return T.indexOf(".")===0?z=String(W).concat(T):T.indexOf("-")===0&&T.indexOf(".")===1&&(z=W+".".concat(T.slice(2))),z},Yn=function(T,R){var z=R.indexOf(T),W=R.length,K=R;if(z!==-1&&z<W-1){var J=R.slice(z+1,W);J=J.replaceAll(T,""),K=R.slice(0,z+1).concat(J)}return K},mo=function(T,R,z,W){var K=R||Si,J=z||z===0?z:Ro;if(!T||!T.length)return String(K);var se=W?parseFloat(T.replace(/[^\-\d.]/g,"")):parseInt(T.replace(/[^\-\d]/g,""),10);return isNaN(se)?String(K):String((0,a.qE)(se,K,J))},na=function(T){"use strict";ta(R,T);function R(W){var K;return K=T.call(this,W)||this,K.inputRef=(0,n.createRef)(),K.state={editing:!1},K.handleBlur=function(J){var se=K.props,ce=se.maxValue,xe=se.minValue,je=se.onBlur,_e=se.allowFloats,Re=K.state.editing;Re&&K.setEditing(!1);var Le=mo(J.target.value,xe,ce,_e);je&&je(J,+Le)},K.handleChange=function(J){var se=K.props,ce=se.maxValue,xe=se.minValue,je=se.onChange,_e=se.allowFloats;J.target.value=on(J.target.value,xe,ce,_e),je&&je(J,+J.target.value)},K.handleFocus=function(J){var se=K.state.editing;se||K.setEditing(!0)},K.handleInput=function(J){var se=K.state.editing,ce=K.props.onInput;se||K.setEditing(!0),ce&&ce(J,+J.target.value)},K.handleKeyDown=function(J){var se=K.props,ce=se.maxValue,xe=se.minValue,je=se.onChange,_e=se.onEnter,Re=se.allowFloats;if(J.keyCode===O.Ri){var Le=mo(J.target.value,xe,ce,Re);K.setEditing(!1),je&&je(J,+Le),_e&&_e(J,+Le),J.target.blur();return}if(J.keyCode===O.s6){if(K.props.onEscape){K.props.onEscape(J);return}K.setEditing(!1),J.target.value=K.props.value,J.target.blur();return}},K}var z=R.prototype;return z.componentDidMount=function(){var K=this,J,se=this.props,ce=se.maxValue,xe=se.minValue,je=se.allowFloats,_e=(J=this.props.value)==null?void 0:J.toString(),Re=this.inputRef.current;Re&&(Re.value=mo(_e,xe,ce,je)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){Re.focus(),K.props.autoSelect&&Re.select()},1)},z.componentDidUpdate=function(K,J){var se,ce,xe=this.props,je=xe.maxValue,_e=xe.minValue,Re=xe.allowFloats,Le=this.state.editing,Se=(se=K.value)==null?void 0:se.toString(),Ve=(ce=this.props.value)==null?void 0:ce.toString(),Ze=this.inputRef.current;Ze&&!Le&&Ve!==Se&&Ve!==Ze.value&&(Ze.value=mo(Ve,_e,je,Re))},z.setEditing=function(K){this.setState({editing:K})},z.render=function(){var K=this.props,J=K.onChange,se=K.onEnter,ce=K.onInput,xe=K.onBlur,je=K.value,_e=Ma(K,["onChange","onEnter","onInput","onBlur","value"]),Re=_e.className,Le=_e.fluid,Se=_e.monospace,Ve=Ma(_e,["className","fluid","monospace"]);return(0,e.jsxs)(p.az,Mi({className:(0,j.Ly)(["Input",Le&&"Input--fluid",Se&&"Input--monospace",Re])},Ve,{children:[(0,e.jsx)("div",{className:"Input__baseline",children:"."}),(0,e.jsx)("input",{className:"Input__input",onChange:this.handleChange,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,ref:this.inputRef,type:"number | string"})]}))},R}(n.Component);/**
* @file
* @copyright 2020 bobbahbrown (https://github.com/bobbahbrown)
* @license MIT
*/function Sn(){return Sn=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Sn.apply(this,arguments)}function rs(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var kl=function(T){var R=T.value,z=T.minValue,W=z===void 0?1:z,K=T.maxValue,J=K===void 0?1:K,se=T.ranges,ce=T.alertAfter,xe=T.alertBefore,je=T.format,_e=T.size,Re=_e===void 0?1:_e,Le=T.className,Se=T.style,Ve=rs(T,["value","minValue","maxValue","ranges","alertAfter","alertBefore","format","size","className","style"]),Ze=scale(R,W,J),nt=clamp01(Ze),tt=se?{}:{primary:[0,1]};se&&Object.keys(se).forEach(function(ut){var yt=se[ut];tt[ut]=[scale(yt[0],W,J),scale(yt[1],W,J)]});var ct=function(){if(ce&&xe&&ce<xe){if(ce<R&&xe>R)return!0}else if(ce<R||xe>R)return!0;return!1},Et=ct()&&keyOfMatchingRange(nt,tt);return _jsxs(Box,{inline:!0,children:[_jsx("div",Sn({className:classes(["RoundGauge",Le,computeBoxClassName(Ve)])},computeBoxProps(Sn({style:Sn({fontSize:Re+"em"},Se)},Ve)),{children:_jsxs("svg",{viewBox:"0 0 100 50",children:[(ce||xe)&&_jsx("g",{className:classes(["RoundGauge__alert",Et?"active RoundGauge__alert--"+Et:""]),children:_jsx("path",{d:"M48.211,14.578C48.55,13.9 49.242,13.472 50,13.472C50.758,13.472 51.45,13.9 51.789,14.578C54.793,20.587 60.795,32.589 63.553,38.106C63.863,38.726 63.83,39.462 63.465,40.051C63.101,40.641 62.457,41 61.764,41C55.996,41 44.004,41 38.236,41C37.543,41 36.899,40.641 36.535,40.051C36.17,39.462 36.137,38.726 36.447,38.106C39.205,32.589 45.207,20.587 48.211,14.578ZM50,34.417C51.426,34.417 52.583,35.574 52.583,37C52.583,38.426 51.426,39.583 50,39.583C48.574,39.583 47.417,38.426 47.417,37C47.417,35.574 48.574,34.417 50,34.417ZM50,32.75C50,32.75 53,31.805 53,22.25C53,20.594 51.656,19.25 50,19.25C48.344,19.25 47,20.594 47,22.25C47,31.805 50,32.75 50,32.75Z"})}),_jsx("g",{children:_jsx("circle",{className:"RoundGauge__ringTrack",cx:"50",cy:"50",r:"45"})}),_jsx("g",{children:Object.keys(tt).map(function(ut,yt){var Mt=tt[ut];return _jsx("circle",{className:"RoundGauge__ringFill RoundGauge--color--"+ut,style:{strokeDashoffset:Math.max((2-(Mt[1]-Mt[0]))*Math.PI*50,0)},transform:"rotate("+(180+180*Mt[0])+" 50 50)",cx:"50",cy:"50",r:"45"},yt)})}),_jsxs("g",{className:"RoundGauge__needle",transform:"rotate("+(nt*180-90)+" 50 50)",children:[_jsx("polygon",{className:"RoundGauge__needleLine",points:"46,50 50,0 54,50"}),_jsx("circle",{className:"RoundGauge__needleMiddle",cx:"50",cy:"50",r:"8"})]})]})})),_jsx(AnimatedNumber,{value:R,format:je,size:Re})]})},Ls=t(80116);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function ra(){return ra=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ra.apply(this,arguments)}function ol(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Bo=function(T){var R=T.className,z=T.title,W=T.buttons,K=T.fill,J=T.fitted,se=T.scrollable,ce=T.scrollableHorizontal,xe=T.flexGrow,je=T.noTopPadding,_e=T.stretchContents,Re=T.children,Le=T.onScroll,Se=ol(T,["className","title","buttons","fill","fitted","scrollable","scrollableHorizontal","flexGrow","noTopPadding","stretchContents","children","onScroll"]),Ve=T.scrollableRef||(0,n.createRef)(),Ze=(0,j.b5)(z)||(0,j.b5)(W);return(0,n.useEffect)(function(){return(se||ce)&&((0,Ls.tk)(Ve.current),Le&&Ve.current&&(Ve.current.onscroll=Le)),function(){(se||ce)&&(0,Ls.WK)(Ve.current)}},[]),(0,e.jsxs)("div",ra({className:(0,j.Ly)(["Section",K&&"Section--fill",J&&"Section--fitted",se&&"Section--scrollable",ce&&"Section--scrollableHorizontal",xe&&"Section--flex",R,(0,p.WP)(Se)])},(0,p.Fl)(Se),{children:[Ze&&(0,e.jsxs)("div",{className:"Section__title",children:[(0,e.jsx)("span",{className:"Section__titleText",children:z}),(0,e.jsx)("div",{className:"Section__buttons",children:W})]}),(0,e.jsx)("div",{className:"Section__rest",children:(0,e.jsx)("div",{onScroll:Le,className:(0,j.Ly)(["Section__content",!!_e&&"Section__content--stretchContents",!!je&&"Section__content--noTopPadding"]),children:Re})})]}))};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function oa(){return oa=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},oa.apply(this,arguments)}function Ns(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Us=function(T){var R=T.animated,z=T.format,W=T.maxValue,K=T.minValue,J=T.onChange,se=T.onDrag,ce=T.step,xe=T.stepPixelSize,je=T.suppressFlicker,_e=T.unit,Re=T.value,Le=T.className,Se=T.fillValue,Ve=T.color,Ze=T.ranges,nt=Ze===void 0?{}:Ze,tt=T.children,ct=Ns(T,["animated","format","maxValue","minValue","onChange","onDrag","step","stepPixelSize","suppressFlicker","unit","value","className","fillValue","color","ranges","children"]),Et=tt!==void 0;return(0,e.jsx)(yi,{dragMatrix:[1,0],animated:R,format:z,maxValue:W,minValue:K,onChange:J,onDrag:se,step:ce,stepPixelSize:xe,suppressFlicker:je,unit:_e,value:Re,children:function(ut){var yt=ut.dragging,Mt=ut.editing,At=ut.value,Dt=ut.displayValue,Kt=ut.displayElement,Ht=ut.inputElement,Bt=ut.handleDragStart,St=Se!=null,nn=(0,a.hs)(At,K,W),xn=(0,a.hs)(Se!=null?Se:Dt,K,W),gn=(0,a.hs)(Dt,K,W),dn=Ve||(0,a.TG)(Se!=null?Se:At,nt)||"default";return(0,e.jsxs)("div",oa({className:(0,j.Ly)(["Slider","ProgressBar","ProgressBar--color--"+dn,Le,(0,p.WP)(ct)])},(0,p.Fl)(ct),{onMouseDown:Bt,children:[(0,e.jsx)("div",{className:(0,j.Ly)(["ProgressBar__fill",St&&"ProgressBar__fill--animated"]),style:{width:(0,a.J$)(xn)*100+"%",opacity:.4}}),(0,e.jsx)("div",{className:"ProgressBar__fill",style:{width:(0,a.J$)(Math.min(xn,gn))*100+"%"}}),(0,e.jsxs)("div",{className:"Slider__cursorOffset",style:{width:(0,a.J$)(gn)*100+"%"},children:[(0,e.jsx)("div",{className:"Slider__cursor"}),(0,e.jsx)("div",{className:"Slider__pointer"}),yt&&(0,e.jsx)("div",{className:"Slider__popupValue",children:Kt})]}),(0,e.jsx)("div",{className:"ProgressBar__content",children:Et?tt:Kt}),Ht]}))}})},Ec=function(T){return _jsxs(Box,{style:T.style,children:[_jsxs(Box,{className:"Section__title",style:T.titleStyle,children:[_jsx(Box,{className:"Section__titleText",style:T.textStyle,children:T.title}),_jsx("div",{className:"Section__buttons",children:T.titleSubtext})]}),_jsx(Box,{className:"Section__rest",children:_jsx(Box,{className:"Section__content",children:T.children})})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function Fr(){return Fr=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},Fr.apply(this,arguments)}function Di(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}var Ai=function(T){var R=T.className,z=T.vertical,W=T.fill,K=T.fluid,J=T.children,se=Di(T,["className","vertical","fill","fluid","children"]);return(0,e.jsx)("div",Fr({className:(0,j.Ly)(["Tabs",z?"Tabs--vertical":"Tabs--horizontal",W&&"Tabs--fill",K&&"Tabs--fluid",R,(0,p.WP)(se)])},(0,p.Fl)(se),{children:J}))},os=function(T){var R=T.className,z=T.selected,W=T.color,K=T.icon,J=T.leftSlot,se=T.rightSlot,ce=T.children,xe=Di(T,["className","selected","color","icon","leftSlot","rightSlot","children"]);return(0,e.jsxs)("div",Fr({className:(0,j.Ly)(["Tab","Tabs__Tab","Tab--color--"+W,z&&"Tab--selected",R,(0,p.WP)(xe)])},(0,p.Fl)(xe),{children:[(0,j.b5)(J)&&(0,e.jsx)("div",{className:"Tab__left",children:J})||!!K&&(0,e.jsx)("div",{className:"Tab__left",children:(0,e.jsx)(B,{name:K})}),(0,e.jsx)("div",{className:"Tab__text",children:ce}),(0,j.b5)(se)&&(0,e.jsx)("div",{className:"Tab__right",children:se})]}))};Ai.Tab=os;/**
* @file
* @copyright 2020 Aleksej Komarov
* @author Warlockd
* @license MIT
*/function ia(){return ia=Object.assign||function(T){for(var R=1;R<arguments.length;R++){var z=arguments[R];for(var W in z)Object.prototype.hasOwnProperty.call(z,W)&&(T[W]=z[W])}return T},ia.apply(this,arguments)}function Or(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&Ko(T,R)}function pr(T,R){if(T==null)return{};var z={},W=Object.keys(T),K,J;for(J=0;J<W.length;J++)K=W[J],!(R.indexOf(K)>=0)&&(z[K]=T[K]);return z}function Ko(T,R){return Ko=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},Ko(T,R)}var ko=function(T){"use strict";Or(R,T);function R(W){var K;K=T.call(this,W)||this,K.textareaRef=W.innerRef||(0,n.createRef)(),K.state={editing:!1,scrolledAmount:0};var J=W.dontUseTabForIndent,se=J===void 0?!1:J;return K.handleOnInput=function(ce){var xe=K.state.editing,je=K.props.onInput;xe||K.setEditing(!0),je&&je(ce,ce.target.value)},K.handleOnChange=function(ce){var xe=K.state.editing,je=K.props.onChange;xe&&K.setEditing(!1),je&&je(ce,ce.target.value)},K.handleKeyPress=function(ce){var xe=K.state.editing,je=K.props.onKeyPress;xe||K.setEditing(!0),je&&je(ce,ce.target.value)},K.handleKeyDown=function(ce){var xe=K.state.editing,je=K.props,_e=je.onChange,Re=je.onInput,Le=je.onEnter,Se=je.onKey;if(ce.keyCode===O.Ri){K.setEditing(!1),_e&&_e(ce,ce.target.value),Re&&Re(ce,ce.target.value),Le&&Le(ce,ce.target.value),K.props.selfClear&&(ce.target.value="",ce.target.blur());return}if(ce.keyCode===O.s6){K.props.onEscape&&K.props.onEscape(ce),K.setEditing(!1),K.props.selfClear?ce.target.value="":(ce.target.value=Lt(K.props.value),ce.target.blur());return}if(xe||K.setEditing(!0),Se&&Se(ce,ce.target.value),!se){var Ve=ce.keyCode||ce.which;if(Ve===O.aW){ce.preventDefault();var Ze=ce.target,nt=Ze.value,tt=Ze.selectionStart,ct=Ze.selectionEnd;ce.target.value=nt.substring(0,tt)+" "+nt.substring(ct),ce.target.selectionEnd=tt+1,Re&&Re(ce,ce.target.value)}}},K.handleFocus=function(ce){var xe=K.state.editing;xe||K.setEditing(!0)},K.handleBlur=function(ce){var xe=K.state.editing,je=K.props.onChange;xe&&(K.setEditing(!1),je&&je(ce,ce.target.value))},K.handleScroll=function(ce){var xe=K.props.displayedValue,je=K.textareaRef.current;xe&&je&&K.setState({scrolledAmount:je.scrollTop})},K}var z=R.prototype;return z.componentDidMount=function(){var K=this,J=this.props.value,se=this.textareaRef.current;se&&(se.value=Lt(J)),(this.props.autoFocus||this.props.autoSelect)&&setTimeout(function(){se.focus(),K.props.autoSelect&&se.select()},1)},z.componentDidUpdate=function(K,J){var se=K.value,ce=this.props.value,xe=this.textareaRef.current;xe&&typeof ce=="string"&&se!==ce&&(xe.value=Lt(ce))},z.setEditing=function(K){this.setState({editing:K})},z.getValue=function(){return this.textareaRef.current&&this.textareaRef.current.value},z.render=function(){var K=this.props,J=K.onChange,se=K.onKeyDown,ce=K.onKeyPress,xe=K.onInput,je=K.onFocus,_e=K.onBlur,Re=K.onEnter,Le=K.value,Se=K.maxLength,Ve=K.placeholder,Ze=K.scrollbar,nt=K.noborder,tt=K.displayedValue,ct=pr(K,["onChange","onKeyDown","onKeyPress","onInput","onFocus","onBlur","onEnter","value","maxLength","placeholder","scrollbar","noborder","displayedValue"]),Et=ct.className,ut=ct.fluid,yt=ct.nowrap,Mt=pr(ct,["className","fluid","nowrap"]),At=this.state.scrolledAmount;return(0,e.jsxs)(p.az,ia({className:(0,j.Ly)(["TextArea",ut&&"TextArea--fluid",nt&&"TextArea--noborder",Et])},Mt,{children:[!!tt&&(0,e.jsx)(p.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",children:(0,e.jsx)("div",{className:(0,j.Ly)(["TextArea__textarea","TextArea__textarea_custom"]),style:{transform:"translateY(-"+At+"px)"},children:tt})}),(0,e.jsx)("textarea",{ref:this.textareaRef,className:(0,j.Ly)(["TextArea__textarea",Ze&&"TextArea__textarea--scrollable",yt&&"TextArea__nowrap"]),placeholder:Ve,onChange:this.handleOnChange,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,onInput:this.handleOnInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onScroll:this.handleScroll,maxLength:Se,style:{color:tt?"rgba(0, 0, 0, 0)":"inherit"}})]}))},R}(n.Component),ai=t(24158);function aa(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&is(T,R)}function is(T,R){return is=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},is(T,R)}var il=function(T){return typeof T=="number"&&Number.isFinite(T)&&!Number.isNaN(T)},al=null;function Pr(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function Mr(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&gr(T,R)}function un(T,R){return R!=null&&typeof Symbol!="undefined"&&R[Symbol.hasInstance]?!!R[Symbol.hasInstance](T):T instanceof R}function gr(T,R){return gr=Object.setPrototypeOf||function(W,K){return W.__proto__=K,W},gr(T,R)}var Ll=null,Nl=function(T){var R=T.children,z=useRef(null),W=useState(1),K=W[0],J=W[1],se=useState(0),ce=se[0],xe=se[1],je=useCallback(function(){var _e=z.current;if(!(!R||!Array.isArray(R)||!_e||K>=R.length)){var Re=document.body.offsetHeight-_e.getBoundingClientRect().bottom,Le=Math.ceil(_e.offsetHeight/K);if(Re>0){var Se=Math.min(R.length,K+Math.max(1,Math.ceil(Re/Le)));J(Se),xe((R.length-Se)*Le)}}},[z,K,J,xe]);return useEffect(function(){je();var _e=setInterval(je,100);return function(){return clearInterval(_e)}},[je]),_jsxs("div",{className:"VirtualList",children:[_jsx("div",{className:"VirtualList__Container",ref:z,children:Array.isArray(R)?R.slice(0,K):null}),_jsx("div",{className:"VirtualList__Padding",style:{paddingBottom:""+ce+"px"}})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/},1568:function(S,y,t){"use strict";t.d(y,{Ai:function(){return e},Fo:function(){return g},KA:function(){return a},KS:function(){return r},NE:function(){return b},b_:function(){return v},bz:function(){return n},lm:function(){return m},wM:function(){return f}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=273.15,a=2,n=1,r=0,o=null,m={department:{captain:"#c06616",security:"#e74c3c",medbay:"#3498db",science:"#9b59b6",engineering:"#f1c40f",cargo:"#f39c12",centcom:"#00c100",other:"#c38312"},manifest:{command:"#3333FF",security:"#8e0000",medical:"#006600",engineering:"#b27300",science:"#a65ba6",cargo:"#bb9040",planetside:"#555555",civilian:"#a32800",miscellaneous:"#666666",silicon:"#222222"},damageType:{oxy:"#3498db",toxin:"#2ecc71",burn:"#e67e22",brute:"#e74c3c"},reagent:{acidicbuffer:"#fbc314",basicbuffer:"#3853a4"}},b=["black","white","red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","good","average","bad","label"],g=[{name:"Mercenary",freq:1213,color:"#6D3F40"},{name:"Raider",freq:1277,color:"#6D3F40"},{name:"Special Ops",freq:1341,color:"#5C5C8A"},{name:"AI Private",freq:1343,color:"#FF00FF"},{name:"Response Team",freq:1345,color:"#5C5C8A"},{name:"Supply",freq:1347,color:"#5F4519"},{name:"Service",freq:1349,color:"#6eaa2c"},{name:"Science",freq:1351,color:"#993399"},{name:"Command",freq:1353,color:"#193A7A"},{name:"Medical",freq:1355,color:"#008160"},{name:"Engineering",freq:1357,color:"#A66300"},{name:"Security",freq:1359,color:"#A30000"},{name:"Explorer",freq:1361,color:"#555555"},{name:"Talon",freq:1363,color:"#555555"},{name:"Common",freq:1459,color:"#008000"},{name:"Entertainment",freq:1461,color:"#339966"},{name:"Security(I)",freq:1475,color:"#008000"},{name:"Medical(I)",freq:1485,color:"#008000"}],d=[{id:"oxygen",name:"Oxygen",label:"O\u2082",color:"blue"},{id:"nitrogen",name:"Nitrogen",label:"N\u2082",color:"green"},{id:"carbon_dioxide",name:"Carbon Dioxide",label:"CO\u2082",color:"grey"},{id:"phoron",name:"Phoron",label:"Phoron",color:"pink"},{id:"volatile_fuel",name:"Volatile Fuel",label:"EXP",color:"teal"},{id:"nitrous_oxide",name:"Nitrous Oxide",label:"N\u2082O",color:"red"},{id:"other",name:"Other",label:"Other",color:"white"},{id:"pressure",name:"Pressure",label:"Pressure",color:"average"},{id:"temperature",name:"Temperature",label:"Temperature",color:"yellow"}],f=function(c,u){if(!c)return u||"None";for(var h=c.toLowerCase(),x=c.replace(/(^\w{1})|(\s+\w{1})/g,function(p){return p.toUpperCase()}),j=0;j<d.length;j++)if(d[j].id===h||d[j].name===x)return d[j].label;return u||"None"},v=function(c){if(!c)return"black";for(var u=c.toLowerCase(),h=c.replace(/(^\w{1})|(\s+\w{1})/g,function(j){return j.toUpperCase()}),x=0;x<d.length;x++)if(d[x].id===u||d[x].name===h)return d[x].color;return"black"},l=function(c){if(c){for(var u=c.toLowerCase(),h=c.replace(/(^\w{1})|(\s+\w{1})/g,function(j){return j.toUpperCase()}),x=0;x<d.length;x++)if(d[x].id===u||d[x].name===h)return d[x]}}},232:function(S,y,t){"use strict";var e=t(40001);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var a=(0,e.VP)("debug/toggleKitchenSink"),n=(0,e.VP)("debug/toggleDebugLayout"),r=(0,e.VP)("debug/openExternalBrowser")},58463:function(S,y,t){"use strict";t.d(y,{BF:function(){return V},C8:function(){return L},MN:function(){return k},nZ:function(){return q},y9:function(){return _}});var e=t(97668),a=t(68554),n=t(47868);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function r(F,Z,oe,le,ue,he,de){try{var ve=F[he](de),pe=ve.value}catch(be){oe(be);return}ve.done?Z(pe):Promise.resolve(pe).then(le,ue)}function o(F){return function(){var Z=this,oe=arguments;return new Promise(function(le,ue){var he=F.apply(Z,oe);function de(pe){r(he,le,ue,de,ve,"next",pe)}function ve(pe){r(he,le,ue,de,ve,"throw",pe)}de(void 0)})}}function m(F,Z){var oe,le,ue,he,de={label:0,sent:function(){if(ue[0]&1)throw ue[1];return ue[1]},trys:[],ops:[]};return he={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function ve(be){return function(ye){return pe([be,ye])}}function pe(be){if(oe)throw new TypeError("Generator is already executing.");for(;de;)try{if(oe=1,le&&(ue=be[0]&2?le.return:be[0]?le.throw||((ue=le.return)&&ue.call(le),0):le.next)&&!(ue=ue.call(le,be[1])).done)return ue;switch(le=0,ue&&(be=[be[0]&2,ue.value]),be[0]){case 0:case 1:ue=be;break;case 4:return de.label++,{value:be[1],done:!1};case 5:de.label++,le=be[1],be=[0];continue;case 7:be=de.ops.pop(),de.trys.pop();continue;default:if(ue=de.trys,!(ue=ue.length>0&&ue[ue.length-1])&&(be[0]===6||be[0]===2)){de=0;continue}if(be[0]===3&&(!ue||be[1]>ue[0]&&be[1]<ue[3])){de.label=be[1];break}if(be[0]===6&&de.label<ue[1]){de.label=ue[1],ue=be;break}if(ue&&de.label<ue[2]){de.label=ue[2],de.ops.push(be);break}ue[2]&&de.ops.pop(),de.trys.pop();continue}be=Z.call(F,de)}catch(ye){be=[6,ye],le=0}finally{oe=ue=0}if(be[0]&5)throw be[1];return{value:be[0]?be[1]:void 0,done:!0}}}var b=(0,n.h)("drag"),g,d=(g=window.devicePixelRatio)!=null?g:1,f=Byond.windowId,v=!1,l=!1,c=[0,0],u,h,x,j,p,_=function(F){f=F},E=function(){return[window.screenLeft*d,window.screenTop*d]},I=function(){return[window.innerWidth*d,window.innerHeight*d]},O=function(F){var Z=(0,a.CO)(F,c);return Byond.winset(Byond.windowId,{pos:Z[0]+","+Z[1]})},M=function(F){return Byond.winset(Byond.windowId,{size:F[0]+"x"+F[1]})},D=function(){return[0-c[0],0-c[1]]},A=function(){return[window.screen.availWidth*d,window.screen.availHeight*d]},B=function(F,Z,oe){oe===void 0&&(oe=50);for(var le=[Z],ue,he=0;he<F.length;he++){var de=F[he];de!==Z&&(le.length<oe?le.push(de):ue=de)}return[le,ue]},U=o(function(){var F,Z,oe,le;return m(this,function(ue){switch(ue.label){case 0:return b.log("storing geometry"),F={pos:E(),size:I()},e.IG.set(f,F),[4,e.IG.get("geometries")];case 1:return Z=B.apply(void 0,[ue.sent()||[],f]),oe=Z[0],le=Z[1],le&&e.IG.remove(le),e.IG.set("geometries",oe),[2]}})}),L=o(function(F){var Z,oe,le,ue,he;return m(this,function(de){switch(de.label){case 0:return F===void 0&&(F={}),oe=F.fancy,oe?[4,e.IG.get(f)]:[3,2];case 1:oe=de.sent(),de.label=2;case 2:return Z=oe,Z&&b.log("recalled geometry:",Z),le=(Z==null?void 0:Z.pos)||F.pos,ue=F.size,ue&&(ue=[ue[0]*d,ue[1]*d]),[4,u];case 3:return de.sent(),he=A(),ue&&(ue=[Math.min(he[0],ue[0]),Math.min(he[1],ue[1])],M(ue)),le?(ue&&F.locked&&(le=Y(le,ue)[1]),O(le)):ue&&(le=(0,a.CO)((0,a.Xd)(he,.5),(0,a.Xd)(ue,-.5),(0,a.Xd)(c,-1)),O(le)),[2]}})}),k=o(function(){var F;return m(this,function(Z){switch(Z.label){case 0:return F=E(),u=Byond.winget(Byond.windowId,"pos").then(function(oe){return[oe.x-F[0],oe.y-F[1]]}),[4,u];case 1:return c=Z.sent(),b.debug("screen offset",c),[2]}})}),Y=function(F,Z){for(var oe=D(),le=A(),ue=[F[0],F[1]],he=!1,de=0;de<2;de++){var ve=oe[de],pe=oe[de]+le[de];F[de]<ve?(ue[de]=ve,he=!0):F[de]+Z[de]>pe&&(ue[de]=pe-Z[de],he=!0)}return[he,ue]},V=function(F){var Z;b.log("drag start"),v=!0,h=(0,a.Z4)([F.screenX,F.screenY],E()),(Z=F.target)==null||Z.focus(),document.addEventListener("mousemove",N),document.addEventListener("mouseup",H),N(F)},H=function(F){b.log("drag end"),N(F),document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",H),v=!1,U()},N=function(F){v&&(F.preventDefault(),O((0,a.Z4)([F.screenX,F.screenY],h)))},q=function(F,Z){return function(oe){var le;x=[F,Z],b.log("resize start",x),l=!0,h=(0,a.Z4)([oe.screenX,oe.screenY],E()),j=I(),(le=oe.target)==null||le.focus(),document.addEventListener("mousemove",Q),document.addEventListener("mouseup",G),Q(oe)}},G=function(F){b.log("resize end",p),Q(F),document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",G),l=!1,U()},Q=function(F){if(l){F.preventDefault();var Z=(0,a.Z4)([F.screenX,F.screenY],E()),oe=(0,a.Z4)(Z,h);p=(0,a.CO)(j,(0,a.tk)(x,oe),[1,1]),p[0]=Math.max(p[0],150*d),p[1]=Math.max(p[1],50*d),M(p)}}},80116:function(S,y,t){"use strict";t.d(y,{Nh:function(){return n},WK:function(){return j},tk:function(){return x},y4:function(){return o}});var e=t(80324),a=t(61652);/**
* Normalized browser focus events and BYOND-specific focus helpers.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var n=new e.b,r=!1,o=function(I){I===void 0&&(I={}),r=!!I.ignoreWindowFocus},m,b=!0,g=function(I,O){if(r){b=!0;return}if(m&&(clearTimeout(m),m=null),O){m=setTimeout(function(){return g(I)});return}b!==I&&(b=I,n.emit(I?"window-focus":"window-blur"),n.emit("window-focus-change",I))},d=null,f=function(I){var O=String(I.tagName).toLowerCase();return O==="input"||O==="textarea"},v=function(I){l(),d=I,d.addEventListener("blur",l)},l=function(){d&&(d.removeEventListener("blur",l),d=null)},c=null,u=null,h=[],x=function(I){h.push(I)},j=function(I){var O=h.indexOf(I);O>=0&&h.splice(O,1)},p=function(I){if(!(d||!b))for(var O=document.body;I&&I!==O;){if(h.includes(I)){if(I.contains(c))return;c=I,I.focus();return}I=I.parentElement}};window.addEventListener("mousemove",function(I){var O=I.target;O!==u&&(u=O,p(O))}),window.addEventListener("focusin",function(I){u=null,c=I.target,g(!0),f(I.target)&&v(I.target)}),window.addEventListener("focusout",function(I){u=null,g(!1,!0)}),window.addEventListener("blur",function(I){u=null,g(!1,!0)}),window.addEventListener("beforeunload",function(I){g(!1)});var _={},E=function(){"use strict";function I(M,D,A){this.event=M,this.type=D,this.code=M.keyCode,this.ctrl=M.ctrlKey,this.shift=M.shiftKey,this.alt=M.altKey,this.repeat=!!A}var O=I.prototype;return O.hasModifierKeys=function(){return this.ctrl||this.alt||this.shift},O.isModifierKey=function(){return this.code===a.Ss||this.code===a.re||this.code===a.cH},O.isDown=function(){return this.type==="keydown"},O.isUp=function(){return this.type==="keyup"},O.toString=function(){return this._str?this._str:(this._str="",this.ctrl&&(this._str+="Ctrl+"),this.alt&&(this._str+="Alt+"),this.shift&&(this._str+="Shift+"),this.code>=48&&this.code<=90?this._str+=String.fromCharCode(this.code):this.code>=a.sV&&this.code<=a.Yw?this._str+="F"+(this.code-111):this._str+="["+this.code+"]",this._str)},I}();document.addEventListener("keydown",function(I){if(!f(I.target)){var O=I.keyCode,M=new E(I,"keydown",_[O]);n.emit("keydown",M),n.emit("key",M),_[O]=!0}}),document.addEventListener("keyup",function(I){if(!f(I.target)){var O=I.keyCode,M=new E(I,"keyup");n.emit("keyup",M),n.emit("key",M),_[O]=!1}})},46989:function(S,y,t){"use strict";t.d(y,{$:function(){return e}});/**
* Various focus helpers.
*
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=function(){Byond.winset("mapwindow.map",{focus:!0})},a=function(){Byond.winset(Byond.windowId,{focus:!0})}},24158:function(S,y,t){"use strict";t.d(y,{QL:function(){return n},d5:function(){return r},fU:function(){return d},qQ:function(){return f},up:function(){return o}});/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var e=["f","p","n","\u03BC","m"," ","k","M","G","T","P","E","Z","Y","R","Q","F","N","H"],a=e.indexOf(" "),n=function(v,l,c){if(l===void 0&&(l=-a),c===void 0&&(c=""),!isFinite(v))return v.toString();var u=Math.floor(Math.log10(Math.abs(v))),h=Math.max(l*3,u),x=Math.floor(h/3),j=e[Math.min(x+a,e.length-1)],p=v/Math.pow(1e3,x),_=p.toFixed(2);return _.endsWith(".00")?_=_.slice(0,-3):_.endsWith(".0")&&(_=_.slice(0,-2)),(_+" "+j.trim()+c).trim()},r=function(v,l){return l===void 0&&(l=0),n(v,l,"W")},o=function(v,l){if(l===void 0&&(l=0),!Number.isFinite(v))return String(v);var c=Number(v.toFixed(l)),u=c<0,h=Math.abs(c),x=h.toString().split(".");x[0]=x[0].replace(/\B(?=(\d{3})+(?!\d))/g,"\u2009");var j=x.join(".");return u?"-"+j:j},m=function(v){var l=20*Math.log10(v),c=l>=0?"+":"-",u=Math.abs(l);return u===1/0?u="Inf":u=u.toFixed(2),""+c+u+" dB"},b=null,g=function(v,l,c){if(l===void 0&&(l=0),c===void 0&&(c=""),!isFinite(v))return"NaN";var u=Math.floor(Math.log10(v)),h=Math.max(l*3,u),x=Math.floor(h/3),j=b[x],p=v/Math.pow(1e3,x),_=Math.max(0,2-h%3),E=p.toFixed(_);return(E+" "+j+" "+c).trim()},d=function(v,l){l===void 0&&(l="default");var c=Math.floor(v/10),u=Math.floor(c/3600),h=Math.floor(c%3600/60),x=c%60;if(l==="short"){var j=u>0?""+u+"h":"",p=h>0?""+h+"m":"",_=x>0?""+x+"s":"";return""+j+p+_}var E=String(u).padStart(2,"0"),I=String(h).padStart(2,"0"),O=String(x).padStart(2,"0");return E+":"+I+":"+O},f=function(v){if(!Number.isFinite(v))return v;var l=v.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")}},5030:function(S,y,t){"use strict";t.d(y,{Bm:function(){return j}});var e=t(61652),a=t(80116),n=t(47868);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function r(_,E){(E==null||E>_.length)&&(E=_.length);for(var I=0,O=new Array(E);I<E;I++)O[I]=_[I];return O}function o(_,E){if(_){if(typeof _=="string")return r(_,E);var I=Object.prototype.toString.call(_).slice(8,-1);if(I==="Object"&&_.constructor&&(I=_.constructor.name),I==="Map"||I==="Set")return Array.from(I);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return r(_,E)}}function m(_,E){var I=typeof Symbol!="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(I)return(I=I.call(_)).next.bind(I);if(Array.isArray(_)||(I=o(_))||E&&_&&typeof _.length=="number"){I&&(_=I);var O=0;return function(){return O>=_.length?{done:!0}:{done:!1,value:_[O++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var b=(0,n.h)("hotkeys"),g={},d=[e.s6,e.Ri,e.iy,e.aW,e.Ss,e.re,e.gf,e.R,e.iU,e.zh,e.sP],f={},v=[],l=function(_){if(_===16)return"Shift";if(_===17)return"Ctrl";if(_===18)return"Alt";if(_===33)return"Northeast";if(_===34)return"Southeast";if(_===35)return"Southwest";if(_===36)return"Northwest";if(_===37)return"West";if(_===38)return"North";if(_===39)return"East";if(_===40)return"South";if(_===45)return"Insert";if(_===46)return"Delete";if(_>=48&&_<=57||_>=65&&_<=90)return String.fromCharCode(_);if(_>=96&&_<=105)return"Numpad"+(_-96);if(_>=112&&_<=123)return"F"+(_-111);if(_===188)return",";if(_===189)return"-";if(_===190)return"."},c=function(_){var E=String(_);if(E==="Ctrl+F5"||E==="Ctrl+R"){location.reload();return}if(E!=="Ctrl+F"&&!(_.event.defaultPrevented||_.isModifierKey()||d.includes(_.code))){var I=l(_.code);if(I){var O=g[I];if(O)return b.debug("macro",O),Byond.command(O);if(_.isDown()&&!f[I]){f[I]=!0;var M='KeyDown "'+I+'"';return b.debug(M),Byond.command(M)}if(_.isUp()&&f[I]){f[I]=!1;var D='KeyUp "'+I+'"';return b.debug(D),Byond.command(D)}}}},u=function(_){d.push(_)},h=function(_){var E=d.indexOf(_);E>=0&&d.splice(E,1)},x=function(){for(var _=m(Object.keys(f)),E;!(E=_()).done;){var I=E.value;f[I]&&(f[I]=!1,b.log('releasing key "'+I+'"'),Byond.command('KeyUp "'+I+'"'))}},j=function(){Byond.winget("default.*").then(function(_){for(var E={},I=m(Object.keys(_)),O;!(O=I()).done;){var M=O.value,D=M.split("."),A=D[1],B=D[2];A&&B&&(E[A]||(E[A]={}),E[A][B]=_[M])}for(var U=/\\"/g,L=function(q){return q.substring(1,q.length-1).replace(U,'"')},k=m(Object.keys(E)),Y;!(Y=k()).done;){var V=Y.value,H=E[V],N=L(H.name);g[N]=L(H.command)}b.debug("loaded macros",g)}),a.Nh.on("window-blur",function(){x()}),a.Nh.on("key",function(_){for(var E=m(v),I;!(I=E()).done;){var O=I.value;O(_)}c(_)})},p=function(_){v.push(_);var E=!1;return function(){E||(E=!0,v.splice(v.indexOf(_),1))}}},15454:function(S,y,t){"use strict";t.r(y),t.d(y,{AICard:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.has_ai,v=d.integrity,l=d.backup_capacitor,c=d.flushing,u=d.has_laws,h=d.laws,x=d.wireless,j=d.radio;if(f===0)return(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Stored AI",children:(0,e.jsx)(n.az,{children:(0,e.jsx)("h3",{children:"No AI detected."})})})})});var p=null;v>=75?p="green":v>=25?p="yellow":p="red";var _=null;return l>=75&&(_="green"),l>=25?_="yellow":_="red",(0,e.jsx)(r.p8,{width:600,height:470,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Stored AI",children:[(0,e.jsx)(n.az,{bold:!0,display:"inline-block",children:(0,e.jsx)("h3",{children:name})}),(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:p,value:v/100})}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.z2,{color:_,value:l/100})})]})}),(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h2",{children:c===1?"Wipe of AI in progress...":""})})]}),(0,e.jsx)(n.wn,{title:"Laws",children:!!u&&(0,e.jsx)(n.az,{children:h.map(function(E,I){return(0,e.jsx)(n.az,{display:"inline-block",children:E},I)})})||(0,e.jsx)(n.az,{color:"red",children:(0,e.jsx)("h3",{children:"No laws detected."})})}),(0,e.jsx)(n.wn,{title:"Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Wireless Activity",children:(0,e.jsx)(n.$n,{icon:x?"check":"times",content:x?"Enabled":"Disabled",color:x?"green":"red",onClick:function(){return g("wireless")}})}),(0,e.jsx)(n.Ki.Item,{label:"Subspace Transceiver",children:(0,e.jsx)(n.$n,{icon:j?"check":"times",content:j?"Enabled":"Disabled",color:j?"green":"red",onClick:function(){return g("radio")}})}),(0,e.jsx)(n.Ki.Item,{label:"AI Power",children:(0,e.jsx)(n.$n.Confirm,{icon:"radiation",confirmIcon:"radiation",disabled:c||v===0,confirmColor:"red",content:"Shutdown",onClick:function(){return g("wipe")}})})]})})]})})}},85866:function(S,y,t){"use strict";t.r(y),t.d(y,{APC:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(13221),m=t(15665),b=function(c){var u=(0,a.Oc)(),h=u.act,x=u.data,j=(0,e.jsx)(f,{});return x.gridCheck?j=(0,e.jsx)(v,{}):x.failTime&&(j=(0,e.jsx)(l,{})),(0,e.jsx)(r.p8,{width:450,height:475,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:j})})},g={2:{color:"good",externalPowerText:"External Power",chargingText:"Fully Charged"},1:{color:"average",externalPowerText:"Low External Power",chargingText:"Charging"},0:{color:"bad",externalPowerText:"No External Power",chargingText:"Not Charging"}},d={1:{icon:"terminal",content:"Override Programming",action:"hack"}},f=function(c){var u=(0,a.Oc)(),h=u.act,x=u.data,j=x.locked&&!x.siliconUser,p=x.normallyLocked,_=g[x.externalPower]||g[0],E=g[x.chargingStatus]||g[0],I=x.powerChannels||[],O=x.powerCellStatus/100;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.InterfaceLockNoticeBox,{deny:x.emagged,denialMessage:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",fontSize:"1.5rem",children:"Fault in ID authenticator."}),(0,e.jsx)(n.az,{color:"bad",children:"Please contact maintenance for service."})]})}),(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main Breaker",color:_.color,buttons:(0,e.jsx)(n.$n,{icon:x.isOperating?"power-off":"times",content:x.isOperating?"On":"Off",selected:x.isOperating&&!j,color:x.isOperating?"":"bad",disabled:j,onClick:function(){return h("breaker")}}),children:["[ ",_.externalPowerText," ]"]}),(0,e.jsx)(n.Ki.Item,{label:"Power Cell",children:(0,e.jsx)(n.z2,{color:"good",value:O})}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",color:E.color,buttons:(0,e.jsx)(n.$n,{icon:x.chargeMode?"sync":"times",content:x.chargeMode?"Auto":"Off",selected:x.chargeMode,disabled:j,onClick:function(){return h("charge")}}),children:["[ ",E.chargingText," ]"]})]})}),(0,e.jsx)(n.wn,{title:"Power Channels",children:(0,e.jsxs)(n.Ki,{children:[I.map(function(M){var D=M.topicParams;return(0,e.jsxs)(n.Ki.Item,{label:M.title,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{inline:!0,mx:2,color:M.status>=2?"good":"bad",children:M.status>=2?"On":"Off"}),(0,e.jsx)(n.$n,{icon:"sync",content:"Auto",selected:!j&&(M.status===1||M.status===3),disabled:j,onClick:function(){return h("channel",D.auto)}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"On",selected:!j&&M.status===2,disabled:j,onClick:function(){return h("channel",D.on)}}),(0,e.jsx)(n.$n,{icon:"times",content:"Off",selected:!j&&M.status===0,disabled:j,onClick:function(){return h("channel",D.off)}})]}),children:[M.powerLoad," W"]},M.title)}),(0,e.jsx)(n.Ki.Item,{label:"Total Load",children:x.totalCharging?(0,e.jsxs)("b",{children:[x.totalLoad," W (+ ",x.totalCharging," W charging)"]}):(0,e.jsxs)("b",{children:[x.totalLoad," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Misc",buttons:!!x.siliconUser&&(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Overload",onClick:function(){return h("overload")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cover Lock",buttons:(0,e.jsx)(n.$n,{icon:x.coverLocked?"lock":"unlock",content:x.coverLocked?"Engaged":"Disengaged",selected:x.coverLocked,disabled:j,onClick:function(){return h("cover")}})}),(0,e.jsx)(n.Ki.Item,{label:"Night Shift Lighting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Disabled",selected:x.nightshiftSetting===2,onClick:function(){return h("nightshift",{nightshift:2})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Automatic",selected:x.nightshiftSetting===1,onClick:function(){return h("nightshift",{nightshift:1})}}),(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:"Enabled",selected:x.nightshiftSetting===3,onClick:function(){return h("nightshift",{nightshift:3})}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Emergency Lighting",buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",content:x.emergencyLights?"Enabled":"Disabled",selected:x.emergencyLights,onClick:function(){return h("emergency_lighting")}})})]})})]})},v=function(c){return(0,e.jsxs)(o.FullscreenNotice,{title:"System Failure",children:[(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(n.az,{fontSize:"1.5rem",bold:!0,children:"Power surge detected, grid check in effect..."})]})},l=function(c){var u=(0,a.Oc)(),h=u.data,x=u.act,j=(0,e.jsx)(n.$n,{icon:"repeat",content:"Restart Now",color:"good",onClick:function(){return x("reboot")}});return h.locked&&!h.siliconUser&&(j=(0,e.jsx)(n.az,{color:"bad",children:"Swipe an ID card for manual reboot."})),(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.az,{color:"bad",children:(0,e.jsx)("h1",{children:"SYSTEM FAILURE"})}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsx)("h2",{children:"I/O regulators malfunction detected! Waiting for system reboot..."})}),(0,e.jsxs)(n.az,{color:"good",children:["Automatic reboot in ",h.failTime," seconds..."]}),(0,e.jsx)(n.az,{mt:4,children:j})]})}},95054:function(S,y,t){"use strict";t.r(y),t.d(y,{AccountsTerminal:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.id_inserted,h=c.id_card,x=c.access_level,j=c.machine_id;return(0,e.jsx)(r.p8,{width:400,height:640,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Machine",color:"average",children:j}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:u?"eject":"sign-in-alt",fluid:!0,content:h,onClick:function(){return l("insert_card")}})})]})}),x>0&&(0,e.jsx)(m,{})]})})},m=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.creating_new_account,h=c.detailed_account_view;return(0,e.jsxs)(n.wn,{title:"Menu",children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:!u&&!h,icon:"home",onClick:function(){return l("view_accounts_list")},children:"Home"}),(0,e.jsx)(n.tU.Tab,{selected:u,icon:"cog",onClick:function(){return l("create_account")},children:"New Account"}),(0,e.jsx)(n.tU.Tab,{disabled:u,icon:"print",onClick:function(){return l("print")},children:"Print"})]}),u&&(0,e.jsx)(b,{})||h&&(0,e.jsx)(g,{})||(0,e.jsx)(d,{})]})},b=function(f){var v=(0,a.Oc)().act,l=(0,a.QY)("holder",""),c=l[0],u=l[1],h=(0,a.QY)("money",""),x=h[0],j=h[1];return(0,e.jsxs)(n.wn,{title:"Create Account",level:2,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Holder",children:(0,e.jsx)(n.pd,{value:c,fluid:!0,onInput:function(p,_){return u(_)}})}),(0,e.jsx)(n.Ki.Item,{label:"Initial Deposit",children:(0,e.jsx)(n.pd,{value:x,fluid:!0,onInput:function(p,_){return j(_)}})})]}),(0,e.jsx)(n.$n,{disabled:!c||!x,mt:1,fluid:!0,icon:"plus",onClick:function(){return v("finalise_create_account",{holder_name:c,starting_funds:x})},content:"Create"})]})},g=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.access_level,h=c.station_account_number,x=c.account_number,j=c.owner_name,p=c.money,_=c.suspended,E=c.transactions;return(0,e.jsxs)(n.wn,{title:"Account Details",level:2,buttons:(0,e.jsx)(n.$n,{icon:"ban",selected:_,content:"Suspend",onClick:function(){return l("toggle_suspension")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Account Number",children:["#",x]}),(0,e.jsx)(n.Ki.Item,{label:"Holder",children:j}),(0,e.jsxs)(n.Ki.Item,{label:"Balance",children:[p,"\u20AE"]}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:_?"bad":"good",children:_?"SUSPENDED":"Active"})]}),(0,e.jsx)(n.wn,{title:"CentCom Administrator",level:2,mt:1,children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payroll",children:(0,e.jsx)(n.$n.Confirm,{color:"bad",fluid:!0,icon:"ban",confirmIcon:"ban",content:"Revoke",confirmContent:"This cannot be undone.",disabled:x===h,onClick:function(){return l("revoke_payroll")}})})})}),u>=2&&(0,e.jsxs)(n.wn,{title:"Silent Funds Transfer",level:2,children:[(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return l("add_funds")},content:"Add Funds"}),(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return l("remove_funds")},content:"Remove Funds"})]}),(0,e.jsx)(n.wn,{title:"Transactions",level:2,mt:1,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Timestamp"}),(0,e.jsx)(n.XI.Cell,{children:"Target"}),(0,e.jsx)(n.XI.Cell,{children:"Reason"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Terminal"})]}),E.map(function(I,O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{children:[I.date," ",I.time]}),(0,e.jsx)(n.XI.Cell,{children:I.target_name}),(0,e.jsx)(n.XI.Cell,{children:I.purpose}),(0,e.jsxs)(n.XI.Cell,{children:[I.amount,"\u20AE"]}),(0,e.jsx)(n.XI.Cell,{children:I.source_terminal})]},O)})]})})]})},d=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.accounts;return(0,e.jsx)(n.wn,{title:"NanoTrasen Accounts",level:2,children:u.length&&(0,e.jsx)(n.Ki,{children:u.map(function(h){return(0,e.jsx)(n.Ki.Item,{label:h.owner_name+h.suspended,color:h.suspended?"bad":null,children:(0,e.jsx)(n.$n,{fluid:!0,content:"#"+h.account_number,onClick:function(){return l("view_account_detail",{account_index:h.account_index})}})},h.account_index)})})||(0,e.jsx)(n.az,{color:"bad",children:"There are no accounts available."})})}},12704:function(S,y,t){"use strict";t.r(y),t.d(y,{AdminShuttleController:function(){return m},ShuttleList:function(){return b}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(){return(0,e.jsx)(o.p8,{width:600,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(b,{})})})},b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.shuttles,u=l.overmap_ships;return(0,e.jsxs)(r.wn,{noTopPadding:!0,children:[(0,e.jsx)(r.wn,{title:"Classic Shuttles",children:(0,e.jsx)(r.XI,{children:(0,a.Ul)(function(h){return h.name})(c).map(function(h){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"JMP",onClick:function(){return v("adminobserve",{ref:h.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{m:0,content:"Fly",onClick:function(){return v("classicmove",{ref:h.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:h.name}),(0,e.jsx)(r.XI.Cell,{children:h.current_location}),(0,e.jsx)(r.XI.Cell,{children:g(h.status)})]},h.ref)})})}),(0,e.jsx)(r.wn,{title:"Overmap Ships",children:(0,e.jsx)(r.XI,{children:(0,a.Ul)(function(h){var x;return((x=h.name)==null?void 0:x.toLowerCase())||h.name||h.ref})(u).map(function(h){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"JMP",onClick:function(){return v("adminobserve",{ref:h.ref})}})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{content:"Control",onClick:function(){return v("overmap_control",{ref:h.ref})}})}),(0,e.jsx)(r.XI.Cell,{children:h.name})]},h.ref)})})})]})},g=function(d){switch(d){case 0:return"Idle";case 1:return"Warmup";case 2:return"Transit";default:return"UNK"}}},61633:function(S,y,t){"use strict";t.r(y),t.d(y,{AdminTicketPanel:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.id,l=f.title,c=f.name,u=f.state,h=f.opened_at,x=f.closed_at,j=f.opened_at_date,p=f.closed_at_date,_=f.actions,E=f.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return d("retitle")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return d("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Admin Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:o[u]}),o[u]===o.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[j," (",Math.round(h/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[p," (",Math.round(x/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return d("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(E).map(function(I,O){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E[I]}},O)})})]})})})})}},43587:function(S,y,t){"use strict";t.r(y),t.d(y,{AgentCard:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.entries,v=d.electronic_warfare;return(0,e.jsx)(r.p8,{width:550,height:400,theme:"syndicate",children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Info",children:(0,e.jsx)(n.XI,{children:f.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{onClick:function(){return g(l.name.toLowerCase().replace(/ /g,""))},icon:"cog"})}),(0,e.jsx)(n.XI.Cell,{children:l.name}),(0,e.jsx)(n.XI.Cell,{children:l.value})]},l.name)})})}),(0,e.jsx)(n.wn,{title:"Electronic Warfare",children:(0,e.jsx)(n.$n.Checkbox,{checked:v,content:v?"Electronic warfare is enabled. This will prevent you from being tracked by the AI.":"Electronic warfare disabled.",onClick:function(){return g("electronic_warfare")}})})]})})}},56307:function(S,y,t){"use strict";t.r(y),t.d(y,{AiAirlock:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={2:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},0:{color:"bad",localStatusText:"Offline"}},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=o[f.power.main]||o[0],l=o[f.power.backup]||o[0],c=o[f.shock]||o[0];return(0,e.jsx)(r.p8,{width:500,height:390,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Power Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Main",color:v.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!f.power.main,content:"Disrupt",onClick:function(){return d("disrupt-main")}}),children:[f.power.main?"Online":"Offline"," ",(!f.wires.main_1||!f.wires.main_2)&&"[Wires have been cut!]"||f.power.main_timeleft>0&&"["+f.power.main_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Backup",color:l.color,buttons:(0,e.jsx)(n.$n,{icon:"lightbulb-o",disabled:!f.power.backup,content:"Disrupt",onClick:function(){return d("disrupt-backup")}}),children:[f.power.backup?"Online":"Offline"," ",(!f.wires.backup_1||!f.wires.backup_2)&&"[Wires have been cut!]"||f.power.backup_timeleft>0&&"["+f.power.backup_timeleft+"s]"]}),(0,e.jsxs)(n.Ki.Item,{label:"Electrify",color:c.color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"wrench",disabled:!(f.wires.shock&&f.shock===0),content:"Restore",onClick:function(){return d("shock-restore")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!f.wires.shock,content:"Temporary",onClick:function(){return d("shock-temp")}}),(0,e.jsx)(n.$n,{icon:"bolt",disabled:!f.wires.shock,content:"Permanent",onClick:function(){return d("shock-perm")}})]}),children:[f.shock===2?"Safe":"Electrified"," ",!f.wires.shock&&"[Wires have been cut!]"||f.shock_timeleft>0&&"["+f.shock_timeleft+"s]"||f.shock_timeleft===-1&&"[Permanent]"]})]})}),(0,e.jsx)(n.wn,{title:"Access and Door Control",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID Scan",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.id_scanner?"power-off":"times",content:f.id_scanner?"Enabled":"Disabled",selected:f.id_scanner,disabled:!f.wires.id_scanner,onClick:function(){return d("idscan-toggle")}}),children:!f.wires.id_scanner&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolts",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.locked?"lock":"unlock",content:f.locked?"Lowered":"Raised",selected:f.locked,disabled:!f.wires.bolts,onClick:function(){return d("bolt-toggle")}}),children:!f.wires.bolts&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Bolt Lights",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.lights?"power-off":"times",content:f.lights?"Enabled":"Disabled",selected:f.lights,disabled:!f.wires.lights,onClick:function(){return d("light-toggle")}}),children:!f.wires.lights&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Force Sensors",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.safe?"power-off":"times",content:f.safe?"Enabled":"Disabled",selected:f.safe,disabled:!f.wires.safe,onClick:function(){return d("safe-toggle")}}),children:!f.wires.safe&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Item,{label:"Door Timing Safety",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.speed?"power-off":"times",content:f.speed?"Enabled":"Disabled",selected:f.speed,disabled:!f.wires.timing,onClick:function(){return d("speed-toggle")}}),children:!f.wires.timing&&"[Wires have been cut!]"}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Door Control",color:"bad",buttons:(0,e.jsx)(n.$n,{icon:f.opened?"sign-out-alt":"sign-in-alt",content:f.opened?"Open":"Closed",selected:f.opened,disabled:f.locked||f.welded,onClick:function(){return d("open-close")}}),children:!!(f.locked||f.welded)&&(0,e.jsxs)("span",{children:["[Door is ",f.locked?"bolted":"",f.locked&&f.welded?" and ":"",f.welded?"welded":"","!]"]})})]})})]})})}},43108:function(S,y,t){"use strict";t.r(y),t.d(y,{AiRestorer:function(){return o},AiRestorerContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:370,height:360,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.AI_present,l=f.error,c=f.name,u=f.laws,h=f.isDead,x=f.restoring,j=f.health,p=f.ejectable;return(0,e.jsxs)(e.Fragment,{children:[l&&(0,e.jsx)(n.IC,{textAlign:"center",children:l}),!!p&&(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:v?c:"----------",disabled:!v,onClick:function(){return d("PRG_eject")}}),!!v&&(0,e.jsxs)(n.wn,{title:p?"System Status":c,buttons:(0,e.jsx)(n.az,{inline:!0,bold:!0,color:h?"bad":"good",children:h?"Nonfunctional":"Functional"}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{value:j,minValue:0,maxValue:100,ranges:{good:[70,1/0],average:[50,70],bad:[-1/0,50]}})})}),!!x&&(0,e.jsx)(n.az,{bold:!0,textAlign:"center",fontSize:"20px",color:"good",mt:1,children:"RECONSTRUCTION IN PROGRESS"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",content:"Begin Reconstruction",disabled:x,mt:1,onClick:function(){return d("PRG_beginReconstruction")}}),(0,e.jsx)(n.wn,{title:"Laws",level:2,children:u.map(function(_){return(0,e.jsx)(n.az,{className:"candystripe",children:_},_)})})]})]})}},75160:function(S,y,t){"use strict";t.r(y),t.d(y,{AiSupermatter:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(13221),m=function(d){var f=(0,a.Oc)().data,v=f.integrity_percentage,l=f.ambient_temp,c=f.ambient_pressure,u=f.detonating,h=(0,e.jsx)(g,{});return u&&(h=(0,e.jsx)(b,{})),(0,e.jsx)(r.p8,{width:500,height:300,children:(0,e.jsx)(r.p8.Content,{children:h})})},b=function(d){return(0,e.jsx)(o.FullscreenNotice,{title:"DETONATION IMMINENT",children:(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{color:"bad",name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)(n.az,{color:"bad",children:"CRYSTAL DELAMINATING"}),(0,e.jsx)(n.az,{color:"bad",children:"Evacuate area immediately"})]})})},g=function(d){var f=(0,a.Oc)().data,v=f.integrity_percentage,l=f.ambient_temp,c=f.ambient_pressure;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Crystal Integrity",children:(0,e.jsx)(n.z2,{value:v,maxValue:100,ranges:{good:[90,1/0],average:[25,90],bad:[-1/0,25]}})}),(0,e.jsx)(n.Ki.Item,{label:"Environment Temperature",children:(0,e.jsxs)(n.z2,{value:l,maxValue:1e4,ranges:{bad:[5e3,1/0],average:[4e3,5e3],good:[-1/0,4e3]},children:[l," K"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Environment Pressure",children:[c," kPa"]})]})})}},42537:function(S,y,t){"use strict";t.r(y),t.d(y,{AirAlarm:function(){return f}});var e=t(88095),a=t(5229),n=t(44583),r=t(4413),o=t(92514),m=t(1568),b=t(84905),g=t(10652),d=t(15665),f=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.locked&&!M.siliconUser&&!M.remoteUser;return(0,e.jsx)(b.p8,{width:440,height:650,children:(0,e.jsxs)(b.p8.Content,{scrollable:!0,children:[(0,e.jsx)(d.InterfaceLockNoticeBox,{}),(0,e.jsx)(v,{}),(0,e.jsx)(l,{}),!D&&(0,e.jsx)(u,{})]})})},v=function(E){var I=(0,r.Oc)().data,O=(I.environment_data||[]).filter(function(A){return A.value>=.01}),M={0:{color:"good",localStatusText:"Optimal"},1:{color:"average",localStatusText:"Caution"},2:{color:"bad",localStatusText:"Danger (Internals Required)"}},D=M[I.danger_level]||M[0];return(0,e.jsx)(o.wn,{title:"Air Status",children:(0,e.jsxs)(o.Ki,{children:[O.length>0&&(0,e.jsxs)(e.Fragment,{children:[O.map(function(A){var B=M[A.danger_level]||M[0];return(0,e.jsxs)(o.Ki.Item,{label:(0,m.wM)(A.name),color:B.color,children:[(0,a.Mg)(A.value,2),A.unit]},A.name)}),(0,e.jsx)(o.Ki.Item,{label:"Local status",color:D.color,children:D.localStatusText}),(0,e.jsx)(o.Ki.Item,{label:"Area status",color:I.atmos_alarm||I.fire_alarm?"bad":"good",children:I.atmos_alarm&&"Atmosphere Alarm"||I.fire_alarm&&"Fire Alarm"||"Nominal"})]})||(0,e.jsx)(o.Ki.Item,{label:"Warning",color:"bad",children:"Cannot obtain air sample for analysis."}),!!I.emagged&&(0,e.jsx)(o.Ki.Item,{label:"Warning",color:"bad",children:"Safety measures offline. Device may exhibit abnormal behavior."})]})})},l=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.target_temperature,A=M.rcon;return(0,e.jsx)(o.wn,{title:"Comfort Settings",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Remote Control",children:[(0,e.jsx)(o.$n,{selected:A===1,content:"Off",onClick:function(){return O("rcon",{rcon:1})}}),(0,e.jsx)(o.$n,{selected:A===2,content:"Auto",onClick:function(){return O("rcon",{rcon:2})}}),(0,e.jsx)(o.$n,{selected:A===3,content:"On",onClick:function(){return O("rcon",{rcon:3})}})]}),(0,e.jsx)(o.Ki.Item,{label:"Thermostat",children:(0,e.jsx)(o.$n,{content:D,onClick:function(){return O("temperature")}})})]})})},c={home:{title:"Air Controls",component:function(){return h}},vents:{title:"Vent Controls",component:function(){return x}},scrubbers:{title:"Scrubber Controls",component:function(){return j}},modes:{title:"Operating Mode",component:function(){return p}},thresholds:{title:"Alarm Thresholds",component:function(){return _}}},u=function(E){var I=(0,r.Ul)("screen"),O=I[0],M=I[1],D=c[O]||c.home,A=D.component();return(0,e.jsx)(o.wn,{title:D.title,buttons:O&&(0,e.jsx)(o.$n,{icon:"arrow-left",content:"Back",onClick:function(){return M()}}),children:(0,e.jsx)(A,{})})},h=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=(0,r.Ul)("screen"),A=D[0],B=D[1],U=M.mode,L=M.atmos_alarm;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:L?"exclamation-triangle":"exclamation",color:L&&"caution",content:"Area Atmosphere Alarm",onClick:function(){return O(L?"reset":"alarm")}}),(0,e.jsx)(o.az,{mt:1}),(0,e.jsx)(o.$n,{icon:U===3?"exclamation-triangle":"exclamation",color:U===3&&"danger",content:"Panic Siphon",onClick:function(){return O("mode",{mode:U===3?1:3})}}),(0,e.jsx)(o.az,{mt:2}),(0,e.jsx)(o.$n,{icon:"sign-out-alt",content:"Vent Controls",onClick:function(){return B("vents")}}),(0,e.jsx)(o.az,{mt:1}),(0,e.jsx)(o.$n,{icon:"filter",content:"Scrubber Controls",onClick:function(){return B("scrubbers")}}),(0,e.jsx)(o.az,{mt:1}),(0,e.jsx)(o.$n,{icon:"cog",content:"Operating Mode",onClick:function(){return B("modes")}}),(0,e.jsx)(o.az,{mt:1}),(0,e.jsx)(o.$n,{icon:"chart-bar",content:"Alarm Thresholds",onClick:function(){return B("thresholds")}})]})},x=function(E){var I=(0,r.Oc)().data,O=I.vents;return!O||O.length===0?"Nothing to show":O.map(function(M){return(0,e.jsx)(g.Vent,{vent:M},M.id_tag)})},j=function(E){var I=(0,r.Oc)().data,O=I.scrubbers;return!O||O.length===0?"Nothing to show":O.map(function(M){return(0,e.jsx)(g.Scrubber,{scrubber:M},M.id_tag)})},p=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.modes;return!D||D.length===0?"Nothing to show":D.map(function(A){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)(o.$n,{icon:A.selected?"check-square-o":"square-o",selected:A.selected,color:A.selected&&A.danger&&"danger",content:A.name,onClick:function(){return O("mode",{mode:A.mode})}}),(0,e.jsx)(o.az,{mt:1})]},A.mode)})},_=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.thresholds;return(0,e.jsxs)("table",{className:"LabeledList",style:{width:"100%"},children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{}),(0,e.jsx)("td",{className:"color-bad",children:"min2"}),(0,e.jsx)("td",{className:"color-average",children:"min1"}),(0,e.jsx)("td",{className:"color-average",children:"max1"}),(0,e.jsx)("td",{className:"color-bad",children:"max2"})]})}),(0,e.jsx)("tbody",{children:D.map(function(A){return(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{className:"LabeledList__label",children:(0,e.jsx)("span",{className:"color-"+(0,m.b_)(A.name),children:(0,m.wM)(A.name)})}),A.settings.map(function(B){return(0,e.jsx)("td",{children:(0,e.jsx)(o.$n,{content:(0,a.Mg)(B.selected,2),onClick:function(){return O("threshold",{env:B.env,var:B.val})}})},B.val)})]},A.name)})})]})}},63397:function(S,y,t){"use strict";t.r(y),t.d(y,{AlertModal:function(){return f}});var e=t(88095),a=t(44583),n=t(61652),r=t(4413),o=t(92514),m=t(84905),b=t(18513),g=-1,d=1,f=function(c){var u=(0,r.Oc)(),h=u.act,x=u.data,j=x.autofocus,p=x.buttons,_=p===void 0?[]:p,E=x.large_buttons,I=x.message,O=I===void 0?"":I,M=x.timeout,D=x.title,A=(0,a.useState)(0),B=A[0],U=A[1],L=115+(O.length>30?Math.ceil(O.length/4):0)+(O.length&&E?5:0),k=325+(_.length>2?55:0),Y=function(V){B===0&&V===g?U(_.length-1):B===_.length-1&&V===d?U(0):U(B+V)};return(0,e.jsxs)(m.p8,{height:L,title:D,width:k,children:[!!M&&(0,e.jsx)(b.Loader,{value:M}),(0,e.jsx)(m.p8.Content,{onKeyDown:function(V){var H=window.event?V.which:V.keyCode;H===n.iy||H===n.Ri?h("choose",{choice:_[B]}):H===n.s6?h("cancel"):H===n.iU?(V.preventDefault(),Y(g)):(H===n.aW||H===n.zh)&&(V.preventDefault(),Y(d))},children:(0,e.jsx)(o.wn,{fill:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,m:1,children:(0,e.jsx)(o.az,{color:"label",overflow:"hidden",children:O})}),(0,e.jsxs)(o.BJ.Item,{children:[!!j&&(0,e.jsx)(o.y5,{}),(0,e.jsx)(v,{selected:B})]})]})})})]})},v=function(c){var u=(0,r.Oc)().data,h=u.buttons,x=h===void 0?[]:h,j=u.large_buttons,p=u.swapped_buttons,_=c.selected;return(0,e.jsx)(o.so,{align:"center",direction:p?"row":"row-reverse",fill:!0,justify:"space-around",wrap:!0,children:x==null?void 0:x.map(function(E,I){return j&&x.length<3?(0,e.jsx)(o.so.Item,{grow:!0,children:(0,e.jsx)(l,{button:E,id:I.toString(),selected:_===I})},I):(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(l,{button:E,id:I.toString(),selected:_===I})},I)})})},l=function(c){var u=(0,r.Oc)(),h=u.act,x=u.data,j=x.large_buttons,p=c.button,_=c.selected,E=p.length>7?p.length:7;return(0,e.jsx)(o.$n,{fluid:!!j,height:!!j&&2,onClick:function(){return h("choose",{choice:p})},m:.5,pl:2,pr:2,pt:j?.33:0,selected:_,textAlign:"center",width:!j&&E,children:j?p.toUpperCase():p})}},140:function(S,y,t){"use strict";t.r(y),t.d(y,{AlgaeFarm:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.usePower,l=f.materials,c=f.last_flow_rate,u=f.last_power_draw,h=f.inputDir,x=f.outputDir,j=f.input,p=f.output,_=f.errorText;return(0,e.jsx)(o.p8,{width:500,height:300,children:(0,e.jsxs)(o.p8.Content,{children:[_&&(0,e.jsx)(r.IC,{warning:!0,children:(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:_})}),(0,e.jsxs)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:"Processing",selected:v===2,onClick:function(){return d("toggle")}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Flow Rate",children:[c," L/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Power Draw",children:[u," W"]}),(0,e.jsx)(r.Ki.Divider,{size:1}),l.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:(0,a.ZH)(E.display),children:[(0,e.jsxs)(r.z2,{width:"80%",value:E.qty,maxValue:E.max,children:[E.qty,"/",E.max]}),(0,e.jsx)(r.$n,{ml:1,content:"Eject",onClick:function(){return d("ejectMaterial",{mat:E.name})}})]},E.name)})]}),(0,e.jsx)(r.XI,{mt:1,children:(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Input ("+h+")",children:j?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[j.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:j.name,children:[j.percent,"% (",j.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.wn,{title:"Gas Output ("+x+")",children:p?(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Total Pressure",children:[p.pressure," kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:p.name,children:[p.percent,"% (",p.moles," moles)"]})]}):(0,e.jsx)(r.az,{color:"bad",children:"No connection detected."})})})]})})]})]})})}},14600:function(S,y,t){"use strict";t.r(y),t.d(y,{AppearanceChanger:function(){return g}});var e=t(88095),a=t(11358),n=t(33854),r=t(44583),o=t(4413),m=t(92514),b=t(84905),g=function(p){var _=(0,o.Oc)(),E=_.act,I=_.config,O=_.data,M=O.name,D=O.specimen,A=O.gender,B=O.gender_id,U=O.hair_style,L=O.facial_hair_style,k=O.ear_style,Y=O.tail_style,V=O.wing_style,H=O.markings,N=O.change_race,q=O.change_gender,G=O.change_eye_color,Q=O.change_skin_tone,F=O.change_skin_color,Z=O.change_hair_color,oe=O.change_facial_hair_color,le=O.change_hair,ue=O.change_facial_hair,he=O.mapRef,de=I.title,ve=G||Q||F||Z||oe,pe=-1;N?pe=0:q?pe=1:ve?pe=2:le?pe=4:ue&&(pe=5);var be=(0,r.useState)(pe),ye=be[0],Te=be[1];return(0,e.jsx)(b.p8,{width:700,height:650,title:(0,n.jT)(de),children:(0,e.jsxs)(b.p8.Content,{children:[(0,e.jsx)(m.wn,{title:"Reflection",children:(0,e.jsxs)(m.so,{children:[(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Name",children:M}),(0,e.jsx)(m.Ki.Item,{label:"Species",color:N?null:"grey",children:D}),(0,e.jsx)(m.Ki.Item,{label:"Biological Sex",color:q?null:"grey",children:A?(0,n.ZH)(A):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Gender Identity",color:ve?null:"grey",children:B?(0,n.ZH)(B):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Hair Style",color:le?null:"grey",children:U?(0,n.ZH)(U):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Facial Hair Style",color:ue?null:"grey",children:L?(0,n.ZH)(L):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Ear Style",color:le?null:"grey",children:k?(0,n.ZH)(k):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Tail Style",color:le?null:"grey",children:Y?(0,n.ZH)(Y):"Not Set"}),(0,e.jsx)(m.Ki.Item,{label:"Wing Style",color:le?null:"grey",children:V?(0,n.ZH)(V):"Not Set"})]})}),(0,e.jsx)(m.so.Item,{children:(0,e.jsx)(m.D1,{style:{width:"256px",height:"256px"},params:{id:he,type:"map"}})})]})}),(0,e.jsxs)(m.tU,{children:[N?(0,e.jsx)(m.tU.Tab,{selected:ye===0,onClick:function(){return Te(0)},children:"Race"}):null,q?(0,e.jsx)(m.tU.Tab,{selected:ye===1,onClick:function(){return Te(1)},children:"Gender & Sex"}):null,ve?(0,e.jsx)(m.tU.Tab,{selected:ye===2,onClick:function(){return Te(2)},children:"Colors"}):null,le?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.tU.Tab,{selected:ye===3,onClick:function(){return Te(3)},children:"Hair"}),(0,e.jsx)(m.tU.Tab,{selected:ye===5,onClick:function(){return Te(5)},children:"Ear"}),(0,e.jsx)(m.tU.Tab,{selected:ye===6,onClick:function(){return Te(6)},children:"Tail"}),(0,e.jsx)(m.tU.Tab,{selected:ye===7,onClick:function(){return Te(7)},children:"Wing"}),(0,e.jsx)(m.tU.Tab,{selected:ye===8,onClick:function(){return Te(8)},children:"Markings"})]}):null,ue?(0,e.jsx)(m.tU.Tab,{selected:ye===4,onClick:function(){return Te(4)},children:"Facial Hair"}):null]}),(0,e.jsxs)(m.az,{height:"43%",children:[N&&ye===0?(0,e.jsx)(d,{}):null,q&&ye===1?(0,e.jsx)(f,{}):null,ve&&ye===2?(0,e.jsx)(v,{}):null,le&&ye===3?(0,e.jsx)(l,{}):null,ue&&ye===4?(0,e.jsx)(c,{}):null,le&&ye===5?(0,e.jsx)(u,{}):null,le&&ye===6?(0,e.jsx)(h,{}):null,le&&ye===7?(0,e.jsx)(x,{}):null,le&&ye===8?(0,e.jsx)(j,{}):null]})]})})},d=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.species,M=I.specimen,D=(0,a.Ul)(function(A){return A.specimen})(O||[]);return(0,e.jsx)(m.wn,{title:"Species",fill:!0,scrollable:!0,children:D.map(function(A){return(0,e.jsx)(m.$n,{content:A.specimen,selected:M===A.specimen,onClick:function(){return E("race",{race:A.specimen})}},A.specimen)})})},f=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.gender,M=I.gender_id,D=I.genders,A=I.id_genders;return(0,e.jsx)(m.wn,{title:"Gender & Sex",fill:!0,scrollable:!0,children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Biological Sex",children:D.map(function(B){return(0,e.jsx)(m.$n,{selected:B.gender_key===O,content:B.gender_name,onClick:function(){return E("gender",{gender:B.gender_key})}},B.gender_key)})}),(0,e.jsx)(m.Ki.Item,{label:"Gender Identity",children:A.map(function(B){return(0,e.jsx)(m.$n,{selected:B.gender_key===M,content:B.gender_name,onClick:function(){return E("gender_id",{gender_id:B.gender_key})}},B.gender_key)})})]})})},v=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.change_eye_color,M=I.change_skin_tone,D=I.change_skin_color,A=I.change_hair_color,B=I.change_facial_hair_color,U=I.eye_color,L=I.skin_color,k=I.hair_color,Y=I.facial_hair_color,V=I.ears_color,H=I.ears2_color,N=I.tail_color,q=I.tail2_color,G=I.wing_color,Q=I.wing2_color;return(0,e.jsxs)(m.wn,{title:"Colors",fill:!0,scrollable:!0,children:[O?(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:U,mr:1}),(0,e.jsx)(m.$n,{content:"Change Eye Color",onClick:function(){return E("eye_color")}})]}):null,M?(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{content:"Change Skin Tone",onClick:function(){return E("skin_tone")}})}):null,D?(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:L,mr:1}),(0,e.jsx)(m.$n,{content:"Change Skin Color",onClick:function(){return E("skin_color")}})]}):null,A?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:k,mr:1}),(0,e.jsx)(m.$n,{content:"Change Hair Color",onClick:function(){return E("hair_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:V,mr:1}),(0,e.jsx)(m.$n,{content:"Change Ears Color",onClick:function(){return E("ears_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:H,mr:1}),(0,e.jsx)(m.$n,{content:"Change Secondary Ears Color",onClick:function(){return E("ears2_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:N,mr:1}),(0,e.jsx)(m.$n,{content:"Change Tail Color",onClick:function(){return E("tail_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:q,mr:1}),(0,e.jsx)(m.$n,{content:"Change Secondary Tail Color",onClick:function(){return E("tail2_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:G,mr:1}),(0,e.jsx)(m.$n,{content:"Change Wing Color",onClick:function(){return E("wing_color")}})]}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:Q,mr:1}),(0,e.jsx)(m.$n,{content:"Change Secondary Wing Color",onClick:function(){return E("wing2_color")}})]})]}):null,B?(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.BK,{color:Y,mr:1}),(0,e.jsx)(m.$n,{content:"Change Facial Hair Color",onClick:function(){return E("facial_hair_color")}})]}):null]})},l=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.hair_style,M=I.hair_styles;return(0,e.jsx)(m.wn,{title:"Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(m.$n,{onClick:function(){return E("hair",{hair:D.hairstyle})},selected:D.hairstyle===O,content:D.hairstyle},D.hairstyle)})})},c=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.facial_hair_style,M=I.facial_hair_styles;return(0,e.jsx)(m.wn,{title:"Facial Hair",fill:!0,scrollable:!0,children:M.map(function(D){return(0,e.jsx)(m.$n,{onClick:function(){return E("facial_hair",{facial_hair:D.facialhairstyle})},selected:D.facialhairstyle===O,content:D.facialhairstyle},D.facialhairstyle)})})},u=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.ear_style,M=I.ear_styles;return(0,e.jsxs)(m.wn,{title:"Ears",fill:!0,scrollable:!0,children:[(0,e.jsx)(m.$n,{onClick:function(){return E("ear",{clear:!0})},selected:O===null,content:"-- Not Set --"}),(0,a.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(m.$n,{onClick:function(){return E("ear",{ref:D.instance})},selected:D.name===O,content:D.name},D.instance)})]})},h=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.tail_style,M=I.tail_styles;return(0,e.jsxs)(m.wn,{title:"Tails",fill:!0,scrollable:!0,children:[(0,e.jsx)(m.$n,{onClick:function(){return E("tail",{clear:!0})},selected:O===null,content:"-- Not Set --"}),(0,a.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(m.$n,{onClick:function(){return E("tail",{ref:D.instance})},selected:D.name===O,content:D.name},D.instance)})]})},x=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.wing_style,M=I.wing_styles;return(0,e.jsxs)(m.wn,{title:"Wings",fill:!0,scrollable:!0,children:[(0,e.jsx)(m.$n,{onClick:function(){return E("wing",{clear:!0})},selected:O===null,content:"-- Not Set --"}),(0,a.Ul)(function(D){return D.name.toLowerCase()})(M).map(function(D){return(0,e.jsx)(m.$n,{onClick:function(){return E("wing",{ref:D.instance})},selected:D.name===O,content:D.name},D.instance)})]})},j=function(p){var _=(0,o.Oc)(),E=_.act,I=_.data,O=I.markings;return(0,e.jsxs)(m.wn,{title:"Markings",fill:!0,scrollable:!0,children:[(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{content:"Add Marking",onClick:function(){return E("marking",{todo:1,name:"na"})}})}),(0,e.jsx)(m.Ki,{children:O.map(function(M){return(0,e.jsxs)(m.Ki.Item,{label:M.marking_name,children:[(0,e.jsx)(m.BK,{color:M.marking_color,mr:1}),(0,e.jsx)(m.$n,{content:"Change Color",onClick:function(){return E("marking",{todo:4,name:M.marking_name})}}),(0,e.jsx)(m.$n,{content:"-",onClick:function(){return E("marking",{todo:0,name:M.marking_name})}}),(0,e.jsx)(m.$n,{content:"Move down",onClick:function(){return E("marking",{todo:3,name:M.marking_name})}}),(0,e.jsx)(m.$n,{content:"Move up",onClick:function(){return E("marking",{todo:2,name:M.marking_name})}})]},M.marking_name)})})]})}},8536:function(S,y,t){"use strict";t.r(y),t.d(y,{ArcadeBattle:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.name,v=d.temp,l=d.enemyAction,c=d.enemyName,u=d.playerHP,h=d.playerMP,x=d.enemyHP,j=d.enemyMP,p=d.gameOver;return(0,e.jsx)(r.p8,{width:400,height:240,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:c,textAlign:"center",children:[(0,e.jsxs)(n.wn,{color:"label",children:[(0,e.jsx)(n.az,{children:v}),(0,e.jsx)(n.az,{children:!p&&l})]}),(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(n.z2,{value:u,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[u,"HP"]})}),(0,e.jsx)(n.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(n.z2,{value:h,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[h,"MP"]})})]})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Enemy HP",children:(0,e.jsxs)(n.z2,{value:x,minValue:0,maxValue:45,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[x,"HP"]})})})})]}),p&&(0,e.jsx)(n.$n,{fluid:!0,mt:1,color:"green",content:"New Game",onClick:function(){return g("newgame")}})||(0,e.jsxs)(n.so,{mt:2,justify:"space-between",spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",onClick:function(){return g("attack")},content:"Attack!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",onClick:function(){return g("heal")},content:"Heal!"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",onClick:function(){return g("charge")},content:"Recharge!"})})]})]})})})}},59854:function(S,y,t){"use strict";t.r(y),t.d(y,{AreaScrubberControl:function(){return b}});var e=t(88095),a=t(33854),n=t(44583),r=t(4413),o=t(92514),m=t(84905),b=function(d){var f=(0,r.Oc)(),v=f.act,l=f.data,c=(0,n.useState)(!1),u=c[0],h=c[1],x=l.scrubbers;return x?(0,e.jsx)(m.p8,{width:600,height:400,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.so,{wrap:"wrap",children:[(0,e.jsx)(o.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})}),(0,e.jsx)(o.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,icon:"layer-group",content:"Show Areas",selected:u,onClick:function(){return h(!u)}})}),(0,e.jsx)(o.so.Item,{m:"2px",basis:"49%",children:(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,icon:"toggle-on",content:"All On",onClick:function(){return v("allon")}})}),(0,e.jsx)(o.so.Item,{m:"2px",basis:"49%",grow:1,children:(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,icon:"toggle-off",content:"All Off",onClick:function(){return v("alloff")}})})]}),(0,e.jsx)(o.so,{wrap:"wrap",children:x.map(function(j){return(0,e.jsx)(o.so.Item,{m:"2px",basis:"32%",children:(0,e.jsx)(g,{scrubber:j,showArea:u})},j.id)})})]})})}):(0,e.jsxs)(o.wn,{title:"Error",children:[(0,e.jsx)(o.az,{color:"bad",children:"No Scrubbers Detected."}),(0,e.jsx)(o.$n,{fluid:!0,icon:"search",content:"Scan",onClick:function(){return v("scan")}})]})},g=function(d){var f=(0,r.Oc)().act,v=d.scrubber,l=d.showArea;return(0,e.jsxs)(o.wn,{title:v.name,children:[(0,e.jsx)(o.$n,{fluid:!0,icon:"power-off",content:v.on?"Enabled":"Disabled",selected:v.on,onClick:function(){return f("toggle",{id:v.id})}}),(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Pressure",children:[v.pressure," kPa"]}),(0,e.jsxs)(o.Ki.Item,{label:"Flow Rate",children:[v.flow_rate," L/s"]}),(0,e.jsxs)(o.Ki.Item,{label:"Load",children:[v.load," W"]}),l&&(0,e.jsx)(o.Ki.Item,{label:"Area",children:(0,a.Sn)(v.area)})]})]})}},20251:function(S,y,t){"use strict";t.r(y),t.d(y,{AssemblyInfrared:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.visible;return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Infrared Unit",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Laser",children:(0,e.jsx)(n.$n,{icon:"power-off",fluid:!0,selected:f,onClick:function(){return g("state")},children:f?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Visibility",children:(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,selected:v,onClick:function(){return g("visible")},children:v?"Able to be seen":"Invisible"})})]})})})})}},54349:function(S,y,t){"use strict";t.r(y),t.d(y,{AssemblyProx:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.timing,c=v.time,u=v.range,h=v.maxRange,x=v.scanning;return(0,e.jsx)(m.p8,{children:(0,e.jsxs)(m.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return f("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(j){return(0,o.fU)((0,a.LI)(j))},onDrag:function(j,p){return f("set_time",{time:p})}})})})}),(0,e.jsx)(r.wn,{title:"Prox Unit",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Range",children:(0,e.jsx)(r.Q7,{minValue:1,value:u,maxValue:h,onDrag:function(j,p){return f("range",{range:p})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Armed",children:[(0,e.jsx)(r.$n,{mr:1,icon:x?"lock":"lock-open",selected:x,onClick:function(){return f("scanning")},children:x?"ARMED":"Unarmed"}),"Movement sensor is active when armed!"]})]})})]})})}},8327:function(S,y,t){"use strict";t.r(y),t.d(y,{AssemblyTimer:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.timing,c=v.time;return(0,e.jsx)(m.p8,{children:(0,e.jsx)(m.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Timing Unit",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Timer",buttons:(0,e.jsx)(r.$n,{icon:"stopwatch",selected:l,onClick:function(){return f("timing")},children:l?"Counting Down":"Disabled"}),children:(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:c/10,minValue:0,maxValue:600,format:function(u){return(0,o.fU)((0,a.LI)(u))},onDrag:function(u,h){return f("set_time",{time:h})}})})})})})})}},49775:function(S,y,t){"use strict";t.r(y),t.d(y,{AtmosAlertConsole:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.priority_alarms||[],v=d.minor_alarms||[];return(0,e.jsx)(r.p8,{width:350,height:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Alarms",children:(0,e.jsxs)("ul",{children:[f.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Priority Alerts"}),f.map(function(l){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:l.name,color:"bad",onClick:function(){return g("clear",{ref:l.ref})}})},l.name)}),v.length===0&&(0,e.jsx)("li",{className:"color-good",children:"No Minor Alerts"}),v.map(function(l){return(0,e.jsx)("li",{children:(0,e.jsx)(n.$n,{icon:"times",content:l.name,color:"average",onClick:function(){return g("clear",{ref:l.ref})}})},l.name)})]})})})})}},42623:function(S,y,t){"use strict";t.r(y),t.d(y,{AtmosControl:function(){return d},AtmosControlContent:function(){return f}});var e=t(88095),a=t(11358),n=t(44583),r=t(4413),o=t(92514),m=t(84905),b=t(47868),g=(0,b.h)("fuck"),d=function(v){return(0,e.jsx)(m.p8,{width:600,height:440,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsx)(f,{})})})},f=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=l.config,x=(0,a.Ul)(function(D){return D.name})(u.alarms||[]),j=(0,n.useState)(0),p=j[0],_=j[1],E=(0,n.useState)(1),I=E[0],O=E[1],M;return p===0?M=(0,e.jsx)(o.wn,{title:"Alarms",children:x.map(function(D){return(0,e.jsx)(o.$n,{content:D.name,color:D.danger===2?"bad":D.danger===1?"average":"",onClick:function(){return c("alarm",{alarm:D.ref})}},D.name)})}):p===1&&(M=(0,e.jsx)(o.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.tx,{onZoom:function(D){return O(D)},children:x.filter(function(D){return~~D.z===~~h.mapZLevel}).map(function(D){return(0,e.jsx)(o.tx.Marker,{x:D.x,y:D.y,zoom:I,icon:"bell",tooltip:D.name,color:D.danger?"red":"green",onClick:function(){return c("alarm",{alarm:D.ref})}},D.ref)})})})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:p===0,onClick:function(){return _(0)},children:[(0,e.jsx)(o.In,{name:"table"})," Alarm View"]},"AlarmView"),(0,e.jsxs)(o.tU.Tab,{selected:p===1,onClick:function(){return _(1)},children:[(0,e.jsx)(o.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.az,{m:2,children:M})]})}},45440:function(S,y,t){"use strict";t.r(y),t.d(y,{AtmosFilter:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.filter_types||[];return(0,e.jsx)(r.p8,{width:390,height:187,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return g("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Rate",children:[(0,e.jsx)(n.az,{inline:!0,mr:1,children:(0,e.jsx)(n.zv,{value:d.last_flow_rate,format:function(v){return v+" L/s"}})}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d.rate),width:"63px",unit:"L/s",minValue:0,maxValue:200,onDrag:function(v,l){return g("rate",{rate:l})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:d.rate===d.max_rate,onClick:function(){return g("rate",{rate:"max"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Filter",children:f.map(function(v){return(0,e.jsx)(n.$n,{selected:v.selected,content:v.name,onClick:function(){return g("filter",{filterset:v.f_type})}},v.name)})})]})})})})}},15147:function(S,y,t){"use strict";t.r(y),t.d(y,{AtmosMixer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data;return(0,e.jsx)(r.p8,{width:370,height:195,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:d.on?"power-off":"times",content:d.on?"On":"Off",selected:d.on,onClick:function(){return g("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(d.set_pressure),unit:"kPa",width:"75px",minValue:0,maxValue:d.max_pressure,step:10,onChange:function(f,v){return g("pressure",{pressure:v})}}),(0,e.jsx)(n.$n,{ml:1,icon:"plus",content:"Max",disabled:d.set_pressure===d.max_pressure,onClick:function(){return g("pressure",{pressure:"max"})}})]}),(0,e.jsx)(n.Ki.Divider,{size:1}),(0,e.jsx)(n.Ki.Item,{color:"label",children:(0,e.jsx)("u",{children:"Concentrations"})}),(0,e.jsx)(n.Ki.Item,{label:"Node 1 ("+d.node1_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:d.node1_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(f,v){return g("node1",{concentration:v})}})}),(0,e.jsx)(n.Ki.Item,{label:"Node 2 ("+d.node2_dir+")",children:(0,e.jsx)(n.Q7,{animated:!0,value:d.node2_concentration,unit:"%",width:"60px",minValue:0,maxValue:100,stepPixelSize:2,onDrag:function(f,v){return g("node2",{concentration:v})}})})]})})})})}},80281:function(S,y,t){"use strict";t.r(y),t.d(y,{Autolathe:function(){return u}});var e=t(88095),a=t(11358),n=t(28763),r=t(33854),o=t(4413),m=t(92514),b=t(84905),g=t(47926);function d(h,x){(x==null||x>h.length)&&(x=h.length);for(var j=0,p=new Array(x);j<x;j++)p[j]=h[j];return p}function f(h){"@swc/helpers - typeof";return h&&typeof Symbol!="undefined"&&h.constructor===Symbol?"symbol":typeof h}function v(h,x){if(h){if(typeof h=="string")return d(h,x);var j=Object.prototype.toString.call(h).slice(8,-1);if(j==="Object"&&h.constructor&&(j=h.constructor.name),j==="Map"||j==="Set")return Array.from(j);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return d(h,x)}}function l(h,x){var j=typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(j)return(j=j.call(h)).next.bind(j);if(Array.isArray(h)||(j=v(h))||x&&h&&typeof h.length=="number"){j&&(h=j);var p=0;return function(){return p>=h.length?{done:!0}:{done:!1,value:h[p++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=function(h,x,j){var p=function(){var M=I.value,D=x.find(function(A){return A.name===M});if(!D)return"continue";if(D.amount<h.requirements[M]*j)return{v:!1}};if(j===void 0&&(j=1),h.requirements===null)return!0;for(var _=Object.keys(h.requirements),E=l(_),I;!(I=E()).done;){var O=p();if(f(O)==="object")return O.v}return!0},u=function(h){var x=(0,o.Oc)(),j=x.act,p=x.data,_=p.recipes,E=p.busy,I=p.materials,O=p.categories,M=(0,o.QY)("category",0),D=M[0],A=M[1],B=(0,o.QY)("search_text",""),U=B[0],L=B[1],k=(0,r.XZ)(U,function(V){return V.name}),Y=(0,n.L)([(0,a.pb)(function(V){return V.category===O[D]}),U&&(0,a.pb)(k),(0,a.Ul)(function(V){return V.name.toLowerCase()})])(_);return(0,e.jsx)(b.p8,{width:550,height:700,children:(0,e.jsxs)(b.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m.wn,{title:"Materials",children:(0,e.jsx)(g.Materials,{disableEject:!0})}),(0,e.jsxs)(m.wn,{title:"Recipes",buttons:(0,e.jsx)(m.ms,{width:"190px",options:O,selected:O[D],onSelected:function(V){return A(O.indexOf(V))}}),children:[(0,e.jsx)(m.pd,{fluid:!0,placeholder:"Search for...",onInput:function(V,H){return L(H)},mb:1}),Y.map(function(V){return(0,e.jsxs)(m.so,{justify:"space-between",align:"center",children:[(0,e.jsxs)(m.so.Item,{children:[(0,e.jsx)(m.$n,{color:V.hidden&&"red"||null,icon:"hammer",iconSpin:E===V.name,disabled:!c(V,I,1),onClick:function(){return j("make",{make:V.ref})},children:(0,r.Sn)(V.name)}),!V.is_stack&&(0,e.jsxs)(m.az,{as:"span",children:[(0,e.jsx)(m.$n,{color:V.hidden&&"red"||null,disabled:!c(V,I,5),onClick:function(){return j("make",{make:V.ref,multiplier:5})},children:"x5"}),(0,e.jsx)(m.$n,{color:V.hidden&&"red"||null,disabled:!c(V,I,10),onClick:function(){return j("make",{make:V.ref,multiplier:10})},children:"x10"})]})||null]}),(0,e.jsx)(m.so.Item,{children:V.requirements&&Object.keys(V.requirements).map(function(H){return(0,r.Sn)(H)+": "+V.requirements[H]}).join(", ")||(0,e.jsx)(m.az,{children:"No resources required."})})]},V.ref)})]})]})})}},330:function(S,y,t){"use strict";t.r(y),t.d(y,{Batteryrack:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.mode,v=d.transfer_max,l=d.output_load,c=d.input_load,u=d.equalise,h=d.blink_tick,x=d.cells_max,j=d.cells_cur,p=d.cells_list;return(0,e.jsx)(r.p8,{width:500,height:430,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Mode",children:f===1&&(0,e.jsx)(n.az,{color:"good",children:"OUTPUT ONLY"})||f===2&&(0,e.jsx)(n.az,{color:"good",children:"INPUT ONLY"})||f===3&&(0,e.jsx)(n.az,{color:"good",children:"INPUT AND OUTPUT"})||(0,e.jsx)(n.az,{color:"bad",children:"OFFLINE"})}),(0,e.jsxs)(n.Ki.Item,{label:"Input Status",children:[(0,e.jsx)(n.zv,{value:c})," / ",v," W"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Status",children:[(0,e.jsx)(n.zv,{value:l})," / ",v," W"]}),(0,e.jsxs)(n.Ki.Item,{label:"Control Panel",children:[(0,e.jsx)(n.$n,{content:"OFF",selected:f===0,onClick:function(){return g("disable")}}),(0,e.jsx)(n.$n,{content:"OUT",selected:f===1,onClick:function(){return g("enable",{enable:1})}}),(0,e.jsx)(n.$n,{content:"IN",selected:f===2,onClick:function(){return g("enable",{enable:2})}}),(0,e.jsx)(n.$n,{content:"IN/OUT",selected:f===3,onClick:function(){return g("enable",{enable:3})}}),u&&(0,e.jsx)(n.$n,{content:"EQ",color:h?"red":"yellow",onClick:function(){return g("equaliseoff")}})||(0,e.jsx)(n.$n,{content:"EQ",onClick:function(){return g("equaliseon")}})]})]})}),(0,e.jsx)(n.wn,{title:"Cells",children:(0,e.jsx)(n.XI,{children:p.map(function(_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:["Cell ",_.slot]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.z2,{value:_.used?_.percentage:100,minValue:0,maxValue:100,color:_.used?"good":"bad",children:_.used?_.percentage+"%":"N/C"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"eject",disabled:!_.used,onClick:function(){return g("ejectcell",{ejectcell:_.id})}})})]},_.slot)})})})]})})}},55094:function(S,y,t){"use strict";t.r(y),t.d(y,{BeaconLocator:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.scan_ticks,l=f.degrees,c=f.rawfreq,u=f.minFrequency,h=f.maxFrequency;return(0,e.jsx)(o.p8,{width:300,height:220,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(r.wn,{title:"Beacon Locator",children:[v&&(0,e.jsx)(r.az,{color:"label",children:"Scanning..."})||null,l&&(0,e.jsxs)(r.az,{textAlign:"center",children:[(0,e.jsx)(r.az,{textAlign:"center",children:(0,e.jsx)(r.In,{size:4,name:"arrow-up",rotation:l})}),"Locked on. Follow the arrow."]})||(0,e.jsx)(r.az,{color:"average",children:"No lock."}),(0,e.jsx)(r.$n,{mt:1,mb:1,fluid:!0,icon:"broadcast-tower",onClick:function(){return d("reset_tracking")},children:"Reset tracker"}),(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Frequency",children:(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:u/10,maxValue:h/10,value:c/10,format:function(x){return(0,a.Mg)(x,1)},onDrag:function(x,j){return d("setFrequency",{freq:(0,a.LI)(j*10)})}})})})]})})})}},79371:function(S,y,t){"use strict";t.r(y),t.d(y,{Biogenerator:function(){return d}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905);function m(){return m=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var x=arguments[h];for(var j in x)Object.prototype.hasOwnProperty.call(x,j)&&(u[j]=x[j])}return u},m.apply(this,arguments)}function b(u,h){if(u==null)return{};var x={},j=Object.keys(u),p,_;for(_=0;_<j.length;_++)p=j[_],!(h.indexOf(p)>=0)&&(x[p]=u[p]);return x}var g={Alphabetical:function(u,h){return u-h},"By availability":function(u,h){return-(u.affordable-h.affordable)},"By price":function(u,h){return u.price-h.price}},d=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data;return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:j.processing&&(0,e.jsx)(r.wn,{title:"Processing",children:"The biogenerator is processing reagents!"})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{children:[j.points," points available.",(0,e.jsx)(r.$n,{ml:1,icon:"blender",onClick:function(){return x("activate")},children:"Activate"}),(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:!j.beaker,onClick:function(){return x("detach")},children:"Eject Beaker"})]}),(0,e.jsx)(v,{}),(0,e.jsx)(f,{})]})})})},f=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=j.points,_=j.items,E=(0,n.Ul)("search",""),I=E[0],O=E[1],M=(0,n.Ul)("sort","Alphabetical"),D=M[0],A=M[1],B=(0,n.Ul)("descending",!1),U=B[0],L=B[1],k=(0,a.XZ)(I,function(H){return H[0]}),Y=!1,V=Object.entries(_).map(function(H,N){var q=Object.entries(H[1]).filter(k).map(function(G){return G[1].affordable=p>=G[1].price/j.build_eff,G[1]}).sort(g[D]);if(q.length!==0)return U&&(q=q.reverse()),Y=!0,(0,e.jsx)(c,{title:H[0],items:q},H[0])});return(0,e.jsx)(r.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.wn,{children:Y?V:(0,e.jsx)(r.az,{color:"label",children:"No items matching your criteria was found!"})})})},v=function(u){var h=(0,n.Ul)("search",""),x=h[0],j=h[1],p=(0,n.Ul)("sort",""),_=p[0],E=p[1],I=(0,n.Ul)("descending",!1),O=I[0],M=I[1];return(0,e.jsx)(r.az,{mb:"0.5rem",children:(0,e.jsxs)(r.so,{width:"100%",children:[(0,e.jsx)(r.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(D,A){return j(A)}})}),(0,e.jsx)(r.so.Item,{basis:"30%",children:(0,e.jsx)(r.ms,{selected:"Alphabetical",options:Object.keys(g),width:"100%",lineHeight:"19px",onSelected:function(D){return E(D)}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:O?"arrow-down":"arrow-up",height:"19px",tooltip:O?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return M(!O)}})})]})})},l=function(u,h){return!(!u.affordable||u.reagent&&!h.beaker)},c=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=u.title,_=u.items,E=b(u,["title","items"]);return(0,e.jsx)(r.Nt,m({open:!0,title:p},E,{children:_.map(function(I){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.$n,{disabled:!l(I,j),content:(I.price/j.build_eff).toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return x("purchase",{cat:p,name:I.name})}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]},I.name)})}))}},90233:function(S,y,t){"use strict";t.r(y),t.d(y,{BodyDesigner:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.menu,p=x.disk,_=x.diskStored,E=x.activeBodyRecord,I=l[j];return(0,e.jsx)(o.p8,{width:400,height:650,children:(0,e.jsxs)(o.p8.Content,{children:[p?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"save",content:"Save To Disk",onClick:function(){return h("savetodisk")},disabled:!E}),(0,e.jsx)(r.$n,{icon:"save",content:"Load From Disk",onClick:function(){return h("loadfromdisk")},disabled:!_}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject",onClick:function(){return h("ejectdisk")}})]}):null,I]})})},b=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data;return(0,e.jsxs)(r.wn,{title:"Database Functions",children:[(0,e.jsx)(r.$n,{icon:"eye",content:"View Individual Body Records",onClick:function(){return h("menu",{menu:"Body Records"})}}),(0,e.jsx)(r.$n,{icon:"eye",content:"View Stock Body Records",onClick:function(){return h("menu",{menu:"Stock Records"})}})]})},g=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.bodyrecords;return(0,e.jsx)(r.wn,{title:"Body Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return h("menu",{menu:"Main"})}}),children:j.map(function(p){return(0,e.jsx)(r.$n,{icon:"eye",content:p.name,onClick:function(){return h("view_brec",{view_brec:p.recref})}},p.name)})})},d=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.stock_bodyrecords;return(0,e.jsx)(r.wn,{title:"Stock Records",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return h("menu",{menu:"Main"})}}),children:j.map(function(p){return(0,e.jsx)(r.$n,{icon:"eye",content:p,onClick:function(){return h("view_stock_brec",{view_stock_brec:p})}},p)})})},f=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.activeBodyRecord,p=x.mapRef;return j?(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{basis:"165px",children:(0,e.jsx)(r.wn,{title:"Specific Record",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return h("menu",{menu:"Main"})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:j.real_name}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:j.speciesname}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:(0,e.jsx)(r.$n,{icon:"pen",content:(0,a.ZH)(j.gender),onClick:function(){return h("href_conversion",{target_href:"bio_gender",target_value:1})}})}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:j.synthetic}),(0,e.jsxs)(r.Ki.Item,{label:"Mind Compat",children:[j.locked,(0,e.jsx)(r.$n,{ml:1,icon:"eye",content:"View OOC Notes",disabled:!j.booc,onClick:function(){return h("boocnotes")}})]})]})})}),(0,e.jsx)(r.so.Item,{basis:"130px",children:(0,e.jsx)(r.D1,{style:{width:"100%",height:"128px"},params:{id:p,type:"map"}})}),(0,e.jsx)(r.so.Item,{basis:"300px",children:(0,e.jsx)(r.wn,{title:"Customize",height:"300px",style:{overflow:"auto"},children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scale",children:(0,e.jsx)(r.$n,{icon:"pen",content:j.scale,onClick:function(){return h("href_conversion",{target_href:"size_multiplier",target_value:1})}})}),Object.keys(j.styles).map(function(_){var E=j.styles[_];return(0,e.jsxs)(r.Ki.Item,{label:_,children:[E.styleHref?(0,e.jsx)(r.$n,{icon:"pen",content:E.style,onClick:function(){return h("href_conversion",{target_href:E.styleHref,target_value:1})}}):null,E.colorHref?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:E.color,onClick:function(){return h("href_conversion",{target_href:E.colorHref,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:E.color,style:{border:"1px solid #fff"}})]}):null,E.colorHref2?(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"pen",content:E.color2,onClick:function(){return h("href_conversion",{target_href:E.colorHref2,target_value:1})}}),(0,e.jsx)(r.BK,{verticalAlign:"top",width:"32px",height:"20px",color:E.color2,style:{border:"1px solid #fff"}})]}):null]},_)}),(0,e.jsxs)(r.Ki.Item,{label:"Body Markings",children:[(0,e.jsx)(r.$n,{icon:"plus",content:"Add Marking",onClick:function(){return h("href_conversion",{target_href:"marking_style",target_value:1})}}),(0,e.jsx)(r.so,{wrap:"wrap",justify:"center",align:"center",children:Object.keys(j.markings).map(function(_){var E=j.markings[_];return(0,e.jsx)(r.so.Item,{basis:"100%",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{mr:.2,fluid:!0,icon:"times",color:"red",onClick:function(){return h("href_conversion",{target_href:"marking_remove",target_value:_})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,backgroundColor:E,content:_,onClick:function(){return h("href_conversion",{target_href:"marking_color",target_value:_})}})})]})},_)})})]})]})})})]}):(0,e.jsx)(r.az,{color:"bad",children:"ERROR: Record Not Found!"})},v=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.activeBodyRecord;return(0,e.jsx)(r.wn,{title:"Body OOC Notes (This is OOC!)",height:"100%",scrollable:!0,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return h("menu",{menu:"Specific Record"})}}),style:{"word-break":"break-all"},children:j&&j.booc||"ERROR: Body record not found!"})},l={Main:(0,e.jsx)(b,{}),"Body Records":(0,e.jsx)(g,{}),"Stock Records":(0,e.jsx)(d,{}),"Specific Record":(0,e.jsx)(f,{}),"OOC Notes":(0,e.jsx)(v,{})}},45922:function(S,y,t){"use strict";t.r(y),t.d(y,{BodyScanner:function(){return c}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],b=[["hasBorer","bad",function(M){return"Large growth detected in frontal lobe, possibly cancerous. Surgical removal is recommended."}],["hasVirus","bad",function(M){return"Viral pathogen detected in blood stream."}],["blind","average",function(M){return"Cataracts detected."}],["colourblind","average",function(M){return"Photoreceptor abnormalities detected."}],["nearsighted","average",function(M){return"Retinal misalignment detected."}],["humanPrey","average",function(M){return"Foreign Humanoid(s) detected: "+M.humanPrey}],["livingPrey","average",function(M){return"Foreign Creature(s) detected: "+M.livingPrey}],["objectPrey","average",function(M){return"Foreign Object(s) detected: "+M.objectPrey}]],g=[["Respiratory","oxyLoss"],["Brain","brainLoss"],["Toxin","toxLoss"],["Radiation","radLoss"],["Brute","bruteLoss"],["Genetic","cloneLoss"],["Burn","fireLoss"],["Paralysis","paralysis"]],d={average:[.25,.5],bad:[.5,1/0]},f=function(M,D){for(var A=[],B=0;B<M.length;B+=2)A.push(D(M[B],M[B+1],B));return A},v=function(M){return M.length>0?M.reduce(function(D,A){return D===null?A:(0,e.jsxs)(e.Fragment,{children:[D,!!A&&(0,e.jsx)(r.az,{children:A})]})}):null},l=function(M){if(M>100){if(M<300)return"mild infection";if(M<400)return"mild infection+";if(M<500)return"mild infection++";if(M<700)return"acute infection";if(M<800)return"acute infection+";if(M<900)return"acute infection++";if(M>=900)return"septic"}return""},c=function(M){var D=(0,n.Oc)().data,A=D.occupied,B=D.occupant,U=B===void 0?{}:B,L=A?(0,e.jsx)(u,{occupant:U}):(0,e.jsx)(O,{});return(0,e.jsx)(o.p8,{width:690,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:L})})},u=function(M){var D=M.occupant;return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(h,{occupant:D}),(0,e.jsx)(x,{occupant:D}),(0,e.jsx)(j,{occupant:D}),(0,e.jsx)(p,{occupant:D}),(0,e.jsx)(E,{organs:D.extOrgan}),(0,e.jsx)(I,{organs:D.intOrgan})]})},h=function(M){var D=(0,n.Oc)(),A=D.act,B=D.data,U=B.occupant;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"user-slash",onClick:function(){return A("ejectify")},children:"Eject"}),(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return A("print_p")},children:"Print Report"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:U.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:U.maxHealth,value:U.health/U.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:m[U.stat][0],children:m[U.stat][1]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(r.zv,{value:(0,a.LI)(U.bodyTempC,0)}),"\xB0C,\xA0",(0,e.jsx)(r.zv,{value:(0,a.LI)(U.bodyTempF,0)}),"\xB0F"]}),(0,e.jsxs)(r.Ki.Item,{label:"Blood Volume",children:[(0,e.jsx)(r.zv,{value:(0,a.LI)(U.blood.volume,0)})," ","units\xA0(",(0,e.jsx)(r.zv,{value:(0,a.LI)(U.blood.percent,0)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Weight",children:(0,a.LI)(B.occupant.weight)+"lbs, "+(0,a.LI)(B.occupant.weight/2.20463)+"kgs"})]})})},x=function(M){var D=M.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Blood Reagents",children:D.reagents?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.reagents.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Blood Reagents Detected"})}),(0,e.jsx)(r.wn,{title:"Stomach Reagents",children:D.ingested?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Reagent"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Amount"})]}),D.ingested.map(function(A){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:A.name}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",children:[A.amount," Units"," ",A.overdose?(0,e.jsx)(r.az,{color:"bad",children:"OVERDOSING"}):null]})]},A.name)})]}):(0,e.jsx)(r.az,{color:"good",children:"No Stomach Reagents Detected"})})]})},j=function(M){var D=M.occupant,A=D.hasBorer||D.blind||D.colourblind||D.nearsighted||D.hasVirus;return A=A||D.humanPrey||D.livingPrey||D.objectPrey,A?(0,e.jsx)(r.wn,{title:"Abnormalities",children:b.map(function(B,U){if(D[B[0]])return(0,e.jsx)(r.az,{color:B[1],bold:B[1]==="bad",children:B[2](D)},U)})}):(0,e.jsx)(r.wn,{title:"Abnormalities",children:(0,e.jsx)(r.az,{color:"label",children:"No abnormalities found."})})},p=function(M){var D=M.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.XI,{children:f(g,function(A,B,U){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI.Row,{color:"label",children:[(0,e.jsxs)(r.XI.Cell,{children:[A[0],":"]}),(0,e.jsx)(r.XI.Cell,{children:!!B&&B[0]+":"})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(_,{value:D[A[1]],marginBottom:U<g.length-2})}),(0,e.jsx)(r.XI.Cell,{children:!!B&&(0,e.jsx)(_,{value:D[B[1]]})})]})]})})})})},_=function(M){return(0,e.jsx)(r.z2,{min:"0",max:"100",value:M.value/100,mt:"0.5rem",mb:!!M.marginBottom&&"0.5rem",ranges:d,children:(0,a.LI)(M.value,0)})},E=function(M){return M.organs.length===0?(0,e.jsx)(r.wn,{title:"External Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"External Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),M.organs.map(function(D,A){return(0,e.jsxs)(r.XI.Row,{textTransform:"capitalize",children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:D.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",q:!0,children:(0,e.jsxs)(r.z2,{min:"0",max:D.maxHealth,mt:A>0&&"0.5rem",value:D.totalLoss/100,ranges:d,children:[(0,e.jsxs)(r.az,{float:"left",inline:!0,children:[!!D.bruteLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"bone"}),(0,a.LI)(D.bruteLoss,0),"\xA0",(0,e.jsx)(r.m_,{position:"top",content:"Brute damage"})]}),!!D.fireLoss&&(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[(0,e.jsx)(r.In,{name:"fire"}),(0,a.LI)(D.fireLoss,0),(0,e.jsx)(r.m_,{position:"top",content:"Burn damage"})]})]}),(0,e.jsx)(r.az,{inline:!0,children:(0,a.LI)(D.totalLoss,0)})]})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([D.internalBleeding&&"Internal bleeding",!!D.status.bleeding&&"External bleeding",D.lungRuptured&&"Ruptured lung",D.destroyed&&"Destroyed",!!D.status.broken&&D.status.broken,l(D.germ_level),!!D.open&&"Open incision"])}),(0,e.jsxs)(r.az,{inline:!0,children:[v([!!D.status.splinted&&"Splinted",!!D.status.robotic&&"Robotic",!!D.status.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})]),v(D.implants.map(function(B){return B.known?B.name:"Unknown object"}))]})]})]},A)})]})})},I=function(M){return M.organs.length===0?(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsx)(r.az,{color:"label",children:"N/A"})}):(0,e.jsx)(r.wn,{title:"Internal Organs",children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:"Damage"}),(0,e.jsx)(r.XI.Cell,{textAlign:"right",children:"Injuries"})]}),M.organs.map(function(D,A){return(0,e.jsxs)(r.XI.Row,{textTransform:"capitalize",children:[(0,e.jsx)(r.XI.Cell,{width:"33%",children:D.name}),(0,e.jsx)(r.XI.Cell,{textAlign:"center",children:(0,e.jsx)(r.z2,{min:"0",max:D.maxHealth,value:D.damage/100,mt:A>0&&"0.5rem",ranges:d,children:(0,a.LI)(D.damage,0)})}),(0,e.jsxs)(r.XI.Cell,{textAlign:"right",width:"33%",children:[(0,e.jsx)(r.az,{color:"average",inline:!0,children:v([l(D.germ_level),!!D.inflamed&&"Appendicitis detected."])}),(0,e.jsx)(r.az,{inline:!0,children:v([D.robotic===1&&"Robotic",D.robotic===2&&"Assisted",!!D.dead&&(0,e.jsx)(r.az,{color:"bad",children:"DEAD"})])})]})]},A)})]})})},O=function(){return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})})}},57199:function(S,y,t){"use strict";t.r(y),t.d(y,{BombTester:function(){return d}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905);function m(){return m=Object.assign||function(v){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(v[u]=c[u])}return v},m.apply(this,arguments)}function b(v,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(l&&l.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),l&&g(v,l)}function g(v,l){return g=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},g(v,l)}var d=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.simulating,x=u.mode,j=u.tank1,p=u.tank1ref,_=u.tank2,E=u.tank2ref,I=u.canister,O=u.sim_canister_output;return(0,e.jsx)(o.p8,{width:450,height:400,children:(0,e.jsx)(o.p8.Content,{children:h&&(0,e.jsx)(f,{})||(0,e.jsxs)(r.wn,{title:"Virtual Explosive Simulator v2.01",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Mode",children:[(0,e.jsx)(r.$n,{onClick:function(){return c("set_mode",{mode:1})},selected:x===1,children:"Single Tank"}),(0,e.jsx)(r.$n,{onClick:function(){return c("set_mode",{mode:2})},selected:x===2,children:"Transfer Valve"}),(0,e.jsx)(r.$n,{onClick:function(){return c("set_mode",{mode:3})},selected:x===3,children:"Canister"})]}),(0,e.jsx)(r.Ki.Item,{label:"Primary Slot",children:j&&(0,e.jsx)(r.$n,{onClick:function(){return c("remove_tank",{ref:p})},icon:"eject",children:j})||(0,e.jsx)(r.$n,{onClick:function(){return c("add_tank",{slot:1})},icon:"upload",children:"Insert Tank"})}),(0,e.jsx)(r.Ki.Item,{label:"Secondary Slot",children:_&&(0,e.jsx)(r.$n,{onClick:function(){return c("remove_tank",{ref:E})},icon:"eject",children:_})||(0,e.jsx)(r.$n,{onClick:function(){return c("add_tank",{slot:2})},icon:"upload",children:"Insert Tank"})}),(0,e.jsx)(r.Ki.Item,{label:"Connected Canister",buttons:(0,e.jsx)(r.$n,{onClick:function(){return c("canister_scan")},icon:"search",children:"Scan"}),children:I&&(0,e.jsx)(r.az,{color:"label",children:I})||(0,e.jsx)(r.az,{color:"bad",children:"No tank connected."})}),I&&(0,e.jsx)(r.Ki.Item,{label:"Canister Release Pressure",children:(0,e.jsx)(r.Ap,{minValue:0,value:O,maxValue:1013.25,onDrag:function(M,D){return c("set_can_pressure",{pressure:D})}})})]}),(0,e.jsx)(r.$n,{mt:2,color:"red",icon:"bomb",fontSize:2,onClick:function(){return c("start_sim")},fluid:!0,children:"Begin Simulation"})]})})})},f=function(v){"use strict";b(l,v);function l(u){var h;h=v.call(this,u)||this;var x=340,j=205,p=2,_=Math.random()>.5,E=Math.random()>.5;return h.state={x:_?x:0,y:E?j:0,reverseX:!1,reverseY:!1},h.process=setInterval(function(){h.setState(function(I){var O=m({},I);return O.reverseX?O.x-p<-5?(O.reverseX=!1,O.x+=p):O.x-=p:O.x+p>x?(O.reverseX=!0,O.x-=p):O.x+=p,O.reverseY?O.y-p<-20?(O.reverseY=!1,O.y+=p):O.y-=p:O.y+p>j?(O.reverseY=!0,O.y-=p):O.y+=p,O})},1),h}var c=l.prototype;return c.componentWillUnmount=function(){clearInterval(this.process)},c.render=function(){var h=this.state,x=h.x,j=h.y,p={position:"relative",left:x+"px",top:j+"px"};return(0,e.jsx)(r.wn,{title:"Simulation in progress!",fill:!0,children:(0,e.jsx)(r.az,{position:"absolute",style:{overflow:"hidden",width:"100%",height:"100%"},children:(0,e.jsx)(r.In,{style:p,name:"bomb",size:10,color:"red"})})})},l}(a.Component)},95678:function(S,y,t){"use strict";t.r(y),t.d(y,{BotanyEditor:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.activity,v=d.degradation,l=d.disk,c=d.sourceName,u=d.locus,h=d.loaded;return f?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:l&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:c}),(0,e.jsxs)(n.Ki.Item,{label:"Gene Decay",children:[v,"%"]}),(0,e.jsx)(n.Ki.Item,{label:"Locus",children:u})]}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return g("eject_disk")},children:"Eject Loaded Disk"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No disk loaded."})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:h&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:h})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return g("apply_gene")},children:"Apply Gene Mods"}),(0,e.jsx)(n.$n,{mt:1,icon:"eject",onClick:function(){return g("eject_packet")},children:"Eject Target"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No target seed packet loaded."})})]})})}},72384:function(S,y,t){"use strict";t.r(y),t.d(y,{BotanyIsolator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.geneMasks,v=d.activity,l=d.degradation,c=d.disk,u=d.loaded,h=d.hasGenetics,x=d.sourceName;return v?(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.IC,{info:!0,children:"Scanning..."})})}):(0,e.jsx)(r.p8,{width:470,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Buffered Genetic Data",children:h&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Source",children:x}),(0,e.jsxs)(n.Ki.Item,{label:"Gene decay",children:[l,"%"]}),c&&f.length&&f.map(function(j){return(0,e.jsx)(n.Ki.Item,{label:j.mask,children:(0,e.jsx)(n.$n,{mb:-1,icon:"download",onClick:function(){return g("get_gene",{get_gene:j.tag})},children:"Extract"})},j.mask)})||null]}),c&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return g("eject_disk")},children:"Eject Loaded Disk"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("clear_buffer")},children:"Clear Genetic Buffer"})]})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.IC,{warning:!0,children:"No Data Buffered."}),c&&(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return g("eject_disk")},children:"Eject Loaded Disk"})||(0,e.jsx)(n.IC,{mt:1,warning:!0,children:"No disk inserted."})]})}),(0,e.jsx)(n.wn,{title:"Loaded Material",children:u&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Packet Loaded",children:u})}),(0,e.jsx)(n.$n,{mt:1,icon:"cog",onClick:function(){return g("scan_genome")},children:"Process Genome"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return g("eject_packet")},children:"Eject Packet"})]})||(0,e.jsx)(n.IC,{warning:!0,children:"No packet loaded."})})]})})}},11515:function(S,y,t){"use strict";t.r(y),t.d(y,{BrigTimer:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data;return(0,e.jsx)(m.p8,{width:300,height:138,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Cell Timer",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"clock-o",content:v.timing?"Stop":"Start",selected:v.timing,onClick:function(){return f(v.timing?"stop":"start")}}),v.flash_found&&(0,e.jsx)(r.$n,{icon:"lightbulb-o",content:v.flash_charging?"Recharging":"Flash",disabled:v.flash_charging,onClick:function(){return f("flash")}})||null]}),children:[(0,e.jsx)(r.Q7,{animated:!0,fluid:!0,value:v.time_left/10,minValue:0,maxValue:v.max_time_left/10,format:function(l){return(0,o.fU)((0,a.LI)(l))},onDrag:function(l,c){return f("time",{time:c})}}),(0,e.jsxs)(r.so,{mt:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.fU)(v.preset_short/10),onClick:function(){return f("preset",{preset:"short"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.fU)(v.preset_medium/10),onClick:function(){return f("preset",{preset:"medium"})}})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"hourglass-start",content:"Add "+(0,o.fU)(v.preset_long/10),onClick:function(){return f("preset",{preset:"long"})}})})]})]})})})}},96524:function(S,y,t){"use strict";t.r(y),t.d(y,{CameraConsole:function(){return l},CameraConsoleContent:function(){return c},prevNextCamera:function(){return f},selectCameras:function(){return v}});var e=t(88095),a=t(11358),n=t(28763),r=t(84352),o=t(33854),m=t(44583),b=t(4413),g=t(92514),d=t(84905),f=function(u,h){var x,j;if(!h)return[];var p=u.findIndex(function(_){return _.name===h.name});return[(x=u[p-1])==null?void 0:x.name,(j=u[p+1])==null?void 0:j.name]},v=function(u,h,x){h===void 0&&(h=""),x===void 0&&(x="");var j=(0,o.XZ)(h,function(p){return p.name});return(0,n.L)([(0,a.pb)(function(p){return p==null?void 0:p.name}),h&&(0,a.pb)(j),x&&(0,a.pb)(function(p){return p.networks.includes(x)}),(0,a.Ul)(function(p){return p.name})])(u)},l=function(u){var h=(0,b.Oc)(),x=h.act,j=h.data,p=j.mapRef,_=j.activeCamera,E=v(j.cameras),I=f(E,_),O=I[0],M=I[1];return(0,e.jsxs)(d.p8,{width:870,height:708,children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(d.p8.Content,{scrollable:!0,children:(0,e.jsx)(c,{})})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),_&&_.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(g.$n,{icon:"chevron-left",disabled:!O,onClick:function(){return x("switch_camera",{name:O})}}),(0,e.jsx)(g.$n,{icon:"chevron-right",disabled:!M,onClick:function(){return x("switch_camera",{name:M})}}),"| PAN:",(0,e.jsx)(g.$n,{icon:"chevron-left",onClick:function(){return x("pan",{dir:8})}}),(0,e.jsx)(g.$n,{icon:"chevron-up",onClick:function(){return x("pan",{dir:1})}}),(0,e.jsx)(g.$n,{icon:"chevron-right",onClick:function(){return x("pan",{dir:4})}}),(0,e.jsx)(g.$n,{icon:"chevron-down",onClick:function(){return x("pan",{dir:2})}})]}),(0,e.jsx)(g.D1,{className:"CameraConsole__map",params:{id:p,type:"map"}})]})]})},c=function(u){var h=(0,b.Oc)(),x=h.act,j=h.data,p=(0,m.useState)(""),_=p[0],E=p[1],I=(0,m.useState)(""),O=I[0],M=I[1],D=j.activeCamera,A=j.allNetworks;A.sort();var B=v(j.cameras,_,O);return(0,e.jsxs)(g.so,{direction:"column",height:"100%",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.pd,{autoFocus:!0,fluid:!0,mt:1,placeholder:"Search for a camera",onInput:function(U,L){return E(L)}})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.ms,{mb:1,width:"177px",displayText:O||"No Filter",options:A,onSelected:function(U){return M(U)}})}),(0,e.jsx)(g.so.Item,{height:"100%",children:(0,e.jsx)(g.wn,{fill:!0,scrollable:!0,children:B.map(function(U){return(0,e.jsx)("div",{title:U.name,className:(0,r.Ly)(["Button","Button--fluid","Button--color--transparent","Button--ellipsis",D&&U.name===D.name&&"Button--selected"]),onClick:function(){return x("switch_camera",{name:U.name})},children:U.name},U.name)})})})]})}},60997:function(S,y,t){"use strict";t.r(y),t.d(y,{Canister:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.connected,c=v.can_relabel,u=v.pressure,h=v.releasePressure,x=v.defaultReleasePressure,j=v.minReleasePressure,p=v.maxReleasePressure,_=v.valveOpen,E=v.holding;return(0,e.jsx)(m.p8,{width:360,height:242,children:(0,e.jsxs)(m.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Canister",buttons:(0,e.jsx)(r.$n,{icon:"pencil-alt",disabled:!c,content:"Relabel",onClick:function(){return f("relabel")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{minWidth:"66px",label:"Tank Pressure",children:(0,e.jsx)(r.zv,{value:u,format:function(I){return I<1e4?(0,a.Mg)(I)+" kPa":(0,o.QL)(I*1e3,1,"Pa")}})}),(0,e.jsx)(r.Wx.Item,{label:"Regulator",children:(0,e.jsxs)(r.az,{position:"relative",left:"-8px",children:[(0,e.jsx)(r.N6,{forcedInputWidth:"60px",size:1.25,color:!!_&&"yellow",value:h,unit:"kPa",minValue:j,maxValue:p,stepPixelSize:1,onDrag:function(I,O){return f("pressure",{pressure:O})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"-2px",right:"-20px",color:"transparent",icon:"fast-forward",onClick:function(){return f("pressure",{pressure:p})}}),(0,e.jsx)(r.$n,{fluid:!0,position:"absolute",top:"16px",right:"-20px",color:"transparent",icon:"undo",onClick:function(){return f("pressure",{pressure:x})}})]})}),(0,e.jsx)(r.Wx.Item,{label:"Valve",children:(0,e.jsx)(r.$n,{my:.5,width:"50px",lineHeight:2,fontSize:"11px",color:_?E?"caution":"danger":null,content:_?"Open":"Closed",onClick:function(){return f("valve")}})}),(0,e.jsx)(r.Wx.Item,{mr:1,label:"Port",children:(0,e.jsxs)(r.az,{position:"relative",children:[(0,e.jsx)(r.In,{size:1.25,name:l?"plug":"times",color:l?"good":"bad"}),(0,e.jsx)(r.m_,{content:l?"Connected":"Disconnected",position:"top"})]})})]})}),(0,e.jsxs)(r.wn,{title:"Holding Tank",buttons:!!E&&(0,e.jsx)(r.$n,{icon:"eject",color:_&&"danger",content:"Eject",onClick:function(){return f("eject")}}),children:[!!E&&(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Label",children:E.name}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(r.zv,{value:E.pressure})," kPa"]})]}),!E&&(0,e.jsx)(r.az,{color:"average",children:"No Holding Tank"})]})]})})}},9550:function(S,y,t){"use strict";t.r(y),t.d(y,{Canvas:function(){return c}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905);function m(){return m=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var x=arguments[h];for(var j in x)Object.prototype.hasOwnProperty.call(x,j)&&(u[j]=x[j])}return u},m.apply(this,arguments)}function b(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),h&&d(u,h)}function g(u,h){if(u==null)return{};var x={},j=Object.keys(u),p,_;for(_=0;_<j.length;_++)p=j[_],!(h.indexOf(p)>=0)&&(x[p]=u[p]);return x}function d(u,h){return d=Object.setPrototypeOf||function(j,p){return j.__proto__=p,j},d(u,h)}var f=24,v=function(u){"use strict";b(h,u);function h(j){var p;return p=u.call(this,j)||this,p.canvasRef=(0,a.createRef)(),p.onCVClick=j.onCanvasClick,p}var x=h.prototype;return x.componentDidMount=function(){this.drawCanvas(this.props)},x.componentDidUpdate=function(){this.drawCanvas(this.props)},x.drawCanvas=function(p){var _=this.canvasRef.current.getContext("2d"),E=p.value,I=E.length;if(I){var O=E[0].length,M=Math.round(this.canvasRef.current.width/I),D=Math.round(this.canvasRef.current.height/O);_.save(),_.scale(M,D);for(var A=0;A<E.length;A++)for(var B=E[A],U=0;U<B.length;U++){var L=B[U];_.fillStyle=L,_.fillRect(A,U,1,1)}_.restore()}},x.clickwrapper=function(p){var _=this.props.value.length;if(_){var E=this.props.value[0].length,I=this.canvasRef.current.width/_,O=this.canvasRef.current.height/E,M=Math.floor(p.offsetX/I)+1,D=Math.floor(p.offsetY/O)+1;this.onCVClick(M,D)}},x.render=function(){var p=this,_=this.props,E=_.res,I=E===void 0?1:E,O=_.value,M=_.dotsize,D=M===void 0?f:M,A=g(_,["res","value","dotsize"]),B=l(O),U=B[0],L=B[1];return(0,e.jsx)("canvas",m({ref:this.canvasRef,width:U*D||300,height:L*D||300},A,{onClick:function(k){return p.clickwrapper(k)},children:"Canvas failed to render."}))},h}(a.Component),l=function(u){var h=u.length,x=h!==0?u[0].length:0;return[h,x]},c=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=f,_=l(j.grid),E=_[0],I=_[1];return(0,e.jsx)(o.p8,{width:Math.min(700,E*p+72),height:Math.min(700,I*p+72),children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(r.az,{textAlign:"center",children:[(0,e.jsx)(v,{value:j.grid,dotsize:p,onCanvasClick:function(O,M){return x("paint",{x:O,y:M})}}),(0,e.jsxs)(r.az,{children:[!j.finalized&&(0,e.jsx)(r.$n.Confirm,{onClick:function(){return x("finalize")},content:"Finalize"}),"\xA0",j.name]})]})})})}},76322:function(S,y,t){"use strict";t.r(y),t.d(y,{CasinoPrizeDispenserCh:function(){return d}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905);function m(){return m=Object.assign||function(c){for(var u=1;u<arguments.length;u++){var h=arguments[u];for(var x in h)Object.prototype.hasOwnProperty.call(h,x)&&(c[x]=h[x])}return c},m.apply(this,arguments)}function b(c,u){if(c==null)return{};var h={},x=Object.keys(c),j,p;for(p=0;p<x.length;p++)j=x[p],!(u.indexOf(j)>=0)&&(h[j]=c[j]);return h}var g={Alphabetical:function(c,u){return c-u},"By availability":function(c,u){return-(c.affordable-u.affordable)},"By price":function(c,u){return c.price-u.price}},d=function(){return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{}),(0,e.jsx)(v,{})]})})})},f=function(c){var u=(0,n.Ul)("search",""),h=u[0],x=u[1],j=(0,n.Ul)("sort",""),p=j[0],_=j[1],E=(0,n.Ul)("descending",!1),I=E[0],O=E[1];return(0,e.jsx)(r.az,{mb:"0.5rem",children:(0,e.jsxs)(r.so,{width:"100%",children:[(0,e.jsx)(r.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(M,D){return x(D)}})}),(0,e.jsx)(r.so.Item,{basis:"30%",children:(0,e.jsx)(r.ms,{selected:"Alphabetical",options:Object.keys(g),width:"100%",lineHeight:"19px",onSelected:function(M){return _(M)}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:I?"arrow-down":"arrow-up",height:"19px",tooltip:I?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return O(!I)}})})]})})},v=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.points,p=x.items,_=(0,n.Ul)("search",""),E=_[0],I=_[1],O=(0,n.Ul)("sort","Alphabetical"),M=O[0],D=O[1],A=(0,n.Ul)("descending",!1),B=A[0],U=A[1],L=(0,a.XZ)(E,function(V){return V[0]}),k=!1,Y=Object.entries(p).map(function(V,H){var N=Object.entries(V[1]).filter(L).map(function(q){return q[1].affordable=j>=q[1].price,q[1]}).sort(g[M]);if(N.length!==0)return B&&(N=N.reverse()),k=!0,(0,e.jsx)(l,{title:V[0],items:N},V[0])});return(0,e.jsx)(r.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.wn,{children:k?Y:(0,e.jsx)(r.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=c.title,p=c.items,_=b(c,["title","items"]);return(0,e.jsx)(r.Nt,m({open:!0,title:j},_,{children:p.map(function(E){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:E.name}),(0,e.jsx)(r.$n,{content:E.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return h("purchase",{cat:j,name:E.name,price:E.price,restriction:E.restriction})}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]},E.name)})}))}},36136:function(S,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return b}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},b=function(v){var l=function(B){I(B)},c=(0,n.Oc)(),u=c.act,h=c.data,x=h.personalVisibility,j=h.personalTag,p=h.personalErpTag,_=(0,a.useState)(null),E=_[0],I=_[1],O=(0,a.useState)(!1),M=O[0],D=O[1];return(0,e.jsx)(o.p8,{width:640,height:480,resizeable:!0,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:E&&(0,e.jsx)(g,{overlay:E,onOverlay:l})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:M?"toggle-on":"toggle-off",selected:M,content:M?"On":"Off",onClick:function(){return D(!M)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:x?"Shown":"Not Shown",onClick:function(){return u("setVisible",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return u("setTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:p,onClick:function(){return u("setErpTag",{overwrite_prefs:M})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return u("editAd",{overwrite_prefs:M})}})})]})}),(0,e.jsx)(d,{onOverlay:l})]})})})},g=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:m(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.ooc_notes||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},d=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.directory,x=(0,a.useState)("name"),j=x[0],p=x[1],_=(0,a.useState)("name"),E=_[0],I=_[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return c("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(f,{id:"name",children:"Name"}),(0,e.jsx)(f,{id:"species",children:"Species"}),(0,e.jsx)(f,{id:"tag",children:"Vore Tag"}),(0,e.jsx)(f,{id:"erptag",children:"ERP Tag"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),h.sort(function(O,M){var D=E?1:-1;return O[j].localeCompare(M[j])*D}).map(function(O,M){return(0,e.jsxs)(r.XI.Row,{backgroundColor:m(O.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:O.name}),(0,e.jsx)(r.XI.Cell,{children:O.species}),(0,e.jsx)(r.XI.Cell,{children:O.tag}),(0,e.jsx)(r.XI.Cell,{children:O.erptag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(O)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},M)})]})})},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=v.id,x=v.children,j=(0,a.useState)("name"),p=j[0],_=j[1],E=(0,a.useState)("name"),I=E[0],O=E[1];return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:p!==h&&"transparent",onClick:function(){p===h?O(!I):(_(h),O(!0))},children:[x,p===h&&(0,e.jsx)(r.In,{name:I?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},98875:function(S,y,t){"use strict";t.r(y),t.d(y,{CheckboxInput:function(){return f}});var e=t(88095),a=t(33854),n=t(44583),r=t(4413),o=t(92514),m=t(86808),b=t(84905),g=t(12035),d=t(18513),f=function(v){var l=(0,r.Oc)().data,c=l.items,u=c===void 0?[]:c,h=l.min_checked,x=l.max_checked,j=l.message,p=l.timeout,_=l.title,E=(0,n.useState)([]),I=E[0],O=E[1],M=(0,n.useState)(""),D=M[0],A=M[1],B=(0,a.XZ)(D,function(k){return k}),U=u.filter(B),L=function(k){var Y=I.includes(k)?I.filter(function(V){return V!==k}):[].concat(I,[k]);O(Y)};return(0,e.jsxs)(b.p8,{title:_,width:425,height:300,children:[!!p&&(0,e.jsx)(d.Loader,{value:p}),(0,e.jsx)(b.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsxs)(o.IC,{info:!0,textAlign:"center",children:[(0,a.jT)(j)," ",h>0&&" (Min: "+h+")",x<50&&" (Max: "+x+")"]})}),(0,e.jsx)(o.BJ.Item,{grow:!0,mt:0,children:(0,e.jsx)(o.wn,{fill:!0,scrollable:!0,children:(0,e.jsx)(o.XI,{children:U.map(function(k,Y){return(0,e.jsx)(m.Hj,{className:"candystripe",children:(0,e.jsx)(m.nA,{children:(0,e.jsx)(o.$n.Checkbox,{checked:I.includes(k),disabled:I.length>=x&&!I.includes(k),fluid:!0,onClick:function(){return L(k)},children:k})})},Y)})})})}),(0,e.jsxs)(o.BJ,{m:1,mb:0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.m_,{content:"Search",position:"bottom",children:(0,e.jsx)(o.In,{name:"search",mt:.5})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.pd,{fluid:!0,value:D,onInput:function(k,Y){return A(Y)}})})]}),(0,e.jsx)(o.BJ.Item,{mt:.7,children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(g.InputButtons,{input:I})})})]})})]})}},6908:function(S,y,t){"use strict";t.r(y),t.d(y,{ChemDispenser:function(){return g}});var e=t(88095),a=t(4413),n=t(92514),r=t(62386),o=t(84905),m=[5,10,20,30,40,60],b=[1,5,10],g=function(l){return(0,e.jsx)(o.p8,{width:390,height:655,children:(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(d,{}),(0,e.jsx)(f,{}),(0,e.jsx)(v,{})]})})},d=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.amount;return(0,e.jsx)(n.wn,{title:"Settings",flex:"content",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dispense",verticalAlign:"middle",children:m.map(function(j,p){return(0,e.jsx)(n.$n,{textAlign:"center",selected:x===j,content:j+"u",m:"0",onClick:function(){return u("amount",{amount:j})}},p)})}),(0,e.jsx)(n.Ki.Item,{label:"Custom Amount",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:x,minValue:1,maxValue:120,onDrag:function(j,p){return u("amount",{amount:p})}})})]})})},f=function(l){for(var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.chemicals,j=x===void 0?[]:x,p=[],_=0;_<(j.length+1)%3;_++)p.push(!0);return(0,e.jsx)(n.wn,{title:h.glass?"Drink Dispenser":"Chemical Dispenser",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[j.map(function(E,I){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",content:E.title+" ("+E.amount+")",onClick:function(){return u("dispense",{reagent:E.id})}})},I)}),p.map(function(E,I){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},I)})]})})},v=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.isBeakerLoaded,j=h.beakerCurrentVolume,p=h.beakerMaxVolume,_=h.beakerContents,E=_===void 0?[]:_;return(0,e.jsx)(n.wn,{title:"Beaker",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!x&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[j," / ",p," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!x,onClick:function(){return u("ejectBeaker")}})]}),children:(0,e.jsx)(r.BeakerContents,{beakerLoaded:x,beakerContents:E,buttons:function(I){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Isolate",icon:"compress-arrows-alt",onClick:function(){return u("remove",{reagent:I.id,amount:-1})}}),b.map(function(O,M){return(0,e.jsx)(n.$n,{content:O,onClick:function(){return u("remove",{reagent:I.id,amount:O})}},M)}),(0,e.jsx)(n.$n,{content:"ALL",onClick:function(){return u("remove",{reagent:I.id,amount:I.volume})}})]})}})})}},75191:function(S,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return f}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62386),m=t(5425),b=[1,5,10,30,60],g=null,d=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=j.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!E.condi&&(0,e.jsx)(n.$n,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){return _("print",{idx:I.idx,beaker:j.args.beaker})}})]})})})},f=function(j){var p=(0,a.Oc)().data,_=p.condi,E=p.beaker,I=p.beaker_reagents,O=I===void 0?[]:I,M=p.buffer_reagents,D=M===void 0?[]:M,A=p.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(m.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:E,beakerReagents:O,bufferNonEmpty:D.length>0}),(0,e.jsx)(l,{mode:A,bufferReagents:D}),(0,e.jsx)(c,{isCondiment:_,bufferNonEmpty:D.length>0}),(0,e.jsx)(x,{})," "]})]})},v=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=j.beaker,O=j.beakerReagents,M=j.bufferNonEmpty,D=M?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:D,children:I?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(A,B){return(0,e.jsxs)(n.az,{mb:B<O.length-1&&"2px",children:[(0,e.jsx)(n.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,m.modalOpen)("analyze",{idx:B+1,beaker:1})}}),b.map(function(U,L){return(0,e.jsx)(n.$n,{content:U,mb:"0",onClick:function(){return _("add",{id:A.id,amount:U})}},L)}),(0,e.jsx)(n.$n,{content:"All",mb:"0",onClick:function(){return _("add",{id:A.id,amount:A.volume})}}),(0,e.jsx)(n.$n,{content:"Custom..",mb:"0",onClick:function(){return(0,m.modalOpen)("addcustom",{id:A.id})}})]})}}):(0,e.jsx)(n.az,{color:"label",children:"No beaker loaded."})})},l=function(j){var p=(0,a.Oc)().act,_=j.mode,E=j.bufferReagents,I=E===void 0?[]:E;return(0,e.jsx)(n.wn,{title:"Buffer",buttons:(0,e.jsxs)(n.az,{color:"label",children:["Transferring to\xA0",(0,e.jsx)(n.$n,{icon:_?"flask":"trash",color:!_&&"bad",content:_?"Beaker":"Disposal",onClick:function(){return p("toggle")}})]}),children:I.length>0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(O,M){return(0,e.jsxs)(n.az,{mb:M<I.length-1&&"2px",children:[(0,e.jsx)(n.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,m.modalOpen)("analyze",{idx:M+1,beaker:0})}}),b.map(function(D,A){return(0,e.jsx)(n.$n,{content:D,mb:"0",onClick:function(){return p("remove",{id:O.id,amount:D})}},A)}),(0,e.jsx)(n.$n,{content:"All",mb:"0",onClick:function(){return p("remove",{id:O.id,amount:O.volume})}}),(0,e.jsx)(n.$n,{content:"Custom..",mb:"0",onClick:function(){return(0,m.modalOpen)("removecustom",{id:O.id})}})]})}}):(0,e.jsx)(n.az,{color:"label",children:"Buffer is empty."})})},c=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return j.bufferNonEmpty?(0,e.jsx)(n.wn,{title:"Production",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}}),children:j.isCondiment?(0,e.jsx)(h,{}):(0,e.jsx)(u,{})}):(0,e.jsx)(n.wn,{title:"Production",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}}),children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"tint-slash",mt:"0.5rem",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"Buffer is empty."]})})})},u=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Pills",children:[(0,e.jsx)(n.$n,{icon:"circle",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_pill")}}),(0,e.jsx)(n.$n,{icon:"plus-circle",content:"Multiple",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_pill_multiple")}}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.$n,{onClick:function(){return(0,m.modalOpen)("change_pill_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px;",height:"16px",verticalAlign:"middle;",background:"url(pill"+E.pillsprite+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]}),(0,e.jsxs)(n.Ki.Item,{label:"Patches",children:[(0,e.jsx)(n.$n,{icon:"square",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_patch")}}),(0,e.jsx)(n.$n,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,m.modalOpen)("create_patch_multiple")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Bottle",children:[(0,e.jsx)(n.$n,{icon:"wine-bottle",content:"Create bottle (60u max)",mr:"0.5rem",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_bottle")}}),(0,e.jsx)(n.$n,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,m.modalOpen)("create_bottle_multiple")}}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.$n,{mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("change_bottle_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",background:"url(bottle-"+E.bottlesprite+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]})]})},h=function(j){var p=(0,a.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_condi_pack")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"wine-bottle",content:"Create bottle (60u max)",mb:"0",onClick:function(){return p("create_condi_bottle")}})]})},x=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return E.loaded_pill_bottle?(0,e.jsxs)(n.wn,{title:"Pill Bottle Customization",children:[(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,content:"Customize Bottle Color",onClick:function(){return(0,m.modalOpen)("change_pill_bottle_style")}}),(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"None loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}})]}):(0,e.jsx)(n.wn,{title:"Pill Bottle Customization",children:(0,e.jsx)(n.az,{color:"label",children:"None loaded."})})};(0,m.modalRegisterBodyOverride)("analyze",d)},38880:function(S,y,t){"use strict";t.r(y),t.d(y,{ClawMachine:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.wintick,v=d.instructions,l=d.gameStatus,c=d.winscreen,u;return l==="CLAWMACHINE_NEW"?u=(0,e.jsxs)(n.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Pay to Play!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),v,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Start",onClick:function(){return g("newgame")}})]}):l==="CLAWMACHINE_END"?u=(0,e.jsxs)(n.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),(0,e.jsx)("b",{children:"Thank you for playing!"})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{}),c,(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Close",onClick:function(){return g("return")}})]}):l==="CLAWMACHINE_ON"&&(u=(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[1,7],good:[8,1/0]},value:d.wintick,minValue:0,maxValue:10})})}),(0,e.jsxs)(n.az,{align:"center",children:[(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{}),v,(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("hr",{})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Up",onClick:function(){return g("pointless")}}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Left",onClick:function(){return g("pointless")}}),(0,e.jsx)(n.$n,{content:"Right",onClick:function(){return g("pointless")}}),(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Down",onClick:function(){return g("pointless")}})]})]})),(0,e.jsx)(r.p8,{children:(0,e.jsx)("center",{children:u})})}},8412:function(S,y,t){"use strict";t.r(y),t.d(y,{Cleanbot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.open,l=d.locked,c=d.version,u=d.blood,h=d.patrol,x=d.vocal,j=d.wet_floors,p=d.spray_blood,_=d.rgbpanel,E=d.red_switch,I=d.green_switch,O=d.blue_switch;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Cleaner "+c,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,onClick:function(){return g("start")},children:f?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood",children:(0,e.jsx)(n.$n,{fluid:!0,icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){return g("blood")},children:u?"Clean":"Ignore"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return g("vocal")},children:x?"On":"Off"})})]})})||null,!l&&v&&(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:_&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{fontSize:5.39,icon:E?"toggle-on":"toggle-off",backgroundColor:E?"red":"maroon",onClick:function(){return g("red_switch")}}),(0,e.jsx)(n.$n,{fontSize:5.39,icon:I?"toggle-on":"toggle-off",backgroundColor:I?"green":"darkgreen",onClick:function(){return g("green_switch")}}),(0,e.jsx)(n.$n,{fontSize:5.39,icon:O?"toggle-on":"toggle-off",backgroundColor:O?"blue":"darkblue",onClick:function(){return g("blue_switch")}})]})||(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Odd Looking Screw Twiddled",children:(0,e.jsx)(n.$n,{fluid:!0,selected:j,onClick:function(){return g("wet_floors")},icon:"screwdriver",children:j?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Weird Button Pressed",children:(0,e.jsx)(n.$n,{fluid:!0,color:"brown",selected:p,onClick:function(){return g("spray_blood")},icon:"screwdriver",children:p?"Yes":"No"})})]})})})||null]})})}},54983:function(S,y,t){"use strict";t.r(y),t.d(y,{CloningConsole:function(){return f}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(1568),m=t(5425),b=t(84905);function g(){return g=Object.assign||function(j){for(var p=1;p<arguments.length;p++){var _=arguments[p];for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(j[E]=_[E])}return j},g.apply(this,arguments)}var d=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=j.args,O=I.activerecord,M=I.realname,D=I.health,A=I.unidentity,B=I.strucenzymes,U=D.split(" - ");return(0,e.jsx)(r.wn,{level:2,m:"-1rem",pb:"1rem",title:"Records of "+M,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:M}),(0,e.jsx)(r.Ki.Item,{label:"Damage",children:U.length>1?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:o.lm.damageType.oxy,inline:!0,children:U[0]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:o.lm.damageType.toxin,inline:!0,children:U[2]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:o.lm.damageType.brute,inline:!0,children:U[3]}),"\xA0|\xA0",(0,e.jsx)(r.az,{color:o.lm.damageType.burn,inline:!0,children:U[1]})]}):(0,e.jsx)(r.az,{color:"bad",children:"Unknown"})}),(0,e.jsx)(r.Ki.Item,{label:"UI",className:"LabeledList__breakContents",children:A}),(0,e.jsx)(r.Ki.Item,{label:"SE",className:"LabeledList__breakContents",children:B}),(0,e.jsxs)(r.Ki.Item,{label:"Disk",children:[(0,e.jsx)(r.$n.Confirm,{disabled:!E.disk,icon:"arrow-circle-down",content:"Import",onClick:function(){return _("disk",{option:"load"})}}),(0,e.jsx)(r.$n,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export UI",onClick:function(){return _("disk",{option:"save",savetype:"ui"})}}),(0,e.jsx)(r.$n,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export UI and UE",onClick:function(){return _("disk",{option:"save",savetype:"ue"})}}),(0,e.jsx)(r.$n,{disabled:!E.disk,icon:"arrow-circle-up",content:"Export SE",onClick:function(){return _("disk",{option:"save",savetype:"se"})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!E.podready,icon:"user-plus",content:"Clone",onClick:function(){return _("clone",{ref:O})}}),(0,e.jsx)(r.$n,{icon:"trash",content:"Delete",onClick:function(){return _("del_rec")}})]})]})})},f=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.menu;return(0,m.modalRegisterBodyOverride)("view_rec",d),(0,e.jsxs)(b.p8,{children:[(0,e.jsx)(m.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsxs)(b.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(h,{}),(0,e.jsx)(x,{}),(0,e.jsx)(v,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(l,{})})]})]})},v=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:I===1,icon:"home",onClick:function(){return _("menu",{num:1})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:I===2,icon:"folder",onClick:function(){return _("menu",{num:2})},children:"Records"})]})},l=function(j){var p=(0,n.Oc)().data,_=p.menu,E;return _===1?E=(0,e.jsx)(c,{}):_===2&&(E=(0,e.jsx)(u,{})),E},c=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.loading,O=E.scantemp,M=E.occupant,D=E.locked,A=E.can_brainscan,B=E.scan_mode,U=E.numberofpods,L=E.pods,k=E.selected_pod,Y=D&&!!M;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Scanner",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Scanner Lock:\xA0"}),(0,e.jsx)(r.$n,{disabled:!M,selected:Y,icon:Y?"toggle-on":"toggle-off",content:Y?"Engaged":"Disengaged",onClick:function(){return _("lock")}}),(0,e.jsx)(r.$n,{disabled:Y||!M,icon:"user-slash",content:"Eject Occupant",onClick:function(){return _("eject")}})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Status",children:I?(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"spinner",spin:!0}),"\xA0 Scanning..."]}):(0,e.jsx)(r.az,{color:O.color,children:O.text})}),!!A&&(0,e.jsx)(r.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(r.$n,{icon:B?"brain":"male",content:B?"Brain":"Body",onClick:function(){return _("toggle_mode")}})})]}),(0,e.jsx)(r.$n,{disabled:!M||I,icon:"user",content:"Scan Occupant",mt:"0.5rem",mb:"0",onClick:function(){return _("scan")}})]}),(0,e.jsx)(r.wn,{title:"Pods",level:"2",children:U?L.map(function(V,H){var N;return V.status==="cloning"?N=(0,e.jsx)(r.z2,{min:"0",max:"100",value:V.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,a.LI)(V.progress,0)+"%"})}):V.status==="mess"?N=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):N=(0,e.jsx)(r.$n,{selected:k===V.pod,icon:k===V.pod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return _("selectpod",{ref:V.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+V.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsxs)(r.az,{color:"label",children:["Pod #",H+1]}),(0,e.jsxs)(r.az,{bold:!0,color:V.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:V.biomass>=150?"circle":"circle-o"}),"\xA0",V.biomass]}),N]},H)}):(0,e.jsx)(r.az,{color:"bad",children:"No pods detected. Unable to clone."})})]})},u=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.records;return I.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:I.map(function(O,M){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:O.realname,onClick:function(){return _("view_rec",{ref:O.record})}},M)})}):(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},h=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.temp;if(!(!I||!I.text||I.text.length<=0)){var O,M=(O={},O[I.style]=!0,O);return(0,e.jsxs)(r.IC,g({},M,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:I.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return _("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},x=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.scanner,O=E.numberofpods,M=E.autoallowed,D=E.autoprocess,A=E.disk;return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[!!M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Auto-processing:\xA0"}),(0,e.jsx)(r.$n,{selected:D,icon:D?"toggle-on":"toggle-off",content:D?"Enabled":"Disabled",onClick:function(){return _("autoprocess",{on:D?0:1})}})]}),(0,e.jsx)(r.$n,{disabled:!A,icon:"eject",content:"Eject Disk",onClick:function(){return _("disk",{option:"eject"})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scanner",children:I?(0,e.jsx)(r.az,{color:"good",children:"Connected"}):(0,e.jsx)(r.az,{color:"bad",children:"Not connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Pods",children:O?(0,e.jsxs)(r.az,{color:"good",children:[O," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},40200:function(S,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.items,v=d.activecolor,l=Math.min(270+f.length*15,600);return(0,e.jsx)(r.p8,{width:300,height:l,children:(0,e.jsx)(r.p8.Content,{children:f.length&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Paint",children:(0,e.jsxs)(n.so,{justify:"center",align:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.az,{backgroundColor:v,width:"120px",height:"120px"})}),(0,e.jsxs)(n.so.Item,{basis:"50% ",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"eye-dropper",onClick:function(){return g("select")},children:"Select Color"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"fill-drip",onClick:function(){return g("paint")},children:"Paint Items"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"tint-slash",onClick:function(){return g("clear")},children:"Remove Paintjob"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return g("eject")},children:"Eject Items"})]})]})}),(0,e.jsx)(n.wn,{title:"Items",children:f.map(function(c,u){return(0,e.jsxs)(n.az,{children:["#",u+1,": ",c]},u)})})]})||(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"No items inserted."})})})})}},48022:function(S,y,t){"use strict";t.r(y),t.d(y,{CommunicationsConsole:function(){return o},CommunicationsConsoleContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(v){return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.menu_state,x=(0,e.jsxs)(n.az,{color:"bad",children:["ERRROR. Unknown menu_state: ",h,"Please report this to NT Technical Support."]});return h===1?x=(0,e.jsx)(b,{}):h===2?x=(0,e.jsx)(f,{}):h===3&&(x=(0,e.jsx)(d,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g,{}),x]})},b=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.messages,x=u.msg_cooldown,j=u.emagged,p=u.cc_cooldown,_=u.str_security_level,E=u.levels,I=u.authmax,O=u.security_level,M=u.security_level_color,D=u.authenticated,A=u.atcsquelch,B=u.boss_short,U="View ("+h.length+")",L="Make Priority Announcement";x>0&&(L+=" ("+x+"s)");var k=j?"Message [UNKNOWN]":"Message "+B;p>0&&(k+=" ("+p+"s)");var Y=_,V=E.map(function(H){return(0,e.jsx)(n.$n,{icon:H.icon,content:H.name,disabled:!D,selected:H.id===O,onClick:function(){return c("newalertlevel",{level:H.id})}},H.name)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Site Manager-Only Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Announcement",children:(0,e.jsx)(n.$n,{icon:"bullhorn",content:L,disabled:!I||x>0,onClick:function(){return c("announce")}})}),!!j&&(0,e.jsxs)(n.Ki.Item,{label:"Transmit",children:[(0,e.jsx)(n.$n,{icon:"broadcast-tower",color:"red",content:k,disabled:!I||p>0,onClick:function(){return c("MessageSyndicate")}}),(0,e.jsx)(n.$n,{icon:"sync-alt",content:"Reset Relays",disabled:!I,onClick:function(){return c("RestoreBackup")}})]})||(0,e.jsx)(n.Ki.Item,{label:"Transmit",children:(0,e.jsx)(n.$n,{icon:"broadcast-tower",content:k,disabled:!I||p>0,onClick:function(){return c("MessageCentCom")}})})]})}),(0,e.jsx)(n.wn,{title:"Command Staff Actions",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Alert",color:M,children:Y}),(0,e.jsx)(n.Ki.Item,{label:"Change Alert",children:V}),(0,e.jsx)(n.Ki.Item,{label:"Displays",children:(0,e.jsx)(n.$n,{icon:"tv",content:"Change Status Displays",disabled:!D,onClick:function(){return c("status")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Messages",children:(0,e.jsx)(n.$n,{icon:"folder-open",content:U,disabled:!D,onClick:function(){return c("messagelist")}})}),(0,e.jsx)(n.Ki.Item,{label:"Misc",children:(0,e.jsx)(n.$n,{icon:"microphone",content:A?"ATC Relay Disabled":"ATC Relay Enabled",disabled:!D,selected:A,onClick:function(){return c("toggleatc")}})})]})})]})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.authenticated,x=u.is_ai,j=u.esc_status,p=u.esc_callable,_=u.esc_recallable,E;return h?x?E="AI":h===1?E="Command":h===2?E="Site Director":E="ERROR: Report This Bug!":E="Not Logged In",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Authentication",children:(0,e.jsx)(n.Ki,{children:x&&(0,e.jsx)(n.Ki.Item,{label:"Access Level",children:"AI"})||(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:h?"sign-out-alt":"id-card",selected:h,content:h?"Log Out ("+E+")":"Log In",onClick:function(){return c("auth")}})})})}),(0,e.jsx)(n.wn,{title:"Escape Shuttle",children:(0,e.jsxs)(n.Ki,{children:[!!j&&(0,e.jsx)(n.Ki.Item,{label:"Status",children:j}),!!p&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"rocket",content:"Call Shuttle",disabled:!h,onClick:function(){return c("callshuttle")}})}),!!_&&(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"times",content:"Recall Shuttle",disabled:!h||x,onClick:function(){return c("cancelshuttle")}})})]})})]})},d=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.message_current,x=u.message_deletion_allowed,j=u.authenticated,p=u.messages;if(h)return(0,e.jsx)(n.wn,{title:h.title,buttons:(0,e.jsx)(n.$n,{icon:"times",content:"Return To Message List",disabled:!j,onClick:function(){return c("messagelist")}}),children:(0,e.jsx)(n.az,{children:h.contents})});var _=p.map(function(E){return(0,e.jsxs)(n.Ki.Item,{label:E.title,children:[(0,e.jsx)(n.$n,{icon:"eye",content:"View",disabled:!j||h&&h.title===E.title,onClick:function(){return c("messagelist",{msgid:E.id})}}),(0,e.jsx)(n.$n,{icon:"times",content:"Delete",disabled:!j||!x,onClick:function(){return c("delmessage",{msgid:E.id})}})]},E.id)});return(0,e.jsx)(n.wn,{title:"Messages Received",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return c("main")}}),children:(0,e.jsx)(n.Ki,{children:p.length&&_||(0,e.jsx)(n.Ki.Item,{label:"404",color:"bad",children:"No messages."})})})},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.stat_display,x=u.authenticated,j=h.presets.map(function(p){return(0,e.jsx)(n.$n,{content:p.label,selected:p.name===h.type,disabled:!x,onClick:function(){return c("setstat",{statdisp:p.name})}},p.name)});return(0,e.jsx)(n.wn,{title:"Modify Status Screens",buttons:(0,e.jsx)(n.$n,{icon:"arrow-circle-left",content:"Back To Main Menu",onClick:function(){return c("main")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Presets",children:j}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 1",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:h.line_1,disabled:!x,onClick:function(){return c("setmsg1")}})}),(0,e.jsx)(n.Ki.Item,{label:"Message Line 2",children:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:h.line_2,disabled:!x,onClick:function(){return c("setmsg2")}})})]})})}},80273:function(S,y,t){"use strict";t.r(y),t.d(y,{Communicator:function(){return E}});var e=t(88095),a=t(11358),n=t(33854),r=t(44583),o=t(4413),m=t(92514),b=t(84905),g=t(41608),d=1,f=2,v=3,l=4,c=40,u=5,h=6,x=7,j=8,p=9,_={},E=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.currentTab,ye=pe.video_comm,Te=pe.mapRef,Ke=(0,r.useState)(0),$e=Ke[0],We=Ke[1];return(0,e.jsx)(b.p8,{width:475,height:700,children:(0,e.jsxs)(b.p8.Content,{children:[ye&&(0,e.jsx)(I,{videoSetting:$e,setVideoSetting:We}),(!ye||$e!==0)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M,{}),(0,e.jsx)(m.az,{height:"88%",mb:1,style:{"overflow-y":"auto"},children:_[be]||(0,e.jsx)(O,{})}),(0,e.jsx)(D,{videoSetting:$e,setVideoSetting:We})]})]})})},I=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.video_comm,ye=pe.mapRef,Te=he.videoSetting,Ke=he.setVideoSetting;return Te===0?(0,e.jsxs)(m.az,{width:"100%",height:"100%",children:[(0,e.jsx)(m.D1,{width:"100%",height:"95%",params:{id:ye,type:"map"}}),(0,e.jsxs)(m.so,{justify:"space-between",spacing:1,mt:.5,children:[(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Ke(1)}})}),(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return ve("endvideo")}})}),(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return ve("hang_up")}})})]})]}):Te===1?(0,e.jsxs)(m.az,{style:{position:"absolute",right:"5px",bottom:"50px","z-index":1},children:[(0,e.jsx)(m.wn,{p:0,m:0,children:(0,e.jsxs)(m.so,{justify:"space-between",spacing:1,children:[(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-minimize",onClick:function(){return Ke(2)}})}),(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,icon:"window-maximize",onClick:function(){return Ke(0)}})}),(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"video-slash",onClick:function(){return ve("endvideo")}})}),(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.$n,{textAlign:"center",fluid:!0,fontSize:1.5,color:"bad",icon:"phone-slash",onClick:function(){return ve("hang_up")}})})]})}),(0,e.jsx)(m.D1,{width:"200px",height:"200px",params:{id:ye,type:"map"}})]}):null},O=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.currentTab;return(0,e.jsxs)(m.wn,{title:"Error!",children:["You tried to access tab #",be,", but there was no template defined!"]})},M=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.time,ye=pe.connectionStatus,Te=pe.owner,Ke=pe.occupation;return(0,e.jsx)(m.wn,{children:(0,e.jsxs)(m.so,{align:"center",justify:"space-between",children:[(0,e.jsx)(m.so.Item,{color:"average",children:be}),(0,e.jsx)(m.so.Item,{children:(0,e.jsx)(m.In,{color:ye===1?"good":"bad",name:ye===1?"signal":"exclamation-triangle"})}),(0,e.jsx)(m.so.Item,{color:"average",children:(0,n.jT)(Te)}),(0,e.jsx)(m.so.Item,{color:"average",children:(0,n.jT)(Ke)})]})})},D=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.flashlight,ye=he.videoSetting,Te=he.setVideoSetting;return(0,e.jsxs)(m.so,{children:[(0,e.jsx)(m.so.Item,{basis:ye===2?"60%":"80%",children:(0,e.jsx)(m.$n,{p:1,fluid:!0,icon:"home",iconSize:2,textAlign:"center",onClick:function(){return ve("switch_tab",{switch_tab:d})}})}),(0,e.jsx)(m.so.Item,{basis:"20%",children:(0,e.jsx)(m.$n,{icon:"lightbulb",iconSize:2,p:1,fluid:!0,textAlign:"center",selected:be,tooltip:"Flashlight",tooltipPosition:"top",onClick:function(){return ve("Light")}})}),ye===2&&(0,e.jsx)(m.so.Item,{basis:"20%",children:(0,e.jsx)(m.$n,{icon:"video",iconSize:2,p:1,fluid:!0,textAlign:"center",tooltip:"Open Video",tooltipPosition:"top",onClick:function(){return Te(1)}})})]})},A=function(he){var de=(0,o.Oc)().data,ve=de.voice_mobs,pe=de.communicating,be=de.requestsReceived,ye=de.invitesSent,Te=de.video_comm;return!!(he==="Phone"&&(ve.length||pe.length||be.length||ye.length||Te))},B=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.homeScreen;return(0,e.jsx)(m.so,{mt:2,wrap:"wrap",align:"center",justify:"center",children:be.map(function(ye){return(0,e.jsxs)(m.so.Item,{basis:"25%",textAlign:"center",mb:2,children:[(0,e.jsx)(m.$n,{style:{"border-radius":"10%",border:"1px solid #000"},width:"64px",height:"64px",position:"relative",onClick:function(){return ve("switch_tab",{switch_tab:ye.number})},children:(0,e.jsx)(m.In,{spin:A(ye.module),color:A(ye.module)?"bad":null,name:ye.icon,position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(m.az,{children:ye.module})]},ye.number)})})};_[d]=(0,e.jsx)(B,{});var U=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.targetAddress,ye=pe.voice_mobs,Te=pe.communicating,Ke=pe.requestsReceived,$e=pe.invitesSent,We=pe.video_comm,Qe=pe.selfie_mode;return(0,e.jsxs)(m.wn,{title:"Phone",children:[(0,e.jsx)(m.Ki,{children:(0,e.jsx)(m.Ki.Item,{label:"Target EPv2 Address",verticalAlign:"middle",children:(0,e.jsxs)(m.so,{align:"center",children:[(0,e.jsx)(m.so.Item,{grow:1,children:(0,e.jsx)(m.pd,{fluid:!0,value:be,onInput:function(Ye,mt){return ve("write_target_address",{val:mt})}})}),(0,e.jsx)(m.so.Item,{children:(0,e.jsx)(m.$n,{icon:"times",onClick:function(){return ve("clear_target_address")}})})]})})}),(0,e.jsx)(L,{}),(0,e.jsxs)(m.wn,{title:"Connection Management",mt:2,children:[(0,e.jsx)(m.Ki,{children:(0,e.jsx)(m.Ki.Item,{label:"Camera Mode",children:(0,e.jsx)(m.$n,{fluid:!0,content:Qe?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return ve("selfie_mode")}})})}),(0,e.jsx)(m.wn,{title:"External Connections",children:!!ye.length&&(0,e.jsx)(m.Ki,{children:ye.map(function(Ye){return(0,e.jsx)(m.Ki.Item,{label:(0,n.jT)(Ye.name),children:(0,e.jsx)(m.$n,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return ve("disconnect",{disconnect:Ye.true_name})}})},Ye.ref)})})||(0,e.jsx)(m.az,{children:"No connections"})}),(0,e.jsx)(m.wn,{title:"Internal Connections",children:!!Te.length&&(0,e.jsx)(m.XI,{children:Te.map(function(Ye){return(0,e.jsxs)(m.XI.Row,{children:[(0,e.jsx)(m.XI.Cell,{color:"label",children:(0,n.jT)(Ye.name)}),(0,e.jsxs)(m.XI.Cell,{children:[(0,e.jsx)(m.$n,{icon:"times",color:"bad",content:"Disconnect",onClick:function(){return ve("disconnect",{disconnect:Ye.true_name})}}),We===null&&(0,e.jsx)(m.$n,{icon:"camera",content:"Start Video",onClick:function(){return ve("startvideo",{startvideo:Ye.ref})}})||We===Ye.ref&&(0,e.jsx)(m.$n,{icon:"times",color:"bad",content:"Stop Video",onClick:function(){return ve("endvideo",{endvideo:Ye.true_name})}})]})]},Ye.address)})})||(0,e.jsx)(m.az,{children:"No connections"})}),(0,e.jsx)(m.wn,{title:"Requests Received",children:!!Ke.length&&(0,e.jsx)(m.Ki,{children:Ke.map(function(Ye){return(0,e.jsxs)(m.Ki.Item,{label:(0,n.jT)(Ye.name),children:[(0,e.jsx)(m.az,{children:(0,n.jT)(Ye.address)}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.$n,{icon:"signal",content:"Accept",onClick:function(){return ve("dial",{dial:Ye.address})}}),(0,e.jsx)(m.$n,{icon:"times",content:"Decline",onClick:function(){return ve("decline",{decline:Ye.ref})}})]})]},Ye.address)})})||(0,e.jsx)(m.az,{children:"No requests received."})}),(0,e.jsx)(m.wn,{title:"Invites Sent",children:!!$e.length&&(0,e.jsx)(m.Ki,{children:$e.map(function(Ye){return(0,e.jsxs)(m.Ki.Item,{label:(0,n.jT)(Ye.name),children:[(0,e.jsx)(m.az,{children:(0,n.jT)(Ye.address)}),(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{icon:"pen",onClick:function(){ve("copy",{copy:Ye.address})},content:"Copy"})})]},Ye.address)})})||(0,e.jsx)(m.az,{children:"No invites sent."})})]})]})},L=function(he){for(var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.targetAddress,ye=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],Te=ye.map(function(We){return(0,e.jsx)(m.$n,{content:We,fontSize:2,fluid:!0,onClick:function(){return ve("add_hex",{add_hex:We})}},We)}),Ke=[],$e=0;$e<Te.length;$e+=4)Ke.push((0,e.jsxs)(m.XI.Row,{children:[(0,e.jsx)(m.XI.Cell,{children:Te[$e]}),(0,e.jsx)(m.XI.Cell,{children:Te[$e+1]}),(0,e.jsx)(m.XI.Cell,{children:Te[$e+2]}),(0,e.jsx)(m.XI.Cell,{children:Te[$e+3]})]}));return(0,e.jsx)(m.so,{align:"center",justify:"center",mt:1,children:(0,e.jsxs)(m.so.Item,{children:[(0,e.jsx)(m.XI,{children:Ke}),(0,e.jsxs)(m.so,{width:"100%",justify:"space-between",children:[(0,e.jsxs)(m.so.Item,{basis:"33%",children:[(0,e.jsx)(m.$n,{width:"100%",height:"64px",position:"relative",onClick:function(){return ve("dial",{dial:be})},children:(0,e.jsx)(m.In,{name:"phone",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(m.az,{textAlign:"center",children:"Dial"})]}),(0,e.jsxs)(m.so.Item,{basis:"33%",children:[(0,e.jsx)(m.$n,{width:"100%",height:"64px",position:"relative",onClick:function(){ve("message",{message:be}),ve("switch_tab",{switch_tab:l})},children:(0,e.jsx)(m.In,{name:"comment-alt",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(m.az,{textAlign:"center",children:"Message"})]}),(0,e.jsxs)(m.so.Item,{basis:"33%",children:[(0,e.jsx)(m.$n,{width:"100%",height:"64px",position:"relative",onClick:function(){return ve("hang_up")},children:(0,e.jsx)(m.In,{name:"times",position:"absolute",size:3,top:"25%",left:"25%"})}),(0,e.jsx)(m.az,{textAlign:"center",children:"Hang Up"})]})]})]})})};_[f]=(0,e.jsx)(U,{});var k=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.knownDevices;return(0,e.jsx)(m.wn,{title:"Known Devices",children:be.length&&(0,e.jsx)(m.XI,{children:be.map(function(ye){return(0,e.jsxs)(m.XI.Row,{children:[(0,e.jsx)(m.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:(0,n.jT)(ye.name)}),(0,e.jsxs)(m.XI.Cell,{children:[(0,e.jsx)(m.az,{children:ye.address}),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.$n,{icon:"pen",onClick:function(){ve("copy",{copy:ye.address}),ve("switch_tab",{switch_tab:f})},content:"Copy"}),(0,e.jsx)(m.$n,{icon:"phone",onClick:function(){ve("dial",{dial:ye.address}),ve("copy",{copy:ye.address}),ve("switch_tab",{switch_tab:f})},content:"Call"}),(0,e.jsx)(m.$n,{icon:"comment-alt",onClick:function(){ve("copy",{copy:ye.address}),ve("copy_name",{copy_name:ye.name}),ve("switch_tab",{switch_tab:c})},content:"Msg"})]})]})]},ye.address)})})||(0,e.jsx)(m.az,{children:"No devices detected on your local NTNet region."})})};_[v]=(0,e.jsx)(k,{});var Y=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.imContacts;return(0,e.jsx)(m.wn,{title:"Messaging",children:be.length&&(0,e.jsx)(m.XI,{children:be.map(function(ye){return(0,e.jsxs)(m.XI.Row,{children:[(0,e.jsxs)(m.XI.Cell,{color:"label",style:{"word-break":"break-all"},children:[(0,n.jT)(ye.name),":"]}),(0,e.jsxs)(m.XI.Cell,{children:[(0,e.jsx)(m.az,{children:ye.address}),(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){ve("copy",{copy:ye.address}),ve("copy_name",{copy_name:ye.name}),ve("switch_tab",{switch_tab:c})},content:"View Conversation"})})]})]},ye.address)})})||(0,e.jsxs)(m.az,{children:["You haven't sent any messages yet.",(0,e.jsx)(m.$n,{fluid:!0,icon:"user",onClick:function(){return ve("switch_tab",{switch_tab:v})},content:"Contacts"})]})})};_[l]=(0,e.jsx)(Y,{});var V=function(he,de){return he.address!==de},H=function(he,de,ve){return(he+de).length>ve?de.length>ve?de.slice(0,ve)+"...":de:he+de},N=function(he,de,ve,pe){if(ve<0||ve>pe.length)return V(he,de)?"TinderMessage_First_Sent":"TinderMessage_First_Received";var be=V(he,de),ye=V(pe[ve],de);return be&&ye?"TinderMessage_Subsequent_Sent":!be&&!ye?"TinderMessage_Subsequent_Received":be?"TinderMessage_First_Sent":"TinderMessage_First_Received"},q=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.targetAddressName,ye=pe.targetAddress,Te=pe.imList,Ke=(0,r.useState)(!1),$e=Ke[0],We=Ke[1];return $e?(0,e.jsxs)(m.wn,{title:(0,e.jsx)(m.az,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"90%",children:H("Conversation with ",(0,n.jT)(be),30)}),buttons:(0,e.jsx)(m.$n,{icon:"eye",selected:$e,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return We(!$e)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(m.wn,{style:{height:"95%","overflow-y":"auto"},children:Te.map(function(Qe,Ye){return(Qe.to_address===ye||Qe.address===ye)&&(0,e.jsxs)(m.az,{className:V(Qe,ye)?"ClassicMessage_Sent":"ClassicMessage_Received",children:[V(Qe,ye)?"You":"Them",": ",Qe.im]},Ye)})}),(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return ve("message",{message:ye})},content:"Message"})]}):(0,e.jsxs)(m.wn,{title:(0,e.jsx)(m.az,{inline:!0,style:{"white-space":"nowrap","overflow-x":"hidden"},width:"100%",children:H("Conversation with ",(0,n.jT)(be),30)}),buttons:(0,e.jsx)(m.$n,{icon:"eye",selected:$e,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return We(!$e)}}),height:"100%",stretchContents:!0,children:[(0,e.jsx)(m.wn,{style:{height:"95%","overflow-y":"auto"},children:Te.map(function(Qe,Ye,mt){return(Qe.to_address===ye||Qe.address===ye)&&(0,e.jsx)(m.az,{textAlign:V(Qe,ye)?"right":"left",mb:1,children:(0,e.jsx)(m.az,{maxWidth:"75%",className:N(Qe,ye,Ye-1,mt),inline:!0,children:(0,n.jT)(Qe.im)})},Ye)})}),(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return ve("message",{message:ye})},content:"Message"})]})};_[c]=(0,e.jsx)(q,{});var G=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.feeds,ye=pe.target_feed;return(0,e.jsx)(m.wn,{title:"News",stretchContents:!0,height:"100%",children:!be.length&&(0,e.jsx)(m.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||ye&&(0,e.jsx)(Q,{})||(0,e.jsx)(F,{})})},Q=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.target_feed;return(0,e.jsx)(m.wn,{title:(0,n.jT)(be.name)+" by "+(0,n.jT)(be.author),buttons:(0,e.jsx)(m.$n,{content:"Back",icon:"chevron-up",onClick:function(){return ve("newsfeed",{newsfeed:null})}}),children:be.messages.map(function(ye){return(0,e.jsxs)(m.wn,{children:["- ",(0,n.jT)(ye.body),!!ye.img&&(0,e.jsxs)(m.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+ye.img}),(0,n.jT)(ye.caption)||null]}),(0,e.jsxs)(m.az,{color:"grey",children:["[",ye.message_type," by ",(0,n.jT)(ye.author)," -"," ",ye.time_stamp,"]"]})]},ye.ref)})})},F=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.feeds,ye=pe.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.wn,{title:"Recent News",children:(0,e.jsx)(m.wn,{children:ye.map(function(Te){return(0,e.jsxs)(m.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,n.jT)(Te.channel),(0,e.jsx)(m.$n,{ml:1,icon:"chevron-up",onClick:function(){return ve("newsfeed",{newsfeed:Te.index})},content:"Go to"})]}),"- ",(0,n.jT)(Te.body),!!Te.img&&(0,e.jsxs)(m.az,{children:["[image omitted, view story for more details]",Te.caption||null]}),(0,e.jsxs)(m.az,{fontSize:.9,children:["[",Te.message_type," by"," ",(0,e.jsx)(m.az,{inline:!0,color:"average",children:Te.author})," ","- ",Te.time_stamp,"]"]})]},Te.index)})})}),(0,e.jsx)(m.wn,{title:"News Feeds",children:be.map(function(Te){return(0,e.jsx)(m.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return ve("newsfeed",{newsfeed:Te.index})},content:Te.name},Te.index)})})]})};_[u]=(0,e.jsx)(G,{});var Z=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.note;return(0,e.jsx)(m.wn,{title:"Note Keeper",height:"100%",stretchContents:!0,buttons:(0,e.jsx)(m.$n,{icon:"pen",onClick:function(){return ve("edit")},content:"Edit Notes"}),children:(0,e.jsx)(m.wn,{color:"average",width:"100%",height:"100%",style:{"word-break":"break-all","overflow-y":"auto"},children:be})})};_[h]=(0,e.jsx)(Z,{});var oe=function(he,de,ve,pe,be){return he<de?"bad":he<ve||he>pe?"average":he>be?"bad":"good"},le=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.aircontents,ye=pe.weather,Te="\xB0";return(0,e.jsxs)(m.wn,{title:"Weather",children:[(0,e.jsx)(m.wn,{title:"Current Conditions",children:(0,e.jsx)(m.Ki,{children:(0,a.pb)(function(Ke){return Ke.val!=="0"||Ke.entry==="Pressure"||Ke.entry==="Temperature"})(be).map(function(Ke){return(0,e.jsxs)(m.Ki.Item,{label:Ke.entry,color:oe(Ke.val,Ke.bad_low,Ke.poor_low,Ke.poor_high,Ke.bad_high),children:[Ke.val,(0,n.jT)(Ke.units)]},Ke.entry)})})}),(0,e.jsx)(m.wn,{title:"Weather Reports",children:!!ye.length&&(0,e.jsx)(m.Ki,{children:ye.map(function(Ke){return(0,e.jsx)(m.Ki.Item,{label:Ke.Planet,children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Time",children:Ke.Time}),(0,e.jsx)(m.Ki.Item,{label:"Weather",children:(0,n.Sn)(Ke.Weather)}),(0,e.jsxs)(m.Ki.Item,{label:"Temperature",children:["Current: ",Ke.Temperature.toFixed()," ",Te,"C | High:"," ",Ke.High.toFixed()," ",Te,"C | Low: ",Ke.Low.toFixed()," ",Te,"C"]}),(0,e.jsx)(m.Ki.Item,{label:"Wind Direction",children:Ke.WindDir}),(0,e.jsx)(m.Ki.Item,{label:"Wind Speed",children:Ke.WindSpeed}),(0,e.jsx)(m.Ki.Item,{label:"Forecast",children:(0,n.jT)(Ke.Forecast)})]})},Ke.Planet)})})||(0,e.jsx)(m.az,{color:"bad",children:"No weather reports available. Please check back later."})})]})};_[x]=(0,e.jsx)(le,{}),_[j]=(0,e.jsx)(g.CrewManifestContent,{});var ue=function(he){var de=(0,o.Oc)(),ve=de.act,pe=de.data,be=pe.owner,ye=pe.occupation,Te=pe.connectionStatus,Ke=pe.address,$e=pe.visible,We=pe.ring,Qe=pe.selfie_mode;return(0,e.jsx)(m.wn,{title:"Settings",children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Owner",children:(0,e.jsx)(m.$n,{icon:"pen",fluid:!0,content:(0,n.jT)(be),onClick:function(){return ve("rename")}})}),(0,e.jsx)(m.Ki.Item,{label:"Camera Mode",children:(0,e.jsx)(m.$n,{fluid:!0,content:Qe?"Front-facing Camera":"Rear-facing Camera",onClick:function(){return ve("selfie_mode")}})}),(0,e.jsx)(m.Ki.Item,{label:"Occupation",children:(0,n.jT)(ye)}),(0,e.jsx)(m.Ki.Item,{label:"Connection",children:Te===1?(0,e.jsx)(m.az,{color:"good",children:"Connected"}):(0,e.jsx)(m.az,{color:"bad",children:"Disconnected"})}),(0,e.jsx)(m.Ki.Item,{label:"Device EPv2 Address",children:Ke}),(0,e.jsx)(m.Ki.Item,{label:"Visibility",children:(0,e.jsx)(m.$n.Checkbox,{checked:$e,selected:$e,fluid:!0,content:$e?"This device can be seen by other devices.":"This device is invisible to other devices.",onClick:function(){return ve("toggle_visibility")}})}),(0,e.jsxs)(m.Ki.Item,{label:"Ringer",children:[(0,e.jsx)(m.$n.Checkbox,{checked:We,selected:We,fluid:!0,content:We?"Ringer on.":"Ringer off.",onClick:function(){return ve("toggle_ringer")}}),(0,e.jsx)(m.$n,{fluid:!0,content:"Set Ringer Tone",onClick:function(){return ve("set_ringer_tone")}})]})]})})};_[p]=(0,e.jsx)(ue,{})},90734:function(S,y,t){"use strict";t.r(y),t.d(y,{ComputerFabricator:function(){return u}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905);function m(_,E){return E||(E=_.slice(0)),_.raw=E,_}function b(){var _=m(["\n Allows your device to operate without external utility power\n source. Advanced batteries increase battery life.\n "]);return b=function(){return _},_}function g(){var _=m(["\n Stores file on your device. Advanced drives can store more\n files, but use more power, shortening battery life.\n "]);return g=function(){return _},_}function d(){var _=m(["\n Allows your device to wirelessly connect to stationwide NTNet\n network. Basic cards are limited to on-station use, while\n advanced cards can operate anywhere near the station, which\n includes asteroid outposts\n "]);return d=function(){return _},_}function f(){var _=m(["\n A device that allows for various paperwork manipulations,\n such as, scanning of documents or printing new ones.\n This device was certified EcoFriendlyPlus and is capable of\n recycling existing paper for printing purposes.\n "]);return f=function(){return _},_}function v(){var _=m(["\n Adds a secondary RFID card reader, for manipulating or\n reading from a second standard RFID card.\n Please note that a primary card reader is necessary to\n allow the device to read your identification, but one\n is included in the base price.\n "]);return v=function(){return _},_}function l(){var _=m(["\n A component critical for your device's functionality.\n It allows you to run programs from your hard drive.\n Advanced CPUs use more power, but allow you to run\n more programs on background at once.\n "]);return l=function(){return _},_}function c(){var _=m(["\n An advanced wireless power relay that allows your device\n to connect to nearby area power controller to provide\n alternative power source. This component is currently\n unavailable on tablet computers due to size restrictions.\n "]);return c=function(){return _},_}var u=function(_){var E=(0,n.Oc)(),I=E.act,O=E.data;return(0,e.jsx)(o.p8,{title:"Personal Computer Vendor",width:500,height:420,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{italic:!0,fontSize:"20px",children:"Your perfect device, only three steps away..."}),O.state!==0&&(0,e.jsx)(r.$n,{fluid:!0,mb:1,icon:"circle",content:"Clear Order",onClick:function(){return I("clean_order")}}),O.state===0&&(0,e.jsx)(h,{}),O.state===1&&(0,e.jsx)(x,{}),O.state===2&&(0,e.jsx)(j,{}),O.state===3&&(0,e.jsx)(p,{})]})})},h=function(_){var E=(0,n.Oc)(),I=E.act,O=E.data;return(0,e.jsxs)(r.wn,{title:"Step 1",minHeight:"306px",children:[(0,e.jsx)(r.az,{mt:5,bold:!0,textAlign:"center",fontSize:"40px",children:"Choose your Device"}),(0,e.jsx)(r.az,{mt:3,children:(0,e.jsxs)(r.xA,{width:"100%",children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"laptop",content:"Laptop",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"1"})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{fluid:!0,icon:"tablet-alt",content:"Tablet",textAlign:"center",fontSize:"30px",lineHeight:2,onClick:function(){return I("pick_device",{pick:"2"})}})})]})})]})},x=function(_){var E=(0,n.Oc)(),I=E.act,O=E.data;return(0,e.jsxs)(r.wn,{title:"Step 2: Customize your device",minHeight:"282px",buttons:(0,e.jsxs)(r.az,{bold:!0,color:"good",children:[O.totalprice,"\u20AE"]}),children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Battery:",(0,e.jsx)(r.m_,{content:(0,a.c1)(b()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_battery===1,onClick:function(){return I("hw_battery",{battery:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:O.hw_battery===2,onClick:function(){return I("hw_battery",{battery:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:O.hw_battery===3,onClick:function(){return I("hw_battery",{battery:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Hard Drive:",(0,e.jsx)(r.m_,{content:(0,a.c1)(g()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_disk===1,onClick:function(){return I("hw_disk",{disk:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Upgraded",selected:O.hw_disk===2,onClick:function(){return I("hw_disk",{disk:"2"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:O.hw_disk===3,onClick:function(){return I("hw_disk",{disk:"3"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Network Card:",(0,e.jsx)(r.m_,{content:(0,a.c1)(d()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:O.hw_netcard===0,onClick:function(){return I("hw_netcard",{netcard:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_netcard===1,onClick:function(){return I("hw_netcard",{netcard:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:O.hw_netcard===2,onClick:function(){return I("hw_netcard",{netcard:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Nano Printer:",(0,e.jsx)(r.m_,{content:(0,a.c1)(f()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:O.hw_nanoprint===0,onClick:function(){return I("hw_nanoprint",{print:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_nanoprint===1,onClick:function(){return I("hw_nanoprint",{print:"1"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Secondary Card Reader:",(0,e.jsx)(r.m_,{content:(0,a.c1)(v()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:O.hw_card===0,onClick:function(){return I("hw_card",{card:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_card===1,onClick:function(){return I("hw_card",{card:"1"})}})})]}),O.devtype!==2&&(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Processor Unit:",(0,e.jsx)(r.m_,{content:(0,a.c1)(l()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_cpu===1,onClick:function(){return I("hw_cpu",{cpu:"1"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Advanced",selected:O.hw_cpu===2,onClick:function(){return I("hw_cpu",{cpu:"2"})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsxs)(r.XI.Cell,{bold:!0,position:"relative",children:["Tesla Relay:",(0,e.jsx)(r.m_,{content:(0,a.c1)(c()),position:"right"})]}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"None",selected:O.hw_tesla===0,onClick:function(){return I("hw_tesla",{tesla:"0"})}})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.$n,{content:"Standard",selected:O.hw_tesla===1,onClick:function(){return I("hw_tesla",{tesla:"1"})}})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,mt:3,content:"Confirm Order",color:"good",textAlign:"center",fontSize:"18px",lineHeight:2,onClick:function(){return I("confirm_order")}})]})},j=function(_){var E=(0,n.Oc)(),I=E.act,O=E.data;return(0,e.jsxs)(r.wn,{title:"Step 3: Payment",minHeight:"282px",children:[(0,e.jsx)(r.az,{italic:!0,textAlign:"center",fontSize:"20px",children:"Your device is ready for fabrication..."}),(0,e.jsxs)(r.az,{bold:!0,mt:2,textAlign:"center",fontSize:"16px",children:[(0,e.jsx)(r.az,{inline:!0,children:"Please swipe your ID now to authorize payment of:"}),"\xA0",(0,e.jsxs)(r.az,{inline:!0,color:"good",children:[O.totalprice,"\u20AE"]})]})]})},p=function(_){return(0,e.jsxs)(r.wn,{minHeight:"282px",children:[(0,e.jsx)(r.az,{bold:!0,textAlign:"center",fontSize:"28px",mt:10,children:"Thank you for your purchase!"}),(0,e.jsx)(r.az,{italic:!0,mt:1,textAlign:"center",children:"If you experience any difficulties with your new device, please contact your local network administrator."})]})}},79415:function(S,y,t){"use strict";t.r(y),t.d(y,{CookingAppliance:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.temperature,v=d.optimalTemp,l=d.temperatureEnough,c=d.efficiency,u=d.containersRemovable,h=d.our_contents;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(n.z2,{color:l?"good":"blue",value:f,maxValue:v,children:[(0,e.jsx)(n.zv,{value:f}),"\xB0C / ",v,"\xB0C"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Efficiency",children:[(0,e.jsx)(n.zv,{value:c}),"%"]})]})}),(0,e.jsx)(n.wn,{title:"Containers",children:(0,e.jsx)(n.Ki,{children:h.map(function(x,j){return x.empty?(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(j+1),children:(0,e.jsx)(n.$n,{onClick:function(){return g("slot",{slot:j+1})},children:"Empty"})},j):(0,e.jsx)(n.Ki.Item,{label:"Slot #"+(j+1),verticalAlign:"middle",children:(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!u,onClick:function(){return g("slot",{slot:j+1})},children:x.container||"No Container"})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.z2,{color:x.progressText[0],value:x.progress,maxValue:1,children:x.progressText[1]})})]})},j)})})})]})})}},41608:function(S,y,t){"use strict";t.r(y),t.d(y,{CrewManifest:function(){return b},CrewManifestContent:function(){return g}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(1568),m=t(84905),b=function(){return(0,e.jsx)(m.p8,{width:400,height:600,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.manifest;return(0,e.jsx)(r.wn,{title:"Crew Manifest",noTopPadding:!0,children:c.map(function(u){return!!u.elems.length&&(0,e.jsx)(r.wn,{title:(0,e.jsx)(r.az,{backgroundColor:o.lm.manifest[u.cat.toLowerCase()],m:-1,pt:1,pb:1,children:(0,e.jsx)(r.az,{ml:1,textAlign:"center",fontSize:1.4,children:u.cat})}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,color:"white",children:[(0,e.jsx)(r.XI.Cell,{children:"Name"}),(0,e.jsx)(r.XI.Cell,{children:"Rank"}),(0,e.jsx)(r.XI.Cell,{children:"Active"})]}),u.elems.map(function(h){return(0,e.jsxs)(r.XI.Row,{color:"average",children:[(0,e.jsx)(r.XI.Cell,{children:(0,a.jT)(h.name)}),(0,e.jsx)(r.XI.Cell,{children:h.rank}),(0,e.jsx)(r.XI.Cell,{children:h.active})]},h.name+h.rank)})]})},u.cat)})})}},93643:function(S,y,t){"use strict";t.r(y),t.d(y,{CrewMonitor:function(){return d},CrewMonitorContent:function(){return f}});var e=t(88095),a=t(11358),n=t(28763),r=t(4413),o=t(92514),m=t(84905),b=function(l){return l.dead?"Deceased":parseInt(l.stat,10)===1?"Unconscious":"Living"},g=function(l){return l.dead?"red":parseInt(l.stat,10)===1?"orange":"green"},d=function(){return(0,e.jsx)(m.p8,{width:800,height:600,children:(0,e.jsx)(m.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(l){var c=(0,r.Oc)(),u=c.act,h=c.data,x=c.config,j=(0,r.Ul)("tabIndex",0),p=j[0],_=j[1],E=(0,n.L)([(0,a.Ul)(function(A){return A.name}),(0,a.Ul)(function(A){return A==null?void 0:A.x}),(0,a.Ul)(function(A){return A==null?void 0:A.y}),(0,a.Ul)(function(A){return A==null?void 0:A.realZ})])(h.crewmembers||[]),I=(0,r.Ul)("zoom",1),O=I[0],M=I[1],D;return p===0?D=(0,e.jsxs)(o.XI,{children:[(0,e.jsxs)(o.XI.Row,{header:!0,children:[(0,e.jsx)(o.XI.Cell,{children:"Name"}),(0,e.jsx)(o.XI.Cell,{children:"Status"}),(0,e.jsx)(o.XI.Cell,{children:"Location"})]}),E.map(function(A){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsxs)(o.XI.Cell,{children:[A.name," (",A.assignment,")"]}),(0,e.jsxs)(o.XI.Cell,{children:[(0,e.jsx)(o.az,{inline:!0,color:g(A),children:b(A)}),A.sensor_type>=2?(0,e.jsxs)(o.az,{inline:!0,children:["(",(0,e.jsx)(o.az,{inline:!0,color:"red",children:A.brute}),"|",(0,e.jsx)(o.az,{inline:!0,color:"orange",children:A.fire}),"|",(0,e.jsx)(o.az,{inline:!0,color:"green",children:A.tox}),"|",(0,e.jsx)(o.az,{inline:!0,color:"blue",children:A.oxy}),")"]}):null]}),(0,e.jsx)(o.XI.Cell,{children:A.sensor_type===3?h.isAI?(0,e.jsx)(o.$n,{fluid:!0,icon:"location-arrow",content:A.area+" ("+A.x+", "+A.y+")",onClick:function(){return u("track",{track:A.ref})}}):A.area+" ("+A.x+", "+A.y+", "+A.z+")":"Not Available"})]},A.ref)})]}):p===1?D=(0,e.jsx)(v,{}):D="ERROR",(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:p===0,onClick:function(){return _(0)},children:[(0,e.jsx)(o.In,{name:"table"})," Data View"]},"DataView"),(0,e.jsxs)(o.tU.Tab,{selected:p===1,onClick:function(){return _(1)},children:[(0,e.jsx)(o.In,{name:"map-marked-alt"})," Map View"]},"MapView")]}),(0,e.jsx)(o.az,{m:2,children:D})]})},v=function(l){var c=(0,r.Oc)(),u=c.act,h=c.config,x=c.data,j=(0,r.Ul)("zoom",1),p=j[0],_=j[1];return(0,e.jsx)(o.az,{height:"526px",mb:"0.5rem",overflow:"hidden",children:(0,e.jsx)(o.tx,{onZoom:function(E){return _(E)},children:x.crewmembers.filter(function(E){return E.sensor_type===3&&~~E.realZ===~~h.mapZLevel}).map(function(E){return(0,e.jsx)(o.tx.Marker,{x:E.x,y:E.y,zoom:p,icon:"circle",tooltip:E.name+" ("+E.assignment+")",color:g(E)},E.ref)})})})}},84097:function(S,y,t){"use strict";t.r(y),t.d(y,{Cryo:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=[{label:"Resp.",type:"oxyLoss"},{label:"Toxin",type:"toxLoss"},{label:"Brute",type:"bruteLoss"},{label:"Burn",type:"fireLoss"}],m=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=function(f){return(0,e.jsx)(r.p8,{width:520,height:470,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{className:"Layout__content--flexColumn",children:(0,e.jsx)(g,{})})})},g=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.isOperating,h=c.hasOccupant,x=c.occupant,j=x===void 0?[]:x,p=c.cellTemperature,_=c.cellTemperatureStatus,E=c.isBeakerLoaded;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Occupant",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{icon:"user-slash",onClick:function(){return l("ejectOccupant")},disabled:!h,children:"Eject"}),children:h?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Occupant",children:j.name||"Unknown"}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:j.health,max:j.maxHealth,value:j.health/j.maxHealth,color:j.health>0?"good":"average",children:(0,e.jsx)(n.zv,{value:Math.round(j.health)})})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:m[j.stat][0],children:m[j.stat][1]}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[(0,e.jsx)(n.zv,{value:Math.round(j.bodyTemperature)})," K"]}),(0,e.jsx)(n.Ki.Divider,{}),o.map(function(I){return(0,e.jsx)(n.Ki.Item,{label:I.label,children:(0,e.jsx)(n.z2,{value:j[I.type]/100,ranges:{bad:[.01,1/0]},children:(0,e.jsx)(n.zv,{value:Math.round(j[I.type])})})},I.id)})]}):(0,e.jsx)(n.so,{height:"100%",textAlign:"center",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected."]})})}),(0,e.jsx)(n.wn,{title:"Cell",buttons:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return l("ejectBeaker")},disabled:!E,children:"Eject Beaker"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return l(u?"switchOff":"switchOn")},selected:u,children:u?"On":"Off"})}),(0,e.jsxs)(n.Ki.Item,{label:"Temperature",color:_,children:[(0,e.jsx)(n.zv,{value:p})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",children:(0,e.jsx)(d,{})})]})})]})},d=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.isBeakerLoaded,h=c.beakerLabel,x=c.beakerVolume;return u?(0,e.jsxs)(e.Fragment,{children:[h||(0,e.jsx)(n.az,{color:"average",children:"No label"}),(0,e.jsx)(n.az,{color:!x&&"bad",children:x?(0,e.jsx)(n.zv,{value:x,format:function(j){return Math.round(j)+" units remaining"}}):"Beaker is empty"})]}):(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded"})}},38210:function(S,y,t){"use strict";t.r(y),t.d(y,{CryoStorage:function(){return m},CryoStorageCrew:function(){return b},CryoStorageItems:function(){return g}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.real_name,u=l.allow_items,h=(0,a.useState)(0),x=h[0],j=h[1];return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:x===0,onClick:function(){return j(0)},children:"Crew"}),!!u&&(0,e.jsx)(r.tU.Tab,{selected:x===1,onClick:function(){return j(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),x===0&&(0,e.jsx)(b,{}),!!u&&x===1&&(0,e.jsx)(g,{})]})})},b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.crew;return(0,e.jsx)(r.wn,{title:"Stored Crew",children:c.length&&c.map(function(u){return(0,e.jsx)(r.az,{color:"label",children:u},u)})||(0,e.jsx)(r.az,{color:"good",children:"No crew currently stored."})})},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.items;return(0,e.jsx)(r.wn,{title:"Stored Items",buttons:(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("allitems")},children:"Claim All"}),children:c.length&&c.map(function(u){return(0,e.jsx)(r.$n,{icon:"hand-rock",onClick:function(){return v("item",{ref:u.ref})},children:u.name},u.ref)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},52102:function(S,y,t){"use strict";t.r(y),t.d(y,{CryoStorageItemsVr:function(){return g},CryoStorageVr:function(){return b}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=t(38210),b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.real_name,u=l.allow_items,h=(0,a.useState)(0),x=h[0],j=h[1];return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:x===0,onClick:function(){return j(0)},children:"Crew"}),!!u&&(0,e.jsx)(r.tU.Tab,{selected:x===1,onClick:function(){return j(1)},children:"Items"})]}),(0,e.jsxs)(r.IC,{info:!0,children:["Welcome, ",c,"."]}),x===0&&(0,e.jsx)(m.CryoStorageCrew,{}),!!u&&x===1&&(0,e.jsx)(g,{})]})})},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.items;return(0,e.jsx)(r.wn,{title:"Stored Items",children:c.length&&c.map(function(u){return(0,e.jsx)(r.az,{color:"label",children:u},u)})||(0,e.jsx)(r.az,{color:"average",children:"No items stored."})})}},84909:function(S,y,t){"use strict";t.r(y),t.d(y,{DNAForensics:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.scan_progress,v=d.scanning,l=d.bloodsamp,c=d.bloodsamp_desc;return(0,e.jsx)(r.p8,{width:540,height:326,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{selected:v,disabled:!l,icon:"power-off",onClick:function(){return g("scanItem")},children:v?"Halt Scan":"Begin Scan"}),(0,e.jsx)(n.$n,{disabled:!l,icon:"eject",onClick:function(){return g("ejectItem")},children:"Eject Bloodsample"})]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(n.z2,{ranges:{good:[99,1/0],violet:[-1/0,99]},value:f,maxValue:100})})})}),(0,e.jsx)(n.wn,{title:"Blood Sample",children:l&&(0,e.jsxs)(n.az,{children:[l,(0,e.jsx)(n.az,{color:"label",children:c})]})||(0,e.jsx)(n.az,{color:"bad",children:"No blood sample inserted."})})]})})}},13732:function(S,y,t){"use strict";t.r(y),t.d(y,{DNAModifier:function(){return d}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(5425),m=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],b=[["ui","Modify U.I.","dna"],["se","Modify S.E.","dna"],["buffer","Transfer Buffers","syringe"],["rejuvenators","Rejuvenators","flask"]],g=[5,10,20,30,50],d=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.irradiating,B=D.dnaBlockSize,U=D.occupant;context.dnaBlockSize=B,context.isDNAInvalid=!U.isViableSubject||!U.uniqueIdentity||!U.structuralEnzymes;var L;return A&&(L=(0,e.jsx)(_,{duration:A})),(0,e.jsxs)(r.p8,{width:660,height:700,children:[(0,e.jsx)(o.ComplexModal,{}),L,(0,e.jsxs)(r.p8.Content,{className:"Layout__content--flexColumn",children:[(0,e.jsx)(f,{}),(0,e.jsx)(v,{})]})]})},f=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.locked,B=D.hasOccupant,U=D.occupant;return(0,e.jsx)(n.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,mr:"0.5rem",children:"Door Lock:"}),(0,e.jsx)(n.$n,{disabled:!B,selected:A,icon:A?"toggle-on":"toggle-off",content:A?"Engaged":"Disengaged",onClick:function(){return M("toggleLock")}}),(0,e.jsx)(n.$n,{disabled:!B||A,icon:"user-slash",content:"Eject",onClick:function(){return M("ejectOccupant")}})]}),children:B?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:U.name}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:(0,e.jsx)(n.z2,{min:U.minHealth,max:U.maxHealth,value:U.health/U.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),(0,e.jsx)(n.Ki.Item,{label:"Status",color:m[U.stat][0],children:m[U.stat][1]}),(0,e.jsx)(n.Ki.Divider,{})]})}),context.isDNAInvalid?(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 The occupant's DNA structure is ruined beyond recognition, please insert a subject with an intact DNA structure."]}):(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation",children:(0,e.jsx)(n.z2,{min:"0",max:"100",value:U.radiationLevel/100,color:"average"})}),(0,e.jsx)(n.Ki.Item,{label:"Unique Enzymes",children:D.occupant.uniqueEnzymes?D.occupant.uniqueEnzymes:(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-circle"}),"\xA0 Unknown"]})})]})]}):(0,e.jsx)(n.az,{color:"label",children:"Cell unoccupied."})})},v=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.selectedMenuKey,B=D.hasOccupant,U=D.occupant;if(B){if(context.isDNAInvalid)return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No operation possible on this subject."]})})})}else return(0,e.jsx)(n.wn,{flexGrow:"1",children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant in DNA modifier."]})})});var L;return A==="ui"?L=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{}),(0,e.jsx)(u,{})]}):A==="se"?L=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsx)(u,{})]}):A==="buffer"?L=(0,e.jsx)(h,{}):A==="rejuvenators"&&(L=(0,e.jsx)(p,{})),(0,e.jsxs)(n.wn,{flexGrow:"1",children:[(0,e.jsx)(n.tU,{children:b.map(function(k,Y){return(0,e.jsxs)(n.tU.Tab,{selected:A===k[0],onClick:function(){return M("selectMenuKey",{key:k[0]})},children:[(0,e.jsx)(n.In,{name:k[2]}),k[1]]},Y)})}),L]})},l=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.selectedUIBlock,B=D.selectedUISubBlock,U=D.selectedUITarget,L=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Unique Identifier",level:"2",children:[(0,e.jsx)(E,{dnaString:L.uniqueIdentity,selectedBlock:A,selectedSubblock:B,blockSize:context.dnaBlockSize,action:"selectUIBlock"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"15",stepPixelSize:"20",value:U,format:function(k){return k.toString(16).toUpperCase()},ml:"0",onChange:function(k,Y){return M("changeUITarget",{value:Y})}})})}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",mt:"0.5rem",onClick:function(){return M("pulseUIRadiation")}})]})},c=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.selectedSEBlock,B=D.selectedSESubBlock,U=D.occupant;return(0,e.jsxs)(n.wn,{title:"Modify Structural Enzymes",level:"2",children:[(0,e.jsx)(E,{dnaString:U.structuralEnzymes,selectedBlock:A,selectedSubblock:B,blockSize:context.dnaBlockSize,action:"selectSEBlock"}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Irradiate Block",onClick:function(){return M("pulseSERadiation")}})]})},u=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.radiationIntensity,B=D.radiationDuration;return(0,e.jsxs)(n.wn,{title:"Radiation Emitter",level:"2",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Intensity",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"10",stepPixelSize:"20",value:A,popUpPosition:"right",ml:"0",onChange:function(U,L){return M("radiationIntensity",{value:L})}})}),(0,e.jsx)(n.Ki.Item,{label:"Duration",children:(0,e.jsx)(n.N6,{minValue:"1",maxValue:"20",stepPixelSize:"10",unit:"s",value:B,popUpPosition:"right",ml:"0",onChange:function(U,L){return M("radiationDuration",{value:L})}})})]}),(0,e.jsx)(n.$n,{icon:"radiation",content:"Pulse Radiation",tooltip:"Mutates a random block of either the occupant's UI or SE.",tooltipPosition:"top",mt:"0.5rem",onClick:function(){return M("pulseRadiation")}})]})},h=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.buffers,B=A.map(function(U,L){return(0,e.jsx)(x,{id:L+1,name:"Buffer "+(L+1),buffer:U},L)});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Buffers",level:"2",children:B}),(0,e.jsx)(j,{})]})},x=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=I.id,B=I.name,U=I.buffer,L=D.isInjectorReady,k=B+(U.data?" - "+U.label:"");return(0,e.jsx)(n.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsxs)(n.wn,{title:k,level:"3",mx:"0",lineHeight:"18px",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!U.data,icon:"trash",content:"Clear",onClick:function(){return M("bufferOption",{option:"clear",id:A})}}),(0,e.jsx)(n.$n,{disabled:!U.data,icon:"pen",content:"Rename",onClick:function(){return M("bufferOption",{option:"changeLabel",id:A})}}),(0,e.jsx)(n.$n,{disabled:!U.data||!D.hasDisk,icon:"save",content:"Export",tooltip:"Exports this buffer to the currently loaded data disk.",tooltipPosition:"bottom-end",onClick:function(){return M("bufferOption",{option:"saveDisk",id:A})}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Write",children:[(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUI",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject U.I and U.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveUIAndUE",id:A})}}),(0,e.jsx)(n.$n,{icon:"arrow-circle-down",content:"Subject S.E.",mb:"0",onClick:function(){return M("bufferOption",{option:"saveSE",id:A})}}),(0,e.jsx)(n.$n,{disabled:!D.hasDisk||!D.disk.data,icon:"arrow-circle-down",content:"From Disk",mb:"0",onClick:function(){return M("bufferOption",{option:"loadDisk",id:A})}})]}),!!U.data&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Subject",children:U.owner||(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[U.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!U.ue&&" and Unique Enzymes"]}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer to",children:[(0,e.jsx)(n.$n,{disabled:!L,icon:L?"syringe":"spinner",iconSpin:!L,content:"Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A})}}),(0,e.jsx)(n.$n,{disabled:!L,icon:L?"syringe":"spinner",iconSpin:!L,content:"Block Injector",mb:"0",onClick:function(){return M("bufferOption",{option:"createInjector",id:A,block:1})}}),(0,e.jsx)(n.$n,{icon:"user",content:"Subject",mb:"0",onClick:function(){return M("bufferOption",{option:"transfer",id:A})}})]})]})]}),!U.data&&(0,e.jsx)(n.az,{color:"label",mt:"0.5rem",children:"This buffer is empty."})]})})},j=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.hasDisk,B=D.disk;return(0,e.jsx)(n.wn,{title:"Data Disk",level:"2",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:!A||!B.data,icon:"trash",content:"Wipe",onClick:function(){return M("wipeDisk")}}),(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectDisk")}})]}),children:A?B.data?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:B.label?B.label:"No label"}),(0,e.jsx)(n.Ki.Item,{label:"Subject",children:B.owner?B.owner:(0,e.jsx)(n.az,{color:"average",children:"Unknown"})}),(0,e.jsxs)(n.Ki.Item,{label:"Data Type",children:[B.type==="ui"?"Unique Identifiers":"Structural Enzymes",!!B.ue&&" and Unique Enzymes"]})]}):(0,e.jsx)(n.az,{color:"label",children:"Disk is blank."}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"1rem",children:[(0,e.jsx)(n.In,{name:"save-o",size:"4"}),(0,e.jsx)("br",{}),"No disk inserted."]})})},p=function(I){var O=(0,a.Oc)(),M=O.act,D=O.data,A=D.isBeakerLoaded,B=D.beakerVolume,U=D.beakerLabel;return(0,e.jsx)(n.wn,{title:"Rejuvenators and Beaker",level:"2",buttons:(0,e.jsx)(n.$n,{disabled:!A,icon:"eject",content:"Eject",onClick:function(){return M("ejectBeaker")}}),children:A?(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Inject",children:[g.map(function(L,k){return(0,e.jsx)(n.$n,{disabled:L>B,icon:"syringe",content:L,onClick:function(){return M("injectRejuvenators",{amount:L})}},k)}),(0,e.jsx)(n.$n,{disabled:B<=0,icon:"syringe",content:"All",onClick:function(){return M("injectRejuvenators",{amount:B})}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Beaker",children:[(0,e.jsx)(n.az,{mb:"0.5rem",children:U||"No label"}),B?(0,e.jsxs)(n.az,{color:"good",children:[B," unit",B===1?"":"s"," remaining"]}):(0,e.jsx)(n.az,{color:"bad",children:"Empty"})]})]}):(0,e.jsxs)(n.az,{color:"label",textAlign:"center",my:"25%",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",size:"4"}),(0,e.jsx)("br",{}),"No beaker loaded."]})})},_=function(I){return(0,e.jsxs)(n.Rr,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"spinner",size:"5",spin:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{color:"average",children:(0,e.jsxs)("h1",{children:[(0,e.jsx)(n.In,{name:"radiation"}),"\xA0Irradiating occupant\xA0",(0,e.jsx)(n.In,{name:"radiation"})]})}),(0,e.jsx)(n.az,{color:"label",children:(0,e.jsxs)("h3",{children:["For ",I.duration," second",I.duration===1?"":"s"]})})]})},E=function(I){for(var O=function(G){for(var Q=function(le){var ue=le+1;Z.push((0,e.jsx)(n.$n,{selected:U===F&&L===ue,content:V[G+le],mb:"0",onClick:function(){return D(Y,{block:F,subblock:ue})}}))},F=G/k+1,Z=[],oe=0;oe<k;oe++)Q(oe);N.push((0,e.jsxs)(n.so.Item,{flex:"0 0 16%",mb:"1rem",children:[(0,e.jsx)(n.az,{display:"inline-block",width:"20px",height:"20px",mr:"0.5rem",lineHeight:"20px",backgroundColor:"rgba(0, 0, 0, 0.33)",fontFamily:"monospace",textAlign:"center",children:F}),Z]}))},M=(0,a.Oc)(),D=M.act,A=M.data,B=I.dnaString,U=I.selectedBlock,L=I.selectedSubblock,k=I.blockSize,Y=I.action,V=B.split(""),H=0,N=[],q=0;q<V.length;q+=k)O(q);return(0,e.jsx)(n.so,{wrap:"wrap",children:N})}},4910:function(S,y,t){"use strict";t.r(y),t.d(y,{DestinationTagger:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.currTag,v=d.taggerLocs;return(0,e.jsx)(r.p8,{width:450,height:310,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Tagger Locations",children:(0,e.jsx)(n.so,{wrap:"wrap",spacing:1,justify:"center",children:v.sort().map(function(l){return(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:f===l?"check-square-o":"square-o",selected:f===l,content:l,onClick:function(){return g("set_tag",{tag:l})}})},l)})})})})})}},18426:function(S,y,t){"use strict";t.r(y),t.d(y,{DiseaseSplicer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.busy;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:l?(0,e.jsx)(n.wn,{title:"The Splicer is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:l})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m,{}),(0,e.jsx)(b,{})]})})})},m=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.dish_inserted,c=v.effects,u=v.info,h=v.growth,x=v.affected_species;return(0,e.jsxs)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!l,onClick:function(){return f("eject")}}),children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:h})})}),u?(0,e.jsx)(n.wn,{level:2,children:(0,e.jsx)(n.az,{color:"bad",children:u})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{level:2,title:"Symptoms",children:c&&c.map(function(j){return(0,e.jsxs)(n.az,{color:"label",children:["(",j.stage,") ",j.name," ",j.badness>1?"Dangerous!":null]},j.stage)})||(0,e.jsx)(n.az,{children:"No virus sample loaded."})}),(0,e.jsxs)(n.wn,{level:2,title:"Affected Species",color:"label",children:[!x||!x.length?"None":null,x.sort().join(", ")]}),(0,e.jsxs)(n.wn,{level:2,title:"Reverse Engineering",children:[(0,e.jsx)(n.az,{color:"bad",mb:1,children:(0,e.jsx)("i",{children:"CAUTION: Reverse engineering will destroy the viral sample."})}),c.map(function(j){return(0,e.jsx)(n.$n,{content:j.stage,icon:"exchange-alt",onClick:function(){return f("grab",{grab:j.reference})}},j.stage)}),(0,e.jsx)(n.$n,{content:"Species",icon:"exchange-alt",onClick:function(){return f("affected_species")}})]})]})]})},b=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.dish_inserted,c=v.buffer,u=v.species_buffer,h=v.effects,x=v.info,j=v.growth,p=v.affected_species,_=v.busy;return(0,e.jsxs)(n.wn,{title:"Storage",children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Memory Buffer",children:c?(0,e.jsxs)(n.az,{children:[c.name," (",c.stage,")"]}):u?(0,e.jsx)(n.az,{children:u}):"Empty"})}),(0,e.jsx)(n.$n,{mt:1,icon:"save",content:"Save To Disk",disabled:!c&&!u,onClick:function(){return f("disk")}}),c?(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #1",disabled:c.stage>1,onClick:function(){return f("splice",{splice:1})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #2",disabled:c.stage>2,onClick:function(){return f("splice",{splice:2})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #3",disabled:c.stage>3,onClick:function(){return f("splice",{splice:3})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Splice #4",disabled:c.stage>4,onClick:function(){return f("splice",{splice:4})}})]}):u?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"pen",content:"Splice Species",disabled:!u||x,onClick:function(){return f("splice",{splice:5})}})}):null]})}},44421:function(S,y,t){"use strict";t.r(y),t.d(y,{DishIncubator:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(24158),o=t(84905),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.on,l=f.system_in_use,c=f.food_supply,u=f.radiation,h=f.growth,x=f.toxins,j=f.chemicals_inserted,p=f.can_breed_virus,_=f.chemical_volume,E=f.max_chemical_volume,I=f.dish_inserted,O=f.blood_already_infected,M=f.virus,D=f.analysed,A=f.infection_rate;return(0,e.jsx)(o.p8,{width:400,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.wn,{title:"Environmental Conditions",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"On":"Off",onClick:function(){return d("power")}}),children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"radiation",content:"Add Radiation",onClick:function(){return d("rad")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n.Confirm,{fluid:!0,color:"red",icon:"trash",confirmIcon:"trash",content:"Flush System",disabled:!l,onClick:function(){return d("flush")}})})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Virus Food",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[40,1/0],average:[20,40],bad:[-1/0,20]},value:c})}),(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:100,color:u>=50?"bad":h>=25?"average":"good",value:u,children:[(0,r.qQ)(u*1e4)," \xB5Sv"]})}),(0,e.jsx)(n.Ki.Item,{label:"Toxicity",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{bad:[50,1/0],average:[25,50],good:[-1/0,25]},value:x})})]})]}),(0,e.jsx)(n.wn,{title:p?"Vial":"Chemicals",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eject",content:"Eject "+(p?"Vial":"Chemicals"),disabled:!j,onClick:function(){return d("ejectchem")}}),(0,e.jsx)(n.$n,{icon:"virus",content:"Breed Virus",disabled:!p,onClick:function(){return d("virus")}})]}),children:j&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Volume",children:(0,e.jsxs)(n.z2,{minValue:0,maxValue:E,value:_,children:[_,"/",E]})}),(0,e.jsxs)(n.Ki.Item,{label:"Breeding Environment",color:p?"good":"average",children:[I?p?"Suitable":"No hemolytic samples detected":"N/A",O?(0,e.jsx)(n.az,{color:"bad",children:"CAUTION: Viral infection detected in blood sample."}):null]})]})})||(0,e.jsx)(n.az,{color:"average",children:"No chemicals inserted."})}),(0,e.jsx)(n.wn,{title:"Virus Dish",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Dish",disabled:!I,onClick:function(){return d("ejectdish")}}),children:I?M?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Growth Density",children:(0,e.jsx)(n.z2,{minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,25]},value:h})}),(0,e.jsx)(n.Ki.Item,{label:"Infection Rate",children:D?A:"Unknown."})]}):(0,e.jsx)(n.az,{color:"bad",children:"No virus detected."}):(0,e.jsx)(n.az,{color:"average",children:"No dish loaded."})})]})})}},26598:function(S,y,t){"use strict";t.r(y),t.d(y,{DisposalBin:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.mode,v=d.pressure,l=d.isAI,c=d.panel_open,u=d.flushing,h,x;return f===2?(h="good",x="Ready"):f<=0?(h="bad",x="N/A"):f===1?(h="average",x="Pressurizing"):(h="average",x="Idle"),(0,e.jsx)(r.p8,{width:300,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{bold:!0,m:1,children:"Status"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"State",color:h,children:x}),(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{ranges:{bad:[-1/0,0],average:[0,99],good:[99,1/0]},value:v,minValue:0,maxValue:100})})]}),(0,e.jsx)(n.az,{bold:!0,m:1,children:"Controls"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Handle",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:l||c,content:"Disengaged",selected:u?null:"selected",onClick:function(){return g("disengageHandle")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:l||c,content:"Engaged",selected:u?"selected":null,onClick:function(){return g("engageHandle")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Power",children:[(0,e.jsx)(n.$n,{icon:"toggle-off",disabled:f===-1,content:"Off",selected:f?null:"selected",onClick:function(){return g("pumpOff")}}),(0,e.jsx)(n.$n,{icon:"toggle-on",disabled:f===-1,content:"On",selected:f?"selected":null,onClick:function(){return g("pumpOn")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Eject",children:(0,e.jsx)(n.$n,{icon:"sign-out-alt",disabled:l,content:"Eject Contents",onClick:function(){return g("eject")}})})]})]})})})}},26763:function(S,y,t){"use strict";t.r(y),t.d(y,{DroneConsole:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.drones,v=d.areas,l=d.selected_area,c=d.fabricator,u=d.fabPower;return(0,e.jsx)(r.p8,{width:600,height:350,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Drone Fabricator",buttons:(0,e.jsx)(n.$n,{disabled:!c,selected:u,icon:"power-off",content:u?"Enabled":"Disabled",onClick:function(){return g("toggle_fab")}}),children:c?(0,e.jsx)(n.az,{color:"good",children:"Linked."}):(0,e.jsxs)(n.az,{color:"bad",children:["Fabricator not detected.",(0,e.jsx)(n.$n,{icon:"sync",content:"Search for Fabricator",onClick:function(){return g("search_fab")}})]})}),(0,e.jsxs)(n.wn,{title:"Request Drone",children:[(0,e.jsx)(n.ms,{options:v?v.sort():null,selected:l,width:"100%",onSelected:function(h){return g("set_dcall_area",{area:h})}}),(0,e.jsx)(n.$n,{icon:"share-square",content:"Send Ping",onClick:function(){return g("ping")}})]}),(0,e.jsx)(n.wn,{title:"Maintenance Units",children:f&&f.length?(0,e.jsx)(n.Ki,{children:f.map(function(h){return(0,e.jsx)(n.Ki.Item,{label:h.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Resync",onClick:function(){return g("resync",{ref:h.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",color:"red",content:"Shutdown",onClick:function(){return g("shutdown",{ref:h.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:h.loc}),(0,e.jsxs)(n.Ki.Item,{label:"Charge",children:[h.charge," / ",h.maxCharge]}),(0,e.jsx)(n.Ki.Item,{label:"Active",children:h.active?"Yes":"No"})]})},h.name)})}):(0,e.jsx)(n.az,{color:"bad",children:"No drones detected."})})]})})}},74680:function(S,y,t){"use strict";t.r(y),t.d(y,{EmbeddedController:function(){return g}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(47868),m=(0,o.h)("fuck"),b={},g=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=U.internalTemplateName,k=b[L];if(!k)throw Error("Unable to find Component for template name: "+L);return(0,e.jsx)(r.p8,{width:450,height:340,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(k,{})})})},d=function(D){var A=D.bars;return(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsx)(n.Ki,{children:A.map(function(B){return(0,e.jsx)(n.Ki.Item,{label:B.label,children:(0,e.jsx)(n.z2,{color:B.color(B.value),minValue:B.minValue,maxValue:B.maxValue,value:B.value,children:B.textValue})},B.label)})})})},f=function(D){var A=(0,a.Oc)(),B=A.data,U=A.act,L=!0;B.interior_status&&B.interior_status.state==="open"?L=!1:B.external_pressure&&B.chamber_pressure&&(L=!(Math.abs(B.external_pressure-B.chamber_pressure)>5));var k=!0;return B.exterior_status&&B.exterior_status.state==="open"?k=!1:B.internal_pressure&&B.chamber_pressure&&(k=!(Math.abs(B.internal_pressure-B.chamber_pressure)>5)),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:B.airlock_disabled,icon:"arrow-left",content:"Cycle to Exterior",onClick:function(){return U("cycle_ext")}}),(0,e.jsx)(n.$n,{disabled:B.airlock_disabled,icon:"arrow-right",content:"Cycle to Interior",onClick:function(){return U("cycle_int")}})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n.Confirm,{disabled:B.airlock_disabled,color:L?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Exterior Door",onClick:function(){return U("force_ext")}}),(0,e.jsx)(n.$n.Confirm,{disabled:B.airlock_disabled,color:k?"":"bad",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Force Interior Door",onClick:function(){return U("force_int")}})]})]})},v=function(D){var A=(0,a.Oc)(),B=A.data,U=A.act,L={docked:(0,e.jsx)(l,{}),undocking:(0,e.jsx)(n.az,{color:"average",children:"EJECTING-STAND CLEAR!"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"POD EJECTED"}),docking:(0,e.jsx)(n.az,{color:"good",children:"INITIALIZING..."})},k=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return B.exterior_status.state==="open"?k=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):B.exterior_status.lock==="unlocked"?k=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):B.exterior_status.lock==="locked"&&(k=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Escape Pod Status",children:L[B.docking_status]}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:k})]})})},l=function(D){var A=(0,a.Oc)(),B=A.data,U=A.act;return B.armed?(0,e.jsx)(n.az,{color:"average",children:"ARMED"}):(0,e.jsx)(n.az,{color:"good",children:"SYSTEMS OK"})},c=function(D){var A=(0,a.Oc)(),B=A.data,U=A.act;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:!B.override_enabled,icon:"exclamation-triangle",content:"Force Exterior Door",color:B.docking_status!=="docked"?"bad":"",onClick:function(){return U("force_door")}}),(0,e.jsx)(n.$n,{selected:B.override_enabled,color:B.docking_status!=="docked"?"bad":"average",icon:"exclamation-triangle",content:"Override",onClick:function(){return U("toggle_override")}})]})},u=function(D){var A=(0,a.Oc)(),B=A.data,U=A.act,L={docked:(0,e.jsx)(n.az,{color:"good",children:"DOCKED"}),docking:(0,e.jsx)(n.az,{color:"average",children:"DOCKING"}),undocking:(0,e.jsx)(n.az,{color:"average",children:"UNDOCKING"}),undocked:(0,e.jsx)(n.az,{color:"grey",children:"NOT IN USE"})},k=L[B.docking_status];return B.override_enabled&&(k=(0,e.jsxs)(n.az,{color:"bad",children:[B.docking_status.toUpperCase(),"-OVERRIDE ENABLED"]})),k},h=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=function(Y){return Y<80||Y>120?"bad":Y<95||Y>110?"average":"good"},k=[{minValue:0,maxValue:202,value:U.external_pressure,label:"External Pressure",textValue:U.external_pressure+" kPa",color:L},{minValue:0,maxValue:202,value:U.chamber_pressure,label:"Chamber Pressure",textValue:U.chamber_pressure+" kPa",color:L},{minValue:0,maxValue:202,value:U.internal_pressure,label:"Internal Pressure",textValue:U.internal_pressure+" kPa",color:L}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:k}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(f,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"sync",content:"Purge",onClick:function(){return B("purge")}}),(0,e.jsx)(n.$n,{icon:"lock-open",content:"Secure",onClick:function(){return B("secure")}})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!U.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return B("abort")}})})]})]})};b.AirlockConsoleAdvanced=h;var x=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=[{minValue:0,maxValue:202,value:U.chamber_pressure,label:"Chamber Pressure",textValue:U.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:L}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(f,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!U.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return B("abort")}})})]})]})};b.AirlockConsoleSimple=x;var j=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=[{minValue:0,maxValue:202,value:U.chamber_pressure,label:"Chamber Pressure",textValue:U.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}},{minValue:0,maxValue:100,value:U.chamber_phoron,label:"Chamber Phoron",textValue:U.chamber_phoron+" mol",color:function(k){return k>5?"bad":k>.5?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{bars:L}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(f,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!U.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return B("abort")}})})]})]})};b.AirlockConsolePhoron=j;var p=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=[{minValue:0,maxValue:202,value:U.chamber_pressure,label:"Chamber Pressure",textValue:U.chamber_pressure+" kPa",color:function(k){return k<80||k>120?"bad":k<95||k>110?"average":"good"}}];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Dock",buttons:U.airlock_disabled||U.override_enabled?(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:U.override_enabled?"red":"",content:"Override",onClick:function(){return B("toggle_override")}}):null,children:(0,e.jsx)(u,{})}),(0,e.jsx)(d,{bars:L}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(f,{}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!U.processing,icon:"ban",color:"bad",content:"Abort",onClick:function(){return B("abort")}})})]})]})};b.AirlockConsoleDocking=p;var _=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=(0,e.jsx)(n.az,{color:"bad",children:"ERROR"});return U.exterior_status.state==="open"?L=(0,e.jsx)(n.az,{color:"average",children:"OPEN"}):U.exterior_status.lock==="unlocked"?L=(0,e.jsx)(n.az,{color:"average",children:"UNSECURED"}):U.exterior_status.lock==="locked"&&(L=(0,e.jsx)(n.az,{color:"good",children:"SECURED"})),(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!U.override_enabled,content:"Force exterior door",onClick:function(){return B("force_door")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:U.override_enabled?"red":"",content:"Override",onClick:function(){return B("toggle_override")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Dock Status",children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.Ki.Item,{label:"Docking Hatch",children:L})]})})};b.DockingConsoleSimple=_;var E=function(D){var A=(0,a.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Docking Status",children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.wn,{title:"Airlocks",children:A.airlocks.length?(0,e.jsx)(n.Ki,{children:A.airlocks.map(function(B){return(0,e.jsx)(n.Ki.Item,{color:B.override_enabled?"bad":"good",label:B.name,children:B.override_enabled?"OVERRIDE ENABLED":"STATUS OK"},B.name)})}):(0,e.jsx)(n.so,{height:"100%",mt:"0.5em",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"bad",children:[(0,e.jsx)(n.In,{name:"door-closed",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No airlocks found."]})})})]})};b.DockingConsoleMulti=E;var I=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data,L=U.interior_status.state==="open"||U.exterior_status.state==="closed",k=U.exterior_status.state==="open"||U.interior_status.state==="closed";return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:L?"arrow-left":"exclamation-triangle",content:L?"Cycle To Exterior":"Lock Exterior Door",onClick:function(){B(L?"cycle_ext_door":"force_ext")}}),(0,e.jsx)(n.$n,{icon:k?"arrow-right":"exclamation-triangle",content:k?"Cycle To Interior":"Lock Interior Door",onClick:function(){B(k?"cycle_int_door":"force_int")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Exterior Door Status",children:U.exterior_status.state==="closed"?"Locked":"Open"}),(0,e.jsx)(n.Ki.Item,{label:"Interior Door Status",children:U.interior_status.state==="closed"?"Locked":"Open"})]})})};b.DoorAccessConsole=I;var O=function(D){var A=(0,a.Oc)(),B=A.act,U=A.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsxs)(n.wn,{title:"Controls",children:[(0,e.jsx)(c,{}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:U.armed,color:U.armed?"bad":"average",content:"ARM",onClick:function(){return B("manual_arm")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",disabled:!U.can_force,color:"bad",content:"MANUAL EJECT",onClick:function(){return B("force_launch")}})]})]})]})};b.EscapePodConsole=O;var M=function(D){var A=(0,a.Oc)().data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v,{}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsx)(c,{})})]})};b.EscapePodBerthConsole=M},37624:function(S,y,t){"use strict";t.r(y),t.d(y,{DisplayDetails:function(){return g},EntityNarrate:function(){return m},EntitySelection:function(){return b},ModeSelector:function(){return d},NarrationInput:function(){return f}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data;return(0,e.jsx)(o.p8,{width:800,height:470,theme:"abstract",children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{scrollable:!0,grow:2,fill:!0,children:(0,e.jsx)(r.wn,{scrollable:!0,children:(0,e.jsx)(b,{})})}),(0,e.jsx)(r.so.Item,{grow:.25,fill:!0,children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsx)(r.so.Item,{grow:6.75,fill:!0,children:(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-between",children:[(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Details",children:(0,e.jsx)(g,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(r.wn,{title:"Select Behaviour",children:(0,e.jsx)(d,{})})}),(0,e.jsx)(r.so.Item,{Flex:!0,children:(0,e.jsx)(f,{})})]})})})]})})})})},b=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.selection_mode,x=u.multi_id_selection,j=u.entity_names;return(0,e.jsx)(r.so,{direction:"column",grow:!0,children:(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Choose!",buttons:(0,e.jsx)(r.$n,{selected:h,fill:!0,content:"Multi-Selection",onClick:function(){return c("change_mode_multi")}}),children:(0,e.jsx)(r.tU,{vertical:!0,children:j.map(function(p){return(0,e.jsx)(r.tU.Tab,{selected:x.includes(p),onClick:function(){return c("select_entity",{id_selected:p})},children:(0,e.jsx)(r.az,{inline:!0,children:p})},p)})})})})})},g=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.selection_mode,x=u.number_mob_selected,j=u.selected_id,p=u.selected_name,_=u.selected_type;return h?(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Number of entities selected:"})," ",x]}):(0,e.jsxs)(r.az,{children:[(0,e.jsx)("b",{children:"Selected ID:"})," ",j," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Name:"})," ",p," ",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Selected Type:"})," ",_," ",(0,e.jsx)("br",{})]})},d=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.privacy_select,x=u.mode_select;return(0,e.jsxs)(r.so,{direction:"row",children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return c("change_mode_privacy")},selected:h,fluid:!0,tooltip:"This button changes whether your narration is loud (any who see/hear) or subtle (range of 1 tile) "+(h?"Click here to disable subtle mode":"Click here to enable subtle mode"),content:h?"Currently: Subtle":"Currently: Loud"})}),(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.$n,{onClick:function(){return c("change_mode_narration")},selected:x,fluid:!0,tooltip:"This button sets your narration to talk audiably or emote visibly "+(x?"Click here to emote visibly.":"Click here to talk audiably."),content:x?"Currently: Emoting":"Currently: Talking"})})]})},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=(0,a.useState)(""),x=h[0],j=h[1];return(0,e.jsx)(r.wn,{title:"Narration Text",buttons:(0,e.jsx)(r.$n,{onClick:function(){return c("narrate",{message:x})},content:"Send Narration"}),children:(0,e.jsx)(r.so,{children:(0,e.jsx)(r.so.Item,{width:"85%",children:(0,e.jsx)(r.fs,{height:"18rem",onChange:function(p,_){return j(_)},value:x||""})})})})}},36907:function(S,y,t){"use strict";t.r(y),t.d(y,{ExonetNode:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.allowPDAs,l=d.allowCommunicators,c=d.allowNewscasters,u=d.logs;return(0,e.jsx)(r.p8,{width:400,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,content:"Power "+(f?"On":"Off"),onClick:function(){return g("toggle_power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Incoming PDA Messages",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,content:v?"Open":"Closed",onClick:function(){return g("toggle_PDA_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Communicators",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:l,content:l?"Open":"Closed",onClick:function(){return g("toggle_communicator_port")}})}),(0,e.jsx)(n.Ki.Item,{label:"Incoming Newscaster Content",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:c,content:c?"Open":"Closed",onClick:function(){return g("toggle_newscaster_port")}})})]})}),(0,e.jsx)(n.wn,{title:"Logging",children:(0,e.jsxs)(n.so,{wrap:"wrap",children:[u.map(function(h,x){return(0,e.jsx)(n.so.Item,{m:"2px",basis:"49%",grow:x%2,children:h},x)}),!u||u.length===0?(0,e.jsx)(n.az,{color:"average",children:"No logs found."}):null]})})]})})}},47926:function(S,y,t){"use strict";t.r(y),t.d(y,{ExosuitFabricator:function(){return A},Materials:function(){return U}});var e=t(88095),a=t(11358),n=t(5229),r=t(84352),o=t(33854),m=t(44583),b=t(4413),g=t(92514),d=t(24158),f=t(84905);function v(Q,F){(F==null||F>Q.length)&&(F=Q.length);for(var Z=0,oe=new Array(F);Z<F;Z++)oe[Z]=Q[Z];return oe}function l(Q,F){if(Q){if(typeof Q=="string")return v(Q,F);var Z=Object.prototype.toString.call(Q).slice(8,-1);if(Z==="Object"&&Q.constructor&&(Z=Q.constructor.name),Z==="Map"||Z==="Set")return Array.from(Z);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return v(Q,F)}}function c(Q,F){var Z=typeof Symbol!="undefined"&&Q[Symbol.iterator]||Q["@@iterator"];if(Z)return(Z=Z.call(Q)).next.bind(Z);if(Array.isArray(Q)||(Z=l(Q))||F&&Q&&typeof Q.length=="number"){Z&&(Q=Z);var oe=0;return function(){return oe>=Q.length?{done:!0}:{done:!1,value:Q[oe++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u={steel:"sheet-metal_3",glass:"sheet-glass_3",silver:"sheet-silver_3",graphite:"sheet-puck_3",plasteel:"sheet-plasteel_3",durasteel:"sheet-durasteel_3",verdantium:"sheet-wavy_3",morphium:"sheet-wavy_3",mhydrogen:"sheet-mythril_3",gold:"sheet-gold_3",diamond:"sheet-diamond",supermatter:"sheet-super_3",osmium:"sheet-silver_3",phoron:"sheet-phoron_3",uranium:"sheet-uranium_3",titanium:"sheet-titanium_3",lead:"sheet-adamantine_3",platinum:"sheet-adamantine_3",plastic:"sheet-plastic_3"},h=0,x=1,j=2,p,_=(p={},p[h]=!1,p[x]="average",p[j]="bad",p),E=function(Q){var F={};return Q.forEach(function(Z){F[Z.name]=Z.amount}),F},I=function(Q,F,Z){return Q>Z?{color:j,deficit:Q-Z}:F>Z?{color:x,deficit:Q}:Q+F>Z?{color:x,deficit:Q+F-Z}:{color:h,deficit:0}},O=function(Q,F,Z){var oe={textColor:h};return Object.keys(Z.cost).forEach(function(le){oe[le]=I(Z.cost[le],F[le],Q[le]),oe[le].color>oe.textColor&&(oe.textColor=oe[le].color)}),oe},M=function(Q,F){var Z={},oe={},le={},ue={};return F.forEach(function(he,de){ue[de]=h,Object.keys(he.cost).forEach(function(ve){Z[ve]=Z[ve]||0,le[ve]=le[ve]||0,oe[ve]=I(he.cost[ve],Z[ve],Q[ve]),oe[ve].color!==h?ue[de]<oe[ve].color&&(ue[de]=oe[ve].color):Z[ve]+=he.cost[ve],le[ve]+=oe[ve].deficit})}),{materialTally:Z,missingMatTally:le,textColors:ue,matFormat:oe}},D=function(Q,F){var Z=[];if(Q.length){var oe=(0,o.XZ)(Q,function(le){return(le.name||"")+(le.desc||"")+(le.searchMeta||"")});return Object.keys(F).forEach(function(le){F[le].filter(oe).forEach(function(ue){Z.push(ue)})}),Z=(0,a.hS)(function(le){return le.name})(Z),Z}},A=function(Q){var F=(0,b.Oc)(),Z=F.act,oe=F.data,le=oe.queue||[],ue=E(oe.materials||[]),he=M(ue,le),de=he.materialTally,ve=he.missingMatTally,pe=he.textColors,be=(0,b.QY)("display_mats",!1),ye=be[0],Te=be[1],Ke=(0,b.QY)("display_all_mats",!1),$e=Ke[0],We=Ke[1];return(0,e.jsx)(f.p8,{resizable:!0,width:1100,height:640,children:(0,e.jsx)(f.p8.Content,{scrollable:!0,children:(0,e.jsxs)(g.so,{fillPositionedParent:!0,direction:"column",children:[(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{ml:1,mr:1,mt:1,basis:"75%",grow:1,children:(0,e.jsx)(g.wn,{title:"Materials",children:(0,e.jsx)(U,{displayAllMat:$e})})}),(0,e.jsx)(g.so.Item,{mt:1,mr:1,children:(0,e.jsxs)(g.wn,{title:"Settings",height:"100%",children:[(0,e.jsx)(g.$n.Checkbox,{onClick:function(){return Te(!ye)},checked:ye,children:"Display Material Costs"}),(0,e.jsx)(g.$n.Checkbox,{onClick:function(){return We(!$e)},checked:$e,children:"Display All Materials"}),oe.species_types&&(0,e.jsxs)(g.az,{color:"label",children:["Species:",(0,e.jsx)(g.$n,{onClick:function(){return Z("species")},children:oe.species})]})||null,oe.manufacturers&&(0,e.jsxs)(g.az,{color:"label",children:["Manufacturer:",(0,e.jsx)(g.$n,{onClick:function(){return Z("manufacturer")},children:oe.manufacturer})]})||null]})})]}),(0,e.jsx)(g.so.Item,{grow:1,m:1,children:(0,e.jsxs)(g.so,{spacing:1,height:"100%",overflowY:"hide",children:[(0,e.jsx)(g.so.Item,{position:"relative",basis:"20%",children:(0,e.jsx)(g.wn,{height:"100%",overflowY:"auto",title:"Categories",buttons:(0,e.jsx)(g.$n,{content:"R&D Sync",onClick:function(){return Z("sync_rnd")}}),children:(0,e.jsx)(k,{})})}),(0,e.jsx)(g.so.Item,{position:"relative",grow:1,children:(0,e.jsx)(g.az,{fillPositionedParent:!0,overflowY:"auto",children:(0,e.jsx)(Y,{queueMaterials:de,materials:ue})})}),(0,e.jsx)(g.so.Item,{width:"420px",position:"relative",children:(0,e.jsx)(H,{queueMaterials:de,missingMaterials:ve,textColors:pe})})]})})]})})})},B=function(Q){var F=(0,b.Oc)().act,Z=Q.material,oe=Z.name,le=Z.removable,ue=Z.sheets,he=(0,b.QY)("remove_mats_"+oe,1),de=he[0],ve=he[1];return de>1&&ue<de&&ve(ue||1),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.Q7,{width:"30px",animated:!0,value:de,minValue:1,maxValue:ue||1,initial:1,onDrag:function(pe,be){var ye=parseInt(be,10);Number.isInteger(ye)&&ve(ye)}}),(0,e.jsx)(g.$n,{icon:"eject",disabled:!le,onClick:function(){return F("remove_mat",{id:oe,amount:de})}})]})},U=function(Q){var F=(0,b.Oc)().data,Z=Q.displayAllMat,oe=Q.disableEject,le=oe===void 0?!1:oe,ue=F.materials||[],he=ue.filter(function(de){return Z||de.amount>0});return he.length===0?(0,e.jsxs)(g.az,{textAlign:"center",children:[(0,e.jsx)(g.In,{textAlign:"center",size:5,name:"inbox"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"No Materials Loaded."})]}):(0,e.jsx)(g.so,{wrap:"wrap",children:he.map(function(de){return(0,e.jsxs)(g.so.Item,{width:"80px",children:[(0,e.jsx)(L,{name:de.name,amount:de.amount,formatsi:!0}),!le&&(0,e.jsx)(g.az,{mt:1,style:{"text-align":"center"},children:(0,e.jsx)(B,{material:de})})]},de.name)||null})})},L=function(Q){var F=Q.name,Z=Q.amount,oe=Q.formatsi,le=Q.formatmoney,ue=Q.color,he=Q.style,de="0";return Z<1&&Z>0?de=(0,n.Mg)(Z,2):oe?de=(0,d.QL)(Z,0):le?de=(0,d.up)(Z):de=Z,(0,e.jsxs)(g.so,{direction:"column",align:"center",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.m_,{position:"bottom",content:(0,o.Sn)(F),children:(0,e.jsx)(g.az,{className:(0,r.Ly)(["sheetmaterials32x32",u[F]]),position:"relative",style:he})})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.az,{textColor:ue,style:{"text-align":"center"},children:de})})]})},k=function(Q){var F=(0,b.Oc)().data,Z=F.partSets||[],oe=F.buildableParts||{},le=(0,b.QY)("part_tab",Z.length?oe[0]:""),ue=le[0],he=le[1];return(0,e.jsx)(g.tU,{vertical:!0,children:Z.map(function(de){return!!oe[de]&&(0,e.jsx)(g.tU.Tab,{selected:de===ue,disabled:!oe[de],onClick:function(){return he(de)},children:de},de)})})},Y=function(Q){var F=(0,b.Oc)().data,Z=function(We){for(var Qe=c(We),Ye;!(Ye=Qe()).done;){var mt=Ye.value;if(le[mt])return mt}return null},oe=F.partSets||[],le=F.buildableParts||[],ue=Q.queueMaterials,he=Q.materials,de=(0,b.QY)("part_tab",Z(oe)),ve=de[0],pe=de[1],be=(0,b.QY)("search_text",""),ye=be[0],Te=be[1];if(!ve||!le[ve]){var Ke=Z(oe);if(Ke)pe(Ke);else return}var $e;return ye?($e=[],D(ye,le).forEach(function(We){We.format=O(he,ue,We),$e.push(We)})):($e={Parts:[]},le[ve].forEach(function(We){if(We.format=O(he,ue,We),!We.subCategory){$e.Parts.push(We);return}We.subCategory in $e||($e[We.subCategory]=[]),$e[We.subCategory].push(We)})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.wn,{children:(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{mr:1,children:(0,e.jsx)(g.In,{name:"search"})}),(0,e.jsx)(g.so.Item,{grow:1,children:(0,e.jsx)(g.pd,{fluid:!0,placeholder:"Search for...",onInput:function(We,Qe){return Te(Qe)}})})]})}),!!ye&&(0,e.jsx)(V,{name:"Search Results",parts:$e,forceShow:!0,placeholder:"No matching results..."})||Object.keys($e).map(function(We){return(0,e.jsx)(V,{name:We,parts:$e[We]},We)})]})},V=function(Q){var F=(0,b.Oc)(),Z=F.act,oe=F.data,le=oe.buildingPart,ue=Q.parts,he=Q.name,de=Q.forceShow,ve=Q.placeholder,pe=(0,b.QY)("display_mats",!1),be=pe[0];return(!!ue.length||de)&&(0,e.jsxs)(g.wn,{title:he,buttons:(0,e.jsx)(g.$n,{disabled:!ue.length,color:"good",content:"Queue All",icon:"plus-circle",onClick:function(){return Z("add_queue_set",{part_list:ue.map(function(ye){return ye.id})})}}),children:[!ue.length&&ve,ue.map(function(ye){return(0,e.jsxs)(m.Fragment,{children:[(0,e.jsxs)(g.so,{align:"center",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n,{disabled:le||ye.format.textColor===j,color:"good",height:"20px",mr:1,icon:"play",onClick:function(){return Z("build_part",{id:ye.id})}})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n,{color:"average",height:"20px",mr:1,icon:"plus-circle",onClick:function(){return Z("add_queue_part",{id:ye.id})}})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.az,{inline:!0,textColor:_[ye.format.textColor],children:ye.name})}),(0,e.jsx)(g.so.Item,{grow:1}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.$n,{icon:"question-circle",transparent:!0,height:"20px",tooltip:"Build Time: "+ye.printTime+"s. "+(ye.desc||""),tooltipPosition:"left"})})]}),be&&(0,e.jsx)(g.so,{mb:2,children:Object.keys(ye.cost).map(function(Te){return(0,e.jsx)(g.so.Item,{width:"50px",color:_[ye.format[Te].color],children:(0,e.jsx)(L,{formatmoney:!0,style:{transform:"scale(0.75) translate(0%, 10%)"},name:Te,amount:ye.cost[Te]})},Te)})})]},ye.name)})]})},H=function(Q){var F=(0,b.Oc)(),Z=F.act,oe=F.data,le=oe.isProcessingQueue,ue=oe.queue||[],he=Q.queueMaterials,de=Q.missingMaterials,ve=Q.textColors;return(0,e.jsxs)(g.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(g.so.Item,{height:0,grow:1,children:(0,e.jsx)(g.wn,{height:"100%",title:"Queue",overflowY:"auto",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(g.$n.Confirm,{disabled:!ue.length,color:"bad",icon:"minus-circle",content:"Clear Queue",onClick:function(){return Z("clear_queue")}}),!!le&&(0,e.jsx)(g.$n,{disabled:!ue.length,content:"Stop",icon:"stop",onClick:function(){return Z("stop_queue")}})||(0,e.jsx)(g.$n,{disabled:!ue.length,content:"Build Queue",icon:"play",onClick:function(){return Z("build_queue")}})]}),children:(0,e.jsxs)(g.so,{direction:"column",height:"100%",children:[(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(G,{})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(q,{textColors:ve})})]})})}),!!ue.length&&(0,e.jsx)(g.so.Item,{mt:1,children:(0,e.jsx)(g.wn,{title:"Material Cost",children:(0,e.jsx)(N,{queueMaterials:he,missingMaterials:de})})})]})},N=function(Q){var F=Q.queueMaterials,Z=Q.missingMaterials;return(0,e.jsx)(g.so,{wrap:"wrap",children:Object.keys(F).map(function(oe){return(0,e.jsxs)(g.so.Item,{width:"12%",children:[(0,e.jsx)(L,{formatmoney:!0,name:oe,amount:F[oe]}),!!Z[oe]&&(0,e.jsx)(g.az,{textColor:"bad",style:{"text-align":"center"},children:(0,d.up)(Z[oe])})]},oe)})})},q=function(Q){var F=(0,b.Oc)(),Z=F.act,oe=F.data,le=Q.textColors,ue=oe.queue||[];return ue.length?ue.map(function(he,de){return(0,e.jsx)(g.az,{children:(0,e.jsxs)(g.so,{mb:.5,direction:"column",justify:"center",wrap:"wrap",height:"20px",inline:!0,children:[(0,e.jsx)(g.so.Item,{basis:"content",children:(0,e.jsx)(g.$n,{height:"20px",mr:1,icon:"minus-circle",color:"bad",onClick:function(){return Z("del_queue_part",{index:de+1})}})}),(0,e.jsx)(g.so.Item,{children:(0,e.jsx)(g.az,{inline:!0,textColor:_[le[de]],children:he.name})})]})},he.name)}):(0,e.jsx)(e.Fragment,{children:"No parts in queue."})},G=function(Q){var F=(0,b.Oc)().data,Z=F.buildingPart,oe=F.storedPart;if(oe){var le=oe.name;return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.z2,{minValue:0,maxValue:1,value:1,color:"average",children:(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{children:le}),(0,e.jsx)(g.so.Item,{grow:1}),(0,e.jsx)(g.so.Item,{children:"Fabricator outlet obstructed..."})]})})})}if(Z){var ue=Z.name,he=Z.duration,de=Z.printTime,ve=Math.ceil(he/10);return(0,e.jsx)(g.az,{children:(0,e.jsx)(g.z2,{minValue:0,maxValue:de,value:he,children:(0,e.jsxs)(g.so,{children:[(0,e.jsx)(g.so.Item,{children:ue}),(0,e.jsx)(g.so.Item,{grow:1}),(0,e.jsx)(g.so.Item,{children:ve>=0&&ve+"s"||"Dispensing..."})]})})})}}},83151:function(S,y,t){"use strict";t.r(y),t.d(y,{Farmbot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.locked,l=d.tank,c=d.tankVolume,u=d.tankMaxVolume,h=d.waters_trays,x=d.refills_water,j=d.uproots_weeds,p=d.replaces_nutriment,_=d.collects_produce,E=d.removes_dead;return(0,e.jsx)(r.p8,{width:450,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Hydroponic Assistance Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,onClick:function(){return g("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water Tank",children:l&&(0,e.jsxs)(n.z2,{value:c,maxValue:u,children:[c," / ",u]})||(0,e.jsx)(n.az,{color:"average",children:"No water tank detected."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:v?"good":"bad",children:v?"Locked":"Unlocked"})]})}),!v&&(0,e.jsxs)(n.wn,{title:"Behavior Controls",children:[(0,e.jsx)(n.wn,{level:2,title:"Watering Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Water plants",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return g("water")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Refill watertank",children:(0,e.jsx)(n.$n,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return g("refill")},children:x?"Yes":"No"})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Weeding controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Weed plants",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return g("weed")},children:j?"Yes":"No"})})})}),(0,e.jsx)(n.wn,{level:2,title:"Nutriment controls",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Replace fertilizer",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return g("replacenutri")},children:p?"Yes":"No"})})})})]})||null]})})}},60381:function(S,y,t){"use strict";t.r(y),t.d(y,{Fax:function(){return b},FaxContent:function(){return g}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(71451),m=t(1887),b=function(v){var l=(0,a.Oc)().data,c=l.authenticated,u=l.copyItem,h=340;return u&&(h=358),c?(0,e.jsx)(r.p8,{width:600,height:h,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(o.LoginInfo,{}),(0,e.jsx)(g,{})]})}):(0,e.jsx)(r.p8,{width:600,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(d,{}),(0,e.jsx)(m.LoginScreen,{machineType:"Fax"})]})})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.bossName,x=u.copyItem,j=u.cooldown,p=u.destination,_=u.adminDepartments,E=new Set(_);return(0,e.jsxs)(n.wn,{children:[!!j&&(0,e.jsx)(n.IC,{info:!0,children:"Transmitter arrays realigning. Please stand by."}),(0,e.jsx)(n.Ki,{children:(0,e.jsxs)(n.Ki.Item,{label:"Network",children:[h," Quantum Entanglement Network"]})}),x&&(0,e.jsxs)(n.az,{mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Currently Sending",children:[x," ",(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return c("rename")},tooltip:"Renames the paper. This changes its preview in staff chat when sending to centcom/job board/supply (admin departments). It is advisable to name your faxes something self-explanatory for quick response."})]}),(0,e.jsx)(n.Ki.Item,{label:"Sending To",children:(0,e.jsx)(n.$n,{icon:"map-marker-alt",content:p,onClick:function(){return c("dept")}})})]}),(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return c("send")},content:"Send",fluid:!0})]})||(0,e.jsx)(n.az,{mt:1,children:"Please insert item to transmit."}),(0,e.jsx)(f,{})]})},d=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.copyItem;return h?(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",onClick:function(){return c("remove")},content:"Remove Item"})}):null},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.adminDepartments,x=u.destination,j=u.copyItem,p=new Set(h),_="1rem";return j&&(_="1.5rem"),!j||j&&p.has(x)?(0,e.jsxs)(n.az,{mt:"1.5rem",children:[(0,e.jsx)("b",{children:"Or submit an automated staff request."})," ",(0,e.jsx)("br",{})," ",(0,e.jsx)("br",{}),(0,e.jsxs)("i",{children:["The automated staff request form automatically populates the company job board ((sends to discord, but does not ping.)) without requiring intervention from central command clerks and officers. ",(0,e.jsx)("br",{}),"It also works without requiring a written request to be composed."]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.az,{mt:"1.5rem",children:(0,e.jsx)(n.$n,{icon:"share-square",onClick:function(){return c("send_automated_staff_request")},content:"Send Automated Staff Request",fluid:!0})})]}):null}},90646:function(S,y,t){"use strict";t.r(y),t.d(y,{FileCabinet:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.contents,l=(0,a.Ul)(function(c){return c.name})(v||[]);return(0,e.jsx)(o.p8,{width:350,height:300,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(r.wn,{children:l.map(function(c){return(0,e.jsx)(r.$n,{fluid:!0,icon:"file",content:c.name,onClick:function(){return d("retrieve",{ref:c.ref})}},c.ref)})})})})}},67747:function(S,y,t){"use strict";t.r(y),t.d(y,{Floorbot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.open,l=d.locked,c=d.vocal,u=d.amount,h=d.possible_bmode,x=d.improvefloors,j=d.eattiles,p=d.maketiles,_=d.bmode;return(0,e.jsx)(r.p8,{width:390,height:310,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Station Floor Repairer v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,onClick:function(){return g("start")},children:f?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Tiles Left",children:(0,e.jsx)(n.zv,{value:u})}),(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return g("vocal")},children:c?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Improves Floors",children:(0,e.jsx)(n.$n,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return g("improve")},children:x?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Finds Tiles",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return g("tiles")},children:j?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Makes Metal Sheets into Tiles",children:(0,e.jsx)(n.$n,{icon:p?"toggle-on":"toggle-off",selected:p,onClick:function(){return g("make")},children:p?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Bridge Mode",children:(0,e.jsx)(n.ms,{over:!0,width:"100%",placeholder:"Disabled",selected:_,options:h,onSelected:function(E){return g("bridgemode",{dir:E})}})})]})})||null]})})}},79697:function(S,y,t){"use strict";t.r(y),t.d(y,{GasPump:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.pressure_set,l=d.last_flow_rate,c=d.last_power_draw,u=d.max_power_draw;return(0,e.jsx)(r.p8,{width:470,height:290,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:l/10})," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Load",children:(0,e.jsx)(n.z2,{value:c,minValue:0,maxValue:u,color:c<u-5?"good":"average",children:c+" W"})})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:f?"On":"Off",selected:f,onClick:function(){return g("power")}}),children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsxs)(n.Wx.Item,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return g("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return g("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return g("set_press",{press:"set"})}})]}),(0,e.jsxs)(n.Wx.Item,{label:"Desired Output Pressure",children:[v/100," kPa"]})]})})]})})}},26590:function(S,y,t){"use strict";t.r(y),t.d(y,{GasTemperatureSystem:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.on,l=f.gasPressure,c=f.gasTemperature,u=f.minGasTemperature,h=f.maxGasTemperature,x=f.targetGasTemperature,j=f.gasTemperatureClass,p=f.powerSetting;return(0,e.jsx)(o.p8,{width:270,height:270,resizeable:!0,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:v?"On":"Off",selected:v,onClick:function(){return d("toggleStatus")}}),children:(0,e.jsxs)(r.Wx,{children:[(0,e.jsx)(r.Wx.Item,{label:"Power Level",children:(0,e.jsx)(r.N6,{minValue:"0",maxValue:"100",stepPixelSize:"1",value:p,onChange:function(_,E){return d("setPower",{value:E})}})}),(0,e.jsxs)(r.Wx.Item,{label:"Gas Pressure",children:[l," kPa"]})]})}),(0,e.jsxs)(r.wn,{title:"Gas Temperature",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Current Temperature",children:[(0,e.jsx)(r.zv,{value:c})," K"]}),(0,e.jsxs)(r.Ki.Item,{label:"Target Temperature",children:[(0,e.jsx)(r.zv,{value:x})," K"]})]}),(0,e.jsx)(r.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:h,fillValue:c,value:x,format:function(_){return c+" / "+(0,a.LI)(_)},unit:"K",color:j,onChange:function(_,E){return d("setGasTemperature",{temp:E})}})]})]})})}},27444:function(S,y,t){"use strict";t.r(y),t.d(y,{GeneralAtmoControl:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.sensors,x=u.tanks,j=u.input_info,p=u.output_info,_=u.input_flow_setting,E=u.pressure_setting,I=u.max_pressure,O=u.max_flowrate,M=u.core,D=u.fuel,A=u.automation,B=u.device_info;return(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(m,{sensors:h}),(M||x)&&(0,e.jsx)(g,{}),D&&(0,e.jsx)(f,{})]})})},m=function(v){var l=(0,a.Oc)().act,c=v.sensors;return c?(0,e.jsx)(n.wn,{title:"Sensors",children:c.map(function(u){return(0,e.jsx)(n.wn,{title:u.long_name,children:(0,e.jsx)(b,{sensor:u})},u.long_name)})}):(0,e.jsx)(n.wn,{title:"Sensors",children:(0,e.jsx)(n.az,{color:"bad",children:"No Sensors Connected."})})},b=function(v){var l=v.sensor;if(!l.sensor_data)return(0,e.jsx)(n.az,{color:"bad",children:"UNABLE TO FIND SENSOR"});var c=l.sensor_data,u=c.pressure,h=c.temperature,x=c.oxygen,j=c.nitrogen,p=c.carbon_dioxide,_=c.phoron,E=[];return u&&E.push((0,e.jsxs)(n.Ki.Item,{label:"Pressure",children:[u," kPa"]})),h&&E.push((0,e.jsxs)(n.Ki.Item,{label:"Temperature",children:[h," K"]})),(x||j||p||_)&&E.push((0,e.jsx)(n.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(n.so,{justify:"space-around",children:[x?(0,e.jsxs)(n.so.Item,{children:["(",x,"% O\xB2)"]}):null,j?(0,e.jsxs)(n.so.Item,{children:["(",j,"% N\xB2)"]}):null,p?(0,e.jsxs)(n.so.Item,{children:["(",p,"% CO\xB2)"]}):null,_?(0,e.jsxs)(n.so.Item,{children:["(",_,"% TX)"]}):null]})})),(0,e.jsx)(n.Ki,{children:E.map(function(I){return I})})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.tanks,x=u.input_info,j=u.output_info,p=u.input_flow_setting,_=u.pressure_setting,E=u.max_pressure,I=u.max_flowrate,O=u.core,M="Unknown Control System";h?M="Tank Control System":O&&(M="Core Cooling Control System");var D={power:function(){return c("in_toggle_injector")},apply:function(){return c("in_set_flowrate")},refresh:function(){return c("in_refresh_status")},slider:function(B,U){return c("adj_input_flow_rate",{adj_input_flow_rate:U})}},A={power:function(){return c("out_toggle_power")},apply:function(){return c("out_set_pressure")},refresh:function(){return c("out_refresh_status")},slider:function(B,U){return c("adj_pressure",{adj_pressure:U})}};return(0,e.jsxs)(n.wn,{title:M,children:[(0,e.jsx)(d,{info:x,maxSliderValue:I,sliderControl:p,sliderFill:x&&x.volume_rate,unit:"L/s",name:O?"Coolant Input":"Input",limitName:"Flow Rate Limit",actions:D}),(0,e.jsx)(d,{info:j,maxSliderValue:E,sliderControl:_,sliderFill:j&&j.output_pressure,unit:"kPa",name:O?"Core Outpump":"Output",limitName:O?"Min Core Pressure":"Max Output Pressure",actions:A})]})},d=function(v){var l=v.info,c=v.maxSliderValue,u=v.sliderControl,h=v.sliderFill,x=v.unit,j=v.name,p=v.limitName,_=v.actions;return(0,e.jsx)(n.wn,{title:j,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"Refresh",icon:"sync",disabled:!l,onClick:function(){return _.refresh()}}),(0,e.jsx)(n.$n,{content:"Power",icon:"power-off",selected:l?l.power:!1,disabled:!l,onClick:function(){return _.power()}})]}),children:(0,e.jsxs)(n.Ki,{children:[l&&(0,e.jsx)(n.Ki.Item,{label:j,children:l.power?"Injecting":"On Hold"})||(0,e.jsxs)(n.Ki.Item,{children:[(0,e.jsxs)(n.az,{color:"bad",children:["ERROR: Cannot Find ",j," Port"]}),(0,e.jsx)(n.$n,{icon:"search",content:"Search",onClick:function(){return _.refresh()}})]}),(0,e.jsx)(n.Ki.Item,{label:p,buttons:(0,e.jsx)(n.$n,{content:"Apply",icon:"edit",disabled:!l,onClick:function(){return _.apply()}}),children:(0,e.jsxs)(n.Ap,{mt:"0.4em",animated:!0,minValue:0,maxValue:c,stepPixelSize:1/(c/500),value:u,fillValue:h||0,onChange:function(E,I){return _.slider(E,I)},children:[h||"UNK"," ",x," / ",u," ",x]})})]})})},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.fuel,x=u.automation,j=u.device_info;return(0,e.jsx)(n.wn,{title:"Fuel Injection System",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"syringe",content:"Inject",onClick:function(){return c("injection")},disabled:x||!j}),(0,e.jsx)(n.$n,{icon:"sync",content:"Refresh",onClick:function(){return c("refresh_status")}}),(0,e.jsx)(n.$n,{icon:"power-off",content:"Injector Power",onClick:function(){return c("toggle_injector")},selected:j?j.power:!1,disabled:x||!j})]}),children:j?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:j.power?"Injecting":"On Hold"}),(0,e.jsx)(n.Ki.Item,{label:"Rate",children:j.volume_rate}),(0,e.jsx)(n.Ki.Item,{label:"Automated Fuel Injection",children:(0,e.jsx)(n.$n,{icon:"robot",content:x?"Engaged":"Disengaged",selected:x,onClick:function(){return c("toggle_automation")}})})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{color:"bad",children:"ERROR: Cannot Find Device"}),(0,e.jsx)(n.$n,{icon:"search",content:"Search",onClick:function(){return c("refresh_status")}})]})})}},16624:function(S,y,t){"use strict";t.r(y),t.d(y,{GeneralRecords:function(){return u}});var e=t(88095),a=t(11358),n=t(28763),r=t(33854),o=t(44583),m=t(4413),b=t(92514),g=t(84905),d=t(5425),f=t(71451),v=t(1887),l=t(82489),c=function(I){(0,d.modalOpen)("edit",{field:I.edit,value:I.value})},u=function(I){var O=(0,m.Oc)().data,M=O.authenticated,D=O.screen;if(!M)return(0,e.jsx)(g.p8,{width:800,height:380,children:(0,e.jsx)(g.p8.Content,{children:(0,e.jsx)(v.LoginScreen,{})})});var A;return D===2?A=(0,e.jsx)(x,{}):D===3?A=(0,e.jsx)(j,{}):D===4&&(A=(0,e.jsx)(p,{})),(0,e.jsxs)(g.p8,{width:800,height:640,children:[(0,e.jsx)(d.ComplexModal,{}),(0,e.jsxs)(g.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(f.LoginInfo,{}),(0,e.jsx)(l.TemporaryNotice,{}),(0,e.jsx)(E,{}),(0,e.jsx)(b.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:A})]})]})},h=function(I,O){O===void 0&&(O="");var M=(0,r.XZ)(O,function(U){return U.name}),D=(0,r.XZ)(O,function(U){return U.id}),A=(0,r.XZ)(O,function(U){return U.b_dna}),B=(0,n.L)([O&&(0,a.pb)(function(U){return M(U)||D(U)||A(U)})])(I);return B},x=function(I){var O=(0,m.Oc)(),M=O.act,D=O.data,A=(0,o.useState)(""),B=A[0],U=A[1],L=h(D.records,B);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.az,{mb:"0.2rem",children:(0,e.jsx)(b.$n,{icon:"pen",content:"New Record",onClick:function(){return M("new")}})}),(0,e.jsx)(b.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onInput:function(k,Y){return U(Y)}}),(0,e.jsx)(b.az,{mt:"0.5rem",children:L.map(function(k,Y){return(0,e.jsx)(b.$n,{icon:"user",mb:"0.5rem",content:k.id+": "+k.name,onClick:function(){return M("d_rec",{d_rec:k.ref})}},Y)})})]})},j=function(I){var O=(0,m.Oc)().act;return(0,e.jsx)(b.$n.Confirm,{icon:"trash",content:"Delete All Employment Records",onClick:function(){return O("del_all")}})},p=function(I){var O=(0,m.Oc)(),M=O.act,D=O.data,A=D.general,B=D.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(_,{})}),(0,e.jsxs)(b.wn,{title:"Actions",level:2,children:[(0,e.jsx)(b.$n.Confirm,{icon:"trash",disabled:!!A.empty,content:"Delete Employment Record",color:"bad",onClick:function(){return M("del_r")}}),(0,e.jsx)(b.$n,{icon:B?"spinner":"print",disabled:B,iconSpin:!!B,content:"Print Entry",ml:"0.5rem",onClick:function(){return M("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(b.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return M("screen",{screen:2})}})]})]})},_=function(I){var O=(0,m.Oc)(),M=O.act,D=O.data,A=D.general;return!A||!A.fields?(0,e.jsxs)(b.az,{color:"bad",children:["General record lost!",(0,e.jsx)(b.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return M("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(b.az,{width:"50%",float:"left",children:[(0,e.jsx)(b.Ki,{children:A.fields.map(function(B,U){return(0,e.jsxs)(b.Ki.Item,{label:B.field,children:[(0,e.jsx)(b.az,{height:"20px",display:"inline-block",children:B.value}),!!B.edit&&(0,e.jsx)(b.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return c(B)}})]},U)})}),(0,e.jsx)(b.wn,{title:"Employment/skills summary",level:2,preserveWhitespace:!0,children:A.skills||"No data found."}),(0,e.jsxs)(b.wn,{title:"Comments/Log",level:2,children:[A.comments.length===0?(0,e.jsx)(b.az,{color:"label",children:"No comments found."}):A.comments.map(function(B,U){return(0,e.jsxs)(b.az,{children:[(0,e.jsx)(b.az,{color:"label",inline:!0,children:B.header}),(0,e.jsx)("br",{}),B.text,(0,e.jsx)(b.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return M("del_c",{del_c:U+1})}})]},U)}),(0,e.jsx)(b.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,d.modalOpen)("add_c")}})]})]}),(0,e.jsx)(b.az,{width:"50%",float:"right",textAlign:"right",children:!!A.has_photos&&A.photos.map(function(B,U){return(0,e.jsxs)(b.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:B.substr(1,B.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",U+1]},U)})})]})},E=function(I){var O=(0,m.Oc)(),M=O.act,D=O.data,A=D.screen;return(0,e.jsxs)(b.tU,{children:[(0,e.jsxs)(b.tU.Tab,{selected:A===2,onClick:function(){return M("screen",{screen:2})},children:[(0,e.jsx)(b.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(b.tU.Tab,{selected:A===3,onClick:function(){return M("screen",{screen:3})},children:[(0,e.jsx)(b.In,{name:"wrench"}),"Record Maintenance"]})]})}},76392:function(S,y,t){"use strict";t.r(y),t.d(y,{Gps:function(){return v}});var e=t(88095),a=t(11358),n=t(28763),r=t(5229),o=t(68554),m=t(4413),b=t(92514),g=t(84905);function d(){return d=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(l[h]=u[h])}return l},d.apply(this,arguments)}var f=function(l){return map(parseFloat)(l.split(", "))},v=function(l){var c=(0,m.Oc)(),u=c.act,h=c.data,x=h.currentArea,j=h.currentCoords,p=h.currentCoordsText,_=h.globalmode,E=h.power,I=h.tag,O=h.updating,M=(0,n.L)([(0,a.Tj)(function(D,A){var B=D.dist&&Math.round((0,o.Jk)((0,o.Z4)(j,D.coords)));return d({},D,{dist:B,index:A})}),(0,a.Ul)(function(D){return D.dist===void 0},function(D){return D.entrytag})])(h.signals||[]);return(0,e.jsx)(g.p8,{title:"Global Positioning System",width:470,height:700,children:(0,e.jsxs)(g.p8.Content,{scrollable:!0,children:[(0,e.jsx)(b.wn,{title:"Control",buttons:(0,e.jsx)(b.$n,{icon:"power-off",content:E?"On":"Off",selected:E,onClick:function(){return u("power")}}),children:(0,e.jsxs)(b.Ki,{children:[(0,e.jsx)(b.Ki.Item,{label:"Tag",children:(0,e.jsx)(b.$n,{icon:"pencil-alt",content:I,onClick:function(){return u("rename")}})}),(0,e.jsx)(b.Ki.Item,{label:"Scan Mode",children:(0,e.jsx)(b.$n,{icon:O?"unlock":"lock",content:O?"AUTO":"MANUAL",color:!O&&"bad",onClick:function(){return u("updating")}})}),(0,e.jsx)(b.Ki.Item,{label:"Range",children:(0,e.jsx)(b.$n,{icon:"sync",content:_?"MAXIMUM":"LOCAL",selected:!_,onClick:function(){return u("globalmode")}})})]})}),!!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.wn,{title:"Current Location",children:(0,e.jsxs)(b.az,{fontSize:"18px",children:[x," (",p,")"]})}),(0,e.jsx)(b.wn,{title:"Detected Signals",children:(0,e.jsxs)(b.XI,{children:[(0,e.jsxs)(b.XI.Row,{bold:!0,children:[(0,e.jsx)(b.XI.Cell,{content:"Name"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,content:"Direction"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,content:"Coordinates"})]}),M.map(function(D){return(0,e.jsxs)(b.XI.Row,{className:"candystripe",children:[(0,e.jsx)(b.XI.Cell,{bold:!0,color:"label",children:D.entrytag}),(0,e.jsxs)(b.XI.Cell,{collapsing:!0,opacity:D.dist!==void 0&&(0,r.qE)(1.2/Math.log(Math.E+D.dist/20),.4,1),children:[D.degrees!==void 0&&(0,e.jsx)(b.In,{mr:1,size:1.2,name:"arrow-up",rotation:D.degrees}),D.dist!==void 0&&D.dist+"m"]}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,children:D.coordsText})]},D.entrytag+D.coords+D.index)})]})})]})]})})}},78535:function(S,y,t){"use strict";t.r(y),t.d(y,{GravityGenerator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.breaker,v=d.charge_count,l=d.charging_state,c=d.on,u=d.operational,h="Offline";return f&&v<100?h="CHARGING":f&&v>=100?h="Running":!f&&v>0&&(h="DISCHARGING"),(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",color:"red",content:"Toggle Breaker",confirmContent:f?"This will disable gravity!":"This will enable gravity!",onClick:function(){return g("gentoggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Breaker Setting",children:f?"Generator Enabled":"Generator Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Mode",children:["Generator ",h]}),(0,e.jsxs)(n.Ki.Item,{label:"Charge Status",children:[v,"%"]})]})})})})}},4171:function(S,y,t){"use strict";t.r(y),t.d(y,{GuestPass:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.access,l=f.area,c=f.giver,u=f.giveName,h=f.reason,x=f.duration,j=f.mode,p=f.log,_=f.uid;return(0,e.jsx)(o.p8,{width:500,height:520,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:j===1&&(0,e.jsxs)(r.wn,{title:"Activity Log",buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",selected:!0,onClick:function(){return d("mode",{mode:0})}}),children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",onClick:function(){return d("print")},fluid:!0,mb:1}),(0,e.jsx)(r.wn,{level:2,title:"Logs",children:p.length&&p.map(function(E){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}},E)})||(0,e.jsx)(r.az,{children:"No logs."})})]})||(0,e.jsxs)(r.wn,{title:"Guest pass terminal #"+_,buttons:(0,e.jsx)(r.$n,{icon:"scroll",content:"Activity Log",onClick:function(){return d("mode",{mode:1})}}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Issuing ID",children:(0,e.jsx)(r.$n,{content:c||"Insert ID",onClick:function(){return d("id")}})}),(0,e.jsx)(r.Ki.Item,{label:"Issued To",children:(0,e.jsx)(r.$n,{content:u,onClick:function(){return d("giv_name")}})}),(0,e.jsx)(r.Ki.Item,{label:"Reason",children:(0,e.jsx)(r.$n,{content:h,onClick:function(){return d("reason")}})}),(0,e.jsx)(r.Ki.Item,{label:"Duration (minutes)",children:(0,e.jsx)(r.$n,{content:x,onClick:function(){return d("duration")}})})]}),(0,e.jsx)(r.$n.Confirm,{icon:"check",fluid:!0,content:"Issue Pass",onClick:function(){return d("issue")}}),(0,e.jsx)(r.wn,{title:"Access",level:2,children:(0,a.Ul)(function(E){return E.area_name})(l).map(function(E){return(0,e.jsx)(r.$n.Checkbox,{checked:E.on,content:E.area_name,onClick:function(){return d("access",{access:E.area})}},E.area)})})]})})})}},92753:function(S,y,t){"use strict";t.r(y),t.d(y,{GyrotronControl:function(){return o},GyrotronControlContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.gyros;return(0,e.jsx)(n.wn,{title:"Gyrotrons",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Fire Delay"}),(0,e.jsx)(n.XI.Cell,{children:"Strength"})]}),v.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:l.name}),(0,e.jsxs)(n.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:l.active?"Online":"Offline",selected:l.active,disabled:!l.deployed,onClick:function(){return d("toggle_active",{gyro:l.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.fire_delay,unit:"decisecond(s)",minValue:1,maxValue:60,stepPixelSize:1,onDrag:function(c,u){return d("set_rate",{gyro:l.ref,rate:u})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.active&&"yellow",value:l.strength,unit:"penta-dakw",minValue:1,maxValue:50,stepPixelSize:1,onDrag:function(c,u){return d("set_str",{gyro:l.ref,str:u})}})})]},l.name)})]})})}},75825:function(S,y,t){"use strict";t.r(y),t.d(y,{Holodeck:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.supportedPrograms,v=d.restrictedPrograms,l=d.currentProgram,c=d.isSilicon,u=d.safetyDisabled,h=d.emagged,x=d.gravity,j=f;return u&&(j=j.concat(v)),(0,e.jsx)(r.p8,{width:400,height:610,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:j.map(function(p){return(0,e.jsx)(n.$n,{color:v.indexOf(p)!==-1?"bad":null,icon:"eye",content:p,selected:l===p,fluid:!0,onClick:function(){return g("program",{program:p})}},p)})}),!!c&&(0,e.jsx)(n.wn,{title:"Override",children:(0,e.jsxs)(n.$n,{icon:"exclamation-triangle",fluid:!0,disabled:h,color:u?"good":"bad",onClick:function(){return g("AIoverride")},children:[!!h&&"Error, unable to control. ",u?"Enable Safeties":"Disable Safeties"]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:u?(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"}):(0,e.jsx)(n.az,{color:"good",children:"ENABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{icon:"user-astronaut",selected:x,onClick:function(){return g("gravity")},children:x?"Enabled":"Disabled"})})]})})]})})}},79258:function(S,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.total_parts,u=l.max_components,h=l.total_complexity,x=l.max_complexity,j=l.battery_charge,p=l.battery_max,_=l.net_power,E=l.unremovable_circuits,I=l.removable_circuits;return(0,e.jsx)(m.p8,{width:600,height:380,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:c/u,maxValue:1,children:[c," / ",u," (",(0,a.LI)(c/u*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/x,maxValue:1,children:[h," / ",x," (",(0,a.LI)(h/x*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:j&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:j/p,maxValue:1,children:[j," / ",p," (",(0,a.LI)(j/p*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:_===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:_,format:function(O){return"-"+(0,o.d5)(Math.abs(O))+"/s"}})})]})}),E.length&&(0,e.jsx)(g,{title:"Built-in Components",circuits:E})||null,I.length&&(0,e.jsx)(g,{title:"Removable Components",circuits:I})||null]})})},g=function(d){var f=(0,n.Oc)().act,v=d.title,l=d.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:l.map(function(c){return(0,e.jsxs)(r.Ki.Item,{label:c.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("open_circuit",{ref:c.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("rename_circuit",{ref:c.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("scan_circuit",{ref:c.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("remove_circuit",{ref:c.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("bottom_circuit",{ref:c.ref})},children:"Move to Bottom"})]},c.ref)})})})}},36585:function(S,y,t){"use strict";t.r(y),t.d(y,{ICCircuit:function(){return b}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.name,h=c.desc,x=c.displayed_name,j=c.removable,p=c.complexity,_=c.power_draw_idle,E=c.power_draw_per_use,I=c.extended_desc,O=c.inputs,M=c.outputs,D=c.activators;return(0,e.jsx)(m.p8,{width:600,height:400,resizable:!0,title:x,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Stats",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{onClick:function(){return l("rename")},children:"Rename"}),(0,e.jsx)(r.$n,{onClick:function(){return l("scan")},children:"Scan with Device"}),(0,e.jsx)(r.$n,{onClick:function(){return l("remove")},children:"Remove"})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:p}),_&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Idle)",children:(0,o.d5)(_)})||null,E&&(0,e.jsx)(r.Ki.Item,{label:"Power Draw (Active)",children:(0,o.d5)(E)})||null]}),I]}),(0,e.jsxs)(r.wn,{title:"Circuit",children:[(0,e.jsxs)(r.so,{textAlign:"center",spacing:1,children:[O.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Inputs",children:(0,e.jsx)(g,{list:O})})})||null,(0,e.jsx)(r.so.Item,{basis:O.length&&M.length?"33%":O.length||M.length?"45%":"100%",children:(0,e.jsx)(r.wn,{title:x,mb:1,children:(0,e.jsx)(r.az,{children:h})})}),M.length&&(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{title:"Outputs",children:(0,e.jsx)(g,{list:M})})})||null]}),(0,e.jsx)(r.wn,{title:"Triggers",children:D.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.name,children:[(0,e.jsx)(r.$n,{onClick:function(){return l("pin_name",{pin:A.ref})},children:A.pulse_out?"<PULSE OUT>":"<PULSE IN>"}),(0,e.jsx)(d,{pin:A})]},A.name)})})]})]})})},g=function(f){var v=(0,n.Oc)().act,l=f.list;return l.map(function(c){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.$n,{onClick:function(){return v("pin_name",{pin:c.ref})},children:[(0,a.jT)(c.type),": ",c.name]}),(0,e.jsx)(r.$n,{onClick:function(){return v("pin_data",{pin:c.ref})},children:c.data}),(0,e.jsx)(d,{pin:c})]},c.ref)})},d=function(f){var v=(0,n.Oc)().act,l=f.pin;return l.linked.map(function(c){return(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.$n,{onClick:function(){return v("pin_unwire",{pin:l.ref,link:c.ref})},children:c.name}),"@\xA0",(0,e.jsx)(r.$n,{onClick:function(){return v("examine",{ref:c.holder_ref})},children:c.holder_name})]},c.ref)})}},43040:function(S,y,t){"use strict";t.r(y),t.d(y,{ICDetailer:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.detail_color,l=f.color_list;return(0,e.jsx)(o.p8,{width:420,height:254,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{children:Object.keys(l).map(function(c,u){return(0,e.jsx)(r.$n,{ml:0,mr:0,mb:-.4,mt:0,tooltip:(0,a.Sn)(c),tooltipPosition:u%6===5?"left":"right",height:"64px",width:"64px",onClick:function(){return d("change_color",{color:c})},style:l[c]===v?{border:"4px solid black","border-radius":0}:{"border-radius":0},backgroundColor:l[c]},c)})})})})}},93204:function(S,y,t){"use strict";t.r(y),t.d(y,{ICPrinter:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.metal,u=l.max_metal,h=l.metal_per_sheet,x=l.debug,j=l.upgraded,p=l.can_clone,_=l.assembly_to_clone,E=l.categories;return(0,e.jsx)(o.p8,{width:600,height:630,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"Status",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Metal",children:(0,e.jsxs)(r.z2,{value:c,maxValue:u,children:[c/h," / ",u/h," sheets"]})}),(0,e.jsx)(r.Ki.Item,{label:"Circuits Available",children:j?"Advanced":"Regular"}),(0,e.jsx)(r.Ki.Item,{label:"Assembly Cloning",children:p?"Available":"Unavailable"})]}),(0,e.jsx)(r.az,{mt:1,children:"Note: A red component name means that the printer must be upgraded to create that component."})]}),(0,e.jsx)(g,{})]})})},b=function(d,f){return!(!d.can_build||d.cost>f.metal)},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.categories,u=l.debug,h=(0,n.QY)("categoryTarget",null),x=h[0],j=h[1],p=(0,a.pb)(function(_){return _.name===x})(c)[0];return(0,e.jsx)(r.wn,{title:"Circuits",children:(0,e.jsxs)(r.BJ,{fill:!0,children:[(0,e.jsx)(r.BJ.Item,{mr:2,children:(0,e.jsx)(r.tU,{vertical:!0,children:(0,a.Ul)(function(_){return _.name})(c).map(function(_){return(0,e.jsx)(r.tU.Tab,{selected:x===_.name,onClick:function(){return j(_.name)},children:_.name},_.name)})})}),(0,e.jsx)(r.BJ.Item,{children:p&&(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,a.Ul)(function(_){return _.name})(p.items).map(function(_){return(0,e.jsx)(r.Ki.Item,{label:_.name,labelColor:_.can_build?"good":"bad",buttons:(0,e.jsx)(r.$n,{disabled:!b(_,l),icon:"print",onClick:function(){return v("build",{build:_.path})},children:"Print"}),children:_.desc},_.name)})})})||"No category selected."})]})})}},7627:function(S,y,t){"use strict";t.r(y),t.d(y,{IDCard:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(89863),m=function(b){var g=(0,a.Oc)().data,d=g.registered_name,f=g.sex,v=g.species,l=g.age,c=g.assignment,u=g.fingerprint_hash,h=g.blood_type,x=g.dna_hash,j=g.photo_front,p=[{name:"Sex",val:f},{name:"Species",val:v},{name:"Age",val:l},{name:"Blood Type",val:h},{name:"Fingerprint",val:u},{name:"DNA Hash",val:x}];return(0,e.jsx)(r.p8,{width:470,height:250,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"25%",textAlign:"left",children:(0,e.jsx)(n.az,{inline:!0,style:{width:"101px",height:"120px",overflow:"hidden",outline:"2px solid #4972a1"},children:j&&(0,e.jsx)("img",{src:j.substr(1,j.length-1),style:{width:"300px","margin-left":"-94px","-ms-interpolation-mode":"nearest-neighbor"}})||(0,e.jsx)(n.In,{name:"user",size:8,ml:1.5,mt:2.5})})}),(0,e.jsx)(n.so.Item,{basis:0,grow:1,children:(0,e.jsx)(n.Ki,{children:p.map(function(_){return(0,e.jsx)(n.Ki.Item,{label:_.name,children:_.val},_.name)})})})]}),(0,e.jsxs)(n.so,{className:"IDCard__NamePlate",align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:d})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(o.RankIcon,{rank:c})})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{textAlign:"center",children:c})})]})]})})})}},17575:function(S,y,t){"use strict";t.r(y),t.d(y,{IdentificationComputer:function(){return d},IdentificationComputerAccessModification:function(){return l},IdentificationComputerContent:function(){return f},IdentificationComputerPrinting:function(){return v},IdentificationComputerRegions:function(){return c}});var e=t(88095),a=t(11358),n=t(33854),r=t(44583),o=t(4413),m=t(92514),b=t(84905),g=t(41608),d=function(){return(0,e.jsx)(b.p8,{width:600,height:700,children:(0,e.jsx)(b.p8.Content,{children:(0,e.jsx)(f,{})})})},f=function(u){var h=(0,o.Oc)(),x=h.act,j=h.data,p=u.ntos,_=j.mode,E=j.has_modify,I=j.printing,O=(0,e.jsx)(l,{ntos:p});return p&&!j.have_id_slot?O=(0,e.jsx)(g.CrewManifestContent,{}):I?O=(0,e.jsx)(v,{}):_===1&&(O=(0,e.jsx)(g.CrewManifestContent,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(m.tU,{children:[(!p||!!j.have_id_slot)&&(0,e.jsx)(m.tU.Tab,{icon:"home",selected:_===0,onClick:function(){return x("mode",{mode_target:0})},children:"Access Modification"}),(0,e.jsx)(m.tU.Tab,{icon:"home",selected:_===1,onClick:function(){return x("mode",{mode_target:1})},children:"Crew Manifest"}),!p||!!j.have_printer&&(0,e.jsx)(m.tU.Tab,{float:"right",icon:"print",onClick:function(){return x("print")},disabled:!_&&!E,color:"",children:"Print"})]}),O]})},v=function(u){return(0,e.jsx)(m.wn,{title:"Printing",children:"Please wait..."})},l=function(u){var h=(0,o.Oc)(),x=h.act,j=h.data,p=u.ntos,_=j.station_name,E=j.target_name,I=j.target_owner,O=j.scan_name,M=j.authenticated,D=j.has_modify,A=j.account_number,B=j.centcom_access,U=j.all_centcom_access,L=j.regions,k=j.id_rank,Y=j.departments;return(0,e.jsxs)(m.wn,{title:"Access Modification",children:[!M&&(0,e.jsx)(m.az,{italic:!0,mb:1,children:"Please insert the IDs into the terminal to proceed."}),(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Target Identitity",children:(0,e.jsx)(m.$n,{icon:"eject",fluid:!0,content:E,onClick:function(){return x("modify")}})}),!p&&(0,e.jsx)(m.Ki.Item,{label:"Authorized Identitity",children:(0,e.jsx)(m.$n,{icon:"eject",fluid:!0,content:O,onClick:function(){return x("scan")}})})]}),!!M&&!!D&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.wn,{title:"Details",level:2,children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Registered Name",children:(0,e.jsx)(m.pd,{value:I,fluid:!0,onInput:function(V,H){return x("reg",{reg:H})}})}),(0,e.jsx)(m.Ki.Item,{label:"Account Number",children:(0,e.jsx)(m.pd,{value:A,fluid:!0,onInput:function(V,H){return x("account",{account:H})}})}),(0,e.jsx)(m.Ki.Item,{label:"Dismissals",children:(0,e.jsx)(m.$n.Confirm,{color:"bad",icon:"exclamation-triangle",confirmIcon:"fire",fluid:!0,content:"Dismiss "+I,confirmContent:"You are dismissing "+I+", confirm?",onClick:function(){return x("terminate")}})})]})}),(0,e.jsx)(m.wn,{title:"Assignment",level:2,children:(0,e.jsxs)(m.XI,{children:[Y.map(function(V){return(0,e.jsxs)(r.Fragment,{children:[(0,e.jsxs)(m.XI.Row,{children:[(0,e.jsx)(m.XI.Cell,{header:!0,verticalAlign:"middle",children:V.department_name}),(0,e.jsx)(m.XI.Cell,{children:V.jobs.map(function(H){return(0,e.jsx)(m.$n,{selected:H.job===k,onClick:function(){return x("assign",{assign_target:H.job})},children:(0,n.jT)(H.display_name)},H.job)})})]}),(0,e.jsx)(m.az,{mt:-1,children:"\xA0"})," "]},V.department_name)}),(0,e.jsxs)(m.XI.Row,{children:[(0,e.jsx)(m.XI.Cell,{header:!0,verticalAlign:"middle",children:"Special"}),(0,e.jsx)(m.XI.Cell,{children:(0,e.jsx)(m.$n,{onClick:function(){return x("assign",{assign_target:"Custom"})},children:"Custom"})})]})]})}),!!B&&(0,e.jsx)(m.wn,{title:"Central Command",level:2,children:U.map(function(V){return(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{fluid:!0,selected:V.allowed,onClick:function(){return x("access",{access_target:V.ref,allowed:V.allowed})},children:(0,n.jT)(V.desc)})},V.ref)})})||(0,e.jsx)(m.wn,{title:_,level:2,children:(0,e.jsx)(c,{actName:"access"})})]})]})},c=function(u){var h=(0,o.Oc)(),x=h.act,j=h.data,p=u.actName,_=j.regions;return(0,e.jsx)(m.so,{wrap:"wrap",spacing:1,children:(0,a.Ul)(function(E){return E.name})(_).map(function(E){return(0,e.jsx)(m.so.Item,{mb:1,basis:"content",grow:1,children:(0,e.jsx)(m.wn,{title:E.name,height:"100%",children:(0,a.Ul)(function(I){return I.desc})(E.accesses).map(function(I){return(0,e.jsx)(m.az,{children:(0,e.jsx)(m.$n,{fluid:!0,selected:I.allowed,onClick:function(){return x(p,{access_target:I.ref,allowed:I.allowed})},children:(0,n.jT)(I.desc)})},I.ref)})})},E.name)})})}},15654:function(S,y,t){"use strict";t.r(y),t.d(y,{InventoryPanel:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.slots,v=d.internalsValid;return(0,e.jsx)(r.p8,{width:400,height:200,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:f&&f.length&&f.map(function(l){return(0,e.jsx)(n.Ki.Item,{label:l.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:l.item?"hand-paper":"gift",onClick:function(){return g(l.act)},children:l.item||"Nothing"})},l.name)})})}),v&&(0,e.jsx)(n.wn,{title:"Actions",children:v&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return g("internals")},children:"Set Internals"})||null})||null]})})}},54577:function(S,y,t){"use strict";t.r(y),t.d(y,{InventoryPanelHuman:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.slots,v=d.specialSlots,l=d.internals,c=d.internalsValid,u=d.sensors,h=d.handcuffed,x=d.handcuffedParams,j=d.legcuffed,p=d.legcuffedParams,_=d.accessory;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[f&&f.length&&f.map(function(E){return(0,e.jsx)(n.Ki.Item,{label:E.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:E.item?"hand-paper":"gift",onClick:function(){return g(E.act,E.params)},children:E.item||"Nothing"})},E.name)}),(0,e.jsx)(n.Ki.Divider,{}),v&&v.length&&v.map(function(E){return(0,e.jsx)(n.Ki.Item,{label:E.name,children:(0,e.jsx)(n.$n,{mb:-1,icon:E.item?"hand-paper":"gift",onClick:function(){return g(E.act,E.params)},children:E.item||"Nothing"})},E.name)})]})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"running",onClick:function(){return g("targetSlot",{slot:"splints"})},children:"Remove Splints"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"hand-paper",onClick:function(){return g("targetSlot",{slot:"pockets"})},children:"Empty Pockets"}),c&&(0,e.jsx)(n.$n,{fluid:!0,icon:"lungs",onClick:function(){return g("targetSlot",{slot:"internals"})},children:"Set Internals"})||null,u&&(0,e.jsx)(n.$n,{fluid:!0,icon:"book-medical",onClick:function(){return g("targetSlot",{slot:"sensors"})},children:"Set Sensors"})||null,h&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return g("targetSlot",x)},children:"Handcuffed"})||null,j&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return g("targetSlot",p)},children:"Legcuffed"})||null,_&&(0,e.jsx)(n.$n,{fluid:!0,color:"bad",icon:"unlink",onClick:function(){return g("targetSlot",{slot:"tie"})},children:"Remove Accessory"})||null]})]})})}},46382:function(S,y,t){"use strict";t.r(y),t.d(y,{IsolationCentrifuge:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.busy,v=d.antibodies,l=d.pathogens,c=d.is_antibody_sample,u=d.sample_inserted,h=(0,e.jsx)(n.az,{color:"average",children:"No vial detected."});return u&&(!v&&!l?h=(0,e.jsx)(n.az,{color:"average",children:"No antibodies or viral strains detected."}):h=(0,e.jsxs)(e.Fragment,{children:[v?(0,e.jsx)(n.wn,{title:"Antibodies",children:v}):null,l.length?(0,e.jsx)(n.wn,{title:"Pathogens",children:(0,e.jsx)(n.Ki,{children:l.map(function(x){return(0,e.jsx)(n.Ki.Item,{label:x.name,children:x.spread_type},x.name)})})}):null]})),(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f?(0,e.jsx)(n.wn,{title:"The Centrifuge is currently busy.",color:"bad",children:(0,e.jsx)("center",{children:(0,e.jsx)(n.az,{color:"bad",children:f})})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:c?"Antibody Sample":"Blood Sample",children:[(0,e.jsxs)(n.so,{spacing:1,mb:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"print",content:"Print",disabled:!v&&!l.length,onClick:function(){return g("print")}})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject Vial",disabled:!u,onClick:function(){return g("sample")}})})]}),h]}),v&&!c||l.length?(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[v&&!c?(0,e.jsx)(n.Ki.Item,{label:"Isolate Antibodies",children:(0,e.jsx)(n.$n,{icon:"pen",content:v,onClick:function(){return g("antibody")}})}):null,l.length?(0,e.jsx)(n.Ki.Item,{label:"Isolate Strain",children:l.map(function(x){return(0,e.jsx)(n.$n,{icon:"pen",content:x.name,onClick:function(){return g("isolate",{isolate:x.reference})}},x.name)})}):null]})}):null]})})})}},58189:function(S,y,t){"use strict";t.r(y),t.d(y,{JanitorCart:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.mybag,c=v.mybucket,u=v.mymop,h=v.myspray,x=v.myreplacer,j=v.signs,p=v.icons;return(0,e.jsx)(r.p8,{width:210,height:180,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:l||"Garbage Bag Slot",tooltipPosition:"bottom-end",color:l?"grey":"transparent",style:{border:l?null:"2px solid grey"},onClick:function(){return f("bag")},children:(0,e.jsx)(b,{iconkey:"mybag"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:c||"Bucket Slot",tooltipPosition:"bottom",color:c?"grey":"transparent",style:{border:c?null:"2px solid grey"},onClick:function(){return f("bucket")},children:(0,e.jsx)(b,{iconkey:"mybucket"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:u||"Mop Slot",tooltipPosition:"bottom-end",color:u?"grey":"transparent",style:{border:u?null:"2px solid grey"},onClick:function(){return f("mop")},children:(0,e.jsx)(b,{iconkey:"mymop"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:h||"Spray Slot",tooltipPosition:"top-end",color:h?"grey":"transparent",style:{border:h?null:"2px solid grey"},onClick:function(){return f("spray")},children:(0,e.jsx)(b,{iconkey:"myspray"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:x||"Light Replacer Slot",tooltipPosition:"top",color:x?"grey":"transparent",style:{border:x?null:"2px solid grey"},onClick:function(){return f("replacer")},children:(0,e.jsx)(b,{iconkey:"myreplacer"})}),(0,e.jsx)(n.$n,{width:"64px",height:"64px",position:"relative",tooltip:j||"Signs Slot",tooltipPosition:"top-start",color:j?"grey":"transparent",style:{border:j?null:"2px solid grey"},onClick:function(){return f("sign")},children:(0,e.jsx)(b,{iconkey:"signs"})})]})})},m={mybag:"trash",mybucket:"fill",mymop:"broom",myspray:"spray-can",myreplacer:"lightbulb",signs:"sign"},b=function(g){var d=(0,a.Oc)().data,f=g.iconkey,v=d.icons;return f in v?(0,e.jsx)("img",{src:v[f].substr(1,v[f].length-1),style:{position:"absolute",left:0,right:0,top:0,bottom:0,width:"64px",height:"64px","-ms-interpolation-mode":"nearest-neighbor"}}):(0,e.jsx)(n.In,{style:{position:"absolute",left:"4px",right:0,top:"20px",bottom:0,width:"64px",height:"64px"},fontSize:2,name:m[f]})}},11434:function(S,y,t){"use strict";t.r(y),t.d(y,{Jukebox:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.playing,l=f.loop_mode,c=f.volume,u=f.current_track_ref,h=f.current_track,x=f.current_genre,j=f.percent,p=f.tracks,_=p.length&&p.reduce(function(I,O){var M=O.genre||"Uncategorized";return I[M]||(I[M]=[]),I[M].push(O),I},{}),E=v&&(x||"Uncategorized");return(0,e.jsx)(o.p8,{width:450,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Currently Playing",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:v&&h&&(0,e.jsxs)(r.az,{children:[h.title," by ",h.artist||"Unkown"]})||(0,e.jsx)(r.az,{children:"Stopped"})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"play",disabled:v,onClick:function(){return d("play")},children:"Play"}),(0,e.jsx)(r.$n,{icon:"stop",disabled:!v,onClick:function(){return d("stop")},children:"Stop"})]}),(0,e.jsxs)(r.Ki.Item,{label:"Loop Mode",children:[(0,e.jsx)(r.$n,{icon:"play",onClick:function(){return d("loopmode",{loopmode:1})},selected:l===1,children:"Next"}),(0,e.jsx)(r.$n,{icon:"random",onClick:function(){return d("loopmode",{loopmode:2})},selected:l===2,children:"Shuffle"}),(0,e.jsx)(r.$n,{icon:"redo",onClick:function(){return d("loopmode",{loopmode:3})},selected:l===3,children:"Repeat"}),(0,e.jsx)(r.$n,{icon:"step-forward",onClick:function(){return d("loopmode",{loopmode:4})},selected:l===4,children:"Once"})]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{value:j,maxValue:1,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Volume",children:(0,e.jsx)(r.Ap,{minValue:0,step:1,value:c*100,maxValue:100,ranges:{good:[75,1/0],average:[25,75],bad:[0,25]},format:function(I){return(0,a.LI)(I,1)+"%"},onChange:function(I,O){return d("volume",{val:(0,a.LI)(O/100,2)})}})})]})}),(0,e.jsx)(r.wn,{title:"Available Tracks",children:p.length&&Object.keys(_).sort().map(function(I){return(0,e.jsx)(r.Nt,{title:I,color:E===I?"green":"default",child_mt:0,children:(0,e.jsx)("div",{style:{"margin-left":"1em"},children:_[I].map(function(O){return(0,e.jsx)(r.$n,{fluid:!0,icon:"play",selected:u===O.ref,onClick:function(){return d("change_track",{change_track:O.ref})},children:O.title},O.ref)})})},I)})||(0,e.jsx)(r.az,{color:"bad",children:"Error: No songs loaded."})})]})})}},58503:function(S,y,t){"use strict";t.r(y),t.d(y,{LawManager:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905);function o(){return o=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(l[h]=u[h])}return l},o.apply(this,arguments)}function m(l,c){if(l==null)return{};var u={},h=Object.keys(l),x,j;for(j=0;j<h.length;j++)x=h[j],!(c.indexOf(x)>=0)&&(u[x]=l[x]);return u}var b=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.isSlaved;return(0,e.jsx)(r.p8,{width:800,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[x&&(0,e.jsxs)(n.IC,{info:!0,children:["Law-synced to ",x]})||null,(0,e.jsx)(g,{})]})})},g=function(l){var c=(0,a.QY)("lawsTabIndex",0),u=c[0],h=c[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:u===0,onClick:function(){return h(0)},children:"Law Management"}),(0,e.jsx)(n.tU.Tab,{selected:u===1,onClick:function(){return h(1)},children:"Law Sets"})]}),u===0&&(0,e.jsx)(d,{})||null,u===1&&(0,e.jsx)(v,{})||null]})},d=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.ion_law_nr,j=h.ion_law,p=h.zeroth_law,_=h.inherent_law,E=h.supplied_law,I=h.supplied_law_position,O=h.zeroth_laws,M=h.has_zeroth_laws,D=h.ion_laws,A=h.has_ion_laws,B=h.inherent_laws,U=h.has_inherent_laws,L=h.supplied_laws,k=h.has_supplied_laws,Y=h.isAI,V=h.isMalf,H=h.isAdmin,N=h.channel,q=h.channels,G=O.map(function(Q){return Q.zero=!0,Q}).concat(B);return(0,e.jsxs)(n.wn,{children:[A&&(0,e.jsx)(f,{laws:D,title:x+" Laws:",mt:-2})||null,(M||U)&&(0,e.jsx)(f,{laws:G,title:"Inherent Laws",mt:-2})||null,k&&(0,e.jsx)(f,{laws:L,title:"Supplied Laws",mt:-2})||null,(0,e.jsx)(n.wn,{level:2,title:"Controls",mt:-2,children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Statement Channel",children:q.map(function(Q){return(0,e.jsx)(n.$n,{content:Q.channel,selected:N===Q.channel,onClick:function(){return u("law_channel",{law_channel:Q.channel})}},Q.channel)})}),(0,e.jsx)(n.Ki.Item,{label:"State Laws",children:(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return u("state_laws")},children:"State Laws"})}),Y&&(0,e.jsx)(n.Ki.Item,{label:"Law Notification",children:(0,e.jsx)(n.$n,{icon:"exclamation",onClick:function(){return u("notify_laws")},children:"Notify"})})||null]})}),V&&(0,e.jsx)(n.wn,{level:2,title:"Add Laws",mt:-2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Add"})]}),H&&!M&&(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Zero"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:p,fluid:!0,onChange:function(Q,F){return u("change_zeroth_law",{val:F})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_zeroth_law")},children:"Add"})})]})||null,(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Ion"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:j,fluid:!0,onChange:function(Q,F){return u("change_ion_law",{val:F})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_ion_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Inherent"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:_,fluid:!0,onChange:function(Q,F){return u("change_inherent_law",{val:F})}})}),(0,e.jsx)(n.XI.Cell,{children:"N/A"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_inherent_law")},children:"Add"})})]}),(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:"Supplied"}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.pd,{value:E,fluid:!0,onChange:function(Q,F){return u("change_supplied_law",{val:F})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return u("change_supplied_law_position")},children:I})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return u("add_supplied_law")},children:"Add"})})]})]})})||null]})},f=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.isMalf,j=h.isAdmin,p=l.laws,_=l.title,E=l.noButtons,I=m(l,["laws","title","noButtons"]);return(0,e.jsx)(n.wn,o({level:2,title:_},I,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Index"}),(0,e.jsx)(n.XI.Cell,{children:"Law"}),!E&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"State"})||null,x&&!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Edit"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Delete"})]})||null]}),p.map(function(O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[O.index,"."]}),(0,e.jsx)(n.XI.Cell,{color:O.zero?"bad":null,children:O.law}),!E&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"volume-up",selected:O.state,onClick:function(){return u("state_law",{ref:O.ref,state_law:!O.state})},children:O.state?"Yes":"No"})})||null,x&&!E&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:O.zero&&!j,icon:"pen",onClick:function(){return u("edit_law",{edit_law:O.ref})},children:"Edit"})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{disabled:O.zero&&!j,color:"bad",icon:"trash",onClick:function(){return u("delete_law",{delete_law:O.ref})},children:"Delete"})})]})||null]},O.index)})]})}))},v=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.isMalf,j=h.law_sets;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"Remember: Stating laws other than those currently loaded may be grounds for decommissioning! - NanoTrasen"}),j.length&&j.map(function(p){return(0,e.jsxs)(n.wn,{title:p.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!x,icon:"sync",onClick:function(){return u("transfer_laws",{transfer_laws:p.ref})},children:"Load Laws"}),(0,e.jsx)(n.$n,{icon:"volume-up",onClick:function(){return u("state_law_set",{state_law_set:p.ref})},children:"State Laws"})]}),children:[p.laws.has_ion_laws&&(0,e.jsx)(f,{noButtons:!0,laws:p.laws.ion_laws,title:p.laws.ion_law_nr+" Laws:"})||null,(p.laws.has_zeroth_laws||p.laws.has_inherent_laws)&&(0,e.jsx)(f,{noButtons:!0,laws:p.laws.zeroth_laws.concat(p.laws.inherent_laws),title:p.header})||null,p.laws.has_supplied_laws&&(0,e.jsx)(f,{noButtons:!0,laws:p.laws.supplied_laws,title:"Supplied Laws"})||null]},p.name)})||null]})}},93455:function(S,y,t){"use strict";t.r(y),t.d(y,{ListInputModal:function(){return d}});var e=t(88095),a=t(44583),n=t(61652),r=t(4413),o=t(92514),m=t(84905),b=t(12035),g=t(18513),d=function(l){var c=(0,r.Oc)(),u=c.act,h=c.data,x=h.items,j=x===void 0?[]:x,p=h.message,_=p===void 0?"":p,E=h.init_value,I=h.large_buttons,O=h.timeout,M=h.title,D=(0,a.useState)(j.indexOf(E)),A=D[0],B=D[1],U=(0,a.useState)(j.length>9),L=U[0],k=U[1],Y=(0,a.useState)(""),V=Y[0],H=Y[1],N=function(ue){var he=oe.length-1;if(ue===n.R)if(A===null||A===he){var de;B(0),(de=document.getElementById("0"))==null||de.scrollIntoView()}else{var ve;B(A+1),(ve=document.getElementById((A+1).toString()))==null||ve.scrollIntoView()}else if(ue===n.gf)if(A===null||A===0){var pe;B(he),(pe=document.getElementById(he.toString()))==null||pe.scrollIntoView()}else{var be;B(A-1),(be=document.getElementById((A-1).toString()))==null||be.scrollIntoView()}},q=function(ue){ue!==A&&B(ue)},G=function(){k(!1),k(!0)},Q=function(ue){var he=String.fromCharCode(ue),de=j.find(function(be){return be==null?void 0:be.toLowerCase().startsWith(he==null?void 0:he.toLowerCase())});if(de){var ve,pe=j.indexOf(de);B(pe),(ve=document.getElementById(pe.toString()))==null||ve.scrollIntoView()}},F=function(ue){var he;ue!==V&&(H(ue),B(0),(he=document.getElementById("0"))==null||he.scrollIntoView())},Z=function(){k(!L),H("")},oe=j.filter(function(ue){return ue==null?void 0:ue.toLowerCase().includes(V.toLowerCase())}),le=325+Math.ceil(_.length/3)+(I?5:0);return L||setTimeout(function(){var ue;return(ue=document.getElementById(A.toString()))==null?void 0:ue.focus()},1),(0,e.jsxs)(m.p8,{title:M,width:325,height:le,children:[O&&(0,e.jsx)(g.Loader,{value:O}),(0,e.jsx)(m.p8.Content,{onKeyDown:function(ue){var he=window.event?ue.which:ue.keyCode;(he===n.R||he===n.gf)&&(ue.preventDefault(),N(he)),he===n.Ri&&(ue.preventDefault(),u("submit",{entry:oe[A]})),!L&&he>=n.W8&&he<=n.bh&&(ue.preventDefault(),Q(he)),he===n.s6&&(ue.preventDefault(),u("cancel"))},children:(0,e.jsx)(o.wn,{buttons:(0,e.jsx)(o.$n,{compact:!0,icon:L?"search":"font",selected:!0,tooltip:L?"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(){return Z()}}),className:"ListInput__Section",fill:!0,title:_,children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(f,{filteredItems:oe,onClick:q,onFocusSearch:G,searchBarVisible:L,selected:A})}),L&&(0,e.jsx)(v,{filteredItems:oe,onSearch:F,searchQuery:V,selected:A}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:oe[A]})})]})})})]})},f=function(l){var c=(0,r.Oc)().act,u=l.filteredItems,h=l.onClick,x=l.onFocusSearch,j=l.searchBarVisible,p=l.selected;return(0,e.jsx)(o.wn,{fill:!0,scrollable:!0,tabIndex:0,children:u.map(function(_,E){return(0,e.jsx)(o.$n,{color:"transparent",fluid:!0,id:E,onClick:function(){return h(E)},onDblClick:function(I){I.preventDefault(),c("submit",{entry:u[p]})},onKeyDown:function(I){var O=window.event?I.which:I.keyCode;j&&O>=n.W8&&O<=n.bh&&(I.preventDefault(),x())},selected:E===p,style:{animation:"none",transition:"none"},children:_.replace(/^\w/,function(I){return I.toUpperCase()})},E)})})},v=function(l){var c=(0,r.Oc)().act,u=l.filteredItems,h=l.onSearch,x=l.searchQuery,j=l.selected;return(0,e.jsx)(o.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,onEnter:function(p){p.preventDefault(),c("submit",{entry:u[j]})},onInput:function(p,_){return h(_)},placeholder:"Search...",value:x})}},4515:function(S,y,t){"use strict";t.r(y),t.d(y,{LookingGlass:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.supportedPrograms,v=d.currentProgram,l=d.immersion,c=d.gravity,u=Math.min(180+f.length*23,600);return(0,e.jsx)(r.p8,{width:300,height:u,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Programs",children:f.map(function(h){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",selected:h===v,onClick:function(){return g("program",{program:h})},children:h},h)})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Gravity",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"user-astronaut",selected:c,onClick:function(){return g("gravity")},children:c?"Enabled":"Disabled"})}),(0,e.jsx)(n.Ki.Item,{label:"Full Immersion",children:(0,e.jsx)(n.$n,{mt:-1,fluid:!0,icon:"eye",selected:l,onClick:function(){return g("immersion")},children:l?"Enabled":"Disabled"})})]})})]})})}},17542:function(S,y,t){"use strict";t.r(y),t.d(y,{MechaControlConsole:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.beacons,l=f.stored_data;return(0,e.jsx)(o.p8,{width:600,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[l.length&&(0,e.jsx)(r.aF,{children:(0,e.jsx)(r.wn,{height:"400px",style:{"overflow-y":"auto"},title:"Log",buttons:(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return d("clear_log")}}),children:l.map(function(c){return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.az,{color:"label",children:["(",c.time,") (",c.year,")"]}),(0,e.jsx)(r.az,{children:(0,a.jT)(c.message)})]},c.time)})})})||null,v.length&&v.map(function(c){return(0,e.jsx)(r.wn,{title:c.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"comment",onClick:function(){return d("send_message",{mt:c.ref})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return d("get_log",{mt:c.ref})},children:"View Log"}),(0,e.jsx)(r.$n.Confirm,{color:"red",content:"EMP",icon:"bomb",onClick:function(){return d("shock",{mt:c.ref})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{ranges:{good:[c.maxHealth*.75,1/0],average:[c.maxHealth*.5,c.maxHealth*.75],bad:[-1/0,c.maxHealth*.5]},value:c.health,maxValue:c.maxHealth})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:c.cell&&(0,e.jsx)(r.z2,{ranges:{good:[c.cellMaxCharge*.75,1/0],average:[c.cellMaxCharge*.5,c.cellMaxCharge*.75],bad:[-1/0,c.cellMaxCharge*.5]},value:c.cellCharge,maxValue:c.cellMaxCharge})||(0,e.jsx)(r.IC,{children:"No Cell Installed"})}),(0,e.jsxs)(r.Ki.Item,{label:"Air Tank",children:[c.airtank,"kPa"]}),(0,e.jsx)(r.Ki.Item,{label:"Pilot",children:c.pilot||"Unoccupied"}),(0,e.jsx)(r.Ki.Item,{label:"Location",children:(0,a.Sn)(c.location)||"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Active Equipment",children:c.active||"None"}),c.cargoMax&&(0,e.jsx)(r.Ki.Item,{label:"Cargo Space",children:(0,e.jsx)(r.z2,{ranges:{bad:[c.cargoMax*.75,1/0],average:[c.cargoMax*.5,c.cargoMax*.75],good:[-1/0,c.cargoMax*.5]},value:c.cargoUsed,maxValue:c.cargoMax})})||null]})},c.name)})||(0,e.jsx)(r.IC,{children:"No mecha beacons found."})]})})}},97311:function(S,y,t){"use strict";t.r(y),t.d(y,{Medbot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.open,l=d.beaker,c=d.beaker_total,u=d.beaker_max,h=d.locked,x=d.heal_threshold,j=d.heal_threshold_max,p=d.injection_amount_min,_=d.injection_amount,E=d.injection_amount_max,I=d.use_beaker,O=d.declare_treatment,M=d.vocal;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Medical Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,onClick:function(){return g("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Beaker",buttons:(0,e.jsx)(n.$n,{disabled:!l,icon:"eject",onClick:function(){return g("eject")},children:"Eject"}),children:l&&(0,e.jsxs)(n.z2,{value:c,maxValue:u,children:[c," / ",u]})||(0,e.jsx)(n.az,{color:"average",children:"No beaker loaded."})}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:h?"good":"bad",children:h?"Locked":"Unlocked"})]})}),!h&&(0,e.jsx)(n.wn,{title:"Behavioral Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Healing Threshold",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:0,maxValue:j,value:x,onDrag:function(D,A){return g("adj_threshold",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Injection Amount",children:(0,e.jsx)(n.Q7,{fluid:!0,minValue:p,maxValue:E,value:_,onDrag:function(D,A){return g("adj_inject",{val:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Reagent Source",children:(0,e.jsx)(n.$n,{fluid:!0,icon:I?"toggle-on":"toggle-off",selected:I,onClick:function(){return g("use_beaker")},children:I?"Loaded Beaker (When available)":"Internal Synthesizer"})}),(0,e.jsx)(n.Ki.Item,{label:"Treatment Report",children:(0,e.jsx)(n.$n,{fluid:!0,icon:O?"toggle-on":"toggle-off",selected:O,onClick:function(){return g("declaretreatment")},children:O?"On":"Off"})}),(0,e.jsx)(n.Ki.Item,{label:"Speaker",children:(0,e.jsx)(n.$n,{fluid:!0,icon:M?"toggle-on":"toggle-off",selected:M,onClick:function(){return g("togglevoice")},children:M?"On":"Off"})})]})})||null]})})}},98659:function(S,y,t){"use strict";t.r(y),t.d(y,{MedicalRecords:function(){return c}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(5425),m=t(84905),b=t(71451),g=t(1887),d=t(82489),f={Minor:"good",Medium:"average","Dangerous!":"bad",Harmful:"bad","BIOHAZARD THREAT!":"bad"},v=function(O){(0,o.modalOpen)("edit",{field:O.edit,value:O.value})},l=function(O){var M=(0,n.Oc)().act,D=O.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:D.name||"Virus",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return M("modal_close")}}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[D.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:D.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:D.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[D.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:D.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:D.symptoms.map(function(A){return(0,e.jsxs)(r.Ki.Item,{label:A.stage+". "+A.name,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",A.strength,"\xA0",(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",A.aggressiveness]},A.stage)})})})]})})})},c=function(O){var M=(0,n.Oc)().data,D=M.authenticated,A=M.screen;if(!D)return(0,e.jsx)(m.p8,{width:800,height:380,children:(0,e.jsx)(m.p8.Content,{children:(0,e.jsx)(g.LoginScreen,{})})});var B;return A===2?B=(0,e.jsx)(u,{}):A===3?B=(0,e.jsx)(h,{}):A===4?B=(0,e.jsx)(x,{}):A===5?B=(0,e.jsx)(_,{}):A===6&&(B=(0,e.jsx)(E,{})),(0,e.jsxs)(m.p8,{width:800,height:380,children:[(0,e.jsx)(o.ComplexModal,{maxHeight:"100%",maxWidth:"80%"}),(0,e.jsxs)(m.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(b.LoginInfo,{}),(0,e.jsx)(d.TemporaryNotice,{}),(0,e.jsx)(I,{}),(0,e.jsx)(r.wn,{height:"calc(100% - 5rem)",flexGrow:"1",children:B})]})]})},u=function(O){var M=(0,n.Oc)(),D=M.act,A=M.data,B=A.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(U,L){return D("search",{t1:L})}}),(0,e.jsx)(r.az,{mt:"0.5rem",children:B.map(function(U,L){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:U.id+": "+U.name,onClick:function(){return D("d_rec",{d_rec:U.ref})}},L)})})]})},h=function(O){var M=(0,n.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(r.$n.Confirm,{icon:"trash",content:"Delete All Medical Records",onClick:function(){return M("del_all")}})]})},x=function(O){var M=(0,n.Oc)(),D=M.act,A=M.data,B=A.medical,U=A.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General Data",level:2,mt:"-6px",children:(0,e.jsx)(j,{})}),(0,e.jsx)(r.wn,{title:"Medical Data",level:2,children:(0,e.jsx)(p,{})}),(0,e.jsxs)(r.wn,{title:"Actions",level:2,children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",disabled:!!B.empty,content:"Delete Medical Record",color:"bad",onClick:function(){return D("del_r")}}),(0,e.jsx)(r.$n,{icon:U?"spinner":"print",disabled:U,iconSpin:!!U,content:"Print Entry",ml:"0.5rem",onClick:function(){return D("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return D("screen",{screen:2})}})]})]})},j=function(O){var M=(0,n.Oc)().data,D=M.general;return!D||!D.fields?(0,e.jsx)(r.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{width:"50%",float:"left",children:(0,e.jsx)(r.Ki,{children:D.fields.map(function(A,B){return(0,e.jsxs)(r.Ki.Item,{label:A.field,children:[(0,e.jsx)(r.az,{height:"20px",display:"inline-block",preserveWhitespace:!0,children:A.value}),!!A.edit&&(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return v(A)}})]},B)})})}),(0,e.jsx)(r.az,{width:"50%",float:"right",textAlign:"right",children:!!D.has_photos&&D.photos.map(function(A,B){return(0,e.jsxs)(r.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:A.substr(1,A.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",B+1]},B)})})]})},p=function(O){var M=(0,n.Oc)(),D=M.act,A=M.data,B=A.medical;return!B||!B.fields?(0,e.jsxs)(r.az,{color:"bad",children:["Medical records lost!",(0,e.jsx)(r.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return D("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki,{children:B.fields.map(function(U,L){return(0,e.jsx)(r.Ki.Item,{label:U.field,children:(0,e.jsxs)(r.az,{preserveWhitespace:!0,children:[U.value,(0,e.jsx)(r.$n,{icon:"pen",ml:"0.5rem",mb:U.line_break?"1rem":"initial",onClick:function(){return v(U)}})]})},L)})}),(0,e.jsxs)(r.wn,{title:"Comments/Log",level:2,children:[B.comments.length===0?(0,e.jsx)(r.az,{color:"label",children:"No comments found."}):B.comments.map(function(U,L){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:U.header}),(0,e.jsx)("br",{}),U.text,(0,e.jsx)(r.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return D("del_c",{del_c:L+1})}})]},L)}),(0,e.jsx)(r.$n,{icon:"comment-medical",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,o.modalOpen)("add_c")}})]})]})},_=function(O){var M=(0,n.Oc)(),D=M.act,A=M.data,B=A.virus;return B.sort(function(U,L){return U.name>L.name?1:-1}),B.map(function(U,L){return(0,e.jsxs)(a.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"flask",content:U.name,mb:"0.5rem",onClick:function(){return D("vir",{vir:U.D})}}),(0,e.jsx)("br",{})]},L)})},E=function(O){var M=(0,n.Oc)().data,D=M.medbots;return D.length===0?(0,e.jsx)(r.az,{color:"label",children:"There are no Medbots."}):D.map(function(A,B){return(0,e.jsx)(r.Nt,{open:!0,title:A.name,children:(0,e.jsx)(r.az,{px:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Location",children:[A.area||"Unknown"," (",A.x,", ",A.y,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:A.on?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"good",children:"Online"}),(0,e.jsx)(r.az,{mt:"0.5rem",children:A.use_beaker?"Reservoir: "+A.total_volume+"/"+A.maximum_volume:"Using internal synthesizer."})]}):(0,e.jsx)(r.az,{color:"average",children:"Offline"})})]})})},B)})},I=function(O){var M=(0,n.Oc)(),D=M.act,A=M.data,B=A.screen;return(0,e.jsxs)(r.tU,{children:[(0,e.jsxs)(r.tU.Tab,{selected:B===2,onClick:function(){return D("screen",{screen:2})},children:[(0,e.jsx)(r.In,{name:"list"}),"List Records"]}),(0,e.jsxs)(r.tU.Tab,{selected:B===5,onClick:function(){return D("screen",{screen:5})},children:[(0,e.jsx)(r.In,{name:"database"}),"Virus Database"]}),(0,e.jsxs)(r.tU.Tab,{selected:B===6,onClick:function(){return D("screen",{screen:6})},children:[(0,e.jsx)(r.In,{name:"plus-square"}),"Medbot Tracking"]}),(0,e.jsxs)(r.tU.Tab,{selected:B===3,onClick:function(){return D("screen",{screen:3})},children:[(0,e.jsx)(r.In,{name:"wrench"}),"Record Maintenance"]})]})};(0,o.modalRegisterBodyOverride)("virus",l)},31825:function(S,y,t){"use strict";t.r(y),t.d(y,{MentorTicketPanel:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={open:"Open",resolved:"Resolved",unknown:"Unknown"},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.id,l=f.title,c=f.name,u=f.state,h=f.opened_at,x=f.closed_at,j=f.opened_at_date,p=f.closed_at_date,_=f.actions,E=f.log;return(0,e.jsx)(r.p8,{width:900,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Ticket #"+v,buttons:(0,e.jsxs)(n.az,{nowrap:!0,children:[(0,e.jsx)(n.$n,{icon:"arrow-up",content:"Escalate",onClick:function(){return d("escalate")}})," ",(0,e.jsx)(n.$n,{content:"Legacy UI",onClick:function(){return d("legacy")}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Mentor Help Ticket",children:["#",v,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:c}})]}),(0,e.jsx)(n.Ki.Item,{label:"State",children:o[u]}),o[u]===o.open?(0,e.jsxs)(n.Ki.Item,{label:"Opened At",children:[j," (",Math.round(h/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(n.Ki.Item,{label:"Closed At",children:[p," (",Math.round(x/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(n.$n,{content:"Reopen",onClick:function(){return d("reopen")}})]}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:_}})}),(0,e.jsx)(n.Ki.Item,{label:"Log",children:Object.keys(E).map(function(I,O){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E[I]}},O)})})]})})})})}},68607:function(S,y,t){"use strict";t.r(y),t.d(y,{MessageMonitor:function(){return d}});var e=t(88095),a=t(33854),n=t(44583),r=t(4413),o=t(92514),m=t(84905),b=t(13221),g=t(82489),d=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.auth,O=E.linkedServer,M=E.message,D=E.hacking,A=E.emag,B;return D||A?B=(0,e.jsx)(f,{}):I?O?B=(0,e.jsx)(l,{}):B=(0,e.jsx)(o.az,{color:"bad",children:"ERROR"}):B=(0,e.jsx)(v,{}),(0,e.jsx)(m.p8,{width:670,height:450,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g.TemporaryNotice,{}),B]})})},f=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.isMalfAI;return(0,e.jsx)(b.FullscreenNotice,{title:"ERROR",children:I?(0,e.jsx)(o.az,{children:"Brute-forcing for server key. It will take 20 seconds for every character that the password has."}):(0,e.jsxs)(o.az,{children:["01000010011100100111010101110100011001010010110",(0,e.jsx)("br",{}),"10110011001101111011100100110001101101001011011100110011",(0,e.jsx)("br",{}),"10010000001100110011011110111001000100000011100110110010",(0,e.jsx)("br",{}),"10111001001110110011001010111001000100000011010110110010",(0,e.jsx)("br",{}),"10111100100101110001000000100100101110100001000000111011",(0,e.jsx)("br",{}),"10110100101101100011011000010000001110100011000010110101",(0,e.jsx)("br",{}),"10110010100100000001100100011000000100000011100110110010",(0,e.jsx)("br",{}),"10110001101101111011011100110010001110011001000000110011",(0,e.jsx)("br",{}),"00110111101110010001000000110010101110110011001010111001",(0,e.jsx)("br",{}),"00111100100100000011000110110100001100001011100100110000",(0,e.jsx)("br",{}),"10110001101110100011001010111001000100000011101000110100",(0,e.jsx)("br",{}),"00110000101110100001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00111000001100001011100110111001101110111011011110111001",(0,e.jsx)("br",{}),"00110010000100000011010000110000101110011001011100010000",(0,e.jsx)("br",{}),"00100100101101110001000000111010001101000011001010010000",(0,e.jsx)("br",{}),"00110110101100101011000010110111001110100011010010110110",(0,e.jsx)("br",{}),"10110010100101100001000000111010001101000011010010111001",(0,e.jsx)("br",{}),"10010000001100011011011110110111001110011011011110110110",(0,e.jsx)("br",{}),"00110010100100000011000110110000101101110001000000111001",(0,e.jsx)("br",{}),"00110010101110110011001010110000101101100001000000111100",(0,e.jsx)("br",{}),"10110111101110101011100100010000001110100011100100111010",(0,e.jsx)("br",{}),"10110010100100000011010010110111001110100011001010110111",(0,e.jsx)("br",{}),"00111010001101001011011110110111001110011001000000110100",(0,e.jsx)("br",{}),"10110011000100000011110010110111101110101001000000110110",(0,e.jsx)("br",{}),"00110010101110100001000000111001101101111011011010110010",(0,e.jsx)("br",{}),"10110111101101110011001010010000001100001011000110110001",(0,e.jsx)("br",{}),"10110010101110011011100110010000001101001011101000010111",(0,e.jsx)("br",{}),"00010000001001101011000010110101101100101001000000111001",(0,e.jsx)("br",{}),"10111010101110010011001010010000001101110011011110010000",(0,e.jsx)("br",{}),"00110100001110101011011010110000101101110011100110010000",(0,e.jsx)("br",{}),"00110010101101110011101000110010101110010001000000111010",(0,e.jsx)("br",{}),"00110100001100101001000000111001001101111011011110110110",(0,e.jsx)("br",{}),"10010000001100100011101010111001001101001011011100110011",(0,e.jsx)("br",{}),"10010000001110100011010000110000101110100001000000111010",(0,e.jsx)("br",{}),"001101001011011010110010100101110"]})})},v=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.isMalfAI;return(0,e.jsxs)(b.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(o.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(o.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),"Unauthorized"]}),(0,e.jsxs)(o.az,{color:"label",my:"1rem",children:["Decryption Key:",(0,e.jsx)(o.pd,{placeholder:"Decryption Key",ml:"0.5rem",onChange:function(O,M){return _("auth",{key:M})}})]}),!!I&&(0,e.jsx)(o.$n,{icon:"terminal",content:"Hack",onClick:function(){return _("hack")}}),(0,e.jsx)(o.az,{color:"label",children:"Please authenticate with the server in order to show additional options."})]})},l=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.linkedServer,O=(0,n.useState)(0),M=O[0],D=O[1],A;return M===0?A=(0,e.jsx)(c,{}):M===1?A=(0,e.jsx)(u,{logs:I.pda_msgs,pda:!0}):M===2?A=(0,e.jsx)(u,{logs:I.rc_msgs,rc:!0}):M===3?A=(0,e.jsx)(h,{}):M===4&&(A=(0,e.jsx)(x,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:M===0,onClick:function(){return D(0)},children:[(0,e.jsx)(o.In,{name:"bars"})," Main Menu"]},"Main"),(0,e.jsxs)(o.tU.Tab,{selected:M===1,onClick:function(){return D(1)},children:[(0,e.jsx)(o.In,{name:"font"})," Message Logs"]},"MessageLogs"),(0,e.jsxs)(o.tU.Tab,{selected:M===2,onClick:function(){return D(2)},children:[(0,e.jsx)(o.In,{name:"bold"})," Request Logs"]},"RequestLogs"),(0,e.jsxs)(o.tU.Tab,{selected:M===3,onClick:function(){return D(3)},children:[(0,e.jsx)(o.In,{name:"comment-alt"})," Admin Messaging"]},"AdminMessage"),(0,e.jsxs)(o.tU.Tab,{selected:M===4,onClick:function(){return D(4)},children:[(0,e.jsx)(o.In,{name:"comment-slash"})," Spam Filter"]},"SpamFilter"),(0,e.jsxs)(o.tU.Tab,{color:"red",onClick:function(){return _("deauth")},children:[(0,e.jsx)(o.In,{name:"sign-out-alt"})," Log Out"]},"Logout")]}),(0,e.jsx)(o.az,{m:2,children:A})]})},c=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.linkedServer;return(0,e.jsxs)(o.wn,{title:"Main Menu",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"link",content:"Server Link",onClick:function(){return _("find")}}),(0,e.jsx)(o.$n,{icon:"power-off",content:"Server "+(I.active?"Enabled":"Disabled"),selected:I.active,onClick:function(){return _("active")}})]}),children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Server Status",children:(0,e.jsx)(o.az,{color:"good",children:"Good"})})}),(0,e.jsx)(o.$n,{mt:1,icon:"key",content:"Set Custom Key",onClick:function(){return _("pass")}}),(0,e.jsx)(o.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Message Logs"}),(0,e.jsx)(o.$n.Confirm,{color:"red",confirmIcon:"exclamation-triangle",icon:"exclamation-triangle",content:"Clear Request Logs"})]})},u=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=j.logs,O=j.pda,M=j.rc;return(0,e.jsx)(o.wn,{title:O?"PDA Logs":M?"Request Logs":"Logs",buttons:(0,e.jsx)(o.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return _(O?"del_pda":"del_rc")}}),children:(0,e.jsx)(o.so,{wrap:"wrap",children:I.map(function(D,A){return(0,e.jsx)(o.so.Item,{m:"2px",basis:"49%",grow:A%2,children:(0,e.jsx)(o.wn,{title:D.sender+" -> "+D.recipient,buttons:(0,e.jsx)(o.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return _("delete",{id:D.ref,type:M?"rc":"pda"})}}),children:M?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Message",children:D.message}),(0,e.jsx)(o.Ki.Item,{label:"Verification",color:D.id_auth==="Unauthenticated"?"bad":"good",children:(0,a.jT)(D.id_auth)}),(0,e.jsx)(o.Ki.Item,{label:"Stamp",children:D.stamp})]}):D.message})},D.ref)})})})},h=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.possibleRecipients,O=E.customsender,M=E.customrecepient,D=E.customjob,A=E.custommessage,B=Object.keys(I);return(0,e.jsxs)(o.wn,{title:"Admin Messaging",children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Sender",children:(0,e.jsx)(o.pd,{fluid:!0,value:O,onChange:function(U,L){return _("set_sender",{val:L})}})}),(0,e.jsx)(o.Ki.Item,{label:"Sender's Job",children:(0,e.jsx)(o.pd,{fluid:!0,value:D,onChange:function(U,L){return _("set_sender_job",{val:L})}})}),(0,e.jsx)(o.Ki.Item,{label:"Recipient",children:(0,e.jsx)(o.ms,{value:M,options:B,width:"100%",mb:-.7,onSelected:function(U){return _("set_recipient",{val:I[U]})}})}),(0,e.jsx)(o.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(o.pd,{fluid:!0,mb:.5,value:A,onChange:function(U,L){return _("set_message",{val:L})}})})]}),(0,e.jsx)(o.$n,{fluid:!0,icon:"comment",content:"Send Message",onClick:function(){return _("send_message")}})]})},x=function(j){var p=(0,r.Oc)(),_=p.act,E=p.data,I=E.linkedServer;return(0,e.jsxs)(o.wn,{title:"Spam Filtering",children:[(0,e.jsx)(o.Ki,{children:I.spamFilter.map(function(O){return(0,e.jsx)(o.Ki.Item,{label:O.index,buttons:(0,e.jsx)(o.$n,{icon:"trash",color:"bad",content:"Delete",onClick:function(){return _("deltoken",{deltoken:O.index})}}),children:O.token},O.index)})}),(0,e.jsx)(o.$n,{icon:"plus",content:"Add New Entry",onClick:function(){return _("addtoken")}})]})}},91015:function(S,y,t){"use strict";t.r(y),t.d(y,{Microwave:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.config,f=b.data,v=f.broken,l=f.operating,c=f.dirty,u=f.items;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:v&&(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.az,{color:"bad",children:"Bzzzzttttt!!"})})||l&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"good",children:["Microwaving in progress!",(0,e.jsx)("br",{}),"Please wait...!"]})})||c&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:["This microwave is dirty!",(0,e.jsx)("br",{}),"Please clean it before use!"]})})||u.length&&(0,e.jsx)(n.wn,{level:1,title:"Ingredients",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"radiation",onClick:function(){return g("cook")},children:"Microwave"}),(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return g("dispose")},children:"Eject"})]}),children:(0,e.jsx)(n.Ki,{children:u.map(function(h){return(0,e.jsxs)(n.Ki.Item,{label:h.name,children:[h.amt," ",h.extra]},h.name)})})})||(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"bad",children:[d.title," is empty."]})})})})}},46258:function(S,y,t){"use strict";t.r(y),t.d(y,{MiningOreProcessingConsole:function(){return b}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=t(4418),b=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=h.unclaimedPoints,j=h.ores,p=h.showAllOres,_=h.power,E=h.speed;return(0,e.jsx)(o.p8,{width:400,height:500,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(m.MiningUser,{insertIdText:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"arrow-right",mr:1,onClick:function(){return u("insert")},children:"Insert ID"}),"in order to claim points."]})}),(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"bolt",selected:E,onClick:function(){return u("speed_toggle")},children:E?"High-Speed Active":"High-Speed Inactive"}),(0,e.jsx)(r.$n,{icon:"power-off",selected:_,onClick:function(){return u("power")},children:_?"Smelting":"Not Smelting"})]}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current unclaimed points",buttons:(0,e.jsx)(r.$n,{disabled:x<1,icon:"download",onClick:function(){return u("claim")},children:"Claim"}),children:(0,e.jsx)(r.zv,{value:x})})})}),(0,e.jsx)(v,{})]})})},g=["Not Processing","Smelting","Compressing","Alloying"],d=["verdantium","mhydrogen","diamond","platinum","uranium","gold","silver","rutile","phoron","marble","lead","sand","carbon","hematite"],f=function(l,c){return d.indexOf(l.ore)===-1||d.indexOf(c.ore)===-1?l.ore-c.ore:d.indexOf(c.ore)-d.indexOf(l.ore)},v=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=h.ores,j=h.showAllOres,p=h.power;return(0,e.jsx)(r.wn,{title:"Ore Processing Controls",buttons:(0,e.jsx)(r.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return u("showAllOres")},children:j?"All Ores":"Ores in Machine"}),children:(0,e.jsx)(r.Ki,{children:x.length&&x.sort(f).map(function(_){return(0,e.jsx)(r.Ki.Item,{label:(0,a.Sn)(_.name),buttons:(0,e.jsx)(r.ms,{width:"120px",color:_.processing===0&&"red"||_.processing===1&&"green"||_.processing===2&&"blue"||_.processing===3&&"yellow",options:g,selected:g[_.processing],onSelected:function(E){return u("toggleSmelting",{ore:_.ore,set:g.indexOf(E)})}}),children:(0,e.jsx)(r.az,{inline:!0,children:(0,e.jsx)(r.zv,{value:_.amount})})},_.ore)})||(0,e.jsx)(r.az,{color:"bad",textAlign:"center",children:"No ores in machine."})})})}},1703:function(S,y,t){"use strict";t.r(y),t.d(y,{MiningStackingConsole:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.stacktypes,l=f.stackingAmt;return(0,e.jsx)(o.p8,{width:400,height:500,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Stacker Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Stacking",children:(0,e.jsx)(r.Q7,{fluid:!0,value:l,minValue:1,maxValue:50,stepPixelSize:5,onChange:function(c,u){return d("change_stack",{amt:u})}})}),(0,e.jsx)(r.Ki.Divider,{}),v.length&&v.sort().map(function(c){return(0,e.jsx)(r.Ki.Item,{label:(0,a.Sn)(c.type),buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return d("release_stack",{stack:c.type})},children:"Eject"}),children:(0,e.jsx)(r.zv,{value:c.amt})},c.type)})||(0,e.jsx)(r.Ki.Item,{label:"Empty",color:"average",children:"No stacks in machine."})]})})})})}},25620:function(S,y,t){"use strict";t.r(y),t.d(y,{MiningVendor:function(){return f}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=t(4418);function b(){return b=Object.assign||function(u){for(var h=1;h<arguments.length;h++){var x=arguments[h];for(var j in x)Object.prototype.hasOwnProperty.call(x,j)&&(u[j]=x[j])}return u},b.apply(this,arguments)}function g(u,h){if(u==null)return{};var x={},j=Object.keys(u),p,_;for(_=0;_<j.length;_++)p=j[_],!(h.indexOf(p)>=0)&&(x[p]=u[p]);return x}var d={Alphabetical:function(u,h){return u-h},"By availability":function(u,h){return-(u.affordable-h.affordable)},"By price":function(u,h){return u.price-h.price}},f=function(u){return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsxs)(o.p8.Content,{className:"Layout__content--flexColumn",scrollable:!0,children:[(0,e.jsx)(m.MiningUser,{insertIdText:"Please insert an ID in order to make purchases."}),(0,e.jsx)(l,{}),(0,e.jsx)(v,{})]})})},v=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=j.has_id,_=j.id,E=j.items,I=(0,n.Ul)("search",""),O=I[0],M=I[1],D=(0,n.Ul)("sort","Alphabetical"),A=D[0],B=D[1],U=(0,n.Ul)("descending",!1),L=U[0],k=U[1],Y=(0,a.XZ)(O,function(N){return N[0]}),V=!1,H=Object.entries(E).map(function(N,q){var G=Object.entries(N[1]).filter(Y).map(function(Q){return Q[1].affordable=p&&_.points>=Q[1].price,Q[1]}).sort(d[A]);if(G.length!==0)return L&&(G=G.reverse()),V=!0,(0,e.jsx)(c,{title:N[0],items:G},N[0])});return(0,e.jsx)(r.so.Item,{grow:"1",overflow:"auto",children:(0,e.jsx)(r.wn,{children:V?H:(0,e.jsx)(r.az,{color:"label",children:"No items matching your criteria was found!"})})})},l=function(u){var h=(0,n.Ul)("search",""),x=h[0],j=h[1],p=(0,n.Ul)("sort",""),_=p[0],E=p[1],I=(0,n.Ul)("descending",!1),O=I[0],M=I[1];return(0,e.jsx)(r.az,{mb:"0.5rem",children:(0,e.jsxs)(r.so,{width:"100%",children:[(0,e.jsx)(r.so.Item,{grow:"1",mr:"0.5rem",children:(0,e.jsx)(r.pd,{placeholder:"Search by item name..",width:"100%",onInput:function(D,A){return j(A)}})}),(0,e.jsx)(r.so.Item,{basis:"30%",children:(0,e.jsx)(r.ms,{selected:"Alphabetical",options:Object.keys(d),width:"100%",lineHeight:"19px",onSelected:function(D){return E(D)}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:O?"arrow-down":"arrow-up",height:"19px",tooltip:O?"Descending order":"Ascending order",tooltipPosition:"bottom-end",ml:"0.5rem",onClick:function(){return M(!O)}})})]})})},c=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=u.title,_=u.items,E=g(u,["title","items"]);return(0,e.jsx)(r.Nt,b({open:!0,title:p},E,{children:_.map(function(I){return(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",lineHeight:"20px",style:{float:"left"},children:I.name}),(0,e.jsx)(r.$n,{disabled:!j.has_id||j.id.points<I.price,content:I.price.toLocaleString("en-US"),width:"15%",textAlign:"center",style:{float:"right"},onClick:function(){return x("purchase",{cat:p,name:I.name})}}),(0,e.jsx)(r.az,{style:{clear:"both"}})]},I.name)})}))}},83326:function(S,y,t){"use strict";t.r(y),t.d(y,{MobSpawner:function(){return m}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=(0,a.useState)(0),u=c[0],h=c[1],x=[];return x[0]=(0,e.jsx)(b,{}),x[1]=(0,e.jsx)(g,{}),(0,e.jsx)(o.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:u===0,onClick:function(){return h(0)},children:"General Settings"}),(0,e.jsx)(r.tU.Tab,{selected:u===1,onClick:function(){return h(1)},children:"Vore Settings [WIP]"})]}),x[u]||"Error"]})})},b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=(0,a.useState)(1),u=c[0],h=c[1],x=(0,a.useState)(l.default_path_name),j=x[0],p=x[1],_=(0,a.useState)(l.ai_type),E=_[0],I=(0,a.useState)(l.use_custom_ai),O=I[0],M=(0,a.useState)(l.faction),D=M[0],A=(0,a.useState)(l.intent),B=A[0],U=(0,a.useState)(l.max_health),L=U[0],k=U[1],Y=(0,a.useState)(l.health),V=Y[0],H=Y[1],N=(0,a.useState)(l.melee_damage_lower),q=N[0],G=N[1],Q=(0,a.useState)(l.melee_damage_upper),F=Q[0],Z=Q[1],oe=(0,a.useState)(l.default_desc),le=oe[0],ue=oe[1],he=(0,a.useState)(l.default_flavor_text),de=he[0],ve=he[1],pe=(0,a.useState)(100),be=pe[0],ye=pe[1],Te=(0,a.useState)(l.initial_x),Ke=Te[0],$e=Te[1],We=(0,a.useState)(l.initial_y),Qe=We[0],Ye=We[1],mt=(0,a.useState)(l.initial_z),vt=mt[0],ht=mt[1],ot=(0,a.useState)(0),He=ot[0],Ne=ot[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"General",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mob Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:j||l.default_path_name,onChange:function(ke,we){return p(we)}})}),(0,e.jsx)(r.Ki.Item,{label:"Mob Path",children:(0,e.jsx)(r.$n,{fluid:!0,content:l.path||"Select Path",onClick:function(ke){return v("select_path")}})}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Amount",children:(0,e.jsx)(r.Q7,{value:u,minValue:0,maxValue:256,onChange:function(ke,we){return h(we)}})}),(0,e.jsx)(r.Ki.Item,{label:"Size ("+be+"%)",children:(0,e.jsx)(r.N6,{value:be,minValue:50,maxValue:200,unit:"%",onChange:function(ke,we){return ye(we)}})})]})}),(0,e.jsx)(r.wn,{title:"General Settings",children:(0,e.jsxs)(r.so,{horizontal:!0,children:[(0,e.jsx)(r.so.Item,{FlexGrow:!0,children:(0,e.jsx)(r.wn,{title:"Positional Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spawn (X/Y/Z) Coords",children:[(0,e.jsx)(r.Q7,{value:l.loc_lock?l.loc_x:Ke,minValue:0,maxValue:256,onChange:function(ke,we){return $e(we)}}),(0,e.jsx)(r.Q7,{value:l.loc_lock?l.loc_y:Qe,minValue:0,maxValue:256,onChange:function(ke,we){return Ye(we)}}),(0,e.jsx)(r.Q7,{value:l.loc_lock?l.loc_z:vt,minValue:0,maxValue:256,onChange:function(ke,we){return ht(we)}}),(0,e.jsx)(r.$n.Checkbox,{content:"Lock coords to self",checked:l.loc_lock,onClick:function(){return v("loc_lock")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Spawn Radius (WIP)",children:(0,e.jsx)(r.Q7,{value:He,disabled:!0,minValue:0,maxValue:256,onChange:function(ke,we){return Ne(we)}})})]})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.cG,{vertical:!0})}),(0,e.jsxs)(r.so.Item,{FlexGrow:!0,children:[(0,e.jsx)(r.wn,{title:"AI settings",buttons:(0,e.jsx)(r.$n,{selected:O,fill:!0,content:"Use Custom AI",onClick:function(){return v("toggle_custom_ai")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:E||"Choose AI Type",onClick:function(ke){return v("set_ai_path")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:D||"Set Faction",onClick:function(ke){return v("set_faction")}})}),(0,e.jsx)(r.Ki.Item,{children:(0,e.jsx)(r.$n,{fluid:!0,content:B||"Set Intent",onClick:function(ke){return v("set_intent")}})})]})}),(0,e.jsx)(r.wn,{title:"Health & Damage",children:(0,e.jsxs)(r.Ki,{children:[L&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Max Health",children:(0,e.jsx)(r.Q7,{value:L,onChange:function(ke,we){return k(we)}})}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.Q7,{value:V,onChange:function(ke,we){return H(we)}})}),(0,e.jsx)("br",{})]})||"Note: Only available for '/mob/living'",q&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Lower)",children:(0,e.jsx)(r.Q7,{value:q,onChange:function(ke,we){return G(we)}})}),(0,e.jsx)(r.Ki.Item,{label:"Melee Damage (Upper)",children:(0,e.jsx)(r.Q7,{value:F,onChange:function(ke,we){return Z(we)}})})]})||"Note: Only available for '/mob/living/simple_mob'"]})})]})]})}),(0,e.jsx)(r.wn,{title:"Descriptions",children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{width:"50%",children:["Description:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",onChange:function(ke,we){return ue(we)},value:le||l.default_desc})]}),(0,e.jsxs)(r.so.Item,{width:"50%",children:["Flavor Text:",(0,e.jsx)("br",{}),(0,e.jsx)(r.fs,{height:"18rem",value:de||l.default_flavor_text,onChange:function(ke,we){return ve(we)}})]})]})}),(0,e.jsx)(r.$n,{color:"teal",onCLick:function(){return v("start_spawn",{amount:u,name:j||l.default_path_name,desc:le||l.default_desc,max_health:L||l.max_health,health:V||l.health,melee_damage_lower:q||l.melee_damage_lower,melee_damage_upper:F||l.melee_damage_upper,flavor_text:de||l.default_flavor_text,size_multiplier:be*.01,x:l.loc_lock?l.loc_x:Ke,y:l.loc_lock?l.loc_y:Qe,z:l.loc_lock?l.loc_z:vt,radius:He})},children:"Spawn"})]})},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data;return(0,e.jsxs)(r.wn,{title:"WIP",children:["This Tab is still under construction!",(0,e.jsx)("br",{}),"Functionality will be added in later updates."]})}},44372:function(S,y,t){"use strict";t.r(y),t.d(y,{MuleBot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.suffix,c=v.load,u=v.hatch;return(0,e.jsx)(r.p8,{width:350,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Multiple Utility Load Effector Mk. III",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ID",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Current Load",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Unload Now",disabled:!c,onClick:function(){return f("unload")}}),children:c||"None."})]}),u?(0,e.jsx)(b,{}):(0,e.jsx)(m,{})]})})})},m=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.power,c=v.locked,u=v.issilicon,h=v.auto_return,x=v.crates_only;return(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:l?"On":"Off",selected:l,disabled:c&&!u,onClick:function(){return f("power")}}),children:c&&!u?(0,e.jsx)(n.az,{color:"bad",children:"This interface is currently locked."}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"stop",content:"Stop",onClick:function(){return f("stop")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"truck-monster",content:"Proceed",onClick:function(){return f("go")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",content:"Return Home",onClick:function(){return f("home")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"map-marker-alt",content:"Set Destination",onClick:function(){return f("destination")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Set Home",onClick:function(){return f("sethome")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"home",selected:h,content:"Auto Return Home: "+(h?"Enabled":"Disabled"),onClick:function(){return f("autoret")}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"biking",selected:!x,content:"Non-standard Cargo: "+(x?"Disabled":"Enabled"),onClick:function(){return f("cargotypes")}})]})})},b=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.safety;return(0,e.jsx)(n.wn,{title:"Maintenance Panel",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"skull-crossbones",color:l?"green":"red",content:"Safety: "+(l?"Engaged":"Disengaged (DANGER)"),onClick:function(){return f("safety")}})})}},72207:function(S,y,t){"use strict";t.r(y),t.d(y,{NIF:function(){return l}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=0,b=1,g=2,d=3,f=4,v=["abductor","cardtable","hackerman","malfunction","ntos","paper","retro","syndicate"],l=function(j){var p=(0,n.Oc)(),_=p.act,E=p.config,I=p.data,O=I.theme,M=I.last_notification,D=(0,a.useState)(!1),A=D[0],B=D[1],U=(0,a.useState)(null),L=U[0],k=U[1];return(0,e.jsx)(o.p8,{theme:O,width:500,height:400,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[!!M&&(0,e.jsx)(r.IC,{info:!0,children:(0,e.jsx)(r.XI,{verticalAlign:"middle",children:(0,e.jsxs)(r.XI.Row,{verticalAlign:"middle",children:[(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",children:M}),(0,e.jsx)(r.XI.Cell,{verticalAlign:"middle",collapsing:!0,children:(0,e.jsx)(r.$n,{color:"red",icon:"times",tooltip:"Dismiss",tooltipPosition:"left",onClick:function(){return _("dismissNotification")}})})]})})}),!!L&&(0,e.jsx)(r.aF,{m:1,p:0,color:"label",children:(0,e.jsxs)(r.wn,{m:0,title:L.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"ban",color:"bad",content:"Uninstall",confirmIcon:"ban",confirmContent:"Uninstall "+L.name+"?",onClick:function(){_("uninstall",{module:L.ref}),k(null)}}),(0,e.jsx)(r.$n,{icon:"window-close",onClick:function(){return k(null)}})]}),children:[(0,e.jsx)(r.az,{children:L.desc}),(0,e.jsxs)(r.az,{children:["It consumes"," ",(0,e.jsx)(r.az,{color:"good",inline:!0,children:L.p_drain})," ","energy units while installed, and"," ",(0,e.jsx)(r.az,{color:"average",inline:!0,children:L.a_drain})," ","additionally while active."]}),(0,e.jsxs)(r.az,{color:L.illegal?"bad":"good",children:["It is ",L.illegal?"NOT ":"","a legal software package."]}),(0,e.jsxs)(r.az,{children:["The MSRP of the package is"," ",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:[L.cost,"\u20AE."]})]}),(0,e.jsxs)(r.az,{children:["The difficulty to construct the associated implant is\xA0",(0,e.jsxs)(r.az,{color:"good",inline:!0,children:["Rating ",L.wear]}),"."]})]})}),(0,e.jsx)(r.wn,{title:"Welcome to your NIF, "+E.user.name,buttons:(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Settings",tooltipPosition:"bottom-end",selected:A,onClick:function(){return B(!A)}}),children:A&&(0,e.jsx)(x,{})||(0,e.jsx)(h,{setViewing:k})})]})})},c=function(j,p){switch(j){case m:return p<25?"Service Needed Soon":"Operating Normally";case b:return"Insufficient Energy!";case g:return"System Failure!";case d:return"Adapting To User"}return"Unknown"},u=function(j,p){return p?j>=450?"Overcharged":j>=250?"Good Charge":"Low Charge":j>=250?"NIF Power Requirement met.":j>=150?"Fluctuations in available power.":"Power failure imminent."},h=function(j){var p=(0,n.Oc)(),_=p.act,E=p.config,I=p.data,O=I.nif_percent,M=I.nif_stat,D=I.last_notification,A=I.nutrition,B=I.isSynthetic,U=I.modules,L=j.setViewing;return(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"NIF Condition",children:(0,e.jsxs)(r.z2,{value:O,minValue:0,maxValue:100,ranges:{good:[50,1/0],average:[25,50],bad:[-1/0,0]},children:[c(M,O)," (",(0,e.jsx)(r.zv,{value:O}),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"NIF Power",children:(0,e.jsx)(r.z2,{value:A,minValue:0,maxValue:700,ranges:{good:[250,1/0],average:[150,250],bad:[0,150]},children:u(A,B)})})]}),(0,e.jsx)(r.wn,{level:2,title:"NIFSoft Modules",mt:1,children:(0,e.jsx)(r.Ki,{children:U.map(function(k){return(0,e.jsx)(r.Ki.Item,{label:k.name,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{icon:"trash",color:"bad",confirmContent:"UNINSTALL?",confirmIcon:"trash",tooltip:"Uninstall Module",tooltipPosition:"left",onClick:function(){return _("uninstall",{module:k.ref})}}),(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return L(k)},tooltip:"View Information",tooltipPosition:"left"})]}),children:k.activates&&(0,e.jsx)(r.$n,{fluid:!0,selected:k.active,content:k.stat_text,onClick:function(){return _("toggle_module",{module:k.ref})}})||(0,e.jsx)(r.az,{children:k.stat_text})},k.ref)})})})]})},x=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.theme;return(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"NIF Theme",verticalAlign:"top",children:(0,e.jsx)(r.ms,{width:"100%",placeholder:"Default",selected:I,options:v,onSelected:function(O){return _("setTheme",{theme:O})}})})})}},96576:function(S,y,t){"use strict";t.r(y),t.d(y,{NTNetRelay:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(13221),m=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.dos_crashed,u=l.enabled,h=l.dos_overload,x=l.dos_capacity,j=(0,e.jsx)(b,{});return c&&(j=(0,e.jsx)(g,{})),(0,e.jsx)(r.p8,{width:c?700:500,height:c?600:300,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:j})})},b=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.dos_crashed,u=l.enabled,h=l.dos_overload,x=l.dos_capacity;return(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:"Relay "+(u?"On":"Off"),onClick:function(){return v("toggle")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Network Buffer Status",children:[h," / ",x," GQ"]}),(0,e.jsx)(n.Ki.Item,{label:"Options",children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge network blacklist",onClick:function(){return v("purge")}})})]})})},g=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data;return(0,e.jsxs)(o.FullscreenNotice,{title:"ERROR",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,color:"bad",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"}),(0,e.jsx)("h2",{children:"NETWORK BUFFERS OVERLOADED"}),(0,e.jsx)("h3",{children:"Overload Recovery Mode"}),(0,e.jsx)("i",{children:"This system is suffering temporary outage due to overflow of traffic buffers. Until buffered traffic is processed, all further requests will be dropped. Frequent occurences of this error may indicate insufficient hardware capacity of your network. Please contact your network planning department for instructions on how to resolve this issue."}),(0,e.jsx)("h3",{children:"ADMINISTRATIVE OVERRIDE"}),(0,e.jsx)("b",{children:" CAUTION - Data loss may occur "})]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"exclamation-triangle",content:"Purge buffered traffic",onClick:function(){return v("restart")}})})]})}},80707:function(S,y,t){"use strict";t.r(y),t.d(y,{Newscaster:function(){return h}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=t(82489),b="Main Menu",g="New Channel",d="View List",f="New Story",v="Print",l="New Wanted",c="View Wanted",u="View Selected Channel",h=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.screen,V=k.user;return(0,e.jsx)(o.p8,{width:600,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m.TemporaryNotice,{decode:!0}),(0,e.jsx)(x,{})]})})},x=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.user,V=(0,n.QY)("screen",b),H=V[0],N=V[1],q=A[H];return(0,e.jsx)(r.az,{children:(0,e.jsx)(q,{setScreen:N})})},j=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.securityCaster,V=k.wanted_issue,H=B.setScreen;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.wn,{title:"Main Menu",children:[V&&(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return H(c)},color:"bad",children:"Read WANTED Issue"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",onClick:function(){return H(d)},children:"View Feed Channels"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return H(g)},children:"Create Feed Channel"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return H(f)},children:"Create Feed Message"}),(0,e.jsx)(r.$n,{fluid:!0,icon:"print",onClick:function(){return H(v)},children:"Print Newspaper"})]}),!!Y&&(0,e.jsx)(r.wn,{title:"Feed Security Functions",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"plus",onClick:function(){return H(l)},children:'Manage "Wanted" Issue'})})]})},p=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.channel_name,V=k.c_locked,H=k.user,N=B.setScreen;return(0,e.jsxs)(r.wn,{title:"Creating new Feed Channel",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return N(b)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Channel Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,a.jT)(Y),onInput:function(q,G){return L("set_channel_name",{val:G})}})}),(0,e.jsx)(r.Ki.Item,{label:"Channel Author",color:"good",children:H}),(0,e.jsx)(r.Ki.Item,{label:"Accept Public Feeds",children:(0,e.jsx)(r.$n,{icon:V?"lock":"lock-open",selected:!V,onClick:function(){return L("set_channel_lock")},children:V?"No":"Yes"})})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return L("submit_new_channel")},children:"Submit Channel"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return N(b)},children:"Cancel"})]})},_=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.channels,V=B.setScreen;return(0,e.jsx)(r.wn,{title:"Station Feed Channels",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return V(b)},children:"Back"}),children:Y.map(function(H){return(0,e.jsx)(r.$n,{fluid:!0,icon:"eye",color:H.admin?"good":H.censored?"bad":"",onClick:function(){L("show_channel",{show_channel:H.ref}),V(u)},children:(0,a.jT)(H.name)},H.name)})})},E=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.channel_name,V=k.user,H=k.title,N=k.msg,q=k.photo_data,G=B.setScreen,Q={"white-space":"nowrap"},F={width:"100%","word-break":"break-all","word-wrap":"break-word"};return(0,e.jsxs)(r.wn,{title:"Creating new Feed Message...",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return G(b)},children:"Back"}),children:[(0,e.jsxs)("table",{style:{width:"calc(100% + 0.5em)",margin:"-0.25em -0.25em 0 -0.25em",padding:0},children:[(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Q,children:"Receiving Channel:"}),(0,e.jsx)("td",{colspan:2,children:(0,e.jsx)(r.$n,{fluid:!0,onClick:function(){return L("set_channel_receiving")},children:Y||"Unset"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Q,children:"Message Author:"}),(0,e.jsx)("td",{className:"color-good",colspan:2,children:V})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Q,children:"Message Title:"}),(0,e.jsx)("td",{style:F,children:H||"(no title yet)"}),(0,e.jsx)("td",{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return L("set_new_title")},icon:"pen",tooltip:"Edit Title",tooltipPosition:"left"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Q,children:"Message Body:"}),(0,e.jsx)("td",{style:F,children:N||"(no message yet)"}),(0,e.jsx)("td",{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return L("set_new_message")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{style:Q,children:"Attach Photo:"}),(0,e.jsx)("td",{colspan:2,children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return L("set_attachment")},children:q?"Photo Attached":"No Photo"})})]})]}),(0,e.jsx)(r.$n,{fluid:!0,color:"good",icon:"plus",onClick:function(){return L("submit_new_message")},children:"Submit Message"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return G(b)},children:"Cancel"})]})},I=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.total_num,V=k.active_num,H=k.message_num,N=k.paper_remaining,q=B.setScreen;return(0,e.jsxs)(r.wn,{title:"Printing",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return q(b)},children:"Back"}),children:[(0,e.jsxs)(r.az,{color:"label",mb:1,children:["Newscaster currently serves a total of ",Y," Feed channels,"," ",V," of which are active, and a total of ",H," Feed stories."]}),(0,e.jsx)(r.Ki,{children:(0,e.jsxs)(r.Ki.Item,{label:"Liquid Paper remaining",children:[N*100," cm\xB3"]})}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return L("print_paper")},children:"Print Paper"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return q(b)},children:"Cancel"})]})},O=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.channel_name,V=k.msg,H=k.photo_data,N=k.user,q=k.wanted_issue,G=B.setScreen;return(0,e.jsxs)(r.wn,{title:"Wanted Issue Handler",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return G(b)},children:"Back"}),children:[(0,e.jsxs)(r.Ki,{children:[!!q&&(0,e.jsx)(r.Ki.Item,{label:"Already In Circulation",children:"A wanted issue is already in circulation. You can edit or cancel it below."}),(0,e.jsx)(r.Ki.Item,{label:"Criminal Name",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,a.jT)(Y),onInput:function(Q,F){return L("set_channel_name",{val:F})}})}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,e.jsx)(r.pd,{fluid:!0,value:(0,a.jT)(V),onInput:function(Q,F){return L("set_wanted_desc",{val:F})}})}),(0,e.jsx)(r.Ki.Item,{label:"Attach Photo",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"image",onClick:function(){return L("set_attachment")},children:H?"Photo Attached":"No Photo"})}),(0,e.jsx)(r.Ki.Item,{label:"Prosecutor",color:"good",children:N})]}),(0,e.jsx)(r.$n,{mt:1,fluid:!0,color:"good",icon:"plus",onClick:function(){return L("submit_wanted")},children:"Submit Wanted Issue"}),!!q&&(0,e.jsx)(r.$n,{fluid:!0,color:"average",icon:"minus",onClick:function(){return L("cancel_wanted")},children:"Take Down Issue"}),(0,e.jsx)(r.$n,{fluid:!0,color:"bad",icon:"undo",onClick:function(){return G(b)},children:"Cancel"})]})},M=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.wanted_issue,V=B.setScreen;return Y?(0,e.jsx)(r.wn,{title:"--STATIONWIDE WANTED ISSUE--",color:"bad",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return V(b)},children:"Back"}),children:(0,e.jsx)(r.az,{color:"white",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Submitted by",color:"good",children:(0,a.jT)(Y.author)}),(0,e.jsx)(r.Ki.Divider,{}),(0,e.jsx)(r.Ki.Item,{label:"Criminal",children:(0,a.jT)(Y.criminal)}),(0,e.jsx)(r.Ki.Item,{label:"Description",children:(0,a.jT)(Y.desc)}),(0,e.jsx)(r.Ki.Item,{label:"Photo",children:Y.img&&(0,e.jsx)("img",{src:Y.img})||"None"})]})})}):(0,e.jsx)(r.wn,{title:"No Outstanding Wanted Issues",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return V(b)},children:"Back"}),children:"There are no wanted issues currently outstanding."})},D=function(B){var U=(0,n.Oc)(),L=U.act,k=U.data,Y=k.viewing_channel,V=k.securityCaster,H=k.company,N=B.setScreen;return Y?(0,e.jsxs)(r.wn,{title:(0,a.jT)(Y.name),buttons:(0,e.jsxs)(e.Fragment,{children:[!!V&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"ban",confirmIcon:"ban",content:"Issue D-Notice",onClick:function(){return L("toggle_d_notice",{ref:Y.ref})}}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return N(d)},children:"Back"})]}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Channel Created By",children:V&&(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:(0,a.jT)(Y.author),tooltip:"Censor?",confirmContent:"Censor Author",onClick:function(){return L("censor_channel_author",{ref:Y.ref})}})||(0,e.jsx)(r.az,{children:(0,a.jT)(Y.author)})})}),!!Y.censored&&(0,e.jsxs)(r.az,{color:"bad",children:["ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a ",H," D-Notice. No further feed story additions are allowed while the D-Notice is in effect."]}),!!Y.messages.length&&Y.messages.map(function(q){return(0,e.jsxs)(r.wn,{children:["- ",(0,a.jT)(q.body),!!q.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+q.img}),(0,a.jT)(q.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[Story by ",(0,a.jT)(q.author)," -"," ",q.timestamp,"]"]}),!!V&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Confirm,{mt:1,color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Story",onClick:function(){return L("censor_channel_story_body",{ref:q.ref})}}),(0,e.jsx)(r.$n.Confirm,{color:"bad",icon:"strikethrough",confirmIcon:"strikethrough",content:"Censor Author",onClick:function(){return L("censor_channel_story_author",{ref:q.ref})}})]})]},q.ref)})||!Y.censored&&(0,e.jsx)(r.az,{color:"average",children:"No feed messages found in channel."})]}):(0,e.jsx)(r.wn,{title:"Channel Not Found",buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return N(d)},children:"Back"}),children:"The channel you were looking for no longer exists."})},A={};A[b]=j,A[g]=p,A[d]=_,A[f]=E,A[v]=I,A[l]=O,A[c]=M,A[u]=D},58942:function(S,y,t){"use strict";t.r(y),t.d(y,{NoticeBoard:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.notices;return(0,e.jsx)(r.p8,{width:330,height:300,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:f.length?(0,e.jsx)(n.Ki,{children:f.map(function(v,l){return(0,e.jsxs)(n.Ki.Item,{label:v.name,children:[v.isphoto&&(0,e.jsx)(n.$n,{icon:"image",content:"Look",onClick:function(){return g("look",{ref:v.ref})}})||v.ispaper&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"sticky-note",content:"Read",onClick:function(){return g("read",{ref:v.ref})}}),(0,e.jsx)(n.$n,{icon:"pen",content:"Write",onClick:function(){return g("write",{ref:v.ref})}})]})||"Unknown Entity",(0,e.jsx)(n.$n,{icon:"minus-circle",content:"Remove",onClick:function(){return g("remove",{ref:v.ref})}})]},l)})}):(0,e.jsx)(n.az,{color:"average",children:"No notices posted here."})})})})}},90782:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosAccessDecrypter:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(17575),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.message,l=f.running,c=f.rate,u=f.factor,h=f.regions,x=function(p){for(var _="";_.length<p;)Math.random()>u?_+="0":_+="1";return _},j=45;return(0,e.jsx)(r.Zm,{width:600,height:600,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:v&&(0,e.jsx)(n.IC,{children:v})||l&&(0,e.jsxs)(n.wn,{children:["Attempting to decrypt network access codes. Please wait. Rate:"," ",c," PHash/s",(0,e.jsx)(n.az,{children:x(j)}),(0,e.jsx)(n.az,{children:x(j)}),(0,e.jsx)(n.az,{children:x(j)}),(0,e.jsx)(n.az,{children:x(j)}),(0,e.jsx)(n.az,{children:x(j)}),(0,e.jsx)(n.$n,{fluid:!0,icon:"ban",onClick:function(){return d("PRG_reset")},children:"Abort"})]})||(0,e.jsx)(n.wn,{title:"Pick access code to decrypt",children:h.length&&(0,e.jsx)(o.IdentificationComputerRegions,{actName:"PRG_execute"})||(0,e.jsx)(n.az,{children:"Please insert ID card."})})})})}},26042:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosArcade:function(){return m}});var e=t(88095),a=t(80676),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data;return(0,e.jsx)(o.Zm,{width:450,height:350,children:(0,e.jsx)(o.Zm.Content,{children:(0,e.jsxs)(r.wn,{title:"Outbomb Cuban Pete Ultra",textAlign:"center",children:[(0,e.jsxs)(r.az,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsxs)(r.xA.Column,{size:2,children:[(0,e.jsx)(r.az,{m:1}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Player Health",children:(0,e.jsxs)(r.z2,{value:f.PlayerHitpoints,minValue:0,maxValue:30,ranges:{olive:[31,1/0],good:[20,31],average:[10,20],bad:[-1/0,10]},children:[f.PlayerHitpoints,"HP"]})}),(0,e.jsx)(r.Ki.Item,{label:"Player Magic",children:(0,e.jsxs)(r.z2,{value:f.PlayerMP,minValue:0,maxValue:10,ranges:{purple:[11,1/0],violet:[3,11],bad:[-1/0,3]},children:[f.PlayerMP,"MP"]})})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.wn,{backgroundColor:f.PauseState===1?"#1b3622":"#471915",children:f.Status})]}),(0,e.jsxs)(r.xA.Column,{children:[(0,e.jsxs)(r.z2,{value:f.Hitpoints,minValue:0,maxValue:45,ranges:{good:[30,1/0],average:[5,30],bad:[-1/0,5]},children:[(0,e.jsx)(r.zv,{value:f.Hitpoints}),"HP"]}),(0,e.jsx)(r.az,{m:1}),(0,e.jsx)(r.wn,{inline:!0,width:"156px",textAlign:"center",children:(0,e.jsx)("img",{src:(0,a.l)(f.BossID)})})]})]}),(0,e.jsx)(r.az,{my:1,mx:4}),(0,e.jsx)(r.$n,{icon:"fist-raised",tooltip:"Go in for the kill!",tooltipPosition:"top",disabled:f.GameActive===0||f.PauseState===1,onClick:function(){return d("Attack")},content:"Attack!"}),(0,e.jsx)(r.$n,{icon:"band-aid",tooltip:"Heal yourself!",tooltipPosition:"top",disabled:f.GameActive===0||f.PauseState===1,onClick:function(){return d("Heal")},content:"Heal!"}),(0,e.jsx)(r.$n,{icon:"magic",tooltip:"Recharge your magic!",tooltipPosition:"top",disabled:f.GameActive===0||f.PauseState===1,onClick:function(){return d("Recharge_Power")},content:"Recharge!"})]}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{icon:"sync-alt",tooltip:"One more game couldn't hurt.",tooltipPosition:"top",disabled:f.GameActive===1,onClick:function(){return d("Start_Game")},content:"Begin Game"}),(0,e.jsx)(r.$n,{icon:"ticket-alt",tooltip:"Claim at your local Arcade Computer for Prizes!",tooltipPosition:"top",disabled:f.GameActive===1,onClick:function(){return d("Dispense_Tickets")},content:"Claim Tickets"})]}),(0,e.jsxs)(r.az,{color:f.TicketCount>=1?"good":"normal",children:["Earned Tickets: ",f.TicketCount]})]})})})}},30873:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosAtmosControl:function(){return r}});var e=t(88095),a=t(84905),n=t(42623),r=function(){return(0,e.jsx)(a.Zm,{width:870,height:708,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(n.AtmosControlContent,{})})})}},44072:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosCameraConsole:function(){return v},prevNextCamera:function(){return d},selectCameras:function(){return f}});var e=t(88095),a=t(11358),n=t(28763),r=t(33854),o=t(4413),m=t(92514),b=t(84905),g=t(96524),d=function(l,c){var u,h;if(!c)return[];var x=l.findIndex(function(j){return j.name===c.name});return[(u=l[x-1])==null?void 0:u.name,(h=l[x+1])==null?void 0:h.name]},f=function(l,c,u){c===void 0&&(c=""),u===void 0&&(u="");var h=(0,r.XZ)(c,function(x){return x.name});return(0,n.L)([(0,a.pb)(function(x){return x==null?void 0:x.name}),c&&(0,a.pb)(h),u&&(0,a.pb)(function(x){return x.networks.includes(u)}),(0,a.Ul)(function(x){return x.name})])(l)},v=function(l){var c=(0,o.Oc)(),u=c.act,h=c.data,x=h.mapRef,j=h.activeCamera,p=f(h.cameras),_=d(p,j),E=_[0],I=_[1];return(0,e.jsx)(b.Zm,{width:870,height:708,children:(0,e.jsxs)(b.Zm.Content,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(g.CameraConsoleContent,{})}),(0,e.jsxs)("div",{className:"CameraConsole__right",children:[(0,e.jsxs)("div",{className:"CameraConsole__toolbar",children:[(0,e.jsx)("b",{children:"Camera: "}),j&&j.name||"\u2014"]}),(0,e.jsxs)("div",{className:"CameraConsole__toolbarRight",children:["SEL:",(0,e.jsx)(m.$n,{icon:"chevron-left",disabled:!E,onClick:function(){return u("switch_camera",{name:E})}}),(0,e.jsx)(m.$n,{icon:"chevron-right",disabled:!I,onClick:function(){return u("switch_camera",{name:I})}}),"| PAN:",(0,e.jsx)(m.$n,{icon:"chevron-left",onClick:function(){return u("pan",{dir:8})}}),(0,e.jsx)(m.$n,{icon:"chevron-up",onClick:function(){return u("pan",{dir:1})}}),(0,e.jsx)(m.$n,{icon:"chevron-right",onClick:function(){return u("pan",{dir:4})}}),(0,e.jsx)(m.$n,{icon:"chevron-down",onClick:function(){return u("pan",{dir:2})}})]}),(0,e.jsx)(m.D1,{className:"CameraConsole__map",params:{id:x,type:"map"}})]})]})})}},70568:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosCommunicationsConsole:function(){return r}});var e=t(88095),a=t(84905),n=t(48022),r=function(){return(0,e.jsx)(a.Zm,{width:400,height:600,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.CommunicationsConsoleContent,{})})})}},78162:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosConfiguration:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.PC_device_theme,v=d.power_usage,l=d.battery_exists,c=d.battery,u=c===void 0?{}:c,h=d.disk_size,x=d.disk_used,j=d.hardware,p=j===void 0?[]:j;return(0,e.jsx)(r.Zm,{theme:f,width:520,height:630,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Power Supply",buttons:(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Draw: ",v,"W"]}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Battery Status",color:!l&&"average",children:l?(0,e.jsxs)(n.z2,{value:u.charge,minValue:0,maxValue:u.max,ranges:{good:[u.max/2,1/0],average:[u.max/4,u.max/2],bad:[-1/0,u.max/4]},children:[u.charge," / ",u.max]}):"Not Available"})})}),(0,e.jsx)(n.wn,{title:"File System",children:(0,e.jsxs)(n.z2,{value:x,minValue:0,maxValue:h,color:"good",children:[x," GQ / ",h," GQ"]})}),(0,e.jsx)(n.wn,{title:"Hardware Components",children:p.map(function(_){return(0,e.jsx)(n.wn,{title:_.name,level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[!_.critical&&(0,e.jsx)(n.$n.Checkbox,{content:"Enabled",checked:_.enabled,mr:1,onClick:function(){return g("PC_toggle_component",{name:_.name})}}),(0,e.jsxs)(n.az,{inline:!0,bold:!0,mr:1,children:["Power Usage: ",_.powerusage,"W"]})]}),children:_.desc},_.name)})})]})})}},62260:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosCrewManifest:function(){return r}});var e=t(88095),a=t(84905),n=t(41608),r=function(){return(0,e.jsx)(a.Zm,{width:800,height:600,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(n.CrewManifestContent,{})})})}},12941:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosCrewMonitor:function(){return r}});var e=t(88095),a=t(84905),n=t(93643),r=function(){return(0,e.jsx)(a.Zm,{width:800,height:600,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(n.CrewMonitorContent,{})})})}},657:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosDigitalWarrant:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.warrantname,h=c.warrantcharges,x=c.warrantauth,j=c.type,p=c.allwarrants,_=(0,e.jsx)(b,{});return x&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(o.Zm,{width:500,height:350,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:_})})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.allwarrants;return(0,e.jsxs)(r.wn,{title:"Warrants",children:[(0,e.jsx)(r.$n,{icon:"plus",fluid:!0,onClick:function(){return l("addwarrant")},children:"Create New Warrant"}),(0,e.jsx)(r.wn,{level:2,title:"Arrest Warrants",children:(0,e.jsx)(g,{type:"arrest"})}),(0,e.jsx)(r.wn,{level:2,title:"Search Warrants",children:(0,e.jsx)(g,{type:"search"})})]})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=f.type,h=c.allwarrants,x=(0,a.pb)(function(j){return j.arrestsearch===u})(h);return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:u==="arrest"?"Name":"Location"}),(0,e.jsx)(r.XI.Cell,{children:u==="arrest"?"Charges":"Reason"}),(0,e.jsx)(r.XI.Cell,{children:"Authorized By"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Edit"})]}),x.length&&x.map(function(j){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:j.warrantname}),(0,e.jsx)(r.XI.Cell,{children:j.charges}),(0,e.jsx)(r.XI.Cell,{children:j.auth}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrant",{id:j.id})}})})]},j.id)})||(0,e.jsx)(r.XI.Row,{children:(0,e.jsxs)(r.XI.Cell,{colspan:"3",color:"bad",children:["No ",u," warrants found."]})})]})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.warrantname,h=c.warrantcharges,x=c.warrantauth,j=c.type,p=j==="arrest",_=j==="arrest"?"Name":"Location",E=j==="arrest"?"Charges":"Reason";return(0,e.jsx)(r.wn,{title:p?"Editing Arrest Warrant":"Editing Search Warrant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("savewarrant")},children:"Save"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return l("deletewarrant")},children:"Delete"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return l("back")},children:"Back"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:_,buttons:p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",onClick:function(){return l("editwarrantname")}}),(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}})]})||(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantnamecustom")}}),children:u}),(0,e.jsx)(r.Ki.Item,{label:E,buttons:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return l("editwarrantcharges")}}),children:h}),(0,e.jsx)(r.Ki.Item,{label:"Authorized By",buttons:(0,e.jsx)(r.$n,{icon:"balance-scale",onClick:function(){return l("editwarrantauth")}}),children:x})]})})}},5070:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosEmailAdministration:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(23969),m=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.error,x=u.cur_title,j=u.current_account,p=(0,e.jsx)(b,{});return h?p=(0,e.jsx)(g,{}):x?p=(0,e.jsx)(d,{}):j&&(p=(0,e.jsx)(f,{})),(0,e.jsx)(r.Zm,{width:600,height:450,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:p})})},b=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.accounts;return(0,e.jsxs)(n.wn,{title:"Welcome to the NTNet Email Administration System",children:[(0,e.jsx)(n.az,{italic:!0,mb:1,children:"SECURE SYSTEM - Have your identification ready"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"plus",onClick:function(){return c("newaccount")},children:"Create New Account"}),(0,e.jsx)(n.az,{bold:!0,mt:1,mb:1,children:"Select account to administrate"}),h.map(function(x){return(0,e.jsx)(n.$n,{fluid:!0,icon:"eye",onClick:function(){return c("viewaccount",{viewaccount:x.uid})},children:x.login},x.uid)})]})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.error;return(0,e.jsx)(n.wn,{title:"Message",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:h})},d=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data;return(0,e.jsx)(n.wn,{children:(0,e.jsx)(o.NtosEmailClientViewMessage,{administrator:!0})})},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.error,x=u.msg_title,j=u.msg_body,p=u.msg_timestamp,_=u.msg_source,E=u.current_account,I=u.cur_suspended,O=u.messages,M=u.accounts;return(0,e.jsxs)(n.wn,{title:"Viewing "+E+" in admin mode",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return c("back")},children:"Back"}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Account Status",children:(0,e.jsx)(n.$n,{color:I?"bad":"",icon:"ban",tooltip:(I?"Uns":"S")+"uspend Account?",onClick:function(){return c("ban")},children:I?"Suspended":"Normal"})}),(0,e.jsx)(n.Ki.Item,{label:"Actions",children:(0,e.jsx)(n.$n,{icon:"key",onClick:function(){return c("changepass")},children:"Change Password"})})]}),(0,e.jsx)(n.wn,{level:2,title:"Messages",children:O.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Source"}),(0,e.jsx)(n.XI.Cell,{children:"Title"}),(0,e.jsx)(n.XI.Cell,{children:"Received at"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),O.map(function(D){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:D.source}),(0,e.jsx)(n.XI.Cell,{children:D.title}),(0,e.jsx)(n.XI.Cell,{children:D.timestamp}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"eye",onClick:function(){return c("viewmail",{viewmail:D.uid})},children:"View"})})]},D.uid)})]})||(0,e.jsx)(n.az,{color:"average",children:"No messages found in selected account."})})]})}},23969:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosEmailClient:function(){return m},NtosEmailClientViewMessage:function(){return f}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.PC_device_theme,E=p.error,I=p.downloading,O=p.current_account,M=(0,e.jsx)(u,{});return E?M=(0,e.jsx)(c,{error:E}):I?M=(0,e.jsx)(b,{}):O&&(M=(0,e.jsx)(g,{})),(0,e.jsx)(o.Zm,{resizable:!0,theme:_,children:(0,e.jsx)(o.Zm.Content,{scrollable:!0,children:M})})},b=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.down_filename,E=p.down_progress,I=p.down_size,O=p.down_speed;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"File",children:[_," (",I," GQ)"]}),(0,e.jsxs)(r.Ki.Item,{label:"Speed",children:[(0,e.jsx)(r.zv,{value:O})," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",value:E,maxValue:I,children:[E,"/",I," (",(0,a.LI)(E/I*100,1),"%)"]})})]})})},g=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.current_account,E=p.addressbook,I=p.new_message,O=p.cur_title,M=(0,e.jsx)(d,{});return E?M=(0,e.jsx)(v,{}):I?M=(0,e.jsx)(l,{}):O&&(M=(0,e.jsx)(f,{})),(0,e.jsx)(r.wn,{title:"Logged in as: "+_,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"plus",tooltip:"New Message",tooltipPosition:"left",onClick:function(){return j("new_message")}}),(0,e.jsx)(r.$n,{icon:"cogs",tooltip:"Change Password",tooltipPosition:"left",onClick:function(){return j("changepassword")}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",tooltip:"Log Out",tooltipPosition:"left",onClick:function(){return j("logout")}})]}),children:M})},d=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.current_account,E=p.folder,I=p.messagecount,O=p.messages;return(0,e.jsxs)(r.wn,{level:2,noTopPadding:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:E==="Inbox",onClick:function(){return j("set_folder",{set_folder:"Inbox"})},children:"Inbox"}),(0,e.jsx)(r.tU.Tab,{selected:E==="Spam",onClick:function(){return j("set_folder",{set_folder:"Spam"})},children:"Spam"}),(0,e.jsx)(r.tU.Tab,{selected:E==="Deleted",onClick:function(){return j("set_folder",{set_folder:"Deleted"})},children:"Deleted"})]}),I&&(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{children:"Source"}),(0,e.jsx)(r.XI.Cell,{children:"Title"}),(0,e.jsx)(r.XI.Cell,{children:"Received At"}),(0,e.jsx)(r.XI.Cell,{children:"Actions"})]}),O.map(function(M){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{children:M.source}),(0,e.jsx)(r.XI.Cell,{children:M.title}),(0,e.jsx)(r.XI.Cell,{children:M.timestamp}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return j("view",{view:M.uid})},tooltip:"View"}),(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("reply",{reply:M.uid})},tooltip:"Reply"}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",onClick:function(){return j("delete",{delete:M.uid})},tooltip:"Delete"})]})]},M.timestamp+M.title)})]})})||(0,e.jsxs)(r.az,{color:"bad",children:["No emails found in ",E,"."]})]})},f=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=h.administrator,E=p.cur_title,I=p.cur_source,O=p.cur_timestamp,M=p.cur_body,D=p.cur_hasattachment,A=p.cur_attachment_filename,B=p.cur_attachment_size,U=p.cur_uid;return(0,e.jsx)(r.wn,{title:E,buttons:_?(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return j("back")}}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",tooltip:"Reply",tooltipPosition:"left",onClick:function(){return j("reply",{reply:U})}}),(0,e.jsx)(r.$n,{color:"bad",icon:"trash",tooltip:"Delete",tooltipPosition:"left",onClick:function(){return j("delete",{delete:U})}}),(0,e.jsx)(r.$n,{icon:"save",tooltip:"Save To Disk",tooltipPosition:"left",onClick:function(){return j("save",{save:U})}}),D&&(0,e.jsx)(r.$n,{icon:"paperclip",tooltip:"Save Attachment",tooltipPosition:"left",onClick:function(){return j("downloadattachment")}})||null,(0,e.jsx)(r.$n,{icon:"times",tooltip:"Close",tooltipPosition:"left",onClick:function(){return j("cancel",{cancel:U})}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"From",children:I}),(0,e.jsx)(r.Ki.Item,{label:"At",children:O}),D&&!_&&(0,e.jsxs)(r.Ki.Item,{label:"Attachment",color:"average",children:[A," (",B,"GQ)"]})||null,(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsx)(r.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:M}})})})]})})},v=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.accounts;return(0,e.jsx)(r.wn,{title:"Address Book",level:2,buttons:(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("set_recipient",{set_recipient:null})}}),children:_.map(function(E){return(0,e.jsx)(r.$n,{content:E.login,fluid:!0,onClick:function(){return j("set_recipient",{set_recipient:E.login})}},E.login)})})},l=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.current_account,E=p.msg_title,I=p.msg_recipient,O=p.msg_body,M=p.msg_hasattachment,D=p.msg_attachment_filename,A=p.msg_attachment_size;return(0,e.jsx)(r.wn,{title:"New Message",level:2,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"share",onClick:function(){return j("send")},children:"Send Message"}),(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("cancel")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Title",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onInput:function(B,U){return j("edit_title",{val:U})}})}),(0,e.jsx)(r.Ki.Item,{label:"Recipient",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.pd,{fluid:!0,value:I,onInput:function(B,U){return j("edit_recipient",{val:U})}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"address-book",onClick:function(){return j("addressbook")},tooltip:"Find Receipients",tooltipPosition:"left"})})]})}),(0,e.jsx)(r.Ki.Item,{label:"Attachments",buttons:M&&(0,e.jsx)(r.$n,{color:"bad",icon:"times",onClick:function(){return j("remove_attachment")},children:"Remove Attachment"})||(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return j("addattachment")},children:"Add Attachment"}),children:M&&(0,e.jsxs)(r.az,{inline:!0,children:[D," (",A,"GQ)"]})||null}),(0,e.jsx)(r.Ki.Item,{label:"Message",verticalAlign:"top",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.wn,{width:"99%",inline:!0,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:O}})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{verticalAlign:"top",onClick:function(){return j("edit_body")},icon:"pen",tooltip:"Edit Message",tooltipPosition:"left"})})]})})]})})},c=function(h){var x=(0,n.Oc)().act,j=h.error;return(0,e.jsx)(r.wn,{title:"Notification",buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Return",onClick:function(){return x("reset")}}),children:(0,e.jsx)(r.az,{color:"bad",children:j})})},u=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.stored_login,E=p.stored_password;return(0,e.jsxs)(r.wn,{title:"Please Log In",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Email address",children:(0,e.jsx)(r.pd,{fluid:!0,value:_,onInput:function(I,O){return j("edit_login",{val:O})}})}),(0,e.jsx)(r.Ki.Item,{label:"Password",children:(0,e.jsx)(r.pd,{fluid:!0,value:E,onInput:function(I,O){return j("edit_password",{val:O})}})})]}),(0,e.jsx)(r.$n,{icon:"sign-in-alt",onClick:function(){return j("login")},children:"Log In"})]})}},86411:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosFileManager:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.PC_device_theme,l=f.usbconnected,c=f.filename,u=f.filedata,h=f.error,x=f.files,j=x===void 0?[]:x,p=f.usbfiles,_=p===void 0?[]:p;return(0,e.jsx)(r.Zm,{resizable:!0,theme:v,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[c&&(0,e.jsx)(n.wn,{title:"Viewing File "+c,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"pen",content:"Edit",onClick:function(){return d("PRG_edit")}}),(0,e.jsx)(n.$n,{icon:"print",content:"Print",onClick:function(){return d("PRG_printfile")}}),(0,e.jsx)(n.$n,{icon:"times",content:"Close",onClick:function(){return d("PRG_closefile")}})]}),children:u&&(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:u}})})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(m,{files:j,usbconnected:l,onUpload:function(E){return d("PRG_copytousb",{uid:E})},onDelete:function(E){return d("PRG_deletefile",{uid:E})},onOpen:function(E){return d("PRG_openfile",{uid:E})},onRename:function(E,I){return d("PRG_rename",{uid:E,new_name:I})},onDuplicate:function(E){return d("PRG_clone",{uid:E})}})}),l&&(0,e.jsx)(n.wn,{title:"Data Disk",children:(0,e.jsx)(m,{usbmode:!0,files:_,usbconnected:l,onUpload:function(E){return d("PRG_copyfromusb",{uid:E})},onDelete:function(E){return d("PRG_deletefile",{uid:E})},onOpen:function(E){return d("PRG_openfile",{uid:E})},onRename:function(E,I){return d("PRG_rename",{uid:E,new_name:I})},onDuplicate:function(E){return d("PRG_clone",{uid:E})}})})||null,(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{icon:"plus",onClick:function(){return d("PRG_newtextfile")},children:"New Text File"})})]}),h&&(0,e.jsxs)(n.so,{wrap:"wrap",position:"fixed",bottom:"5px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.$n,{bottom:"0",left:"0",icon:"ban",onClick:function(){return d("PRG_clearerror")}})})}),(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.so.Item,{grow:!0,children:h})})]})]})})},m=function(b){var g=b.files,d=g===void 0?[]:g,f=b.usbconnected,v=b.usbmode,l=b.onUpload,c=b.onDelete,u=b.onRename,h=b.onOpen;return(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"File"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Type"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:"Size"})]}),d.map(function(x){return(0,e.jsxs)(n.XI.Row,{className:"candystripe",children:[(0,e.jsx)(n.XI.Cell,{children:x.undeletable?x.name:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{width:"80%",content:x.name,currentValue:x.name,tooltip:"Rename",onCommit:function(j,p){return u(x.uid,p)}}),(0,e.jsx)(n.$n,{content:"Open",onClick:function(){return h(x.uid)}})]})}),(0,e.jsx)(n.XI.Cell,{children:x.type}),(0,e.jsx)(n.XI.Cell,{children:x.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:!x.undeletable&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",confirmIcon:"times",confirmContent:"",tooltip:"Delete",onClick:function(){return c(x.uid)}}),!!f&&(v?(0,e.jsx)(n.$n,{icon:"download",tooltip:"Download",onClick:function(){return l(x.uid)}}):(0,e.jsx)(n.$n,{icon:"upload",tooltip:"Upload",onClick:function(){return l(x.uid)}}))]})})]},x.name)})]})}},96665:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosIdentificationComputer:function(){return r}});var e=t(88095),a=t(84905),n=t(17575),r=function(){return(0,e.jsx)(a.Zm,{width:600,height:700,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.IdentificationComputerContent,{ntos:!0})})})}},44801:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosMain:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={compconfig:"cog",ntndownloader:"download",filemanager:"folder",smmonitor:"radiation",alarmmonitor:"bell",cardmod:"id-card",arcade:"gamepad",ntnrc_client:"comment-alt",nttransfer:"exchange-alt",powermonitor:"plug",job_manage:"address-book",crewmani:"clipboard-list",robocontrol:"robot",atmosscan:"thermometer-half",shipping:"tags"},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.device_theme,l=f.programs,c=l===void 0?[]:l,u=f.has_light,h=f.light_on,x=f.comp_light_color,j=f.removable_media,p=j===void 0?[]:j,_=f.login,E=_===void 0?[]:_;return(0,e.jsx)(r.Zm,{title:v==="syndicate"&&"Syndix Main Menu"||"NtOS Main Menu",theme:v,width:400,height:500,children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[!!u&&(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.$n,{width:"144px",icon:"lightbulb",selected:h,onClick:function(){return d("PC_toggle_light")},children:["Flashlight: ",h?"ON":"OFF"]}),(0,e.jsxs)(n.$n,{ml:1,onClick:function(){return d("PC_light_color")},children:["Color:",(0,e.jsx)(n.BK,{ml:1,color:x})]})]}),(0,e.jsx)(n.wn,{title:"User Login",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",disabled:!E.IDName,onClick:function(){return d("PC_Eject_Disk",{name:"ID"})}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:["ID Name: ",E.IDName]}),(0,e.jsxs)(n.XI.Row,{children:["Assignment: ",E.IDJob]})]})}),!!p.length&&(0,e.jsx)(n.wn,{title:"Media Eject",children:(0,e.jsx)(n.XI,{children:p.map(function(I){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"eject",content:I,onClick:function(){return d("PC_Eject_Disk",{name:I})}})})},I)})})}),(0,e.jsx)(n.wn,{title:"Programs",children:(0,e.jsx)(n.XI,{children:c.map(function(I){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:o[I.name]||"window-maximize-o",content:I.desc,onClick:function(){return d("PC_runprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:!!I.running&&(0,e.jsx)(n.$n,{color:"transparent",icon:"times",tooltip:"Close program",tooltipPosition:"left",onClick:function(){return d("PC_killprogram",{name:I.name})}})}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,width:"18px",children:(0,e.jsx)(n.$n,{color:"transparent",tooltip:"Set Autorun",tooltipPosition:"left",selected:I.autorun,onClick:function(){return d("PC_setautorun",{name:I.name})},children:"AR"})})]},I.name)})})})]})})}},59895:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNetChat:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.can_admin,v=d.adminmode,l=d.authed,c=d.username,u=d.active_channel,h=d.is_operator,x=d.all_channels,j=x===void 0?[]:x,p=d.clients,_=p===void 0?[]:p,E=d.messages,I=E===void 0?[]:E,O=u!==null,M=l||v;return(0,e.jsx)(r.Zm,{width:900,height:675,children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(n.wn,{height:"600px",children:(0,e.jsx)(n.XI,{height:"580px",children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"200px"},children:[(0,e.jsxs)(n.az,{height:"560px",overflowY:"scroll",children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"New Channel...",onCommit:function(D,A){return g("PRG_newchannel",{new_channel_name:A})}}),j.map(function(D){return(0,e.jsx)(n.$n,{fluid:!0,content:D.chan,selected:D.id===u,color:"transparent",onClick:function(){return g("PRG_joinchannel",{id:D.id})}},D.chan)})]}),(0,e.jsx)(n.$n.Input,{fluid:!0,mt:1,content:c+"...",currentValue:c,onCommit:function(D,A){return g("PRG_changename",{new_name:A})}}),!!f&&(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ADMIN MODE: "+(v?"ON":"OFF"),color:v?"bad":"good",onClick:function(){return g("PRG_toggleadmin")}})]}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.az,{height:"560px",overflowY:"scroll",children:O&&(M?I.map(function(D){return(0,e.jsx)(n.az,{children:D.msg},D.msg)}):(0,e.jsxs)(n.az,{textAlign:"center",children:[(0,e.jsx)(n.In,{name:"exclamation-triangle",mt:4,fontSize:"40px"}),(0,e.jsx)(n.az,{mt:1,bold:!0,fontSize:"18px",children:"THIS CHANNEL IS PASSWORD PROTECTED"}),(0,e.jsx)(n.az,{mt:1,children:"INPUT PASSWORD TO ACCESS"})]}))}),(0,e.jsx)(n.pd,{fluid:!0,selfClear:!0,mt:1,onEnter:function(D,A){return g("PRG_speak",{message:A})}})]}),(0,e.jsxs)(n.XI.Cell,{verticalAlign:"top",style:{width:"150px"},children:[(0,e.jsx)(n.az,{height:"465px",overflowY:"scroll",children:_.map(function(D){return(0,e.jsx)(n.az,{children:D.name},D.name)})}),O&&M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Save log...",defaultValue:"new_log",onCommit:function(D,A){return g("PRG_savelog",{log_name:A})}}),(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Leave Channel",onClick:function(){return g("PRG_leavechannel")}})]}),!!h&&l&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n.Confirm,{fluid:!0,content:"Delete Channel",onClick:function(){return g("PRG_deletechannel")}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Rename Channel...",onCommit:function(D,A){return g("PRG_renamechannel",{new_name:A})}}),(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Set Password...",onCommit:function(D,A){return g("PRG_setpassword",{new_password:A})}})]})]})]})})})})})}},62607:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNetDos:function(){return o},NtosNetDosContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.relays,l=v===void 0?[]:v,c=f.focus,u=f.target,h=f.speed,x=f.overload,j=f.capacity,p=f.error;if(p)return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:p}),(0,e.jsx)(n.$n,{fluid:!0,content:"Reset",textAlign:"center",onClick:function(){return d("PRG_reset")}})]});var _=function(I){for(var O="",M=x/j;O.length<I;)Math.random()>M?O+="0":O+="1";return O},E=45;return u?(0,e.jsxs)(n.wn,{fontFamily:"monospace",textAlign:"center",children:[(0,e.jsxs)(n.az,{children:["CURRENT SPEED: ",h," GQ/s"]}),(0,e.jsx)(n.az,{children:_(E)}),(0,e.jsx)(n.az,{children:_(E)}),(0,e.jsx)(n.az,{children:_(E)}),(0,e.jsx)(n.az,{children:_(E)}),(0,e.jsx)(n.az,{children:_(E)})]}):(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Target",children:l.map(function(I){return(0,e.jsx)(n.$n,{content:I.id,selected:c===I.id,onClick:function(){return d("PRG_target_relay",{targid:I.id})}},I.id)})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"EXECUTE",color:"bad",textAlign:"center",disabled:!c,mt:1,onClick:function(){return d("PRG_execute")}})]})}},10864:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNetDownloader:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.PC_device_theme,c=v.disk_size,u=v.disk_used,h=v.downloadable_programs,x=h===void 0?[]:h,j=v.error,p=v.hacked_programs,_=p===void 0?[]:p,E=v.hackedavailable;return(0,e.jsx)(o.Zm,{theme:l,width:480,height:735,children:(0,e.jsxs)(o.Zm.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.IC,{children:[(0,e.jsx)(r.az,{mb:1,children:j}),(0,e.jsx)(r.$n,{content:"Reset",onClick:function(){return f("PRG_reseterror")}})]}),(0,e.jsx)(r.wn,{children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Disk usage",children:(0,e.jsx)(r.z2,{value:u,minValue:0,maxValue:c,children:u+" GQ / "+c+" GQ"})})})}),(0,e.jsx)(r.wn,{children:x.map(function(I){return(0,e.jsx)(b,{program:I},I.filename)})}),!!E&&(0,e.jsxs)(r.wn,{title:"UNKNOWN Software Repository",children:[(0,e.jsx)(r.IC,{mb:1,children:"Please note that Nanotrasen does not recommend download of software from non-official servers."}),_.map(function(I){return(0,e.jsx)(b,{program:I},I.filename)})]})]})})},b=function(g){var d=g.program,f=(0,n.Oc)(),v=f.act,l=f.data,c=l.disk_size,u=l.disk_used,h=l.downloadcompletion,x=l.downloading,j=l.downloadname,p=l.downloadsize,_=l.downloadspeed,E=l.downloads_queue,I=c-u;return(0,e.jsxs)(r.az,{mb:3,children:[(0,e.jsxs)(r.so,{align:"baseline",children:[(0,e.jsx)(r.so.Item,{bold:!0,grow:1,children:d.filedesc}),(0,e.jsxs)(r.so.Item,{color:"label",nowrap:!0,children:[d.size," GQ"]}),(0,e.jsx)(r.so.Item,{ml:2,width:"94px",textAlign:"center",children:d.filename===j&&(0,e.jsxs)(r.z2,{color:"green",minValue:0,maxValue:p,value:h,children:[(0,a.LI)(h/p*100,1),"% (",_,"GQ/s)"]})||E.indexOf(d.filename)!==-1&&(0,e.jsx)(r.$n,{icon:"ban",color:"bad",onClick:function(){return v("PRG_removequeued",{filename:d.filename})},children:"Queued..."})||(0,e.jsx)(r.$n,{fluid:!0,icon:"download",content:"Download",disabled:d.size>I,onClick:function(){return v("PRG_downloadfile",{filename:d.filename})}})})]}),d.compatibility!=="Compatible"&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Incompatible!"]}),d.size>I&&(0,e.jsxs)(r.az,{mt:1,italic:!0,fontSize:"12px",position:"relative",children:[(0,e.jsx)(r.In,{mx:1,color:"red",name:"times"}),"Not enough disk space!"]}),(0,e.jsx)(r.az,{mt:1,italic:!0,color:"label",fontSize:"12px",children:d.fileinfo})]})}},26055:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNetMonitor:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.ntnetrelays,v=d.ntnetstatus,l=d.config_softwaredownload,c=d.config_peertopeer,u=d.config_communication,h=d.config_systemcontrol,x=d.idsalarm,j=d.idsstatus,p=d.ntnetmaxlogs,_=d.maxlogs,E=d.minlogs,I=d.banned_nids,O=d.ntnetlogs,M=O===void 0?[]:O;return(0,e.jsx)(r.Zm,{children:(0,e.jsxs)(r.Zm.Content,{scrollable:!0,children:[(0,e.jsx)(n.IC,{children:"WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!"}),(0,e.jsx)(n.wn,{title:"Wireless Connectivity",buttons:(0,e.jsx)(n.$n.Confirm,{icon:v?"power-off":"times",content:v?"ENABLED":"DISABLED",selected:v,onClick:function(){return g("toggleWireless")}}),children:f?(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Active NTNet Relays",children:f})}):"No Relays Connected"}),(0,e.jsx)(n.wn,{title:"Firewall Configuration",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Software Downloads",buttons:(0,e.jsx)(n.$n,{icon:l?"power-off":"times",content:l?"ENABLED":"DISABLED",selected:l,onClick:function(){return g("toggle_function",{id:"1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Peer to Peer Traffic",buttons:(0,e.jsx)(n.$n,{icon:c?"power-off":"times",content:c?"ENABLED":"DISABLED",selected:c,onClick:function(){return g("toggle_function",{id:"2"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Communication Systems",buttons:(0,e.jsx)(n.$n,{icon:u?"power-off":"times",content:u?"ENABLED":"DISABLED",selected:u,onClick:function(){return g("toggle_function",{id:"3"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Remote System Control",buttons:(0,e.jsx)(n.$n,{icon:h?"power-off":"times",content:h?"ENABLED":"DISABLED",selected:h,onClick:function(){return g("toggle_function",{id:"4"})}})})]})}),(0,e.jsxs)(n.wn,{title:"Security Systems",children:[!!x&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.IC,{children:"NETWORK INCURSION DETECTED"}),(0,e.jsx)(n.az,{italics:!0,children:"Abnormal activity has been detected in the network. Check system logs for more information"})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Banned NIDs",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return g("ban_nid")},children:"Ban NID"}),(0,e.jsx)(n.$n,{icon:"balance-scale",onClick:function(){return g("unban_nid")},children:"Unban NID"})]}),children:I.join(", ")||"None"}),(0,e.jsx)(n.Ki.Item,{label:"IDS Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:j?"power-off":"times",content:j?"ENABLED":"DISABLED",selected:j,onClick:function(){return g("toggleIDS")}}),(0,e.jsx)(n.$n,{icon:"sync",content:"Reset",color:"bad",onClick:function(){return g("resetIDS")}})]})}),(0,e.jsx)(n.Ki.Item,{label:"Max Log Count",buttons:(0,e.jsx)(n.Q7,{value:p,minValue:E,maxValue:_,width:"39px",onChange:function(D,A){return g("updatemaxlogs",{new_number:A})}})})]}),(0,e.jsx)(n.wn,{title:"System Log",level:2,buttons:(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Clear Logs",onClick:function(){return g("purgelogs")}}),children:M.map(function(D){return(0,e.jsx)(n.az,{className:"candystripe",children:D.entry},D.entry)})})]})]})})}},10124:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNetTransfer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.error,x=u.downloading,j=u.uploading,p=u.upload_filelist,_=(0,e.jsx)(f,{});return h?_=(0,e.jsx)(m,{}):x?_=(0,e.jsx)(b,{}):j?_=(0,e.jsx)(g,{}):p.length&&(_=(0,e.jsx)(d,{})),(0,e.jsx)(r.Zm,{width:575,height:700,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:_})})},m=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.error;return(0,e.jsxs)(n.wn,{title:"An error has occured during operation.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return c("PRG_reset")},children:"Reset"}),children:["Additional Information: ",h]})},b=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.download_name,x=u.download_progress,j=u.download_size,p=u.download_netspeed;return(0,e.jsx)(n.wn,{title:"Download in progress",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Downloaded File",children:h}),(0,e.jsx)(n.Ki.Item,{label:"Progress",children:(0,e.jsxs)(n.z2,{value:x,maxValue:j,children:[x," / ",j," GQ"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Transfer Speed",children:[p," GQ/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Controls",children:(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return c("PRG_reset")},children:"Cancel Download"})})]})})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.upload_clients,x=u.upload_filename,j=u.upload_haspassword;return(0,e.jsx)(n.wn,{title:"Server enabled",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Clients Connected",children:h}),(0,e.jsx)(n.Ki.Item,{label:"Provided file",children:x}),(0,e.jsx)(n.Ki.Item,{label:"Server Password",children:j?"Enabled":"Disabled"}),(0,e.jsxs)(n.Ki.Item,{label:"Commands",children:[(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return c("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.$n,{icon:"ban",onClick:function(){return c("PRG_reset")},children:"Cancel Upload"})]})]})})},d=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.upload_filelist;return(0,e.jsxs)(n.wn,{title:"File transfer server ready.",buttons:(0,e.jsx)(n.$n,{icon:"undo",onClick:function(){return c("PRG_reset")},children:"Cancel"}),children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"lock",onClick:function(){return c("PRG_setpassword")},children:"Set Password"}),(0,e.jsx)(n.wn,{title:"Pick file to serve.",level:2,children:h.map(function(x){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"upload",onClick:function(){return c("PRG_uploadfile",{uid:x.uid})},children:[x.filename," (",x.size,"GQ)"]},x.uid)})})]})},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.servers;return(0,e.jsx)(n.wn,{title:"Available Files",buttons:(0,e.jsx)(n.$n,{icon:"upload",onClick:function(){return c("PRG_uploadmenu")},children:"Send File"}),children:h.length&&(0,e.jsx)(n.Ki,{children:h.map(function(x){return(0,e.jsxs)(n.Ki.Item,{label:x.uid,children:[!!x.haspassword&&(0,e.jsx)(n.In,{name:"lock",mr:1}),x.filename,"\xA0 (",x.size,"GQ)\xA0",(0,e.jsx)(n.$n,{icon:"download",onClick:function(){return c("PRG_downloadfile",{uid:x.uid})},children:"Download"})]},x.uid)})})||(0,e.jsx)(n.az,{children:"No upload servers found."})})}},90227:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosNewsBrowser:function(){return m}});var e=t(88095),a=t(80676),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.article,h=c.download,x=c.message,j=(0,e.jsx)(g,{});return u?j=(0,e.jsx)(b,{}):h&&(j=(0,e.jsx)(d,{})),(0,e.jsx)(o.Zm,{width:575,height:750,children:(0,e.jsxs)(o.Zm.Content,{scrollable:!0,children:[!!x&&(0,e.jsxs)(r.IC,{children:[x," ",(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_clearmessage")}})]}),j]})})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.article;if(!u)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var h=u.title,x=u.cover,j=u.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+h,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"save",onClick:function(){return l("PRG_savearticle")},children:"Save"}),(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"})]}),children:[!!x&&(0,e.jsx)("img",{src:(0,a.l)(x)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.showing_archived,h=c.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:u,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:h.length&&h.map(function(x){return(0,e.jsxs)(r.Ki.Item,{label:x.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:x.uid})}}),children:[x.size," GQ"]},x.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"There appear to be no outstanding news articles on NTNet today."})})})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.download,h=u.download_progress,x=u.download_maxprogress,j=u.download_rate;return(0,e.jsx)(r.wn,{title:"Downloading...",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,value:h,maxValue:x,children:[h," / ",x," GQ"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Download Speed",children:[j," GQ/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Controls",children:(0,e.jsx)(r.$n,{icon:"ban",fluid:!0,onClick:function(){return l("PRG_reset")},children:"Abort Download"})})]})})}},39360:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosOvermapNavigation:function(){return r}});var e=t(88095),a=t(84905),n=t(15156),r=function(){return(0,e.jsx)(a.Zm,{width:380,height:530,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.OvermapNavigationContent,{})})})}},62243:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosPowerMonitor:function(){return r}});var e=t(88095),a=t(84905),n=t(16421),r=function(){return(0,e.jsx)(a.Zm,{width:550,height:700,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.PowerMonitorContent,{})})})}},12638:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosRCON:function(){return r}});var e=t(88095),a=t(84905),n=t(72128),r=function(){return(0,e.jsx)(a.Zm,{width:630,height:440,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.RCONContent,{})})})}},88475:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosRevelation:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.armed;return(0,e.jsx)(r.Zm,{width:400,height:250,theme:"syndicate",children:(0,e.jsx)(r.Zm.Content,{children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Input,{fluid:!0,content:"Obfuscate Name...",onCommit:function(v,l){return g("PRG_obfuscate",{new_name:l})},mb:1}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Payload Status",buttons:(0,e.jsx)(n.$n,{content:f?"ARMED":"DISARMED",color:f?"bad":"average",onClick:function(){return g("PRG_arm")}})})}),(0,e.jsx)(n.$n,{fluid:!0,bold:!0,content:"ACTIVATE",textAlign:"center",color:"bad",disabled:!f})]})})})}},17609:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosShutoffMonitor:function(){return r}});var e=t(88095),a=t(84905),n=t(52735),r=function(){return(0,e.jsx)(a.Zm,{width:627,height:700,children:(0,e.jsx)(a.Zm.Content,{children:(0,e.jsx)(n.ShutoffMonitorContent,{})})})}},86431:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosStationAlertConsole:function(){return r}});var e=t(88095),a=t(84905),n=t(47441),r=function(){return(0,e.jsx)(a.Zm,{width:315,height:500,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.StationAlertConsoleContent,{})})})}},21396:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosSupermatterMonitor:function(){return r}});var e=t(88095),a=t(84905),n=t(67186),r=function(){return(0,e.jsx)(a.Zm,{width:600,height:400,children:(0,e.jsx)(a.Zm.Content,{scrollable:!0,children:(0,e.jsx)(n.SupermatterMonitorContent,{})})})}},77248:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosUAV:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.current_uav,v=d.signal_strength,l=d.in_use,c=d.paired_uavs;return(0,e.jsx)(r.Zm,{width:600,height:500,children:(0,e.jsxs)(r.Zm.Content,{children:[(0,e.jsx)(n.wn,{title:"Selected UAV",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"UAV",children:f&&f.status||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Signal",children:f&&v||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:f&&(0,e.jsx)(n.$n,{icon:"power-off",selected:f.power,onClick:function(){return g("power_uav")},children:f.power?"Online":"Offline"})||"[Not Connected]"}),(0,e.jsx)(n.Ki.Item,{label:"Camera",children:f&&(0,e.jsx)(n.$n,{icon:"power-off",selected:l,disabled:!f.power,onClick:function(){return g("view_uav")},children:f.power?"Available":"Unavailable"})||"[Not Connected]"})]})}),(0,e.jsx)(n.wn,{title:"Paired UAVs",children:c.length&&c.map(function(u){return(0,e.jsxs)(n.so,{spacing:1,children:[(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(n.$n,{fluid:!0,icon:"quidditch",onClick:function(){return g("switch_uav",{switch_uav:u.uavref})},children:u.name})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:"bad",icon:"times",onClick:function(){return g("del_uav",{del_uav:u.uavref})}})})]},u.uavref)})||(0,e.jsx)(n.az,{color:"average",children:"No UAVs Paired."})})]})})}},61728:function(S,y,t){"use strict";t.r(y),t.d(y,{NtosWordProcessor:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.PC_device_theme,v=d.error,l=d.browsing,c=d.files,u=d.usbconnected,h=d.usbfiles,x=d.filename,j=d.filedata;return(0,e.jsx)(r.Zm,{resizable:!0,theme:f,children:(0,e.jsx)(r.Zm.Content,{scrollable:!0,children:v&&(0,e.jsxs)(n.az,{color:"bad",children:[(0,e.jsx)("h2",{children:"An Error has occured:"}),"Additional Information: ",v,"Please try again. If the problem persists, contact your system administrator for assistance.",(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to menu",onClick:function(){return g("PRG_backtomenu")}})]})||l&&(0,e.jsx)(n.wn,{title:"File Browser",buttons:(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back to editor",onClick:function(){return g("PRG_closebrowser")}}),children:(0,e.jsx)(n.wn,{title:"Available documents (local)",level:2,children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Size (GQ)"}),(0,e.jsx)(n.XI.Cell,{collapsing:!0})]}),c.map(function(p,_){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:p.name}),(0,e.jsx)(n.XI.Cell,{children:p.size}),(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return g("PRG_openfile",{PRG_openfile:p.name})},children:"Open"})})]},_)})]})})})||(0,e.jsxs)(n.wn,{title:"Document: "+x,children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_newfile")},children:"New"}),(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_loadmenu")},children:"Load"}),(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_savefile")},children:"Save"}),(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_saveasfile")},children:"Save As"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_editfile")},children:"Edit"}),(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_txtrpeview")},children:"Preview"}),(0,e.jsx)(n.$n,{onClick:function(){return g("PRG_taghelp")},children:"Formatting Help"}),(0,e.jsx)(n.$n,{disabled:!j,onClick:function(){return g("PRG_printfile")},children:"Print"})]}),(0,e.jsx)(n.wn,{mt:1,children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})})]})})})}},10006:function(S,y,t){"use strict";t.r(y),t.d(y,{NumberInputModal:function(){return d}});var e=t(88095),a;(function(v){v.Alt="Alt",v.Backspace="Backspace",v.Control="Control",v.Delete="Delete",v.Down="ArrowDown",v.End="End",v.Enter="Enter",v.Escape="Escape",v.Home="Home",v.Insert="Insert",v.Left="ArrowLeft",v.PageDown="PageDown",v.PageUp="PageUp",v.Right="ArrowRight",v.Shift="Shift",v.Space=" ",v.Tab="Tab",v.Up="ArrowUp"})(a||(a={}));var n=t(44583),r=t(4413),o=t(92514),m=t(84905),b=t(12035),g=t(18513),d=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=u.init_value,x=u.large_buttons,j=u.message,p=j===void 0?"":j,_=u.timeout,E=u.title,I=(0,n.useState)(h),O=I[0],M=I[1],D=function(B){B!==O&&M(B)},A=140+(p.length>30?Math.ceil(p.length/3):0)+(p.length&&x?5:0);return(0,e.jsxs)(m.p8,{title:E,width:270,height:A,children:[_&&(0,e.jsx)(g.Loader,{value:_}),(0,e.jsx)(m.p8.Content,{onKeyDown:function(B){B.key===a.Enter&&c("submit",{entry:O}),B.key===a.Escape&&c("cancel")},children:(0,e.jsx)(o.wn,{fill:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.az,{color:"label",children:p})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(f,{input:O,onClick:D,onChange:D,onBlur:D})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:O})})]})})})]})},f=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=u.min_value,x=u.max_value,j=u.init_value,p=u.round_value,_=v.input,E=v.onClick,I=v.onChange,O=v.onBlur;return(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{disabled:_===h,icon:"angle-double-left",onClick:function(){return E(h)},tooltip:h?"Min ("+h+")":"Min"})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.SM,{autoFocus:!0,autoSelect:!0,fluid:!0,allowFloats:!p,minValue:h,maxValue:x,onChange:function(M,D){return I(D)},onBlur:function(M,D){return O(D)},onEnter:function(M,D){return c("submit",{entry:D})},value:_})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{disabled:_===x,icon:"angle-double-right",onClick:function(){return E(x)},tooltip:x?"Max ("+x+")":"Max"})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.$n,{disabled:_===j,icon:"redo",onClick:function(){return E(j)},tooltip:j?"Reset ("+j+")":"Reset"})})]})}},953:function(S,y,t){"use strict";t.r(y),t.d(y,{OmniFilter:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){return b.input?"Input":b.output?"Output":b.f_type?b.f_type:"Disabled"},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.power,l=f.config,c=f.ports,u=f.set_flow_rate,h=f.last_flow_rate;return(0,e.jsx)(r.p8,{width:360,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:l?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:v?"On":"Off",selected:v,disabled:l,onClick:function(){return d("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:l,onClick:function(){return d("configure")}})]}),children:(0,e.jsx)(n.Ki,{children:c?c.map(function(x){return(0,e.jsx)(n.Ki.Item,{label:x.dir+" Port",children:l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:"IN",selected:x.input,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:"in",dir:x.dir})}}),(0,e.jsx)(n.$n,{content:"OUT",selected:x.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:x.dir})}}),(0,e.jsx)(n.$n,{icon:"wrench",disabled:x.input||x.output,content:x.f_type||"None",onClick:function(){return d("switch_filter",{mode:x.f_type,dir:x.dir})}})]}):o(x)},x.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[h," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:l?(0,e.jsx)(n.$n,{icon:"wrench",content:u/10+" L/s",onClick:function(){return d("set_flow_rate")}}):u/10+" L/s"})]})})]})})}},75520:function(S,y,t){"use strict";t.r(y),t.d(y,{OmniMixer:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(g){return g.input?"Input":g.output?"Output":g.f_type?g.f_type:"Disabled"},m=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.power,c=v.config,u=v.ports,h=v.set_flow_rate,x=v.last_flow_rate;return(0,e.jsx)(r.p8,{width:390,height:330,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:c?"Configuration":"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:l?"On":"Off",selected:l,disabled:c,onClick:function(){return f("power")}}),(0,e.jsx)(n.$n,{icon:"wrench",selected:c,onClick:function(){return f("configure")}})]}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Port"}),c?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Input"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Output"})]}):(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Mode"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Concentration"}),c?(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Lock"}):null]}),u?u.map(function(j){return(0,e.jsx)(b,{port:j,config:c},j.dir)}):(0,e.jsx)(n.az,{color:"bad",children:"No Ports Detected"})]})}),(0,e.jsx)(n.wn,{title:"Flow Rate",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Current Flow Rate",children:[x," L/s"]}),(0,e.jsx)(n.Ki.Item,{label:"Flow Rate Limit",children:c?(0,e.jsx)(n.$n,{icon:"wrench",content:h/10+" L/s",onClick:function(){return f("set_flow_rate")}}):h/10+" L/s"})]})})]})})},b=function(g){var d=(0,a.Oc)().act,f=g.port,v=g.config;return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:f.dir+" Port"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"IN",selected:f.input,disabled:f.output,icon:"compress-arrows-alt",onClick:function(){return d("switch_mode",{mode:f.input?"none":"in",dir:f.dir})}}):o(f)}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:v?(0,e.jsx)(n.$n,{content:"OUT",selected:f.output,icon:"expand-arrows-alt",onClick:function(){return d("switch_mode",{mode:"out",dir:f.dir})}}):f.concentration*100+"%"}),v?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",width:"20%",children:(0,e.jsx)(n.$n,{width:"100%",icon:"wrench",disabled:!f.input,content:f.input?f.concentration*100+" %":"-",onClick:function(){return d("switch_con",{dir:f.dir})}})}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{icon:f.con_lock?"lock":"lock-open",disabled:!f.input,selected:f.con_lock,content:f.f_type||"None",onClick:function(){return d("switch_conlock",{dir:f.dir})}})})]}):null]})}},37534:function(S,y,t){"use strict";t.r(y),t.d(y,{OperatingComputer:function(){return f}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=[["good","Conscious"],["average","Unconscious"],["bad","DEAD"]],b=[["Resp.","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],g={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],f=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=j.hasOccupant,_=j.choice,E;return _?E=(0,e.jsx)(c,{}):E=p?(0,e.jsx)(v,{}):(0,e.jsx)(l,{}),(0,e.jsx)(o.p8,{width:650,height:455,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:!_,icon:"user",onClick:function(){return x("choiceOff")},children:"Patient"}),(0,e.jsx)(r.tU.Tab,{selected:!!_,icon:"cog",onClick:function(){return x("choiceOn")},children:"Options"})]}),(0,e.jsx)(r.wn,{flexGrow:"1",children:E})]})})},v=function(u){var h=(0,n.Oc)().data,x=h.occupant;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Patient",level:"2",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:x.name}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:m[x.stat][0],children:m[x.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:"0",max:x.maxHealth,value:x.health/x.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]}})}),b.map(function(j,p){return(0,e.jsx)(r.Ki.Item,{label:j[0]+" Damage",children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:x[j[1]]/100,ranges:g,children:(0,a.LI)(x[j[1]])},p)},p)}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:x.maxTemp,value:x.bodyTemperature/x.maxTemp,color:d[x.temperatureSuitability+3],children:[(0,a.LI)(x.btCelsius),"\xB0C, ",(0,a.LI)(x.btFaren),"\xB0F"]})}),!!x.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:x.bloodMax,value:x.bloodLevel/x.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[x.bloodPercent,"%, ",x.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",children:[x.pulse," BPM"]})]})]})}),(0,e.jsx)(r.wn,{title:"Current Procedure",level:"2",children:x.surgery&&x.surgery.length?(0,e.jsx)(r.Ki,{children:x.surgery.map(function(j){return(0,e.jsx)(r.Ki.Item,{label:j.name,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current State",children:j.currentStage}),(0,e.jsx)(r.Ki.Item,{label:"Possible Next Steps",children:j.nextSteps.map(function(p){return(0,e.jsx)("div",{children:p},p)})})]})},j.name)})}):(0,e.jsx)(r.az,{color:"label",children:"No procedure ongoing."})})]})},l=function(){return(0,e.jsx)(r.so,{textAlign:"center",height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No patient detected."]})})},c=function(u){var h=(0,n.Oc)(),x=h.act,j=h.data,p=j.verbose,_=j.health,E=j.healthAlarm,I=j.oxy,O=j.oxyAlarm,M=j.crit;return(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Loudspeaker",children:(0,e.jsx)(r.$n,{selected:p,icon:p?"toggle-on":"toggle-off",content:p?"On":"Off",onClick:function(){return x(p?"verboseOff":"verboseOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer",children:(0,e.jsx)(r.$n,{selected:_,icon:_?"toggle-on":"toggle-off",content:_?"On":"Off",onClick:function(){return x(_?"healthOff":"healthOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Health Announcer Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:E,stepPixelSize:"5",ml:"0",format:function(D){return D+"%"},onChange:function(D,A){return x("health_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm",children:(0,e.jsx)(r.$n,{selected:I,icon:I?"toggle-on":"toggle-off",content:I?"On":"Off",onClick:function(){return x(I?"oxyOff":"oxyOn")}})}),(0,e.jsx)(r.Ki.Item,{label:"Oxygen Alarm Threshold",children:(0,e.jsx)(r.N6,{bipolar:!0,minValue:"-100",maxValue:"100",value:O,stepPixelSize:"5",ml:"0",onChange:function(D,A){return x("oxy_adj",{new:A})}})}),(0,e.jsx)(r.Ki.Item,{label:"Critical Alert",children:(0,e.jsx)(r.$n,{selected:M,icon:M?"toggle-on":"toggle-off",content:M?"On":"Off",onClick:function(){return x(M?"critOff":"critOn")}})})]})}},17511:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapDisperser:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(7240),m=function(g){return(0,e.jsx)(r.p8,{width:400,height:550,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(b,{})})})},b=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.faillink,c=v.calibration,u=v.overmapdir,h=v.cal_accuracy,x=v.strength,j=v.range,p=v.next_shot,_=v.nopower,E=v.skill,I=v.chargeload;return l?(0,e.jsx)(n.wn,{title:"Error",children:"Machine is incomplete, out of range, or misaligned!"}):(0,e.jsxs)(n.so,{wrap:"wrap",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"22%",children:(0,e.jsx)(n.wn,{title:"Targeting",textAlign:"center",children:(0,e.jsx)(o.OvermapPanControls,{actToDo:"choose",selected:function(O){return O===u}})})}),(0,e.jsx)(n.so.Item,{basis:"74%",grow:1,children:(0,e.jsx)(n.wn,{title:"Charge",children:(0,e.jsxs)(n.Ki,{children:[_&&(0,e.jsx)(n.Ki.Item,{label:"Error",children:"At least one part of the machine is unpowered."})||null,(0,e.jsx)(n.Ki.Item,{label:"Charge Load Type",children:I}),(0,e.jsx)(n.Ki.Item,{label:"Cooldown",children:p===0&&(0,e.jsx)(n.az,{color:"good",children:"Ready"})||p>1&&(0,e.jsxs)(n.az,{color:"average",children:[(0,e.jsx)(n.zv,{value:p})," Seconds",(0,e.jsx)(n.az,{color:"bad",children:"Warning: Do not fire during cooldown."})]})||null})]})})}),(0,e.jsx)(n.so.Item,{basis:"50%",mt:1,children:(0,e.jsxs)(n.wn,{title:"Calibration",children:[(0,e.jsx)(n.zv,{value:h}),"%",(0,e.jsx)(n.$n,{ml:1,icon:"exchange-alt",onClick:function(){return f("skill_calibration")},children:"Pre-Calibration"}),(0,e.jsx)(n.az,{mt:1,children:c.map(function(O,M){return(0,e.jsxs)(n.az,{children:["Cal #",M,":",(0,e.jsx)(n.$n,{ml:1,icon:"random",onClick:function(){return f("calibration",{calibration:M})},children:O.toString()})]},M)})})]})}),(0,e.jsx)(n.so.Item,{basis:"45%",grow:1,mt:1,children:(0,e.jsx)(n.wn,{title:"Setup",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Strength",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"fist-raised",onClick:function(){return f("strength")},children:x})}),(0,e.jsx)(n.Ki.Item,{label:"Radius",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"expand-arrows-alt",onClick:function(){return f("range")},children:j})})]})})}),(0,e.jsx)(n.so.Item,{grow:1,mt:1,children:(0,e.jsx)(n.$n,{fluid:!0,color:"red",icon:"bomb",onClick:function(){return f("fire")},children:"Fire ORB"})})]})}},98203:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapEngines:function(){return o},OvermapEnginesContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){return(0,e.jsx)(r.p8,{width:390,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.global_state,l=f.global_limit,c=f.engines_info,u=f.total_thrust;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Engines",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:v,onClick:function(){return d("global_toggle")},children:v?"Shut All Engines Down":"Start All Engines"})}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return d("global_limit",{global_limit:-.1})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return d("set_global_limit")},children:[l,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return d("global_limit",{global_limit:.1})},icon:"plus"})]}),(0,e.jsx)(n.Ki.Item,{label:"Total Thrust",children:(0,e.jsx)(n.zv,{value:u})})]})}),(0,e.jsx)(n.wn,{title:"Engines",height:"340px",style:{"overflow-y":"auto"},children:c.map(function(h,x){return(0,e.jsxs)(n.so,{spacing:1,mt:x!==0&&-1,children:[(0,e.jsx)(n.so.Item,{basis:"80%",children:(0,e.jsx)(n.Nt,{title:(0,e.jsxs)(n.az,{inline:!0,children:["Engine #",x+1," | Thrust:"," ",(0,e.jsx)(n.zv,{value:h.eng_thrust})," | Limit:"," ",(0,e.jsx)(n.zv,{value:h.eng_thrust_limiter,format:function(j){return j+"%"}})]}),children:(0,e.jsx)(n.wn,{width:"127%",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Type",children:h.eng_type}),(0,e.jsxs)(n.Ki.Item,{label:"Status",children:[(0,e.jsx)(n.az,{color:h.eng_on?h.eng_on===1?"good":"average":"bad",children:h.eng_on?h.eng_on===1?"Online":"Booting":"Offline"}),h.eng_status.map(function(j,p){return Array.isArray(j)?(0,e.jsx)(n.az,{color:j[1],children:j[0]},p):(0,e.jsx)(n.az,{children:j},p)})]}),(0,e.jsx)(n.Ki.Item,{label:"Current Thrust",children:h.eng_thrust}),(0,e.jsxs)(n.Ki.Item,{label:"Volume Limit",children:[(0,e.jsx)(n.$n,{onClick:function(){return d("limit",{limit:-.1,engine:h.eng_reference})},icon:"minus"}),(0,e.jsxs)(n.$n,{onClick:function(){return d("set_limit",{engine:h.eng_reference})},children:[h.eng_thrust_limiter,"%"]}),(0,e.jsx)(n.$n,{onClick:function(){return d("limit",{limit:.1,engine:h.eng_reference})},icon:"plus"})]})]})})})}),(0,e.jsx)(n.so.Item,{basis:"20%",children:(0,e.jsx)(n.$n,{fluid:!0,iconSpin:h.eng_on===-1,color:h.eng_on===-1?"purple":null,selected:h.eng_on===1,icon:"power-off",onClick:function(){return d("toggle_engine",{engine:h.eng_reference})},children:h.eng_on?h.eng_on===1?"Shutoff":"Booting":"Startup"})})]},x)})})]})}},79061:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapFull:function(){return g}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(98203),m=t(60224),b=t(89501),g=function(d){var f=(0,a.Ul)("overmapFullState",0),v=f[0],l=f[1];return(0,e.jsx)(r.p8,{width:800,height:800,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:v===0,onClick:function(){return l(0)},children:"Engines"}),(0,e.jsx)(n.tU.Tab,{selected:v===1,onClick:function(){return l(1)},children:"Helm"}),(0,e.jsx)(n.tU.Tab,{selected:v===2,onClick:function(){return l(2)},children:"Sensors"})]}),v===0&&(0,e.jsx)(o.OvermapEnginesContent,{}),v===1&&(0,e.jsx)(m.OvermapHelmContent,{}),v===2&&(0,e.jsx)(b.OvermapShipSensorsContent,{})]})})}},60224:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightDataWrap:function(){return g},OvermapHelm:function(){return m},OvermapHelmContent:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(7240),m=function(l){return(0,e.jsx)(r.p8,{width:565,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(b,{})})})},b=function(l){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{basis:"40%",height:"180px",children:(0,e.jsx)(g,{})}),(0,e.jsx)(n.so.Item,{basis:"25%",height:"180px",children:(0,e.jsx)(d,{})}),(0,e.jsx)(n.so.Item,{basis:"35%",height:"180px",children:(0,e.jsx)(f,{})})]}),(0,e.jsx)(v,{})]})},g=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1",margin:"none"},className:"Section",children:[(0,e.jsx)("legend",{children:"Flight Data"}),(0,e.jsx)(o.OvermapFlightData,{})]})},d=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.canburn,j=h.manual_control;return(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Manual Control"}),(0,e.jsx)(n.so,{align:"center",justify:"center",children:(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(o.OvermapPanControls,{disabled:!x,actToDo:"move"})})}),(0,e.jsxs)(n.az,{textAlign:"center",mt:1,children:[(0,e.jsx)(n.az,{bold:!0,underline:!0,children:"Direct Control"}),(0,e.jsx)(n.$n,{selected:j,onClick:function(){return u("manual")},icon:"compass",children:j?"Enabled":"Disabled"})]})]})},f=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.dest,j=h.d_x,p=h.d_y,_=h.speedlimit,E=h.autopilot,I=h.autopilot_disabled;return I?(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsx)(n.az,{textAlign:"center",color:"bad",fontSize:1.2,children:"AUTOPILOT DISABLED"}),(0,e.jsx)(n.az,{textAlign:"center",color:"average",children:"Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions."}),(0,e.jsx)(n.az,{textAlign:"center",children:(0,e.jsx)(n.$n.Confirm,{mt:1,color:"bad",content:"Unlock Autopilot",confirmContent:"ACCEPT RISKS?",icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",onClick:function(){return u("apilot_lock")}})})]}):(0,e.jsxs)("fieldset",{style:{height:"100%",border:"1px solid #4972a1"},className:"Section",children:[(0,e.jsx)("legend",{children:"Autopilot"}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:x&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{onClick:function(){return u("setcoord",{setx:!0})},children:j}),(0,e.jsx)(n.$n,{onClick:function(){return u("setcoord",{sety:!0})},children:p})]})||(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return u("setcoord",{setx:!0,sety:!0})},children:"None"})}),(0,e.jsx)(n.Ki.Item,{label:"Speed Limit",children:(0,e.jsxs)(n.$n,{icon:"tachometer-alt",onClick:function(){return u("speedlimit")},children:[_," Gm/h"]})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,selected:E,disabled:!x,icon:"robot",onClick:function(){return u("apilot")},children:E?"Engaged":"Disengaged"}),(0,e.jsx)(n.$n,{fluid:!0,color:"good",icon:"exclamation-triangle",onClick:function(){return u("apilot_lock")},children:"Lock Autopilot"})]})},v=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.sector,j=h.s_x,p=h.s_y,_=h.sector_info,E=h.landed,I=h.locations;return(0,e.jsxs)(n.wn,{title:"Navigation Data",m:.3,mt:1,children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Location",children:x}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[j," : ",p]}),(0,e.jsx)(n.Ki.Item,{label:"Scan Data",children:_}),(0,e.jsx)(n.Ki.Item,{label:"Status",children:E})]}),(0,e.jsxs)(n.so,{mt:1,align:"center",justify:"center",spacing:1,children:[(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"save",onClick:function(){return u("add",{add:"current"})},children:"Save Current Position"})}),(0,e.jsx)(n.so.Item,{basis:"50%",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"sticky-note",onClick:function(){return u("add",{add:"new"})},children:"Add New Entry"})})]}),(0,e.jsx)(n.wn,{mt:1,scrollable:!0,height:"130px",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Coordinates"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),I.map(function(O){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:O.name}),(0,e.jsxs)(n.XI.Cell,{children:[O.x," : ",O.y]}),(0,e.jsxs)(n.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(n.$n,{icon:"rocket",onClick:function(){return u("setds",{x:O.x,y:O.y})},children:"Plot Course"}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return u("remove",{remove:O.reference})},children:"Remove"})]})]},O.name)})]})})]})}},15156:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapNavigation:function(){return m},OvermapNavigationContent:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(7240),m=function(){return(0,e.jsx)(r.p8,{width:380,height:530,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(b,{})})})},b=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.sector,c=v.s_x,u=v.s_y,h=v.sector_info,x=v.viewing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Current Location",buttons:(0,e.jsx)(n.$n,{icon:"eye",selected:x,onClick:function(){return f("viewing")},children:"Map View"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:l}),(0,e.jsxs)(n.Ki.Item,{label:"Coordinates",children:[c," : ",u]}),(0,e.jsx)(n.Ki.Item,{label:"Additional Information",children:h})]})}),(0,e.jsx)(n.wn,{title:"Flight Data",children:(0,e.jsx)(o.OvermapFlightData,{disableLimiterControls:!0})})]})}},20576:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapShieldGenerator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(d){return(0,e.jsx)(r.p8,{width:500,height:760,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.modes,u=l.offline_for;return u?(0,e.jsxs)(n.wn,{title:"EMERGENCY SHUTDOWN",color:"bad",children:["An emergency shutdown has been initiated - generator cooling down. Please wait until the generator cools down before resuming operation. Estimated time left: ",u," seconds."]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(g,{}),(0,e.jsx)(n.wn,{title:"Field Calibration",children:c.map(function(h){return(0,e.jsxs)(n.wn,{title:h.name,level:2,buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:h.status,onClick:function(){return v("toggle_mode",{toggle_mode:h.flag})},children:h.status?"Enabled":"Disabled"}),children:[(0,e.jsx)(n.az,{color:"label",children:h.desc}),(0,e.jsxs)(n.az,{mt:.5,children:["Multiplier: ",h.multiplier]})]},h.name)})})]})},b=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.running,u=l.overloaded,h=l.mitigation_max,x=l.mitigation_physical,j=l.mitigation_em,p=l.mitigation_heat,_=l.field_integrity,E=l.max_energy,I=l.current_energy,O=l.percentage_energy,M=l.total_segments,D=l.functional_segments,A=l.field_radius,B=l.target_radius,U=l.input_cap_kw,L=l.upkeep_power_usage,k=l.power_usage,Y=l.spinup_counter;return(0,e.jsx)(n.wn,{title:"System Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Generator is",children:c===1&&(0,e.jsx)(n.az,{color:"average",children:"Shutting Down"})||c===2&&(u&&(0,e.jsx)(n.az,{color:"bad",children:"Overloaded"})||(0,e.jsx)(n.az,{color:"good",children:"Running"}))||c===3&&(0,e.jsx)(n.az,{color:"average",children:"Inactive"})||c===4&&(0,e.jsxs)(n.az,{color:"blue",children:["Spinning Up\xA0",B!==A&&(0,e.jsx)(n.az,{inline:!0,children:"(Adjusting Radius)"})||(0,e.jsxs)(n.az,{inline:!0,children:[Y*2,"s"]})]})||(0,e.jsx)(n.az,{color:"bad",children:"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Storage",children:(0,e.jsxs)(n.z2,{value:I,maxValue:E,children:[I," / ",E," MJ (",O,"%)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Shield Integrity",children:[(0,e.jsx)(n.zv,{value:_}),"%"]}),(0,e.jsxs)(n.Ki.Item,{label:"Mitigation",children:[j,"% EM / ",x,"% PH / ",p,"% HE / ",h,"% MAX"]}),(0,e.jsxs)(n.Ki.Item,{label:"Upkeep Energy Use",children:[(0,e.jsx)(n.zv,{value:L})," kW"]}),(0,e.jsx)(n.Ki.Item,{label:"Total Energy Use",children:U&&(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.z2,{value:k,maxValue:U,children:[k," / ",U," kW"]})})||(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.zv,{value:k})," kW (No Limit)"]})}),(0,e.jsxs)(n.Ki.Item,{label:"Field Size",children:[(0,e.jsx)(n.zv,{value:D}),"\xA0/\xA0",(0,e.jsx)(n.zv,{value:M})," m\xB2 (radius"," ",(0,e.jsx)(n.zv,{value:A}),", target"," ",(0,e.jsx)(n.zv,{value:B}),")"]})]})})},g=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.running,u=l.hacked,h=l.idle_multiplier,x=l.idle_valid_values;return(0,e.jsxs)(n.wn,{title:"Controls",buttons:(0,e.jsxs)(e.Fragment,{children:[c>=2&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("begin_shutdown")},selected:!0,children:"Turn off"}),c===3&&(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:0})},children:"Activate"})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("toggle_idle",{toggle_idle:1})},selected:!0,children:"Deactivate"})]})||(0,e.jsx)(n.$n,{icon:"power-off",onClick:function(){return v("start_generator")},children:"Turn on"}),c&&u&&(0,e.jsx)(n.$n,{icon:"exclamation-triangle",onClick:function(){return v("emergency_shutdown")},color:"bad",children:"EMERGENCY SHUTDOWN"})||null]}),children:[(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",onClick:function(){return v("set_range")},children:"Set Field Range"}),(0,e.jsx)(n.$n,{icon:"bolt",onClick:function(){return v("set_input_cap")},children:"Set Input Cap"}),(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Set inactive power use intensity",children:x.map(function(j){return(0,e.jsx)(n.$n,{selected:j===h,disabled:c===4,onClick:function(){return v("switch_idle",{switch_idle:j})},children:j},j)})})})]})}},89501:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapShipSensors:function(){return o},OvermapShipSensorsContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){return(0,e.jsx)(r.p8,{width:375,height:545,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.viewing,l=f.on,c=f.range,u=f.health,h=f.max_health,x=f.heat,j=f.critical_heat,p=f.status,_=f.contacts;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"eye",selected:v,onClick:function(){return d("viewing")},children:"Map View"}),(0,e.jsx)(n.$n,{icon:"power-off",selected:l,onClick:function(){return d("toggle_sensor")},children:l?"Sensors Enabled":"Sensors Disabled"})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:p}),(0,e.jsx)(n.Ki.Item,{label:"Range",children:(0,e.jsx)(n.$n,{icon:"signal",onClick:function(){return d("range")},children:c})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsxs)(n.z2,{ranges:{good:[h*.75,1/0],average:[h*.25,h*.75],bad:[-1/0,h*.25]},value:u,maxValue:h,children:[u," / ",h]})}),(0,e.jsx)(n.Ki.Item,{label:"Temperature",children:(0,e.jsx)(n.z2,{ranges:{bad:[j*.75,1/0],average:[j*.5,j*.75],good:[-1/0,j*.5]},value:x,maxValue:j,children:x<j*.5&&(0,e.jsx)(n.az,{children:"Temperature low."})||x<j*.75&&(0,e.jsx)(n.az,{children:"Sensor temperature high!"})||(0,e.jsx)(n.az,{children:"TEMPERATURE CRITICAL: Disable or reduce power immediately!"})})})]})}),(0,e.jsx)(n.wn,{title:"Contacts",children:_.length&&_.map(function(E){return(0,e.jsxs)(n.$n,{fluid:!0,icon:"search",onClick:function(){return d("scan",{scan:E.ref})},children:[(0,e.jsxs)(n.az,{bold:!0,inline:!0,children:["Scan: ",E.name]}),(0,e.jsxs)(n.az,{inline:!0,children:[", bearing: ",E.bearing,"\xB0"]})]},E.ref)})||(0,e.jsx)(n.az,{color:"average",children:"No contacts on sensors."})}),f.status==="MISSING"&&(0,e.jsx)(n.wn,{title:"Error",children:(0,e.jsx)(n.$n,{icon:"wifi",onClick:function(){return d("link")},children:"Link up with sensor suite?"})})||null]})}},82425:function(S,y,t){"use strict";t.r(y),t.d(y,{ParticleAccelerator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.assembled,v=d.power,l=d.strength;return(0,e.jsx)(r.p8,{width:350,height:185,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Status",buttons:(0,e.jsx)(n.$n,{icon:"sync",content:"Run Scan",onClick:function(){return g("scan")}}),children:(0,e.jsx)(n.az,{color:f?"good":"bad",children:f?"Ready - All parts in place":"Unable to detect all parts"})})})}),(0,e.jsx)(n.wn,{title:"Particle Accelerator Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:!f,onClick:function(){return g("power")}})}),(0,e.jsxs)(n.Ki.Item,{label:"Particle Strength",children:[(0,e.jsx)(n.$n,{icon:"backward",disabled:!f,onClick:function(){return g("remove_strength")}})," ",String(l).padStart(1,"0")," ",(0,e.jsx)(n.$n,{icon:"forward",disabled:!f,onClick:function(){return g("add_strength")}})]})]})})]})})}},92130:function(S,y,t){"use strict";t.r(y),t.d(y,{PartsLathe:function(){return b}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=t(47926),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.panelOpen,c=v.copyBoard,u=v.copyBoardReqComponents,h=v.queue,x=v.building,j=v.buildPercent,p=v.error,_=v.recipies;return(0,e.jsx)(o.p8,{width:500,height:500,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[p&&(0,e.jsxs)(r.IC,{danger:!0,children:["Missing Materials: ",p]})||null,(0,e.jsx)(r.wn,{title:"Materials",children:(0,e.jsx)(m.Materials,{displayAllMat:!0})}),x&&(0,e.jsx)(r.wn,{title:"Currently Building",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:(0,a.Sn)(x)}),(0,e.jsx)(r.Ki.Item,{label:"Progress",children:(0,e.jsx)(r.z2,{color:"good",value:j,maxValue:100})})]})})||null,c&&(0,e.jsxs)(r.wn,{title:"Circuit Reader",children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Loaded Circuit",buttons:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return f("ejectBoard")},children:"Eject"}),children:(0,a.Sn)(c)})}),u&&u.length&&(0,e.jsxs)(e.Fragment,{children:[u.map(function(E){return(0,e.jsxs)(r.az,{children:[E.qty," x ",(0,a.Sn)(E.name)]},E.name)}),(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("queueBoard")},children:"Build All"})]})||(0,e.jsx)(r.az,{children:"Board has no required components."})]}),(0,e.jsx)(r.wn,{title:"Queue",children:h.length&&h.map(function(E,I){return(0,e.jsxs)(r.az,{color:"label",children:["#",I+1,": ",(0,a.Sn)(E),(I>0||!x)&&(0,e.jsx)(r.$n,{ml:1,icon:"times",onClick:function(){return f("cancel",{cancel:I+1})},children:"Cancel"})||null]},E)})||(0,e.jsx)(r.IC,{info:!0,children:"Queue Empty"})}),(0,e.jsx)(r.wn,{title:"Recipes",children:_.length&&_.map(function(E){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"wrench",onClick:function(){return f("queue",{queue:E.type})},children:(0,a.Sn)(E.name)})},E.name)})})]})})}},55725:function(S,y,t){"use strict";t.r(y),t.d(y,{PathogenicIsolator:function(){return g}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(5425),m=t(84905),b=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.can_print,x=v.args;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",title:x.name||"Virus",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!h,icon:"print",content:"Print",onClick:function(){return c("print",{type:"virus_record",vir:x.record})}}),(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return c("modal_close")}})]}),children:(0,e.jsx)(r.az,{mx:"0.5rem",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Spread",children:[x.spread_text," Transmission"]}),(0,e.jsx)(r.Ki.Item,{label:"Possible cure",children:x.antigen}),(0,e.jsx)(r.Ki.Item,{label:"Rate of Progression",children:x.rate}),(0,e.jsxs)(r.Ki.Item,{label:"Antibiotic Resistance",children:[x.resistance,"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Species Affected",children:x.species}),(0,e.jsx)(r.Ki.Item,{label:"Symptoms",children:(0,e.jsx)(r.Ki,{children:x.symptoms.map(function(j){return(0,e.jsxs)(r.Ki.Item,{label:j.stage+". "+j.name,children:[(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Strength:"})," ",j.strength,"\xA0"]}),(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsx)(r.az,{inline:!0,color:"label",children:"Aggressiveness:"})," ",j.aggressiveness]})]},j.stage)})})})]})})})},g=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.isolating,x=(0,a.useState)(0),j=x[0],p=x[1],_=null;return j===0?_=(0,e.jsx)(d,{}):j===1&&(_=(0,e.jsx)(f,{})),(0,o.modalRegisterBodyOverride)("virus",b),(0,e.jsxs)(m.p8,{height:500,width:520,children:[(0,e.jsx)(o.ComplexModal,{maxHeight:"100%",maxWidth:"95%"}),(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[h&&(0,e.jsx)(r.IC,{warning:!0,children:"The Isolator is currently isolating..."})||null,(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:j===0,onClick:function(){return p(0)},children:"Home"}),(0,e.jsx)(r.tU.Tab,{selected:j===1,onClick:function(){return p(1)},children:"Database"})]}),_]})]})},d=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.syringe_inserted,x=u.pathogen_pool,j=u.can_print;return(0,e.jsx)(r.wn,{title:"Pathogens",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!j,onClick:function(){return c("print",{type:"patient_diagnosis"})}}),(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Syringe",disabled:!h,onClick:function(){return c("eject")}})]}),children:x.length&&x.map(function(p){return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{color:"label",children:(0,e.jsxs)(r.so,{align:"center",children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)("u",{children:["Stamm #",p.unique_id]}),p.is_in_database?" (Analyzed)":" (Not Analyzed)"]}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"virus",content:"Isolate",onClick:function(){return c("isolate",{isolate:p.reference})}}),(0,e.jsx)(r.$n,{icon:"search",content:"Database",disabled:!p.is_in_database,onClick:function(){return c("view_entry",{vir:p.record})}})]})]})}),(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.az,{color:"average",mb:1,children:p.name}),p.dna]})]},p.unique_id)})||(h?(0,e.jsx)(r.az,{color:"average",children:"No samples detected."}):(0,e.jsx)(r.az,{color:"average",children:"No syringe inserted."}))})},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.database,x=u.can_print;return(0,e.jsx)(r.wn,{title:"Database",buttons:(0,e.jsx)(r.$n,{icon:"print",content:"Print",disabled:!x,onClick:function(){return c("print",{type:"virus_list"})}}),children:h.length&&h.map(function(j){return(0,e.jsx)(r.$n,{fluid:!0,icon:"search",onClick:function(){return c("view_entry",{vir:j.record})},children:j.name},j.name)})||(0,e.jsx)(r.az,{color:"average",children:"The viral database is empty."})})}},34557:function(S,y,t){"use strict";t.r(y),t.d(y,{Pda:function(){return d}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=t(82989),b=t(7339),g=function(c){var u;try{u=b("./"+c+".jsx")}catch(x){if(x.code==="MODULE_NOT_FOUND")return(0,m.routingError)("notFound",c);throw x}var h=u[c];return h||(0,m.routingError)("missingExport",c)},d=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.app,p=x.owner,_=x.useRetro;if(!p)return(0,e.jsx)(o.p8,{children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(r.wn,{stretchContents:!0,children:"Warning: No ID information found! Please swipe ID!"})})});var E=g(j.template),I=(0,a.useState)(!1),O=I[0],M=I[1];return(0,e.jsx)(o.p8,{width:580,height:670,theme:_?"pda-retro":null,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(f,{settingsMode:O,setSettingsMode:M}),O&&(0,e.jsx)(v,{})||(0,e.jsx)(r.wn,{title:(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.In,{name:j.icon,mr:1}),j.name]}),p:1,children:(0,e.jsx)(E,{})}),(0,e.jsx)(r.az,{mb:8}),(0,e.jsx)(l,{setSettingsMode:M})]})})},f=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=c.settingsMode,p=c.setSettingsMode,_=x.idInserted,E=x.idLink,I=x.cartridge_name,O=x.stationTime;return(0,e.jsx)(r.az,{mb:1,children:(0,e.jsxs)(r.so,{align:"center",justify:"space-between",children:[!!_&&(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{icon:"eject",color:"transparent",onClick:function(){return h("Authenticate")},content:E})}),(0,e.jsx)(r.so.Item,{grow:1,textAlign:"center",bold:!0,children:O}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{selected:j,onClick:function(){return p(!j)},icon:"cog"}),(0,e.jsx)(r.$n,{onClick:function(){return h("Retro")},icon:"adjust"})]})]})})},v=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.idInserted,p=x.idLink,_=x.cartridge_name,E=x.touch_silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"R.E.T.R.O Mode",children:(0,e.jsx)(r.$n,{icon:"cog",content:"Retro Theme",onClick:function(){return h("Retro")}})}),(0,e.jsx)(r.Ki.Item,{label:"Touch Sounds",children:(0,e.jsx)(r.$n,{icon:"cog",selected:!E,content:E?"Disabled":"Enabled",onClick:function(){return h("TouchSounds")}})}),!!_&&(0,e.jsx)(r.Ki.Item,{label:"Cartridge",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return h("Eject")},content:_})}),!!j&&(0,e.jsx)(r.Ki.Item,{label:"ID Card",children:(0,e.jsx)(r.$n,{icon:"eject",onClick:function(){return h("Authenticate")},content:p})})]})})},l=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=c.setSettingsMode,p=x.app,_=x.useRetro;return(0,e.jsx)(r.az,{position:"fixed",bottom:"0%",left:"0%",right:"0%",backgroundColor:_?"#6f7961":"#1b1b1b",children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:p.has_back?"white":"disabled",textAlign:"center",icon:"undo",mb:0,fontSize:1.7,onClick:function(){return h("Back")}})}),(0,e.jsx)(r.so.Item,{basis:"33%",children:(0,e.jsx)(r.$n,{fluid:!0,color:"transparent",iconColor:p.is_home?"disabled":"white",textAlign:"center",icon:"home",mb:0,fontSize:1.7,onClick:function(){j(!1),h("Home")}})})]})})}},47676:function(S,y,t){"use strict";t.r(y),t.d(y,{PersonalCrafting:function(){return f}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905);function m(l,c){(c==null||c>l.length)&&(c=l.length);for(var u=0,h=new Array(c);u<c;u++)h[u]=l[u];return h}function b(){return b=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var u=arguments[c];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(l[h]=u[h])}return l},b.apply(this,arguments)}function g(l,c){if(l){if(typeof l=="string")return m(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(u);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return m(l,c)}}function d(l,c){var u=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=g(l))||c&&l&&typeof l.length=="number"){u&&(l=u);var h=0;return function(){return h>=l.length?{done:!0}:{done:!1,value:l[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f=function(l){for(var c,u=(0,n.Oc)(),h=u.act,x=u.data,j=x.busy,p=x.display_craftable_only,_=x.display_compact,E=x.crafting_recipes||{},I=[],O=[],M=d(Object.keys(E)),D;!(D=M()).done;){var A=D.value,B=E[A];if("has_subcats"in B){for(var U=d(Object.keys(B)),L;!(L=U()).done;){var k=L.value;if(k!=="has_subcats"){I.push({name:k,category:A,subcategory:k});for(var Y=B[k],V=d(Y),H;!(H=V()).done;){var N=H.value;O.push(b({},N,{category:k}))}}}continue}I.push({name:A,category:A});for(var q=E[A],G=d(q),Q;!(Q=G()).done;){var F=Q.value;O.push(b({},F,{category:A}))}}var Z=(0,a.useState)((c=I[0])==null?void 0:c.name),oe=Z[0],le=Z[1],ue=O.filter(function(he){return he.category===oe});return(0,e.jsx)(o.p8,{title:"Crafting Menu",width:700,height:800,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[!!j&&(0,e.jsxs)(r.Rr,{fontSize:"32px",children:[(0,e.jsx)(r.In,{name:"cog",spin:1})," Crafting..."]}),(0,e.jsx)(r.wn,{title:"Personal Crafting",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n.Checkbox,{content:"Compact",checked:_,onClick:function(){return h("toggle_compact")}}),(0,e.jsx)(r.$n.Checkbox,{content:"Craftable Only",checked:p,onClick:function(){return h("toggle_recipes")}})]}),children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.tU,{vertical:!0,children:I.map(function(he){return(0,e.jsx)(r.tU.Tab,{selected:he.name===oe,onClick:function(){le(he.name),h("set_category",{category:he.category,subcategory:he.subcategory})},children:he.name},he.name)})})}),(0,e.jsx)(r.so.Item,{grow:1,basis:0,children:(0,e.jsx)(v,{craftables:ue})})]})})]})})},v=function(l){var c=l.craftables,u=c===void 0?[]:c,h=(0,n.Oc)(),x=h.act,j=h.data,p=j.craftability,_=p===void 0?{}:p,E=j.display_compact,I=j.display_craftable_only;return u.map(function(O){return I&&!_[O.ref]?null:E?(0,e.jsx)(r.Ki.Item,{label:O.name,className:"candystripe",buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!_[O.ref],tooltip:O.tool_text&&"Tools needed: "+O.tool_text,tooltipPosition:"left",onClick:function(){return x("make",{recipe:O.ref})}}),children:O.req_text},O.name):(0,e.jsx)(r.wn,{title:O.name,level:2,buttons:(0,e.jsx)(r.$n,{icon:"cog",content:"Craft",disabled:!_[O.ref],onClick:function(){return x("make",{recipe:O.ref})}}),children:(0,e.jsxs)(r.Ki,{children:[!!O.req_text&&(0,e.jsx)(r.Ki.Item,{label:"Required",children:O.req_text}),!!O.catalyst_text&&(0,e.jsx)(r.Ki.Item,{label:"Catalyst",children:O.catalyst_text}),!!O.tool_text&&(0,e.jsx)(r.Ki.Item,{label:"Tools",children:O.tool_text})]})},O.name)})}},25116:function(S,y,t){"use strict";t.r(y),t.d(y,{PetrificationInterface:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m,b){var g=(0,a.Oc)(b),d=g.act,f=g.data,v=f.material,l=f.identifier,c=f.adjective,u=f.tint,h=f.t,x=f.able_to_unpetrify,j=f.discard_clothes,p=f.target,_=f.can_remote;return(0,e.jsx)(r.p8,{width:425,height:313,resizable:!0,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Interface",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identifier",children:(0,e.jsx)(n.$n,{fluid:!0,content:'Change Identifier: "'+l+'"',tooltip:"The identifier for the petrification. ie. 'A statue of (target)'",tooltipPosition:"top",onClick:function(){return d("set_option",{option:"identifier"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Material",children:(0,e.jsx)(n.$n,{fluid:!0,content:'Change Material: "'+v+'"',tooltip:'The material for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){return d("set_option",{option:"material"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Adjective",children:(0,e.jsx)(n.$n,{fluid:!0,content:'Change Adjective: "'+c+'"',tooltip:'The adjective for the petrification. ie. "(name)\'s skin rapidly (adjective) as they turn to (material)!"',tooltipPosition:"top",onClick:function(){return d("set_option",{option:"adjective"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Color",children:(0,e.jsx)(n.$n,{fluid:!0,content:"Change Color",backgroundColor:u,textColor:h?"#000000":"#ffffff",tooltip:"The color of the statue. Pure white is direct greyscale.",tooltipPosition:"top",onClick:function(){return d("set_option",{option:"tint"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Can Unpetrify",children:(0,e.jsx)(n.$n,{fluid:!0,content:x?"Yes":"No",selected:x,tooltip:"Whether or not the statue can be unpetrified. If yes, they will get a verb letting them turn back- if not, even if they're a gargoyle, it will be taken away. OOC Escape is always an option though.",tooltipPosition:"top",onClick:function(){return d("set_option",{option:"able_to_unpetrify"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Discard Clothes",children:(0,e.jsx)(n.$n,{fluid:!0,content:j?"Enabled":"Disabled",selected:j,tooltip:"Whether the target's clothing falls off before the petrification happens. (Clothes do not change color when petrified, and cannot be removed while being a statue)",tooltipPosition:"top",onClick:function(){return d("set_option",{option:"discard_clothes"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,content:p,onClick:function(){return d("set_option",{option:"target"})}})})]}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{ml:1,disabled:!_,content:"Petrify",tooltip:"Turn the target to "+v+". This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){return d("petrify")}}),(0,e.jsx)(n.$n,{mr:1,disabled:!_,content:"Create Remote",tooltip:"Create a remote that will petrify the target with the given options when the button is pressed. It must be within 4 tiles of the target when pressed to work.. This is meant for roleplay/scene purposes. Please don't abuse it.",tooltipPosition:"top",onClick:function(){return d("remote")}})]})})})}},75226:function(S,y,t){"use strict";t.r(y),t.d(y,{Photocopier:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(d){var f=(0,a.Oc)().data,v=f.isAI,l=f.has_toner,c=f.has_item;return(0,e.jsx)(r.p8,{title:"Photocopier",width:240,height:v?309:234,children:(0,e.jsxs)(r.p8.Content,{children:[l?(0,e.jsx)(m,{}):(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted toner cartridge."})}),c?(0,e.jsx)(b,{}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsx)(n.az,{color:"average",children:"No inserted item."})}),!!v&&(0,e.jsx)(g,{})]})})},m=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.max_toner,u=l.current_toner,h=c*.66,x=c*.33;return(0,e.jsx)(n.wn,{title:"Toner",children:(0,e.jsx)(n.z2,{ranges:{good:[h,c],average:[x,h],bad:[0,x]},value:u,minValue:0,maxValue:c})})},b=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.num_copies,u=l.has_enough_toner;return(0,e.jsxs)(n.wn,{title:"Options",children:[(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{mt:.4,width:11,color:"label",children:"Make copies:"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Q7,{animate:!0,width:2.6,height:1.65,step:1,stepPixelSize:8,minValue:1,maxValue:10,value:c,onDrag:function(h,x){return v("set_copies",{num_copies:x})}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{ml:.2,icon:"copy",textAlign:"center",onClick:function(){return v("make_copy")},children:"Copy"})})]}),(0,e.jsx)(n.$n,{mt:.5,textAlign:"center",icon:"reply",fluid:!0,onClick:function(){return v("remove")},children:"Remove item"})]})},g=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.can_AI_print;return(0,e.jsx)(n.wn,{title:"AI Options",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{fluid:!0,icon:"images",textAlign:"center",disabled:!c,onClick:function(){return v("ai_photo")},children:"Print photo from database"})})})}},23393:function(S,y,t){"use strict";t.r(y),t.d(y,{PipeDispenser:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62133),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.disposals,l=f.p_layer,c=f.pipe_layers,u=f.categories,h=u===void 0?[]:u,x=(0,a.Ul)("categoryName"),j=x[0],p=x[1],_=h.find(function(E){return E.cat_name===j})||h[0];return(0,e.jsx)(r.p8,{width:425,height:515,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!v&&(0,e.jsx)(n.wn,{title:"Layer",children:(0,e.jsx)(n.az,{children:Object.keys(c).map(function(E){return(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c[E]===l,content:E,onClick:function(){return d("p_layer",{p_layer:c[E]})}},E)})})}),(0,e.jsxs)(n.wn,{title:"Pipes",children:[(0,e.jsx)(n.tU,{children:h.map(function(E,I){return(0,e.jsx)(n.tU.Tab,{fluid:!0,icon:o.ICON_BY_CATEGORY_NAME[E.cat_name],selected:E.cat_name===_.cat_name,onClick:function(){return p(E.cat_name)},children:E.cat_name},E.cat_name)})}),_==null?void 0:_.recipes.map(function(E){return(0,e.jsx)(n.$n,{fluid:!0,ellipsis:!0,content:E.pipe_name,title:E.pipe_name,onClick:function(){return d("dispense_pipe",{ref:E.ref,bent:E.bent,category:_.cat_name})}},E.pipe_name)})]})]})})}},28165:function(S,y,t){"use strict";t.r(y),t.d(y,{PlantAnalyzer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)().data,d=250;return g.seed&&(d+=18*g.seed.trait_info.length),g.reagents&&g.reagents.length&&(d+=55,d+=20*g.reagents.length),(0,e.jsx)(r.p8,{width:400,height:d,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.no_seed,l=f.seed,c=f.reagents;return v?(0,e.jsx)(n.wn,{title:"Analyzer Unused",children:"You should go scan a plant! There is no data currently loaded."}):(0,e.jsxs)(n.wn,{title:"Plant Information",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"print",onClick:function(){return d("print")},children:"Print Report"}),(0,e.jsx)(n.$n,{icon:"window-close",color:"red",onClick:function(){return d("close")}})]}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Plant Name",children:[l.name,"#",l.uid]}),(0,e.jsx)(n.Ki.Item,{label:"Endurance",children:l.endurance}),(0,e.jsx)(n.Ki.Item,{label:"Yield",children:l.yield}),(0,e.jsx)(n.Ki.Item,{label:"Maturation Time",children:l.maturation_time}),(0,e.jsx)(n.Ki.Item,{label:"Production Time",children:l.production_time}),(0,e.jsx)(n.Ki.Item,{label:"Potency",children:l.potency})]}),c.length&&(0,e.jsx)(n.wn,{level:2,title:"Plant Reagents",children:(0,e.jsx)(n.Ki,{children:c.map(function(u){return(0,e.jsxs)(n.Ki.Item,{label:u.name,children:[u.volume," unit(s)."]},u.name)})})})||null,(0,e.jsx)(n.wn,{level:2,title:"Other Data",children:l.trait_info.map(function(u){return(0,e.jsx)(n.az,{color:"label",mb:.4,children:u},u)})})]})}},73304:function(S,y,t){"use strict";t.r(y),t.d(y,{PlayerNotes:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.device_theme,v=d.filter,l=d.pages,c=d.ckeys,u=function(h){return h()};return(0,e.jsx)(r.p8,{title:"Player Notes",theme:f,width:400,height:500,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Player notes",children:[(0,e.jsx)(n.$n,{icon:"filter",onClick:function(){return g("filter_player_notes")},children:"Apply Filter"}),(0,e.jsx)(n.$n,{icon:"sidebar",onClick:function(){return g("open_legacy_ui")},children:"Open Legacy UI"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.$n.Input,{content:"CKEY to Open",onCommit:function(h,x){return g("show_player_info",{name:x})}}),(0,e.jsx)(n.cG,{vertical:!0}),(0,e.jsx)(n.$n,{color:"green",content:v,onClick:function(){return g("clear_player_info_filter")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.XI,{children:c.map(function(h){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,color:"transparent",icon:"user",content:h.desc,onClick:function(){return g("show_player_info",{name:h.name})},children:h.name})})},h.name)})}),(0,e.jsx)(n.cG,{}),u(function(){for(var h=function(p){x.push((0,e.jsx)(n.$n,{onClick:function(){return g("set_page",{index:p})},children:p},p))},x=[],j=1;j<l;j++)h(j);return x})]})})})}},71184:function(S,y,t){"use strict";t.r(y),t.d(y,{PlayerNotesInfo:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.device_theme,v=d.age,l=d.ckey,c=d.entries;return(0,e.jsx)(r.p8,{title:"Info on "+l,theme:f,width:400,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Player age: "+v,children:(0,e.jsxs)(n.XI,{children:["This ckey has ",c.length," comments.",c.map(function(u,h){return(0,e.jsx)(n.XI.Row,{children:(0,e.jsxs)(n.XI.Cell,{collapsing:!1,children:[(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.az,{children:["Written by ",u.author," on"," ",(0,e.jsx)("span",{color:"blue",children:u.date}),(0,e.jsx)("br",{}),(0,e.jsxs)("span",{color:"green",children:['"',u.comment,'"']})]}),(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return g("remove_player_info",{ckey:l,index:h+1})},children:"Remove"})]})},u.comment)})]})}),(0,e.jsx)(n.$n,{icon:"comment",onClick:function(){return g("add_player_info",{ckey:l})},children:"Add Comment"})]})})}},17031:function(S,y,t){"use strict";t.r(y),t.d(y,{PointDefenseControl:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.id,v=d.turrets;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Fire Assist Mainframe: "+(f||"[no tag]"),children:v.length&&v.map(function(l){return(0,e.jsx)(n.wn,{title:l.id,buttons:(0,e.jsx)(n.$n,{selected:l.active,icon:"power-off",onClick:function(){return g("toggle_active",{target:l.ref})},children:l.active?"Online":"Offline"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Effective range",children:l.effective_range}),(0,e.jsx)(n.Ki.Item,{label:"Reaction wheel delay",children:l.reaction_wheel_delay}),(0,e.jsx)(n.Ki.Item,{label:"Recharge time",children:l.recharge_time})]})},l.id)})||(0,e.jsx)(n.az,{color:"bad",children:"Error: No weapon systems detected. Please check network connection."})})})})}},26228:function(S,y,t){"use strict";t.r(y),t.d(y,{PortableGenerator:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.fuel_stored/f.fuel_capacity,l=v>=.5&&"good"||v>.15&&"average"||"bad";return(0,e.jsx)(o.p8,{width:450,height:340,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[!f.anchored&&(0,e.jsx)(r.IC,{children:"Generator not anchored."}),(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power switch",children:(0,e.jsx)(r.$n,{icon:f.active?"power-off":"times",onClick:function(){return d("toggle_power")},selected:f.active,disabled:!f.ready_to_boot,children:f.active?"On":"Off"})}),(0,e.jsx)(r.Ki.Item,{label:"Fuel Type",buttons:f.fuel_stored>=1&&(0,e.jsx)(r.$n,{ml:1,icon:"eject",disabled:f.active,onClick:function(){return d("eject")},children:"Eject"}),children:(0,e.jsxs)(r.az,{color:l,children:[f.fuel_stored,"cm\xB3 ",f.sheet_name]})}),(0,e.jsx)(r.Ki.Item,{label:"Current fuel level",children:(0,e.jsxs)(r.z2,{value:f.fuel_stored/f.fuel_capacity,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[f.fuel_stored,"cm\xB3 / ",f.fuel_capacity,"cm\xB3"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Fuel Usage",children:[f.fuel_usage," cm\xB3/s"]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{value:f.temperature_current,maxValue:f.temperature_max+30,color:f.temperature_overheat?"bad":"good",children:[(0,a.LI)(f.temperature_current),"\xB0C"]})})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current output",color:f.unsafe_output?"bad":null,children:f.power_output}),(0,e.jsxs)(r.Ki.Item,{label:"Adjust output",children:[(0,e.jsx)(r.$n,{icon:"minus",onClick:function(){return d("lower_power")},children:f.power_generated}),(0,e.jsx)(r.$n,{icon:"plus",onClick:function(){return d("higher_power")},children:f.power_generated})]}),(0,e.jsx)(r.Ki.Item,{label:"Power available",children:(0,e.jsx)(r.az,{inline:!0,color:!f.connected&&"bad",children:f.connected?f.power_available:"Unconnected"})})]})})]})})}},60185:function(S,y,t){"use strict";t.r(y),t.d(y,{PortablePump:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62681),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.direction,l=f.target_pressure,c=f.default_pressure,u=f.min_pressure,h=f.max_pressure;return(0,e.jsx)(r.p8,{width:330,height:375,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Pump",buttons:(0,e.jsx)(n.$n,{icon:v?"sign-in-alt":"sign-out-alt",content:v?"In":"Out",selected:v,onClick:function(){return d("direction")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Output",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:u,maxValue:h,value:l,unit:"kPa",stepPixelSize:.3,onChange:function(x,j){return d("pressure",{pressure:j})}})}),(0,e.jsxs)(n.Ki.Item,{label:"Presets",children:[(0,e.jsx)(n.$n,{icon:"minus",disabled:l===u,onClick:function(){return d("pressure",{pressure:"min"})}}),(0,e.jsx)(n.$n,{icon:"sync",disabled:l===c,onClick:function(){return d("pressure",{pressure:"reset"})}}),(0,e.jsx)(n.$n,{icon:"plus",disabled:l===h,onClick:function(){return d("pressure",{pressure:"max"})}})]})]})})]})})}},38605:function(S,y,t){"use strict";t.r(y),t.d(y,{PortableScrubber:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62681),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.rate,l=f.minrate,c=f.maxrate;return(0,e.jsx)(r.p8,{width:320,height:350,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(o.PortableBasicInfo,{}),(0,e.jsx)(n.wn,{title:"Power Regulator",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Volume Rate",children:(0,e.jsx)(n.Ap,{mt:"0.4em",animated:!0,minValue:l,maxValue:c,value:v,unit:"L/s",onChange:function(u,h){return d("volume_adj",{vol:h})}})})})})]})})}},81537:function(S,y,t){"use strict";t.r(y),t.d(y,{PortableTurret:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.locked,v=d.on,l=d.lethal,c=d.lethal_is_configurable,u=d.targetting_is_configurable,h=d.check_weapons,x=d.neutralize_noaccess,j=d.neutralize_norecord,p=d.neutralize_criminals,_=d.neutralize_all,E=d.neutralize_nonsynth,I=d.neutralize_unidentified,O=d.neutralize_down;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(n.IC,{children:["Swipe an ID card to ",f?"unlock":"lock"," this interface."]}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,disabled:f,onClick:function(){return g("power")}})}),!!c&&(0,e.jsx)(n.Ki.Item,{label:"Lethals",children:(0,e.jsx)(n.$n,{icon:l?"exclamation-triangle":"times",content:l?"On":"Off",color:l?"bad":"",disabled:f,onClick:function(){return g("lethal")}})})]})}),!!u&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Humanoid Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:p,content:"Wanted Criminals",disabled:f,onClick:function(){return g("autharrest")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:j,content:"No Sec Record",disabled:f,onClick:function(){return g("authnorecord")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:h,content:"Unauthorized Weapons",disabled:f,onClick:function(){return g("authweapon")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:x,content:"Unauthorized Access",disabled:f,onClick:function(){return g("authaccess")}})]}),(0,e.jsxs)(n.wn,{title:"Other Targets",children:[(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:I,content:"Unidentified Lifesigns (Xenos, Animals, Etc)",disabled:f,onClick:function(){return g("authxeno")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:E,content:"All Non-Synthetics",disabled:f,onClick:function(){return g("authsynth")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:O,content:"Downed Targets",disabled:f,onClick:function(){return g("authdown")}}),(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:_,content:"All Entities",disabled:f,onClick:function(){return g("authall")}})]})]})]})})}},16421:function(S,y,t){"use strict";t.r(y),t.d(y,{AreaCharge:function(){return h},PowerMonitor:function(){return l},PowerMonitorContent:function(){return c},PowerMonitorFocus:function(){return u},powerRank:function(){return v}});var e=t(88095),a=t(11358),n=t(28763),r=t(5229),o=t(44583),m=t(4413),b=t(92514),g=t(84905);function d(){return d=Object.assign||function(j){for(var p=1;p<arguments.length;p++){var _=arguments[p];for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(j[E]=_[E])}return j},d.apply(this,arguments)}var f=5e5,v=function(j){var p=String(j.split(" ")[1]).toLowerCase();return["w","kw","mw","gw"].indexOf(p)},l=function(){return(0,e.jsx)(g.p8,{width:550,height:700,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(c,{})})})},c=function(j){var p=(0,m.Oc)(),_=p.act,E=p.data,I=E.map_levels,O=E.all_sensors,M=E.focus;if(M)return(0,e.jsx)(u,{focus:M});var D=(0,e.jsx)(b.az,{color:"bad",children:"No sensors detected"});return O&&(D=(0,e.jsx)(b.XI,{children:O.map(function(A){return(0,e.jsx)(b.XI.Row,{children:(0,e.jsx)(b.XI.Cell,{children:(0,e.jsx)(b.$n,{content:A.name,icon:A.alarm?"bell":"sign-in-alt",onClick:function(){return _("setsensor",{id:A.name})}})})},A.name)})})),(0,e.jsx)(b.wn,{title:"No active sensor. Listing all.",buttons:(0,e.jsx)(b.$n,{content:"Scan For Sensors",icon:"undo",onClick:function(){return _("refresh")}}),children:D})},u=function(j){var p,_=(0,m.Oc)(),E=_.act,I=_.data,O=j.focus,M=O.history,D=(0,o.useState)(null),A=D[0],B=D[1],U=M.supply[M.supply.length-1]||0,L=M.demand[M.demand.length-1]||0,k=M.supply.map(function(N,q){return[q,N]}),Y=M.demand.map(function(N,q){return[q,N]}),V=(p=Math).max.apply(p,[].concat([f],M.supply,M.demand)),H=(0,n.L)([(0,a.Tj)(function(N,q){return d({},N,{id:N.name+q})}),A==="name"&&(0,a.Ul)(function(N){return N.name}),A==="charge"&&(0,a.Ul)(function(N){return-N.charge}),A==="draw"&&(0,a.Ul)(function(N){return-v(N.load)},function(N){return-parseFloat(N.load)}),A==="problems"&&(0,a.Ul)(function(N){return N.eqp},function(N){return N.lgt},function(N){return N.env},function(N){return N.charge},function(N){return N.name})])(O.areas);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.wn,{title:O.name,buttons:(0,e.jsx)(b.$n,{icon:"sign-out-alt",content:"Back To Main",onClick:function(){return E("clear")}})}),(0,e.jsxs)(b.so,{mx:-.5,mb:1,children:[(0,e.jsx)(b.so.Item,{mx:.5,width:"200px",children:(0,e.jsx)(b.wn,{children:(0,e.jsxs)(b.Ki,{children:[(0,e.jsx)(b.Ki.Item,{label:"Supply",children:(0,e.jsx)(b.z2,{value:U,minValue:0,maxValue:V,color:"teal",children:(0,r.Mg)(U/1e3)+" kW"})}),(0,e.jsx)(b.Ki.Item,{label:"Draw",children:(0,e.jsx)(b.z2,{value:L,minValue:0,maxValue:V,color:"pink",children:(0,r.Mg)(L/1e3)+" kW"})})]})})}),(0,e.jsx)(b.so.Item,{mx:.5,grow:1,children:(0,e.jsxs)(b.wn,{position:"relative",height:"100%",children:[(0,e.jsx)(b.t1.Line,{fillPositionedParent:!0,data:k,rangeX:[0,k.length-1],rangeY:[0,V],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"}),(0,e.jsx)(b.t1.Line,{fillPositionedParent:!0,data:Y,rangeX:[0,Y.length-1],rangeY:[0,V],strokeColor:"rgba(224, 57, 151, 1)",fillColor:"rgba(224, 57, 151, 0.25)"})]})})]}),(0,e.jsxs)(b.wn,{children:[(0,e.jsxs)(b.az,{mb:1,children:[(0,e.jsx)(b.az,{inline:!0,mr:2,color:"label",children:"Sort by:"}),(0,e.jsx)(b.$n.Checkbox,{checked:A==="name",content:"Name",onClick:function(){return B(A!=="name"&&"name")}}),(0,e.jsx)(b.$n.Checkbox,{checked:A==="charge",content:"Charge",onClick:function(){return B(A!=="charge"&&"charge")}}),(0,e.jsx)(b.$n.Checkbox,{checked:A==="draw",content:"Draw",onClick:function(){return B(A!=="draw"&&"draw")}}),(0,e.jsx)(b.$n.Checkbox,{checked:A==="problems",content:"Problems",onClick:function(){return B(A!=="problems"&&"problems")}})]}),(0,e.jsxs)(b.XI,{children:[(0,e.jsxs)(b.XI.Row,{header:!0,children:[(0,e.jsx)(b.XI.Cell,{children:"Area"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,children:"Charge"}),(0,e.jsx)(b.XI.Cell,{textAlign:"right",children:"Draw"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,title:"Equipment",children:"Eqp"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,title:"Lighting",children:"Lgt"}),(0,e.jsx)(b.XI.Cell,{collapsing:!0,title:"Environment",children:"Env"})]}),H.map(function(N,q){return(0,e.jsxs)("tr",{className:"Table__row candystripe",children:[(0,e.jsx)("td",{children:N.name}),(0,e.jsx)("td",{className:"Table__cell text-right text-nowrap",children:(0,e.jsx)(h,{charging:N.charging,charge:N.charge})}),(0,e.jsx)("td",{className:"Table__cell text-right text-nowrap",children:N.load}),(0,e.jsx)("td",{className:"Table__cell text-center text-nowrap",children:(0,e.jsx)(x,{status:N.eqp})}),(0,e.jsx)("td",{className:"Table__cell text-center text-nowrap",children:(0,e.jsx)(x,{status:N.lgt})}),(0,e.jsx)("td",{className:"Table__cell text-center text-nowrap",children:(0,e.jsx)(x,{status:N.env})})]},N.id)})]})]})]})},h=function(j){var p=j.charging,_=j.charge;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b.In,{width:"18px",textAlign:"center",name:p===0&&(_>50?"battery-half":"battery-quarter")||p===1&&"bolt"||p===2&&"battery-full",color:p===0&&(_>50?"yellow":"red")||p===1&&"yellow"||p===2&&"green"}),(0,e.jsx)(b.az,{inline:!0,width:"36px",textAlign:"right",children:(0,r.Mg)(_)+"%"})]})},x=function(j){var p=j.status,_=!!(p&2),E=!!(p&1),I=(_?"On":"Off")+(" ["+(E?"auto":"manual")+"]");return(0,e.jsx)(b.BK,{color:_?"good":"bad",content:E?void 0:"M",title:I})}},98071:function(S,y,t){"use strict";t.r(y),t.d(y,{PrecisionEditor:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(d,f){var v=(0,a.Oc)(f),l=v.act,c=v.data,u=c.screenstate;return(0,e.jsx)(r.p8,{resizable:!0,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsxs)(n.wn,{title:"Seed status",children:[u==="main"&&(0,e.jsx)(m,{}),u==="colors"&&(0,e.jsx)(b,{}),u==="reagents"&&(0,e.jsx)(g,{})]})})})},m=function(d,f){var v=(0,a.Oc)(f),l=v.act,c=v.data,u=c.health,h=c.plantcolor,x=c.fruitcolor,j=c.chems,p=c.seedname;return(0,e.jsx)(n.Ki,{children:j?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:p}),u<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-u+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:h}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:x}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.Ki.Item,{label:"Chems produced in fruit (click to splice out)",children:j.map(function(_){return(0,e.jsx)(n.$n,{fluid:!0,content:_.displayname,onClick:function(){return l("prune",{gene_name:_.name})}},_.displayname)})}),(0,e.jsx)(n.$n,{content:"Edit Colors",onClick:function(){return l("change_focus",{window:"colors"})}}),(0,e.jsx)(n.$n,{content:"Add Reagents",onClick:function(){return l("change_focus",{window:"reagents"})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Eject Seed",onClick:function(){return l("eject")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no seed loaded."})})},b=function(d,f){var v=(0,a.Oc)(f),l=v.act,c=v.data,u=c.plantcolor,h=c.fruitcolor;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Plant Color",children:u}),(0,e.jsx)(n.BK,{color:u}),(0,e.jsx)(n.Ki.Item,{label:"Fruit Color",children:h}),(0,e.jsx)(n.BK,{color:h}),(0,e.jsx)(n.$n,{content:"Change plant color",onClick:function(){return l("change_color",{option:0})}}),(0,e.jsx)(n.$n,{content:"Change fruit color",onClick:function(){return l("change_color",{option:1})}}),(0,e.jsx)(n.Ki.Divider,{size:2}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return l("change_focus",{window:"main"})}})]})},g=function(d,f){var v=(0,a.Oc)(f),l=v.act,c=v.data,u=c.beakerchems,h=c.health;return(0,e.jsxs)(n.Ki,{children:[h<100?(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:100-h+"%"}):(0,e.jsx)(n.Ki.Item,{label:"Genetic Integrity",children:"UNVIABLE"}),(0,e.jsxs)(n.IC,{info:1,width:19,height:9,ml:1,children:["Available chems to choose are based on the reagents stored in the beaker. "," A minimum of 100 units of reagent is required to generate a viable sequence. ","The chosen reagent will be consumed in the process.",(0,e.jsx)(n.az,{bold:1,mt:1,children:"This process severely damages genetic integrity."})]}),(0,e.jsxs)(n.az,{width:20,opacity:.5,ml:1,mt:6,mb:2,children:["Plant will produce 1 additional unit for every 25 units beyond 100"," (modified by potency)"]}),u?(0,e.jsxs)(e.Fragment,{children:[h<100?(0,e.jsx)(n.Ki.Item,{label:"Available reagents",children:u.map(function(x){return(0,e.jsx)(n.$n,{fluid:!0,content:x.displayname,onClick:function(){return l("add_chem",{target_chem:x.name})}},x.displayname)})}):(0,e.jsx)(n.IC,{warning:1,children:"WARNING: Genetic integrity of seed is too poor to proceed."}),(0,e.jsx)(n.$n,{content:"Eject Beaker",onClick:function(){return l("eject_beaker")}})]}):(0,e.jsx)(n.Ki.Item,{label:"Waiting",children:"There is currently no beaker loaded."}),(0,e.jsx)(n.$n,{content:"Return",onClick:function(){return l("change_focus",{window:"main"})}})]})}},63054:function(S,y,t){"use strict";t.r(y),t.d(y,{PressureRegulator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.pressure_set,l=d.max_pressure,c=d.input_pressure,u=d.output_pressure,h=d.regulate_mode,x=d.set_flow_rate,j=d.last_flow_rate;return(0,e.jsx)(r.p8,{width:470,height:370,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Input Pressure",children:[(0,e.jsx)(n.zv,{value:c/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Output Pressure",children:[(0,e.jsx)(n.zv,{value:u/100})," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate",children:[(0,e.jsx)(n.zv,{value:j/10})," L/s"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",buttons:(0,e.jsx)(n.$n,{icon:"power-off",content:f?"Unlocked":"Closed",selected:f,onClick:function(){return g("toggle_valve")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure Regulation",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:"Off",selected:h===0,onClick:function(){return g("regulate_mode",{mode:"off"})}}),(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"Input",selected:h===1,onClick:function(){return g("regulate_mode",{mode:"input"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"Output",selected:h===2,onClick:function(){return g("regulate_mode",{mode:"output"})}})]})}),(0,e.jsxs)(n.Ki.Item,{label:"Desired Output Pressure",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return g("set_press",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return g("set_press",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return g("set_press",{press:"set"})}})]}),children:[v/100," kPa"]}),(0,e.jsxs)(n.Ki.Item,{label:"Flow Rate Limit",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"compress-arrows-alt",content:"MIN",onClick:function(){return g("set_flow_rate",{press:"min"})}}),(0,e.jsx)(n.$n,{icon:"expand-arrows-alt",content:"MAX",onClick:function(){return g("set_flow_rate",{press:"max"})}}),(0,e.jsx)(n.$n,{icon:"wrench",content:"SET",onClick:function(){return g("set_flow_rate",{press:"set"})}})]}),children:[x/10," L/s"]})]})})]})})}},21143:function(S,y,t){"use strict";t.r(y),t.d(y,{PrisonerManagement:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.locked,v=d.chemImplants,l=d.trackImplants;return(0,e.jsx)(r.p8,{width:500,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f&&(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:["This interface is currently locked.",(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",onClick:function(){return g("lock")},children:"Unlock"})})]})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Interface Lock",buttons:(0,e.jsx)(n.$n,{icon:"lock",onClick:function(){return g("lock")},children:"Lock Interface"})}),(0,e.jsx)(n.wn,{title:"Chemical Implants",children:v.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Units Remaining"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Inject"})]}),v.map(function(c){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:c.host}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[c.units,"u remaining"]}),(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[(0,e.jsx)(n.$n,{onClick:function(){return g("inject",{imp:c.ref,val:1})},children:"(1)"}),(0,e.jsx)(n.$n,{onClick:function(){return g("inject",{imp:c.ref,val:5})},children:"(5)"}),(0,e.jsx)(n.$n,{onClick:function(){return g("inject",{imp:c.ref,val:10})},children:"(10)"})]})]},c.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})}),(0,e.jsx)(n.wn,{title:"Tracking Implants",children:l.length&&(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Host"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Location"}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:"Message"})]}),l.map(function(c){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsxs)(n.XI.Cell,{textAlign:"center",children:[c.host," (",c.id,")"]}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:c.loc}),(0,e.jsx)(n.XI.Cell,{textAlign:"center",children:(0,e.jsx)(n.$n,{onClick:function(){return g("warn",{imp:c.ref})},children:"Message"})})]},c.ref)})]})||(0,e.jsx)(n.az,{color:"average",children:"No chemical implants found."})})]})})})}},72128:function(S,y,t){"use strict";t.r(y),t.d(y,{RCON:function(){return f},RCONContent:function(){return v}});var e=t(88095),a=t(5229),n=t(33854),r=t(44583),o=t(4413),m=t(92514),b=t(24158),g=t(84905),d=1e3,f=function(x){return(0,e.jsx)(g.p8,{width:630,height:540,children:(0,e.jsx)(g.p8.Content,{scrollable:!0,children:(0,e.jsx)(v,{})})})},v=function(x){var j=(0,r.useState)(0),p=j[0],_=j[1],E;return p===0?E=(0,e.jsx)(l,{}):p===1&&(E=(0,e.jsx)(h,{})),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(m.tU,{children:[(0,e.jsxs)(m.tU.Tab,{selected:p===0,onClick:function(){return _(0)},children:[(0,e.jsx)(m.In,{name:"power-off"})," SMESs"]},"SMESs"),(0,e.jsxs)(m.tU.Tab,{selected:p===1,onClick:function(){return _(1)},children:[(0,e.jsx)(m.In,{name:"bolt"})," Breakers"]},"Breakers")]}),(0,e.jsx)(m.az,{m:2,children:E})]})},l=function(x){var j=(0,o.Oc)(),p=j.act,_=j.data,E=_.smes_info,I=_.pages,O=_.current_page,M=function(D){return D()};return(0,e.jsxs)(m.wn,{title:"SMESs (Page "+O+")",children:[(0,e.jsx)(m.BJ,{vertical:!0,children:E.map(function(D){return(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(c,{smes:D})},D.RCON_tag)})}),"Page Selection:",(0,e.jsx)("br",{}),M(function(){for(var D=function(U){A.push((0,e.jsx)(m.$n,{selected:O===U,onClick:function(){return p("set_smes_page",{index:U})},children:U},U))},A=[],B=1;B<I;B++)D(B);return A})]})},c=function(x){var j=(0,o.Oc)().act,p=x.smes,_=p.capacityPercent,E=p.capacity,I=p.charge,O=p.inputAttempt,M=p.inputting,D=p.inputLevel,A=p.inputLevelMax,B=p.inputAvailable,U=p.outputAttempt,L=p.outputting,k=p.outputLevel,Y=p.outputLevelMax,V=p.outputUsed,H=p.RCON_tag;return(0,e.jsxs)(m.BJ,{vertical:!0,children:[(0,e.jsx)(m.BJ.Item,{children:(0,e.jsxs)(m.BJ,{fill:!0,justify:"space-between",children:[(0,e.jsx)(m.BJ.Item,{flexBasis:"40%",fontSize:1.2,children:H}),(0,e.jsx)(m.BJ.Item,{grow:1,children:(0,e.jsxs)(m.z2,{value:_*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,a.LI)(I/(1e3*60),1)," kWh /"," ",(0,a.LI)(E/(1e3*60))," kWh (",_,"%)"]})})]})}),(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(u,{smes:x.smes,way:"input"})}),(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(u,{smes:x.smes,way:"output"})}),(0,e.jsx)(m.BJ.Divider,{})]})},u=function(x){var j=(0,o.Oc)().act,p=x.way,_=x.smes,E=_.capacityPercent,I=_.capacity,O=_.charge,M=_.inputAttempt,D=_.inputting,A=_.inputLevel,B=_.inputLevelMax,U=_.inputAvailable,L=_.outputAttempt,k=_.outputting,Y=_.outputLevel,V=_.outputLevelMax,H=_.outputUsed,N=_.RCON_tag,q,G,Q,F,Z,oe,le,ue,he;switch(p){case"input":q=A,G=B,Q=U,F="IN",Z="smes_in_toggle",oe="smes_in_set",le=M,ue=M?D?"green":"yellow":null,he=M?D?"The SMES is drawing power.":"The SMES lacks power.":"The SMES input is off.";break;case"output":q=Y,G=V,Q=H,F="OUT",Z="smes_out_toggle",oe="smes_out_set",le=L,ue=L?k?"green":"yellow":null,he=L?k?"The SMES is outputting power.":"The SMES lacks any draw.":"The SMES output is off.";break}return(0,e.jsxs)(m.BJ,{fill:!0,children:[(0,e.jsx)(m.BJ.Item,{basis:"20%",children:(0,n.ZH)(p)}),(0,e.jsx)(m.BJ.Item,{grow:1,children:(0,e.jsxs)(m.BJ,{children:[(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(m.$n,{icon:"power-off",color:ue,tooltip:he,onClick:function(){return j(Z,{smes:N})}})}),(0,e.jsxs)(m.BJ.Item,{children:[(0,e.jsx)(m.$n,{icon:"fast-backward",disabled:q===0,onClick:function(){return j(oe,{target:"min",smes:N})}}),(0,e.jsx)(m.$n,{icon:"backward",disabled:q===0,onClick:function(){return j(oe,{adjust:-1e4,smes:N})}})]}),(0,e.jsx)(m.BJ.Item,{grow:1,children:(0,e.jsx)(m.Ap,{value:q/d,fillValue:Q/d,minValue:0,maxValue:G/d,step:5,stepPixelSize:4,format:function(de){return(0,b.d5)(Q,1)+"/"+(0,b.d5)(de*d,1)},onDrag:function(de,ve){return j(oe,{target:ve*d,smes:N})}})}),(0,e.jsxs)(m.BJ.Item,{children:[(0,e.jsx)(m.$n,{icon:"forward",disabled:q===G,onClick:function(){return j(oe,{adjust:1e4,smes:N})}}),(0,e.jsx)(m.$n,{icon:"fast-forward",disabled:q===G,onClick:function(){return j(oe,{target:"max",smes:N})}})]})]})})]})},h=function(x){var j=(0,o.Oc)(),p=j.act,_=j.data,E=_.breaker_info;return(0,e.jsx)(m.wn,{title:"Breakers",children:(0,e.jsx)(m.Ki,{children:E?E.map(function(I){return(0,e.jsx)(m.Ki.Item,{label:I.RCON_tag,buttons:(0,e.jsx)(m.$n,{icon:"power-off",content:I.enabled?"Enabled":"Disabled",selected:I.enabled,color:I.enabled?null:"bad",onClick:function(){return p("toggle_breaker",{breaker:I.RCON_tag})}})},I.RCON_tag)}):(0,e.jsx)(m.Ki.Item,{color:"bad",children:"No breakers detected."})})})}},37089:function(S,y,t){"use strict";t.r(y),t.d(y,{RIGSuit:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.interfacelock,h=c.malf,x=c.aicontrol,j=c.ai,p=null;return u||h?p=(0,e.jsx)(r.az,{color:"bad",children:"--HARDSUIT INTERFACE OFFLINE--"}):!j&&x&&(p=(0,e.jsx)(r.az,{color:"bad",children:"-- HARDSUIT CONTROL OVERRIDDEN BY AI --"})),(0,e.jsx)(o.p8,{height:480,width:550,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:p||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(g,{}),(0,e.jsx)(d,{})]})})})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.chargestatus,h=c.charge,x=c.maxcharge,j=c.aioverride,p=c.sealing,_=c.sealed,E=c.cooling,I=c.emagged,O=c.securitycheck,M=c.coverlock,D=(0,e.jsx)(r.$n,{content:"Suit "+(p?"seals working...":_?"is Active":"is Inactive"),icon:p?"redo":_?"power-off":"lock-open",iconSpin:p,disabled:p,selected:_,onClick:function(){return l("toggle_seals")}}),A=(0,e.jsx)(r.$n,{content:"Suit Cooling "+(E?"is Active":"is Inactive"),icon:"power-off",selected:E,onClick:function(){return l("toggle_cooling")}}),B=(0,e.jsx)(r.$n,{content:"AI Control "+(j?"Enabled":"Disabled"),selected:j,icon:"robot",onClick:function(){return l("toggle_ai_control")}});return(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[D,B,A]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power Supply",children:(0,e.jsxs)(r.z2,{minValue:0,maxValue:50,value:u,ranges:{good:[35,1/0],average:[15,35],bad:[-1/0,15]},children:[h," / ",x]})}),(0,e.jsx)(r.Ki.Item,{label:"Cover Status",children:I||!O?(0,e.jsx)(r.az,{color:"bad",children:"Error - Maintenance Lock Control Offline"}):(0,e.jsx)(r.$n,{icon:M?"lock":"lock-open",content:M?"Locked":"Unlocked",onClick:function(){return l("toggle_suit_lock")}})})]})})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.sealing,h=c.helmet,x=c.helmetDeployed,j=c.gauntlets,p=c.gauntletsDeployed,_=c.boots,E=c.bootsDeployed,I=c.chest,O=c.chestDeployed;return(0,e.jsx)(r.wn,{title:"Hardware",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Helmet",buttons:(0,e.jsx)(r.$n,{icon:x?"sign-out-alt":"sign-in-alt",content:x?"Deployed":"Deploy",disabled:u,selected:x,onClick:function(){return l("toggle_piece",{piece:"helmet"})}}),children:h?(0,a.ZH)(h):"ERROR"}),(0,e.jsx)(r.Ki.Item,{label:"Gauntlets",buttons:(0,e.jsx)(r.$n,{icon:p?"sign-out-alt":"sign-in-alt",content:p?"Deployed":"Deploy",disabled:u,selected:p,onClick:function(){return l("toggle_piece",{piece:"gauntlets"})}}),children:j?(0,a.ZH)(j):"ERROR"}),(0,e.jsx)(r.Ki.Item,{label:"Boots",buttons:(0,e.jsx)(r.$n,{icon:E?"sign-out-alt":"sign-in-alt",content:E?"Deployed":"Deploy",disabled:u,selected:E,onClick:function(){return l("toggle_piece",{piece:"boots"})}}),children:_?(0,a.ZH)(_):"ERROR"}),(0,e.jsx)(r.Ki.Item,{label:"Chestpiece",buttons:(0,e.jsx)(r.$n,{icon:O?"sign-out-alt":"sign-in-alt",content:O?"Deployed":"Deploy",disabled:u,selected:O,onClick:function(){return l("toggle_piece",{piece:"chest"})}}),children:I?(0,a.ZH)(I):"ERROR"})]})})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.sealed,h=c.sealing,x=c.primarysystem,j=c.modules;return!u||h?(0,e.jsx)(r.wn,{title:"Modules",children:(0,e.jsx)(r.az,{color:"bad",children:"HARDSUIT SYSTEMS OFFLINE"})}):(0,e.jsxs)(r.wn,{title:"Modules",children:[(0,e.jsxs)(r.az,{color:"label",mb:"0.2rem",fontSize:1.5,children:["Selected Primary: ",(0,a.ZH)(x||"None")]}),j&&j.map(function(p,_){return(0,e.jsxs)(r.wn,{level:2,title:(0,a.Sn)(p.name)+(p.damage?" (damaged)":""),buttons:(0,e.jsxs)(e.Fragment,{children:[p.can_select?(0,e.jsx)(r.$n,{selected:p.name===x,content:p.name===x?"Selected":"Select",icon:"arrow-circle-right",onClick:function(){return l("interact_module",{module:p.index,module_mode:"select"})}}):null,p.can_use?(0,e.jsx)(r.$n,{content:p.engagestring,icon:"arrow-circle-down",onClick:function(){return l("interact_module",{module:p.index,module_mode:"engage"})}}):null,p.can_toggle?(0,e.jsx)(r.$n,{selected:p.is_active,content:p.is_active?p.deactivatestring:p.activatestring,icon:"arrow-circle-down",onClick:function(){return l("interact_module",{module:p.index,module_mode:"toggle"})}}):null]}),children:[p.damage>=2?(0,e.jsx)(r.az,{color:"bad",children:"-- MODULE DESTROYED --"}):(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsxs)(r.so.Item,{grow:1,children:[(0,e.jsxs)(r.az,{color:"average",children:["Engage: ",p.engagecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Active: ",p.activecost]}),(0,e.jsxs)(r.az,{color:"average",children:["Passive: ",p.passivecost]})]}),(0,e.jsx)(r.so.Item,{grow:1,children:p.desc})]}),p.charges?(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.wn,{title:"Module Charges",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Selected",children:(0,a.ZH)(p.chargetype)}),p.charges.map(function(E,I){return(0,e.jsx)(r.Ki.Item,{label:(0,a.ZH)(E.caption),children:(0,e.jsx)(r.$n,{selected:p.realchargetype===E.index,icon:"arrow-right",onClick:function(){return l("interact_module",{module:p.index,module_mode:"select_charge_type",charge_type:E.index})}})},E.caption)})]})})}):null]},p.name)})]})}},51065:function(S,y,t){"use strict";t.r(y),t.d(y,{Radio:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(1568),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.rawfreq,c=v.minFrequency,u=v.maxFrequency,h=v.listening,x=v.broadcasting,j=v.subspace,p=v.subspaceSwitchable,_=v.chan_list,E=v.loudspeaker,I=v.mic_cut,O=v.spk_cut,M=v.useSyndMode,D=o.Fo.find(function(B){return B.freq===Number(l)}),A=156;return _&&_.length>0?A+=_.length*28+6:A+=24,p&&(A+=38),(0,e.jsx)(m.p8,{width:310,height:A,resizable:!0,theme:M?"syndicate":"",children:(0,e.jsxs)(m.p8.Content,{children:[(0,e.jsx)(r.wn,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Frequency",children:[(0,e.jsx)(r.Q7,{animated:!0,unit:"kHz",step:.2,stepPixelSize:10,minValue:c/10,maxValue:u/10,value:l/10,format:function(B){return(0,a.Mg)(B,1)},onDrag:function(B,U){return f("setFrequency",{freq:(0,a.LI)(U*10)})}}),D&&(0,e.jsxs)(r.az,{inline:!0,color:D.color,ml:2,children:["[",D.name,"]"]})]}),(0,e.jsxs)(r.Ki.Item,{label:"Audio",children:[(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:h?"volume-up":"volume-mute",selected:h,disabled:O,onClick:function(){return f("listen")}}),(0,e.jsx)(r.$n,{textAlign:"center",width:"37px",icon:x?"microphone":"microphone-slash",selected:x,disabled:I,onClick:function(){return f("broadcast")}}),!!p&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"bullhorn",selected:j,content:"Subspace Tx "+(j?"ON":"OFF"),onClick:function(){return f("subspace")}})}),!!p&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:E?"volume-up":"volume-mute",selected:E,content:"Loudspeaker",onClick:function(){return f("toggleLoudspeaker")}})})]})]})}),(0,e.jsxs)(r.wn,{title:"Channels",children:[(!_||_.length===0)&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"No channels detected."}),(0,e.jsx)(r.Ki,{children:_?_.map(function(B){var U=o.Fo.find(function(k){return k.freq===Number(B.freq)}),L="default";return U&&(L=U.color),(0,e.jsx)(r.Ki.Item,{label:B.display_name,labelColor:L,textAlign:"right",children:B.secure_channel&&j?(0,e.jsx)(r.$n,{icon:B.sec_channel_listen?"square-o":"check-square-o",selected:!B.sec_channel_listen,content:B.sec_channel_listen?"Off":"On",onClick:function(){return f("channel",{channel:B.chan})}}):(0,e.jsx)(r.$n,{content:"Switch",selected:B.chan===l,onClick:function(){return f("specFreq",{channel:B.chan})}})},B.chan)}):null})]})]})})}},62133:function(S,y,t){"use strict";t.r(y),t.d(y,{ICON_BY_CATEGORY_NAME:function(){return g},RapidPipeDispenser:function(){return c}});var e=t(88095),a=t(84352),n=t(33854),r=t(4413),o=t(92514),m=t(84905),b=["Atmospherics","Disposals"],g={Atmospherics:"wrench",Disposals:"trash-alt","Transit Tubes":"bus",Pipes:"grip-lines","Disposal Pipes":"grip-lines",Devices:"microchip","Heat Exchange":"thermometer-half","Insulated pipes":"snowflake","Station Equipment":"microchip"},d=[{name:"Dispense",bitmask:1},{name:"Connect",bitmask:2},{name:"Destroy",bitmask:4},{name:"Paint",bitmask:8}],f=function(u){var h=(0,r.Oc)(),x=h.act,j=h.data,p=j.category,_=j.selected_color,E=j.mode;return(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Category",children:b.map(function(I,O){return(0,e.jsx)(o.$n,{selected:p===O,icon:g[I],color:"transparent",onClick:function(){return x("category",{category:O})},children:I},I)})}),(0,e.jsx)(o.Ki.Item,{label:"Modes",children:(0,e.jsx)(o.BJ,{fill:!0,children:d.map(function(I){return(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(o.$n.Checkbox,{checked:E&I.bitmask,fluid:!0,content:I.name,onClick:function(){return x("mode",{mode:I.bitmask})}})},I.bitmask)})})}),(0,e.jsxs)(o.Ki.Item,{label:"Color",children:[(0,e.jsx)(o.az,{inline:!0,width:"64px",color:j.paint_colors[_],children:(0,n.ZH)(_)}),Object.keys(j.paint_colors).map(function(I){return(0,e.jsx)(o.BK,{ml:1,color:j.paint_colors[I],onClick:function(){return x("color",{paint_color:I})}},I)})]})]})})},v=function(u){var h=(0,r.Oc)(),x=h.act,j=h.data,p=j.category,_=j.piping_layer,E=j.pipe_layers,I=j.preview_rows.flatMap(function(O){return O.previews});return(0,e.jsxs)(o.wn,{fill:!0,width:7.5,children:[p===0&&(0,e.jsx)(o.BJ,{vertical:!0,mb:1,children:Object.keys(E).map(function(O){return(0,e.jsx)(o.BJ.Item,{my:0,children:(0,e.jsx)(o.$n.Checkbox,{checked:E[O]===_,content:O,onClick:function(){return x("piping_layer",{piping_layer:E[O]})}})},O)})}),(0,e.jsx)(o.az,{width:"120px",children:I.map(function(O){return(0,e.jsx)(o.$n,{ml:0,title:O.dir_name,selected:O.selected,style:{width:"40px",height:"40px",padding:0},onClick:function(){return x("setdir",{dir:O.dir,flipped:O.flipped})},children:(0,e.jsx)(o.az,{className:(0,a.Ly)(["pipes32x32",O.dir+"-"+O.icon_state]),style:{transform:"scale(1.5) translate(9.5%, 9.5%)"}})},O.dir)})})]})},l=function(u){var h=(0,r.Oc)(),x=h.act,j=h.data,p=j.categories,_=p===void 0?[]:p,E=(0,r.Ul)("categoryName"),I=E[0],O=E[1],M=_.find(function(D){return D.cat_name===I})||_[0];return(0,e.jsxs)(o.wn,{fill:!0,scrollable:!0,children:[(0,e.jsx)(o.tU,{children:_.map(function(D,A){return(0,e.jsx)(o.tU.Tab,{fluid:!0,icon:g[D.cat_name],selected:D.cat_name===M.cat_name,onClick:function(){return O(D.cat_name)},children:D.cat_name},D.cat_name)})}),M==null?void 0:M.recipes.map(function(D){return(0,e.jsx)(o.$n.Checkbox,{fluid:!0,ellipsis:!0,checked:D.selected,content:D.pipe_name,title:D.pipe_name,onClick:function(){return x("pipe_type",{pipe_type:D.pipe_index,category:M.cat_name})}},D.pipe_index)})]})},c=function(u){var h=(0,r.Oc)(),x=h.act,j=h.data,p=j.category;return(0,e.jsx)(m.p8,{width:550,height:570,children:(0,e.jsx)(m.p8.Content,{children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(f,{})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.BJ,{vertical:!0,fill:!0,children:(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(v,{})})})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{})})]})})]})})})}},53112:function(S,y,t){"use strict";t.r(y),t.d(y,{RequestConsole:function(){return B}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=0,b=1,g=2,d=3,f=4,v=5,l=6,c=7,u=8,h=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.silent;return(0,e.jsx)(r.wn,{title:"Settings",children:(0,e.jsxs)(r.$n,{selected:!V,icon:V?"volume-mute":"volume-up",onClick:function(){return k("toggleSilent")},children:["Speaker ",V?"OFF":"ON"]})})},x=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.department,H=Y.supply_dept;return(0,e.jsx)(r.wn,{title:"Supplies",children:(0,e.jsx)(_,{dept_list:H,department:V})})},j=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.department,H=Y.assist_dept;return(0,e.jsx)(r.wn,{title:"Request assistance from another department",children:(0,e.jsx)(_,{dept_list:H,department:V})})},p=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.department,H=Y.info_dept;return(0,e.jsx)(r.wn,{title:"Report Anonymous Information",children:(0,e.jsx)(_,{dept_list:H,department:V})})},_=function(U){var L=(0,n.Oc)().act,k=U.dept_list,Y=U.department;return(0,e.jsx)(r.Ki,{children:k.sort().map(function(V){return V!==Y&&(0,e.jsx)(r.Ki.Item,{label:V,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"envelope-open-text",onClick:function(){return L("write",{write:V,priority:1})},children:"Message"}),(0,e.jsx)(r.$n,{icon:"exclamation-triangle",onClick:function(){return L("write",{write:V,priority:2})},children:"High Priority"})]})})||null})})},E=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:2,color:"good",children:"Message Sent Successfully"}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:m})},children:"Continue"})})]})},I=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data;return(0,e.jsxs)(r.wn,{children:[(0,e.jsx)(r.az,{fontSize:1.5,bold:!0,color:"bad",children:"An error occured. Message Not Sent."}),(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"arrow-right",onClick:function(){return k("setScreen",{setScreen:m})},children:"Continue"})})]})},O=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.message_log;return(0,e.jsx)(r.wn,{title:"Messages",children:V.length&&V.map(function(H,N){return(0,e.jsx)(r.Ki.Item,{label:(0,a.jT)(H[0]),buttons:(0,e.jsx)(r.$n,{icon:"print",onClick:function(){return k("print",{print:N+1})},children:"Print"}),children:(0,a.jT)(H[1])},N)})||(0,e.jsx)(r.az,{children:"No messages."})})},M=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.message,H=Y.recipient,N=Y.priority,q=Y.msgStamped,G=Y.msgVerified;return(0,e.jsxs)(r.wn,{title:"Message Authentication",children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Message for "+H,children:V}),(0,e.jsx)(r.Ki.Item,{label:"Priority",children:N===2?"High Priority":N===1?"Normal Priority":"Unknown"}),(0,e.jsx)(r.Ki.Item,{label:"Validated By",color:G?"good":"bad",children:(0,a.jT)(G)||"No Validation"}),(0,e.jsx)(r.Ki.Item,{label:"Stamped By",color:q?"good":"bad",children:(0,a.jT)(q)||"No Stamp"})]}),(0,e.jsx)(r.$n,{mt:1,icon:"share",onClick:function(){return k("department",{department:H})},children:"Send Message"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:m})},children:"Back"})]})},D=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.department,H=Y.screen,N=Y.message_log,q=Y.newmessagepriority,G=Y.silent,Q=Y.announcementConsole,F=Y.assist_dept,Z=Y.supply_dept,oe=Y.info_dept,le=Y.message,ue=Y.recipient,he=Y.priority,de=Y.msgStamped,ve=Y.msgVerified,pe=Y.announceAuth;return(0,e.jsxs)(r.wn,{title:"Send Station-Wide Announcement",children:[pe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{bold:!0,color:"good",mb:1,children:"ID Verified. Authentication Accepted."}),(0,e.jsx)(r.wn,{title:"Message",mt:1,maxHeight:"200px",scrollable:!0,buttons:(0,e.jsx)(r.$n,{ml:1,icon:"pen",onClick:function(){return k("writeAnnouncement")},children:"Edit"}),children:le||"No Message"})]})||(0,e.jsx)(r.az,{bold:!0,color:"bad",mb:1,children:"Swipe your ID card to authenticate yourself."}),(0,e.jsx)(r.$n,{disabled:!le||!pe,icon:"share",onClick:function(){return k("sendAnnouncement")},children:"Announce"}),(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return k("setScreen",{setScreen:m})},children:"Back"})]})},A={};A[m]=h,A[b]=j,A[g]=x,A[d]=p,A[f]=E,A[v]=I,A[l]=O,A[c]=M,A[u]=D;var B=function(U){var L=(0,n.Oc)(),k=L.act,Y=L.data,V=Y.screen,H=Y.newmessagepriority,N=Y.announcementConsole,q=A[V];return(0,e.jsx)(o.p8,{width:520,height:410,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:V===l,onClick:function(){return k("setScreen",{setScreen:l})},icon:"envelope-open-text",children:"Messages"}),(0,e.jsx)(r.tU.Tab,{selected:V===b,onClick:function(){return k("setScreen",{setScreen:b})},icon:"share-square",children:"Assistance"}),(0,e.jsx)(r.tU.Tab,{selected:V===g,onClick:function(){return k("setScreen",{setScreen:g})},icon:"share-square",children:"Supplies"}),(0,e.jsx)(r.tU.Tab,{selected:V===d,onClick:function(){return k("setScreen",{setScreen:d})},icon:"share-square-o",children:"Report"}),N&&(0,e.jsx)(r.tU.Tab,{selected:V===u,onClick:function(){return k("setScreen",{setScreen:u})},icon:"volume-up",children:"Announce"})||null,(0,e.jsx)(r.tU.Tab,{selected:V===m,onClick:function(){return k("setScreen",{setScreen:m})},icon:"cog"})]}),H&&(0,e.jsx)(r.wn,{title:H>1?"NEW PRIORITY MESSAGES":"There are new messages!",color:H>1?"bad":"average",bold:H>1})||null,(0,e.jsx)(q,{})]})})}},51634:function(S,y,t){"use strict";t.r(y),t.d(y,{ResearchConsole:function(){return _}});var e=t(88095),a=t(33854),n=t(44583),r=t(4413),o=t(92514),m=t(84905),b=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.tech;return(0,e.jsx)(o.wn,{title:"Current Research Levels",buttons:(0,e.jsx)(o.$n,{icon:"print",onClick:function(){return O("print",{print:1})},children:"Print This Page"}),children:(0,e.jsx)(o.XI,{children:D.map(function(A){return(0,e.jsxs)(o.XI.Row,{children:[(0,e.jsxs)(o.XI.Cell,{children:[(0,e.jsx)(o.az,{color:"label",children:A.name}),(0,e.jsxs)(o.az,{children:[" - Level ",A.level]})]}),(0,e.jsx)(o.XI.Cell,{children:(0,e.jsx)(o.az,{color:"label",children:A.desc})})]},A.name)})})})},g=function(E){var I=(0,r.Oc)().data,O=E.title,M=E.target,D=I[M];return typeof D=="number"?O+" - Page "+(D+1):O},d=function(E){var I=(0,r.Oc)().act,O=E.target;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"undo",onClick:function(){return I(O,{reset:!0})}}),(0,e.jsx)(o.$n,{icon:"chevron-left",onClick:function(){return I(O,{reverse:-1})}}),(0,e.jsx)(o.$n,{icon:"chevron-right",onClick:function(){return I(O,{reverse:1})}})]})},f=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.designs;return(0,e.jsxs)(o.wn,{title:(0,e.jsx)(g,{title:"Researched Technologies & Designs",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"print",onClick:function(){return O("print",{print:2})},children:"Print This Page"}),(0,e.jsx)(d,{target:"design_page"})||null]}),children:[(0,e.jsx)(o.pd,{fluid:!0,placeholder:"Search for...",value:M.search,onInput:function(A,B){return O("search",{search:B})},mb:1}),D&&D.length&&(0,e.jsx)(o.Ki,{children:D.map(function(A){return(0,e.jsx)(o.Ki.Item,{label:A.name,children:A.desc},A.name)})})||(0,e.jsx)(o.az,{color:"warning",children:"No designs found."})]})},v=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.tech,A=E.disk;if(!A||!A.present)return null;var B=(0,r.QY)("saveDialogTech",!1),U=B[0],L=B[1];return U?(0,e.jsx)(o.wn,{title:"Load Technology to Disk",buttons:(0,e.jsx)(o.$n,{icon:"arrow-left",content:"Back",onClick:function(){return L(!1)}}),children:(0,e.jsx)(o.Ki,{children:D.map(function(k){return(0,e.jsx)(o.Ki.Item,{label:k.name,children:(0,e.jsx)(o.$n,{icon:"save",onClick:function(){L(!1),O("copy_tech",{copy_tech_ID:k.id})},children:"Copy To Disk"})},k.name)})})}):(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Disk Contents",children:"(Technology Data Disk)"})}),A.stored&&(0,e.jsxs)(o.az,{mt:2,children:[(0,e.jsx)(o.az,{children:A.name}),(0,e.jsxs)(o.az,{children:["Level: ",A.level]}),(0,e.jsxs)(o.az,{children:["Description: ",A.desc]}),(0,e.jsxs)(o.az,{mt:1,children:[(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return O("updt_tech")},children:"Upload to Database"}),(0,e.jsx)(o.$n,{icon:"trash",onClick:function(){return O("clear_tech")},children:"Clear Disk"}),(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return O("eject_tech")},children:"Eject Disk"})]})]})||(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.az,{children:"This disk has no data stored on it."}),(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return L(!0)},children:"Load Tech To Disk"}),(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return O("eject_tech")},children:"Eject Disk"})]})]})},l=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.designs,A=E.disk;if(!A||!A.present)return null;var B=(0,r.QY)("saveDialogData",!1),U=B[0],L=B[1];return U?(0,e.jsxs)(o.wn,{title:(0,e.jsx)(g,{title:"Load Design to Disk",target:"design_page"}),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"arrow-left",content:"Back",onClick:function(){return L(!1)}}),(0,e.jsx)(d,{target:"design_page"})||null]}),children:[(0,e.jsx)(o.pd,{fluid:!0,placeholder:"Search for...",value:M.search,onInput:function(k,Y){return O("search",{search:Y})},mb:1}),D&&D.length&&(0,e.jsx)(o.Ki,{children:D.map(function(k){return(0,e.jsx)(o.Ki.Item,{label:k.name,children:(0,e.jsx)(o.$n,{icon:"save",onClick:function(){L(!1),O("copy_design",{copy_design_ID:k.id})},children:"Copy To Disk"})},k.name)})})||(0,e.jsx)(o.az,{color:"warning",children:"No designs found."})]}):(0,e.jsx)(o.az,{children:A.stored&&(0,e.jsxs)(o.az,{children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:A.name}),(0,e.jsx)(o.Ki.Item,{label:"Lathe Type",children:A.build_type}),(0,e.jsx)(o.Ki.Item,{label:"Required Materials",children:Object.keys(A.materials).map(function(k){return(0,e.jsxs)(o.az,{children:[k," x ",A.materials[k]]},k)})})]}),(0,e.jsxs)(o.az,{mt:1,children:[(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return O("updt_design")},children:"Upload to Database"}),(0,e.jsx)(o.$n,{icon:"trash",onClick:function(){return O("clear_design")},children:"Clear Disk"}),(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return O("eject_design")},children:"Eject Disk"})]})]})||(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.az,{mb:.5,children:"This disk has no data stored on it."}),(0,e.jsx)(o.$n,{icon:"save",onClick:function(){return L(!0)},children:"Load Design To Disk"}),(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return O("eject_design")},children:"Eject Disk"})]})})},c=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.info,A=D.d_disk,B=D.t_disk;return!A.present&&!B.present?(0,e.jsx)(o.wn,{title:"Disk Operations",children:"No disk inserted."}):(0,e.jsxs)(o.wn,{title:"Disk Operations",children:[(0,e.jsx)(v,{disk:B}),(0,e.jsx)(l,{disk:A})]})},u=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.info.linked_destroy;if(!D.present)return(0,e.jsx)(o.wn,{title:"Destructive Analyzer",children:"No destructive analyzer found."});var A=D.loaded_item,B=D.origin_tech;return(0,e.jsx)(o.wn,{title:"Destructive Analyzer",children:A&&(0,e.jsxs)(o.az,{children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:A}),(0,e.jsx)(o.Ki.Item,{label:"Origin Tech",children:(0,e.jsx)(o.Ki,{children:B.length&&B.map(function(U){return(0,e.jsxs)(o.Ki.Item,{label:U.name,children:[U.level,"\xA0\xA0",U.current&&"(Current: "+U.current+")"]},U.name)})||(0,e.jsx)(o.Ki.Item,{label:"Error",children:"No origin tech found."})})})]}),(0,e.jsx)(o.$n,{mt:1,color:"red",icon:"eraser",onClick:function(){return O("deconstruct")},children:"Deconstruct Item"}),(0,e.jsx)(o.$n,{icon:"eject",onClick:function(){return O("eject_item")},children:"Eject Item"})]})||(0,e.jsx)(o.az,{children:"No Item Loaded. Standing-by..."})})},h=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=E.target,A=E.designs,B=E.buildName,U=E.buildFiveName;return D?(0,e.jsxs)(o.wn,{title:(0,e.jsx)(g,{target:"builder_page",title:"Designs"}),buttons:(0,e.jsx)(d,{target:"builder_page"}),children:[(0,e.jsx)(o.pd,{fluid:!0,placeholder:"Search for...",value:M.search,onInput:function(L,k){return O("search",{search:k})},mb:1}),A&&A.length?A.map(function(L){return(0,e.jsxs)(n.Fragment,{children:[(0,e.jsxs)(o.so,{width:"100%",justify:"space-between",children:[(0,e.jsx)(o.so.Item,{width:"40%",style:{"word-wrap":"break-all"},children:L.name}),(0,e.jsxs)(o.so.Item,{width:"15%",textAlign:"center",children:[(0,e.jsx)(o.$n,{mb:-1,icon:"wrench",onClick:function(){return O(B,{build:L.id,imprint:L.id})},children:"Build"}),U&&(0,e.jsx)(o.$n,{mb:-1,onClick:function(){return O(U,{build:L.id,imprint:L.id})},children:"x5"})]}),(0,e.jsxs)(o.so.Item,{width:"45%",style:{"word-wrap":"break-all"},children:[(0,e.jsx)(o.az,{inline:!0,color:"label",children:L.mat_list.join(" ")}),(0,e.jsx)(o.az,{inline:!0,color:"average",ml:1,children:L.chem_list.join(" ")})]})]}),(0,e.jsx)(o.cG,{})]},L.id)}):(0,e.jsx)(o.az,{children:"No items could be found matching the parameters (page or search)."})]}):(0,e.jsx)(o.az,{color:"bad",children:"Error"})},x=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=E.name,A=null,B=null;if(D==="Protolathe"?(A=M.info.linked_lathe,B=M.lathe_designs):(A=M.info.linked_imprinter,B=M.imprinter_designs),!A||!A.present)return(0,e.jsxs)(o.wn,{title:D,children:["No ",D," found."]});var U=A.total_materials,L=A.max_materials,k=A.total_volume,Y=A.max_volume,V=A.busy,H=A.mats,N=A.reagents,q=A.queue,G=(0,r.QY)("protoTab",0),Q=G[0],F=G[1],Z="transparent",oe=!1,le="layer-group";V?(le="hammer",Z="average",oe=!0):q&&q.length&&(le="sync",Z="green",oe=!0);var ue=D==="Protolathe"?"removeP":"removeI",he=D==="Protolathe"?"lathe_ejectsheet":"imprinter_ejectsheet",de=D==="Protolathe"?"disposeP":"disposeI",ve=D==="Protolathe"?"disposeallP":"disposeallI";return(0,e.jsxs)(o.wn,{title:D,buttons:V&&(0,e.jsx)(o.In,{name:"sync",spin:!0})||null,children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Materials",children:(0,e.jsxs)(o.z2,{value:U,maxValue:L,children:[U," cm\xB3 / ",L," cm\xB3"]})}),(0,e.jsx)(o.Ki.Item,{label:"Chemicals",children:(0,e.jsxs)(o.z2,{value:k,maxValue:Y,children:[k,"u / ",Y,"u"]})})]}),(0,e.jsxs)(o.tU,{mt:1,children:[(0,e.jsx)(o.tU.Tab,{icon:"wrench",selected:Q===0,onClick:function(){return F(0)},children:"Build"}),(0,e.jsx)(o.tU.Tab,{icon:le,iconSpin:oe,color:Z,selected:Q===1,onClick:function(){return F(1)},children:"Queue"}),(0,e.jsx)(o.tU.Tab,{icon:"cookie-bite",selected:Q===2,onClick:function(){return F(2)},children:"Mat Storage"}),(0,e.jsx)(o.tU.Tab,{icon:"flask",selected:Q===3,onClick:function(){return F(3)},children:"Chem Storage"})]}),Q===0&&(0,e.jsx)(h,{target:A,designs:B,buildName:D==="Protolathe"?"build":"imprint",buildFiveName:D==="Protolathe"?"buildfive":null})||Q===1&&(0,e.jsx)(o.Ki,{children:q.length&&q.map(function(pe,be){return pe.index===1?(0,e.jsx)(o.Ki.Item,{label:pe.name,labelColor:"bad",children:V?(0,e.jsx)(o.$n,{disabled:!0,icon:"trash",children:"Remove"}):(0,e.jsxs)(o.az,{children:["(Awaiting Materials)",(0,e.jsx)(o.$n,{ml:1,icon:"trash",onClick:function(){var ye;return O(ue,(ye={},ye[ue]=pe.index,ye))},children:"Remove"})]})},be):(0,e.jsx)(o.Ki.Item,{label:pe.name,children:(0,e.jsx)(o.$n,{icon:"trash",onClick:function(){var ye;return O(ue,(ye={},ye[ue]=pe.index,ye))},children:"Remove"})},pe.name)})||(0,e.jsx)(o.az,{m:1,children:"Queue Empty."})})||Q===2&&(0,e.jsx)(o.Ki,{children:H.map(function(pe){var be=(0,r.Ul)("ejectAmt"+pe.name,0),ye=be[0],Te=be[1];return(0,e.jsxs)(o.Ki.Item,{label:(0,a.Sn)(pe.name),buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Q7,{minValue:0,width:"100px",value:ye,maxValue:pe.sheets,onDrag:function(Ke,$e){return Te($e)}}),(0,e.jsx)(o.$n,{icon:"eject",disabled:!pe.removable,onClick:function(){Te(0);var Ke;O(he,(Ke={},Ke[he]=pe.name,Ke.amount=ye,Ke))},children:"Num"}),(0,e.jsx)(o.$n,{icon:"eject",disabled:!pe.removable,onClick:function(){var Ke;return O(he,(Ke={},Ke[he]=pe.name,Ke.amount=50,Ke))},children:"All"})]}),children:[pe.amount," cm\xB3"]},pe.name)})})||Q===3&&(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.Ki,{children:N.length&&N.map(function(pe){return(0,e.jsxs)(o.Ki.Item,{label:pe.name,children:[pe.volume,"u",(0,e.jsx)(o.$n,{ml:1,icon:"eject",onClick:function(){return O(de,{dispose:pe.id})},children:"Purge"})]},pe.name)})||(0,e.jsx)(o.Ki.Item,{label:"Empty",children:"No chems detected"})}),(0,e.jsx)(o.$n,{mt:1,icon:"trash",onClick:function(){return O(ve)},children:"Disposal All Chemicals In Storage"})]})||(0,e.jsx)(o.az,{children:"Error"})]})},j=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.info,A=D.sync,B=D.linked_destroy,U=D.linked_imprinter,L=D.linked_lathe,k=(0,r.QY)("settingsTab",0),Y=k[0],V=k[1];return(0,e.jsxs)(o.wn,{title:"Settings",children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{icon:"cogs",onClick:function(){return V(0)},selected:Y===0,children:"General"}),(0,e.jsx)(o.tU.Tab,{icon:"link",onClick:function(){return V(1)},selected:Y===1,children:"Device Linkages"})]}),Y===0&&(0,e.jsxs)(o.az,{children:[A&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{fluid:!0,icon:"sync",onClick:function(){return O("sync")},children:"Sync Database with Network"}),(0,e.jsx)(o.$n,{fluid:!0,icon:"unlink",onClick:function(){return O("togglesync")},children:"Disconnect from Research Network"})]})||(0,e.jsx)(o.$n,{fluid:!0,icon:"link",onClick:function(){return O("togglesync")},children:"Connect to Research Network"}),(0,e.jsx)(o.$n,{fluid:!0,icon:"lock",onClick:function(){return O("lock")},children:"Lock Console"}),(0,e.jsx)(o.$n,{fluid:!0,color:"red",icon:"trash",onClick:function(){return O("reset")},children:"Reset R&D Database"})]})||Y===1&&(0,e.jsxs)(o.az,{children:[(0,e.jsx)(o.$n,{fluid:!0,icon:"sync",mb:1,onClick:function(){return O("find_device")},children:"Re-sync with Nearby Devices"}),(0,e.jsxs)(o.Ki,{children:[B.present&&(0,e.jsx)(o.Ki.Item,{label:"Destructive Analyzer",children:(0,e.jsx)(o.$n,{icon:"unlink",onClick:function(){return O("disconnect",{disconnect:"destroy"})},children:"Disconnect"})})||null,L.present&&(0,e.jsx)(o.Ki.Item,{label:"Protolathe",children:(0,e.jsx)(o.$n,{icon:"unlink",onClick:function(){return O("disconnect",{disconnect:"lathe"})},children:"Disconnect"})})||null,U.present&&(0,e.jsx)(o.Ki.Item,{label:"Circuit Imprinter",children:(0,e.jsx)(o.$n,{icon:"unlink",onClick:function(){return O("disconnect",{disconnect:"imprinter"})},children:"Disconnect"})})||null]})]})||(0,e.jsx)(o.az,{children:"Error"})]})},p=[{name:"Protolathe",icon:"wrench",template:(0,e.jsx)(x,{name:"Protolathe"})},{name:"Circuit Imprinter",icon:"digital-tachograph",template:(0,e.jsx)(x,{name:"Circuit Imprinter"})},{name:"Destructive Analyzer",icon:"eraser",template:(0,e.jsx)(u,{})},{name:"Settings",icon:"cog",template:(0,e.jsx)(j,{})},{name:"Research List",icon:"flask",template:(0,e.jsx)(b,{})},{name:"Design List",icon:"file",template:(0,e.jsx)(f,{})},{name:"Disk Operations",icon:"save",template:(0,e.jsx)(c,{})}],_=function(E){var I=(0,r.Oc)(),O=I.act,M=I.data,D=M.busy_msg,A=M.locked,B=(0,r.QY)("rdmenu",0),U=B[0],L=B[1],k=!1;return(D||A)&&(k=!0),(0,e.jsx)(m.p8,{width:850,height:630,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.tU,{children:p.map(function(Y,V){return(0,e.jsx)(o.tU.Tab,{icon:Y.icon,selected:U===V,disabled:k,onClick:function(){return L(V)},children:Y.name},V)})}),D&&(0,e.jsx)(o.wn,{title:"Processing...",children:D})||A&&(0,e.jsx)(o.wn,{title:"Console Locked",children:(0,e.jsx)(o.$n,{onClick:function(){return O("lock")},icon:"lock-open",children:"Unlock"})})||p[U].template]})})}},98296:function(S,y,t){"use strict";t.r(y),t.d(y,{ResearchServerController:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data;return(0,e.jsx)(o.p8,{width:575,height:430,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsx)(b,{})})})},b=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=h.badmin,j=h.servers,p=h.consoles,_=(0,n.QY)("selectedServer",null),E=_[0],I=_[1],O=j.find(function(M){return M.id===E});return O?(0,e.jsx)(g,{setSelectedServer:I,server:O}):(0,e.jsx)(r.wn,{title:"Server Selection",children:j.map(function(M){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return I(M.id)},children:M.name})},M.name)})})},g=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=h.badmin,j=l.server,p=l.setSelectedServer,_=(0,n.QY)("tab",0),E=_[0],I=_[1];return(0,e.jsxs)(r.wn,{title:j.name,buttons:(0,e.jsx)(r.$n,{icon:"undo",onClick:function(){return p(null)},children:"Back"}),children:[(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:E===0,onClick:function(){return I(0)},children:"Access Rights"}),(0,e.jsx)(r.tU.Tab,{selected:E===1,onClick:function(){return I(1)},children:"Data Management"}),x&&(0,e.jsx)(r.tU.Tab,{selected:E===2,onClick:function(){return I(2)},color:"red",children:"Server-to-Server Transfer"})||null]}),E===0&&(0,e.jsx)(d,{server:j})||null,E===1&&(0,e.jsx)(f,{server:j})||null,E===2&&x&&(0,e.jsx)(v,{server:j})||null]})},d=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=l.server,j=h.consoles,p=function(E,I){return E.id_with_upload.indexOf(I.id)!==-1},_=function(E,I){return E.id_with_download.indexOf(I.id)!==-1};return(0,e.jsx)(r.wn,{level:2,title:"Consoles",children:(0,e.jsx)(r.Ki,{children:j.length&&j.map(function(E){return(0,e.jsxs)(r.Ki.Item,{label:E.name+" ("+E.loc+")",children:[(0,e.jsx)(r.$n,{icon:p(x,E)?"lock-open":"lock",selected:p(x,E),onClick:function(){return u("toggle_upload",{server:x.ref,console:E.ref})},children:p(x,E)?"Upload On":"Upload Off"}),(0,e.jsx)(r.$n,{icon:_(x,E)?"lock-open":"lock",selected:_(x,E),onClick:function(){return u("toggle_download",{server:x.ref,console:E.ref})},children:_(x,E)?"Download On":"Download Off"})]},E.name)})})})},f=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=l.server;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{level:2,title:"Research Levels",children:x.tech.map(function(j){return(0,e.jsx)(r.Ki.Item,{label:j.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Reset",onClick:function(){return u("reset_tech",{server:x.ref,tech:j.id})}})},j.name)})}),(0,e.jsx)(r.wn,{level:2,title:"Designs",children:(0,a.pb)(function(j){return!!j.name})(x.designs).map(function(j){return(0,e.jsx)(r.Ki.Item,{label:j.name,buttons:(0,e.jsx)(r.$n.Confirm,{icon:"trash",confirmIcon:"trash",color:"red",content:"Delete",onClick:function(){return u("reset_design",{server:x.ref,design:j.id})}})},j.name)})})]})},v=function(l){var c=(0,n.Oc)(),u=c.act,h=c.data,x=l.server,j=h.badmin,p=h.servers;return j?(0,e.jsx)(r.wn,{level:2,title:"Server Data Transfer",children:p.map(function(_){return(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n.Confirm,{fluid:!0,color:"bad",content:(0,e.jsxs)(r.az,{children:["Transfer from ",x.name," To ",_.name]}),onClick:function(){return u("transfer_data",{server:x.ref,target:_.ref})}})},_.name)})}):null}},65477:function(S,y,t){"use strict";t.r(y),t.d(y,{ResleevingConsole:function(){return c}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(5425),m=t(84905);function b(){return b=Object.assign||function(A){for(var B=1;B<arguments.length;B++){var U=arguments[B];for(var L in U)Object.prototype.hasOwnProperty.call(U,L)&&(A[L]=U[L])}return A},b.apply(this,arguments)}var g=1,d=2,f=3,v=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=A.args,Y=k.activerecord,V=k.realname,H=k.obviously_dead,N=k.oocnotes,q=k.can_sleeve_active;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",pb:"1rem",title:"Mind Record ("+V+")",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return U("modal_close")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:V}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:H}),(0,e.jsxs)(r.Ki.Item,{label:"Actions",children:[(0,e.jsx)(r.$n,{disabled:!q,icon:"user-plus",content:"Sleeve",onClick:function(){return U("sleeve",{ref:Y,mode:1})}}),(0,e.jsx)(r.$n,{icon:"user-plus",content:"Card",onClick:function(){return U("sleeve",{ref:Y,mode:2})}})]}),(0,e.jsx)(r.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(r.wn,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:N})})]})})},l=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=A.args,Y=k.activerecord,V=k.realname,H=k.species,N=k.sex,q=k.mind_compat,G=k.synthetic,Q=k.oocnotes,F=k.can_grow_active;return(0,e.jsx)(r.wn,{level:2,m:"-1rem",pb:"1rem",title:"Body Record ("+V+")",buttons:(0,e.jsx)(r.$n,{icon:"times",color:"red",onClick:function(){return U("modal_close")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:V}),(0,e.jsx)(r.Ki.Item,{label:"Species",children:H}),(0,e.jsx)(r.Ki.Item,{label:"Bio. Sex",children:N}),(0,e.jsx)(r.Ki.Item,{label:"Mind Compat",children:q}),(0,e.jsx)(r.Ki.Item,{label:"Synthetic",children:G?"Yes":"No"}),(0,e.jsx)(r.Ki.Item,{label:"OOC Notes",children:(0,e.jsx)(r.wn,{style:{"word-break":"break-all",height:"100px"},scrollable:!0,children:Q})}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)(r.$n,{disabled:!F,icon:"user-plus",content:G?"Build":"Grow",onClick:function(){return U("create",{ref:Y})}})})]})})},c=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.menu,Y=L.coredumped,V=L.emergency,H=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(M,{}),(0,e.jsx)(D,{}),(0,e.jsx)(u,{}),(0,e.jsx)(r.wn,{noTopPadding:!0,flexGrow:"1",children:(0,e.jsx)(h,{})})]});return Y&&(H=(0,e.jsx)(x,{})),V&&(H=(0,e.jsx)(j,{})),(0,o.modalRegisterBodyOverride)("view_b_rec",l),(0,o.modalRegisterBodyOverride)("view_m_rec",v),(0,e.jsxs)(m.p8,{width:640,height:520,children:[(0,e.jsx)(o.ComplexModal,{maxWidth:"75%",maxHeight:"75%"}),(0,e.jsx)(m.p8.Content,{className:"Layout__content--flexColumn",children:H})]})},u=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.menu;return(0,e.jsxs)(r.tU,{children:[(0,e.jsx)(r.tU.Tab,{selected:k===g,icon:"home",onClick:function(){return U("menu",{num:g})},children:"Main"}),(0,e.jsx)(r.tU.Tab,{selected:k===d,icon:"folder",onClick:function(){return U("menu",{num:d})},children:"Body Records"}),(0,e.jsx)(r.tU.Tab,{selected:k===f,icon:"folder",onClick:function(){return U("menu",{num:f})},children:"Mind Records"})]})},h=function(A){var B=(0,n.Oc)().data,U=B.menu,L=B.bodyrecords,k=B.mindrecords,Y;return U===g?Y=(0,e.jsx)(p,{}):U===d?Y=(0,e.jsx)(O,{records:L,actToDo:"view_b_rec"}):U===f&&(Y=(0,e.jsx)(O,{records:k,actToDo:"view_m_rec"})),Y},x=function(A){return(0,e.jsx)(r.Rr,{children:(0,e.jsxs)(r.so,{direction:"column",justify:"space-evenly",align:"center",children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.In,{size:12,color:"bad",name:"exclamation-triangle"})}),(0,e.jsx)(r.so.Item,{grow:1,color:"bad",mt:5,children:(0,e.jsx)("h2",{children:"TransCore dump completed. Resleeving offline."})})]})})},j=function(A){var B=(0,n.Oc)().act;return(0,e.jsxs)(r.Rr,{textAlign:"center",children:[(0,e.jsx)(r.az,{color:"bad",children:(0,e.jsx)("h1",{children:"TRANSCORE DUMP"})}),(0,e.jsx)(r.az,{color:"bad",children:(0,e.jsx)("h2",{children:"!!WARNING!!"})}),(0,e.jsx)(r.az,{color:"bad",children:"This will transfer all minds to the dump disk, and the TransCore will be made unusable until post-shift maintenance! This should only be used in emergencies!"}),(0,e.jsx)(r.az,{mt:4,children:(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Disk",color:"good",onClick:function(){return B("ejectdisk")}})}),(0,e.jsx)(r.az,{mt:4,children:(0,e.jsx)(r.$n.Confirm,{icon:"exclamation-triangle",confirmIcon:"exclamation-triangle",content:"Core Dump",confirmContent:"Disable Transcore?",color:"bad",onClick:function(){return B("coredump")}})})]})},p=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.loading,Y=L.scantemp,V=L.occupant,H=L.locked,N=L.can_brainscan,q=L.scan_mode,G=L.pods,Q=L.selected_pod,F=H&&!!V;return(0,e.jsxs)(r.wn,{title:"Pods",level:"2",children:[(0,e.jsx)(_,{}),(0,e.jsx)(I,{}),(0,e.jsx)(E,{})]})},_=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.pods,Y=L.spods,V=L.selected_pod;return k&&k.length?k.map(function(H,N){var q;return H.status==="cloning"?q=(0,e.jsx)(r.z2,{min:"0",max:"100",value:H.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,a.LI)(H.progress,0)+"%"})}):H.status==="mess"?q=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):q=(0,e.jsx)(r.$n,{selected:V===H.pod,icon:V===H.pod&&"check",content:"Select",mt:Y&&Y.length?"2rem":"0.5rem",onClick:function(){return U("selectpod",{ref:H.pod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"pod_"+H.status+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:H.name}),(0,e.jsxs)(r.az,{bold:!0,color:H.biomass>=150?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:H.biomass>=150?"circle":"circle-o"}),"\xA0",H.biomass]}),q]},N)}):null},E=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.sleevers,Y=L.spods,V=L.selected_sleever;return k&&k.length?k.map(function(H,N){return(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"sleeve_"+(H.occupied?"occupied":"empty")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:H.occupied?"label":"bad",children:H.name}),(0,e.jsx)(r.$n,{selected:V===H.sleever,icon:V===H.sleever&&"check",content:"Select",mt:Y&&Y.length?"3rem":"1.5rem",onClick:function(){return U("selectsleever",{ref:H.sleever})}})]},N)}):null},I=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.spods,Y=L.selected_printer;return k&&k.length?k.map(function(V,H){var N;return V.status==="cloning"?N=(0,e.jsx)(r.z2,{min:"0",max:"100",value:V.progress/100,ranges:{good:[.75,1/0],average:[.25,.75],bad:[-1/0,.25]},mt:"0.5rem",children:(0,e.jsx)(r.az,{textAlign:"center",children:(0,a.LI)(V.progress,0)+"%"})}):V.status==="mess"?N=(0,e.jsx)(r.az,{bold:!0,color:"bad",mt:"0.5rem",children:"ERROR"}):N=(0,e.jsx)(r.$n,{selected:Y===V.spod,icon:Y===V.spod&&"check",content:"Select",mt:"0.5rem",onClick:function(){return U("selectprinter",{ref:V.spod})}}),(0,e.jsxs)(r.az,{width:"64px",textAlign:"center",display:"inline-block",mr:"0.5rem",children:[(0,e.jsx)("img",{src:"synthprinter"+(V.busy?"_working":"")+".gif",style:{width:"100%","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)(r.az,{color:"label",children:V.name}),(0,e.jsxs)(r.az,{bold:!0,color:V.steel>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:V.steel>=15e3?"circle":"circle-o"}),"\xA0",V.steel]}),(0,e.jsxs)(r.az,{bold:!0,color:V.glass>=15e3?"good":"bad",inline:!0,children:[(0,e.jsx)(r.In,{name:V.glass>=15e3?"circle":"circle-o"}),"\xA0",V.glass]}),N]},H)}):null},O=function(A){var B=(0,n.Oc)().act,U=A.records,L=A.actToDo;return U.length?(0,e.jsx)(r.az,{mt:"0.5rem",children:U.map(function(k,Y){return(0,e.jsx)(r.$n,{icon:"user",mb:"0.5rem",content:k.name,onClick:function(){return B(L,{ref:k.recref})}},Y)})}):(0,e.jsx)(r.so,{height:"100%",mt:"0.5rem",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No records found."]})})},M=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.temp;if(!(!k||!k.text||k.text.length<=0)){var Y,V=(Y={},Y[k.style]=!0,Y);return(0,e.jsxs)(r.IC,b({},V,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:k.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return U("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}},D=function(A){var B=(0,n.Oc)(),U=B.act,L=B.data,k=L.pods,Y=L.spods,V=L.sleevers,H=L.autoallowed,N=L.autoprocess,q=L.disk;return(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Pods",children:k&&k.length?(0,e.jsxs)(r.az,{color:"good",children:[k.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"SynthFabs",children:Y&&Y.length?(0,e.jsxs)(r.az,{color:"good",children:[Y.length," connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})}),(0,e.jsx)(r.Ki.Item,{label:"Sleevers",children:V&&V.length?(0,e.jsxs)(r.az,{color:"good",children:[V.length," Connected"]}):(0,e.jsx)(r.az,{color:"bad",children:"None connected!"})})]})})}},26967:function(S,y,t){"use strict";t.r(y),t.d(y,{ResleevingPod:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)().data,g=b.occupied,d=b.name,f=b.health,v=b.maxHealth,l=b.stat,c=b.mindStatus,u=b.mindName,h=b.resleeveSick,x=b.initialSick;return(0,e.jsx)(r.p8,{width:300,height:350,resizeable:!0,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Occupant",children:g?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:d}),(0,e.jsx)(n.Ki.Item,{label:"Health",children:l===2?(0,e.jsx)(n.az,{color:"bad",children:"DEAD"}):l===1?(0,e.jsx)(n.az,{color:"average",children:"Unconscious"}):(0,e.jsxs)(n.z2,{ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},value:f/v,children:[f,"%"]})}),(0,e.jsx)(n.Ki.Item,{label:"Mind Status",children:c?"Present":"Missing"}),c?(0,e.jsx)(n.Ki.Item,{label:"Mind Occupying",children:u}):""]}),h?(0,e.jsxs)(n.az,{color:"average",mt:3,children:["Warning: Resleeving Sickness detected.",x?(0,e.jsxs)(e.Fragment,{children:[" ","Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected."]}):""]}):""]}):(0,e.jsx)(n.az,{bold:!0,m:1,children:"Unoccupied."})})})})}},74367:function(S,y,t){"use strict";t.r(y),t.d(y,{RoboticsControlConsole:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.can_hack,l=f.safety,c=f.show_detonate_all,u=f.cyborgs,h=u===void 0?[]:u;return(0,e.jsx)(r.p8,{width:500,height:460,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[!!c&&(0,e.jsxs)(n.wn,{title:"Emergency Self Destruct",children:[(0,e.jsx)(n.$n,{icon:l?"lock":"unlock",content:l?"Disable Safety":"Enable Safety",selected:l,onClick:function(){return d("arm",{})}}),(0,e.jsx)(n.$n,{icon:"bomb",disabled:l,content:"Destroy ALL Cyborgs",color:"bad",onClick:function(){return d("nuke",{})}})]}),(0,e.jsx)(m,{cyborgs:h,can_hack:v})]})})},m=function(b){var g=b.cyborgs,d=b.can_hack,f=(0,a.Oc)(),v=f.act,l=f.data;return g.length?g.map(function(c){return(0,e.jsx)(n.wn,{title:c.name,buttons:(0,e.jsxs)(e.Fragment,{children:[!!c.hackable&&!c.emagged&&(0,e.jsx)(n.$n,{icon:"terminal",content:"Hack",color:"bad",onClick:function(){return v("hackbot",{ref:c.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:c.locked_down?"unlock":"lock",color:c.locked_down?"good":"default",content:c.locked_down?"Release":"Lockdown",disabled:!l.auth,onClick:function(){return v("stopbot",{ref:c.ref})}}),(0,e.jsx)(n.$n.Confirm,{icon:"bomb",content:"Detonate",disabled:!l.auth,color:"bad",onClick:function(){return v("killbot",{ref:c.ref})}})]}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:(0,e.jsx)(n.az,{color:c.status?"bad":c.locked_down?"average":"good",children:c.status?"Not Responding":c.locked_down?"Locked Down":"Nominal"})}),(0,e.jsx)(n.Ki.Item,{label:"Location",children:(0,e.jsx)(n.az,{children:c.locstring})}),(0,e.jsx)(n.Ki.Item,{label:"Integrity",children:(0,e.jsx)(n.z2,{color:c.health>50?"good":"bad",value:c.health/100})}),typeof c.charge=="number"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsx)(n.z2,{color:c.charge>30?"good":"bad",value:c.charge/100})}),(0,e.jsx)(n.Ki.Item,{label:"Cell Capacity",children:(0,e.jsx)(n.az,{color:c.cell_capacity<3e4?"average":"good",children:c.cell_capacity})})]})||(0,e.jsx)(n.Ki.Item,{label:"Cell",children:(0,e.jsx)(n.az,{color:"bad",children:"No Power Cell"})}),!!c.is_hacked&&(0,e.jsx)(n.Ki.Item,{label:"Safeties",children:(0,e.jsx)(n.az,{color:"bad",children:"DISABLED"})}),(0,e.jsx)(n.Ki.Item,{label:"Module",children:c.module}),(0,e.jsx)(n.Ki.Item,{label:"Master AI",children:(0,e.jsx)(n.az,{color:c.synchronization?"default":"average",children:c.synchronization||"None"})})]})},c.ref)}):(0,e.jsx)(n.IC,{children:"No cyborg units detected within access parameters."})}},35401:function(S,y,t){"use strict";t.r(y),t.d(y,{RogueZones:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.timeout_percent,v=d.diffstep,l=d.difficulty,c=d.occupied,u=d.scanning,h=d.updated,x=d.debug,j=d.shuttle_location,p=d.shuttle_at_station,_=d.scan_ready,E=d.can_recall_shuttle;return(0,e.jsx)(r.p8,{width:360,height:250,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Current Area",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Mineral Content",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Shuttle Location",buttons:E&&(0,e.jsx)(n.$n,{color:"bad",icon:"rocket",onClick:function(){return g("recall_shuttle")},children:"Recall Shuttle"})||null,children:j}),c&&(0,e.jsxs)(n.Ki.Item,{color:"bad",labelColor:"bad",label:"Personnel",children:["WARNING: Area occupied by ",c," personnel!"]})||(0,e.jsx)(n.Ki.Item,{label:"Personnel",color:"good",children:"No personnel detected."})]})}),(0,e.jsx)(n.wn,{title:"Scanner",buttons:(0,e.jsx)(n.$n,{disabled:!_,fluid:!0,icon:"search",onClick:function(){return g("scan_for_new")},children:"Scan For Asteroids"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Scn Ramestat Core",children:(0,e.jsx)(n.z2,{value:f,maxValue:100,ranges:{good:[100,1/0],average:[75,100],bad:[-1/0,75]}})}),u&&(0,e.jsx)(n.Ki.Item,{label:"Scanning",children:"In progress."})||null,h&&!u&&(0,e.jsx)(n.Ki.Item,{label:"Info",children:"Updated shuttle destination!"})||null,x&&(0,e.jsxs)(n.Ki.Item,{label:"Debug",labelColor:"bad",children:[(0,e.jsxs)(n.az,{children:["Timeout Percent: ",f]}),(0,e.jsxs)(n.az,{children:["Diffstep: ",v]}),(0,e.jsxs)(n.az,{children:["Difficulty: ",l]}),(0,e.jsxs)(n.az,{children:["Occupied: ",c]}),(0,e.jsxs)(n.az,{children:["Debug: ",x]}),(0,e.jsxs)(n.az,{children:["Shuttle Location: ",j]}),(0,e.jsxs)(n.az,{children:["Shuttle at station: ",p]}),(0,e.jsxs)(n.az,{children:["Scan Ready: ",_]})]})||null]})})]})})}},45653:function(S,y,t){"use strict";t.r(y),t.d(y,{RustCoreMonitor:function(){return o},RustCoreMonitorContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.cores;return(0,e.jsx)(n.wn,{title:"Cores",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Field Status"}),(0,e.jsx)(n.XI.Cell,{children:"Reactant Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Field Instability"}),(0,e.jsx)(n.XI.Cell,{children:"Field Temperature"}),(0,e.jsx)(n.XI.Cell,{children:"Field Strength"}),(0,e.jsx)(n.XI.Cell,{children:"Plasma Content"})]}),v.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:l.name}),(0,e.jsxs)(n.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:l.has_field?"Online":"Offline",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return d("toggle_active",{core:l.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:l.reactant_dump?"Dump":"Maintain",selected:l.has_field,disabled:!l.core_operational,onClick:function(){return d("toggle_reactantdump",{core:l.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:l.field_instability}),(0,e.jsx)(n.XI.Cell,{children:l.field_temperature}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.N6,{forcedInputWidth:"60px",size:1.25,color:!!l.has_field&&"yellow",value:l.target_field_strength,unit:"(W.m^-3)",minValue:1,maxValue:1e3,stepPixelSize:1,onDrag:function(c,u){return d("set_fieldstr",{core:l.ref,fieldstr:u})}})}),(0,e.jsx)(n.XI.Cell,{})]},l.name)})]})})}},39899:function(S,y,t){"use strict";t.r(y),t.d(y,{RustFuelContent:function(){return m},RustFuelControl:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.fuels;return(0,e.jsx)(n.wn,{title:"Fuel Injectors",buttons:(0,e.jsx)(n.$n,{icon:"pencil-alt",content:"Set Tag",onClick:function(){return d("set_tag")}}),children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Status"}),(0,e.jsx)(n.XI.Cell,{children:"Remaining Fuel"}),(0,e.jsx)(n.XI.Cell,{children:"Fuel Rod Composition"})]}),v.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:l.name}),(0,e.jsxs)(n.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"power-off",content:l.active?"Online":"Offline",selected:l.active,disabled:!l.deployed,onClick:function(){return d("toggle_active",{fuel:l.ref})}})}),(0,e.jsx)(n.XI.Cell,{children:l.fuel_amt}),(0,e.jsx)(n.XI.Cell,{children:l.fuel_type})]},l.name)})]})})}},19208:function(S,y,t){"use strict";t.r(y),t.d(y,{Secbot:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.on,v=d.open,l=d.locked,c=d.idcheck,u=d.check_records,h=d.check_arrest,x=d.arrest_type,j=d.declare_arrests,p=d.bot_patrolling,_=d.patrol;return(0,e.jsx)(r.p8,{width:390,height:320,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Automatic Security Unit v2.0",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:f,onClick:function(){return g("power")},children:f?"On":"Off"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Maintenance Panel",color:v?"bad":"good",children:v?"Open":"Closed"}),(0,e.jsx)(n.Ki.Item,{label:"Behavior Controls",color:l?"good":"bad",children:l?"Locked":"Unlocked"})]})}),!l&&(0,e.jsx)(n.wn,{title:"Behavior Controls",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Check for Weapon Authorization",children:(0,e.jsx)(n.$n,{icon:c?"toggle-on":"toggle-off",selected:c,onClick:function(){return g("idcheck")},children:c?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Security Records",children:(0,e.jsx)(n.$n,{icon:u?"toggle-on":"toggle-off",selected:u,onClick:function(){return g("ignorerec")},children:u?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Check Arrest Status",children:(0,e.jsx)(n.$n,{icon:h?"toggle-on":"toggle-off",selected:h,onClick:function(){return g("ignorearr")},children:h?"Yes":"No"})}),(0,e.jsx)(n.Ki.Item,{label:"Operating Mode",children:(0,e.jsx)(n.$n,{icon:x?"toggle-on":"toggle-off",selected:x,onClick:function(){return g("switchmode")},children:x?"Detain":"Arrest"})}),(0,e.jsx)(n.Ki.Item,{label:"Report Arrests",children:(0,e.jsx)(n.$n,{icon:j?"toggle-on":"toggle-off",selected:j,onClick:function(){return g("declarearrests")},children:j?"Yes":"No"})}),!!p&&(0,e.jsx)(n.Ki.Item,{label:"Auto Patrol",children:(0,e.jsx)(n.$n,{icon:_?"toggle-on":"toggle-off",selected:_,onClick:function(){return g("patrol")},children:_?"Yes":"No"})})]})})||null]})})}},46226:function(S,y,t){"use strict";t.r(y),t.d(y,{SecureSafe:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=[["1","4","7","R"],["2","5","8","0"],["3","6","9","E"]],l=f.locked,c=f.l_setshort,u=f.code,h=f.emagged;return(0,e.jsx)(n.az,{width:"185px",children:(0,e.jsx)(n.xA,{width:"1px",children:v.map(function(x){return(0,e.jsx)(n.xA.Column,{children:x.map(function(j){return(0,e.jsx)(n.$n,{fluid:!0,bold:!0,mb:"6px",content:j,textAlign:"center",fontSize:"40px",height:"50px",lineHeight:1.25,disabled:!!h||!!c&&1||j!=="R"&&!l||u==="ERROR"&&j!=="R"&&1,onClick:function(){return d("type",{digit:j})}},j)})},x[0])})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.code,l=f.l_setshort,c=f.l_set,u=f.emagged,h=f.locked,x=!(c||l);return(0,e.jsx)(r.p8,{width:250,height:380,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.az,{m:"6px",children:[x&&(0,e.jsx)(n.IC,{textAlign:"center",info:1,children:"ENTER NEW 5-DIGIT PASSCODE."}),!!u&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"LOCKING SYSTEM ERROR - 1701"}),!!l&&(0,e.jsx)(n.IC,{textAlign:"center",danger:1,children:"ALERT: MEMORY SYSTEM ERROR - 6040 201"}),(0,e.jsx)(n.wn,{height:"60px",children:(0,e.jsx)(n.az,{textAlign:"center",position:"center",fontSize:"35px",children:v&&v||(0,e.jsx)(n.az,{textColor:h?"red":"green",children:h?"LOCKED":"UNLOCKED"})})}),(0,e.jsxs)(n.so,{ml:"3px",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(o,{})}),(0,e.jsx)(n.so.Item,{ml:"6px",width:"129px"})]})]})})})}},34200:function(S,y,t){"use strict";t.r(y),t.d(y,{SecurityRecords:function(){return f}});var e=t(88095),a=t(4413),n=t(92514),r=t(5425),o=t(84905),m=t(71451),b=t(1887),g=t(82489),d=function(j){(0,r.modalOpen)("edit",{field:j.edit,value:j.value})},f=function(j){var p=(0,a.Oc)().data,_=p.authenticated,E=p.screen;if(!_)return(0,e.jsx)(o.p8,{width:700,height:680,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(b.LoginScreen,{})})});var I;return E===2?I=(0,e.jsx)(v,{}):E===3?I=(0,e.jsx)(l,{}):E===4&&(I=(0,e.jsx)(c,{})),(0,e.jsxs)(o.p8,{width:700,height:680,children:[(0,e.jsx)(r.ComplexModal,{maxHeight:"100%",maxWidth:"400px"}),(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(m.LoginInfo,{}),(0,e.jsx)(g.TemporaryNotice,{}),(0,e.jsx)(x,{}),(0,e.jsx)(n.wn,{flexGrow:!0,children:I})]})]})},v=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=E.records;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.pd,{fluid:!0,placeholder:"Search by Name, DNA, or ID",onChange:function(O,M){return _("search",{t1:M})}}),(0,e.jsx)(n.az,{mt:"0.5rem",children:I.map(function(O,M){return(0,e.jsx)(n.$n,{icon:"user",mb:"0.5rem",color:O.color,content:O.id+": "+O.name+" (Criminal Status: "+O.criminal+")",onClick:function(){return _("d_rec",{d_rec:O.ref})}},M)})})]})},l=function(j){var p=(0,a.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"download",content:"Backup to Disk",disabled:!0}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"upload",content:"Upload from Disk",my:"0.5rem",disabled:!0})," ",(0,e.jsx)("br",{}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",content:"Delete All Security Records",onClick:function(){return p("del_all")}})]})},c=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=E.security,O=E.printing;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"General Data",mt:"-6px",children:(0,e.jsx)(u,{})}),(0,e.jsx)(n.wn,{title:"Security Data",children:(0,e.jsx)(h,{})}),(0,e.jsxs)(n.wn,{title:"Actions",children:[(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Security Record",color:"bad",onClick:function(){return _("del_r")}}),(0,e.jsx)(n.$n.Confirm,{icon:"trash",disabled:!!I.empty,content:"Delete Record (All)",color:"bad",onClick:function(){return _("del_r_2")}}),(0,e.jsx)(n.$n,{icon:O?"spinner":"print",disabled:O,iconSpin:!!O,content:"Print Entry",ml:"0.5rem",onClick:function(){return _("print_p")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Back",mt:"0.5rem",onClick:function(){return _("screen",{screen:2})}})]})]})},u=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=E.general;return!I||!I.fields?(0,e.jsx)(n.az,{color:"bad",children:"General records lost!"}):(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.Ki,{children:I.fields.map(function(O,M){return(0,e.jsxs)(n.Ki.Item,{label:O.field,children:[(0,e.jsx)(n.az,{height:"20px",inline:!0,preserveWhitespace:!0,children:O.value}),!!O.edit&&(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",onClick:function(){return d(O)}})]},M)})})}),(0,e.jsxs)(n.so.Item,{textAlign:"right",children:[!!I.has_photos&&I.photos.map(function(O,M){return(0,e.jsxs)(n.az,{display:"inline-block",textAlign:"center",color:"label",children:[(0,e.jsx)("img",{src:O.substr(1,O.length-1),style:{width:"96px","margin-bottom":"0.5rem","-ms-interpolation-mode":"nearest-neighbor"}}),(0,e.jsx)("br",{}),"Photo #",M+1]},M)}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{onClick:function(){return _("photo_front")},children:"Update Front Photo"}),(0,e.jsx)(n.$n,{onClick:function(){return _("photo_side")},children:"Update Side Photo"})]})]})]})},h=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=E.security;return!I||!I.fields?(0,e.jsxs)(n.az,{color:"bad",children:["Security records lost!",(0,e.jsx)(n.$n,{icon:"pen",content:"New Record",ml:"0.5rem",onClick:function(){return _("new")}})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:I.fields.map(function(O,M){return(0,e.jsx)(n.Ki.Item,{label:O.field,children:(0,e.jsxs)(n.az,{preserveWhitespace:!0,children:[O.value,(0,e.jsx)(n.$n,{icon:"pen",ml:"0.5rem",mb:O.line_break?"1rem":"initial",onClick:function(){return d(O)}})]})},M)})}),(0,e.jsxs)(n.wn,{title:"Comments/Log",children:[I.comments.length===0?(0,e.jsx)(n.az,{color:"label",children:"No comments found."}):I.comments.map(function(O,M){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",inline:!0,children:O.header}),(0,e.jsx)("br",{}),O.text,(0,e.jsx)(n.$n,{icon:"comment-slash",color:"bad",ml:"0.5rem",onClick:function(){return _("del_c",{del_c:M+1})}})]},M)}),(0,e.jsx)(n.$n,{icon:"comment",content:"Add Entry",color:"good",mt:"0.5rem",mb:"0",onClick:function(){return(0,r.modalOpen)("add_c")}})]})]})},x=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=E.screen;return(0,e.jsxs)(n.tU,{children:[(0,e.jsx)(n.tU.Tab,{selected:I===2,icon:"list",onClick:function(){return _("screen",{screen:2})},children:"List Records"}),(0,e.jsx)(n.tU.Tab,{icon:"wrench",selected:I===3,onClick:function(){return _("screen",{screen:3})},children:"Record Maintenance"})]})}},2930:function(S,y,t){"use strict";t.r(y),t.d(y,{SeedStorage:function(){return b}});var e=t(88095),a=t(11358),n=t(33854),r=t(4413),o=t(92514),m=t(84905),b=function(g){var d=(0,r.Oc)(),f=d.act,v=d.data,l=v.scanner,c=v.seeds,u=(0,a.Ul)(function(h){return h.name.toLowerCase()})(c);return(0,e.jsx)(m.p8,{width:600,height:760,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsx)(o.wn,{title:"Seeds",children:u.map(function(h){return(0,e.jsxs)(o.so,{spacing:1,mt:-1,children:[(0,e.jsx)(o.so.Item,{basis:"60%",children:(0,e.jsx)(o.Nt,{title:(0,n.Sn)(h.name)+" #"+h.uid,children:(0,e.jsx)(o.wn,{width:"165%",title:"Traits",children:(0,e.jsx)(o.Ki,{children:Object.keys(h.traits).map(function(x){return(0,e.jsx)(o.Ki.Item,{label:(0,n.Sn)(x),children:h.traits[x]},x)})})})})}),(0,e.jsxs)(o.so.Item,{mt:.4,children:[h.amount," Remaining"]}),(0,e.jsx)(o.so.Item,{grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"download",onClick:function(){return f("vend",{id:h.id})},children:"Vend"})}),(0,e.jsx)(o.so.Item,{grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,icon:"trash",onClick:function(){return f("purge",{id:h.id})},children:"Purge"})})]},h.name+h.uid)})})})})}},7249:function(S,y,t){"use strict";t.r(y),t.d(y,{ShieldCapacitor:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.active,c=v.time_since_fail,u=v.stored_charge,h=v.max_charge,x=v.charge_rate,j=v.max_charge_rate;return(0,e.jsx)(m.p8,{width:500,height:400,children:(0,e.jsx)(m.p8.Content,{children:(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"power-off",selected:l,content:l?"Online":"Offline",onClick:function(){return f("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Capacitor Status",children:c>2?(0,e.jsx)(r.az,{color:"good",children:"OK."}):(0,e.jsx)(r.az,{color:"bad",children:"Discharging!"})}),(0,e.jsxs)(r.Ki.Item,{label:"Stored Energy",children:[(0,e.jsx)(r.zv,{value:u,format:function(p){return(0,o.QL)(p,0,"J")}})," ","(",(0,e.jsx)(r.zv,{value:100*(0,a.LI)(u/h,1)}),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{value:x,step:100,stepPixelSize:.2,minValue:1e4,maxValue:j,format:function(p){return(0,o.d5)(p)},onDrag:function(p,_){return f("charge_rate",{rate:_})}})})]})})})})}},28010:function(S,y,t){"use strict";t.r(y),t.d(y,{ShieldGenerator:function(){return g}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=t(13221),g=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.locked;return(0,e.jsx)(m.p8,{width:500,height:400,children:(0,e.jsx)(m.p8.Content,{children:h?(0,e.jsx)(d,{}):(0,e.jsx)(f,{})})})},d=function(v){return(0,e.jsxs)(b.FullscreenNotice,{title:"Locked",children:[(0,e.jsx)(r.az,{fontSize:"1.5rem",bold:!0,children:(0,e.jsx)(r.In,{name:"exclamation-triangle",verticalAlign:"middle",size:3,mr:"1rem"})}),(0,e.jsx)(r.az,{color:"label",my:"1rem",children:"Swipe your ID to begin."})]})},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=u.lockedData,x=h.capacitors,j=h.active,p=h.failing,_=h.radius,E=h.max_radius,I=h.z_range,O=h.max_z_range,M=h.average_field_strength,D=h.target_field_strength,A=h.max_field_strength,B=h.shields,U=h.upkeep,L=h.strengthen_rate,k=h.max_strengthen_rate,Y=h.gen_power,V=(x||[]).length;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Field Status",children:p?(0,e.jsx)(r.az,{color:"bad",children:"Unstable"}):(0,e.jsx)(r.az,{color:"good",children:"Stable"})}),(0,e.jsxs)(r.Ki.Item,{label:"Overall Field Strength",children:[(0,a.LI)(M,2)," Renwick (",D&&(0,a.LI)(100*M/D,1)||"NA","%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Upkeep Power",children:(0,o.d5)(U)}),(0,e.jsx)(r.Ki.Item,{label:"Shield Generation Power",children:(0,o.d5)(Y)}),(0,e.jsxs)(r.Ki.Item,{label:"Currently Shielded",children:[B," m\xB2"]}),(0,e.jsx)(r.Ki.Item,{label:"Capacitors",children:(0,e.jsx)(r.Ki,{children:V?x.map(function(H,N){return(0,e.jsxs)(r.Ki.Item,{label:"Capacitor #"+N,children:[H.active?(0,e.jsx)(r.az,{color:"good",children:"Online"}):(0,e.jsx)(r.az,{color:"bad",children:"Offline"}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Charge",children:[(0,o.QL)(H.stored_charge,0,"J")," (",100*(0,a.LI)(H.stored_charge/H.max_charge,2),"%)"]}),(0,e.jsx)(r.Ki.Item,{label:"Status",children:H.failing?(0,e.jsx)(r.az,{color:"bad",children:"Discharging"}):(0,e.jsx)(r.az,{color:"good",children:"OK."})})]})]},N)}):(0,e.jsx)(r.Ki.Item,{color:"bad",children:"No Capacitors Connected"})})})]})}),(0,e.jsx)(r.wn,{title:"Controls",buttons:(0,e.jsx)(r.$n,{icon:"power-off",content:j?"Online":"Offline",selected:j,onClick:function(){return c("toggle")}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coverage Radius",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:6,minValue:0,maxValue:E,value:_,unit:"m",onDrag:function(H,N){return c("change_radius",{val:N})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vertical Shielding",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,maxValue:O,value:I,unit:"vertical range",onDrag:function(H,N){return c("z_range",{val:N})}})}),(0,e.jsx)(r.Ki.Item,{label:"Charge Rate",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:0,step:.1,maxValue:k,value:L,format:function(H){return(0,a.LI)(H,1)},unit:"Renwick/s",onDrag:function(H,N){return c("strengthen_rate",{val:N})}})}),(0,e.jsx)(r.Ki.Item,{label:"Maximum Field Strength",children:(0,e.jsx)(r.Q7,{fluid:!0,stepPixelSize:12,minValue:1,maxValue:A,value:D,unit:"Renwick",onDrag:function(H,N){return c("target_field_strength",{val:N})}})})]})})]})}},52735:function(S,y,t){"use strict";t.r(y),t.d(y,{ShutoffMonitor:function(){return o},ShutoffMonitorContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){return(0,e.jsx)(r.p8,{width:627,height:700,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.valves;return(0,e.jsx)(n.wn,{title:"Valves",children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Position"}),(0,e.jsx)(n.XI.Cell,{children:"Open"}),(0,e.jsx)(n.XI.Cell,{children:"Mode"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),v.map(function(l){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:l.name}),(0,e.jsxs)(n.XI.Cell,{children:[l.x,", ",l.y,", ",l.z]}),(0,e.jsx)(n.XI.Cell,{children:l.open?"Yes":"No"}),(0,e.jsx)(n.XI.Cell,{children:l.enabled?"Auto":"Manual"}),(0,e.jsxs)(n.XI.Cell,{children:[(0,e.jsx)(n.$n,{icon:"power-off",content:l.open?"Opened":"Closed",selected:l.open,disabled:!l.enabled,onClick:function(){return d("toggle_open",{valve:l.ref})}}),(0,e.jsx)(n.$n,{icon:"power-off",content:l.enabled?"Auto":"Manual",selected:l.enabled,onClick:function(){return d("toggle_enable",{valve:l.ref})}})]})]},l.name)})]})})}},72736:function(S,y,t){"use strict";t.r(y),t.d(y,{ShuttleControl:function(){return u}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(h,x){var j="ERROR",p="bad",_=!1;return h==="docked"?(j="DOCKED",p="good"):h==="docking"?(j="DOCKING",p="average",_=!0):h==="undocking"?(j="UNDOCKING",p="average",_=!0):h==="undocked"&&(j="UNDOCKED",p="#676767"),_&&x&&(j=j+"-MANUAL"),(0,e.jsx)(r.az,{color:p,children:j})},b=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=h.engineName,E=_===void 0?"Bluespace Drive":_,I=p.shuttle_status,O=p.shuttle_state,M=p.has_docking,D=p.docking_status,A=p.docking_override,B=p.docking_codes;return(0,e.jsxs)(r.wn,{title:"Shuttle Status",children:[(0,e.jsx)(r.az,{color:"label",mb:1,children:I}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:E,children:O==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||O==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||O==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),M&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Docking Status",children:m(D,A)}),(0,e.jsx)(r.Ki.Item,{label:"Docking Codes",children:(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return j("set_codes")},children:B||"Not Set"})})]})||null]})]})},g=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.can_launch,E=p.can_cancel,I=p.can_force;return(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return j("move")},disabled:!_,icon:"rocket",fluid:!0,children:"Launch Shuttle"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return j("cancel")},disabled:!E,icon:"ban",fluid:!0,children:"Cancel Launch"})}),(0,e.jsx)(r.so.Item,{grow:1,children:(0,e.jsx)(r.$n,{onClick:function(){return j("force")},color:"bad",disabled:!I,icon:"exclamation-triangle",fluid:!0,children:"Force Launch"})})]})})},d=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(g,{})]})},f=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.can_cloak,E=p.can_pick,I=p.legit,O=p.cloaked,M=p.destination_name;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b,{}),(0,e.jsx)(r.wn,{title:"Multishuttle Controls",children:(0,e.jsxs)(r.Ki,{children:[_&&(0,e.jsx)(r.Ki.Item,{label:I?"ATC Inhibitor":"Cloaking",children:(0,e.jsx)(r.$n,{selected:O,icon:O?"eye":"eye-o",onClick:function(){return j("toggle_cloaked")},children:O?"Enabled":"Disabled"})})||null,(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!E,onClick:function(){return j("pick")},children:M})})]})}),(0,e.jsx)(g,{})]})},v=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.can_pick,E=p.destination_name,I=p.fuel_usage,O=p.fuel_span,M=p.remaining_fuel;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(b,{engineName:"Engines"}),(0,e.jsx)(r.wn,{title:"Jump Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Destination",children:(0,e.jsx)(r.$n,{icon:"taxi",disabled:!_,onClick:function(){return j("pick")},children:E})}),I&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Est. Delta-V Budget",color:O,children:[M," m/s"]}),(0,e.jsxs)(r.Ki.Item,{label:"Avg. Delta-V Per Maneuver",children:[I," m/s"]})]})||null]})}),(0,e.jsx)(g,{})]})},l=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.autopilot,E=p.can_rename,I=p.shuttle_state,O=p.is_moving,M=p.skip_docking,D=p.docking_status,A=p.docking_override,B=p.shuttle_location,U=p.can_cloak,L=p.cloaked,k=p.can_autopilot,Y=p.routes,V=p.is_in_transit,H=p.travel_progress,N=p.time_left,q=p.doors,G=p.sensors;return(0,e.jsxs)(e.Fragment,{children:[_&&(0,e.jsx)(r.wn,{title:"AI PILOT (CLASS D) ACTIVE",children:(0,e.jsx)(r.az,{inline:!0,italic:!0,children:"This vessel will start and stop automatically. Ensure that all non-cycling capable hatches and doors are closed, as the automated system may not be able to control them. Docking and flight controls are locked. To unlock, disable the automated flight system."})})||null,(0,e.jsxs)(r.wn,{title:"Shuttle Status",buttons:E&&(0,e.jsx)(r.$n,{icon:"pen",onClick:function(){return j("rename_command")},children:"Rename"})||null,children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Engines",children:I==="idle"&&(0,e.jsx)(r.az,{color:"#676767",bold:!0,children:"IDLE"})||I==="warmup"&&(0,e.jsx)(r.az,{color:"#336699",children:"SPINNING UP"})||I==="in_transit"&&(0,e.jsx)(r.az,{color:"#336699",children:"ENGAGED"})||(0,e.jsx)(r.az,{color:"bad",children:"ERROR"})}),!O&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Current Location",children:(0,a.Sn)(B)}),!M&&(0,e.jsx)(r.Ki.Item,{label:"Docking Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{selected:D==="docked",disabled:D!=="undocked"&&D!=="docked",onClick:function(){return j("dock_command")},children:"Dock"}),(0,e.jsx)(r.$n,{selected:D==="undocked",disabled:D!=="docked"&&D!=="undocked",onClick:function(){return j("undock_command")},children:"Undock"})]}),children:(0,e.jsx)(r.az,{bold:!0,inline:!0,children:m(D,A)})})||null,U&&(0,e.jsx)(r.Ki.Item,{label:"Cloaking",children:(0,e.jsx)(r.$n,{selected:L,icon:L?"eye":"eye-o",onClick:function(){return j("toggle_cloaked")},children:L?"Enabled":"Disabled"})})||null,k&&(0,e.jsx)(r.Ki.Item,{label:"Autopilot",children:(0,e.jsx)(r.$n,{selected:_,icon:_?"eye":"eye-o",onClick:function(){return j("toggle_autopilot")},children:_?"Enabled":"Disabled"})})||null]})||null]}),!O&&(0,e.jsx)(r.wn,{level:2,title:"Available Destinations",children:(0,e.jsx)(r.Ki,{children:Y.length&&Y.map(function(Q){return(0,e.jsx)(r.Ki.Item,{label:Q.name,children:(0,e.jsx)(r.$n,{icon:"rocket",onClick:function(){return j("traverse",{traverse:Q.index})},children:Q.travel_time})},Q.name)})||(0,e.jsx)(r.Ki.Item,{label:"Error",color:"bad",children:"No routes found."})})})||null]}),V&&(0,e.jsx)(r.wn,{title:"Transit ETA",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Distance from target",children:(0,e.jsxs)(r.z2,{color:"good",minValue:0,maxValue:100,value:H,children:[N,"s"]})})})})||null,Object.keys(q).length&&(0,e.jsx)(r.wn,{title:"Hatch Status",children:(0,e.jsx)(r.Ki,{children:Object.keys(q).map(function(Q){var F=q[Q];return(0,e.jsxs)(r.Ki.Item,{label:Q,children:[F.open&&(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Open"})||(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Closed"}),"\xA0-\xA0",F.bolted&&(0,e.jsx)(r.az,{inline:!0,color:"good",children:"Bolted"})||(0,e.jsx)(r.az,{inline:!0,color:"bad",children:"Unbolted"})]},Q)})})})||null,Object.keys(G).length&&(0,e.jsx)(r.wn,{title:"Sensors",children:(0,e.jsx)(r.Ki,{children:Object.keys(G).map(function(Q,F){var Z=G[Q];return Z.reading===-1?(0,e.jsx)(r.Ki.Item,{label:Q,color:"bad",children:"Unable to get sensor air reading."},F):(0,e.jsx)(r.Ki.Item,{label:Q,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Pressure",children:[Z.pressure,"kPa"]}),(0,e.jsxs)(r.Ki.Item,{label:"Temperature",children:[Z.temp,"\xB0C"]}),(0,e.jsxs)(r.Ki.Item,{label:"Oxygen",children:[Z.oxygen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Nitrogen",children:[Z.nitrogen,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Carbon Dioxide",children:[Z.carbon_dioxide,"%"]}),(0,e.jsxs)(r.Ki.Item,{label:"Phoron",children:[Z.phoron,"%"]}),Z.other&&(0,e.jsxs)(r.Ki.Item,{label:"Other",children:[Z.other,"%"]})||null]})},Q)})})})||null]})},c={ShuttleControlConsoleDefault:(0,e.jsx)(d,{}),ShuttleControlConsoleMulti:(0,e.jsx)(f,{}),ShuttleControlConsoleExploration:(0,e.jsx)(v,{}),ShuttleControlConsoleWeb:(0,e.jsx)(l,{})},u=function(h){var x=(0,n.Oc)(),j=x.act,p=x.data,_=p.subtemplate;return(0,e.jsx)(o.p8,{width:470,height:_==="ShuttleControlConsoleWeb"?560:370,children:(0,e.jsx)(o.p8.Content,{children:c[_]})})}},42053:function(S,y,t){"use strict";t.r(y),t.d(y,{Signaler:function(){return m},SignalerContent:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(){return(0,e.jsx)(o.p8,{width:280,height:132,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsx)(b,{})})})},b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.code,c=v.frequency,u=v.minFrequency,h=v.maxFrequency;return(0,e.jsxs)(r.wn,{children:[(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Frequency:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,unit:"kHz",step:.2,stepPixelSize:6,minValue:u/10,maxValue:h/10,value:c/10,format:function(x){return(0,a.Mg)(x,1)},width:"80px",onDrag:function(x,j){return f("freq",{freq:j})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return f("reset",{reset:"freq"})}})})]}),(0,e.jsxs)(r.xA,{mt:.6,children:[(0,e.jsx)(r.xA.Column,{size:1.4,color:"label",children:"Code:"}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.Q7,{animate:!0,step:1,stepPixelSize:6,minValue:1,maxValue:100,value:l,width:"80px",onDrag:function(x,j){return f("code",{code:j})}})}),(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{ml:1.3,icon:"sync",content:"Reset",onClick:function(){return f("reset",{reset:"code"})}})})]}),(0,e.jsx)(r.xA,{mt:.8,children:(0,e.jsx)(r.xA.Column,{children:(0,e.jsx)(r.$n,{mb:-.1,fluid:!0,icon:"arrow-up",content:"Send Signal",textAlign:"center",onClick:function(){return f("signal")}})})})]})}},30636:function(S,y,t){"use strict";t.r(y),t.d(y,{Sleeper:function(){return f}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=[["good","Alive"],["average","Unconscious"],["bad","DEAD"]],b=[["Resp","oxyLoss"],["Toxin","toxLoss"],["Brute","bruteLoss"],["Burn","fireLoss"]],g={average:[.25,.5],bad:[.5,1/0]},d=["bad","average","average","good","average","average","bad"],f=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.hasOccupant,O=I?(0,e.jsx)(v,{}):(0,e.jsx)(x,{});return(0,e.jsx)(o.p8,{width:550,height:760,children:(0,e.jsx)(o.p8.Content,{className:"Layout__content--flexColumn",children:O})})},v=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.occupant,O=E.dialysis,M=E.stomachpumping;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(l,{}),(0,e.jsx)(c,{}),(0,e.jsx)(u,{title:"Dialysis",active:O,actToDo:"togglefilter"}),(0,e.jsx)(u,{title:"Stomach Pump",active:M,actToDo:"togglepump"}),(0,e.jsx)(h,{})]})},l=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.occupant,O=E.auto_eject_dead,M=E.stasis;return(0,e.jsx)(r.wn,{title:"Occupant",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Auto-eject if dead:\xA0"}),(0,e.jsx)(r.$n,{icon:O?"toggle-on":"toggle-off",selected:O,content:O?"On":"Off",onClick:function(){return _("auto_eject_dead_"+(O?"off":"on"))}}),(0,e.jsx)(r.$n,{icon:"user-slash",content:"Eject",onClick:function(){return _("ejectify")}}),(0,e.jsx)(r.$n,{content:M,onClick:function(){return _("changestasis")}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(r.Ki.Item,{label:"Health",children:(0,e.jsx)(r.z2,{min:0,max:I.maxHealth,value:I.health/I.maxHealth,ranges:{good:[.5,1/0],average:[0,.5],bad:[-1/0,0]},children:(0,a.LI)(I.health,0)})}),(0,e.jsx)(r.Ki.Item,{label:"Status",color:m[I.stat][0],children:m[I.stat][1]}),(0,e.jsx)(r.Ki.Item,{label:"Temperature",children:(0,e.jsxs)(r.z2,{min:"0",max:I.maxTemp,value:I.bodyTemperature/I.maxTemp,color:d[I.temperatureSuitability+3],children:[(0,a.LI)(I.btCelsius,0),"\xB0C,",(0,a.LI)(I.btFaren,0),"\xB0F"]})}),!!I.hasBlood&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Blood Level",children:(0,e.jsxs)(r.z2,{min:"0",max:I.bloodMax,value:I.bloodLevel/I.bloodMax,ranges:{bad:[-1/0,.6],average:[.6,.9],good:[.6,1/0]},children:[I.bloodPercent,"%, ",I.bloodLevel,"cl"]})}),(0,e.jsxs)(r.Ki.Item,{label:"Pulse",verticalAlign:"middle",children:[I.pulse," BPM"]})]})]})})},c=function(j){var p=(0,n.Oc)().data,_=p.occupant;return(0,e.jsx)(r.wn,{title:"Damage",children:(0,e.jsx)(r.Ki,{children:b.map(function(E,I){return(0,e.jsx)(r.Ki.Item,{label:E[0],children:(0,e.jsx)(r.z2,{min:"0",max:"100",value:_[E[1]]/100,ranges:g,children:(0,a.LI)(_[E[1]],0)},I)},I)})})})},u=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.isBeakerLoaded,O=E.beakerMaxSpace,M=E.beakerFreeSpace,D=j.active,A=j.actToDo,B=j.title,U=D&&M>0;return(0,e.jsx)(r.wn,{title:B,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{disabled:!I||M<=0,selected:U,icon:U?"toggle-on":"toggle-off",content:U?"Active":"Inactive",onClick:function(){return _(A)}}),(0,e.jsx)(r.$n,{disabled:!I,icon:"eject",content:"Eject",onClick:function(){return _("removebeaker")}})]}),children:I?(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Remaining Space",children:(0,e.jsxs)(r.z2,{min:"0",max:O,value:M/O,ranges:{good:[.5,1/0],average:[.25,.5],bad:[-1/0,.25]},children:[M,"u"]})})}):(0,e.jsx)(r.az,{color:"label",children:"No beaker loaded."})})},h=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.occupant,O=E.chemicals,M=E.maxchem,D=E.amounts;return(0,e.jsx)(r.wn,{title:"Chemicals",flexGrow:"1",children:O.map(function(A,B){var U="",L;return A.overdosing?(U="bad",L=(0,e.jsxs)(r.az,{color:"bad",children:[(0,e.jsx)(r.In,{name:"exclamation-circle"}),"\xA0 Overdosing!"]})):A.od_warning&&(U="average",L=(0,e.jsxs)(r.az,{color:"average",children:[(0,e.jsx)(r.In,{name:"exclamation-triangle"}),"\xA0 Close to overdosing"]})),(0,e.jsx)(r.az,{backgroundColor:"rgba(0, 0, 0, 0.33)",mb:"0.5rem",children:(0,e.jsx)(r.wn,{title:A.title,level:"3",mx:"0",lineHeight:"18px",buttons:L,children:(0,e.jsxs)(r.so,{align:"flex-start",children:[(0,e.jsxs)(r.z2,{min:"0",max:M,value:A.occ_amount/M,color:U,mr:"0.5rem",children:[A.pretty_amount,"/",M,"u"]}),D.map(function(k,Y){return(0,e.jsx)(r.$n,{disabled:!A.injectable||A.occ_amount+k>M||I.stat===2,icon:"syringe",content:k,mb:"0",height:"19px",onClick:function(){return _("chemical",{chemid:A.id,amount:k})}},Y)})]})})},B)})})},x=function(j){var p=(0,n.Oc)(),_=p.act,E=p.data,I=E.isBeakerLoaded;return(0,e.jsx)(r.wn,{textAlign:"center",flexGrow:"1",children:(0,e.jsx)(r.so,{height:"100%",children:(0,e.jsxs)(r.so.Item,{grow:"1",align:"center",color:"label",children:[(0,e.jsx)(r.In,{name:"user-slash",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"No occupant detected.",I&&(0,e.jsx)(r.az,{children:(0,e.jsx)(r.$n,{icon:"eject",content:"Remove Beaker",onClick:function(){return _("removebeaker")}})})||null]})})})}},438:function(S,y,t){"use strict";t.r(y),t.d(y,{SmartVend:function(){return m}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.config,v=g.data;return(0,e.jsx)(o.p8,{width:500,height:550,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Storage",children:[v.secure&&(0,e.jsx)(r.IC,{danger:v.locked===-1,info:v.locked!==-1,children:v.locked===-1?(0,e.jsx)(r.az,{children:"Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($..."}):(0,e.jsx)(r.az,{children:"Secure Access: Please have your identification ready."})})||null,v.contents.length===0&&(0,e.jsxs)(r.IC,{children:["Unfortunately, this ",f.title," is empty."]})||(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{header:!0,children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:"Item"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Amount"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:"Dispense"})]}),(0,a.Tj)(function(l,c){return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:l.name}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:[l.amount," in stock"]}),(0,e.jsxs)(r.XI.Cell,{collapsing:!0,children:[(0,e.jsx)(r.$n,{content:"1",disabled:l.amount<1,onClick:function(){return d("Release",{index:l.index,amount:1})}}),(0,e.jsx)(r.$n,{content:"5",disabled:l.amount<5,onClick:function(){return d("Release",{index:l.index,amount:5})}}),(0,e.jsx)(r.$n,{content:"25",disabled:l.amount<25,onClick:function(){return d("Release",{index:l.index,amount:25})}}),(0,e.jsx)(r.$n,{content:"50",disabled:l.amount<50,onClick:function(){return d("Release",{index:l.index,amount:50})}}),(0,e.jsx)(r.$n,{content:"Custom",disabled:l.amount<1,onClick:function(){return d("Release",{index:l.index})}}),(0,e.jsx)(r.$n,{content:"All",disabled:l.amount<1,onClick:function(){return d("Release",{index:l.index,amount:l.amount})}})]})]},c)})(v.contents)]})]})})})}},99278:function(S,y,t){"use strict";t.r(y),t.d(y,{Smes:function(){return g}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=1e3,g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.capacityPercent,u=l.capacity,h=l.charge,x=l.inputAttempt,j=l.inputting,p=l.inputLevel,_=l.inputLevelMax,E=l.inputAvailable,I=l.outputAttempt,O=l.outputting,M=l.outputLevel,D=l.outputLevelMax,A=l.outputUsed,B=c>=100&&"good"||j&&"average"||"bad",U=O&&"good"||h>0&&"average"||"bad";return(0,e.jsx)(m.p8,{width:340,height:350,children:(0,e.jsxs)(m.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Stored Energy",children:(0,e.jsxs)(r.z2,{value:c*.01,ranges:{good:[.5,1/0],average:[.15,.5],bad:[-1/0,.15]},children:[(0,a.LI)(h/(1e3*60),1)," kWh /"," ",(0,a.LI)(u/(1e3*60))," kWh (",c,"%)"]})}),(0,e.jsx)(r.wn,{title:"Input",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Charge Mode",buttons:(0,e.jsx)(r.$n,{icon:x?"sync-alt":"times",selected:x,onClick:function(){return v("tryinput")},children:x?"On":"Off"}),children:(0,e.jsx)(r.az,{color:B,children:c>=100&&"Fully Charged"||j&&"Charging"||"Not Charging"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Input",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:p===0,onClick:function(){return v("input",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:p===0,onClick:function(){return v("input",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:p/b,fillValue:E/b,minValue:0,maxValue:_/b,step:5,stepPixelSize:4,format:function(L){return(0,o.d5)(L*b,1)},onDrag:function(L,k){return v("input",{target:k*b})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:p===_,onClick:function(){return v("input",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:p===_,onClick:function(){return v("input",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Available",children:(0,o.d5)(E)})]})}),(0,e.jsx)(r.wn,{title:"Output",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Output Mode",buttons:(0,e.jsx)(r.$n,{icon:I?"power-off":"times",selected:I,onClick:function(){return v("tryoutput")},children:I?"On":"Off"}),children:(0,e.jsx)(r.az,{color:U,children:O?"Sending":h>0?"Not Sending":"No Charge"})}),(0,e.jsx)(r.Ki.Item,{label:"Target Output",children:(0,e.jsxs)(r.so,{inline:!0,width:"100%",children:[(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"fast-backward",disabled:M===0,onClick:function(){return v("output",{target:"min"})}}),(0,e.jsx)(r.$n,{icon:"backward",disabled:M===0,onClick:function(){return v("output",{adjust:-1e4})}})]}),(0,e.jsx)(r.so.Item,{grow:1,mx:1,children:(0,e.jsx)(r.Ap,{value:M/b,minValue:0,maxValue:D/b,step:5,stepPixelSize:4,format:function(L){return(0,o.d5)(L*b,1)},onDrag:function(L,k){return v("output",{target:k*b})}})}),(0,e.jsxs)(r.so.Item,{children:[(0,e.jsx)(r.$n,{icon:"forward",disabled:M===D,onClick:function(){return v("output",{adjust:1e4})}}),(0,e.jsx)(r.$n,{icon:"fast-forward",disabled:M===D,onClick:function(){return v("output",{target:"max"})}})]})]})}),(0,e.jsx)(r.Ki.Item,{label:"Outputting",children:(0,o.d5)(A)})]})})]})})}},42456:function(S,y,t){"use strict";t.r(y),t.d(y,{SolarControl:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.generated,l=f.generated_ratio,c=f.sun_angle,u=f.array_angle,h=f.rotation_rate,x=f.max_rotation_rate,j=f.tracking_state,p=f.connected_panels,_=f.connected_tracker;return(0,e.jsx)(o.p8,{width:380,height:230,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Scan for new hardware",onClick:function(){return d("refresh")}}),children:(0,e.jsxs)(r.xA,{children:[(0,e.jsx)(r.xA.Column,{children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Solar tracker",color:_?"good":"bad",children:_?"OK":"N/A"}),(0,e.jsx)(r.Ki.Item,{label:"Solar panels",color:p>0?"good":"bad",children:p})]})}),(0,e.jsx)(r.xA.Column,{size:1.5,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Power output",children:(0,e.jsx)(r.z2,{ranges:{good:[.66,1/0],average:[.33,.66],bad:[-1/0,.33]},minValue:0,maxValue:1,value:l,children:v+" W"})}),(0,e.jsxs)(r.Ki.Item,{label:"Star orientation",children:[c,"\xB0"]})]})})]})}),(0,e.jsx)(r.wn,{title:"Controls",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Tracking",children:[(0,e.jsx)(r.$n,{icon:"times",content:"Off",selected:j===0,onClick:function(){return d("tracking",{mode:0})}}),(0,e.jsx)(r.$n,{icon:"clock-o",content:"Timed",selected:j===1,onClick:function(){return d("tracking",{mode:1})}}),(0,e.jsx)(r.$n,{icon:"sync",content:"Auto",selected:j===2,disabled:!_,onClick:function(){return d("tracking",{mode:2})}})]}),(0,e.jsxs)(r.Ki.Item,{label:"Azimuth",children:[(j===0||j===1)&&(0,e.jsx)(r.Q7,{width:"52px",unit:"\xB0",step:1,stepPixelSize:2,minValue:-360,maxValue:720,value:u,format:function(E){var I=Math.sign(E)>0?" (CW)":" (CCW)";return Math.abs((0,a.LI)(E))+I},onDrag:function(E,I){return d("azimuth",{value:I})}}),j===1&&(0,e.jsx)(r.Q7,{width:"80px",unit:"deg/h",step:1,minValue:-x-.01,maxValue:x+.01,value:h,format:function(E){var I=Math.sign(E)>0?" (CW)":" (CCW)";return Math.abs((0,a.LI)(E))+I},onDrag:function(E,I){return d("azimuth_rate",{value:I})}}),j===2&&(0,e.jsxs)(r.az,{inline:!0,color:"label",mt:"3px",children:[u+"\xB0"," (auto)"]})]})]})})]})})}},96031:function(S,y,t){"use strict";t.r(y),t.d(y,{SpaceHeater:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(1568),o=t(84905),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.temp,l=f.minTemp,c=f.maxTemp,u=f.cell,h=f.power;return(0,e.jsx)(o.p8,{width:300,height:250,children:(0,e.jsxs)(o.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Target Temperature",children:[v," K (",v-r.Ai,"\xB0 C)"]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Charge",children:[h,"% ",!u&&"(No Cell Inserted)"]})]})}),(0,e.jsx)(n.wn,{title:"Controls",children:(0,e.jsxs)(n.Wx,{children:[(0,e.jsx)(n.Wx.Item,{label:"Thermostat",children:(0,e.jsx)(n.N6,{animated:!0,value:v-r.Ai,minValue:l-r.Ai,maxValue:c-r.Ai,unit:"C",onChange:function(x,j){return d("temp",{newtemp:j+r.Ai})}})}),(0,e.jsx)(n.Wx.Item,{label:"Cell",children:u?(0,e.jsx)(n.$n,{icon:"eject",content:"Eject Cell",onClick:function(){return d("cellremove")}}):(0,e.jsx)(n.$n,{icon:"car-battery",content:"Insert Cell",onClick:function(){return d("cellinstall")}})})]})})]})})}},98932:function(S,y,t){"use strict";t.r(y),t.d(y,{Stack:function(){return g}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905);function o(c,u){(u==null||u>c.length)&&(u=c.length);for(var h=0,x=new Array(u);h<u;h++)x[h]=c[h];return x}function m(c,u){if(c){if(typeof c=="string")return o(c,u);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(h);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return o(c,u)}}function b(c,u){var h=typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(h)return(h=h.call(c)).next.bind(h);if(Array.isArray(c)||(h=m(c))||u&&c&&typeof c.length=="number"){h&&(c=h);var x=0;return function(){return x>=c.length?{done:!0}:{done:!1,value:c[x++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g=function(c){var u=(0,a.Oc)(),h=u.act,x=u.data,j=x.amount,p=x.recipes;return(0,e.jsx)(r.p8,{width:400,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Amount: "+j,children:(0,e.jsx)(d,{recipes:p})})})})},d=function(c){var u=(0,a.Oc)(),h=u.act,x=u.data,j=c.recipes,p=Object.keys(j).sort();return p.map(function(_,E){var I=j[_];return I.ref===void 0?(0,e.jsx)(n.Nt,{ml:1,mb:-.7,color:"label",title:_,children:(0,e.jsx)(n.az,{ml:1,children:(0,e.jsx)(d,{recipes:I})})},E):(0,e.jsx)(l,{title:_,recipe:I},E)})},f=function(c,u){return c.req_amount>u?0:Math.floor(u/c.req_amount)},v=function(c){for(var u=function(){var A=D.value;E>=A&&O.push((0,e.jsx)(n.$n,{content:A*p.res_amount+"x",onClick:function(){return x("make",{ref:p.ref,multiplier:A})}}))},h=(0,a.Oc)(),x=h.act,j=h.data,p=c.recipe,_=c.maxMultiplier,E=Math.min(_,Math.floor(p.max_res_amount/p.res_amount)),I=[5,10,25],O=[],M=b(I),D;!(D=M()).done;)u();return I.indexOf(E)===-1&&O.push((0,e.jsx)(n.$n,{content:E*p.res_amount+"x",onClick:function(){return x("make",{ref:p.ref,multiplier:E})}})),O},l=function(c){var u=(0,a.Oc)(),h=u.act,x=u.data,j=x.amount,p=c.recipe,_=c.title,E=p.res_amount,I=p.max_res_amount,O=p.req_amount,M=p.ref,D=_;D+=" (",D+=O+" ",D+="sheet"+(O>1?"s":""),D+=")",E>1&&(D=E+"x "+D);var A=f(p,j);return(0,e.jsx)(n.az,{children:(0,e.jsx)(n.XI,{children:(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{fluid:!0,disabled:!A,icon:"wrench",content:D,onClick:function(){return h("make",{ref:p.ref,multiplier:1})}})}),I>1&&A>1&&(0,e.jsx)(n.XI.Cell,{collapsing:!0,children:(0,e.jsx)(v,{recipe:p,maxMultiplier:A})})]})})})}},59555:function(S,y,t){"use strict";t.r(y),t.d(y,{StarcasterCh:function(){return m}});var e=t(88095),a=t(80676),n=t(4413),r=t(92514),o=t(84905),m=function(d,f){var v=(0,n.Oc)(f),l=v.act,c=v.data,u=c.article,h=(0,e.jsx)(g,{});return u&&(h=(0,e.jsx)(b,{})),(0,e.jsx)(o.p8,{width:575,height:750,resizable:!0,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:h})})},b=function(d,f){var v=(0,n.Oc)(f),l=v.act,c=v.data,u=c.article;if(!u)return(0,e.jsx)(r.wn,{children:"Error: Article not found."});var h=u.title,x=u.cover,j=u.content;return(0,e.jsxs)(r.wn,{title:"Viewing: "+h,buttons:(0,e.jsx)(r.$n,{icon:"times",onClick:function(){return l("PRG_reset")},children:"Close"}),children:[!!x&&(0,e.jsx)("img",{src:(0,a.l)(x)}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:j}})]})},g=function(d,f){var v=(0,n.Oc)(f),l=v.act,c=v.data,u=c.showing_archived,h=c.all_articles;return(0,e.jsx)(r.wn,{title:"Articles List",buttons:(0,e.jsx)(r.$n.Checkbox,{onClick:function(){return l("PRG_toggle_archived")},checked:u,children:"Show Archived"}),children:(0,e.jsx)(r.Ki,{children:h.length&&h.map(function(x){return(0,e.jsx)(r.Ki.Item,{label:x.name,buttons:(0,e.jsx)(r.$n,{icon:"download",onClick:function(){return l("PRG_openarticle",{uid:x.uid})}})},x.uid)})||(0,e.jsx)(r.Ki.Item,{label:"Error",children:"Unable to connect to Starfire database."})})})}},47441:function(S,y,t){"use strict";t.r(y),t.d(y,{StationAlertConsole:function(){return o},StationAlertConsoleContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:425,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.categories,l=v===void 0?[]:v;return l.map(function(c){return(0,e.jsx)(n.wn,{title:c.category,children:(0,e.jsxs)("ul",{children:[c.alarms.length===0&&(0,e.jsx)("li",{className:"color-good",children:"Systems Nominal"}),c.alarms.map(function(u){var h="";return u.has_cameras?h=(0,e.jsx)(n.wn,{children:u.cameras.map(function(x){return(0,e.jsx)(n.$n,{disabled:x.deact,content:x.name+(x.deact?" (deactived)":""),icon:"video",onClick:function(){return d("switchTo",{camera:x.camera})}},x.name)})}):u.lost_sources&&(h=(0,e.jsxs)(n.az,{color:"bad",children:["Lost Alarm Sources: ",u.lost_sources]})),(0,e.jsxs)("li",{children:[u.name,u.origin_lost?(0,e.jsx)(n.az,{color:"bad",children:"Alarm Origin Lost."}):"",h]},u.name)})]})},c.category)})}},89052:function(S,y,t){"use strict";t.r(y),t.d(y,{StationBlueprints:function(){return o},StationBlueprintsContent:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){return(0,e.jsx)(r.p8,{width:870,height:708,children:(0,e.jsx)(m,{})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=g.config,l=f.mapRef,c=f.areas,u=f.turfs;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"CameraConsole__left",children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:"Honk!"})}),(0,e.jsx)("div",{className:"CameraConsole__right",children:(0,e.jsx)(n.D1,{className:"CameraConsole__map",params:{id:l,type:"map"}})})]})}},38501:function(S,y,t){"use strict";t.r(y),t.d(y,{StockExchange:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.screen,j=h.stationName,p;return x==="stocks"?p=(0,e.jsx)(m,{}):x==="logs"?p=(0,e.jsx)(d,{}):x==="archive"?p=(0,e.jsx)(f,{}):x==="graph"&&(p=(0,e.jsx)(v,{})),(0,e.jsx)(r.p8,{width:600,height:600,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:""+j+" Stock Exchange",children:p})})})},m=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.balance,j=h.stationName,p=h.viewMode,_=(0,e.jsx)(b,{});return p==="Full"?_=(0,e.jsx)(b,{}):p==="Compressed"&&(_=(0,e.jsx)(g,{})),(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("span",{children:["Welcome, ",(0,e.jsxs)("b",{children:[j," Cargo Department"]})," |"," "]}),(0,e.jsxs)("span",{children:[(0,e.jsx)("b",{children:"Credits:"})," ",x]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"View mode: "}),(0,e.jsx)(n.$n,{content:p,onClick:function(){return u("stocks_cycle_view")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Stock Transaction Log: "}),(0,e.jsx)(n.$n,{icon:"list",content:"Check",onClick:function(){return u("stocks_check")}}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"This is a work in progress. Certain features may not be available."}),(0,e.jsx)(n.wn,{title:"Listed Stocks",children:_})]})},b=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.stocks,j=x===void 0?[]:x;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("b",{children:"Actions:"})," + Buy, - Sell, (A)rchives, (H)istory",(0,e.jsx)(n.cG,{}),(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{children:"ID"}),(0,e.jsx)(n.XI.Cell,{children:"Name"}),(0,e.jsx)(n.XI.Cell,{children:"Value"}),(0,e.jsx)(n.XI.Cell,{children:"Owned"}),(0,e.jsx)(n.XI.Cell,{children:"Avail"}),(0,e.jsx)(n.XI.Cell,{children:"Actions"})]}),(0,e.jsx)(n.cG,{}),j.map(function(p){return(0,e.jsxs)(n.XI.Row,{children:[(0,e.jsx)(n.XI.Cell,{bold:!0,children:"\xA0"}),(0,e.jsx)(n.XI.Cell,{color:"label",children:p.ID}),(0,e.jsx)(n.XI.Cell,{color:"label",children:p.Name}),(0,e.jsx)(n.XI.Cell,{color:"label",children:p.Value}),(0,e.jsx)(n.XI.Cell,{color:"label",children:p.Owned}),(0,e.jsx)(n.XI.Cell,{color:"label",children:p.Avail}),(0,e.jsxs)(n.XI.Cell,{color:"label",children:[(0,e.jsx)(n.$n,{icon:"plus",disabled:!1,onClick:function(){return u("stocks_buy",{share:p.REF})}}),(0,e.jsx)(n.$n,{icon:"minus",disabled:!1,onClick:function(){return u("stocks_sell",{share:p.REF})}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"A",onClick:function(){return u("stocks_archive",{share:p.REF})}}),(0,e.jsx)(n.$n,{content:"H",onClick:function(){return u("stocks_history",{share:p.REF})}}),(0,e.jsx)("br",{})]})]},p.ID)})]})]})},g=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.stocks,j=x===void 0?[]:x;return(0,e.jsx)(n.az,{children:j.map(function(p){return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("span",{children:p.name})," ",(0,e.jsx)("span",{children:p.ID}),p.bankrupt===1&&(0,e.jsx)("b",{color:"red",children:"BANKRUPT"}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Unified shares"})," ",p.Unification," ago.",(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Current value per share:"})," ",p.Value," |"," ",(0,e.jsx)(n.$n,{content:"View history",onClick:function(){return u("stocks_history",{share:p.REF})}}),(0,e.jsx)("br",{}),"You currently own ",(0,e.jsx)("b",{children:p.Owned})," shares in this company.",(0,e.jsx)("br",{}),"There are ",p.Avail," purchasable shares on the market currently.",(0,e.jsx)("br",{}),p.bankrupt===1?(0,e.jsx)("span",{children:"You cannot buy or sell shares in a bankrupt company!"}):(0,e.jsxs)("span",{children:[(0,e.jsx)(n.$n,{content:"Buy shares",onClick:function(){return u("stocks_buy",{share:p.REF})}})," ","|"," ",(0,e.jsx)(n.$n,{content:"Sell shares",onClick:function(){return u("stocks_sell",{share:p.REF})}})]}),(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Prominent products:"}),(0,e.jsx)("br",{}),(0,e.jsx)("i",{children:p.Products}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"View news archives",onClick:function(){return u("stocks_archive",{share:p.REF})}})," ",(0,e.jsx)(n.cG,{})]},p.ID)})})},d=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.logs,j=x===void 0?[]:x;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)("h2",{children:"Stock Transaction Logs"}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return u("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:j.map(function(p){return(0,e.jsxs)(n.az,{children:[p.type!=="borrow"?(0,e.jsxs)("div",{children:[p.time," | ",(0,e.jsx)("b",{children:p.user_name})," ",p.type==="transaction_bought"?(0,e.jsx)("span",{children:"bought"}):(0,e.jsx)("span",{children:"sold"})," ",(0,e.jsx)("b",{children:p.stocks})," stocks at ",p.shareprice," a share for"," ",(0,e.jsx)("b",{children:p.money})," total credits"," ",p.type==="transaction_bought"?(0,e.jsx)("span",{children:"in"}):(0,e.jsx)("span",{children:"from"})," ",(0,e.jsx)("b",{children:p.company_name}),".",(0,e.jsx)("br",{})]}):(0,e.jsxs)("div",{children:[p.time," | ",(0,e.jsx)("b",{children:p.user_name})," borrowed ",(0,e.jsx)("b",{children:p.stocks})," ","stocks with a deposit of ",(0,e.jsx)("b",{children:p.money})," credits in"," ",(0,e.jsx)("b",{children:p.company_name}),".",(0,e.jsx)("br",{})]}),(0,e.jsx)(n.cG,{})]},p.time)})})]})},f=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.name,j=h.events,p=j===void 0?[]:j,_=h.articles,E=_===void 0?[]:_;return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("h2",{children:["News feed for ",x]}),(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return u("stocks_backbutton")}}),(0,e.jsx)("h3",{children:"Events"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:p.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.current_title}),(0,e.jsx)("br",{}),I.current_desc]}),(0,e.jsx)(n.cG,{})]},I.current_title)})}),(0,e.jsx)("br",{}),(0,e.jsx)("h3",{children:"Articles"}),(0,e.jsx)(n.cG,{}),(0,e.jsx)("div",{children:E.map(function(I){return(0,e.jsxs)(n.az,{children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("b",{children:I.headline}),(0,e.jsx)("i",{children:I.subtitle}),(0,e.jsx)("br",{}),I.article,(0,e.jsx)("br",{}),"- ",I.author,", ",I.spacetime," (via"," ",(0,e.jsx)("i",{children:I.outlet}),")"]}),(0,e.jsx)(n.cG,{})]},I.headline)})})]})},v=function(l){var c=(0,a.Oc)(),u=c.act,h=c.data,x=h.name,j=h.maxValue,p=h.values,_=p===void 0?[]:p;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{content:"Go back",onClick:function(){return u("stocks_backbutton")}}),(0,e.jsx)(n.cG,{}),(0,e.jsx)(n.wn,{position:"relative",height:"100%",children:(0,e.jsx)(n.t1.Line,{fillPositionedParent:!0,data:_,rangeX:[0,_.length-1],rangeY:[0,j],strokeColor:"rgba(0, 181, 173, 1)",fillColor:"rgba(0, 181, 173, 0.25)"})}),(0,e.jsx)(n.cG,{}),(0,e.jsxs)("p",{children:[x," share value per share"]})]})}},21665:function(S,y,t){"use strict";t.r(y),t.d(y,{SuitCycler:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.active,h=c.locked,x=c.uv_active,j=(0,e.jsx)(m,{});return x?j=(0,e.jsx)(b,{}):h?j=(0,e.jsx)(g,{}):u&&(j=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:320,height:400,children:(0,e.jsx)(r.p8.Content,{children:j})})},m=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.safeties,h=c.occupied,x=c.suit,j=c.helmet,p=c.departments,_=c.species,E=c.uv_level,I=c.max_uv_level,O=c.can_repair,M=c.damage;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Storage",buttons:(0,e.jsx)(n.$n,{icon:"lock",content:"Lock",onClick:function(){return l("lock")}}),children:[!!(h&&u)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return l("eject_guy")}})]}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:j?"square":"square-o",content:j||"Empty",disabled:!j,onClick:function(){return l("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:x?"square":"square-o",content:x||"Empty",disabled:!x,onClick:function(){return l("dispense",{item:"suit"})}})}),O&&M?(0,e.jsxs)(n.Ki.Item,{label:"Suit Damage",children:[M,(0,e.jsx)(n.$n,{icon:"wrench",content:"Repair",onClick:function(){return l("repair_suit")}})]}):null]})]}),(0,e.jsxs)(n.wn,{title:"Customization",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target Paintjob",children:(0,e.jsx)(n.ms,{noscroll:!0,width:"150px",options:p,selected:p[0],onSelected:function(D){return l("department",{department:D})}})}),(0,e.jsx)(n.Ki.Item,{label:"Target Species",children:(0,e.jsx)(n.ms,{width:"150px",maxHeight:"160px",options:_,selected:_[0],onSelected:function(D){return l("species",{species:D})}})})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,content:"Customize",onClick:function(){return l("apply_paintjob")}})]}),(0,e.jsx)(n.wn,{title:"UV Decontamination",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Radiation Level",children:(0,e.jsx)(n.Q7,{width:"50px",value:E,minValue:1,maxValue:I,stepPixelSize:30,onChange:function(D,A){return l("radlevel",{radlevel:A})}})}),(0,e.jsx)(n.Ki.Item,{label:"Decontaminate",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",disabled:h&&u,textAlign:"center",onClick:function(){return l("uv")}})})]})})]})},b=function(f){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},g=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.model_text,h=c.userHasAccess;return(0,e.jsxs)(n.wn,{title:"Locked",textAlign:"center",children:[(0,e.jsxs)(n.az,{color:"bad",bold:!0,children:["The ",u," suit cycler is currently locked. Please contact your system administrator."]}),(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"unlock",content:"[Unlock]",disabled:!h,onClick:function(){return l("lock")}})})]})},d=function(f){return(0,e.jsx)(n.IC,{children:"Contents are currently being painted. Please wait."})}},42688:function(S,y,t){"use strict";t.r(y),t.d(y,{SuitStorageUnit:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.panelopen,h=c.uv_active,x=c.broken,j=(0,e.jsx)(m,{});return u?j=(0,e.jsx)(b,{}):h?j=(0,e.jsx)(g,{}):x&&(j=(0,e.jsx)(d,{})),(0,e.jsx)(r.p8,{width:400,height:365,children:(0,e.jsx)(r.p8.Content,{children:j})})},m=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.locked,h=c.open,x=c.safeties,j=c.occupied,p=c.suit,_=c.helmet,E=c.mask;return(0,e.jsxs)(n.wn,{title:"Storage",minHeight:"260px",buttons:(0,e.jsxs)(e.Fragment,{children:[!h&&(0,e.jsx)(n.$n,{icon:u?"unlock":"lock",content:u?"Unlock":"Lock",onClick:function(){return l("lock")}}),!u&&(0,e.jsx)(n.$n,{icon:h?"sign-out-alt":"sign-in-alt",content:h?"Close":"Open",onClick:function(){return l("door")}})]}),children:[!!(j&&x)&&(0,e.jsxs)(n.IC,{children:["Biological entity detected in suit chamber. Please remove before continuing with operation.",(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",color:"red",content:"Eject Entity",onClick:function(){return l("eject_guy")}})]}),u&&(0,e.jsxs)(n.az,{mt:6,bold:!0,textAlign:"center",fontSize:"40px",children:[(0,e.jsx)(n.az,{children:"Unit Locked"}),(0,e.jsx)(n.In,{name:"lock"})]})||h&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Helmet",children:(0,e.jsx)(n.$n,{icon:_?"square":"square-o",content:_||"Empty",disabled:!_,onClick:function(){return l("dispense",{item:"helmet"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Suit",children:(0,e.jsx)(n.$n,{icon:p?"square":"square-o",content:p||"Empty",disabled:!p,onClick:function(){return l("dispense",{item:"suit"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Mask",children:(0,e.jsx)(n.$n,{icon:E?"square":"square-o",content:E||"Empty",disabled:!E,onClick:function(){return l("dispense",{item:"mask"})}})})]})||(0,e.jsx)(n.$n,{fluid:!0,icon:"recycle",content:"Decontaminate",disabled:j&&x,textAlign:"center",onClick:function(){return l("uv")}})]})},b=function(f){var v=(0,a.Oc)(),l=v.act,c=v.data,u=c.safeties,h=c.uv_super;return(0,e.jsxs)(n.wn,{title:"Maintenance Panel",children:[(0,e.jsx)(n.az,{color:"grey",children:"The panel is ridden with controls, button and meters, labeled in strange signs and symbols that you cannot understand. Probably the manufactoring world's language. Among other things, a few controls catch your eye."}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A small dial with a biohazard symbol next to it. It's pointing towards a gauge that reads ",h?"15nm":"185nm",".",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.N6,{size:2,inline:!0,value:h,minValue:0,maxValue:1,step:1,stepPixelSize:40,color:h?"red":"green",format:function(x){return x?"15nm":"185nm"},onChange:function(x,j){return l("toggleUV")}})}),(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.In,{name:"biohazard",size:3,color:"orange"})})]})]}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.az,{children:["A thick old-style button, with 2 grimy LED lights next to it. The"," ",u?(0,e.jsx)("font",{color:"green",children:"GREEN"}):(0,e.jsx)("font",{color:"red",children:"RED"})," ","LED is on.",(0,e.jsxs)(n.so,{mt:1,align:"center",textAlign:"center",children:[(0,e.jsx)(n.so.Item,{basis:"50%",textAlign:"center",children:(0,e.jsx)(n.$n,{fontSize:"2rem",color:"grey",inline:!0,icon:"caret-square-right",style:{border:"4px solid #777","border-style":"outset"},onClick:function(){return l("togglesafeties")}})}),(0,e.jsxs)(n.so.Item,{basis:"50%",textAlign:"center",children:[(0,e.jsx)(n.In,{name:"circle",color:u?"black":"red",mr:2}),(0,e.jsx)(n.In,{name:"circle",color:u?"green":"black"})]})]})]})]})},g=function(f){return(0,e.jsx)(n.IC,{children:"Contents are currently being decontaminated. Please wait."})},d=function(f){return(0,e.jsx)(n.IC,{danger:!0,children:"Unit chamber is too contaminated to continue usage. Please call for a qualified individual to perform maintenance."})}},67186:function(S,y,t){"use strict";t.r(y),t.d(y,{SupermatterMonitor:function(){return b},SupermatterMonitorContent:function(){return g}});var e=t(88095),a=t(5229),n=t(33854),r=t(4413),o=t(92514),m=t(84905),b=function(v){return(0,e.jsx)(m.p8,{width:600,height:400,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsx)(g,{})})})},g=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=u.active;return h?(0,e.jsx)(f,{}):(0,e.jsx)(d,{})},d=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=u.supermatters;return(0,e.jsx)(o.wn,{title:"Supermatters Detected",buttons:(0,e.jsx)(o.$n,{content:"Refresh",icon:"sync",onClick:function(){return c("refresh")}}),children:(0,e.jsx)(o.so,{wrap:"wrap",children:h.map(function(x,j){return(0,e.jsx)(o.so.Item,{basis:"49%",grow:j%2,children:(0,e.jsx)(o.wn,{title:x.area_name+" (#"+x.uid+")",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"Integrity",children:[x.integrity," %"]}),(0,e.jsx)(o.Ki.Item,{label:"Options",children:(0,e.jsx)(o.$n,{icon:"eye",content:"View Details",onClick:function(){return c("set",{set:x.uid})}})})]})})},j)})})})},f=function(v){var l=(0,r.Oc)(),c=l.act,u=l.data,h=u.SM_area,x=u.SM_integrity,j=u.SM_power,p=u.SM_ambienttemp,_=u.SM_ambientpressure,E=u.SM_EPR,I=u.SM_gas_O2,O=u.SM_gas_CO2,M=u.SM_gas_N2,D=u.SM_gas_PH,A=u.SM_gas_N2O;return(0,e.jsx)(o.wn,{title:(0,n.Sn)(h),buttons:(0,e.jsx)(o.$n,{icon:"arrow-left",content:"Return to Menu",onClick:function(){return c("clear")}}),children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Core Integrity",children:(0,e.jsx)(o.z2,{animated:!0,value:x,minValue:0,maxValue:100,ranges:{good:[100,100],average:[50,100],bad:[-1/0,50]}})}),(0,e.jsx)(o.Ki.Item,{label:"Relative EER",children:(0,e.jsx)(o.az,{color:j>300&&"bad"||j>150&&"average"||"good",children:(0,e.jsx)(o.zv,{format:function(B){return(0,a.LI)(B,2)+" MeV/cm\xB3"},value:j})})}),(0,e.jsx)(o.Ki.Item,{label:"Temperature",children:(0,e.jsx)(o.az,{color:p>5e3&&"bad"||p>4e3&&"average"||"good",children:(0,e.jsx)(o.zv,{format:function(B){return(0,a.LI)(B,2)+" K"},value:p})})}),(0,e.jsx)(o.Ki.Item,{label:"Pressure",children:(0,e.jsx)(o.az,{color:_>1e4&&"bad"||_>5e3&&"average"||"good",children:(0,e.jsx)(o.zv,{format:function(B){return(0,a.LI)(B,2)+" kPa"},value:_})})}),(0,e.jsx)(o.Ki.Item,{label:"Chamber EPR",children:(0,e.jsx)(o.az,{color:E>4&&"bad"||E>1&&"average"||"good",children:(0,e.jsx)(o.zv,{format:function(B){return(0,a.LI)(B,2)},value:E})})}),(0,e.jsx)(o.Ki.Item,{label:"Gas Composition",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"O\xB2",children:[(0,e.jsx)(o.zv,{value:I}),"%"]}),(0,e.jsxs)(o.Ki.Item,{label:"CO\xB2",children:[(0,e.jsx)(o.zv,{value:O}),"%"]}),(0,e.jsxs)(o.Ki.Item,{label:"N\xB2",children:[(0,e.jsx)(o.zv,{value:M}),"%"]}),(0,e.jsxs)(o.Ki.Item,{label:"PH",children:[(0,e.jsx)(o.zv,{value:D}),"%"]}),(0,e.jsxs)(o.Ki.Item,{label:"N\xB2O",children:[(0,e.jsx)(o.zv,{value:A}),"%"]})]})})]})})}},85308:function(S,y,t){"use strict";t.r(y),t.d(y,{SupplyConsole:function(){return v}});var e=t(88095),a=t(11358),n=t(28763),r=t(44583),o=t(4413),m=t(92514),b=t(24158),g=t(5425),d=t(84905),f=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=E.supply_points,O=j.args,M=O.name,D=O.cost,A=O.manifest,B=O.ref,U=O.random;return(0,e.jsx)(m.wn,{width:"400px",level:2,m:"-1rem",pb:"1rem",title:M,buttons:(0,e.jsx)(m.$n,{icon:"shopping-cart",content:"Buy - "+D+" points",disabled:D>I,onClick:function(){return _("request_crate",{ref:B})}}),children:(0,e.jsx)(m.wn,{title:"Contains"+(U?" any "+U+" of:":""),scrollable:!0,height:"200px",children:A.map(function(L){return(0,e.jsx)(m.az,{children:L},L)})})})},v=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data;return(0,g.modalRegisterBodyOverride)("view_crate",f),(0,e.jsx)(d.p8,{width:700,height:620,children:(0,e.jsxs)(d.p8.Content,{children:[(0,e.jsx)(g.ComplexModal,{maxWidth:"100%"}),(0,e.jsxs)(m.wn,{title:"Supply Records",children:[(0,e.jsx)(l,{}),(0,e.jsx)(c,{})]})]})})},l=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=E.supply_points,O=E.shuttle,M=E.shuttle_auth,D=null,A=!1;return M&&(O.launch===1&&O.mode===0?D=(0,e.jsx)(m.$n,{icon:"rocket",content:"Send Away",onClick:function(){return _("send_shuttle",{mode:"send_away"})}}):O.launch===2&&(O.mode===3||O.mode===1)?D=(0,e.jsx)(m.$n,{icon:"ban",content:"Cancel Launch",onClick:function(){return _("send_shuttle",{mode:"cancel_shuttle"})}}):O.launch===1&&O.mode===5&&(D=(0,e.jsx)(m.$n,{icon:"rocket",content:"Send Shuttle",onClick:function(){return _("send_shuttle",{mode:"send_to_station"})}})),O.force&&(A=!0)),(0,e.jsxs)(m.wn,{children:[(0,e.jsx)(m.Ki,{children:(0,e.jsx)(m.Ki.Item,{label:"Supply Points",children:(0,e.jsx)(m.zv,{value:I})})}),(0,e.jsx)(m.wn,{level:2,title:"Supply Shuttle",mt:2,children:(0,e.jsxs)(m.Ki,{children:[(0,e.jsx)(m.Ki.Item,{label:"Location",buttons:(0,e.jsxs)(e.Fragment,{children:[D,A?(0,e.jsx)(m.$n,{icon:"exclamation-triangle",content:"Force Launch",onClick:function(){return _("send_shuttle",{mode:"force_shuttle"})}}):null]}),children:O.location}),(0,e.jsx)(m.Ki.Item,{label:"Engine",children:O.engine}),O.mode===4?(0,e.jsx)(m.Ki.Item,{label:"ETA",children:O.time>1?(0,b.fU)(O.time):"LATE"}):null]})})]})},c=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=E.order_auth,O=(0,r.useState)(0),M=O[0],D=O[1];return(0,e.jsxs)(m.wn,{title:"Menu",children:[(0,e.jsxs)(m.tU,{children:[(0,e.jsx)(m.tU.Tab,{icon:"box",selected:M===0,onClick:function(){return D(0)},children:"Request"}),(0,e.jsx)(m.tU.Tab,{icon:"check-circle-o",selected:M===1,onClick:function(){return D(1)},children:"Accepted"}),(0,e.jsx)(m.tU.Tab,{icon:"circle-o",selected:M===2,onClick:function(){return D(2)},children:"Requests"}),(0,e.jsx)(m.tU.Tab,{icon:"book",selected:M===3,onClick:function(){return D(3)},children:"Order history"}),(0,e.jsx)(m.tU.Tab,{icon:"book",selected:M===4,onClick:function(){return D(4)},children:"Export history"})]}),M===0?(0,e.jsx)(u,{}):null,M===1?(0,e.jsx)(h,{mode:"Approved"}):null,M===2?(0,e.jsx)(h,{mode:"Requested"}):null,M===3?(0,e.jsx)(h,{mode:"All"}):null,M===4?(0,e.jsx)(x,{}):null]})},u=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=E.categories,O=E.supply_packs,M=E.contraband,D=E.supply_points,A=(0,r.useState)(null),B=A[0],U=A[1],L=(0,n.L)([(0,a.pb)(function(k){return k.group===B}),(0,a.pb)(function(k){return!k.contraband||M}),(0,a.Ul)(function(k){return k.name}),(0,a.Ul)(function(k){return k.cost>D})])(O);return(0,e.jsx)(m.wn,{level:2,children:(0,e.jsxs)(m.BJ,{children:[(0,e.jsx)(m.BJ.Item,{basis:"25%",children:(0,e.jsx)(m.wn,{title:"Categories",scrollable:!0,fill:!0,height:"290px",children:I.map(function(k){return(0,e.jsx)(m.$n,{fluid:!0,content:k,selected:k===B,onClick:function(){return U(k)}},k)})})}),(0,e.jsx)(m.BJ.Item,{grow:1,ml:2,children:(0,e.jsx)(m.wn,{title:"Contents",scrollable:!0,fill:!0,height:"290px",children:L.map(function(k){return(0,e.jsx)(m.az,{children:(0,e.jsxs)(m.BJ,{align:"center",justify:"flex-start",children:[(0,e.jsx)(m.BJ.Item,{basis:"70%",children:(0,e.jsx)(m.$n,{fluid:!0,icon:"shopping-cart",ellipsis:!0,content:k.name,color:k.cost>D?"red":null,onClick:function(){return _("request_crate",{ref:k.ref})}})}),(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(m.$n,{content:"#",color:k.cost>D?"red":null,onClick:function(){return _("request_crate_multi",{ref:k.ref})}})}),(0,e.jsx)(m.BJ.Item,{children:(0,e.jsx)(m.$n,{content:"C",color:k.cost>D?"red":null,onClick:function(){return _("view_crate",{crate:k.ref})}})}),(0,e.jsxs)(m.BJ.Item,{grow:1,children:[k.cost," points"]})]})},k.name)})})})]})})},h=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=j.mode,O=E.orders,M=E.order_auth,D=E.supply_points,A=O.filter(function(B){return B.status===I||I==="All"});return A.length?(0,e.jsxs)(m.wn,{level:2,children:[I==="Requested"&&M?(0,e.jsx)(m.$n,{mt:-1,mb:1,fluid:!0,color:"red",icon:"trash",content:"Clear all requests",onClick:function(){return _("clear_all_requests")}}):null,A.map(function(B,U){return(0,e.jsxs)(m.wn,{title:"Order "+(U+1),buttons:I==="All"&&M?(0,e.jsx)(m.$n,{color:"red",icon:"trash",content:"Delete Record",onClick:function(){return _("delete_order",{ref:B.ref})}}):null,children:[(0,e.jsxs)(m.Ki,{children:[B.entries.map(function(L,k){return L.entry?(0,e.jsx)(m.Ki.Item,{label:L.field,buttons:M?(0,e.jsx)(m.$n,{icon:"pen",content:"Edit",onClick:function(){_("edit_order_value",{ref:B.ref,edit:L.field,default:L.entry})}}):null,children:L.entry},k):null}),I==="All"?(0,e.jsx)(m.Ki.Item,{label:"Status",children:B.status}):null]}),M&&I==="Requested"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.$n,{icon:"check",content:"Approve",disabled:B.cost>D,onClick:function(){return _("approve_order",{ref:B.ref})}}),(0,e.jsx)(m.$n,{icon:"times",content:"Deny",onClick:function(){return _("deny_order",{ref:B.ref})}})]}):null]},U)})]}):(0,e.jsx)(m.wn,{level:2,children:"No orders found."})},x=function(j){var p=(0,o.Oc)(),_=p.act,E=p.data,I=E.receipts,O=E.order_auth;return I.length?(0,e.jsx)(m.wn,{level:2,children:I.map(function(M,D){return(0,e.jsxs)(m.wn,{children:[(0,e.jsxs)(m.Ki,{children:[M.title.map(function(A){return(0,e.jsx)(m.Ki.Item,{label:A.field,buttons:O?(0,e.jsx)(m.$n,{icon:"pen",content:"Edit",onClick:function(){return _("export_edit",{ref:M.ref,edit:A.field,default:A.entry})}}):null,children:A.entry},A.field)}),M.error?(0,e.jsx)(m.Ki.Item,{labelColor:"red",label:"Error",children:M.error}):M.contents.map(function(A,B){return(0,e.jsxs)(m.Ki.Item,{label:A.object,buttons:O?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.$n,{icon:"pen",content:"Edit",onClick:function(){return _("export_edit_field",{ref:M.ref,index:B+1,edit:"meow",default:A.object})}}),(0,e.jsx)(m.$n,{icon:"trash",color:"red",content:"Delete",onClick:function(){return _("export_delete_field",{ref:M.ref,index:B+1})}})]}):null,children:[A.quantity,"x -> ",A.value," points"]},B)})]}),O?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(m.$n,{mt:1,icon:"plus",content:"Add Item To Record",onClick:function(){return _("export_add_field",{ref:M.ref})}}),(0,e.jsx)(m.$n,{icon:"trash",content:"Delete Record",onClick:function(){return _("export_delete",{ref:M.ref})}})]}):null]},D)})}):(0,e.jsx)(m.wn,{level:2,children:"No receipts found."})}},64460:function(S,y,t){"use strict";t.r(y),t.d(y,{TEGenerator:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(d){var f=(0,n.Oc)().data,v=f.totalOutput,l=f.maxTotalOutput,c=f.thermalOutput,u=f.primary,h=f.secondary;return(0,e.jsx)(m.p8,{width:550,height:310,children:(0,e.jsxs)(m.p8.Content,{children:[(0,e.jsx)(r.wn,{title:"Status",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Total Output",children:(0,e.jsx)(r.z2,{value:v,maxValue:l,children:(0,o.d5)(v)})}),(0,e.jsx)(r.Ki.Item,{label:"Thermal Output",children:(0,o.d5)(c)})]})}),u&&h?(0,e.jsxs)(r.so,{spacing:1,children:[(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(g,{name:"Primary Circulator",values:u})}),(0,e.jsx)(r.so.Item,{shrink:1,grow:1,children:(0,e.jsx)(g,{name:"Secondary Circulator",values:h})})]}):(0,e.jsx)(r.az,{color:"bad",children:"Warning! Both circulators must be connected in order to operate this machine."})]})})},g=function(d){var f=d.name,v=d.values,l=v.dir,c=v.output,u=v.flowCapacity,h=v.inletPressure,x=v.inletTemperature,j=v.outletPressure,p=v.outletTemperature;return(0,e.jsx)(r.wn,{title:f+" ("+l+")",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Turbine Output",children:(0,o.d5)(c)}),(0,e.jsxs)(r.Ki.Item,{label:"Flow Capacity",children:[(0,a.LI)(u,2),"%"]}),(0,e.jsx)(r.Ki.Item,{label:"Inlet Pressure",children:(0,o.QL)(h*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Inlet Temperature",children:[(0,a.LI)(x,2)," K"]}),(0,e.jsx)(r.Ki.Item,{label:"Outlet Pressure",children:(0,o.QL)(j*1e3,0,"Pa")}),(0,e.jsxs)(r.Ki.Item,{label:"Outlet Temperature",children:[(0,a.LI)(p,2)," K"]})]})})}},62646:function(S,y,t){"use strict";t.r(y),t.d(y,{Tank:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.connected,v=d.showToggle,l=v===void 0?!0:v,c=d.maskConnected,u=d.tankPressure,h=d.releasePressure,x=d.defaultReleasePressure,j=d.minReleasePressure,p=d.maxReleasePressure;return(0,e.jsx)(r.p8,{width:400,height:320,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:!!l&&(0,e.jsx)(n.$n,{icon:f?"air-freshener":"lock-open",selected:f,disabled:!c,content:"Mask Release Valve",onClick:function(){return g("toggle")}}),children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Mask Connected",children:c?"Yes":"No"})})}),(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Pressure",children:(0,e.jsx)(n.z2,{value:u/1013,ranges:{good:[.35,1/0],average:[.15,.35],bad:[-1/0,.15]},children:d.tankPressure+" kPa"})}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(n.$n,{icon:"fast-backward",disabled:h===j,onClick:function(){return g("pressure",{pressure:"min"})}}),(0,e.jsx)(n.Q7,{animated:!0,value:parseFloat(h),width:"65px",unit:"kPa",minValue:j,maxValue:p,onChange:function(_,E){return g("pressure",{pressure:E})}}),(0,e.jsx)(n.$n,{icon:"fast-forward",disabled:h===p,onClick:function(){return g("pressure",{pressure:"max"})}}),(0,e.jsx)(n.$n,{icon:"undo",content:"",disabled:h===x,onClick:function(){return g("pressure",{pressure:"reset"})}})]})]})})]})})}},87867:function(S,y,t){"use strict";t.r(y),t.d(y,{TankDispenser:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.plasma,v=d.oxygen;return(0,e.jsx)(r.p8,{width:275,height:103,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Phoron",buttons:(0,e.jsx)(n.$n,{icon:f?"square":"square-o",content:"Dispense",disabled:!f,onClick:function(){return g("plasma")}}),children:f}),(0,e.jsx)(n.Ki.Item,{label:"Oxygen",buttons:(0,e.jsx)(n.$n,{icon:v?"square":"square-o",content:"Dispense",disabled:!v,onClick:function(){return g("oxygen")}}),children:v})]})})})})}},32481:function(S,y,t){"use strict";t.r(y),t.d(y,{TelecommsLogBrowser:function(){return m}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.universal_translate,h=c.network,x=c.temp,j=c.servers,p=c.selectedServer;return(0,e.jsx)(o.p8,{width:575,height:450,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[x?(0,e.jsxs)(r.IC,{danger:x.color==="bad",warning:x.color!=="bad",children:[(0,e.jsx)(r.az,{display:"inline-box",verticalAlign:"middle",children:x.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return l("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}):null,(0,e.jsx)(r.wn,{title:"Network Control",children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"search",content:"Refresh",onClick:function(){return l("scan")}}),(0,e.jsx)(r.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:j.length===0,onClick:function(){return l("release")}})]}),children:(0,e.jsx)(r.$n,{content:h,icon:"pen",onClick:function(){return l("network")}})})})}),p?(0,e.jsx)(g,{network:h,server:p,universal_translate:u}):(0,e.jsx)(b,{network:h,servers:j})]})})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=f.network,h=f.servers;return!h||!h.length?(0,e.jsxs)(r.wn,{title:"Detected Telecommunications Servers",children:[(0,e.jsx)(r.az,{color:"bad",children:"No servers detected."}),(0,e.jsx)(r.$n,{fluid:!0,content:"Scan",icon:"search",onClick:function(){return l("scan")}})]}):(0,e.jsx)(r.wn,{title:"Detected Telecommunications Servers",children:(0,e.jsx)(r.Ki,{children:h.map(function(x){return(0,e.jsx)(r.Ki.Item,{label:x.name+" ("+x.id+")",children:(0,e.jsx)(r.$n,{content:"View",icon:"eye",onClick:function(){return l("view",{id:x.id})}})},x.id)})})})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=f.network,h=f.server,x=f.universal_translate;return(0,e.jsxs)(r.wn,{title:"Server ("+h.id+")",buttons:(0,e.jsx)(r.$n,{content:"Return",icon:"undo",onClick:function(){return l("mainmenu")}}),children:[(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Total Recorded Traffic",children:h.totalTraffic>=1024?(0,a.LI)(h.totalTraffic/1024)+" Terrabytes":h.totalTraffic+" Gigabytes"})}),(0,e.jsx)(r.wn,{title:"Stored Logs",mt:"4px",children:(0,e.jsx)(r.so,{wrap:"wrap",children:!h.logs||!h.logs.length?"No Logs Detected.":h.logs.map(function(j){return(0,e.jsx)(r.so.Item,{m:"2px",basis:"49%",grow:j.id%2,children:(0,e.jsx)(r.wn,{title:x||j.parameters.uspeech||j.parameters.intelligible||j.input_type==="Execution Error"?j.input_type:"Audio File",buttons:(0,e.jsx)(r.$n.Confirm,{confirmContent:"Delete Log?",color:"bad",icon:"trash",confirmIcon:"trash",onClick:function(){return l("delete",{id:j.id})}}),children:j.input_type==="Execution Error"?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Data type",children:"Error"}),(0,e.jsx)(r.Ki.Item,{label:"Output",children:j.parameters.message}),(0,e.jsx)(r.Ki.Item,{label:"Delete",children:(0,e.jsx)(r.$n,{icon:"trash",onClick:function(){return l("delete",{id:j.id})}})})]}):x||j.parameters.uspeech||j.parameters.intelligible?(0,e.jsx)(d,{log:j}):(0,e.jsx)(d,{error:!0})})},j.id)})})})]})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=f.log,h=f.error,x=u&&u.parameters||{none:"none"},j=x.timecode,p=x.name,_=x.race,E=x.job,I=x.message;return h?(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:j}),(0,e.jsx)(r.Ki.Item,{label:"Source",children:"Unidentifiable"}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:_}),(0,e.jsx)(r.Ki.Item,{label:"Contents",children:"Unintelligible"})]}):(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Time Recieved",children:j}),(0,e.jsxs)(r.Ki.Item,{label:"Source",children:[p," (Job: ",E,")"]}),(0,e.jsx)(r.Ki.Item,{label:"Class",children:_}),(0,e.jsx)(r.Ki.Item,{label:"Contents",className:"LabeledList__breakContents",children:I})]})}},25058:function(S,y,t){"use strict";t.r(y),t.d(y,{TelecommsMachineBrowser:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.network,l=f.temp,c=f.machinelist,u=f.selectedMachine;return(0,e.jsx)(r.p8,{width:575,height:450,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[l?(0,e.jsxs)(n.IC,{danger:l.color==="bad",warning:l.color!=="bad",children:[(0,e.jsx)(n.az,{display:"inline-box",verticalAlign:"middle",children:l.text}),(0,e.jsx)(n.$n,{icon:"times-circle",float:"right",onClick:function(){return d("cleartemp")}}),(0,e.jsx)(n.az,{clear:"both"})]}):null,(0,e.jsx)(n.wn,{title:"Network Control",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Network",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return d("scan")}}),(0,e.jsx)(n.$n,{color:"bad",icon:"exclamation-triangle",content:"Flush Buffer",disabled:c.length===0,onClick:function(){return d("release")}})]}),children:(0,e.jsx)(n.$n,{content:v,icon:"pen",onClick:function(){return d("network")}})})})}),c&&c.length?(0,e.jsx)(m,{title:u?u.name+" ("+u.id+")":"Detected Network Entities",list:u?u.links:c,showBack:u}):(0,e.jsx)(n.wn,{title:"No Devices Found",children:(0,e.jsx)(n.$n,{icon:"search",content:"Probe Network",onClick:function(){return d("scan")}})})]})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=b.list,l=b.title,c=b.showBack;return(0,e.jsxs)(n.wn,{title:l,buttons:c&&(0,e.jsx)(n.$n,{icon:"undo",content:"Back to Main Menu",onClick:function(){return d("mainmenu")}}),children:[(0,e.jsx)(n.az,{color:"label",children:(0,e.jsx)("u",{children:"Linked entities"})}),(0,e.jsx)(n.Ki,{children:v.length?v.map(function(u){return(0,e.jsx)(n.Ki.Item,{label:u.name+" ("+u.id+")",children:(0,e.jsx)(n.$n,{content:"View",icon:"eye",onClick:function(){return d("view",{id:u.id})}})},u.id)}):(0,e.jsx)(n.Ki.Item,{color:"bad",children:"No links detected."})})]})}},45760:function(S,y,t){"use strict";t.r(y),t.d(y,{TelecommsMultitoolMenu:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(82489),m=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.temp,u=l.on,h=l.id,x=l.network,j=l.autolinkers,p=l.shadowlink,_=l.options,E=l.linked,I=l.filter,O=l.multitool,M=l.multitool_buffer;return(0,e.jsx)(r.p8,{width:520,height:540,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(o.TemporaryNotice,{}),(0,e.jsx)(b,{}),(0,e.jsx)(g,{options:_})]})})},b=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=l.temp,u=l.on,h=l.id,x=l.network,j=l.autolinkers,p=l.shadowlink,_=l.options,E=l.linked,I=l.filter,O=l.multitool,M=l.multitool_buffer;return(0,e.jsxs)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:"power-off",selected:u,content:u?"On":"Off",onClick:function(){return v("toggle")}}),children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Identification String",children:(0,e.jsx)(n.$n,{icon:"pen",content:h,onClick:function(){return v("id")}})}),(0,e.jsx)(n.Ki.Item,{label:"Network",children:(0,e.jsx)(n.$n,{icon:"pen",content:x,onClick:function(){return v("network")}})}),(0,e.jsx)(n.Ki.Item,{label:"Prefabrication",children:j?"TRUE":"FALSE"}),p?(0,e.jsx)(n.Ki.Item,{label:"Shadow Link",children:"Active."}):null,O?(0,e.jsxs)(n.Ki.Item,{label:"Multitool Buffer",children:[M?(0,e.jsxs)(e.Fragment,{children:[M.name," (",M.id,")"]}):null,(0,e.jsx)(n.$n,{color:M?"green":null,content:M?"Link ("+M.id+")":"Add Machine",icon:M?"link":"plus",onClick:M?function(){return v("link")}:function(){return v("buffer")}}),M?(0,e.jsx)(n.$n,{color:"red",content:"Flush",icon:"trash",onClick:function(){return v("flush")}}):null]}):null]}),(0,e.jsx)(n.wn,{title:"Linked network Entities",mt:1,children:(0,e.jsx)(n.Ki,{children:E.map(function(D){return(0,e.jsx)(n.Ki.Item,{label:D.ref+" "+D.name+" ("+D.id+")",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",onClick:function(){return v("unlink",{unlink:D.index})}})},D.ref)})})}),(0,e.jsxs)(n.wn,{title:"Filtering Frequencies",mt:1,children:[I.map(function(D){return(0,e.jsx)(n.$n.Confirm,{content:D.name+" GHz",confirmContent:"Delete?",confirmColor:"red",confirmIcon:"trash",onClick:function(){return v("delete",{delete:D.freq})}},D.index)}),!I||I.length===0?(0,e.jsx)(n.az,{color:"label",children:"No filters."}):null]})]})},g=function(d){var f=(0,a.Oc)(),v=f.act,l=f.data,c=d.options,u=c.use_listening_level,h=c.use_broadcasting,x=c.use_receiving,j=c.listening_level,p=c.broadcasting,_=c.receiving,E=c.use_change_freq,I=c.change_freq,O=c.use_broadcast_range,M=c.use_receive_range,D=c.range,A=c.minRange,B=c.maxRange;return!u&&!h&&!x&&!E&&!O&&!M?(0,e.jsx)(n.wn,{title:"No Options Found"}):(0,e.jsx)(n.wn,{title:"Options",children:(0,e.jsxs)(n.Ki,{children:[u?(0,e.jsx)(n.Ki.Item,{label:"Signal Locked to Station",children:(0,e.jsx)(n.$n,{icon:j?"lock-closed":"lock-open",content:j?"Yes":"No",onClick:function(){return v("change_listening")}})}):null,h?(0,e.jsx)(n.Ki.Item,{label:"Broadcasting",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:p,content:p?"Yes":"No",onClick:function(){return v("broadcast")}})}):null,x?(0,e.jsx)(n.Ki.Item,{label:"Receving",children:(0,e.jsx)(n.$n,{icon:"power-off",selected:_,content:_?"Yes":"No",onClick:function(){return v("receive")}})}):null,E?(0,e.jsx)(n.Ki.Item,{label:"Change Signal Frequency",children:(0,e.jsx)(n.$n,{icon:"wave-square",selected:!!I,content:I?"Yes ("+I+")":"No",onClick:function(){return v("change_freq")}})}):null,O||M?(0,e.jsx)(n.Ki.Item,{label:(O?"Broadcast":"Receive")+" Range",children:(0,e.jsx)(n.Q7,{value:D,minValue:A,maxValue:B,unit:"gigameters",stepPixelSize:4,format:function(U){return U+1},onDrag:function(U,L){return v("range",{range:L})}})}):null]})})}},2268:function(S,y,t){"use strict";t.r(y),t.d(y,{Teleporter:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.locked_name,v=d.station_connected,l=d.hub_connected,c=d.calibrated,u=d.teleporter_on;return(0,e.jsx)(r.p8,{width:300,height:200,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Target",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"bullseye",onClick:function(){return g("select_target")},content:f})}),(0,e.jsx)(n.Ki.Item,{label:"Calibrated",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:c,color:c?"good":"bad",onClick:function(){return g("test_fire")},content:c?"Accurate":"Test Fire"})}),(0,e.jsx)(n.Ki.Item,{label:"Teleporter",children:(0,e.jsx)(n.$n.Checkbox,{fluid:!0,checked:u,color:u?"good":"bad",onClick:function(){return g("toggle_on")},content:u?"Online":"OFFLINE"})}),(0,e.jsx)(n.Ki.Item,{label:"Station",children:v?"Connected":"Not Connected"}),(0,e.jsx)(n.Ki.Item,{label:"Hub",children:l?"Connected":"Not Connected"})]})})})})}},33756:function(S,y,t){"use strict";t.r(y),t.d(y,{TelesciConsole:function(){return m},TelesciConsoleContent:function(){return g}});var e=t(88095),a=t(11358),n=t(4413),r=t(92514),o=t(84905),m=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.noTelepad;return(0,e.jsx)(o.p8,{width:400,height:450,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:c&&(0,e.jsx)(b,{})||(0,e.jsx)(g,{})})})},b=function(d){return(0,e.jsxs)(r.wn,{title:"Error",color:"bad",children:["No telepad located.",(0,e.jsx)("br",{}),"Please add telepad data."]})},g=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.insertedGps,u=l.rotation,h=l.currentZ,x=l.cooldown,j=l.crystalCount,p=l.maxCrystals,_=l.maxPossibleDistance,E=l.maxAllowedDistance,I=l.distance,O=l.tempMsg,M=l.sectorOptions,D=l.lastTeleData;return(0,e.jsxs)(r.wn,{title:"Telepad Controls",buttons:(0,e.jsx)(r.$n,{icon:"eject",disabled:!c,onClick:function(){return v("ejectGPS")},content:"Eject GPS"}),children:[(0,e.jsx)(r.IC,{info:!0,children:x&&(0,e.jsxs)(r.az,{children:["Telepad is recharging. Please wait"," ",(0,e.jsx)(r.zv,{value:x})," seconds."]})||(0,e.jsx)(r.az,{children:O})}),(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Bearing",children:(0,e.jsx)(r.Q7,{fluid:!0,value:u,format:function(A){return A+"\xB0"},step:1,minValue:-900,maxValue:900,onDrag:function(A,B){return v("setrotation",{val:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Distance",children:(0,e.jsx)(r.Q7,{fluid:!0,value:I,format:function(A){return A+"/"+E+" m"},minValue:0,maxValue:E,step:1,stepPixelSize:4,onDrag:function(A,B){return v("setdistance",{val:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sector",children:(0,a.Ul)(function(A){return Number(A)})(M).map(function(A){return(0,e.jsx)(r.$n,{icon:"check-circle",content:A,selected:h===A,onClick:function(){return v("setz",{setz:A})}},A)})}),(0,e.jsxs)(r.Ki.Item,{label:"Controls",children:[(0,e.jsx)(r.$n,{icon:"share",iconRotation:-90,onClick:function(){return v("send")},content:"Send"}),(0,e.jsx)(r.$n,{icon:"share",iconRotation:90,onClick:function(){return v("receive")},content:"Receive"}),(0,e.jsx)(r.$n,{icon:"sync",iconRotation:90,onClick:function(){return v("recal")},content:"Recalibrate"})]})]}),D&&(0,e.jsx)(r.wn,{mt:1,children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Telepad Location",children:[D.src_x,", ",D.src_y]}),(0,e.jsxs)(r.Ki.Item,{label:"Distance",children:[D.distance,"m"]}),(0,e.jsxs)(r.Ki.Item,{label:"Transit Time",children:[D.time," secs"]})]})})||(0,e.jsx)(r.wn,{mt:1,children:"No teleport data found."}),(0,e.jsxs)(r.wn,{children:["Crystals: ",j," / ",p]})]})}},27418:function(S,y,t){"use strict";t.r(y),t.d(y,{TextInputModal:function(){return v},removeAllSkiplines:function(){return f},sanitizeMultiline:function(){return d}});var e=t(88095),a=t(44583),n=t(61652),r=t(4413),o=t(92514),m=t(84905),b=t(12035),g=t(18513),d=function(c){return c.replace(/(\n|\r\n){3,}/,"\n\n")},f=function(c){return c.replace(/[\r\n]+/,"")},v=function(c){var u=(0,r.Oc)(),h=u.act,x=u.data,j=x.large_buttons,p=x.max_length,_=x.message,E=_===void 0?"":_,I=x.multiline,O=x.placeholder,M=O===void 0?"":O,D=x.timeout,A=x.title,B=(0,a.useState)(M||""),U=B[0],L=B[1],k=function(H){if(H!==U){var N=I?d(H):f(H);L(N)}},Y=I||U.length>=30,V=135+(E.length>30?Math.ceil(E.length/4):0)+(Y?75:0)+(E.length&&j?5:0);return(0,e.jsxs)(m.p8,{title:A,width:325,height:V,children:[D&&(0,e.jsx)(g.Loader,{value:D}),(0,e.jsx)(m.p8.Content,{onKeyDown:function(H){var N=window.event?H.which:H.keyCode;N===n.Ri&&(!Y||!H.shiftKey)&&h("submit",{entry:U}),N===n.s6&&h("cancel")},children:(0,e.jsx)(o.wn,{fill:!0,children:(0,e.jsxs)(o.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.az,{color:"label",children:E})}),(0,e.jsx)(o.BJ.Item,{grow:!0,children:(0,e.jsx)(l,{input:U,onType:k})}),(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(b.InputButtons,{input:U,message:U.length+"/"+p})})]})})})]})},l=function(c){var u=(0,r.Oc)(),h=u.act,x=u.data,j=x.max_length,p=x.multiline,_=c.input,E=c.onType,I=p||_.length>=30;return(0,e.jsx)(o.fs,{autoFocus:!0,autoSelect:!0,height:p||_.length>=30?"100%":"1.8rem",maxLength:j,onEscape:function(){return h("cancel")},onEnter:function(O){I&&O.shiftKey||(O.preventDefault(),h("submit",{entry:_}))},onInput:function(O,M){return E(M)},placeholder:"Type something...",value:_})}},98143:function(S,y,t){"use strict";t.r(y),t.d(y,{TimeClock:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=t(89863),b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.department_hours,c=v.user_name,u=v.card,h=v.assignment,x=v.job_datum,j=v.allow_change_job,p=v.job_choices;return(0,e.jsx)(o.p8,{width:500,height:520,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsxs)(r.wn,{title:"OOC",children:[(0,e.jsx)(r.IC,{children:"OOC Note: PTO acquired is account-wide and shared across all characters. Info listed below is not IC information."}),(0,e.jsx)(r.wn,{level:2,title:"Time Off Balance for "+c,children:(0,e.jsx)(r.Ki,{children:Object.keys(l).map(function(_){return(0,e.jsxs)(r.Ki.Item,{label:_,color:l[_]>6?"good":l[_]>1?"average":"bad",children:[(0,a.Mg)(l[_],1)," ",l[_]===1?"hour":"hours"]},_)})})})]}),(0,e.jsx)(r.wn,{title:"Employee Info",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Employee ID",children:(0,e.jsx)(r.$n,{fluid:!0,icon:"user",onClick:function(){return f("id")},children:u||"Insert ID"})}),!!x&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.Ki.Item,{label:"Rank",children:(0,e.jsx)(r.az,{backgroundColor:x.selection_color,p:.8,children:(0,e.jsxs)(r.so,{justify:"space-between",align:"center",children:[(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{ml:1,children:(0,e.jsx)(m.RankIcon,{color:"white",rank:x.title})})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.az,{fontSize:1.5,inline:!0,mr:1,children:x.title})})]})})}),(0,e.jsx)(r.Ki.Item,{label:"Departments",children:x.departments}),(0,e.jsx)(r.Ki.Item,{label:"Pay Scale",children:x.economic_modifier}),(0,e.jsx)(r.Ki.Item,{label:"PTO Elegibility",children:x.timeoff_factor>0&&(0,e.jsxs)(r.az,{children:["Earns PTO - ",x.pto_department]})||x.timeoff_factor<0&&(0,e.jsxs)(r.az,{children:["Requires PTO - ",x.pto_department]})||(0,e.jsx)(r.az,{children:"Neutral"})})]})]})}),!!(j&&x&&x.timeoff_factor!==0&&h!=="Dismissed")&&(0,e.jsx)(r.wn,{title:"Employment Actions",children:x.timeoff_factor>0&&(l[x.pto_department]>0&&(0,e.jsx)(r.$n,{fluid:!0,icon:"exclamation-triangle",onClick:function(){return f("switch-to-offduty")},children:"Go Off-Duty"})||(0,e.jsx)(r.az,{color:"bad",children:"Warning: You do not have enough accrued time off to go off-duty."}))||Object.keys(p).length&&Object.keys(p).map(function(_){var E=p[_];return E.map(function(I){return(0,e.jsx)(r.$n,{icon:"suitcase",onClick:function(){return f("switch-to-onduty-rank",{"switch-to-onduty-rank":_,"switch-to-onduty-assignment":I})},children:I},I)})})||(0,e.jsx)(r.az,{color:"bad",children:"No Open Positions - See Head Of Personnel"})})]})})}},6048:function(S,y,t){"use strict";t.r(y),t.d(y,{TraitDescription:function(){return b},TraitSelection:function(){return m},TraitTutorial:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data;return(0,e.jsx)(r.p8,{width:804,height:426,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{title:"Guide to Custom Traits",children:(0,e.jsx)(m,{})})})})},m=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=v.names,c=v.selection;return(0,e.jsxs)(n.BJ,{children:[(0,e.jsx)(n.BJ.Item,{shrink:!0,children:(0,e.jsx)(n.wn,{title:"Trait Selection",children:(0,e.jsx)(n.tU,{vertical:!0,children:l.map(function(u){return(0,e.jsx)(n.tU.Tab,{selected:u===c,onClick:function(){return f("select_trait",{name:u})},children:(0,e.jsx)(n.az,{inline:!0,children:u})},u)})})})}),(0,e.jsx)(n.BJ.Item,{grow:8,children:c&&(0,e.jsx)(n.wn,{title:c,children:(0,e.jsx)(b,{name:c})})})]})},b=function(g){var d=(0,a.Oc)(),f=d.act,v=d.data,l=g.name,c=v.descriptions,u=v.categories,h=v.tutorials;return(0,e.jsxs)(n.wn,{StackWrap:!0,children:[(0,e.jsx)("b",{children:"Name:"})," ",l,(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Category:"})," ",u[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Description:"})," ",c[l],(0,e.jsx)("br",{}),(0,e.jsx)("b",{children:"Details & How to Use:"}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:h[l]}})]})}},81267:function(S,y,t){"use strict";t.r(y),t.d(y,{TransferValve:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.tank_one,v=d.tank_two,l=d.attached_device,c=d.valve;return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Valve Status",children:(0,e.jsx)(n.$n,{icon:c?"unlock":"lock",content:c?"Open":"Closed",disabled:!f||!v,onClick:function(){return g("toggle")}})})})}),(0,e.jsx)(n.wn,{title:"Assembly",buttons:(0,e.jsx)(n.$n,{textAlign:"center",width:"150px",icon:"cog",content:"Configure Assembly",disabled:!l,onClick:function(){return g("device")}}),children:(0,e.jsx)(n.Ki,{children:l?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:l,disabled:!l,onClick:function(){return g("remove_device")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Assembly"})})}),(0,e.jsx)(n.wn,{title:"Attachment One",children:(0,e.jsx)(n.Ki,{children:f?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:f,disabled:!f,onClick:function(){return g("tankone")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})}),(0,e.jsx)(n.wn,{title:"Attachment Two",children:(0,e.jsx)(n.Ki,{children:v?(0,e.jsx)(n.Ki.Item,{label:"Attachment",children:(0,e.jsx)(n.$n,{icon:"eject",content:v,disabled:!v,onClick:function(){return g("tanktwo")}})}):(0,e.jsx)(n.IC,{textAlign:"center",children:"Attach Tank"})})})]})})}},96734:function(S,y,t){"use strict";t.r(y),t.d(y,{TurbineControl:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(24158),o=t(84905),m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.connected,l=f.compressor_broke,c=f.turbine_broke,u=f.broken,h=f.door_status,x=f.online,j=f.power,p=f.rpm,_=f.temp;return(0,e.jsx)(o.p8,{width:520,height:440,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Turbine Controller",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Status",children:u&&(0,e.jsxs)(n.az,{color:"bad",children:["Setup is broken",(0,e.jsx)(n.$n,{icon:"sync",onClick:function(){return d("reconnect")},content:"Reconnect"})]})||(0,e.jsx)(n.az,{color:x?"good":"bad",children:x&&!l&&!c?"Online":"Offline"})}),(0,e.jsx)(n.Ki.Item,{label:"Compressor",children:l&&(0,e.jsx)(n.az,{color:"bad",children:"Compressor is inoperable."})||c&&(0,e.jsx)(n.az,{color:"bad",children:"Turbine is inoperable."})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n.Checkbox,{checked:x,content:"Compressor Power",onClick:function(){return d(x?"power-off":"power-on")}})})}),(0,e.jsx)(n.Ki.Item,{label:"Vent Doors",children:(0,e.jsx)(n.$n.Checkbox,{checked:h,onClick:function(){return d("doors")},content:h?"Closed":"Open"})})]})}),(0,e.jsx)(n.wn,{title:"Status",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Turbine Speed",children:[u?"--":(0,e.jsx)(n.zv,{value:p})," RPM"]}),(0,e.jsxs)(n.Ki.Item,{label:"Internal Temperature",children:[u?"--":(0,e.jsx)(n.zv,{value:_})," K"]}),(0,e.jsx)(n.Ki.Item,{label:"Generated Power",children:u?"--":(0,e.jsx)(n.zv,{format:function(E){return(0,r.d5)(E)},value:Number(j)})})]})})]})})}},44027:function(S,y,t){"use strict";t.r(y),t.d(y,{Turbolift:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.floors,v=d.doors_open,l=d.fire_mode;return(0,e.jsx)(r.p8,{width:480,height:260+l*25,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.wn,{title:"Floor Selection",className:l?"Section--elevator--fire":null,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:v?"door-open":"door-closed",content:v?l?"Close Doors (SAFETY OFF)":"Doors Open":"Doors Closed",selected:v&&!l,color:l?"red":null,onClick:function(){return g("toggle_doors")}}),(0,e.jsx)(n.$n,{icon:"exclamation-triangle",color:"bad",content:"Emergency Stop",onClick:function(){return g("emergency_stop")}})]}),children:[!l||(0,e.jsx)(n.wn,{className:"Section--elevator--fire",textAlign:"center",title:"FIREFIGHTER MODE ENGAGED"}),(0,e.jsx)(n.so,{wrap:"wrap",children:f.map(function(c){return(0,e.jsx)(n.so.Item,{basis:"100%",children:(0,e.jsxs)(n.so,{align:"center",justify:"space-around",children:[(0,e.jsx)(n.so.Item,{basis:"22%",textAlign:"right",mr:"3px",children:c.label||"Floor #"+c.id}),(0,e.jsx)(n.so.Item,{basis:"8%",textAlign:"left",children:(0,e.jsx)(n.$n,{icon:"circle",color:c.current?"red":c.target?"green":c.queued?"yellow":null,onClick:function(){return g("move_to_floor",{ref:c.ref})}})}),(0,e.jsx)(n.so.Item,{basis:"50%",grow:1,children:c.name})]})},c.id)})})]})})})}},7829:function(S,y,t){"use strict";t.r(y),t.d(y,{GenericUplink:function(){return c},Uplink:function(){return f}});var e=t(88095),a=t(33854),n=t(44583),r=t(4413),o=t(92514),m=t(24158),b=t(84905);function g(){return g=Object.assign||function(h){for(var x=1;x<arguments.length;x++){var j=arguments[x];for(var p in j)Object.prototype.hasOwnProperty.call(j,p)&&(h[p]=j[p])}return h},g.apply(this,arguments)}var d=25,f=function(h){var x=(0,r.Oc)().data,j=(0,n.useState)(0),p=j[0],_=j[1],E=x.telecrystals;return(0,e.jsx)(b.p8,{width:620,height:580,theme:"syndicate",children:(0,e.jsxs)(b.p8.Content,{scrollable:!0,children:[(0,e.jsx)(v,{screen:p,setScreen:_}),p===0&&(0,e.jsx)(c,{currencyAmount:E,currencySymbol:"TC"})||p===1&&(0,e.jsx)(l,{})||(0,e.jsx)(o.wn,{color:"bad",children:"Error"})]})})},v=function(h){var x=(0,r.Oc)(),j=x.act,p=x.data,_=h.screen,E=h.setScreen,I=p.discount_name,O=p.discount_amount,M=p.offer_expiry;return(0,e.jsxs)(o.wn,{children:[(0,e.jsxs)(o.tU,{style:{"border-bottom":"none","margin-bottom":"0"},children:[(0,e.jsx)(o.tU.Tab,{selected:_===0,onClick:function(){return E(0)},children:"Request Items"}),(0,e.jsx)(o.tU.Tab,{selected:_===1,onClick:function(){return E(1)},children:"Exploitable Information"})]}),(0,e.jsx)(o.wn,{title:"Item Discount",level:2,children:O<100&&(0,e.jsxs)(o.az,{children:[I," - ",O,"% off. Offer expires at:"," ",M]})||(0,e.jsx)(o.az,{children:"No items currently discounted."})})]})},l=function(h){var x=(0,r.Oc)(),j=x.act,p=x.data,_=p.exploit,E=p.locked_records;return(0,e.jsx)(o.wn,{title:"Exploitable Information",buttons:_&&(0,e.jsx)(o.$n,{icon:"undo",content:"Back",onClick:function(){return j("view_exploits",{id:0})}}),children:_&&(0,e.jsx)(o.az,{children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",children:_.name}),(0,e.jsx)(o.Ki.Item,{label:"Sex",children:_.sex}),(0,e.jsx)(o.Ki.Item,{label:"Species",children:_.species}),(0,e.jsx)(o.Ki.Item,{label:"Age",children:_.age}),(0,e.jsx)(o.Ki.Item,{label:"Rank",children:_.rank}),(0,e.jsx)(o.Ki.Item,{label:"Home System",children:_.home_system}),(0,e.jsx)(o.Ki.Item,{label:"Birthplace",children:_.birthplace}),(0,e.jsx)(o.Ki.Item,{label:"Citizenship",children:_.citizenship}),(0,e.jsx)(o.Ki.Item,{label:"Faction",children:_.faction}),(0,e.jsx)(o.Ki.Item,{label:"Religion",children:_.religion}),(0,e.jsx)(o.Ki.Item,{label:"Fingerprint",children:_.fingerprint}),(0,e.jsx)(o.Ki.Item,{label:"Other Affiliations",children:_.antagfaction}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{children:"Acquired Information"}),(0,e.jsx)(o.Ki.Item,{label:"Notes",children:_.nanoui_exploit_record.split("<br>").map(function(I){return(0,e.jsx)(o.az,{children:I},I)})})]})})||E.map(function(I){return(0,e.jsx)(o.$n,{icon:"eye",fluid:!0,content:I.name,onClick:function(){return j("view_exploits",{id:I.id})}},I.id)})})},c=function(h){var x,j,p=h.currencyAmount,_=p===void 0?0:p,E=h.currencySymbol,I=E===void 0?"\u20AE":E,O=(0,r.Oc)(),M=O.act,D=O.data,A=D.compactMode,B=D.lockable,U=D.categories,L=U===void 0?[]:U,k=(0,n.useState)(""),Y=k[0],V=k[1],H=(0,n.useState)((x=L[0])==null?void 0:x.name),N=H[0],q=H[1],G=(0,a.XZ)(Y,function(F){return F.name+F.desc}),Q=Y.length>0&&L.flatMap(function(F){return F.items||[]}).filter(G).filter(function(F,Z){return Z<d})||((j=L.find(function(F){return F.name===N}))==null?void 0:j.items)||[];return(0,e.jsx)(o.wn,{title:(0,e.jsxs)(o.az,{inline:!0,color:_>0?"good":"bad",children:[(0,m.up)(_)," ",I]}),buttons:(0,e.jsxs)(e.Fragment,{children:["Search",(0,e.jsx)(o.pd,{autoFocus:!0,value:Y,onInput:function(F,Z){return V(Z)},mx:1}),(0,e.jsx)(o.$n,{icon:A?"list":"info",content:A?"Compact":"Detailed",onClick:function(){return M("compact_toggle")}}),!!B&&(0,e.jsx)(o.$n,{icon:"lock",content:"Lock",onClick:function(){return M("lock")}})]}),children:(0,e.jsxs)(o.so,{children:[Y.length===0&&(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.tU,{vertical:!0,children:L.map(function(F){var Z;return(0,e.jsxs)(o.tU.Tab,{selected:F.name===N,onClick:function(){return q(F.name)},children:[F.name," (",((Z=F.items)==null?void 0:Z.length)||0,")"]},F.name)})})}),(0,e.jsxs)(o.so.Item,{grow:1,basis:0,children:[Q.length===0&&(0,e.jsx)(o.IC,{children:Y.length===0?"No items in this category.":"No results found."}),(0,e.jsx)(u,{compactMode:Y.length>0||A,currencyAmount:_,currencySymbol:I,items:Q})]})]})})},u=function(h){var x=h.compactMode,j=h.currencyAmount,p=h.currencySymbol,_=(0,r.Oc)().act,E=(0,r.Ul)("hoveredItem",{}),I=E[0],O=E[1],M=I&&I.cost||0,D=h.items.map(function(A){var B=I&&I.name!==A.name,U=j-M<A.cost,L=B&&U,k=j<A.cost||L;return g({},A,{disabled:k})});return x?(0,e.jsx)(o.XI,{children:D.map(function(A){return(0,e.jsxs)(o.XI.Row,{className:"candystripe",children:[(0,e.jsx)(o.XI.Cell,{bold:!0,children:(0,a.jT)(A.name)}),(0,e.jsx)(o.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(o.$n,{fluid:!0,content:(0,m.up)(A.cost)+" "+p,disabled:A.disabled,tooltip:A.desc,tooltipPosition:"left",onmouseover:function(){return O(A)},onmouseout:function(){return O({})},onClick:function(){return _("buy",{ref:A.ref})}})})]},A.name)})}):D.map(function(A){return(0,e.jsx)(o.wn,{title:A.name,level:2,buttons:(0,e.jsx)(o.$n,{content:A.cost+" "+p,disabled:A.disabled,onmouseover:function(){return O(A)},onmouseout:function(){return O({})},onClick:function(){return _("buy",{ref:A.ref})}}),children:(0,a.jT)(A.desc)},A.name)})}},52535:function(S,y,t){"use strict";t.r(y),t.d(y,{Vending:function(){return b},VendingMaintenance:function(){return d},VendingProducts:function(){return g}});var e=t(88095),a=t(84352),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.actively_vending,h=f.product;return(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:h.isatom&&(0,e.jsx)("span",{className:(0,a.Ly)(["vending32x32",h.path]),style:{"vertical-align":"middle","horizontal-align":"middle"}})||null}),(0,e.jsx)(r.XI.Cell,{bold:!0,color:h.color,children:(0,e.jsxs)(r.az,{inline:!0,position:"relative",children:[h.name,h.desc?(0,e.jsx)(r.m_,{content:h.desc,position:"right"}):null]})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsxs)(r.az,{color:h.amount<=0&&"bad"||h.amount<=h.max_amount/2&&"average"||"good",children:[h.amount," in stock"]})}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"center",children:(0,e.jsx)(r.$n,{fluid:!0,icon:h.price?"credit-card":"download",iconSpin:u===h.name,disabled:h.amount===0,content:h.price?"Buy ("+h.price+"\u20AE)":"Vend",onClick:function(){return l("vend",{vend:h.key})}})})]})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.panel;return(0,e.jsx)(o.p8,{width:450,height:600,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(g,{}),u?(0,e.jsx)(d,{}):null]})})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.coin,h=c.chargesMoney,x=c.user,j=c.userMoney,p=c.guestNotice,_=c.products,E=_.filter(function(I){return!!I});return(0,e.jsxs)(e.Fragment,{children:[!!h&&(0,e.jsx)(r.wn,{title:"User",children:x&&(0,e.jsxs)(r.az,{children:["Welcome, ",(0,e.jsx)("b",{children:x.name}),", ",(0,e.jsx)("b",{children:x.job||"Unemployed"}),"!",(0,e.jsx)("br",{}),"Your balance is ",(0,e.jsxs)("b",{children:[j,"\u20AE Thalers"]}),"."]})||(0,e.jsx)(r.az,{color:"light-grey",children:p})}),(0,e.jsx)(r.wn,{title:"Products",children:(0,e.jsx)(r.XI,{children:E.map(function(I){return(0,e.jsx)(m,{product:I},I.name)})})}),!!u&&(0,e.jsx)(r.wn,{title:u+" deposited",buttons:(0,e.jsx)(r.$n,{icon:"eject",content:"Eject Coin",onClick:function(){return l("remove_coin")}})})]})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.speaker;return(0,e.jsx)(r.wn,{title:"Maintenance Panel",children:(0,e.jsx)(r.wn,{title:"Speaker",buttons:(0,e.jsx)(r.$n,{icon:u?"volume-up":"volume-off",content:u?"Enabled":"Disabled",selected:u,onClick:function(){return l("togglevoice")}})})})}},49214:function(S,y,t){"use strict";t.r(y),t.d(y,{VolumePanel:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.volume_channels;return(0,e.jsx)(r.p8,{width:350,height:600,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Volume Levels",children:(0,e.jsx)(n.Ki,{children:Object.keys(f).map(function(v){return(0,e.jsxs)(n.Ki.Item,{label:v,children:[(0,e.jsx)(n.Ap,{width:"88%",minValue:0,maxValue:200,value:f[v]*100,onChange:function(l,c){return g("adjust_volume",{channel:v,vol:c/100})}}),(0,e.jsx)(n.$n,{ml:1,icon:"undo",onClick:function(){return g("adjust_volume",{channel:v,vol:1})}})]},v)})})})})})}},27620:function(S,y,t){"use strict";t.r(y),t.d(y,{VorePanel:function(){return l}});var e=t(88095),a=t(84352),n=t(33854),r=t(4413),o=t(92514),m=t(84905);function b(){return b=Object.assign||function(U){for(var L=1;L<arguments.length;L++){var k=arguments[L];for(var Y in k)Object.prototype.hasOwnProperty.call(k,Y)&&(U[Y]=k[Y])}return U},b.apply(this,arguments)}function g(U,L){if(U==null)return{};var k={},Y=Object.keys(U),V,H;for(H=0;H<Y.length;H++)V=Y[H],!(L.indexOf(V)>=0)&&(k[V]=U[V]);return k}var d=[null,"average","bad"],f={Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},v={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},l=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=(0,r.Ul)("panelTabIndex",0),H=V[0],N=V[1],q=[];return q[0]=(0,e.jsx)(u,{}),q[1]=(0,e.jsx)(D,{}),(0,e.jsx)(m.p8,{width:890,height:660,theme:"abstract",children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[Y.unsaved_changes&&(0,e.jsx)(o.IC,{danger:!0,children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){k("saveprefs"),k("exportpanel")}})})]})})||null,(0,e.jsx)(c,{}),(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:H===0,onClick:function(){return N(0)},children:["Bellies",(0,e.jsx)(o.In,{name:"list",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{selected:H===1,onClick:function(){return N(1)},children:["Preferences",(0,e.jsx)(o.In,{name:"user-cog",ml:.5})]})]}),q[H]||"Error"]})})},c=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.inside,H=V.absorbed,N=V.belly_name,q=V.belly_mode,G=V.desc,Q=V.pred,F=V.contents,Z=V.ref;return N?(0,e.jsxs)(o.wn,{title:"Inside",children:[(0,e.jsxs)(o.az,{color:"green",inline:!0,children:["You are currently ",H?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(o.az,{color:"yellow",inline:!0,children:[Q,"'s"]}),"\xA0",(0,e.jsx)(o.az,{color:"red",inline:!0,children:N}),"\xA0",(0,e.jsx)(o.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(o.az,{color:f[q],inline:!0,children:v[q]}),"\xA0",(0,e.jsx)(o.az,{color:"label",children:G}),F.length&&(0,e.jsx)(o.Nt,{title:"Belly Contents",children:(0,e.jsx)(M,{contents:F,belly:Z})})||"There is nothing else around you."]}):(0,e.jsx)(o.wn,{title:"Inside",children:"You aren't inside anyone."})},u=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.our_bellies,H=Y.selected;return(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{shrink:!0,children:(0,e.jsx)(o.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("newbelly")},children:["New",(0,e.jsx)(o.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("exportpanel")},children:["Export",(0,e.jsx)(o.In,{name:"file-export",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return k("importpanel")},children:["Import",(0,e.jsx)(o.In,{name:"file-import",ml:.5})]}),(0,e.jsx)(o.cG,{}),V.map(function(N){return(0,e.jsx)(o.tU.Tab,{selected:N.selected,textColor:f[N.digest_mode],onClick:function(){return k("bellypick",{bellypick:N.ref})},children:(0,e.jsxs)(o.az,{inline:!0,textColor:N.selected&&f[N.digest_mode]||null,children:[N.name," (",N.contents,")"]})},N.name)})]})})}),(0,e.jsx)(o.so.Item,{grow:!0,children:H&&(0,e.jsx)(o.wn,{title:H.belly_name,children:(0,e.jsx)(h,{belly:H})})})]})},h=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.contents,V=(0,r.Ul)("bellyTabIndex",0),H=V[0],N=V[1],q=[];return q[0]=(0,e.jsx)(x,{belly:k}),q[1]=(0,e.jsx)(j,{belly:k}),q[2]=(0,e.jsx)(p,{belly:k}),q[3]=(0,e.jsx)(E,{belly:k}),q[4]=(0,e.jsx)(I,{belly:k}),q[5]=(0,e.jsx)(O,{belly:k}),q[6]=(0,e.jsx)(M,{outside:!0,contents:Y}),q[7]=(0,e.jsx)(VoreSelectedBellyLiquidOptions,{belly:k}),q[8]=(0,e.jsx)(VoreSelectedBellyLiquidMessages,{belly:k}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{selected:H===0,onClick:function(){return N(0)},children:"Controls"}),(0,e.jsx)(o.tU.Tab,{selected:H===1,onClick:function(){return N(1)},children:"Descriptions"}),(0,e.jsx)(o.tU.Tab,{selected:H===2,onClick:function(){return N(2)},children:"Options"}),(0,e.jsx)(o.tU.Tab,{selected:H===3,onClick:function(){return N(3)},children:"Sounds"}),(0,e.jsx)(o.tU.Tab,{selected:H===4,onClick:function(){return N(4)},children:"Visuals"}),(0,e.jsx)(o.tU.Tab,{selected:H===5,onClick:function(){return N(5)},children:"Interactions"}),(0,e.jsxs)(o.tU.Tab,{selected:H===6,onClick:function(){return N(6)},children:["Contents (",Y.length,")"]}),(0,e.jsx)(o.tU.Tab,{selected:H===7,onClick:function(){return N(7)},children:"Liquid Options"}),(0,e.jsx)(o.tU.Tab,{selected:H===8,onClick:function(){return N(8)},children:"Liquid Messages"})]}),q[H]||"Error"]})},x=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.belly_name,V=k.mode,H=k.item_mode,N=k.addons;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return L("move_belly",{dir:-1})}}),(0,e.jsx)(o.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return L("move_belly",{dir:1})}})]}),children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_name"})},content:Y})}),(0,e.jsx)(o.Ki.Item,{label:"Mode",children:(0,e.jsx)(o.$n,{color:f[V],onClick:function(){return L("set_attribute",{attribute:"b_mode"})},content:V})}),(0,e.jsxs)(o.Ki.Item,{label:"Mode Addons",children:[N.length&&N.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_item_mode"})},content:H})}),(0,e.jsx)(o.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(o.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return L("set_attribute",{attribute:"b_del"})}})})]})},j=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.verb,V=k.release_verb,H=k.desc,N=k.absorbed_desc;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Description",buttons:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:H}),(0,e.jsx)(o.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:N}),(0,e.jsx)(o.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_verb"})},content:Y})}),(0,e.jsx)(o.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_release_verb"})},content:V})}),(0,e.jsxs)(o.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(o.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(o.$n,{color:"red",onClick:function(){return L("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},p=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.host_mobtype,H=V.is_cyborg,N=V.is_vore_simple_mob,q=U.belly,G=q.can_taste,Q=q.is_feedable,F=q.nutrition_percent,Z=q.digest_brute,oe=q.digest_burn,le=q.digest_oxy,ue=q.digest_tox,he=q.digest_clone,de=q.bulge_size,ve=q.display_absorbed_examine,pe=q.shrink_grow_size,be=q.emote_time,ye=q.emote_active,Te=q.contaminates,Ke=q.contaminate_flavor,$e=q.contaminate_color,We=q.egg_type,Qe=q.egg_name,Ye=q.selective_preference,mt=q.save_digest_mode,vt=q.eating_privacy_local,ht=q.silicon_belly_overlay_preference,ot=q.belly_mob_mult,He=q.belly_item_mult,Ne=q.belly_overall_mult,ke=q.vorespawn_blacklist;return(0,e.jsxs)(o.so,{wrap:"wrap",children:[(0,e.jsxs)(o.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tastes"})},icon:G?"toggle-on":"toggle-off",selected:G,content:G?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Feedable",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_feedable"})},icon:Q?"toggle-on":"toggle-off",selected:Q,content:Q?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contaminates"})},icon:Te?"toggle-on":"toggle-off",selected:Te,content:Te?"Yes":"No"})}),Te&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:Ke})}),(0,e.jsx)(o.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)($e)})})]})||null,(0,e.jsx)(o.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_nutritionpercent"})},content:F+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_bulge_size"})},content:de*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"True":"False"})}),(0,e.jsx)(o.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(vt)})}),(0,e.jsx)(o.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_save_digest_mode"})},icon:mt?"toggle-on":"toggle-off",selected:mt,content:mt?"True":"False"})})]}),(0,e.jsx)(_,{belly:q})]}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emoteactive"})},icon:ye?"toggle-on":"toggle-off",selected:ye,content:ye?"Active":"Inactive"})}),(0,e.jsx)(o.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_emotetime"})},content:be+" seconds"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_brute_dmg"})},content:Z})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_burn_dmg"})},content:oe})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_oxy_dmg"})},content:le})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_tox_dmg"})},content:ue})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_clone_dmg"})},content:he})}),(0,e.jsx)(o.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_grow_shrink"})},content:pe*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Vore Spawn Blacklist",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_vorespawn_blacklist"})},icon:ke?"toggle-on":"toggle-off",selected:ke,content:ke?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(We)})}),(0,e.jsx)(o.Ki.Item,{label:"Custom Egg Name",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_egg_name"})},icon:"pen",content:Qe||"Default"})}),(0,e.jsx)(o.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(Ye)})})]})})]})},_=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.host_mobtype,H=V.is_cyborg,N=V.is_vore_simple_mob,q=U.belly,G=q.silicon_belly_overlay_preference,Q=q.belly_mob_mult,F=q.belly_item_mult,Z=q.belly_overall_mult;return H?(0,e.jsx)(o.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(G)})}),(0,e.jsx)(o.Ki.Item,{label:"Mob Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_mob_mult"})},content:Q})}),(0,e.jsx)(o.Ki.Item,{label:"Item Vorebelly Size Mult",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_item_mult"})},content:F})}),(0,e.jsx)(o.Ki.Item,{label:"Belly Size Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_belly_overall_mult"})},content:Z})})]})}):N?(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})}):(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})})},E=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.is_wet,V=k.wet_loop,H=k.fancy,N=k.sound,q=k.release_sound,G=k.sound_volume;return(0,e.jsx)(o.so,{wrap:"wrap",children:(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_wetness"})},icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_wetloop"})},icon:V?"toggle-on":"toggle-off",selected:V,content:V?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_fancy_sound"})},icon:H?"toggle-on":"toggle-off",selected:H,content:H?"Yes":"No"})}),(0,e.jsxs)(o.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_sound"})},content:N}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_release"})},content:q}),(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]}),(0,e.jsx)(o.Ki.Item,{label:"Sound Volume",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_sound_volume"})},content:G+"%"})})]})})})},I=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.belly_fullscreen,V=k.belly_fullscreen_color,H=k.belly_fullscreen_color_secondary,N=k.belly_fullscreen_color_trinary,q=k.mapRef,G=k.colorization_enabled,Q=k.possible_fullscreens,F=k.disable_hud,Z=k.vore_sprite_flags,oe=k.affects_voresprite,le=k.absorbed_voresprite,ue=k.absorbed_multiplier,he=k.liquid_voresprite,de=k.liquid_multiplier,ve=k.item_voresprite,pe=k.item_multiplier,be=k.health_voresprite,ye=k.resist_animation,Te=k.voresprite_size_factor,Ke=k.belly_sprite_option_shown,$e=k.belly_sprite_to_affect,We=k.undergarment_chosen,Qe=k.undergarment_if_none,Ye=k.undergarment_color,mt=k.tail_option_shown,vt=k.tail_to_change_to,ht=k.tail_colouration,ot=k.tail_extra_overlay,He=k.tail_extra_overlay2;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Vore Sprites",children:(0,e.jsx)(o.so,{direction:"row",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Affect Vore Sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_affects_vore_sprites"})},icon:oe?"toggle-on":"toggle-off",selected:oe,content:oe?"Yes":"No"})}),oe?(0,e.jsxs)("span",{children:[(0,e.jsxs)(o.Ki.Item,{label:"Vore Sprite Mode",children:[Z.length&&Z.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_vore_sprite_flags"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})},icon:le?"toggle-on":"toggle-off",selected:le,content:le?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_absorbed_multiplier"})},content:ue})}),(0,e.jsx)(o.Ki.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_count_liquid_for_sprites"})},icon:he?"toggle-on":"toggle-off",selected:he,content:he?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_liquid_multiplier"})},content:de})}),(0,e.jsx)(o.Ki.Item,{label:"Count items for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_count_items_for_sprites"})},icon:ve?"toggle-on":"toggle-off",selected:ve,content:ve?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Items Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_item_multiplier"})},content:pe})}),(0,e.jsx)(o.Ki.Item,{label:"Prey health affects vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_health_impacts_size"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Animation when prey resist",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_resist_animation"})},icon:ye?"toggle-on":"toggle-off",selected:ye,content:ye?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Vore Sprite Size Factor",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_size_factor_sprites"})},content:Te})}),Ke?(0,e.jsx)(o.Ki.Item,{label:"Belly Sprite to affect",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_belly_sprite_to_affect"})},content:$e})}):"",mt&&Z.includes("Undergarment addition")?(0,e.jsxs)("div",{children:[(0,e.jsx)(o.Ki.Item,{label:"Undergarment type to affect",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_undergarment_choice"})},content:We})}),(0,e.jsx)(o.Ki.Item,{label:"Undergarment if none equipped",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_undergarment_if_none"})},content:Qe})}),(0,e.jsx)(B,{action_name:"b_undergarment_color",value_of:null,back_color:Ye,name_of:"Undergarment Color if none"})]}):"",mt&&Z.includes("Tail adjustment")?(0,e.jsx)(o.Ki.Item,{label:"Tail to change to",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_tail_to_change_to"})},content:vt})}):""]}):""]})})}),(0,e.jsx)(o.wn,{title:"Belly Fullscreens Preview and Coloring",children:(0,e.jsxs)(o.so,{direction:"row",children:[(0,e.jsx)(B,{action_name:"b_fullscreen_color",value_of:null,back_color:V,name_of:"1"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color",val:null})},children:"Select Primary Color"}),(0,e.jsx)(o.az,{backgroundColor:H,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color_secondary",val:null})},children:"Select Secondary Color"}),(0,e.jsx)(o.az,{backgroundColor:N,width:"20px",height:"20px"}),(0,e.jsx)(o.$n,{icon:"eye-dropper",onClick:function(){return L("set_attribute",{attribute:"b_fullscreen_color_trinary",val:null})},children:"Select Trinary Color"}),(0,e.jsx)(o.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_colorization_enabled"})},icon:G?"toggle-on":"toggle-off",selected:G,content:G?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(o.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]})}),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.wn,{title:"Vore FX",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_disable_hud"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Yes":"No"})})})}),(0,e.jsxs)(o.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(o.$n,{fluid:!0,selected:Y===""||Y===null,onClick:function(){return L("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(Q).map(function(Ne,ke){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(o.$n,{width:"256px",height:"256px",selected:Ne===Y,onClick:function(){return L("set_attribute",{attribute:"b_fullscreen",val:Ne})},children:(0,e.jsx)(o.az,{className:(0,a.Ly)(["vore240x240",Ne]),style:{transform:"translate(0%, 4%)"}})},Ne)},ke)})]})]})]})},O=function(U){var L=(0,r.Oc)().act,k=U.belly,Y=k.escapable,V=k.interacts,H=k.vorespawn_blacklist,N=k.autotransfer_enabled,q=k.autotransfer;return(0,e.jsxs)(o.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_escapable"})},icon:Y?"toggle-on":"toggle-off",selected:Y,content:Y?"Interactions On":"Interactions Off"}),children:[Y?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(o.$n,{content:V.escapechance+"%",onClick:function(){return L("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(o.$n,{content:V.escapechance_absorbed+"%",onClick:function(){return L("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(o.$n,{content:V.escapetime/10+"s",onClick:function(){return L("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(o.$n,{content:V.transferchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(o.$n,{content:V.transferlocation?V.transferlocation:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(o.$n,{content:V.transferchance_secondary+"%",onClick:function(){return L("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(o.$n,{content:V.transferlocation_secondary?V.transferlocation_secondary:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(o.$n,{content:V.absorbchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(o.$n,{content:V.digestchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_digestchance"})}})}),(0,e.jsx)(o.Ki.Divider,{})]}):"These options only display while interactions are turned on.",(0,e.jsx)(o.wn,{title:"Auto-Transfer Options",buttons:(0,e.jsx)(o.$n,{onClick:function(){return L("set_attribute",{attribute:"b_autotransfer_enabled"})},icon:N?"toggle-on":"toggle-off",selected:N,content:N?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:N?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Time",children:(0,e.jsx)(o.$n,{content:q.autotransferwait/10+"s",onClick:function(){return L("set_attribute",{attribute:"b_autotransferwait"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Chance",children:(0,e.jsx)(o.$n,{content:q.autotransferchance+"%",onClick:function(){return L("set_attribute",{attribute:"b_autotransferchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Location",children:(0,e.jsx)(o.$n,{content:q.autotransferlocation?q.autotransferlocation:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_autotransferlocation"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.jsx)(o.$n,{content:q.autotransferchance_secondary+"%",onClick:function(){return L("set_attribute",{attribute:"b_autotransferchance_secondary"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.jsx)(o.$n,{content:q.autotransferlocation_secondary?q.autotransferlocation_secondary:"Disabled",onClick:function(){return L("set_attribute",{attribute:"b_autotransferlocation_secondary"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Min Amount",children:(0,e.jsx)(o.$n,{content:q.autotransfer_min_amount,onClick:function(){return L("set_attribute",{attribute:"b_autotransfer_min_amount"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Max Amount",children:(0,e.jsx)(o.$n,{content:q.autotransfer_max_amount,onClick:function(){return L("set_attribute",{attribute:"b_autotransfer_max_amount"})}})})]}):"These options only display while Auto-Transfer is enabled."})]})},M=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.show_pictures,H=U.contents,N=U.belly,q=U.outside,G=q===void 0?!1:q;return(0,e.jsxs)(e.Fragment,{children:[G&&(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return k("pick_from_outside",{pickall:!0})},children:"All"})||null,V&&(0,e.jsx)(o.so,{wrap:"wrap",justify:"center",align:"center",children:H.map(function(Q){return(0,e.jsxs)(o.so.Item,{basis:"33%",children:[(0,e.jsx)(o.$n,{width:"64px",color:Q.absorbed?"purple":d[Q.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return k(Q.outside?"pick_from_outside":"pick_from_inside",{pick:Q.ref,belly:N})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+Q.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),Q.name]},Q.name)})})||(0,e.jsx)(o.Ki,{children:H.map(function(Q){return(0,e.jsx)(o.Ki.Item,{label:Q.name,children:(0,e.jsx)(o.$n,{fluid:!0,mt:-1,mb:-1,color:Q.absorbed?"purple":d[Q.stat],onClick:function(){return k(Q.outside?"pick_from_outside":"pick_from_inside",{pick:Q.ref,belly:N})},children:"Interact"})},Q.ref)})})]})},D=function(U){var L=(0,r.Oc)(),k=L.act,Y=L.data,V=Y.prefs,H=V.digestable,N=V.devourable,q=V.resizable,G=V.feeding,Q=V.absorbable,F=V.digest_leave_remains,Z=V.allowmobvore,oe=V.permit_healbelly,le=V.show_vore_fx,ue=V.can_be_drop_prey,he=V.can_be_drop_pred,de=V.latejoin_vore,ve=V.latejoin_prey,pe=V.allow_spontaneous_tf,be=V.step_mechanics_active,ye=V.pickup_mechanics_active,Te=V.noisy,Ke=V.noisy_full,$e=V.liq_rec,We=V.liq_giv,Qe=V.autotransferable,Ye=V.drop_vore,mt=V.stumble_vore,vt=V.slip_vore,ht=V.throw_vore,ot=V.food_vore,He=V.nutrition_message_visible,Ne=V.weight_message_visible,ke=V.eating_privacy_global,we=Y.show_pictures,qe=(0,r.Ul)(context,"tabIndex",0),Je=qe[0],lt=qe[1],at={digestion:{action:"toggle_digest",test:H,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:Q,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:N,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:Z,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:G,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:oe,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic. It does not affect anything, but is displayed under mechanical prefs for ease of quick checks.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:ue,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:he,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:Ye,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:vt,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:mt,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:ht,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:ot,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},spawnbelly:{action:"toggle_latejoin_vore",test:de,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:ve,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:Te,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},noisy_full:{action:"toggle_noisy_full",test:Ke,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching Disabled"}},resize:{action:"toggle_resize",test:q,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:be,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:le,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:F,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:ye,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:pe,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:He,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Ne,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},eating_privacy_global:{action:"toggle_global_privacy",test:ke,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}},liquid_receive:{action:"toggle_liq_rec",test:$e,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:We,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},autotransferable:{action:"toggle_autotransferable",test:Qe,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}}};return(0,e.jsxs)(o.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(o.$n,{icon:"eye",selected:we,onClick:function(){return k("show_pictures")},children:["Contents Preference: ",we?"Show Pictures":"Show List"]}),children:[(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.digestion})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.absorbable})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.devour})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.mobvore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.feed})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.healbelly,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.dropnom_prey})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.dropnom_pred})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.toggle_drop_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.toggle_slip_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.toggle_stumble_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.toggle_throw_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.toggle_food_vore})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.spawnbelly})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.spawnprey})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.noisy})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.noisy_full})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.resize})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.steppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.vore_fx,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.remains,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.spontaneous_tf})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Selective Mode Preference",onClick:function(){return k("switch_selective_mode_pref")}})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.eating_privacy_global})}),(0,e.jsx)(o.so.Item,{basis:"32%",grow:1,children:(0,e.jsx)(A,{spec:at.autotransferable})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.liquid_receive,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"32%",children:(0,e.jsx)(A,{spec:at.liquid_give,tooltipPosition:"top"})})]}),(0,e.jsx)(o.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return k("setflavor")}})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return k("setsmell")}})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{onClick:function(){return k("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(A,{spec:at.examine_nutrition})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(A,{spec:at.examine_weight})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Vore Sprite Color",onClick:function(){return k("set_vs_color")}})})]})}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsx)(o.so.Item,{basis:"49%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return k("saveprefs")}})}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return k("reloadprefs")}})})]})})]})},A=function(U){var L=(0,r.Oc)().act,k=U.spec,Y=g(U,["spec"]),V=k.action,H=k.test,N=k.tooltip,q=k.content;return(0,e.jsx)(o.$n,b({onClick:function(){return L(V)},icon:H?"toggle-on":"toggle-off",selected:H,fluid:!0,tooltip:N.main+" "+(H?N.disable:N.enable),content:H?q.enabled:q.disabled},Y))},B=function(U,L){var k=(0,r.Oc)(L).act,Y=U.action_name,V=U.value_of,H=U.back_color,N=U.name_of;return(0,e.jsx)(o.$n,{onClick:function(){k("set_attribute",{attribute:Y,val:V})},children:(0,e.jsxs)(o.BJ,{align:"center",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.az,{style:{background:H.startsWith("#")?H:"#"+H,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.jsxs)(o.BJ.Item,{children:["Change ",N]})]})})}},85688:function(S,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return u}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={Hold:'<span class="badge text-bg-secondary">Hold</span>',Digest:'<span class="badge text-bg-danger">Digest</span>',Absorb:'<span class="badge text-bg-light">Absorb</span>',Drain:'<span class="badge text-bg-warning">Drain</span>',Selective:'<span class="badge text-bg-warning">Selective</span>',Unabsorb:'<span class="badge text-bg-light">Unabsorb</span>',Heal:'<span class="badge text-bg-success">Heal</span>',Shrink:'<span class="badge text-bg-info">Shrink</span>',Grow:'<span class="badge text-bg-info">Grow</span>',"Size Steal":'<span class="badge text-bg-info">Size Steal</span>',"Encase In Egg":'<span class="badge text-bg-primary">Encase In Egg</span>'},m={Hold:'<span class="badge text-bg-secondary">Item: Hold</span>',"Digest (Food Only)":'<span class="badge text-bg-danger">Item: Digest (Food Only)</span>',Digest:'<span class="badge text-bg-danger">Item: Digest</span>',"Digest (Dispersed Damage)":'<span class="badge text-bg-danger">Item: Digest (Dispersed Damage)</span>'},b={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},g={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},d=function(x){var j=[];return x==null||x.forEach(function(p){j.push('<span class="badge text-bg-secondary"><i class="'+b[p]+'"></i>'+p+"</span>")}),j.length===0&&j.push("No Addons Set"),j},f=function(x){var j=[];return x==null||x.forEach(function(p){j.push('<span class="badge text-bg-secondary"><i class="'+g[p]+'"></i>'+p+"</span>")}),j.length===0&&j.push("No Addons Set"),j},v=function(x,j){var p=x.name,_=x.desc,E=x.absorbed_desc,I=x.vore_verb,O=x.release_verb,M=x.mode,D=x.addons,A=x.item_mode,B=x.digest_brute,U=x.digest_burn,L=x.digest_oxy,k=x.can_taste,Y=x.is_feedable,V=x.contaminates,H=x.contamination_flavor,N=x.contamination_color,q=x.nutrition_percent,G=x.bulge_size,Q=x.display_absorbed_examine,F=x.save_digest_mode,Z=x.emote_active,oe=x.emote_time,le=x.shrink_grow_size,ue=x.vorespawn_blacklist,he=x.egg_type,de=x.selective_preference,ve=x.struggle_messages_outside,pe=x.struggle_messages_inside,be=x.absorbed_struggle_messages_outside,ye=x.absorbed_struggle_messages_inside,Te=x.escape_attempt_messages_owner,Ke=x.escape_attempt_messages_prey,$e=x.escape_messages_owner,We=x.escape_messages_prey,Qe=x.escape_messages_outside,Ye=x.escape_item_messages_owner,mt=x.escape_item_messages_prey,vt=x.escape_item_messages_outside,ht=x.escape_fail_messages_owner,ot=x.escape_fail_messages_prey,He=x.escape_attempt_absorbed_messages_owner,Ne=x.escape_attempt_absorbed_messages_prey,ke=x.escape_absorbed_messages_owner,we=x.escape_absorbed_messages_prey,qe=x.escape_absorbed_messages_outside,Je=x.escape_fail_absorbed_messages_owner,lt=x.escape_fail_absorbed_messages_prey,at=x.primary_transfer_messages_owner,Xt=x.primary_transfer_messages_prey,Wt=x.secondary_transfer_messages_owner,zt=x.secondary_transfer_messages_prey,bt=x.digest_chance_messages_owner,st=x.digest_chance_messages_prey,it=x.absorb_chance_messages_owner,gt=x.absorb_chance_messages_prey,Pt=x.digest_messages_owner,Ft=x.digest_messages_prey,Yt=x.absorb_messages_owner,ln=x.absorb_messages_prey,tn=x.unabsorb_messages_owner,yn=x.unabsorb_messages_prey,Bn=x.examine_messages,Tt=x.examine_messages_absorbed,Kn=x.emotes_digest,Jn=x.emotes_hold,Xr=x.emotes_holdabsorbed,wr=x.emotes_absorb,Rr=x.emotes_heal,Br=x.emotes_drain,Kr=x.emotes_steal,Gr=x.emotes_egg,En=x.emotes_shrink,In=x.emotes_grow,kn=x.emotes_unabsorb,On=x.is_wet,Pn=x.wet_loop,Ln=x.fancy_vore,qn=x.vore_sound,Yr=x.release_sound,bo=x.affects_vore_sprites,Fo=x.count_absorbed_prey_for_sprite,ui=x.resist_triggers_animation,er=x.size_factor_for_sprite,yo=x.belly_sprite_to_affect,Qr=x.belly_fullscreen_color,Vo=x.disable_hud,Nn=x.escapable,lr=x.escapechance,mn=x.escapechance_absorbed,cr=x.escapetime,di=x.transferchance,fi=x.transferlocation,Zt=x.transferchance_secondary,hi=x.transferlocation_secondary,kr=x.absorbchance,Ho=x.digestchance,Zr=x.autotransferwait,br=x.autotransferchance,_o=x.autotransferlocation,Jr=x.autotransferchance_secondary,dt=x.autotransferlocation_secondary,qr=x.autotransfer_enabled,Mn=x.autotransfer_min_amount,Vn=x.autotransfer_max_amount,eo=x.show_liquids,ur=x.reagentbellymode,Un=x.reagent_chosen,en=x.reagent_name,tr=x.reagent_transfer_verb,yr=x.gen_time_display,mi=x.custom_max_volume,vi=x.vorefootsteps_sounds,nr=x.reagent_mode_flag_list,Co=x.liquid_fullness1_messages,to=x.liquid_fullness2_messages,dr=x.liquid_fullness3_messages,pi=x.liquid_fullness4_messages,Eo=x.liquid_fullness5_messages,Vt=x.fullness1_messages,Io=x.fullness2_messages,Hn=x.fullness3_messages,Lr=x.fullness4_messages,no=x.fullness5_messages,re="";return re+='<div class="accordion-item"><h2 class="accordion-header" id="heading'+j+'">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse'+j+'" aria-expanded="false" aria-controls="collapse'+j+'">',re+=p+' - (<span style="color: red;">'+B+'</span >/<span style="color: orange;">'+U+'</span>/<span style="color: blue;">'+L+"</span>) - "+o[M]+" - "+m[A],re+="</button></h2>",re+='<div id="collapse'+j+'" class="accordion-collapse collapse" aria-labelledby="heading'+j+'" data-bs-parent="#accordionBellies">',re+='<div class="accordion-body">',re+="Addons:<br>"+d(D)+"<br><br>",re+="<b>== Descriptions ==</b><br>",re+="Vore Verb:<br>"+I+"<br><br>",re+="Release Verb:<br>"+O+"<br><br>",re+='Description:<br>"'+_+'"<br><br>',re+='Absorbed Description:<br>"'+E+'"<br><br>',re+="<hr>",re+="<b>== Messages ==</b><br>",re+='<div role="messagesTabpanel">',re+='<div class="row"><div class="col-4">',re+='<div class="list-group" id="messagesList" role="messagesTablist">',re+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#escapeAttemptMessagesOwner'+j+'" role="tab">Escape Attempt Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptMessagesPrey'+j+'" role="tab">Escape Attempt Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOwner'+j+'" role="tab">Escape Message (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesPrey'+j+'" role="tab">Escape Message (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOutside'+j+'" role="tab">Escape Message (Outside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOwner'+j+'" role="tab">Escape Item Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesPrey'+j+'" role="tab">Escape Item Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOutside'+j+'" role="tab">Escape Item Messages (Outside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailMessagesOwner'+j+'" role="tab">Escape Fail Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#esccapeFailMessagesPrey'+j+'" role="tab">Escape Fail Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesOwner'+j+'" role="tab">Escape Attempt Absorbed Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesPrey'+j+'" role="tab">Escape Attempt Absorbed Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOwner'+j+'" role="tab">Escape Absorbed Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesPrey'+j+'" role="tab">Escape Absorbed Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOutside'+j+'" role="tab">Escape Absorbed Messages (Outside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesOwner'+j+'" role="tab">Escape Fail Absorbed Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesPrey'+j+'" role="tab">Escape Fail Absorbed Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesOwner'+j+'" role="tab">Primary Transfer Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesPrey'+j+'" role="tab">Primary Transfer Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesOwner'+j+'" role="tab">Secondary Transfer Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesPrey'+j+'" role="tab">Secondary Transfer Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesOwner'+j+'" role="tab">Digest Chance Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesPrey'+j+'" role="tab">Digest Chance Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesOwner'+j+'" role="tab">Absorb Chance Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesPrey'+j+'" role="tab">Absorb Chance Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesOutside'+j+'" role="tab">Struggle Messages (Outside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesInside'+j+'" role="tab">Struggle Messages (Inside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleOutside'+j+'" role="tab">Absorbed Struggle Messages (Outside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleInside'+j+'" role="tab">Absorbed Struggle Messages (Inside)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesOwner'+j+'" role="tab">Digest Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesPrey'+j+'" role="tab">Digest Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesOwner'+j+'" role="tab">Absorb Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesPrey'+j+'" role="tab">Absorb Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesOwner'+j+'" role="tab">Unabsorb Messages (Owner)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesPrey'+j+'" role="tab">Unabsorb Messages (Prey)</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessages'+j+'" role="tab">Examine Messages</a>',re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessagesAbsorbed'+j+'" role="tab">Examine Messages (Absorbed)</a>',re+="</div></div>",re+='<div class="col-8">',re+='<div class="tab-content">',re+='<div class="tab-pane fade show active" id="escapeAttemptMessagesOwner'+j+'" role="messagesTabpanel">',Te==null||Te.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAttemptMessagesPrey'+j+'" role="messagesTabpanel">',Ke==null||Ke.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeMessagesOwner'+j+'" role="messagesTabpanel">',$e==null||$e.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeMessagesPrey'+j+'" role="messagesTabpanel">',We==null||We.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeMessagesOutside'+j+'" role="messagesTabpanel">',Qe==null||Qe.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeItemMessagesOwner'+j+'" role="messagesTabpanel">',Ye==null||Ye.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeItemMessagesPrey'+j+'" role="messagesTabpanel">',mt==null||mt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeItemMessagesOutside'+j+'" role="messagesTabpanel">',vt==null||vt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeFailMessagesOwner'+j+'" role="messagesTabpanel">',ht==null||ht.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="esccapeFailMessagesPrey'+j+'" role="messagesTabpanel">',ot==null||ot.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesOwner'+j+'" role="messagesTabpanel">',He==null||He.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesPrey'+j+'" role="messagesTabpanel">',Ne==null||Ne.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOwner'+j+'" role="messagesTabpanel">',ke==null||ke.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAbsorbedMessagesPrey'+j+'" role="messagesTabpanel">',we==null||we.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOutside'+j+'" role="messagesTabpanel">',qe==null||qe.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesOwner'+j+'" role="messagesTabpanel">',Je==null||Je.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesPrey'+j+'" role="messagesTabpanel">',lt==null||lt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="primaryTransferMessagesOwner'+j+'" role="messagesTabpanel">',at==null||at.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="primaryTransferMessagesPrey'+j+'" role="messagesTabpanel">',Xt==null||Xt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="secondaryTransferMessagesOwner'+j+'" role="messagesTabpanel">',Wt==null||Wt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="secondaryTransferMessagesPrey'+j+'" role="messagesTabpanel">',zt==null||zt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="digestChanceMessagesOwner'+j+'" role="messagesTabpanel">',bt==null||bt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="digestChanceMessagesPrey'+j+'" role="messagesTabpanel">',st==null||st.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbChanceMessagesOwner'+j+'" role="messagesTabpanel">',it==null||it.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbChanceMessagesPrey'+j+'" role="messagesTabpanel">',gt==null||gt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="struggleMessagesOutside'+j+'" role="messagesTabpanel">',ve==null||ve.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="struggleMessagesInside'+j+'" role="messagesTabpanel">',pe==null||pe.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbedStruggleOutside'+j+'" role="messagesTabpanel">',be==null||be.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbedStruggleInside'+j+'" role="messagesTabpanel">',ye==null||ye.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="digestMessagesOwner'+j+'" role="messagesTabpanel">',Pt==null||Pt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="digestMessagesPrey'+j+'" role="messagesTabpanel">',Ft==null||Ft.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbMessagesOwner'+j+'" role="messagesTabpanel">',Yt==null||Yt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="absorbMessagesPrey'+j+'" role="messagesTabpanel">',ln==null||ln.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="unabsorbMessagesOwner'+j+'" role="messagesTabpanel">',tn==null||tn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="unabsorbMessagesPrey'+j+'" role="messagesTabpanel">',yn==null||yn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessages'+j+'" role="messagesTabpanel">',Bn==null||Bn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessagesAbsorbed'+j+'" role="messagesTabpanel">',Tt==null||Tt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+="</div>",re+="</div></div>",re+="</div>",re+="<details><summary>= Idle Messages =</summary><p>",re+="<details><summary>Idle Messages (Hold):</summary><p>",Jn==null||Jn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Hold Absorbed):</summary><p>",Xr==null||Xr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Digest):</summary><p>",Kn==null||Kn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Absorb):</summary><p>",wr==null||wr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Unabsorb):</summary><p>",kn==null||kn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Drain):</summary><p>",Br==null||Br.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Heal):</summary><p>",Rr==null||Rr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Size Steal):</summary><p>",Kr==null||Kr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Shrink):</summary><p>",En==null||En.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Grow):</summary><p>",In==null||In.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="<details><summary>Idle Messages (Encase In Egg):</summary><p>",Gr==null||Gr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</details></p><br>",re+="</details></p><br>",re+="<hr>",re+='<div class="accordion" id="settingsAccordion'+j+'">',re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingOne">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseOne" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseOne">',re+="<b>== Options ==</b><br>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseOne" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+'-headingOne">',re+='<div class="accordion-body">',re+='<ul class="list-group">',re+='<li class="list-group-item">Can Taste: '+(k?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Feedable: '+(Y?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Contaminates: '+(V?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Contamination Flavor: '+H+"</li>",re+='<li class="list-group-item">Contamination Color: '+N+"</li>",re+='<li class="list-group-item">Nutritional Gain: '+q+"%</li>",re+='<li class="list-group-item">Required Examine Size: '+G*100+"%</li>",re+='<li class="list-group-item">Display Absorbed Examines: '+(Q?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",re+='<li class="list-group-item">Save Digest Mode: '+(F?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",re+='<li class="list-group-item">Idle Emotes: '+(Z?'<span style="color: green;">Active':'<span style="color: red;">Inactive')+"</li>",re+='<li class="list-group-item">Idle Emote Delay: '+oe+" seconds</li>",re+='<li class="list-group-item">Shrink/Grow Size: '+le*100+"%</li>",re+='<li class="list-group-item">Vore Spawn Blacklist: '+(ue?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Egg Type: '+he+"</li>",re+='<li class="list-group-item">Selective Mode Preference: '+de+"</li>",re+="</ul>",re+="</div></div></div>",re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingTwo">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseTwo" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseTwo">',re+="<b>== Sounds ==</b><br>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseTwo" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+'-headingTwo">',re+='<div class="accordion-body">',re+='<ul class="list-group">',re+='<li class="list-group-item">Fleshy Belly: '+(On?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Internal Loop: '+(Pn?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Use Fancy Sounds: '+(Ln?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Vore Sound: '+qn+"</li>",re+='<li class="list-group-item">Release Sound: '+Yr+"</li>",re+="</ul>",re+="</div></div></div>",re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingVisuals">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseVisuals" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseVisuals">',re+="<b>== Visuals ==</b><br>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseVisuals" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+"-headingVisuals>",re+='<div class="accordion-body">',re+="<b>Vore Sprites</b>",re+='<ul class="list-group">',re+='<li class="list-group-item">Affect Vore Sprites: '+(bo?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Count Absorbed prey for vore sprites: '+(Fo?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Animation when prey resist: '+(ui?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+='<li class="list-group-item">Vore Sprite Size Factor: '+er+"</li>",re+='<li class="list-group-item">Belly Sprite to affect: '+yo+"</li>",re+="</ul>",re+="<b>Belly Fullscreens Preview and Coloring</b>",re+='<ul class="list-group">',re+='<li class="list-group-item">Color: <span style="color: '+Qr+';">'+Qr+"</span>",re+="</ul>",re+="<b>Vore FX</b>",re+='<ul class="list-group">',re+='<li class="list-group-item">Disable Prey HUD: '+(Vo?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",re+="</ul>",re+="</div></div></div>",re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingThree">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseThree" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseThree">',re+="<b>== Interactions ==</b>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseThree" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+'-headingThree">',re+='<div class="accordion-body">',re+="<b>Belly Interactions ("+(Nn?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",re+='<ul class="list-group">',re+='<li class="list-group-item">Escape Chance: '+lr+"%</li>",re+='<li class="list-group-item">Escape Chance: '+mn+"%</li>",re+='<li class="list-group-item">Escape Time: '+cr/10+"s</li>",re+='<li class="list-group-item">Transfer Chance: '+di+"%</li>",re+='<li class="list-group-item">Transfer Location: '+fi+"</li>",re+='<li class="list-group-item">Secondary Transfer Chance: '+Zt+"%</li>",re+='<li class="list-group-item">Secondary Transfer Location: '+hi+"</li>",re+='<li class="list-group-item">Absorb Chance: '+kr+"%</li>",re+='<li class="list-group-item">Digest Chance: '+Ho+"%</li>",re+="</ul>",re+="<hr>",re+="<b>Auto-Transfer Options ("+(qr?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",re+='<ul class="list-group">',re+='<li class="list-group-item">Auto-Transfer Time: '+Zr/10+"s</li>",re+='<li class="list-group-item">Auto-Transfer Chance: '+br+"%</li>",re+='<li class="list-group-item">Auto-Transfer Location: '+_o+"</li>",re+='<li class="list-group-item">Auto-Transfer Chance: '+Jr+"%</li>",re+='<li class="list-group-item">Auto-Transfer Location: '+dt+"</li>",re+='<li class="list-group-item">Auto-Transfer Min Amount: '+Mn+"</li>",re+='<li class="list-group-item">Auto-Transfer Max Amount: '+Vn+"</li>",re+="</ul>",re+="</div></div></div>",re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingFour">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseFour" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseFour">',re+="<b>== Liquid Options ("+(eo?'<span style="color: green;">Liquids On':'<span style="color: red;">Liquids Off')+"</span>) ==</b>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseFour" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+'-headingFour">',re+='<div class="accordion-body">',re+='<ul class="list-group">',re+='<li class="list-group-item">Generate Liquids: '+(ur?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",re+='<li class="list-group-item">Liquid Type: '+Un+"</li>",re+='<li class="list-group-item">Liquid Name: '+en+"</li>",re+='<li class="list-group-item">Transfer Verb: '+tr+"</li>",re+='<li class="list-group-item">Generation Time: '+yr+"</li>",re+='<li class="list-group-item">Liquid Capacity: '+mi+"</li>",re+='<li class="list-group-item">Slosh Sounds: '+(vi?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",re+='<li class="list-group-item">Liquid Addons: '+f(nr)+"</li>",re+="</ul>",re+="</div></div></div>",re+='<div class="accordion-item">',re+='<h2 class="accordion-header" id="settingsAccordion'+j+'-headingFive">',re+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+j+'-collapseFive" aria-expanded="true" aria-controls="settingsAccordion'+j+'-collapseFive">',re+="<b>== Liquid Messages ("+(eo?'<span style="color: green;">Messages On':'<span style="color: red;">Messages Off')+"</span>) ==</b>",re+="</button></h2>",re+='<div id="settingsAccordion'+j+'-collapseFive" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+j+'-headingFive">',re+='<div class="accordion-body">',re+='<div role="liquidMessagesTabpanel">',re+='<div class="row"><div class="col-4">',re+='<div class="list-group" id="liquidMessagesList" role="messagesTablist">',re+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#examineMessage0_20'+j+'" role="tab">Examine Message (0 to 20%) ('+(Co?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage20_40'+j+'" role="tab">Examine Message (20 to 40%) ('+(to?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage40_60'+j+'" role="tab">Examine Message (40 to 60%) ('+(dr?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage60_80'+j+'" role="tab">Examine Message (60 to 80%) ('+(pi?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",re+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage80_100'+j+'" role="tab">Examine Message (80 to 100%) ('+(Eo?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",re+="</div></div>",re+='<div class="col-8">',re+='<div class="tab-content">',re+='<div class="tab-pane fade show active" id="examineMessage0_20'+j+'" role="liquidMessagesTabpanel">',Vt==null||Vt.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessage20_40'+j+'" role="liquidMessagesTabpanel">',Io==null||Io.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessage40_60'+j+'" role="liquidMessagesTabpanel">',Hn==null||Hn.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessage60_80'+j+'" role="liquidMessagesTabpanel">',Lr==null||Lr.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+='<div class="tab-pane fade" id="examineMessage80_100'+j+'" role="liquidMessagesTabpanel">',no==null||no.forEach(function(Fe){re+=Fe+"<br>"}),re+="</div>",re+="</div>",re+="</div></div>",re+="</div>",re+="</div></div></div>",re+="</div></div></div>",re},l=function(){var x=new Date,j=String(x.getHours());j.length<2&&(j="0"+j);var p=String(x.getMinutes());p.length<2&&(p="0"+p);var _=String(x.getDate());_.length<2&&(_="0"+_);var E=String(x.getMonth()+1);E.length<2&&(E="0"+E);var I=String(x.getFullYear());return" "+I+"-"+E+"-"+_+" ("+j+" "+p+")"},c=function(x){var j=(0,a.Oc)(),p=j.act,_=j.data,E=_.db_version,I=_.db_repo,O=_.mob_name,M=_.bellies,D=l(),A=O+D+x,B;if(x===".html"){var U="<style></style>";B=new Blob(['<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>'+M.length+" Exported Bellies (DB_VER: "+I+"-"+E+')</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">'+U+'</head><body class="py-4"><main><div class="container"><h2>Bellies of '+O+'</h2><p class="lead">Generated on: '+D+'</p><div class="accordion" id="accordionBellies">'],{type:"text/html;charset=utf8"}),M.forEach(function(L,k){B=new Blob([B,v(L,k)],{type:"text/html;charset=utf8"})}),B=new Blob([B,"</div>",'<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"><\/script>',"</div></main></body></html>"],{type:"text/html;charset=utf8"})}x===".vrdb"&&(B=new Blob([JSON.stringify(M)],{type:"application/json"})),window.navigator.msSaveOrOpenBlob(B,A)},u=function(){return(0,e.jsx)(r.p8,{width:790,height:560,theme:"abstract",children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(h,{})})})},h=function(x){var j=(0,a.Oc)(),p=j.act,_=j.data,E=_.bellies;return(0,e.jsx)(n.wn,{title:"Vore Export Panel",children:(0,e.jsxs)(n.wn,{title:"Export",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"file-alt",onClick:function(){return c(".html")},children:"Export (HTML)"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"file-alt",onClick:function(){return c(".vrdb")},children:"Export (VRDB)"})]})})}},8918:function(S,y,t){"use strict";t.r(y),t.d(y,{Wires:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.wires||[],v=d.status||[];return(0,e.jsx)(r.p8,{width:350,height:150+f.length*30,children:(0,e.jsxs)(r.p8.Content,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:f.map(function(l){return(0,e.jsx)(n.Ki.Item,{className:"candystripe",label:l.color_name,labelColor:l.seen_color,color:l.seen_color,buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{content:l.cut?"Mend":"Cut",onClick:function(){return g("cut",{wire:l.color})}}),(0,e.jsx)(n.$n,{content:"Pulse",onClick:function(){return g("pulse",{wire:l.color})}}),(0,e.jsx)(n.$n,{content:l.attached?"Detach":"Attach",onClick:function(){return g("attach",{wire:l.color})}})]}),children:!!l.wire&&(0,e.jsxs)("i",{children:["(",l.wire,")"]})},l.seen_color)})})}),!!v.length&&(0,e.jsx)(n.wn,{children:v.map(function(l){return(0,e.jsx)(n.az,{color:"lightgray",mt:.1,children:l},l)})})]})})}},75044:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchArtifactAnalyzer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(){return(0,e.jsx)(r.p8,{width:250,height:140,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(m,{})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.owned_scanner,l=f.scan_in_progress;return v?l?(0,e.jsxs)(n.wn,{title:"Scan In Progress",children:["Scanning...",(0,e.jsx)(n.$n,{mt:1,fluid:!0,icon:"stop",onClick:function(){return d("scan")},children:"Cancel Scan"})]}):(0,e.jsx)(n.wn,{title:"Artifact Analyzer",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"search",onClick:function(){return d("scan")},children:"Begin Scan"})}):(0,e.jsx)(n.wn,{title:"No Scanner Detected",children:(0,e.jsx)(n.az,{color:"bad",children:"Warning: No scanner was detected. This machine requires a scanner to operate."})})}},42744:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchArtifactHarvester:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.info,l=v.no_scanner,c=v.harvesting,u=v.inserted_battery;return(0,e.jsx)(r.p8,{width:450,height:200,children:(0,e.jsx)(r.p8.Content,{children:l&&(0,e.jsx)(n.az,{color:"bad",children:"Warning: No scanner detected."})||(0,e.jsx)(n.wn,{children:c>0&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",textAlign:"center",mb:1,children:"Please wait. Harvesting in progress."}),(0,e.jsx)(m,{}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,icon:"stop",onClick:function(){return d("stopharvest")},children:"Stop Early"})]})||c<0&&(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.az,{color:"label",textAlign:"center",mb:1,children:"Please wait. Energy dump in progress."}),(0,e.jsx)(m,{}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,icon:"stop",onClick:function(){return d("stopharvest")},children:"Stop Early"})]})||Object.keys(u).length&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:u.name}),(0,e.jsx)(n.Ki.Item,{label:"Charge",children:(0,e.jsx)(m,{})}),(0,e.jsx)(n.Ki.Item,{label:"Energy Signature ID",children:u.artifact_id})]}),(0,e.jsx)(n.$n,{mt:1,fluid:!0,icon:"eject",onClick:function(){return d("ejectbattery")},children:"Eject Battery"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"bolt",onClick:function(){return d("drainbattery")},children:"Drain Battery"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"star",onClick:function(){return d("harvest")},children:"Begin Harvest"})]})||(0,e.jsx)(n.az,{color:"bad",children:"No battery inserted."})})})})},m=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.info.inserted_battery;return Object.keys(v).length?(0,e.jsx)(n.z2,{minValue:0,value:v.stored_charge,maxValue:v.capacity}):(0,e.jsx)(n.az,{color:"bad",children:"No battery inserted."})}},52187:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchDepthScanner:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.current,v=d.positive_locations;return(0,e.jsx)(r.p8,{width:300,height:500,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[Object.keys(f).length&&(0,e.jsx)(n.wn,{title:"Selected",buttons:(0,e.jsx)(n.$n.Confirm,{color:"bad",icon:"trash",confirmIcon:"trash",content:"Delete Entry",onClick:function(){return g("clear",{index:f.index})}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Time",children:f.time}),(0,e.jsx)(n.Ki.Item,{label:"Coords",children:f.coords}),(0,e.jsxs)(n.Ki.Item,{label:"Anomaly Depth",children:[f.depth," cm"]}),(0,e.jsxs)(n.Ki.Item,{label:"Anomaly Size",children:[f.clearance," cm"]}),(0,e.jsx)(n.Ki.Item,{label:"Dissonance Spread",children:f.dissonance_spread}),(0,e.jsx)(n.Ki.Item,{label:"Anomaly Material",children:f.material})]})})||null,(0,e.jsx)(n.wn,{title:"Entries",buttons:(0,e.jsx)(n.$n.Confirm,{color:"red",icon:"trash",confirmIcon:"trash",content:"Delete All",onClick:function(){return g("clear")}}),children:v.length&&v.map(function(l){return(0,e.jsxs)(n.$n,{icon:"eye",onClick:function(){return g("select",{select:l.index})},children:[l.time,", ",l.coords]},l.index)})||(0,e.jsx)(n.az,{color:"bad",children:"No traces found."})})]})})}},66263:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchHandheldPowerUtilizer:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.inserted_battery,v=d.anomaly,l=d.charge,c=d.capacity,u=d.timeleft,h=d.activated,x=d.duration,j=d.interval;return(0,e.jsx)(r.p8,{width:400,height:500,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:"Anomaly Power Utilizer",buttons:(0,e.jsx)(n.$n,{disabled:!f,icon:"eject",onClick:function(){return g("ejectbattery")},children:"Eject Battery"}),children:f&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Inserted Battery",children:f}),(0,e.jsx)(n.Ki.Item,{label:"Anomalies Detected",children:v||"N/A"}),(0,e.jsx)(n.Ki.Item,{label:"Charge",children:(0,e.jsxs)(n.z2,{value:l,maxValue:c,children:[l," / ",c]})}),(0,e.jsx)(n.Ki.Item,{label:"Time Left Activated",children:u}),(0,e.jsx)(n.Ki.Item,{label:"Power",children:(0,e.jsx)(n.$n,{fluid:!0,icon:"power-off",onClick:function(){return g("startup")},children:h?"Activated":"Deactivated"})}),(0,e.jsx)(n.Ki.Item,{label:"Activation Duration",children:(0,e.jsx)(n.Q7,{unit:"s",fluid:!0,minValue:0,value:x,stepPixelSize:4,maxValue:30,onDrag:function(p,_){return g("changeduration",{duration:_*10})}})}),(0,e.jsx)(n.Ki.Item,{label:"Activation Interval",children:(0,e.jsx)(n.Q7,{unit:"s",fluid:!0,minValue:0,value:j,stepPixelSize:10,maxValue:10,onDrag:function(p,_){return g("changeinterval",{interval:_*10})}})})]})||(0,e.jsx)(n.az,{color:"bad",children:"No battery inserted. Please insert a cell."})})})})}},57563:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchReplicator:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.tgui_construction;return(0,e.jsx)(r.p8,{theme:"abductor",width:400,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f.map(function(v,l){return(0,e.jsx)(n.$n,{color:v.background,icon:v.icon,iconColor:v.foreground,fontSize:4,onClick:function(){return g("construct",{key:v.key})}},v.key)})})})}},37591:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchReplicator_clothing_vr:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.tgui_construction;return(0,e.jsx)(r.p8,{theme:"abductor",width:400,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f.map(function(v,l){return(0,e.jsx)(n.$n,{color:v.background,icon:v.icon,iconColor:v.foreground,fontSize:4,onClick:function(){return g("construct",{key:v.key})}},v.key)})})})}},50197:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchReplicator_voremob_vr:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.tgui_construction;return(0,e.jsx)(r.p8,{theme:"abductor",width:400,height:400,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:f.map(function(v,l){return(0,e.jsx)(n.$n,{color:v.background,icon:v.icon,iconColor:v.foreground,fontSize:4,onClick:function(){return g("construct",{key:v.key})}},v.key)})})})}},82927:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchSpectrometer:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=t(84905),m=function(b){var g=(0,n.Oc)(),d=g.act,f=g.data,v=f.scanned_item,l=f.scanned_item_desc,c=f.last_scan_data,u=f.scan_progress,h=f.scanning,x=f.scanner_seal_integrity,j=f.scanner_rpm,p=f.scanner_temperature,_=f.coolant_usage_rate,E=f.coolant_usage_max,I=f.unused_coolant_abs,O=f.unused_coolant_per,M=f.coolant_purity,D=f.optimal_wavelength,A=f.maser_wavelength,B=f.maser_wavelength_max,U=f.maser_efficiency,L=f.radiation,k=f.t_left_radspike,Y=f.rad_shield_on;return(0,e.jsx)(o.p8,{width:900,height:760,children:(0,e.jsxs)(o.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.$n,{icon:"signal",selected:h,onClick:function(){return d("scanItem")},children:h?"HALT SCAN":"Begin Scan"}),(0,e.jsx)(r.$n,{icon:"eject",disabled:!v,onClick:function(){return d("ejectItem")},children:"Eject Item"})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Item",children:v||(0,e.jsx)(r.az,{color:"bad",children:"No item inserted."})}),(0,e.jsx)(r.Ki.Item,{label:"Heuristic Analysis",children:l||"None found."})]})}),(0,e.jsx)(r.wn,{title:"Scanner",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Scan Progress",children:(0,e.jsx)(r.z2,{value:u,minValue:0,maxValue:100,color:"good"})}),(0,e.jsx)(r.Ki.Item,{label:"Vacuum Seal Integrity",children:(0,e.jsx)(r.z2,{value:x,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})})]})}),(0,e.jsx)(r.wn,{title:"MASER",buttons:(0,e.jsx)(r.IC,{info:!0,children:"Match wavelengths to progress the scan."}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"MASER Efficiency",children:(0,e.jsx)(r.z2,{value:U,minValue:0,maxValue:100,ranges:{good:[66,100],average:[33,66],bad:[0,33]}})}),(0,e.jsx)(r.Ki.Item,{label:"Wavelength",children:(0,e.jsx)(r.Ap,{animated:!0,value:A,fillValue:D,minValue:1,maxValue:B,format:function(V){return V+" MHz"},step:10,onDrag:function(V,H){return d("maserWavelength",{wavelength:H})}})})]})}),(0,e.jsx)(r.wn,{title:"Environment / Internal",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Centrifuge Speed",children:(0,e.jsxs)(r.z2,{value:j,minValue:0,maxValue:1e3,color:"good",children:[j," RPM"]})}),(0,e.jsx)(r.Ki.Item,{label:"Internal Temperature",children:(0,e.jsxs)(r.z2,{minValue:0,value:p,maxValue:1273,ranges:{bad:[1e3,1/0],average:[250,1e3],good:[0,250]},children:[p," K"]})})]})}),(0,e.jsx)(r.wn,{title:"Radiation",buttons:(0,e.jsx)(r.$n,{selected:Y,icon:"radiation",onClick:function(){return d("toggle_rad_shield")},children:Y?"Disable Radiation Shielding":"Enable Radiation Shielding"}),children:(0,e.jsx)(r.Ki,{children:(0,e.jsx)(r.Ki.Item,{label:"Ambient Radiation",children:(0,e.jsxs)(r.z2,{minValue:0,value:L,maxValue:100,ranges:{bad:[65,1/0],average:[15,65],good:[0,15]},children:[L," mSv"]})})})}),(0,e.jsx)(r.wn,{title:"Cooling",children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Coolant Remaining",children:(0,e.jsxs)(r.z2,{minValue:0,value:O*10,maxValue:1e3,ranges:{good:[65,1/0],average:[15,65],bad:[0,15]},children:[O*10," u"]})}),(0,e.jsx)(r.Ki.Item,{label:"Coolant Flow Rate",children:(0,e.jsx)(r.Ap,{minValue:0,value:_,maxValue:E,stepPixelSize:50,format:function(V){return V+" u/s"},onDrag:function(V,H){return d("coolantRate",{coolant:H})}})}),(0,e.jsx)(r.Ki.Item,{label:"Coolant Purity",children:(0,e.jsx)(r.z2,{minValue:0,value:M,maxValue:100,ranges:{good:[66,1/0],average:[33,66],bad:[0,33]}})})]})}),(0,e.jsx)(r.wn,{title:"Latest Results",children:(0,a.jT)(c).split("\n").map(function(V){return(0,e.jsx)(r.az,{children:V},V)})})]})})}},73999:function(S,y,t){"use strict";t.r(y),t.d(y,{XenoarchSuspension:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.cell,v=d.cellCharge,l=d.cellMaxCharge,c=d.locked,u=d.suspension_field;return(0,e.jsx)(r.p8,{width:400,height:150,children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{title:'Triple-phase S.F.G. MK III "Reliant"',buttons:(0,e.jsx)(n.$n,{icon:c?"lock":"lock-open",selected:!c,onClick:function(){return g("lock")},children:c?"Locked":"Unlocked"}),children:c&&(0,e.jsx)(n.az,{color:"bad",children:"This interface is locked. Swipe an ID card to unlock it."})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:f&&(0,e.jsx)(n.z2,{ranges:{good:[l*.75,1/0],average:[l*.5,l*.75],bad:[-1/0,l*.5]},value:v,maxValue:l})||(0,e.jsx)(n.az,{color:"bad",children:"No cell inserted."})})}),(0,e.jsx)(n.$n,{fluid:!0,mt:1,icon:"meteor",selected:u,onClick:function(){return g("toggle_field")},children:u?"Disengage Suspension Field":"Engage Suspension Field"})]})})})})}},4733:function(S,y,t){"use strict";t.r(y),t.d(y,{Changelog:function(){return Ga}});var e=t(88095),a=t(84352),n=t(81570),r=t.n(n);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function o(P){return typeof P=="undefined"||P===null}function m(P){return typeof P=="object"&&P!==null}function b(P){return Array.isArray(P)?P:o(P)?[]:[P]}function g(P,ee){var ae,fe,ie,Ce;if(ee)for(Ce=Object.keys(ee),ae=0,fe=Ce.length;ae<fe;ae+=1)ie=Ce[ae],P[ie]=ee[ie];return P}function d(P,ee){var ae="",fe;for(fe=0;fe<ee;fe+=1)ae+=P;return ae}function f(P){return P===0&&Number.NEGATIVE_INFINITY===1/P}var v=o,l=m,c=b,u=d,h=f,x=g,j={isNothing:v,isObject:l,toArray:c,repeat:u,isNegativeZero:h,extend:x};function p(P,ee){var ae="",fe=P.reason||"(unknown reason)";return P.mark?(P.mark.name&&(ae+='in "'+P.mark.name+'" '),ae+="("+(P.mark.line+1)+":"+(P.mark.column+1)+")",!ee&&P.mark.snippet&&(ae+="\n\n"+P.mark.snippet),fe+" "+ae):fe}function _(P,ee){Error.call(this),this.name="YAMLException",this.reason=P,this.mark=ee,this.message=p(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}_.prototype=Object.create(Error.prototype),_.prototype.constructor=_,_.prototype.toString=function(ee){return this.name+": "+p(this,ee)};var E=_;function I(P,ee,ae,fe,ie){var Ce="",ge="",Oe=Math.floor(ie/2)-1;return fe-ee>Oe&&(Ce=" ... ",ee=fe-Oe+Ce.length),ae-fe>Oe&&(ge=" ...",ae=fe+Oe-ge.length),{str:Ce+P.slice(ee,ae).replace(/\t/g,"\u2192")+ge,pos:fe-ee+Ce.length}}function O(P,ee){return j.repeat(" ",ee-P.length)+P}function M(P,ee){if(ee=Object.create(ee||null),!P.buffer)return null;ee.maxLength||(ee.maxLength=79),typeof ee.indent!="number"&&(ee.indent=1),typeof ee.linesBefore!="number"&&(ee.linesBefore=3),typeof ee.linesAfter!="number"&&(ee.linesAfter=2);for(var ae=/\r?\n|\r|\0/g,fe=[0],ie=[],Ce,ge=-1;Ce=ae.exec(P.buffer);)ie.push(Ce.index),fe.push(Ce.index+Ce[0].length),P.position<=Ce.index&&ge<0&&(ge=fe.length-2);ge<0&&(ge=fe.length-1);var Oe="",De,Ue,ft=Math.min(P.line+ee.linesAfter,ie.length).toString().length,et=ee.maxLength-(ee.indent+ft+3);for(De=1;De<=ee.linesBefore&&!(ge-De<0);De++)Ue=I(P.buffer,fe[ge-De],ie[ge-De],P.position-(fe[ge]-fe[ge-De]),et),Oe=j.repeat(" ",ee.indent)+O((P.line-De+1).toString(),ft)+" | "+Ue.str+"\n"+Oe;for(Ue=I(P.buffer,fe[ge],ie[ge],P.position,et),Oe+=j.repeat(" ",ee.indent)+O((P.line+1).toString(),ft)+" | "+Ue.str+"\n",Oe+=j.repeat("-",ee.indent+ft+3+Ue.pos)+"^\n",De=1;De<=ee.linesAfter&&!(ge+De>=ie.length);De++)Ue=I(P.buffer,fe[ge+De],ie[ge+De],P.position-(fe[ge]-fe[ge+De]),et),Oe+=j.repeat(" ",ee.indent)+O((P.line+De+1).toString(),ft)+" | "+Ue.str+"\n";return Oe.replace(/\n$/,"")}var D=M,A=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],B=["scalar","sequence","mapping"];function U(P){var ee={};return P!==null&&Object.keys(P).forEach(function(ae){P[ae].forEach(function(fe){ee[String(fe)]=ae})}),ee}function L(P,ee){if(ee=ee||{},Object.keys(ee).forEach(function(ae){if(A.indexOf(ae)===-1)throw new E('Unknown option "'+ae+'" is met in definition of "'+P+'" YAML type.')}),this.options=ee,this.tag=P,this.kind=ee.kind||null,this.resolve=ee.resolve||function(){return!0},this.construct=ee.construct||function(ae){return ae},this.instanceOf=ee.instanceOf||null,this.predicate=ee.predicate||null,this.represent=ee.represent||null,this.representName=ee.representName||null,this.defaultStyle=ee.defaultStyle||null,this.multi=ee.multi||!1,this.styleAliases=U(ee.styleAliases||null),B.indexOf(this.kind)===-1)throw new E('Unknown kind "'+this.kind+'" is specified for "'+P+'" YAML type.')}var k=L;function Y(P,ee){var ae=[];return P[ee].forEach(function(fe){var ie=ae.length;ae.forEach(function(Ce,ge){Ce.tag===fe.tag&&Ce.kind===fe.kind&&Ce.multi===fe.multi&&(ie=ge)}),ae[ie]=fe}),ae}function V(){var P={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},ee,ae;function fe(ie){ie.multi?(P.multi[ie.kind].push(ie),P.multi.fallback.push(ie)):P[ie.kind][ie.tag]=P.fallback[ie.tag]=ie}for(ee=0,ae=arguments.length;ee<ae;ee+=1)arguments[ee].forEach(fe);return P}function H(P){return this.extend(P)}H.prototype.extend=function(ee){var ae=[],fe=[];if(ee instanceof k)fe.push(ee);else if(Array.isArray(ee))fe=fe.concat(ee);else if(ee&&(Array.isArray(ee.implicit)||Array.isArray(ee.explicit)))ee.implicit&&(ae=ae.concat(ee.implicit)),ee.explicit&&(fe=fe.concat(ee.explicit));else throw new E("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");ae.forEach(function(Ce){if(!(Ce instanceof k))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(Ce.loadKind&&Ce.loadKind!=="scalar")throw new E("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(Ce.multi)throw new E("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),fe.forEach(function(Ce){if(!(Ce instanceof k))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var ie=Object.create(H.prototype);return ie.implicit=(this.implicit||[]).concat(ae),ie.explicit=(this.explicit||[]).concat(fe),ie.compiledImplicit=Y(ie,"implicit"),ie.compiledExplicit=Y(ie,"explicit"),ie.compiledTypeMap=V(ie.compiledImplicit,ie.compiledExplicit),ie};var N=H,q=new k("tag:yaml.org,2002:str",{kind:"scalar",construct:function(P){return P!==null?P:""}}),G=new k("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(P){return P!==null?P:[]}}),Q=new k("tag:yaml.org,2002:map",{kind:"mapping",construct:function(P){return P!==null?P:{}}}),F=new N({explicit:[q,G,Q]});function Z(P){if(P===null)return!0;var ee=P.length;return ee===1&&P==="~"||ee===4&&(P==="null"||P==="Null"||P==="NULL")}function oe(){return null}function le(P){return P===null}var ue=new k("tag:yaml.org,2002:null",{kind:"scalar",resolve:Z,construct:oe,predicate:le,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function he(P){if(P===null)return!1;var ee=P.length;return ee===4&&(P==="true"||P==="True"||P==="TRUE")||ee===5&&(P==="false"||P==="False"||P==="FALSE")}function de(P){return P==="true"||P==="True"||P==="TRUE"}function ve(P){return Object.prototype.toString.call(P)==="[object Boolean]"}var pe=new k("tag:yaml.org,2002:bool",{kind:"scalar",resolve:he,construct:de,predicate:ve,represent:{lowercase:function(P){return P?"true":"false"},uppercase:function(P){return P?"TRUE":"FALSE"},camelcase:function(P){return P?"True":"False"}},defaultStyle:"lowercase"});function be(P){return 48<=P&&P<=57||65<=P&&P<=70||97<=P&&P<=102}function ye(P){return 48<=P&&P<=55}function Te(P){return 48<=P&&P<=57}function Ke(P){if(P===null)return!1;var ee=P.length,ae=0,fe=!1,ie;if(!ee)return!1;if(ie=P[ae],(ie==="-"||ie==="+")&&(ie=P[++ae]),ie==="0"){if(ae+1===ee)return!0;if(ie=P[++ae],ie==="b"){for(ae++;ae<ee;ae++)if(ie=P[ae],ie!=="_"){if(ie!=="0"&&ie!=="1")return!1;fe=!0}return fe&&ie!=="_"}if(ie==="x"){for(ae++;ae<ee;ae++)if(ie=P[ae],ie!=="_"){if(!be(P.charCodeAt(ae)))return!1;fe=!0}return fe&&ie!=="_"}if(ie==="o"){for(ae++;ae<ee;ae++)if(ie=P[ae],ie!=="_"){if(!ye(P.charCodeAt(ae)))return!1;fe=!0}return fe&&ie!=="_"}}if(ie==="_")return!1;for(;ae<ee;ae++)if(ie=P[ae],ie!=="_"){if(!Te(P.charCodeAt(ae)))return!1;fe=!0}return!(!fe||ie==="_")}function $e(P){var ee=P,ae=1,fe;if(ee.indexOf("_")!==-1&&(ee=ee.replace(/_/g,"")),fe=ee[0],(fe==="-"||fe==="+")&&(fe==="-"&&(ae=-1),ee=ee.slice(1),fe=ee[0]),ee==="0")return 0;if(fe==="0"){if(ee[1]==="b")return ae*parseInt(ee.slice(2),2);if(ee[1]==="x")return ae*parseInt(ee.slice(2),16);if(ee[1]==="o")return ae*parseInt(ee.slice(2),8)}return ae*parseInt(ee,10)}function We(P){return Object.prototype.toString.call(P)==="[object Number]"&&P%1===0&&!j.isNegativeZero(P)}var Qe=new k("tag:yaml.org,2002:int",{kind:"scalar",resolve:Ke,construct:$e,predicate:We,represent:{binary:function(P){return P>=0?"0b"+P.toString(2):"-0b"+P.toString(2).slice(1)},octal:function(P){return P>=0?"0o"+P.toString(8):"-0o"+P.toString(8).slice(1)},decimal:function(P){return P.toString(10)},hexadecimal:function(P){return P>=0?"0x"+P.toString(16).toUpperCase():"-0x"+P.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ye=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mt(P){return!(P===null||!Ye.test(P)||P[P.length-1]==="_")}function vt(P){var ee,ae;return ee=P.replace(/_/g,"").toLowerCase(),ae=ee[0]==="-"?-1:1,"+-".indexOf(ee[0])>=0&&(ee=ee.slice(1)),ee===".inf"?ae===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:ee===".nan"?NaN:ae*parseFloat(ee,10)}var ht=/^[-+]?[0-9]+e/;function ot(P,ee){var ae;if(isNaN(P))switch(ee){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===P)switch(ee){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===P)switch(ee){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(j.isNegativeZero(P))return"-0.0";return ae=P.toString(10),ht.test(ae)?ae.replace("e",".e"):ae}function He(P){return Object.prototype.toString.call(P)==="[object Number]"&&(P%1!==0||j.isNegativeZero(P))}var Ne=new k("tag:yaml.org,2002:float",{kind:"scalar",resolve:mt,construct:vt,predicate:He,represent:ot,defaultStyle:"lowercase"}),ke=F.extend({implicit:[ue,pe,Qe,Ne]}),we=ke,qe=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Je=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lt(P){return P===null?!1:qe.exec(P)!==null||Je.exec(P)!==null}function at(P){var ee,ae,fe,ie,Ce,ge,Oe,De=0,Ue=null,ft,et,Ct;if(ee=qe.exec(P),ee===null&&(ee=Je.exec(P)),ee===null)throw new Error("Date resolve error");if(ae=+ee[1],fe=+ee[2]-1,ie=+ee[3],!ee[4])return new Date(Date.UTC(ae,fe,ie));if(Ce=+ee[4],ge=+ee[5],Oe=+ee[6],ee[7]){for(De=ee[7].slice(0,3);De.length<3;)De+="0";De=+De}return ee[9]&&(ft=+ee[10],et=+(ee[11]||0),Ue=(ft*60+et)*6e4,ee[9]==="-"&&(Ue=-Ue)),Ct=new Date(Date.UTC(ae,fe,ie,Ce,ge,Oe,De)),Ue&&Ct.setTime(Ct.getTime()-Ue),Ct}function Xt(P){return P.toISOString()}var Wt=new k("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lt,construct:at,instanceOf:Date,represent:Xt});function zt(P){return P==="<<"||P===null}var bt=new k("tag:yaml.org,2002:merge",{kind:"scalar",resolve:zt}),st="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function it(P){if(P===null)return!1;var ee,ae,fe=0,ie=P.length,Ce=st;for(ae=0;ae<ie;ae++)if(ee=Ce.indexOf(P.charAt(ae)),!(ee>64)){if(ee<0)return!1;fe+=6}return fe%8===0}function gt(P){var ee,ae,fe=P.replace(/[\r\n=]/g,""),ie=fe.length,Ce=st,ge=0,Oe=[];for(ee=0;ee<ie;ee++)ee%4===0&&ee&&(Oe.push(ge>>16&255),Oe.push(ge>>8&255),Oe.push(ge&255)),ge=ge<<6|Ce.indexOf(fe.charAt(ee));return ae=ie%4*6,ae===0?(Oe.push(ge>>16&255),Oe.push(ge>>8&255),Oe.push(ge&255)):ae===18?(Oe.push(ge>>10&255),Oe.push(ge>>2&255)):ae===12&&Oe.push(ge>>4&255),new Uint8Array(Oe)}function Pt(P){var ee="",ae=0,fe,ie,Ce=P.length,ge=st;for(fe=0;fe<Ce;fe++)fe%3===0&&fe&&(ee+=ge[ae>>18&63],ee+=ge[ae>>12&63],ee+=ge[ae>>6&63],ee+=ge[ae&63]),ae=(ae<<8)+P[fe];return ie=Ce%3,ie===0?(ee+=ge[ae>>18&63],ee+=ge[ae>>12&63],ee+=ge[ae>>6&63],ee+=ge[ae&63]):ie===2?(ee+=ge[ae>>10&63],ee+=ge[ae>>4&63],ee+=ge[ae<<2&63],ee+=ge[64]):ie===1&&(ee+=ge[ae>>2&63],ee+=ge[ae<<4&63],ee+=ge[64],ee+=ge[64]),ee}function Ft(P){return Object.prototype.toString.call(P)==="[object Uint8Array]"}var Yt=new k("tag:yaml.org,2002:binary",{kind:"scalar",resolve:it,construct:gt,predicate:Ft,represent:Pt}),ln=Object.prototype.hasOwnProperty,tn=Object.prototype.toString;function yn(P){if(P===null)return!0;var ee=[],ae,fe,ie,Ce,ge,Oe=P;for(ae=0,fe=Oe.length;ae<fe;ae+=1){if(ie=Oe[ae],ge=!1,tn.call(ie)!=="[object Object]")return!1;for(Ce in ie)if(ln.call(ie,Ce))if(!ge)ge=!0;else return!1;if(!ge)return!1;if(ee.indexOf(Ce)===-1)ee.push(Ce);else return!1}return!0}function Bn(P){return P!==null?P:[]}var Tt=new k("tag:yaml.org,2002:omap",{kind:"sequence",resolve:yn,construct:Bn}),Kn=Object.prototype.toString;function Jn(P){if(P===null)return!0;var ee,ae,fe,ie,Ce,ge=P;for(Ce=new Array(ge.length),ee=0,ae=ge.length;ee<ae;ee+=1){if(fe=ge[ee],Kn.call(fe)!=="[object Object]"||(ie=Object.keys(fe),ie.length!==1))return!1;Ce[ee]=[ie[0],fe[ie[0]]]}return!0}function Xr(P){if(P===null)return[];var ee,ae,fe,ie,Ce,ge=P;for(Ce=new Array(ge.length),ee=0,ae=ge.length;ee<ae;ee+=1)fe=ge[ee],ie=Object.keys(fe),Ce[ee]=[ie[0],fe[ie[0]]];return Ce}var wr=new k("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jn,construct:Xr}),Rr=Object.prototype.hasOwnProperty;function Br(P){if(P===null)return!0;var ee,ae=P;for(ee in ae)if(Rr.call(ae,ee)&&ae[ee]!==null)return!1;return!0}function Kr(P){return P!==null?P:{}}var Gr=new k("tag:yaml.org,2002:set",{kind:"mapping",resolve:Br,construct:Kr}),En=we.extend({implicit:[Wt,bt],explicit:[Yt,Tt,wr,Gr]}),In=Object.prototype.hasOwnProperty,kn=1,On=2,Pn=3,Ln=4,qn=1,Yr=2,bo=3,Fo=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ui=/[\x85\u2028\u2029]/,er=/[,\[\]\{\}]/,yo=/^(?:!|!!|![a-z\-]+!)$/i,Qr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Vo(P){return Object.prototype.toString.call(P)}function Nn(P){return P===10||P===13}function lr(P){return P===9||P===32}function mn(P){return P===9||P===32||P===10||P===13}function cr(P){return P===44||P===91||P===93||P===123||P===125}function di(P){var ee;return 48<=P&&P<=57?P-48:(ee=P|32,97<=ee&&ee<=102?ee-97+10:-1)}function fi(P){return P===120?2:P===117?4:P===85?8:0}function Zt(P){return 48<=P&&P<=57?P-48:-1}function hi(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?"\n":P===118?"\v":P===102?"\f":P===114?"\r":P===101?"\x1B":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function kr(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var Ho=new Array(256),Zr=new Array(256),br=0;br<256;br++)Ho[br]=hi(br)?1:0,Zr[br]=hi(br);function _o(P,ee){this.input=P,this.filename=ee.filename||null,this.schema=ee.schema||En,this.onWarning=ee.onWarning||null,this.legacy=ee.legacy||!1,this.json=ee.json||!1,this.listener=ee.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Jr(P,ee){var ae={name:P.filename,buffer:P.input.slice(0,-1),position:P.position,line:P.line,column:P.position-P.lineStart};return ae.snippet=D(ae),new E(ee,ae)}function dt(P,ee){throw Jr(P,ee)}function qr(P,ee){P.onWarning&&P.onWarning.call(null,Jr(P,ee))}var Mn={YAML:function(ee,ae,fe){var ie,Ce,ge;ee.version!==null&&dt(ee,"duplication of %YAML directive"),fe.length!==1&&dt(ee,"YAML directive accepts exactly one argument"),ie=/^([0-9]+)\.([0-9]+)$/.exec(fe[0]),ie===null&&dt(ee,"ill-formed argument of the YAML directive"),Ce=parseInt(ie[1],10),ge=parseInt(ie[2],10),Ce!==1&&dt(ee,"unacceptable YAML version of the document"),ee.version=fe[0],ee.checkLineBreaks=ge<2,ge!==1&&ge!==2&&qr(ee,"unsupported YAML version of the document")},TAG:function(ee,ae,fe){var ie,Ce;fe.length!==2&&dt(ee,"TAG directive accepts exactly two arguments"),ie=fe[0],Ce=fe[1],yo.test(ie)||dt(ee,"ill-formed tag handle (first argument) of the TAG directive"),In.call(ee.tagMap,ie)&&dt(ee,'there is a previously declared suffix for "'+ie+'" tag handle'),Qr.test(Ce)||dt(ee,"ill-formed tag prefix (second argument) of the TAG directive");try{Ce=decodeURIComponent(Ce)}catch(ge){dt(ee,"tag prefix is malformed: "+Ce)}ee.tagMap[ie]=Ce}};function Vn(P,ee,ae,fe){var ie,Ce,ge,Oe;if(ee<ae){if(Oe=P.input.slice(ee,ae),fe)for(ie=0,Ce=Oe.length;ie<Ce;ie+=1)ge=Oe.charCodeAt(ie),ge===9||32<=ge&&ge<=1114111||dt(P,"expected valid JSON character");else Fo.test(Oe)&&dt(P,"the stream contains non-printable characters");P.result+=Oe}}function eo(P,ee,ae,fe){var ie,Ce,ge,Oe;for(j.isObject(ae)||dt(P,"cannot merge mappings; the provided source object is unacceptable"),ie=Object.keys(ae),ge=0,Oe=ie.length;ge<Oe;ge+=1)Ce=ie[ge],In.call(ee,Ce)||(ee[Ce]=ae[Ce],fe[Ce]=!0)}function ur(P,ee,ae,fe,ie,Ce,ge,Oe,De){var Ue,ft;if(Array.isArray(ie))for(ie=Array.prototype.slice.call(ie),Ue=0,ft=ie.length;Ue<ft;Ue+=1)Array.isArray(ie[Ue])&&dt(P,"nested arrays are not supported inside keys"),typeof ie=="object"&&Vo(ie[Ue])==="[object Object]"&&(ie[Ue]="[object Object]");if(typeof ie=="object"&&Vo(ie)==="[object Object]"&&(ie="[object Object]"),ie=String(ie),ee===null&&(ee={}),fe==="tag:yaml.org,2002:merge")if(Array.isArray(Ce))for(Ue=0,ft=Ce.length;Ue<ft;Ue+=1)eo(P,ee,Ce[Ue],ae);else eo(P,ee,Ce,ae);else!P.json&&!In.call(ae,ie)&&In.call(ee,ie)&&(P.line=ge||P.line,P.lineStart=Oe||P.lineStart,P.position=De||P.position,dt(P,"duplicated mapping key")),ie==="__proto__"?Object.defineProperty(ee,ie,{configurable:!0,enumerable:!0,writable:!0,value:Ce}):ee[ie]=Ce,delete ae[ie];return ee}function Un(P){var ee;ee=P.input.charCodeAt(P.position),ee===10?P.position++:ee===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):dt(P,"a line break is expected"),P.line+=1,P.lineStart=P.position,P.firstTabInLine=-1}function en(P,ee,ae){for(var fe=0,ie=P.input.charCodeAt(P.position);ie!==0;){for(;lr(ie);)ie===9&&P.firstTabInLine===-1&&(P.firstTabInLine=P.position),ie=P.input.charCodeAt(++P.position);if(ee&&ie===35)do ie=P.input.charCodeAt(++P.position);while(ie!==10&&ie!==13&&ie!==0);if(Nn(ie))for(Un(P),ie=P.input.charCodeAt(P.position),fe++,P.lineIndent=0;ie===32;)P.lineIndent++,ie=P.input.charCodeAt(++P.position);else break}return ae!==-1&&fe!==0&&P.lineIndent<ae&&qr(P,"deficient indentation"),fe}function tr(P){var ee=P.position,ae;return ae=P.input.charCodeAt(ee),!!((ae===45||ae===46)&&ae===P.input.charCodeAt(ee+1)&&ae===P.input.charCodeAt(ee+2)&&(ee+=3,ae=P.input.charCodeAt(ee),ae===0||mn(ae)))}function yr(P,ee){ee===1?P.result+=" ":ee>1&&(P.result+=j.repeat("\n",ee-1))}function mi(P,ee,ae){var fe,ie,Ce,ge,Oe,De,Ue,ft,et=P.kind,Ct=P.result,Ot;if(Ot=P.input.charCodeAt(P.position),mn(Ot)||cr(Ot)||Ot===35||Ot===38||Ot===42||Ot===33||Ot===124||Ot===62||Ot===39||Ot===34||Ot===37||Ot===64||Ot===96||(Ot===63||Ot===45)&&(ie=P.input.charCodeAt(P.position+1),mn(ie)||ae&&cr(ie)))return!1;for(P.kind="scalar",P.result="",Ce=ge=P.position,Oe=!1;Ot!==0;){if(Ot===58){if(ie=P.input.charCodeAt(P.position+1),mn(ie)||ae&&cr(ie))break}else if(Ot===35){if(fe=P.input.charCodeAt(P.position-1),mn(fe))break}else{if(P.position===P.lineStart&&tr(P)||ae&&cr(Ot))break;if(Nn(Ot))if(De=P.line,Ue=P.lineStart,ft=P.lineIndent,en(P,!1,-1),P.lineIndent>=ee){Oe=!0,Ot=P.input.charCodeAt(P.position);continue}else{P.position=ge,P.line=De,P.lineStart=Ue,P.lineIndent=ft;break}}Oe&&(Vn(P,Ce,ge,!1),yr(P,P.line-De),Ce=ge=P.position,Oe=!1),lr(Ot)||(ge=P.position+1),Ot=P.input.charCodeAt(++P.position)}return Vn(P,Ce,ge,!1),P.result?!0:(P.kind=et,P.result=Ct,!1)}function vi(P,ee){var ae,fe,ie;if(ae=P.input.charCodeAt(P.position),ae!==39)return!1;for(P.kind="scalar",P.result="",P.position++,fe=ie=P.position;(ae=P.input.charCodeAt(P.position))!==0;)if(ae===39)if(Vn(P,fe,P.position,!0),ae=P.input.charCodeAt(++P.position),ae===39)fe=P.position,P.position++,ie=P.position;else return!0;else Nn(ae)?(Vn(P,fe,ie,!0),yr(P,en(P,!1,ee)),fe=ie=P.position):P.position===P.lineStart&&tr(P)?dt(P,"unexpected end of the document within a single quoted scalar"):(P.position++,ie=P.position);dt(P,"unexpected end of the stream within a single quoted scalar")}function nr(P,ee){var ae,fe,ie,Ce,ge,Oe;if(Oe=P.input.charCodeAt(P.position),Oe!==34)return!1;for(P.kind="scalar",P.result="",P.position++,ae=fe=P.position;(Oe=P.input.charCodeAt(P.position))!==0;){if(Oe===34)return Vn(P,ae,P.position,!0),P.position++,!0;if(Oe===92){if(Vn(P,ae,P.position,!0),Oe=P.input.charCodeAt(++P.position),Nn(Oe))en(P,!1,ee);else if(Oe<256&&Ho[Oe])P.result+=Zr[Oe],P.position++;else if((ge=fi(Oe))>0){for(ie=ge,Ce=0;ie>0;ie--)Oe=P.input.charCodeAt(++P.position),(ge=di(Oe))>=0?Ce=(Ce<<4)+ge:dt(P,"expected hexadecimal character");P.result+=kr(Ce),P.position++}else dt(P,"unknown escape sequence");ae=fe=P.position}else Nn(Oe)?(Vn(P,ae,fe,!0),yr(P,en(P,!1,ee)),ae=fe=P.position):P.position===P.lineStart&&tr(P)?dt(P,"unexpected end of the document within a double quoted scalar"):(P.position++,fe=P.position)}dt(P,"unexpected end of the stream within a double quoted scalar")}function Co(P,ee){var ae=!0,fe,ie,Ce,ge=P.tag,Oe,De=P.anchor,Ue,ft,et,Ct,Ot,Ut=Object.create(null),Gt,Nt,hn,Lt;if(Lt=P.input.charCodeAt(P.position),Lt===91)ft=93,Ot=!1,Oe=[];else if(Lt===123)ft=125,Ot=!0,Oe={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=Oe),Lt=P.input.charCodeAt(++P.position);Lt!==0;){if(en(P,!0,ee),Lt=P.input.charCodeAt(P.position),Lt===ft)return P.position++,P.tag=ge,P.anchor=De,P.kind=Ot?"mapping":"sequence",P.result=Oe,!0;ae?Lt===44&&dt(P,"expected the node content, but found ','"):dt(P,"missed comma between flow collection entries"),Nt=Gt=hn=null,et=Ct=!1,Lt===63&&(Ue=P.input.charCodeAt(P.position+1),mn(Ue)&&(et=Ct=!0,P.position++,en(P,!0,ee))),fe=P.line,ie=P.lineStart,Ce=P.position,Hn(P,ee,kn,!1,!0),Nt=P.tag,Gt=P.result,en(P,!0,ee),Lt=P.input.charCodeAt(P.position),(Ct||P.line===fe)&&Lt===58&&(et=!0,Lt=P.input.charCodeAt(++P.position),en(P,!0,ee),Hn(P,ee,kn,!1,!0),hn=P.result),Ot?ur(P,Oe,Ut,Nt,Gt,hn,fe,ie,Ce):et?Oe.push(ur(P,null,Ut,Nt,Gt,hn,fe,ie,Ce)):Oe.push(Gt),en(P,!0,ee),Lt=P.input.charCodeAt(P.position),Lt===44?(ae=!0,Lt=P.input.charCodeAt(++P.position)):ae=!1}dt(P,"unexpected end of the stream within a flow collection")}function to(P,ee){var ae,fe,ie=qn,Ce=!1,ge=!1,Oe=ee,De=0,Ue=!1,ft,et;if(et=P.input.charCodeAt(P.position),et===124)fe=!1;else if(et===62)fe=!0;else return!1;for(P.kind="scalar",P.result="";et!==0;)if(et=P.input.charCodeAt(++P.position),et===43||et===45)qn===ie?ie=et===43?bo:Yr:dt(P,"repeat of a chomping mode identifier");else if((ft=Zt(et))>=0)ft===0?dt(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):ge?dt(P,"repeat of an indentation width identifier"):(Oe=ee+ft-1,ge=!0);else break;if(lr(et)){do et=P.input.charCodeAt(++P.position);while(lr(et));if(et===35)do et=P.input.charCodeAt(++P.position);while(!Nn(et)&&et!==0)}for(;et!==0;){for(Un(P),P.lineIndent=0,et=P.input.charCodeAt(P.position);(!ge||P.lineIndent<Oe)&&et===32;)P.lineIndent++,et=P.input.charCodeAt(++P.position);if(!ge&&P.lineIndent>Oe&&(Oe=P.lineIndent),Nn(et)){De++;continue}if(P.lineIndent<Oe){ie===bo?P.result+=j.repeat("\n",Ce?1+De:De):ie===qn&&Ce&&(P.result+="\n");break}for(fe?lr(et)?(Ue=!0,P.result+=j.repeat("\n",Ce?1+De:De)):Ue?(Ue=!1,P.result+=j.repeat("\n",De+1)):De===0?Ce&&(P.result+=" "):P.result+=j.repeat("\n",De):P.result+=j.repeat("\n",Ce?1+De:De),Ce=!0,ge=!0,De=0,ae=P.position;!Nn(et)&&et!==0;)et=P.input.charCodeAt(++P.position);Vn(P,ae,P.position,!1)}return!0}function dr(P,ee){var ae,fe=P.tag,ie=P.anchor,Ce=[],ge,Oe=!1,De;if(P.firstTabInLine!==-1)return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=Ce),De=P.input.charCodeAt(P.position);De!==0&&(P.firstTabInLine!==-1&&(P.position=P.firstTabInLine,dt(P,"tab characters must not be used in indentation")),!(De!==45||(ge=P.input.charCodeAt(P.position+1),!mn(ge))));){if(Oe=!0,P.position++,en(P,!0,-1)&&P.lineIndent<=ee){Ce.push(null),De=P.input.charCodeAt(P.position);continue}if(ae=P.line,Hn(P,ee,Pn,!1,!0),Ce.push(P.result),en(P,!0,-1),De=P.input.charCodeAt(P.position),(P.line===ae||P.lineIndent>ee)&&De!==0)dt(P,"bad indentation of a sequence entry");else if(P.lineIndent<ee)break}return Oe?(P.tag=fe,P.anchor=ie,P.kind="sequence",P.result=Ce,!0):!1}function pi(P,ee,ae){var fe,ie,Ce,ge,Oe,De,Ue=P.tag,ft=P.anchor,et={},Ct=Object.create(null),Ot=null,Ut=null,Gt=null,Nt=!1,hn=!1,Lt;if(P.firstTabInLine!==-1)return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=et),Lt=P.input.charCodeAt(P.position);Lt!==0;){if(!Nt&&P.firstTabInLine!==-1&&(P.position=P.firstTabInLine,dt(P,"tab characters must not be used in indentation")),fe=P.input.charCodeAt(P.position+1),Ce=P.line,(Lt===63||Lt===58)&&mn(fe))Lt===63?(Nt&&(ur(P,et,Ct,Ot,Ut,null,ge,Oe,De),Ot=Ut=Gt=null),hn=!0,Nt=!0,ie=!0):Nt?(Nt=!1,ie=!0):dt(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,Lt=fe;else{if(ge=P.line,Oe=P.lineStart,De=P.position,!Hn(P,ae,On,!1,!0))break;if(P.line===Ce){for(Lt=P.input.charCodeAt(P.position);lr(Lt);)Lt=P.input.charCodeAt(++P.position);if(Lt===58)Lt=P.input.charCodeAt(++P.position),mn(Lt)||dt(P,"a whitespace character is expected after the key-value separator within a block mapping"),Nt&&(ur(P,et,Ct,Ot,Ut,null,ge,Oe,De),Ot=Ut=Gt=null),hn=!0,Nt=!1,ie=!1,Ot=P.tag,Ut=P.result;else if(hn)dt(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=Ue,P.anchor=ft,!0}else if(hn)dt(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=Ue,P.anchor=ft,!0}if((P.line===Ce||P.lineIndent>ee)&&(Nt&&(ge=P.line,Oe=P.lineStart,De=P.position),Hn(P,ee,Ln,!0,ie)&&(Nt?Ut=P.result:Gt=P.result),Nt||(ur(P,et,Ct,Ot,Ut,Gt,ge,Oe,De),Ot=Ut=Gt=null),en(P,!0,-1),Lt=P.input.charCodeAt(P.position)),(P.line===Ce||P.lineIndent>ee)&&Lt!==0)dt(P,"bad indentation of a mapping entry");else if(P.lineIndent<ee)break}return Nt&&ur(P,et,Ct,Ot,Ut,null,ge,Oe,De),hn&&(P.tag=Ue,P.anchor=ft,P.kind="mapping",P.result=et),hn}function Eo(P){var ee,ae=!1,fe=!1,ie,Ce,ge;if(ge=P.input.charCodeAt(P.position),ge!==33)return!1;if(P.tag!==null&&dt(P,"duplication of a tag property"),ge=P.input.charCodeAt(++P.position),ge===60?(ae=!0,ge=P.input.charCodeAt(++P.position)):ge===33?(fe=!0,ie="!!",ge=P.input.charCodeAt(++P.position)):ie="!",ee=P.position,ae){do ge=P.input.charCodeAt(++P.position);while(ge!==0&&ge!==62);P.position<P.length?(Ce=P.input.slice(ee,P.position),ge=P.input.charCodeAt(++P.position)):dt(P,"unexpected end of the stream within a verbatim tag")}else{for(;ge!==0&&!mn(ge);)ge===33&&(fe?dt(P,"tag suffix cannot contain exclamation marks"):(ie=P.input.slice(ee-1,P.position+1),yo.test(ie)||dt(P,"named tag handle cannot contain such characters"),fe=!0,ee=P.position+1)),ge=P.input.charCodeAt(++P.position);Ce=P.input.slice(ee,P.position),er.test(Ce)&&dt(P,"tag suffix cannot contain flow indicator characters")}Ce&&!Qr.test(Ce)&&dt(P,"tag name cannot contain such characters: "+Ce);try{Ce=decodeURIComponent(Ce)}catch(Oe){dt(P,"tag name is malformed: "+Ce)}return ae?P.tag=Ce:In.call(P.tagMap,ie)?P.tag=P.tagMap[ie]+Ce:ie==="!"?P.tag="!"+Ce:ie==="!!"?P.tag="tag:yaml.org,2002:"+Ce:dt(P,'undeclared tag handle "'+ie+'"'),!0}function Vt(P){var ee,ae;if(ae=P.input.charCodeAt(P.position),ae!==38)return!1;for(P.anchor!==null&&dt(P,"duplication of an anchor property"),ae=P.input.charCodeAt(++P.position),ee=P.position;ae!==0&&!mn(ae)&&!cr(ae);)ae=P.input.charCodeAt(++P.position);return P.position===ee&&dt(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(ee,P.position),!0}function Io(P){var ee,ae,fe;if(fe=P.input.charCodeAt(P.position),fe!==42)return!1;for(fe=P.input.charCodeAt(++P.position),ee=P.position;fe!==0&&!mn(fe)&&!cr(fe);)fe=P.input.charCodeAt(++P.position);return P.position===ee&&dt(P,"name of an alias node must contain at least one character"),ae=P.input.slice(ee,P.position),In.call(P.anchorMap,ae)||dt(P,'unidentified alias "'+ae+'"'),P.result=P.anchorMap[ae],en(P,!0,-1),!0}function Hn(P,ee,ae,fe,ie){var Ce,ge,Oe,De=1,Ue=!1,ft=!1,et,Ct,Ot,Ut,Gt,Nt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,Ce=ge=Oe=Ln===ae||Pn===ae,fe&&en(P,!0,-1)&&(Ue=!0,P.lineIndent>ee?De=1:P.lineIndent===ee?De=0:P.lineIndent<ee&&(De=-1)),De===1)for(;Eo(P)||Vt(P);)en(P,!0,-1)?(Ue=!0,Oe=Ce,P.lineIndent>ee?De=1:P.lineIndent===ee?De=0:P.lineIndent<ee&&(De=-1)):Oe=!1;if(Oe&&(Oe=Ue||ie),(De===1||Ln===ae)&&(kn===ae||On===ae?Gt=ee:Gt=ee+1,Nt=P.position-P.lineStart,De===1?Oe&&(dr(P,Nt)||pi(P,Nt,Gt))||Co(P,Gt)?ft=!0:(ge&&to(P,Gt)||vi(P,Gt)||nr(P,Gt)?ft=!0:Io(P)?(ft=!0,(P.tag!==null||P.anchor!==null)&&dt(P,"alias node should not have any properties")):mi(P,Gt,kn===ae)&&(ft=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):De===0&&(ft=Oe&&dr(P,Nt))),P.tag===null)P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);else if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&dt(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),et=0,Ct=P.implicitTypes.length;et<Ct;et+=1)if(Ut=P.implicitTypes[et],Ut.resolve(P.result)){P.result=Ut.construct(P.result),P.tag=Ut.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else if(P.tag!=="!"){if(In.call(P.typeMap[P.kind||"fallback"],P.tag))Ut=P.typeMap[P.kind||"fallback"][P.tag];else for(Ut=null,Ot=P.typeMap.multi[P.kind||"fallback"],et=0,Ct=Ot.length;et<Ct;et+=1)if(P.tag.slice(0,Ot[et].tag.length)===Ot[et].tag){Ut=Ot[et];break}Ut||dt(P,"unknown tag !<"+P.tag+">"),P.result!==null&&Ut.kind!==P.kind&&dt(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Ut.kind+'", not "'+P.kind+'"'),Ut.resolve(P.result,P.tag)?(P.result=Ut.construct(P.result,P.tag),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):dt(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")}return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||ft}function Lr(P){var ee=P.position,ae,fe,ie,Ce=!1,ge;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap=Object.create(null),P.anchorMap=Object.create(null);(ge=P.input.charCodeAt(P.position))!==0&&(en(P,!0,-1),ge=P.input.charCodeAt(P.position),!(P.lineIndent>0||ge!==37));){for(Ce=!0,ge=P.input.charCodeAt(++P.position),ae=P.position;ge!==0&&!mn(ge);)ge=P.input.charCodeAt(++P.position);for(fe=P.input.slice(ae,P.position),ie=[],fe.length<1&&dt(P,"directive name must not be less than one character in length");ge!==0;){for(;lr(ge);)ge=P.input.charCodeAt(++P.position);if(ge===35){do ge=P.input.charCodeAt(++P.position);while(ge!==0&&!Nn(ge));break}if(Nn(ge))break;for(ae=P.position;ge!==0&&!mn(ge);)ge=P.input.charCodeAt(++P.position);ie.push(P.input.slice(ae,P.position))}ge!==0&&Un(P),In.call(Mn,fe)?Mn[fe](P,fe,ie):qr(P,'unknown document directive "'+fe+'"')}if(en(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,en(P,!0,-1)):Ce&&dt(P,"directives end mark is expected"),Hn(P,P.lineIndent-1,Ln,!1,!0),en(P,!0,-1),P.checkLineBreaks&&ui.test(P.input.slice(ee,P.position))&&qr(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&tr(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,en(P,!0,-1));return}if(P.position<P.length-1)dt(P,"end of the stream or a document separator is expected");else return}function no(P,ee){P=String(P),ee=ee||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+="\n"),P.charCodeAt(0)===65279&&(P=P.slice(1)));var ae=new _o(P,ee),fe=P.indexOf("\0");for(fe!==-1&&(ae.position=fe,dt(ae,"null byte is not allowed in input")),ae.input+="\0";ae.input.charCodeAt(ae.position)===32;)ae.lineIndent+=1,ae.position+=1;for(;ae.position<ae.length-1;)Lr(ae);return ae.documents}function re(P,ee,ae){ee!==null&&typeof ee=="object"&&typeof ae=="undefined"&&(ae=ee,ee=null);var fe=no(P,ae);if(typeof ee!="function")return fe;for(var ie=0,Ce=fe.length;ie<Ce;ie+=1)ee(fe[ie])}function Fe(P,ee){var ae=no(P,ee);if(ae.length!==0){if(ae.length===1)return ae[0];throw new E("expected a single document in the stream, but found more")}}var Xo=re,ro=Fe,Tn={loadAll:Xo,load:ro},fr=Object.prototype.toString,Xn=Object.prototype.hasOwnProperty,_r=65279,Oo=9,fn=10,Ui=13,gi=32,Gn=33,$i=34,Nr=35,Po=37,zi=38,wn=39,Go=42,Mo=44,So=45,oo=58,Ua=61,vs=62,pa=63,io=64,ao=91,Wi=93,hr=96,so=123,Cr=124,mr=125,cn={};cn[0]="\\0",cn[7]="\\a",cn[8]="\\b",cn[9]="\\t",cn[10]="\\n",cn[11]="\\v",cn[12]="\\f",cn[13]="\\r",cn[27]="\\e",cn[34]='\\"',cn[92]="\\\\",cn[133]="\\N",cn[160]="\\_",cn[8232]="\\L",cn[8233]="\\P";var Yo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],xi=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function vn(P,ee){var ae,fe,ie,Ce,ge,Oe,De;if(ee===null)return{};for(ae={},fe=Object.keys(ee),ie=0,Ce=fe.length;ie<Ce;ie+=1)ge=fe[ie],Oe=String(ee[ge]),ge.slice(0,2)==="!!"&&(ge="tag:yaml.org,2002:"+ge.slice(2)),De=P.compiledTypeMap.fallback[ge],De&&Xn.call(De.styleAliases,Oe)&&(Oe=De.styleAliases[Oe]),ae[ge]=Oe;return ae}function Ur(P){var ee,ae,fe;if(ee=P.toString(16).toUpperCase(),P<=255)ae="x",fe=2;else if(P<=65535)ae="u",fe=4;else if(P<=4294967295)ae="U",fe=8;else throw new E("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ae+j.repeat("0",fe-ee.length)+ee}var Er=1,rr=2;function ne(P){this.schema=P.schema||En,this.indent=Math.max(1,P.indent||2),this.noArrayIndent=P.noArrayIndent||!1,this.skipInvalid=P.skipInvalid||!1,this.flowLevel=j.isNothing(P.flowLevel)?-1:P.flowLevel,this.styleMap=vn(this.schema,P.styles||null),this.sortKeys=P.sortKeys||!1,this.lineWidth=P.lineWidth||80,this.noRefs=P.noRefs||!1,this.noCompatMode=P.noCompatMode||!1,this.condenseFlow=P.condenseFlow||!1,this.quotingType=P.quotingType==='"'?rr:Er,this.forceQuotes=P.forceQuotes||!1,this.replacer=typeof P.replacer=="function"?P.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function ze(P,ee){for(var ae=j.repeat(" ",ee),fe=0,ie=-1,Ce="",ge,Oe=P.length;fe<Oe;)ie=P.indexOf("\n",fe),ie===-1?(ge=P.slice(fe),fe=Oe):(ge=P.slice(fe,ie+1),fe=ie+1),ge.length&&ge!=="\n"&&(Ce+=ae),Ce+=ge;return Ce}function Qo(P,ee){return"\n"+j.repeat(" ",P.indent*ee)}function ji(P,ee){var ae,fe,ie;for(ae=0,fe=P.implicitTypes.length;ae<fe;ae+=1)if(ie=P.implicitTypes[ae],ie.resolve(ee))return!0;return!1}function Do(P){return P===gi||P===Oo}function Zo(P){return 32<=P&&P<=126||161<=P&&P<=55295&&P!==8232&&P!==8233||57344<=P&&P<=65533&&P!==_r||65536<=P&&P<=1114111}function $a(P){return Zo(P)&&P!==_r&&P!==Ui&&P!==fn}function Fi(P,ee,ae){var fe=$a(P),ie=fe&&!Do(P);return(ae?fe:fe&&P!==Mo&&P!==ao&&P!==Wi&&P!==so&&P!==mr)&&P!==Nr&&!(ee===oo&&!ie)||$a(ee)&&!Do(ee)&&P===Nr||ee===oo&&ie}function ps(P){return Zo(P)&&P!==_r&&!Do(P)&&P!==So&&P!==pa&&P!==oo&&P!==Mo&&P!==ao&&P!==Wi&&P!==so&&P!==mr&&P!==Nr&&P!==zi&&P!==Go&&P!==Gn&&P!==Cr&&P!==Ua&&P!==vs&&P!==wn&&P!==$i&&P!==Po&&P!==io&&P!==hr}function ga(P){return!Do(P)&&P!==oo}function Ao(P,ee){var ae=P.charCodeAt(ee),fe;return ae>=55296&&ae<=56319&&ee+1<P.length&&(fe=P.charCodeAt(ee+1),fe>=56320&&fe<=57343)?(ae-55296)*1024+fe-56320+65536:ae}function za(P){var ee=/^\n* /;return ee.test(P)}var Wa=1,Vi=2,bi=3,Fa=4,lo=5;function gs(P,ee,ae,fe,ie,Ce,ge,Oe){var De,Ue=0,ft=null,et=!1,Ct=!1,Ot=fe!==-1,Ut=-1,Gt=ps(Ao(P,0))&&ga(Ao(P,P.length-1));if(ee||ge)for(De=0;De<P.length;Ue>=65536?De+=2:De++){if(Ue=Ao(P,De),!Zo(Ue))return lo;Gt=Gt&&Fi(Ue,ft,Oe),ft=Ue}else{for(De=0;De<P.length;Ue>=65536?De+=2:De++){if(Ue=Ao(P,De),Ue===fn)et=!0,Ot&&(Ct=Ct||De-Ut-1>fe&&P[Ut+1]!==" ",Ut=De);else if(!Zo(Ue))return lo;Gt=Gt&&Fi(Ue,ft,Oe),ft=Ue}Ct=Ct||Ot&&De-Ut-1>fe&&P[Ut+1]!==" "}return!et&&!Ct?Gt&&!ge&&!ie(P)?Wa:Ce===rr?lo:Vi:ae>9&&za(P)?lo:ge?Ce===rr?lo:Vi:Ct?Fa:bi}function Va(P,ee,ae,fe,ie){P.dump=function(){if(ee.length===0)return P.quotingType===rr?'""':"''";if(!P.noCompatMode&&(Yo.indexOf(ee)!==-1||xi.test(ee)))return P.quotingType===rr?'"'+ee+'"':"'"+ee+"'";var Ce=P.indent*Math.max(1,ae),ge=P.lineWidth===-1?-1:Math.max(Math.min(P.lineWidth,40),P.lineWidth-Ce),Oe=fe||P.flowLevel>-1&&ae>=P.flowLevel;function De(Ue){return ji(P,Ue)}switch(gs(ee,Oe,P.indent,ge,De,P.quotingType,P.forceQuotes&&!fe,ie)){case Wa:return ee;case Vi:return"'"+ee.replace(/'/g,"''")+"'";case bi:return"|"+xa(ee,P.indent)+Jo(ze(ee,Ce));case Fa:return">"+xa(ee,P.indent)+Jo(ze(xs(ee,ge),Ce));case lo:return'"'+js(ee)+'"';default:throw new E("impossible error: invalid scalar style")}}()}function xa(P,ee){var ae=za(P)?String(ee):"",fe=P[P.length-1]==="\n",ie=fe&&(P[P.length-2]==="\n"||P==="\n"),Ce=ie?"+":fe?"":"-";return ae+Ce+"\n"}function Jo(P){return P[P.length-1]==="\n"?P.slice(0,-1):P}function xs(P,ee){for(var ae=/(\n+)([^\n]*)/g,fe=function(){var Ue=P.indexOf("\n");return Ue=Ue!==-1?Ue:P.length,ae.lastIndex=Ue,Hi(P.slice(0,Ue),ee)}(),ie=P[0]==="\n"||P[0]===" ",Ce,ge;ge=ae.exec(P);){var Oe=ge[1],De=ge[2];Ce=De[0]===" ",fe+=Oe+(!ie&&!Ce&&De!==""?"\n":"")+Hi(De,ee),ie=Ce}return fe}function Hi(P,ee){if(P===""||P[0]===" ")return P;for(var ae=/ [^ ]/g,fe,ie=0,Ce,ge=0,Oe=0,De="";fe=ae.exec(P);)Oe=fe.index,Oe-ie>ee&&(Ce=ge>ie?ge:Oe,De+="\n"+P.slice(ie,Ce),ie=Ce+1),ge=Oe;return De+="\n",P.length-ie>ee&&ge>ie?De+=P.slice(ie,ge)+"\n"+P.slice(ge+1):De+=P.slice(ie),De.slice(1)}function js(P){for(var ee="",ae=0,fe,ie=0;ie<P.length;ae>=65536?ie+=2:ie++)ae=Ao(P,ie),fe=cn[ae],!fe&&Zo(ae)?(ee+=P[ie],ae>=65536&&(ee+=P[ie+1])):ee+=fe||Ur(ae);return ee}function Xi(P,ee,ae){var fe="",ie=P.tag,Ce,ge,Oe;for(Ce=0,ge=ae.length;Ce<ge;Ce+=1)Oe=ae[Ce],P.replacer&&(Oe=P.replacer.call(ae,String(Ce),Oe)),($r(P,ee,Oe,!1,!1)||typeof Oe=="undefined"&&$r(P,ee,null,!1,!1))&&(fe!==""&&(fe+=","+(P.condenseFlow?"":" ")),fe+=P.dump);P.tag=ie,P.dump="["+fe+"]"}function yi(P,ee,ae,fe){var ie="",Ce=P.tag,ge,Oe,De;for(ge=0,Oe=ae.length;ge<Oe;ge+=1)De=ae[ge],P.replacer&&(De=P.replacer.call(ae,String(ge),De)),($r(P,ee+1,De,!0,!0,!1,!0)||typeof De=="undefined"&&$r(P,ee+1,null,!0,!0,!1,!0))&&((!fe||ie!=="")&&(ie+=Qo(P,ee)),P.dump&&fn===P.dump.charCodeAt(0)?ie+="-":ie+="- ",ie+=P.dump);P.tag=Ce,P.dump=ie||"[]"}function bs(P,ee,ae){var fe="",ie=P.tag,Ce=Object.keys(ae),ge,Oe,De,Ue,ft;for(ge=0,Oe=Ce.length;ge<Oe;ge+=1)ft="",fe!==""&&(ft+=", "),P.condenseFlow&&(ft+='"'),De=Ce[ge],Ue=ae[De],P.replacer&&(Ue=P.replacer.call(ae,De,Ue)),$r(P,ee,De,!1,!1)&&(P.dump.length>1024&&(ft+="? "),ft+=P.dump+(P.condenseFlow?'"':"")+":"+(P.condenseFlow?"":" "),$r(P,ee,Ue,!1,!1)&&(ft+=P.dump,fe+=ft));P.tag=ie,P.dump="{"+fe+"}"}function ys(P,ee,ae,fe){var ie="",Ce=P.tag,ge=Object.keys(ae),Oe,De,Ue,ft,et,Ct;if(P.sortKeys===!0)ge.sort();else if(typeof P.sortKeys=="function")ge.sort(P.sortKeys);else if(P.sortKeys)throw new E("sortKeys must be a boolean or a function");for(Oe=0,De=ge.length;Oe<De;Oe+=1)Ct="",(!fe||ie!=="")&&(Ct+=Qo(P,ee)),Ue=ge[Oe],ft=ae[Ue],P.replacer&&(ft=P.replacer.call(ae,Ue,ft)),$r(P,ee+1,Ue,!0,!0,!0)&&(et=P.tag!==null&&P.tag!=="?"||P.dump&&P.dump.length>1024,et&&(P.dump&&fn===P.dump.charCodeAt(0)?Ct+="?":Ct+="? "),Ct+=P.dump,et&&(Ct+=Qo(P,ee)),$r(P,ee+1,ft,!0,et)&&(P.dump&&fn===P.dump.charCodeAt(0)?Ct+=":":Ct+=": ",Ct+=P.dump,ie+=Ct));P.tag=Ce,P.dump=ie||"{}"}function _s(P,ee,ae){var fe,ie,Ce,ge,Oe,De;for(ie=ae?P.explicitTypes:P.implicitTypes,Ce=0,ge=ie.length;Ce<ge;Ce+=1)if(Oe=ie[Ce],(Oe.instanceOf||Oe.predicate)&&(!Oe.instanceOf||typeof ee=="object"&&ee instanceof Oe.instanceOf)&&(!Oe.predicate||Oe.predicate(ee))){if(ae?Oe.multi&&Oe.representName?P.tag=Oe.representName(ee):P.tag=Oe.tag:P.tag="?",Oe.represent){if(De=P.styleMap[Oe.tag]||Oe.defaultStyle,fr.call(Oe.represent)==="[object Function]")fe=Oe.represent(ee,De);else if(Xn.call(Oe.represent,De))fe=Oe.represent[De](ee,De);else throw new E("!<"+Oe.tag+'> tag resolver accepts not "'+De+'" style');P.dump=fe}return!0}return!1}function $r(P,ee,ae,fe,ie,Ce,ge){P.tag=null,P.dump=ae,_s(P,ae,!1)||_s(P,ae,!0);var Oe=fr.call(P.dump),De=fe,Ue;fe&&(fe=P.flowLevel<0||P.flowLevel>ee);var ft=Oe==="[object Object]"||Oe==="[object Array]",et,Ct;if(ft&&(et=P.duplicates.indexOf(ae),Ct=et!==-1),(P.tag!==null&&P.tag!=="?"||Ct||P.indent!==2&&ee>0)&&(ie=!1),Ct&&P.usedDuplicates[et])P.dump="*ref_"+et;else{if(ft&&Ct&&!P.usedDuplicates[et]&&(P.usedDuplicates[et]=!0),Oe==="[object Object]")fe&&Object.keys(P.dump).length!==0?(ys(P,ee,P.dump,ie),Ct&&(P.dump="&ref_"+et+P.dump)):(bs(P,ee,P.dump),Ct&&(P.dump="&ref_"+et+" "+P.dump));else if(Oe==="[object Array]")fe&&P.dump.length!==0?(P.noArrayIndent&&!ge&&ee>0?yi(P,ee-1,P.dump,ie):yi(P,ee,P.dump,ie),Ct&&(P.dump="&ref_"+et+P.dump)):(Xi(P,ee,P.dump),Ct&&(P.dump="&ref_"+et+" "+P.dump));else if(Oe==="[object String]")P.tag!=="?"&&Va(P,P.dump,ee,Ce,De);else{if(Oe==="[object Undefined]")return!1;if(P.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+Oe)}P.tag!==null&&P.tag!=="?"&&(Ue=encodeURI(P.tag[0]==="!"?P.tag.slice(1):P.tag).replace(/!/g,"%21"),P.tag[0]==="!"?Ue="!"+Ue:Ue.slice(0,18)==="tag:yaml.org,2002:"?Ue="!!"+Ue.slice(18):Ue="!<"+Ue+">",P.dump=Ue+" "+P.dump)}return!0}function Zs(P,ee){var ae=[],fe=[],ie,Ce;for(Gi(P,ae,fe),ie=0,Ce=fe.length;ie<Ce;ie+=1)ee.duplicates.push(ae[fe[ie]]);ee.usedDuplicates=new Array(Ce)}function Gi(P,ee,ae){var fe,ie,Ce;if(P!==null&&typeof P=="object")if(ie=ee.indexOf(P),ie!==-1)ae.indexOf(ie)===-1&&ae.push(ie);else if(ee.push(P),Array.isArray(P))for(ie=0,Ce=P.length;ie<Ce;ie+=1)Gi(P[ie],ee,ae);else for(fe=Object.keys(P),ie=0,Ce=fe.length;ie<Ce;ie+=1)Gi(P[fe[ie]],ee,ae)}function Yi(P,ee){ee=ee||{};var ae=new ne(ee);ae.noRefs||Zs(P,ae);var fe=P;return ae.replacer&&(fe=ae.replacer.call({"":fe},"",fe)),$r(ae,0,fe,!0,!0)?ae.dump+"\n":""}var _i=Yi,Cs={dump:_i};function To(P,ee){return function(){throw new Error("Function yaml."+P+" is removed in js-yaml 4. Use yaml."+ee+" instead, which is now safe by default.")}}var ja=k,Qi=N,Ha=F,Es=ke,wo=we,Js=En,ba=Tn.load,qs=Tn.loadAll,Is=Cs.dump,zr=E,co={binary:Yt,float:Ne,map:Q,null:ue,pairs:wr,set:Gr,timestamp:Wt,bool:pe,int:Qe,merge:bt,omap:Tt,seq:G,str:q},qo=To("safeLoad","load"),Xa=To("safeLoadAll","loadAll"),vr=To("safeDump","dump"),ya={Type:ja,Schema:Qi,FAILSAFE_SCHEMA:Ha,JSON_SCHEMA:Es,CORE_SCHEMA:wo,DEFAULT_SCHEMA:Js,load:ba,loadAll:qs,dump:Is,YAMLException:zr,types:co,safeLoad:qo,safeLoadAll:Xa,safeDump:vr},Ci=ya,Zi=t(44583),ei=t(80676),uo=t(4413),pn=t(92514),Ji=t(84905);function Os(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function Ei(P,ee,ae,fe,ie,Ce,ge){try{var Oe=P[Ce](ge),De=Oe.value}catch(Ue){ae(Ue);return}Oe.done?ee(De):Promise.resolve(De).then(fe,ie)}function Ps(P){return function(){var ee=this,ae=arguments;return new Promise(function(fe,ie){var Ce=P.apply(ee,ae);function ge(De){Ei(Ce,fe,ie,ge,Oe,"next",De)}function Oe(De){Ei(Ce,fe,ie,ge,Oe,"throw",De)}ge(void 0)})}}function el(P,ee){if(typeof ee!="function"&&ee!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(ee&&ee.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),ee&&_a(P,ee)}function _a(P,ee){return _a=Object.setPrototypeOf||function(fe,ie){return fe.__proto__=ie,fe},_a(P,ee)}function $n(P,ee){var ae,fe,ie,Ce,ge={label:0,sent:function(){if(ie[0]&1)throw ie[1];return ie[1]},trys:[],ops:[]};return Ce={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function Oe(Ue){return function(ft){return De([Ue,ft])}}function De(Ue){if(ae)throw new TypeError("Generator is already executing.");for(;ge;)try{if(ae=1,fe&&(ie=Ue[0]&2?fe.return:Ue[0]?fe.throw||((ie=fe.return)&&ie.call(fe),0):fe.next)&&!(ie=ie.call(fe,Ue[1])).done)return ie;switch(fe=0,ie&&(Ue=[Ue[0]&2,ie.value]),Ue[0]){case 0:case 1:ie=Ue;break;case 4:return ge.label++,{value:Ue[1],done:!1};case 5:ge.label++,fe=Ue[1],Ue=[0];continue;case 7:Ue=ge.ops.pop(),ge.trys.pop();continue;default:if(ie=ge.trys,!(ie=ie.length>0&&ie[ie.length-1])&&(Ue[0]===6||Ue[0]===2)){ge=0;continue}if(Ue[0]===3&&(!ie||Ue[1]>ie[0]&&Ue[1]<ie[3])){ge.label=Ue[1];break}if(Ue[0]===6&&ge.label<ie[1]){ge.label=ie[1],ie=Ue;break}if(ie&&ge.label<ie[2]){ge.label=ie[2],ge.ops.push(Ue);break}ie[2]&&ge.ops.pop(),ge.trys.pop();continue}Ue=ee.call(P,ge)}catch(ft){Ue=[6,ft],fe=0}finally{ae=ie=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}}var Ir={add:{icon:"check-circle",color:"green"},admin:{icon:"user-shield",color:"purple"},balance:{icon:"balance-scale-right",color:"yellow"},bugfix:{icon:"bug",color:"green"},code_imp:{icon:"code",color:"green"},config:{icon:"cogs",color:"purple"},expansion:{icon:"check-circle",color:"green"},experiment:{icon:"radiation",color:"yellow"},image:{icon:"image",color:"green"},imageadd:{icon:"tg-image-plus",color:"green"},imagedel:{icon:"tg-image-minus",color:"red"},qol:{icon:"hand-holding-heart",color:"green"},refactor:{icon:"tools",color:"green"},rscadd:{icon:"check-circle",color:"green"},rscdel:{icon:"times-circle",color:"red"},server:{icon:"server",color:"purple"},sound:{icon:"volume-high",color:"green"},soundadd:{icon:"tg-sound-plus",color:"green"},sounddel:{icon:"tg-sound-minus",color:"red"},spellcheck:{icon:"spell-check",color:"green"},tgs:{icon:"toolbox",color:"purple"},tweak:{icon:"wrench",color:"green"},unknown:{icon:"info-circle",color:"label"},wip:{icon:"hammer",color:"orange"}},Ga=function(P){"use strict";el(ee,P);function ee(){var fe;return fe=P.call(this)||this,fe.getData=function(ie,Ce){Ce===void 0&&(Ce=1);var ge=(0,uo.Oc)(fe.context).act,Oe=Os(fe),De=6;if(Ce>De)return fe.setData("Failed to load data after "+De+" attempts");ge("get_month",{date:ie}),fetch((0,ei.l)(ie+".yml")).then(Ps(function(Ue){var ft,et,Ct;return $n(this,function(Ot){switch(Ot.label){case 0:return[4,Ue.text()];case 1:return ft=Ot.sent(),et=/^Cannot find/,et.test(ft)?(Ct=50+Ce*50,Oe.setData("Loading changelog data"+".".repeat(Ce+3)),setTimeout(function(){Oe.getData(ie,Ce+1)},Ct)):Oe.setData(Ci.load(ft,{schema:Ci.CORE_SCHEMA})),[2]}})}))},fe.state={data:"Loading changelog data...",selectedDate:"",selectedIndex:0},fe.dateChoices=[],fe}var ae=ee.prototype;return ae.setData=function(ie){this.setState({data:ie})},ae.setSelectedDate=function(ie){this.setState({selectedDate:ie})},ae.setSelectedIndex=function(ie){this.setState({selectedIndex:ie})},ae.componentDidMount=function(){var ie=this,Ce=(0,uo.Oc)(this.context),ge=Ce.data,Oe=ge.dates,De=Oe===void 0?[]:Oe;De&&(De.forEach(function(Ue){return ie.dateChoices.push(r()(Ue,"mmmm yyyy",!0))}),this.setSelectedDate(this.dateChoices[0]),this.getData(De[0]))},ae.render=function(){var ie=this,Ce=this.state,ge=Ce.data,Oe=Ce.selectedDate,De=Ce.selectedIndex,Ue=(0,uo.Oc)(this.context),ft=Ue.data.dates,et=this.dateChoices,Ct=et.length>0&&(0,e.jsxs)(pn.BJ,{mb:1,children:[(0,e.jsx)(pn.BJ.Item,{children:(0,e.jsx)(pn.$n,{className:"Changelog__Button",disabled:De===0,icon:"chevron-left",onClick:function(){var Nt=De-1;return ie.setData("Loading changelog data..."),ie.setSelectedIndex(Nt),ie.setSelectedDate(et[Nt]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),ie.getData(ft[Nt])}})}),(0,e.jsx)(pn.BJ.Item,{children:(0,e.jsx)(pn.ms,{displayText:Oe,options:et,onSelected:function(Nt){var hn=et.indexOf(Nt);return ie.setData("Loading changelog data..."),ie.setSelectedIndex(hn),ie.setSelectedDate(Nt),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),ie.getData(ft[hn])},selected:Oe,width:"150px"})}),(0,e.jsx)(pn.BJ.Item,{children:(0,e.jsx)(pn.$n,{className:"Changelog__Button",disabled:De===et.length-1,icon:"chevron-right",onClick:function(){var Nt=De+1;return ie.setData("Loading changelog data..."),ie.setSelectedIndex(Nt),ie.setSelectedDate(et[Nt]),window.scrollTo(0,document.body.scrollHeight||document.documentElement.scrollHeight),ie.getData(ft[Nt])}})})]}),Ot=(0,e.jsxs)(pn.wn,{children:[(0,e.jsx)("h1",{children:"CHOMPStation Changelist"}),(0,e.jsxs)("p",{children:["The GitHub repository can be found ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2",children:"here"}),", recent GitHub contributors can be found ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/pulse/monthly",children:"here"}),"."]}),(0,e.jsxs)("p",{children:["Visit our wiki ",(0,e.jsx)("a",{href:"https://wiki.chompstation13.net/index.php/Chomp_Station_Wiki",children:"here"}),", check out our discord server ",(0,e.jsx)("a",{href:"https://discord.com/invite/chompers",children:"here"}),"."]}),Ct]}),Ut=(0,e.jsxs)(pn.wn,{children:[Ct,(0,e.jsx)("h3",{children:"CHOMPStation License"}),(0,e.jsxs)("p",{children:["All code after ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/commit/333c566b88108de218d882840e61928a9b759d8f",children:"commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST"})," is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/agpl-3.0.html",children:"GNU AGPL v3"}),". All code before that commit is licensed under ",(0,e.jsx)("a",{href:"https://www.gnu.org/licenses/gpl-3.0.html",children:"GNU GPL v3"}),", including tools unless their readme specifies otherwise. See ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE",children:"LICENSE"})," and ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/LICENSE-GPL3.txt",children:"GPLv3.txt"})," for more details."]}),(0,e.jsxs)("p",{children:["The TGS DMAPI API is licensed as a subproject under the MIT license."," See the footer of ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/__DEFINES/tgs.dm",children:"code/__DEFINES/tgs.dm"})," and ",(0,e.jsx)("a",{href:"https://github.com/CHOMPStation2/CHOMPStation2/blob/master/code/modules/tgs/LICENSE",children:"code/modules/tgs/LICENSE"})," for the MIT license."]}),(0,e.jsxs)("p",{children:["All assets including icons and sound are under a ",(0,e.jsx)("a",{href:"https://creativecommons.org/licenses/by-sa/3.0/",children:"Creative Commons 3.0 BY-SA license"})," unless otherwise indicated."]})]}),Gt=typeof ge=="object"&&Object.keys(ge).length>0&&Object.entries(ge).reverse().map(function(Nt){var hn=Nt[0],Lt=Nt[1];return(0,e.jsx)(pn.wn,{title:r()(hn,"d mmmm yyyy",!0),children:(0,e.jsx)(pn.az,{ml:3,children:Object.entries(Lt).map(function(Ca){var Ya=Ca[0],Ms=Ca[1];return(0,e.jsxs)(Zi.Fragment,{children:[(0,e.jsxs)("h4",{children:[Ya," changed:"]}),(0,e.jsx)(pn.az,{ml:3,children:(0,e.jsx)(pn.XI,{children:Ms.map(function(or){var fo=Object.keys(or)[0];return(0,e.jsxs)(pn.XI.Row,{children:[(0,e.jsx)(pn.XI.Cell,{className:(0,a.Ly)(["Changelog__Cell","Changelog__Cell--Icon"]),children:(0,e.jsx)(pn.In,{color:Ir[fo]?Ir[fo].color:Ir.unknown.color,name:Ir[fo]?Ir[fo].icon:Ir.unknown.icon})}),(0,e.jsx)(pn.XI.Cell,{className:"Changelog__Cell",children:or[fo]})]},fo+or[fo])})})})]},Ya)})})},hn)});return(0,e.jsx)(Ji.p8,{title:"Changelog",width:675,height:650,children:(0,e.jsxs)(Ji.p8.Content,{scrollable:!0,children:[Ot,Gt,typeof ge=="string"&&(0,e.jsx)("p",{children:ge}),Ut]})})},ee}(Zi.Component)},70018:function(S,y,t){"use strict";t.r(y),t.d(y,{CharacterDirectory:function(){return b}});var e=t(88095),a=t(44583),n=t(4413),r=t(92514),o=t(84905),m=function(v){switch(v){case"Unset":return"label";case"Pred":return"red";case"Pred-Pref":return"orange";case"Prey":return"blue";case"Prey-Pref":return"green";case"Switch":return"yellow";case"Non-Vore":return"black"}},b=function(v){var l=function(k){D(k)},c=(0,n.Oc)(),u=c.act,h=c.data,x=h.personalVisibility,j=h.personalTag,p=h.personalGenderTag,_=h.personalSexualityTag,E=h.personalErpTag,I=h.personalEventTag,O=(0,a.useState)(null),M=O[0],D=O[1],A=(0,a.useState)(!1),B=A[0],U=A[1];return(0,e.jsx)(o.p8,{width:816,height:722,resizeable:!0,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:M&&(0,e.jsx)(g,{overlay:M,onOverlay:l})||(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Settings and Preferences",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.az,{color:"label",inline:!0,children:"Save to current preferences slot:\xA0"}),(0,e.jsx)(r.$n,{icon:B?"toggle-on":"toggle-off",selected:B,content:B?"On":"Off",onClick:function(){return U(!B)}})]}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Visibility",children:(0,e.jsx)(r.$n,{fluid:!0,content:x?"Shown":"Not Shown",onClick:function(){return u("setVisible",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Vore Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:j,onClick:function(){return u("setTag",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Gender",children:(0,e.jsx)(r.$n,{fluid:!0,content:p,onClick:function(){return u("setGenderTag",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Sexuality",children:(0,e.jsx)(r.$n,{fluid:!0,content:_,onClick:function(){return u("setSexualityTag",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"ERP Tag",children:(0,e.jsx)(r.$n,{fluid:!0,content:E,onClick:function(){return u("setErpTag",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Event Pref",children:(0,e.jsx)(r.$n,{fluid:!0,content:I,onClick:function(){return u("setEventTag",{overwrite_prefs:B})}})}),(0,e.jsx)(r.Ki.Item,{label:"Advertisement",children:(0,e.jsx)(r.$n,{fluid:!0,content:"Edit Ad",onClick:function(){return u("editAd",{overwrite_prefs:B})}})})]})}),(0,e.jsx)(d,{onOverlay:l})]})})})},g=function(v){return(0,e.jsxs)(r.wn,{title:v.overlay.name,buttons:(0,e.jsx)(r.$n,{icon:"arrow-left",content:"Back",onClick:function(){return v.onOverlay(null)}}),children:[(0,e.jsx)(r.wn,{level:2,title:"Species",children:(0,e.jsx)(r.az,{children:v.overlay.species})}),(0,e.jsx)(r.wn,{level:2,title:"Vore Tag",children:(0,e.jsx)(r.az,{p:1,backgroundColor:m(v.overlay.tag),children:v.overlay.tag})}),(0,e.jsx)(r.wn,{level:2,title:"Gender",children:(0,e.jsx)(r.az,{children:v.overlay.gendertag})}),(0,e.jsx)(r.wn,{level:2,title:"Sexuality",children:(0,e.jsx)(r.az,{children:v.overlay.sexualitytag})}),(0,e.jsx)(r.wn,{level:2,title:"ERP Tag",children:(0,e.jsx)(r.az,{children:v.overlay.erptag})}),(0,e.jsx)(r.wn,{level:2,title:"Event Pref",children:(0,e.jsx)(r.az,{children:v.overlay.eventtag})}),(0,e.jsx)(r.wn,{level:2,title:"Character Ad",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.character_ad||"Unset."})}),(0,e.jsx)(r.wn,{level:2,title:"OOC Notes",children:(0,e.jsxs)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:[v.overlay.ooc_notes||"Unset.",v.overlay.ooc_notes_style&&(v.overlay.ooc_notes_favs||v.overlay.ooc_notes_likes||v.overlay.ooc_notes_maybes||v.overlay.ooc_notes_dislikes)?(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[v.overlay.ooc_notes_favs?(0,e.jsx)(r.XI.Cell,{children:"FAVOURITES"}):"",v.overlay.ooc_notes_likes?(0,e.jsx)(r.XI.Cell,{children:"LIKES"}):"",v.overlay.ooc_notes_maybes?(0,e.jsx)(r.XI.Cell,{children:"MAYBES"}):"",v.overlay.ooc_notes_dislikes?(0,e.jsx)(r.XI.Cell,{children:"DISLIKES"}):""]}),(0,e.jsx)(r.XI.Row,{children:(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)("br",{})})}),(0,e.jsxs)(r.XI.Row,{children:[v.overlay.ooc_notes_favs?(0,e.jsx)(r.XI.Cell,{children:v.overlay.ooc_notes_favs}):"",v.overlay.ooc_notes_likes?(0,e.jsx)(r.XI.Cell,{children:v.overlay.ooc_notes_likes}):"",v.overlay.ooc_notes_maybes?(0,e.jsx)(r.XI.Cell,{children:v.overlay.ooc_notes_maybes}):"",v.overlay.ooc_notes_dislikes?(0,e.jsx)(r.XI.Cell,{children:v.overlay.ooc_notes_dislikes}):""]})]}):""]})}),(0,e.jsx)(r.wn,{level:2,title:"Flavor Text",children:(0,e.jsx)(r.az,{style:{"word-break":"break-all"},preserveWhitespace:!0,children:v.overlay.flavor_text||"Unset."})})]})},d=function(v){var l=function(A){E(A)},c=function(A){M(A)},u=(0,n.Oc)(),h=u.act,x=u.data,j=x.directory,p=(0,a.useState)("name"),_=p[0],E=p[1],I=(0,a.useState)("name"),O=I[0],M=I[1];return(0,e.jsx)(r.wn,{title:"Directory",buttons:(0,e.jsx)(r.$n,{icon:"sync",content:"Refresh",onClick:function(){return h("refresh")}}),children:(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{bold:!0,children:[(0,e.jsx)(f,{id:"name",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Name"}),(0,e.jsx)(f,{id:"species",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Species"}),(0,e.jsx)(f,{id:"tag",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Vore Tag"}),(0,e.jsx)(f,{id:"gendertag",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Gender"}),(0,e.jsx)(f,{id:"sexualitytag",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Sexuality"}),(0,e.jsx)(f,{id:"erptag",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"ERP Tag"}),(0,e.jsx)(f,{id:"eventtag",sortId:_,sortOrder:O,onSortId:l,onSortOrder:c,children:"Event Pref"}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:"View"})]}),j.sort(function(D,A){var B=O?1:-1;return D[_].localeCompare(A[_])*B}).map(function(D,A){return(0,e.jsxs)(r.XI.Row,{backgroundColor:m(D.tag),children:[(0,e.jsx)(r.XI.Cell,{p:1,children:D.name}),(0,e.jsx)(r.XI.Cell,{children:D.species}),(0,e.jsx)(r.XI.Cell,{children:D.tag}),(0,e.jsx)(r.XI.Cell,{children:D.gendertag}),(0,e.jsx)(r.XI.Cell,{children:D.sexualitytag}),(0,e.jsx)(r.XI.Cell,{children:D.erptag}),(0,e.jsx)(r.XI.Cell,{children:D.eventtag}),(0,e.jsx)(r.XI.Cell,{collapsing:!0,textAlign:"right",children:(0,e.jsx)(r.$n,{onClick:function(){return v.onOverlay(D)},color:"transparent",icon:"sticky-note",mr:1,content:"View"})})]},A)})]})})},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=v.id,x=v.children;return(0,e.jsx)(r.XI.Cell,{collapsing:!0,children:(0,e.jsxs)(r.$n,{width:"100%",color:v.sortId!==h&&"transparent",onClick:function(){v.sortId===h?v.onSortOrder(!v.sortOrder):(v.onSortId(h),v.onSortOrder(!0))},children:[x,v.sortId===h&&(0,e.jsx)(r.In,{name:v.sortOrder?"sort-up":"sort-down",ml:"0.25rem;"})]})})}},38037:function(S,y,t){"use strict";t.r(y),t.d(y,{ChemMaster:function(){return f}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62386),m=t(5425),b=[1,5,10,30,60],g=null,d=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=j.args.analysis;return(0,e.jsx)(n.wn,{level:2,m:"-1rem",pb:"1rem",title:E.condi?"Condiment Analysis":"Reagent Analysis",children:(0,e.jsx)(n.az,{mx:"0.5rem",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:I.name}),(0,e.jsx)(n.Ki.Item,{label:"Description",children:(I.desc||"").length>0?I.desc:"N/A"}),I.blood_type&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood type",children:I.blood_type}),(0,e.jsx)(n.Ki.Item,{label:"Blood DNA",className:"LabeledList__breakContents",children:I.blood_dna})]}),!E.condi&&(0,e.jsx)(n.$n,{icon:E.printing?"spinner":"print",disabled:E.printing,iconSpin:!!E.printing,ml:"0.5rem",content:"Print",onClick:function(){return _("print",{idx:I.idx,beaker:j.args.beaker})}})]})})})},f=function(j){var p=(0,a.Oc)().data,_=p.condi,E=p.beaker,I=p.beaker_reagents,O=I===void 0?[]:I,M=p.buffer_reagents,D=M===void 0?[]:M,A=p.mode;return(0,e.jsxs)(r.p8,{width:575,height:500,children:[(0,e.jsx)(m.ComplexModal,{}),(0,e.jsxs)(r.p8.Content,{scrollable:!0,className:"Layout__content--flexColumn",children:[(0,e.jsx)(v,{beaker:E,beakerReagents:O,bufferNonEmpty:D.length>0}),(0,e.jsx)(l,{mode:A,bufferReagents:D}),(0,e.jsx)(c,{isCondiment:_,bufferNonEmpty:D.length>0}),(0,e.jsx)(x,{})]})]})},v=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data,I=j.beaker,O=j.beakerReagents,M=j.bufferNonEmpty,D=M?(0,e.jsx)(n.$n.Confirm,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}}):(0,e.jsx)(n.$n,{icon:"eject",disabled:!I,content:"Eject and Clear Buffer",onClick:function(){return _("eject")}});return(0,e.jsx)(n.wn,{title:"Beaker",buttons:D,children:I?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:O,buttons:function(A,B){return(0,e.jsxs)(n.az,{mb:B<O.length-1&&"2px",children:[(0,e.jsx)(n.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,m.modalOpen)("analyze",{idx:B+1,beaker:1})}}),b.map(function(U,L){return(0,e.jsx)(n.$n,{content:U,mb:"0",onClick:function(){return _("add",{id:A.id,amount:U})}},L)}),(0,e.jsx)(n.$n,{content:"All",mb:"0",onClick:function(){return _("add",{id:A.id,amount:A.volume})}}),(0,e.jsx)(n.$n,{content:"Custom..",mb:"0",onClick:function(){return(0,m.modalOpen)("addcustom",{id:A.id})}})]})}}):(0,e.jsx)(n.az,{color:"label",children:"No beaker loaded."})})},l=function(j){var p=(0,a.Oc)().act,_=j.mode,E=j.bufferReagents,I=E===void 0?[]:E;return(0,e.jsx)(n.wn,{title:"Buffer",buttons:(0,e.jsxs)(n.az,{color:"label",children:["Transferring to\xA0",(0,e.jsx)(n.$n,{icon:_?"flask":"trash",color:!_&&"bad",content:_?"Beaker":"Disposal",onClick:function(){return p("toggle")}})]}),children:I.length>0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:I,buttons:function(O,M){return(0,e.jsxs)(n.az,{mb:M<I.length-1&&"2px",children:[(0,e.jsx)(n.$n,{content:"Analyze",mb:"0",onClick:function(){return(0,m.modalOpen)("analyze",{idx:M+1,beaker:0})}}),b.map(function(D,A){return(0,e.jsx)(n.$n,{content:D,mb:"0",onClick:function(){return p("remove",{id:O.id,amount:D})}},A)}),(0,e.jsx)(n.$n,{content:"All",mb:"0",onClick:function(){return p("remove",{id:O.id,amount:O.volume})}}),(0,e.jsx)(n.$n,{content:"Custom..",mb:"0",onClick:function(){return(0,m.modalOpen)("removecustom",{id:O.id})}})]})}}):(0,e.jsx)(n.az,{color:"label",children:"Buffer is empty."})})},c=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return j.bufferNonEmpty?(0,e.jsx)(n.wn,{title:"Production",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}}),children:j.isCondiment?(0,e.jsx)(h,{}):(0,e.jsx)(u,{})}):(0,e.jsx)(n.wn,{title:"Production",flexGrow:"1",buttons:(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"No pill bottle loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}}),children:(0,e.jsx)(n.so,{height:"100%",children:(0,e.jsxs)(n.so.Item,{grow:"1",align:"center",textAlign:"center",color:"label",children:[(0,e.jsx)(n.In,{name:"tint-slash",mt:"0.5rem",mb:"0.5rem",size:"5"}),(0,e.jsx)("br",{}),"Buffer is empty."]})})})},u=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Pills",children:[(0,e.jsx)(n.$n,{icon:"circle",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_pill")}}),(0,e.jsx)(n.$n,{icon:"plus-circle",content:"Multiple",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_pill_multiple")}}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.$n,{onClick:function(){return(0,m.modalOpen)("change_pill_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px;",height:"16px",verticalAlign:"middle;",background:"url(pill"+E.pillsprite+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]}),(0,e.jsxs)(n.Ki.Item,{label:"Patches",children:[(0,e.jsx)(n.$n,{icon:"square",content:"One (60u max)",mr:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_patch")}}),(0,e.jsx)(n.$n,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,m.modalOpen)("create_patch_multiple")}})]}),(0,e.jsxs)(n.Ki.Item,{label:"Bottle",children:[(0,e.jsx)(n.$n,{icon:"wine-bottle",content:"Create bottle (60u max)",mr:"0.5rem",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_bottle")}}),(0,e.jsx)(n.$n,{icon:"plus-square",content:"Multiple",onClick:function(){return(0,m.modalOpen)("create_bottle_multiple")}}),(0,e.jsx)("br",{}),(0,e.jsxs)(n.$n,{mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("change_bottle_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",background:"url(bottle-"+E.bottlesprite+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]})]})},h=function(j){var p=(0,a.Oc)().act;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{icon:"box",content:"Create condiment pack (10u max)",mb:"0.5rem",onClick:function(){return(0,m.modalOpen)("create_condi_pack")}}),(0,e.jsx)("br",{}),(0,e.jsx)(n.$n,{icon:"wine-bottle",content:"Create bottle (60u max)",mb:"0",onClick:function(){return p("create_condi_bottle")}})]})},x=function(j){var p=(0,a.Oc)(),_=p.act,E=p.data;return E.loaded_pill_bottle?(0,e.jsxs)(n.wn,{title:"Pill Bottle Customization",children:[(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,content:"Customize Bottle Color",onClick:function(){return(0,m.modalOpen)("change_pill_bottle_style")}}),(0,e.jsx)(n.$n,{disabled:!E.loaded_pill_bottle,icon:"eject",content:E.loaded_pill_bottle?E.loaded_pill_bottle_name+" ("+E.loaded_pill_bottle_contents_len+"/"+E.loaded_pill_bottle_storage_slots+")":"None loaded",mb:"0.5rem",onClick:function(){return _("ejectp")}})]}):(0,e.jsx)(n.wn,{title:"Pill Bottle Customization",children:(0,e.jsx)(n.az,{color:"label",children:"None loaded."})})};(0,m.modalRegisterBodyOverride)("analyze",d)},87517:function(S,y,t){"use strict";t.r(y),t.d(y,{ChemSynthesizer:function(){return b}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=t(62386),m=t(5425),b=function(v){return(0,e.jsxs)(r.p8,{width:1100,height:640,resizable:!0,children:[(0,e.jsx)(m.ComplexModal,{}),(0,e.jsx)(r.p8.Content,{children:(0,e.jsxs)(n.so,{height:"100%",children:[(0,e.jsx)(n.so.Item,{grow:1,maxWidth:"33%",children:(0,e.jsx)(g,{})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsx)(d,{})}),(0,e.jsx)(n.so.Item,{grow:1,maxWidth:"33%",children:(0,e.jsx)(f,{})})]})})]})},g=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.busy,x=u.use_catalyst,j=u.queue,p=j===void 0?[]:j,_=u.recipes,E=_===void 0?[]:_,I=u.production_mode;return(0,e.jsxs)(n.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(n.so.Item,{maxHeight:"50%",grow:1,basis:0,children:(0,e.jsx)(n.wn,{height:"100%",title:"Queue",overflowY:"scroll",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.$n,{disabled:!!h,color:x?"green":"bad",icon:"wrench",tooltip:"Enable/Disable the catalyst BEFORE starting the queue.",content:x?"Catalyst Active":"Catalyst Disabled",onClick:function(){return c("toggle_catalyst")}}),(0,e.jsx)(n.$n.Confirm,{disabled:!p.length,color:"bad",icon:"minus-circle",tooltip:"Clear Queue",onClick:function(){return c("clear_queue")}}),!h&&(0,e.jsx)(n.$n,{disabled:!p.length,icon:"play",tooltip:"Start Queue",onClick:function(){return c("start_queue")}})]}),children:(0,e.jsx)(n.Ki,{children:p.length&&p.map(function(O){return O.index===1&&h?(0,e.jsx)(n.Ki.Item,{label:O.name,labelColor:"bad",children:(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{disabled:!0,icon:"trash",children:"Delete"})})},""):(0,e.jsx)(n.Ki.Item,{label:O.name,children:(0,e.jsx)(n.$n,{icon:"trash",onClick:function(){return c("rem_queue",{q_index:O.index})},children:"Delete"})},"")})||(0,e.jsx)(n.az,{m:1,children:"Queue Empty."})})})}),(0,e.jsx)(n.so.Item,{maxHeight:"50%",grow:1,basis:0,children:(0,e.jsx)(n.wn,{height:"100%",title:"Recipes",overflowY:"scroll",buttons:(0,e.jsx)(n.$n,{icon:"plus",tooltip:I?"Import Recipe":"Generate Recipe",onClick:function(){return c("add_recipe")}}),children:(0,e.jsx)(n.Ki,{children:E.length&&E.map(function(O){return(0,e.jsxs)(n.Ki.Item,{label:O.name,children:[(0,e.jsx)(n.$n,{icon:"plus",tooltip:"Add to Queue",onClick:function(){return c("add_queue",{qa_index:O.name})}}),(0,e.jsx)(n.$n,{icon:"inbox",tooltip:"Export Recipe",onClick:function(){return c("exp_recipe",{exp_index:O.name})}}),(0,e.jsx)(n.$n,{color:"bad",icon:"minus-circle",tooltip:"Delete Recipe",disabled:!!h,onClick:function(){return c("rem_recipe",{rm_index:O.name})}})]},"")})||(0,e.jsx)(n.az,{m:1,children:"No recipes found."})})})})]})},d=function(v){for(var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.busy,x=u.chemicals,j=x===void 0?[]:x,p=u.rxn_vessel,_=p===void 0?[]:p,E=u.catalyst,I=u.catalystCurrentVolume,O=u.catalystMaxVolume,M=u.catalyst_reagents,D=M===void 0?[]:M,A=[],B=0;B<(j.length+1)%3;B++)A.push(!0);return(0,e.jsxs)(n.so,{direction:"column",children:[(0,e.jsx)(n.wn,{title:"Cartridge Reagents",flexGrow:"1",children:(0,e.jsxs)(n.so,{direction:"row",wrap:"wrap",height:"100%",align:"flex-start",children:[j.map(function(U,L){return(0,e.jsx)(n.so.Item,{grow:"1",m:.2,basis:"40%",height:"20px",children:(0,e.jsx)(n.$n,{icon:"arrow-circle-down",width:"100%",height:"100%",align:"flex-start",disabled:1,content:U.title+" ("+U.amount+")"})},L)}),A.map(function(U,L){return(0,e.jsx)(n.so.Item,{grow:"1",basis:"25%",height:"20px"},L)})]})}),(0,e.jsx)(n.wn,{title:"Reaction Vessel",children:_.length>0?(0,e.jsx)(o.BeakerContents,{beakerLoaded:!0,beakerContents:_}):(0,e.jsx)(n.az,{color:"label",children:"Vessel is empty."})}),(0,e.jsx)(n.wn,{title:"Catalyst",flex:"content",minHeight:"25%",buttons:(0,e.jsxs)(n.az,{children:[!!E&&(0,e.jsxs)(n.az,{inline:!0,color:"label",mr:2,children:[I," / ",O," units"]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!E||!!h,onClick:function(){return c("eject_catalyst")}})]}),children:(0,e.jsx)(o.BeakerContents,{beakerLoaded:E,beakerContents:D})})]})},f=function(v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=u.busy,x=u.production_mode,j=u.panel_open,p=u.rxn_vessel,_=u.drug_substance,E=u.bottle_icon,I=u.pill_icon,O=u.patch_icon;return(0,e.jsxs)(n.so,{height:"100%",width:"100%",direction:"column",children:[(0,e.jsx)(n.so.Item,{height:0,grow:1,children:(0,e.jsx)(n.wn,{height:"100%",title:"Settings",overflowY:"auto",children:(0,e.jsxs)(n.so,{direction:"column",children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{color:x?"green":"bad",icon:"wrench",content:x?"Recipe mode: Import":"Recipe mode: Tutorial",onClick:function(){return c("mode_toggle")}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!!h,color:j?"bad":"green",icon:"wrench",content:j?"Panel Open":"Panel Closed",onClick:function(){return c("panel_toggle")}})}),(0,e.jsx)(n.so.Item,{children:!h&&(0,e.jsx)(n.$n,{disabled:!p.length,color:"bad",icon:"flask",tooltip:"For emptying the reaction vessel if the machine stalls.",content:"Bottle Manually",onClick:function(){return c("bottle_product")}})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{disabled:!h,color:"bad",icon:"minus-circle",content:"EMERGENCY STOP",onClick:function(){return c("emergency_stop")}})})]})})}),(0,e.jsx)(n.so.Item,{height:0,grow:1,children:(0,e.jsx)(n.wn,{height:"100%",title:"Drug Substance",overflowY:"auto",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Bottle",children:[(0,e.jsx)(n.$n,{icon:"wine-bottle",content:"Activate",selected:u.drug_substance===1,mr:"0.5rem",onClick:function(){return c("drug_form",{drug_index:1})}}),(0,e.jsxs)(n.$n,{onClick:function(){return(0,m.modalOpen)("change_bottle_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",background:"url(bottle-"+u.bottle_icon+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]}),(0,e.jsxs)(n.Ki.Item,{label:"Pill",children:[(0,e.jsx)(n.$n,{icon:"circle",content:"Activate",selected:u.drug_substance===2,mr:"0.5rem",onClick:function(){return c("drug_form",{drug_index:2})}}),(0,e.jsxs)(n.$n,{onClick:function(){return(0,m.modalOpen)("change_pill_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",background:"url(pill"+u.pill_icon+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]}),(0,e.jsxs)(n.Ki.Item,{label:"Patch",children:[(0,e.jsx)(n.$n,{icon:"square",content:"Activate",selected:u.drug_substance===3,mr:"0.5rem",onClick:function(){return c("drug_form",{drug_index:3})}}),(0,e.jsxs)(n.$n,{onClick:function(){return(0,m.modalOpen)("change_patch_style")},children:[(0,e.jsx)("div",{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",background:"url(patch"+u.patch_icon+".png)",backgroundSize:"200%",backgroundPosition:"left -10px bottom -6px"}}),"Style"]})]})]})})})]})}},83240:function(S,y,t){"use strict";t.r(y),t.d(y,{ColorMate:function(){return m},ColorMateHSV:function(){return d},ColorMateMatrix:function(){return g},ColorMateTint:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(84905),m=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.activemode,h=c.temp,x=c.item||[];return(0,e.jsx)(o.p8,{width:"980",height:"720",resizable:!0,children:(0,e.jsx)(o.p8.Content,{overflow:"auto",children:(0,e.jsxs)(r.wn,{children:[h?(0,e.jsx)(r.IC,{children:h}):null,x&&Object.keys(x).length?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(r.XI,{children:[(0,e.jsx)(r.XI.Cell,{width:"50%",children:(0,e.jsxs)(r.wn,{children:[(0,e.jsx)("center",{children:"Item:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+x.sprite,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsxs)(r.wn,{children:[(0,e.jsx)("center",{children:"Preview:"}),(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+x.preview,width:"100%",height:"100%",style:{"-ms-interpolation-mode":"nearest-neighbor"}})]})})]}),(0,e.jsxs)(r.tU,{fluid:!0,children:[(0,e.jsx)(r.tU.Tab,{selected:u===1,onClick:function(){return l("switch_modes",{mode:1})},children:"Tint coloring (Simple)"},"1"),(0,e.jsx)(r.tU.Tab,{selected:u===2,onClick:function(){return l("switch_modes",{mode:2})},children:"HSV coloring (Normal)"},"2"),(0,e.jsx)(r.tU.Tab,{selected:u===3,onClick:function(){return l("switch_modes",{mode:3})},children:"Matrix coloring (Advanced)"},"3")]}),(0,e.jsxs)("center",{children:["Coloring: ",x.name]}),(0,e.jsxs)(r.XI,{mt:1,children:[(0,e.jsxs)(r.XI.Cell,{width:"33%",children:[(0,e.jsx)(r.$n,{fluid:!0,content:"Paint",icon:"fill",onClick:function(){return l("paint")}}),(0,e.jsx)(r.$n,{fluid:!0,content:"Clear",icon:"eraser",onClick:function(){return l("clear")}}),(0,e.jsx)(r.$n,{fluid:!0,content:"Eject",icon:"eject",onClick:function(){return l("drop")}})]}),(0,e.jsx)(r.XI.Cell,{width:"66%",children:u===1?(0,e.jsx)(b,{}):u===2?(0,e.jsx)(d,{}):(0,e.jsx)(g,{})})]})]}):(0,e.jsx)("center",{children:"No item inserted."})]})})})},b=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data;return(0,e.jsx)(r.$n,{fluid:!0,content:"Select new color",icon:"paint-brush",onClick:function(){return l("choose_color")}})},g=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.matrixcolors||[];return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.rr,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:1,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.gr,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:4,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.br,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:7,value:x})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.rg,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:2,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.gg,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:5,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.bg,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:8,value:x})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["RB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.rb,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:3,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["GB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.gb,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:6,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["BB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.bb,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:9,value:x})}})]})]}),(0,e.jsxs)(r.XI.Cell,{children:[(0,e.jsxs)(r.XI.Row,{children:["CR:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.cr,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:10,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CG:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.cg,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:11,value:x})}})]}),(0,e.jsxs)(r.XI.Row,{children:["CB:",(0,e.jsx)(r.Q7,{width:"50px",minValue:-10,maxValue:10,step:.01,value:u.cb,format:function(h){return(0,a.Mg)(h,2)},onChange:function(h,x){return l("set_matrix_color",{color:12,value:x})}})]})]}),(0,e.jsxs)(r.XI.Cell,{width:"40%",children:[(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," RG means red will become this much green.",(0,e.jsx)("br",{}),(0,e.jsx)(r.In,{name:"question-circle",color:"blue"})," CR means this much red will be added."]})]})},d=function(f){var v=(0,n.Oc)(),l=v.act,c=v.data,u=c.buildhue,h=c.buildsat,x=c.buildval;return(0,e.jsxs)(r.XI,{children:[(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Hue:"}),(0,e.jsx)(r.XI.Cell,{width:"85%",children:(0,e.jsx)(r.Ap,{minValue:0,maxValue:360,step:1,value:u,onDrag:function(j,p){return l("set_hue",{buildhue:p})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Saturation:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:h,format:function(j){return(0,a.Mg)(j,2)},onDrag:function(j,p){return l("set_sat",{buildsat:p})}})})]}),(0,e.jsxs)(r.XI.Row,{children:[(0,e.jsx)("center",{children:"Value:"}),(0,e.jsx)(r.XI.Cell,{children:(0,e.jsx)(r.Ap,{minValue:-10,maxValue:10,step:.01,value:x,format:function(j){return(0,a.Mg)(j,2)},onDrag:function(j,p){return l("set_val",{buildval:p})}})})]})]})}},87799:function(S,y,t){"use strict";t.r(y),t.d(y,{FilingCabinet:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.cabinet_name,v=d.contents,l=d.contents_ref;return(0,e.jsx)(r.p8,{title:f||"Filing Cabinet",width:350,height:300,children:(0,e.jsxs)(r.p8.Content,{backgroundColor:"#B88F3D",scrollable:!0,children:[v.map(function(c,u){return(0,e.jsxs)(n.so,{color:"black",backgroundColor:"white",style:{padding:"2px"},mb:.5,children:[(0,e.jsx)(n.so.Item,{align:"center",grow:1,children:(0,e.jsx)(n.az,{align:"center",children:c})}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{icon:"eject",onClick:function(){return g("remove_object",{ref:l[u]})}})})]},l[u])}),v.length===0&&(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.az,{color:"white",align:"center",children:["The ",f," is empty!"]})})]})})}},52948:function(S,y,t){"use strict";t.r(y),t.d(y,{ICAssembly:function(){return b}});var e=t(88095),a=t(5229),n=t(4413),r=t(92514),o=t(24158),m=t(84905),b=function(d){var f=(0,n.Oc)(),v=f.act,l=f.data,c=l.total_parts,u=l.max_components,h=l.total_complexity,x=l.max_complexity,j=l.battery_charge,p=l.battery_max,_=l.net_power,E=l.unremovable_circuits,I=l.removable_circuits,O=function(){return v("remove_cell")},M=function(){return v("rename")};return(0,e.jsx)(m.p8,{width:600,height:380,resizable:!0,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[(0,e.jsx)(r.wn,{title:"Status",buttons:[(0,e.jsx)(r.$n,{icon:"eye",onClick:O,children:"Remove Battery"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:M,children:"Rename"})],children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Space in Assembly",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:c/u,maxValue:1,children:[c," / ",u," (",(0,a.LI)(c/u*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Complexity",children:(0,e.jsxs)(r.z2,{ranges:{good:[0,.25],average:[.5,.75],bad:[.75,1]},value:h/x,maxValue:1,children:[h," / ",x," (",(0,a.LI)(h/x*100,1),"%)"]})}),(0,e.jsx)(r.Ki.Item,{label:"Cell Charge",children:j&&(0,e.jsxs)(r.z2,{ranges:{bad:[0,.25],average:[.5,.75],good:[.75,1]},value:j/p,maxValue:1,children:[j," / ",p," (",(0,a.LI)(j/p*100,1),"%)"]})||(0,e.jsx)(r.az,{color:"bad",children:"No cell detected."})}),(0,e.jsx)(r.Ki.Item,{label:"Net Energy",children:_===0&&"0 W/s"||(0,e.jsx)(r.zv,{value:_,format:function(D){return"-"+(0,o.d5)(Math.abs(D))+"/s"}})})]})}),E.length&&(0,e.jsx)(g,{title:"Built-in Components",circuits:E})||null,I.length&&(0,e.jsx)(g,{title:"Removable Components",circuits:I})||null]})})},g=function(d){var f=(0,n.Oc)().act,v=d.title,l=d.circuits;return(0,e.jsx)(r.wn,{title:v,children:(0,e.jsx)(r.Ki,{children:l.map(function(c){return(0,e.jsxs)(r.Ki.Item,{label:c.name,children:[(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("open_circuit",{ref:c.ref})},children:"View"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("rename_circuit",{ref:c.ref})},children:"Rename"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("scan_circuit",{ref:c.ref})},children:"Debugger Scan"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("remove_circuit",{ref:c.ref})},children:"Remove"}),(0,e.jsx)(r.$n,{icon:"eye",onClick:function(){return f("bottom_circuit",{ref:c.ref})},children:"Move to Bottom"})]},c.ref)})})})}},75786:function(S,y,t){"use strict";t.r(y),t.d(y,{TguiFeedback:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.open_windows,v=d.selected_window,l=(0,a.Ul)("rating",""),c=l[0],u=l[1],h=(0,a.Ul)("comment",""),x=h[0],j=h[1];return(0,e.jsx)(r.p8,{width:550,height:460,children:(0,e.jsxs)(n.so,{children:[(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.wn,{title:"Open Windows",scrollable:!0,children:(0,e.jsx)(n.tU,{vertical:!0,children:f.map(function(p){return(0,e.jsx)(n.tU.Tab,{selected:p===v,onClick:function(){return g("pick_window",{win:p})},children:(0,e.jsx)(n.az,{inline:!0,children:p})},p)})})})}),(0,e.jsxs)(n.so.Item,{children:[v&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{title:"Rating",children:["Please enter your rating of this window from a range from 1 to 5",(0,e.jsx)("br",{}),(0,e.jsx)(n.pd,{onChange:function(p,_){return u(_)},value:c})]}),(0,e.jsxs)(n.wn,{title:"Optional Comment",children:["If you want, you can leave an optional comment as well!",(0,e.jsx)("br",{}),(0,e.jsx)(n.fs,{height:"18rem",onChange:function(p,_){return j(_)},value:x})]}),(0,e.jsx)(n.$n,{content:"Submit",onClick:function(){return g("submit",{rating:c,comment:x})}})]})," ",": ",(0,e.jsx)(e.Fragment,{children:"Please select an open window on the left!"})]})]})})}},52822:function(S,y,t){"use strict";t.r(y),t.d(y,{Ticket:function(){return f}});var e=t(88095),a=t(61652),n=t(4413),r=t(92514),o=t(84905),m={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},b={0:"red",1:"green",2:"pink"},g={example:"Example"},d={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=(0,n.Ul)("ticketChat",""),x=h[0],j=h[1],p=u.id,_=u.title,E=u.name,I=u.ticket_ref,O=u.state,M=u.level,D=u.handler,A=u.opened_at,B=u.closed_at,U=u.opened_at_date,L=u.closed_at_date,k=u.actions,Y=u.log;return(0,e.jsx)(o.p8,{width:900,height:600,children:(0,e.jsx)(o.p8.Content,{scrollable:!0,children:(0,e.jsxs)(r.wn,{title:"Ticket #"+p,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return c("retitle")}})," ",(0,e.jsx)(r.$n,{content:"Legacy UI",onClick:function(){return c("legacy")}})," ",(0,e.jsx)(r.$n,{content:m[M],color:b[M]})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Ticket ID",children:["#",p,": ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:E}})]}),(0,e.jsx)(r.Ki.Item,{label:"Type",children:m[M]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:d[O]}),(0,e.jsx)(r.Ki.Item,{label:"Assignee",children:D}),d[O]===d.open?(0,e.jsxs)(r.Ki.Item,{label:"Opened At",children:[U," (",Math.round(A/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[L," (",Math.round(B/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(r.$n,{content:"Reopen",onClick:function(){return c("reopen")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:k}})}),(0,e.jsx)(r.Ki.Item,{label:"Log"})]}),(0,e.jsx)(r.cG,{}),(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{children:Object.keys(Y).slice(0).map(function(V,H){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:Y[V]}},H)})}),(0,e.jsx)(r.cG,{}),(0,e.jsx)(r.so.Item,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:x,onInput:function(V,H){return j(H)},onKeyDown:function(V){var H=window.event?V.which:V.keyCode;H===a.Ri&&(c("send_msg",{msg:x,ticket_ref:I}),j(""))}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{content:"Send",onClick:function(){c("send_msg",{msg:x,ticket_ref:I}),j("")}})})]})})]})]})})})}},27300:function(S,y,t){"use strict";t.r(y),t.d(y,{TicketChat:function(){return f}});var e=t(88095),a=t(61652),n=t(4413),r=t(92514),o=t(84905),m={0:"Adminhelp",1:"Mentorhelp",2:"GM Request"},b={0:"red",1:"green",2:"pink"},g={example:"Example"},d={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown"},f=function(v){var l=(0,n.Oc)(),c=l.act,u=l.data,h=(0,n.Ul)("ticketChat",""),x=h[0],j=h[1],p=u.id,_=u.level,E=u.handler,I=u.log;return(0,e.jsx)(o.p8,{width:900,height:600,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(r.wn,{title:"Ticket #"+p,buttons:(0,e.jsx)(r.az,{nowrap:!0,children:(0,e.jsx)(r.$n,{content:m[_],color:b[_]})}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Assignee",children:E}),(0,e.jsx)(r.Ki.Item,{label:"Log"})]}),(0,e.jsx)(r.cG,{}),(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{children:Object.keys(I).slice(0).map(function(O,M){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:I[O]}},M)})}),(0,e.jsx)(r.cG,{}),(0,e.jsx)(r.so.Item,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:x,onInput:function(O,M){return j(M)},onKeyDown:function(O){var M=window.event?O.which:O.keyCode;M===a.Ri&&(c("send_msg",{msg:x}),j(""))}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{content:"Send",onClick:function(){c("send_msg",{msg:x}),j("")}})})]})})]})]})})})}},15261:function(S,y,t){"use strict";t.r(y),t.d(y,{TicketsPanel:function(){return l}});var e=t(88095),a=t(61652),n=t(4413),r=t(92514),o=t(84905),m={0:"Admin",1:"Mentor",2:"All Levels"},b={0:"red",1:"green",2:"pink"},g={example:"Example"},d={open:"Open",resolved:"Resolved",closed:"Closed",unknown:"Unknown",all:"All States"},f={open:"white",resolved:"green",closed:"grey",unknown:"orange"},v=function(c,u,h){var x=[];return c.forEach(function(j){(j.state===u||u==="all")&&(j.level===h||h===2)&&x.push(j)}),x},l=function(c){var u=(0,n.Oc)(),h=u.act,x=u.data,j=x.tickets,p=x.selected_ticket,_=(0,n.Ul)("stateFilter","open"),E=_[0],I=_[1],O=(0,n.Ul)("levelFilter",2),M=O[0],D=O[1],A=(0,n.Ul)("ticketChat",""),B=A[0],U=A[1],L=v(j,E,M);return(0,e.jsx)(o.p8,{width:900,height:600,children:(0,e.jsx)(o.p8.Content,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsxs)(r.so.Item,{shrink:!0,children:[(0,e.jsxs)(r.wn,{title:"Filter",children:[(0,e.jsx)(r.ms,{width:"100%",maxHeight:"160px",options:Object.values(d),selected:d[E],onSelected:function(k){return I(Object.keys(d)[Object.values(d).indexOf(k)])}}),(0,e.jsx)(r.cG,{}),(0,e.jsx)(r.ms,{width:"100%",maxHeight:"160px",options:Object.values(m),selected:m[M],onSelected:function(k){return D(Object.values(m).indexOf(k))}})]}),(0,e.jsx)(r.wn,{title:"Tickets",scrollable:!0,children:(0,e.jsxs)(r.tU,{vertical:!0,children:[(0,e.jsxs)(r.tU.Tab,{onClick:function(){return h("new_ticket")},children:["New Ticket",(0,e.jsx)(r.In,{name:"plus",ml:.5})]}),(0,e.jsx)(r.cG,{}),L.map(function(k){return(0,e.jsx)(r.tU.Tab,{selected:k.id===(p==null?void 0:p.id),onClick:function(){return h("pick_ticket",{ticket_id:k.id})},children:(0,e.jsxs)(r.az,{inline:!0,children:[(0,e.jsxs)(r.az,{children:[(0,e.jsx)(r.$n,{content:m[k.level],color:b[k.level]})," ",k.name]}),(0,e.jsxs)(r.az,{fontSize:.9,textColor:f[k.state],children:["State: ",d[k.state]," | Assignee:"," ",k.handler]})]})},k.id)})]})})]}),(0,e.jsx)(r.so.Item,{grow:!0,children:p&&(0,e.jsxs)(r.wn,{title:"Ticket #"+p.id,buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{icon:"arrow-up",content:"Undock",onClick:function(){return h("undock_ticket")}})," ",(0,e.jsx)(r.$n,{icon:"pen",content:"Rename Ticket",onClick:function(){return h("retitle_ticket")}})," ",(0,e.jsx)(r.$n,{content:"Legacy UI",onClick:function(){return h("legacy")}})," ",(0,e.jsx)(r.$n,{content:m[p.level],color:b[p.level]})]}),children:[(0,e.jsxs)(r.Ki,{children:[(0,e.jsxs)(r.Ki.Item,{label:"Ticket ID",children:["#",p.id,":"," ",(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p.name}})]}),(0,e.jsx)(r.Ki.Item,{label:"Type",children:m[p.level]}),(0,e.jsx)(r.Ki.Item,{label:"State",children:d[p.state]}),(0,e.jsx)(r.Ki.Item,{label:"Assignee",children:p.handler}),d[p.state]===d.open?(0,e.jsxs)(r.Ki.Item,{label:"Opened At",children:[p.opened_at_date," (",Math.round(p.opened_at/600*10)/10," ","minutes ago.)"]}):(0,e.jsxs)(r.Ki.Item,{label:"Closed At",children:[p.closed_at_date," (",Math.round(p.closed_at/600*10)/10," ","minutes ago.)"," ",(0,e.jsx)(r.$n,{content:"Reopen",onClick:function(){return h("reopen_ticket")}})]}),(0,e.jsx)(r.Ki.Item,{label:"Actions",children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p.actions}})}),(0,e.jsx)(r.Ki.Item,{label:"Log"})]}),(0,e.jsx)(r.cG,{}),(0,e.jsxs)(r.so,{direction:"column",children:[(0,e.jsx)(r.so.Item,{maxWidth:"500px",children:Object.keys(p.log).slice(0).map(function(k,Y){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:p.log[k]}},Y)})}),(0,e.jsx)(r.cG,{}),(0,e.jsx)(r.so.Item,{children:(0,e.jsxs)(r.so,{children:[(0,e.jsx)(r.so.Item,{grow:!0,children:(0,e.jsx)(r.pd,{autoFocus:!0,autoSelect:!0,fluid:!0,placeholder:"Enter a message...",value:B,onInput:function(k,Y){return U(Y)},onKeyDown:function(k){var Y=window.event?k.which:k.keyCode;Y===a.Ri&&(h("send_msg",{msg:B}),U(""))}})}),(0,e.jsx)(r.so.Item,{children:(0,e.jsx)(r.$n,{content:"Send",onClick:function(){h("send_msg",{msg:B}),U("")}})})]})})]})]})||(0,e.jsx)(r.wn,{title:"No ticket selected",buttons:(0,e.jsxs)(r.az,{nowrap:!0,children:[(0,e.jsx)(r.$n,{disabled:!0,icon:"arrow-up",content:"Undock",onClick:function(){return h("undock_ticket")}})," ",(0,e.jsx)(r.$n,{disabled:!0,icon:"pen",content:"Rename Ticket",onClick:function(){return h("retitle_ticket")}})," ",(0,e.jsx)(r.$n,{content:"Legacy UI",onClick:function(){return h("legacy")}})]}),children:"Please select a ticket on the left to view its details."})})]})})})}},14378:function(S,y,t){"use strict";t.r(y),t.d(y,{VorePanel:function(){return c}});var e=t(88095),a=t(84352),n=t(33854),r=t(4413),o=t(92514),m=t(84905);function b(){return b=Object.assign||function(V){for(var H=1;H<arguments.length;H++){var N=arguments[H];for(var q in N)Object.prototype.hasOwnProperty.call(N,q)&&(V[q]=N[q])}return V},b.apply(this,arguments)}function g(V,H){if(V==null)return{};var N={},q=Object.keys(V),G,Q;for(Q=0;Q<q.length;Q++)G=q[Q],!(H.indexOf(G)>=0)&&(N[G]=V[G]);return N}var d=[null,"average","bad"],f={Default:null,Hold:null,Digest:"red",Absorb:"purple",Unabsorb:"purple",Drain:"orange",Selective:"orange",Shrink:"teal",Grow:"teal","Size Steal":"teal",Heal:"green","Encase In Egg":"blue"},v={Water:null,Milk:null,Cream:null,Honey:"teal","Cherry Jelly":"teal","Digestive acid":"red","Diluted digestive acid":"red","Space cleaner":null,Lube:null,Biomass:"teal","Concentrated Radium":"orange",Tricordrazine:"green"},l={Hold:"being held.",Digest:"being digested.",Absorb:"being absorbed.",Unabsorb:"being unabsorbed.",Drain:"being drained.",Selective:"being processed.",Shrink:"being shrunken.",Grow:"being grown.","Size Steal":"having your size stolen.",Heal:"being healed.","Encase In Egg":"being encased in an egg."},c=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=(0,r.Ul)("panelTabIndex",0),Q=G[0],F=G[1],Z=[];return Z[0]=(0,e.jsx)(h,{}),Z[1]=(0,e.jsx)(U,{}),(0,e.jsx)(m.p8,{width:890,height:660,theme:"abstract",resizable:!0,children:(0,e.jsxs)(m.p8.Content,{scrollable:!0,children:[q.unsaved_changes&&(0,e.jsx)(o.IC,{danger:!0,children:(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{basis:"90%",children:"Warning: Unsaved Changes!"}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(o.so.Item,{children:(0,e.jsx)(o.$n,{content:"Save Prefs & Export Selected Belly",icon:"download",onClick:function(){N("saveprefs"),N("exportpanel")}})})]})})||null,(0,e.jsx)(u,{}),(0,e.jsxs)(o.tU,{children:[(0,e.jsxs)(o.tU.Tab,{selected:Q===0,onClick:function(){return F(0)},children:["Bellies",(0,e.jsx)(o.In,{name:"list",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{selected:Q===1,onClick:function(){return F(1)},children:["Preferences",(0,e.jsx)(o.In,{name:"user-cog",ml:.5})]})]}),Z[Q]||"Error"]})})},u=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.inside,Q=G.absorbed,F=G.belly_name,Z=G.belly_mode,oe=G.desc,le=G.pred,ue=G.contents,he=G.ref,de=G.liq_lvl,ve=G.liq_reagent_type,pe=G.liuq_name;return F?(0,e.jsxs)(o.wn,{title:"Inside",children:[(0,e.jsxs)(o.az,{color:"green",inline:!0,children:["You are currently ",Q?"absorbed into":"inside"]}),"\xA0",(0,e.jsxs)(o.az,{color:"yellow",inline:!0,children:[le,"'s"]}),"\xA0",(0,e.jsx)(o.az,{color:"red",inline:!0,children:F}),de>0?(0,e.jsxs)(e.Fragment,{children:[",\xA0",(0,e.jsx)(o.az,{color:"yellow",inline:!0,children:"bathing in a pool of"}),"\xA0",(0,e.jsx)(o.az,{color:v[ve],inline:!0,children:pe})]}):"","\xA0",(0,e.jsx)(o.az,{color:"yellow",inline:!0,children:"and you are"}),"\xA0",(0,e.jsx)(o.az,{color:f[Z],inline:!0,children:l[Z]}),"\xA0",(0,e.jsx)(o.az,{color:"label",children:oe}),ue.length&&(0,e.jsx)(o.Nt,{title:"Belly Contents",children:(0,e.jsx)(D,{contents:ue,belly:he})})||"There is nothing else around you."]}):(0,e.jsx)(o.wn,{title:"Inside",children:"You aren't inside anyone."})},h=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.our_bellies,Q=q.selected;return(0,e.jsxs)(o.so,{children:[(0,e.jsx)(o.so.Item,{shrink:!0,children:(0,e.jsx)(o.wn,{title:"My Bellies",scollable:!0,children:(0,e.jsxs)(o.tU,{vertical:!0,children:[(0,e.jsxs)(o.tU.Tab,{onClick:function(){return N("newbelly")},children:["New",(0,e.jsx)(o.In,{name:"plus",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return N("exportpanel")},children:["Export",(0,e.jsx)(o.In,{name:"file-export",ml:.5})]}),(0,e.jsxs)(o.tU.Tab,{onClick:function(){return N("importpanel")},children:["Import",(0,e.jsx)(o.In,{name:"file-import",ml:.5})]}),(0,e.jsx)(o.cG,{}),G.map(function(F){return(0,e.jsx)(o.tU.Tab,{selected:F.selected,textColor:f[F.digest_mode],onClick:function(){return N("bellypick",{bellypick:F.ref})},children:(0,e.jsxs)(o.az,{inline:!0,textColor:F.selected&&f[F.digest_mode]||null,children:[F.name," (",F.contents,")"]})},F.name)})]})})}),(0,e.jsx)(o.so.Item,{grow:!0,children:Q&&(0,e.jsx)(o.wn,{title:Q.belly_name,children:(0,e.jsx)(x,{belly:Q})})})]})},x=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.contents,G=(0,r.Ul)("bellyTabIndex",0),Q=G[0],F=G[1],Z=[];return Z[0]=(0,e.jsx)(j,{belly:N}),Z[1]=(0,e.jsx)(p,{belly:N}),Z[2]=(0,e.jsx)(_,{belly:N}),Z[3]=(0,e.jsx)(I,{belly:N}),Z[4]=(0,e.jsx)(O,{belly:N}),Z[5]=(0,e.jsx)(M,{belly:N}),Z[6]=(0,e.jsx)(D,{outside:!0,contents:q}),Z[7]=(0,e.jsx)(A,{belly:N}),Z[8]=(0,e.jsx)(B,{belly:N}),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(o.tU,{children:[(0,e.jsx)(o.tU.Tab,{selected:Q===0,onClick:function(){return F(0)},children:"Controls"}),(0,e.jsx)(o.tU.Tab,{selected:Q===1,onClick:function(){return F(1)},children:"Descriptions"}),(0,e.jsx)(o.tU.Tab,{selected:Q===2,onClick:function(){return F(2)},children:"Options"}),(0,e.jsx)(o.tU.Tab,{selected:Q===3,onClick:function(){return F(3)},children:"Sounds"}),(0,e.jsx)(o.tU.Tab,{selected:Q===4,onClick:function(){return F(4)},children:"Visuals"}),(0,e.jsx)(o.tU.Tab,{selected:Q===5,onClick:function(){return F(5)},children:"Interactions"}),(0,e.jsxs)(o.tU.Tab,{selected:Q===6,onClick:function(){return F(6)},children:["Contents (",q.length,")"]}),(0,e.jsx)(o.tU.Tab,{selected:Q===7,onClick:function(){return F(7)},children:"Liquid Options"}),(0,e.jsx)(o.tU.Tab,{selected:Q===8,onClick:function(){return F(8)},children:"Liquid Messages"})]}),Z[Q]||"Error"]})},j=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.belly_name,G=N.mode,Q=N.item_mode,F=N.addons;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Name",buttons:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.$n,{icon:"arrow-up",tooltipPosition:"left",tooltip:"Move this belly tab up.",onClick:function(){return H("move_belly",{dir:-1})}}),(0,e.jsx)(o.$n,{icon:"arrow-down",tooltipPosition:"left",tooltip:"Move this belly tab down.",onClick:function(){return H("move_belly",{dir:1})}})]}),children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_name"})},content:q})}),(0,e.jsx)(o.Ki.Item,{label:"Mode",children:(0,e.jsx)(o.$n,{color:f[G],onClick:function(){return H("set_attribute",{attribute:"b_mode"})},content:G})}),(0,e.jsxs)(o.Ki.Item,{label:"Mode Addons",children:[F.length&&F.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Item Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_item_mode"})},content:Q})}),(0,e.jsx)(o.Ki.Item,{basis:"100%",mt:1,children:(0,e.jsx)(o.$n.Confirm,{fluid:!0,icon:"exclamation-triangle",confirmIcon:"trash",color:"red",content:"Delete Belly",confirmContent:"This is irreversable!",onClick:function(){return H("set_attribute",{attribute:"b_del"})}})})]})},p=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.verb,G=N.release_verb,Q=N.desc,F=N.absorbed_desc;return(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Description",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_desc"})},icon:"pen"}),children:Q}),(0,e.jsx)(o.Ki.Item,{label:"Description (Absorbed)",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_absorbed_desc"})},icon:"pen"}),children:F}),(0,e.jsx)(o.Ki.Item,{label:"Vore Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_verb"})},content:q})}),(0,e.jsx)(o.Ki.Item,{label:"Release Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_release_verb"})},content:G})}),(0,e.jsxs)(o.Ki.Item,{label:"Examine Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"em"})},content:"Examine Message (when full)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"ema"})},content:"Examine Message (with absorbed victims)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Struggle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"smo"})},content:"Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"smi"})},content:"Struggle Message (inside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"asmo"})},content:"Absorbed Struggle Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"asmi"})},content:"Absorbed Struggle Message (inside)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Escape Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escap"})},content:"Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escao"})},content:"Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escp"})},content:"Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"esco"})},content:"Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escout"})},content:"Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escip"})},content:"Escape Item Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escio"})},content:"Escape Item Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"esciout"})},content:"Escape Item Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escfp"})},content:"Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"escfo"})},content:"Escape Fail Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescap"})},content:"Absorbed Escape Attempt Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescao"})},content:"Absorbed Escape Attempt Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescp"})},content:"Absorbed Escape Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aesco"})},content:"Absorbed Escape Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescout"})},content:"Absorbed Escape Message (outside)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescfp"})},content:"Absorbed Escape Fail Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"aescfo"})},content:"Absorbed Escape Fail Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Transfer Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"trnspp"})},content:"Primary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"trnspo"})},content:"Primary Transfer Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"trnssp"})},content:"Secondary Transfer Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"trnsso"})},content:"Secondary Transfer Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Interaction Chance Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"stmodp"})},content:"Interaction Chance Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"stmodo"})},content:"Interaction Chance Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"stmoap"})},content:"Interaction Chance Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"stmoao"})},content:"Interaction Chance Absorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Bellymode Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"dmp"})},content:"Digest Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"dmo"})},content:"Digest Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"amp"})},content:"Absorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"amo"})},content:"Absorb Message (to you)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"uamp"})},content:"Unabsorb Message (to prey)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"uamo"})},content:"Unabsorb Message (to you)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Idle Messages",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_hold"})},content:"Idle Messages (Hold)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_holdabsorbed"})},content:"Idle Messages (Hold Absorbed)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_digest"})},content:"Idle Messages (Digest)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_absorb"})},content:"Idle Messages (Absorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_unabsorb"})},content:"Idle Messages (Unabsorb)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_drain"})},content:"Idle Messages (Drain)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_heal"})},content:"Idle Messages (Heal)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_steal"})},content:"Idle Messages (Size Steal)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_shrink"})},content:"Idle Messages (Shrink)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_grow"})},content:"Idle Messages (Grow)"}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"im_egg"})},content:"Idle Messages (Encase In Egg)"})]}),(0,e.jsx)(o.Ki.Item,{label:"Reset Messages",children:(0,e.jsx)(o.$n,{color:"red",onClick:function(){return H("set_attribute",{attribute:"b_msgs",msgtype:"reset"})},content:"Reset Messages"})})]})},_=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.host_mobtype,Q=G.is_cyborg,F=G.is_vore_simple_mob,Z=V.belly,oe=Z.can_taste,le=Z.is_feedable,ue=Z.nutrition_percent,he=Z.digest_brute,de=Z.digest_burn,ve=Z.digest_oxy,pe=Z.digest_tox,be=Z.digest_clone,ye=Z.bulge_size,Te=Z.display_absorbed_examine,Ke=Z.shrink_grow_size,$e=Z.emote_time,We=Z.emote_active,Qe=Z.contaminates,Ye=Z.contaminate_flavor,mt=Z.contaminate_color,vt=Z.egg_type,ht=Z.egg_name,ot=Z.recycling,He=Z.storing_nutrition,Ne=Z.entrance_logs,ke=Z.item_digest_logs,we=Z.selective_preference,qe=Z.save_digest_mode,Je=Z.eating_privacy_local,lt=Z.silicon_belly_overlay_preference,at=Z.belly_mob_mult,Xt=Z.belly_item_mult,Wt=Z.belly_overall_mult,zt=Z.vorespawn_blacklist,bt=Z.private_struggle;return(0,e.jsxs)(o.so,{wrap:"wrap",children:[(0,e.jsxs)(o.so.Item,{basis:"49%",grow:1,children:[(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Can Taste",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_tastes"})},icon:oe?"toggle-on":"toggle-off",selected:oe,content:oe?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Feedable",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_feedable"})},icon:le?"toggle-on":"toggle-off",selected:le,content:le?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Contaminates",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_contaminates"})},icon:Qe?"toggle-on":"toggle-off",selected:Qe,content:Qe?"Yes":"No"})}),Qe&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.Ki.Item,{label:"Contamination Flavor",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_flavor"})},icon:"pen",content:Ye})}),(0,e.jsx)(o.Ki.Item,{label:"Contamination Color",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_contamination_color"})},icon:"pen",content:(0,n.ZH)(mt)})})]})||null,(0,e.jsx)(o.Ki.Item,{label:"Nutritional Gain",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_nutritionpercent"})},content:ue+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Required Examine Size",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_bulge_size"})},content:ye*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Display Absorbed Examines",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_display_absorbed_examine"})},icon:Te?"toggle-on":"toggle-off",selected:Te,content:Te?"True":"False"})}),(0,e.jsx)(o.Ki.Item,{label:"Toggle Vore Privacy",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_eating_privacy"})},content:(0,n.ZH)(Je)})}),(0,e.jsx)(o.Ki.Item,{label:"Toggle Struggle Privacy",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_private_struggle"})},icon:bt?"toggle-on":"toggle-off",selected:bt,content:bt?"Private":"Loud"})}),(0,e.jsx)(o.Ki.Item,{label:"Save Digest Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_save_digest_mode"})},icon:qe?"toggle-on":"toggle-off",selected:qe,content:qe?"True":"False"})})]}),(0,e.jsx)(E,{belly:Z})]}),(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Idle Emotes",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_emoteactive"})},icon:We?"toggle-on":"toggle-off",selected:We,content:We?"Active":"Inactive"})}),(0,e.jsx)(o.Ki.Item,{label:"Idle Emote Delay",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_emotetime"})},content:$e+" seconds"})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Brute Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_brute_dmg"})},content:he})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Burn Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_burn_dmg"})},content:de})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Suffocation Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_oxy_dmg"})},content:ve})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Toxins Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_tox_dmg"})},content:pe})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Clone Damage",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_clone_dmg"})},content:be})}),(0,e.jsx)(o.Ki.Item,{label:"Shrink/Grow Size",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_grow_shrink"})},content:Ke*100+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Vore Spawn Blacklist",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_vorespawn_blacklist"})},icon:zt?"toggle-on":"toggle-off",selected:zt,content:zt?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Egg Type",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_egg_type"})},icon:"pen",content:(0,n.ZH)(vt)})}),(0,e.jsx)(o.Ki.Item,{label:"Custom Egg Name",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_egg_name"})},icon:"pen",content:ht||"Default"})}),(0,e.jsx)(o.Ki.Item,{label:"Recycling",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_recycling"})},icon:ot?"toggle-on":"toggle-off",selected:ot,content:ot?"Enabled":"Disabled"})}),(0,e.jsx)(o.Ki.Item,{label:"Storing Nutrition",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_storing_nutrition"})},icon:He?"toggle-on":"toggle-off",selected:He,content:He?"Storing":"Absorbing"})}),(0,e.jsx)(o.Ki.Item,{label:"Entrance Logs",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_entrance_logs"})},icon:Ne?"toggle-on":"toggle-off",selected:Ne,content:Ne?"Enabled":"Disabled"})}),(0,e.jsx)(o.Ki.Item,{label:"Item Digestion Logs",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_item_digest_logs"})},icon:ke?"toggle-on":"toggle-off",selected:ke,content:ke?"Enabled":"Disabled"})}),(0,e.jsx)(o.Ki.Item,{label:"Selective Mode Preference",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_selective_mode_pref_toggle"})},content:(0,n.ZH)(we)})})]})})]})},E=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.host_mobtype,Q=G.is_cyborg,F=G.is_vore_simple_mob,Z=V.belly,oe=Z.silicon_belly_overlay_preference,le=Z.belly_sprite_option_shown,ue=Z.belly_sprite_to_affect,he=Z.belly_mob_mult,de=Z.belly_item_mult,ve=Z.belly_overall_mult;return Q?le&&ue==="sleeper"?(0,e.jsx)(o.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Toggle Belly Overlay Mode",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_silicon_belly"})},content:(0,n.ZH)(oe)})})})}):(0,e.jsx)(o.wn,{title:"Cyborg Controls",width:"80%",children:(0,e.jsx)("span",{style:{color:"red"},children:"Your module does either not support vore sprites or you've selected a belly sprite other than the sleeper within the Visuals section."})}):F?(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})}):(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{})})},I=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.is_wet,G=N.wet_loop,Q=N.fancy,F=N.sound,Z=N.release_sound,oe=N.sound_volume,le=N.noise_freq;return(0,e.jsx)(o.so,{wrap:"wrap",children:(0,e.jsx)(o.so.Item,{basis:"49%",grow:1,children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Fleshy Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_wetness"})},icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Internal Loop",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_wetloop"})},icon:G?"toggle-on":"toggle-off",selected:G,content:G?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Use Fancy Sounds",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_fancy_sound"})},icon:Q?"toggle-on":"toggle-off",selected:Q,content:Q?"Yes":"No"})}),(0,e.jsxs)(o.Ki.Item,{label:"Vore Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_sound"})},content:F}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_soundtest"})},icon:"volume-up"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Release Sound",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_release"})},content:Z}),(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_releasesoundtest"})},icon:"volume-up"})]}),(0,e.jsx)(o.Ki.Item,{label:"Sound Volume",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_sound_volume"})},content:oe+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Noise Frequency",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_noise_freq"})},content:le})})]})})})},O=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.belly_fullscreen,G=N.belly_fullscreen_color,Q=N.belly_fullscreen_color2,F=N.belly_fullscreen_color3,Z=N.belly_fullscreen_color4,oe=N.belly_fullscreen_alpha,le=N.mapRef,ue=N.colorization_enabled,he=N.possible_fullscreens,de=N.disable_hud,ve=N.vore_sprite_flags,pe=N.affects_voresprite,be=N.absorbed_voresprite,ye=N.absorbed_multiplier,Te=N.liquid_voresprite,Ke=N.liquid_multiplier,$e=N.item_voresprite,We=N.item_multiplier,Qe=N.health_voresprite,Ye=N.resist_animation,mt=N.voresprite_size_factor,vt=N.belly_sprite_option_shown,ht=N.belly_sprite_to_affect,ot=N.undergarment_chosen,He=N.undergarment_if_none,Ne=N.undergarment_color,ke=N.tail_option_shown,we=N.tail_to_change_to,qe=N.tail_colouration,Je=N.tail_extra_overlay,lt=N.tail_extra_overlay2;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.wn,{title:"Vore Sprites",children:(0,e.jsx)(o.so,{direction:"row",children:(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Affect Vore Sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_affects_vore_sprites"})},icon:pe?"toggle-on":"toggle-off",selected:pe,content:pe?"Yes":"No"})}),pe?(0,e.jsxs)("span",{children:[(0,e.jsxs)(o.Ki.Item,{label:"Vore Sprite Mode",children:[ve.length&&ve.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_vore_sprite_flags"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Count Absorbed prey for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_count_absorbed_prey_for_sprites"})},icon:be?"toggle-on":"toggle-off",selected:be,content:be?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_absorbed_multiplier"})},content:ye})}),(0,e.jsx)(o.Ki.Item,{label:"Count liquid reagents for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_count_liquid_for_sprites"})},icon:Te?"toggle-on":"toggle-off",selected:Te,content:Te?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_liquid_multiplier"})},content:Ke})}),(0,e.jsx)(o.Ki.Item,{label:"Count items for vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_count_items_for_sprites"})},icon:$e?"toggle-on":"toggle-off",selected:$e,content:$e?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Items Multiplier",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_item_multiplier"})},content:We})}),(0,e.jsx)(o.Ki.Item,{label:"Prey health affects vore sprites",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_health_impacts_size"})},icon:Qe?"toggle-on":"toggle-off",selected:Qe,content:Qe?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Animation when prey resist",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_resist_animation"})},icon:Ye?"toggle-on":"toggle-off",selected:Ye,content:Ye?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Vore Sprite Size Factor",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_size_factor_sprites"})},content:mt})}),vt?(0,e.jsx)(o.Ki.Item,{label:"Belly Sprite to affect",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_belly_sprite_to_affect"})},content:ht})}):(0,e.jsx)(o.Ki.Item,{label:"Belly Sprite to affect",children:(0,e.jsx)("span",{style:{color:"red"},children:"You do not have any bellysprites."})}),ke&&ve.includes("Undergarment addition")?(0,e.jsxs)("div",{children:[(0,e.jsx)(o.Ki.Item,{label:"Undergarment type to affect",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_undergarment_choice"})},content:ot})}),(0,e.jsx)(o.Ki.Item,{label:"Undergarment if none equipped",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_undergarment_if_none"})},content:He})}),(0,e.jsx)(k,{action_name:"b_undergarment_color",value_of:null,back_color:Ne,name_of:"Undergarment Color if none"})]}):"",ke&&ve.includes("Tail adjustment")?(0,e.jsx)(o.Ki.Item,{label:"Tail to change to",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_tail_to_change_to"})},content:we})}):""]}):""]})})}),(0,e.jsxs)(o.wn,{title:"Belly Fullscreens Preview and Coloring",children:[(0,e.jsxs)(o.so,{direction:"row",children:[(0,e.jsx)(k,{action_name:"b_fullscreen_color",value_of:null,back_color:G,name_of:"1"}),(0,e.jsx)(k,{action_name:"b_fullscreen_color2",value_of:null,back_color:Q,name_of:"2"}),(0,e.jsx)(k,{action_name:"b_fullscreen_color3",value_of:null,back_color:F,name_of:"3"}),(0,e.jsx)(k,{action_name:"b_fullscreen_color4",value_of:null,back_color:Z,name_of:"4"}),(0,e.jsx)(k,{action_name:"b_fullscreen_alpha",value_of:null,back_color:"#FFFFFF",name_of:"Alpha"})]}),(0,e.jsx)(o.Ki.Item,{label:"Enable Coloration",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_colorization_enabled"})},icon:ue?"toggle-on":"toggle-off",selected:ue,content:ue?"Yes":"No"})}),(0,e.jsx)(o.Ki.Item,{label:"Preview Belly",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_preview_belly"})},content:"Preview"})}),(0,e.jsx)(o.Ki.Item,{label:"Clear Preview",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_clear_preview"})},content:"Clear"})})]}),(0,e.jsxs)(o.wn,{children:[(0,e.jsx)(o.wn,{title:"Vore FX",children:(0,e.jsx)(o.Ki,{children:(0,e.jsx)(o.Ki.Item,{label:"Disable Prey HUD",children:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_disable_hud"})},icon:de?"toggle-on":"toggle-off",selected:de,content:de?"Yes":"No"})})})}),(0,e.jsxs)(o.wn,{title:"Belly Fullscreens Styles",width:"800px",children:["Belly styles:",(0,e.jsx)(o.$n,{fluid:!0,selected:q===""||q===null,onClick:function(){return H("set_attribute",{attribute:"b_fullscreen",val:null})},children:"Disabled"}),Object.keys(he).map(function(at,Xt){return(0,e.jsx)("span",{style:{width:"256px"},children:(0,e.jsx)(o.$n,{width:"256px",height:"256px",selected:at===q,onClick:function(){return H("set_attribute",{attribute:"b_fullscreen",val:at})},children:(0,e.jsx)(o.az,{className:(0,a.Ly)(["vore240x240",at]),style:{transform:"translate(0%, 4%)"}})},at)},Xt)})]})]})]})},M=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.escapable,G=N.interacts,Q=N.vorespawn_blacklist,F=N.autotransfer_enabled,Z=N.autotransfer;return(0,e.jsxs)(o.wn,{title:"Belly Interactions",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_escapable"})},icon:q?"toggle-on":"toggle-off",selected:q,content:q?"Interactions On":"Interactions Off"}),children:[q?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Escape Chance",children:(0,e.jsx)(o.$n,{content:G.escapechance+"%",onClick:function(){return H("set_attribute",{attribute:"b_escapechance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Absorbed Escape Chance",children:(0,e.jsx)(o.$n,{content:G.escapechance_absorbed+"%",onClick:function(){return H("set_attribute",{attribute:"b_escapechance_absorbed"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Escape Time",children:(0,e.jsx)(o.$n,{content:G.escapetime/10+"s",onClick:function(){return H("set_attribute",{attribute:"b_escapetime"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Chance",children:(0,e.jsx)(o.$n,{content:G.transferchance+"%",onClick:function(){return H("set_attribute",{attribute:"b_transferchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Location",children:(0,e.jsx)(o.$n,{content:G.transferlocation?G.transferlocation:"Disabled",onClick:function(){return H("set_attribute",{attribute:"b_transferlocation"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Chance",children:(0,e.jsx)(o.$n,{content:G.transferchance_secondary+"%",onClick:function(){return H("set_attribute",{attribute:"b_transferchance_secondary"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Secondary Transfer Location",children:(0,e.jsx)(o.$n,{content:G.transferlocation_secondary?G.transferlocation_secondary:"Disabled",onClick:function(){return H("set_attribute",{attribute:"b_transferlocation_secondary"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Absorb Chance",children:(0,e.jsx)(o.$n,{content:G.absorbchance+"%",onClick:function(){return H("set_attribute",{attribute:"b_absorbchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Digest Chance",children:(0,e.jsx)(o.$n,{content:G.digestchance+"%",onClick:function(){return H("set_attribute",{attribute:"b_digestchance"})}})}),(0,e.jsx)(o.Ki.Divider,{})]}):"These options only display while interactions are turned on.",(0,e.jsx)(o.wn,{title:"Auto-Transfer Options",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_enabled"})},icon:F?"toggle-on":"toggle-off",selected:F,content:F?"Auto-Transfer Enabled":"Auto-Transfer Disabled"}),children:F?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Time",children:(0,e.jsx)(o.$n,{content:Z.autotransferwait/10+"s",onClick:function(){return H("set_attribute",{attribute:"b_autotransferwait"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Min Amount",children:(0,e.jsx)(o.$n,{content:Z.autotransfer_min_amount,onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_min_amount"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Max Amount",children:(0,e.jsx)(o.$n,{content:Z.autotransfer_max_amount,onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_max_amount"})}})}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Primary Chance",children:(0,e.jsx)(o.$n,{content:Z.autotransferchance+"%",onClick:function(){return H("set_attribute",{attribute:"b_autotransferchance"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Primary Location",children:(0,e.jsx)(o.$n,{content:Z.autotransferlocation?Z.autotransferlocation:"Disabled",onClick:function(){return H("set_attribute",{attribute:"b_autotransferlocation"})}})}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Primary Whitelist (Mobs)",children:[Z.autotransfer_whitelist.length&&Z.autotransfer_whitelist.join(", ")||"Everything",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_whitelist"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Primary Whitelist (Items)",children:[Z.autotransfer_whitelist_items.length&&Z.autotransfer_whitelist_items.join(", ")||"Everything",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_whitelist_items"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Primary Blacklist (Mobs)",children:[Z.autotransfer_blacklist.length&&Z.autotransfer_blacklist.join(", ")||"Nothing",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_blacklist"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Primary Blacklist (Items)",children:[Z.autotransfer_blacklist_items.length&&Z.autotransfer_blacklist_items.join(", ")||"Nothing",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_blacklist_items"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Divider,{}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Secondary Chance",children:(0,e.jsx)(o.$n,{content:Z.autotransferchance_secondary+"%",onClick:function(){return H("set_attribute",{attribute:"b_autotransferchance_secondary"})}})}),(0,e.jsx)(o.Ki.Item,{label:"Auto-Transfer Secondary Location",children:(0,e.jsx)(o.$n,{content:Z.autotransferlocation_secondary?Z.autotransferlocation_secondary:"Disabled",onClick:function(){return H("set_attribute",{attribute:"b_autotransferlocation_secondary"})}})}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Secondary Whitelist (Mobs)",children:[Z.autotransfer_secondary_whitelist.length&&Z.autotransfer_secondary_whitelist.join(", ")||"Everything",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_secondary_whitelist"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Secondary Whitelist (Items)",children:[Z.autotransfer_secondary_whitelist_items.length&&Z.autotransfer_secondary_whitelist_items.join(", ")||"Everything",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_secondary_whitelist_items"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Secondary Blacklist (Mobs)",children:[Z.autotransfer_secondary_blacklist.length&&Z.autotransfer_secondary_blacklist.join(", ")||"Nothing",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_secondary_blacklist"})},ml:1,icon:"plus"})]}),(0,e.jsxs)(o.Ki.Item,{label:"Auto-Transfer Secondary Blacklist (Items)",children:[Z.autotransfer_secondary_blacklist_items.length&&Z.autotransfer_secondary_blacklist_items.join(", ")||"Nothing",(0,e.jsx)(o.$n,{onClick:function(){return H("set_attribute",{attribute:"b_autotransfer_secondary_blacklist_items"})},ml:1,icon:"plus"})]})]}):"These options only display while Auto-Transfer is enabled."})]})},D=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.show_pictures,Q=V.contents,F=V.belly,Z=V.outside,oe=Z===void 0?!1:Z;return(0,e.jsxs)(e.Fragment,{children:[oe&&(0,e.jsx)(o.$n,{textAlign:"center",fluid:!0,mb:1,onClick:function(){return N("pick_from_outside",{pickall:!0})},children:"All"})||null,G&&(0,e.jsx)(o.so,{wrap:"wrap",justify:"center",align:"center",children:Q.map(function(le){return(0,e.jsxs)(o.so.Item,{basis:"33%",children:[(0,e.jsx)(o.$n,{width:"64px",color:le.absorbed?"purple":d[le.stat],style:{"vertical-align":"middle","margin-right":"5px","border-radius":"20px"},onClick:function(){return N(le.outside?"pick_from_outside":"pick_from_inside",{pick:le.ref,belly:F})},children:(0,e.jsx)("img",{src:"data:image/jpeg;base64, "+le.icon,width:"64px",height:"64px",style:{"-ms-interpolation-mode":"nearest-neighbor","margin-left":"-5px"}})}),le.name]},le.name)})})||(0,e.jsx)(o.Ki,{children:Q.map(function(le){return(0,e.jsx)(o.Ki.Item,{label:le.name,children:(0,e.jsx)(o.$n,{fluid:!0,mt:-1,mb:-1,color:le.absorbed?"purple":d[le.stat],onClick:function(){return N(le.outside?"pick_from_outside":"pick_from_inside",{pick:le.ref,belly:F})},children:"Interact"})},le.ref)})})]})},A=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.show_liq,G=N.liq_interacts,Q=N.liq_reagent_gen,F=N.liq_reagent_type,Z=N.liq_reagent_name,oe=N.liq_reagent_transfer_verb,le=N.liq_reagent_nutri_rate,ue=N.liq_reagent_capacity,he=N.liq_sloshing,de=N.liq_reagent_addons,ve=N.show_liq_fullness,pe=N.liq_messages,be=N.liq_msg1,ye=N.liq_msg2,Te=N.liq_msg3,Ke=N.liq_msg4,$e=N.liq_msg5,We=N.custom_reagentcolor,Qe=N.custom_reagentalpha,Ye=N.liquid_overlay,mt=N.max_liquid_level,vt=N.reagent_touches,ht=N.mush_overlay,ot=N.mush_color,He=N.mush_alpha,Ne=N.max_mush,ke=N.min_mush,we=N.item_mush_val,qe=N.metabolism_overlay,Je=N.metabolism_mush_ratio,lt=N.max_ingested,at=N.custom_ingested_color,Xt=N.custom_ingested_alpha;return(0,e.jsx)(o.wn,{title:"Liquid Options",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_show_liq"})},icon:q?"toggle-on":"toggle-off",selected:q,tooltipPosition:"left",tooltip:"These are the settings for liquid bellies, every belly has a liquid storage.",content:q?"Liquids On":"Liquids Off"}),children:q?(0,e.jsxs)(o.Ki,{children:[(0,e.jsx)(o.Ki.Item,{label:"Generate Liquids",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_gen"})},icon:G.liq_reagent_gen?"toggle-on":"toggle-off",selected:G.liq_reagent_gen,content:G.liq_reagent_gen?"On":"Off"})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Type",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_type"})},icon:"pen",color:v[G.liq_reagent_type],content:G.liq_reagent_type})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Name",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_name"})},content:G.liq_reagent_name})}),(0,e.jsx)(o.Ki.Item,{label:"Transfer Verb",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_transfer_verb"})},content:G.liq_reagent_transfer_verb})}),(0,e.jsx)(o.Ki.Item,{label:"Generation Time",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_nutri_rate"})},icon:"clock",content:(G.liq_reagent_nutri_rate+1)*10/60+" Hours"})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Capacity",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_capacity"})},content:G.liq_reagent_capacity})}),(0,e.jsx)(o.Ki.Item,{label:"Slosh Sounds",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_sloshing"})},icon:G.liq_sloshing?"toggle-on":"toggle-off",selected:G.liq_sloshing,content:G.liq_sloshing?"On":"Off"})}),(0,e.jsxs)(o.Ki.Item,{label:"Liquid Addons",children:[G.liq_reagent_addons.length&&G.liq_reagent_addons.join(", ")||"None",(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_reagent_addons"})},ml:1,icon:"plus"})]}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Application to Prey",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_reagent_touches"})},icon:G.reagent_touches?"toggle-on":"toggle-off",selected:G.reagent_touches,content:G.reagent_touches?"On":"Off"})}),(0,e.jsx)(o.Ki.Item,{label:"Custom Liquid Color",children:(0,e.jsx)(Y,{action_name:"b_custom_reagentcolor",value_of:null,back_color:G.custom_reagentcolor,name_of:"Custom Liquid Color"})}),(0,e.jsx)(o.Ki.Item,{label:"Liquid Overlay",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liquid_overlay"})},icon:G.liquid_overlay?"toggle-on":"toggle-off",selected:G.liquid_overlay,content:G.liquid_overlay?"On":"Off"})}),(0,e.jsx)(o.Ki.Item,{label:"Max Liquid Level",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_max_liquid_level"})},content:G.max_liquid_level+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Custom Liquid Alpha",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_custom_reagentalpha"})},content:G.custom_reagentalpha})}),(0,e.jsx)(o.Ki.Item,{label:"Fullness Overlay",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_mush_overlay"})},icon:G.mush_overlay?"toggle-on":"toggle-off",selected:G.mush_overlay,content:G.mush_overlay?"On":"Off"})}),(0,e.jsx)(o.Ki.Item,{label:"Mush Overlay Color",children:(0,e.jsx)(Y,{action_name:"b_mush_color",value_of:null,back_color:G.mush_color,name_of:"Custom Mush Color"})}),(0,e.jsx)(o.Ki.Item,{label:"Mush Overlay Alpha",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_mush_alpha"})},content:G.mush_alpha})}),(0,e.jsx)(o.Ki.Item,{label:"Mush Overlay Scaling",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_max_mush"})},content:G.max_mush})}),(0,e.jsx)(o.Ki.Item,{label:"Minimum Mush Level",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_min_mush"})},content:G.min_mush+"%"})}),(0,e.jsx)(o.Ki.Item,{label:"Item Mush Value",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_item_mush_val"})},content:G.item_mush_val+" fullness per item"})}),(0,e.jsx)(o.Ki.Item,{label:"Metabolism Overlay",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_metabolism_overlay"})},icon:G.metabolism_overlay?"toggle-on":"toggle-off",selected:G.metabolism_overlay,content:G.metabolism_overlay?"On":"Off"})}),(0,e.jsx)(o.Ki.Item,{label:"Metabolism Mush Ratio",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_metabolism_mush_ratio"})},content:G.metabolism_mush_ratio+" fullness per reagent unit"})}),(0,e.jsx)(o.Ki.Item,{label:"Metabolism Overlay Scaling",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_max_ingested"})},content:G.max_ingested})}),(0,e.jsx)(o.Ki.Item,{label:"Custom Metabolism Color",children:(0,e.jsx)(Y,{action_name:"b_custom_ingested_color",value_of:null,back_color:G.custom_ingested_color,name_of:"Custom Metabolism Color"})}),(0,e.jsx)(o.Ki.Item,{label:"Metabolism Overlay Alpha",children:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_custom_ingested_alpha"})},content:G.custom_ingested_alpha})}),(0,e.jsx)(o.Ki.Item,{label:"Purge Liquids",children:(0,e.jsx)(o.$n,{color:"red",onClick:function(){return H("liq_set_attribute",{liq_attribute:"b_liq_purge"})},content:"Purge Liquids"})})]}):"These options only display while liquid settings are turned on."})},B=function(V){var H=(0,r.Oc)().act,N=V.belly,q=N.liq_interacts,G=N.liq_reagent_gen,Q=N.liq_reagent_type,F=N.liq_reagent_name,Z=N.liq_reagent_transfer_verb,oe=N.liq_reagent_nutri_rate,le=N.liq_reagent_capacity,ue=N.liq_sloshing,he=N.liq_reagent_addons,de=N.show_liq_fullness,ve=N.liq_messages,pe=N.liq_msg_toggle1,be=N.liq_msg_toggle2,ye=N.liq_msg_toggle3,Te=N.liq_msg_toggle4,Ke=N.liq_msg_toggle5,$e=N.liq_msg1,We=N.liq_msg2,Qe=N.liq_msg3,Ye=N.liq_msg4,mt=N.liq_msg5;return(0,e.jsx)(o.wn,{title:"Liquid Messages",buttons:(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_show_liq_fullness"})},icon:de?"toggle-on":"toggle-off",selected:de,tooltipPosition:"left",tooltip:"These are the settings for belly visibility when involving liquids fullness.",content:de?"Messages On":"Messages Off"}),children:de?(0,e.jsxs)(o.Ki,{children:[(0,e.jsxs)(o.Ki.Item,{label:"0 to 20%",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg_toggle1"})},icon:ve.liq_msg_toggle1?"toggle-on":"toggle-off",selected:ve.liq_msg_toggle1,content:ve.liq_msg_toggle1?"On":"Off"}),(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg1"})},content:"Examine Message (0 to 20%)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"20 to 40%",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg_toggle2"})},icon:ve.liq_msg_toggle2?"toggle-on":"toggle-off",selected:ve.liq_msg_toggle2,content:ve.liq_msg_toggle2?"On":"Off"}),(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg2"})},content:"Examine Message (20 to 40%)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"40 to 60%",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg_toggle3"})},icon:ve.liq_msg_toggle3?"toggle-on":"toggle-off",selected:ve.liq_msg_toggle3,content:ve.liq_msg_toggle3?"On":"Off"}),(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg3"})},content:"Examine Message (40 to 60%)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"60 to 80%",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg_toggle4"})},icon:ve.liq_msg_toggle4?"toggle-on":"toggle-off",selected:ve.liq_msg_toggle4,content:ve.liq_msg_toggle4?"On":"Off"}),(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg4"})},content:"Examine Message (60 to 80%)"})]}),(0,e.jsxs)(o.Ki.Item,{label:"80 to 100%",children:[(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg_toggle5"})},icon:ve.liq_msg_toggle5?"toggle-on":"toggle-off",selected:ve.liq_msg_toggle5,content:ve.liq_msg_toggle5?"On":"Off"}),(0,e.jsx)(o.$n,{onClick:function(){return H("liq_set_messages",{liq_messages:"b_liq_msg5"})},content:"Examine Message (80 to 100%)"})]})]}):"These options only display while liquid examination settings are turned on."})},U=function(V){var H=(0,r.Oc)(),N=H.act,q=H.data,G=q.prefs,Q=G.digestable,F=G.absorbable,Z=G.devourable,oe=G.allowmobvore,le=G.feeding,ue=G.permit_healbelly,he=G.can_be_drop_prey,de=G.can_be_drop_pred,ve=G.drop_vore,pe=G.slip_vore,be=G.stumble_vore,ye=G.throw_vore,Te=G.phase_vore,Ke=G.food_vore,$e=G.latejoin_vore,We=G.latejoin_prey,Qe=G.noisy,Ye=G.noisy_full,mt=G.resizable,vt=G.step_mechanics_active,ht=G.show_vore_fx,ot=G.digest_leave_remains,He=G.pickup_mechanics_active,Ne=G.allow_spontaneous_tf,ke=G.eating_privacy_global,we=G.strip_mechanics_active,qe=G.autotransferable,Je=G.liq_rec,lt=G.liq_giv,at=G.liq_apply,Xt=G.no_spawnpred_warning,Wt=G.no_spawnprey_warning,zt=G.no_spawnpred_warning_time,bt=G.no_spawnprey_warning_time,st=G.no_spawnpred_warning_save,it=G.no_spawnprey_warning_save,gt=G.nutrition_message_visible,Pt=G.weight_message_visible,Ft=G.selective_active,Yt=q.show_pictures,ln=q.overflow,tn=(0,r.Ul)("tabIndex",0),yn=tn[0],Bn=tn[1],Tt={digestion:{action:"toggle_digest",test:Q,tooltip:{main:"This button is for those who don't like being digested. It can make you undigestable.",enable:"Click here to allow digestion.",disable:"Click here to prevent digestion."},content:{enabled:"Digestion Allowed",disabled:"No Digestion"}},absorbable:{action:"toggle_absorbable",test:F,tooltip:{main:"This button allows preds to know whether you prefer or don't prefer to be absorbed.",enable:"Click here to allow being absorbed.",disable:"Click here to disallow being absorbed."},content:{enabled:"Absorption Allowed",disabled:"No Absorption"}},devour:{action:"toggle_devour",test:Z,fluid:!1,tooltip:{main:"This button is to toggle your ability to be devoured by others.",enable:"Click here to allow being devoured.",disable:"Click here to prevent being devoured."},content:{enabled:"Devouring Allowed",disabled:"No Devouring"}},mobvore:{action:"toggle_mobvore",test:oe,tooltip:{main:"This button is for those who don't like being eaten by mobs.",enable:"Click here to allow being eaten by mobs.",disable:"Click here to prevent being eaten by mobs."},content:{enabled:"Mobs eating you allowed",disabled:"No Mobs eating you"}},feed:{action:"toggle_feed",test:le,tooltip:{main:"This button is to toggle your ability to be fed to or by others vorishly.",enable:"Click here to allow being fed to/by other people.",disable:"Click here to prevent being fed to/by other people."},content:{enabled:"Feeding Allowed",disabled:"No Feeding"}},healbelly:{action:"toggle_healbelly",test:ue,tooltip:{main:"This button is for those who don't like healbelly used on them as a mechanic.",enable:"Click here to allow being heal-bellied.",disable:"Click here to prevent being heal-bellied."},content:{enabled:"Heal-bellies Allowed",disabled:"No Heal-bellies"}},dropnom_prey:{action:"toggle_dropnom_prey",test:he,fluid:!1,tooltip:{main:"This toggle is for spontaneous, environment related vore as prey, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous prey.",disable:"Click here to prevent being spontaneous prey."},content:{enabled:"Spontaneous Prey Enabled",disabled:"Spontaneous Prey Disabled"}},dropnom_pred:{action:"toggle_dropnom_pred",test:de,fluid:!1,tooltip:{main:"This toggle is for spontaneous, environment related vore as a predator, including drop-noms, teleporters, etc.",enable:"Click here to allow being spontaneous pred.",disable:"Click here to prevent being spontaneous pred."},content:{enabled:"Spontaneous Pred Enabled",disabled:"Spontaneous Pred Disabled"}},toggle_drop_vore:{action:"toggle_drop_vore",test:ve,tooltip:{main:"Allows for dropnom spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for dropnoms.",disable:"Click here to disable dropnoms."},content:{enabled:"Drop Noms Enabled",disabled:"Drop Noms Disabled"}},toggle_slip_vore:{action:"toggle_slip_vore",test:pe,tooltip:{main:"Allows for slip related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for slip vore.",disable:"Click here to disable slip vore."},content:{enabled:"Slip Vore Enabled",disabled:"Slip Vore Disabled"}},toggle_stumble_vore:{action:"toggle_stumble_vore",test:be,tooltip:{main:"Allows for stumble related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for stumble vore.",disable:"Click here to disable stumble vore."},content:{enabled:"Stumble Vore Enabled",disabled:"Stumble Vore Disabled"}},toggle_throw_vore:{action:"toggle_throw_vore",test:ye,tooltip:{main:"Allows for throw related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for throw vore.",disable:"Click here to disable throw vore."},content:{enabled:"Throw Vore Enabled",disabled:"Throw Vore Disabled"}},toggle_phase_vore:{action:"toggle_phase_vore",test:Te,tooltip:{main:"Allows for phasing related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for phase vore.",disable:"Click here to disable phase vore."},content:{enabled:"Phase Vore Enabled",disabled:"Phase Vore Disabled"}},toggle_food_vore:{action:"toggle_food_vore",test:Ke,tooltip:{main:"Allows for food related spontaneous vore to occur. Note, you still need spontaneous vore pred and/or prey enabled.",enable:"Click here to allow for food vore.",disable:"Click here to disable food vore."},content:{enabled:"Food Vore Enabled",disabled:"Food Vore Disabled"}},spawnbelly:{action:"toggle_latejoin_vore",test:$e,fluid:!1,tooltip:{main:"Toggle late join vore spawnpoint.",enable:"Click here to turn on vorish spawnpoint.",disable:"Click here to turn off vorish spawnpoint."},content:{enabled:"Vore Spawn Pred Enabled",disabled:"Vore Spawn Pred Disabled"}},spawnprey:{action:"toggle_latejoin_prey",test:We,fluid:!1,tooltip:{main:"Toggle late join preds spawning on you.",enable:"Click here to turn on preds spawning around you.",disable:"Click here to turn off preds spawning around you."},content:{enabled:"Vore Spawn Prey Enabled",disabled:"Vore Spawn Prey Disabled"}},noisy:{action:"toggle_noisy",test:Qe,tooltip:{main:"Toggle audible hunger noises.",enable:"Click here to turn on hunger noises.",disable:"Click here to turn off hunger noises."},content:{enabled:"Hunger Noises Enabled",disabled:"Hunger Noises Disabled"}},noisy_full:{action:"toggle_noisy_full",test:Ye,tooltip:{main:"Toggle belching while full.",enable:"Click here to turn on belching while full.",disable:"Click here to turn off belching while full."},content:{enabled:"Belching Enabled",disabled:"Belching Disabled"}},resize:{action:"toggle_resize",test:mt,tooltip:{main:"This button is to toggle your ability to be resized by others.",enable:"Click here to allow being resized.",disable:"Click here to prevent being resized."},content:{enabled:"Resizing Allowed",disabled:"No Resizing"}},steppref:{action:"toggle_steppref",test:vt,tooltip:{main:"",enable:"You will not participate in step mechanics. Click to enable step mechanics.",disable:"This setting controls whether or not you participate in size-based step mechanics. Includes both stepping on others, as well as getting stepped on. Click to disable step mechanics."},content:{enabled:"Step Mechanics Enabled",disabled:"Step Mechanics Disabled"}},vore_fx:{action:"toggle_fx",test:ht,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not see their FX settings. Click this to enable showing FX.",disable:"This setting controls whether or not a pred is allowed to mess with your HUD and fullscreen overlays. Click to disable all FX."},content:{enabled:"Show Vore FX",disabled:"Do Not Show Vore FX"}},remains:{action:"toggle_leaveremains",test:ot,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not leave remains behind. Click this to allow leaving remains.",disable:"Your Predator must have this setting enabled in their belly modes to allow remains to show up, if they do not, they will not leave your remains behind, even with this on. Click to disable remains."},content:{enabled:"Allow Leaving Remains",disabled:"Do Not Allow Leaving Remains"}},pickuppref:{action:"toggle_pickuppref",test:He,tooltip:{main:"",enable:"You will not participate in pick-up mechanics. Click this to allow picking up/being picked up.",disable:"Allows macros to pick you up into their hands, and you to pick up micros. Click to disable pick-up mechanics."},content:{enabled:"Pick-up Mechanics Enabled",disabled:"Pick-up Mechanics Disabled"}},spontaneous_tf:{action:"toggle_allow_spontaneous_tf",test:Ne,tooltip:{main:"This toggle is for spontaneous or environment related transformation as a victim, such as via chemicals.",enable:"Click here to allow being spontaneously transformed.",disable:"Click here to disable being spontaneously transformed."},content:{enabled:"Spontaneous TF Enabled",disabled:"Spontaneous TF Disabled"}},examine_nutrition:{action:"toggle_nutrition_ex",test:gt,tooltip:{main:"",enable:"Click here to enable nutrition messages.",disable:"Click here to disable nutrition messages."},content:{enabled:"Examine Nutrition Messages Active",disabled:"Examine Nutrition Messages Inactive"}},examine_weight:{action:"toggle_weight_ex",test:Pt,tooltip:{main:"",enable:"Click here to enable weight messages.",disable:"Click here to disable weight messages."},content:{enabled:"Examine Weight Messages Active",disabled:"Examine Weight Messages Inactive"}},strippref:{action:"toggle_strippref",test:we,tooltip:{main:"",enable:"Regardless of Predator Setting, you will not be stripped inside their bellies. Click this to allow stripping.",disable:"Your Predator must have this setting enabled in their belly modes to allow stripping your gear, if they do not, they will not strip your gear, even with this on. Click to disable stripping."},content:{enabled:"Allow Worn Item Stripping",disabled:"Do Not Allow Worn Item Stripping"}},eating_privacy_global:{action:"toggle_global_privacy",test:ke,tooltip:{main:"Sets default belly behaviour for vorebellies for announcing ingesting or expelling prey Overwritten by belly-specific preferences if set.",enable:" Click here to turn your messages subtle",disable:" Click here to turn your messages loud"},content:{enabled:"Global Vore Privacy: Subtle",disabled:"Global Vore Privacy: Loud"}},autotransferable:{action:"toggle_autotransferable",test:qe,tooltip:{main:"This button is for allowing or preventing belly auto-transfer mechanics from moving you.",enable:"Click here to allow autotransfer.",disable:"Click here to prevent autotransfer."},content:{enabled:"Auto-Transfer Allowed",disabled:"Do Not Allow Auto-Transfer"}},liquid_receive:{action:"toggle_liq_rec",test:Je,tooltip:{main:"This button is for allowing or preventing others from giving you liquids from their vore organs.",enable:"Click here to allow receiving liquids.",disable:"Click here to prevent receiving liquids."},content:{enabled:"Receiving Liquids Allowed",disabled:"Do Not Allow Receiving Liquids"}},liquid_give:{action:"toggle_liq_giv",test:lt,tooltip:{main:"This button is for allowing or preventing others from taking liquids from your vore organs.",enable:"Click here to allow taking liquids.",disable:"Click here to prevent taking liquids."},content:{enabled:"Taking Liquids Allowed",disabled:"Do Not Allow Taking Liquids"}},liquid_apply:{action:"toggle_liq_apply",test:at,tooltip:{main:"This button is for allowing or preventing vorgans from applying liquids to you.",enable:"Click here to allow the application of liquids.",disable:"Click here to prevent the application of liquids."},content:{enabled:"Applying Liquids Allowed",disabled:"Do Not Allow Applying Liquids"}},no_spawnpred_warning:{action:"toggle_no_latejoin_vore_warning",test:Xt,tooltip:{main:"This button is to disable the vore spawnpoint confirmations "+(st?"(round persistent).":"(no round persistence)."),enable:"Click here to auto accept spawnpoint confirmations after "+String(zt)+" seconds.",disable:"Click here to no longer auto accept spawnpoint confirmations after "+String(zt)+" seconds."},back_color:{enabled:st?"green":"#8B8000",disabled:""},content:{enabled:"Vore Spawn Pred Auto Accept Enabled",disabled:"Vore Spawn Pred Auto Accept Disabled"}},no_spawnprey_warning:{action:"toggle_no_latejoin_prey_warning",test:Wt,tooltip:{main:"This button is to disable the pred spawning on you confirmations "+(it?"(round persistent).":"(no round persistence)."),enable:"Click here to auto accept pred spawn confirmations after "+String(bt)+" seconds.",disable:"Click here to no longer auto accept pred spawn confirmations after "+String(bt)+" seconds."},back_color:{enabled:it?"green":"#8B8000",disabled:""},content:{enabled:"Vore Spawn Prey Auto Accept Enabled",disabled:"Vore Spawn Prey Auto Accept Disabled"}}};return(0,e.jsxs)(o.az,{nowrap:!0,children:[(0,e.jsx)(o.wn,{title:"Mechanical Preferences",buttons:(0,e.jsxs)(o.$n,{icon:"eye",selected:Yt,tooltip:"Allows to toggle if belly contents are shown as icons or in list format. "+(Yt?"Contents shown as pictures.":"Contents shown as lists.")+(Yt&&ln?"Temporarily disabled. Stomach contents above limits.":""),backgroundColor:Yt&&ln?"orange":"",onClick:function(){return N("show_pictures")},children:["Contents Preference: ",Yt?"Show Pictures":"Show List"]}),children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.steppref,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.pickuppref,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.resize,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.feed,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.liquid_receive,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.liquid_give,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.noisy,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.noisy_full,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.eating_privacy_global,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.vore_fx,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.spontaneous_tf,tooltipPosition:"top"})})]})}),(0,e.jsx)(o.wn,{title:"Devouring Preferences",buttons:(0,e.jsx)(o.az,{nowrap:!0,children:(0,e.jsx)(L,{spec:Tt.devour,tooltipPosition:"top"})}),children:Z?(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.healbelly,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.digestion,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.absorbable,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Selective Mode Preference: "+(0,n.ZH)(Ft),backgroundColor:f[Ft],tooltip:"Allows to set the personal belly mode preference for selective bellies.",tooltipPosition:"right",onClick:function(){return N("switch_selective_mode_pref")}})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.mobvore,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.autotransferable,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.strippref,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.liquid_apply,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.remains,tooltipPosition:"left"})})]}):""}),(0,e.jsx)(o.wn,{title:"Spontaneous Preferences",buttons:(0,e.jsxs)(o.az,{nowrap:!0,children:[(0,e.jsx)(L,{spec:Tt.dropnom_prey,tooltipPosition:"top"}),(0,e.jsx)(L,{spec:Tt.dropnom_pred,tooltipPosition:"top"})]}),children:he||de?(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.toggle_drop_vore,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.toggle_slip_vore,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.toggle_stumble_vore,tooltipPosition:"left"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.toggle_throw_vore,tooltipPosition:"right"})}),(0,e.jsx)(o.so.Item,{basis:"33%",grow:1,children:(0,e.jsx)(L,{spec:Tt.toggle_food_vore,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.toggle_phase_vore,tooltipPosition:"left"})})]}):""}),(0,e.jsx)(o.wn,{title:"Spawn Preferences",buttons:(0,e.jsxs)(o.az,{nowrap:!0,children:[(0,e.jsx)(L,{spec:Tt.spawnbelly,tooltipPosition:"top"}),(0,e.jsx)(L,{spec:Tt.spawnprey,tooltipPosition:"top"})]}),children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[$e?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.no_spawnpred_warning,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"12%",children:(0,e.jsx)(o.Q7,{fluid:!0,value:zt,minValue:0,maxValue:30,unit:"s",step:5,stepPixelSize:20,onChange:function(Kn,Jn){return N("adjust_no_latejoin_vore_warning_time",{new_pred_time:Jn})},children:"T"})}),(0,e.jsx)(o.so.Item,{basis:"5%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"P",backgroundColor:st?"green":"",tooltip:"Toggles vore spawnpoint auto accept persistency.",tooltipPosition:"top",onClick:function(){return N("toggle_no_latejoin_vore_warning_persists")}})})]}):"",We?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.so.Item,{basis:"33%",children:(0,e.jsx)(L,{spec:Tt.no_spawnprey_warning,tooltipPosition:"top"})}),(0,e.jsx)(o.so.Item,{basis:"12%",children:(0,e.jsx)(o.Q7,{fluid:!0,value:bt,minValue:0,maxValue:30,unit:"s",step:5,stepPixelSize:20,onChange:function(Kn,Jn){return N("adjust_no_latejoin_prey_warning_time",{new_prey_time:Jn})},children:"T"})}),(0,e.jsx)(o.so.Item,{basis:"5%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"P",backgroundColor:it?"green":"",tooltip:"Toggles preyspawn auto accept persistency.",tooltipPosition:"top",onClick:function(){return N("toggle_no_latejoin_prey_warning_persists")}})})]}):""]})}),(0,e.jsx)(o.wn,{title:"Aesthetic Preferences",children:(0,e.jsxs)(o.so,{spacing:1,wrap:"wrap",justify:"center",children:[(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,content:"Set Taste",icon:"grin-tongue",onClick:function(){return N("setflavor")}})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Set Smell",icon:"wind",onClick:function(){return N("setsmell")}})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"en"})},content:"Set Nutrition Examine Message",icon:"flask",fluid:!0})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{onClick:function(){return N("set_attribute",{attribute:"b_msgs",msgtype:"ew"})},content:"Set Weight Examine Message",icon:"weight-hanging",fluid:!0})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(L,{spec:Tt.examine_nutrition})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(L,{spec:Tt.examine_weight})}),(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Vore Sprite Color",onClick:function(){return N("set_vs_color")}})})]})}),(0,e.jsx)(o.cG,{}),(0,e.jsx)(o.wn,{children:(0,e.jsxs)(o.so,{spacing:1,children:[(0,e.jsx)(o.so.Item,{basis:"50%",children:(0,e.jsx)(o.$n,{fluid:!0,content:"Save Prefs",icon:"save",onClick:function(){return N("saveprefs")}})}),(0,e.jsx)(o.so.Item,{basis:"50%",grow:1,children:(0,e.jsx)(o.$n,{fluid:!0,content:"Reload Prefs",icon:"undo",onClick:function(){return N("reloadprefs")}})})]})})]})},L=function(V){var H=(0,r.Oc)().act,N=V.spec,q=g(V,["spec"]),G=N.action,Q=N.test,F=N.tooltip,Z=N.content,oe=N.fluid,le=oe===void 0?!0:oe,ue=N.back_color;return(0,e.jsx)(o.$n,b({onClick:function(){return H(G)},icon:Q?"toggle-on":"toggle-off",selected:Q,fluid:le,backgroundColor:ue?Q?ue.enabled:ue.disabled:"",tooltip:F.main+" "+(Q?F.disable:F.enable),content:Q?Z.enabled:Z.disabled},q))},k=function(V){var H=(0,r.Oc)().act,N=V.action_name,q=V.value_of,G=V.back_color,Q=V.name_of;return(0,e.jsx)(o.$n,{onClick:function(){H("set_attribute",{attribute:N,val:q})},children:(0,e.jsxs)(o.BJ,{align:"center",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.az,{style:{background:G.startsWith("#")?G:"#"+G,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.jsxs)(o.BJ.Item,{children:["Change ",Q]})]})})},Y=function(V){var H=(0,r.Oc)().act,N=V.action_name,q=V.value_of,G=V.back_color,Q=V.name_of;return(0,e.jsx)(o.$n,{onClick:function(){H("liq_set_attribute",{liq_attribute:N,val:q})},children:(0,e.jsxs)(o.BJ,{align:"center",fill:!0,children:[(0,e.jsx)(o.BJ.Item,{children:(0,e.jsx)(o.az,{style:{background:G.startsWith("#")?G:"#"+G,border:"2px solid white","box-sizing":"content-box",height:"11px",width:"11px"}})}),(0,e.jsxs)(o.BJ.Item,{children:["Change ",Q]})]})})}},46738:function(S,y,t){"use strict";t.r(y),t.d(y,{VorePanelExport:function(){return x}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o={Hold:'<span class="badge text-bg-secondary">Hold</span>',Digest:'<span class="badge text-bg-danger">Digest</span>',Absorb:'<span class="badge text-bg-light">Absorb</span>',Drain:'<span class="badge text-bg-warning">Drain</span>',Selective:'<span class="badge text-bg-warning">Selective</span>',Unabsorb:'<span class="badge text-bg-light">Unabsorb</span>',Heal:'<span class="badge text-bg-success">Heal</span>',Shrink:'<span class="badge text-bg-info">Shrink</span>',Grow:'<span class="badge text-bg-info">Grow</span>',"Size Steal":'<span class="badge text-bg-info">Size Steal</span>',"Encase In Egg":'<span class="badge text-bg-primary">Encase In Egg</span>'},m={Hold:'<span class="badge text-bg-secondary">Item: Hold</span>',"Digest (Food Only)":'<span class="badge text-bg-danger">Item: Digest (Food Only)</span>',Digest:'<span class="badge text-bg-danger">Item: Digest</span>',"Digest (Dispersed Damage)":'<span class="badge text-bg-danger">Item: Digest (Dispersed Damage)</span>'},b={Numbing:"",Stripping:"","Leave Remains":"",Muffles:"bi-volume-mute","Affect Worn Items":"","Jams Sensors":"bi-wifi-off","Complete Absorb":""},g={"Produce Liquids":"","Digestion Liquids":"","Absorption Liquids":"","Draining Liquids":""},d={Creatures:"",Absorbed:"",Carbon:"",Silicon:"",Mobs:"",Animals:"",Mice:"",Dead:"","Digestable Creatures":"","Absorbable Creatures":"","Full Health":"",Items:"",Trash:"",Eggs:"",Remains:"","Indigestible Items":"","Recyclable Items":"",Ores:"","Clothes and Bags":"",Food:""},f=function(p){var _=[];return p==null||p.forEach(function(E){_.push('<span class="badge text-bg-secondary"><i class="'+b[E]+'"></i>'+E+"</span>")}),_.length===0&&_.push("No Addons Set"),_},v=function(p){var _=[];return p==null||p.forEach(function(E){_.push('<span class="badge text-bg-secondary"><i class="'+g[E]+'"></i>'+E+"</span>")}),_.length===0&&_.push("No Addons Set"),_},l=function(p,_){var E=[];return p==null||p.forEach(function(I){E.push('<span class="badge text-bg-secondary"><i class="'+d[I]+'"></i>'+I+"</span>")}),E.length===0&&(_?E.push("Everything"):E.push("Nothing")),E},c=function(p,_){var E=p.name,I=p.desc,O=p.absorbed_desc,M=p.vore_verb,D=p.release_verb,A=p.mode,B=p.addons,U=p.item_mode,L=p.digest_brute,k=p.digest_burn,Y=p.digest_oxy,V=p.can_taste,H=p.is_feedable,N=p.contaminates,q=p.contamination_flavor,G=p.contamination_color,Q=p.nutrition_percent,F=p.bulge_size,Z=p.display_absorbed_examine,oe=p.save_digest_mode,le=p.emote_active,ue=p.emote_time,he=p.shrink_grow_size,de=p.vorespawn_blacklist,ve=p.egg_type,pe=p.egg_name,be=p.selective_preference,ye=p.recycling,Te=p.storing_nutrition,Ke=p.entrance_logs,$e=p.item_digest_logs,We=p.struggle_messages_outside,Qe=p.struggle_messages_inside,Ye=p.absorbed_struggle_messages_outside,mt=p.absorbed_struggle_messages_inside,vt=p.escape_attempt_messages_owner,ht=p.escape_attempt_messages_prey,ot=p.escape_messages_owner,He=p.escape_messages_prey,Ne=p.escape_messages_outside,ke=p.escape_item_messages_owner,we=p.escape_item_messages_prey,qe=p.escape_item_messages_outside,Je=p.escape_fail_messages_owner,lt=p.escape_fail_messages_prey,at=p.escape_attempt_absorbed_messages_owner,Xt=p.escape_attempt_absorbed_messages_prey,Wt=p.escape_absorbed_messages_owner,zt=p.escape_absorbed_messages_prey,bt=p.escape_absorbed_messages_outside,st=p.escape_fail_absorbed_messages_owner,it=p.escape_fail_absorbed_messages_prey,gt=p.primary_transfer_messages_owner,Pt=p.primary_transfer_messages_prey,Ft=p.secondary_transfer_messages_owner,Yt=p.secondary_transfer_messages_prey,ln=p.digest_chance_messages_owner,tn=p.digest_chance_messages_prey,yn=p.absorb_chance_messages_owner,Bn=p.absorb_chance_messages_prey,Tt=p.digest_messages_owner,Kn=p.digest_messages_prey,Jn=p.absorb_messages_owner,Xr=p.absorb_messages_prey,wr=p.unabsorb_messages_owner,Rr=p.unabsorb_messages_prey,Br=p.examine_messages,Kr=p.examine_messages_absorbed,Gr=p.emotes_digest,En=p.emotes_hold,In=p.emotes_holdabsorbed,kn=p.emotes_absorb,On=p.emotes_heal,Pn=p.emotes_drain,Ln=p.emotes_steal,qn=p.emotes_egg,Yr=p.emotes_shrink,bo=p.emotes_grow,Fo=p.emotes_unabsorb,ui=p.is_wet,er=p.wet_loop,yo=p.fancy_vore,Qr=p.vore_sound,Vo=p.release_sound,Nn=p.sound_volume,lr=p.noise_freq,mn=p.affects_vore_sprites,cr=p.count_absorbed_prey_for_sprite,di=p.resist_triggers_animation,fi=p.size_factor_for_sprite,Zt=p.belly_sprite_to_affect,hi=p.belly_fullscreen,kr=p.belly_fullscreen_color,Ho=p.belly_fullscreen_color2,Zr=p.belly_fullscreen_color3,br=p.belly_fullscreen_color4,_o=p.belly_fullscreen_alpha,Jr=p.colorization_enabled,dt=p.disable_hud,qr=p.escapable,Mn=p.escapechance,Vn=p.escapechance_absorbed,eo=p.escapetime,ur=p.transferchance,Un=p.transferlocation,en=p.transferchance_secondary,tr=p.transferlocation_secondary,yr=p.absorbchance,mi=p.digestchance,vi=p.autotransferwait,nr=p.autotransferchance,Co=p.autotransferlocation,to=p.autotransferchance_secondary,dr=p.autotransferlocation_secondary,pi=p.autotransfer_enabled,Eo=p.autotransfer_min_amount,Vt=p.autotransfer_max_amount,Io=p.autotransfer_whitelist,Hn=p.autotransfer_blacklist,Lr=p.autotransfer_secondary_whitelist,no=p.autotransfer_secondary_blacklist,re=p.autotransfer_whitelist_items,Fe=p.autotransfer_blacklist_items,Xo=p.autotransfer_secondary_whitelist_items,ro=p.autotransfer_secondary_blacklist_items,Tn=p.show_liquids,fr=p.reagentbellymode,Xn=p.reagent_chosen,_r=p.reagent_name,Oo=p.reagent_transfer_verb,fn=p.gen_time_display,Ui=p.custom_max_volume,gi=p.vorefootsteps_sounds,Gn=p.reagent_mode_flag_list,$i=p.liquid_overlay,Nr=p.max_liquid_level,Po=p.reagent_touches,zi=p.mush_overlay,wn=p.mush_color,Go=p.mush_alpha,Mo=p.max_mush,So=p.min_mush,oo=p.item_mush_val,Ua=p.custom_reagentcolor,vs=p.custom_reagentalpha,pa=p.metabolism_overlay,io=p.metabolism_mush_ratio,ao=p.max_ingested,Wi=p.custom_ingested_color,hr=p.custom_ingested_alpha,so=p.liquid_fullness1_messages,Cr=p.liquid_fullness2_messages,mr=p.liquid_fullness3_messages,cn=p.liquid_fullness4_messages,Yo=p.liquid_fullness5_messages,xi=p.fullness1_messages,vn=p.fullness2_messages,Ur=p.fullness3_messages,Er=p.fullness4_messages,rr=p.fullness5_messages,ne="";return ne+='<div class="accordion-item"><h2 class="accordion-header" id="heading'+_+'">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse'+_+'" aria-expanded="false" aria-controls="collapse'+_+'">',ne+=E+' - (<span style="color: red;">'+L+'</span >/<span style="color: orange;">'+k+'</span>/<span style="color: blue;">'+Y+"</span>) - "+o[A]+" - "+m[U],ne+="</button></h2>",ne+='<div id="collapse'+_+'" class="accordion-collapse collapse" aria-labelledby="heading'+_+'" data-bs-parent="#accordionBellies">',ne+='<div class="accordion-body">',ne+="Addons:<br>"+f(B)+"<br><br>",ne+="<b>== Descriptions ==</b><br>",ne+="Vore Verb:<br>"+M+"<br><br>",ne+="Release Verb:<br>"+D+"<br><br>",ne+='Description:<br>"'+I+'"<br><br>',ne+='Absorbed Description:<br>"'+O+'"<br><br>',ne+="<hr>",ne+="<b>== Messages ==</b><br>",ne+='<div role="messagesTabpanel">',ne+='<div class="row"><div class="col-4">',ne+='<div class="list-group" id="messagesList" role="messagesTablist">',ne+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#escapeAttemptMessagesOwner'+_+'" role="tab">Escape Attempt Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptMessagesPrey'+_+'" role="tab">Escape Attempt Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOwner'+_+'" role="tab">Escape Message (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesPrey'+_+'" role="tab">Escape Message (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeMessagesOutside'+_+'" role="tab">Escape Message (Outside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOwner'+_+'" role="tab">Escape Item Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesPrey'+_+'" role="tab">Escape Item Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeItemMessagesOutside'+_+'" role="tab">Escape Item Messages (Outside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailMessagesOwner'+_+'" role="tab">Escape Fail Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#esccapeFailMessagesPrey'+_+'" role="tab">Escape Fail Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesOwner'+_+'" role="tab">Escape Attempt Absorbed Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAttemptAbsorbedMessagesPrey'+_+'" role="tab">Escape Attempt Absorbed Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOwner'+_+'" role="tab">Escape Absorbed Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesPrey'+_+'" role="tab">Escape Absorbed Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeAbsorbedMessagesOutside'+_+'" role="tab">Escape Absorbed Messages (Outside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesOwner'+_+'" role="tab">Escape Fail Absorbed Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#escapeFailAbsorbedMessagesPrey'+_+'" role="tab">Escape Fail Absorbed Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesOwner'+_+'" role="tab">Primary Transfer Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#primaryTransferMessagesPrey'+_+'" role="tab">Primary Transfer Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesOwner'+_+'" role="tab">Secondary Transfer Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#secondaryTransferMessagesPrey'+_+'" role="tab">Secondary Transfer Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesOwner'+_+'" role="tab">Digest Chance Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestChanceMessagesPrey'+_+'" role="tab">Digest Chance Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesOwner'+_+'" role="tab">Absorb Chance Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbChanceMessagesPrey'+_+'" role="tab">Absorb Chance Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesOutside'+_+'" role="tab">Struggle Messages (Outside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#struggleMessagesInside'+_+'" role="tab">Struggle Messages (Inside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleOutside'+_+'" role="tab">Absorbed Struggle Messages (Outside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbedStruggleInside'+_+'" role="tab">Absorbed Struggle Messages (Inside)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesOwner'+_+'" role="tab">Digest Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#digestMessagesPrey'+_+'" role="tab">Digest Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesOwner'+_+'" role="tab">Absorb Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#absorbMessagesPrey'+_+'" role="tab">Absorb Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesOwner'+_+'" role="tab">Unabsorb Messages (Owner)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#unabsorbMessagesPrey'+_+'" role="tab">Unabsorb Messages (Prey)</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessages'+_+'" role="tab">Examine Messages</a>',ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessagesAbsorbed'+_+'" role="tab">Examine Messages (Absorbed)</a>',ne+="</div></div>",ne+='<div class="col-8">',ne+='<div class="tab-content">',ne+='<div class="tab-pane fade show active" id="escapeAttemptMessagesOwner'+_+'" role="messagesTabpanel">',vt==null||vt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAttemptMessagesPrey'+_+'" role="messagesTabpanel">',ht==null||ht.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeMessagesOwner'+_+'" role="messagesTabpanel">',ot==null||ot.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeMessagesPrey'+_+'" role="messagesTabpanel">',He==null||He.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeMessagesOutside'+_+'" role="messagesTabpanel">',Ne==null||Ne.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeItemMessagesOwner'+_+'" role="messagesTabpanel">',ke==null||ke.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeItemMessagesPrey'+_+'" role="messagesTabpanel">',we==null||we.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeItemMessagesOutside'+_+'" role="messagesTabpanel">',qe==null||qe.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeFailMessagesOwner'+_+'" role="messagesTabpanel">',Je==null||Je.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="esccapeFailMessagesPrey'+_+'" role="messagesTabpanel">',lt==null||lt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesOwner'+_+'" role="messagesTabpanel">',at==null||at.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAttemptAbsorbedMessagesPrey'+_+'" role="messagesTabpanel">',Xt==null||Xt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOwner'+_+'" role="messagesTabpanel">',Wt==null||Wt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAbsorbedMessagesPrey'+_+'" role="messagesTabpanel">',zt==null||zt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeAbsorbedMessagesOutside'+_+'" role="messagesTabpanel">',bt==null||bt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesOwner'+_+'" role="messagesTabpanel">',st==null||st.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="escapeFailAbsorbedMessagesPrey'+_+'" role="messagesTabpanel">',it==null||it.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="primaryTransferMessagesOwner'+_+'" role="messagesTabpanel">',gt==null||gt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="primaryTransferMessagesPrey'+_+'" role="messagesTabpanel">',Pt==null||Pt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="secondaryTransferMessagesOwner'+_+'" role="messagesTabpanel">',Ft==null||Ft.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="secondaryTransferMessagesPrey'+_+'" role="messagesTabpanel">',Yt==null||Yt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="digestChanceMessagesOwner'+_+'" role="messagesTabpanel">',ln==null||ln.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="digestChanceMessagesPrey'+_+'" role="messagesTabpanel">',tn==null||tn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbChanceMessagesOwner'+_+'" role="messagesTabpanel">',yn==null||yn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbChanceMessagesPrey'+_+'" role="messagesTabpanel">',Bn==null||Bn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="struggleMessagesOutside'+_+'" role="messagesTabpanel">',We==null||We.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="struggleMessagesInside'+_+'" role="messagesTabpanel">',Qe==null||Qe.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbedStruggleOutside'+_+'" role="messagesTabpanel">',Ye==null||Ye.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbedStruggleInside'+_+'" role="messagesTabpanel">',mt==null||mt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="digestMessagesOwner'+_+'" role="messagesTabpanel">',Tt==null||Tt.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="digestMessagesPrey'+_+'" role="messagesTabpanel">',Kn==null||Kn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbMessagesOwner'+_+'" role="messagesTabpanel">',Jn==null||Jn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="absorbMessagesPrey'+_+'" role="messagesTabpanel">',Xr==null||Xr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="unabsorbMessagesOwner'+_+'" role="messagesTabpanel">',wr==null||wr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="unabsorbMessagesPrey'+_+'" role="messagesTabpanel">',Rr==null||Rr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessages'+_+'" role="messagesTabpanel">',Br==null||Br.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessagesAbsorbed'+_+'" role="messagesTabpanel">',Kr==null||Kr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+="</div>",ne+="</div></div>",ne+="</div>",ne+="<details><summary>= Idle Messages =</summary><p>",ne+="<details><summary>Idle Messages (Hold):</summary><p>",En==null||En.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Hold Absorbed):</summary><p>",In==null||In.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Digest):</summary><p>",Gr==null||Gr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Absorb):</summary><p>",kn==null||kn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Unabsorb):</summary><p>",Fo==null||Fo.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Drain):</summary><p>",Pn==null||Pn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Heal):</summary><p>",On==null||On.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Size Steal):</summary><p>",Ln==null||Ln.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Shrink):</summary><p>",Yr==null||Yr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Grow):</summary><p>",bo==null||bo.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="<details><summary>Idle Messages (Encase In Egg):</summary><p>",qn==null||qn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</details></p><br>",ne+="</details></p><br>",ne+="<hr>",ne+='<div class="accordion" id="settingsAccordion'+_+'">',ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingOne">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseOne" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseOne">',ne+="<b>== Options ==</b><br>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseOne" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+'-headingOne">',ne+='<div class="accordion-body">',ne+='<ul class="list-group">',ne+='<li class="list-group-item">Can Taste: '+(V?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Feedable: '+(H?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Contaminates: '+(N?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Contamination Flavor: '+q+"</li>",ne+='<li class="list-group-item">Contamination Color: '+G+"</li>",ne+='<li class="list-group-item">Nutritional Gain: '+Q+"%</li>",ne+='<li class="list-group-item">Required Examine Size: '+F*100+"%</li>",ne+='<li class="list-group-item">Display Absorbed Examines: '+(Z?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",ne+='<li class="list-group-item">Save Digest Mode: '+(oe?'<span style="color: green;">True':'<span style="color: red;">False')+"</li>",ne+='<li class="list-group-item">Idle Emotes: '+(le?'<span style="color: green;">Active':'<span style="color: red;">Inactive')+"</li>",ne+='<li class="list-group-item">Idle Emote Delay: '+ue+" seconds</li>",ne+='<li class="list-group-item">Shrink/Grow Size: '+he*100+"%</li>",ne+='<li class="list-group-item">Vore Spawn Blacklist: '+(de?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Egg Type: '+ve+"</li>",ne+='<li class="list-group-item">Selective Mode Preference: '+be+"</li>",ne+="</ul>",ne+="</div></div></div>",ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingTwo">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseTwo" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseTwo">',ne+="<b>== Sounds ==</b><br>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseTwo" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+'-headingTwo">',ne+='<div class="accordion-body">',ne+='<ul class="list-group">',ne+='<li class="list-group-item">Fleshy Belly: '+(ui?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Internal Loop: '+(er?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Use Fancy Sounds: '+(yo?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Vore Sound: '+Qr+"</li>",ne+='<li class="list-group-item">Release Sound: '+Vo+"</li>",ne+="</ul>",ne+="</div></div></div>",ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingVisuals">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseVisuals" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseVisuals">',ne+="<b>== Visuals ==</b><br>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseVisuals" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+"-headingVisuals>",ne+='<div class="accordion-body">',ne+="<b>Vore Sprites</b>",ne+='<ul class="list-group">',ne+='<li class="list-group-item">Affect Vore Sprites: '+(mn?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Count Absorbed prey for vore sprites: '+(cr?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Animation when prey resist: '+(di?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+='<li class="list-group-item">Vore Sprite Size Factor: '+fi+"</li>",ne+='<li class="list-group-item">Belly Sprite to affect: '+Zt+"</li>",ne+="</ul>",ne+="<b>Belly Fullscreens Preview and Coloring</b>",ne+='<ul class="list-group">',ne+='<li class="list-group-item">Color: <span style="color: '+kr+';">'+kr+"</span>",ne+="</ul>",ne+="<b>Vore FX</b>",ne+='<ul class="list-group">',ne+='<li class="list-group-item">Disable Prey HUD: '+(dt?'<span style="color: green;">Yes':'<span style="color: red;">No')+"</li>",ne+="</ul>",ne+="</div></div></div>",ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingThree">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseThree" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseThree">',ne+="<b>== Interactions ==</b>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseThree" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+'-headingThree">',ne+='<div class="accordion-body">',ne+="<b>Belly Interactions ("+(qr?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",ne+='<ul class="list-group">',ne+='<li class="list-group-item">Escape Chance: '+Mn+"%</li>",ne+='<li class="list-group-item">Escape Chance: '+Vn+"%</li>",ne+='<li class="list-group-item">Escape Time: '+eo/10+"s</li>",ne+='<li class="list-group-item">Transfer Chance: '+ur+"%</li>",ne+='<li class="list-group-item">Transfer Location: '+Un+"</li>",ne+='<li class="list-group-item">Secondary Transfer Chance: '+en+"%</li>",ne+='<li class="list-group-item">Secondary Transfer Location: '+tr+"</li>",ne+='<li class="list-group-item">Absorb Chance: '+yr+"%</li>",ne+='<li class="list-group-item">Digest Chance: '+mi+"%</li>",ne+="</ul>",ne+="<hr>",ne+="<b>Auto-Transfer Options ("+(pi?'<span style="color: green;">Enabled':'<span style="color: red;">Disabled')+"</span>)</b>",ne+='<ul class="list-group">',ne+='<li class="list-group-item">Auto-Transfer Time: '+vi/10+"s</li>",ne+='<li class="list-group-item">Auto-Transfer Chance: '+nr+"%</li>",ne+='<li class="list-group-item">Auto-Transfer Location: '+Co+"</li>",ne+='<li class="list-group-item">Auto-Transfer Chance: '+to+"%</li>",ne+='<li class="list-group-item">Auto-Transfer Location: '+dr+"</li>",ne+='<li class="list-group-item">Auto-Transfer Min Amount: '+Eo+"</li>",ne+='<li class="list-group-item">Auto-Transfer Max Amount: '+Vt+"</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Chance: '+nr+"%</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Location: '+Co+"</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Whitelist (Mobs): '+l(Io,!0)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Whitelist (Items): '+l(re,!0)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Blacklist (Mobs): '+l(Hn,!1)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Primary Blacklist (Items): '+l(Fe,!1)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Chance: '+to+"%</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Location: '+dr+"</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Whitelist (Mobs): '+l(Lr,!0)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Whitelist (Items): '+l(Xo,!0)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Blacklist (Mobs): '+l(no,!1)+"</li>",ne+='<li class="list-group-item">Auto-Transfer Secondary Blacklist (Items): '+l(ro,!1)+"</li>",ne+="</ul>",ne+="</div></div></div>",ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingFour">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseFour" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseFour">',ne+="<b>== Liquid Options ("+(Tn?'<span style="color: green;">Liquids On':'<span style="color: red;">Liquids Off')+"</span>) ==</b>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseFour" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+'-headingFour">',ne+='<div class="accordion-body">',ne+='<ul class="list-group">',ne+='<li class="list-group-item">Generate Liquids: '+(fr?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",ne+='<li class="list-group-item">Liquid Type: '+Xn+"</li>",ne+='<li class="list-group-item">Liquid Name: '+_r+"</li>",ne+='<li class="list-group-item">Transfer Verb: '+Oo+"</li>",ne+='<li class="list-group-item">Generation Time: '+fn+"</li>",ne+='<li class="list-group-item">Liquid Capacity: '+Ui+"</li>",ne+='<li class="list-group-item">Slosh Sounds: '+(gi?'<span style="color: green;">On':'<span style="color: red;">Off')+"</li>",ne+='<li class="list-group-item">Liquid Addons: '+v(Gn)+"</li>",ne+="</ul>",ne+="</div></div></div>",ne+='<div class="accordion-item">',ne+='<h2 class="accordion-header" id="settingsAccordion'+_+'-headingFive">',ne+='<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#settingsAccordion'+_+'-collapseFive" aria-expanded="true" aria-controls="settingsAccordion'+_+'-collapseFive">',ne+="<b>== Liquid Messages ("+(Tn?'<span style="color: green;">Messages On':'<span style="color: red;">Messages Off')+"</span>) ==</b>",ne+="</button></h2>",ne+='<div id="settingsAccordion'+_+'-collapseFive" class="accordion-collapse collapse" aria-labelledby="settingsAccordion'+_+'-headingFive">',ne+='<div class="accordion-body">',ne+='<div role="liquidMessagesTabpanel">',ne+='<div class="row"><div class="col-4">',ne+='<div class="list-group" id="liquidMessagesList" role="messagesTablist">',ne+='<a class="list-group-item list-group-item-action active" data-bs-toggle="list" href="#examineMessage0_20'+_+'" role="tab">Examine Message (0 to 20%) ('+(so?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage20_40'+_+'" role="tab">Examine Message (20 to 40%) ('+(Cr?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage40_60'+_+'" role="tab">Examine Message (40 to 60%) ('+(mr?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage60_80'+_+'" role="tab">Examine Message (60 to 80%) ('+(cn?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",ne+='<a class="list-group-item list-group-item-action" data-bs-toggle="list" href="#examineMessage80_100'+_+'" role="tab">Examine Message (80 to 100%) ('+(Yo?'<span style="color: green;">On':'<span style="color: red;">Off')+"</span>)</a>",ne+="</div></div>",ne+='<div class="col-8">',ne+='<div class="tab-content">',ne+='<div class="tab-pane fade show active" id="examineMessage0_20'+_+'" role="liquidMessagesTabpanel">',xi==null||xi.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessage20_40'+_+'" role="liquidMessagesTabpanel">',vn==null||vn.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessage40_60'+_+'" role="liquidMessagesTabpanel">',Ur==null||Ur.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessage60_80'+_+'" role="liquidMessagesTabpanel">',Er==null||Er.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+='<div class="tab-pane fade" id="examineMessage80_100'+_+'" role="liquidMessagesTabpanel">',rr==null||rr.forEach(function(ze){ne+=ze+"<br>"}),ne+="</div>",ne+="</div>",ne+="</div></div>",ne+="</div>",ne+="</div></div></div>",ne+="</div></div></div>",ne},u=function(){var p=new Date,_=String(p.getHours());_.length<2&&(_="0"+_);var E=String(p.getMinutes());E.length<2&&(E="0"+E);var I=String(p.getDate());I.length<2&&(I="0"+I);var O=String(p.getMonth()+1);O.length<2&&(O="0"+O);var M=String(p.getFullYear());return" "+M+"-"+O+"-"+I+" ("+_+" "+E+")"},h=function(p){var _=(0,a.Oc)(),E=_.act,I=_.data,O=I.db_version,M=I.db_repo,D=I.mob_name,A=I.bellies,B=u(),U=D+B+p,L;if(p===".html"){var k="<style></style>";L=new Blob(['<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>'+A.length+" Exported Bellies (DB_VER: "+M+"-"+O+')</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">'+k+'</head><body class="py-4"><main><div class="container"><h2>Bellies of '+D+'</h2><p class="lead">Generated on: '+B+'</p><div class="accordion" id="accordionBellies">'],{type:"text/html;charset=utf8"}),A.forEach(function(Y,V){L=new Blob([L,c(Y,V)],{type:"text/html;charset=utf8"})}),L=new Blob([L,"</div>",'<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"><\/script>',"</div></main></body></html>"],{type:"text/html;charset=utf8"})}p===".vrdb"&&(L=new Blob([JSON.stringify(A)],{type:"application/json"})),window.navigator.msSaveOrOpenBlob(L,U)},x=function(){return(0,e.jsx)(r.p8,{width:790,height:560,theme:"abstract",children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(j,{})})})},j=function(p){var _=(0,a.Oc)(),E=_.act,I=_.data,O=I.bellies;return(0,e.jsx)(n.wn,{title:"Vore Export Panel",children:(0,e.jsxs)(n.wn,{title:"Export",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"file-alt",onClick:function(){return h(".html")},children:"Export (HTML)"}),(0,e.jsx)(n.$n,{fluid:!0,icon:"file-alt",onClick:function(){return h(".vrdb")},children:"Export (VRDB)"})]})})}},10652:function(S,y,t){"use strict";t.r(y),t.d(y,{Scrubber:function(){return m},Vent:function(){return o}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=function(b){var g=b.vent,d=(0,n.Oc)().act,f=g.id_tag,v=g.long_name,l=g.power,c=g.checks,u=g.excheck,h=g.incheck,x=g.direction,j=g.external,p=g.internal,_=g.extdefault,E=g.intdefault;return(0,e.jsx)(r.wn,{level:2,title:(0,a.jT)(v),buttons:(0,e.jsx)(r.$n,{icon:l?"power-off":"times",selected:l,content:l?"On":"Off",onClick:function(){return d("power",{id_tag:f,val:+!l})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mode",children:(0,e.jsx)(r.$n,{icon:"sign-in-alt",content:x!=="siphon"?"Pressurizing":"Siphoning",color:x==="siphon"&&"danger",onClick:function(){return d("direction",{id_tag:f,val:+(x==="siphon")})}})}),(0,e.jsxs)(r.Ki.Item,{label:"Pressure Regulator",children:[(0,e.jsx)(r.$n,{icon:"sign-in-alt",content:"Internal",selected:h,onClick:function(){return d("incheck",{id_tag:f,val:c})}}),(0,e.jsx)(r.$n,{icon:"sign-out-alt",content:"External",selected:u,onClick:function(){return d("excheck",{id_tag:f,val:c})}})]}),!!h&&(0,e.jsxs)(r.Ki.Item,{label:"Internal Target",children:[(0,e.jsx)(r.Q7,{value:Math.round(p),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(I,O){return d("set_internal_pressure",{id_tag:f,value:O})}}),(0,e.jsx)(r.$n,{icon:"undo",disabled:E,content:"Reset",onClick:function(){return d("reset_internal_pressure",{id_tag:f})}})]}),!!u&&(0,e.jsxs)(r.Ki.Item,{label:"External Target",children:[(0,e.jsx)(r.Q7,{value:Math.round(j),unit:"kPa",width:"75px",minValue:0,step:10,maxValue:5066,onChange:function(I,O){return d("set_external_pressure",{id_tag:f,value:O})}}),(0,e.jsx)(r.$n,{icon:"undo",disabled:_,content:"Reset",onClick:function(){return d("reset_external_pressure",{id_tag:f})}})]})]})})},m=function(b){var g=b.scrubber,d=(0,n.Oc)().act,f=g.long_name,v=g.power,l=g.scrubbing,c=g.id_tag,u=g.widenet,h=g.filters;return(0,e.jsx)(r.wn,{level:2,title:(0,a.jT)(f),buttons:(0,e.jsx)(r.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,onClick:function(){return d("power",{id_tag:c,val:+!v})}}),children:(0,e.jsxs)(r.Ki,{children:[(0,e.jsx)(r.Ki.Item,{label:"Mode",children:(0,e.jsx)(r.$n,{icon:l?"filter":"sign-in-alt",color:l||"danger",content:l?"Scrubbing":"Siphoning",onClick:function(){return d("scrubbing",{id_tag:c,val:+!l})}})}),(0,e.jsx)(r.Ki.Item,{label:"Filters",children:l&&h.map(function(x){return(0,e.jsx)(r.$n,{icon:x.val?"check-square-o":"square-o",content:x.name,title:x.name,selected:x.val,onClick:function(){return d(x.command,{id_tag:c,val:!x.val})}},x.name)})||"N/A"})]})})}},62386:function(S,y,t){"use strict";t.r(y),t.d(y,{BeakerContents:function(){return r}});var e=t(88095),a=t(92514),n=function(o){return o+" unit"+(o===1?"":"s")},r=function(o){var m=o.beakerLoaded,b=o.beakerContents,g=b===void 0?[]:b,d=o.buttons;return(0,e.jsxs)(a.az,{children:[!m&&(0,e.jsx)(a.az,{color:"label",children:"No beaker loaded."})||g.length===0&&(0,e.jsx)(a.az,{color:"label",children:"Beaker is empty."}),g.map(function(f,v){return(0,e.jsx)(a.az,{width:"100%",children:(0,e.jsxs)(a.so,{align:"center",justify:"space-between",children:[(0,e.jsxs)(a.so.Item,{color:"label",children:[n(f.volume)," of ",f.name]}),!!d&&(0,e.jsx)(a.so.Item,{children:d(f,v)})]})},f.name)})]})}},5425:function(S,y,t){"use strict";t.r(y),t.d(y,{ComplexModal:function(){return d},modalOpen:function(){return o},modalRegisterBodyOverride:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r={},o=function(f,v){var l=(0,a.Oc)(),c=l.act,u=l.data,h=Object.assign(u.modal?u.modal.args:{},v||{});c("modal_open",{id:f,arguments:JSON.stringify(h)})},m=function(f,v){r[f]=v},b=function(f,v,l){var c=(0,a.Oc)(),u=c.act,h=c.data;if(h.modal){var x=Object.assign(h.modal.args||{},l||{});u("modal_answer",{id:f,answer:v,arguments:JSON.stringify(x)})}},g=function(f){var v=(0,a.Oc)().act;v("modal_close",{id:f})},d=function(f){var v=(0,a.Oc)().data;if(v.modal){var l=v.modal,c=l.id,u=l.text,h=l.type,x,j,p=(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return g()}});if(r[c])j=r[c](v.modal);else if(h==="input"){var _=v.modal.value;x=function(I){return b(c,_)},j=(0,e.jsx)(n.pd,{value:v.modal.value,placeholder:"ENTER to submit",width:"100%",my:"0.5rem",autoFocus:!0,autoSelect:!0,onChange:function(I,O){_=O}}),p=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"arrow-left",content:"Cancel",color:"grey",onClick:function(){return g()}}),(0,e.jsx)(n.$n,{icon:"check",content:"Confirm",color:"good",float:"right",m:"0",onClick:function(){return b(c,_)}}),(0,e.jsx)(n.az,{clear:"both"})]})}else if(h==="choice"){var E=typeof v.modal.choices=="object"?Object.values(v.modal.choices):v.modal.choices;j=(0,e.jsx)(n.ms,{options:E,selected:v.modal.value,width:"100%",my:"0.5rem",onSelected:function(I){return b(c,I)}})}else h==="bento"?j=(0,e.jsx)(n.so,{spacingPrecise:"1",wrap:"wrap",my:"0.5rem",maxHeight:"1%",children:v.modal.choices.map(function(I,O){return(0,e.jsx)(n.so.Item,{flex:"1 1 auto",children:(0,e.jsx)(n.$n,{selected:O+1===parseInt(v.modal.value,10),onClick:function(){return b(c,O+1)},children:(0,e.jsx)("img",{src:I})})},O)})}):h==="boolean"&&(p=(0,e.jsxs)(n.az,{mt:"0.5rem",children:[(0,e.jsx)(n.$n,{icon:"times",content:v.modal.no_text,color:"bad",float:"left",mb:"0",onClick:function(){return b(c,0)}}),(0,e.jsx)(n.$n,{icon:"check",content:v.modal.yes_text,color:"good",float:"right",m:"0",onClick:function(){return b(c,1)}}),(0,e.jsx)(n.az,{clear:"both"})]}));return(0,e.jsxs)(n.aF,{maxWidth:f.maxWidth||window.innerWidth/2+"px",maxHeight:f.maxHeight||window.innerHeight/2+"px",onEnter:x,mx:"auto",children:[(0,e.jsx)(n.az,{inline:!0,children:u}),j,p]})}}},13221:function(S,y,t){"use strict";t.r(y),t.d(y,{FullscreenNotice:function(){return n}});var e=t(88095),a=t(92514),n=function(r){var o=r.children,m=r.title,b=m===void 0?"Welcome":m;return(0,e.jsx)(a.wn,{title:b,height:"100%",fill:!0,children:(0,e.jsx)(a.so,{height:"100%",align:"center",justify:"center",children:(0,e.jsx)(a.so.Item,{textAlign:"center",mt:"-2rem",children:o})})})}},12035:function(S,y,t){"use strict";t.r(y),t.d(y,{InputButtons:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.large_buttons,f=g.swapped_buttons,v=o.input,l=o.message,c=(0,e.jsx)(n.$n,{color:"good",fluid:!!d,height:!!d&&2,onClick:function(){return b("submit",{entry:v})},m:.5,pl:2,pr:2,pt:d?.33:0,textAlign:"center",tooltip:d&&l,width:!d&&6,children:d?"SUBMIT":"Submit"}),u=(0,e.jsx)(n.$n,{color:"bad",fluid:!!d,height:!!d&&2,onClick:function(){return b("cancel")},m:.5,pl:2,pr:2,pt:d?.33:0,textAlign:"center",width:!d&&6,children:d?"CANCEL":"Cancel"});return(0,e.jsxs)(n.so,{align:"center",direction:f?"row-reverse":"row",fill:!0,justify:"space-around",children:[d?(0,e.jsx)(n.so.Item,{grow:!0,children:u}):(0,e.jsx)(n.so.Item,{children:u}),!d&&l&&(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.az,{color:"label",textAlign:"center",children:l})}),d?(0,e.jsx)(n.so.Item,{grow:!0,children:c}):(0,e.jsx)(n.so.Item,{children:c})]})}},15665:function(S,y,t){"use strict";t.r(y),t.d(y,{InterfaceLockNoticeBox:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=o.siliconUser,f=d===void 0?g.siliconUser:d,v=o.locked,l=v===void 0?g.locked:v,c=o.normallyLocked,u=c===void 0?g.normallyLocked:c,h=o.onLockStatusChange,x=h===void 0?function(){return b("lock")}:h,j=o.accessText,p=j===void 0?"an ID card":j,_=o.deny,E=_===void 0?!1:_,I=o.denialMessage,O=I===void 0?"Error.":I;return E?O:f?(0,e.jsx)(n.IC,{color:f&&"grey",children:(0,e.jsxs)(n.so,{align:"center",children:[(0,e.jsx)(n.so.Item,{children:"Interface lock status:"}),(0,e.jsx)(n.so.Item,{grow:"1"}),(0,e.jsx)(n.so.Item,{children:(0,e.jsx)(n.$n,{m:"0",color:u?"red":"green",icon:u?"lock":"unlock",content:u?"Locked":"Unlocked",onClick:function(){x&&x(!l)}})})]})}):(0,e.jsxs)(n.IC,{children:["Swipe ",p," to ",l?"unlock":"lock"," this interface."]})}},18513:function(S,y,t){"use strict";t.r(y),t.d(y,{Loader:function(){return r}});var e=t(88095),a=t(5229),n=t(92514),r=function(o){var m=o.value;return(0,e.jsx)("div",{className:"AlertModal__Loader",children:(0,e.jsx)(n.az,{className:"AlertModal__LoaderProgress",style:{width:(0,a.J$)(m)*100+"%"}})})}},71451:function(S,y,t){"use strict";t.r(y),t.d(y,{LoginInfo:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.authenticated,f=g.rank;if(g)return(0,e.jsxs)(n.IC,{info:!0,children:[(0,e.jsxs)(n.az,{display:"inline-block",verticalAlign:"middle",children:["Logged in as: ",d," (",f,")"]}),(0,e.jsx)(n.$n,{icon:"sign-out-alt",content:"Logout and Eject ID",color:"good",float:"right",onClick:function(){return b("logout")}}),(0,e.jsx)(n.az,{clear:"both"})]})}},1887:function(S,y,t){"use strict";t.r(y),t.d(y,{LoginScreen:function(){return o},SpecialMachineInteraction:function(){return m}});var e=t(88095),a=t(4413),n=t(92514),r=t(13221),o=function(b){var g=(0,a.Oc)(),d=g.act,f=g.data,v=f.scan,l=f.isAI,c=f.isRobot,u=b.machineType;return(0,e.jsxs)(r.FullscreenNotice,{title:"Welcome",children:[(0,e.jsxs)(n.az,{fontSize:"1.5rem",bold:!0,children:[(0,e.jsx)(n.In,{name:"user-circle",verticalAlign:"middle",size:3,mr:"1rem"}),"Guest"]}),(0,e.jsxs)(n.az,{color:"label",my:"1rem",children:["ID:",(0,e.jsx)(n.$n,{icon:"id-card",content:v||"----------",ml:"0.5rem",onClick:function(){return d("scan")}})]}),(0,e.jsx)(n.$n,{icon:"sign-in-alt",disabled:!v,content:"Login",onClick:function(){return d("login",{login_type:1})}}),!!l&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",content:"Login as AI",onClick:function(){return d("login",{login_type:2})}}),!!c&&(0,e.jsx)(n.$n,{icon:"sign-in-alt",content:"Login as Cyborg",onClick:function(){return d("login",{login_type:3})}}),(0,e.jsx)(n.az,{children:(0,e.jsx)(m,{specialType:u})})]})},m=function(b){var g=(0,a.Oc)().act,d=b.specialType;if(d){if(d==="Fax")return(0,e.jsx)(n.$n,{position:"relative",content:"Send Automated Fax Request",bottom:"152px",left:"188px",icon:"share-square",onClick:function(){return g("send_automated_staff_request")},tooltip:"Automated Fax Requests do not require staff to post on discord, but won't ping the related roles."})}else return null}},4418:function(S,y,t){"use strict";t.r(y),t.d(y,{MiningUser:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=o.insertIdText,f=g.has_id,v=g.id;return(0,e.jsx)(n.IC,{success:f,children:f?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{display:"inline-block",verticalAlign:"middle",style:{float:"left"},children:["Logged in as ",v.name,".",(0,e.jsx)("br",{}),"You have ",v.points.toLocaleString("en-US")," points."]}),(0,e.jsx)(n.$n,{icon:"eject",content:"Eject ID",style:{float:"right"},onClick:function(){return b("logoff")}}),(0,e.jsx)(n.az,{style:{clear:"both"}})]}):d})}},7240:function(S,y,t){"use strict";t.r(y),t.d(y,{OvermapFlightData:function(){return r},OvermapPanControls:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=m.disableLimiterControls,v=d.ETAnext,l=d.speed,c=d.speed_color,u=d.accel,h=d.heading,x=d.accellimit;return(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"ETA To Next Grid",children:v}),(0,e.jsxs)(n.Ki.Item,{label:"Speed",color:c,children:[l," Gm/h"]}),(0,e.jsxs)(n.Ki.Item,{label:"Acceleration",children:[u," Gm/h"]}),(0,e.jsxs)(n.Ki.Item,{label:"Heading",children:[h,"\xB0"]}),!f&&(0,e.jsx)(n.Ki.Item,{label:"Acceleration Limiter",children:(0,e.jsxs)(n.$n,{onClick:function(){return g("accellimit")},children:[x," Gm/h"]})})||null]})},o=function(m){var b=(0,a.Oc)().act,g=m.disabled,d=m.actToDo,f=m.selected,v=f===void 0?function(l){return!1}:f;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:g,selected:v(9),onClick:function(){return b(d,{dir:9})},icon:"arrow-up",iconRotation:-45}),(0,e.jsx)(n.$n,{disabled:g,selected:v(1),onClick:function(){return b(d,{dir:1})},icon:"arrow-up"}),(0,e.jsx)(n.$n,{disabled:g,selected:v(5),onClick:function(){return b(d,{dir:5})},icon:"arrow-up",iconRotation:45})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:g,selected:v(8),onClick:function(){return b(d,{dir:8})},icon:"arrow-left"}),(0,e.jsx)(n.$n,{disabled:g,selected:v(0),onClick:function(){return b("brake")},icon:"ban"}),(0,e.jsx)(n.$n,{disabled:g,selected:v(4),onClick:function(){return b(d,{dir:4})},icon:"arrow-right"})]}),(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.$n,{disabled:g,selected:v(10),onClick:function(){return b(d,{dir:10})},icon:"arrow-down",iconRotation:45}),(0,e.jsx)(n.$n,{disabled:g,selected:v(2),onClick:function(){return b(d,{dir:2})},icon:"arrow-down"}),(0,e.jsx)(n.$n,{disabled:g,selected:v(6),onClick:function(){return b(d,{dir:6})},icon:"arrow-down",iconRotation:-45})]})]})}},62681:function(S,y,t){"use strict";t.r(y),t.d(y,{PortableBasicInfo:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.connected,f=g.holding,v=g.on,l=g.pressure,c=g.powerDraw,u=g.cellCharge,h=g.cellMaxCharge;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Status",buttons:(0,e.jsx)(n.$n,{icon:v?"power-off":"times",content:v?"On":"Off",selected:v,onClick:function(){return b("power")}}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(n.zv,{value:l})," kPa"]}),(0,e.jsx)(n.Ki.Item,{label:"Port",color:d?"good":"average",children:d?"Connected":"Not Connected"}),(0,e.jsxs)(n.Ki.Item,{label:"Load",children:[c," W"]}),(0,e.jsx)(n.Ki.Item,{label:"Cell Charge",children:(0,e.jsxs)(n.z2,{value:u,minValue:0,maxValue:h,ranges:{good:[h*.5,1/0],average:[h*.25,h*.5],bad:[-1/0,h*.25]},children:[u," W"]})})]})}),(0,e.jsx)(n.wn,{title:"Holding Tank",minHeight:"82px",buttons:(0,e.jsx)(n.$n,{icon:"eject",content:"Eject",disabled:!f,onClick:function(){return b("eject")}}),children:f?(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Label",children:f.name}),(0,e.jsxs)(n.Ki.Item,{label:"Pressure",children:[(0,e.jsx)(n.zv,{value:f.pressure})," kPa"]})]}):(0,e.jsx)(n.az,{color:"average",children:"No holding tank"})})]})}},89863:function(S,y,t){"use strict";t.r(y),t.d(y,{RankIcon:function(){return r}});var e=t(88095),a=t(92514),n={"Colony Director":"user-tie","Site Manager":"user-tie",Overseer:"user-tie","Head of Personnel":"briefcase","Crew Resources Officer":"briefcase","Deputy Director":"briefcase","Command Secretary":"user-tie","Head of Security":"user-shield","Security Commander":"user-shield","Chief of Security":"user-shield",Warden:["city","shield-alt"],Detective:"search","Forensic Technician":"search","Security Officer":"user-shield","Junior Officer":"user-shield","Chief Engineer":"toolbox","Atmospheric Technician":"wind","Station Engineer":"toolbox","Maintenance Technician":"wrench","Engine Technician":"toolbox",Electrician:"toolbox","Chief Medical Officer":"user-md",Chemist:"mortar-pestle",Pharmacist:"mortar-pestle","Medical Doctor":"user-md",Surgeon:"user-md","Emergency Physician":"user-md",Nurse:"user-md",Virologist:"disease",Paramedic:"ambulance","Emergency Medical Technician":"ambulance",Psychiatrist:"couch",Psychologist:"couch","Research Director":"user-graduate","Research Supervisor":"user-graduate",Roboticist:"robot","Biomechanical Engineer":["wrench","heartbeat"],"Mechatronic Engineer":"wrench",Scientist:"flask",Xenoarchaeologist:"flask",Anomalist:"flask","Phoron Researcher":"flask","Circuit Designer":"car-battery",Xenobiologist:"meteor",Xenobotanist:["biohazard","seedling"],Quartermaster:"box-open","Supply Chief":"warehouse","Cargo Technician":"box-open","Shaft Miner":"hard-hat","Drill Technician":"hard-hat",Pathfinder:"binoculars",Explorer:"user-astronaut","Field Medic":["user-md","user-astronaut"],Pilot:"space-shuttle",Bartender:"glass-martini",Barista:"coffee",Botanist:"leaf",Gardener:"leaf",Chaplain:"place-of-worship",Counselor:"couch",Chef:"utensils",Cook:"utensils",Entertainer:"smile-beam",Performer:"smile-beam",Musician:"guitar",Stagehand:"smile-beam",Intern:"school","Apprentice Engineer":["school","wrench"],"Medical Intern":["school","user-md"],"Lab Assistant":["school","flask"],"Security Cadet":["school","shield-alt"],"Jr. Cargo Tech":["school","box"],"Jr. Explorer":["school","user-astronaut"],Server:["school","utensils"],"Internal Affairs Agent":"balance-scale",Janitor:"broom",Custodian:"broom","Sanitation Technician":"hand-sparkles",Maid:"broom",Librarian:"book",Journalist:"newspaper",Writer:"book",Historian:"chalkboard-teacher",Professor:"chalkboard-teacher",Visitor:"user","Emergency Responder":"fighter-jet"},r=function(o){var m=o.rank,b=o.color,g=b===void 0?"label":b,d=n[m];return typeof d=="string"?(0,e.jsx)(a.In,{inline:!0,color:g,name:d,size:2}):Array.isArray(d)?d.map(function(f){return(0,e.jsx)(a.In,{inline:!0,color:g,name:f,size:2},f)}):(0,e.jsx)(a.In,{inline:!0,color:g,name:"user",size:2})}},82489:function(S,y,t){"use strict";t.r(y),t.d(y,{TemporaryNotice:function(){return m}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514);function o(){return o=Object.assign||function(b){for(var g=1;g<arguments.length;g++){var d=arguments[g];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(b[f]=d[f])}return b},o.apply(this,arguments)}var m=function(b){var g=b.decode,d=(0,n.Oc)(),f=d.act,v=d.data,l=v.temp;if(l){var c,u=(c={},c[l.style]=!0,c);return(0,e.jsxs)(r.IC,o({},u,{children:[(0,e.jsx)(r.az,{display:"inline-block",verticalAlign:"middle",children:g?(0,a.jT)(l.text):l.text}),(0,e.jsx)(r.$n,{icon:"times-circle",float:"right",onClick:function(){return f("cleartemp")}}),(0,e.jsx)(r.az,{clear:"both"})]}))}}},12578:function(S,y,t){"use strict";t.r(y),t.d(y,{pAIAtmos:function(){return g}});var e=t(88095),a=t(11358),n=t(33854),r=t(4413),o=t(92514),m=t(84905),b=function(d,f,v,l,c){return d<f?"bad":d<v||d>l?"average":d>c?"bad":"good"},g=function(d){var f=(0,r.Oc)(),v=f.act,l=f.data,c=l.aircontents;return(0,e.jsx)(m.p8,{width:450,height:600,children:(0,e.jsx)(m.p8.Content,{scrollable:!0,children:(0,e.jsx)(o.wn,{children:(0,e.jsx)(o.Ki,{children:(0,a.pb)(function(u){return u.val!=="0"||u.entry==="Pressure"||u.entry==="Temperature"})(c).map(function(u){return(0,e.jsxs)(o.Ki.Item,{label:u.entry,color:b(u.val,u.bad_low,u.poor_low,u.poor_high,u.bad_high),children:[u.val,(0,n.jT)(u.units)]},u.entry)})})})})})}},41534:function(S,y,t){"use strict";t.r(y),t.d(y,{pAIDirectives:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.master,v=d.dna,l=d.prime,c=d.supplemental;return(0,e.jsx)(r.p8,{width:450,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Master",children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Master",children:f&&(0,e.jsxs)(n.az,{children:[f," (",v,")",(0,e.jsx)(n.$n,{icon:"syringe",content:"Request Sample",onClick:function(){return g("getdna")}})]})||(0,e.jsx)(n.az,{children:"None"})})})}),(0,e.jsxs)(n.wn,{title:"Directives",children:[(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Prime Directive",children:l}),(0,e.jsx)(n.Ki.Item,{label:"Supplemental Directive(s)",children:c||"None"})]}),(0,e.jsx)(n.az,{mt:1,italic:!0,children:'Recall, personality, that you are a complex piece of software with tremendous social skills. Unlike station AI models, you are focused entirely on sapient-software interfacing. 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 should strive to be seen as the ideal, unwavering digital companion that you are.'}),(0,e.jsx)(n.az,{mt:1,bold:!0,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."})]})]})})}},81815:function(S,y,t){"use strict";t.r(y),t.d(y,{pAIDoorjack:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.cable,v=d.machine,l=d.inprogress,c=d.progress_a,u=d.progress_b,h=d.aborted;return(0,e.jsx)(r.p8,{width:300,height:150,children:(0,e.jsx)(r.p8.Content,{scrollable:!0,children:(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Cable",children:v&&(0,e.jsx)(n.az,{color:"good",children:"Connected"})||f&&(0,e.jsx)(n.az,{color:"average",children:"Extended"})||(0,e.jsx)(n.az,{children:(0,e.jsx)(n.$n,{icon:"ethernet",content:"Retracted",onClick:function(){return g("cable")}})})}),!!v&&(0,e.jsx)(n.Ki.Item,{label:"Hack",children:l&&(0,e.jsxs)(n.az,{children:[(0,e.jsxs)(n.z2,{value:c,maxValue:100,ranges:{good:[67,1/0],average:[33,67],bad:[-1/0,33]},children:[(0,e.jsx)(n.zv,{value:c}),".",(0,e.jsx)(n.zv,{value:u}),"%"]}),(0,e.jsx)(n.$n,{icon:"ban",color:"bad",onClick:function(){return g("cancel")}})]})||(0,e.jsx)(n.$n,{icon:"virus",content:"Start",onClick:function(){return g("jack")}})})||!!h&&(0,e.jsx)(n.Ki.Item,{color:"bad",mt:1,children:"Hack aborted."})]})})})})}},73483:function(S,y,t){"use strict";t.r(y),t.d(y,{pAIInterface:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.bought,v=d.not_bought,l=d.available_ram,c=d.emotions,u=d.current_emotion;return(0,e.jsx)(r.p8,{width:450,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{title:"Emotion",children:c.map(function(h){return(0,e.jsx)(n.$n,{content:h.name,selected:h.id===u,onClick:function(){return g("image",{image:h.id})}},h.id)})}),(0,e.jsx)(n.wn,{title:"Software (Available RAM: "+l+")",children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Installed",children:f.map(function(h){return(0,e.jsx)(n.$n,{content:h.name,selected:h.on,onClick:function(){return g("software",{software:h.id})}},h.id)})}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Downloadable",children:v.map(function(h){return(0,e.jsx)(n.$n,{content:h.name+" ("+h.ram+")",disabled:h.ram>l,onClick:function(){return g("purchase",{purchase:h.id})}},h.id)})})]})})]})})}},90474:function(S,y,t){"use strict";t.r(y),t.d(y,{pAIMedrecords:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.records,v=d.general,l=d.medical,c=d.could_not_find;return(0,e.jsx)(r.p8,{width:450,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:f.map(function(u){return(0,e.jsx)(n.$n,{content:u.name,onClick:function(){return g("select",{select:u.ref})}},u.ref)})}),(v||l)&&(0,e.jsxs)(n.wn,{title:"Selected Record",children:[!!c&&(0,e.jsx)(n.az,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:v.name}),(0,e.jsx)(n.Ki.Item,{label:"Record ID",children:v.id}),(0,e.jsx)(n.Ki.Item,{label:"Entity Classification",children:v.brain_type}),(0,e.jsx)(n.Ki.Item,{label:"Sex",children:v.sex}),(0,e.jsx)(n.Ki.Item,{label:"Species",children:v.species}),(0,e.jsx)(n.Ki.Item,{label:"Age",children:v.age}),(0,e.jsx)(n.Ki.Item,{label:"Rank",children:v.rank}),(0,e.jsx)(n.Ki.Item,{label:"Fingerprint",children:v.fingerprint}),(0,e.jsx)(n.Ki.Item,{label:"Physical Status",children:v.p_stat}),(0,e.jsx)(n.Ki.Item,{label:"Mental Status",children:v.m_stat}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Blood Type",children:l.b_type}),(0,e.jsxs)(n.Ki.Item,{label:"Minor Disabilities",children:[(0,e.jsx)(n.az,{children:l.mi_dis}),(0,e.jsx)(n.az,{children:l.mi_dis_d})]}),(0,e.jsxs)(n.Ki.Item,{label:"Major Disabilities",children:[(0,e.jsx)(n.az,{children:l.ma_dis}),(0,e.jsx)(n.az,{children:l.ma_dis_d})]}),(0,e.jsxs)(n.Ki.Item,{label:"Allergies",children:[(0,e.jsx)(n.az,{children:l.alg}),(0,e.jsx)(n.az,{children:l.alg_d})]}),(0,e.jsxs)(n.Ki.Item,{label:"Current Diseases",children:[(0,e.jsx)(n.az,{children:l.cdi}),(0,e.jsx)(n.az,{children:l.cdi_d})]}),(0,e.jsx)(n.Ki.Item,{label:"Important Notes",children:l.notes})]})]})]})})}},20165:function(S,y,t){"use strict";t.r(y),t.d(y,{pAISecrecords:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data,f=d.records,v=d.general,l=d.security,c=d.could_not_find;return(0,e.jsx)(r.p8,{width:450,height:600,children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[(0,e.jsx)(n.wn,{children:f.map(function(u){return(0,e.jsx)(n.$n,{content:u.name,onClick:function(){return g("select",{select:u.ref})}},u.ref)})}),(v||l)&&(0,e.jsxs)(n.wn,{title:"Selected Record",children:[!!c&&(0,e.jsx)(n.az,{color:"bad",children:"Warning: Failed to find some records. The information below may not be complete."}),(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:v.name}),(0,e.jsx)(n.Ki.Item,{label:"Record ID",children:v.id}),(0,e.jsx)(n.Ki.Item,{label:"Entity Classification",children:v.brain_type}),(0,e.jsx)(n.Ki.Item,{label:"Sex",children:v.sex}),(0,e.jsx)(n.Ki.Item,{label:"Species",children:v.species}),(0,e.jsx)(n.Ki.Item,{label:"Age",children:v.age}),(0,e.jsx)(n.Ki.Item,{label:"Rank",children:v.rank}),(0,e.jsx)(n.Ki.Item,{label:"Fingerprint",children:v.fingerprint}),(0,e.jsx)(n.Ki.Item,{label:"Physical Status",children:v.p_stat}),(0,e.jsx)(n.Ki.Item,{label:"Mental Status",children:v.m_stat}),(0,e.jsx)(n.Ki.Divider,{}),(0,e.jsx)(n.Ki.Item,{label:"Criminal Status",children:(0,e.jsx)(n.az,{children:l.criminal})}),(0,e.jsxs)(n.Ki.Item,{label:"Minor Crimes",children:[(0,e.jsx)(n.az,{children:l.mi_crim}),(0,e.jsx)(n.az,{children:l.mi_crim_d})]}),(0,e.jsxs)(n.Ki.Item,{label:"Major Crimes",children:[(0,e.jsx)(n.az,{children:l.ma_crim}),(0,e.jsx)(n.az,{children:l.ma_crim_d})]}),(0,e.jsx)(n.Ki.Item,{label:"Important Notes",children:l.notes})]})]})]})})}},63860:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_atmos_scan:function(){return b}});var e=t(88095),a=t(11358),n=t(33854),r=t(4413),o=t(92514),m=function(g,d,f,v,l){return g<d?"bad":g<f||g>v?"average":g>l?"bad":"good"},b=function(g){var d=(0,r.Oc)(),f=d.act,v=d.data,l=v.aircontents;return(0,e.jsx)(o.az,{children:(0,e.jsx)(o.Ki,{children:(0,a.pb)(function(c){return c.val!=="0"||c.entry==="Pressure"||c.entry==="Temperature"})(l).map(function(c){return(0,e.jsxs)(o.Ki.Item,{label:c.entry,color:m(c.val,c.bad_low,c.poor_low,c.poor_high,c.bad_high),children:[c.val,(0,n.jT)(c.units)]},c.entry)})})})}},27791:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_janitor:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.janitor;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Current Location",children:d.user_loc.x===0&&(0,e.jsx)(n.az,{color:"bad",children:"Unknown"})||(0,e.jsxs)(n.az,{children:[d.user_loc.x," / ",d.user_loc.y]})})}),(0,e.jsx)(n.wn,{level:2,title:"Mop Locations",children:d.mops&&(0,e.jsx)("ul",{children:d.mops.map(function(f,v){return(0,e.jsxs)("li",{children:[f.x," / ",f.y," - ",f.dir," - Status: ",f.status]},v)})})||(0,e.jsx)(n.az,{color:"bad",children:"No mops detected nearby."})}),(0,e.jsx)(n.wn,{level:2,title:"Mop Bucket Locations",children:d.buckets&&(0,e.jsx)("ul",{children:d.buckets.map(function(f,v){return(0,e.jsxs)("li",{children:[f.x," / ",f.y," - ",f.dir," - Capacity:"," ",f.volume,"/",f.max_volume]},v)})})||(0,e.jsx)(n.az,{color:"bad",children:"No buckets detected nearby."})}),(0,e.jsx)(n.wn,{level:2,title:"Cleanbot Locations",children:d.cleanbots&&(0,e.jsx)("ul",{children:d.cleanbots.map(function(f,v){return(0,e.jsxs)("li",{children:[f.x," / ",f.y," - ",f.dir," - Status:"," ",f.status]},v)})})||(0,e.jsx)(n.az,{color:"bad",children:"No cleanbots detected nearby."})}),(0,e.jsx)(n.wn,{level:2,title:"Janitorial Cart Locations",children:d.carts&&(0,e.jsx)("ul",{children:d.carts.map(function(f,v){return(0,e.jsxs)("li",{children:[f.x," / ",f.y," - ",f.dir," - Water Level: ",f.volume,"/",f.max_volume]},v)})})||(0,e.jsx)(n.az,{color:"bad",children:"No janitorial carts detected nearby."})})]})}},20167:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_main_menu:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.owner,f=g.ownjob,v=g.idInserted,l=g.categories,c=g.pai,u=g.notifying;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Owner",color:"average",children:[d,", ",f]}),(0,e.jsx)(n.Ki.Item,{label:"ID",children:(0,e.jsx)(n.$n,{icon:"sync",content:"Update PDA Info",disabled:!v,onClick:function(){return b("UpdateInfo")}})})]})}),(0,e.jsx)(n.wn,{level:2,title:"Functions",children:(0,e.jsx)(n.Ki,{children:l.map(function(h){var x=g.apps[h];return!x||!x.length?null:(0,e.jsx)(n.Ki.Item,{label:h,children:x.map(function(j){return(0,e.jsx)(n.$n,{icon:j.ref in u?j.notify_icon:j.icon,iconSpin:j.ref in u,color:j.ref in u?"red":"transparent",content:j.name,onClick:function(){return b("StartProgram",{program:j.ref})}},j.ref)})},h)})})}),!!c&&(0,e.jsxs)(n.wn,{level:2,title:"pAI",children:[(0,e.jsx)(n.$n,{fluid:!0,icon:"cog",content:"Configuration",onClick:function(){return b("pai",{option:1})}}),(0,e.jsx)(n.$n,{fluid:!0,icon:"eject",content:"Eject pAI",onClick:function(){return b("pai",{option:2})}})]})]})}},59801:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_manifest:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(41608),o=function(m){var b=(0,a.Oc)(),g=b.act,d=b.data;return(0,e.jsx)(n.az,{color:"white",children:(0,e.jsx)(r.CrewManifestContent,{})})}},78257:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_medical:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.recordsList,f=g.records;if(f){var v=f.general,l=f.medical;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{level:2,title:"General Data",children:v&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:v.name}),(0,e.jsx)(n.Ki.Item,{label:"Sex",children:v.sex}),(0,e.jsx)(n.Ki.Item,{label:"Species",children:v.species}),(0,e.jsx)(n.Ki.Item,{label:"Age",children:v.age}),(0,e.jsx)(n.Ki.Item,{label:"Rank",children:v.rank}),(0,e.jsx)(n.Ki.Item,{label:"Fingerprint",children:v.fingerprint}),(0,e.jsx)(n.Ki.Item,{label:"Physical Status",children:v.p_stat}),(0,e.jsx)(n.Ki.Item,{label:"Mental Status",children:v.m_stat})]})||(0,e.jsx)(n.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(n.wn,{level:2,title:"Medical Data",children:l&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Blood Type",children:l.b_type}),(0,e.jsx)(n.Ki.Item,{label:"Minor Disabilities",children:l.mi_dis}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.mi_dis_d}),(0,e.jsx)(n.Ki.Item,{label:"Major Disabilities",children:l.ma_dis}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.ma_dis_d}),(0,e.jsx)(n.Ki.Item,{label:"Allergies",children:l.alg}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.alg_d}),(0,e.jsx)(n.Ki.Item,{label:"Current Disease",children:l.cdi}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.cdi_d}),(0,e.jsx)(n.Ki.Item,{label:"Important Notes",preserveWhitespace:!0,children:(0,e.jsx)(n.az,{preserveWhitespace:!0,children:l.notes})})]})||(0,e.jsx)(n.az,{color:"bad",children:"Medical record lost!"})})]})}return(0,e.jsx)(n.wn,{level:2,title:"Select a record",children:d.map(function(c){return(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,content:c.Name,onClick:function(){return b("Records",{target:c.ref})}},c.ref)})})}},9033:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_messenger:function(){return b}});var e=t(88095),a=t(11358),n=t(33854),r=t(44583),o=t(4413),m=t(92514),b=function(l){var c=(0,o.Oc)(),u=c.act,h=c.data,x=h.auto_scroll,j=h.convo_name,p=h.convo_job,_=h.messages,E=h.active_conversation;return E?(0,e.jsx)(d,{}):(0,e.jsx)(f,{})},g=function(l,c,u){if(c<0||c>u.length)return l.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received";var h=u[c].sent;return l.sent&&h?"TinderMessage_Subsequent_Sent":!l.sent&&!h?"TinderMessage_Subsequent_Received":l.sent?"TinderMessage_First_Sent":"TinderMessage_First_Received"},d=function(l){var c=(0,o.Oc)(),u=c.act,h=c.data,x=h.auto_scroll,j=h.convo_name,p=h.convo_job,_=h.messages,E=h.active_conversation,I=h.useRetro,O=(0,r.useState)(!1),M=O[0],D=O[1],A=(0,e.jsxs)(m.wn,{level:2,title:"Conversation with "+j+" ("+p+")",buttons:(0,e.jsx)(m.$n,{icon:"eye",selected:M,tooltip:"Enter Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return D(!M)}}),height:"450px",stretchContents:!0,children:[(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return u("Message",{target:E})},content:"Reply"}),(0,e.jsx)(m.wn,{style:{height:"97%","overflow-y":"auto"},children:(0,a.pb)(function(B){return B.target===E})(_).map(function(B,U,L){return(0,e.jsx)(m.az,{textAlign:B.sent?"right":"left",mb:1,children:(0,e.jsx)(m.az,{maxWidth:"75%",className:g(B,U-1,L),inline:!0,children:(0,n.jT)(B.message)})},U)})}),(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return u("Message",{target:E})},content:"Reply"})]});return M&&(A=(0,e.jsxs)(m.wn,{level:2,title:"Conversation with "+j+" ("+p+")",buttons:(0,e.jsx)(m.$n,{icon:"eye",selected:M,tooltip:"Exit Clipboard Mode",tooltipPosition:"bottom-end",onClick:function(){return D(!M)}}),height:"450px",stretchContents:!0,children:[(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return u("Message",{target:E})},content:"Reply"}),(0,e.jsx)(m.wn,{style:{height:"97%","overflow-y":"auto"},children:(0,a.pb)(function(B){return B.target===E})(_).map(function(B,U){return(0,e.jsxs)(m.az,{className:B.sent?"ClassicMessage_Sent":"ClassicMessage_Received",children:[B.sent?"You:":"Them:"," ",(0,n.jT)(B.message)]},U)})}),(0,e.jsx)(m.$n,{icon:"comment",onClick:function(){return u("Message",{target:E})},content:"Reply"})]})),(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.Ki,{children:(0,e.jsx)(m.Ki.Item,{label:"Messenger Functions",children:(0,e.jsx)(m.$n,{icon:"trash",color:"bad",onClick:function(){return u("Clear",{option:"Convo"})},children:"Delete Conversations"})})}),A]})},f=function(l){var c=(0,o.Oc)(),u=c.act,h=c.data,x=h.auto_scroll,j=h.convopdas,p=h.pdas,_=h.charges,E=h.plugins,I=h.silent,O=h.toff;return(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.Ki,{children:(0,e.jsxs)(m.Ki.Item,{label:"Messenger Functions",children:[(0,e.jsxs)(m.$n,{selected:!I,icon:I?"volume-mute":"volume-up",onClick:function(){return u("Toggle Ringer")},children:["Ringer: ",I?"Off":"On"]}),(0,e.jsxs)(m.$n,{color:O?"bad":"green",icon:"power-off",onClick:function(){return u("Toggle Messenger")},children:["Messenger: ",O?"Off":"On"]}),(0,e.jsx)(m.$n,{icon:"bell",onClick:function(){return u("Ringtone")},children:"Set Ringtone"}),(0,e.jsx)(m.$n,{icon:"trash",color:"bad",onClick:function(){return u("Clear",{option:"All"})},children:"Delete All Conversations"})]})}),!O&&(0,e.jsxs)(m.az,{children:[!!_&&(0,e.jsxs)(m.az,{children:[_," charges left."]}),!j.length&&!p.length&&(0,e.jsx)(m.az,{children:"No other PDAs located."})||(0,e.jsxs)(m.az,{children:[(0,e.jsx)(v,{title:"Current Conversations",pdas:j,msgAct:"Select Conversation"}),(0,e.jsx)(v,{title:"Other PDAs",pdas:p,msgAct:"Message"})]})]})||(0,e.jsx)(m.az,{color:"bad",mt:2,children:"Messenger Offline."})]})},v=function(l){var c=(0,o.Oc)(),u=c.act,h=c.data,x=l.pdas,j=l.title,p=l.msgAct,_=h.charges,E=h.plugins;return!x||!x.length?(0,e.jsx)(m.wn,{level:2,title:j,children:"No PDAs found."}):(0,e.jsx)(m.wn,{level:2,title:j,children:x.map(function(I){return(0,e.jsxs)(m.az,{children:[(0,e.jsx)(m.$n,{icon:"arrow-circle-down",content:I.Name,onClick:function(){return u(p,{target:I.Reference})}}),!!_&&E.map(function(O){return(0,e.jsx)(m.$n,{icon:O.icon,content:O.name,onClick:function(){return u("Messenger Plugin",{plugin:O.ref,target:I.Reference})}},O.ref)})]},I.Reference)})})}},29835:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_news:function(){return o}});var e=t(88095),a=t(33854),n=t(4413),r=t(92514),o=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.feeds,c=v.target_feed;return(0,e.jsx)(r.az,{children:!l.length&&(0,e.jsx)(r.az,{color:"bad",children:"Error: No newsfeeds available. Please try again later."})||c&&(0,e.jsx)(m,{})||(0,e.jsx)(b,{})})},m=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.target_feed;return(0,e.jsx)(r.wn,{title:(0,a.jT)(l.name)+" by "+(0,a.jT)(l.author),level:2,buttons:(0,e.jsx)(r.$n,{content:"Back",icon:"chevron-up",onClick:function(){return f("newsfeed",{newsfeed:null})}}),children:l.messages.length&&l.messages.map(function(c){return(0,e.jsxs)(r.wn,{children:["- ",(0,a.jT)(c.body),!!c.img&&(0,e.jsxs)(r.az,{children:[(0,e.jsx)("img",{src:"data:image/png;base64,"+c.img}),(0,a.jT)(c.caption)||null]}),(0,e.jsxs)(r.az,{color:"grey",children:["[",c.message_type," by ",(0,a.jT)(c.author)," -"," ",c.time_stamp,"]"]})]},c.ref)})||(0,e.jsxs)(r.az,{children:["No stories found in ",l.name,"."]})})},b=function(g){var d=(0,n.Oc)(),f=d.act,v=d.data,l=v.feeds,c=v.latest_news;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.wn,{title:"Recent News",level:2,children:c.length&&(0,e.jsx)(r.wn,{children:c.map(function(u){return(0,e.jsxs)(r.az,{mb:2,children:[(0,e.jsxs)("h5",{children:[(0,a.jT)(u.channel),(0,e.jsx)(r.$n,{ml:1,icon:"chevron-up",onClick:function(){return f("newsfeed",{newsfeed:u.index})},content:"Go to"})]}),"- ",(0,a.jT)(u.body),!!u.img&&(0,e.jsxs)(r.az,{children:["[image omitted, view story for more details]",u.caption||null]}),(0,e.jsxs)(r.az,{fontSize:.9,children:["[",u.message_type," by"," ",(0,e.jsx)(r.az,{inline:!0,color:"average",children:u.author})," ","- ",u.time_stamp,"]"]})]},u.index)})})||(0,e.jsx)(r.az,{children:"No recent stories found."})}),(0,e.jsx)(r.wn,{title:"News Feeds",level:2,children:l.map(function(u){return(0,e.jsx)(r.$n,{fluid:!0,icon:"chevron-up",onClick:function(){return f("newsfeed",{newsfeed:u.index})},content:u.name},u.index)})})]})}},18692:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_notekeeper:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.note,f=g.notename;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.XI,{children:[(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note1")},content:"Note A"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note2")},content:"Note B"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note3")},content:"Note C"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note4")},content:"Note D"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note5")},content:"Note E"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note6")},content:"Note F"})})]}),(0,e.jsxs)(n.XI.Row,{header:!0,children:[(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note7")},content:"Note G"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note8")},content:"Note H"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note9")},content:"Note I"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note10")},content:"Note J"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note11")},content:"Note K"})}),(0,e.jsx)(n.XI.Cell,{children:(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Note12")},content:"Note L"})})]})]})}),(0,e.jsxs)(n.wn,{title:f,children:[(0,e.jsx)(n.$n,{icon:"pen",onClick:function(){return b("Edit")},content:"Edit Note"}),(0,e.jsx)(n.$n,{icon:"file-word",onClick:function(){return b("Titleset")},content:"Edit Title"}),(0,e.jsx)(n.$n,{icon:"sticky-note-o",onClick:function(){return b("Print")},content:"Print Note"})]}),(0,e.jsx)(n.wn,{children:(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:d}})})]})}},37347:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_power:function(){return r}});var e=t(88095),a=t(4413),n=t(16421),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data;return(0,e.jsx)(n.PowerMonitorContent,{})}},56520:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_security:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.recordsList,f=g.records;if(f){var v=f.general,l=f.security;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.wn,{level:2,title:"General Data",children:v&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Name",children:v.name}),(0,e.jsx)(n.Ki.Item,{label:"Sex",children:v.sex}),(0,e.jsx)(n.Ki.Item,{label:"Species",children:v.species}),(0,e.jsx)(n.Ki.Item,{label:"Age",children:v.age}),(0,e.jsx)(n.Ki.Item,{label:"Rank",children:v.rank}),(0,e.jsx)(n.Ki.Item,{label:"Fingerprint",children:v.fingerprint}),(0,e.jsx)(n.Ki.Item,{label:"Physical Status",children:v.p_stat}),(0,e.jsx)(n.Ki.Item,{label:"Mental Status",children:v.m_stat})]})||(0,e.jsx)(n.az,{color:"bad",children:"General record lost!"})}),(0,e.jsx)(n.wn,{level:2,title:"Security Data",children:l&&(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Criminal Status",children:l.criminal}),(0,e.jsx)(n.Ki.Item,{label:"Minor Crimes",children:l.mi_crim}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.mi_crim_d}),(0,e.jsx)(n.Ki.Item,{label:"Major Crimes",children:l.ma_crim}),(0,e.jsx)(n.Ki.Item,{label:"Details",children:l.ma_crim_d}),(0,e.jsx)(n.Ki.Item,{label:"Important Notes:",children:(0,e.jsx)(n.az,{preserveWhitespace:!0,children:l.notes||"No data found."})})]})||(0,e.jsx)(n.az,{color:"bad",children:"Security record lost!"})})]})}return(0,e.jsx)(n.wn,{level:2,title:"Select a record",children:d.map(function(c){return(0,e.jsx)(n.$n,{icon:"eye",fluid:!0,content:c.Name,onClick:function(){return b("Records",{target:c.ref})}},c.ref)})})}},85617:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_signaller:function(){return n}});var e=t(88095),a=t(42053),n=function(r){return(0,e.jsx)(a.SignalerContent,{})}},3707:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_status_display:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.records;return(0,e.jsx)(n.az,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsxs)(n.Ki.Item,{label:"Code",children:[(0,e.jsx)(n.$n,{color:"transparent",icon:"trash",content:"Clear",onClick:function(){return b("Status",{statdisp:"blank"})}}),(0,e.jsx)(n.$n,{color:"transparent",icon:"cog",content:"Evac ETA",onClick:function(){return b("Status",{statdisp:"shuttle"})}}),(0,e.jsx)(n.$n,{color:"transparent",icon:"cog",content:"Message",onClick:function(){return b("Status",{statdisp:"message"})}}),(0,e.jsx)(n.$n,{color:"transparent",icon:"exclamation-triangle",content:"ALERT",onClick:function(){return b("Status",{statdisp:"alert"})}})]}),(0,e.jsx)(n.Ki.Item,{label:"Message line 1",children:(0,e.jsx)(n.$n,{content:d.message1+" (set)",icon:"pen",onClick:function(){return b("Status",{statdisp:"setmsg1"})}})}),(0,e.jsx)(n.Ki.Item,{label:"Message line 2",children:(0,e.jsx)(n.$n,{content:d.message2+" (set)",icon:"pen",onClick:function(){return b("Status",{statdisp:"setmsg2"})}})})]})})}},77099:function(S,y,t){"use strict";t.r(y),t.d(y,{pda_supply:function(){return r}});var e=t(88095),a=t(4413),n=t(92514),r=function(o){var m=(0,a.Oc)(),b=m.act,g=m.data,d=g.supply;return(0,e.jsxs)(n.az,{children:[(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Location",children:d.shuttle_moving?"Moving to station "+d.shuttle_eta:"Shuttle at "+d.shuttle_loc})}),(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.az,{color:"good",bold:!0,children:"Current Approved Orders"}),d.approved.length&&d.approved.map(function(f){return(0,e.jsxs)(n.az,{color:"average",children:["#",f.Number," - ",f.Name," approved by ",f.OrderedBy,(0,e.jsx)("br",{}),f.Comment]},f.Number)})||(0,e.jsx)(n.az,{children:"None!"}),(0,e.jsx)(n.az,{color:"good",bold:!0,children:"Current Requested Orders"}),d.requests.length&&d.requests.map(function(f){return(0,e.jsxs)(n.az,{color:"average",children:["#",f.Number," - ",f.Name," requested by ",f.OrderedBy,(0,e.jsx)("br",{}),f.Comment]},f.Number)})||(0,e.jsx)(n.az,{children:"None!"})]})]})}},84905:function(S,y,t){"use strict";t.d(y,{Zm:function(){return U},p8:function(){return O}});var e=t(88095),a=t(84352),n=t(60001),r=t(80116);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function o(){return o=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},o.apply(this,arguments)}function m(N,q){if(N==null)return{};var G={},Q=Object.keys(N),F,Z;for(Z=0;Z<Q.length;Z++)F=Q[Z],!(q.indexOf(F)>=0)&&(G[F]=N[F]);return G}var b=function(N){var q=N.className,G=N.theme,Q=G===void 0?"nanotrasen":G,F=N.children,Z=m(N,["className","theme","children"]);return(0,e.jsx)("div",{className:"theme-"+Q,children:(0,e.jsx)("div",o({className:(0,a.Ly)(["Layout",q,(0,n.WP)(Z)])},(0,n.Fl)(Z),{children:F}))})},g=function(N){var q=N.className,G=N.scrollable,Q=N.children,F=m(N,["className","scrollable","children"]);return(0,e.jsx)("div",o({className:(0,a.Ly)(["Layout__content",G&&"Layout__content--scrollable",q,(0,n.WP)(F)])},(0,n.Fl)(F),{children:Q}))};g.defaultHooks={onComponentDidMount:function(N){return(0,r.tk)(N)},onComponentWillUnmount:function(N){return(0,r.WK)(N)}},b.Content=g;var d=t(80676),f=t(4413),v=t(92514),l=t(33854),c=t(44583),u=t(1568),h=t(232),x=t(58463),j=t(47868);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function p(){return p=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},p.apply(this,arguments)}function _(N,q){if(N==null)return{};var G={},Q=Object.keys(N),F,Z;for(Z=0;Z<Q.length;Z++)F=Q[Z],!(q.indexOf(F)>=0)&&(G[F]=N[F]);return G}var E=(0,j.h)("Window"),I=[400,600],O=function(N){var q,G=N.canClose,Q=G===void 0?!0:G,F=N.theme,Z=N.title,oe=N.children,le=N.buttons,ue=N.width,he=N.height,de=(0,f.Oc)(),ve=de.config,pe=de.suspended,be=de.debug;if(pe)return null;(0,c.useEffect)(function(){var We=function(){var Qe,Ye=p({},ve.window,{size:I});ue&&he&&(Ye.size=[ue,he]),(Qe=ve.window)!=null&&Qe.key&&(0,x.y9)(ve.window.key),(0,x.C8)(Ye)};return Byond.winset(Byond.windowId,{"can-close":!!Q}),E.log("mounting"),We(),function(){E.log("unmounting")}},[ue,he]);var ye=!1;be&&(ye=be.debugLayout);var Te=f.J3.dispatch,Ke=(q=ve.window)==null?void 0:q.fancy,$e=ve.user&&(ve.user.observer?ve.status<u.KS:ve.status<u.KA);return(0,e.jsxs)(b,{className:"Window",theme:F,children:[(0,e.jsx)(A,{className:"Window__titleBar",title:!pe&&(Z||(0,l.jT)(ve.title)),status:ve.status,fancy:Ke,onDragStart:x.BF,onClose:function(){E.log("pressed close"),Te((0,f.JV)())},canClose:Q,children:le}),(0,e.jsxs)("div",{className:(0,a.Ly)(["Window__rest",ye&&"debug-layout"]),children:[!pe&&oe,$e&&(0,e.jsx)("div",{className:"Window__dimmer"})]}),Ke&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"Window__resizeHandle__e",onMouseDown:(0,x.nZ)(1,0)}),(0,e.jsx)("div",{className:"Window__resizeHandle__s",onMouseDown:(0,x.nZ)(0,1)}),(0,e.jsx)("div",{className:"Window__resizeHandle__se",onMouseDown:(0,x.nZ)(1,1)})]})]})},M=function(N){var q=N.className,G=N.fitted,Q=N.children,F=_(N,["className","fitted","children"]);return(0,e.jsx)(b.Content,p({className:(0,a.Ly)(["Window__content",q])},F,{children:G&&Q||(0,e.jsx)("div",{className:"Window__contentPadding",children:Q})}))};O.Content=M;var D=function(N){switch(N){case u.KA:return"good";case u.bz:return"average";case u.KS:default:return"bad"}},A=function(N){var q=N.className,G=N.title,Q=N.status,F=N.canClose,Z=N.fancy,oe=N.onDragStart,le=N.onClose,ue=N.children,he=f.J3.dispatch,de=typeof G=="string"&&G===G.toLowerCase()&&(0,l.Sn)(G)||G;return(0,e.jsxs)("div",{className:(0,a.Ly)(["TitleBar",q]),children:[Q===void 0&&(0,e.jsx)(v.In,{className:"TitleBar__statusIcon",name:"tools",opacity:.5})||(0,e.jsx)(v.In,{className:"TitleBar__statusIcon",color:D(Q),name:"eye"}),(0,e.jsx)("div",{className:"TitleBar__dragZone",onMouseDown:function(ve){return Z&&oe&&oe(ve)}}),(0,e.jsxs)("div",{className:"TitleBar__title",children:[de,!!ue&&(0,e.jsx)("div",{className:"TitleBar__buttons",children:ue})]}),!1,!!(Z&&F)&&(0,e.jsx)("div",{className:"TitleBar__close TitleBar__clickable",onClick:le,children:"\xD7"})]})};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function B(){return B=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},B.apply(this,arguments)}var U=function(N){var q=N.title,G=N.width,Q=G===void 0?575:G,F=N.height,Z=F===void 0?700:F,oe=N.children,le=(0,f.Oc)(),ue=le.act,he=le.data,de=he.PC_device_theme,ve=he.PC_batteryicon,pe=he.PC_showbatteryicon,be=he.PC_batterypercent,ye=he.PC_ntneticon,Te=he.PC_stationdate,Ke=he.PC_stationtime,$e=he.PC_programheaders,We=$e===void 0?[]:$e,Qe=he.PC_showexitprogram;return(0,e.jsx)(O,{title:q,width:Q,height:Z,theme:de,children:(0,e.jsxs)("div",{className:"NtosWindow",children:[(0,e.jsxs)("div",{className:"NtosWindow__header NtosHeader",children:[(0,e.jsxs)("div",{className:"NtosHeader__left",children:[(0,e.jsxs)(v.az,{inline:!0,bold:!0,mr:2,children:[(0,e.jsx)(v.$n,{width:"26px",lineHeight:"22px",textAlign:"left",tooltip:Te,color:"transparent",icon:"calendar",tooltipPosition:"bottom"}),Ke]}),(0,e.jsx)(v.az,{inline:!0,italic:!0,mr:2,opacity:.33,children:de==="syndicate"&&"Syndix"||"NtOS"})]}),(0,e.jsxs)("div",{className:"NtosHeader__right",children:[We.map(function(Ye){return(0,e.jsx)(v.az,{inline:!0,mr:1,children:(0,e.jsx)("img",{className:"NtosHeader__icon",src:(0,d.l)(Ye.icon)})},Ye.icon)}),(0,e.jsx)(v.az,{inline:!0,children:ye&&(0,e.jsx)("img",{className:"NtosHeader__icon",src:(0,d.l)(ye)})}),!!(pe&&ve)&&(0,e.jsxs)(v.az,{inline:!0,mr:1,children:[(0,e.jsx)("img",{className:"NtosHeader__icon",src:(0,d.l)(ve)}),be&&be]}),!!Qe&&(0,e.jsx)(v.$n,{width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-minimize-o",tooltip:"Minimize",tooltipPosition:"bottom",onClick:function(){return ue("PC_minimize")}}),!!Qe&&(0,e.jsx)(v.$n,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"window-close-o",tooltip:"Close",tooltipPosition:"bottom-start",onClick:function(){return ue("PC_exit")}}),!Qe&&(0,e.jsx)(v.$n,{mr:"-3px",width:"26px",lineHeight:"22px",textAlign:"center",color:"transparent",icon:"power-off",tooltip:"Power off",tooltipPosition:"bottom-start",onClick:function(){return ue("PC_shutdown")}})]})]}),oe]})})},L=function(N){return(0,e.jsx)("div",{className:"NtosWindow__content",children:(0,e.jsx)(O.Content,B({},N))})};U.Content=L;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function k(){return k=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},k.apply(this,arguments)}function Y(N,q){if(N==null)return{};var G={},Q=Object.keys(N),F,Z;for(Z=0;Z<Q.length;Z++)F=Q[Z],!(q.indexOf(F)>=0)&&(G[F]=N[F]);return G}var V=function(N){var q=N.theme,G=N.children,Q=N.className,F=Y(N,["theme","children","className"]),Z=(0,f.Oc)(),oe=Z.suspended,le=Z.debug,ue=!1;return le&&(ue=le.debugLayout),(0,e.jsx)(b,k({className:(0,a.Ly)(["Window",Q]),theme:q},F,{children:(0,e.jsx)(v.az,{fillPositionedParent:!0,className:ue&&"debug-layout",children:!oe&&G})}))},H=function(N){var q=N.className,G=N.fitted,Q=N.children,F=Y(N,["className","fitted","children"]);return(0,e.jsx)(b.Content,k({className:(0,a.Ly)(["Window__content",q])},F,{children:G&&Q||(0,e.jsx)("div",{className:"Window__contentPadding",children:Q})}))};V.Content=H;/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/},47868:function(S,y,t){"use strict";t.d(y,{h:function(){return f},v:function(){return v}});var e=t(38513),a=t.n(e);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function n(l,c){return c!=null&&typeof Symbol!="undefined"&&c[Symbol.hasInstance]?!!c[Symbol.hasInstance](l):l instanceof c}var r=0,o=1,m=2,b=3,g=4,d=function(l,c){c===void 0&&(c="Generic");for(var u=arguments.length,h=new Array(u>2?u-2:0),x=2;x<u;x++)h[x-2]=arguments[x];if(l>=m){var j=[].concat([c],h).map(function(p){return typeof p=="string"?p:n(p,Error)?p.stack||String(p):JSON.stringify(p)}).filter(function(p){return p}).join(" ")+"\nUser Agent: "+navigator.userAgent;Byond.sendMessage({type:"log",ns:c,message:j})}},f=function(l){return{debug:function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return d.apply(void 0,[].concat([r,l],u))},log:function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return d.apply(void 0,[].concat([o,l],u))},info:function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return d.apply(void 0,[].concat([m,l],u))},warn:function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return d.apply(void 0,[].concat([b,l],u))},error:function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];return d.apply(void 0,[].concat([g,l],u))}}},v=f()},17002:function(S,y,t){"use strict";t.d(y,{K9:function(){return v},P7:function(){return g},Su:function(){return d}});var e=t(3710),a=t(7769),n=t(47868),r=(0,n.h)("renderer"),o,m=!0,b=!1,g=function(){m=m||"resumed",b=!1},d=function(){b=!0},f;(function(l){l.Start="render/start",l.Finish="render/finish"})(f||(f={}));var v=function(l){return function(){for(var c=arguments.length,u=new Array(c),h=0;h<c;h++)u[h]=arguments[h];if(e.k.mark("render/start"),!o){var x=document.getElementById("react-root");o=(0,a.H)(x)}l?o.render(l.apply(void 0,[].concat(u))):o.render(u[0]),e.k.mark("render/finish"),!b&&m&&(m=!1)}}},82989:function(S,y,t){"use strict";t.d(y,{l:function(){return d}});var e=t(88095),a=t(4413),n=t(92514),r=t(84905);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var o=t(32054),m=function(f,v){return function(){return(0,e.jsx)(r.p8,{children:(0,e.jsxs)(r.p8.Content,{scrollable:!0,children:[f==="notFound"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:v})," was not found."]}),f==="missingExport"&&(0,e.jsxs)("div",{children:["Interface ",(0,e.jsx)("b",{children:v})," is missing an export."]})]})})}},b=function(){return(0,e.jsx)(r.p8,{children:(0,e.jsx)(r.p8.Content,{scrollable:!0})})},g=function(){return(0,e.jsx)(r.p8,{title:"Loading",children:(0,e.jsx)(r.p8.Content,{children:(0,e.jsx)(n.wn,{fill:!0,children:(0,e.jsxs)(n.BJ,{align:"center",fill:!0,justify:"center",vertical:!0,children:[(0,e.jsx)(n.BJ.Item,{children:(0,e.jsx)(n.In,{color:"blue",name:"toolbox",spin:!0,size:4})}),(0,e.jsx)(n.BJ.Item,{children:"Please wait..."})]})})})})},d=function(){var f=(0,a.Oc)(),v=f.suspended,l=f.config,c=f.debug;if(v)return b;if(l!=null&&l.refreshing)return g;for(var u=l==null?void 0:l.interface,h=[function(E){return"./chompstation/"+E+".tsx"},function(E){return"./chompstation/"+E+".jsx"},function(E){return"./chompstation/"+E+"/index.tsx"},function(E){return"./chompstation/"+E+"/index.jsx"},function(E){return"./"+E+".tsx"},function(E){return"./"+E+".jsx"},function(E){return"./"+E+"/index.tsx"},function(E){return"./"+E+"/index.jsx"}],x;!x&&h.length>0;){var j=h.shift(),p=j(u);try{x=o(p)}catch(E){if(E.code!=="MODULE_NOT_FOUND")throw E}}if(!x)return m("notFound",u);var _=x[u];return _||m("missingExport",u)}},71620:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"Blink",render:function(){return(0,e.jsx)(r,{})}},r=function(o){return(0,e.jsx)(a.wn,{children:(0,e.jsx)(a.Z8,{children:"Blink"})})}},35461:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return r}});var e=t(88095),a=t(92514),n=t(68144);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var r={title:"BlockQuote",render:function(){return(0,e.jsx)(o,{})}},o=function(m){return(0,e.jsx)(a.wn,{children:(0,e.jsx)(a.Y0,{children:(0,e.jsx)(n.l,{})})})}},2923:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"Box",render:function(){return(0,e.jsx)(r,{})}},r=function(o){return(0,e.jsxs)(a.wn,{children:[(0,e.jsx)(a.az,{bold:!0,children:"bold"}),(0,e.jsx)(a.az,{italic:!0,children:"italic"}),(0,e.jsx)(a.az,{opacity:.5,children:"opacity 0.5"}),(0,e.jsx)(a.az,{opacity:.25,children:"opacity 0.25"}),(0,e.jsx)(a.az,{m:2,children:"m: 2"}),(0,e.jsx)(a.az,{textAlign:"left",children:"left"}),(0,e.jsx)(a.az,{textAlign:"center",children:"center"}),(0,e.jsx)(a.az,{textAlign:"right",children:"right"})]})}},73878:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"Button",render:function(){return(0,e.jsx)(m,{})}},r=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey"],o=["good","average","bad","black","white"],m=function(b){return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.az,{mb:1,children:[(0,e.jsx)(a.$n,{content:"Simple"}),(0,e.jsx)(a.$n,{selected:!0,content:"Selected"}),(0,e.jsx)(a.$n,{altSelected:!0,content:"Alt Selected"}),(0,e.jsx)(a.$n,{disabled:!0,content:"Disabled"}),(0,e.jsx)(a.$n,{color:"transparent",content:"Transparent"}),(0,e.jsx)(a.$n,{icon:"cog",content:"Icon"}),(0,e.jsx)(a.$n,{icon:"power-off"}),(0,e.jsx)(a.$n,{fluid:!0,content:"Fluid"}),(0,e.jsx)(a.$n,{my:1,lineHeight:2,minWidth:15,textAlign:"center",content:"With Box props"})]}),(0,e.jsxs)(a.az,{mb:1,children:[o.map(function(g){return(0,e.jsx)(a.$n,{color:g,content:g},g)}),(0,e.jsx)("br",{}),r.map(function(g){return(0,e.jsx)(a.$n,{color:g,content:g},g)}),(0,e.jsx)("br",{}),r.map(function(g){return(0,e.jsx)(a.az,{inline:!0,mx:"7px",color:g,children:g},g)})]})]})}},75764:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return o}});var e=t(88095),a=t(4413),n=t(92514),r=t(47868);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var o={title:"ByondUi",render:function(){return(0,e.jsx)(m,{})}},m=function(b){var g=(0,a.Ul)("byondUiEvalCode","Byond.winset('"+Byond.windowId+"', {\n 'is-visible': true,\n})"),d=g[0],f=g[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(n.wn,{title:"Button",children:(0,e.jsx)(n.D1,{params:{type:"button",text:"Button"}})}),(0,e.jsx)(n.wn,{title:"Make BYOND calls",buttons:(0,e.jsx)(n.$n,{icon:"chevron-right",onClick:function(){return setImmediate(function(){try{var v=new Function("return ("+d+")")();v&&v.then?(r.v.log("Promise"),v.then(r.v.log)):r.v.log(v)}catch(l){r.v.log(l)}})},children:"Evaluate"}),children:(0,e.jsx)(n.az,{as:"textarea",width:"100%",height:"10em",onChange:function(v){return f(v.target.value)},children:d})})]})}},52986:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return r}});var e=t(88095),a=t(92514),n=t(68144);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var r={title:"Collapsible",render:function(){return(0,e.jsx)(o,{})}},o=function(m,b){return(0,e.jsx)(a.wn,{children:(0,e.jsx)(a.Nt,{title:"Collapsible Demo",buttons:(0,e.jsx)(a.$n,{icon:"cog"}),children:(0,e.jsx)(n.l,{})})})}},70233:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return r}});var e=t(88095),a=t(4413),n=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var r={title:"Flex & Sections",render:function(){return(0,e.jsx)(o,{})}},o=function(m){var b=(0,a.Ul)("fs_grow",1),g=b[0],d=b[1],f=(0,a.Ul)("fs_direction","column"),v=f[0],l=f[1],c=(0,a.Ul)("fs_fill",!0),u=c[0],h=c[1],x=(0,a.Ul)("fs_title",!0),j=x[0],p=x[1];return(0,e.jsxs)(n.so,{height:"100%",direction:"column",children:[(0,e.jsx)(n.so.Item,{mb:1,children:(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return l(v==="column"?"row":"column")},children:'Flex direction="'+v+'"'}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return d(+!g)},children:"Flex.Item grow={"+g+"}"}),(0,e.jsx)(n.$n,{fluid:!0,onClick:function(){return h(!u)},children:"Section fill={"+String(u)+"}"}),(0,e.jsx)(n.$n,{fluid:!0,selected:j,onClick:function(){return p(!j)},children:"Section title"})]})}),(0,e.jsx)(n.so.Item,{grow:1,children:(0,e.jsxs)(n.so,{height:"100%",direction:v,children:[(0,e.jsx)(n.so.Item,{mr:v==="row"&&1,mb:v==="column"&&1,grow:g,children:(0,e.jsx)(n.wn,{title:j&&"Section 1",fill:u,children:"Content"})}),(0,e.jsx)(n.so.Item,{grow:g,children:(0,e.jsx)(n.wn,{title:j&&"Section 2",fill:u,children:"Content"})})]})})]})}},41650:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return r}});var e=t(88095),a=t(44583),n=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var r={title:"Input",render:function(){return(0,e.jsx)(o,{})}},o=function(m){var b=(0,a.useState)(0),g=b[0],d=b[1],f=(0,a.useState)("Sample text"),v=f[0],l=f[1];return(0,e.jsx)(n.wn,{children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Input (onChange)",children:(0,e.jsx)(n.pd,{value:v,onChange:function(c,u){return l(u)}})}),(0,e.jsx)(n.Ki.Item,{label:"Input (onInput)",children:(0,e.jsx)(n.pd,{value:v,onInput:function(c,u){return l(u)}})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onChange)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onChange:function(c,u){return d(u)}})}),(0,e.jsx)(n.Ki.Item,{label:"NumberInput (onDrag)",children:(0,e.jsx)(n.Q7,{animated:!0,width:"40px",step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(c,u){return d(u)}})}),(0,e.jsx)(n.Ki.Item,{label:"Slider (onDrag)",children:(0,e.jsx)(n.Ap,{step:1,stepPixelSize:5,value:g,minValue:-100,maxValue:100,onDrag:function(c,u){return d(u)}})}),(0,e.jsxs)(n.Ki.Item,{label:"Knob (onDrag)",children:[(0,e.jsx)(n.N6,{inline:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(c,u){return d(u)}}),(0,e.jsx)(n.N6,{ml:1,inline:!0,bipolar:!0,size:1,step:1,stepPixelSize:2,value:g,minValue:-100,maxValue:100,onDrag:function(c,u){return d(u)}})]}),(0,e.jsx)(n.Ki.Item,{label:"Rotating Icon",children:(0,e.jsx)(n.az,{inline:!0,position:"relative",children:(0,e.jsx)(n.Hx,{value:g,minValue:-100,maxValue:100,dragMatrix:[0,-1],step:1,stepPixelSize:5,onDrag:function(c,u){return d(u)},children:function(c){return(0,e.jsxs)(n.az,{onMouseDown:c.handleDragStart,children:[(0,e.jsx)(n.In,{size:4,color:"yellow",name:"times",rotation:c.displayValue*4}),c.inputElement]})}})})})]})})}},97265:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"LabeledList",render:function(){return(0,e.jsx)(r,{})}},r=function(o){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{label:"Label 1",children:"Entry 1"}),(0,e.jsx)(a.Ki.Item,{label:(0,e.jsx)(a.$n,{children:"Nodes as labels:"}),children:"Entry 2"}),(0,e.jsx)(a.Ki.Item,{labelColor:"green",label:"labelColor=green",children:"Entry 3"}),(0,e.jsx)(a.Ki.Item,{color:"green",label:"color=green",children:"Entry 4"}),(0,e.jsx)(a.Ki.Item,{buttons:(0,e.jsx)(a.$n,{children:"Test"}),label:"Buttons prop",children:"Entry 5"}),(0,e.jsx)(a.Ki.Divider,{}),(0,e.jsx)(a.Ki.Item,{label:"LabeledList.Divider right above us",children:"Entry 6"}),(0,e.jsx)(a.Ki.Item,{labelWrap:!0,label:"Very very very very very very very very very very very very very long label with labelWrap",children:"Entry 7"}),(0,e.jsx)(a.Ki.Item,{labelWrap:!0,verticalAlign:"middle",label:"Very very very very very very very very very very very very very long label with labelWrap and verticalAlign",children:"Entry 8"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsxs)(a.Ki,{children:[(0,e.jsx)(a.Ki.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 1"}),(0,e.jsx)(a.Ki.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 2"}),(0,e.jsx)(a.Ki.Item,{labelWrap:!0,label:"List with all labelWrap=true",children:"Entry 3"})]}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)("br",{}),(0,e.jsx)(a.Ki,{children:(0,e.jsx)(a.Ki.Item,{label:"Very very very very very very very very very very very very very long label without labelWrap",children:"Entry 1"})})]})}},59964:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514),n={title:"Popper",render:function(){return(0,e.jsx)(r,{})}},r=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.ND,{isOpen:!0,content:(0,e.jsx)(a.az,{style:{background:"white",border:"2px solid blue"},children:"Loogatme!"}),placement:"bottom",children:(0,e.jsx)(a.az,{style:{border:"5px solid white",height:"300px",width:"200px"}})}),(0,e.jsx)(a.ND,{isOpen:!0,content:(0,e.jsx)(a.az,{style:{background:"white",border:"2px solid blue"},children:"I am on the right!"}),placement:"right",children:(0,e.jsx)(a.az,{style:{border:"5px solid white",height:"500px",width:"100px"}})})]})}},52438:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return o}});var e=t(88095),a=t(44583),n=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/function r(){return r=Object.assign||function(b){for(var g=1;g<arguments.length;g++){var d=arguments[g];for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(b[f]=d[f])}return b},r.apply(this,arguments)}var o={title:"ProgressBar",render:function(){return(0,e.jsx)(m,{})}},m=function(b){var g=(0,a.useState)(.5),d=g[0],f=g[1],v=(0,a.useState)(""),l=v[0],c=v[1],u=l?{color:l}:{ranges:{good:[.5,1/0],bad:[-1/0,.1],average:[0,.5]}};return(0,e.jsxs)(n.wn,{children:[(0,e.jsxs)(n.z2,r({},u,{minValue:-1,maxValue:1,value:d,children:["Value: ",Number(d).toFixed(1)]})),(0,e.jsx)(n.az,{mt:1,children:(0,e.jsxs)(n.Ki,{mt:"2em",children:[(0,e.jsxs)(n.Ki.Item,{label:"Adjust value",children:[(0,e.jsx)(n.$n,{content:"-0.1",onClick:function(){return f(d-.1)}}),(0,e.jsx)(n.$n,{content:"+0.1",onClick:function(){return f(d+.1)}})]}),(0,e.jsx)(n.Ki.Item,{label:"Override color",children:(0,e.jsx)(n.pd,{value:l,onChange:function(h,x){return c(x)}})})]})})]})}},98022:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"Stack",render:function(){return(0,e.jsx)(m,{})}},r=function(){return(0,e.jsx)(a.az,{inline:!0,width:1,height:1,children:"A"})},o=function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(r,{})}),(0,e.jsx)(a.BJ.Divider,{}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsx)(r,{})})]})},m=function(b){return(0,e.jsx)(a.wn,{fill:!0,children:(0,e.jsxs)(a.BJ,{fill:!0,className:"debug-layout",children:[(0,e.jsx)(o,{}),(0,e.jsx)(a.BJ.Item,{grow:1,children:(0,e.jsxs)(a.BJ,{fill:!0,vertical:!0,children:[(0,e.jsx)(o,{}),(0,e.jsx)(a.BJ.Item,{children:(0,e.jsxs)(a.BJ,{fill:!0,children:[(0,e.jsx)(o,{}),(0,e.jsx)(a.BJ.Item,{grow:1}),(0,e.jsx)(o,{}),(0,e.jsx)(o,{})]})}),(0,e.jsx)(a.BJ.Item,{grow:1}),(0,e.jsx)(o,{})]})})]})})}},37643:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return o}});var e=t(88095),a=t(97668),n=t(92514),r=t(24158);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var o={title:"Storage",render:function(){return(0,e.jsx)(m,{})}},m=function(b){return window.localStorage?(0,e.jsx)(n.wn,{title:"Local Storage",buttons:(0,e.jsx)(n.$n,{icon:"recycle",onClick:function(){localStorage.clear(),a.IG.clear()},children:"Clear"}),children:(0,e.jsxs)(n.Ki,{children:[(0,e.jsx)(n.Ki.Item,{label:"Keys in use",children:localStorage.length}),(0,e.jsx)(n.Ki.Item,{label:"Remaining space",children:(0,r.QL)(localStorage.remainingSpace,0,"B")})]})}):(0,e.jsx)(n.IC,{children:"Local storage is not available."})}},27546:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return o}});var e=t(88095),a=t(4413),n=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/function r(){return r=Object.assign||function(d){for(var f=1;f<arguments.length;f++){var v=arguments[f];for(var l in v)Object.prototype.hasOwnProperty.call(v,l)&&(d[l]=v[l])}return d},r.apply(this,arguments)}var o={title:"Tabs",render:function(){return(0,e.jsx)(b,{})}},m=["Tab #1","Tab #2","Tab #3","Tab #4"],b=function(d){var f=(0,a.Ul)("tabProps",{}),v=f[0],l=f[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(n.wn,{children:[(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"vertical",checked:v.vertical,onClick:function(){return l(r({},v,{vertical:!v.vertical}))}}),(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"leftSlot",checked:v.leftSlot,onClick:function(){return l(r({},v,{leftSlot:!v.leftSlot}))}}),(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"rightSlot",checked:v.rightSlot,onClick:function(){return l(r({},v,{rightSlot:!v.rightSlot}))}}),(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"icon",checked:v.icon,onClick:function(){return l(r({},v,{icon:!v.icon}))}}),(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"fluid",checked:v.fluid,onClick:function(){return l(r({},v,{fluid:!v.fluid}))}}),(0,e.jsx)(n.$n.Checkbox,{inline:!0,content:"centered",checked:v.centered,onClick:function(){return l(r({},v,{centered:!v.centered}))}})]}),(0,e.jsx)(n.wn,{fitted:!0,children:(0,e.jsx)(g,{})}),(0,e.jsxs)(n.wn,{title:"Normal section",children:[(0,e.jsx)(g,{}),"Some text"]}),(0,e.jsx)(n.wn,{children:"Section-less tabs appear the same as tabs in a fitted section:"}),(0,e.jsx)(g,{})]})},g=function(d){var f=(0,a.Ul)("tabIndex",0),v=f[0],l=f[1],c=(0,a.Ul)("tabProps",{}),u=c[0];return(0,e.jsx)(n.tU,{vertical:u.vertical,fluid:u.fluid,textAlign:u.centered&&"center",children:m.map(function(h,x){return(0,e.jsx)(n.tU.Tab,{selected:x===v,icon:u.icon&&"info-circle",leftSlot:u.leftSlot&&(0,e.jsx)(n.$n,{circular:!0,compact:!0,color:"transparent",icon:"times"}),rightSlot:u.rightSlot&&(0,e.jsx)(n.$n,{circular:!0,compact:!0,color:"transparent",icon:"times"}),onClick:function(){return l(x)},children:h},x)})})}},69308:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return r}});var e=t(88095),a=t(4413),n=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var r={title:"Themes",render:function(){return(0,e.jsx)(o,{})}},o=function(m){var b=(0,a.Ul)("kitchenSinkTheme"),g=b[0],d=b[1];return(0,e.jsx)(n.wn,{children:(0,e.jsx)(n.Ki,{children:(0,e.jsx)(n.Ki.Item,{label:"Use theme",children:(0,e.jsx)(n.pd,{placeholder:"theme_name",value:g,onInput:function(f,v){return d(v)}})})})})}},36173:function(S,y,t){"use strict";t.r(y),t.d(y,{meta:function(){return n}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/var n={title:"Tooltip",render:function(){return(0,e.jsx)(r,{})}},r=function(){var o=["top","left","right","bottom","bottom-start","bottom-end"];return(0,e.jsxs)(a.wn,{children:[(0,e.jsxs)(a.az,{children:[(0,e.jsx)(a.m_,{content:"Tooltip text.",children:(0,e.jsx)(a.az,{inline:!0,position:"relative",mr:1,children:"Box (hover me)."})}),(0,e.jsx)(a.$n,{tooltip:"Tooltip text.",content:"Button"})]}),(0,e.jsx)(a.az,{mt:1,children:o.map(function(m){return(0,e.jsx)(a.$n,{color:"transparent",tooltip:"Tooltip text.",tooltipPosition:m,content:m},m)})})]})}},68144:function(S,y,t){"use strict";t.d(y,{l:function(){return r}});var e=t(88095),a=t(92514);/**
* @file
* @copyright 2021 Aleksej Komarov
* @license MIT
*/function n(){return n=Object.assign||function(o){for(var m=1;m<arguments.length;m++){var b=arguments[m];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(o[g]=b[g])}return o},n.apply(this,arguments)}var r=function(o){return(0,e.jsxs)(a.az,n({},o,{children:[(0,e.jsx)(a.az,{italic:!0,children:"Jackdaws love my big sphinx of quartz."}),(0,e.jsx)(a.az,{mt:1,bold:!0,children:"The wide electrification of the southern provinces will give a powerful impetus to the growth of agriculture."})]}))}},7339:function(S,y,t){var e={"./pda_atmos_scan.jsx":63860,"./pda_janitor.jsx":27791,"./pda_main_menu.jsx":20167,"./pda_manifest.jsx":59801,"./pda_medical.jsx":78257,"./pda_messenger.jsx":9033,"./pda_news.jsx":29835,"./pda_notekeeper.jsx":18692,"./pda_power.jsx":37347,"./pda_security.jsx":56520,"./pda_signaller.jsx":85617,"./pda_status_display.jsx":3707,"./pda_supply.jsx":77099};function a(r){var o=n(r);return t(o)}function n(r){if(!t.o(e,r)){var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}return e[r]}a.keys=function(){return Object.keys(e)},a.resolve=n,S.exports=a,a.id=7339},32054:function(S,y,t){var e={"./AICard":15454,"./AICard.jsx":15454,"./APC":85866,"./APC.jsx":85866,"./AccountsTerminal":95054,"./AccountsTerminal.jsx":95054,"./AdminShuttleController":12704,"./AdminShuttleController.tsx":12704,"./AdminTicketPanel":61633,"./AdminTicketPanel.tsx":61633,"./AgentCard":43587,"./AgentCard.tsx":43587,"./AiAirlock":56307,"./AiAirlock.jsx":56307,"./AiRestorer":43108,"./AiRestorer.jsx":43108,"./AiSupermatter":75160,"./AiSupermatter.jsx":75160,"./AirAlarm":42537,"./AirAlarm.jsx":42537,"./AlertModal":63397,"./AlertModal.tsx":63397,"./AlgaeFarm":140,"./AlgaeFarm.jsx":140,"./AppearanceChanger":14600,"./AppearanceChanger.jsx":14600,"./ArcadeBattle":8536,"./ArcadeBattle.jsx":8536,"./AreaScrubberControl":59854,"./AreaScrubberControl.jsx":59854,"./AssemblyInfrared":20251,"./AssemblyInfrared.tsx":20251,"./AssemblyProx":54349,"./AssemblyProx.jsx":54349,"./AssemblyTimer":8327,"./AssemblyTimer.jsx":8327,"./AtmosAlertConsole":49775,"./AtmosAlertConsole.jsx":49775,"./AtmosControl":42623,"./AtmosControl.jsx":42623,"./AtmosFilter":45440,"./AtmosFilter.jsx":45440,"./AtmosMixer":15147,"./AtmosMixer.jsx":15147,"./Autolathe":80281,"./Autolathe.jsx":80281,"./Batteryrack":330,"./Batteryrack.jsx":330,"./BeaconLocator":55094,"./BeaconLocator.jsx":55094,"./Biogenerator":79371,"./Biogenerator.jsx":79371,"./BodyDesigner":90233,"./BodyDesigner.jsx":90233,"./BodyScanner":45922,"./BodyScanner.jsx":45922,"./BombTester":57199,"./BombTester.jsx":57199,"./BotanyEditor":95678,"./BotanyEditor.jsx":95678,"./BotanyIsolator":72384,"./BotanyIsolator.jsx":72384,"./BrigTimer":11515,"./BrigTimer.jsx":11515,"./CameraConsole":96524,"./CameraConsole.jsx":96524,"./Canister":60997,"./Canister.jsx":60997,"./Canvas":9550,"./Canvas.jsx":9550,"./CasinoPrizeDispenser":76322,"./CasinoPrizeDispenser.jsx":76322,"./CharacterDirectory":36136,"./CharacterDirectory.jsx":36136,"./CheckboxInput":98875,"./CheckboxInput.tsx":98875,"./ChemDispenser":6908,"./ChemDispenser.jsx":6908,"./ChemMaster":75191,"./ChemMaster.jsx":75191,"./ClawMachine":38880,"./ClawMachine.jsx":38880,"./Cleanbot":8412,"./Cleanbot.jsx":8412,"./CloningConsole":54983,"./CloningConsole.jsx":54983,"./ColorMate":40200,"./ColorMate.tsx":40200,"./CommunicationsConsole":48022,"./CommunicationsConsole.jsx":48022,"./Communicator":80273,"./Communicator.tsx":80273,"./ComputerFabricator":90734,"./ComputerFabricator.jsx":90734,"./CookingAppliance":79415,"./CookingAppliance.jsx":79415,"./CrewManifest":41608,"./CrewManifest.tsx":41608,"./CrewMonitor":93643,"./CrewMonitor.jsx":93643,"./Cryo":84097,"./Cryo.jsx":84097,"./CryoStorage":38210,"./CryoStorage.jsx":38210,"./CryoStorageVr":52102,"./CryoStorageVr.jsx":52102,"./DNAForensics":84909,"./DNAForensics.jsx":84909,"./DNAModifier":13732,"./DNAModifier.jsx":13732,"./DestinationTagger":4910,"./DestinationTagger.jsx":4910,"./DiseaseSplicer":18426,"./DiseaseSplicer.jsx":18426,"./DishIncubator":44421,"./DishIncubator.jsx":44421,"./DisposalBin":26598,"./DisposalBin.tsx":26598,"./DroneConsole":26763,"./DroneConsole.jsx":26763,"./EmbeddedController":74680,"./EmbeddedController.jsx":74680,"./EntityNarrate":37624,"./EntityNarrate.tsx":37624,"./ExonetNode":36907,"./ExonetNode.tsx":36907,"./ExosuitFabricator":47926,"./ExosuitFabricator.jsx":47926,"./Farmbot":83151,"./Farmbot.jsx":83151,"./Fax":60381,"./Fax.jsx":60381,"./FileCabinet":90646,"./FileCabinet.jsx":90646,"./Floorbot":67747,"./Floorbot.jsx":67747,"./GasPump":79697,"./GasPump.jsx":79697,"./GasTemperatureSystem":26590,"./GasTemperatureSystem.jsx":26590,"./GeneralAtmoControl":27444,"./GeneralAtmoControl.jsx":27444,"./GeneralRecords":16624,"./GeneralRecords.jsx":16624,"./Gps":76392,"./Gps.jsx":76392,"./GravityGenerator":78535,"./GravityGenerator.jsx":78535,"./GuestPass":4171,"./GuestPass.jsx":4171,"./GyrotronControl":92753,"./GyrotronControl.tsx":92753,"./Holodeck":75825,"./Holodeck.jsx":75825,"./ICAssembly":79258,"./ICAssembly.jsx":79258,"./ICCircuit":36585,"./ICCircuit.jsx":36585,"./ICDetailer":43040,"./ICDetailer.jsx":43040,"./ICPrinter":93204,"./ICPrinter.jsx":93204,"./IDCard":7627,"./IDCard.jsx":7627,"./IdentificationComputer":17575,"./IdentificationComputer.jsx":17575,"./InventoryPanel":15654,"./InventoryPanel.tsx":15654,"./InventoryPanelHuman":54577,"./InventoryPanelHuman.jsx":54577,"./IsolationCentrifuge":46382,"./IsolationCentrifuge.jsx":46382,"./JanitorCart":58189,"./JanitorCart.jsx":58189,"./Jukebox":11434,"./Jukebox.jsx":11434,"./LawManager":58503,"./LawManager.jsx":58503,"./ListInputModal":93455,"./ListInputModal.tsx":93455,"./LookingGlass":4515,"./LookingGlass.jsx":4515,"./MechaControlConsole":17542,"./MechaControlConsole.jsx":17542,"./Medbot":97311,"./Medbot.jsx":97311,"./MedicalRecords":98659,"./MedicalRecords.jsx":98659,"./MentorTicketPanel":31825,"./MentorTicketPanel.tsx":31825,"./MessageMonitor":68607,"./MessageMonitor.jsx":68607,"./Microwave":91015,"./Microwave.jsx":91015,"./MiningOreProcessingConsole":46258,"./MiningOreProcessingConsole.jsx":46258,"./MiningStackingConsole":1703,"./MiningStackingConsole.jsx":1703,"./MiningVendor":25620,"./MiningVendor.jsx":25620,"./MobSpawner":83326,"./MobSpawner.tsx":83326,"./MuleBot":44372,"./MuleBot.tsx":44372,"./NIF":72207,"./NIF.jsx":72207,"./NTNetRelay":96576,"./NTNetRelay.jsx":96576,"./Newscaster":80707,"./Newscaster.jsx":80707,"./NoticeBoard":58942,"./NoticeBoard.tsx":58942,"./NtosAccessDecrypter":90782,"./NtosAccessDecrypter.tsx":90782,"./NtosArcade":26042,"./NtosArcade.jsx":26042,"./NtosAtmosControl":30873,"./NtosAtmosControl.tsx":30873,"./NtosCameraConsole":44072,"./NtosCameraConsole.jsx":44072,"./NtosCommunicationsConsole":70568,"./NtosCommunicationsConsole.tsx":70568,"./NtosConfiguration":78162,"./NtosConfiguration.jsx":78162,"./NtosCrewManifest":62260,"./NtosCrewManifest.tsx":62260,"./NtosCrewMonitor":12941,"./NtosCrewMonitor.tsx":12941,"./NtosDigitalWarrant":657,"./NtosDigitalWarrant.jsx":657,"./NtosEmailAdministration":5070,"./NtosEmailAdministration.jsx":5070,"./NtosEmailClient":23969,"./NtosEmailClient.jsx":23969,"./NtosFileManager":86411,"./NtosFileManager.jsx":86411,"./NtosIdentificationComputer":96665,"./NtosIdentificationComputer.tsx":96665,"./NtosMain":44801,"./NtosMain.jsx":44801,"./NtosNetChat":59895,"./NtosNetChat.jsx":59895,"./NtosNetDos":62607,"./NtosNetDos.jsx":62607,"./NtosNetDownloader":10864,"./NtosNetDownloader.jsx":10864,"./NtosNetMonitor":26055,"./NtosNetMonitor.jsx":26055,"./NtosNetTransfer":10124,"./NtosNetTransfer.jsx":10124,"./NtosNewsBrowser":90227,"./NtosNewsBrowser.jsx":90227,"./NtosOvermapNavigation":39360,"./NtosOvermapNavigation.tsx":39360,"./NtosPowerMonitor":62243,"./NtosPowerMonitor.tsx":62243,"./NtosRCON":12638,"./NtosRCON.tsx":12638,"./NtosRevelation":88475,"./NtosRevelation.tsx":88475,"./NtosShutoffMonitor":17609,"./NtosShutoffMonitor.tsx":17609,"./NtosStationAlertConsole":86431,"./NtosStationAlertConsole.tsx":86431,"./NtosSupermatterMonitor":21396,"./NtosSupermatterMonitor.tsx":21396,"./NtosUAV":77248,"./NtosUAV.jsx":77248,"./NtosWordProcessor":61728,"./NtosWordProcessor.jsx":61728,"./NumberInputModal":10006,"./NumberInputModal.tsx":10006,"./OmniFilter":953,"./OmniFilter.tsx":953,"./OmniMixer":75520,"./OmniMixer.tsx":75520,"./OperatingComputer":37534,"./OperatingComputer.jsx":37534,"./OvermapDisperser":17511,"./OvermapDisperser.jsx":17511,"./OvermapEngines":98203,"./OvermapEngines.jsx":98203,"./OvermapFull":79061,"./OvermapFull.tsx":79061,"./OvermapHelm":60224,"./OvermapHelm.jsx":60224,"./OvermapNavigation":15156,"./OvermapNavigation.tsx":15156,"./OvermapShieldGenerator":20576,"./OvermapShieldGenerator.jsx":20576,"./OvermapShipSensors":89501,"./OvermapShipSensors.jsx":89501,"./ParticleAccelerator":82425,"./ParticleAccelerator.tsx":82425,"./PartsLathe":92130,"./PartsLathe.jsx":92130,"./PathogenicIsolator":55725,"./PathogenicIsolator.jsx":55725,"./Pda":34557,"./Pda.jsx":34557,"./PersonalCrafting":47676,"./PersonalCrafting.jsx":47676,"./PetrificationInterface":25116,"./PetrificationInterface.jsx":25116,"./Photocopier":75226,"./Photocopier.jsx":75226,"./PipeDispenser":23393,"./PipeDispenser.jsx":23393,"./PlantAnalyzer":28165,"./PlantAnalyzer.jsx":28165,"./PlayerNotes":73304,"./PlayerNotes.tsx":73304,"./PlayerNotesInfo":71184,"./PlayerNotesInfo.tsx":71184,"./PointDefenseControl":17031,"./PointDefenseControl.tsx":17031,"./PortableGenerator":26228,"./PortableGenerator.jsx":26228,"./PortablePump":60185,"./PortablePump.jsx":60185,"./PortableScrubber":38605,"./PortableScrubber.tsx":38605,"./PortableTurret":81537,"./PortableTurret.jsx":81537,"./PowerMonitor":16421,"./PowerMonitor.jsx":16421,"./PrecisionEditor":98071,"./PrecisionEditor.jsx":98071,"./PressureRegulator":63054,"./PressureRegulator.jsx":63054,"./PrisonerManagement":21143,"./PrisonerManagement.jsx":21143,"./RCON":72128,"./RCON.jsx":72128,"./RIGSuit":37089,"./RIGSuit.jsx":37089,"./Radio":51065,"./Radio.jsx":51065,"./RapidPipeDispenser":62133,"./RapidPipeDispenser.jsx":62133,"./RequestConsole":53112,"./RequestConsole.jsx":53112,"./ResearchConsole":51634,"./ResearchConsole.jsx":51634,"./ResearchServerController":98296,"./ResearchServerController.jsx":98296,"./ResleevingConsole":65477,"./ResleevingConsole.jsx":65477,"./ResleevingPod":26967,"./ResleevingPod.jsx":26967,"./RoboticsControlConsole":74367,"./RoboticsControlConsole.jsx":74367,"./RogueZones":35401,"./RogueZones.jsx":35401,"./RustCoreMonitor":45653,"./RustCoreMonitor.tsx":45653,"./RustFuelControl":39899,"./RustFuelControl.tsx":39899,"./Secbot":19208,"./Secbot.jsx":19208,"./SecureSafe":46226,"./SecureSafe.jsx":46226,"./SecurityRecords":34200,"./SecurityRecords.jsx":34200,"./SeedStorage":2930,"./SeedStorage.jsx":2930,"./ShieldCapacitor":7249,"./ShieldCapacitor.jsx":7249,"./ShieldGenerator":28010,"./ShieldGenerator.jsx":28010,"./ShutoffMonitor":52735,"./ShutoffMonitor.jsx":52735,"./ShuttleControl":72736,"./ShuttleControl.jsx":72736,"./Signaler":42053,"./Signaler.tsx":42053,"./Sleeper":30636,"./Sleeper.jsx":30636,"./SmartVend":438,"./SmartVend.jsx":438,"./Smes":99278,"./Smes.jsx":99278,"./SolarControl":42456,"./SolarControl.jsx":42456,"./SpaceHeater":96031,"./SpaceHeater.tsx":96031,"./Stack":98932,"./Stack.jsx":98932,"./StarcasterCh":59555,"./StarcasterCh.jsx":59555,"./StationAlertConsole":47441,"./StationAlertConsole.jsx":47441,"./StationBlueprints":89052,"./StationBlueprints.jsx":89052,"./StockExchange":38501,"./StockExchange.jsx":38501,"./SuitCycler":21665,"./SuitCycler.jsx":21665,"./SuitStorageUnit":42688,"./SuitStorageUnit.jsx":42688,"./SupermatterMonitor":67186,"./SupermatterMonitor.jsx":67186,"./SupplyConsole":85308,"./SupplyConsole.jsx":85308,"./TEGenerator":64460,"./TEGenerator.jsx":64460,"./Tank":62646,"./Tank.jsx":62646,"./TankDispenser":87867,"./TankDispenser.tsx":87867,"./TelecommsLogBrowser":32481,"./TelecommsLogBrowser.jsx":32481,"./TelecommsMachineBrowser":25058,"./TelecommsMachineBrowser.jsx":25058,"./TelecommsMultitoolMenu":45760,"./TelecommsMultitoolMenu.jsx":45760,"./Teleporter":2268,"./Teleporter.tsx":2268,"./TelesciConsole":33756,"./TelesciConsole.jsx":33756,"./TextInputModal":27418,"./TextInputModal.tsx":27418,"./TimeClock":98143,"./TimeClock.jsx":98143,"./TraitTutorial":6048,"./TraitTutorial.tsx":6048,"./TransferValve":81267,"./TransferValve.tsx":81267,"./TurbineControl":96734,"./TurbineControl.jsx":96734,"./Turbolift":44027,"./Turbolift.jsx":44027,"./Uplink":7829,"./Uplink.jsx":7829,"./Vending":52535,"./Vending.jsx":52535,"./VolumePanel":49214,"./VolumePanel.tsx":49214,"./VorePanel":27620,"./VorePanel.jsx":27620,"./VorePanelExport":85688,"./VorePanelExport.tsx":85688,"./Wires":8918,"./Wires.jsx":8918,"./XenoarchArtifactAnalyzer":75044,"./XenoarchArtifactAnalyzer.tsx":75044,"./XenoarchArtifactHarvester":42744,"./XenoarchArtifactHarvester.jsx":42744,"./XenoarchDepthScanner":52187,"./XenoarchDepthScanner.tsx":52187,"./XenoarchHandheldPowerUtilizer":66263,"./XenoarchHandheldPowerUtilizer.tsx":66263,"./XenoarchReplicator":57563,"./XenoarchReplicator.tsx":57563,"./XenoarchReplicator_clothing_vr":37591,"./XenoarchReplicator_clothing_vr.jsx":37591,"./XenoarchReplicator_voremob_vr":50197,"./XenoarchReplicator_voremob_vr.jsx":50197,"./XenoarchSpectrometer":82927,"./XenoarchSpectrometer.jsx":82927,"./XenoarchSuspension":73999,"./XenoarchSuspension.tsx":73999,"./chompstation/Changelog":4733,"./chompstation/Changelog.jsx":4733,"./chompstation/CharacterDirectory":70018,"./chompstation/CharacterDirectory.jsx":70018,"./chompstation/ChemMaster":38037,"./chompstation/ChemMaster.jsx":38037,"./chompstation/ChemSynthesizer":87517,"./chompstation/ChemSynthesizer.jsx":87517,"./chompstation/ColorMate":83240,"./chompstation/ColorMate.jsx":83240,"./chompstation/FilingCabinet":87799,"./chompstation/FilingCabinet.jsx":87799,"./chompstation/ICAssembly":52948,"./chompstation/ICAssembly.jsx":52948,"./chompstation/TguiFeedback":75786,"./chompstation/TguiFeedback.tsx":75786,"./chompstation/Ticket":52822,"./chompstation/Ticket.tsx":52822,"./chompstation/TicketChat":27300,"./chompstation/TicketChat.tsx":27300,"./chompstation/TicketsPanel":15261,"./chompstation/TicketsPanel.tsx":15261,"./chompstation/VorePanel":14378,"./chompstation/VorePanel.jsx":14378,"./chompstation/VorePanelExport":46738,"./chompstation/VorePanelExport.tsx":46738,"./common/AtmosControls":10652,"./common/AtmosControls.jsx":10652,"./common/BeakerContents":62386,"./common/BeakerContents.jsx":62386,"./common/ComplexModal":5425,"./common/ComplexModal.jsx":5425,"./common/FullscreenNotice":13221,"./common/FullscreenNotice.jsx":13221,"./common/InputButtons":12035,"./common/InputButtons.tsx":12035,"./common/InterfaceLockNoticeBox":15665,"./common/InterfaceLockNoticeBox.jsx":15665,"./common/Loader":18513,"./common/Loader.tsx":18513,"./common/LoginInfo":71451,"./common/LoginInfo.jsx":71451,"./common/LoginScreen":1887,"./common/LoginScreen.jsx":1887,"./common/Mining":4418,"./common/Mining.jsx":4418,"./common/Overmap":7240,"./common/Overmap.jsx":7240,"./common/PortableAtmos":62681,"./common/PortableAtmos.jsx":62681,"./common/RankIcon":89863,"./common/RankIcon.jsx":89863,"./common/TemporaryNotice":82489,"./common/TemporaryNotice.jsx":82489,"./pAIAtmos":12578,"./pAIAtmos.jsx":12578,"./pAIDirectives":41534,"./pAIDirectives.tsx":41534,"./pAIDoorjack":81815,"./pAIDoorjack.jsx":81815,"./pAIInterface":73483,"./pAIInterface.tsx":73483,"./pAIMedrecords":90474,"./pAIMedrecords.jsx":90474,"./pAISecrecords":20165,"./pAISecrecords.jsx":20165,"./pda/pda_atmos_scan":63860,"./pda/pda_atmos_scan.jsx":63860,"./pda/pda_janitor":27791,"./pda/pda_janitor.jsx":27791,"./pda/pda_main_menu":20167,"./pda/pda_main_menu.jsx":20167,"./pda/pda_manifest":59801,"./pda/pda_manifest.jsx":59801,"./pda/pda_medical":78257,"./pda/pda_medical.jsx":78257,"./pda/pda_messenger":9033,"./pda/pda_messenger.jsx":9033,"./pda/pda_news":29835,"./pda/pda_news.jsx":29835,"./pda/pda_notekeeper":18692,"./pda/pda_notekeeper.jsx":18692,"./pda/pda_power":37347,"./pda/pda_power.jsx":37347,"./pda/pda_security":56520,"./pda/pda_security.jsx":56520,"./pda/pda_signaller":85617,"./pda/pda_signaller.jsx":85617,"./pda/pda_status_display":3707,"./pda/pda_status_display.jsx":3707,"./pda/pda_supply":77099,"./pda/pda_supply.jsx":77099};function a(r){var o=n(r);return t(o)}function n(r){if(!t.o(e,r)){var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}return e[r]}a.keys=function(){return Object.keys(e)},a.resolve=n,S.exports=a,a.id=32054},4085:function(S,y,t){var e={"./Blink.stories.js":71620,"./BlockQuote.stories.js":35461,"./Box.stories.js":2923,"./Button.stories.js":73878,"./ByondUi.stories.js":75764,"./Collapsible.stories.js":52986,"./Flex.stories.js":70233,"./Input.stories.js":41650,"./LabeledList.stories.js":97265,"./Popper.stories.js":59964,"./ProgressBar.stories.js":52438,"./Stack.stories.js":98022,"./Storage.stories.js":37643,"./Tabs.stories.js":27546,"./Themes.stories.js":69308,"./Tooltip.stories.js":36173};function a(r){var o=n(r);return t(o)}function n(r){if(!t.o(e,r)){var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}return e[r]}a.keys=function(){return Object.keys(e)},a.resolve=n,S.exports=a,a.id=4085},46858:function(S,y,t){"use strict";t(72309),t(99049),t(83830),t(34511),t(38858),t(78921),t(89078),t(68792),t(82179),t(2911),t(89461),t(72427),t(3058),t(53547),t(29500),t(12558),t(63984),t(84237),t(61524),t(95069),t(94028),t(42889),t(4269),t(64369),t(63722),t(58859),t(65146),t(32064),t(60641),t(42407),t(9324),t(70543),t(39640),t(63437),t(33722),t(5936),t(95150),t(44468),t(14367),t(73764),t(38573),t(35184),t(61314),t(77321),t(44192),t(77404),t(44792),t(3532),t(69480),t(15660),t(80552),t(23071),t(50272),t(71420),t(57983),t(26267),t(41884),t(2193),t(19415),t(26075),t(31519),t(2663),t(24182),t(3874),t(71217),t(31999),t(91709),t(23381),t(64086),t(41009),t(15030),t(74302),t(87358),t(36660),t(15291),t(83840),t(61115),t(24388),t(48677),t(82299),t(55274),t(65231),t(29032),t(37963),t(53830),t(40999),t(9860),t(8384),t(18387),t(54355),t(10030),t(24130),t(82530),t(82985),t(4852),t(9063),t(25804),t(91977),t(7319),t(5754),t(87960),t(49254),t(66223),t(25540),t(26971),t(17879),t(44213),t(87042),t(94725),t(53275),t(16534),t(728),t(76035),t(18662),t(37181),t(60755),t(57407),t(35009),t(31232),t(50917),t(10951),t(38141),t(40248),t(30610),t(69297),t(38313),t(36237),t(87462),t(19334),t(9685),t(64951),t(97878),t(90506),t(37590),t(30693),t(36618),t(54367),t(32701),t(47009),t(52960),t(97141),t(31890),t(36032),t(95645),t(65884),t(74681),t(81270),t(89926),t(94787),t(39545),t(84585),t(78670),t(26251),t(73771),t(22746),t(18788),t(28523),t(83695),t(49698),t(10671),t(89714),t(13258),t(61967),t(81513),t(61413),t(87747),t(94052),t(28843),t(15541),t(16031),t(61374),t(55791),t(7647),t(4613),t(57989),t(83638),t(63695),t(69677),t(73707),t(51254),t(40076),t(72287),t(89250),t(65516),t(72388),t(21766),t(2666),t(93069),t(86504),t(29700),t(77024),t(26433),t(44657),t(48804),t(50056),t(41807),t(68e3),t(75298),t(85164),t(7223),t(16168),t(45225),t(81526),t(16344),t(58226),t(90904),t(26155),t(44544),t(68017),t(10599),t(6747),t(13252),t(23060),t(36786),t(15326),t(44292),t(96584),t(47746),t(42341),t(5672),t(24425),t(59145),t(19132),t(22800),t(15239),t(66574),t(31793),t(48061),t(63839),t(95210),t(12513),t(94586),t(48233),t(15586),t(1017),t(24247),t(98157),t(45231),t(56851),t(22864),t(35147),t(16837),t(51906),t(95846),t(8439),t(45117),t(53370),t(98208),t(70889)},21604:function(S,y,t){"use strict";var e=t(86015),a=t(71285),n=TypeError;S.exports=function(r){if(e(r))return r;throw new n(a(r)+" is not a function")}},82986:function(S,y,t){"use strict";var e=t(12203),a=t(71285),n=TypeError;S.exports=function(r){if(e(r))return r;throw new n(a(r)+" is not a constructor")}},85632:function(S,y,t){"use strict";var e=t(44619),a=String,n=TypeError;S.exports=function(r){if(e(r))return r;throw new n("Can't set "+a(r)+" as a prototype")}},25187:function(S,y,t){"use strict";var e=t(36197),a=t(56222),n=t(54263).f,r=e("unscopables"),o=Array.prototype;o[r]===void 0&&n(o,r,{configurable:!0,value:a(null)}),S.exports=function(m){o[r][m]=!0}},20039:function(S,y,t){"use strict";var e=t(52613).charAt;S.exports=function(a,n,r){return n+(r?e(a,n).length:1)}},86337:function(S,y,t){"use strict";var e=t(97131),a=TypeError;S.exports=function(n,r){if(e(r,n))return n;throw new a("Incorrect invocation")}},56937:function(S,y,t){"use strict";var e=t(38692),a=String,n=TypeError;S.exports=function(r){if(e(r))return r;throw new n(a(r)+" is not an object")}},13925:function(S){"use strict";S.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},61432:function(S,y,t){"use strict";var e=t(40724),a=t(97058),n=TypeError;S.exports=e(ArrayBuffer.prototype,"byteLength","get")||function(r){if(a(r)!=="ArrayBuffer")throw new n("ArrayBuffer expected");return r.byteLength}},6128:function(S,y,t){"use strict";var e=t(31702),a=t(61432),n=e(ArrayBuffer.prototype.slice);S.exports=function(r){if(a(r)!==0)return!1;try{return n(r,0,0),!1}catch(o){return!0}}},63514:function(S,y,t){"use strict";var e=t(48709);S.exports=e(function(){if(typeof ArrayBuffer=="function"){var a=new ArrayBuffer(8);Object.isExtensible(a)&&Object.defineProperty(a,"a",{value:8})}})},79374:function(S,y,t){"use strict";var e=t(4057),a=t(31702),n=t(40724),r=t(33418),o=t(6128),m=t(61432),b=t(75613),g=t(97386),d=e.structuredClone,f=e.ArrayBuffer,v=e.DataView,l=e.TypeError,c=Math.min,u=f.prototype,h=v.prototype,x=a(u.slice),j=n(u,"resizable","get"),p=n(u,"maxByteLength","get"),_=a(h.getInt8),E=a(h.setInt8);S.exports=(g||b)&&function(I,O,M){var D=m(I),A=O===void 0?D:r(O),B=!j||!j(I),U;if(o(I))throw new l("ArrayBuffer is detached");if(g&&(I=d(I,{transfer:[I]}),D===A&&(M||B)))return I;if(D>=A&&(!M||B))U=x(I,0,A);else{var L=M&&!B&&p?{maxByteLength:p(I)}:void 0;U=new f(A,L);for(var k=new v(I),Y=new v(U),V=c(A,D),H=0;H<V;H++)E(Y,H,_(k,H))}return g||b(I),U}},22162:function(S,y,t){"use strict";var e=t(13925),a=t(79866),n=t(4057),r=t(86015),o=t(38692),m=t(23679),b=t(87509),g=t(71285),d=t(10137),f=t(93614),v=t(86940),l=t(97131),c=t(745),u=t(21237),h=t(36197),x=t(46998),j=t(97951),p=j.enforce,_=j.get,E=n.Int8Array,I=E&&E.prototype,O=n.Uint8ClampedArray,M=O&&O.prototype,D=E&&c(E),A=I&&c(I),B=Object.prototype,U=n.TypeError,L=h("toStringTag"),k=x("TYPED_ARRAY_TAG"),Y="TypedArrayConstructor",V=e&&!!u&&b(n.opera)!=="Opera",H=!1,N,q,G,Q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},Z=function(be){if(!o(be))return!1;var ye=b(be);return ye==="DataView"||m(Q,ye)||m(F,ye)},oe=function(be){var ye=c(be);if(o(ye)){var Te=_(ye);return Te&&m(Te,Y)?Te[Y]:oe(ye)}},le=function(be){if(!o(be))return!1;var ye=b(be);return m(Q,ye)||m(F,ye)},ue=function(be){if(le(be))return be;throw new U("Target is not a typed array")},he=function(be){if(r(be)&&(!u||l(D,be)))return be;throw new U(g(be)+" is not a typed array constructor")},de=function(be,ye,Te,Ke){if(a){if(Te)for(var $e in Q){var We=n[$e];if(We&&m(We.prototype,be))try{delete We.prototype[be]}catch(Qe){try{We.prototype[be]=ye}catch(Ye){}}}(!A[be]||Te)&&f(A,be,Te?ye:V&&I[be]||ye,Ke)}},ve=function(be,ye,Te){var Ke,$e;if(a){if(u){if(Te){for(Ke in Q)if($e=n[Ke],$e&&m($e,be))try{delete $e[be]}catch(We){}}if(!D[be]||Te)try{return f(D,be,Te?ye:V&&D[be]||ye)}catch(We){}else return}for(Ke in Q)$e=n[Ke],$e&&(!$e[be]||Te)&&f($e,be,ye)}};for(N in Q)q=n[N],G=q&&q.prototype,G?p(G)[Y]=q:V=!1;for(N in F)q=n[N],G=q&&q.prototype,G&&(p(G)[Y]=q);if((!V||!r(D)||D===Function.prototype)&&(D=function(){throw new U("Incorrect invocation")},V))for(N in Q)n[N]&&u(n[N],D);if((!V||!A||A===B)&&(A=D.prototype,V))for(N in Q)n[N]&&u(n[N].prototype,A);if(V&&c(M)!==A&&u(M,A),a&&!m(A,L)){H=!0,v(A,L,{configurable:!0,get:function(){return o(this)?this[k]:void 0}});for(N in Q)n[N]&&d(n[N],k,N)}S.exports={NATIVE_ARRAY_BUFFER_VIEWS:V,TYPED_ARRAY_TAG:H&&k,aTypedArray:ue,aTypedArrayConstructor:he,exportTypedArrayMethod:de,exportTypedArrayStaticMethod:ve,getTypedArrayConstructor:oe,isView:Z,isTypedArray:le,TypedArray:D,TypedArrayPrototype:A}},67708:function(S,y,t){"use strict";var e=t(4057),a=t(31702),n=t(79866),r=t(13925),o=t(61820),m=t(10137),b=t(86940),g=t(3653),d=t(48709),f=t(86337),v=t(40201),l=t(19168),c=t(33418),u=t(35295),h=t(55740),x=t(745),j=t(21237),p=t(94915),_=t(45910),E=t(18841),I=t(98410),O=t(65889),M=t(97951),D=o.PROPER,A=o.CONFIGURABLE,B="ArrayBuffer",U="DataView",L="prototype",k="Wrong length",Y="Wrong index",V=M.getterFor(B),H=M.getterFor(U),N=M.set,q=e[B],G=q,Q=G&&G[L],F=e[U],Z=F&&F[L],oe=Object.prototype,le=e.Array,ue=e.RangeError,he=a(p),de=a([].reverse),ve=h.pack,pe=h.unpack,be=function(Ne){return[Ne&255]},ye=function(Ne){return[Ne&255,Ne>>8&255]},Te=function(Ne){return[Ne&255,Ne>>8&255,Ne>>16&255,Ne>>24&255]},Ke=function(Ne){return Ne[3]<<24|Ne[2]<<16|Ne[1]<<8|Ne[0]},$e=function(Ne){return ve(u(Ne),23,4)},We=function(Ne){return ve(Ne,52,8)},Qe=function(Ne,ke,we){b(Ne[L],ke,{configurable:!0,get:function(){return we(this)[ke]}})},Ye=function(Ne,ke,we,qe){var Je=H(Ne),lt=c(we),at=!!qe;if(lt+ke>Je.byteLength)throw new ue(Y);var Xt=Je.bytes,Wt=lt+Je.byteOffset,zt=_(Xt,Wt,Wt+ke);return at?zt:de(zt)},mt=function(Ne,ke,we,qe,Je,lt){var at=H(Ne),Xt=c(we),Wt=qe(+Je),zt=!!lt;if(Xt+ke>at.byteLength)throw new ue(Y);for(var bt=at.bytes,st=Xt+at.byteOffset,it=0;it<ke;it++)bt[st+it]=Wt[zt?it:ke-it-1]};if(!r)G=function(Ne){f(this,Q);var ke=c(Ne);N(this,{type:B,bytes:he(le(ke),0),byteLength:ke}),n||(this.byteLength=ke,this.detached=!1)},Q=G[L],F=function(Ne,ke,we){f(this,Z),f(Ne,Q);var qe=V(Ne),Je=qe.byteLength,lt=v(ke);if(lt<0||lt>Je)throw new ue("Wrong offset");if(we=we===void 0?Je-lt:l(we),lt+we>Je)throw new ue(k);N(this,{type:U,buffer:Ne,byteLength:we,byteOffset:lt,bytes:qe.bytes}),n||(this.buffer=Ne,this.byteLength=we,this.byteOffset=lt)},Z=F[L],n&&(Qe(G,"byteLength",V),Qe(F,"buffer",H),Qe(F,"byteLength",H),Qe(F,"byteOffset",H)),g(Z,{getInt8:function(Ne){return Ye(this,1,Ne)[0]<<24>>24},getUint8:function(Ne){return Ye(this,1,Ne)[0]},getInt16:function(Ne){var ke=Ye(this,2,Ne,arguments.length>1?arguments[1]:!1);return(ke[1]<<8|ke[0])<<16>>16},getUint16:function(Ne){var ke=Ye(this,2,Ne,arguments.length>1?arguments[1]:!1);return ke[1]<<8|ke[0]},getInt32:function(Ne){return Ke(Ye(this,4,Ne,arguments.length>1?arguments[1]:!1))},getUint32:function(Ne){return Ke(Ye(this,4,Ne,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Ne){return pe(Ye(this,4,Ne,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Ne){return pe(Ye(this,8,Ne,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Ne,ke){mt(this,1,Ne,be,ke)},setUint8:function(Ne,ke){mt(this,1,Ne,be,ke)},setInt16:function(Ne,ke){mt(this,2,Ne,ye,ke,arguments.length>2?arguments[2]:!1)},setUint16:function(Ne,ke){mt(this,2,Ne,ye,ke,arguments.length>2?arguments[2]:!1)},setInt32:function(Ne,ke){mt(this,4,Ne,Te,ke,arguments.length>2?arguments[2]:!1)},setUint32:function(Ne,ke){mt(this,4,Ne,Te,ke,arguments.length>2?arguments[2]:!1)},setFloat32:function(Ne,ke){mt(this,4,Ne,$e,ke,arguments.length>2?arguments[2]:!1)},setFloat64:function(Ne,ke){mt(this,8,Ne,We,ke,arguments.length>2?arguments[2]:!1)}});else{var vt=D&&q.name!==B;!d(function(){q(1)})||!d(function(){new q(-1)})||d(function(){return new q,new q(1.5),new q(NaN),q.length!==1||vt&&!A})?(G=function(Ne){return f(this,Q),E(new q(c(Ne)),this,G)},G[L]=Q,Q.constructor=G,I(G,q)):vt&&A&&m(q,"name",B),j&&x(Z)!==oe&&j(Z,oe);var ht=new F(new G(2)),ot=a(Z.setInt8);ht.setInt8(0,2147483648),ht.setInt8(1,2147483649),(ht.getInt8(0)||!ht.getInt8(1))&&g(Z,{setInt8:function(Ne,ke){ot(this,Ne,ke<<24>>24)},setUint8:function(Ne,ke){ot(this,Ne,ke<<24>>24)}},{unsafe:!0})}O(G,B),O(F,U),S.exports={ArrayBuffer:G,DataView:F}},57531:function(S,y,t){"use strict";var e=t(28071),a=t(50252),n=t(28676),r=t(40736),o=Math.min;S.exports=[].copyWithin||function(b,g){var d=e(this),f=n(d),v=a(b,f),l=a(g,f),c=arguments.length>2?arguments[2]:void 0,u=o((c===void 0?f:a(c,f))-l,f-v),h=1;for(l<v&&v<l+u&&(h=-1,l+=u-1,v+=u-1);u-- >0;)l in d?d[v]=d[l]:r(d,v),v+=h,l+=h;return d}},94915:function(S,y,t){"use strict";var e=t(28071),a=t(50252),n=t(28676);S.exports=function(o){for(var m=e(this),b=n(m),g=arguments.length,d=a(g>1?arguments[1]:void 0,b),f=g>2?arguments[2]:void 0,v=f===void 0?b:a(f,b);v>d;)m[d++]=o;return m}},63525:function(S,y,t){"use strict";var e=t(3903).forEach,a=t(8932),n=a("forEach");S.exports=n?[].forEach:function(o){return e(this,o,arguments.length>1?arguments[1]:void 0)}},8676:function(S,y,t){"use strict";var e=t(28676);S.exports=function(a,n,r){for(var o=0,m=arguments.length>2?r:e(n),b=new a(m);m>o;)b[o]=n[o++];return b}},78594:function(S,y,t){"use strict";var e=t(79350),a=t(17523),n=t(28071),r=t(99905),o=t(84327),m=t(12203),b=t(28676),g=t(82386),d=t(8507),f=t(5461),v=Array;S.exports=function(c){var u=n(c),h=m(this),x=arguments.length,j=x>1?arguments[1]:void 0,p=j!==void 0;p&&(j=e(j,x>2?arguments[2]:void 0));var _=f(u),E=0,I,O,M,D,A,B;if(_&&!(this===v&&o(_)))for(D=d(u,_),A=D.next,O=h?new this:[];!(M=a(A,D)).done;E++)B=p?r(D,j,[M.value,E],!0):M.value,g(O,E,B);else for(I=b(u),O=h?new this(I):v(I);I>E;E++)B=p?j(u[E],E):u[E],g(O,E,B);return O.length=E,O}},47919:function(S,y,t){"use strict";var e=t(67995),a=t(50252),n=t(28676),r=function(m){return function(b,g,d){var f=e(b),v=n(f);if(v===0)return!m&&-1;var l=a(d,v),c;if(m&&g!==g){for(;v>l;)if(c=f[l++],c!==c)return!0}else for(;v>l;l++)if((m||l in f)&&f[l]===g)return m||l||0;return!m&&-1}};S.exports={includes:r(!0),indexOf:r(!1)}},29401:function(S,y,t){"use strict";var e=t(79350),a=t(4949),n=t(28071),r=t(28676),o=function(b){var g=b===1;return function(d,f,v){for(var l=n(d),c=a(l),u=r(c),h=e(f,v),x,j;u-- >0;)if(x=c[u],j=h(x,u,l),j)switch(b){case 0:return x;case 1:return u}return g?-1:void 0}};S.exports={findLast:o(0),findLastIndex:o(1)}},3903:function(S,y,t){"use strict";var e=t(79350),a=t(31702),n=t(4949),r=t(28071),o=t(28676),m=t(24067),b=a([].push),g=function(f){var v=f===1,l=f===2,c=f===3,u=f===4,h=f===6,x=f===7,j=f===5||h;return function(p,_,E,I){for(var O=r(p),M=n(O),D=o(M),A=e(_,E),B=0,U=I||m,L=v?U(p,D):l||x?U(p,0):void 0,k,Y;D>B;B++)if((j||B in M)&&(k=M[B],Y=A(k,B,O),f))if(v)L[B]=Y;else if(Y)switch(f){case 3:return!0;case 5:return k;case 6:return B;case 2:b(L,k)}else switch(f){case 4:return!1;case 7:b(L,k)}return h?-1:c||u?u:L}};S.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},36929:function(S,y,t){"use strict";var e=t(68143),a=t(67995),n=t(40201),r=t(28676),o=t(8932),m=Math.min,b=[].lastIndexOf,g=!!b&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),f=g||!d;S.exports=f?function(l){if(g)return e(b,this,arguments)||0;var c=a(this),u=r(c);if(u===0)return-1;var h=u-1;for(arguments.length>1&&(h=m(h,n(arguments[1]))),h<0&&(h=u+h);h>=0;h--)if(h in c&&c[h]===l)return h||0;return-1}:b},12375:function(S,y,t){"use strict";var e=t(48709),a=t(36197),n=t(65510),r=a("species");S.exports=function(o){return n>=51||!e(function(){var m=[],b=m.constructor={};return b[r]=function(){return{foo:1}},m[o](Boolean).foo!==1})}},8932:function(S,y,t){"use strict";var e=t(48709);S.exports=function(a,n){var r=[][a];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}},71728:function(S,y,t){"use strict";var e=t(21604),a=t(28071),n=t(4949),r=t(28676),o=TypeError,m="Reduce of empty array with no initial value",b=function(d){return function(f,v,l,c){var u=a(f),h=n(u),x=r(u);if(e(v),x===0&&l<2)throw new o(m);var j=d?x-1:0,p=d?-1:1;if(l<2)for(;;){if(j in h){c=h[j],j+=p;break}if(j+=p,d?j<0:x<=j)throw new o(m)}for(;d?j>=0:x>j;j+=p)j in h&&(c=v(c,h[j],j,u));return c}};S.exports={left:b(!1),right:b(!0)}},66501:function(S,y,t){"use strict";function e(b,g){return g!=null&&typeof Symbol!="undefined"&&g[Symbol.hasInstance]?!!g[Symbol.hasInstance](b):b instanceof g}var a=t(79866),n=t(40686),r=TypeError,o=Object.getOwnPropertyDescriptor,m=a&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(b){return e(b,TypeError)}}();S.exports=m?function(b,g){if(n(b)&&!o(b,"length").writable)throw new r("Cannot set read only .length");return b.length=g}:function(b,g){return b.length=g}},45910:function(S,y,t){"use strict";var e=t(31702);S.exports=e([].slice)},34326:function(S,y,t){"use strict";var e=t(45910),a=Math.floor,n=function(o,m){var b=o.length;if(b<8)for(var g=1,d,f;g<b;){for(f=g,d=o[g];f&&m(o[f-1],d)>0;)o[f]=o[--f];f!==g++&&(o[f]=d)}else for(var v=a(b/2),l=n(e(o,0,v),m),c=n(e(o,v),m),u=l.length,h=c.length,x=0,j=0;x<u||j<h;)o[x+j]=x<u&&j<h?m(l[x],c[j])<=0?l[x++]:c[j++]:x<u?l[x++]:c[j++];return o};S.exports=n},23379:function(S,y,t){"use strict";var e=t(40686),a=t(12203),n=t(38692),r=t(36197),o=r("species"),m=Array;S.exports=function(b){var g;return e(b)&&(g=b.constructor,a(g)&&(g===m||e(g.prototype))?g=void 0:n(g)&&(g=g[o],g===null&&(g=void 0))),g===void 0?m:g}},24067:function(S,y,t){"use strict";var e=t(23379);S.exports=function(a,n){return new(e(a))(n===0?0:n)}},43078:function(S,y,t){"use strict";var e=t(28676);S.exports=function(a,n){for(var r=e(a),o=new n(r),m=0;m<r;m++)o[m]=a[r-m-1];return o}},70574:function(S,y,t){"use strict";var e=t(28676),a=t(40201),n=RangeError;S.exports=function(r,o,m,b){var g=e(r),d=a(m),f=d<0?g+d:d;if(f>=g||f<0)throw new n("Incorrect index");for(var v=new o(g),l=0;l<g;l++)v[l]=l===f?b:r[l];return v}},99905:function(S,y,t){"use strict";var e=t(56937),a=t(68437);S.exports=function(n,r,o,m){try{return m?r(e(o)[0],o[1]):r(o)}catch(b){a(n,"throw",b)}}},45718:function(S,y,t){"use strict";var e=t(36197),a=e("iterator"),n=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){n=!0}};o[a]=function(){return this},Array.from(o,function(){throw 2})}catch(m){}S.exports=function(m,b){try{if(!b&&!n)return!1}catch(f){return!1}var g=!1;try{var d={};d[a]=function(){return{next:function(){return{done:g=!0}}}},m(d)}catch(f){}return g}},97058:function(S,y,t){"use strict";var e=t(31702),a=e({}.toString),n=e("".slice);S.exports=function(r){return n(a(r),8,-1)}},87509:function(S,y,t){"use strict";var e=t(8038),a=t(86015),n=t(97058),r=t(36197),o=r("toStringTag"),m=Object,b=n(function(){return arguments}())==="Arguments",g=function(f,v){try{return f[v]}catch(l){}};S.exports=e?n:function(d){var f,v,l;return d===void 0?"Undefined":d===null?"Null":typeof(v=g(f=m(d),o))=="string"?v:b?n(f):(l=n(f))==="Object"&&a(f.callee)?"Arguments":l}},87912:function(S,y,t){"use strict";var e=t(56222),a=t(86940),n=t(3653),r=t(79350),o=t(86337),m=t(60819),b=t(87550),g=t(73930),d=t(71171),f=t(15623),v=t(79866),l=t(31565).fastKey,c=t(97951),u=c.set,h=c.getterFor;S.exports={getConstructor:function(j,p,_,E){var I=j(function(B,U){o(B,O),u(B,{type:p,index:e(null),first:void 0,last:void 0,size:0}),v||(B.size=0),m(U)||b(U,B[E],{that:B,AS_ENTRIES:_})}),O=I.prototype,M=h(p),D=function(U,L,k){var Y=M(U),V=A(U,L),H,N;return V?V.value=k:(Y.last=V={index:N=l(L,!0),key:L,value:k,previous:H=Y.last,next:void 0,removed:!1},Y.first||(Y.first=V),H&&(H.next=V),v?Y.size++:U.size++,N!=="F"&&(Y.index[N]=V)),U},A=function(U,L){var k=M(U),Y=l(L),V;if(Y!=="F")return k.index[Y];for(V=k.first;V;V=V.next)if(V.key===L)return V};return n(O,{clear:function(){for(var U=this,L=M(U),k=L.first;k;)k.removed=!0,k.previous&&(k.previous=k.previous.next=void 0),k=k.next;L.first=L.last=void 0,L.index=e(null),v?L.size=0:U.size=0},delete:function(B){var U=this,L=M(U),k=A(U,B);if(k){var Y=k.next,V=k.previous;delete L.index[k.index],k.removed=!0,V&&(V.next=Y),Y&&(Y.previous=V),L.first===k&&(L.first=Y),L.last===k&&(L.last=V),v?L.size--:U.size--}return!!k},forEach:function(U){for(var L=M(this),k=r(U,arguments.length>1?arguments[1]:void 0),Y;Y=Y?Y.next:L.first;)for(k(Y.value,Y.key,this);Y&&Y.removed;)Y=Y.previous},has:function(U){return!!A(this,U)}}),n(O,_?{get:function(U){var L=A(this,U);return L&&L.value},set:function(U,L){return D(this,U===0?0:U,L)}}:{add:function(U){return D(this,U=U===0?0:U,U)}}),v&&a(O,"size",{configurable:!0,get:function(){return M(this).size}}),I},setStrong:function(j,p,_){var E=p+" Iterator",I=h(p),O=h(E);g(j,p,function(M,D){u(this,{type:E,target:M,state:I(M),kind:D,last:void 0})},function(){for(var M=O(this),D=M.kind,A=M.last;A&&A.removed;)A=A.previous;return!M.target||!(M.last=A=A?A.next:M.state.first)?(M.target=void 0,d(void 0,!0)):d(D==="keys"?A.key:D==="values"?A.value:[A.key,A.value],!1)},_?"entries":"values",!_,!0),f(p)}}},30443:function(S,y,t){"use strict";var e=t(31702),a=t(3653),n=t(31565).getWeakData,r=t(86337),o=t(56937),m=t(60819),b=t(38692),g=t(87550),d=t(3903),f=t(23679),v=t(97951),l=v.set,c=v.getterFor,u=d.find,h=d.findIndex,x=e([].splice),j=0,p=function(O){return O.frozen||(O.frozen=new _)},_=function(){this.entries=[]},E=function(O,M){return u(O.entries,function(D){return D[0]===M})};_.prototype={get:function(O){var M=E(this,O);if(M)return M[1]},has:function(O){return!!E(this,O)},set:function(O,M){var D=E(this,O);D?D[1]=M:this.entries.push([O,M])},delete:function(I){var O=h(this.entries,function(M){return M[0]===I});return~O&&x(this.entries,O,1),!!~O}},S.exports={getConstructor:function(O,M,D,A){var B=O(function(Y,V){r(Y,U),l(Y,{type:M,id:j++,frozen:void 0}),m(V)||g(V,Y[A],{that:Y,AS_ENTRIES:D})}),U=B.prototype,L=c(M),k=function(V,H,N){var q=L(V),G=n(o(H),!0);return G===!0?p(q).set(H,N):G[q.id]=N,V};return a(U,{delete:function(Y){var V=L(this);if(!b(Y))return!1;var H=n(Y);return H===!0?p(V).delete(Y):H&&f(H,V.id)&&delete H[V.id]},has:function(V){var H=L(this);if(!b(V))return!1;var N=n(V);return N===!0?p(H).has(V):N&&f(N,H.id)}}),a(U,D?{get:function(V){var H=L(this);if(b(V)){var N=n(V);return N===!0?p(H).get(V):N?N[H.id]:void 0}},set:function(V,H){return k(this,V,H)}}:{add:function(V){return k(this,V,!0)}}),B}}},34722:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(31702),r=t(85246),o=t(93614),m=t(31565),b=t(87550),g=t(86337),d=t(86015),f=t(60819),v=t(38692),l=t(48709),c=t(45718),u=t(65889),h=t(18841);S.exports=function(x,j,p){var _=x.indexOf("Map")!==-1,E=x.indexOf("Weak")!==-1,I=_?"set":"add",O=a[x],M=O&&O.prototype,D=O,A={},B=function(q){var G=n(M[q]);o(M,q,q==="add"?function(F){return G(this,F===0?0:F),this}:q==="delete"?function(Q){return E&&!v(Q)?!1:G(this,Q===0?0:Q)}:q==="get"?function(F){return E&&!v(F)?void 0:G(this,F===0?0:F)}:q==="has"?function(F){return E&&!v(F)?!1:G(this,F===0?0:F)}:function(F,Z){return G(this,F===0?0:F,Z),this})},U=r(x,!d(O)||!(E||M.forEach&&!l(function(){new O().entries().next()})));if(U)D=p.getConstructor(j,x,_,I),m.enable();else if(r(x,!0)){var L=new D,k=L[I](E?{}:-0,1)!==L,Y=l(function(){L.has(1)}),V=c(function(N){new O(N)}),H=!E&&l(function(){for(var N=new O,q=5;q--;)N[I](q,q);return!N.has(-0)});V||(D=j(function(N,q){g(N,M);var G=h(new O,N,D);return f(q)||b(q,G[I],{that:G,AS_ENTRIES:_}),G}),D.prototype=M,M.constructor=D),(Y||H)&&(B("delete"),B("has"),_&&B("get")),(H||k)&&B(I),E&&M.clear&&delete M.clear}return A[x]=D,e({global:!0,constructor:!0,forced:D!==O},A),u(D,x),E||p.setStrong(D,x,_),D}},98410:function(S,y,t){"use strict";var e=t(23679),a=t(94933),n=t(26805),r=t(54263);S.exports=function(o,m,b){for(var g=a(m),d=r.f,f=n.f,v=0;v<g.length;v++){var l=g[v];!e(o,l)&&!(b&&e(b,l))&&d(o,l,f(m,l))}}},6998:function(S,y,t){"use strict";var e=t(36197),a=e("match");S.exports=function(n){var r=/./;try{"/./"[n](r)}catch(o){try{return r[a]=!1,"/./"[n](r)}catch(m){}}return!1}},65869:function(S,y,t){"use strict";var e=t(48709);S.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},82726:function(S,y,t){"use strict";var e=t(31702),a=t(99476),n=t(88913),r=/"/g,o=e("".replace);S.exports=function(m,b,g,d){var f=n(a(m)),v="<"+b;return g!==""&&(v+=" "+g+'="'+o(n(d),r,"&quot;")+'"'),v+">"+f+"</"+b+">"}},71171:function(S){"use strict";S.exports=function(y,t){return{value:y,done:t}}},10137:function(S,y,t){"use strict";var e=t(79866),a=t(54263),n=t(36990);S.exports=e?function(r,o,m){return a.f(r,o,n(1,m))}:function(r,o,m){return r[o]=m,r}},36990:function(S){"use strict";S.exports=function(y,t){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:t}}},82386:function(S,y,t){"use strict";var e=t(79866),a=t(54263),n=t(36990);S.exports=function(r,o,m){e?a.f(r,o,n(0,m)):r[o]=m}},51154:function(S,y,t){"use strict";var e=t(31702),a=t(48709),n=t(5671).start,r=RangeError,o=isFinite,m=Math.abs,b=Date.prototype,g=b.toISOString,d=e(b.getTime),f=e(b.getUTCDate),v=e(b.getUTCFullYear),l=e(b.getUTCHours),c=e(b.getUTCMilliseconds),u=e(b.getUTCMinutes),h=e(b.getUTCMonth),x=e(b.getUTCSeconds);S.exports=a(function(){return g.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!a(function(){g.call(new Date(NaN))})?function(){if(!o(d(this)))throw new r("Invalid time value");var p=this,_=v(p),E=c(p),I=_<0?"-":_>9999?"+":"";return I+n(m(_),I?6:4,0)+"-"+n(h(p)+1,2,0)+"-"+n(f(p),2,0)+"T"+n(l(p),2,0)+":"+n(u(p),2,0)+":"+n(x(p),2,0)+"."+n(E,3,0)+"Z"}:g},47378:function(S,y,t){"use strict";var e=t(56937),a=t(10960),n=TypeError;S.exports=function(r){if(e(this),r==="string"||r==="default")r="string";else if(r!=="number")throw new n("Incorrect hint");return a(this,r)}},86940:function(S,y,t){"use strict";var e=t(75285),a=t(54263);S.exports=function(n,r,o){return o.get&&e(o.get,r,{getter:!0}),o.set&&e(o.set,r,{setter:!0}),a.f(n,r,o)}},93614:function(S,y,t){"use strict";var e=t(86015),a=t(54263),n=t(75285),r=t(1667);S.exports=function(o,m,b,g){g||(g={});var d=g.enumerable,f=g.name!==void 0?g.name:m;if(e(b)&&n(b,f,g),g.global)d?o[m]=b:r(m,b);else{try{g.unsafe?o[m]&&(d=!0):delete o[m]}catch(v){}d?o[m]=b:a.f(o,m,{value:b,enumerable:!1,configurable:!g.nonConfigurable,writable:!g.nonWritable})}return o}},3653:function(S,y,t){"use strict";var e=t(93614);S.exports=function(a,n,r){for(var o in n)e(a,o,n[o],r);return a}},1667:function(S,y,t){"use strict";var e=t(4057),a=Object.defineProperty;S.exports=function(n,r){try{a(e,n,{value:r,configurable:!0,writable:!0})}catch(o){e[n]=r}return r}},40736:function(S,y,t){"use strict";var e=t(71285),a=TypeError;S.exports=function(n,r){if(!delete n[r])throw new a("Cannot delete property "+e(r)+" of "+e(n))}},79866:function(S,y,t){"use strict";var e=t(48709);S.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},75613:function(S,y,t){"use strict";var e=t(4057),a=t(12688),n=t(97386),r=e.structuredClone,o=e.ArrayBuffer,m=e.MessageChannel,b=!1,g,d,f,v;if(n)b=function(c){r(c,{transfer:[c]})};else if(o)try{m||(g=a("worker_threads"),g&&(m=g.MessageChannel)),m&&(d=new m,f=new o(2),v=function(c){d.port1.postMessage(null,[c])},f.byteLength===2&&(v(f),f.byteLength===0&&(b=v)))}catch(l){}S.exports=b},21981:function(S,y,t){"use strict";var e=t(4057),a=t(38692),n=e.document,r=a(n)&&a(n.createElement);S.exports=function(o){return r?n.createElement(o):{}}},38591:function(S){"use strict";var y=TypeError,t=9007199254740991;S.exports=function(e){if(e>t)throw y("Maximum allowed index exceeded");return e}},89624:function(S,y,t){"use strict";var e=t(48562),a=e.match(/firefox\/(\d+)/i);S.exports=!!a&&+a[1]},87304:function(S,y,t){"use strict";var e=t(86950),a=t(34794);S.exports=!e&&!a&&typeof window=="object"&&typeof document=="object"},39513:function(S){"use strict";S.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},86950:function(S){"use strict";S.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},86288:function(S,y,t){"use strict";var e=t(48562);S.exports=/MSIE|Trident/.test(e)},6774:function(S,y,t){"use strict";var e=t(48562);S.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},88141:function(S,y,t){"use strict";var e=t(48562);S.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},34794:function(S,y,t){"use strict";var e=t(4057),a=t(97058);S.exports=a(e.process)==="process"},73827:function(S,y,t){"use strict";var e=t(48562);S.exports=/web0s(?!.*chrome)/i.test(e)},48562:function(S){"use strict";S.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},65510:function(S,y,t){"use strict";var e=t(4057),a=t(48562),n=e.process,r=e.Deno,o=n&&n.versions||r&&r.version,m=o&&o.v8,b,g;m&&(b=m.split("."),g=b[0]>0&&b[0]<4?1:+(b[0]+b[1])),!g&&a&&(b=a.match(/Edge\/(\d+)/),(!b||b[1]>=74)&&(b=a.match(/Chrome\/(\d+)/),b&&(g=+b[1]))),S.exports=g},87554:function(S,y,t){"use strict";var e=t(48562),a=e.match(/AppleWebKit\/(\d+)\./);S.exports=!!a&&+a[1]},93033:function(S){"use strict";S.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},64307:function(S,y,t){"use strict";var e=t(31702),a=Error,n=e("".replace),r=function(b){return String(new a(b).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,m=o.test(r);S.exports=function(b,g){if(m&&typeof b=="string"&&!a.prepareStackTrace)for(;g--;)b=n(b,o,"");return b}},63957:function(S,y,t){"use strict";var e=t(10137),a=t(64307),n=t(11201),r=Error.captureStackTrace;S.exports=function(o,m,b,g){n&&(r?r(o,m):e(o,"stack",a(b,g)))}},11201:function(S,y,t){"use strict";var e=t(48709),a=t(36990);S.exports=!e(function(){var n=new Error("a");return"stack"in n?(Object.defineProperty(n,"stack",a(1,7)),n.stack!==7):!0})},92226:function(S,y,t){"use strict";var e=t(79866),a=t(48709),n=t(56937),r=t(10813),o=Error.prototype.toString,m=a(function(){if(e){var b=Object.create(Object.defineProperty({},"name",{get:function(){return this===b}}));if(o.call(b)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});S.exports=m?function(){var g=n(this),d=r(g.name,"Error"),f=r(g.message);return d?f?d+": "+f:d:f}:o},63968:function(S,y,t){"use strict";function e(d){"@swc/helpers - typeof";return d&&typeof Symbol!="undefined"&&d.constructor===Symbol?"symbol":typeof d}var a=t(4057),n=t(26805).f,r=t(10137),o=t(93614),m=t(1667),b=t(98410),g=t(85246);S.exports=function(d,f){var v=d.target,l=d.global,c=d.stat,u,h,x,j,p,_;if(l?h=a:c?h=a[v]||m(v,{}):h=a[v]&&a[v].prototype,h)for(x in f){if(p=f[x],d.dontCallGetSet?(_=n(h,x),j=_&&_.value):j=h[x],u=g(l?x:v+(c?".":"#")+x,d.forced),!u&&j!==void 0){if((typeof p=="undefined"?"undefined":e(p))==(typeof j=="undefined"?"undefined":e(j)))continue;b(p,j)}(d.sham||j&&j.sham)&&r(p,"sham",!0),o(h,x,p,d)}}},48709:function(S){"use strict";S.exports=function(y){try{return!!y()}catch(t){return!0}}},35002:function(S,y,t){"use strict";t(81513);var e=t(17523),a=t(93614),n=t(36573),r=t(48709),o=t(36197),m=t(10137),b=o("species"),g=RegExp.prototype;S.exports=function(d,f,v,l){var c=o(d),u=!r(function(){var p={};return p[c]=function(){return 7},""[d](p)!==7}),h=u&&!r(function(){var p=!1,_=/a/;return d==="split"&&(_={},_.constructor={},_.constructor[b]=function(){return _},_.flags="",_[c]=/./[c]),_.exec=function(){return p=!0,null},_[c](""),!p});if(!u||!h||v){var x=/./[c],j=f(c,""[d],function(p,_,E,I,O){var M=_.exec;return M===n||M===g.exec?u&&!O?{done:!0,value:e(x,_,E,I)}:{done:!0,value:e(p,E,_,I)}:{done:!1}});a(String.prototype,d,j[0]),a(g,c,j[1])}l&&m(g[c],"sham",!0)}},25437:function(S,y,t){"use strict";var e=t(40686),a=t(28676),n=t(38591),r=t(79350),o=function(b,g,d,f,v,l,c,u){for(var h=v,x=0,j=c?r(c,u):!1,p,_;x<f;)x in d&&(p=j?j(d[x],x,g):d[x],l>0&&e(p)?(_=a(p),h=o(b,g,p,_,h,l-1)-1):(n(h+1),b[h]=p),h++),x++;return h};S.exports=o},44462:function(S,y,t){"use strict";var e=t(48709);S.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},68143:function(S,y,t){"use strict";var e=t(74886),a=Function.prototype,n=a.apply,r=a.call;S.exports=typeof Reflect=="object"&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)})},79350:function(S,y,t){"use strict";var e=t(97006),a=t(21604),n=t(74886),r=e(e.bind);S.exports=function(o,m){return a(o),m===void 0?o:n?r(o,m):function(){return o.apply(m,arguments)}}},74886:function(S,y,t){"use strict";var e=t(48709);S.exports=!e(function(){var a=function(){}.bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},18744:function(S,y,t){"use strict";function e(c,u){return u!=null&&typeof Symbol!="undefined"&&u[Symbol.hasInstance]?!!u[Symbol.hasInstance](c):c instanceof u}var a=t(31702),n=t(21604),r=t(38692),o=t(23679),m=t(45910),b=t(74886),g=Function,d=a([].concat),f=a([].join),v={},l=function(u,h,x){if(!o(v,h)){for(var j=[],p=0;p<h;p++)j[p]="a["+p+"]";v[h]=g("C,a","return new C("+f(j,",")+")")}return v[h](u,x)};S.exports=b?g.bind:function(u){var h=n(this),x=h.prototype,j=m(arguments,1),p=function(){var E=d(j,m(arguments));return e(this,p)?l(h,E.length,E):h.apply(u,E)};return r(x)&&(p.prototype=x),p}},17523:function(S,y,t){"use strict";var e=t(74886),a=Function.prototype.call;S.exports=e?a.bind(a):function(){return a.apply(a,arguments)}},61820:function(S,y,t){"use strict";var e=t(79866),a=t(23679),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=a(n,"name"),m=o&&function(){}.name==="something",b=o&&(!e||e&&r(n,"name").configurable);S.exports={EXISTS:o,PROPER:m,CONFIGURABLE:b}},40724:function(S,y,t){"use strict";var e=t(31702),a=t(21604);S.exports=function(n,r,o){try{return e(a(Object.getOwnPropertyDescriptor(n,r)[o]))}catch(m){}}},97006:function(S,y,t){"use strict";var e=t(97058),a=t(31702);S.exports=function(n){if(e(n)==="Function")return a(n)}},31702:function(S,y,t){"use strict";var e=t(74886),a=Function.prototype,n=a.call,r=e&&a.bind.bind(n,n);S.exports=e?r:function(o){return function(){return n.apply(o,arguments)}}},82398:function(S,y,t){"use strict";var e=t(4057);S.exports=function(a,n){var r=e[a],o=r&&r.prototype;return o&&o[n]}},10941:function(S,y,t){"use strict";var e=t(4057),a=t(86015),n=function(o){return a(o)?o:void 0};S.exports=function(r,o){return arguments.length<2?n(e[r]):e[r]&&e[r][o]}},5461:function(S,y,t){"use strict";var e=t(87509),a=t(15632),n=t(60819),r=t(69811),o=t(36197),m=o("iterator");S.exports=function(b){if(!n(b))return a(b,m)||a(b,"@@iterator")||r[e(b)]}},8507:function(S,y,t){"use strict";var e=t(17523),a=t(21604),n=t(56937),r=t(71285),o=t(5461),m=TypeError;S.exports=function(b,g){var d=arguments.length<2?o(b):g;if(a(d))return n(e(d,b));throw new m(r(b)+" is not iterable")}},16363:function(S,y,t){"use strict";var e=t(31702),a=t(40686),n=t(86015),r=t(97058),o=t(88913),m=e([].push);S.exports=function(b){if(n(b))return b;if(a(b)){for(var g=b.length,d=[],f=0;f<g;f++){var v=b[f];typeof v=="string"?m(d,v):(typeof v=="number"||r(v)==="Number"||r(v)==="String")&&m(d,o(v))}var l=d.length,c=!0;return function(u,h){if(c)return c=!1,h;if(a(this))return h;for(var x=0;x<l;x++)if(d[x]===u)return h}}}},15632:function(S,y,t){"use strict";var e=t(21604),a=t(60819);S.exports=function(n,r){var o=n[r];return a(o)?void 0:e(o)}},40192:function(S,y,t){"use strict";var e=t(31702),a=t(28071),n=Math.floor,r=e("".charAt),o=e("".replace),m=e("".slice),b=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,g=/\$([$&'`]|\d{1,2})/g;S.exports=function(d,f,v,l,c,u){var h=v+d.length,x=l.length,j=g;return c!==void 0&&(c=a(c),j=b),o(u,j,function(p,_){var E;switch(r(_,0)){case"$":return"$";case"&":return d;case"`":return m(f,0,v);case"'":return m(f,h);case"<":E=c[m(_,1,-1)];break;default:var I=+_;if(I===0)return p;if(I>x){var O=n(I/10);return O===0?p:O<=x?l[O-1]===void 0?r(_,1):l[O-1]+r(_,1):p}E=l[I-1]}return E===void 0?"":E})}},4057:function(S,y,t){"use strict";var e=function(n){return n&&n.Math===Math&&n};S.exports=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof t.g=="object"&&t.g)||e(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},23679:function(S,y,t){"use strict";var e=t(31702),a=t(28071),n=e({}.hasOwnProperty);S.exports=Object.hasOwn||function(o,m){return n(a(o),m)}},74175:function(S){"use strict";S.exports={}},44247:function(S){"use strict";S.exports=function(y,t){try{arguments.length===1?console.error(y):console.error(y,t)}catch(e){}}},2615:function(S,y,t){"use strict";var e=t(10941);S.exports=e("document","documentElement")},30211:function(S,y,t){"use strict";var e=t(79866),a=t(48709),n=t(21981);S.exports=!e&&!a(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})},55740:function(S){"use strict";var y=Array,t=Math.abs,e=Math.pow,a=Math.floor,n=Math.log,r=Math.LN2,o=function(g,d,f){var v=y(f),l=f*8-d-1,c=(1<<l)-1,u=c>>1,h=d===23?e(2,-24)-e(2,-77):0,x=g<0||g===0&&1/g<0?1:0,j=0,p,_,E;for(g=t(g),g!==g||g===1/0?(_=g!==g?1:0,p=c):(p=a(n(g)/r),E=e(2,-p),g*E<1&&(p--,E*=2),p+u>=1?g+=h/E:g+=h*e(2,1-u),g*E>=2&&(p++,E/=2),p+u>=c?(_=0,p=c):p+u>=1?(_=(g*E-1)*e(2,d),p+=u):(_=g*e(2,u-1)*e(2,d),p=0));d>=8;)v[j++]=_&255,_/=256,d-=8;for(p=p<<d|_,l+=d;l>0;)v[j++]=p&255,p/=256,l-=8;return v[--j]|=x*128,v},m=function(g,d){var f=g.length,v=f*8-d-1,l=(1<<v)-1,c=l>>1,u=v-7,h=f-1,x=g[h--],j=x&127,p;for(x>>=7;u>0;)j=j*256+g[h--],u-=8;for(p=j&(1<<-u)-1,j>>=-u,u+=d;u>0;)p=p*256+g[h--],u-=8;if(j===0)j=1-c;else{if(j===l)return p?NaN:x?-1/0:1/0;p+=e(2,d),j-=c}return(x?-1:1)*p*e(2,j-d)};S.exports={pack:o,unpack:m}},4949:function(S,y,t){"use strict";var e=t(31702),a=t(48709),n=t(97058),r=Object,o=e("".split);S.exports=a(function(){return!r("z").propertyIsEnumerable(0)})?function(m){return n(m)==="String"?o(m,""):r(m)}:r},18841:function(S,y,t){"use strict";var e=t(86015),a=t(38692),n=t(21237);S.exports=function(r,o,m){var b,g;return n&&e(b=o.constructor)&&b!==m&&a(g=b.prototype)&&g!==m.prototype&&n(r,g),r}},12128:function(S,y,t){"use strict";var e=t(31702),a=t(86015),n=t(85995),r=e(Function.toString);a(n.inspectSource)||(n.inspectSource=function(o){return r(o)}),S.exports=n.inspectSource},45566:function(S,y,t){"use strict";var e=t(38692),a=t(10137);S.exports=function(n,r){e(r)&&"cause"in r&&a(n,"cause",r.cause)}},31565:function(S,y,t){"use strict";function e(O){"@swc/helpers - typeof";return O&&typeof Symbol!="undefined"&&O.constructor===Symbol?"symbol":typeof O}var a=t(63968),n=t(31702),r=t(74175),o=t(38692),m=t(23679),b=t(54263).f,g=t(65018),d=t(58416),f=t(45038),v=t(46998),l=t(44462),c=!1,u=v("meta"),h=0,x=function(M){b(M,u,{value:{objectID:"O"+h++,weakData:{}}})},j=function(M,D){if(!o(M))return(typeof M=="undefined"?"undefined":e(M))=="symbol"?M:(typeof M=="string"?"S":"P")+M;if(!m(M,u)){if(!f(M))return"F";if(!D)return"E";x(M)}return M[u].objectID},p=function(M,D){if(!m(M,u)){if(!f(M))return!0;if(!D)return!1;x(M)}return M[u].weakData},_=function(M){return l&&c&&f(M)&&!m(M,u)&&x(M),M},E=function(){I.enable=function(){},c=!0;var M=g.f,D=n([].splice),A={};A[u]=1,M(A).length&&(g.f=function(B){for(var U=M(B),L=0,k=U.length;L<k;L++)if(U[L]===u){D(U,L,1);break}return U},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:d.f}))},I=S.exports={enable:E,fastKey:j,getWeakData:p,onFreeze:_};r[u]=!0},97951:function(S,y,t){"use strict";var e=t(76848),a=t(4057),n=t(38692),r=t(10137),o=t(23679),m=t(85995),b=t(56517),g=t(74175),d="Object already initialized",f=a.TypeError,v=a.WeakMap,l,c,u,h=function(E){return u(E)?c(E):l(E,{})},x=function(E){return function(I){var O;if(!n(I)||(O=c(I)).type!==E)throw new f("Incompatible receiver, "+E+" required");return O}};if(e||m.state){var j=m.state||(m.state=new v);j.get=j.get,j.has=j.has,j.set=j.set,l=function(E,I){if(j.has(E))throw new f(d);return I.facade=E,j.set(E,I),I},c=function(E){return j.get(E)||{}},u=function(E){return j.has(E)}}else{var p=b("state");g[p]=!0,l=function(E,I){if(o(E,p))throw new f(d);return I.facade=E,r(E,p,I),I},c=function(E){return o(E,p)?E[p]:{}},u=function(E){return o(E,p)}}S.exports={set:l,get:c,has:u,enforce:h,getterFor:x}},84327:function(S,y,t){"use strict";var e=t(36197),a=t(69811),n=e("iterator"),r=Array.prototype;S.exports=function(o){return o!==void 0&&(a.Array===o||r[n]===o)}},40686:function(S,y,t){"use strict";var e=t(97058);S.exports=Array.isArray||function(n){return e(n)==="Array"}},52105:function(S,y,t){"use strict";var e=t(87509);S.exports=function(a){var n=e(a);return n==="BigInt64Array"||n==="BigUint64Array"}},86015:function(S){"use strict";var y=typeof document=="object"&&document.all;S.exports=typeof y=="undefined"&&y!==void 0?function(t){return typeof t=="function"||t===y}:function(t){return typeof t=="function"}},12203:function(S,y,t){"use strict";var e=t(31702),a=t(48709),n=t(86015),r=t(87509),o=t(10941),m=t(12128),b=function(){},g=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=e(d.exec),v=!d.test(b),l=function(h){if(!n(h))return!1;try{return g(b,[],h),!0}catch(x){return!1}},c=function(h){if(!n(h))return!1;switch(r(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!f(d,m(h))}catch(x){return!0}};c.sham=!0,S.exports=!g||a(function(){var u;return l(l.call)||!l(Object)||!l(function(){u=!0})||u})?c:l},46961:function(S,y,t){"use strict";var e=t(23679);S.exports=function(a){return a!==void 0&&(e(a,"value")||e(a,"writable"))}},85246:function(S,y,t){"use strict";var e=t(48709),a=t(86015),n=/#|\.prototype\./,r=function(f,v){var l=m[o(f)];return l===g?!0:l===b?!1:a(v)?e(v):!!v},o=r.normalize=function(f){return String(f).replace(n,".").toLowerCase()},m=r.data={},b=r.NATIVE="N",g=r.POLYFILL="P";S.exports=r},16677:function(S,y,t){"use strict";var e=t(38692),a=Math.floor;S.exports=Number.isInteger||function(r){return!e(r)&&isFinite(r)&&a(r)===r}},60819:function(S){"use strict";S.exports=function(y){return y==null}},38692:function(S,y,t){"use strict";var e=t(86015);S.exports=function(a){return typeof a=="object"?a!==null:e(a)}},44619:function(S,y,t){"use strict";var e=t(38692);S.exports=function(a){return e(a)||a===null}},48665:function(S){"use strict";S.exports=!1},75758:function(S,y,t){"use strict";var e=t(38692),a=t(97058),n=t(36197),r=n("match");S.exports=function(o){var m;return e(o)&&((m=o[r])!==void 0?!!m:a(o)==="RegExp")}},26091:function(S,y,t){"use strict";function e(b){"@swc/helpers - typeof";return b&&typeof Symbol!="undefined"&&b.constructor===Symbol?"symbol":typeof b}var a=t(10941),n=t(86015),r=t(97131),o=t(18746),m=Object;S.exports=o?function(b){return(typeof b=="undefined"?"undefined":e(b))=="symbol"}:function(b){var g=a("Symbol");return n(g)&&r(g.prototype,m(b))}},87550:function(S,y,t){"use strict";var e=t(79350),a=t(17523),n=t(56937),r=t(71285),o=t(84327),m=t(28676),b=t(97131),g=t(8507),d=t(5461),f=t(68437),v=TypeError,l=function(h,x){this.stopped=h,this.result=x},c=l.prototype;S.exports=function(u,h,x){var j=x&&x.that,p=!!(x&&x.AS_ENTRIES),_=!!(x&&x.IS_RECORD),E=!!(x&&x.IS_ITERATOR),I=!!(x&&x.INTERRUPTED),O=e(h,j),M,D,A,B,U,L,k,Y=function(N){return M&&f(M,"normal",N),new l(!0,N)},V=function(N){return p?(n(N),I?O(N[0],N[1],Y):O(N[0],N[1])):I?O(N,Y):O(N)};if(_)M=u.iterator;else if(E)M=u;else{if(D=d(u),!D)throw new v(r(u)+" is not iterable");if(o(D)){for(A=0,B=m(u);B>A;A++)if(U=V(u[A]),U&&b(c,U))return U;return new l(!1)}M=g(u,D)}for(L=_?u.next:M.next;!(k=a(L,M)).done;){try{U=V(k.value)}catch(H){f(M,"throw",H)}if(typeof U=="object"&&U&&b(c,U))return U}return new l(!1)}},68437:function(S,y,t){"use strict";var e=t(17523),a=t(56937),n=t(15632);S.exports=function(r,o,m){var b,g;a(r);try{if(b=n(r,"return"),!b){if(o==="throw")throw m;return m}b=e(b,r)}catch(d){g=!0,b=d}if(o==="throw")throw m;if(g)throw b;return a(b),m}},868:function(S,y,t){"use strict";var e=t(73671).IteratorPrototype,a=t(56222),n=t(36990),r=t(65889),o=t(69811),m=function(){return this};S.exports=function(b,g,d,f){var v=g+" Iterator";return b.prototype=a(e,{next:n(+!f,d)}),r(b,v,!1,!0),o[v]=m,b}},73930:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(48665),r=t(61820),o=t(86015),m=t(868),b=t(745),g=t(21237),d=t(65889),f=t(10137),v=t(93614),l=t(36197),c=t(69811),u=t(73671),h=r.PROPER,x=r.CONFIGURABLE,j=u.IteratorPrototype,p=u.BUGGY_SAFARI_ITERATORS,_=l("iterator"),E="keys",I="values",O="entries",M=function(){return this};S.exports=function(D,A,B,U,L,k,Y){m(B,A,U);var V=function(he){if(he===L&&Q)return Q;if(!p&&he&&he in q)return q[he];switch(he){case E:return function(){return new B(this,he)};case I:return function(){return new B(this,he)};case O:return function(){return new B(this,he)}}return function(){return new B(this)}},H=A+" Iterator",N=!1,q=D.prototype,G=q[_]||q["@@iterator"]||L&&q[L],Q=!p&&G||V(L),F=A==="Array"&&q.entries||G,Z,oe,le;if(F&&(Z=b(F.call(new D)),Z!==Object.prototype&&Z.next&&(!n&&b(Z)!==j&&(g?g(Z,j):o(Z[_])||v(Z,_,M)),d(Z,H,!0,!0),n&&(c[H]=M))),h&&L===I&&G&&G.name!==I&&(!n&&x?f(q,"name",I):(N=!0,Q=function(){return a(G,this)})),L)if(oe={values:V(I),keys:k?Q:V(E),entries:V(O)},Y)for(le in oe)(p||N||!(le in q))&&v(q,le,oe[le]);else e({target:A,proto:!0,forced:p||N},oe);return(!n||Y)&&q[_]!==Q&&v(q,_,Q,{name:L}),c[A]=Q,oe}},73671:function(S,y,t){"use strict";var e=t(48709),a=t(86015),n=t(38692),r=t(56222),o=t(745),m=t(93614),b=t(36197),g=t(48665),d=b("iterator"),f=!1,v,l,c;[].keys&&(c=[].keys(),"next"in c?(l=o(o(c)),l!==Object.prototype&&(v=l)):f=!0);var u=!n(v)||e(function(){var h={};return v[d].call(h)!==h});u?v={}:g&&(v=r(v)),a(v[d])||m(v,d,function(){return this}),S.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:f}},69811:function(S){"use strict";S.exports={}},28676:function(S,y,t){"use strict";var e=t(19168);S.exports=function(a){return e(a.length)}},75285:function(S,y,t){"use strict";var e=t(31702),a=t(48709),n=t(86015),r=t(23679),o=t(79866),m=t(61820).CONFIGURABLE,b=t(12128),g=t(97951),d=g.enforce,f=g.get,v=String,l=Object.defineProperty,c=e("".slice),u=e("".replace),h=e([].join),x=o&&!a(function(){return l(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),p=S.exports=function(E,I,O){c(v(I),0,7)==="Symbol("&&(I="["+u(v(I),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(I="get "+I),O&&O.setter&&(I="set "+I),(!r(E,"name")||m&&E.name!==I)&&(o?l(E,"name",{value:I,configurable:!0}):E.name=I),x&&O&&r(O,"arity")&&E.length!==O.arity&&l(E,"length",{value:O.arity});try{O&&r(O,"constructor")&&O.constructor?o&&l(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch(D){}var M=d(E);return r(M,"source")||(M.source=h(j,typeof I=="string"?I:"")),E};Function.prototype.toString=p(function(){return n(this)&&f(this).source||b(this)},"toString")},36238:function(S,y,t){"use strict";var e=t(31702),a=Map.prototype;S.exports={Map:Map,set:e(a.set),get:e(a.get),has:e(a.has),remove:e(a.delete),proto:a}},40764:function(S){"use strict";var y=Math.expm1,t=Math.exp;S.exports=!y||y(10)>22025.465794806718||y(10)<22025.465794806718||y(-2e-17)!==-2e-17?function(a){var n=+a;return n===0?n:n>-1e-6&&n<1e-6?n+n*n/2:t(n)-1}:y},56274:function(S,y,t){"use strict";var e=t(67896),a=Math.abs,n=2220446049250313e-31,r=1/n,o=function(b){return b+r-r};S.exports=function(m,b,g,d){var f=+m,v=a(f),l=e(f);if(v<d)return l*o(v/d/b)*d*b;var c=(1+b/n)*v,u=c-(c-v);return u>g||u!==u?l*(1/0):l*u}},35295:function(S,y,t){"use strict";var e=t(56274),a=11920928955078125e-23,n=34028234663852886e22,r=11754943508222875e-54;S.exports=Math.fround||function(m){return e(m,a,n,r)}},26294:function(S){"use strict";var y=Math.log,t=Math.LOG10E;S.exports=Math.log10||function(a){return y(a)*t}},42166:function(S){"use strict";var y=Math.log;S.exports=Math.log1p||function(e){var a=+e;return a>-1e-8&&a<1e-8?a-a*a/2:y(1+a)}},67896:function(S){"use strict";S.exports=Math.sign||function(t){var e=+t;return e===0||e!==e?e:e<0?-1:1}},96507:function(S){"use strict";var y=Math.ceil,t=Math.floor;S.exports=Math.trunc||function(a){var n=+a;return(n>0?t:y)(n)}},82893:function(S,y,t){"use strict";var e=t(4057),a=t(62407),n=t(79350),r=t(53483).set,o=t(59871),m=t(88141),b=t(6774),g=t(73827),d=t(34794),f=e.MutationObserver||e.WebKitMutationObserver,v=e.document,l=e.process,c=e.Promise,u=a("queueMicrotask"),h,x,j,p,_;if(!u){var E=new o,I=function(){var M,D;for(d&&(M=l.domain)&&M.exit();D=E.get();)try{D()}catch(A){throw E.head&&h(),A}M&&M.enter()};!m&&!d&&!g&&f&&v?(x=!0,j=v.createTextNode(""),new f(I).observe(j,{characterData:!0}),h=function(){j.data=x=!x}):!b&&c&&c.resolve?(p=c.resolve(void 0),p.constructor=c,_=n(p.then,p),h=function(){_(I)}):d?h=function(){l.nextTick(I)}:(r=n(r,e),h=function(){r(I)}),u=function(M){E.head||h(),E.add(M)}}S.exports=u},40777:function(S,y,t){"use strict";var e=t(21604),a=TypeError,n=function(o){var m,b;this.promise=new o(function(g,d){if(m!==void 0||b!==void 0)throw new a("Bad Promise constructor");m=g,b=d}),this.resolve=e(m),this.reject=e(b)};S.exports.f=function(r){return new n(r)}},10813:function(S,y,t){"use strict";var e=t(88913);S.exports=function(a,n){return a===void 0?arguments.length<2?"":n:e(a)}},60433:function(S,y,t){"use strict";var e=t(75758),a=TypeError;S.exports=function(n){if(e(n))throw new a("The method doesn't accept regular expressions");return n}},5626:function(S,y,t){"use strict";var e=t(4057),a=e.isFinite;S.exports=Number.isFinite||function(r){return typeof r=="number"&&a(r)}},80622:function(S,y,t){"use strict";var e=t(4057),a=t(48709),n=t(31702),r=t(88913),o=t(27596).trim,m=t(83098),b=n("".charAt),g=e.parseFloat,d=e.Symbol,f=d&&d.iterator,v=1/g(m+"-0")!==-1/0||f&&!a(function(){g(Object(f))});S.exports=v?function(c){var u=o(r(c)),h=g(u);return h===0&&b(u,0)==="-"?-0:h}:g},98305:function(S,y,t){"use strict";var e=t(4057),a=t(48709),n=t(31702),r=t(88913),o=t(27596).trim,m=t(83098),b=e.parseInt,g=e.Symbol,d=g&&g.iterator,f=/^[+-]?0x/i,v=n(f.exec),l=b(m+"08")!==8||b(m+"0x16")!==22||d&&!a(function(){b(Object(d))});S.exports=l?function(u,h){var x=o(r(u));return b(x,h>>>0||(v(f,x)?16:10))}:b},22043:function(S,y,t){"use strict";var e=t(79866),a=t(31702),n=t(17523),r=t(48709),o=t(59086),m=t(53903),b=t(37479),g=t(28071),d=t(4949),f=Object.assign,v=Object.defineProperty,l=a([].concat);S.exports=!f||r(function(){if(e&&f({b:1},f(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var c={},u={},h=Symbol("assign detection"),x="abcdefghijklmnopqrst";return c[h]=7,x.split("").forEach(function(j){u[j]=j}),f({},c)[h]!==7||o(f({},u)).join("")!==x})?function(u,h){for(var x=g(u),j=arguments.length,p=1,_=m.f,E=b.f;j>p;)for(var I=d(arguments[p++]),O=_?l(o(I),_(I)):o(I),M=O.length,D=0,A;M>D;)A=O[D++],(!e||n(E,I,A))&&(x[A]=I[A]);return x}:f},56222:function(S,y,t){"use strict";var e=t(56937),a=t(24363),n=t(93033),r=t(74175),o=t(2615),m=t(21981),b=t(56517),g=">",d="<",f="prototype",v="script",l=b("IE_PROTO"),c=function(){},u=function(E){return d+v+g+E+d+"/"+v+g},h=function(E){E.write(u("")),E.close();var I=E.parentWindow.Object;return E=null,I},x=function(){var E=m("iframe"),I="java"+v+":",O;return E.style.display="none",o.appendChild(E),E.src=String(I),O=E.contentWindow.document,O.open(),O.write(u("document.F=Object")),O.close(),O.F},j,p=function(){try{j=new ActiveXObject("htmlfile")}catch(I){}p=typeof document!="undefined"?document.domain&&j?h(j):x():h(j);for(var E=n.length;E--;)delete p[f][n[E]];return p()};r[l]=!0,S.exports=Object.create||function(E,I){var O;return E!==null?(c[f]=e(E),O=new c,c[f]=null,O[l]=E):O=p(),I===void 0?O:a.f(O,I)}},24363:function(S,y,t){"use strict";var e=t(79866),a=t(31460),n=t(54263),r=t(56937),o=t(67995),m=t(59086);y.f=e&&!a?Object.defineProperties:function(g,d){r(g);for(var f=o(d),v=m(d),l=v.length,c=0,u;l>c;)n.f(g,u=v[c++],f[u]);return g}},54263:function(S,y,t){"use strict";var e=t(79866),a=t(30211),n=t(31460),r=t(56937),o=t(93939),m=TypeError,b=Object.defineProperty,g=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",v="writable";y.f=e?n?function(c,u,h){if(r(c),u=o(u),r(h),typeof c=="function"&&u==="prototype"&&"value"in h&&v in h&&!h[v]){var x=g(c,u);x&&x[v]&&(c[u]=h.value,h={configurable:f in h?h[f]:x[f],enumerable:d in h?h[d]:x[d],writable:!1})}return b(c,u,h)}:b:function(c,u,h){if(r(c),u=o(u),r(h),a)try{return b(c,u,h)}catch(x){}if("get"in h||"set"in h)throw new m("Accessors not supported");return"value"in h&&(c[u]=h.value),c}},26805:function(S,y,t){"use strict";var e=t(79866),a=t(17523),n=t(37479),r=t(36990),o=t(67995),m=t(93939),b=t(23679),g=t(30211),d=Object.getOwnPropertyDescriptor;y.f=e?d:function(v,l){if(v=o(v),l=m(l),g)try{return d(v,l)}catch(c){}if(b(v,l))return r(!a(n.f,v,l),v[l])}},58416:function(S,y,t){"use strict";var e=t(97058),a=t(67995),n=t(65018).f,r=t(45910),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(g){try{return n(g)}catch(d){return r(o)}};S.exports.f=function(g){return o&&e(g)==="Window"?m(g):n(a(g))}},65018:function(S,y,t){"use strict";var e=t(70882),a=t(93033),n=a.concat("length","prototype");y.f=Object.getOwnPropertyNames||function(o){return e(o,n)}},53903:function(S,y){"use strict";y.f=Object.getOwnPropertySymbols},745:function(S,y,t){"use strict";function e(f,v){return v!=null&&typeof Symbol!="undefined"&&v[Symbol.hasInstance]?!!v[Symbol.hasInstance](f):f instanceof v}var a=t(23679),n=t(86015),r=t(28071),o=t(56517),m=t(65869),b=o("IE_PROTO"),g=Object,d=g.prototype;S.exports=m?g.getPrototypeOf:function(f){var v=r(f);if(a(v,b))return v[b];var l=v.constructor;return n(l)&&e(v,l)?l.prototype:e(v,g)?d:null}},45038:function(S,y,t){"use strict";var e=t(48709),a=t(38692),n=t(97058),r=t(63514),o=Object.isExtensible,m=e(function(){o(1)});S.exports=m||r?function(g){return!a(g)||r&&n(g)==="ArrayBuffer"?!1:o?o(g):!0}:o},97131:function(S,y,t){"use strict";var e=t(31702);S.exports=e({}.isPrototypeOf)},70882:function(S,y,t){"use strict";var e=t(31702),a=t(23679),n=t(67995),r=t(47919).indexOf,o=t(74175),m=e([].push);S.exports=function(b,g){var d=n(b),f=0,v=[],l;for(l in d)!a(o,l)&&a(d,l)&&m(v,l);for(;g.length>f;)a(d,l=g[f++])&&(~r(v,l)||m(v,l));return v}},59086:function(S,y,t){"use strict";var e=t(70882),a=t(93033);S.exports=Object.keys||function(r){return e(r,a)}},37479:function(S,y){"use strict";var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!t.call({1:2},1);y.f=a?function(r){var o=e(this,r);return!!o&&o.enumerable}:t},98717:function(S,y,t){"use strict";var e=t(48665),a=t(4057),n=t(48709),r=t(87554);S.exports=e||!n(function(){if(!(r&&r<535)){var o=Math.random();__defineSetter__.call(null,o,function(){}),delete a[o]}})},21237:function(S,y,t){"use strict";function e(o,m){return m!=null&&typeof Symbol!="undefined"&&m[Symbol.hasInstance]?!!m[Symbol.hasInstance](o):o instanceof m}var a=t(40724),n=t(56937),r=t(85632);S.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,m={},b;try{b=a(Object.prototype,"__proto__","set"),b(m,[]),o=e(m,Array)}catch(g){}return function(d,f){return n(d),r(f),o?b(d,f):d.__proto__=f,d}}():void 0)},82943:function(S,y,t){"use strict";var e=t(79866),a=t(48709),n=t(31702),r=t(745),o=t(59086),m=t(67995),b=t(37479).f,g=n(b),d=n([].push),f=e&&a(function(){var l=Object.create(null);return l[2]=2,!g(l,2)}),v=function(c){return function(u){for(var h=m(u),x=o(h),j=f&&r(h)===null,p=x.length,_=0,E=[],I;p>_;)I=x[_++],(!e||(j?I in h:g(h,I)))&&d(E,c?[I,h[I]]:h[I]);return E}};S.exports={entries:v(!0),values:v(!1)}},15817:function(S,y,t){"use strict";var e=t(8038),a=t(87509);S.exports=e?{}.toString:function(){return"[object "+a(this)+"]"}},10960:function(S,y,t){"use strict";var e=t(17523),a=t(86015),n=t(38692),r=TypeError;S.exports=function(o,m){var b,g;if(m==="string"&&a(b=o.toString)&&!n(g=e(b,o))||a(b=o.valueOf)&&!n(g=e(b,o))||m!=="string"&&a(b=o.toString)&&!n(g=e(b,o)))return g;throw new r("Can't convert object to primitive value")}},94933:function(S,y,t){"use strict";var e=t(10941),a=t(31702),n=t(65018),r=t(53903),o=t(56937),m=a([].concat);S.exports=e("Reflect","ownKeys")||function(g){var d=n.f(o(g)),f=r.f;return f?m(d,f(g)):d}},70889:function(S,y,t){"use strict";var e=t(4057);S.exports=e},95805:function(S){"use strict";S.exports=function(y){try{return{error:!1,value:y()}}catch(t){return{error:!0,value:t}}}},58762:function(S,y,t){"use strict";function e(j,p){return p!=null&&typeof Symbol!="undefined"&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](j):j instanceof p}var a=t(4057),n=t(80284),r=t(86015),o=t(85246),m=t(12128),b=t(36197),g=t(87304),d=t(86950),f=t(48665),v=t(65510),l=n&&n.prototype,c=b("species"),u=!1,h=r(a.PromiseRejectionEvent),x=o("Promise",function(){var j=m(n),p=j!==String(n);if(!p&&v===66||f&&!(l.catch&&l.finally))return!0;if(!v||v<51||!/native code/.test(j)){var _=new n(function(O){O(1)}),E=function(M){M(function(){},function(){})},I=_.constructor={};if(I[c]=E,u=e(_.then(function(){}),E),!u)return!0}return!p&&(g||d)&&!h});S.exports={CONSTRUCTOR:x,REJECTION_EVENT:h,SUBCLASSING:u}},80284:function(S,y,t){"use strict";var e=t(4057);S.exports=e.Promise},1968:function(S,y,t){"use strict";var e=t(56937),a=t(38692),n=t(40777);S.exports=function(r,o){if(e(r),a(o)&&o.constructor===r)return o;var m=n.f(r),b=m.resolve;return b(o),m.promise}},32883:function(S,y,t){"use strict";var e=t(80284),a=t(45718),n=t(58762).CONSTRUCTOR;S.exports=n||!a(function(r){e.all(r).then(void 0,function(){})})},47074:function(S,y,t){"use strict";var e=t(54263).f;S.exports=function(a,n,r){r in a||e(a,r,{configurable:!0,get:function(){return n[r]},set:function(m){n[r]=m}})}},59871:function(S){"use strict";var y=function(){this.head=null,this.tail=null};y.prototype={add:function(e){var a={item:e,next:null},n=this.tail;n?n.next=a:this.head=a,this.tail=a},get:function(){var e=this.head;if(e){var a=this.head=e.next;return a===null&&(this.tail=null),e.item}}},S.exports=y},40168:function(S,y,t){"use strict";var e=t(17523),a=t(56937),n=t(86015),r=t(97058),o=t(36573),m=TypeError;S.exports=function(b,g){var d=b.exec;if(n(d)){var f=e(d,b,g);return f!==null&&a(f),f}if(r(b)==="RegExp")return e(o,b,g);throw new m("RegExp#exec called on incompatible receiver")}},36573:function(S,y,t){"use strict";var e=t(17523),a=t(31702),n=t(88913),r=t(22889),o=t(75103),m=t(26043),b=t(56222),g=t(97951).get,d=t(19777),f=t(93924),v=m("native-string-replace",String.prototype.replace),l=RegExp.prototype.exec,c=l,u=a("".charAt),h=a("".indexOf),x=a("".replace),j=a("".slice),p=function(){var O=/a/,M=/b*/g;return e(l,O,"a"),e(l,M,"a"),O.lastIndex!==0||M.lastIndex!==0}(),_=o.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0,I=p||E||_||d||f;I&&(c=function(M){var D=this,A=g(D),B=n(M),U=A.raw,L,k,Y,V,H,N,q;if(U)return U.lastIndex=D.lastIndex,L=e(c,U,B),D.lastIndex=U.lastIndex,L;var G=A.groups,Q=_&&D.sticky,F=e(r,D),Z=D.source,oe=0,le=B;if(Q&&(F=x(F,"y",""),h(F,"g")===-1&&(F+="g"),le=j(B,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&u(B,D.lastIndex-1)!=="\n")&&(Z="(?: "+Z+")",le=" "+le,oe++),k=new RegExp("^(?:"+Z+")",F)),E&&(k=new RegExp("^"+Z+"$(?!\\s)",F)),p&&(Y=D.lastIndex),V=e(l,Q?k:D,le),Q?V?(V.input=j(V.input,oe),V[0]=j(V[0],oe),V.index=D.lastIndex,D.lastIndex+=V[0].length):D.lastIndex=0:p&&V&&(D.lastIndex=D.global?V.index+V[0].length:Y),E&&V&&V.length>1&&e(v,V[0],k,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(V[H]=void 0)}),V&&G)for(V.groups=N=b(null),H=0;H<G.length;H++)q=G[H],N[q[0]]=V[q[1]];return V}),S.exports=c},22889:function(S,y,t){"use strict";var e=t(56937);S.exports=function(){var a=e(this),n="";return a.hasIndices&&(n+="d"),a.global&&(n+="g"),a.ignoreCase&&(n+="i"),a.multiline&&(n+="m"),a.dotAll&&(n+="s"),a.unicode&&(n+="u"),a.unicodeSets&&(n+="v"),a.sticky&&(n+="y"),n}},77332:function(S,y,t){"use strict";var e=t(17523),a=t(23679),n=t(97131),r=t(22889),o=RegExp.prototype;S.exports=function(m){var b=m.flags;return b===void 0&&!("flags"in o)&&!a(m,"flags")&&n(o,m)?e(r,m):b}},75103:function(S,y,t){"use strict";var e=t(48709),a=t(4057),n=a.RegExp,r=e(function(){var b=n("a","y");return b.lastIndex=2,b.exec("abcd")!==null}),o=r||e(function(){return!n("a","y").sticky}),m=r||e(function(){var b=n("^r","gy");return b.lastIndex=2,b.exec("str")!==null});S.exports={BROKEN_CARET:m,MISSED_STICKY:o,UNSUPPORTED_Y:r}},19777:function(S,y,t){"use strict";var e=t(48709),a=t(4057),n=a.RegExp;S.exports=e(function(){var r=n(".","s");return!(r.dotAll&&r.test("\n")&&r.flags==="s")})},93924:function(S,y,t){"use strict";var e=t(48709),a=t(4057),n=a.RegExp;S.exports=e(function(){var r=n("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})},99476:function(S,y,t){"use strict";var e=t(60819),a=TypeError;S.exports=function(n){if(e(n))throw new a("Can't call method on "+n);return n}},62407:function(S,y,t){"use strict";var e=t(4057),a=t(79866),n=Object.getOwnPropertyDescriptor;S.exports=function(r){if(!a)return e[r];var o=n(e,r);return o&&o.value}},70360:function(S){"use strict";S.exports=Object.is||function(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}},21294:function(S,y,t){"use strict";var e=t(4057),a=t(68143),n=t(86015),r=t(39513),o=t(48562),m=t(45910),b=t(88158),g=e.Function,d=/MSIE .\./.test(o)||r&&function(){var f=e.Bun.version.split(".");return f.length<3||f[0]==="0"&&(f[1]<3||f[1]==="3"&&f[2]==="0")}();S.exports=function(f,v){var l=v?2:1;return d?function(c,u){var h=b(arguments.length,1)>l,x=n(c)?c:g(c),j=h?m(arguments,l):[],p=h?function(){a(x,this,j)}:x;return v?f(p,u):f(p)}:f}},15623:function(S,y,t){"use strict";var e=t(10941),a=t(86940),n=t(36197),r=t(79866),o=n("species");S.exports=function(m){var b=e(m);r&&b&&!b[o]&&a(b,o,{configurable:!0,get:function(){return this}})}},65889:function(S,y,t){"use strict";var e=t(54263).f,a=t(23679),n=t(36197),r=n("toStringTag");S.exports=function(o,m,b){o&&!b&&(o=o.prototype),o&&!a(o,r)&&e(o,r,{configurable:!0,value:m})}},56517:function(S,y,t){"use strict";var e=t(26043),a=t(46998),n=e("keys");S.exports=function(r){return n[r]||(n[r]=a(r))}},85995:function(S,y,t){"use strict";var e=t(48665),a=t(4057),n=t(1667),r="__core-js_shared__",o=S.exports=a[r]||n(r,{});(o.versions||(o.versions=[])).push({version:"3.36.0",mode:e?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},26043:function(S,y,t){"use strict";var e=t(85995);S.exports=function(a,n){return e[a]||(e[a]=n||{})}},40919:function(S,y,t){"use strict";var e=t(56937),a=t(82986),n=t(60819),r=t(36197),o=r("species");S.exports=function(m,b){var g=e(m).constructor,d;return g===void 0||n(d=e(g)[o])?b:a(d)}},22663:function(S,y,t){"use strict";var e=t(48709);S.exports=function(a){return e(function(){var n=""[a]('"');return n!==n.toLowerCase()||n.split('"').length>3})}},52613:function(S,y,t){"use strict";var e=t(31702),a=t(40201),n=t(88913),r=t(99476),o=e("".charAt),m=e("".charCodeAt),b=e("".slice),g=function(f){return function(v,l){var c=n(r(v)),u=a(l),h=c.length,x,j;return u<0||u>=h?f?"":void 0:(x=m(c,u),x<55296||x>56319||u+1===h||(j=m(c,u+1))<56320||j>57343?f?o(c,u):x:f?b(c,u,u+2):(x-55296<<10)+(j-56320)+65536)}};S.exports={codeAt:g(!1),charAt:g(!0)}},77265:function(S,y,t){"use strict";var e=t(48562);S.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e)},5671:function(S,y,t){"use strict";var e=t(31702),a=t(19168),n=t(88913),r=t(95815),o=t(99476),m=e(r),b=e("".slice),g=Math.ceil,d=function(v){return function(l,c,u){var h=n(o(l)),x=a(c),j=h.length,p=u===void 0?" ":n(u),_,E;return x<=j||p===""?h:(_=x-j,E=m(p,g(_/p.length)),E.length>_&&(E=b(E,0,_)),v?h+E:E+h)}};S.exports={start:d(!1),end:d(!0)}},95815:function(S,y,t){"use strict";var e=t(40201),a=t(88913),n=t(99476),r=RangeError;S.exports=function(m){var b=a(n(this)),g="",d=e(m);if(d<0||d===1/0)throw new r("Wrong number of repetitions");for(;d>0;(d>>>=1)&&(b+=b))d&1&&(g+=b);return g}},71528:function(S,y,t){"use strict";var e=t(27596).end,a=t(58256);S.exports=a("trimEnd")?function(){return e(this)}:"".trimEnd},58256:function(S,y,t){"use strict";var e=t(61820).PROPER,a=t(48709),n=t(83098),r="\u200B\x85\u180E";S.exports=function(o){return a(function(){return!!n[o]()||r[o]()!==r||e&&n[o].name!==o})}},53913:function(S,y,t){"use strict";var e=t(27596).start,a=t(58256);S.exports=a("trimStart")?function(){return e(this)}:"".trimStart},27596:function(S,y,t){"use strict";var e=t(31702),a=t(99476),n=t(88913),r=t(83098),o=e("".replace),m=RegExp("^["+r+"]+"),b=RegExp("(^|[^"+r+"])["+r+"]+$"),g=function(f){return function(v){var l=n(a(v));return f&1&&(l=o(l,m,"")),f&2&&(l=o(l,b,"$1")),l}};S.exports={start:g(1),end:g(2),trim:g(3)}},97386:function(S,y,t){"use strict";var e=t(4057),a=t(48709),n=t(65510),r=t(87304),o=t(86950),m=t(34794),b=e.structuredClone;S.exports=!!b&&!a(function(){if(o&&n>92||m&&n>94||r&&n>97)return!1;var g=new ArrayBuffer(8),d=b(g,{transfer:[g]});return g.byteLength!==0||d.byteLength!==8})},9969:function(S,y,t){"use strict";function e(m,b){return b!=null&&typeof Symbol!="undefined"&&b[Symbol.hasInstance]?!!b[Symbol.hasInstance](m):m instanceof b}var a=t(65510),n=t(48709),r=t(4057),o=r.String;S.exports=!!Object.getOwnPropertySymbols&&!n(function(){var m=Symbol("symbol detection");return!o(m)||!e(Object(m),Symbol)||!Symbol.sham&&a&&a<41})},40156:function(S,y,t){"use strict";var e=t(17523),a=t(10941),n=t(36197),r=t(93614);S.exports=function(){var o=a("Symbol"),m=o&&o.prototype,b=m&&m.valueOf,g=n("toPrimitive");m&&!m[g]&&r(m,g,function(d){return e(b,this)},{arity:1})}},49318:function(S,y,t){"use strict";var e=t(9969);S.exports=e&&!!Symbol.for&&!!Symbol.keyFor},53483:function(S,y,t){"use strict";var e=t(4057),a=t(68143),n=t(79350),r=t(86015),o=t(23679),m=t(48709),b=t(2615),g=t(45910),d=t(21981),f=t(88158),v=t(88141),l=t(34794),c=e.setImmediate,u=e.clearImmediate,h=e.process,x=e.Dispatch,j=e.Function,p=e.MessageChannel,_=e.String,E=0,I={},O="onreadystatechange",M,D,A,B;m(function(){M=e.location});var U=function(H){if(o(I,H)){var N=I[H];delete I[H],N()}},L=function(H){return function(){U(H)}},k=function(H){U(H.data)},Y=function(H){e.postMessage(_(H),M.protocol+"//"+M.host)};(!c||!u)&&(c=function(H){f(arguments.length,1);var N=r(H)?H:j(H),q=g(arguments,1);return I[++E]=function(){a(N,void 0,q)},D(E),E},u=function(H){delete I[H]},l?D=function(H){h.nextTick(L(H))}:x&&x.now?D=function(H){x.now(L(H))}:p&&!v?(A=new p,B=A.port2,A.port1.onmessage=k,D=n(B.postMessage,B)):e.addEventListener&&r(e.postMessage)&&!e.importScripts&&M&&M.protocol!=="file:"&&!m(Y)?(D=Y,e.addEventListener("message",k,!1)):O in d("script")?D=function(H){b.appendChild(d("script"))[O]=function(){b.removeChild(this),U(H)}}:D=function(H){setTimeout(L(H),0)}),S.exports={set:c,clear:u}},36418:function(S,y,t){"use strict";var e=t(31702);S.exports=e(1 .valueOf)},50252:function(S,y,t){"use strict";var e=t(40201),a=Math.max,n=Math.min;S.exports=function(r,o){var m=e(r);return m<0?a(m+o,0):n(m,o)}},65232:function(S,y,t){"use strict";var e=t(18351),a=TypeError;S.exports=function(n){var r=e(n,"number");if(typeof r=="number")throw new a("Can't convert number to bigint");return BigInt(r)}},33418:function(S,y,t){"use strict";var e=t(40201),a=t(19168),n=RangeError;S.exports=function(r){if(r===void 0)return 0;var o=e(r),m=a(o);if(o!==m)throw new n("Wrong length or index");return m}},67995:function(S,y,t){"use strict";var e=t(4949),a=t(99476);S.exports=function(n){return e(a(n))}},40201:function(S,y,t){"use strict";var e=t(96507);S.exports=function(a){var n=+a;return n!==n||n===0?0:e(n)}},19168:function(S,y,t){"use strict";var e=t(40201),a=Math.min;S.exports=function(n){var r=e(n);return r>0?a(r,9007199254740991):0}},28071:function(S,y,t){"use strict";var e=t(99476),a=Object;S.exports=function(n){return a(e(n))}},58271:function(S,y,t){"use strict";var e=t(54552),a=RangeError;S.exports=function(n,r){var o=e(n);if(o%r)throw new a("Wrong offset");return o}},54552:function(S,y,t){"use strict";var e=t(40201),a=RangeError;S.exports=function(n){var r=e(n);if(r<0)throw new a("The argument can't be less than 0");return r}},18351:function(S,y,t){"use strict";var e=t(17523),a=t(38692),n=t(26091),r=t(15632),o=t(10960),m=t(36197),b=TypeError,g=m("toPrimitive");S.exports=function(d,f){if(!a(d)||n(d))return d;var v=r(d,g),l;if(v){if(f===void 0&&(f="default"),l=e(v,d,f),!a(l)||n(l))return l;throw new b("Can't convert object to primitive value")}return f===void 0&&(f="number"),o(d,f)}},93939:function(S,y,t){"use strict";var e=t(18351),a=t(26091);S.exports=function(n){var r=e(n,"string");return a(r)?r:r+""}},8038:function(S,y,t){"use strict";var e=t(36197),a=e("toStringTag"),n={};n[a]="z",S.exports=String(n)==="[object z]"},88913:function(S,y,t){"use strict";var e=t(87509),a=String;S.exports=function(n){if(e(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(n)}},44997:function(S){"use strict";var y=Math.round;S.exports=function(t){var e=y(t);return e<0?0:e>255?255:e&255}},12688:function(S,y,t){"use strict";var e=t(34794);S.exports=function(a){try{if(e)return Function('return require("'+a+'")')()}catch(n){}}},71285:function(S){"use strict";var y=String;S.exports=function(t){try{return y(t)}catch(e){return"Object"}}},33125:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(17523),r=t(79866),o=t(57863),m=t(22162),b=t(67708),g=t(86337),d=t(36990),f=t(10137),v=t(16677),l=t(19168),c=t(33418),u=t(58271),h=t(44997),x=t(93939),j=t(23679),p=t(87509),_=t(38692),E=t(26091),I=t(56222),O=t(97131),M=t(21237),D=t(65018).f,A=t(3321),B=t(3903).forEach,U=t(15623),L=t(86940),k=t(54263),Y=t(26805),V=t(8676),H=t(97951),N=t(18841),q=H.get,G=H.set,Q=H.enforce,F=k.f,Z=Y.f,oe=a.RangeError,le=b.ArrayBuffer,ue=le.prototype,he=b.DataView,de=m.NATIVE_ARRAY_BUFFER_VIEWS,ve=m.TYPED_ARRAY_TAG,pe=m.TypedArray,be=m.TypedArrayPrototype,ye=m.isTypedArray,Te="BYTES_PER_ELEMENT",Ke="Wrong length",$e=function(ht,ot){L(ht,ot,{configurable:!0,get:function(){return q(this)[ot]}})},We=function(ht){var ot;return O(ue,ht)||(ot=p(ht))==="ArrayBuffer"||ot==="SharedArrayBuffer"},Qe=function(ht,ot){return ye(ht)&&!E(ot)&&ot in ht&&v(+ot)&&ot>=0},Ye=function(ht,ot){return ot=x(ot),Qe(ht,ot)?d(2,ht[ot]):Z(ht,ot)},mt=function(ht,ot,He){return ot=x(ot),Qe(ht,ot)&&_(He)&&j(He,"value")&&!j(He,"get")&&!j(He,"set")&&!He.configurable&&(!j(He,"writable")||He.writable)&&(!j(He,"enumerable")||He.enumerable)?(ht[ot]=He.value,ht):F(ht,ot,He)};r?(de||(Y.f=Ye,k.f=mt,$e(be,"buffer"),$e(be,"byteOffset"),$e(be,"byteLength"),$e(be,"length")),e({target:"Object",stat:!0,forced:!de},{getOwnPropertyDescriptor:Ye,defineProperty:mt}),S.exports=function(vt,ht,ot){var He=vt.match(/\d+/)[0]/8,Ne=vt+(ot?"Clamped":"")+"Array",ke="get"+vt,we="set"+vt,qe=a[Ne],Je=qe,lt=Je&&Je.prototype,at={},Xt=function(it,gt){var Pt=q(it);return Pt.view[ke](gt*He+Pt.byteOffset,!0)},Wt=function(it,gt,Pt){var Ft=q(it);Ft.view[we](gt*He+Ft.byteOffset,ot?h(Pt):Pt,!0)},zt=function(it,gt){F(it,gt,{get:function(){return Xt(this,gt)},set:function(Ft){return Wt(this,gt,Ft)},enumerable:!0})};de?o&&(Je=ht(function(st,it,gt,Pt){return g(st,lt),N(function(){return _(it)?We(it)?Pt!==void 0?new qe(it,u(gt,He),Pt):gt!==void 0?new qe(it,u(gt,He)):new qe(it):ye(it)?V(Je,it):n(A,Je,it):new qe(c(it))}(),st,Je)}),M&&M(Je,pe),B(D(qe),function(st){st in Je||f(Je,st,qe[st])}),Je.prototype=lt):(Je=ht(function(st,it,gt,Pt){g(st,lt);var Ft=0,Yt=0,ln,tn,yn;if(!_(it))yn=c(it),tn=yn*He,ln=new le(tn);else if(We(it)){ln=it,Yt=u(gt,He);var Bn=it.byteLength;if(Pt===void 0){if(Bn%He)throw new oe(Ke);if(tn=Bn-Yt,tn<0)throw new oe(Ke)}else if(tn=l(Pt)*He,tn+Yt>Bn)throw new oe(Ke);yn=tn/He}else return ye(it)?V(Je,it):n(A,Je,it);for(G(st,{buffer:ln,byteOffset:Yt,byteLength:tn,length:yn,view:new he(ln)});Ft<yn;)zt(st,Ft++)}),M&&M(Je,pe),lt=Je.prototype=I(be)),lt.constructor!==Je&&f(lt,"constructor",Je),Q(lt).TypedArrayConstructor=Je,ve&&f(lt,ve,Ne);var bt=Je!==qe;at[Ne]=Je,e({global:!0,constructor:!0,forced:bt,sham:!de},at),Te in Je||f(Je,Te,He),Te in lt||f(lt,Te,He),U(Ne)}):S.exports=function(){}},57863:function(S,y,t){"use strict";var e=t(4057),a=t(48709),n=t(45718),r=t(22162).NATIVE_ARRAY_BUFFER_VIEWS,o=e.ArrayBuffer,m=e.Int8Array;S.exports=!r||!a(function(){m(1)})||!a(function(){new m(-1)})||!n(function(b){new m,new m(null),new m(1.5),new m(b)},!0)||a(function(){return new m(new o(2),1,void 0).length!==1})},14963:function(S,y,t){"use strict";var e=t(8676),a=t(56862);S.exports=function(n,r){return e(a(n),r)}},3321:function(S,y,t){"use strict";var e=t(79350),a=t(17523),n=t(82986),r=t(28071),o=t(28676),m=t(8507),b=t(5461),g=t(84327),d=t(52105),f=t(22162).aTypedArrayConstructor,v=t(65232);S.exports=function(c){var u=n(this),h=r(c),x=arguments.length,j=x>1?arguments[1]:void 0,p=j!==void 0,_=b(h),E,I,O,M,D,A,B,U;if(_&&!g(_))for(B=m(h,_),U=B.next,h=[];!(A=a(U,B)).done;)h.push(A.value);for(p&&x>2&&(j=e(j,arguments[2])),I=o(h),O=new(f(u))(I),M=d(O),E=0;I>E;E++)D=p?j(h[E],E):h[E],O[E]=M?v(D):+D;return O}},56862:function(S,y,t){"use strict";var e=t(22162),a=t(40919),n=e.aTypedArrayConstructor,r=e.getTypedArrayConstructor;S.exports=function(o){return n(a(o,r(o)))}},46998:function(S,y,t){"use strict";var e=t(31702),a=0,n=Math.random(),r=e(1 .toString);S.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+r(++a+n,36)}},18746:function(S,y,t){"use strict";function e(n){"@swc/helpers - typeof";return n&&typeof Symbol!="undefined"&&n.constructor===Symbol?"symbol":typeof n}var a=t(9969);S.exports=a&&!Symbol.sham&&e(Symbol.iterator)=="symbol"},31460:function(S,y,t){"use strict";var e=t(79866),a=t(48709);S.exports=e&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},88158:function(S){"use strict";var y=TypeError;S.exports=function(t,e){if(t<e)throw new y("Not enough arguments");return t}},76848:function(S,y,t){"use strict";var e=t(4057),a=t(86015),n=e.WeakMap;S.exports=a(n)&&/native code/.test(String(n))},79109:function(S,y,t){"use strict";var e=t(70889),a=t(23679),n=t(95441),r=t(54263).f;S.exports=function(o){var m=e.Symbol||(e.Symbol={});a(m,o)||r(m,o,{value:n.f(o)})}},95441:function(S,y,t){"use strict";var e=t(36197);y.f=e},36197:function(S,y,t){"use strict";var e=t(4057),a=t(26043),n=t(23679),r=t(46998),o=t(9969),m=t(18746),b=e.Symbol,g=a("wks"),d=m?b.for||b:b&&b.withoutSetter||r;S.exports=function(f){return n(g,f)||(g[f]=o&&n(b,f)?b[f]:d("Symbol."+f)),g[f]}},83098:function(S){"use strict";S.exports=" \n\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF"},16755:function(S,y,t){"use strict";var e=t(10941),a=t(23679),n=t(10137),r=t(97131),o=t(21237),m=t(98410),b=t(47074),g=t(18841),d=t(10813),f=t(45566),v=t(63957),l=t(79866),c=t(48665);S.exports=function(u,h,x,j){var p="stackTraceLimit",_=j?2:1,E=u.split("."),I=E[E.length-1],O=e.apply(null,E);if(O){var M=O.prototype;if(!c&&a(M,"cause")&&delete M.cause,!x)return O;var D=e("Error"),A=h(function(B,U){var L=d(j?U:B,void 0),k=j?new O(B):new O;return L!==void 0&&n(k,"message",L),v(k,A,k.stack,2),this&&r(M,this)&&g(k,this,A),arguments.length>_&&f(k,arguments[_]),k});if(A.prototype=M,I!=="Error"?o?o(A,D):m(A,D,{name:!0}):l&&p in O&&(b(A,O,p),b(A,O,"prepareStackTrace")),m(A,O),!c)try{M.name!==I&&n(M,"name",I),M.constructor=A}catch(B){}return A}}},61524:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(68143),r=t(48709),o=t(16755),m="AggregateError",b=a(m),g=!r(function(){return b([1]).errors[0]!==1})&&r(function(){return b([1],m,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:g},{AggregateError:o(m,function(d){return function(v,l){return n(d,this,arguments)}},g,!0)})},84687:function(S,y,t){"use strict";var e=t(63968),a=t(97131),n=t(745),r=t(21237),o=t(98410),m=t(56222),b=t(10137),g=t(36990),d=t(45566),f=t(63957),v=t(87550),l=t(10813),c=t(36197),u=c("toStringTag"),h=Error,x=[].push,j=function(E,I){var O=a(p,this),M;r?M=r(new h,O?n(this):p):(M=O?this:m(p),b(M,u,"Error")),I!==void 0&&b(M,"message",l(I)),f(M,j,M.stack,1),arguments.length>2&&d(M,arguments[2]);var D=[];return v(E,x,{that:D}),b(M,"errors",D),M};r?r(j,h):o(j,h,{name:!0});var p=j.prototype=m(h.prototype,{constructor:g(1,j),message:g(1,""),name:g(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:j})},84237:function(S,y,t){"use strict";t(84687)},2193:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(67708),r=t(15623),o="ArrayBuffer",m=n[o],b=a[o];e({global:!0,constructor:!0,forced:b!==m},{ArrayBuffer:m}),r(o)},2663:function(S,y,t){"use strict";var e=t(79866),a=t(86940),n=t(6128),r=ArrayBuffer.prototype;e&&!("detached"in r)&&a(r,"detached",{configurable:!0,get:function(){return n(this)}})},19415:function(S,y,t){"use strict";var e=t(63968),a=t(22162),n=a.NATIVE_ARRAY_BUFFER_VIEWS;e({target:"ArrayBuffer",stat:!0,forced:!n},{isView:a.isView})},26075:function(S,y,t){"use strict";var e=t(63968),a=t(97006),n=t(48709),r=t(67708),o=t(56937),m=t(50252),b=t(19168),g=t(40919),d=r.ArrayBuffer,f=r.DataView,v=f.prototype,l=a(d.prototype.slice),c=a(v.getUint8),u=a(v.setUint8),h=n(function(){return!new d(2).slice(1,void 0).byteLength});e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(j,p){if(l&&p===void 0)return l(o(this),j);for(var _=o(this).byteLength,E=m(j,_),I=m(p===void 0?_:p,_),O=new(g(this,d))(b(I-E)),M=new f(this),D=new f(O),A=0;E<I;)u(D,A++,c(M,E++));return O}})},3874:function(S,y,t){"use strict";var e=t(63968),a=t(79374);a&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return a(this,arguments.length?arguments[0]:void 0,!1)}})},24182:function(S,y,t){"use strict";var e=t(63968),a=t(79374);a&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return a(this,arguments.length?arguments[0]:void 0,!0)}})},95069:function(S,y,t){"use strict";var e=t(63968),a=t(28071),n=t(28676),r=t(40201),o=t(25187);e({target:"Array",proto:!0},{at:function(b){var g=a(this),d=n(g),f=r(b),v=f>=0?f:d+f;return v<0||v>=d?void 0:g[v]}}),o("at")},94028:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(40686),r=t(38692),o=t(28071),m=t(28676),b=t(38591),g=t(82386),d=t(24067),f=t(12375),v=t(36197),l=t(65510),c=v("isConcatSpreadable"),u=l>=51||!a(function(){var j=[];return j[c]=!1,j.concat()[0]!==j}),h=function(p){if(!r(p))return!1;var _=p[c];return _!==void 0?!!_:n(p)},x=!u||!f("concat");e({target:"Array",proto:!0,arity:1,forced:x},{concat:function(p){var _=o(this),E=d(_,0),I=0,O,M,D,A,B;for(O=-1,D=arguments.length;O<D;O++)if(B=O===-1?_:arguments[O],h(B))for(A=m(B),b(I+A),M=0;M<A;M++,I++)M in B&&g(E,I,B[M]);else b(I+1),g(E,I++,B);return E.length=I,E}})},42889:function(S,y,t){"use strict";var e=t(63968),a=t(57531),n=t(25187);e({target:"Array",proto:!0},{copyWithin:a}),n("copyWithin")},4269:function(S,y,t){"use strict";var e=t(63968),a=t(3903).every,n=t(8932),r=n("every");e({target:"Array",proto:!0,forced:!r},{every:function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}})},64369:function(S,y,t){"use strict";var e=t(63968),a=t(94915),n=t(25187);e({target:"Array",proto:!0},{fill:a}),n("fill")},63722:function(S,y,t){"use strict";var e=t(63968),a=t(3903).filter,n=t(12375),r=n("filter");e({target:"Array",proto:!0,forced:!r},{filter:function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}})},65146:function(S,y,t){"use strict";var e=t(63968),a=t(3903).findIndex,n=t(25187),r="findIndex",o=!0;r in[]&&Array(1)[r](function(){o=!1}),e({target:"Array",proto:!0,forced:o},{findIndex:function(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}}),n(r)},60641:function(S,y,t){"use strict";var e=t(63968),a=t(29401).findLastIndex,n=t(25187);e({target:"Array",proto:!0},{findLastIndex:function(o){return a(this,o,arguments.length>1?arguments[1]:void 0)}}),n("findLastIndex")},32064:function(S,y,t){"use strict";var e=t(63968),a=t(29401).findLast,n=t(25187);e({target:"Array",proto:!0},{findLast:function(o){return a(this,o,arguments.length>1?arguments[1]:void 0)}}),n("findLast")},58859:function(S,y,t){"use strict";var e=t(63968),a=t(3903).find,n=t(25187),r="find",o=!0;r in[]&&Array(1)[r](function(){o=!1}),e({target:"Array",proto:!0,forced:o},{find:function(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}}),n(r)},9324:function(S,y,t){"use strict";var e=t(63968),a=t(25437),n=t(21604),r=t(28071),o=t(28676),m=t(24067);e({target:"Array",proto:!0},{flatMap:function(g){var d=r(this),f=o(d),v;return n(g),v=m(d,0),v.length=a(v,d,d,f,0,1,g,arguments.length>1?arguments[1]:void 0),v}})},42407:function(S,y,t){"use strict";var e=t(63968),a=t(25437),n=t(28071),r=t(28676),o=t(40201),m=t(24067);e({target:"Array",proto:!0},{flat:function(){var g=arguments.length?arguments[0]:void 0,d=n(this),f=r(d),v=m(d,0);return v.length=a(v,d,d,f,0,g===void 0?1:o(g)),v}})},70543:function(S,y,t){"use strict";var e=t(63968),a=t(63525);e({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},39640:function(S,y,t){"use strict";var e=t(63968),a=t(78594),n=t(45718),r=!n(function(o){Array.from(o)});e({target:"Array",stat:!0,forced:r},{from:a})},63437:function(S,y,t){"use strict";var e=t(63968),a=t(47919).includes,n=t(48709),r=t(25187),o=n(function(){return!Array(1).includes()});e({target:"Array",proto:!0,forced:o},{includes:function(b){return a(this,b,arguments.length>1?arguments[1]:void 0)}}),r("includes")},33722:function(S,y,t){"use strict";var e=t(63968),a=t(97006),n=t(47919).indexOf,r=t(8932),o=a([].indexOf),m=!!o&&1/o([1],1,-0)<0,b=m||!r("indexOf");e({target:"Array",proto:!0,forced:b},{indexOf:function(d){var f=arguments.length>1?arguments[1]:void 0;return m?o(this,d,f)||0:n(this,d,f)}})},5936:function(S,y,t){"use strict";var e=t(63968),a=t(40686);e({target:"Array",stat:!0},{isArray:a})},95150:function(S,y,t){"use strict";var e=t(67995),a=t(25187),n=t(69811),r=t(97951),o=t(54263).f,m=t(73930),b=t(71171),g=t(48665),d=t(79866),f="Array Iterator",v=r.set,l=r.getterFor(f);S.exports=m(Array,"Array",function(u,h){v(this,{type:f,target:e(u),index:0,kind:h})},function(){var u=l(this),h=u.target,x=u.index++;if(!h||x>=h.length)return u.target=void 0,b(void 0,!0);switch(u.kind){case"keys":return b(x,!1);case"values":return b(h[x],!1)}return b([x,h[x]],!1)},"values");var c=n.Arguments=n.Array;if(a("keys"),a("values"),a("entries"),!g&&d&&c.name!=="values")try{o(c,"name",{value:"values"})}catch(u){}},44468:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(4949),r=t(67995),o=t(8932),m=a([].join),b=n!==Object,g=b||!o("join",",");e({target:"Array",proto:!0,forced:g},{join:function(f){return m(r(this),f===void 0?",":f)}})},14367:function(S,y,t){"use strict";var e=t(63968),a=t(36929);e({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},73764:function(S,y,t){"use strict";var e=t(63968),a=t(3903).map,n=t(12375),r=n("map");e({target:"Array",proto:!0,forced:!r},{map:function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}})},38573:function(S,y,t){"use strict";function e(g,d){return d!=null&&typeof Symbol!="undefined"&&d[Symbol.hasInstance]?!!d[Symbol.hasInstance](g):g instanceof d}var a=t(63968),n=t(48709),r=t(12203),o=t(82386),m=Array,b=n(function(){function g(){}return!e(m.of.call(g),g)});a({target:"Array",stat:!0,forced:b},{of:function(){for(var d=0,f=arguments.length,v=new(r(this)?this:m)(f);f>d;)o(v,d,arguments[d++]);return v.length=f,v}})},35184:function(S,y,t){"use strict";function e(v,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](v):v instanceof l}var a=t(63968),n=t(28071),r=t(28676),o=t(66501),m=t(38591),b=t(48709),g=b(function(){return[].push.call({length:4294967296},1)!==4294967297}),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(l){return e(l,TypeError)}},f=g||!d();a({target:"Array",proto:!0,arity:1,forced:f},{push:function(l){var c=n(this),u=r(c),h=arguments.length;m(u+h);for(var x=0;x<h;x++)c[u]=arguments[x],u++;return o(c,u),u}})},77321:function(S,y,t){"use strict";var e=t(63968),a=t(71728).right,n=t(8932),r=t(65510),o=t(34794),m=!o&&r>79&&r<83,b=m||!n("reduceRight");e({target:"Array",proto:!0,forced:b},{reduceRight:function(d){return a(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}})},61314:function(S,y,t){"use strict";var e=t(63968),a=t(71728).left,n=t(8932),r=t(65510),o=t(34794),m=!o&&r>79&&r<83,b=m||!n("reduce");e({target:"Array",proto:!0,forced:b},{reduce:function(d){var f=arguments.length;return a(this,d,f,f>1?arguments[1]:void 0)}})},44192:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(40686),r=a([].reverse),o=[1,2];e({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})},77404:function(S,y,t){"use strict";var e=t(63968),a=t(40686),n=t(12203),r=t(38692),o=t(50252),m=t(28676),b=t(67995),g=t(82386),d=t(36197),f=t(12375),v=t(45910),l=f("slice"),c=d("species"),u=Array,h=Math.max;e({target:"Array",proto:!0,forced:!l},{slice:function(j,p){var _=b(this),E=m(_),I=o(j,E),O=o(p===void 0?E:p,E),M,D,A;if(a(_)&&(M=_.constructor,n(M)&&(M===u||a(M.prototype))?M=void 0:r(M)&&(M=M[c],M===null&&(M=void 0)),M===u||M===void 0))return v(_,I,O);for(D=new(M===void 0?u:M)(h(O-I,0)),A=0;I<O;I++,A++)I in _&&g(D,A,_[I]);return D.length=A,D}})},44792:function(S,y,t){"use strict";var e=t(63968),a=t(3903).some,n=t(8932),r=n("some");e({target:"Array",proto:!0,forced:!r},{some:function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}})},3532:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(21604),r=t(28071),o=t(28676),m=t(40736),b=t(88913),g=t(48709),d=t(34326),f=t(8932),v=t(89624),l=t(86288),c=t(65510),u=t(87554),h=[],x=a(h.sort),j=a(h.push),p=g(function(){h.sort(void 0)}),_=g(function(){h.sort(null)}),E=f("sort"),I=!g(function(){if(c)return c<70;if(!(v&&v>3)){if(l)return!0;if(u)return u<603;var D="",A,B,U,L;for(A=65;A<76;A++){switch(B=String.fromCharCode(A),A){case 66:case 69:case 70:case 72:U=3;break;case 68:case 71:U=4;break;default:U=2}for(L=0;L<47;L++)h.push({k:B+L,v:U})}for(h.sort(function(k,Y){return Y.v-k.v}),L=0;L<h.length;L++)B=h[L].k.charAt(0),D.charAt(D.length-1)!==B&&(D+=B);return D!=="DGBEFHACIJK"}}),O=p||!_||!E||!I,M=function(A){return function(B,U){return U===void 0?-1:B===void 0?1:A!==void 0?+A(B,U)||0:b(B)>b(U)?1:-1}};e({target:"Array",proto:!0,forced:O},{sort:function(A){A!==void 0&&n(A);var B=r(this);if(I)return A===void 0?x(B):x(B,A);var U=[],L=o(B),k,Y;for(Y=0;Y<L;Y++)Y in B&&j(U,B[Y]);for(d(U,M(A)),k=o(U),Y=0;Y<k;)B[Y]=U[Y++];for(;Y<L;)m(B,Y++);return B}})},69480:function(S,y,t){"use strict";var e=t(15623);e("Array")},15660:function(S,y,t){"use strict";var e=t(63968),a=t(28071),n=t(50252),r=t(40201),o=t(28676),m=t(66501),b=t(38591),g=t(24067),d=t(82386),f=t(40736),v=t(12375),l=v("splice"),c=Math.max,u=Math.min;e({target:"Array",proto:!0,forced:!l},{splice:function(x,j){var p=a(this),_=o(p),E=n(x,_),I=arguments.length,O,M,D,A,B,U;for(I===0?O=M=0:I===1?(O=0,M=_-E):(O=I-2,M=u(c(r(j),0),_-E)),b(_+O-M),D=g(p,M),A=0;A<M;A++)B=E+A,B in p&&d(D,A,p[B]);if(D.length=M,O<M){for(A=E;A<_-M;A++)B=A+M,U=A+O,B in p?p[U]=p[B]:f(p,U);for(A=_;A>_-M+O;A--)f(p,A-1)}else if(O>M)for(A=_-M;A>E;A--)B=A+M-1,U=A+O-1,B in p?p[U]=p[B]:f(p,U);for(A=0;A<O;A++)p[A+E]=arguments[A+2];return m(p,_-M+O),D}})},80552:function(S,y,t){"use strict";var e=t(63968),a=t(43078),n=t(67995),r=t(25187),o=Array;e({target:"Array",proto:!0},{toReversed:function(){return a(n(this),o)}}),r("toReversed")},23071:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(21604),r=t(67995),o=t(8676),m=t(82398),b=t(25187),g=Array,d=a(m("Array","sort"));e({target:"Array",proto:!0},{toSorted:function(v){v!==void 0&&n(v);var l=r(this),c=o(g,l);return d(c,v)}}),b("toSorted")},50272:function(S,y,t){"use strict";var e=t(63968),a=t(25187),n=t(38591),r=t(28676),o=t(50252),m=t(67995),b=t(40201),g=Array,d=Math.max,f=Math.min;e({target:"Array",proto:!0},{toSpliced:function(l,c){var u=m(this),h=r(u),x=o(l,h),j=arguments.length,p=0,_,E,I,O;for(j===0?_=E=0:j===1?(_=0,E=h-x):(_=j-2,E=f(d(b(c),0),h-x)),I=n(h+_-E),O=g(I);p<x;p++)O[p]=u[p];for(;p<x+_;p++)O[p]=arguments[p-x+2];for(;p<I;p++)O[p]=u[p+E-_];return O}}),a("toSpliced")},57983:function(S,y,t){"use strict";var e=t(25187);e("flatMap")},71420:function(S,y,t){"use strict";var e=t(25187);e("flat")},26267:function(S,y,t){"use strict";function e(v,l){return l!=null&&typeof Symbol!="undefined"&&l[Symbol.hasInstance]?!!l[Symbol.hasInstance](v):v instanceof l}var a=t(63968),n=t(28071),r=t(28676),o=t(66501),m=t(40736),b=t(38591),g=[].unshift(0)!==1,d=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(l){return e(l,TypeError)}},f=g||!d();a({target:"Array",proto:!0,arity:1,forced:f},{unshift:function(l){var c=n(this),u=r(c),h=arguments.length;if(h){b(u+h);for(var x=u;x--;){var j=x+h;x in c?c[j]=c[x]:m(c,j)}for(var p=0;p<h;p++)c[p]=arguments[p]}return o(c,u+h)}})},41884:function(S,y,t){"use strict";var e=t(63968),a=t(70574),n=t(67995),r=Array;e({target:"Array",proto:!0},{with:function(o,m){return a(n(this),r,o,m)}})},50589:function(S,y,t){"use strict";var e=t(63968),a=t(67708),n=t(13925);e({global:!0,constructor:!0,forced:!n},{DataView:a.DataView})},31519:function(S,y,t){"use strict";t(50589)},71217:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(48709),r=n(function(){return new Date(16e11).getYear()!==120}),o=a(Date.prototype.getFullYear);e({target:"Date",proto:!0,forced:r},{getYear:function(){return o(this)-1900}})},31999:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=Date,r=a(n.prototype.getTime);e({target:"Date",stat:!0},{now:function(){return r(new n)}})},91709:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(40201),r=Date.prototype,o=a(r.getTime),m=a(r.setFullYear);e({target:"Date",proto:!0},{setYear:function(g){o(this);var d=n(g),f=d>=0&&d<=99?d+1900:d;return m(this,f)}})},23381:function(S,y,t){"use strict";var e=t(63968);e({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},64086:function(S,y,t){"use strict";var e=t(63968),a=t(51154);e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==a},{toISOString:a})},41009:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(28071),r=t(18351),o=a(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});e({target:"Date",proto:!0,arity:1,forced:o},{toJSON:function(b){var g=n(this),d=r(g,"number");return typeof d=="number"&&!isFinite(d)?null:g.toISOString()}})},15030:function(S,y,t){"use strict";var e=t(23679),a=t(93614),n=t(47378),r=t(36197),o=r("toPrimitive"),m=Date.prototype;e(m,o)||a(m,o,n)},74302:function(S,y,t){"use strict";var e=t(31702),a=t(93614),n=Date.prototype,r="Invalid Date",o="toString",m=e(n[o]),b=e(n.getTime);String(new Date(NaN))!==r&&a(n,o,function(){var d=b(this);return d===d?m(this):r})},12558:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(68143),r=t(16755),o="WebAssembly",m=a[o],b=new Error("e",{cause:7}).cause!==7,g=function(v,l){var c={};c[v]=r(v,l,b),e({global:!0,constructor:!0,arity:1,forced:b},c)},d=function(v,l){if(m&&m[v]){var c={};c[v]=r(o+"."+v,l,b),e({target:o,stat:!0,constructor:!0,arity:1,forced:b},c)}};g("Error",function(f){return function(l){return n(f,this,arguments)}}),g("EvalError",function(f){return function(l){return n(f,this,arguments)}}),g("RangeError",function(f){return function(l){return n(f,this,arguments)}}),g("ReferenceError",function(f){return function(l){return n(f,this,arguments)}}),g("SyntaxError",function(f){return function(l){return n(f,this,arguments)}}),g("TypeError",function(f){return function(l){return n(f,this,arguments)}}),g("URIError",function(f){return function(l){return n(f,this,arguments)}}),d("CompileError",function(f){return function(l){return n(f,this,arguments)}}),d("LinkError",function(f){return function(l){return n(f,this,arguments)}}),d("RuntimeError",function(f){return function(l){return n(f,this,arguments)}})},63984:function(S,y,t){"use strict";var e=t(93614),a=t(92226),n=Error.prototype;n.toString!==a&&e(n,"toString",a)},87358:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(88913),r=a("".charAt),o=a("".charCodeAt),m=a(/./.exec),b=a(1 .toString),g=a("".toUpperCase),d=/[\w*+\-./@]/,f=function(l,c){for(var u=b(l,16);u.length<c;)u="0"+u;return u};e({global:!0},{escape:function(l){for(var c=n(l),u="",h=c.length,x=0,j,p;x<h;)j=r(c,x++),m(d,j)?u+=j:(p=o(j,0),p<256?u+="%"+f(p,2):u+="%u"+g(f(p,4)));return u}})},36660:function(S,y,t){"use strict";var e=t(63968),a=t(18744);e({target:"Function",proto:!0,forced:Function.bind!==a},{bind:a})},15291:function(S,y,t){"use strict";function e(f,v){return v!=null&&typeof Symbol!="undefined"&&v[Symbol.hasInstance]?!!v[Symbol.hasInstance](f):f instanceof v}var a=t(86015),n=t(38692),r=t(54263),o=t(97131),m=t(36197),b=t(75285),g=m("hasInstance"),d=Function.prototype;g in d||r.f(d,g,{value:b(function(f){if(!a(this)||!n(f))return!1;var v=this.prototype;return n(v)?o(v,f):e(f,this)},g)})},83840:function(S,y,t){"use strict";var e=t(79866),a=t(61820).EXISTS,n=t(31702),r=t(86940),o=Function.prototype,m=n(o.toString),b=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,g=n(b.exec),d="name";e&&!a&&r(o,d,{configurable:!0,get:function(){try{return g(b,m(this))[1]}catch(v){return""}}})},61115:function(S,y,t){"use strict";var e=t(63968),a=t(4057);e({global:!0,forced:a.globalThis!==a},{globalThis:a})},24388:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(68143),r=t(17523),o=t(31702),m=t(48709),b=t(86015),g=t(26091),d=t(45910),f=t(16363),v=t(9969),l=String,c=a("JSON","stringify"),u=o(/./.exec),h=o("".charAt),x=o("".charCodeAt),j=o("".replace),p=o(1 .toString),_=/[\uD800-\uDFFF]/g,E=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,O=!v||m(function(){var B=a("Symbol")("stringify detection");return c([B])!=="[null]"||c({a:B})!=="{}"||c(Object(B))!=="{}"}),M=m(function(){return c("\uDF06\uD834")!=='"\uDF06\uD834"'||c("\uDEAD")!=='"\uDEAD"'}),D=function(U,L){var k=d(arguments),Y=f(L);if(!(!b(Y)&&(U===void 0||g(U))))return k[1]=function(V,H){if(b(Y)&&(H=r(Y,this,l(V),H)),!g(H))return H},n(c,null,k)},A=function(U,L,k){var Y=h(k,L-1),V=h(k,L+1);return u(E,U)&&!u(I,V)||u(I,U)&&!u(E,Y)?"\\u"+p(x(U,0),16):U};c&&e({target:"JSON",stat:!0,arity:3,forced:O||M},{stringify:function(U,L,k){var Y=d(arguments),V=n(O?D:c,null,Y);return M&&typeof V=="string"?j(V,_,A):V}})},48677:function(S,y,t){"use strict";var e=t(4057),a=t(65889);a(e.JSON,"JSON",!0)},87169:function(S,y,t){"use strict";var e=t(34722),a=t(87912);e("Map",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},a)},55274:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(21604),r=t(99476),o=t(87550),m=t(36238),b=t(48665),g=m.Map,d=m.has,f=m.get,v=m.set,l=a([].push);e({target:"Map",stat:!0,forced:b},{groupBy:function(u,h){r(u),n(h);var x=new g,j=0;return o(u,function(p){var _=h(p,j++);d(x,_)?l(f(x,_),p):v(x,_,[p])}),x}})},82299:function(S,y,t){"use strict";t(87169)},65231:function(S,y,t){"use strict";var e=t(63968),a=t(42166),n=Math.acosh,r=Math.log,o=Math.sqrt,m=Math.LN2,b=!n||Math.floor(n(Number.MAX_VALUE))!==710||n(1/0)!==1/0;e({target:"Math",stat:!0,forced:b},{acosh:function(d){var f=+d;return f<1?NaN:f>9490626562425156e-8?r(f)+m:a(f-1+o(f-1)*o(f+1))}})},29032:function(S,y,t){"use strict";var e=t(63968),a=Math.asinh,n=Math.log,r=Math.sqrt;function o(b){var g=+b;return!isFinite(g)||g===0?g:g<0?-o(-g):n(g+r(g*g+1))}var m=!(a&&1/a(0)>0);e({target:"Math",stat:!0,forced:m},{asinh:o})},37963:function(S,y,t){"use strict";var e=t(63968),a=Math.atanh,n=Math.log,r=!(a&&1/a(-0)<0);e({target:"Math",stat:!0,forced:r},{atanh:function(m){var b=+m;return b===0?b:n((1+b)/(1-b))/2}})},53830:function(S,y,t){"use strict";var e=t(63968),a=t(67896),n=Math.abs,r=Math.pow;e({target:"Math",stat:!0},{cbrt:function(m){var b=+m;return a(b)*r(n(b),.3333333333333333)}})},40999:function(S,y,t){"use strict";var e=t(63968),a=Math.floor,n=Math.log,r=Math.LOG2E;e({target:"Math",stat:!0},{clz32:function(m){var b=m>>>0;return b?31-a(n(b+.5)*r):32}})},9860:function(S,y,t){"use strict";var e=t(63968),a=t(40764),n=Math.cosh,r=Math.abs,o=Math.E,m=!n||n(710)===1/0;e({target:"Math",stat:!0,forced:m},{cosh:function(g){var d=a(r(g)-1)+1;return(d+1/(d*o*o))*(o/2)}})},8384:function(S,y,t){"use strict";var e=t(63968),a=t(40764);e({target:"Math",stat:!0,forced:a!==Math.expm1},{expm1:a})},18387:function(S,y,t){"use strict";var e=t(63968),a=t(35295);e({target:"Math",stat:!0},{fround:a})},54355:function(S,y,t){"use strict";var e=t(63968),a=Math.hypot,n=Math.abs,r=Math.sqrt,o=!!a&&a(1/0,NaN)!==1/0;e({target:"Math",stat:!0,arity:2,forced:o},{hypot:function(b,g){for(var d=0,f=0,v=arguments.length,l=0,c,u;f<v;)c=n(arguments[f++]),l<c?(u=l/c,d=d*u*u+1,l=c):c>0?(u=c/l,d+=u*u):d+=c;return l===1/0?1/0:l*r(d)}})},10030:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=Math.imul,r=a(function(){return n(4294967295,5)!==-5||n.length!==2});e({target:"Math",stat:!0,forced:r},{imul:function(m,b){var g=65535,d=+m,f=+b,v=g&d,l=g&f;return 0|v*l+((g&d>>>16)*l+v*(g&f>>>16)<<16>>>0)}})},24130:function(S,y,t){"use strict";var e=t(63968),a=t(26294);e({target:"Math",stat:!0},{log10:a})},82530:function(S,y,t){"use strict";var e=t(63968),a=t(42166);e({target:"Math",stat:!0},{log1p:a})},82985:function(S,y,t){"use strict";var e=t(63968),a=Math.log,n=Math.LN2;e({target:"Math",stat:!0},{log2:function(o){return a(o)/n}})},4852:function(S,y,t){"use strict";var e=t(63968),a=t(67896);e({target:"Math",stat:!0},{sign:a})},9063:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(40764),r=Math.abs,o=Math.exp,m=Math.E,b=a(function(){return Math.sinh(-2e-17)!==-2e-17});e({target:"Math",stat:!0,forced:b},{sinh:function(d){var f=+d;return r(f)<1?(n(f)-n(-f))/2:(o(f-1)-o(-f-1))*(m/2)}})},25804:function(S,y,t){"use strict";var e=t(63968),a=t(40764),n=Math.exp;e({target:"Math",stat:!0},{tanh:function(o){var m=+o,b=a(m),g=a(-m);return b===1/0?1:g===1/0?-1:(b-g)/(n(m)+n(-m))}})},91977:function(S,y,t){"use strict";var e=t(65889);e(Math,"Math",!0)},7319:function(S,y,t){"use strict";var e=t(63968),a=t(96507);e({target:"Math",stat:!0},{trunc:a})},5754:function(S,y,t){"use strict";function e(N){"@swc/helpers - typeof";return N&&typeof Symbol!="undefined"&&N.constructor===Symbol?"symbol":typeof N}var a=t(63968),n=t(48665),r=t(79866),o=t(4057),m=t(70889),b=t(31702),g=t(85246),d=t(23679),f=t(18841),v=t(97131),l=t(26091),c=t(18351),u=t(48709),h=t(65018).f,x=t(26805).f,j=t(54263).f,p=t(36418),_=t(27596).trim,E="Number",I=o[E],O=m[E],M=I.prototype,D=o.TypeError,A=b("".slice),B=b("".charCodeAt),U=function(q){var G=c(q,"number");return(typeof G=="undefined"?"undefined":e(G))=="bigint"?G:L(G)},L=function(q){var G=c(q,"number"),Q,F,Z,oe,le,ue,he,de;if(l(G))throw new D("Cannot convert a Symbol value to a number");if(typeof G=="string"&&G.length>2){if(G=_(G),Q=B(G,0),Q===43||Q===45){if(F=B(G,2),F===88||F===120)return NaN}else if(Q===48){switch(B(G,1)){case 66:case 98:Z=2,oe=49;break;case 79:case 111:Z=8,oe=55;break;default:return+G}for(le=A(G,2),ue=le.length,he=0;he<ue;he++)if(de=B(le,he),de<48||de>oe)return NaN;return parseInt(le,Z)}}return+G},k=g(E,!I(" 0o1")||!I("0b1")||I("+0x1")),Y=function(q){return v(M,q)&&u(function(){p(q)})},V=function(q){var G=arguments.length<1?0:I(U(q));return Y(this)?f(Object(G),this,V):G};V.prototype=M,k&&!n&&(M.constructor=V),a({global:!0,constructor:!0,wrap:!0,forced:k},{Number:V});var H=function(q,G){for(var Q=r?h(G):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0,Z;Q.length>F;F++)d(G,Z=Q[F])&&!d(q,Z)&&j(q,Z,x(G,Z))};n&&O&&H(m[E],O),(k||n)&&H(m[E],I)},87960:function(S,y,t){"use strict";var e=t(63968);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},49254:function(S,y,t){"use strict";var e=t(63968),a=t(5626);e({target:"Number",stat:!0},{isFinite:a})},66223:function(S,y,t){"use strict";var e=t(63968),a=t(16677);e({target:"Number",stat:!0},{isInteger:a})},25540:function(S,y,t){"use strict";var e=t(63968);e({target:"Number",stat:!0},{isNaN:function(n){return n!==n}})},26971:function(S,y,t){"use strict";var e=t(63968),a=t(16677),n=Math.abs;e({target:"Number",stat:!0},{isSafeInteger:function(o){return a(o)&&n(o)<=9007199254740991}})},17879:function(S,y,t){"use strict";var e=t(63968);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},44213:function(S,y,t){"use strict";var e=t(63968);e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},87042:function(S,y,t){"use strict";var e=t(63968),a=t(80622);e({target:"Number",stat:!0,forced:Number.parseFloat!==a},{parseFloat:a})},94725:function(S,y,t){"use strict";var e=t(63968),a=t(98305);e({target:"Number",stat:!0,forced:Number.parseInt!==a},{parseInt:a})},53275:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(40201),r=t(36418),o=t(95815),m=t(26294),b=t(48709),g=RangeError,d=String,f=isFinite,v=Math.abs,l=Math.floor,c=Math.pow,u=Math.round,h=a(1 .toExponential),x=a(o),j=a("".slice),p=h(-69e-12,4)==="-6.9000e-11"&&h(1.255,2)==="1.25e+0"&&h(12345,3)==="1.235e+4"&&h(25,0)==="3e+1",_=function(){return b(function(){h(1,1/0)})&&b(function(){h(1,-1/0)})},E=function(){return!b(function(){h(1/0,1/0),h(NaN,1/0)})},I=!p||!_()||!E();e({target:"Number",proto:!0,forced:I},{toExponential:function(M){var D=r(this);if(M===void 0)return h(D);var A=n(M);if(!f(D))return String(D);if(A<0||A>20)throw new g("Incorrect fraction digits");if(p)return h(D,A);var B="",U="",L=0,k="",Y="";if(D<0&&(B="-",D=-D),D===0)L=0,U=x("0",A+1);else{var V=m(D);L=l(V);var H=0,N=c(10,L-A);H=u(D/N),2*D>=(2*H+1)*N&&(H+=1),H>=c(10,A+1)&&(H/=10,L+=1),U=d(H)}return A!==0&&(U=j(U,0,1)+"."+j(U,1)),L===0?(k="+",Y="0"):(k=L>0?"+":"-",Y=d(v(L))),U+="e"+k+Y,B+U}})},16534:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(40201),r=t(36418),o=t(95815),m=t(48709),b=RangeError,g=String,d=Math.floor,f=a(o),v=a("".slice),l=a(1 .toFixed),c=function(E,I,O){return I===0?O:I%2===1?c(E,I-1,O*E):c(E*E,I/2,O)},u=function(E){for(var I=0,O=E;O>=4096;)I+=12,O/=4096;for(;O>=2;)I+=1,O/=2;return I},h=function(E,I,O){for(var M=-1,D=O;++M<6;)D+=I*E[M],E[M]=D%1e7,D=d(D/1e7)},x=function(E,I){for(var O=6,M=0;--O>=0;)M+=E[O],E[O]=d(M/I),M=M%I*1e7},j=function(E){for(var I=6,O="";--I>=0;)if(O!==""||I===0||E[I]!==0){var M=g(E[I]);O=O===""?M:O+f("0",7-M.length)+M}return O},p=m(function(){return l(8e-5,3)!=="0.000"||l(.9,0)!=="1"||l(1.255,2)!=="1.25"||l(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!m(function(){l({})});e({target:"Number",proto:!0,forced:p},{toFixed:function(E){var I=r(this),O=n(E),M=[0,0,0,0,0,0],D="",A="0",B,U,L,k;if(O<0||O>20)throw new b("Incorrect fraction digits");if(I!==I)return"NaN";if(I<=-1e21||I>=1e21)return g(I);if(I<0&&(D="-",I=-I),I>1e-21)if(B=u(I*c(2,69,1))-69,U=B<0?I*c(2,-B,1):I/c(2,B,1),U*=4503599627370496,B=52-B,B>0){for(h(M,0,U),L=O;L>=7;)h(M,1e7,0),L-=7;for(h(M,c(10,L,1),0),L=B-1;L>=23;)x(M,8388608),L-=23;x(M,1<<L),h(M,1,1),x(M,2),A=j(M)}else h(M,0,U),h(M,1<<-B,0),A=j(M)+f("0",O);return O>0?(k=A.length,A=D+(k<=O?"0."+f("0",O-k)+A:v(A,0,k-O)+"."+v(A,k-O))):A=D+A,A}})},728:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(48709),r=t(36418),o=a(1 .toPrecision),m=n(function(){return o(1,void 0)!=="1"})||!n(function(){o({})});e({target:"Number",proto:!0,forced:m},{toPrecision:function(g){return g===void 0?o(r(this)):o(r(this),g)}})},76035:function(S,y,t){"use strict";var e=t(63968),a=t(22043);e({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},18662:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(56222);e({target:"Object",stat:!0,sham:!a},{create:n})},37181:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(98717),r=t(21604),o=t(28071),m=t(54263);a&&e({target:"Object",proto:!0,forced:n},{__defineGetter__:function(g,d){m.f(o(this),g,{get:r(d),enumerable:!0,configurable:!0})}})},60755:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(24363).f;e({target:"Object",stat:!0,forced:Object.defineProperties!==n,sham:!a},{defineProperties:n})},57407:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(54263).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!a},{defineProperty:n})},35009:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(98717),r=t(21604),o=t(28071),m=t(54263);a&&e({target:"Object",proto:!0,forced:n},{__defineSetter__:function(g,d){m.f(o(this),g,{set:r(d),enumerable:!0,configurable:!0})}})},31232:function(S,y,t){"use strict";var e=t(63968),a=t(82943).entries;e({target:"Object",stat:!0},{entries:function(r){return a(r)}})},50917:function(S,y,t){"use strict";var e=t(63968),a=t(44462),n=t(48709),r=t(38692),o=t(31565).onFreeze,m=Object.freeze,b=n(function(){m(1)});e({target:"Object",stat:!0,forced:b,sham:!a},{freeze:function(d){return m&&r(d)?m(o(d)):d}})},10951:function(S,y,t){"use strict";var e=t(63968),a=t(87550),n=t(82386);e({target:"Object",stat:!0},{fromEntries:function(o){var m={};return a(o,function(b,g){n(m,b,g)},{AS_ENTRIES:!0}),m}})},38141:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(67995),r=t(26805).f,o=t(79866),m=!o||a(function(){r(1)});e({target:"Object",stat:!0,forced:m,sham:!o},{getOwnPropertyDescriptor:function(g,d){return r(n(g),d)}})},40248:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(94933),r=t(67995),o=t(26805),m=t(82386);e({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(g){for(var d=r(g),f=o.f,v=n(d),l={},c=0,u,h;v.length>c;)h=f(d,u=v[c++]),h!==void 0&&m(l,u,h);return l}})},30610:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(58416).f,r=a(function(){return!Object.getOwnPropertyNames(1)});e({target:"Object",stat:!0,forced:r},{getOwnPropertyNames:n})},61511:function(S,y,t){"use strict";var e=t(63968),a=t(9969),n=t(48709),r=t(53903),o=t(28071),m=!a||n(function(){r.f(1)});e({target:"Object",stat:!0,forced:m},{getOwnPropertySymbols:function(g){var d=r.f;return d?d(o(g)):[]}})},69297:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(28071),r=t(745),o=t(65869),m=a(function(){r(1)});e({target:"Object",stat:!0,forced:m,sham:!o},{getPrototypeOf:function(g){return r(n(g))}})},38313:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(31702),r=t(21604),o=t(99476),m=t(93939),b=t(87550),g=a("Object","create"),d=n([].push);e({target:"Object",stat:!0},{groupBy:function(v,l){o(v),r(l);var c=g(null),u=0;return b(v,function(h){var x=m(l(h,u++));x in c?d(c[x],h):c[x]=[h]}),c}})},36237:function(S,y,t){"use strict";var e=t(63968),a=t(23679);e({target:"Object",stat:!0},{hasOwn:a})},19334:function(S,y,t){"use strict";var e=t(63968),a=t(45038);e({target:"Object",stat:!0,forced:Object.isExtensible!==a},{isExtensible:a})},9685:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(38692),r=t(97058),o=t(63514),m=Object.isFrozen,b=o||a(function(){m(1)});e({target:"Object",stat:!0,forced:b},{isFrozen:function(d){return!n(d)||o&&r(d)==="ArrayBuffer"?!0:m?m(d):!1}})},64951:function(S,y,t){"use strict";var e=t(63968),a=t(48709),n=t(38692),r=t(97058),o=t(63514),m=Object.isSealed,b=o||a(function(){m(1)});e({target:"Object",stat:!0,forced:b},{isSealed:function(d){return!n(d)||o&&r(d)==="ArrayBuffer"?!0:m?m(d):!1}})},87462:function(S,y,t){"use strict";var e=t(63968),a=t(70360);e({target:"Object",stat:!0},{is:a})},97878:function(S,y,t){"use strict";var e=t(63968),a=t(28071),n=t(59086),r=t(48709),o=r(function(){n(1)});e({target:"Object",stat:!0,forced:o},{keys:function(b){return n(a(b))}})},90506:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(98717),r=t(28071),o=t(93939),m=t(745),b=t(26805).f;a&&e({target:"Object",proto:!0,forced:n},{__lookupGetter__:function(d){var f=r(this),v=o(d),l;do if(l=b(f,v))return l.get;while(f=m(f))}})},37590:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(98717),r=t(28071),o=t(93939),m=t(745),b=t(26805).f;a&&e({target:"Object",proto:!0,forced:n},{__lookupSetter__:function(d){var f=r(this),v=o(d),l;do if(l=b(f,v))return l.set;while(f=m(f))}})},30693:function(S,y,t){"use strict";var e=t(63968),a=t(38692),n=t(31565).onFreeze,r=t(44462),o=t(48709),m=Object.preventExtensions,b=o(function(){m(1)});e({target:"Object",stat:!0,forced:b,sham:!r},{preventExtensions:function(d){return m&&a(d)?m(n(d)):d}})},36618:function(S,y,t){"use strict";var e=t(79866),a=t(86940),n=t(38692),r=t(44619),o=t(28071),m=t(99476),b=Object.getPrototypeOf,g=Object.setPrototypeOf,d=Object.prototype,f="__proto__";if(e&&b&&g&&!(f in d))try{a(d,f,{configurable:!0,get:function(){return b(o(this))},set:function(l){var c=m(this);r(l)&&n(c)&&g(c,l)}})}catch(v){}},54367:function(S,y,t){"use strict";var e=t(63968),a=t(38692),n=t(31565).onFreeze,r=t(44462),o=t(48709),m=Object.seal,b=o(function(){m(1)});e({target:"Object",stat:!0,forced:b,sham:!r},{seal:function(d){return m&&a(d)?m(n(d)):d}})},32701:function(S,y,t){"use strict";var e=t(63968),a=t(21237);e({target:"Object",stat:!0},{setPrototypeOf:a})},47009:function(S,y,t){"use strict";var e=t(8038),a=t(93614),n=t(15817);e||a(Object.prototype,"toString",n,{unsafe:!0})},52960:function(S,y,t){"use strict";var e=t(63968),a=t(82943).values;e({target:"Object",stat:!0},{values:function(r){return a(r)}})},97141:function(S,y,t){"use strict";var e=t(63968),a=t(80622);e({global:!0,forced:parseFloat!==a},{parseFloat:a})},31890:function(S,y,t){"use strict";var e=t(63968),a=t(98305);e({global:!0,forced:parseInt!==a},{parseInt:a})},95645:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(21604),r=t(40777),o=t(95805),m=t(87550),b=t(32883);e({target:"Promise",stat:!0,forced:b},{allSettled:function(d){var f=this,v=r.f(f),l=v.resolve,c=v.reject,u=o(function(){var h=n(f.resolve),x=[],j=0,p=1;m(d,function(_){var E=j++,I=!1;p++,a(h,f,_).then(function(O){I||(I=!0,x[E]={status:"fulfilled",value:O},--p||l(x))},function(O){I||(I=!0,x[E]={status:"rejected",reason:O},--p||l(x))})}),--p||l(x)});return u.error&&c(u.value),v.promise}})},11637:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(21604),r=t(40777),o=t(95805),m=t(87550),b=t(32883);e({target:"Promise",stat:!0,forced:b},{all:function(d){var f=this,v=r.f(f),l=v.resolve,c=v.reject,u=o(function(){var h=n(f.resolve),x=[],j=0,p=1;m(d,function(_){var E=j++,I=!1;p++,a(h,f,_).then(function(O){I||(I=!0,x[E]=O,--p||l(x))},c)}),--p||l(x)});return u.error&&c(u.value),v.promise}})},65884:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(21604),r=t(10941),o=t(40777),m=t(95805),b=t(87550),g=t(32883),d="No one promise resolved";e({target:"Promise",stat:!0,forced:g},{any:function(v){var l=this,c=r("AggregateError"),u=o.f(l),h=u.resolve,x=u.reject,j=m(function(){var p=n(l.resolve),_=[],E=0,I=1,O=!1;b(v,function(M){var D=E++,A=!1;I++,a(p,l,M).then(function(B){A||O||(O=!0,h(B))},function(B){A||O||(A=!0,_[D]=B,--I||x(new c(_,d)))})}),--I||x(new c(_,d))});return j.error&&x(j.value),u.promise}})},90333:function(S,y,t){"use strict";var e=t(63968),a=t(48665),n=t(58762).CONSTRUCTOR,r=t(80284),o=t(10941),m=t(86015),b=t(93614),g=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(f){return this.then(void 0,f)}}),!a&&m(r)){var d=o("Promise").prototype.catch;g.catch!==d&&b(g,"catch",d,{unsafe:!0})}},68398:function(S,y,t){"use strict";var e=t(63968),a=t(48665),n=t(34794),r=t(4057),o=t(17523),m=t(93614),b=t(21237),g=t(65889),d=t(15623),f=t(21604),v=t(86015),l=t(38692),c=t(86337),u=t(40919),h=t(53483).set,x=t(82893),j=t(44247),p=t(95805),_=t(59871),E=t(97951),I=t(80284),O=t(58762),M=t(40777),D="Promise",A=O.CONSTRUCTOR,B=O.REJECTION_EVENT,U=O.SUBCLASSING,L=E.getterFor(D),k=E.set,Y=I&&I.prototype,V=I,H=Y,N=r.TypeError,q=r.document,G=r.process,Q=M.f,F=Q,Z=!!(q&&q.createEvent&&r.dispatchEvent),oe="unhandledrejection",le="rejectionhandled",ue=0,he=1,de=2,ve=1,pe=2,be,ye,Te,Ke,$e=function(we){var qe;return l(we)&&v(qe=we.then)?qe:!1},We=function(we,qe){var Je=qe.value,lt=qe.state===he,at=lt?we.ok:we.fail,Xt=we.resolve,Wt=we.reject,zt=we.domain,bt,st,it;try{at?(lt||(qe.rejection===pe&&ht(qe),qe.rejection=ve),at===!0?bt=Je:(zt&&zt.enter(),bt=at(Je),zt&&(zt.exit(),it=!0)),bt===we.promise?Wt(new N("Promise-chain cycle")):(st=$e(bt))?o(st,bt,Xt,Wt):Xt(bt)):Wt(Je)}catch(gt){zt&&!it&&zt.exit(),Wt(gt)}},Qe=function(we,qe){we.notified||(we.notified=!0,x(function(){for(var Je=we.reactions,lt;lt=Je.get();)We(lt,we);we.notified=!1,qe&&!we.rejection&&mt(we)}))},Ye=function(we,qe,Je){var lt,at;Z?(lt=q.createEvent("Event"),lt.promise=qe,lt.reason=Je,lt.initEvent(we,!1,!0),r.dispatchEvent(lt)):lt={promise:qe,reason:Je},!B&&(at=r["on"+we])?at(lt):we===oe&&j("Unhandled promise rejection",Je)},mt=function(we){o(h,r,function(){var qe=we.facade,Je=we.value,lt=vt(we),at;if(lt&&(at=p(function(){n?G.emit("unhandledRejection",Je,qe):Ye(oe,qe,Je)}),we.rejection=n||vt(we)?pe:ve,at.error))throw at.value})},vt=function(we){return we.rejection!==ve&&!we.parent},ht=function(we){o(h,r,function(){var qe=we.facade;n?G.emit("rejectionHandled",qe):Ye(le,qe,we.value)})},ot=function(we,qe,Je){return function(lt){we(qe,lt,Je)}},He=function(we,qe,Je){we.done||(we.done=!0,Je&&(we=Je),we.value=qe,we.state=de,Qe(we,!0))},Ne=function(we,qe,Je){if(!we.done){we.done=!0,Je&&(we=Je);try{if(we.facade===qe)throw new N("Promise can't be resolved itself");var lt=$e(qe);lt?x(function(){var at={done:!1};try{o(lt,qe,ot(Ne,at,we),ot(He,at,we))}catch(Xt){He(at,Xt,we)}}):(we.value=qe,we.state=he,Qe(we,!1))}catch(at){He({done:!1},at,we)}}};if(A&&(V=function(we){c(this,H),f(we),o(be,this);var qe=L(this);try{we(ot(Ne,qe),ot(He,qe))}catch(Je){He(qe,Je)}},H=V.prototype,be=function(we){k(this,{type:D,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:ue,value:void 0})},be.prototype=m(H,"then",function(we,qe){var Je=L(this),lt=Q(u(this,V));return Je.parent=!0,lt.ok=v(we)?we:!0,lt.fail=v(qe)&&qe,lt.domain=n?G.domain:void 0,Je.state===ue?Je.reactions.add(lt):x(function(){We(lt,Je)}),lt.promise}),ye=function(){var we=new be,qe=L(we);this.promise=we,this.resolve=ot(Ne,qe),this.reject=ot(He,qe)},M.f=Q=function(we){return we===V||we===Te?new ye(we):F(we)},!a&&v(I)&&Y!==Object.prototype)){Ke=Y.then,U||m(Y,"then",function(we,qe){var Je=this;return new V(function(lt,at){o(Ke,Je,lt,at)}).then(we,qe)},{unsafe:!0});try{delete Y.constructor}catch(ke){}b&&b(Y,H)}e({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:V}),g(V,D,!1,!0),d(D)},74681:function(S,y,t){"use strict";var e=t(63968),a=t(48665),n=t(80284),r=t(48709),o=t(10941),m=t(86015),b=t(40919),g=t(1968),d=t(93614),f=n&&n.prototype,v=!!n&&r(function(){f.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:v},{finally:function(c){var u=b(this,o("Promise")),h=m(c);return this.then(h?function(x){return g(u,c()).then(function(){return x})}:c,h?function(x){return g(u,c()).then(function(){throw x})}:c)}}),!a&&m(n)){var l=o("Promise").prototype.finally;f.finally!==l&&d(f,"finally",l,{unsafe:!0})}},36032:function(S,y,t){"use strict";t(68398),t(11637),t(90333),t(5181),t(47355),t(13602)},5181:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(21604),r=t(40777),o=t(95805),m=t(87550),b=t(32883);e({target:"Promise",stat:!0,forced:b},{race:function(d){var f=this,v=r.f(f),l=v.reject,c=o(function(){var u=n(f.resolve);m(d,function(h){a(u,f,h).then(v.resolve,l)})});return c.error&&l(c.value),v.promise}})},47355:function(S,y,t){"use strict";var e=t(63968),a=t(40777),n=t(58762).CONSTRUCTOR;e({target:"Promise",stat:!0,forced:n},{reject:function(o){var m=a.f(this),b=m.reject;return b(o),m.promise}})},13602:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(48665),r=t(80284),o=t(58762).CONSTRUCTOR,m=t(1968),b=a("Promise"),g=n&&!o;e({target:"Promise",stat:!0,forced:n||o},{resolve:function(f){return m(g&&this===b?r:this,f)}})},81270:function(S,y,t){"use strict";var e=t(63968),a=t(40777);e({target:"Promise",stat:!0},{withResolvers:function(){var r=a.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}})},89926:function(S,y,t){"use strict";var e=t(63968),a=t(68143),n=t(21604),r=t(56937),o=t(48709),m=!o(function(){Reflect.apply(function(){})});e({target:"Reflect",stat:!0,forced:m},{apply:function(g,d,f){return a(n(g),d,r(f))}})},94787:function(S,y,t){"use strict";function e(j,p){return p!=null&&typeof Symbol!="undefined"&&p[Symbol.hasInstance]?!!p[Symbol.hasInstance](j):j instanceof p}var a=t(63968),n=t(10941),r=t(68143),o=t(18744),m=t(82986),b=t(56937),g=t(38692),d=t(56222),f=t(48709),v=n("Reflect","construct"),l=Object.prototype,c=[].push,u=f(function(){function j(){}return!e(v(function(){},[],j),j)}),h=!f(function(){v(function(){})}),x=u||h;a({target:"Reflect",stat:!0,forced:x,sham:x},{construct:function(p,_){m(p),b(_);var E=arguments.length<3?p:m(arguments[2]);if(h&&!u)return v(p,_,E);if(p===E){switch(_.length){case 0:return new p;case 1:return new p(_[0]);case 2:return new p(_[0],_[1]);case 3:return new p(_[0],_[1],_[2]);case 4:return new p(_[0],_[1],_[2],_[3])}var I=[null];return r(c,I,_),new(r(o,p,I))}var O=E.prototype,M=d(g(O)?O:l),D=r(p,M,_);return g(D)?D:M}})},39545:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(56937),r=t(93939),o=t(54263),m=t(48709),b=m(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})});e({target:"Reflect",stat:!0,forced:b,sham:!a},{defineProperty:function(d,f,v){n(d);var l=r(f);n(v);try{return o.f(d,l,v),!0}catch(c){return!1}}})},84585:function(S,y,t){"use strict";var e=t(63968),a=t(56937),n=t(26805).f;e({target:"Reflect",stat:!0},{deleteProperty:function(o,m){var b=n(a(o),m);return b&&!b.configurable?!1:delete o[m]}})},26251:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(56937),r=t(26805);e({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(m,b){return r.f(n(m),b)}})},73771:function(S,y,t){"use strict";var e=t(63968),a=t(56937),n=t(745),r=t(65869);e({target:"Reflect",stat:!0,sham:!r},{getPrototypeOf:function(m){return n(a(m))}})},78670:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(38692),r=t(56937),o=t(46961),m=t(26805),b=t(745);function g(d,f){var v=arguments.length<3?d:arguments[2],l,c;if(r(d)===v)return d[f];if(l=m.f(d,f),l)return o(l)?l.value:l.get===void 0?void 0:a(l.get,v);if(n(c=b(d)))return g(c,f,v)}e({target:"Reflect",stat:!0},{get:g})},22746:function(S,y,t){"use strict";var e=t(63968);e({target:"Reflect",stat:!0},{has:function(n,r){return r in n}})},18788:function(S,y,t){"use strict";var e=t(63968),a=t(56937),n=t(45038);e({target:"Reflect",stat:!0},{isExtensible:function(o){return a(o),n(o)}})},28523:function(S,y,t){"use strict";var e=t(63968),a=t(94933);e({target:"Reflect",stat:!0},{ownKeys:a})},83695:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(56937),r=t(44462);e({target:"Reflect",stat:!0,sham:!r},{preventExtensions:function(m){n(m);try{var b=a("Object","preventExtensions");return b&&b(m),!0}catch(g){return!1}}})},10671:function(S,y,t){"use strict";var e=t(63968),a=t(56937),n=t(85632),r=t(21237);r&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(m,b){a(m),n(b);try{return r(m,b),!0}catch(g){return!1}}})},49698:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(56937),r=t(38692),o=t(46961),m=t(48709),b=t(54263),g=t(26805),d=t(745),f=t(36990);function v(c,u,h){var x=arguments.length<4?c:arguments[3],j=g.f(n(c),u),p,_,E;if(!j){if(r(_=d(c)))return v(_,u,h,x);j=f(0)}if(o(j)){if(j.writable===!1||!r(x))return!1;if(p=g.f(x,u)){if(p.get||p.set||p.writable===!1)return!1;p.value=h,b.f(x,u,p)}else b.f(x,u,f(0,h))}else{if(E=j.set,E===void 0)return!1;a(E,x,h)}return!0}var l=m(function(){var c=function(){},u=b.f(new c,"a",{configurable:!0});return Reflect.set(c.prototype,"a",1,u)!==!1});e({target:"Reflect",stat:!0,forced:l},{set:v})},89714:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(65889);e({global:!0},{Reflect:{}}),n(a.Reflect,"Reflect",!0)},13258:function(S,y,t){"use strict";var e=t(79866),a=t(4057),n=t(31702),r=t(85246),o=t(18841),m=t(10137),b=t(56222),g=t(65018).f,d=t(97131),f=t(75758),v=t(88913),l=t(77332),c=t(75103),u=t(47074),h=t(93614),x=t(48709),j=t(23679),p=t(97951).enforce,_=t(15623),E=t(36197),I=t(19777),O=t(93924),M=E("match"),D=a.RegExp,A=D.prototype,B=a.SyntaxError,U=n(A.exec),L=n("".charAt),k=n("".replace),Y=n("".indexOf),V=n("".slice),H=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,q=/a/g,G=new D(N)!==N,Q=c.MISSED_STICKY,F=c.UNSUPPORTED_Y,Z=e&&(!G||Q||I||O||x(function(){return q[M]=!1,D(N)!==N||D(q)===q||String(D(N,"i"))!=="/a/i"})),oe=function(pe){for(var be=pe.length,ye=0,Te="",Ke=!1,$e;ye<=be;ye++){if($e=L(pe,ye),$e==="\\"){Te+=$e+L(pe,++ye);continue}!Ke&&$e==="."?Te+="[\\s\\S]":($e==="["?Ke=!0:$e==="]"&&(Ke=!1),Te+=$e)}return Te},le=function(pe){for(var be=pe.length,ye=0,Te="",Ke=[],$e=b(null),We=!1,Qe=!1,Ye=0,mt="",vt;ye<=be;ye++){if(vt=L(pe,ye),vt==="\\")vt+=L(pe,++ye);else if(vt==="]")We=!1;else if(!We)switch(!0){case vt==="[":We=!0;break;case vt==="(":U(H,V(pe,ye+1))&&(ye+=2,Qe=!0),Te+=vt,Ye++;continue;case(vt===">"&&Qe):if(mt===""||j($e,mt))throw new B("Invalid capture group name");$e[mt]=!0,Ke[Ke.length]=[mt,Ye],Qe=!1,mt="";continue}Qe?mt+=vt:Te+=vt}return[Te,Ke]};if(r("RegExp",Z)){for(var ue=function(pe,be){var ye=d(A,this),Te=f(pe),Ke=be===void 0,$e=[],We=pe,Qe,Ye,mt,vt,ht,ot;if(!ye&&Te&&Ke&&pe.constructor===ue)return pe;if((Te||d(A,pe))&&(pe=pe.source,Ke&&(be=l(We))),pe=pe===void 0?"":v(pe),be=be===void 0?"":v(be),We=pe,I&&"dotAll"in N&&(Ye=!!be&&Y(be,"s")>-1,Ye&&(be=k(be,/s/g,""))),Qe=be,Q&&"sticky"in N&&(mt=!!be&&Y(be,"y")>-1,mt&&F&&(be=k(be,/y/g,""))),O&&(vt=le(pe),pe=vt[0],$e=vt[1]),ht=o(D(pe,be),ye?this:A,ue),(Ye||mt||$e.length)&&(ot=p(ht),Ye&&(ot.dotAll=!0,ot.raw=ue(oe(pe),Qe)),mt&&(ot.sticky=!0),$e.length&&(ot.groups=$e)),pe!==We)try{m(ht,"source",We===""?"(?:)":We)}catch(He){}return ht},he=g(D),de=0;he.length>de;)u(ue,D,he[de++]);A.constructor=ue,ue.prototype=A,h(a,"RegExp",ue,{constructor:!0})}_("RegExp")},61967:function(S,y,t){"use strict";var e=t(79866),a=t(19777),n=t(97058),r=t(86940),o=t(97951).get,m=RegExp.prototype,b=TypeError;e&&a&&r(m,"dotAll",{configurable:!0,get:function(){if(this!==m){if(n(this)==="RegExp")return!!o(this).dotAll;throw new b("Incompatible receiver, RegExp required")}}})},81513:function(S,y,t){"use strict";var e=t(63968),a=t(36573);e({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},61413:function(S,y,t){"use strict";var e=t(4057),a=t(79866),n=t(86940),r=t(22889),o=t(48709),m=e.RegExp,b=m.prototype,g=a&&o(function(){var d=!0;try{m(".","d")}catch(j){d=!1}var f={},v="",l=d?"dgimsy":"gimsy",c=function(p,_){Object.defineProperty(f,p,{get:function(){return v+=_,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};d&&(u.hasIndices="d");for(var h in u)c(h,u[h]);var x=Object.getOwnPropertyDescriptor(b,"flags").get.call(f);return x!==l||v!==l});g&&n(b,"flags",{configurable:!0,get:r})},87747:function(S,y,t){"use strict";var e=t(79866),a=t(75103).MISSED_STICKY,n=t(97058),r=t(86940),o=t(97951).get,m=RegExp.prototype,b=TypeError;e&&a&&r(m,"sticky",{configurable:!0,get:function(){if(this!==m){if(n(this)==="RegExp")return!!o(this).sticky;throw new b("Incompatible receiver, RegExp required")}}})},94052:function(S,y,t){"use strict";t(81513);var e=t(63968),a=t(17523),n=t(86015),r=t(56937),o=t(88913),m=function(){var g=!1,d=/[ac]/;return d.exec=function(){return g=!0,/./.exec.apply(this,arguments)},d.test("abc")===!0&&g}(),b=/./.test;e({target:"RegExp",proto:!0,forced:!m},{test:function(d){var f=r(this),v=o(d),l=f.exec;if(!n(l))return a(b,f,v);var c=a(l,f,v);return c===null?!1:(r(c),!0)}})},28843:function(S,y,t){"use strict";var e=t(61820).PROPER,a=t(93614),n=t(56937),r=t(88913),o=t(48709),m=t(77332),b="toString",g=RegExp.prototype,d=g[b],f=o(function(){return d.call({source:"a",flags:"b"})!=="/a/b"}),v=e&&d.name!==b;(f||v)&&a(g,b,function(){var c=n(this),u=r(c.source),h=r(m(c));return"/"+u+"/"+h},{unsafe:!0})},75543:function(S,y,t){"use strict";var e=t(34722),a=t(87912);e("Set",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},a)},15541:function(S,y,t){"use strict";t(75543)},44657:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("anchor")},{anchor:function(o){return a(this,"a","name",o)}})},16031:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(99476),r=t(40201),o=t(88913),m=t(48709),b=a("".charAt),g=m(function(){return"\uD842\uDFB7".at(-2)!=="\uD842"});e({target:"String",proto:!0,forced:g},{at:function(f){var v=o(n(this)),l=v.length,c=r(f),u=c>=0?c:l+c;return u<0||u>=l?void 0:b(v,u)}})},48804:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("big")},{big:function(){return a(this,"big","","")}})},50056:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("blink")},{blink:function(){return a(this,"blink","","")}})},41807:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("bold")},{bold:function(){return a(this,"b","","")}})},61374:function(S,y,t){"use strict";var e=t(63968),a=t(52613).codeAt;e({target:"String",proto:!0},{codePointAt:function(r){return a(this,r)}})},55791:function(S,y,t){"use strict";var e=t(63968),a=t(97006),n=t(26805).f,r=t(19168),o=t(88913),m=t(60433),b=t(99476),g=t(6998),d=t(48665),f=a("".slice),v=Math.min,l=g("endsWith"),c=!d&&!l&&!!function(){var u=n(String.prototype,"endsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!c&&!l},{endsWith:function(h){var x=o(b(this));m(h);var j=arguments.length>1?arguments[1]:void 0,p=x.length,_=j===void 0?p:v(r(j),p),E=o(h);return f(x,_-E.length,_)===E}})},68e3:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("fixed")},{fixed:function(){return a(this,"tt","","")}})},75298:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("fontcolor")},{fontcolor:function(o){return a(this,"font","color",o)}})},85164:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("fontsize")},{fontsize:function(o){return a(this,"font","size",o)}})},7647:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(50252),r=RangeError,o=String.fromCharCode,m=String.fromCodePoint,b=a([].join),g=!!m&&m.length!==1;e({target:"String",stat:!0,arity:1,forced:g},{fromCodePoint:function(f){for(var v=[],l=arguments.length,c=0,u;l>c;){if(u=+arguments[c++],n(u,1114111)!==u)throw new r(u+" is not a valid code point");v[c]=u<65536?o(u):o(((u-=65536)>>10)+55296,u%1024+56320)}return b(v,"")}})},4613:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(60433),r=t(99476),o=t(88913),m=t(6998),b=a("".indexOf);e({target:"String",proto:!0,forced:!m("includes")},{includes:function(d){return!!~b(o(r(this)),o(n(d)),arguments.length>1?arguments[1]:void 0)}})},57989:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(99476),r=t(88913),o=a("".charCodeAt);e({target:"String",proto:!0},{isWellFormed:function(){for(var b=r(n(this)),g=b.length,d=0;d<g;d++){var f=o(b,d);if((f&63488)===55296&&(f>=56320||++d>=g||(o(b,d)&64512)!==56320))return!1}return!0}})},7223:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("italics")},{italics:function(){return a(this,"i","","")}})},83638:function(S,y,t){"use strict";var e=t(52613).charAt,a=t(88913),n=t(97951),r=t(73930),o=t(71171),m="String Iterator",b=n.set,g=n.getterFor(m);r(String,"String",function(d){b(this,{type:m,string:a(d),index:0})},function(){var f=g(this),v=f.string,l=f.index,c;return l>=v.length?o(void 0,!0):(c=e(v,l),f.index+=c.length,o(c,!1))})},16168:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("link")},{link:function(o){return a(this,"a","href",o)}})},69677:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(97006),r=t(868),o=t(71171),m=t(99476),b=t(19168),g=t(88913),d=t(56937),f=t(60819),v=t(97058),l=t(75758),c=t(77332),u=t(15632),h=t(93614),x=t(48709),j=t(36197),p=t(40919),_=t(20039),E=t(40168),I=t(97951),O=t(48665),M=j("matchAll"),D="RegExp String",A=D+" Iterator",B=I.set,U=I.getterFor(A),L=RegExp.prototype,k=TypeError,Y=n("".indexOf),V=n("".matchAll),H=!!V&&!x(function(){V("a",/./)}),N=r(function(Q,F,Z,oe){B(this,{type:A,regexp:Q,string:F,global:Z,unicode:oe,done:!1})},D,function(){var Q=U(this);if(Q.done)return o(void 0,!0);var F=Q.regexp,Z=Q.string,oe=E(F,Z);return oe===null?(Q.done=!0,o(void 0,!0)):Q.global?(g(oe[0])===""&&(F.lastIndex=_(Z,b(F.lastIndex),Q.unicode)),o(oe,!1)):(Q.done=!0,o(oe,!1))}),q=function(Q){var F=d(this),Z=g(Q),oe=p(F,RegExp),le=g(c(F)),ue,he,de;return ue=new oe(oe===RegExp?F.source:F,le),he=!!~Y(le,"g"),de=!!~Y(le,"u"),ue.lastIndex=b(F.lastIndex),new N(ue,Z,he,de)};e({target:"String",proto:!0,forced:H},{matchAll:function(Q){var F=m(this),Z,oe,le,ue;if(f(Q)){if(H)return V(F,Q)}else{if(l(Q)&&(Z=g(m(c(Q))),!~Y(Z,"g")))throw new k("`.matchAll` does not allow non-global regexes");if(H)return V(F,Q);if(le=u(Q,M),le===void 0&&O&&v(Q)==="RegExp"&&(le=q),le)return a(le,Q,F)}return oe=g(F),ue=new RegExp(Q,"g"),O?a(q,ue,oe):ue[M](oe)}}),O||M in L||h(L,M,q)},63695:function(S,y,t){"use strict";var e=t(17523),a=t(35002),n=t(56937),r=t(60819),o=t(19168),m=t(88913),b=t(99476),g=t(15632),d=t(20039),f=t(40168);a("match",function(v,l,c){return[function(h){var x=b(this),j=r(h)?void 0:g(h,v);return j?e(j,h,x):new RegExp(h)[v](m(x))},function(u){var h=n(this),x=m(u),j=c(l,h,x);if(j.done)return j.value;if(!h.global)return f(h,x);var p=h.unicode;h.lastIndex=0;for(var _=[],E=0,I;(I=f(h,x))!==null;){var O=m(I[0]);_[E]=O,O===""&&(h.lastIndex=d(x,o(h.lastIndex),p)),E++}return E===0?null:_}]})},73707:function(S,y,t){"use strict";var e=t(63968),a=t(5671).end,n=t(77265);e({target:"String",proto:!0,forced:n},{padEnd:function(o){return a(this,o,arguments.length>1?arguments[1]:void 0)}})},51254:function(S,y,t){"use strict";var e=t(63968),a=t(5671).start,n=t(77265);e({target:"String",proto:!0,forced:n},{padStart:function(o){return a(this,o,arguments.length>1?arguments[1]:void 0)}})},40076:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(67995),r=t(28071),o=t(88913),m=t(28676),b=a([].push),g=a([].join);e({target:"String",stat:!0},{raw:function(f){var v=n(r(f).raw),l=m(v);if(!l)return"";for(var c=arguments.length,u=[],h=0;;){if(b(u,o(v[h++])),h===l)return g(u,"");h<c&&b(u,o(arguments[h]))}}})},72287:function(S,y,t){"use strict";var e=t(63968),a=t(95815);e({target:"String",proto:!0},{repeat:a})},65516:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(31702),r=t(99476),o=t(86015),m=t(60819),b=t(75758),g=t(88913),d=t(15632),f=t(77332),v=t(40192),l=t(36197),c=t(48665),u=l("replace"),h=TypeError,x=n("".indexOf),j=n("".replace),p=n("".slice),_=Math.max;e({target:"String",proto:!0},{replaceAll:function(I,O){var M=r(this),D,A,B,U,L,k,Y,V,H,N=0,q=0,G="";if(!m(I)){if(D=b(I),D&&(A=g(r(f(I))),!~x(A,"g")))throw new h("`.replaceAll` does not allow non-global regexes");if(B=d(I,u),B)return a(B,I,M,O);if(c&&D)return j(g(M),I,O)}for(U=g(M),L=g(I),k=o(O),k||(O=g(O)),Y=L.length,V=_(1,Y),N=x(U,L);N!==-1;)H=k?g(O(L,N,U)):v(L,U,N,[],void 0,O),G+=p(U,q,N)+H,q=N+Y,N=N+V>U.length?-1:x(U,L,N+V);return q<U.length&&(G+=p(U,q)),G}})},89250:function(S,y,t){"use strict";var e=t(68143),a=t(17523),n=t(31702),r=t(35002),o=t(48709),m=t(56937),b=t(86015),g=t(60819),d=t(40201),f=t(19168),v=t(88913),l=t(99476),c=t(20039),u=t(15632),h=t(40192),x=t(40168),j=t(36197),p=j("replace"),_=Math.max,E=Math.min,I=n([].concat),O=n([].push),M=n("".indexOf),D=n("".slice),A=function(Y){return Y===void 0?Y:String(Y)},B=function(){return"a".replace(/./,"$0")==="$0"}(),U=function(){return/./[p]?/./[p]("a","$0")==="":!1}(),L=!o(function(){var k=/./;return k.exec=function(){var Y=[];return Y.groups={a:"7"},Y},"".replace(k,"$<a>")!=="7"});r("replace",function(k,Y,V){var H=U?"$":"$0";return[function(q,G){var Q=l(this),F=g(q)?void 0:u(q,p);return F?a(F,q,Q,G):a(Y,v(Q),q,G)},function(N,q){var G=m(this),Q=v(N);if(typeof q=="string"&&M(q,H)===-1&&M(q,"$<")===-1){var F=V(Y,G,Q,q);if(F.done)return F.value}var Z=b(q);Z||(q=v(q));var oe=G.global,le;oe&&(le=G.unicode,G.lastIndex=0);for(var ue=[],he;he=x(G,Q),!(he===null||(O(ue,he),!oe));){var de=v(he[0]);de===""&&(G.lastIndex=c(Q,f(G.lastIndex),le))}for(var ve="",pe=0,be=0;be<ue.length;be++){he=ue[be];for(var ye=v(he[0]),Te=_(E(d(he.index),Q.length),0),Ke=[],$e,We=1;We<he.length;We++)O(Ke,A(he[We]));var Qe=he.groups;if(Z){var Ye=I([ye],Ke,Te,Q);Qe!==void 0&&O(Ye,Qe),$e=v(e(q,void 0,Ye))}else $e=h(ye,Q,Te,Ke,Qe,q);Te>=pe&&(ve+=D(Q,pe,Te)+$e,pe=Te+ye.length)}return ve+D(Q,pe)}]},!L||!B||U)},72388:function(S,y,t){"use strict";var e=t(17523),a=t(35002),n=t(56937),r=t(60819),o=t(99476),m=t(70360),b=t(88913),g=t(15632),d=t(40168);a("search",function(f,v,l){return[function(u){var h=o(this),x=r(u)?void 0:g(u,f);return x?e(x,u,h):new RegExp(u)[f](b(h))},function(c){var u=n(this),h=b(c),x=l(v,u,h);if(x.done)return x.value;var j=u.lastIndex;m(j,0)||(u.lastIndex=0);var p=d(u,h);return m(u.lastIndex,j)||(u.lastIndex=j),p===null?-1:p.index}]})},45225:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("small")},{small:function(){return a(this,"small","","")}})},21766:function(S,y,t){"use strict";var e=t(17523),a=t(31702),n=t(35002),r=t(56937),o=t(60819),m=t(99476),b=t(40919),g=t(20039),d=t(19168),f=t(88913),v=t(15632),l=t(40168),c=t(75103),u=t(48709),h=c.UNSUPPORTED_Y,x=4294967295,j=Math.min,p=a([].push),_=a("".slice),E=!u(function(){var O=/(?:)/,M=O.exec;O.exec=function(){return M.apply(this,arguments)};var D="ab".split(O);return D.length!==2||D[0]!=="a"||D[1]!=="b"}),I="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(O,M,D){var A="0".split(void 0,0).length?function(U,L){return U===void 0&&L===0?[]:e(M,this,U,L)}:M;return[function(U,L){var k=m(this),Y=o(U)?void 0:v(U,O);return Y?e(Y,U,k,L):e(A,f(k),U,L)},function(B,U){var L=r(this),k=f(B);if(!I){var Y=D(A,L,k,U,A!==M);if(Y.done)return Y.value}var V=b(L,RegExp),H=L.unicode,N=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(h?"g":"y"),q=new V(h?"^(?:"+L.source+")":L,N),G=U===void 0?x:U>>>0;if(G===0)return[];if(k.length===0)return l(q,k)===null?[k]:[];for(var Q=0,F=0,Z=[];F<k.length;){q.lastIndex=h?0:F;var oe=l(q,h?_(k,F):k),le;if(oe===null||(le=j(d(q.lastIndex+(h?F:0)),k.length))===Q)F=g(k,F,H);else{if(p(Z,_(k,Q,F)),Z.length===G)return Z;for(var ue=1;ue<=oe.length-1;ue++)if(p(Z,oe[ue]),Z.length===G)return Z;F=Q=le}}return p(Z,_(k,Q)),Z}]},I||!E,h)},2666:function(S,y,t){"use strict";var e=t(63968),a=t(97006),n=t(26805).f,r=t(19168),o=t(88913),m=t(60433),b=t(99476),g=t(6998),d=t(48665),f=a("".slice),v=Math.min,l=g("startsWith"),c=!d&&!l&&!!function(){var u=n(String.prototype,"startsWith");return u&&!u.writable}();e({target:"String",proto:!0,forced:!c&&!l},{startsWith:function(h){var x=o(b(this));m(h);var j=r(v(arguments.length>1?arguments[1]:void 0,x.length)),p=o(h);return f(x,j,j+p.length)===p}})},81526:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("strike")},{strike:function(){return a(this,"strike","","")}})},16344:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("sub")},{sub:function(){return a(this,"sub","","")}})},93069:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(99476),r=t(40201),o=t(88913),m=a("".slice),b=Math.max,g=Math.min,d=!"".substr||"ab".substr(-1)!=="b";e({target:"String",proto:!0,forced:d},{substr:function(v,l){var c=o(n(this)),u=c.length,h=r(v),x,j;return h===1/0&&(h=0),h<0&&(h=b(u+h,0)),x=l===void 0?u:r(l),x<=0||x===1/0?"":(j=g(h+x,u),h>=j?"":m(c,h,j))}})},58226:function(S,y,t){"use strict";var e=t(63968),a=t(82726),n=t(22663);e({target:"String",proto:!0,forced:n("sup")},{sup:function(){return a(this,"sup","","")}})},86504:function(S,y,t){"use strict";var e=t(63968),a=t(17523),n=t(31702),r=t(99476),o=t(88913),m=t(48709),b=Array,g=n("".charAt),d=n("".charCodeAt),f=n([].join),v="".toWellFormed,l="\uFFFD",c=v&&m(function(){return a(v,1)!=="1"});e({target:"String",proto:!0,forced:c},{toWellFormed:function(){var h=o(r(this));if(c)return a(v,h);for(var x=h.length,j=b(x),p=0;p<x;p++){var _=d(h,p);(_&63488)!==55296?j[p]=g(h,p):_>=56320||p+1>=x||(d(h,p+1)&64512)!==56320?j[p]=l:(j[p]=g(h,p),j[++p]=g(h,p))}return f(j,"")}})},77024:function(S,y,t){"use strict";t(97107);var e=t(63968),a=t(71528);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==a},{trimEnd:a})},58224:function(S,y,t){"use strict";var e=t(63968),a=t(53913);e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==a},{trimLeft:a})},97107:function(S,y,t){"use strict";var e=t(63968),a=t(71528);e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==a},{trimRight:a})},26433:function(S,y,t){"use strict";t(58224);var e=t(63968),a=t(53913);e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==a},{trimStart:a})},29700:function(S,y,t){"use strict";var e=t(63968),a=t(27596).trim,n=t(58256);e({target:"String",proto:!0,forced:n("trim")},{trim:function(){return a(this)}})},83830:function(S,y,t){"use strict";var e=t(79109);e("asyncIterator")},42007:function(S,y,t){"use strict";function e(bt,st){return st!=null&&typeof Symbol!="undefined"&&st[Symbol.hasInstance]?!!st[Symbol.hasInstance](bt):bt instanceof st}var a=t(63968),n=t(4057),r=t(17523),o=t(31702),m=t(48665),b=t(79866),g=t(9969),d=t(48709),f=t(23679),v=t(97131),l=t(56937),c=t(67995),u=t(93939),h=t(88913),x=t(36990),j=t(56222),p=t(59086),_=t(65018),E=t(58416),I=t(53903),O=t(26805),M=t(54263),D=t(24363),A=t(37479),B=t(93614),U=t(86940),L=t(26043),k=t(56517),Y=t(74175),V=t(46998),H=t(36197),N=t(95441),q=t(79109),G=t(40156),Q=t(65889),F=t(97951),Z=t(3903).forEach,oe=k("hidden"),le="Symbol",ue="prototype",he=F.set,de=F.getterFor(le),ve=Object[ue],pe=n.Symbol,be=pe&&pe[ue],ye=n.RangeError,Te=n.TypeError,Ke=n.QObject,$e=O.f,We=M.f,Qe=E.f,Ye=A.f,mt=o([].push),vt=L("symbols"),ht=L("op-symbols"),ot=L("wks"),He=!Ke||!Ke[ue]||!Ke[ue].findChild,Ne=function(st,it,gt){var Pt=$e(ve,it);Pt&&delete ve[it],We(st,it,gt),Pt&&st!==ve&&We(ve,it,Pt)},ke=b&&d(function(){return j(We({},"a",{get:function(){return We(this,"a",{value:7}).a}})).a!==7})?Ne:We,we=function(st,it){var gt=vt[st]=j(be);return he(gt,{type:le,tag:st,description:it}),b||(gt.description=it),gt},qe=function(st,it,gt){st===ve&&qe(ht,it,gt),l(st);var Pt=u(it);return l(gt),f(vt,Pt)?(gt.enumerable?(f(st,oe)&&st[oe][Pt]&&(st[oe][Pt]=!1),gt=j(gt,{enumerable:x(0,!1)})):(f(st,oe)||We(st,oe,x(1,j(null))),st[oe][Pt]=!0),ke(st,Pt,gt)):We(st,Pt,gt)},Je=function(st,it){l(st);var gt=c(it),Pt=p(gt).concat(zt(gt));return Z(Pt,function(Ft){(!b||r(at,gt,Ft))&&qe(st,Ft,gt[Ft])}),st},lt=function(st,it){return it===void 0?j(st):Je(j(st),it)},at=function(st){var it=u(st),gt=r(Ye,this,it);return this===ve&&f(vt,it)&&!f(ht,it)?!1:gt||!f(this,it)||!f(vt,it)||f(this,oe)&&this[oe][it]?gt:!0},Xt=function(st,it){var gt=c(st),Pt=u(it);if(!(gt===ve&&f(vt,Pt)&&!f(ht,Pt))){var Ft=$e(gt,Pt);return Ft&&f(vt,Pt)&&!(f(gt,oe)&&gt[oe][Pt])&&(Ft.enumerable=!0),Ft}},Wt=function(st){var it=Qe(c(st)),gt=[];return Z(it,function(Pt){!f(vt,Pt)&&!f(Y,Pt)&&mt(gt,Pt)}),gt},zt=function(st){var it=st===ve,gt=Qe(it?ht:c(st)),Pt=[];return Z(gt,function(Ft){f(vt,Ft)&&(!it||f(ve,Ft))&&mt(Pt,vt[Ft])}),Pt};g||(pe=function(){if(v(be,this))throw new Te("Symbol is not a constructor");var st=!arguments.length||arguments[0]===void 0?void 0:h(arguments[0]),it=V(st),gt=function(Ft){var Yt=this===void 0?n:this;Yt===ve&&r(gt,ht,Ft),f(Yt,oe)&&f(Yt[oe],it)&&(Yt[oe][it]=!1);var ln=x(1,Ft);try{ke(Yt,it,ln)}catch(tn){if(!e(tn,ye))throw tn;Ne(Yt,it,ln)}};return b&&He&&ke(ve,it,{configurable:!0,set:gt}),we(it,st)},be=pe[ue],B(be,"toString",function(){return de(this).tag}),B(pe,"withoutSetter",function(bt){return we(V(bt),bt)}),A.f=at,M.f=qe,D.f=Je,O.f=Xt,_.f=E.f=Wt,I.f=zt,N.f=function(bt){return we(H(bt),bt)},b&&(U(be,"description",{configurable:!0,get:function(){return de(this).description}}),m||B(ve,"propertyIsEnumerable",at,{unsafe:!0}))),a({global:!0,constructor:!0,wrap:!0,forced:!g,sham:!g},{Symbol:pe}),Z(p(ot),function(bt){q(bt)}),a({target:le,stat:!0,forced:!g},{useSetter:function(){He=!0},useSimple:function(){He=!1}}),a({target:"Object",stat:!0,forced:!g,sham:!b},{create:lt,defineProperty:qe,defineProperties:Je,getOwnPropertyDescriptor:Xt}),a({target:"Object",stat:!0,forced:!g},{getOwnPropertyNames:Wt}),G(),Q(pe,le),Y[oe]=!0},99049:function(S,y,t){"use strict";var e=t(63968),a=t(79866),n=t(4057),r=t(31702),o=t(23679),m=t(86015),b=t(97131),g=t(88913),d=t(86940),f=t(98410),v=n.Symbol,l=v&&v.prototype;if(a&&m(v)&&(!("description"in l)||v().description!==void 0)){var c={},u=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:g(arguments[0]),M=b(l,this)?new v(O):O===void 0?v():v(O);return O===""&&(c[M]=!0),M};f(u,v),u.prototype=l,l.constructor=u;var h=String(v("description detection"))==="Symbol(description detection)",x=r(l.valueOf),j=r(l.toString),p=/^Symbol\((.*)\)[^)]+$/,_=r("".replace),E=r("".slice);d(l,"description",{configurable:!0,get:function(){var O=x(this);if(o(c,O))return"";var M=j(O),D=h?E(M,7,-1):_(M,p,"$1");return D===""?void 0:D}}),e({global:!0,constructor:!0,forced:!0},{Symbol:u})}},53544:function(S,y,t){"use strict";var e=t(63968),a=t(10941),n=t(23679),r=t(88913),o=t(26043),m=t(49318),b=o("string-to-symbol-registry"),g=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!m},{for:function(d){var f=r(d);if(n(b,f))return b[f];var v=a("Symbol")(f);return b[f]=v,g[v]=f,v}})},34511:function(S,y,t){"use strict";var e=t(79109);e("hasInstance")},38858:function(S,y,t){"use strict";var e=t(79109);e("isConcatSpreadable")},78921:function(S,y,t){"use strict";var e=t(79109);e("iterator")},72309:function(S,y,t){"use strict";t(42007),t(53544),t(97226),t(24388),t(61511)},97226:function(S,y,t){"use strict";var e=t(63968),a=t(23679),n=t(26091),r=t(71285),o=t(26043),m=t(49318),b=o("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!m},{keyFor:function(d){if(!n(d))throw new TypeError(r(d)+" is not a symbol");if(a(b,d))return b[d]}})},68792:function(S,y,t){"use strict";var e=t(79109);e("matchAll")},89078:function(S,y,t){"use strict";var e=t(79109);e("match")},82179:function(S,y,t){"use strict";var e=t(79109);e("replace")},2911:function(S,y,t){"use strict";var e=t(79109);e("search")},89461:function(S,y,t){"use strict";var e=t(79109);e("species")},72427:function(S,y,t){"use strict";var e=t(79109);e("split")},3058:function(S,y,t){"use strict";var e=t(79109),a=t(40156);e("toPrimitive"),a()},53547:function(S,y,t){"use strict";var e=t(10941),a=t(79109),n=t(65889);a("toStringTag"),n(e("Symbol"),"Symbol")},29500:function(S,y,t){"use strict";var e=t(79109);e("unscopables")},15326:function(S,y,t){"use strict";var e=t(22162),a=t(28676),n=t(40201),r=e.aTypedArray,o=e.exportTypedArrayMethod;o("at",function(b){var g=r(this),d=a(g),f=n(b),v=f>=0?f:d+f;return v<0||v>=d?void 0:g[v]})},44292:function(S,y,t){"use strict";var e=t(31702),a=t(22162),n=t(57531),r=e(n),o=a.aTypedArray,m=a.exportTypedArrayMethod;m("copyWithin",function(g,d){return r(o(this),g,d,arguments.length>2?arguments[2]:void 0)})},96584:function(S,y,t){"use strict";var e=t(22162),a=t(3903).every,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("every",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},47746:function(S,y,t){"use strict";var e=t(22162),a=t(94915),n=t(65232),r=t(87509),o=t(17523),m=t(31702),b=t(48709),g=e.aTypedArray,d=e.exportTypedArrayMethod,f=m("".slice),v=b(function(){var l=0;return new Int8Array(2).fill({valueOf:function(){return l++}}),l!==1});d("fill",function(c){var u=arguments.length;g(this);var h=f(r(this),0,3)==="Big"?n(c):+c;return o(a,this,h,u>1?arguments[1]:void 0,u>2?arguments[2]:void 0)},v)},42341:function(S,y,t){"use strict";var e=t(22162),a=t(3903).filter,n=t(14963),r=e.aTypedArray,o=e.exportTypedArrayMethod;o("filter",function(b){var g=a(r(this),b,arguments.length>1?arguments[1]:void 0);return n(this,g)})},24425:function(S,y,t){"use strict";var e=t(22162),a=t(3903).findIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("findIndex",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},19132:function(S,y,t){"use strict";var e=t(22162),a=t(29401).findLastIndex,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("findLastIndex",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},59145:function(S,y,t){"use strict";var e=t(22162),a=t(29401).findLast,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("findLast",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},5672:function(S,y,t){"use strict";var e=t(22162),a=t(3903).find,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("find",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},90904:function(S,y,t){"use strict";var e=t(33125);e("Float32",function(a){return function(r,o,m){return a(this,r,o,m)}})},26155:function(S,y,t){"use strict";var e=t(33125);e("Float64",function(a){return function(r,o,m){return a(this,r,o,m)}})},22800:function(S,y,t){"use strict";var e=t(22162),a=t(3903).forEach,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("forEach",function(m){a(n(this),m,arguments.length>1?arguments[1]:void 0)})},15239:function(S,y,t){"use strict";var e=t(57863),a=t(22162).exportTypedArrayStaticMethod,n=t(3321);a("from",n,e)},66574:function(S,y,t){"use strict";var e=t(22162),a=t(47919).includes,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("includes",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},31793:function(S,y,t){"use strict";var e=t(22162),a=t(47919).indexOf,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("indexOf",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},68017:function(S,y,t){"use strict";var e=t(33125);e("Int16",function(a){return function(r,o,m){return a(this,r,o,m)}})},10599:function(S,y,t){"use strict";var e=t(33125);e("Int32",function(a){return function(r,o,m){return a(this,r,o,m)}})},44544:function(S,y,t){"use strict";var e=t(33125);e("Int8",function(a){return function(r,o,m){return a(this,r,o,m)}})},48061:function(S,y,t){"use strict";var e=t(4057),a=t(48709),n=t(31702),r=t(22162),o=t(95150),m=t(36197),b=m("iterator"),g=e.Uint8Array,d=n(o.values),f=n(o.keys),v=n(o.entries),l=r.aTypedArray,c=r.exportTypedArrayMethod,u=g&&g.prototype,h=!a(function(){u[b].call([1])}),x=!!u&&u.values&&u[b]===u.values&&u.values.name==="values",j=function(){return d(l(this))};c("entries",function(){return v(l(this))},h),c("keys",function(){return f(l(this))},h),c("values",j,h||!x,{name:"values"}),c(b,j,h||!x,{name:"values"})},63839:function(S,y,t){"use strict";var e=t(22162),a=t(31702),n=e.aTypedArray,r=e.exportTypedArrayMethod,o=a([].join);r("join",function(b){return o(n(this),b)})},95210:function(S,y,t){"use strict";var e=t(22162),a=t(68143),n=t(36929),r=e.aTypedArray,o=e.exportTypedArrayMethod;o("lastIndexOf",function(b){var g=arguments.length;return a(n,r(this),g>1?[b,arguments[1]]:[b])})},12513:function(S,y,t){"use strict";var e=t(22162),a=t(3903).map,n=t(56862),r=e.aTypedArray,o=e.exportTypedArrayMethod;o("map",function(b){return a(r(this),b,arguments.length>1?arguments[1]:void 0,function(g,d){return new(n(g))(d)})})},94586:function(S,y,t){"use strict";var e=t(22162),a=t(57863),n=e.aTypedArrayConstructor,r=e.exportTypedArrayStaticMethod;r("of",function(){for(var m=0,b=arguments.length,g=new(n(this))(b);b>m;)g[m]=arguments[m++];return g},a)},15586:function(S,y,t){"use strict";var e=t(22162),a=t(71728).right,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("reduceRight",function(m){var b=arguments.length;return a(n(this),m,b,b>1?arguments[1]:void 0)})},48233:function(S,y,t){"use strict";var e=t(22162),a=t(71728).left,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("reduce",function(m){var b=arguments.length;return a(n(this),m,b,b>1?arguments[1]:void 0)})},1017:function(S,y,t){"use strict";var e=t(22162),a=e.aTypedArray,n=e.exportTypedArrayMethod,r=Math.floor;n("reverse",function(){for(var m=this,b=a(m).length,g=r(b/2),d=0,f;d<g;)f=m[d],m[d++]=m[--b],m[b]=f;return m})},24247:function(S,y,t){"use strict";var e=t(4057),a=t(17523),n=t(22162),r=t(28676),o=t(58271),m=t(28071),b=t(48709),g=e.RangeError,d=e.Int8Array,f=d&&d.prototype,v=f&&f.set,l=n.aTypedArray,c=n.exportTypedArrayMethod,u=!b(function(){var x=new Uint8ClampedArray(2);return a(v,x,{length:1,0:3},1),x[1]!==3}),h=u&&n.NATIVE_ARRAY_BUFFER_VIEWS&&b(function(){var x=new d(2);return x.set(1),x.set("2",1),x[0]!==0||x[1]!==2});c("set",function(j){l(this);var p=o(arguments.length>1?arguments[1]:void 0,1),_=m(j);if(u)return a(v,this,_,p);var E=this.length,I=r(_),O=0;if(I+p>E)throw new g("Wrong length");for(;O<I;)this[p+O]=_[O++]},!u||h)},98157:function(S,y,t){"use strict";var e=t(22162),a=t(56862),n=t(48709),r=t(45910),o=e.aTypedArray,m=e.exportTypedArrayMethod,b=n(function(){new Int8Array(1).slice()});m("slice",function(d,f){for(var v=r(o(this),d,f),l=a(this),c=0,u=v.length,h=new l(u);u>c;)h[c]=v[c++];return h},b)},45231:function(S,y,t){"use strict";var e=t(22162),a=t(3903).some,n=e.aTypedArray,r=e.exportTypedArrayMethod;r("some",function(m){return a(n(this),m,arguments.length>1?arguments[1]:void 0)})},56851:function(S,y,t){"use strict";var e=t(4057),a=t(97006),n=t(48709),r=t(21604),o=t(34326),m=t(22162),b=t(89624),g=t(86288),d=t(65510),f=t(87554),v=m.aTypedArray,l=m.exportTypedArrayMethod,c=e.Uint16Array,u=c&&a(c.prototype.sort),h=!!u&&!(n(function(){u(new c(2),null)})&&n(function(){u(new c(2),{})})),x=!!u&&!n(function(){if(d)return d<74;if(b)return b<67;if(g)return!0;if(f)return f<602;var p=new c(516),_=Array(516),E,I;for(E=0;E<516;E++)I=E%4,p[E]=515-E,_[E]=E-2*I+3;for(u(p,function(O,M){return(O/4|0)-(M/4|0)}),E=0;E<516;E++)if(p[E]!==_[E])return!0}),j=function(_){return function(E,I){return _!==void 0?+_(E,I)||0:I!==I?-1:E!==E?1:E===0&&I===0?1/E>0&&1/I<0?1:-1:E>I}};l("sort",function(_){return _!==void 0&&r(_),x?u(this,_):o(v(this),j(_))},!x||h)},22864:function(S,y,t){"use strict";var e=t(22162),a=t(19168),n=t(50252),r=t(56862),o=e.aTypedArray,m=e.exportTypedArrayMethod;m("subarray",function(g,d){var f=o(this),v=f.length,l=n(g,v),c=r(f);return new c(f.buffer,f.byteOffset+l*f.BYTES_PER_ELEMENT,a((d===void 0?v:n(d,v))-l))})},35147:function(S,y,t){"use strict";var e=t(4057),a=t(68143),n=t(22162),r=t(48709),o=t(45910),m=e.Int8Array,b=n.aTypedArray,g=n.exportTypedArrayMethod,d=[].toLocaleString,f=!!m&&r(function(){d.call(new m(1))}),v=r(function(){return[1,2].toLocaleString()!==new m([1,2]).toLocaleString()})||!r(function(){m.prototype.toLocaleString.call([1,2])});g("toLocaleString",function(){return a(d,f?o(b(this)):b(this),o(arguments))},v)},16837:function(S,y,t){"use strict";var e=t(43078),a=t(22162),n=a.aTypedArray,r=a.exportTypedArrayMethod,o=a.getTypedArrayConstructor;r("toReversed",function(){return e(n(this),o(this))})},51906:function(S,y,t){"use strict";var e=t(22162),a=t(31702),n=t(21604),r=t(8676),o=e.aTypedArray,m=e.getTypedArrayConstructor,b=e.exportTypedArrayMethod,g=a(e.TypedArrayPrototype.sort);b("toSorted",function(f){f!==void 0&&n(f);var v=o(this),l=r(m(v),v);return g(l,f)})},95846:function(S,y,t){"use strict";var e=t(22162).exportTypedArrayMethod,a=t(48709),n=t(4057),r=t(31702),o=n.Uint8Array,m=o&&o.prototype||{},b=[].toString,g=r([].join);a(function(){b.call({})})&&(b=function(){return g(this)});var d=m.toString!==b;e("toString",b,d)},23060:function(S,y,t){"use strict";var e=t(33125);e("Uint16",function(a){return function(r,o,m){return a(this,r,o,m)}})},36786:function(S,y,t){"use strict";var e=t(33125);e("Uint32",function(a){return function(r,o,m){return a(this,r,o,m)}})},6747:function(S,y,t){"use strict";var e=t(33125);e("Uint8",function(a){return function(r,o,m){return a(this,r,o,m)}})},13252:function(S,y,t){"use strict";var e=t(33125);e("Uint8",function(a){return function(r,o,m){return a(this,r,o,m)}},!0)},8439:function(S,y,t){"use strict";var e=t(70574),a=t(22162),n=t(52105),r=t(40201),o=t(65232),m=a.aTypedArray,b=a.getTypedArrayConstructor,g=a.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(f){return f===8}}();g("with",function(f,v){var l=m(this),c=r(f),u=n(l)?o(v):+v;return e(l,b(l),c,u)},!d)},45117:function(S,y,t){"use strict";var e=t(63968),a=t(31702),n=t(88913),r=String.fromCharCode,o=a("".charAt),m=a(/./.exec),b=a("".slice),g=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;e({global:!0},{unescape:function(v){for(var l=n(v),c="",u=l.length,h=0,x,j;h<u;){if(x=o(l,h++),x==="%"){if(o(l,h)==="u"){if(j=b(l,h+1,h+5),m(d,j)){c+=r(parseInt(j,16)),h+=5;continue}}else if(j=b(l,h,h+2),m(g,j)){c+=r(parseInt(j,16)),h+=2;continue}}c+=x}return c}})},95036:function(S,y,t){"use strict";var e=t(44462),a=t(4057),n=t(31702),r=t(3653),o=t(31565),m=t(34722),b=t(30443),g=t(38692),d=t(97951).enforce,f=t(48709),v=t(76848),l=Object,c=Array.isArray,u=l.isExtensible,h=l.isFrozen,x=l.isSealed,j=l.freeze,p=l.seal,_=!a.ActiveXObject&&"ActiveXObject"in a,E,I=function(Y){return function(){return Y(this,arguments.length?arguments[0]:void 0)}},O=m("WeakMap",I,b),M=O.prototype,D=n(M.set),A=function(){return e&&f(function(){var Y=j([]);return D(new O,Y,1),!h(Y)})};if(v)if(_){E=b.getConstructor(I,"WeakMap",!0),o.enable();var B=n(M.delete),U=n(M.has),L=n(M.get);r(M,{delete:function(k){if(g(k)&&!u(k)){var Y=d(this);return Y.frozen||(Y.frozen=new E),B(this,k)||Y.frozen.delete(k)}return B(this,k)},has:function(Y){if(g(Y)&&!u(Y)){var V=d(this);return V.frozen||(V.frozen=new E),U(this,Y)||V.frozen.has(Y)}return U(this,Y)},get:function(Y){if(g(Y)&&!u(Y)){var V=d(this);return V.frozen||(V.frozen=new E),U(this,Y)?L(this,Y):V.frozen.get(Y)}return L(this,Y)},set:function(Y,V){if(g(Y)&&!u(Y)){var H=d(this);H.frozen||(H.frozen=new E),U(this,Y)?D(this,Y,V):H.frozen.set(Y,V)}else D(this,Y,V);return this}})}else A()&&r(M,{set:function(Y,V){var H;return c(Y)&&(h(Y)?H=j:x(Y)&&(H=p)),D(this,Y,V),H&&H(Y),this}})},53370:function(S,y,t){"use strict";t(95036)},65486:function(S,y,t){"use strict";var e=t(34722),a=t(30443);e("WeakSet",function(n){return function(){return n(this,arguments.length?arguments[0]:void 0)}},a)},98208:function(S,y,t){"use strict";t(65486)},57794:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(53483).clear;e({global:!0,bind:!0,enumerable:!0,forced:a.clearImmediate!==n},{clearImmediate:n})},49282:function(S,y,t){"use strict";t(57794),t(27467)},52536:function(S,y,t){"use strict";var e=t(63968),a=t(82893),n=t(21604),r=t(88158);e({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(m){r(arguments.length,1),a(n(m))}})},27467:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(53483).set,r=t(21294),o=a.setImmediate?r(n,!1):n;e({global:!0,bind:!0,enumerable:!0,forced:a.setImmediate!==o},{setImmediate:o})},61165:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(21294),r=n(a.setInterval,!0);e({global:!0,bind:!0,forced:a.setInterval!==r},{setInterval:r})},84521:function(S,y,t){"use strict";var e=t(63968),a=t(4057),n=t(21294),r=n(a.setTimeout,!0);e({global:!0,bind:!0,forced:a.setTimeout!==r},{setTimeout:r})},28061:function(S,y,t){"use strict";t(61165),t(84521)},5701:function(S,y,t){"use strict";t(49282);var e=t(70889);S.exports=e},85595:function(S,y,t){"use strict";t(52536);var e=t(70889);S.exports=e.queueMicrotask},16768:function(S,y,t){"use strict";t(28061);var e=t(70889);S.exports=e},38513:function(S){/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function y(l,c){(c==null||c>l.length)&&(c=l.length);for(var u=0,h=new Array(c);u<c;u++)h[u]=l[u];return h}function t(l,c){return c!=null&&typeof Symbol!="undefined"&&c[Symbol.hasInstance]?!!c[Symbol.hasInstance](l):l instanceof c}function e(l,c){if(l){if(typeof l=="string")return y(l,c);var u=Object.prototype.toString.call(l).slice(8,-1);if(u==="Object"&&l.constructor&&(u=l.constructor.name),u==="Map"||u==="Set")return Array.from(u);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return y(l,c)}}function a(l,c){var u=typeof Symbol!="undefined"&&l[Symbol.iterator]||l["@@iterator"];if(u)return(u=u.call(l)).next.bind(u);if(Array.isArray(l)||(u=e(l))||c&&l&&typeof l.length=="number"){u&&(l=u);var h=0;return function(){return h>=l.length?{done:!0}:{done:!1,value:l[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,r=[],o=[],m=function(){if(0)var l;window.onunload=function(){return n&&n.close()}},b=function(l){return o.push(l)},g=function(l){var c=[],u=function(j){return typeof j=="number"&&!Number.isFinite(j)?{__number__:String(j)}:typeof j=="undefined"?{__undefined__:!0}:j},h=function(j,p){if(typeof p=="object"){if(p===null)return p;if(c.includes(p))return"[circular ref]";c.push(p);var _=t(p,Error)||p.code&&p.message&&p.message.includes("Error");return _?{__error__:!0,string:String(p),stack:p.stack}:Array.isArray(p)?p.map(u):p}return u(p)},x=JSON.stringify(l,h);return c=null,x},d=function(l){if(0)var c,u,h},f=function(l,c){for(var u=arguments.length,h=new Array(u>2?u-2:0),x=2;x<u;x++)h[x-2]=arguments[x]},v=function(){};S.exports={subscribe:b,sendMessage:d,sendLogEntry:f,setupHotReloading:v}}},Cc={};function $t(S){var y=Cc[S];if(y!==void 0)return y.exports;var t=Cc[S]={exports:{}};return ku[S].call(t.exports,t,t.exports,$t),t.exports}(function(){$t.n=function(S){var y=S&&S.__esModule?function(){return S.default}:function(){return S};return $t.d(y,{a:y}),y}})(),function(){$t.d=function(S,y){for(var t in y)$t.o(y,t)&&!$t.o(S,t)&&Object.defineProperty(S,t,{enumerable:!0,get:y[t]})}}(),function(){$t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(S){if(typeof window=="object")return window}}()}(),function(){$t.o=function(S,y){return Object.prototype.hasOwnProperty.call(S,y)}}(),function(){$t.r=function(S){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})}}();var gd={};(function(){"use strict";var S=$t(46858),y=$t.n(S),t=$t(5701),e=$t.n(t),a=$t(85595),n=$t.n(a),r=$t(16768),o=$t.n(r),m=$t(495),b=$t.n(m),g=$t(80408),d=$t.n(g);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/})(),function(){"use strict";var S=$t(88095),y=$t(3710),t=$t(38513),e=$t(4413),a=$t(80116),n=$t(5030);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var r=function(){document.addEventListener("click",function(N){for(var q=N.target;;){if(!q||q===document.body)return;var G=String(q.tagName).toLowerCase();if(G==="a")break;q=q.parentElement}var Q=q.getAttribute("href")||"",F=Q.charAt(0)==="?"||Q.startsWith("byond://");if(!F){N.preventDefault();var Z=Q;Z.toLowerCase().startsWith("www")&&(Z="https://"+Z),Byond.sendMessage({type:"openLink",url:Z})}})},o=$t(17002),m=$t(28763),b=$t(40001),g=$t(80676);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var d=function(){return useSelector(selectDebug)},f=$t(44583),v=$t(92514),l=$t(84905);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var c=$t(4085),u=function(){return c.keys().map(function(N){return c(N)})},h=function(N){var q=N.panel,G=useLocalState("kitchenSinkTheme"),Q=G[0],F=useState(0),Z=F[0],oe=F[1],le=u(),ue=le[Z],he=q?Pane:Window;return _jsx(he,{title:"Kitchen Sink",width:600,height:500,theme:Q,children:_jsxs(Flex,{height:"100%",children:[_jsx(Flex.Item,{m:1,mr:0,children:_jsx(Section,{fill:!0,fitted:!0,children:_jsx(Tabs,{vertical:!0,children:le.map(function(de,ve){return _jsx(Tabs.Tab,{color:"transparent",selected:ve===Z,onClick:function(){return oe(ve)},children:de.meta.title},ve)})})})}),_jsx(Flex.Item,{position:"relative",grow:1,children:_jsx(he.Content,{scrollable:!0,children:ue.meta.render()})})]})})},x=$t(232);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function j(){return j=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},j.apply(this,arguments)}var p=null,_=function(N){return acquireHotKey(KEY_F11),acquireHotKey(KEY_F12),globalEvents.on("keydown",function(q){q.code===KEY_F11&&N.dispatch(toggleDebugLayout()),q.code===KEY_F12&&N.dispatch(toggleKitchenSink()),q.ctrl&&q.alt&&q.code===KEY_BACKSPACE&&setTimeout(function(){throw new Error("OOPSIE WOOPSIE!! UwU We made a fucky wucky!! A wittle fucko boingo! The code monkeys at our headquarters are working VEWY HAWD to fix this!")})}),function(q){return function(G){return q(G)}}},E=function(N){var q=$t(38513),G=location.search==="?external";return G?q.subscribe(function(Q){var F=Q.type,Z=Q.payload;F==="relay"&&Z.windowId===Byond.windowId&&N.dispatch(j({},Z.action,{relayed:!0}))}):(acquireHotKey(KEY_F10),globalEvents.on("keydown",function(Q){Q===KEY_F10&&N.dispatch(openExternalBrowser())})),function(Q){return function(F){var Z=F.type,oe=F.payload,le=F.relayed;if(Z===openExternalBrowser.type){window.open(location.href+"?external","_blank");return}return p.includes(Z)&&!le&&!G&&q.sendMessage({type:"relay",payload:{windowId:Byond.windowId,action:F}}),Q(F)}}};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/function I(){return I=Object.assign||function(N){for(var q=1;q<arguments.length;q++){var G=arguments[q];for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(N[Q]=G[Q])}return N},I.apply(this,arguments)}var O=function(N,q){N===void 0&&(N={});var G=q.type,Q=q.payload;return G==="debug/toggleKitchenSink"?I({},N,{kitchenSink:!N.kitchenSink}):G==="debug/toggleDebugLayout"?I({},N,{debugLayout:!N.debugLayout}):N};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var M=$t(47868);/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var D=(0,M.h)("store"),A=function(N){N===void 0&&(N={});var q=N.sideEffects,G=q===void 0?!0:q,Q=N.reducer,F=N.middleware,Z=(0,m.L)([(0,b.HY)({debug:O,backend:e.jB}),Q]),oe=G?[].concat((F==null?void 0:F.pre)||[],[g.h,e.pX],(F==null?void 0:F.post)||[]):[],le=b.Tw.apply(void 0,[].concat(oe)),ue=(0,b.y$)(Z,le);return window.__store__=ue,window.__augmentStack__=U(ue),ue},B=function(N){return function(q){return function(G){var Q=G.type;return D.debug("action",Q==="update"||Q==="backend/update"?{type:Q}:G),q(G)}}},U=function(N){return function(q,G){var Q,F;G=G||new Error(q.split("\n")[0]),G.stack=G.stack||q,D.log("FatalError:",G);var Z=N.getState(),oe=Z==null||(Q=Z.backend)==null?void 0:Q.config;return q+"\nUser Agent: "+navigator.userAgent+"\nState: "+JSON.stringify({ckey:oe==null||(F=oe.client)==null?void 0:F.ckey,interface:oe==null?void 0:oe.interface,window:oe==null?void 0:oe.window})}};/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/var L,k;y.k.mark("inception",(k=window.performance)==null||(L=k.timing)==null?void 0:L.navigationStart),y.k.mark("init");var Y=A(),V=(0,o.K9)(function(){(0,e.H$)(Y);var N=$t(82989).l,q=N(Y);return(0,S.jsx)(q,{})}),H=function(){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",H);return}(0,a.y4)(),(0,n.Bm)(),r(),Y.subscribe(V),Byond.subscribe(function(N,q){return Y.dispatch({type:N,payload:q})})};H()}()})();})();