openc3-cosmos-tool-scriptrunner 5.10.1 → 5.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,2 @@
1
- (self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[388],{84910:function(e,n,t){var i={"./ArrayWidget.vue":91679,"./BlockWidget.vue":90328,"./ButtonWidget.vue":94307,"./CanvasWidget.vue":37739,"./CanvasdotWidget.vue":72810,"./CanvasimageWidget.vue":47696,"./CanvasimagevalueWidget.vue":15348,"./CanvaslabelWidget.vue":19091,"./CanvaslabelvalueWidget.vue":93856,"./CanvaslineWidget.vue":96068,"./CanvaslinevalueWidget.vue":17289,"./CheckbuttonWidget.vue":6122,"./ComboboxWidget.vue":84190,"./DynamicWidget.vue":39609,"./FormatvalueWidget.vue":90742,"./HorizontalWidget.vue":745,"./HorizontalboxWidget.vue":1835,"./HorizontallineWidget.vue":92398,"./IframeWidget.vue":27549,"./ImageviewerWidget.vue":1499,"./LabelWidget.vue":75318,"./LabelledWidget.vue":21275,"./LabelprogressbarWidget.vue":15929,"./LabelsparklineWidget.vue":91745,"./LabelvalueWidget.vue":210,"./LabelvaluedescWidget.vue":28913,"./LabelvaluelimitsbarWidget.vue":68738,"./LabelvaluelimitscolumnWidget.vue":94338,"./LabelvaluerangebarWidget.vue":45964,"./LedWidget.vue":29016,"./LimitsbarWidget.vue":6449,"./LimitscolorWidget.vue":74865,"./LimitscolumnWidget.vue":36652,"./LinegraphWidget.vue":32554,"./MatrixbycolumnsWidget.vue":42509,"./ProgressbarWidget.vue":11826,"./RadiobuttonWidget.vue":1882,"./RadiogroupWidget.vue":22201,"./RangebarWidget.vue":96758,"./ScrollwindowWidget.vue":64836,"./SectionheaderWidget.vue":28560,"./SpacerWidget.vue":39413,"./SparklineWidget.vue":56803,"./TabbookWidget.vue":51018,"./TextboxWidget.vue":31597,"./TextfieldWidget.vue":71447,"./TitleWidget.vue":43748,"./ValueWidget.vue":87557,"./ValuelimitsbarWidget.vue":73437,"./ValuelimitscolumnWidget.vue":56822,"./ValuerangebarWidget.vue":91312,"./VerticalWidget.vue":21833,"./VerticalboxWidget.vue":59233};function l(e){var n=s(e);return t(n)}function s(e){if(!t.o(i,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return i[e]}l.keys=function(){return Object.keys(i)},l.resolve=s,e.exports=l,l.id=84910},22841:function(e,n,t){"use strict";t(58188),t(1939),t(36728),t(68995),t(32501),t(71372);var i=t(10247),l=t(98365),s=t(92202);n.Z={mixins:[s.Z],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"ITEM":e.items.push({targetName:n[1],packetName:n[2],itemName:n[3],valueType:n[4]||"CONVERTED",reduced:n[5]||"DECOM",reducedType:n[6]||null});case"STARTTIME":var t=(0,i.Z)(n[1],"yyyy/MM/dd HH:mm:ss",new Date);e.startTime=1e6*t.getTime();break;case"HISTORY":var s=parseInt(n[1].slice(0,n[1].length-1)),o=null,a=1;switch(n[1][n[1].length-1]){case"d":o="days",a=86400;break;case"h":o="hours",a=3600;break;case"m":o="minutes",a=60;break;case"s":o="seconds";break;default:throw new Error("Unknown time suffix: ".concat(n[1],"!"))}var r={};r[o]=s,e.startTime=1e6*(0,l.Z)(new Date,r).getTime(),s*a>e.secondsGraphed&&(e.secondsGraphed=s*a),s*a>e.pointsSaved&&(e.pointsSaved=s*a),s*a>e.pointsGraphed&&(e.pointsGraphed=s*a);break;case"SECONDSGRAPHED":e.secondsGraphed=parseInt(n[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(n[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(n[1]);break;case"SIZE":e.size.width=parseInt(n[1]),e.size.height=parseInt(n[2]);break}}))}}},1716:function(e,n,t){"use strict";var i=t(15789),l=t(49502),s=(t(18178),t(16129));n.Z={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,l.Z)((0,i.Z)().mark((function e(n){var t;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(n)),"?bucket=OPENC3_CONFIG_BUCKET"));case 2:return t=e.sent,e.abrupt("return",t.data.url);case 4:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()}}},548:function(e,n,t){"use strict";var i=t(92202);n.Z={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},92318:function(e,n,t){"use strict";t(18178),t(96708),t(27233),t(28673),t(32501),t(58188),t(88233);var i=t(92202);t(80131);n.Z={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e){var n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?t+='"'+e[i]+'"':t+=e[i],i!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var n=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){n.contextMenuShown=!0}))}}}},92202:function(e,n,t){"use strict";t(71245),t(58188),t(1939),t(68995),t(32501),t(49228),t(18178),t(1951),t(36728);var i=t(63291);n.Z={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data:function(){return{screen:null}},computed:{computedStyle:function(){var e=this,n={};return this.settings.forEach((function(t){var i=parseInt(t[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;t=t.slice(1)}e.applySetting(n,t)})),void 0===n["width"]&&(n["flex"]="0 10 100%"),n}},created:function(){var e=this;this.settings.forEach((function(n){"__SCREEN__"===n[0]&&(e.screen=n[1])}))},methods:{applySetting:function(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams:function(e,n,t){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},o=1;o<=n;o++)if(void 0===this.parameters[o-1])throw new i.y(s,"Not enough parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5");if(t&&void 0===!this.parameters[t])throw new i.y(s,"Too many parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5")},setWidth:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"WIDTH"===e[1]})):this.settings.find((function(e){return"WIDTH"===e[0]})),l)return l["WIDTH"];if(e){var s=["WIDTH","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["WIDTH","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},setHeight:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"HEIGHT"===e[1]})):this.settings.find((function(e){return"HEIGHT"===e[0]})),l)return l["HEIGHT"];if(e){var s=["HEIGHT","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["HEIGHT","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},16129:function(e,n,t){"use strict";var i=t(66964),l=t(15789),s=t(49502),o=t(89373),a=function(){var e=(0,s.Z)((0,l.Z)().mark((function e(n,t){var i,s,a,r,c,u,d,m,A,p,h=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=h.length>2&&void 0!==h[2]?h[2]:{},s=i.data,a=i.params,r=void 0===a?{}:a,c=i.headers,u=i.noAuth,d=void 0!==u&&u,m=i.noScope,A=void 0!==m&&m,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:p=e.sent,p&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return A||r["scope"]||(r["scope"]=window.openc3Scope),e.abrupt("return",(0,o.Z)({method:n,url:t,data:s,params:r,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),r={Accept:"application/json"},c=(0,i.Z)((0,i.Z)({},r),{},{"Content-Type":"application/json"});n.Z={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("get",e,{params:t,headers:l,noScope:s,noAuth:o})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("put",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("post",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("delete",e,{params:t,headers:l,noScope:s,noAuth:o})}}},89373:function(e,n,t){"use strict";t(39529),t(31235),t(58188),t(88233);var i=t(89644),l=t.n(i),s=t(44091),o=new s["default"],a=l().create({baseURL:location.origin,timeout:6e4,params:{}});a.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,i,l,s;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var a="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+="".concat(e.response.config.data," ")),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)a+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)a+="".concat(e.response.data.exception);else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&null!==(s=s.error)&&void 0!==s&&s.message)e.response.data.error.class&&(a+="".concat(e.response.data.error.class," ")),a+="".concat(e.response.data.error.message);else{var r;a+="".concat(null===(r=e.response)||void 0===r?void 0:r.data)}throw o.$notify&&o.$notify.serious({title:"Network error",body:a}),e}throw e})),n.Z=a},59161:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(66964),l=t(50426),s=t(57871),o=t(47146);o.ju.staleThreshold=10;var a=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,l.Z)(this,e),this._cable=null,this._url=n}return(0,s.Z)(e,[{key:"disconnect",value:function(){this._cable&&this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(n){if(n&&OpenC3Auth.setTokens(),null==t._cable){var a=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=o.zD(a)}return t._cable.subscriptions.create((0,i.Z)({channel:e},s),l)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}()},63291:function(e,n,t){"use strict";t.d(n,{p:function(){return a},y:function(){return o}});var i=t(52261),l=t(57871),s=t(50426),o=(t(77950),t(85940),t(36728),t(45794),(0,l.Z)((function e(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,s.Z)(this,e),this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=t,this.usage=i,this.url=l}))),a=function(){function e(){(0,s.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,l.Z)(e,[{key:"verify_num_parameters",value:function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new o(this,"Not enough parameters for ".concat(this.keyword,"."),t,this.url);if(n&&void 0===!this.parameters[n])throw new o(this,"Too many parameters for ".concat(this.keyword,"."),t,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var n=e.charAt(0);if('"'!==n&&"'"!==n)return e;var t=e.charAt(e.length-1);return n!==t?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,n){if(!n.global)throw"rx must have 'global' flag set";var t=[];return e.replace(n,(function(e){return t.push(e),e})),t}},{key:"parse_string",value:function(e,n,t,i,l){var s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=n;for(var o=e.split("\n"),a=o.length,r=0;r<a;r++){this.lineNumber=r+1;var c=o[r].trim();if(0!==c.length){if(!0===s){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),s=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}s=!1;var A=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,A),h="";if(p.length>0&&(h+=p[0]),0===h.length||"#"===h.charAt(0)?this.keyword=null:this.keyword=h.toUpperCase(),this.parameters=[],null!==this.keyword){var f=p.length;if(f>1)for(var v=1;v<f;v++){var g=p[v];if(g.length>0&&"#"===g.charAt(0))break;i?this.parameters.push(this.remove_quotes(g)):this.parameters.push(g)}l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else t&&l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,n,t){"use strict";t.d(n,{k:function(){return d}});var i=t(26259),l=t(15789),s=t(66964),o=t(49502),a=t(50426),r=t(57871),c=t(52261),u=(t(71372),t(71245),t(77950),t(18178),t(39529),t(72994),t(58188),t(13675),t(94898),t(5825),t(67170),t(38857),t(58329),t(76279),t(427),t(40171),t(57093),t(11159),t(42516),t(64349),t(15273),t(16729),t(41801),t(50574),t(5787),t(39271),t(73160),t(65688),t(93157),t(33333),t(70315),t(50556),t(92529),t(86943),t(29224),t(91157),t(43450),t(27233),t(28673),t(35734),t(88233),t(89373)),d=function(){function e(){(0,a.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,r.Z)(e,[{key:"exec",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,o,a,r,c,d,m=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=m.length>3&&void 0!==m[3]?m[3]:{},a=m.length>4&&void 0!==m[4]?m[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:r=e.sent,r&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,i["scope"]=window.openc3Scope,e.next=18,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:i},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},o),timeout:a});case 18:return c=e.sent,e.abrupt("return",c.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),d=new Error,e.t1.response?(d.name=e.t1.response.data.error.data.class,d.message=e.t1.response.data.error.data.message):e.t1.request?(d.name="Request error",d.message="Request error, no response received"):d.name="Unknown error",d;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c,u=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:i,stale_time:s});case 3:if(o=e.sent,null!=o)for(a=o.length,r=null,c=0;c<a;c++)r=this.decode_openc3_type(o[c][1]),null!==r&&(o[c][1]=r);return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s,o,a,r=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t},{},1e4);case 3:for(i=e.sent,s=i[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[0][a]),null!==o&&(i[0][a]=o);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",o=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:o=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:o=e.sent,e.next=19;break;case 15:throw a=new Error,a.name="TypeError",a.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),a;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,i],{type:s});case 23:o=e.sent;case 24:return r=this.decode_openc3_type(o),null!==r&&(o=r),e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,s,o=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:null,s=o.length>3&&void 0!==o[3]?o[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[n,t,i],{type:s});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}},{key:"override_tlm",value:function(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,i])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,i,l){var s=null;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s=this.encode_openc3_type(i[o]),null!==s&&(i[o]=s));return this.exec(e,[n,t,i],{},l)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return i=e.sent,s=new Uint8Array(i),e.abrupt("return",Array.from(s).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()},70388:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Hi}});t(95342),t(58188);function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="72634981601e5ceee792f769d999633e586adde5",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:35}},4:{start:{line:1,column:265},end:{line:1,column:406}},5:{start:{line:1,column:339},end:{line:1,column:360}},6:{start:{line:1,column:465},end:{line:1,column:482}},7:{start:{line:1,column:730},end:{line:3,column:58}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:125},end:{line:3,column:150}},10:{start:{line:3,column:386},end:{line:3,column:928}},11:{start:{line:3,column:823},end:{line:3,column:853}},12:{start:{line:3,column:888},end:{line:3,column:918}},13:{start:{line:3,column:1457},end:{line:3,column:1649}},14:{start:{line:3,column:1999},end:{line:3,column:2021}},15:{start:{line:3,column:2297},end:{line:3,column:2313}},16:{start:{line:3,column:2586},end:{line:3,column:2599}},17:{start:{line:3,column:3184},end:{line:3,column:3508}},18:{start:{line:3,column:3359},end:{line:3,column:3415}},19:{start:{line:3,column:4217},end:{line:3,column:4243}},20:{start:{line:3,column:4435},end:{line:3,column:4451}},21:{start:{line:3,column:4581},end:{line:3,column:4605}},22:{start:{line:3,column:4605},end:{line:3,column:4663}},23:{start:{line:3,column:4828},end:{line:3,column:4856}},24:{start:{line:3,column:4961},end:{line:3,column:5137}},25:{start:{line:3,column:5830},end:{line:3,column:5843}},26:{start:{line:3,column:5963},end:{line:3,column:5979}},27:{start:{line:3,column:6139},end:{line:3,column:6165}},28:{start:{line:3,column:6192},end:{line:3,column:6219}},29:{start:{line:3,column:6275},end:{line:3,column:6291}},30:{start:{line:3,column:6526},end:{line:3,column:6559}},31:{start:{line:3,column:6586},end:{line:3,column:6613}},32:{start:{line:3,column:6671},end:{line:3,column:6689}},33:{start:{line:3,column:6834},end:{line:3,column:6857}},34:{start:{line:3,column:7149},end:{line:3,column:7179}},35:{start:{line:3,column:7454},end:{line:3,column:7485}},36:{start:{line:3,column:7697},end:{line:3,column:7735}},37:{start:{line:3,column:8003},end:{line:3,column:8043}},38:{start:{line:3,column:8190},end:{line:3,column:8211}},39:{start:{line:3,column:8591},end:{line:3,column:8624}},40:{start:{line:3,column:8792},end:{line:3,column:8826}},41:{start:{line:3,column:9090},end:{line:3,column:9134}},42:{start:{line:3,column:9342},end:{line:3,column:9364}},43:{start:{line:3,column:9474},end:{line:3,column:9493}},44:{start:{line:4,column:12},end:{line:4,column:35}},45:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:245},end:{line:1,column:246}},loc:{start:{line:1,column:264},end:{line:1,column:407}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:322},end:{line:1,column:323}},loc:{start:{line:1,column:338},end:{line:1,column:361}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:449},end:{line:1,column:450}},loc:{start:{line:1,column:464},end:{line:1,column:483}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:710},end:{line:1,column:711}},loc:{start:{line:1,column:729},end:{line:3,column:59}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:949},end:{line:1,column:950}},loc:{start:{line:1,column:955},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:109},end:{line:3,column:110}},loc:{start:{line:3,column:124},end:{line:3,column:151}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:372},end:{line:3,column:373}},loc:{start:{line:3,column:385},end:{line:3,column:929}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:806},end:{line:3,column:807}},loc:{start:{line:3,column:822},end:{line:3,column:854}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:871},end:{line:3,column:872}},loc:{start:{line:3,column:887},end:{line:3,column:919}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1433},end:{line:3,column:1434}},loc:{start:{line:3,column:1456},end:{line:3,column:1650}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:1983},end:{line:3,column:1984}},loc:{start:{line:3,column:1998},end:{line:3,column:2022}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2281},end:{line:3,column:2282}},loc:{start:{line:3,column:2296},end:{line:3,column:2314}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:2570},end:{line:3,column:2571}},loc:{start:{line:3,column:2585},end:{line:3,column:2600}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3160},end:{line:3,column:3161}},loc:{start:{line:3,column:3183},end:{line:3,column:3509}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3342},end:{line:3,column:3343}},loc:{start:{line:3,column:3358},end:{line:3,column:3416}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4200},end:{line:3,column:4201}},loc:{start:{line:3,column:4216},end:{line:3,column:4244}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4419},end:{line:3,column:4420}},loc:{start:{line:3,column:4434},end:{line:3,column:4452}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4564},end:{line:3,column:4565}},loc:{start:{line:3,column:4580},end:{line:3,column:4664}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:4812},end:{line:3,column:4813}},loc:{start:{line:3,column:4827},end:{line:3,column:4857}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:4946},end:{line:3,column:4947}},loc:{start:{line:3,column:4960},end:{line:3,column:5138}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5814},end:{line:3,column:5815}},loc:{start:{line:3,column:5829},end:{line:3,column:5844}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5947},end:{line:3,column:5948}},loc:{start:{line:3,column:5962},end:{line:3,column:5980}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:6122},end:{line:3,column:6123}},loc:{start:{line:3,column:6138},end:{line:3,column:6166}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:6175},end:{line:3,column:6176}},loc:{start:{line:3,column:6191},end:{line:3,column:6220}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6259},end:{line:3,column:6260}},loc:{start:{line:3,column:6274},end:{line:3,column:6292}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6509},end:{line:3,column:6510}},loc:{start:{line:3,column:6525},end:{line:3,column:6560}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6569},end:{line:3,column:6570}},loc:{start:{line:3,column:6585},end:{line:3,column:6614}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6655},end:{line:3,column:6656}},loc:{start:{line:3,column:6670},end:{line:3,column:6690}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:6818},end:{line:3,column:6819}},loc:{start:{line:3,column:6833},end:{line:3,column:6858}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7133},end:{line:3,column:7134}},loc:{start:{line:3,column:7148},end:{line:3,column:7180}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7438},end:{line:3,column:7439}},loc:{start:{line:3,column:7453},end:{line:3,column:7486}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7681},end:{line:3,column:7682}},loc:{start:{line:3,column:7696},end:{line:3,column:7736}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:7987},end:{line:3,column:7988}},loc:{start:{line:3,column:8002},end:{line:3,column:8044}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8174},end:{line:3,column:8175}},loc:{start:{line:3,column:8189},end:{line:3,column:8212}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8575},end:{line:3,column:8576}},loc:{start:{line:3,column:8590},end:{line:3,column:8625}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8776},end:{line:3,column:8777}},loc:{start:{line:3,column:8791},end:{line:3,column:8827}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:9074},end:{line:3,column:9075}},loc:{start:{line:3,column:9089},end:{line:3,column:9135}},line:3},38:{name:"(anonymous_38)",decl:{start:{line:3,column:9326},end:{line:3,column:9327}},loc:{start:{line:3,column:9341},end:{line:3,column:9365}},line:3},39:{name:"(anonymous_39)",decl:{start:{line:3,column:9458},end:{line:3,column:9459}},loc:{start:{line:3,column:9473},end:{line:3,column:9494}},line:3},40:{name:"(anonymous_40)",decl:{start:{line:3,column:9669},end:{line:3,column:9670}},loc:{start:{line:3,column:9675},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:980},end:{line:3,column:1138}},type:"cond-expr",locations:[{start:{line:3,column:998},end:{line:3,column:1129}},{start:{line:3,column:1130},end:{line:3,column:1138}}],line:3},1:{loc:{start:{line:3,column:1242},end:{line:3,column:1356}},type:"cond-expr",locations:[{start:{line:3,column:1263},end:{line:3,column:1347}},{start:{line:3,column:1348},end:{line:3,column:1356}}],line:3},2:{loc:{start:{line:3,column:2623},end:{line:3,column:2842}},type:"cond-expr",locations:[{start:{line:3,column:2655},end:{line:3,column:2761}},{start:{line:3,column:2762},end:{line:3,column:2842}}],line:3},3:{loc:{start:{line:3,column:2858},end:{line:3,column:4093}},type:"cond-expr",locations:[{start:{line:3,column:2892},end:{line:3,column:3584}},{start:{line:3,column:3585},end:{line:3,column:4093}}],line:3},4:{loc:{start:{line:3,column:5264},end:{line:3,column:5883}},type:"cond-expr",locations:[{start:{line:3,column:5280},end:{line:3,column:5874}},{start:{line:3,column:5875},end:{line:3,column:5883}}],line:3},5:{loc:{start:{line:3,column:6014},end:{line:3,column:6326}},type:"cond-expr",locations:[{start:{line:3,column:6029},end:{line:3,column:6317}},{start:{line:3,column:6318},end:{line:3,column:6326}}],line:3},6:{loc:{start:{line:3,column:6327},end:{line:3,column:6726}},type:"cond-expr",locations:[{start:{line:3,column:6344},end:{line:3,column:6717}},{start:{line:3,column:6718},end:{line:3,column:6726}}],line:3},7:{loc:{start:{line:3,column:6727},end:{line:3,column:6899}},type:"cond-expr",locations:[{start:{line:3,column:6749},end:{line:3,column:6890}},{start:{line:3,column:6891},end:{line:3,column:6899}}],line:3},8:{loc:{start:{line:3,column:6900},end:{line:3,column:7214}},type:"cond-expr",locations:[{start:{line:3,column:6915},end:{line:3,column:7205}},{start:{line:3,column:7206},end:{line:3,column:7214}}],line:3},9:{loc:{start:{line:3,column:7215},end:{line:3,column:7521}},type:"cond-expr",locations:[{start:{line:3,column:7231},end:{line:3,column:7512}},{start:{line:3,column:7513},end:{line:3,column:7521}}],line:3},10:{loc:{start:{line:3,column:7522},end:{line:3,column:7778}},type:"cond-expr",locations:[{start:{line:3,column:7545},end:{line:3,column:7769}},{start:{line:3,column:7770},end:{line:3,column:7778}}],line:3},11:{loc:{start:{line:3,column:7779},end:{line:3,column:8088}},type:"cond-expr",locations:[{start:{line:3,column:7804},end:{line:3,column:8079}},{start:{line:3,column:8080},end:{line:3,column:8088}}],line:3},12:{loc:{start:{line:3,column:8089},end:{line:3,column:8251}},type:"cond-expr",locations:[{start:{line:3,column:8109},end:{line:3,column:8242}},{start:{line:3,column:8243},end:{line:3,column:8251}}],line:3},13:{loc:{start:{line:3,column:8252},end:{line:3,column:8662}},type:"cond-expr",locations:[{start:{line:3,column:8270},end:{line:3,column:8653}},{start:{line:3,column:8654},end:{line:3,column:8662}}],line:3},14:{loc:{start:{line:3,column:8663},end:{line:3,column:8865}},type:"cond-expr",locations:[{start:{line:3,column:8682},end:{line:3,column:8856}},{start:{line:3,column:8857},end:{line:3,column:8865}}],line:3},15:{loc:{start:{line:3,column:8866},end:{line:3,column:9183}},type:"cond-expr",locations:[{start:{line:3,column:8895},end:{line:3,column:9174}},{start:{line:3,column:9175},end:{line:3,column:9183}}],line:3},16:{loc:{start:{line:3,column:9569},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:9587},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"72634981601e5ceee792f769d999633e586adde5"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return i=function(){return a},a}i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-snackbar",{attrs:{top:"",color:e.alertType,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[1]++,i().s[4]++,[n("v-btn",e._b({attrs:{text:""},on:{click:function(n){i().f[2]++,i().s[5]++,e.showAlert=!1}}},"v-btn",l,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(n){i().f[3]++,i().s[6]++,e.showAlert=n},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v(" "+e._s(e.alertText)+" ")],1),n("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[4]++,i().s[7]++,[n("v-btn",e._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:e.confirmLocalUnlock}},"v-btn",l,!1),[e._v(" Unlock ")]),n("v-btn",e._b({attrs:{text:""},on:{click:function(){i().f[5]++,i().s[8]++,e.showReadOnlyToast=!1}}},"v-btn",l,!1),[e._v(" dismiss ")])]}}]),model:{value:e.showReadOnlyToast,callback:function(n){i().f[6]++,i().s[9]++,e.showReadOnlyToast=n},expression:"showReadOnlyToast"}},[n("v-icon",[e._v(" mdi-pencil-off ")]),e._v(" "+e._s(e.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n("div",{staticClass:"grid"},e._l(e.screens,(function(t){return i().f[7]++,i().s[10]++,n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition,keywords:e.screenKeywords,initialFloated:!0,initialTop:t.top,initialLeft:t.left,initialZ:3,minZ:3,fixFloated:!0,count:t.count},on:{"close-screen":function(n){return i().f[8]++,i().s[11]++,e.closeScreen(t.id)},"delete-screen":function(n){return i().f[9]++,i().s[12]++,e.closeScreen(t.id)}}})],1)])})),0),n("v-card",{staticStyle:{padding:"10px"}},[e.suiteRunner?(i().b[0][0]++,n("suite-runner",{attrs:{"suite-map":e.suiteMap,"disable-buttons":e.disableSuiteButtons},on:{button:e.suiteRunnerButton}})):(i().b[0][1]++,e._e()),n("div",{attrs:{id:"sr-controls"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e.showDisconnect?(i().b[1][0]++,n("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[e._v(" mdi-connection ")])):(i().b[1][1]++,e._e()),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[10]++,i().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.filename===e.NEW_FILENAME},on:{click:e.reloadFile}},"v-btn",s,!1),l),[n("v-icon",[e._v("mdi-cached")])],1)]}}])},[n("span",[e._v(" Reload File ")])]),n("v-select",{staticStyle:{width:"300px"},attrs:{items:e.fileList,disabled:e.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"","hide-details":""},on:{change:e.fileNameChanged},model:{value:e.filenameSelect,callback:function(n){i().f[11]++,i().s[14]++,e.filenameSelect=n},expression:"filenameSelect"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"100px"},attrs:{label:"Script ID","data-test":"id",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.scriptId,callback:function(n){i().f[12]++,i().s[15]++,e.scriptId=n},expression:"scriptId"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"120px"},attrs:{label:"Script State","data-test":"state",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.state,callback:function(n){i().f[13]++,i().s[16]++,e.state=n},expression:"state"}}),"Connecting..."===e.state?(i().b[2][0]++,n("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(i().b[2][1]++,n("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),n("v-spacer"),"Start"===e.startOrGoButton?(i().b[3][0]++,n("div",[n("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:e.startOrGoDisabled},on:{click:e.startHandler}},[n("span",[e._v(" Start ")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[14]++,i().s[17]++,[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:e.environmentIconColor,disabled:e.envDisabled},on:{click:function(n){i().f[15]++,i().s[18]++,e.scriptEnvironment.show=!e.scriptEnvironment.show}}},"v-btn",s,!1),l),[n("v-icon",[e._v(" "+e._s(e.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[n("span",[e._v("Script Environment")])])],1)):(i().b[3][1]++,n("div",[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.startOrGoDisabled,"data-test":"go-button"},on:{click:e.go}},[e._v(" Go ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:e.pauseOrRetry}},[e._v(" "+e._s(e.pauseOrRetryButton)+" ")]),n("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:e.stopDisabled},on:{click:e.stop}},[e._v(" Stop ")])],1))],1)],1)],1),n("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(n){return i().f[16]++,i().s[19]++,e.editor.resize()}}},[n("div",{staticClass:"editorbox pane"},[n("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:e.showSave,callback:function(n){i().f[17]++,i().s[20]++,e.showSave=n},expression:"showSave"}},[e._v(" Saving... ")]),n("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(n){return i().f[18]++,i().s[21]++,n.preventDefault(),i().s[22]++,e.showExecuteSelectionMenu.apply(null,arguments)}}}),n("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.executeSelectionMenu,callback:function(n){i().f[19]++,i().s[23]++,e.executeSelectionMenu=n},expression:"executeSelectionMenu"}},[n("v-list",e._l(e.executeSelectionMenuItems,(function(t){return i().f[20]++,i().s[24]++,n("v-list-item",{key:t.label,attrs:{link:"",disabled:e.scriptId}},[n("v-list-item-title",{on:{click:t.command}},[e._v(" "+e._s(t.label)+" ")])],1)})),1)],1)],1),n("multipane-resizer",[n("hr")]),n("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[e.showDebug?(i().b[4][0]++,n("div",{staticClass:"pa-0",attrs:{id:"debug"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:!e.scriptId,"data-test":"step-button"},on:{click:e.step}},[e._v(" Step "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-step-forward ")])],1),n("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:e.debugKeydown},model:{value:e.debug,callback:function(n){i().f[21]++,i().s[25]++,e.debug=n},expression:"debug"}})],1)],1)):(i().b[4][1]++,e._e()),n("script-log-messages",{model:{value:e.messages,callback:function(n){i().f[22]++,i().s[26]++,e.messages=n},expression:"messages"}})],1)],1),e.fileOpen?(i().b[5][0]++,n("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(n){return i().f[23]++,i().s[27]++,e.setFile(n)},error:function(n){return i().f[24]++,i().s[28]++,e.setError(n)}},model:{value:e.fileOpen,callback:function(n){i().f[25]++,i().s[29]++,e.fileOpen=n},expression:"fileOpen"}})):(i().b[5][1]++,e._e()),e.showSaveAs?(i().b[6][0]++,n("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":e.filenameOrBlank},on:{filename:function(n){return i().f[26]++,i().s[30]++,e.saveAsFilename(n)},error:function(n){return i().f[27]++,i().s[31]++,e.setError(n)}},model:{value:e.showSaveAs,callback:function(n){i().f[28]++,i().s[32]++,e.showSaveAs=n},expression:"showSaveAs"}})):(i().b[6][1]++,e._e()),e.showEnvironment?(i().b[7][0]++,n("environment-dialog",{model:{value:e.showEnvironment,callback:function(n){i().f[29]++,i().s[33]++,e.showEnvironment=n},expression:"showEnvironment"}})):(i().b[7][1]++,e._e()),e.ask.show?(i().b[8][0]++,n("ask-dialog",{attrs:{question:e.ask.question,default:e.ask.default,password:e.ask.password,"answer-required":e.ask.answerRequired},on:{response:e.ask.callback},model:{value:e.ask.show,callback:function(n){i().f[30]++,i().s[34]++,e.$set(e.ask,"show",n)},expression:"ask.show"}})):(i().b[8][1]++,e._e()),e.file.show?(i().b[9][0]++,n("file-dialog",{attrs:{title:e.file.title,message:e.file.message,multiple:e.file.multiple,filter:e.file.filter},on:{response:e.fileDialogCallback},model:{value:e.file.show,callback:function(n){i().f[31]++,i().s[35]++,e.$set(e.file,"show",n)},expression:"file.show"}})):(i().b[9][1]++,e._e()),e.information.show?(i().b[10][0]++,n("information-dialog",{attrs:{title:e.information.title,text:e.information.text},model:{value:e.information.show,callback:function(n){i().f[32]++,i().s[36]++,e.$set(e.information,"show",n)},expression:"information.show"}})):(i().b[10][1]++,e._e()),e.inputMetadata.show?(i().b[11][0]++,n("event-list-dialog",{attrs:{events:e.inputMetadata.events,utc:!1,"new-metadata":""},on:{close:e.inputMetadata.callback},model:{value:e.inputMetadata.show,callback:function(n){i().f[33]++,i().s[37]++,e.$set(e.inputMetadata,"show",n)},expression:"inputMetadata.show"}})):(i().b[11][1]++,e._e()),e.showOverrides?(i().b[12][0]++,n("overrides-dialog",{model:{value:e.showOverrides,callback:function(n){i().f[34]++,i().s[38]++,e.showOverrides=n},expression:"showOverrides"}})):(i().b[12][1]++,e._e()),e.prompt.show?(i().b[13][0]++,n("prompt-dialog",{attrs:{title:e.prompt.title,subtitle:e.prompt.subtitle,message:e.prompt.message,details:e.prompt.details,buttons:e.prompt.buttons,layout:e.prompt.layout,multiple:e.prompt.multiple},on:{response:e.prompt.callback},model:{value:e.prompt.show,callback:function(n){i().f[35]++,i().s[39]++,e.$set(e.prompt,"show",n)},expression:"prompt.show"}})):(i().b[13][1]++,e._e()),e.results.show?(i().b[14][0]++,n("results-dialog",{attrs:{text:e.results.text},model:{value:e.results.show,callback:function(n){i().f[36]++,i().s[40]++,e.$set(e.results,"show",n)},expression:"results.show"}})):(i().b[14][1]++,e._e()),e.scriptEnvironment.show?(i().b[15][0]++,n("script-environment-dialog",{attrs:{"input-environment":e.scriptEnvironment.env},on:{environment:e.environmentHandler},model:{value:e.scriptEnvironment.show,callback:function(n){i().f[37]++,i().s[41]++,e.$set(e.scriptEnvironment,"show",n)},expression:"scriptEnvironment.show"}})):(i().b[15][1]++,e._e()),n("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:e.suiteError,width:1e3},model:{value:e.showSuiteError,callback:function(n){i().f[38]++,i().s[42]++,e.showSuiteError=n},expression:"showSuiteError"}}),n("v-bottom-sheet",{model:{value:e.showScripts,callback:function(n){i().f[39]++,i().s[43]++,e.showScripts=n},expression:"showScripts"}},[n("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e.showScripts?(i().b[16][0]++,n("running-scripts",{attrs:{"connect-in-new-tab":!!e.fileModified},on:{close:function(){i().f[40]++,i().s[44]++,e.showScripts=!1}}})):(i().b[16][1]++,e._e())],1)],1)],1)},s=(i().s[45]++,[]),o=t(66964),a=t(78081),r=t(15789),c=t(49502),u=t(50615),d=(t(34769),t(36728),t(93244),t(28673),t(6886),t(45794),t(18178),t(43450),t(24905),t(17368),t(24471),t(77950),t(51172),t(88233),t(1951),t(49228),t(49992),t(1939),t(39529),t(31235),t(33132),t(71245),t(99805),t(14121),t(60523),t(43673),t(40753),t(28399),t(32501),t(74069),t(34115),t(634),t(89644)),m=t.n(d),A=t(59161),p=t(16129),h=t(95095),f=(t(5343),t(48121),t(40419),t(83923),t(72375),t(73053)),v=t(67284),g=(t(74083),t(94908),function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600",scrollable:""},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-overlay",{attrs:{value:e.loading}},[n("v-progress-circular",{attrs:{indeterminate:"",absolute:"",size:"64"}})],1),n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:e.handleSearch},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-row",{staticClass:"mt-2",attrs:{dense:""}},[n("v-treeview",{ref:"tree",staticStyle:{width:"100%","max-height":"60vh",overflow:"auto"},attrs:{dense:"",activatable:"","return-object":"",items:e.items,search:e.search,"open-on-click":"open"===e.type},on:{"update:active":e.activeFile},scopedSlots:e._u([{key:"prepend",fn:function(t){var i=t.item,l=t.open;return[i.file?n("v-icon",[e._v(" "+e._s("mdi-language-ruby")+" ")]):n("v-icon",[e._v(" "+e._s(l?"mdi-folder-open":"mdi-folder")+" ")])]}},{key:"append",fn:function(t){var i=t.item;return["__TEMP__"===i.name?n("v-btn",{attrs:{icon:""},on:{click:e.deleteTemp}},[n("v-icon",[e._v(" mdi-delete ")])],1):e._e()]}}]),model:{value:e.tree,callback:function(n){e.tree=n},expression:"tree"}})],1),n("v-row",{staticClass:"my-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===e.type},model:{value:e.selectedFile,callback:function(n){e.selectedFile=n},expression:"selectedFile"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:e.disableButtons},on:{click:function(n){e.show=!1}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:e.disableButtons||!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" "+e._s(e.submit)+" ")])],1)],1)])],1)],1)],1)}),b=[],C=(t(9949),{props:{type:{type:String,required:!0,validator:function(e){return-1!==["open","save"].indexOf(e)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){var e="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(e+="be in a target directory and "),e+="only contain alphanumeric characters and / ! - _ . * ' ( )",e}if("save"===this.type&&this.selectedFile.match(/\*$/)){var n="".concat(this.selectedFile," is not a valid filename. Must not end in '*'.");return n}return null},validFilenameRegex:function(){var e="0-9a-zA-Z",n="".concat(e,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(n,"]+\\.[").concat(e,"]+");if(this.requireTargetParentDir){var i="(".concat(this.targets.join("|"),")");t="\\/?".concat(i,"\\/").concat(t)}return new RegExp(t)}},created:function(){var e=this;this.loadFiles(),this.requireTargetParentDir&&p.Z.get("/openc3-api/targets").then((function(n){e.targets=n.data,e.targets.push("__TEMP__")}))},methods:{loadFiles:function(){var e=this;p.Z.get(this.apiUrl).then((function(n){e.items=[],e.id=1;var t,i=(0,a.Z)(n.data);try{for(i.s();!(t=i.n()).done;){var l=t.value;e.filepath=l,e.insertFile(e.items,1,l),e.id++}}catch(s){i.e(s)}finally{i.f()}e.inputFilename&&(e.selectedFile=e.inputFilename),e.loading=!1})).catch((function(n){e.$emit("error","Failed to connect to OpenC3. ".concat(n))}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(e){e?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(e){0===e.length?this.selectedFile=null:this.selectedFile=e[0].path},exists:function(e,n){var t,i=!1,l=(0,a.Z)(e);try{for(l.s();!(t=l.n()).done;){var s=t.value;if(s.path===n)return!0;if(s.path.length>1&&"*"===s.path[s.path.length-1]&&s.path.slice(0,s.path.length-1)===n)return!0;s.children&&(i=i||this.exists(s.children,n))}}catch(o){l.e(o)}finally{l.f()}return i},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return p.Z.delete("/script-api/scripts/temp_files")})).then((function(n){e.loadFiles()})).catch((function(n){e.$notify.serious({title:"Error",body:"Failed to remove script temporary files due to ".concat(n)})}))},openSuccess:function(){var e=this;this.disableButtons=!0,p.Z.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(n){var t={name:e.selectedFile,contents:n.data.contents};n.data.suites&&(t["suites"]=JSON.parse(n.data.suites)),n.data.error&&(t["error"]=n.data.error),n.data.success&&(t["success"]=n.data.success);var i=n.data.locked,l=n.data.breakpoints;e.$emit("file",{file:t,locked:i,breakpoints:l}),e.clear()})).catch((function(n){e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),e.clear()}))},saveSuccess:function(){var e=this,n=this.exists(this.items,this.selectedFile);n?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(n){e.$emit("filename",e.selectedFile),e.clear()})).catch((function(e){})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,n,t){var i=t.split("/");if(1===i.length)return e.push({id:this.id,name:i[0],file:"ruby",path:this.filepath}),void this.id++;var l=e.findIndex((function(e){return e.name===i[0]}));-1===l?(e.push({id:this.id,name:i[0],children:[],path:this.filepath.split("/").slice(0,n).join("/")}),this.id++,this.insertFile(e[e.length-1].children,n+1,i.slice(1).join("/"))):this.insertFile(e[l].children,n+1,i.slice(1).join("/"))}}}),_=C,y=t(93483),w=(0,y.Z)(_,g,b,!1,null,null,null),x=w.exports,k=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Global Environment Variables")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{staticClass:"mb-2",attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:e.search,headers:e.headers,items:e.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteEnvironment(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:e.key,callback:function(n){e.key=n},expression:"key"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:e.keyValue,callback:function(n){e.keyValue=n},expression:"keyValue"}})],1)],1),n("v-row",{attrs:{dense:""}},[n("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!e.key||!e.keyValue},on:{click:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[e._v(" Add ")])],1)],1)])],1)])],1)},S=[],M={props:{value:Boolean},data:function(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.update()},methods:{alertHandler:function(e){this.alert=e.text,this.alertType=e.type,this.showAlert=!0},update:function(){var e=this;p.Z.get("/openc3-api/environment").then((function(n){e.environment=n.data})).catch((function(e){}))},addEnvironment:function(){var e=this;p.Z.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(n){"New environment variable: ".concat(n.data.name);e.update()})).catch((function(n){var t={text:"Failed to add environment variable: ".concat(n),type:"error"};e.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.key,"=").concat(e.value),{okText:"Delete",cancelText:"Cancel"}).then((function(n){return p.Z.delete("/openc3-api/environment/".concat(e.name))})).then((function(t){var i={text:"Removed environment variable: ".concat(e.name),type:"success"};n.alertHandler(i),n.update()})).catch((function(e){var t={text:"Failed to delete environment: ".concat(e),type:"error"};n.alertHandler(t)}))}}},E=M,T=(0,y.Z)(E,k,S,!1,null,null,null),R=T.exports,D=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:e.width},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download ")])])],1)],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.text))])])]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},I=[],O={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{download:function(){var e=new Blob([this.text],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.title,".txt")),n.click()}}},N=O,Z=(0,y.Z)(N,D,I,!1,null,null,null),L=Z.exports,F=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,s=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",s,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,l){return[i.divider?n("v-divider"):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(i.label))},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},P=[],$=(t(85940),t(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),H=$,B=(t(94888),(0,y.Z)(H,F,P,!1,null,"2eb37f67",null)),W=B.exports,V=t(48392);function U(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6a0c29fb40230da625235b34a5161a9cf22fbc36",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1375}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:895},end:{line:1,column:913}},9:{start:{line:1,column:1267},end:{line:1,column:1291}},10:{start:{line:1,column:1291},end:{line:1,column:1338}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:879},end:{line:1,column:880}},loc:{start:{line:1,column:894},end:{line:1,column:914}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1250},end:{line:1,column:1251}},loc:{start:{line:1,column:1266},end:{line:1,column:1339}},line:1}},branchMap:{0:{loc:{start:{line:1,column:786},end:{line:1,column:820}},type:"cond-expr",locations:[{start:{line:1,column:801},end:{line:1,column:811}},{start:{line:1,column:814},end:{line:1,column:820}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6a0c29fb40230da625235b34a5161a9cf22fbc36"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return U=function(){return o},o}U(),U().s[0]++;var G=function(){U().f[0]++;var e=(U().s[1]++,this),n=(U().s[2]++,e._self._c);return U().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){U().f[1]++,U().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return U().f[2]++,U().s[5]++,n.preventDefault(),U().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){U().f[3]++,U().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" User Input Required ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.question))])],1),n("v-row",{staticClass:"my-1"},[n("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:e.password?(U().b[0][0]++,"password"):(U().b[0][1]++,"text"),rules:e.rules},model:{value:e.inputValue,callback:function(n){U().f[4]++,U().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!e.valid},on:{click:function(n){return U().f[5]++,U().s[9]++,n.preventDefault(),U().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},z=(U().s[11]++,[]);function j(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6372711265e5318070bd384413fbdc2ebb04d2f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:27,column:5}},1:{start:{line:26,column:21},end:{line:26,column:38}},2:{start:{line:30,column:4},end:{line:33,column:5}},3:{start:{line:31,column:6},end:{line:31,column:23}},4:{start:{line:32,column:6},end:{line:32,column:36}},5:{start:{line:34,column:4},end:{line:37,column:5}},6:{start:{line:35,column:6},end:{line:35,column:23}},7:{start:{line:36,column:6},end:{line:36,column:32}},8:{start:{line:36,column:27},end:{line:36,column:31}},9:{start:{line:42,column:8},end:{line:42,column:25}},10:{start:{line:45,column:8},end:{line:45,column:34}},11:{start:{line:51,column:6},end:{line:51,column:45}},12:{start:{line:54,column:6},end:{line:54,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:28,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:21},end:{line:26,column:38}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:38,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:20},end:{line:36,column:21}},loc:{start:{line:36,column:27},end:{line:36,column:31}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:12},end:{line:43,column:7}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:17},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:50,column:19},end:{line:50,column:20}},loc:{start:{line:50,column:31},end:{line:52,column:5}},line:50},7:{name:"(anonymous_7)",decl:{start:{line:53,column:19},end:{line:53,column:20}},loc:{start:{line:53,column:31},end:{line:55,column:5}},line:53}},branchMap:{0:{loc:{start:{line:26,column:21},end:{line:26,column:38}},type:"binary-expr",locations:[{start:{line:26,column:21},end:{line:26,column:24}},{start:{line:26,column:28},end:{line:26,column:38}}],line:26},1:{loc:{start:{line:30,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:33,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:30},2:{loc:{start:{line:34,column:4},end:{line:37,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:37,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["AskDialog.vue"],names:[],mappings:";AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AskDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n question\n }}</v-card-title>\n </v-row>\n <v-row class="my-1">\n <v-text-field\n v-model="inputValue"\n autofocus\n data-test="ask-value-input"\n :type="password ? \'password\' : \'text\'"\n :rules="rules"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="ask-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="ask-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: \'\',\n valid: false,\n rules: [(v) => !!v || \'Required\'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6372711265e5318070bd384413fbdc2ebb04d2f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return j=function(){return o},o}j();var q={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data:function(){return j().f[0]++,j().s[0]++,{inputValue:"",valid:!1,rules:[function(e){return j().f[1]++,j().s[1]++,j().b[0][0]++,!!e||(j().b[0][1]++,"Required")}]}},created:function(){j().f[2]++,j().s[2]++,this.default?(j().b[1][0]++,j().s[3]++,this.valid=!0,j().s[4]++,this.inputValue=this.default):j().b[1][1]++,j().s[5]++,!1===this.answerRequired?(j().b[2][0]++,j().s[6]++,this.valid=!0,j().s[7]++,this.rules=[function(e){return j().f[3]++,j().s[8]++,!0}]):j().b[2][1]++},computed:{show:{get:function(){return j().f[4]++,j().s[9]++,this.value},set:function(e){j().f[5]++,j().s[10]++,this.$emit("input",e)}}},methods:{submitHandler:function(){j().f[6]++,j().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){j().f[7]++,j().s[12]++,this.$emit("response","Cancel")}}},Y=q,K=(0,y.Z)(Y,G,z,!1,null,null,null),X=K.exports;function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="629f6b9e07f549a90d0e31b255ae07dbdb061503",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1537}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:1055},end:{line:1,column:1073}},9:{start:{line:1,column:1429},end:{line:1,column:1453}},10:{start:{line:1,column:1453},end:{line:1,column:1500}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1039},end:{line:1,column:1040}},loc:{start:{line:1,column:1054},end:{line:1,column:1074}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1412},end:{line:1,column:1413}},loc:{start:{line:1,column:1428},end:{line:1,column:1501}},line:1}},branchMap:{0:{loc:{start:{line:1,column:664},end:{line:1,column:816}},type:"cond-expr",locations:[{start:{line:1,column:678},end:{line:1,column:807}},{start:{line:1,column:808},end:{line:1,column:816}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"629f6b9e07f549a90d0e31b255ae07dbdb061503"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return J=function(){return o},o}J(),J().s[0]++;var Q=function(){J().f[0]++;var e=(J().s[1]++,this),n=(J().s[2]++,e._self._c);return J().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){J().f[1]++,J().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return J().f[2]++,J().s[5]++,n.preventDefault(),J().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){J().f[3]++,J().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" File Dialog ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.title))])],1),e.message?(J().b[0][0]++,n("v-row",[n("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})])):(J().b[0][1]++,e._e()),n("v-row",{staticClass:"my-1"},[n("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:e.filter,"small-chips":"",multiple:e.multiple},model:{value:e.inputValue,callback:function(n){J().f[4]++,J().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!e.valid},on:{click:function(n){return J().f[5]++,J().s[9]++,n.preventDefault(),J().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},ee=(J().s[11]++,[]);function ne(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="29cb638f66743dffbb3e707fb1000ac69ffa7e7d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:25,column:5}},1:{start:{line:30,column:8},end:{line:30,column:25}},2:{start:{line:33,column:8},end:{line:33,column:34}},3:{start:{line:41,column:6},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:44,column:6},end:{line:44,column:45}},6:{start:{line:47,column:6},end:{line:47,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:26,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:12},end:{line:31,column:7}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:32,column:6},end:{line:32,column:7}},loc:{start:{line:32,column:17},end:{line:34,column:7}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:19},end:{line:38,column:20}},loc:{start:{line:38,column:31},end:{line:45,column:5}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:46,column:19},end:{line:46,column:20}},loc:{start:{line:46,column:31},end:{line:48,column:5}},line:46}},branchMap:{0:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["FileDialog.vue"],names:[],mappings:";AAqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"FileDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> File Dialog </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n title\n }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span\n class="ma-3"\n style="white-space: pre-line"\n v-text="message"\n />\n </v-row>\n <v-row class="my-1">\n <v-file-input\n label="Choose File"\n v-model="inputValue"\n autofocus\n data-test="file-input"\n :accept="filter"\n small-chips\n :multiple="multiple"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="file-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="file-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n default: null,\n },\n filter: {\n type: String,\n default: \'*\',\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n // Ensure we send back an array of file names even in the single case\n // to make it easier to deal with a consistent result\n if (!Array.isArray(this.inputValue)) {\n this.inputValue = [this.inputValue]\n }\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29cb638f66743dffbb3e707fb1000ac69ffa7e7d"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ne=function(){return o},o}ne();var te={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data:function(){return ne().f[0]++,ne().s[0]++,{inputValue:null}},computed:{show:{get:function(){return ne().f[1]++,ne().s[1]++,this.value},set:function(e){ne().f[2]++,ne().s[2]++,this.$emit("input",e)}}},methods:{submitHandler:function(){ne().f[3]++,ne().s[3]++,Array.isArray(this.inputValue)?ne().b[0][1]++:(ne().b[0][0]++,ne().s[4]++,this.inputValue=[this.inputValue]),ne().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){ne().f[4]++,ne().s[6]++,this.$emit("response","Cancel")}}},ie=te,le=(0,y.Z)(ie,Q,ee,!1,null,null,null),se=le.exports;function oe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="f3d714e332dcaca74a70e87cc80dff6325e98dd6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:748}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:436},end:{line:1,column:582}},6:{start:{line:1,column:695},end:{line:1,column:715}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:415},end:{line:1,column:416}},loc:{start:{line:1,column:435},end:{line:1,column:583}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:678},end:{line:1,column:679}},loc:{start:{line:1,column:694},end:{line:1,column:716}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f3d714e332dcaca74a70e87cc80dff6325e98dd6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return oe=function(){return o},o}oe(),oe().s[0]++;var ae=function(){oe().f[0]++;var e=(oe().s[1]++,this),n=(oe().s[2]++,e._self._c);return oe().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){oe().f[1]++,oe().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",e._l(e.text,(function(t,i){return oe().f[2]++,oe().s[5]++,n("v-row",{key:i,attrs:{"no-gutters":""}},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(t)}})])})),1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary"},on:{click:function(n){oe().f[3]++,oe().s[6]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},re=(oe().s[7]++,[]);function ce(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="0e6f63f54fe8f26950d23e02c85bf37a007389e7",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:20,column:8},end:{line:20,column:25}},1:{start:{line:23,column:8},end:{line:23,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"InformationDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- INFO --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row no-gutters v-for="(line, index) in text" :key="index">\n <span style="white-space: pre-line" v-text="line" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0e6f63f54fe8f26950d23e02c85bf37a007389e7"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ce=function(){return o},o}ce();var ue={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return ce().f[0]++,ce().s[0]++,this.value},set:function(e){ce().f[1]++,ce().s[1]++,this.$emit("input",e)}}},methods:{}},de=ue,me=(0,y.Z)(de,ae,re,!1,null,null,null),Ae=me.exports,pe=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"80vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:e.close}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-card-title",[e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.eventHeaders,items:e.localEvents,search:e.search,"sort-by":"start","sort-desc":""},scopedSlots:e._u([{key:"no-data",fn:function(){return[n("span",[e._v(" No events ")])]},proxy:!0},{key:"item.start",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.start,e.utc))+" ")]}},{key:"item.end",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.end,e.utc))+" ")]}},{key:"item.type",fn:function(n){var t=n.item;return[e._v(" "+e._s(t.type.charAt(0).toUpperCase()+t.type.slice(1))+" ")]}},{key:"item.data",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.dataFormat(t))+" ")]}},{key:"item.actions",fn:function(t){var i=t.item;return[n("v-icon",{staticClass:"mr-2",attrs:{small:"","data-test":"edit-event"},on:{click:function(n){return e.editAction(i)}}},[e._v(" mdi-pencil ")]),n("v-icon",{attrs:{small:"","data-test":"delete-event"},on:{click:function(n){return e.deleteAction(i)}}},[e._v(" mdi-delete ")])]}}])}),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"close-event-list"},on:{click:e.close}},[e._v(" Close ")]),e.newMetadata?n("v-btn",{attrs:{color:"primary","data-test":"new-event"},on:{click:function(n){e.showMetadataCreate=!0}}},[e._v(" New Metadata ")]):e._e()],1)],1)],1),n("activity-update-dialog",{attrs:{activity:e.editActivity},on:{update:e.updateActivity},model:{value:e.showActivityUpdate,callback:function(n){e.showActivityUpdate=n},expression:"showActivityUpdate"}}),n("metadata-update-dialog",{attrs:{"metadata-obj":e.editMetadata},on:{update:e.updateMetadata},model:{value:e.showMetadataUpdate,callback:function(n){e.showMetadataUpdate=n},expression:"showMetadataUpdate"}}),n("note-update-dialog",{attrs:{note:e.editNote},on:{update:e.updateNote},model:{value:e.showNoteUpdate,callback:function(n){e.showNoteUpdate=n},expression:"showNoteUpdate"}}),n("metadata-create-dialog",{on:{update:e.addMetadata},model:{value:e.showMetadataCreate,callback:function(n){e.showMetadataCreate=n},expression:"showMetadataCreate"}})],1)},he=[],fe=t(97302),ve=(t(35883),t(28391)),ge={filters:{time:function(e,n){return n?e.toUTCString().split(" ")[4]:e.toLocaleString().split(" ")[1]},hourMin:function(e){return e.split(":",2).join(":")},dateTime:function(e,n){return n?e.toISOString():e.toLocaleString()}},methods:{logFormat:function(e,n){return n?(0,ve.Z)(e,"UTC","yyyy-MM-dd HH:mm:ss.SSS"):(0,f.Z)(e,"yyyy-MM-dd HH:mm:ss.SSS")},generateDateTime:function(e,n){return n?e.toISOString():e.toLocaleString()},toIsoString:function(e){var n=new Date(e),t=-n.getTimezoneOffset(),i=t>=0?"+":"-";function l(e){var n=Math.floor(Math.abs(e));return(n<10?"0":"")+n}var s=n.getFullYear(),o=l(n.getMonth()+1),a=l(n.getDate()),r=l(n.getHours()),c=l(n.getMinutes()),u=l(n.getSeconds()),d=l(n.getMilliseconds()),m="utc"===this.utcOrLocal?"00:00":"".concat(l(t/60),":").concat(l(t%60));return"".concat(s,"-").concat(o,"-").concat(a,"T").concat(r,":").concat(c,":").concat(u,".").concat(d).concat(i).concat(m)}}},be={methods:{deleteItem:function(e){var n=this,t=null,i="";switch(e.type.toLowerCase()){case"activity":i="activity",t=e.activity.start;break;case"metadata":i="metadata",t=e.metadata.start;break;case"note":i="notes",t=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.typeStr," at ").concat(e.startStr),{okText:"Delete",cancelText:"Cancel"}).then((function(){return p.Z.delete("/openc3-api/".concat(i,"/").concat(t))})).then((function(){n.$emit("delete",e),n.$notify.normal({title:"Deleted ".concat(e.typeStr),body:"Deleted ".concat(e.typeStr," at ").concat(e.startStr)})})).catch((function(){}))}}},Ce=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Create Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-checkbox",{attrs:{label:"Input Metadata Time"},model:{value:e.userProvidedTime,callback:function(n){e.userProvidedTime=n},expression:"userProvidedTime"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.userProvidedTime,expression:"userProvidedTime"}]},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"metadata-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"metadata-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("Metadata Input")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"create-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"create-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},_e=[],ye=(t(43108),t(10247)),we=t(93355),xe={props:{date:{type:String},time:{type:String}},data:function(){return{startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc"}},methods:{calcStartDateTime:function(){if(this.date?(this.startDate=this.date,this.stopDate=this.date):(this.startDate=(0,f.Z)(new Date,"yyyy-MM-dd"),this.stopDate=(0,f.Z)(new Date,"yyyy-MM-dd")),this.time){var e=(0,ye.Z)(this.time,"HH:mm",new Date),n=18e5;e=new Date(Math.floor(e.getTime()/n)*n),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopTime=(0,f.Z)((0,we.Z)(e,{minutes:30}),"HH:mm:ss")}else this.startTime=(0,f.Z)(new Date,"HH:mm:ss"),this.stopTime=(0,f.Z)((0,we.Z)(new Date,{minutes:30}),"HH:mm:ss")}}},ke=function(){var e=this,n=e._self._c;return n("div",[n("v-select",{attrs:{items:e.swatches,label:"Color"},scopedSlots:e._u([{key:"selection",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}},{key:"item",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}}]),model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1)},Se=[],Me={components:{},props:{value:{type:String,required:!0}},data:function(){return{}},computed:{color:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},swatches:function(){return["#005a8f","#003784","#8F3400","#df1368","#ff5252","#df323b","#9f0010","#2d9437","#004700","#db7200","#802700","#0f2941"]}},methods:{}},Ee=Me,Te=(0,y.Z)(Ee,ke,Se,!1,null,null,null),Re=Te.exports,De=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.newMetadata}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" New Metadata ")])])],1)]),e._l(e.metadata,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"meta.key"}})],1),n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"meta.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"delete-metadata-icon-".concat(i)},on:{click:function(n){return e.rm(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Metadata ")])])],1)])]}))],2)])],1)},Ie=[],Oe={components:{},props:{value:{type:Array,required:!0}},data:function(){return{}},computed:{metadata:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{newMetadata:function(){this.metadata.push({key:"",value:""})},rm:function(e){this.metadata.splice(e,1)}}},Ne=Oe,Ze=(0,y.Z)(Ne,De,Ie,!1,null,null,null),Le=Ze.exports,Fe={components:{ColorSelectForm:Re,MetadataInputForm:Le},props:{value:Boolean},mixins:[xe,ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,userProvidedTime:!1,color:"#003784",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},mounted:function(){void 0!==this.date&&void 0!==this.time&&(this.userProvidedTime=!0)},computed:{timeError:function(){if(!this.color)return"A color is required.";if(!this.userProvidedTime)return null;var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1,this.calcStartDateTime(),this.metadata=[],this.color="#003784"},createMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i={color:n,metadata:t};this.userProvidedTime&&(i.start=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)))),p.Z.post("/openc3-api/metadata",{data:i}).then((function(n){e.$notify.normal({title:"Created new Metadata",body:"Metadata: (".concat(n.data.start,")")}),e.$emit("update",n.data)})),this.show=!this.show,this.updateValues()}}},Pe=Fe,$e=(t(98297),(0,y.Z)(Pe,Ce,_e,!1,null,"41562d92",null)),He=$e.exports,Be=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Update activity: "+e._s(e.activity.name)+"/"+e._s(e.activity.start)+" ")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-activity-icon"},on:{click:e.cancelActivity}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"activity-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"activity-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"activity-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"activity-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-activity-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Activity type Input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-select",{attrs:{items:e.types,label:"Activity Type"},model:{value:e.kind,callback:function(n){e.kind=n},expression:"kind"}}),"COMMAND"===e.kind?n("div",[n("v-text-field",{attrs:{type:"text",label:"Command Input",placeholder:"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",prefix:"cmd('",suffix:"')",hint:"Timeline run commands with cmd_no_hazardous_check","data-test":"activity-cmd"},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}})],1):"SCRIPT"===e.kind?n("div",[n("script-chooser",{staticClass:"my-1",on:{file:e.fileHandler},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}}),n("environment-chooser",{staticClass:"my-2",model:{value:e.activityEnvironment,callback:function(n){e.activityEnvironment=n},expression:"activityEnvironment"}})],1):n("div",[n("span",{staticClass:"ma-2"},[e._v(" No required input ")])]),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-activity-cancel-btn"},on:{click:e.cancelActivity}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-activity-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[e._v(" Update ")])],1)],1)])],1)],1)],1)])],1)},We=[],Ve=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.addEnvVar}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" Add Environment ")])])],1)]),e._l(e.selected,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"env.key"}})],1),n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"env.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"remove-env-icon-".concat(i)},on:{click:function(n){return e.delEnvVar(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Ue=[],Ge={props:{value:{type:Array,required:!0}},computed:{selected:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(e){this.selected.splice(e,1)}}},ze=Ge,je=(0,y.Z)(ze,Ve,Ue,!1,null,null,null),qe=je.exports,Ye=function(){var e=this,n=e._self._c;return n("div",[n("v-row",{attrs:{"no-gutters":""}},[n("span",[e._v(" Select OpenC3 script ")])]),n("v-row",{staticClass:"my-2"},[n("v-autocomplete",{staticClass:"mx-4",attrs:{"cache-items":"",flat:"","hide-no-data":"","hide-details":"","solo-inverted":"",label:"Select a script",loading:e.loading,items:e.items,"search-input":e.search,"data-test":"select-script"},on:{"update:searchInput":function(n){e.search=n},"update:search-input":function(n){e.search=n}},model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1)],1)},Ke=[],Xe={props:{value:String},data:function(){return{loading:!1,search:"",selected:this.value,scripts:[],items:[]}},created:function(){var e=this;this.loading=!0,p.Z.get("/script-api/scripts").then((function(n){e.scripts=n.data.filter((function(e){return e.includes(".rb")||e.includes(".py")})),e.items=e.scripts})).catch((function(n){e.$emit("error",{type:"error",text:"Failed to connect to OpenC3. ".concat(n),error:n})})),this.selected=this.value?this.value:null,this.loading=!1},watch:{selected:function(e,n){e!==n&&this.$emit("file",e)},search:function(e){e&&e!==this.selected&&this.querySelections(e)}},methods:{querySelections:function(e){var n=this;this.loading=!0,setTimeout((function(){n.items=n.scripts.filter((function(n){return(n||"").toLowerCase().indexOf((e||"").toLowerCase())>-1})),n.loading=!1}),500)}}},Je=Xe,Qe=(0,y.Z)(Je,Ye,Ke,!1,null,null,null),en=Qe.exports,nn={components:{EnvironmentChooser:qe,ScriptChooser:en},props:{activity:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",kind:"",types:["COMMAND","SCRIPT","RESERVE"],activityData:"",activityEnvironment:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),t=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return n===t?"Invalid start, stop time. Activity must have different start and stop times.":e>n?"Invalid start time. Activity must be in the future.":n>t?"Invalid start time. Activity start before stop.":null},typeError:function(){return"RESERVE"===this.kind||this.activityData?null:"No data is selected or inputted"},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{changeKind:function(e){e!==this.kind&&(this.kind=e,this.activityData="")},updateValues:function(){var e=new Date(1e3*this.activity.start),n=new Date(1e3*this.activity.stop);this.startDate=(0,f.Z)(e,"yyyy-MM-dd"),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopDate=(0,f.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,f.Z)(n,"HH:mm:ss"),this.kind=this.activity.kind.toUpperCase(),this.activityData=this.activity.data[this.activity.kind],this.activityEnvironment=this.activity.data.environment},fileHandler:function(e){this.activityData=e||null},cancelActivity:function(){this.show=!this.show},updateActivity:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.kind.toLowerCase(),l={environment:this.activityEnvironment};l[i]=this.activityData;var s=this.activity.name,o=this.activity.start;p.Z.put("/openc3-api/timeline/".concat(s,"/activity/").concat(o),{data:{start:n,stop:t,kind:i,data:l}}).then((function(n){var t=e.generateDateTime(new Date(1e3*n.data.start));e.$notify.normal({title:"Updated Activity",body:"".concat(t," (").concat(n.data.start,") on timeline: ").concat(n.data.name)})})),this.$emit("close"),this.show=!this.show}}},tn=nn,ln=(t(95906),(0,y.Z)(tn,Be,We,!1,null,"37955b8a",null)),sn=ln.exports,on=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Metadata input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},an=[],rn={components:{ColorSelectForm:Re,MetadataInputForm:Le},props:{metadataObj:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,startDate:"",startTime:"",utcOrLocal:"loc",color:"",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){var e=this,n=new Date(1e3*this.metadataObj.start);this.startDate=(0,f.Z)(n,"yyyy-MM-dd"),this.startTime=(0,f.Z)(n,"HH:mm:ss"),this.metadata=Object.keys(this.metadataObj.metadata).map((function(n){return{key:n,value:e.metadataObj.metadata[n]}})),this.color=this.metadataObj.color},updateMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)));p.Z.put("/openc3-api/metadata/".concat(this.metadataObj.start),{data:{start:i,color:n,metadata:t}}).then((function(i){e.$notify.normal({title:"Updated Metadata",body:"Metadata updated: (".concat(i.data.start,")")}),console.log("metadata update emit"),e.$emit("update",(0,o.Z)((0,o.Z)({},i.data.start),{},{color:n,metadata:t}))})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},cn=rn,un=(t(20408),(0,y.Z)(cn,on,an,!1,null,"f2badfd2",null)),dn=un.exports,mn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Note")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-note-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"note-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"note-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"note-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"note-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-note-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Input Description ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1),n("div",[n("v-text-field",{attrs:{type:"text",label:"Note Description","data-test":"update-note-description"},model:{value:e.description,callback:function(n){e.description=n},expression:"description"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-note-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-note-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},An=[],pn={components:{ColorSelectForm:Re},props:{note:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",description:"",color:"",rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){new Date;var e=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),n=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return e===n?"Invalid start, stop time. Notes must have different start and stop times.":e>n?"Invalid start time. Note start before stop.":null},typeError:function(){return this.description?null:"A description is required for a valid note."},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1;var e=new Date(1e3*this.note.start),n=new Date(1e3*this.note.stop);this.startDate=(0,f.Z)(e,"yyyy-MM-dd"),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopDate=(0,f.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,f.Z)(n,"HH:mm:ss"),this.color=this.note.color,this.description=this.note.description},updateNote:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.color,l=this.description;p.Z.put("/openc3-api/notes/".concat(this.note.start),{data:{start:n,stop:t,color:i,description:l}}).then((function(n){var t=n.data.description.length>16?"".concat(n.data.description.substring(0,16),"..."):n.data.description;e.$notify.normal({title:"Updated Note",body:"Note updated: (".concat(n.data.start,'): "').concat(t,'"')}),console.log(n.data),e.$emit("update",n.data)})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},hn=pn,fn=(t(10204),(0,y.Z)(hn,mn,An,!1,null,"ffe4e8e8",null)),vn=fn.exports,gn={components:{MetadataCreateDialog:He,ActivityUpdateDialog:sn,MetadataUpdateDialog:dn,NoteUpdateDialog:vn},mixins:[ge,be],props:{events:{type:Array,required:!0},utc:{type:Boolean,default:!0},value:{type:Boolean,required:!0},types:{type:Array},newMetadata:{type:Boolean,default:!1}},data:function(){return{search:"",localEvents:(0,u.Z)(this.events),eventHeaders:[{text:"Start",value:"start",width:190},{text:"Stop",value:"end",width:190},{text:"Type",value:"type"},{text:"Data",value:"data"},{text:"Actions",value:"actions",sortable:!1}],editActivity:{start:new Date,end:new Date},editMetadata:{start:new Date,end:new Date},editNote:{start:new Date,end:new Date},editIndex:0,showActivityUpdate:!1,showMetadataUpdate:!1,showNoteUpdate:!1,showMetadataCreate:!1}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){var e=this;this.$on("delete",(function(n){var t=e.localEvents.findIndex((function(e){return e.type===n.type&&e.start===n.start}));e.localEvents.splice(t,1)}))},methods:{close:function(){this.$emit("close"),this.show=!1},dataFormat:function(e){var n=e.name;switch(e.type){case"note":n=e.note.description;break;case"metadata":var t=[];Object.entries(e.metadata.metadata).forEach((function(e){var n=(0,fe.Z)(e,2),i=n[0],l=n[1];return t.push("".concat(i," => ").concat(l))})),n=t.join(", ");break}return n},editAction:function(e){switch(this.editIndex=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),e.type){case"activity":this.editActivity=e.activity,this.showActivityUpdate=!0;break;case"metadata":this.editMetadata=e.metadata,this.showMetadataUpdate=!0;break;case"note":this.editNote=e.note,this.showNoteUpdate=!0;break}},deleteAction:function(e){var n=this,t=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),i=null,l=null;switch(e.type){case"activity":i="timeline/".concat(e.activity.name,"/activity"),l=e.activity.start;break;case"metadata":i="metadata",l=e.metadata.start;break;case"note":i="notes",l=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.type," at ").concat(e.start),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return n.localEvents.splice(t,1),p.Z.delete("/openc3-api/".concat(i,"/").concat(l))})).then((function(t){n.$emit("update"),n.$notify.normal({title:"Deleted ".concat(e.type),body:"Deleted ".concat(e.type," at ").concat(l)})})).catch((function(e){}))},updateActivity:function(e){this.$emit("update"),this.localEvents[this.editIndex].activity=e},updateMetadata:function(e){this.$emit("update"),this.localEvents[this.editIndex].metadata=e},updateNote:function(e){this.$emit("update"),this.localEvents[this.editIndex].note=e},addMetadata:function(e){var n={name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e};this.localEvents.push(n)}}},bn=gn,Cn=(0,y.Z)(bn,pe,he,!1,null,null,null),_n=Cn.exports;function yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="06e0185cc3d18ad16e03681078b2576b22fec3e6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:645}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:697},end:{line:1,column:711}},6:{start:{line:8,column:123},end:{line:8,column:440}},7:{start:{line:8,column:231},end:{line:8,column:382}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:592},end:{line:8,column:612}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:681},end:{line:1,column:682}},loc:{start:{line:1,column:696},end:{line:1,column:712}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:441}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:383}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:575},end:{line:8,column:576}},loc:{start:{line:8,column:591},end:{line:8,column:613}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"06e0185cc3d18ad16e03681078b2576b22fec3e6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yn=function(){return o},o}yn(),yn().s[0]++;var wn=function(){yn().f[0]++;var e=(yn().s[1]++,this),n=(yn().s[2]++,e._self._c);return yn().s[3]++,n("v-dialog",{attrs:{width:"700"},model:{value:e.show,callback:function(n){yn().f[1]++,yn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Overrides")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:e.clearOverrides}},[e._v(" Clear All Overrides ")]),n("v-card-title",[e._v(" Overrides "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){yn().f[2]++,yn().s[5]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.overrides,search:e.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:e._u([{key:"item.delete",fn:function(t){var i=t.item;return yn().f[3]++,yn().s[6]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return yn().f[4]++,yn().s[7]++,[n("v-icon",e._g(e._b({on:{click:function(n){return yn().f[5]++,yn().s[8]++,e.deleteOverride(i)}}},"v-icon",s,!1),l),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Override")])])]}}])})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(n){yn().f[6]++,yn().s[9]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},xn=(yn().s[10]++,[]);t(79321);function kn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAmGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ])\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\'\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return kn=function(){return o},o}kn();var Sn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return kn().f[0]++,kn().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){kn().f[1]++,kn().s[1]++,this.api=new V.k,kn().s[2]++,this.getOverrides()},computed:{show:{get:function(){return kn().f[2]++,kn().s[3]++,this.value},set:function(e){kn().f[3]++,kn().s[4]++,this.$emit("input",e)}}},methods:{getOverrides:function(){var e=this;kn().f[4]++,kn().s[5]++,this.api.get_overrides().then((function(n){kn().f[5]++,kn().s[6]++,e.overrides=n}))},clearOverrides:function(){var e=this;kn().f[6]++;var n=(kn().s[7]++,(0,u.Z)(new Map(this.overrides.map((function(e){return kn().f[7]++,kn().s[8]++,["".concat(e.target_name,"__").concat(e.packet_name,"__").concat(e.item_name),e]}))).values()));kn().s[9]++;var t,i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var l=t.value;kn().s[10]++,this.api.normalize_tlm(l.target_name,l.packet_name,l.item_name,"ALL").then((function(n){kn().f[8]++,kn().s[11]++,e.overrides=[]}))}}catch(s){i.e(s)}finally{i.f()}},deleteOverride:function(e){var n=this;kn().f[9]++,kn().s[12]++,this.api.normalize_tlm(e.target_name,e.packet_name,e.item_name,e.value_type).then((function(t){kn().f[10]++;var i=(kn().s[13]++,n.overrides.indexOf(e));kn().s[14]++,n.overrides.splice(i,1)}))}}},Mn=Sn,En=(0,y.Z)(Mn,wn,xn,!1,null,null,null),Tn=En.exports;function Rn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2108}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1101},end:{line:1,column:1129}},6:{start:{line:1,column:1189},end:{line:1,column:1209}},7:{start:{line:1,column:1835},end:{line:1,column:2090}},8:{start:{line:1,column:2006},end:{line:1,column:2044}},9:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1084},end:{line:1,column:1085}},loc:{start:{line:1,column:1100},end:{line:1,column:1130}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1173},end:{line:1,column:1174}},loc:{start:{line:1,column:1188},end:{line:1,column:1210}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1812},end:{line:1,column:1813}},loc:{start:{line:1,column:1834},end:{line:1,column:2091}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1989},end:{line:1,column:1990}},loc:{start:{line:1,column:2005},end:{line:1,column:2045}},line:1}},branchMap:{0:{loc:{start:{line:1,column:414},end:{line:1,column:547}},type:"cond-expr",locations:[{start:{line:1,column:429},end:{line:1,column:538}},{start:{line:1,column:539},end:{line:1,column:547}}],line:1},1:{loc:{start:{line:1,column:680},end:{line:1,column:834}},type:"cond-expr",locations:[{start:{line:1,column:694},end:{line:1,column:825}},{start:{line:1,column:826},end:{line:1,column:834}}],line:1},2:{loc:{start:{line:1,column:843},end:{line:1,column:2100}},type:"cond-expr",locations:[{start:{line:1,column:868},end:{line:1,column:1585}},{start:{line:1,column:1586},end:{line:1,column:2100}}],line:1},3:{loc:{start:{line:1,column:1946},end:{line:1,column:1975}},type:"cond-expr",locations:[{start:{line:1,column:1961},end:{line:1,column:1970}},{start:{line:1,column:1973},end:{line:1,column:1975}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Rn=function(){return o},o}Rn(),Rn().s[0]++;var Dn=function(){Rn().f[0]++;var e=(Rn().s[1]++,this),n=(Rn().s[2]++,e._self._c);return Rn().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){Rn().f[1]++,Rn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[e.subtitle?(Rn().b[0][0]++,n("v-row",[n("v-card-subtitle",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.subtitle))])],1)):(Rn().b[0][1]++,e._e()),n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})]),e.details?(Rn().b[1][0]++,n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.details)}})])):(Rn().b[1][1]++,e._e())],1)],1),"combo"===e.layout?(Rn().b[2][0]++,n("div",[n("v-row",{staticClass:"ma-2"},[n("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:e.buttons,multiple:!0===e.multiple},on:{change:function(n){Rn().f[2]++,Rn().s[5]++,e.selectOkDisabled=!1}},model:{value:e.selectedItem,callback:function(n){Rn().f[3]++,Rn().s[6]++,e.selectedItem=n},expression:"selectedItem"}})],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:e.selectOkDisabled},on:{click:e.submitHandler}},[e._v(" Ok ")])],1)],1)):(Rn().b[2][1]++,n("div",[n("v-card-actions",{class:e.layoutClass},[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),e._l(e.buttons,(function(t,i){return Rn().f[4]++,Rn().s[7]++,n("div",{key:i},[n("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?(Rn().b[3][0]++,"primary"):(Rn().b[3][1]++,"")},on:{click:function(n){return Rn().f[5]++,Rn().s[8]++,e.submitWrapper(t.value)}}},[e._v(" "+e._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},In=(Rn().s[9]++,[]);function On(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="65d11c40c3eed705d3f7568ff0b6217e128de16b",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:36,column:4},end:{line:39,column:5}},2:{start:{line:44,column:8},end:{line:44,column:25}},3:{start:{line:47,column:8},end:{line:47,column:34}},4:{start:{line:51,column:19},end:{line:51,column:39}},5:{start:{line:52,column:6},end:{line:56,column:7}},6:{start:{line:53,column:8},end:{line:53,column:38}},7:{start:{line:55,column:8},end:{line:55,column:35}},8:{start:{line:61,column:6},end:{line:61,column:32}},9:{start:{line:62,column:6},end:{line:62,column:26}},10:{start:{line:65,column:6},end:{line:65,column:47}},11:{start:{line:68,column:6},end:{line:68,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:15},end:{line:22,column:16}},loc:{start:{line:22,column:21},end:{line:22,column:23}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:9},end:{line:40,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:18},end:{line:57,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:60,column:19},end:{line:60,column:20}},loc:{start:{line:60,column:37},end:{line:63,column:5}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:64,column:19},end:{line:64,column:20}},loc:{start:{line:64,column:31},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:31},end:{line:69,column:5}},line:67}},branchMap:{0:{loc:{start:{line:52,column:6},end:{line:56,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:56,column:7}},{start:{line:54,column:13},end:{line:56,column:7}}],line:52}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["PromptDialog.vue"],names:[],mappings:";AA2GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"PromptDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row v-if="subtitle">\n <v-card-subtitle style="white-space: pre-line">{{\n subtitle\n }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span style="white-space: pre-line" v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span style="white-space: pre-line" v-text="details" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if="layout === \'combo\'">\n <v-row class="ma-2">\n <v-select\n @change="selectOkDisabled = false"\n v-model="selectedItem"\n label="Select"\n color="secondary"\n class="ma-1"\n data-test="prompt-select"\n :items="buttons"\n :multiple="multiple === true"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="submitHandler"\n class="ma-1"\n color="primary"\n data-test="prompt-ok"\n :disabled="selectOkDisabled"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class="layoutClass">\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <div v-for="(button, index) in buttons" :key="index">\n <v-btn\n @click="submitWrapper(button.value)"\n class="ma-1"\n :data-test="`prompt-${button.text}`"\n :color="button.value ? \'primary\' : \'\'"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: \'Prompt Dialog\',\n },\n subtitle: {\n type: String,\n default: \'\',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: \'\',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: \'horizontal\', // Also \'vertical\' or \'combo\' when means ComboBox\n },\n multiple: {\n type: Boolean,\n default: false,\n required: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n layoutClass() {\n let layout = \'d-flex align-start\'\n if (this.layout === \'vertical\') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit(\'response\', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card__subtitle {\n padding: 0;\n padding-bottom: 10px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65d11c40c3eed705d3f7568ff0b6217e128de16b"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return On=function(){return o},o}On();var Nn={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:function(){return On().f[0]++,On().s[0]++,[]}},layout:{type:String,default:"horizontal"},multiple:{type:Boolean,default:!1,required:!1},value:Boolean},data:function(){return On().f[1]++,On().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return On().f[2]++,On().s[2]++,this.value},set:function(e){On().f[3]++,On().s[3]++,this.$emit("input",e)}},layoutClass:function(){On().f[4]++;var e=(On().s[4]++,"d-flex align-start");return On().s[5]++,"vertical"===this.layout?(On().b[0][0]++,On().s[6]++,"".concat(e," flex-column")):(On().b[0][1]++,On().s[7]++,"".concat(e," flex-row"))}},methods:{submitWrapper:function(e){On().f[5]++,On().s[8]++,this.selectedItem=e,On().s[9]++,this.submitHandler()},submitHandler:function(){On().f[6]++,On().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){On().f[7]++,On().s[11]++,this.$emit("response","Cancel")}}},Zn=Nn,Ln=(t(74087),(0,y.Z)(Zn,Dn,In,!1,null,"33fbf9b4",null)),Fn=Ln.exports;function Pn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="89650bbdcb6d38415a1d1a73e5a9a7a2a78319fb",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:824}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:771},end:{line:1,column:791}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:754},end:{line:1,column:755}},loc:{start:{line:1,column:770},end:{line:1,column:792}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"89650bbdcb6d38415a1d1a73e5a9a7a2a78319fb"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Pn=function(){return o},o}Pn(),Pn().s[0]++;var $n=function(){Pn().f[0]++;var e=(Pn().s[1]++,this),n=(Pn().s[2]++,e._self._c);return Pn().s[3]++,n("v-dialog",{attrs:{scrollable:"",width:"600"},model:{value:e.show,callback:function(n){Pn().f[1]++,Pn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Script Results ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticStyle:{width:"100%","max-height":"80vh",overflow:"auto"}},[n("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:e.text}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.downloadResults}},[e._v(" Download ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){Pn().f[2]++,Pn().s[5]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},Hn=(Pn().s[6]++,[]);function Bn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="8b350299e1753c502da1391866e2c1bb27d46a32",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:19,column:8},end:{line:19,column:25}},1:{start:{line:22,column:8},end:{line:22,column:34}},2:{start:{line:28,column:19},end:{line:30,column:8}},3:{start:{line:32,column:19},end:{line:32,column:46}},4:{start:{line:33,column:6},end:{line:33,column:43}},5:{start:{line:34,column:6},end:{line:37,column:7}},6:{start:{line:38,column:6},end:{line:38,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:6},end:{line:18,column:7}},loc:{start:{line:18,column:12},end:{line:20,column:7}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:21,column:6},end:{line:21,column:7}},loc:{start:{line:21,column:17},end:{line:23,column:7}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:22},end:{line:39,column:5}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AA6CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ResultsDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" scrollable width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text style="width: 100%; max-height: 80vh; overflow: auto">\n <v-textarea readonly hide-details dense auto-grow :value="text" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class="mx-2" outlined @click="downloadResults"> Download </v-btn>\n <v-btn class="mx-2" color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_suite_results.txt\'\n )\n link.click()\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8b350299e1753c502da1391866e2c1bb27d46a32"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bn=function(){return o},o}Bn();var Wn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Bn().f[0]++,Bn().s[0]++,this.value},set:function(e){Bn().f[1]++,Bn().s[1]++,this.$emit("input",e)}}},methods:{downloadResults:function(){Bn().f[2]++;var e=(Bn().s[2]++,new Blob([this.text],{type:"text/plain"})),n=(Bn().s[3]++,document.createElement("a"));Bn().s[4]++,n.href=URL.createObjectURL(e),Bn().s[5]++,n.setAttribute("download",(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Bn().s[6]++,n.click()}}},Vn=Wn,Un=(0,y.Z)(Vn,$n,Hn,!1,null,null,null),Gn=Un.exports;function zn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="fab91814d1f664d7dcc6f1b2beb8e7a3c2545224",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:851}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:434},end:{line:1,column:450}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:418},end:{line:1,column:419}},loc:{start:{line:1,column:433},end:{line:1,column:451}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fab91814d1f664d7dcc6f1b2beb8e7a3c2545224"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return zn=function(){return o},o}zn(),zn().s[0]++;var jn=function(){zn().f[0]++;var e=(zn().s[1]++,this),n=(zn().s[2]++,e._self._c);return zn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){zn().f[1]++,zn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Script Environment Variables")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("environment-chooser",{model:{value:e.selected,callback:function(n){zn().f[2]++,zn().s[5]++,e.selected=n},expression:"selected"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!e.inputError},on:{click:e.updateEnvironment}},[e._v(" Save ")])],1)],1)],1)},qn=(zn().s[6]++,[]);function Yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Yn=function(){return o},o}Yn();var Kn={components:{EnvironmentChooser:qe},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return Yn().f[0]++,Yn().s[0]++,{selected:[]}},mounted:function(){Yn().f[1]++,Yn().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return Yn().f[2]++,Yn().s[2]++,this.value},set:function(e){Yn().f[3]++,Yn().s[3]++,this.$emit("input",e)}}},methods:{loadEnvironment:function(){Yn().f[4]++,Yn().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){Yn().f[5]++,Yn().s[5]++,this.$emit("environment",this.selected),Yn().s[6]++,this.show=!this.show},cancel:function(){Yn().f[6]++,Yn().s[7]++,this.show=!this.show}}},Xn=Kn,Jn=(0,y.Z)(Xn,jn,qn,!1,null,null,null),Qn=Jn.exports;function et(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="a01de25c5536256c5a667e93833a9611e1c57967",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:106}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:676},end:{line:1,column:691}},6:{start:{line:1,column:1069},end:{line:1,column:1082}},7:{start:{line:1,column:1288},end:{line:1,column:1375}},8:{start:{line:1,column:1568},end:{line:1,column:1655}},9:{start:{line:1,column:1835},end:{line:1,column:1925}},10:{start:{line:1,column:2318},end:{line:1,column:2333}},11:{start:{line:1,column:2540},end:{line:1,column:2555}},12:{start:{line:1,column:2933},end:{line:1,column:2946}},13:{start:{line:1,column:3152},end:{line:1,column:3257}},14:{start:{line:1,column:3450},end:{line:1,column:3555}},15:{start:{line:1,column:3735},end:{line:1,column:3843}},16:{start:{line:1,column:4227},end:{line:1,column:4242}},17:{start:{line:1,column:4532},end:{line:1,column:4547}},18:{start:{line:1,column:4930},end:{line:1,column:4944}},19:{start:{line:1,column:5133},end:{line:7,column:18}},20:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:432},end:{line:1,column:433}},loc:{start:{line:1,column:447},end:{line:1,column:464}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:660},end:{line:1,column:661}},loc:{start:{line:1,column:675},end:{line:1,column:692}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1053},end:{line:1,column:1054}},loc:{start:{line:1,column:1068},end:{line:1,column:1083}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1271},end:{line:1,column:1272}},loc:{start:{line:1,column:1287},end:{line:1,column:1376}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1551},end:{line:1,column:1552}},loc:{start:{line:1,column:1567},end:{line:1,column:1656}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1818},end:{line:1,column:1819}},loc:{start:{line:1,column:1834},end:{line:1,column:1926}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2302},end:{line:1,column:2303}},loc:{start:{line:1,column:2317},end:{line:1,column:2334}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2524},end:{line:1,column:2525}},loc:{start:{line:1,column:2539},end:{line:1,column:2556}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2917},end:{line:1,column:2918}},loc:{start:{line:1,column:2932},end:{line:1,column:2947}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3135},end:{line:1,column:3136}},loc:{start:{line:1,column:3151},end:{line:1,column:3258}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3433},end:{line:1,column:3434}},loc:{start:{line:1,column:3449},end:{line:1,column:3556}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3718},end:{line:1,column:3719}},loc:{start:{line:1,column:3734},end:{line:1,column:3844}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4211},end:{line:1,column:4212}},loc:{start:{line:1,column:4226},end:{line:1,column:4243}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4516},end:{line:1,column:4517}},loc:{start:{line:1,column:4531},end:{line:1,column:4548}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4914},end:{line:1,column:4915}},loc:{start:{line:1,column:4929},end:{line:1,column:4945}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5116},end:{line:1,column:5117}},loc:{start:{line:1,column:5132},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1493},end:{line:1,column:1537}},type:"binary-expr",locations:[{start:{line:1,column:1493},end:{line:1,column:1511}},{start:{line:1,column:1515},end:{line:1,column:1537}}],line:1},1:{loc:{start:{line:1,column:1757},end:{line:1,column:1804}},type:"binary-expr",locations:[{start:{line:1,column:1757},end:{line:1,column:1775}},{start:{line:1,column:1779},end:{line:1,column:1804}}],line:1},2:{loc:{start:{line:1,column:3375},end:{line:1,column:3419}},type:"binary-expr",locations:[{start:{line:1,column:3375},end:{line:1,column:3393}},{start:{line:1,column:3397},end:{line:1,column:3419}}],line:1},3:{loc:{start:{line:1,column:3657},end:{line:1,column:3704}},type:"binary-expr",locations:[{start:{line:1,column:3657},end:{line:1,column:3675}},{start:{line:1,column:3679},end:{line:1,column:3704}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a01de25c5536256c5a667e93833a9611e1c57967"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return et=function(){return o},o}et(),et().s[0]++;var nt=function(){et().f[0]++;var e=(et().s[1]++,this),n=(et().s[2]++,e._self._c);return et().s[3]++,n("div",[n("div",{attrs:{id:"tr-container"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:e.options,callback:function(n){et().f[1]++,et().s[4]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:e.options,callback:function(n){et().f[2]++,et().s[5]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:e.suites,"data-test":"select-suite"},on:{change:e.suiteChanged},model:{value:e.suite,callback:function(n){et().f[3]++,et().s[6]++,e.suite=n},expression:"suite"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-suite"},on:{click:function(n){return et().f[4]++,et().s[7]++,e.$emit("button",{method:"start",suite:e.suite,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(et().b[0][0]++,e.disableButtons||(et().b[0][1]++,!e.setupSuiteEnabled))},on:{click:function(n){return et().f[5]++,et().s[8]++,e.$emit("button",{method:"setup",suite:e.suite,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(et().b[1][0]++,e.disableButtons||(et().b[1][1]++,!e.teardownSuiteEnabled))},on:{click:function(n){return et().f[6]++,et().s[9]++,e.$emit("button",{method:"teardown",suite:e.suite,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:e.options,callback:function(n){et().f[7]++,et().s[10]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:e.options,callback:function(n){et().f[8]++,et().s[11]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:e.groups,"data-test":"select-group"},on:{change:e.groupChanged},model:{value:e.group,callback:function(n){et().f[9]++,et().s[12]++,e.group=n},expression:"group"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-group"},on:{click:function(n){return et().f[10]++,et().s[13]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(et().b[2][0]++,e.disableButtons||(et().b[2][1]++,!e.setupGroupEnabled))},on:{click:function(n){return et().f[11]++,et().s[14]++,e.$emit("button",{method:"setup",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(et().b[3][0]++,e.disableButtons||(et().b[3][1]++,!e.teardownGroupEnabled))},on:{click:function(n){return et().f[12]++,et().s[15]++,e.$emit("button",{method:"teardown",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:e.options,callback:function(n){et().f[13]++,et().s[16]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{disabled:!e.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:e.options,callback:function(n){et().f[14]++,et().s[17]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:e.scripts,"data-test":"select-script"},on:{change:e.scriptChanged},model:{value:e.script,callback:function(n){et().f[15]++,et().s[18]++,e.script=n},expression:"script"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-script"},on:{click:function(n){return et().f[16]++,et().s[19]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,script:e.script,options:e.options})}}},[e._v(" Start ")]),n("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},tt=(et().s[20]++,[]);function it(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="f2c5bb67e843bcea1658ca32e99187e727ff97f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:14,column:4},end:{line:22,column:5}},1:{start:{line:26,column:6},end:{line:30,column:7}},2:{start:{line:27,column:8},end:{line:27,column:19}},3:{start:{line:29,column:8},end:{line:29,column:20}},4:{start:{line:33,column:6},end:{line:37,column:7}},5:{start:{line:34,column:8},end:{line:34,column:19}},6:{start:{line:36,column:8},end:{line:36,column:20}},7:{start:{line:40,column:6},end:{line:48,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:8},end:{line:47,column:20}},10:{start:{line:51,column:6},end:{line:59,column:7}},11:{start:{line:56,column:8},end:{line:56,column:19}},12:{start:{line:58,column:8},end:{line:58,column:20}},13:{start:{line:63,column:4},end:{line:63,column:21}},14:{start:{line:69,column:8},end:{line:69,column:29}},15:{start:{line:76,column:6},end:{line:76,column:46}},16:{start:{line:77,column:6},end:{line:85,column:7}},17:{start:{line:81,column:8},end:{line:81,column:25}},18:{start:{line:83,column:8},end:{line:83,column:67}},19:{start:{line:84,column:8},end:{line:84,column:75}},20:{start:{line:88,column:6},end:{line:88,column:46}},21:{start:{line:89,column:6},end:{line:89,column:39}},22:{start:{line:92,column:6},end:{line:92,column:24}},23:{start:{line:93,column:6},end:{line:93,column:21}},24:{start:{line:94,column:6},end:{line:94,column:22}},25:{start:{line:95,column:6},end:{line:95,column:60}},26:{start:{line:97,column:6},end:{line:97,column:39}},27:{start:{line:100,column:6},end:{line:100,column:24}},28:{start:{line:101,column:6},end:{line:101,column:22}},29:{start:{line:102,column:6},end:{line:102,column:68}},30:{start:{line:104,column:6},end:{line:104,column:41}},31:{start:{line:107,column:6},end:{line:107,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:23,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:24},end:{line:31,column:5}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:27},end:{line:38,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:24},end:{line:49,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:27},end:{line:60,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:12},end:{line:64,column:3}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:68,column:15},end:{line:68,column:16}},loc:{start:{line:68,column:41},end:{line:70,column:7}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:21},end:{line:86,column:5}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:17},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:24},end:{line:98,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:99,column:4},end:{line:99,column:5}},loc:{start:{line:99,column:24},end:{line:105,column:5}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:25},end:{line:108,column:5}},line:106}},branchMap:{0:{loc:{start:{line:26,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:26,column:6},end:{line:30,column:7}},{start:{line:28,column:13},end:{line:30,column:7}}],line:26},1:{loc:{start:{line:26,column:10},end:{line:26,column:55}},type:"binary-expr",locations:[{start:{line:26,column:10},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:55}}],line:26},2:{loc:{start:{line:33,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:37,column:7}},{start:{line:35,column:13},end:{line:37,column:7}}],line:33},3:{loc:{start:{line:33,column:10},end:{line:33,column:58}},type:"binary-expr",locations:[{start:{line:33,column:10},end:{line:33,column:20}},{start:{line:33,column:24},end:{line:33,column:58}}],line:33},4:{loc:{start:{line:40,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:40},5:{loc:{start:{line:41,column:8},end:{line:43,column:58}},type:"binary-expr",locations:[{start:{line:41,column:8},end:{line:41,column:18}},{start:{line:42,column:8},end:{line:42,column:18}},{start:{line:43,column:8},end:{line:43,column:58}}],line:41},6:{loc:{start:{line:51,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:59,column:7}},{start:{line:57,column:13},end:{line:59,column:7}}],line:51},7:{loc:{start:{line:52,column:8},end:{line:54,column:61}},type:"binary-expr",locations:[{start:{line:52,column:8},end:{line:52,column:18}},{start:{line:53,column:8},end:{line:53,column:18}},{start:{line:54,column:8},end:{line:54,column:61}}],line:52},8:{loc:{start:{line:77,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:85,column:7}},{start:{line:82,column:13},end:{line:85,column:7}}],line:77},9:{loc:{start:{line:78,column:8},end:{line:79,column:65}},type:"binary-expr",locations:[{start:{line:78,column:8},end:{line:78,column:46}},{start:{line:79,column:8},end:{line:79,column:65}}],line:78}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["SuiteRunner.vue"],names:[],mappings:";AA0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SuiteRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <div id="tr-container">\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Pause on Error"\n value="pauseOnError"\n hide-details\n data-test="pause-on-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Manual"\n value="manual"\n hide-details\n data-test="manual"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Suite:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="suiteChanged"\n :items="suites"\n v-model="suite"\n data-test="select-suite"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="$emit(\'button\', { method: \'start\', suite, options })"\n data-test="start-suite"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="$emit(\'button\', { method: \'setup\', suite, options })"\n data-test="setup-suite"\n :disabled="disableButtons || !setupSuiteEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="$emit(\'button\', { method: \'teardown\', suite, options })"\n data-test="teardown-suite"\n :disabled="disableButtons || !teardownSuiteEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Continue after Error"\n value="continueAfterError"\n hide-details\n data-test="continue-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Loop"\n value="loop"\n hide-details\n data-test="loop"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Group:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="groupChanged"\n :items="groups"\n v-model="group"\n data-test="select-group"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', { method: \'start\', suite, group, options })\n "\n data-test="start-group"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="\n $emit(\'button\', { method: \'setup\', suite, group, options })\n "\n data-test="setup-group"\n :disabled="disableButtons || !setupGroupEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="\n $emit(\'button\', { method: \'teardown\', suite, group, options })\n "\n data-test="teardown-group"\n :disabled="disableButtons || !teardownGroupEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Abort after Error"\n value="abortAfterError"\n hide-details\n data-test="abort-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n :disabled="!options.includes(\'loop\')"\n v-model="options"\n label="Break Loop on Error"\n value="breakLoopOnError"\n hide-details\n data-test="break-loop-on-error"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Script:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="scriptChanged"\n :items="scripts"\n v-model="script"\n data-test="select-script"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', {\n method: \'start\',\n suite,\n group,\n script,\n options,\n })\n "\n data-test="start-script"\n >\n Start\n </v-btn>\n \x3c!-- TODO: Don\'t like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts --\x3e\n <div style="width: 300px" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: \'\',\n group: \'\',\n script: \'\',\n options: [\'pauseOnError\', \'manual\', \'continueAfterError\'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = \'\'\n this.script = \'\'\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = \'\'\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f2c5bb67e843bcea1658ca32e99187e727ff97f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return it=function(){return o},o}it();var lt={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return it().f[0]++,it().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return it().f[1]++,it().s[1]++,it().b[1][0]++,this.suite&&(it().b[1][1]++,this.suiteMap[this.suite].setup)?(it().b[0][0]++,it().s[2]++,!0):(it().b[0][1]++,it().s[3]++,!1)},teardownSuiteEnabled:function(){return it().f[2]++,it().s[4]++,it().b[3][0]++,this.suite&&(it().b[3][1]++,this.suiteMap[this.suite].teardown)?(it().b[2][0]++,it().s[5]++,!0):(it().b[2][1]++,it().s[6]++,!1)},setupGroupEnabled:function(){return it().f[3]++,it().s[7]++,it().b[5][0]++,this.suite&&(it().b[5][1]++,this.group)&&(it().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(it().b[4][0]++,it().s[8]++,!0):(it().b[4][1]++,it().s[9]++,!1)},teardownGroupEnabled:function(){return it().f[4]++,it().s[10]++,it().b[7][0]++,this.suite&&(it().b[7][1]++,this.group)&&(it().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(it().b[6][0]++,it().s[11]++,!0):(it().b[6][1]++,it().s[12]++,!1)}},created:function(){it().f[5]++,it().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(e,n){it().f[6]++,it().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){it().f[7]++,it().s[15]++,this.suites=Object.keys(this.suiteMap),it().s[16]++,it().b[9][0]++,void 0==this.suiteMap[this.suite]||(it().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(it().b[8][0]++,it().s[17]++,this.initSuites()):(it().b[8][1]++,it().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),it().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){it().f[8]++,it().s[20]++,this.suites=Object.keys(this.suiteMap),it().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(e){it().f[9]++,it().s[22]++,this.suite=e,it().s[23]++,this.group="",it().s[24]++,this.script="",it().s[25]++,this.groups=Object.keys(this.suiteMap[e].groups),it().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(e){it().f[10]++,it().s[27]++,this.group=e,it().s[28]++,this.script="",it().s[29]++,this.scripts=this.suiteMap[this.suite].groups[e].scripts,it().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(e){it().f[11]++,it().s[31]++,this.script=e}}},st=lt,ot=(t(14723),(0,y.Z)(st,nt,tt,!1,null,"3372ac08",null)),at=ot.exports;function rt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="252a0dbc653f53201767f2c9315f1fb523b691dd",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1346}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:603},end:{line:1,column:808}},6:{start:{line:1,column:1060},end:{line:1,column:1074}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:182},end:{line:1,column:183}},loc:{start:{line:1,column:205},end:{line:1,column:420}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:579},end:{line:1,column:580}},loc:{start:{line:1,column:602},end:{line:1,column:809}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1044},end:{line:1,column:1045}},loc:{start:{line:1,column:1059},end:{line:1,column:1075}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"252a0dbc653f53201767f2c9315f1fb523b691dd"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return rt=function(){return o},o}rt(),rt().s[0]++;var ct=function(){rt().f[0]++;var e=(rt().s[1]++,this),n=(rt().s[2]++,e._self._c);return rt().s[3]++,n("div",[n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[1]++,rt().s[4]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[n("span",[e._v(" Download Log ")])]),e._v(" Log Messages "),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[2]++,rt().s[5]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[n("span",[e._v(" Clear Log ")])])],1),n("v-card-subtitle",[n("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:e.search,callback:function(n){rt().f[3]++,rt().s[6]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.messages,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},ut=(rt().s[7]++,[]);function dt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="4f866ab3685e6a3232e3beb9804b0b4718c61e05",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:12,column:4},end:{line:15,column:5}},1:{start:{line:20,column:8},end:{line:20,column:25}},2:{start:{line:23,column:8},end:{line:23,column:34}},3:{start:{line:29,column:21},end:{line:29,column:79}},4:{start:{line:29,column:52},end:{line:29,column:67}},5:{start:{line:30,column:19},end:{line:32,column:8}},6:{start:{line:34,column:19},end:{line:34,column:46}},7:{start:{line:35,column:6},end:{line:35,column:43}},8:{start:{line:36,column:6},end:{line:39,column:7}},9:{start:{line:40,column:6},end:{line:40,column:18}},10:{start:{line:43,column:6},end:{line:50,column:10}},11:{start:{line:49,column:10},end:{line:49,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:16,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22},3:{name:"(anonymous_3)",decl:{start:{line:28,column:4},end:{line:28,column:5}},loc:{start:{line:28,column:18},end:{line:41,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:29,column:39},end:{line:29,column:40}},loc:{start:{line:29,column:52},end:{line:29,column:67}},line:29},5:{name:"(anonymous_5)",decl:{start:{line:42,column:14},end:{line:42,column:15}},loc:{start:{line:42,column:26},end:{line:51,column:5}},line:42},6:{name:"(anonymous_6)",decl:{start:{line:48,column:14},end:{line:48,column:15}},loc:{start:{line:48,column:26},end:{line:50,column:9}},line:48}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AAiFA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptLogMessages.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn\n icon\n class="mx-2"\n data-test="download-log"\n @click="downloadLog"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Log Messages\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn icon class="mx-2" data-test="clear-log" @click="clearLog">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-card-subtitle>\n <v-text-field\n v-model="search"\n single-line\n hide-details\n autofocus\n label="Search"\n data-test="search-output-messages"\n />\n </v-card-subtitle>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n height="45vh"\n data-test="output-messages"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: \'\',\n headers: [{ text: \'Message\', value: \'message\' }],\n }\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join(\'\\n\')\n const blob = new Blob([output], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_sr_message_log.txt\'\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm(\'Are you sure you want to clear the logs?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4f866ab3685e6a3232e3beb9804b0b4718c61e05"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return dt=function(){return o},o}dt();var mt={props:{value:{type:Array,required:!0}},data:function(){return dt().f[0]++,dt().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return dt().f[1]++,dt().s[1]++,this.value},set:function(e){dt().f[2]++,dt().s[2]++,this.$emit("input",e)}}},methods:{downloadLog:function(){dt().f[3]++;var e=(dt().s[3]++,this.messages.map((function(e){return dt().f[4]++,dt().s[4]++,e.message})).join("\n")),n=(dt().s[5]++,new Blob([e],{type:"text/plain"})),t=(dt().s[6]++,document.createElement("a"));dt().s[7]++,t.href=URL.createObjectURL(n),dt().s[8]++,t.setAttribute("download",(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),dt().s[9]++,t.click()},clearLog:function(){var e=this;dt().f[5]++,dt().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(n){dt().f[6]++,dt().s[11]++,e.messages=[]}))}}},At=mt,pt=(0,y.Z)(At,ct,ut,!1,null,null,null),ht=pt.exports,ft=function(){var e=this,n=e._self._c;return n("div",{ref:"bar",style:e.computedStyle},[n("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[n("span",[e._v(" Errors ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit Screen ")])]),e.fixFloated?e._e():n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v(" "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+" ")])],1)]}}],null,!1,3870545613)},[n("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e.floated?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v(" mdi-arrow-up ")])],1)]}}],null,!1,4034340880)},[n("span",[e._v(" Move Screen Up ")])]):e._e(),e.floated&&e.zIndex>e.minZ?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v(" mdi-arrow-down ")])],1)]}}],null,!1,3846940455)},[n("span",[e._v(" Move Screen Down ")])]):e._e(),n("v-spacer"),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(n){return e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close Screen ")])])],1),e.editDialog?e._e():n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[n("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(n){return e.saveEdit(n)},cancel:function(n){return e.cancelEdit()},delete:function(n){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(n){e.editDialog=n},expression:"editDialog"}}):e._e(),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),n("v-spacer")],1),n("v-card",[n("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},vt=[],gt=(t(68995),t(13489),t(67789),t(6710),t(63291)),bt=t(44091),Ct=t(23779),_t=t.n(Ct),yt=t(96009),wt=t.n(yt),xt=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[n("span",[e._v(" Delete Screen ")])])],1),n("v-spacer"),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download Screen ")])])],1)],1),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v(" Load ")]),n("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(n){e.file=n},expression:"file"}})],1),n("v-row",[e._v(" Edit the screen definition. ")]),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor"})]),e._l(e.editErrors,(function(t,i){return n("v-row",{key:i,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),n("v-row",[n("span",[e._v("Ctrl-space brings up autocomplete")]),n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(n){e.$emit("save",e.editor.getValue())}}},[e._v(" Save ")])],1)],2)],1)],1)},kt=[],St=(t(71747),t(57871)),Mt=t(50426),Et=t(52261),Tt=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(function(e,n,t,i,l){l(null,(0,u.Z)(this.autocompleteData))})),p.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return n.autocompleteData=e.data}))})),Rt={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},errors:{type:Array,default:function(){return[]}}},data:function(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){var e,n=new Set,t=[],i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="At ".concat(l.lineNumber,": (").concat(l.line,") ").concat(l.message,".");l.usage&&(s+=" Usage: ".concat(l.usage)),t.push(s),n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return[]},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.editor=h.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");var e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new Tt],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode:function(){var e=h.require("ace/lib/oop"),n=h.require("ace/mode/text_highlight_rules").TextHighlightRules,t=this.keywords.join("|"),i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp("^\\s*(".concat(t,")\\b"))}]},this.normalizeRules()};e.inherits(i,n);var l=function(){this.HighlightRules=i},s=h.require("ace/mode/text").Mode;return e.inherits(l,s),function(){this.$id="ace/mode/openc3"}.call(l.prototype),l},downloadScreen:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),n.click()},loadFile:function(){var e=new FileReader;e.readAsText(this.file);var n=this;e.onload=function(){n.editor.setValue(e.result),n.file=null}},deleteScreen:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(n){e.$emit("delete")}))}}},Dt=Rt,It=(t(16895),t(48038),(0,y.Z)(Dt,xt,kt,!1,null,"4c92d9b1",null)),Ot=It.exports,Nt=t(84910);Nt.keys().forEach((function(e){var n=Nt(e),t=_t()(wt()(e.split("/").pop().replace(/\.\w+$/,"")));bt["default"].component(t,n.default||n)}));var Zt={components:{EditScreenDialog:Ot},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0}},data:function(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler:function(e,n){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){var e,n=new Set,t="",i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="".concat(l.time,": (").concat(l.type,") ").concat(l.message,"\n");t+=s,n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return null},computedStyle:function(){var e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured:function(e,n,t){return e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0,!1},created:function(){this.api=new V.k,this.configParser=new gt.p,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed:function(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open:function(e,n){this.$parent.showScreen(e,n)},close:function(e,n){this.$parent.closeScreenByName(e,n)},closeAll:function(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){var e=this,n=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((function(){e.update()}),n)},parseDefinition:function(){var e=this;if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(n,t,i,l){var s;if(n)switch(n){case"SCREEN":e.configParser.verify_num_parameters(3,4,"".concat(n," <Width or AUTO> <Height or AUTO> <Polling Period>")),e.width=parseInt(t[0]),e.height=parseInt(t[1]),e.pollingPeriod=parseFloat(t[2]);break;case"END":e.configParser.verify_num_parameters(0,0,"".concat(n)),e.layoutStack.pop(),e.currentLayout=e.layoutStack[e.layoutStack.length-1];break;case"STALE_TIME":e.configParser.verify_num_parameters(1,1,"".concat(n," <Time (s)>")),e.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":var o=null!==(s=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==s?s:e.currentLayout;o.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":e.globalSettings.push(t);break;default:e.processWidget(n,t,i,l);break}})),"undefined"===typeof this.layoutStack[0]){var n,t=[],i=[],l=(0,a.Z)(this.dynamicWidgets);try{for(l.s();!(n=l.n()).done;){var s=n.value;t.push(s.name),i.push(s.lineNumber)}}catch(o){l.e(o)}finally{l.f()}this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:i.join(","),time:(new Date).getTime()}),this.configError=!0,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,n){this.namedWidgets[e]=n},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{var e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),n=this.$refs.bar.getBoundingClientRect();this.top=n.top-e.top-5,this.left=n.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();var n=this.dragX-e.clientX,t=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-n,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){p.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){var e=this;this.editDialog=!1,p.Z.delete("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(n){e.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,n,t,i){var l=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),l=n[0].toUpperCase(),e=n[1].toUpperCase(),n=n.slice(2,n.length));var s=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget",o=[];if(null!==l&&o.push(["NAMED_WIDGET",l,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){var a={type:s,parameters:n,settings:o,widgets:[]};this.layoutStack.push(a),this.currentLayout.widgets.push(a),this.currentLayout=a}else if(o.push(["__SCREEN__",this]),bt["default"].options.components[s])this.currentLayout.widgets.push({type:s,target:this.target,parameters:n,settings:o,line:t,lineNumber:i});else{var r={type:"DynamicWidget",target:this.target,parameters:n,settings:o,name:s,line:t,lineNumber:i};this.currentLayout.widgets.push(r),this.dynamicWidgets.push(r)}},applyGlobalSettings:function(e){var n=this;this.globalSettings.forEach((function(t){e.forEach((function(e){e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1)),e.widgets&&n.applyGlobalSettings(e.widgets)}))}))},update:function(){var e=this;0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime).then((function(n){e.clearErrors(),e.updateValues(n)})).catch((function(n){var t=JSON.stringify(n,null,2);t.includes("no response received")||(e.configError=!0),e.errors.find((function(e){e.message}))||e.errors.push({type:"error",message:t,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(var n=0;n<e.length;n++)e[n].push(this.updateCounter),bt["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){this.screenItems.push(e),bt["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){var n=this.screenItems.indexOf(e);this.screenItems.splice(n,1)}}},Lt=Zt,Ft=(t(48354),(0,y.Z)(Lt,ft,vt,!1,null,"75133f21",null)),Pt=Ft.exports,$t=t(89091),Ht=t(58007);function Bt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",n="bc429c989ff6c563268021b0e1f9fc50ed29bd64",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:25,column:20},end:{line:27,column:1}},1:{start:{line:26,column:2},end:{line:26,column:61}},2:{start:{line:29,column:28},end:{line:31,column:1}},3:{start:{line:30,column:2},end:{line:30,column:57}},4:{start:{line:34,column:16},end:{line:44,column:1}},5:{start:{line:35,column:2},end:{line:43,column:8}},6:{start:{line:36,column:16},end:{line:36,column:28}},7:{start:{line:37,column:4},end:{line:41,column:5}},8:{start:{line:38,column:6},end:{line:38,column:28}},9:{start:{line:40,column:6},end:{line:40,column:26}},10:{start:{line:42,column:4},end:{line:42,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:20},end:{line:25,column:21}},loc:{start:{line:25,column:30},end:{line:27,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:29,column:28},end:{line:29,column:29}},loc:{start:{line:29,column:38},end:{line:31,column:1}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:35},end:{line:44,column:1}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:35,column:22},end:{line:35,column:23}},loc:{start:{line:35,column:40},end:{line:43,column:3}},line:35}},branchMap:{0:{loc:{start:{line:37,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:41,column:5}},{start:{line:39,column:11},end:{line:41,column:5}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc429c989ff6c563268021b0e1f9fc50ed29bd64"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bt=function(){return o},o}Bt(),Bt().s[0]++;var Wt=function(e){return Bt().f[0]++,Bt().s[1]++,p.Z.get("/openc3-api/autocomplete/keywords/".concat(e))};Bt().s[2]++;var Vt=function(e){return Bt().f[1]++,Bt().s[3]++,p.Z.get("/openc3-api/autocomplete/data/".concat(e))};Bt().s[4]++;var Ut=function(e,n){return Bt().f[2]++,Bt().s[5]++,e.reduce((function(e,t){Bt().f[3]++;var i=(Bt().s[6]++,n(t));return Bt().s[7]++,e[i]?(Bt().b[0][0]++,Bt().s[8]++,e[i].push(t)):(Bt().b[0][1]++,Bt().s[9]++,e[i]=[t]),Bt().s[10]++,e}),{})};function Gt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",n="dbda3a6741d49afa955fae563aa43644392aa172",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:25,column:32},end:{line:31,column:1}},1:{start:{line:27,column:17},end:{line:27,column:32}},2:{start:{line:28,column:18},end:{line:28,column:33}},3:{start:{line:29,column:17},end:{line:29,column:34}},4:{start:{line:30,column:2},end:{line:30,column:59}},5:{start:{line:39,column:4},end:{line:39,column:32}},6:{start:{line:40,column:4},end:{line:40,column:30}},7:{start:{line:42,column:4},end:{line:45,column:6}},8:{start:{line:43,column:6},end:{line:43,column:74}},9:{start:{line:44,column:6},end:{line:44,column:32}},10:{start:{line:46,column:4},end:{line:49,column:6}},11:{start:{line:47,column:6},end:{line:47,column:43}},12:{start:{line:48,column:6},end:{line:48,column:25}},13:{start:{line:52,column:19},end:{line:74,column:3}},14:{start:{line:53,column:18},end:{line:53,column:20}},15:{start:{line:54,column:29},end:{line:57,column:5}},16:{start:{line:58,column:4},end:{line:62,column:5}},17:{start:{line:59,column:46},end:{line:59,column:75}},18:{start:{line:61,column:6},end:{line:61,column:37}},19:{start:{line:64,column:4},end:{line:73,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:32},end:{line:25,column:33}},loc:{start:{line:25,column:42},end:{line:31,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:38,column:4},end:{line:50,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:36,column:24},end:{line:36,column:25}},loc:{start:{line:36,column:30},end:{line:36,column:32}},line:36},3:{name:"(anonymous_3)",decl:{start:{line:37,column:31},end:{line:37,column:32}},loc:{start:{line:37,column:37},end:{line:37,column:39}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:42,column:27},end:{line:42,column:28}},loc:{start:{line:42,column:41},end:{line:45,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:46,column:35},end:{line:46,column:36}},loc:{start:{line:46,column:49},end:{line:49,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:52,column:19},end:{line:52,column:20}},loc:{start:{line:52,column:74},end:{line:74,column:3}},line:52},7:{name:"(anonymous_7)",decl:{start:{line:59,column:35},end:{line:59,column:36}},loc:{start:{line:59,column:46},end:{line:59,column:75}},line:59}},branchMap:{0:{loc:{start:{line:36,column:4},end:{line:36,column:32}},type:"default-arg",locations:[{start:{line:36,column:24},end:{line:36,column:32}}],line:36},1:{loc:{start:{line:37,column:4},end:{line:37,column:39}},type:"default-arg",locations:[{start:{line:37,column:31},end:{line:37,column:39}}],line:37},2:{loc:{start:{line:58,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0],1:[0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dbda3a6741d49afa955fae563aa43644392aa172"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Gt=function(){return o},o}Gt(),Gt().s[0]++;var zt=function(e){Gt().f[0]++;var n=(Gt().s[1]++,"(^|[{\\(\\s])"),t=(Gt().s[2]++,"[\\s\\(]['\"]"),i=(Gt().s[3]++,"(\\S+\\s?){0,3}");return Gt().s[4]++,new RegExp("".concat(n).concat(e).concat(t).concat(i,"$"))},jt=(0,St.Z)((function e(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Gt().b[0][0]++,function(){Gt().f[2]++}),l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Gt().b[1][0]++,function(){Gt().f[3]++});(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(Gt().s[13]++,function(e,n,t,i,l){Gt().f[6]++;var s=(Gt().s[14]++,[]),o=(Gt().s[15]++,n.doc.$lines[t.row].slice(0,t.column));Gt().s[16]++,this.keywordExpressions.some((function(e){return Gt().f[7]++,Gt().s[17]++,o.match(e)}))?(Gt().b[2][0]++,Gt().s[18]++,s=this.autocompleteData):Gt().b[2][1]++,Gt().s[19]++,l(null,(0,u.Z)(s))})),Gt().f[1]++,Gt().s[5]++,this.keywordExpressions=[],Gt().s[6]++,this.autocompleteData=[],Gt().s[7]++,Wt(n).then((function(e){Gt().f[4]++,Gt().s[8]++,t.keywordExpressions=e.data.map(zt),Gt().s[9]++,l()})),Gt().s[10]++,Vt(n).then((function(e){Gt().f[5]++,Gt().s[11]++,t.autocompleteData=e.data,Gt().s[12]++,i()}))}));function qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",n="131d227344c79c3d036a025c6ea368aeadc2b775",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:28,column:3}},line:26}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"131d227344c79c3d036a025c6ea368aeadc2b775"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return qt=function(){return o},o}qt();var Yt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){return(0,Mt.Z)(this,t),qt().f[0]++,qt().s[0]++,n.call(this,"cmd")}return(0,St.Z)(t)}(jt),Kt=t(3484);function Xt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",n="25619d346e32a533485beb72a7572c19417db8fc",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:53,column:6}},1:{start:{line:30,column:6},end:{line:45,column:12}},2:{start:{line:31,column:27},end:{line:31,column:60}},3:{start:{line:32,column:25},end:{line:32,column:67}},4:{start:{line:33,column:28},end:{line:37,column:9}},5:{start:{line:39,column:8},end:{line:43,column:9}},6:{start:{line:40,column:10},end:{line:40,column:46}},7:{start:{line:42,column:10},end:{line:42,column:44}},8:{start:{line:44,column:8},end:{line:44,column:21}},9:{start:{line:46,column:6},end:{line:52,column:8}},10:{start:{line:47,column:8},end:{line:51,column:9}},11:{start:{line:57,column:19},end:{line:77,column:3}},12:{start:{line:58,column:18},end:{line:58,column:20}},13:{start:{line:59,column:29},end:{line:62,column:5}},14:{start:{line:63,column:4},end:{line:74,column:5}},15:{start:{line:64,column:46},end:{line:64,column:75}},16:{start:{line:66,column:26},end:{line:68,column:7}},17:{start:{line:67,column:24},end:{line:67,column:61}},18:{start:{line:69,column:6},end:{line:73,column:7}},19:{start:{line:70,column:8},end:{line:70,column:53}},20:{start:{line:72,column:8},end:{line:72,column:30}},21:{start:{line:76,column:4},end:{line:76,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:54,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:27,column:17},end:{line:27,column:18}},loc:{start:{line:27,column:23},end:{line:53,column:5}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:30,column:60},end:{line:30,column:61}},loc:{start:{line:30,column:78},end:{line:45,column:7}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:46,column:61},end:{line:46,column:62}},loc:{start:{line:46,column:77},end:{line:52,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:57,column:19},end:{line:57,column:20}},loc:{start:{line:57,column:74},end:{line:77,column:3}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:64,column:35},end:{line:64,column:36}},loc:{start:{line:64,column:46},end:{line:64,column:75}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:67,column:8},end:{line:67,column:9}},loc:{start:{line:67,column:24},end:{line:67,column:61}},line:67}},branchMap:{0:{loc:{start:{line:39,column:8},end:{line:43,column:9}},type:"if",locations:[{start:{line:39,column:8},end:{line:43,column:9}},{start:{line:41,column:15},end:{line:43,column:9}}],line:39},1:{loc:{start:{line:63,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},2:{loc:{start:{line:69,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:69,column:6},end:{line:73,column:7}},{start:{line:71,column:13},end:{line:73,column:7}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"25619d346e32a533485beb72a7572c19417db8fc"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Xt=function(){return o},o}Xt();var Jt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){var e;return(0,Mt.Z)(this,t),Xt().f[0]++,Xt().s[0]++,e=n.call(this,"tlm",(function(){Xt().f[1]++,Xt().s[1]++,e.groupedPacketData=e.autocompleteData.reduce((function(e,n){Xt().f[2]++;var t=(Xt().s[2]++,n.caption.match(/\S+\s\S+/)[0]),i=(Xt().s[3]++,n.snippet.replace("".concat(t," "),"")),l=(Xt().s[4]++,{caption:i,snippet:i,meta:"item"});return Xt().s[5]++,e[t]?(Xt().b[0][0]++,Xt().s[6]++,e[t].push(l)):(Xt().b[0][1]++,Xt().s[7]++,e[t]=[l]),Xt().s[8]++,e}),{}),Xt().s[9]++,e.packets=Object.keys(e.groupedPacketData).map((function(e){return Xt().f[3]++,Xt().s[10]++,{caption:e,snippet:e,meta:"packet"}}))})),(0,Et.Z)((0,Kt.Z)(e),"getCompletions",(Xt().s[11]++,function(e,n,t,i,l){Xt().f[4]++;var s=(Xt().s[12]++,[]),o=(Xt().s[13]++,n.doc.$lines[t.row].slice(0,t.column));if(Xt().s[14]++,this.keywordExpressions.some((function(e){return Xt().f[5]++,Xt().s[15]++,o.match(e)}))){Xt().b[1][0]++;var a=(Xt().s[16]++,Object.keys(this.groupedPacketData).find((function(e){return Xt().f[6]++,Xt().s[17]++,o.includes(e)})));Xt().s[18]++,a?(Xt().b[2][0]++,Xt().s[19]++,s=this.groupedPacketData[a]):(Xt().b[2][1]++,Xt().s[20]++,s=this.packets)}else Xt().b[1][1]++;Xt().s[21]++,l(null,s)})),e}return(0,St.Z)(t)}(jt);t(48319),t(43430);function Qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",n="7eab98b5dd0e78016006757b92a6afbca1bd2244",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:26,column:23},end:{line:31,column:1}},1:{start:{line:28,column:17},end:{line:28,column:32}},2:{start:{line:29,column:15},end:{line:29,column:37}},3:{start:{line:30,column:2},end:{line:30,column:46}},4:{start:{line:32,column:32},end:{line:32,column:36}},5:{start:{line:33,column:29},end:{line:33,column:43}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:39,column:21}},8:{start:{line:40,column:4},end:{line:47,column:6}},9:{start:{line:41,column:6},end:{line:46,column:8}},10:{start:{line:42,column:8},end:{line:45,column:9}},11:{start:{line:49,column:4},end:{line:49,column:35}},12:{start:{line:50,column:4},end:{line:52,column:6}},13:{start:{line:51,column:6},end:{line:51,column:68}},14:{start:{line:54,column:4},end:{line:54,column:35}},15:{start:{line:55,column:4},end:{line:57,column:6}},16:{start:{line:56,column:6},end:{line:56,column:68}},17:{start:{line:60,column:14},end:{line:141,column:3}},18:{start:{line:61,column:42},end:{line:134,column:5}},19:{start:{line:63,column:8},end:{line:63,column:26}},20:{start:{line:64,column:8},end:{line:66,column:9}},21:{start:{line:65,column:10},end:{line:65,column:23}},22:{start:{line:67,column:25},end:{line:69,column:16}},23:{start:{line:68,column:10},end:{line:68,column:43}},24:{start:{line:70,column:25},end:{line:72,column:16}},25:{start:{line:71,column:10},end:{line:71,column:43}},26:{start:{line:73,column:8},end:{line:75,column:9}},27:{start:{line:74,column:10},end:{line:74,column:23}},28:{start:{line:77,column:23},end:{line:77,column:43}},29:{start:{line:78,column:26},end:{line:78,column:41}},30:{start:{line:79,column:8},end:{line:79,column:44}},31:{start:{line:81,column:30},end:{line:83,column:32}},32:{start:{line:85,column:8},end:{line:88,column:9}},33:{start:{line:86,column:10},end:{line:86,column:44}},34:{start:{line:87,column:10},end:{line:87,column:23}},35:{start:{line:90,column:37},end:{line:90,column:80}},36:{start:{line:91,column:30},end:{line:93,column:9}},37:{start:{line:94,column:8},end:{line:96,column:9}},38:{start:{line:95,column:10},end:{line:95,column:23}},39:{start:{line:98,column:25},end:{line:101,column:9}},40:{start:{line:102,column:8},end:{line:113,column:9}},41:{start:{line:103,column:10},end:{line:103,column:42}},42:{start:{line:105,column:33},end:{line:105,column:55}},43:{start:{line:106,column:10},end:{line:112,column:11}},44:{start:{line:107,column:12},end:{line:109,column:13}},45:{start:{line:108,column:25},end:{line:108,column:45}},46:{start:{line:111,column:12},end:{line:111,column:80}},47:{start:{line:111,column:70},end:{line:111,column:79}},48:{start:{line:116,column:8},end:{line:124,column:9}},49:{start:{line:117,column:10},end:{line:123,column:11}},50:{start:{line:118,column:12},end:{line:118,column:79}},51:{start:{line:120,column:12},end:{line:122,column:13}},52:{start:{line:121,column:14},end:{line:121,column:46}},53:{start:{line:126,column:8},end:{line:130,column:10}},54:{start:{line:131,column:8},end:{line:131,column:21}},55:{start:{line:136,column:21},end:{line:136,column:57}},56:{start:{line:137,column:4},end:{line:140,column:5}},57:{start:{line:139,column:40},end:{line:139,column:67}},58:{start:{line:143,column:16},end:{line:215,column:3}},59:{start:{line:144,column:25},end:{line:144,column:27}},60:{start:{line:145,column:25},end:{line:148,column:5}},61:{start:{line:147,column:19},end:{line:147,column:42}},62:{start:{line:149,column:4},end:{line:213,column:5}},63:{start:{line:150,column:6},end:{line:158,column:7}},64:{start:{line:151,column:8},end:{line:156,column:9}},65:{start:{line:152,column:10},end:{line:155,column:12}},66:{start:{line:157,column:8},end:{line:157,column:16}},67:{start:{line:159,column:27},end:{line:162,column:7}},68:{start:{line:161,column:21},end:{line:161,column:44}},69:{start:{line:163,column:6},end:{line:212,column:7}},70:{start:{line:164,column:8},end:{line:211,column:9}},71:{start:{line:165,column:27},end:{line:165,column:64}},72:{start:{line:166,column:10},end:{line:180,column:11}},73:{start:{line:167,column:27},end:{line:169,column:34}},74:{start:{line:170,column:29},end:{line:170,column:59}},75:{start:{line:171,column:12},end:{line:179,column:13}},76:{start:{line:173,column:16},end:{line:175,column:17}},77:{start:{line:174,column:28},end:{line:174,column:37}},78:{start:{line:176,column:16},end:{line:176,column:29}},79:{start:{line:182,column:24},end:{line:182,column:62}},80:{start:{line:183,column:10},end:{line:191,column:11}},81:{start:{line:184,column:12},end:{line:189,column:14}},82:{start:{line:190,column:12},end:{line:190,column:20}},83:{start:{line:192,column:10},end:{line:210,column:11}},84:{start:{line:193,column:12},end:{line:199,column:13}},85:{start:{line:193,column:38},end:{line:193,column:68}},86:{start:{line:194,column:14},end:{line:197,column:16}},87:{start:{line:198,column:14},end:{line:198,column:22}},88:{start:{line:201,column:12},end:{line:209,column:13}},89:{start:{line:202,column:14},end:{line:208,column:15}},90:{start:{line:202,column:40},end:{line:202,column:54}},91:{start:{line:203,column:16},end:{line:206,column:18}},92:{start:{line:207,column:16},end:{line:207,column:24}},93:{start:{line:214,column:4},end:{line:214,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:33},end:{line:31,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:16},end:{line:58,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:40,column:37},end:{line:40,column:38}},loc:{start:{line:40,column:51},end:{line:47,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:35},end:{line:46,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:28},end:{line:50,column:29}},loc:{start:{line:50,column:42},end:{line:52,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:55,column:28},end:{line:55,column:29}},loc:{start:{line:55,column:42},end:{line:57,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:60,column:14},end:{line:60,column:15}},loc:{start:{line:60,column:36},end:{line:141,column:3}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:31},end:{line:132,column:7}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:70,column:59},end:{line:70,column:60}},loc:{start:{line:70,column:77},end:{line:72,column:9}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:108,column:14},end:{line:108,column:15}},loc:{start:{line:108,column:25},end:{line:108,column:45}},line:108},11:{name:"(anonymous_11)",decl:{start:{line:111,column:52},end:{line:111,column:53}},loc:{start:{line:111,column:70},end:{line:111,column:79}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:120,column:56},end:{line:120,column:57}},loc:{start:{line:121,column:14},end:{line:121,column:46}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:139,column:30},end:{line:139,column:31}},loc:{start:{line:139,column:40},end:{line:139,column:67}},line:139},14:{name:"(anonymous_14)",decl:{start:{line:143,column:16},end:{line:143,column:17}},loc:{start:{line:143,column:40},end:{line:215,column:3}},line:143},15:{name:"(anonymous_15)",decl:{start:{line:147,column:6},end:{line:147,column:7}},loc:{start:{line:147,column:19},end:{line:147,column:42}},line:147},16:{name:"(anonymous_16)",decl:{start:{line:161,column:8},end:{line:161,column:9}},loc:{start:{line:161,column:21},end:{line:161,column:44}},line:161},17:{name:"(anonymous_17)",decl:{start:{line:172,column:14},end:{line:172,column:15}},loc:{start:{line:172,column:38},end:{line:177,column:15}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:174,column:18},end:{line:174,column:19}},loc:{start:{line:174,column:28},end:{line:174,column:37}},line:174},19:{name:"(anonymous_19)",decl:{start:{line:193,column:28},end:{line:193,column:29}},loc:{start:{line:193,column:38},end:{line:193,column:68}},line:193},20:{name:"(anonymous_20)",decl:{start:{line:202,column:30},end:{line:202,column:31}},loc:{start:{line:202,column:40},end:{line:202,column:54}},line:202}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:66,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:66,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:68,column:17},end:{line:68,column:43}},type:"binary-expr",locations:[{start:{line:68,column:17},end:{line:68,column:22}},{start:{line:68,column:26},end:{line:68,column:43}}],line:68},2:{loc:{start:{line:71,column:17},end:{line:71,column:43}},type:"binary-expr",locations:[{start:{line:71,column:17},end:{line:71,column:22}},{start:{line:71,column:26},end:{line:71,column:43}}],line:71},3:{loc:{start:{line:73,column:8},end:{line:75,column:9}},type:"if",locations:[{start:{line:73,column:8},end:{line:75,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},4:{loc:{start:{line:73,column:12},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:73,column:12},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:34}}],line:73},5:{loc:{start:{line:77,column:23},end:{line:77,column:43}},type:"binary-expr",locations:[{start:{line:77,column:23},end:{line:77,column:31}},{start:{line:77,column:35},end:{line:77,column:43}}],line:77},6:{loc:{start:{line:85,column:8},end:{line:88,column:9}},type:"if",locations:[{start:{line:85,column:8},end:{line:88,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},7:{loc:{start:{line:92,column:10},end:{line:92,column:42}},type:"cond-expr",locations:[{start:{line:92,column:33},end:{line:92,column:36}},{start:{line:92,column:39},end:{line:92,column:42}}],line:92},8:{loc:{start:{line:94,column:8},end:{line:96,column:9}},type:"if",locations:[{start:{line:94,column:8},end:{line:96,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:94},9:{loc:{start:{line:102,column:8},end:{line:113,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:113,column:9}},{start:{line:104,column:15},end:{line:113,column:9}}],line:102},10:{loc:{start:{line:106,column:10},end:{line:112,column:11}},type:"if",locations:[{start:{line:106,column:10},end:{line:112,column:11}},{start:{line:110,column:17},end:{line:112,column:11}}],line:106},11:{loc:{start:{line:117,column:10},end:{line:123,column:11}},type:"if",locations:[{start:{line:117,column:10},end:{line:123,column:11}},{start:{line:119,column:17},end:{line:123,column:11}}],line:117},12:{loc:{start:{line:150,column:6},end:{line:158,column:7}},type:"if",locations:[{start:{line:150,column:6},end:{line:158,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},13:{loc:{start:{line:165,column:27},end:{line:165,column:64}},type:"cond-expr",locations:[{start:{line:165,column:51},end:{line:165,column:56}},{start:{line:165,column:59},end:{line:165,column:64}}],line:165},14:{loc:{start:{line:166,column:10},end:{line:180,column:11}},type:"if",locations:[{start:{line:166,column:10},end:{line:180,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},15:{loc:{start:{line:167,column:27},end:{line:169,column:34}},type:"cond-expr",locations:[{start:{line:168,column:16},end:{line:168,column:35}},{start:{line:169,column:16},end:{line:169,column:34}}],line:167},16:{loc:{start:{line:183,column:10},end:{line:191,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:191,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},17:{loc:{start:{line:187,column:16},end:{line:187,column:57}},type:"cond-expr",locations:[{start:{line:187,column:37},end:{line:187,column:45}},{start:{line:187,column:48},end:{line:187,column:57}}],line:187},18:{loc:{start:{line:192,column:10},end:{line:210,column:11}},type:"if",locations:[{start:{line:192,column:10},end:{line:210,column:11}},{start:{line:200,column:17},end:{line:210,column:11}}],line:192},19:{loc:{start:{line:193,column:12},end:{line:199,column:13}},type:"if",locations:[{start:{line:193,column:12},end:{line:199,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:193},20:{loc:{start:{line:202,column:14},end:{line:208,column:15}},type:"if",locations:[{start:{line:202,column:14},end:{line:208,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:202}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7eab98b5dd0e78016006757b92a6afbca1bd2244"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Qt=function(){return o},o}Qt(),Qt().s[0]++;var ei=function(e){Qt().f[0]++;var n=(Qt().s[1]++,"(^|[{\\(\\s])"),t=(Qt().s[2]++,"((\\s.+)|(\\(.+\\)))");return Qt().s[3]++,new RegExp("".concat(n).concat(e).concat(t))},ni=(Qt().s[4]++,/\{/),ti=(Qt().s[5]++,/['"],\s?['"]/),ii=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"checkText",(Qt().s[17]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,i,l,s,o=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Qt().f[6]++,Qt().s[18]++,t=n.split("\n").reduce((function(e,n,t){if(Qt().f[7]++,Qt().s[19]++,n=n.trim(),Qt().s[20]++,n.match(/^#/))return Qt().b[0][0]++,Qt().s[21]++,e;Qt().b[0][1]++;var i=(Qt().s[22]++,o.cmdKeywordExpressions.reduce((function(e,t){return Qt().f[8]++,Qt().s[23]++,Qt().b[1][0]++,e||(Qt().b[1][1]++,n.match(t))}),null)),l=(Qt().s[24]++,o.tlmKeywordExpressions.reduce((function(e,t){return Qt().f[9]++,Qt().s[25]++,Qt().b[2][0]++,e||(Qt().b[2][1]++,n.match(t))}),null));if(Qt().s[26]++,Qt().b[4][0]++,!i&&(Qt().b[4][1]++,!l))return Qt().b[3][0]++,Qt().s[27]++,e;Qt().b[3][1]++;var s=(Qt().s[28]++,Qt().b[5][0]++,i||(Qt().b[5][1]++,l)),a=(Qt().s[29]++,s.length);Qt().s[30]++,s=s[a-1];var r=(Qt().s[31]++,s.substring(s.match(/[\(\s)]/).index+1).replace(/\)+.*$/,""));if(Qt().s[32]++,r.match(ni))return Qt().b[6][0]++,Qt().s[33]++,e.linesToSkip.push(t+1),Qt().s[34]++,e;Qt().b[6][1]++;var c=(Qt().s[35]++,!!r.match(ti)),u=(Qt().s[36]++,r.split(c?(Qt().b[7][0]++,","):(Qt().b[7][1]++," ")));if(Qt().s[37]++,u.length<2)return Qt().b[8][0]++,Qt().s[38]++,e;Qt().b[8][1]++;var d=(Qt().s[39]++,{target:u[0],packet:u[1]});if(Qt().s[40]++,l)Qt().b[9][0]++,Qt().s[41]++,d.item=u[2];else{Qt().b[9][1]++;var m=(Qt().s[42]++,u.slice(2));Qt().s[43]++,c?(Qt().b[10][0]++,Qt().s[44]++,d.params=m.map((function(e){return Qt().f[10]++,Qt().s[45]++,e.split("=>")[0]}))):(Qt().b[10][1]++,Qt().s[46]++,d.params=m.filter((function(e,n){return Qt().f[11]++,Qt().s[47]++,n%2})))}for(var A in Qt().s[48]++,d)Qt().s[49]++,"string"===typeof d[A]?(Qt().b[11][0]++,Qt().s[50]++,d[A]=d[A].replace(/['"]/g,"").trim()):(Qt().b[11][1]++,Qt().s[51]++,d[A]=d[A].map((function(e){return Qt().f[12]++,Qt().s[52]++,e.replace(/['"]/g,"").trim()})));return Qt().s[53]++,e.linesToCheck.push({line:n,mnemonic:d,lineNumber:t+1}),Qt().s[54]++,e}),{linesToCheck:[],linesToSkip:[]}),i=t.linesToCheck,l=t.linesToSkip,Qt().s[55]++,e.next=5,this._checkLines(i);case 5:return s=e.sent,Qt().s[56]++,e.abrupt("return",{skipped:l.sort(),problems:s.sort((function(e,n){return Qt().f[13]++,Qt().s[57]++,e.lineNumber-n.lineNumber}))});case 8:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}())),(0,Et.Z)(this,"_checkLines",(Qt().s[58]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t){var i,l,s,c,u,d,m,A,p,h,f,v;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Qt().f[14]++,Qt().s[59]++,i=[],Qt().s[60]++,l=Ut(t,(function(e){return Qt().f[15]++,Qt().s[61]++,e.mnemonic.target})),Qt().s[62]++,e.t0=(0,r.Z)().keys(l);case 5:if((e.t1=e.t0()).done){e.next=47;break}if(s=e.t1.value,Qt().s[63]++,n.targets[s]){e.next=17;break}Qt().b[12][0]++,Qt().s[64]++,c=(0,a.Z)(l[s]);try{for(c.s();!(u=c.n()).done;)d=u.value,Qt().s[65]++,i.push((0,o.Z)((0,o.Z)({},d),{},{error:'Target "'.concat(s,'" does not exist.')}))}catch(g){c.e(g)}finally{c.f()}return Qt().s[66]++,e.abrupt("continue",5);case 17:Qt().b[12][1]++;case 18:Qt().s[67]++,m=Ut(l[s],(function(e){return Qt().f[16]++,Qt().s[68]++,e.mnemonic.packet})),Qt().s[69]++,e.t2=(0,r.Z)().keys(m);case 21:if((e.t3=e.t2()).done){e.next=45;break}A=e.t3.value,Qt().s[70]++,p=(0,a.Z)(m[A]),e.prev=25,f=(0,r.Z)().mark((function e(){var t,l,c,u,d,m,p,f;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=h.value,Qt().s[71]++,l=t.mnemonic.item?(Qt().b[13][0]++,"tlm"):(Qt().b[13][1]++,"cmd"),Qt().s[72]++,n.targets[s][l]){e.next=14;break}return Qt().b[14][0]++,Qt().s[73]++,c=t.mnemonic.item?(Qt().b[15][0]++,"get_all_telemetry"):(Qt().b[15][1]++,"get_all_commands"),Qt().s[74]++,e.next=9,n.api[c](s);case 9:u=e.sent,Qt().s[75]++,n.targets[s][l]=u.reduce((function(e,n){return Qt().f[17]++,Qt().s[76]++,e[n.packet_name]=n.items.map((function(e){return Qt().f[18]++,Qt().s[77]++,e.name})),Qt().s[78]++,e}),{}),e.next=15;break;case 14:Qt().b[14][1]++;case 15:if(Qt().s[79]++,d=n.targets[s][l][A],Qt().s[80]++,d){e.next=25;break}return Qt().b[16][0]++,Qt().s[81]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:"".concat("tlm"===l?(Qt().b[17][0]++,"Packet"):(Qt().b[17][1]++,"Command"),' "').concat(s," ").concat(A,'" does not exist.')})),Qt().s[82]++,e.abrupt("return",0);case 25:Qt().b[16][1]++;case 26:if(Qt().s[83]++,!t.mnemonic.item){e.next=41;break}if(Qt().b[18][0]++,Qt().s[84]++,d.some((function(e){return Qt().f[19]++,Qt().s[85]++,e===t.mnemonic.item}))){e.next=38;break}return Qt().b[19][0]++,Qt().s[86]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Item "'.concat(s," ").concat(A," ").concat(t.mnemonic.item,'" does not exist.')})),Qt().s[87]++,e.abrupt("return",0);case 38:Qt().b[19][1]++;case 39:e.next=61;break;case 41:Qt().b[18][1]++,Qt().s[88]++,m=(0,a.Z)(t.mnemonic.params),e.prev=44,f=(0,r.Z)().mark((function e(){var n;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=p.value,Qt().s[89]++,d.some((function(e){return Qt().f[20]++,Qt().s[90]++,e===n}))){e.next=10;break}return Qt().b[20][0]++,Qt().s[91]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Command "'.concat(s," ").concat(A,'" param "').concat(n,'" does not exist.')})),Qt().s[92]++,e.abrupt("return",1);case 10:Qt().b[20][1]++;case 11:case"end":return e.stop()}}),e)})),m.s();case 47:if((p=m.n()).done){e.next=53;break}return e.delegateYield(f(),"t0",49);case 49:if(!e.t0){e.next=51;break}return e.abrupt("continue",51);case 51:e.next=47;break;case 53:e.next=58;break;case 55:e.prev=55,e.t1=e["catch"](44),m.e(e.t1);case 58:return e.prev=58,m.f(),e.finish(58);case 61:case"end":return e.stop()}}),e,null,[[44,55,58,61]])})),p.s();case 28:if((h=p.n()).done){e.next=35;break}return e.delegateYield(f(),"t4",30);case 30:if(v=e.t4,0!==v){e.next=33;break}return e.abrupt("continue",33);case 33:e.next=28;break;case 35:e.next=40;break;case 37:e.prev=37,e.t5=e["catch"](25),p.e(e.t5);case 40:return e.prev=40,p.f(),e.finish(40);case 43:e.next=21;break;case 45:e.next=5;break;case 47:return Qt().s[93]++,e.abrupt("return",i);case 49:case"end":return e.stop()}}),e,null,[[25,37,40,43]])})));return function(n){return e.apply(this,arguments)}}())),Qt().f[1]++,Qt().s[6]++,this.api=new V.k,Qt().s[7]++,this.targets={},Qt().s[8]++,this.api.get_target_names().then((function(e){Qt().f[2]++,Qt().s[9]++,e.forEach((function(e){Qt().f[3]++,Qt().s[10]++,n.targets[e]={cmd:null,tlm:null}}))})),Qt().s[11]++,this.cmdKeywordExpressions=[],Qt().s[12]++,Wt("cmd").then((function(e){Qt().f[4]++,Qt().s[13]++,n.cmdKeywordExpressions=e.data.map(ei)})),Qt().s[14]++,this.tlmKeywordExpressions=[],Qt().s[15]++,Wt("tlm").then((function(e){Qt().f[5]++,Qt().s[16]++,n.tlmKeywordExpressions=e.data.map(ei)}))}));function li(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",n="239637faebd5a12da0d2967088a12522b53174c2",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"239637faebd5a12da0d2967088a12522b53174c2"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return li=function(){return o},o}li();var si=t(22124),oi=t(72645),ai=t(82842);t(52356);function ri(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",n="ebd29b6b4771be71b0b3e8465d6a5e919396ec6e",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:31,column:4},end:{line:31,column:71}},1:{start:{line:32,column:4},end:{line:32,column:25}},2:{start:{line:33,column:4},end:{line:33,column:27}},3:{start:{line:34,column:4},end:{line:34,column:21}},4:{start:{line:35,column:4},end:{line:35,column:21}},5:{start:{line:39,column:12},end:{line:49,column:3}},6:{start:{line:40,column:20},end:{line:40,column:40}},7:{start:{line:41,column:4},end:{line:41,column:39}},8:{start:{line:42,column:18},end:{line:47,column:5}},9:{start:{line:48,column:4},end:{line:48,column:33}},10:{start:{line:52,column:13},end:{line:87,column:3}},11:{start:{line:53,column:4},end:{line:71,column:5}},12:{start:{line:55,column:6},end:{line:70,column:7}},13:{start:{line:57,column:10},end:{line:61,column:11}},14:{start:{line:62,column:10},end:{line:62,column:15}},15:{start:{line:64,column:10},end:{line:68,column:11}},16:{start:{line:69,column:10},end:{line:69,column:15}},17:{start:{line:72,column:4},end:{line:86,column:5}},18:{start:{line:72,column:19},end:{line:72,column:35}},19:{start:{line:73,column:19},end:{line:73,column:71}},20:{start:{line:74,column:6},end:{line:85,column:7}},21:{start:{line:75,column:8},end:{line:75,column:37}},22:{start:{line:76,column:8},end:{line:82,column:10}},23:{start:{line:83,column:13},end:{line:85,column:7}},24:{start:{line:84,column:8},end:{line:84,column:51}},25:{start:{line:89,column:19},end:{line:92,column:3}},26:{start:{line:90,column:4},end:{line:90,column:61}},27:{start:{line:91,column:4},end:{line:91,column:72}},28:{start:{line:94,column:29},end:{line:103,column:3}},29:{start:{line:95,column:4},end:{line:102,column:5}},30:{start:{line:100,column:12},end:{line:100,column:70}},31:{start:{line:105,column:22},end:{line:114,column:3}},32:{start:{line:106,column:4},end:{line:113,column:5}},33:{start:{line:108,column:8},end:{line:110,column:9}},34:{start:{line:109,column:10},end:{line:109,column:33}},35:{start:{line:111,column:8},end:{line:111,column:25}},36:{start:{line:116,column:26},end:{line:122,column:3}},37:{start:{line:117,column:4},end:{line:121,column:5}},38:{start:{line:120,column:32},end:{line:120,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:47},end:{line:36,column:3}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:18},end:{line:49,column:3}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:52,column:13},end:{line:52,column:14}},loc:{start:{line:52,column:34},end:{line:87,column:3}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:89,column:19},end:{line:89,column:20}},loc:{start:{line:89,column:47},end:{line:92,column:3}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:94,column:29},end:{line:94,column:30}},loc:{start:{line:94,column:47},end:{line:103,column:3}},line:94},5:{name:"(anonymous_5)",decl:{start:{line:99,column:10},end:{line:99,column:11}},loc:{start:{line:100,column:12},end:{line:100,column:70}},line:100},6:{name:"(anonymous_6)",decl:{start:{line:105,column:22},end:{line:105,column:23}},loc:{start:{line:105,column:47},end:{line:114,column:3}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:107,column:35},end:{line:107,column:36}},loc:{start:{line:107,column:51},end:{line:112,column:7}},line:107},8:{name:"(anonymous_8)",decl:{start:{line:116,column:26},end:{line:116,column:27}},loc:{start:{line:116,column:39},end:{line:122,column:3}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:120,column:16},end:{line:120,column:17}},loc:{start:{line:120,column:32},end:{line:120,column:64}},line:120}},branchMap:{0:{loc:{start:{line:53,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},1:{loc:{start:{line:55,column:6},end:{line:70,column:7}},type:"switch",locations:[{start:{line:56,column:8},end:{line:62,column:15}},{start:{line:63,column:8},end:{line:69,column:15}}],line:55},2:{loc:{start:{line:74,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:85,column:7}},{start:{line:83,column:13},end:{line:85,column:7}}],line:74},3:{loc:{start:{line:75,column:8},end:{line:75,column:37}},type:"binary-expr",locations:[{start:{line:75,column:8},end:{line:75,column:20}},{start:{line:75,column:25},end:{line:75,column:36}}],line:75},4:{loc:{start:{line:83,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:85,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},5:{loc:{start:{line:100,column:12},end:{line:100,column:70}},type:"binary-expr",locations:[{start:{line:100,column:12},end:{line:100,column:44}},{start:{line:100,column:48},end:{line:100,column:70}}],line:100},6:{loc:{start:{line:108,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:110,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebd29b6b4771be71b0b3e8465d6a5e919396ec6e"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ri=function(){return o},o}ri();var ci=new WeakMap,ui=new WeakMap,di=new WeakMap,mi=new WeakMap,Ai=new WeakMap,pi=new WeakMap,hi=new WeakMap,fi=new WeakMap,vi=new WeakMap,gi=(0,St.Z)((function e(n,t){var i=this,l=t.pattern,s=t.text,o=t.type;(0,Mt.Z)(this,e),(0,si.Z)(this,ci,{writable:!0,value:void 0}),(0,si.Z)(this,ui,{writable:!0,value:void 0}),(0,si.Z)(this,di,{writable:!0,value:void 0}),(0,si.Z)(this,mi,{writable:!0,value:void 0}),(0,si.Z)(this,Ai,{writable:!0,value:void 0}),(0,Et.Z)(this,"refresh",(ri().s[5]++,function(){ri().f[1]++;var e=(ri().s[6]++,(0,oi.Z)(i,ui).session);ri().s[7]++,(0,oi.Z)(i,vi).call(i,e);var n=(ri().s[8]++,{lines:e.doc.$lines,action:"insert",start:{row:0},end:{row:e.doc.$lines.length}});ri().s[9]++,i.annotate(n,e)})),(0,Et.Z)(this,"annotate",(ri().s[10]++,function(e,n){if(ri().f[2]++,ri().s[11]++,e.lines.length>1)switch(ri().b[0][0]++,ri().s[12]++,e.action){case"insert":ri().b[1][0]++,ri().s[13]++,(0,oi.Z)(i,fi).call(i,n,e.start.row,e.lines.length-1),ri().s[14]++;break;case"remove":ri().b[1][1]++,ri().s[15]++,(0,oi.Z)(i,fi).call(i,n,e.start.row+1,1-e.lines.length),ri().s[16]++;break}else ri().b[0][1]++;ri().s[17]++;for(var t=(ri().s[18]++,e.start.row);t<=e.end.row;t++){var l,s=(ri().s[19]++,null===(l=n.doc.$lines[t])||void 0===l||null===(l=l.match((0,oi.Z)(i,di)))||void 0===l?void 0:l.index);ri().s[20]++,void 0!==s?(ri().b[2][0]++,ri().s[21]++,ri().b[3][0]++,0!==s&&(ri().b[3][1]++,s+=1),ri().s[22]++,(0,oi.Z)(i,pi).call(i,n,{row:t,column:s,text:(0,oi.Z)(i,mi),type:(0,oi.Z)(i,Ai),openc3Id:(0,oi.Z)(i,ci)})):(ri().b[2][1]++,ri().s[23]++,"remove"===e.action?(ri().b[4][0]++,ri().s[24]++,(0,oi.Z)(i,hi).call(i,n,t)):ri().b[4][1]++)}})),(0,si.Z)(this,pi,{writable:!0,value:(ri().s[25]++,function(e,n){ri().f[3]++,ri().s[26]++,(0,oi.Z)(i,hi).call(i,e,n.row),ri().s[27]++,e.setAnnotations([].concat((0,u.Z)(e.getAnnotations()),[n]))})}),(0,si.Z)(this,hi,{writable:!0,value:(ri().s[28]++,function(e,n){ri().f[4]++,ri().s[29]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[5]++,ri().s[30]++,ri().b[5][0]++,e.openc3Id!==(0,oi.Z)(i,ci)||(ri().b[5][1]++,e.row!==n)})))})}),(0,si.Z)(this,fi,{writable:!0,value:(ri().s[31]++,function(e,n,t){ri().f[6]++,ri().s[32]++,e.setAnnotations(e.getAnnotations().map((function(e){return ri().f[7]++,ri().s[33]++,e.row>n?(ri().b[6][0]++,ri().s[34]++,e.row+=t):ri().b[6][1]++,ri().s[35]++,e})))})}),(0,si.Z)(this,vi,{writable:!0,value:(ri().s[36]++,function(e){ri().f[8]++,ri().s[37]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[9]++,ri().s[38]++,e.openc3Id!==(0,oi.Z)(i,ci)})))})}),ri().f[0]++,ri().s[0]++,(0,ai.Z)(this,ci,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),ri().s[1]++,(0,ai.Z)(this,ui,n),ri().s[2]++,(0,ai.Z)(this,di,l),ri().s[3]++,(0,ai.Z)(this,mi,s),ri().s[4]++,(0,ai.Z)(this,Ai,o)}));function bi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",n="744a728c29aa11b26e0fea7ead3a653b74f7c776",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:27,column:19},end:{line:27,column:31}},1:{start:{line:28,column:20},end:{line:28,column:27}},2:{start:{line:29,column:19},end:{line:29,column:29}},3:{start:{line:30,column:4},end:{line:34,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:22},end:{line:35,column:3}},line:26}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"744a728c29aa11b26e0fea7ead3a653b74f7c776"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return bi=function(){return o},o}bi();var Ci=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(e){(0,Mt.Z)(this,t),bi().f[0]++;var i=(bi().s[0]++,"(^|[{\\s])"),l=(bi().s[1]++,"sleep"),s=(bi().s[2]++,"[\\(\\s]");return bi().s[3]++,n.call(this,e,{pattern:new RegExp("".concat(i).concat(l).concat(s)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,St.Z)(t)}(gi);function _i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",n="5703e005e4cf95b0f782738f96d4e334260835ac",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5703e005e4cf95b0f782738f96d4e334260835ac"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return _i=function(){return o},o}function yi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="a59f1f24ce9680267a5ba92c6c7281425dc7dae1",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:609}},4:{start:{line:1,column:667},end:{line:1,column:688}},5:{start:{line:4,column:71},end:{line:4,column:381}},6:{start:{line:4,column:146},end:{line:4,column:176}},7:{start:{line:4,column:423},end:{line:4,column:635}},8:{start:{line:4,column:498},end:{line:4,column:525}},9:{start:{line:4,column:679},end:{line:4,column:896}},10:{start:{line:4,column:754},end:{line:4,column:783}},11:{start:{line:4,column:1434},end:{line:4,column:1457}},12:{start:{line:7,column:74},end:{line:7,column:591}},13:{start:{line:7,column:249},end:{line:7,column:283}},14:{start:{line:7,column:334},end:{line:7,column:376}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:651},end:{line:1,column:652}},loc:{start:{line:1,column:666},end:{line:1,column:689}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:52},end:{line:4,column:53}},loc:{start:{line:4,column:70},end:{line:4,column:382}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:129},end:{line:4,column:130}},loc:{start:{line:4,column:145},end:{line:4,column:177}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:404},end:{line:4,column:405}},loc:{start:{line:4,column:422},end:{line:4,column:636}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:481},end:{line:4,column:482}},loc:{start:{line:4,column:497},end:{line:4,column:526}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:660},end:{line:4,column:661}},loc:{start:{line:4,column:678},end:{line:4,column:897}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:737},end:{line:4,column:738}},loc:{start:{line:4,column:753},end:{line:4,column:784}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1418},end:{line:4,column:1419}},loc:{start:{line:4,column:1433},end:{line:4,column:1458}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:55},end:{line:7,column:56}},loc:{start:{line:7,column:73},end:{line:7,column:592}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:232},end:{line:7,column:233}},loc:{start:{line:7,column:248},end:{line:7,column:284}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:323},end:{line:7,column:324}},loc:{start:{line:7,column:333},end:{line:7,column:377}},line:7}},branchMap:{0:{loc:{start:{line:7,column:159},end:{line:7,column:218}},type:"binary-expr",locations:[{start:{line:7,column:159},end:{line:7,column:177}},{start:{line:7,column:181},end:{line:7,column:218}}],line:7},1:{loc:{start:{line:7,column:404},end:{line:7,column:512}},type:"cond-expr",locations:[{start:{line:7,column:442},end:{line:7,column:478}},{start:{line:7,column:479},end:{line:7,column:512}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a59f1f24ce9680267a5ba92c6c7281425dc7dae1"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yi=function(){return o},o}_i(),yi(),yi().s[0]++;var wi=function(){yi().f[0]++;var e=(yi().s[1]++,this),n=(yi().s[2]++,e._self._c);return yi().s[3]++,n("div",[n("v-card",{attrs:{flat:""}},[n("v-card-text",{staticClass:"overflow-y-auto",attrs:{"max-height":"400"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Running Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getRunningScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:e.runningSearch,callback:function(n){yi().f[1]++,yi().s[4]++,e.runningSearch=n},expression:"runningSearch"}})],1)])]),n("v-data-table",{attrs:{headers:e.runningHeaders,items:e.runningScripts,search:e.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.connect",fn:function(t){var i=t.item;return yi().f[2]++,yi().s[5]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[3]++,yi().s[6]++,e.connectScript(i)}}},[n("span",[e._v("Connect")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[e._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(t){var i=t.item;return yi().f[4]++,yi().s[7]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[5]++,yi().s[8]++,e.stopScript(i)}}},[n("span",[e._v("Stop")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(t){var i=t.item;return yi().f[6]++,yi().s[9]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[7]++,yi().s[10]++,e.deleteScript(i)}}},[n("span",[e._v("Delete")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),n("v-card",{staticClass:"mt-3",attrs:{flat:""}},[n("v-card-text",[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Completed Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getCompletedScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.completedSearch,callback:function(n){yi().f[8]++,yi().s[11]++,e.completedSearch=n},expression:"completedSearch"}})],1)])]),n("v-container",{staticClass:"overflow-y-auto",staticStyle:{"max-height":"400px",padding:"0px",margin:"0px"}},[n("v-data-table",{attrs:{headers:e.completedHeaders,items:e.completedScripts,search:e.completedSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.download",fn:function(t){var i=t.item;return yi().f[9]++,yi().s[12]++,[n("v-btn",{attrs:{color:"primary",disabled:e.downloadScript,loading:(yi().b[0][0]++,e.downloadScript&&(yi().b[0][1]++,e.downloadScript.name===i.name))},on:{click:function(n){return yi().f[10]++,yi().s[13]++,e.downloadScriptLog(i)}},scopedSlots:e._u([{key:"loader",fn:function(){return yi().f[11]++,yi().s[14]++,[n("span",[e._v("Loading...")])]},proxy:!0}],null,!0)},[i.name.includes("Script Report")?(yi().b[1][0]++,n("span",[e._v("Script Report")])):(yi().b[1][1]++,n("span",[e._v("Script Log")])),n("v-icon",{attrs:{right:""}},[e._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)],1)},xi=(yi().s[15]++,[]);function ki(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="d800ae370cd2f118479305ed2e0fc536992cea80",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:11,column:4},end:{line:50,column:5}},1:{start:{line:53,column:4},end:{line:53,column:28}},2:{start:{line:54,column:4},end:{line:54,column:30}},3:{start:{line:58,column:6},end:{line:60,column:8}},4:{start:{line:59,column:8},end:{line:59,column:43}},5:{start:{line:64,column:6},end:{line:66,column:8}},6:{start:{line:65,column:8},end:{line:65,column:45}},7:{start:{line:69,column:26},end:{line:72,column:7}},8:{start:{line:73,column:6},end:{line:79,column:7}},9:{start:{line:74,column:23},end:{line:74,column:56}},10:{start:{line:75,column:8},end:{line:75,column:35}},11:{start:{line:77,column:8},end:{line:77,column:38}},12:{start:{line:78,column:8},end:{line:78,column:27}},13:{start:{line:82,column:6},end:{line:105,column:10}},14:{start:{line:91,column:10},end:{line:91,column:73}},15:{start:{line:94,column:10},end:{line:96,column:12}},16:{start:{line:97,column:10},end:{line:97,column:34}},17:{start:{line:100,column:10},end:{line:104,column:11}},18:{start:{line:101,column:12},end:{line:103,column:14}},19:{start:{line:108,column:6},end:{line:132,column:10}},20:{start:{line:118,column:10},end:{line:118,column:75}},21:{start:{line:121,column:10},end:{line:123,column:12}},22:{start:{line:124,column:10},end:{line:124,column:34}},23:{start:{line:127,column:10},end:{line:131,column:11}},24:{start:{line:128,column:12},end:{line:130,column:14}},25:{start:{line:135,column:6},end:{line:135,column:34}},26:{start:{line:136,column:6},end:{line:156,column:10}},27:{start:{line:142,column:32},end:{line:142,column:53}},28:{start:{line:143,column:27},end:{line:143,column:66}},29:{start:{line:145,column:23},end:{line:145,column:50}},30:{start:{line:146,column:10},end:{line:146,column:39}},31:{start:{line:147,column:10},end:{line:147,column:49}},32:{start:{line:148,column:10},end:{line:148,column:22}},33:{start:{line:149,column:10},end:{line:149,column:36}},34:{start:{line:152,column:10},end:{line:155,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:51,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:52,column:2},end:{line:52,column:3}},loc:{start:{line:52,column:12},end:{line:55,column:3}},line:52},2:{name:"(anonymous_2)",decl:{start:{line:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:35},end:{line:61,column:5}},line:57},3:{name:"(anonymous_3)",decl:{start:{line:58,column:49},end:{line:58,column:50}},loc:{start:{line:58,column:63},end:{line:60,column:7}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:25},end:{line:62,column:26}},loc:{start:{line:62,column:37},end:{line:67,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:64,column:52},end:{line:64,column:53}},loc:{start:{line:64,column:66},end:{line:66,column:7}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:68,column:19},end:{line:68,column:20}},loc:{start:{line:68,column:37},end:{line:80,column:5}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:81,column:16},end:{line:81,column:17}},loc:{start:{line:81,column:34},end:{line:106,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:90,column:14},end:{line:90,column:15}},loc:{start:{line:90,column:26},end:{line:92,column:9}},line:90},9:{name:"(anonymous_9)",decl:{start:{line:93,column:14},end:{line:93,column:15}},loc:{start:{line:93,column:28},end:{line:98,column:9}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:99,column:15},end:{line:99,column:16}},loc:{start:{line:99,column:26},end:{line:105,column:9}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:107,column:18},end:{line:107,column:19}},loc:{start:{line:107,column:36},end:{line:133,column:5}},line:107},12:{name:"(anonymous_12)",decl:{start:{line:117,column:14},end:{line:117,column:15}},loc:{start:{line:117,column:26},end:{line:119,column:9}},line:117},13:{name:"(anonymous_13)",decl:{start:{line:120,column:14},end:{line:120,column:15}},loc:{start:{line:120,column:28},end:{line:125,column:9}},line:120},14:{name:"(anonymous_14)",decl:{start:{line:126,column:15},end:{line:126,column:16}},loc:{start:{line:126,column:26},end:{line:132,column:9}},line:126},15:{name:"(anonymous_15)",decl:{start:{line:134,column:23},end:{line:134,column:24}},loc:{start:{line:134,column:41},end:{line:157,column:5}},line:134},16:{name:"(anonymous_16)",decl:{start:{line:141,column:14},end:{line:141,column:15}},loc:{start:{line:141,column:28},end:{line:150,column:9}},line:141},17:{name:"(anonymous_17)",decl:{start:{line:151,column:15},end:{line:151,column:16}},loc:{start:{line:151,column:21},end:{line:156,column:9}},line:151}},branchMap:{0:{loc:{start:{line:73,column:6},end:{line:79,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:79,column:7}},{start:{line:76,column:13},end:{line:79,column:7}}],line:73},1:{loc:{start:{line:100,column:10},end:{line:104,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:104,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},2:{loc:{start:{line:127,column:10},end:{line:131,column:11}},type:"if",locations:[{start:{line:127,column:10},end:{line:131,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:127}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["RunningScripts.vue"],names:[],mappings:";AA8IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RunningScripts.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-text class="overflow-y-auto" max-height="400">\n <div class="row">\n <div class="v-card__title col-2">Running Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="runningSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n data-test="running-search"\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.connect="{ item }">\n <v-btn color="primary" @click="connectScript(item)">\n <span>Connect</span>\n <v-icon right v-show="connectInNewTab"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop="{ item }">\n <v-btn color="primary" @click="stopScript(item)">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete="{ item }">\n <v-btn color="primary" @click="deleteScript(item)">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card class="mt-3" flat>\n <v-card-text>\n <div class="row">\n <div class="v-card__title col-2">Completed Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="completedSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </div>\n </div>\n </v-card-text>\n <v-container\n style="max-height: 400px; padding: 0px; margin: 0px"\n class="overflow-y-auto"\n >\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'Script Report\')"\n >Script Report</span\n >\n <span v-else>Script Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-container>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: \'\',\n runningScripts: [],\n runningHeaders: [\n {\n text: \'Connect\',\n value: \'connect\',\n sortable: false,\n filterable: false,\n },\n { text: \'Id\', value: \'id\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start_time\' },\n {\n text: \'Stop\',\n value: \'stop\',\n sortable: false,\n filterable: false,\n },\n {\n text: \'Force Quit\',\n value: \'delete\',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: \'\',\n completedScripts: [],\n completedHeaders: [\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start\' },\n {\n text: \'Download\',\n value: \'download\',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get(\'/script-api/running-script\').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n // TODO: Support pagination because you could have a lot of completed scripts\n Api.get(\'/script-api/completed-scripts\').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n const destination = {\n name: \'ScriptRunner\',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, \'_blank\')\n } else {\n this.$router.push(destination)\n this.$emit(\'close\')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: \'Stop\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n \'Did you try to stop the script first to allow the script to stop gracefully?\',\n {\n okText: \'Force Quit\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/openc3-api/storage/download/${encodeURIComponent(\n script.log\n )}?bucket=OPENC3_LOGS_BUCKET`\n )\n .then((response) => {\n const filenameParts = script.log.split(\'/\')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = response.data.url\n link.setAttribute(\'download\', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d800ae370cd2f118479305ed2e0fc536992cea80"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ki=function(){return o},o}ki();var Si={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return ki().f[0]++,ki().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{text:"Name",value:"name"},{text:"Start Time",value:"start_time"},{text:"Stop",value:"stop",sortable:!1,filterable:!1},{text:"Force Quit",value:"delete",sortable:!1,filterable:!1}],completedSearch:"",completedScripts:[],completedHeaders:[{text:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created:function(){ki().f[1]++,ki().s[1]++,this.getRunningScripts(),ki().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var e=this;ki().f[2]++,ki().s[3]++,p.Z.get("/script-api/running-script").then((function(n){ki().f[3]++,ki().s[4]++,e.runningScripts=n.data}))},getCompletedScripts:function(){var e=this;ki().f[4]++,ki().s[5]++,p.Z.get("/script-api/completed-scripts").then((function(n){ki().f[5]++,ki().s[6]++,e.completedScripts=n.data}))},connectScript:function(e){ki().f[6]++;var n=(ki().s[7]++,{name:"ScriptRunner",params:{id:e.id}});if(ki().s[8]++,this.connectInNewTab){ki().b[0][0]++;var t=(ki().s[9]++,this.$router.resolve(n)),i=t.href;ki().s[10]++,window.open(i,"_blank")}else ki().b[0][1]++,ki().s[11]++,this.$router.push(n),ki().s[12]++,this.$emit("close")},stopScript:function(e){var n=this;ki().f[7]++,ki().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(e.id," ").concat(e.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(n){return ki().f[8]++,ki().s[14]++,p.Z.post("/script-api/running-script/".concat(e.id,"/stop"))})).then((function(t){ki().f[9]++,ki().s[15]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[16]++,n.getRunningScripts()})).catch((function(t){ki().f[10]++,ki().s[17]++,t?(ki().b[1][0]++,ki().s[18]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[1][1]++}))},deleteScript:function(e){var n=this;ki().f[11]++,ki().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(e.id," ").concat(e.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(n){return ki().f[12]++,ki().s[20]++,p.Z.post("/script-api/running-script/".concat(e.id,"/delete"))})).then((function(t){ki().f[13]++,ki().s[21]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[22]++,n.getRunningScripts()})).catch((function(t){ki().f[14]++,ki().s[23]++,t?(ki().b[2][0]++,ki().s[24]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[2][1]++}))},downloadScriptLog:function(e){var n=this;ki().f[15]++,ki().s[25]++,this.downloadScript=e,ki().s[26]++,p.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent(e.log),"?bucket=OPENC3_LOGS_BUCKET")).then((function(t){ki().f[16]++;var i=(ki().s[27]++,e.log.split("/")),l=(ki().s[28]++,i[i.length-1]),s=(ki().s[29]++,document.createElement("a"));ki().s[30]++,s.href=t.data.url,ki().s[31]++,s.setAttribute("download",l),ki().s[32]++,s.click(),ki().s[33]++,n.downloadScript=null})).catch((function(){ki().f[17]++,ki().s[34]++,n.$notify.caution({title:"Unable to download log for ".concat(e.name),body:"You may be able to download this log manually from the 'logs' bucket at ".concat(e.log)})}))}}},Mi=Si,Ei=(0,y.Z)(Mi,wi,xi,!1,null,null,null),Ti=Ei.exports;function Ri(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="2a9c5c33537bf130160b84c4e5bbeb66f7307c2c",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:39,column:20},end:{line:39,column:30}},1:{start:{line:40,column:21},end:{line:40,column:33}},2:{start:{line:41,column:14},end:{line:41,column:21}},3:{start:{line:42,column:11},end:{line:42,column:15}},4:{start:{line:43,column:14},end:{line:43,column:21}},5:{start:{line:44,column:14},end:{line:44,column:21}},6:{start:{line:68,column:4},end:{line:181,column:5}},7:{start:{line:185,column:24},end:{line:185,column:47}},8:{start:{line:186,column:6},end:{line:186,column:39}},9:{start:{line:187,column:6},end:{line:187,column:36}},10:{start:{line:190,column:6},end:{line:192,column:32}},11:{start:{line:195,column:6},end:{line:195,column:67}},12:{start:{line:198,column:6},end:{line:198,column:28}},13:{start:{line:201,column:6},end:{line:201,column:59}},14:{start:{line:201,column:32},end:{line:201,column:59}},15:{start:{line:203,column:6},end:{line:203,column:61}},16:{start:{line:203,column:42},end:{line:203,column:61}},17:{start:{line:204,column:6},end:{line:204,column:59}},18:{start:{line:209,column:6},end:{line:209,column:64}},19:{start:{line:212,column:6},end:{line:414,column:7}},20:{start:{line:221,column:16},end:{line:221,column:30}},21:{start:{line:229,column:16},end:{line:229,column:39}},22:{start:{line:245,column:16},end:{line:245,column:31}},23:{start:{line:256,column:16},end:{line:256,column:31}},24:{start:{line:264,column:16},end:{line:264,column:29}},25:{start:{line:275,column:16},end:{line:275,column:31}},26:{start:{line:286,column:16},end:{line:286,column:29}},27:{start:{line:298,column:16},end:{line:298,column:47}},28:{start:{line:306,column:16},end:{line:306,column:50}},29:{start:{line:318,column:16},end:{line:318,column:39}},30:{start:{line:329,column:16},end:{line:329,column:60}},31:{start:{line:337,column:16},end:{line:337,column:54}},32:{start:{line:338,column:16},end:{line:338,column:35}},33:{start:{line:345,column:16},end:{line:345,column:41}},34:{start:{line:356,column:16},end:{line:356,column:34}},35:{start:{line:364,column:16},end:{line:364,column:37}},36:{start:{line:372,column:16},end:{line:372,column:39}},37:{start:{line:380,column:16},end:{line:380,column:36}},38:{start:{line:390,column:16},end:{line:390,column:34}},39:{start:{line:398,column:16},end:{line:398,column:39}},40:{start:{line:409,column:16},end:{line:409,column:43}},41:{start:{line:417,column:6},end:{line:430,column:7}},42:{start:{line:435,column:6},end:{line:435,column:34}},43:{start:{line:436,column:6},end:{line:438,column:7}},44:{start:{line:437,column:8},end:{line:437,column:36}},45:{start:{line:439,column:6},end:{line:439,column:34}},46:{start:{line:442,column:6},end:{line:442,column:36}},47:{start:{line:443,column:6},end:{line:447,column:7}},48:{start:{line:444,column:8},end:{line:444,column:58}},49:{start:{line:446,column:8},end:{line:446,column:58}},50:{start:{line:452,column:4},end:{line:452,column:30}},51:{start:{line:453,column:4},end:{line:453,column:36}},52:{start:{line:456,column:4},end:{line:456,column:36}},53:{start:{line:457,column:4},end:{line:457,column:43}},54:{start:{line:459,column:4},end:{line:461,column:6}},55:{start:{line:460,column:6},end:{line:460,column:41}},56:{start:{line:464,column:4},end:{line:464,column:45}},57:{start:{line:465,column:4},end:{line:465,column:46}},58:{start:{line:467,column:23},end:{line:488,column:5}},59:{start:{line:489,column:27},end:{line:489,column:63}},60:{start:{line:490,column:29},end:{line:490,column:67}},61:{start:{line:491,column:4},end:{line:491,column:46}},62:{start:{line:492,column:4},end:{line:492,column:50}},63:{start:{line:493,column:4},end:{line:493,column:52}},64:{start:{line:494,column:4},end:{line:494,column:37}},65:{start:{line:495,column:4},end:{line:495,column:44}},66:{start:{line:496,column:4},end:{line:496,column:42}},67:{start:{line:497,column:4},end:{line:497,column:60}},68:{start:{line:498,column:4},end:{line:498,column:59}},69:{start:{line:499,column:4},end:{line:499,column:69}},70:{start:{line:500,column:4},end:{line:500,column:45}},71:{start:{line:501,column:4},end:{line:501,column:23}},72:{start:{line:502,column:4},end:{line:502,column:60}},73:{start:{line:506,column:4},end:{line:506,column:60}},74:{start:{line:508,column:27},end:{line:508,column:58}},75:{start:{line:509,column:4},end:{line:512,column:6}},76:{start:{line:510,column:6},end:{line:510,column:46}},77:{start:{line:511,column:6},end:{line:511,column:45}},78:{start:{line:514,column:4},end:{line:514,column:52}},79:{start:{line:515,column:4},end:{line:515,column:47}},80:{start:{line:516,column:4},end:{line:516,column:58}},81:{start:{line:517,column:4},end:{line:526,column:13}},82:{start:{line:519,column:6},end:{line:525,column:7}},83:{start:{line:524,column:8},end:{line:524,column:35}},84:{start:{line:529,column:4},end:{line:529,column:25}},85:{start:{line:530,column:4},end:{line:530,column:34}},86:{start:{line:533,column:4},end:{line:533,column:21}},87:{start:{line:534,column:4},end:{line:536,column:5}},88:{start:{line:535,column:6},end:{line:535,column:42}},89:{start:{line:537,column:4},end:{line:539,column:5}},90:{start:{line:538,column:6},end:{line:538,column:37}},91:{start:{line:540,column:4},end:{line:540,column:27}},92:{start:{line:543,column:4},end:{line:547,column:5}},93:{start:{line:544,column:6},end:{line:544,column:56}},94:{start:{line:546,column:6},end:{line:546,column:12}},95:{start:{line:551,column:6},end:{line:565,column:8}},96:{start:{line:553,column:8},end:{line:563,column:10}},97:{start:{line:554,column:10},end:{line:562,column:11}},98:{start:{line:564,column:8},end:{line:564,column:38}},99:{start:{line:568,column:16},end:{line:568,column:42}},100:{start:{line:569,column:31},end:{line:571,column:26}},101:{start:{line:573,column:17},end:{line:576,column:27}},102:{start:{line:574,column:23},end:{line:574,column:42}},103:{start:{line:575,column:23},end:{line:575,column:35}},104:{start:{line:577,column:18},end:{line:577,column:63}},105:{start:{line:578,column:33},end:{line:587,column:7}},106:{start:{line:579,column:8},end:{line:579,column:37}},107:{start:{line:581,column:8},end:{line:586,column:9}},108:{start:{line:582,column:10},end:{line:585,column:12}},109:{start:{line:588,column:6},end:{line:588,column:60}},110:{start:{line:590,column:33},end:{line:592,column:28}},111:{start:{line:593,column:28},end:{line:595,column:23}},112:{start:{line:596,column:21},end:{line:596,column:66}},113:{start:{line:597,column:17},end:{line:603,column:7}},114:{start:{line:598,column:8},end:{line:598,column:50}},115:{start:{line:599,column:8},end:{line:599,column:50}},116:{start:{line:600,column:8},end:{line:600,column:47}},117:{start:{line:601,column:8},end:{line:601,column:42}},118:{start:{line:602,column:8},end:{line:602,column:62}},119:{start:{line:604,column:21},end:{line:604,column:54}},120:{start:{line:605,column:6},end:{line:606,column:7}},121:{start:{line:606,column:7},end:{line:608,column:29}},122:{start:{line:607,column:8},end:{line:607,column:36}},123:{start:{line:609,column:6},end:{line:609,column:17}},124:{start:{line:612,column:16},end:{line:612,column:42}},125:{start:{line:613,column:33},end:{line:615,column:28}},126:{start:{line:617,column:17},end:{line:620,column:27}},127:{start:{line:618,column:23},end:{line:618,column:42}},128:{start:{line:619,column:23},end:{line:619,column:35}},129:{start:{line:621,column:18},end:{line:621,column:63}},130:{start:{line:622,column:33},end:{line:631,column:7}},131:{start:{line:623,column:8},end:{line:623,column:39}},132:{start:{line:625,column:8},end:{line:630,column:9}},133:{start:{line:626,column:10},end:{line:629,column:12}},134:{start:{line:632,column:6},end:{line:632,column:62}},135:{start:{line:634,column:33},end:{line:636,column:28}},136:{start:{line:637,column:28},end:{line:639,column:23}},137:{start:{line:640,column:21},end:{line:640,column:70}},138:{start:{line:641,column:17},end:{line:647,column:7}},139:{start:{line:642,column:8},end:{line:642,column:50}},140:{start:{line:643,column:8},end:{line:643,column:50}},141:{start:{line:644,column:8},end:{line:644,column:47}},142:{start:{line:645,column:8},end:{line:645,column:42}},143:{start:{line:646,column:8},end:{line:646,column:62}},144:{start:{line:648,column:23},end:{line:648,column:58}},145:{start:{line:649,column:6},end:{line:650,column:7}},146:{start:{line:650,column:7},end:{line:652,column:29}},147:{start:{line:651,column:8},end:{line:651,column:36}},148:{start:{line:653,column:6},end:{line:653,column:17}},149:{start:{line:658,column:6},end:{line:658,column:39}},150:{start:{line:659,column:6},end:{line:659,column:56}},151:{start:{line:660,column:6},end:{line:660,column:39}},152:{start:{line:661,column:6},end:{line:661,column:34}},153:{start:{line:662,column:6},end:{line:662,column:29}},154:{start:{line:663,column:6},end:{line:672,column:7}},155:{start:{line:673,column:6},end:{line:673,column:55}},156:{start:{line:676,column:6},end:{line:702,column:8}},157:{start:{line:677,column:34},end:{line:679,column:9}},158:{start:{line:678,column:17},end:{line:678,column:38}},159:{start:{line:680,column:8},end:{line:701,column:9}},160:{start:{line:681,column:10},end:{line:681,column:48}},161:{start:{line:682,column:10},end:{line:682,column:30}},162:{start:{line:683,column:10},end:{line:683,column:32}},163:{start:{line:684,column:10},end:{line:684,column:48}},164:{start:{line:685,column:15},end:{line:701,column:9}},165:{start:{line:686,column:10},end:{line:689,column:12}},166:{start:{line:690,column:10},end:{line:690,column:33}},167:{start:{line:692,column:10},end:{line:696,column:11}},168:{start:{line:693,column:12},end:{line:693,column:38}},169:{start:{line:694,column:12},end:{line:694,column:81}},170:{start:{line:695,column:12},end:{line:695,column:33}},171:{start:{line:697,column:10},end:{line:700,column:11}},172:{start:{line:698,column:12},end:{line:698,column:67}},173:{start:{line:699,column:12},end:{line:699,column:29}},174:{start:{line:705,column:6},end:{line:717,column:8}},175:{start:{line:706,column:8},end:{line:710,column:9}},176:{start:{line:707,column:10},end:{line:707,column:39}},177:{start:{line:708,column:10},end:{line:708,column:33}},178:{start:{line:709,column:10},end:{line:709,column:58}},179:{start:{line:711,column:8},end:{line:714,column:9}},180:{start:{line:712,column:10},end:{line:712,column:47}},181:{start:{line:713,column:10},end:{line:713,column:36}},182:{start:{line:716,column:8},end:{line:716,column:65}},183:{start:{line:720,column:6},end:{line:720,column:31}},184:{start:{line:721,column:6},end:{line:721,column:31}},185:{start:{line:722,column:6},end:{line:722,column:38}},186:{start:{line:725,column:20},end:{line:725,column:55}},187:{start:{line:726,column:19},end:{line:728,column:19}},188:{start:{line:729,column:26},end:{line:731,column:34}},189:{start:{line:730,column:25},end:{line:730,column:37}},190:{start:{line:731,column:22},end:{line:731,column:33}},191:{start:{line:732,column:6},end:{line:732,column:41}},192:{start:{line:735,column:19},end:{line:735,column:48}},193:{start:{line:736,column:20},end:{line:736,column:51}},194:{start:{line:737,column:26},end:{line:739,column:44}},195:{start:{line:738,column:25},end:{line:738,column:71}},196:{start:{line:739,column:22},end:{line:739,column:43}},197:{start:{line:740,column:6},end:{line:740,column:41}},198:{start:{line:745,column:8},end:{line:748,column:18}},199:{start:{line:749,column:6},end:{line:764,column:10}},200:{start:{line:756,column:10},end:{line:760,column:12}},201:{start:{line:763,column:10},end:{line:763,column:61}},202:{start:{line:767,column:6},end:{line:767,column:44}},203:{start:{line:771,column:6},end:{line:778,column:7}},204:{start:{line:772,column:20},end:{line:772,column:52}},205:{start:{line:773,column:8},end:{line:777,column:9}},206:{start:{line:774,column:10},end:{line:774,column:52}},207:{start:{line:776,column:10},end:{line:776,column:50}},208:{start:{line:781,column:6},end:{line:783,column:7}},209:{start:{line:782,column:8},end:{line:782,column:14}},210:{start:{line:784,column:27},end:{line:788,column:7}},211:{start:{line:786,column:10},end:{line:787,column:32}},212:{start:{line:789,column:25},end:{line:789,column:27}},213:{start:{line:790,column:19},end:{line:790,column:20}},214:{start:{line:791,column:6},end:{line:802,column:7}},215:{start:{line:793,column:10},end:{line:793,column:42}},216:{start:{line:794,column:10},end:{line:794,column:32}},217:{start:{line:795,column:10},end:{line:795,column:15}},218:{start:{line:797,column:10},end:{line:797,column:43}},219:{start:{line:798,column:10},end:{line:800,column:11}},220:{start:{line:799,column:21},end:{line:799,column:43}},221:{start:{line:801,column:10},end:{line:801,column:15}},222:{start:{line:803,column:6},end:{line:808,column:8}},223:{start:{line:804,column:8},end:{line:804,column:36}},224:{start:{line:805,column:8},end:{line:807,column:9}},225:{start:{line:806,column:10},end:{line:806,column:45}},226:{start:{line:811,column:6},end:{line:814,column:33}},227:{start:{line:813,column:34},end:{line:813,column:51}},228:{start:{line:817,column:6},end:{line:817,column:29}},229:{start:{line:818,column:6},end:{line:820,column:8}},230:{start:{line:819,column:8},end:{line:819,column:53}},231:{start:{line:823,column:6},end:{line:833,column:10}},232:{start:{line:829,column:10},end:{line:829,column:65}},233:{start:{line:832,column:10},end:{line:832,column:33}},234:{start:{line:836,column:6},end:{line:840,column:7}},235:{start:{line:837,column:8},end:{line:837,column:40}},236:{start:{line:839,column:8},end:{line:839,column:37}},237:{start:{line:845,column:6},end:{line:858,column:7}},238:{start:{line:849,column:8},end:{line:849,column:30}},239:{start:{line:850,column:8},end:{line:850,column:29}},240:{start:{line:851,column:13},end:{line:858,column:7}},241:{start:{line:856,column:8},end:{line:856,column:30}},242:{start:{line:857,column:8},end:{line:857,column:21}},243:{start:{line:862,column:6},end:{line:864,column:7}},244:{start:{line:863,column:8},end:{line:863,column:14}},245:{start:{line:865,column:6},end:{line:869,column:7}},246:{start:{line:866,column:8},end:{line:866,column:31}},247:{start:{line:868,column:8},end:{line:868,column:30}},248:{start:{line:872,column:6},end:{line:890,column:10}},249:{start:{line:875,column:26},end:{line:875,column:28}},250:{start:{line:876,column:10},end:{line:881,column:11}},251:{start:{line:877,column:32},end:{line:879,column:28}},252:{start:{line:878,column:32},end:{line:878,column:73}},253:{start:{line:880,column:12},end:{line:880,column:107}},254:{start:{line:882,column:10},end:{line:885,column:11}},255:{start:{line:883,column:12},end:{line:884,column:86}},256:{start:{line:886,column:10},end:{line:888,column:11}},257:{start:{line:887,column:12},end:{line:887,column:65}},258:{start:{line:889,column:10},end:{line:889,column:62}},259:{start:{line:893,column:6},end:{line:893,column:37}},260:{start:{line:894,column:6},end:{line:894,column:35}},261:{start:{line:895,column:6},end:{line:895,column:29}},262:{start:{line:896,column:6},end:{line:896,column:38}},263:{start:{line:897,column:6},end:{line:897,column:30}},264:{start:{line:898,column:6},end:{line:898,column:34}},265:{start:{line:899,column:6},end:{line:899,column:31}},266:{start:{line:900,column:6},end:{line:900,column:35}},267:{start:{line:903,column:6},end:{line:903,column:24}},268:{start:{line:904,column:6},end:{line:917,column:10}},269:{start:{line:909,column:32},end:{line:909,column:51}},270:{start:{line:916,column:10},end:{line:916,column:42}},271:{start:{line:920,column:6},end:{line:920,column:38}},272:{start:{line:921,column:6},end:{line:921,column:34}},273:{start:{line:922,column:6},end:{line:922,column:37}},274:{start:{line:924,column:6},end:{line:924,column:47}},275:{start:{line:925,column:6},end:{line:925,column:30}},276:{start:{line:926,column:6},end:{line:926,column:38}},277:{start:{line:927,column:6},end:{line:927,column:30}},278:{start:{line:929,column:6},end:{line:929,column:28}},279:{start:{line:930,column:6},end:{line:930,column:24}},280:{start:{line:931,column:6},end:{line:931,column:26}},281:{start:{line:932,column:6},end:{line:932,column:33}},282:{start:{line:935,column:6},end:{line:935,column:50}},283:{start:{line:936,column:6},end:{line:936,column:36}},284:{start:{line:939,column:6},end:{line:939,column:40}},285:{start:{line:942,column:6},end:{line:942,column:18}},286:{start:{line:948,column:6},end:{line:948,column:28}},287:{start:{line:949,column:6},end:{line:949,column:34}},288:{start:{line:950,column:21},end:{line:950,column:34}},289:{start:{line:951,column:6},end:{line:954,column:7}},290:{start:{line:953,column:8},end:{line:953,column:36}},291:{start:{line:955,column:16},end:{line:955,column:53}},292:{start:{line:956,column:6},end:{line:958,column:7}},293:{start:{line:957,column:8},end:{line:957,column:28}},294:{start:{line:959,column:17},end:{line:961,column:7}},295:{start:{line:962,column:6},end:{line:964,column:7}},296:{start:{line:963,column:8},end:{line:963,column:35}},297:{start:{line:965,column:6},end:{line:971,column:10}},298:{start:{line:967,column:10},end:{line:967,column:41}},299:{start:{line:970,column:10},end:{line:970,column:31}},300:{start:{line:976,column:6},end:{line:976,column:48}},301:{start:{line:977,column:6},end:{line:977,column:48}},302:{start:{line:978,column:6},end:{line:978,column:64}},303:{start:{line:981,column:6},end:{line:986,column:7}},304:{start:{line:982,column:8},end:{line:982,column:69}},305:{start:{line:984,column:8},end:{line:984,column:39}},306:{start:{line:985,column:8},end:{line:985,column:69}},307:{start:{line:992,column:6},end:{line:997,column:7}},308:{start:{line:993,column:8},end:{line:993,column:31}},309:{start:{line:994,column:8},end:{line:994,column:29}},310:{start:{line:996,column:8},end:{line:996,column:68}},311:{start:{line:1e3,column:6},end:{line:1e3,column:66}},312:{start:{line:1003,column:6},end:{line:1003,column:29}},313:{start:{line:1006,column:18},end:{line:1006,column:19}},314:{start:{line:1007,column:6},end:{line:1196,column:7}},315:{start:{line:1009,column:10},end:{line:1009,column:71}},316:{start:{line:1010,column:10},end:{line:1010,column:60}},317:{start:{line:1011,column:10},end:{line:1013,column:11}},318:{start:{line:1012,column:12},end:{line:1012,column:50}},319:{start:{line:1014,column:10},end:{line:1014,column:15}},320:{start:{line:1016,column:10},end:{line:1045,column:11}},321:{start:{line:1017,column:12},end:{line:1044,column:13}},322:{start:{line:1020,column:14},end:{line:1020,column:68}},323:{start:{line:1023,column:14},end:{line:1038,column:18}},324:{start:{line:1027,column:18},end:{line:1030,column:19}},325:{start:{line:1031,column:18},end:{line:1031,column:77}},326:{start:{line:1032,column:18},end:{line:1032,column:56}},327:{start:{line:1033,column:18},end:{line:1033,column:45}},328:{start:{line:1037,column:18},end:{line:1037,column:50}},329:{start:{line:1040,column:14},end:{line:1040,column:69}},330:{start:{line:1041,column:14},end:{line:1041,column:52}},331:{start:{line:1042,column:14},end:{line:1042,column:42}},332:{start:{line:1043,column:14},end:{line:1043,column:50}},333:{start:{line:1046,column:10},end:{line:1046,column:33}},334:{start:{line:1047,column:26},end:{line:1047,column:58}},335:{start:{line:1048,column:10},end:{line:1101,column:11}},336:{start:{line:1050,column:14},end:{line:1050,column:44}},337:{start:{line:1051,column:14},end:{line:1051,column:47}},338:{start:{line:1052,column:14},end:{line:1052,column:39}},339:{start:{line:1053,column:14},end:{line:1053,column:45}},340:{start:{line:1055,column:14},end:{line:1055,column:37}},341:{start:{line:1056,column:14},end:{line:1060,column:15}},342:{start:{line:1061,column:14},end:{line:1061,column:48}},343:{start:{line:1062,column:14},end:{line:1062,column:61}},344:{start:{line:1063,column:14},end:{line:1063,column:19}},345:{start:{line:1065,column:14},end:{line:1065,column:31}},346:{start:{line:1068,column:14},end:{line:1068,column:45}},347:{start:{line:1073,column:14},end:{line:1079,column:15}},348:{start:{line:1074,column:16},end:{line:1074,column:45}},349:{start:{line:1075,column:16},end:{line:1075,column:48}},350:{start:{line:1077,column:16},end:{line:1077,column:46}},351:{start:{line:1078,column:16},end:{line:1078,column:49}},352:{start:{line:1080,column:14},end:{line:1080,column:39}},353:{start:{line:1081,column:29},end:{line:1083,column:15}},354:{start:{line:1082,column:25},end:{line:1082,column:69}},355:{start:{line:1084,column:14},end:{line:1097,column:15}},356:{start:{line:1085,column:16},end:{line:1085,column:39}},357:{start:{line:1086,column:27},end:{line:1086,column:62}},358:{start:{line:1087,column:16},end:{line:1091,column:17}},359:{start:{line:1092,column:16},end:{line:1092,column:42}},360:{start:{line:1094,column:16},end:{line:1096,column:17}},361:{start:{line:1095,column:18},end:{line:1095,column:57}},362:{start:{line:1098,column:14},end:{line:1098,column:19}},363:{start:{line:1100,column:14},end:{line:1100,column:19}},364:{start:{line:1102,column:10},end:{line:1102,column:15}},365:{start:{line:1106,column:10},end:{line:1110,column:11}},366:{start:{line:1107,column:12},end:{line:1109,column:13}},367:{start:{line:1108,column:14},end:{line:1108,column:54}},368:{start:{line:1111,column:10},end:{line:1113,column:11}},369:{start:{line:1112,column:12},end:{line:1112,column:31}},370:{start:{line:1114,column:10},end:{line:1114,column:15}},371:{start:{line:1116,column:10},end:{line:1116,column:33}},372:{start:{line:1117,column:10},end:{line:1117,column:15}},373:{start:{line:1119,column:10},end:{line:1119,column:41}},374:{start:{line:1120,column:10},end:{line:1120,column:34}},375:{start:{line:1121,column:10},end:{line:1121,column:15}},376:{start:{line:1124,column:10},end:{line:1127,column:11}},377:{start:{line:1125,column:12},end:{line:1125,column:35}},378:{start:{line:1126,column:12},end:{line:1126,column:33}},379:{start:{line:1128,column:10},end:{line:1128,column:15}},380:{start:{line:1130,column:10},end:{line:1130,column:31}},381:{start:{line:1131,column:10},end:{line:1131,column:15}},382:{start:{line:1133,column:22},end:{line:1133,column:27}},383:{start:{line:1134,column:27},end:{line:1134,column:29}},384:{start:{line:1135,column:10},end:{line:1145,column:11}},385:{start:{line:1136,column:12},end:{line:1143,column:13}},386:{start:{line:1140,column:14},end:{line:1140,column:33}},387:{start:{line:1141,column:14},end:{line:1141,column:26}},388:{start:{line:1142,column:14},end:{line:1142,column:19}},389:{start:{line:1144,column:12},end:{line:1144,column:22}},390:{start:{line:1146,column:10},end:{line:1146,column:59}},391:{start:{line:1147,column:10},end:{line:1147,column:59}},392:{start:{line:1148,column:10},end:{line:1148,column:62}},393:{start:{line:1149,column:10},end:{line:1153,column:11}},394:{start:{line:1150,column:12},end:{line:1150,column:49}},395:{start:{line:1152,column:12},end:{line:1152,column:44}},396:{start:{line:1154,column:10},end:{line:1158,column:11}},397:{start:{line:1155,column:12},end:{line:1155,column:48}},398:{start:{line:1157,column:12},end:{line:1157,column:43}},399:{start:{line:1159,column:10},end:{line:1159,column:62}},400:{start:{line:1160,column:10},end:{line:1165,column:11}},401:{start:{line:1161,column:12},end:{line:1161,column:57}},402:{start:{line:1162,column:12},end:{line:1162,column:68}},403:{start:{line:1164,column:12},end:{line:1164,column:54}},404:{start:{line:1166,column:10},end:{line:1166,column:15}},405:{start:{line:1168,column:10},end:{line:1177,column:11}},406:{start:{line:1169,column:12},end:{line:1175,column:13}},407:{start:{line:1173,column:14},end:{line:1173,column:43}},408:{start:{line:1174,column:14},end:{line:1174,column:19}},409:{start:{line:1176,column:12},end:{line:1176,column:22}},410:{start:{line:1178,column:10},end:{line:1178,column:15}},411:{start:{line:1180,column:10},end:{line:1180,column:27}},412:{start:{line:1181,column:10},end:{line:1181,column:15}},413:{start:{line:1183,column:23},end:{line:1185,column:12}},414:{start:{line:1187,column:23},end:{line:1187,column:50}},415:{start:{line:1188,column:10},end:{line:1188,column:47}},416:{start:{line:1189,column:10},end:{line:1189,column:54}},417:{start:{line:1190,column:10},end:{line:1190,column:22}},418:{start:{line:1191,column:10},end:{line:1191,column:15}},419:{start:{line:1195,column:10},end:{line:1195,column:15}},420:{start:{line:1199,column:6},end:{line:1199,column:30}},421:{start:{line:1200,column:6},end:{line:1207,column:8}},422:{start:{line:1210,column:6},end:{line:1215,column:7}},423:{start:{line:1211,column:8},end:{line:1211,column:32}},424:{start:{line:1212,column:8},end:{line:1212,column:32}},425:{start:{line:1213,column:8},end:{line:1213,column:29}},426:{start:{line:1214,column:8},end:{line:1214,column:14}},427:{start:{line:1216,column:6},end:{line:1216,column:42}},428:{start:{line:1217,column:6},end:{line:1217,column:38}},429:{start:{line:1218,column:6},end:{line:1218,column:39}},430:{start:{line:1219,column:6},end:{line:1219,column:34}},431:{start:{line:1220,column:6},end:{line:1220,column:31}},432:{start:{line:1221,column:6},end:{line:1221,column:30}},433:{start:{line:1222,column:6},end:{line:1222,column:30}},434:{start:{line:1223,column:6},end:{line:1223,column:33}},435:{start:{line:1224,column:6},end:{line:1359,column:7}},436:{start:{line:1228,column:10},end:{line:1228,column:33}},437:{start:{line:1229,column:10},end:{line:1229,column:40}},438:{start:{line:1230,column:10},end:{line:1230,column:35}},439:{start:{line:1231,column:10},end:{line:1231,column:42}},440:{start:{line:1233,column:10},end:{line:1238,column:11}},441:{start:{line:1234,column:12},end:{line:1234,column:54}},442:{start:{line:1235,column:17},end:{line:1238,column:11}},443:{start:{line:1237,column:12},end:{line:1237,column:43}},444:{start:{line:1240,column:10},end:{line:1242,column:11}},445:{start:{line:1241,column:12},end:{line:1241,column:36}},446:{start:{line:1243,column:10},end:{line:1262,column:11}},447:{start:{line:1244,column:12},end:{line:1244,column:33}},448:{start:{line:1245,column:12},end:{line:1261,column:13}},449:{start:{line:1246,column:14},end:{line:1252,column:16}},450:{start:{line:1254,column:14},end:{line:1260,column:16}},451:{start:{line:1263,column:10},end:{line:1263,column:30}},452:{start:{line:1264,column:10},end:{line:1264,column:15}},453:{start:{line:1266,column:10},end:{line:1266,column:49}},454:{start:{line:1267,column:10},end:{line:1267,column:97}},455:{start:{line:1268,column:10},end:{line:1270,column:11}},456:{start:{line:1269,column:12},end:{line:1269,column:53}},457:{start:{line:1271,column:10},end:{line:1271,column:40}},458:{start:{line:1272,column:10},end:{line:1272,column:63}},459:{start:{line:1273,column:10},end:{line:1273,column:58}},460:{start:{line:1274,column:10},end:{line:1274,column:33}},461:{start:{line:1275,column:10},end:{line:1275,column:15}},462:{start:{line:1277,column:10},end:{line:1279,column:11}},463:{start:{line:1278,column:12},end:{line:1278,column:58}},464:{start:{line:1280,column:10},end:{line:1282,column:11}},465:{start:{line:1281,column:12},end:{line:1281,column:53}},466:{start:{line:1283,column:10},end:{line:1283,column:44}},467:{start:{line:1284,column:10},end:{line:1284,column:61}},468:{start:{line:1285,column:10},end:{line:1285,column:58}},469:{start:{line:1286,column:10},end:{line:1286,column:33}},470:{start:{line:1287,column:10},end:{line:1287,column:15}},471:{start:{line:1289,column:10},end:{line:1291,column:11}},472:{start:{line:1290,column:12},end:{line:1290,column:58}},473:{start:{line:1292,column:10},end:{line:1294,column:11}},474:{start:{line:1293,column:12},end:{line:1293,column:53}},475:{start:{line:1295,column:10},end:{line:1297,column:11}},476:{start:{line:1296,column:12},end:{line:1296,column:39}},477:{start:{line:1298,column:10},end:{line:1298,column:44}},478:{start:{line:1299,column:10},end:{line:1301,column:12}},479:{start:{line:1300,column:12},end:{line:1300,column:59}},480:{start:{line:1302,column:10},end:{line:1302,column:38}},481:{start:{line:1303,column:10},end:{line:1303,column:58}},482:{start:{line:1304,column:10},end:{line:1304,column:33}},483:{start:{line:1305,column:10},end:{line:1305,column:15}},484:{start:{line:1308,column:10},end:{line:1310,column:11}},485:{start:{line:1309,column:12},end:{line:1309,column:58}},486:{start:{line:1311,column:10},end:{line:1313,column:11}},487:{start:{line:1312,column:12},end:{line:1312,column:53}},488:{start:{line:1314,column:10},end:{line:1314,column:44}},489:{start:{line:1315,column:10},end:{line:1317,column:12}},490:{start:{line:1316,column:12},end:{line:1316,column:59}},491:{start:{line:1318,column:10},end:{line:1320,column:11}},492:{start:{line:1319,column:12},end:{line:1319,column:43}},493:{start:{line:1321,column:10},end:{line:1321,column:58}},494:{start:{line:1322,column:10},end:{line:1322,column:33}},495:{start:{line:1323,column:10},end:{line:1323,column:15}},496:{start:{line:1325,column:10},end:{line:1325,column:47}},497:{start:{line:1326,column:10},end:{line:1326,column:43}},498:{start:{line:1327,column:10},end:{line:1327,column:38}},499:{start:{line:1328,column:10},end:{line:1328,column:15}},500:{start:{line:1330,column:10},end:{line:1339,column:11}},501:{start:{line:1331,column:12},end:{line:1331,column:43}},502:{start:{line:1332,column:12},end:{line:1338,column:14}},503:{start:{line:1340,column:10},end:{line:1340,column:29}},504:{start:{line:1341,column:10},end:{line:1341,column:15}},505:{start:{line:1344,column:10},end:{line:1344,column:40}},506:{start:{line:1345,column:10},end:{line:1345,column:42}},507:{start:{line:1346,column:10},end:{line:1348,column:11}},508:{start:{line:1347,column:12},end:{line:1347,column:49}},509:{start:{line:1349,column:10},end:{line:1351,column:11}},510:{start:{line:1350,column:12},end:{line:1350,column:37}},511:{start:{line:1352,column:10},end:{line:1352,column:31}},512:{start:{line:1353,column:10},end:{line:1353,column:15}},513:{start:{line:1358,column:10},end:{line:1358,column:15}},514:{start:{line:1362,column:6},end:{line:1362,column:28}},515:{start:{line:1365,column:22},end:{line:1365,column:30}},516:{start:{line:1366,column:6},end:{line:1383,column:7}},517:{start:{line:1367,column:8},end:{line:1367,column:22}},518:{start:{line:1368,column:8},end:{line:1382,column:10}},519:{start:{line:1369,column:10},end:{line:1369,column:35}},520:{start:{line:1371,column:45},end:{line:1375,column:11}},521:{start:{line:1378,column:27},end:{line:1381,column:12}},522:{start:{line:1384,column:6},end:{line:1390,column:8}},523:{start:{line:1393,column:6},end:{line:1393,column:30}},524:{start:{line:1394,column:6},end:{line:1394,column:40}},525:{start:{line:1395,column:6},end:{line:1395,column:27}},526:{start:{line:1399,column:6},end:{line:1399,column:23}},527:{start:{line:1400,column:6},end:{line:1400,column:34}},528:{start:{line:1401,column:6},end:{line:1401,column:33}},529:{start:{line:1402,column:6},end:{line:1402,column:30}},530:{start:{line:1403,column:6},end:{line:1403,column:21}},531:{start:{line:1404,column:6},end:{line:1404,column:38}},532:{start:{line:1405,column:6},end:{line:1405,column:28}},533:{start:{line:1406,column:6},end:{line:1406,column:30}},534:{start:{line:1407,column:6},end:{line:1407,column:36}},535:{start:{line:1408,column:6},end:{line:1408,column:30}},536:{start:{line:1411,column:6},end:{line:1411,column:20}},537:{start:{line:1412,column:6},end:{line:1449,column:2}},538:{start:{line:1450,column:6},end:{line:1450,column:33}},539:{start:{line:1453,column:6},end:{line:1453,column:20}},540:{start:{line:1454,column:6},end:{line:1490,column:2}},541:{start:{line:1491,column:6},end:{line:1491,column:33}},542:{start:{line:1494,column:6},end:{line:1494,column:26}},543:{start:{line:1499,column:6},end:{line:1499,column:35}},544:{start:{line:1500,column:6},end:{line:1522,column:10}},545:{start:{line:1502,column:23},end:{line:1505,column:11}},546:{start:{line:1506,column:10},end:{line:1508,column:11}},547:{start:{line:1507,column:12},end:{line:1507,column:61}},548:{start:{line:1509,column:10},end:{line:1511,column:11}},549:{start:{line:1510,column:12},end:{line:1510,column:47}},550:{start:{line:1512,column:10},end:{line:1514,column:11}},551:{start:{line:1513,column:12},end:{line:1513,column:51}},552:{start:{line:1515,column:25},end:{line:1515,column:45}},553:{start:{line:1516,column:30},end:{line:1516,column:55}},554:{start:{line:1517,column:10},end:{line:1517,column:59}},555:{start:{line:1520,column:10},end:{line:1520,column:78}},556:{start:{line:1521,column:10},end:{line:1521,column:22}},557:{start:{line:1526,column:6},end:{line:1526,column:21}},558:{start:{line:1528,column:24},end:{line:1528,column:47}},559:{start:{line:1529,column:6},end:{line:1535,column:7}},560:{start:{line:1531,column:8},end:{line:1534,column:9}},561:{start:{line:1532,column:10},end:{line:1532,column:27}},562:{start:{line:1533,column:10},end:{line:1533,column:32}},563:{start:{line:1536,column:6},end:{line:1536,column:33}},564:{start:{line:1537,column:6},end:{line:1541,column:7}},565:{start:{line:1538,column:8},end:{line:1538,column:58}},566:{start:{line:1540,column:8},end:{line:1540,column:56}},567:{start:{line:1542,column:6},end:{line:1542,column:33}},568:{start:{line:1543,column:6},end:{line:1543,column:49}},569:{start:{line:1544,column:6},end:{line:1544,column:46}},570:{start:{line:1545,column:6},end:{line:1545,column:39}},571:{start:{line:1546,column:6},end:{line:1546,column:28}},572:{start:{line:1547,column:6},end:{line:1547,column:30}},573:{start:{line:1549,column:6},end:{line:1556,column:7}},574:{start:{line:1550,column:8},end:{line:1550,column:31}},575:{start:{line:1551,column:8},end:{line:1551,column:35}},576:{start:{line:1552,column:8},end:{line:1552,column:37}},577:{start:{line:1554,column:8},end:{line:1554,column:32}},578:{start:{line:1555,column:8},end:{line:1555,column:38}},579:{start:{line:1557,column:6},end:{line:1560,column:7}},580:{start:{line:1558,column:8},end:{line:1558,column:36}},581:{start:{line:1559,column:8},end:{line:1559,column:34}},582:{start:{line:1562,column:6},end:{line:1562,column:54}},583:{start:{line:1565,column:23},end:{line:1565,column:62}},584:{start:{line:1566,column:25},end:{line:1566,column:58}},585:{start:{line:1567,column:23},end:{line:1567,column:50}},586:{start:{line:1568,column:25},end:{line:1570,column:7}},587:{start:{line:1571,column:17},end:{line:1571,column:39}},588:{start:{line:1572,column:18},end:{line:1572,column:34}},589:{start:{line:1573,column:6},end:{line:1586,column:7}},590:{start:{line:1574,column:8},end:{line:1576,column:9}},591:{start:{line:1575,column:10},end:{line:1575,column:23}},592:{start:{line:1577,column:8},end:{line:1579,column:9}},593:{start:{line:1578,column:10},end:{line:1578,column:25}},594:{start:{line:1580,column:8},end:{line:1582,column:9}},595:{start:{line:1581,column:10},end:{line:1581,column:23}},596:{start:{line:1583,column:8},end:{line:1585,column:9}},597:{start:{line:1584,column:10},end:{line:1584,column:25}},598:{start:{line:1587,column:6},end:{line:1587,column:22}},599:{start:{line:1592,column:26},end:{line:1592,column:50}},600:{start:{line:1593,column:6},end:{line:1623,column:7}},601:{start:{line:1594,column:8},end:{line:1622,column:9}},602:{start:{line:1596,column:10},end:{line:1596,column:23}},603:{start:{line:1597,column:10},end:{line:1597,column:16}},604:{start:{line:1599,column:10},end:{line:1621,column:11}},605:{start:{line:1600,column:27},end:{line:1600,column:48}},606:{start:{line:1601,column:12},end:{line:1619,column:13}},607:{start:{line:1605,column:14},end:{line:1609,column:26}},608:{start:{line:1610,column:19},end:{line:1619,column:13}},609:{start:{line:1611,column:14},end:{line:1615,column:26}},610:{start:{line:1618,column:14},end:{line:1618,column:20}},611:{start:{line:1620,column:12},end:{line:1620,column:45}},612:{start:{line:1624,column:6},end:{line:1624,column:26}},613:{start:{line:1625,column:6},end:{line:1670,column:10}},614:{start:{line:1632,column:10},end:{line:1655,column:11}},615:{start:{line:1633,column:12},end:{line:1641,column:13}},616:{start:{line:1634,column:14},end:{line:1634,column:43}},617:{start:{line:1635,column:14},end:{line:1635,column:37}},618:{start:{line:1636,column:14},end:{line:1636,column:62}},619:{start:{line:1638,column:14},end:{line:1638,column:44}},620:{start:{line:1639,column:14},end:{line:1639,column:38}},621:{start:{line:1640,column:14},end:{line:1640,column:32}},622:{start:{line:1642,column:12},end:{line:1645,column:13}},623:{start:{line:1643,column:14},end:{line:1643,column:51}},624:{start:{line:1644,column:14},end:{line:1644,column:40}},625:{start:{line:1646,column:12},end:{line:1646,column:34}},626:{start:{line:1647,column:12},end:{line:1649,column:20}},627:{start:{line:1648,column:14},end:{line:1648,column:35}},628:{start:{line:1651,column:12},end:{line:1651,column:33}},629:{start:{line:1652,column:12},end:{line:1652,column:36}},630:{start:{line:1653,column:12},end:{line:1653,column:103}},631:{start:{line:1654,column:12},end:{line:1654,column:33}},632:{start:{line:1656,column:10},end:{line:1656,column:25}},633:{start:{line:1659,column:10},end:{line:1659,column:31}},634:{start:{line:1662,column:10},end:{line:1668,column:11}},635:{start:{line:1663,column:12},end:{line:1663,column:36}},636:{start:{line:1664,column:12},end:{line:1664,column:49}},637:{start:{line:1666,column:12},end:{line:1666,column:36}},638:{start:{line:1667,column:12},end:{line:1667,column:103}},639:{start:{line:1669,column:10},end:{line:1669,column:31}},640:{start:{line:1673,column:6},end:{line:1673,column:28}},641:{start:{line:1676,column:6},end:{line:1676,column:44}},642:{start:{line:1677,column:6},end:{line:1677,column:33}},643:{start:{line:1678,column:6},end:{line:1681,column:7}},644:{start:{line:1679,column:8},end:{line:1679,column:67}},645:{start:{line:1680,column:8},end:{line:1680,column:32}},646:{start:{line:1682,column:6},end:{line:1682,column:33}},647:{start:{line:1685,column:21},end:{line:1685,column:34}},648:{start:{line:1686,column:6},end:{line:1688,column:7}},649:{start:{line:1687,column:8},end:{line:1687,column:36}},650:{start:{line:1689,column:6},end:{line:1710,column:10}},651:{start:{line:1695,column:10},end:{line:1697,column:12}},652:{start:{line:1700,column:10},end:{line:1700,column:24}},653:{start:{line:1703,column:10},end:{line:1709,column:11}},654:{start:{line:1704,column:32},end:{line:1707,column:13}},655:{start:{line:1708,column:12},end:{line:1708,column:44}},656:{start:{line:1713,column:19},end:{line:1715,column:8}},657:{start:{line:1717,column:19},end:{line:1717,column:46}},658:{start:{line:1718,column:6},end:{line:1718,column:43}},659:{start:{line:1719,column:6},end:{line:1719,column:50}},660:{start:{line:1720,column:6},end:{line:1720,column:18}},661:{start:{line:1724,column:6},end:{line:1734,column:8}},662:{start:{line:1731,column:8},end:{line:1731,column:52}},663:{start:{line:1732,column:8},end:{line:1732,column:69}},664:{start:{line:1733,column:8},end:{line:1733,column:36}},665:{start:{line:1737,column:6},end:{line:1747,column:8}},666:{start:{line:1744,column:8},end:{line:1744,column:52}},667:{start:{line:1745,column:8},end:{line:1745,column:69}},668:{start:{line:1746,column:8},end:{line:1746,column:36}},669:{start:{line:1750,column:6},end:{line:1750,column:71}},670:{start:{line:1753,column:6},end:{line:1753,column:38}},671:{start:{line:1756,column:6},end:{line:1756,column:48}},672:{start:{line:1759,column:6},end:{line:1786,column:7}},673:{start:{line:1760,column:8},end:{line:1760,column:23}},674:{start:{line:1761,column:8},end:{line:1761,column:57}},675:{start:{line:1762,column:13},end:{line:1786,column:7}},676:{start:{line:1763,column:8},end:{line:1763,column:42}},677:{start:{line:1764,column:8},end:{line:1764,column:57}},678:{start:{line:1766,column:8},end:{line:1770,column:10}},679:{start:{line:1771,column:8},end:{line:1771,column:23}},680:{start:{line:1772,column:13},end:{line:1786,column:7}},681:{start:{line:1773,column:8},end:{line:1773,column:35}},682:{start:{line:1774,column:8},end:{line:1776,column:9}},683:{start:{line:1775,column:10},end:{line:1775,column:63}},684:{start:{line:1777,column:8},end:{line:1777,column:62}},685:{start:{line:1779,column:8},end:{line:1779,column:30}},686:{start:{line:1780,column:13},end:{line:1786,column:7}},687:{start:{line:1781,column:8},end:{line:1781,column:35}},688:{start:{line:1782,column:8},end:{line:1784,column:9}},689:{start:{line:1783,column:10},end:{line:1783,column:36}},690:{start:{line:1785,column:8},end:{line:1785,column:62}},691:{start:{line:1789,column:25},end:{line:1789,column:57}},692:{start:{line:1790,column:6},end:{line:1792,column:70}},693:{start:{line:1791,column:25},end:{line:1791,column:60}},694:{start:{line:1792,column:29},end:{line:1792,column:69}},695:{start:{line:1795,column:6},end:{line:1806,column:10}},696:{start:{line:1804,column:10},end:{line:1804,column:30}},697:{start:{line:1805,column:10},end:{line:1805,column:32}},698:{start:{line:1809,column:6},end:{line:1809,column:66}},699:{start:{line:1812,column:6},end:{line:1814,column:7}},700:{start:{line:1813,column:8},end:{line:1813,column:63}},701:{start:{line:1817,column:6},end:{line:1817,column:38}},702:{start:{line:1820,column:18},end:{line:1820,column:19}},703:{start:{line:1821,column:6},end:{line:1827,column:7}},704:{start:{line:1822,column:8},end:{line:1825,column:9}},705:{start:{line:1823,column:10},end:{line:1823,column:39}},706:{start:{line:1824,column:10},end:{line:1824,column:15}},707:{start:{line:1826,column:8},end:{line:1826,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:67,column:2},end:{line:67,column:3}},loc:{start:{line:67,column:9},end:{line:182,column:3}},line:67},1:{name:"(anonymous_1)",decl:{start:{line:129,column:18},end:{line:129,column:19}},loc:{start:{line:129,column:24},end:{line:129,column:26}},line:129},2:{name:"(anonymous_2)",decl:{start:{line:137,column:18},end:{line:137,column:19}},loc:{start:{line:137,column:24},end:{line:137,column:26}},line:137},3:{name:"(anonymous_3)",decl:{start:{line:147,column:18},end:{line:147,column:19}},loc:{start:{line:147,column:24},end:{line:147,column:26}},line:147},4:{name:"(anonymous_4)",decl:{start:{line:157,column:18},end:{line:157,column:19}},loc:{start:{line:157,column:24},end:{line:157,column:26}},line:157},5:{name:"(anonymous_5)",decl:{start:{line:184,column:14},end:{line:184,column:15}},loc:{start:{line:184,column:26},end:{line:188,column:5}},line:184},6:{name:"(anonymous_6)",decl:{start:{line:189,column:21},end:{line:189,column:22}},loc:{start:{line:189,column:33},end:{line:193,column:5}},line:189},7:{name:"(anonymous_7)",decl:{start:{line:194,column:26},end:{line:194,column:27}},loc:{start:{line:194,column:38},end:{line:196,column:5}},line:194},8:{name:"(anonymous_8)",decl:{start:{line:197,column:14},end:{line:197,column:15}},loc:{start:{line:197,column:26},end:{line:199,column:5}},line:197},9:{name:"(anonymous_9)",decl:{start:{line:200,column:18},end:{line:200,column:19}},loc:{start:{line:200,column:30},end:{line:205,column:5}},line:200},10:{name:"(anonymous_10)",decl:{start:{line:208,column:21},end:{line:208,column:22}},loc:{start:{line:208,column:33},end:{line:210,column:5}},line:208},11:{name:"(anonymous_11)",decl:{start:{line:211,column:11},end:{line:211,column:12}},loc:{start:{line:211,column:23},end:{line:415,column:5}},line:211},12:{name:"(anonymous_12)",decl:{start:{line:220,column:23},end:{line:220,column:24}},loc:{start:{line:220,column:29},end:{line:222,column:15}},line:220},13:{name:"(anonymous_13)",decl:{start:{line:228,column:23},end:{line:228,column:24}},loc:{start:{line:228,column:29},end:{line:230,column:15}},line:228},14:{name:"(anonymous_14)",decl:{start:{line:244,column:23},end:{line:244,column:24}},loc:{start:{line:244,column:29},end:{line:246,column:15}},line:244},15:{name:"(anonymous_15)",decl:{start:{line:255,column:23},end:{line:255,column:24}},loc:{start:{line:255,column:29},end:{line:257,column:15}},line:255},16:{name:"(anonymous_16)",decl:{start:{line:263,column:23},end:{line:263,column:24}},loc:{start:{line:263,column:29},end:{line:265,column:15}},line:263},17:{name:"(anonymous_17)",decl:{start:{line:274,column:23},end:{line:274,column:24}},loc:{start:{line:274,column:29},end:{line:276,column:15}},line:274},18:{name:"(anonymous_18)",decl:{start:{line:285,column:23},end:{line:285,column:24}},loc:{start:{line:285,column:29},end:{line:287,column:15}},line:285},19:{name:"(anonymous_19)",decl:{start:{line:297,column:23},end:{line:297,column:24}},loc:{start:{line:297,column:29},end:{line:299,column:15}},line:297},20:{name:"(anonymous_20)",decl:{start:{line:305,column:23},end:{line:305,column:24}},loc:{start:{line:305,column:29},end:{line:307,column:15}},line:305},21:{name:"(anonymous_21)",decl:{start:{line:317,column:23},end:{line:317,column:24}},loc:{start:{line:317,column:29},end:{line:319,column:15}},line:317},22:{name:"(anonymous_22)",decl:{start:{line:328,column:23},end:{line:328,column:24}},loc:{start:{line:328,column:29},end:{line:330,column:15}},line:328},23:{name:"(anonymous_23)",decl:{start:{line:336,column:23},end:{line:336,column:24}},loc:{start:{line:336,column:29},end:{line:339,column:15}},line:336},24:{name:"(anonymous_24)",decl:{start:{line:337,column:46},end:{line:337,column:47}},loc:{start:{line:337,column:52},end:{line:337,column:54}},line:337},25:{name:"(anonymous_25)",decl:{start:{line:344,column:23},end:{line:344,column:24}},loc:{start:{line:344,column:29},end:{line:346,column:15}},line:344},26:{name:"(anonymous_26)",decl:{start:{line:355,column:23},end:{line:355,column:24}},loc:{start:{line:355,column:29},end:{line:357,column:15}},line:355},27:{name:"(anonymous_27)",decl:{start:{line:363,column:23},end:{line:363,column:24}},loc:{start:{line:363,column:29},end:{line:365,column:15}},line:363},28:{name:"(anonymous_28)",decl:{start:{line:371,column:23},end:{line:371,column:24}},loc:{start:{line:371,column:29},end:{line:373,column:15}},line:371},29:{name:"(anonymous_29)",decl:{start:{line:379,column:23},end:{line:379,column:24}},loc:{start:{line:379,column:29},end:{line:381,column:15}},line:379},30:{name:"(anonymous_30)",decl:{start:{line:389,column:23},end:{line:389,column:24}},loc:{start:{line:389,column:29},end:{line:391,column:15}},line:389},31:{name:"(anonymous_31)",decl:{start:{line:397,column:23},end:{line:397,column:24}},loc:{start:{line:397,column:29},end:{line:399,column:15}},line:397},32:{name:"(anonymous_32)",decl:{start:{line:408,column:23},end:{line:408,column:24}},loc:{start:{line:408,column:29},end:{line:410,column:15}},line:408},33:{name:"(anonymous_33)",decl:{start:{line:416,column:31},end:{line:416,column:32}},loc:{start:{line:416,column:43},end:{line:431,column:5}},line:416},34:{name:"(anonymous_34)",decl:{start:{line:434,column:14},end:{line:434,column:15}},loc:{start:{line:434,column:29},end:{line:440,column:5}},line:434},35:{name:"(anonymous_35)",decl:{start:{line:441,column:18},end:{line:441,column:19}},loc:{start:{line:441,column:38},end:{line:448,column:5}},line:441},36:{name:"(anonymous_36)",decl:{start:{line:450,column:11},end:{line:450,column:12}},loc:{start:{line:450,column:23},end:{line:462,column:3}},line:450},37:{name:"(anonymous_37)",decl:{start:{line:459,column:61},end:{line:459,column:62}},loc:{start:{line:459,column:75},end:{line:461,column:5}},line:459},38:{name:"(anonymous_38)",decl:{start:{line:463,column:11},end:{line:463,column:12}},loc:{start:{line:463,column:29},end:{line:527,column:3}},line:463},39:{name:"(anonymous_39)",decl:{start:{line:509,column:37},end:{line:509,column:38}},loc:{start:{line:509,column:58},end:{line:512,column:5}},line:509},40:{name:"(anonymous_40)",decl:{start:{line:517,column:40},end:{line:517,column:41}},loc:{start:{line:517,column:52},end:{line:526,column:5}},line:517},41:{name:"(anonymous_41)",decl:{start:{line:528,column:2},end:{line:528,column:3}},loc:{start:{line:528,column:18},end:{line:531,column:3}},line:528},42:{name:"(anonymous_42)",decl:{start:{line:532,column:2},end:{line:532,column:3}},loc:{start:{line:532,column:14},end:{line:541,column:3}},line:532},43:{name:"(anonymous_43)",decl:{start:{line:542,column:21},end:{line:542,column:22}},loc:{start:{line:542,column:47},end:{line:548,column:3}},line:542},44:{name:"(anonymous_44)",decl:{start:{line:550,column:4},end:{line:550,column:5}},loc:{start:{line:550,column:19},end:{line:566,column:5}},line:550},45:{name:"(anonymous_45)",decl:{start:{line:551,column:43},end:{line:551,column:44}},loc:{start:{line:551,column:57},end:{line:565,column:7}},line:551},46:{name:"(anonymous_46)",decl:{start:{line:553,column:54},end:{line:553,column:55}},loc:{start:{line:553,column:65},end:{line:563,column:9}},line:553},47:{name:"(anonymous_47)",decl:{start:{line:567,column:4},end:{line:567,column:5}},loc:{start:{line:567,column:36},end:{line:610,column:5}},line:567},48:{name:"(anonymous_48)",decl:{start:{line:574,column:16},end:{line:574,column:17}},loc:{start:{line:574,column:23},end:{line:574,column:42}},line:574},49:{name:"(anonymous_49)",decl:{start:{line:575,column:16},end:{line:575,column:17}},loc:{start:{line:575,column:23},end:{line:575,column:35}},line:575},50:{name:"(anonymous_50)",decl:{start:{line:578,column:33},end:{line:578,column:34}},loc:{start:{line:578,column:45},end:{line:587,column:7}},line:578},51:{name:"(anonymous_51)",decl:{start:{line:597,column:17},end:{line:597,column:18}},loc:{start:{line:597,column:29},end:{line:603,column:7}},line:597},52:{name:"(anonymous_52)",decl:{start:{line:606,column:8},end:{line:606,column:9}},loc:{start:{line:606,column:20},end:{line:608,column:7}},line:606},53:{name:"(anonymous_53)",decl:{start:{line:611,column:4},end:{line:611,column:5}},loc:{start:{line:611,column:38},end:{line:654,column:5}},line:611},54:{name:"(anonymous_54)",decl:{start:{line:618,column:16},end:{line:618,column:17}},loc:{start:{line:618,column:23},end:{line:618,column:42}},line:618},55:{name:"(anonymous_55)",decl:{start:{line:619,column:16},end:{line:619,column:17}},loc:{start:{line:619,column:23},end:{line:619,column:35}},line:619},56:{name:"(anonymous_56)",decl:{start:{line:622,column:33},end:{line:622,column:34}},loc:{start:{line:622,column:45},end:{line:631,column:7}},line:622},57:{name:"(anonymous_57)",decl:{start:{line:641,column:17},end:{line:641,column:18}},loc:{start:{line:641,column:29},end:{line:647,column:7}},line:641},58:{name:"(anonymous_58)",decl:{start:{line:650,column:8},end:{line:650,column:9}},loc:{start:{line:650,column:20},end:{line:652,column:7}},line:650},59:{name:"(anonymous_59)",decl:{start:{line:656,column:4},end:{line:656,column:5}},loc:{start:{line:656,column:30},end:{line:674,column:5}},line:656},60:{name:"(anonymous_60)",decl:{start:{line:675,column:26},end:{line:675,column:27}},loc:{start:{line:675,column:40},end:{line:703,column:5}},line:675},61:{name:"(anonymous_61)",decl:{start:{line:676,column:56},end:{line:676,column:57}},loc:{start:{line:676,column:70},end:{line:702,column:7}},line:676},62:{name:"(anonymous_62)",decl:{start:{line:678,column:10},end:{line:678,column:11}},loc:{start:{line:678,column:17},end:{line:678,column:38}},line:678},63:{name:"(anonymous_63)",decl:{start:{line:704,column:19},end:{line:704,column:20}},loc:{start:{line:704,column:31},end:{line:718,column:5}},line:704},64:{name:"(anonymous_64)",decl:{start:{line:705,column:59},end:{line:705,column:60}},loc:{start:{line:705,column:73},end:{line:717,column:7}},line:705},65:{name:"(anonymous_65)",decl:{start:{line:719,column:30},end:{line:719,column:31}},loc:{start:{line:719,column:48},end:{line:723,column:5}},line:719},66:{name:"(anonymous_66)",decl:{start:{line:724,column:19},end:{line:724,column:20}},loc:{start:{line:724,column:31},end:{line:733,column:5}},line:724},67:{name:"(anonymous_67)",decl:{start:{line:730,column:16},end:{line:730,column:17}},loc:{start:{line:730,column:25},end:{line:730,column:37}},line:730},68:{name:"(anonymous_68)",decl:{start:{line:731,column:13},end:{line:731,column:14}},loc:{start:{line:731,column:22},end:{line:731,column:33}},line:731},69:{name:"(anonymous_69)",decl:{start:{line:734,column:22},end:{line:734,column:23}},loc:{start:{line:734,column:34},end:{line:741,column:5}},line:734},70:{name:"(anonymous_70)",decl:{start:{line:738,column:16},end:{line:738,column:17}},loc:{start:{line:738,column:25},end:{line:738,column:71}},line:738},71:{name:"(anonymous_71)",decl:{start:{line:739,column:13},end:{line:739,column:14}},loc:{start:{line:739,column:22},end:{line:739,column:43}},line:739},72:{name:"(anonymous_72)",decl:{start:{line:742,column:17},end:{line:742,column:18}},loc:{start:{line:742,column:51},end:{line:765,column:5}},line:742},73:{name:"(anonymous_73)",decl:{start:{line:755,column:14},end:{line:755,column:15}},loc:{start:{line:755,column:28},end:{line:761,column:9}},line:755},74:{name:"(anonymous_74)",decl:{start:{line:762,column:14},end:{line:762,column:15}},loc:{start:{line:762,column:28},end:{line:764,column:9}},line:762},75:{name:"(anonymous_75)",decl:{start:{line:766,column:22},end:{line:766,column:23}},loc:{start:{line:766,column:34},end:{line:768,column:5}},line:766},76:{name:"(anonymous_76)",decl:{start:{line:769,column:22},end:{line:769,column:23}},loc:{start:{line:769,column:40},end:{line:779,column:5}},line:769},77:{name:"(anonymous_77)",decl:{start:{line:780,column:23},end:{line:780,column:24}},loc:{start:{line:780,column:50},end:{line:809,column:5}},line:780},78:{name:"(anonymous_78)",decl:{start:{line:785,column:8},end:{line:785,column:9}},loc:{start:{line:786,column:10},end:{line:787,column:32}},line:786},79:{name:"(anonymous_79)",decl:{start:{line:799,column:12},end:{line:799,column:13}},loc:{start:{line:799,column:21},end:{line:799,column:43}},line:799},80:{name:"(anonymous_80)",decl:{start:{line:803,column:27},end:{line:803,column:28}},loc:{start:{line:803,column:36},end:{line:808,column:7}},line:803},81:{name:"(anonymous_81)",decl:{start:{line:810,column:23},end:{line:810,column:24}},loc:{start:{line:810,column:64},end:{line:815,column:5}},line:810},82:{name:"(anonymous_82)",decl:{start:{line:813,column:13},end:{line:813,column:14}},loc:{start:{line:813,column:34},end:{line:813,column:51}},line:813},83:{name:"(anonymous_83)",decl:{start:{line:816,column:24},end:{line:816,column:25}},loc:{start:{line:816,column:44},end:{line:821,column:5}},line:816},84:{name:"(anonymous_84)",decl:{start:{line:818,column:42},end:{line:818,column:43}},loc:{start:{line:818,column:58},end:{line:820,column:7}},line:818},85:{name:"(anonymous_85)",decl:{start:{line:822,column:26},end:{line:822,column:27}},loc:{start:{line:822,column:38},end:{line:834,column:5}},line:822},86:{name:"(anonymous_86)",decl:{start:{line:828,column:14},end:{line:828,column:15}},loc:{start:{line:828,column:26},end:{line:830,column:9}},line:828},87:{name:"(anonymous_87)",decl:{start:{line:831,column:14},end:{line:831,column:15}},loc:{start:{line:831,column:28},end:{line:833,column:9}},line:831},88:{name:"(anonymous_88)",decl:{start:{line:835,column:4},end:{line:835,column:5}},loc:{start:{line:835,column:29},end:{line:841,column:5}},line:835},89:{name:"(anonymous_89)",decl:{start:{line:842,column:4},end:{line:842,column:5}},loc:{start:{line:842,column:25},end:{line:859,column:5}},line:842},90:{name:"(anonymous_90)",decl:{start:{line:860,column:4},end:{line:860,column:5}},loc:{start:{line:860,column:20},end:{line:870,column:5}},line:860},91:{name:"(anonymous_91)",decl:{start:{line:871,column:20},end:{line:871,column:21}},loc:{start:{line:871,column:32},end:{line:891,column:5}},line:871},92:{name:"(anonymous_92)",decl:{start:{line:874,column:14},end:{line:874,column:15}},loc:{start:{line:874,column:41},end:{line:890,column:9}},line:874},93:{name:"(anonymous_93)",decl:{start:{line:878,column:19},end:{line:878,column:20}},loc:{start:{line:878,column:32},end:{line:878,column:73}},line:878},94:{name:"(anonymous_94)",decl:{start:{line:892,column:4},end:{line:892,column:5}},loc:{start:{line:892,column:22},end:{line:901,column:5}},line:892},95:{name:"(anonymous_95)",decl:{start:{line:902,column:4},end:{line:902,column:5}},loc:{start:{line:902,column:20},end:{line:918,column:5}},line:902},96:{name:"(anonymous_96)",decl:{start:{line:909,column:22},end:{line:909,column:23}},loc:{start:{line:909,column:32},end:{line:909,column:51}},line:909},97:{name:"(anonymous_97)",decl:{start:{line:915,column:14},end:{line:915,column:15}},loc:{start:{line:915,column:32},end:{line:917,column:9}},line:915},98:{name:"(anonymous_98)",decl:{start:{line:919,column:4},end:{line:919,column:5}},loc:{start:{line:919,column:21},end:{line:937,column:5}},line:919},99:{name:"(anonymous_99)",decl:{start:{line:938,column:24},end:{line:938,column:25}},loc:{start:{line:938,column:41},end:{line:940,column:5}},line:938},100:{name:"(anonymous_100)",decl:{start:{line:941,column:18},end:{line:941,column:19}},loc:{start:{line:941,column:30},end:{line:943,column:5}},line:941},101:{name:"(anonymous_101)",decl:{start:{line:944,column:4},end:{line:944,column:5}},loc:{start:{line:944,column:43},end:{line:972,column:5}},line:944},102:{name:"(anonymous_102)",decl:{start:{line:966,column:14},end:{line:966,column:15}},loc:{start:{line:966,column:28},end:{line:968,column:9}},line:966},103:{name:"(anonymous_103)",decl:{start:{line:969,column:15},end:{line:969,column:16}},loc:{start:{line:969,column:26},end:{line:971,column:9}},line:969},104:{name:"(anonymous_104)",decl:{start:{line:973,column:4},end:{line:973,column:5}},loc:{start:{line:973,column:9},end:{line:979,column:5}},line:973},105:{name:"(anonymous_105)",decl:{start:{line:980,column:4},end:{line:980,column:5}},loc:{start:{line:980,column:19},end:{line:987,column:5}},line:980},106:{name:"(anonymous_106)",decl:{start:{line:988,column:4},end:{line:988,column:5}},loc:{start:{line:988,column:11},end:{line:998,column:5}},line:988},107:{name:"(anonymous_107)",decl:{start:{line:999,column:4},end:{line:999,column:5}},loc:{start:{line:999,column:11},end:{line:1001,column:5}},line:999},108:{name:"(anonymous_108)",decl:{start:{line:1002,column:4},end:{line:1002,column:5}},loc:{start:{line:1002,column:19},end:{line:1197,column:5}},line:1002},109:{name:"(anonymous_109)",decl:{start:{line:1024,column:22},end:{line:1024,column:23}},loc:{start:{line:1024,column:36},end:{line:1034,column:17}},line:1024},110:{name:"(anonymous_110)",decl:{start:{line:1035,column:23},end:{line:1035,column:24}},loc:{start:{line:1035,column:32},end:{line:1038,column:17}},line:1035},111:{name:"(anonymous_111)",decl:{start:{line:1082,column:16},end:{line:1082,column:17}},loc:{start:{line:1082,column:25},end:{line:1082,column:69}},line:1082},112:{name:"(anonymous_112)",decl:{start:{line:1198,column:4},end:{line:1198,column:5}},loc:{start:{line:1198,column:32},end:{line:1208,column:5}},line:1198},113:{name:"(anonymous_113)",decl:{start:{line:1209,column:4},end:{line:1209,column:5}},loc:{start:{line:1209,column:23},end:{line:1360,column:5}},line:1209},114:{name:"(anonymous_114)",decl:{start:{line:1243,column:30},end:{line:1243,column:31}},loc:{start:{line:1243,column:41},end:{line:1262,column:11}},line:1243},115:{name:"(anonymous_115)",decl:{start:{line:1299,column:37},end:{line:1299,column:38}},loc:{start:{line:1299,column:44},end:{line:1301,column:11}},line:1299},116:{name:"(anonymous_116)",decl:{start:{line:1315,column:37},end:{line:1315,column:38}},loc:{start:{line:1315,column:44},end:{line:1317,column:11}},line:1315},117:{name:"(anonymous_117)",decl:{start:{line:1330,column:40},end:{line:1330,column:41}},loc:{start:{line:1330,column:51},end:{line:1339,column:11}},line:1330},118:{name:"(anonymous_118)",decl:{start:{line:1361,column:4},end:{line:1361,column:5}},loc:{start:{line:1361,column:36},end:{line:1391,column:5}},line:1361},119:{name:"(anonymous_119)",decl:{start:{line:1368,column:28},end:{line:1368,column:29}},loc:{start:{line:1368,column:44},end:{line:1382,column:9}},line:1368},120:{name:"(anonymous_120)",decl:{start:{line:1392,column:4},end:{line:1392,column:5}},loc:{start:{line:1392,column:20},end:{line:1396,column:5}},line:1392},121:{name:"(anonymous_121)",decl:{start:{line:1398,column:4},end:{line:1398,column:5}},loc:{start:{line:1398,column:14},end:{line:1409,column:5}},line:1398},122:{name:"(anonymous_122)",decl:{start:{line:1410,column:4},end:{line:1410,column:5}},loc:{start:{line:1410,column:29},end:{line:1451,column:5}},line:1410},123:{name:"(anonymous_123)",decl:{start:{line:1452,column:4},end:{line:1452,column:5}},loc:{start:{line:1452,column:31},end:{line:1492,column:5}},line:1452},124:{name:"(anonymous_124)",decl:{start:{line:1493,column:4},end:{line:1493,column:5}},loc:{start:{line:1493,column:15},end:{line:1495,column:5}},line:1493},125:{name:"(anonymous_125)",decl:{start:{line:1496,column:4},end:{line:1496,column:5}},loc:{start:{line:1496,column:23},end:{line:1523,column:5}},line:1496},126:{name:"(anonymous_126)",decl:{start:{line:1501,column:14},end:{line:1501,column:15}},loc:{start:{line:1501,column:28},end:{line:1518,column:9}},line:1501},127:{name:"(anonymous_127)",decl:{start:{line:1519,column:15},end:{line:1519,column:16}},loc:{start:{line:1519,column:26},end:{line:1522,column:9}},line:1519},128:{name:"(anonymous_128)",decl:{start:{line:1525,column:4},end:{line:1525,column:5}},loc:{start:{line:1525,column:58},end:{line:1563,column:5}},line:1525},129:{name:"(anonymous_129)",decl:{start:{line:1564,column:4},end:{line:1564,column:5}},loc:{start:{line:1564,column:21},end:{line:1588,column:5}},line:1564},130:{name:"(anonymous_130)",decl:{start:{line:1591,column:4},end:{line:1591,column:5}},loc:{start:{line:1591,column:34},end:{line:1671,column:5}},line:1591},131:{name:"(anonymous_131)",decl:{start:{line:1631,column:14},end:{line:1631,column:15}},loc:{start:{line:1631,column:28},end:{line:1657,column:9}},line:1631},132:{name:"(anonymous_132)",decl:{start:{line:1647,column:23},end:{line:1647,column:24}},loc:{start:{line:1647,column:29},end:{line:1649,column:13}},line:1647},133:{name:"(anonymous_133)",decl:{start:{line:1658,column:15},end:{line:1658,column:16}},loc:{start:{line:1658,column:33},end:{line:1670,column:9}},line:1658},134:{name:"(anonymous_134)",decl:{start:{line:1672,column:4},end:{line:1672,column:5}},loc:{start:{line:1672,column:13},end:{line:1674,column:5}},line:1672},135:{name:"(anonymous_135)",decl:{start:{line:1675,column:4},end:{line:1675,column:5}},loc:{start:{line:1675,column:35},end:{line:1683,column:5}},line:1675},136:{name:"(anonymous_136)",decl:{start:{line:1684,column:4},end:{line:1684,column:5}},loc:{start:{line:1684,column:13},end:{line:1711,column:5}},line:1684},137:{name:"(anonymous_137)",decl:{start:{line:1694,column:14},end:{line:1694,column:15}},loc:{start:{line:1694,column:26},end:{line:1698,column:9}},line:1694},138:{name:"(anonymous_138)",decl:{start:{line:1699,column:14},end:{line:1699,column:15}},loc:{start:{line:1699,column:28},end:{line:1701,column:9}},line:1699},139:{name:"(anonymous_139)",decl:{start:{line:1702,column:15},end:{line:1702,column:16}},loc:{start:{line:1702,column:26},end:{line:1710,column:9}},line:1702},140:{name:"(anonymous_140)",decl:{start:{line:1712,column:4},end:{line:1712,column:5}},loc:{start:{line:1712,column:15},end:{line:1721,column:5}},line:1712},141:{name:"(anonymous_141)",decl:{start:{line:1723,column:4},end:{line:1723,column:5}},loc:{start:{line:1723,column:18},end:{line:1735,column:5}},line:1723},142:{name:"(anonymous_142)",decl:{start:{line:1730,column:14},end:{line:1730,column:15}},loc:{start:{line:1730,column:28},end:{line:1734,column:7}},line:1730},143:{name:"(anonymous_143)",decl:{start:{line:1736,column:4},end:{line:1736,column:5}},loc:{start:{line:1736,column:23},end:{line:1748,column:5}},line:1736},144:{name:"(anonymous_144)",decl:{start:{line:1743,column:14},end:{line:1743,column:15}},loc:{start:{line:1743,column:28},end:{line:1747,column:7}},line:1743},145:{name:"(anonymous_145)",decl:{start:{line:1749,column:4},end:{line:1749,column:5}},loc:{start:{line:1749,column:20},end:{line:1751,column:5}},line:1749},146:{name:"(anonymous_146)",decl:{start:{line:1752,column:4},end:{line:1752,column:5}},loc:{start:{line:1752,column:18},end:{line:1754,column:5}},line:1752},147:{name:"(anonymous_147)",decl:{start:{line:1755,column:4},end:{line:1755,column:5}},loc:{start:{line:1755,column:23},end:{line:1757,column:5}},line:1755},148:{name:"(anonymous_148)",decl:{start:{line:1758,column:4},end:{line:1758,column:5}},loc:{start:{line:1758,column:24},end:{line:1787,column:5}},line:1758},149:{name:"(anonymous_149)",decl:{start:{line:1788,column:22},end:{line:1788,column:23}},loc:{start:{line:1788,column:34},end:{line:1793,column:5}},line:1788},150:{name:"(anonymous_150)",decl:{start:{line:1791,column:16},end:{line:1791,column:17}},loc:{start:{line:1791,column:25},end:{line:1791,column:60}},line:1791},151:{name:"(anonymous_151)",decl:{start:{line:1792,column:17},end:{line:1792,column:18}},loc:{start:{line:1792,column:29},end:{line:1792,column:69}},line:1792},152:{name:"(anonymous_152)",decl:{start:{line:1794,column:24},end:{line:1794,column:25}},loc:{start:{line:1794,column:36},end:{line:1807,column:5}},line:1794},153:{name:"(anonymous_153)",decl:{start:{line:1803,column:14},end:{line:1803,column:15}},loc:{start:{line:1803,column:20},end:{line:1806,column:9}},line:1803},154:{name:"(anonymous_154)",decl:{start:{line:1808,column:14},end:{line:1808,column:15}},loc:{start:{line:1808,column:26},end:{line:1810,column:5}},line:1808},155:{name:"(anonymous_155)",decl:{start:{line:1811,column:16},end:{line:1811,column:17}},loc:{start:{line:1811,column:28},end:{line:1815,column:5}},line:1811},156:{name:"(anonymous_156)",decl:{start:{line:1816,column:4},end:{line:1816,column:5}},loc:{start:{line:1816,column:17},end:{line:1818,column:5}},line:1816},157:{name:"(anonymous_157)",decl:{start:{line:1819,column:4},end:{line:1819,column:5}},loc:{start:{line:1819,column:20},end:{line:1828,column:5}},line:1819}},branchMap:{0:{loc:{start:{line:190,column:13},end:{line:192,column:32}},type:"cond-expr",locations:[{start:{line:191,column:10},end:{line:191,column:24}},{start:{line:192,column:10},end:{line:192,column:32}}],line:190},1:{loc:{start:{line:195,column:13},end:{line:195,column:67}},type:"cond-expr",locations:[{start:{line:195,column:53},end:{line:195,column:62}},{start:{line:195,column:65},end:{line:195,column:67}}],line:195},2:{loc:{start:{line:201,column:6},end:{line:201,column:59}},type:"if",locations:[{start:{line:201,column:6},end:{line:201,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:201},3:{loc:{start:{line:203,column:6},end:{line:203,column:61}},type:"if",locations:[{start:{line:203,column:6},end:{line:203,column:61}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},4:{loc:{start:{line:209,column:13},end:{line:209,column:64}},type:"cond-expr",locations:[{start:{line:209,column:46},end:{line:209,column:48}},{start:{line:209,column:51},end:{line:209,column:64}}],line:209},5:{loc:{start:{line:436,column:6},end:{line:438,column:7}},type:"if",locations:[{start:{line:436,column:6},end:{line:438,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:436},6:{loc:{start:{line:443,column:6},end:{line:447,column:7}},type:"if",locations:[{start:{line:443,column:6},end:{line:447,column:7}},{start:{line:445,column:13},end:{line:447,column:7}}],line:443},7:{loc:{start:{line:519,column:6},end:{line:525,column:7}},type:"if",locations:[{start:{line:519,column:6},end:{line:525,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:519},8:{loc:{start:{line:520,column:8},end:{line:522,column:46}},type:"binary-expr",locations:[{start:{line:520,column:8},end:{line:520,column:22}},{start:{line:521,column:8},end:{line:521,column:36}},{start:{line:522,column:8},end:{line:522,column:46}}],line:520},9:{loc:{start:{line:534,column:4},end:{line:536,column:5}},type:"if",locations:[{start:{line:534,column:4},end:{line:536,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:534},10:{loc:{start:{line:537,column:4},end:{line:539,column:5}},type:"if",locations:[{start:{line:537,column:4},end:{line:539,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:537},11:{loc:{start:{line:543,column:4},end:{line:547,column:5}},type:"if",locations:[{start:{line:543,column:4},end:{line:547,column:5}},{start:{line:545,column:11},end:{line:547,column:5}}],line:543},12:{loc:{start:{line:680,column:8},end:{line:701,column:9}},type:"if",locations:[{start:{line:680,column:8},end:{line:701,column:9}},{start:{line:685,column:15},end:{line:701,column:9}}],line:680},13:{loc:{start:{line:685,column:15},end:{line:701,column:9}},type:"if",locations:[{start:{line:685,column:15},end:{line:701,column:9}},{start:{line:691,column:15},end:{line:701,column:9}}],line:685},14:{loc:{start:{line:692,column:10},end:{line:696,column:11}},type:"if",locations:[{start:{line:692,column:10},end:{line:696,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:692},15:{loc:{start:{line:697,column:10},end:{line:700,column:11}},type:"if",locations:[{start:{line:697,column:10},end:{line:700,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:697},16:{loc:{start:{line:706,column:8},end:{line:710,column:9}},type:"if",locations:[{start:{line:706,column:8},end:{line:710,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:706},17:{loc:{start:{line:711,column:8},end:{line:714,column:9}},type:"if",locations:[{start:{line:711,column:8},end:{line:714,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:711},18:{loc:{start:{line:738,column:25},end:{line:738,column:71}},type:"binary-expr",locations:[{start:{line:738,column:25},end:{line:738,column:45}},{start:{line:738,column:49},end:{line:738,column:71}}],line:738},19:{loc:{start:{line:742,column:33},end:{line:742,column:49}},type:"default-arg",locations:[{start:{line:742,column:47},end:{line:742,column:49}}],line:742},20:{loc:{start:{line:771,column:6},end:{line:778,column:7}},type:"if",locations:[{start:{line:771,column:6},end:{line:778,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:771},21:{loc:{start:{line:773,column:8},end:{line:777,column:9}},type:"if",locations:[{start:{line:773,column:8},end:{line:777,column:9}},{start:{line:775,column:15},end:{line:777,column:9}}],line:773},22:{loc:{start:{line:781,column:6},end:{line:783,column:7}},type:"if",locations:[{start:{line:781,column:6},end:{line:783,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:781},23:{loc:{start:{line:786,column:10},end:{line:787,column:32}},type:"binary-expr",locations:[{start:{line:786,column:11},end:{line:786,column:36}},{start:{line:786,column:40},end:{line:786,column:64}},{start:{line:787,column:10},end:{line:787,column:32}}],line:786},24:{loc:{start:{line:791,column:6},end:{line:802,column:7}},type:"switch",locations:[{start:{line:792,column:8},end:{line:795,column:15}},{start:{line:796,column:8},end:{line:801,column:15}}],line:791},25:{loc:{start:{line:805,column:8},end:{line:807,column:9}},type:"if",locations:[{start:{line:805,column:8},end:{line:807,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:805},26:{loc:{start:{line:810,column:33},end:{line:810,column:62}},type:"default-arg",locations:[{start:{line:810,column:43},end:{line:810,column:62}}],line:810},27:{loc:{start:{line:813,column:34},end:{line:813,column:51}},type:"binary-expr",locations:[{start:{line:813,column:34},end:{line:813,column:44}},{start:{line:813,column:48},end:{line:813,column:51}}],line:813},28:{loc:{start:{line:836,column:6},end:{line:840,column:7}},type:"if",locations:[{start:{line:836,column:6},end:{line:840,column:7}},{start:{line:838,column:13},end:{line:840,column:7}}],line:836},29:{loc:{start:{line:845,column:6},end:{line:858,column:7}},type:"if",locations:[{start:{line:845,column:6},end:{line:858,column:7}},{start:{line:851,column:13},end:{line:858,column:7}}],line:845},30:{loc:{start:{line:846,column:8},end:{line:847,column:43}},type:"binary-expr",locations:[{start:{line:846,column:9},end:{line:846,column:22}},{start:{line:846,column:26},end:{line:846,column:39}},{start:{line:847,column:8},end:{line:847,column:43}}],line:846},31:{loc:{start:{line:851,column:13},end:{line:858,column:7}},type:"if",locations:[{start:{line:851,column:13},end:{line:858,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:851},32:{loc:{start:{line:852,column:8},end:{line:854,column:43}},type:"binary-expr",locations:[{start:{line:852,column:9},end:{line:852,column:22}},{start:{line:852,column:26},end:{line:852,column:39}},{start:{line:853,column:8},end:{line:853,column:22}},{start:{line:854,column:8},end:{line:854,column:43}}],line:852},33:{loc:{start:{line:862,column:6},end:{line:864,column:7}},type:"if",locations:[{start:{line:862,column:6},end:{line:864,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:862},34:{loc:{start:{line:862,column:10},end:{line:862,column:61}},type:"binary-expr",locations:[{start:{line:862,column:10},end:{line:862,column:23}},{start:{line:862,column:27},end:{line:862,column:61}}],line:862},35:{loc:{start:{line:865,column:6},end:{line:869,column:7}},type:"if",locations:[{start:{line:865,column:6},end:{line:869,column:7}},{start:{line:867,column:13},end:{line:869,column:7}}],line:865},36:{loc:{start:{line:876,column:10},end:{line:881,column:11}},type:"if",locations:[{start:{line:876,column:10},end:{line:881,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:876},37:{loc:{start:{line:882,column:10},end:{line:885,column:11}},type:"if",locations:[{start:{line:882,column:10},end:{line:885,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:882},38:{loc:{start:{line:886,column:10},end:{line:888,column:11}},type:"if",locations:[{start:{line:886,column:10},end:{line:888,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:886},39:{loc:{start:{line:944,column:23},end:{line:944,column:41}},type:"default-arg",locations:[{start:{line:944,column:37},end:{line:944,column:41}}],line:944},40:{loc:{start:{line:951,column:6},end:{line:954,column:7}},type:"if",locations:[{start:{line:951,column:6},end:{line:954,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:951},41:{loc:{start:{line:956,column:6},end:{line:958,column:7}},type:"if",locations:[{start:{line:956,column:6},end:{line:958,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:956},42:{loc:{start:{line:962,column:6},end:{line:964,column:7}},type:"if",locations:[{start:{line:962,column:6},end:{line:964,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:962},43:{loc:{start:{line:981,column:6},end:{line:986,column:7}},type:"if",locations:[{start:{line:981,column:6},end:{line:986,column:7}},{start:{line:983,column:13},end:{line:986,column:7}}],line:981},44:{loc:{start:{line:992,column:6},end:{line:997,column:7}},type:"if",locations:[{start:{line:992,column:6},end:{line:997,column:7}},{start:{line:995,column:13},end:{line:997,column:7}}],line:992},45:{loc:{start:{line:1007,column:6},end:{line:1196,column:7}},type:"switch",locations:[{start:{line:1008,column:8},end:{line:1014,column:15}},{start:{line:1015,column:8},end:{line:1102,column:15}},{start:{line:1103,column:8},end:{line:1114,column:15}},{start:{line:1115,column:8},end:{line:1117,column:15}},{start:{line:1118,column:8},end:{line:1121,column:15}},{start:{line:1122,column:8},end:{line:1128,column:15}},{start:{line:1129,column:8},end:{line:1131,column:15}},{start:{line:1132,column:8},end:{line:1166,column:15}},{start:{line:1167,column:8},end:{line:1178,column:15}},{start:{line:1179,column:8},end:{line:1181,column:15}},{start:{line:1182,column:8},end:{line:1191,column:15}},{start:{line:1192,column:8},end:{line:1195,column:15}}],line:1007},46:{loc:{start:{line:1011,column:10},end:{line:1013,column:11}},type:"if",locations:[{start:{line:1011,column:10},end:{line:1013,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1011},47:{loc:{start:{line:1016,column:10},end:{line:1045,column:11}},type:"if",locations:[{start:{line:1016,column:10},end:{line:1045,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1016},48:{loc:{start:{line:1016,column:14},end:{line:1016,column:69}},type:"binary-expr",locations:[{start:{line:1016,column:14},end:{line:1016,column:27}},{start:{line:1016,column:31},end:{line:1016,column:69}}],line:1016},49:{loc:{start:{line:1017,column:12},end:{line:1044,column:13}},type:"if",locations:[{start:{line:1017,column:12},end:{line:1044,column:13}},{start:{line:1039,column:19},end:{line:1044,column:13}}],line:1017},50:{loc:{start:{line:1048,column:10},end:{line:1101,column:11}},type:"switch",locations:[{start:{line:1049,column:12},end:{line:1063,column:19}},{start:{line:1064,column:12},end:{line:1065,column:31}},{start:{line:1067,column:12},end:{line:1068,column:45}},{start:{line:1070,column:12},end:{line:1070,column:30}},{start:{line:1071,column:12},end:{line:1071,column:27}},{start:{line:1072,column:12},end:{line:1098,column:19}},{start:{line:1099,column:12},end:{line:1100,column:19}}],line:1048},51:{loc:{start:{line:1073,column:14},end:{line:1079,column:15}},type:"if",locations:[{start:{line:1073,column:14},end:{line:1079,column:15}},{start:{line:1076,column:21},end:{line:1079,column:15}}],line:1073},52:{loc:{start:{line:1084,column:14},end:{line:1097,column:15}},type:"if",locations:[{start:{line:1084,column:14},end:{line:1097,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1084},53:{loc:{start:{line:1086,column:27},end:{line:1086,column:62}},type:"cond-expr",locations:[{start:{line:1086,column:46},end:{line:1086,column:58}},{start:{line:1086,column:61},end:{line:1086,column:62}}],line:1086},54:{loc:{start:{line:1094,column:16},end:{line:1096,column:17}},type:"if",locations:[{start:{line:1094,column:16},end:{line:1096,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1094},55:{loc:{start:{line:1107,column:12},end:{line:1109,column:13}},type:"if",locations:[{start:{line:1107,column:12},end:{line:1109,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1107},56:{loc:{start:{line:1124,column:10},end:{line:1127,column:11}},type:"if",locations:[{start:{line:1124,column:10},end:{line:1127,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1124},57:{loc:{start:{line:1136,column:12},end:{line:1143,column:13}},type:"if",locations:[{start:{line:1136,column:12},end:{line:1143,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1136},58:{loc:{start:{line:1137,column:14},end:{line:1138,column:47}},type:"binary-expr",locations:[{start:{line:1137,column:14},end:{line:1137,column:47}},{start:{line:1138,column:14},end:{line:1138,column:47}}],line:1137},59:{loc:{start:{line:1149,column:10},end:{line:1153,column:11}},type:"if",locations:[{start:{line:1149,column:10},end:{line:1153,column:11}},{start:{line:1151,column:17},end:{line:1153,column:11}}],line:1149},60:{loc:{start:{line:1154,column:10},end:{line:1158,column:11}},type:"if",locations:[{start:{line:1154,column:10},end:{line:1158,column:11}},{start:{line:1156,column:17},end:{line:1158,column:11}}],line:1154},61:{loc:{start:{line:1160,column:10},end:{line:1165,column:11}},type:"if",locations:[{start:{line:1160,column:10},end:{line:1165,column:11}},{start:{line:1163,column:17},end:{line:1165,column:11}}],line:1160},62:{loc:{start:{line:1169,column:12},end:{line:1175,column:13}},type:"if",locations:[{start:{line:1169,column:12},end:{line:1175,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1169},63:{loc:{start:{line:1170,column:14},end:{line:1171,column:47}},type:"binary-expr",locations:[{start:{line:1170,column:14},end:{line:1170,column:47}},{start:{line:1171,column:14},end:{line:1171,column:47}}],line:1170},64:{loc:{start:{line:1210,column:6},end:{line:1215,column:7}},type:"if",locations:[{start:{line:1210,column:6},end:{line:1215,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1210},65:{loc:{start:{line:1224,column:6},end:{line:1359,column:7}},type:"switch",locations:[{start:{line:1225,column:8},end:{line:1225,column:19}},{start:{line:1226,column:8},end:{line:1264,column:15}},{start:{line:1265,column:8},end:{line:1275,column:15}},{start:{line:1276,column:8},end:{line:1287,column:15}},{start:{line:1288,column:8},end:{line:1305,column:15}},{start:{line:1306,column:8},end:{line:1306,column:27}},{start:{line:1307,column:8},end:{line:1323,column:15}},{start:{line:1324,column:8},end:{line:1328,column:15}},{start:{line:1329,column:8},end:{line:1341,column:15}},{start:{line:1342,column:8},end:{line:1342,column:32}},{start:{line:1343,column:8},end:{line:1353,column:15}},{start:{line:1354,column:8},end:{line:1358,column:15}}],line:1224},66:{loc:{start:{line:1233,column:10},end:{line:1238,column:11}},type:"if",locations:[{start:{line:1233,column:10},end:{line:1238,column:11}},{start:{line:1235,column:17},end:{line:1238,column:11}}],line:1233},67:{loc:{start:{line:1233,column:14},end:{line:1233,column:77}},type:"binary-expr",locations:[{start:{line:1233,column:14},end:{line:1233,column:26}},{start:{line:1233,column:30},end:{line:1233,column:51}},{start:{line:1233,column:55},end:{line:1233,column:77}}],line:1233},68:{loc:{start:{line:1235,column:17},end:{line:1238,column:11}},type:"if",locations:[{start:{line:1235,column:17},end:{line:1238,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1235},69:{loc:{start:{line:1240,column:10},end:{line:1242,column:11}},type:"if",locations:[{start:{line:1240,column:10},end:{line:1242,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1240},70:{loc:{start:{line:1245,column:12},end:{line:1261,column:13}},type:"if",locations:[{start:{line:1245,column:12},end:{line:1261,column:13}},{start:{line:1253,column:19},end:{line:1261,column:13}}],line:1245},71:{loc:{start:{line:1268,column:10},end:{line:1270,column:11}},type:"if",locations:[{start:{line:1268,column:10},end:{line:1270,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1268},72:{loc:{start:{line:1277,column:10},end:{line:1279,column:11}},type:"if",locations:[{start:{line:1277,column:10},end:{line:1279,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1277},73:{loc:{start:{line:1277,column:14},end:{line:1277,column:52}},type:"binary-expr",locations:[{start:{line:1277,column:14},end:{line:1277,column:25}},{start:{line:1277,column:29},end:{line:1277,column:52}}],line:1277},74:{loc:{start:{line:1280,column:10},end:{line:1282,column:11}},type:"if",locations:[{start:{line:1280,column:10},end:{line:1282,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1280},75:{loc:{start:{line:1280,column:14},end:{line:1280,column:48}},type:"binary-expr",locations:[{start:{line:1280,column:14},end:{line:1280,column:25}},{start:{line:1280,column:29},end:{line:1280,column:48}}],line:1280},76:{loc:{start:{line:1289,column:10},end:{line:1291,column:11}},type:"if",locations:[{start:{line:1289,column:10},end:{line:1291,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1289},77:{loc:{start:{line:1289,column:14},end:{line:1289,column:52}},type:"binary-expr",locations:[{start:{line:1289,column:14},end:{line:1289,column:25}},{start:{line:1289,column:29},end:{line:1289,column:52}}],line:1289},78:{loc:{start:{line:1292,column:10},end:{line:1294,column:11}},type:"if",locations:[{start:{line:1292,column:10},end:{line:1294,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1292},79:{loc:{start:{line:1292,column:14},end:{line:1292,column:48}},type:"binary-expr",locations:[{start:{line:1292,column:14},end:{line:1292,column:25}},{start:{line:1292,column:29},end:{line:1292,column:48}}],line:1292},80:{loc:{start:{line:1295,column:10},end:{line:1297,column:11}},type:"if",locations:[{start:{line:1295,column:10},end:{line:1297,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1295},81:{loc:{start:{line:1295,column:14},end:{line:1295,column:49}},type:"binary-expr",locations:[{start:{line:1295,column:14},end:{line:1295,column:25}},{start:{line:1295,column:29},end:{line:1295,column:49}}],line:1295},82:{loc:{start:{line:1308,column:10},end:{line:1310,column:11}},type:"if",locations:[{start:{line:1308,column:10},end:{line:1310,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1308},83:{loc:{start:{line:1308,column:14},end:{line:1308,column:52}},type:"binary-expr",locations:[{start:{line:1308,column:14},end:{line:1308,column:25}},{start:{line:1308,column:29},end:{line:1308,column:52}}],line:1308},84:{loc:{start:{line:1311,column:10},end:{line:1313,column:11}},type:"if",locations:[{start:{line:1311,column:10},end:{line:1313,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1311},85:{loc:{start:{line:1311,column:14},end:{line:1311,column:48}},type:"binary-expr",locations:[{start:{line:1311,column:14},end:{line:1311,column:25}},{start:{line:1311,column:29},end:{line:1311,column:48}}],line:1311},86:{loc:{start:{line:1318,column:10},end:{line:1320,column:11}},type:"if",locations:[{start:{line:1318,column:10},end:{line:1320,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1318},87:{loc:{start:{line:1346,column:10},end:{line:1348,column:11}},type:"if",locations:[{start:{line:1346,column:10},end:{line:1348,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1346},88:{loc:{start:{line:1346,column:14},end:{line:1346,column:47}},type:"binary-expr",locations:[{start:{line:1346,column:14},end:{line:1346,column:25}},{start:{line:1346,column:29},end:{line:1346,column:47}}],line:1346},89:{loc:{start:{line:1349,column:10},end:{line:1351,column:11}},type:"if",locations:[{start:{line:1349,column:10},end:{line:1351,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1349},90:{loc:{start:{line:1366,column:6},end:{line:1383,column:7}},type:"if",locations:[{start:{line:1366,column:6},end:{line:1383,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1366},91:{loc:{start:{line:1386,column:18},end:{line:1386,column:79}},type:"cond-expr",locations:[{start:{line:1386,column:39},end:{line:1386,column:58}},{start:{line:1386,column:61},end:{line:1386,column:79}}],line:1386},92:{loc:{start:{line:1506,column:10},end:{line:1508,column:11}},type:"if",locations:[{start:{line:1506,column:10},end:{line:1508,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1506},93:{loc:{start:{line:1509,column:10},end:{line:1511,column:11}},type:"if",locations:[{start:{line:1509,column:10},end:{line:1511,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1509},94:{loc:{start:{line:1512,column:10},end:{line:1514,column:11}},type:"if",locations:[{start:{line:1512,column:10},end:{line:1514,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1512},95:{loc:{start:{line:1525,column:43},end:{line:1525,column:56}},type:"default-arg",locations:[{start:{line:1525,column:51},end:{line:1525,column:56}}],line:1525},96:{loc:{start:{line:1529,column:6},end:{line:1535,column:7}},type:"if",locations:[{start:{line:1529,column:6},end:{line:1535,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1529},97:{loc:{start:{line:1531,column:8},end:{line:1534,column:9}},type:"if",locations:[{start:{line:1531,column:8},end:{line:1534,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1531},98:{loc:{start:{line:1537,column:6},end:{line:1541,column:7}},type:"if",locations:[{start:{line:1537,column:6},end:{line:1541,column:7}},{start:{line:1539,column:13},end:{line:1541,column:7}}],line:1537},99:{loc:{start:{line:1549,column:6},end:{line:1556,column:7}},type:"if",locations:[{start:{line:1549,column:6},end:{line:1556,column:7}},{start:{line:1553,column:13},end:{line:1556,column:7}}],line:1549},100:{loc:{start:{line:1557,column:6},end:{line:1560,column:7}},type:"if",locations:[{start:{line:1557,column:6},end:{line:1560,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1557},101:{loc:{start:{line:1574,column:8},end:{line:1576,column:9}},type:"if",locations:[{start:{line:1574,column:8},end:{line:1576,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1574},102:{loc:{start:{line:1577,column:8},end:{line:1579,column:9}},type:"if",locations:[{start:{line:1577,column:8},end:{line:1579,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1577},103:{loc:{start:{line:1580,column:8},end:{line:1582,column:9}},type:"if",locations:[{start:{line:1580,column:8},end:{line:1582,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1580},104:{loc:{start:{line:1583,column:8},end:{line:1585,column:9}},type:"if",locations:[{start:{line:1583,column:8},end:{line:1585,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1583},105:{loc:{start:{line:1591,column:19},end:{line:1591,column:32}},type:"default-arg",locations:[{start:{line:1591,column:26},end:{line:1591,column:32}}],line:1591},106:{loc:{start:{line:1593,column:6},end:{line:1623,column:7}},type:"if",locations:[{start:{line:1593,column:6},end:{line:1623,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1593},107:{loc:{start:{line:1594,column:8},end:{line:1622,column:9}},type:"if",locations:[{start:{line:1594,column:8},end:{line:1622,column:9}},{start:{line:1598,column:15},end:{line:1622,column:9}}],line:1594},108:{loc:{start:{line:1599,column:10},end:{line:1621,column:11}},type:"if",locations:[{start:{line:1599,column:10},end:{line:1621,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1599},109:{loc:{start:{line:1601,column:12},end:{line:1619,column:13}},type:"if",locations:[{start:{line:1601,column:12},end:{line:1619,column:13}},{start:{line:1610,column:19},end:{line:1619,column:13}}],line:1601},110:{loc:{start:{line:1602,column:14},end:{line:1603,column:56}},type:"binary-expr",locations:[{start:{line:1602,column:14},end:{line:1602,column:33}},{start:{line:1603,column:15},end:{line:1603,column:30}},{start:{line:1603,column:34},end:{line:1603,column:55}}],line:1602},111:{loc:{start:{line:1610,column:19},end:{line:1619,column:13}},type:"if",locations:[{start:{line:1610,column:19},end:{line:1619,column:13}},{start:{line:1616,column:19},end:{line:1619,column:13}}],line:1610},112:{loc:{start:{line:1632,column:10},end:{line:1655,column:11}},type:"if",locations:[{start:{line:1632,column:10},end:{line:1655,column:11}},{start:{line:1650,column:17},end:{line:1655,column:11}}],line:1632},113:{loc:{start:{line:1633,column:12},end:{line:1641,column:13}},type:"if",locations:[{start:{line:1633,column:12},end:{line:1641,column:13}},{start:{line:1637,column:19},end:{line:1641,column:13}}],line:1633},114:{loc:{start:{line:1642,column:12},end:{line:1645,column:13}},type:"if",locations:[{start:{line:1642,column:12},end:{line:1645,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1642},115:{loc:{start:{line:1662,column:10},end:{line:1668,column:11}},type:"if",locations:[{start:{line:1662,column:10},end:{line:1668,column:11}},{start:{line:1665,column:17},end:{line:1668,column:11}}],line:1662},116:{loc:{start:{line:1678,column:6},end:{line:1681,column:7}},type:"if",locations:[{start:{line:1678,column:6},end:{line:1681,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1678},117:{loc:{start:{line:1686,column:6},end:{line:1688,column:7}},type:"if",locations:[{start:{line:1686,column:6},end:{line:1688,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1686},118:{loc:{start:{line:1703,column:10},end:{line:1709,column:11}},type:"if",locations:[{start:{line:1703,column:10},end:{line:1709,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1703},119:{loc:{start:{line:1759,column:6},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1759,column:6},end:{line:1786,column:7}},{start:{line:1762,column:13},end:{line:1786,column:7}}],line:1759},120:{loc:{start:{line:1762,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1762,column:13},end:{line:1786,column:7}},{start:{line:1772,column:13},end:{line:1786,column:7}}],line:1762},121:{loc:{start:{line:1772,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1772,column:13},end:{line:1786,column:7}},{start:{line:1780,column:13},end:{line:1786,column:7}}],line:1772},122:{loc:{start:{line:1774,column:8},end:{line:1776,column:9}},type:"if",locations:[{start:{line:1774,column:8},end:{line:1776,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1774},123:{loc:{start:{line:1780,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1780,column:13},end:{line:1786,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1780},124:{loc:{start:{line:1782,column:8},end:{line:1784,column:9}},type:"if",locations:[{start:{line:1782,column:8},end:{line:1784,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1782},125:{loc:{start:{line:1812,column:6},end:{line:1814,column:7}},type:"if",locations:[{start:{line:1812,column:6},end:{line:1814,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1812},126:{loc:{start:{line:1812,column:10},end:{line:1812,column:58}},type:"binary-expr",locations:[{start:{line:1812,column:10},end:{line:1812,column:40}},{start:{line:1812,column:44},end:{line:1812,column:58}}],line:1812},127:{loc:{start:{line:1822,column:8},end:{line:1825,column:9}},type:"if",locations:[{start:{line:1822,column:8},end:{line:1825,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1822}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0,584:0,585:0,586:0,587:0,588:0,589:0,590:0,591:0,592:0,593:0,594:0,595:0,596:0,597:0,598:0,599:0,600:0,601:0,602:0,603:0,604:0,605:0,606:0,607:0,608:0,609:0,610:0,611:0,612:0,613:0,614:0,615:0,616:0,617:0,618:0,619:0,620:0,621:0,622:0,623:0,624:0,625:0,626:0,627:0,628:0,629:0,630:0,631:0,632:0,633:0,634:0,635:0,636:0,637:0,638:0,639:0,640:0,641:0,642:0,643:0,644:0,645:0,646:0,647:0,648:0,649:0,650:0,651:0,652:0,653:0,654:0,655:0,656:0,657:0,658:0,659:0,660:0,661:0,662:0,663:0,664:0,665:0,666:0,667:0,668:0,669:0,670:0,671:0,672:0,673:0,674:0,675:0,676:0,677:0,678:0,679:0,680:0,681:0,682:0,683:0,684:0,685:0,686:0,687:0,688:0,689:0,690:0,691:0,692:0,693:0,694:0,695:0,696:0,697:0,698:0,699:0,700:0,701:0,702:0,703:0,704:0,705:0,706:0,707:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0],20:[0,0],21:[0,0],22:[0,0],23:[0,0,0],24:[0,0],25:[0,0],26:[0],27:[0,0],28:[0,0],29:[0,0],30:[0,0,0],31:[0,0],32:[0,0,0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0,0,0,0,0,0,0,0,0,0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0,0,0,0,0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0,0,0,0,0,0,0,0,0,0,0],66:[0,0],67:[0,0,0],68:[0,0],69:[0,0],70:[0,0],71:[0,0],72:[0,0],73:[0,0],74:[0,0],75:[0,0],76:[0,0],77:[0,0],78:[0,0],79:[0,0],80:[0,0],81:[0,0],82:[0,0],83:[0,0],84:[0,0],85:[0,0],86:[0,0],87:[0,0],88:[0,0],89:[0,0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0,0],95:[0],96:[0,0],97:[0,0],98:[0,0],99:[0,0],100:[0,0],101:[0,0],102:[0,0],103:[0,0],104:[0,0],105:[0],106:[0,0],107:[0,0],108:[0,0],109:[0,0],110:[0,0,0],111:[0,0],112:[0,0],113:[0,0],114:[0,0],115:[0,0],116:[0,0],117:[0,0],118:[0,0],119:[0,0],120:[0,0],121:[0,0],122:[0,0],123:[0,0],124:[0,0],125:[0,0],126:[0,0],127:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAsYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <div class=\"grid\">\n <div\n class=\"item\"\n v-for=\"def in screens\"\n :key=\"def.id\"\n :id=\"screenId(def.id)\"\n ref=\"gridItem\"\n >\n <div class=\"item-content\">\n <openc3-screen\n :target=\"def.target\"\n :screen=\"def.screen\"\n :definition=\"def.definition\"\n :keywords=\"screenKeywords\"\n :initialFloated=\"true\"\n :initialTop=\"def.top\"\n :initialLeft=\"def.left\"\n :initialZ=\"3\"\n :minZ=\"3\"\n :fixFloated=\"true\"\n :count=\"def.count\"\n @close-screen=\"closeScreen(def.id)\"\n @delete-screen=\"closeScreen(def.id)\"\n />\n </div>\n </div>\n </div>\n <v-card style=\"padding: 10px\">\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n icon\n @click=\"reloadFile\"\n :disabled=\"filename === NEW_FILENAME\"\n >\n <v-icon>mdi-cached</v-icon>\n </v-btn>\n </template>\n <span> Reload File </span>\n </v-tooltip>\n <v-select\n v-model=\"filenameSelect\"\n @change=\"fileNameChanged\"\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n id=\"filename\"\n data-test=\"filename\"\n style=\"width: 300px\"\n dense\n outlined\n hide-details\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div v-else style=\"width: 40px; height: 40px\" class=\"ml-2 mr-2\"></div>\n\n \x3c!-- Disable the Start button when Suite Runner controls are showing --\x3e\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"envDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n </v-card>\n \x3c!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize --\x3e\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div class=\"editorbox pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre\n ref=\"editor\"\n class=\"editor\"\n @contextmenu.prevent=\"showExecuteSelectionMenu\"\n ></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n link\n :key=\"item.label\"\n :disabled=\"scriptId\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n :disabled=\"!scriptId\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" />\n </div>\n </multipane>\n \x3c!--- MENUS ---\x3e\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <file-dialog\n v-if=\"file.show\"\n v-model=\"file.show\"\n :title=\"file.title\"\n :message=\"file.message\"\n :multiple=\"file.multiple\"\n :filter=\"file.filter\"\n @response=\"fileDialogCallback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <event-list-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :events=\"inputMetadata.events\"\n :utc=\"false\"\n new-metadata\n @close=\"inputMetadata.callback\"\n />\n <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n :multiple=\"prompt.multiple\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/mode-python'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@openc3/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport EventListDialog from '@openc3/tool-common/src/tools/calendar/Dialogs/EventListDialog'\nimport OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\n// Matches target_file.rb TEMP_FOLDER\nconst TEMP_FOLDER = '__TEMP__'\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n Openc3Screen,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n EventListDialog,\n OverridesDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'COSMOS Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n filenameSelect: null,\n currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: null,\n scriptId: null,\n startOrGoButton: START,\n startOrGoDisabled: false,\n envDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n messages: [],\n maxArrayLength: 200,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n file: {\n show: false,\n message: '',\n directory: null,\n filter: '*',\n multiple: false,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n events: [],\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n screens: [],\n screenKeywords: null,\n idCounter: 0,\n updateCounter: 0,\n }\n },\n computed: {\n fileList: function () {\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename)\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n // New filenames should not indicate modified\n if (this.filename === NEW_FILENAME) return NEW_FILENAME\n return `${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'New Ruby Test Suite',\n icon: 'mdi-language-ruby',\n disabled: this.scriptId,\n command: () => {\n this.newRubyTestSuite()\n },\n },\n // {\n // label: 'New Python Test Suite',\n // icon: 'mdi-language-python',\n // disabled: this.scriptId,\n // command: () => {\n // this.newPythonTestSuite()\n // },\n // },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n disabled: this.scriptId,\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n disabled: this.scriptId,\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n disabled: this.scriptId,\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n disabled: this.scriptId,\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n disabled: this.scriptId,\n command: () => {\n this.inputMetadata.callback = () => {}\n this.showMetadata()\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Syntax Check',\n icon: 'mdi-language-ruby',\n disabled: this.scriptId,\n command: () => {\n this.syntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n disabled: this.scriptId,\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n disabled: this.scriptId,\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId,\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n disabled: this.scriptId,\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n disabled: this.scriptId,\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear local breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n fullFilename: function (filename) {\n this.filenameSelect = filename\n if (filename === NEW_FILENAME) {\n localStorage.removeItem('script_runner__filename')\n } else {\n localStorage['script_runner__filename'] = filename\n }\n },\n },\n created: function () {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n\n Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.screenKeywords = response.data\n })\n },\n mounted: async function () {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n // Public apis in api_shared but not in OpenC3Api\n const api_shared = [\n 'check',\n 'check_raw',\n 'check_formatted',\n 'check_with_units',\n 'check_exception',\n 'check_tolerance',\n 'check_expression',\n 'wait',\n 'wait_tolerance',\n 'wait_expression',\n 'wait_check',\n 'wait_check_tolerance',\n 'wait_check_expression',\n 'wait_packet',\n 'wait_check_packet',\n 'disable_instrumentation',\n 'set_line_delay',\n 'get_line_delay',\n 'set_max_output',\n 'get_max_output',\n ]\n const openC3RubyMode = this.buildOpenC3RubyMode(api_shared)\n const openC3PythonMode = this.buildOpenC3PythonMode(api_shared)\n this.openC3RubyMode = new openC3RubyMode()\n this.openC3PythonMode = new openC3PythonMode()\n this.editor.session.setMode(this.openC3RubyMode)\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = new Cable('/script-api/cable')\n await this.tryLoadRunningScript(this.$route.params.id)\n this.autoSaveInterval = setInterval(async () => {\n // Only save if not-running, modified, and visible (e.g. not open in another tab)\n if (\n !this.scriptId &&\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n await this.saveFile('auto')\n }\n }, 60000) // Save every minute\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.autoSaveInterval != null) {\n clearInterval(this.autoSaveInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n showMetadata() {\n Api.get('/openc3-api/metadata').then((response) => {\n // TODO: This is how Calendar creates new metadata items via makeMetadataEvent\n this.inputMetadata.events = response.data.map((event) => {\n return {\n name: 'Metadata',\n start: new Date(event.start * 1000),\n end: new Date(event.start * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n })\n this.inputMetadata.show = true\n })\n },\n buildOpenC3RubyMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var RubyHighlightRules = ace.require(\n 'ace/mode/ruby_highlight_rules'\n ).RubyHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n RubyHighlightRules.call(this)\n // add openc3 rules to the ruby rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, RubyHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent'\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle'\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var RubyMode = ace.require('ace/mode/ruby').Mode\n oop.inherits(Mode, RubyMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n buildOpenC3PythonMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var PythonHighlightRules = ace.require(\n 'ace/mode/python_highlight_rules'\n ).PythonHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n PythonHighlightRules.call(this)\n // add openc3 rules to the python rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, PythonHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent'\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle'\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/pythonic').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var PythonMode = ace.require('ace/mode/python').Mode\n oop.inherits(Mode, PythonMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n // This only gets called when the user changes the filename dropdown\n fileNameChanged(filename) {\n // Split off the '*' which indicates modified\n filename = filename.split('*')[0]\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1\n ),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.initScriptStart()\n this.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: `Running Script ${id} not found`,\n body: 'Check the Completed Scripts below ...',\n })\n this.showScripts = true\n } else {\n if (response.data.length !== 0) {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\n }\n if (localStorage['script_runner__filename']) {\n this.filename = localStorage['script_runner__filename']\n this.reloadFile()\n }\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n executeText: function (text, breakpoints = []) {\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(`/script-api/scripts/${selectionTempFilename}/run`, {\n data: {\n environment: this.scriptEnvironment.env,\n },\n })\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n // Don't allow setting breakpoints while running\n if (!this.scriptId) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n async keydown(event) {\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n await this.saveFile()\n } else if (\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveAs()\n }\n },\n onChange(event) {\n // Don't track changes when we're running or read-only (locked)\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n initScriptStart() {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.envDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.editor.setReadOnly(true)\n },\n scriptStart(id) {\n this.scriptId = id\n this.cable\n .createSubscription(\n 'RunningScriptChannel',\n window.openc3Scope,\n {\n received: (data) => this.received(data),\n },\n {\n id: this.scriptId,\n }\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n scriptComplete() {\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.envDisabled = false\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n // Ensure stopped, if the script has an error we don't get the server stopped message\n this.state = 'stopped'\n this.fatal = false\n this.scriptId = null\n this.currentFilename = null\n // We may have changed the contents (if there were sub-scripts)\n // so don't let the undo manager think this is a chanage\n this.editor.session.getUndoManager().reset()\n this.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n async start(event, suiteRunner = null) {\n // Initialize variables and disable buttons before actually posting.\n // This prevents delays in the backend from delaying frontend changes\n // like disabling start which could allow users to click start twice.\n this.initScriptStart()\n await this.saveFile('start')\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data })\n .then((response) => {\n this.scriptStart(response.data)\n })\n .catch((error) => {\n this.scriptComplete()\n })\n },\n go() {\n // Ensure we're on the correct filename when we hit go\n // They may have changed it using the drop down\n this.filenameSelect = this.currentFilename\n this.fileNameChanged(this.currentFilename)\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n received(data) {\n this.cable.recordPing()\n // eslint-disable-next-line\n // console.log(data) // Uncomment for debugging\n let index = 0\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n this.currentFilename = data.filename\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine'\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n if (this.state == 'fatal') {\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n } else {\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n }\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n break\n case 'output':\n // data.line can consist of multiple lines split by newlines\n // thus we split and only output if the content is not empty\n for (const line of data.line.split('\\n')) {\n if (line) {\n this.messages.unshift({ message: line })\n }\n }\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n break\n case 'step':\n this.showDebug = true\n break\n case 'screen':\n let found = false\n let definition = {}\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n definition = screen\n found = true\n break\n }\n index += 1\n }\n this.$set(definition, 'target', data.target_name)\n this.$set(definition, 'screen', data.screen_name)\n this.$set(definition, 'definition', data.definition)\n if (data.x) {\n this.$set(definition, 'left', data.x)\n } else {\n this.$set(definition, 'left', 0)\n }\n if (data.y) {\n this.$set(definition, 'top', data.y)\n } else {\n this.$set(definition, 'top', 0)\n }\n this.$set(definition, 'count', this.updateCounter++)\n if (!found) {\n this.$set(definition, 'id', this.idCounter++)\n this.$set(this.screens, this.screens.length, definition)\n } else {\n this.$set(this.screens, index, definition)\n }\n break\n case 'clearscreen':\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n break\n case 'clearallscreens':\n this.screens = []\n break\n case 'downloadfile':\n const blob = new Blob([data.text], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', data.filename)\n link.click()\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n multiple: this.prompt.multiple,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = []\n this.prompt.multiple = null\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.buttons = [{ text: 'Yes', value: 'Yes' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n if (data.kwargs && data.kwargs.multiple) {\n this.prompt.multiple = true\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'metadata_input':\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n this.showMetadata()\n break\n case 'open_file_dialog':\n case 'open_files_dialog':\n this.file.title = data.args[0]\n this.file.message = data.args[1]\n if (data.kwargs && data.kwargs.filter) {\n this.file.filter = data.kwargs.filter\n }\n if (data.method == 'open_files_dialog') {\n this.file.multiple = true\n }\n this.file.show = true\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n async fileDialogCallback(files) {\n this.file.show = false // Close the dialog\n // Set fileNames to 'Cancel' in case they cancelled\n // otherwise we will populate it with the file names they selected\n let fileNames = 'Cancel'\n if (files != 'Cancel') {\n fileNames = []\n await files.forEach(async (file) => {\n fileNames.push(file.name)\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${window.openc3Scope}/tmp/${file.name}`\n )}?bucket=OPENC3_CONFIG_BUCKET`\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: file,\n })\n })\n }\n await Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.file.multiple ? 'open_files_dialog' : 'open_file_dialog',\n answer: fileNames,\n prompt_id: this.activePromptId,\n },\n })\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.unlockFile()\n this.filename = NEW_FILENAME\n this.currentFilename = null\n this.tempFilename = null\n this.files = {} // Clear the cached file list\n this.editor.session.setValue('')\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n },\n async newRubyTestSuite() {\n this.newFile()\n this.editor.session.setValue(`require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n`)\n await this.saveFile('auto')\n },\n async newPythonTestSuite() {\n this.newFile()\n this.editor.session.setValue(`from openc3.script import *\nfrom openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group('Power')\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n`)\n await this.saveFile('auto')\n },\n openFile() {\n this.fileOpen = true\n },\n async reloadFile() {\n // Disable start while we're loading the file so we don't hit Start\n // before it's fully loaded and then save over it with a blank file\n this.startOrGoDisabled = true\n Api.get(`/script-api/scripts/${this.filename}`)\n .then((response) => {\n const file = {\n name: this.filename,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.setFile({ file, locked, breakpoints }, true)\n })\n .catch((error) => {\n this.$emit('error', `Failed to open ${this.selectedFile}. ${error}`)\n this.clear()\n })\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }, local = false) {\n this.files = {} // Clear the cached file list\n // Split off the ' *' which indicates a file is modified on the server\n let newFilename = file.name.split('*')[0]\n if (local === false) {\n // We only need to unlock if the file is different\n if (this.filename !== newFilename) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n }\n this.filename = newFilename\n if (this.filename.split('.').pop() === 'py') {\n this.editor.session.setMode(this.openC3PythonMode)\n } else {\n this.editor.session.setMode(this.openC3RubyMode)\n }\n this.currentFilename = null\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.envDisabled = false\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = false\n this.startOrGoDisabled = false\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n detectLanguage() {\n let rubyRegex1 = new RegExp('^\\\\s*(require|load|puts) ')\n let pythonRegex1 = new RegExp('^\\\\s*(import|from) ')\n let rubyRegex2 = new RegExp('^\\\\s*end\\\\s*$')\n let pythonRegex2 = new RegExp(\n '^\\\\s*(if|def|while|else|elif|class).*:\\\\s*$'\n )\n let text = this.editor.getValue()\n let lines = text.split('\\n')\n for (let line of lines) {\n if (line.match(rubyRegex1)) {\n return 'ruby'\n }\n if (line.match(pythonRegex1)) {\n return 'python'\n }\n if (line.match(rubyRegex2)) {\n return 'ruby'\n }\n if (line.match(pythonRegex2)) {\n return 'python'\n }\n }\n return 'unknown' // otherwise unknown\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n async saveFile(type = 'menu') {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n return\n } else {\n if (this.tempFilename === null) {\n let language = this.detectLanguage()\n if (\n language === 'ruby' ||\n (type !== 'auto' && language == 'unknown')\n ) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n } else if (language === 'python') {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.py'\n } else {\n // No autosave for unknown language\n return\n }\n this.filename = this.tempFilename\n }\n }\n }\n this.showSave = true\n await Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n } else {\n this.startOrGoDisabled = false\n this.suiteRunner = false\n this.suiteMap = {}\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n this.lockFile() // Ensure this file is locked for editing\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n },\n saveAs() {\n this.showSaveAs = true\n },\n async saveAsFilename(filename) {\n this.filename = filename.split('*')[0]\n this.currentFilename = null\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n await this.saveFile('menu')\n },\n delete() {\n let filename = this.filename\n if (this.tempFilename) {\n filename = this.tempFilename\n }\n this.$dialog\n .confirm(`Permanently delete file: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n syntaxCheck() {\n Api.post(`/script-api/scripts/${this.filename}/syntax`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n // Prevent the cursor/caret from moving to the front\n event.preventDefault()\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n screenId(id) {\n return 'scriptRunnerScreen' + id\n },\n closeScreen(id) {\n let index = 0\n for (screen of this.screens) {\n if (screen.id == id) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding: 0px;\n}\n.editorbox {\n height: 50vh;\n}\n.editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state :deep(input) {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2a9c5c33537bf130160b84c4e5bbeb66f7307c2c"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Ri=function(){return o},o}Ri();var Di=(Ri().s[0]++,"__TEMP__"),Ii=(Ri().s[1]++,"<Untitled>"),Oi=(Ri().s[2]++,"Start"),Ni=(Ri().s[3]++,"Go"),Zi=(Ri().s[4]++,"Pause"),Li=(Ri().s[5]++,"Retry"),Fi={components:{FileOpenSaveDialog:x,Openc3Screen:Pt,EnvironmentDialog:R,Multipane:v.x,MultipaneResizer:v.P,TopBar:W,AskDialog:X,FileDialog:se,InformationDialog:Ae,EventListDialog:_n,OverridesDialog:Tn,PromptDialog:Fn,ResultsDialog:Gn,ScriptEnvironmentDialog:Qn,SimpleTextDialog:L,SuiteRunner:at,RunningScripts:Ti,ScriptLogMessages:ht},data:function(){return Ri().f[0]++,Ri().s[6]++,{title:"COSMOS Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},filenameSelect:null,currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:null,scriptId:null,startOrGoButton:Oi,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:Zi,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:Ii,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:h.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){Ri().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){Ri().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){Ri().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,events:[],callback:function(){Ri().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new ii,showScripts:!1,showOverrides:!1,activePromptId:"",api:null,screens:[],screenKeywords:null,idCounter:0,updateCounter:0}},computed:{fileList:function(){Ri().f[5]++;var e=(Ri().s[7]++,Object.keys(this.files));return Ri().s[8]++,e.push(this.fullFilename),Ri().s[9]++,(0,u.Z)(new Set(e))},environmentIcon:function(){return Ri().f[6]++,Ri().s[10]++,this.scriptEnvironment.env.length>0?(Ri().b[0][0]++,"mdi-bookmark"):(Ri().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return Ri().f[7]++,Ri().s[11]++,this.scriptEnvironment.env.length>0?(Ri().b[1][0]++,"primary"):(Ri().b[1][1]++,"")},readOnly:function(){return Ri().f[8]++,Ri().s[12]++,!!this.lockedBy},fullFilename:function(){return Ri().f[9]++,Ri().s[13]++,this.currentFilename?(Ri().b[2][0]++,Ri().s[14]++,this.currentFilename):(Ri().b[2][1]++,Ri().s[15]++,this.filename===Ii?(Ri().b[3][0]++,Ri().s[16]++,Ii):(Ri().b[3][1]++,Ri().s[17]++,"".concat(this.filename," ").concat(this.fileModified).trim()))},filenameOrBlank:function(){return Ri().f[10]++,Ri().s[18]++,this.filename===Ii?(Ri().b[4][0]++,""):(Ri().b[4][1]++,this.filename)},menus:function(){var e=this;return Ri().f[11]++,Ri().s[19]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",disabled:this.scriptId,command:function(){Ri().f[12]++,Ri().s[20]++,e.newFile()}},{label:"New Ruby Test Suite",icon:"mdi-language-ruby",disabled:this.scriptId,command:function(){Ri().f[13]++,Ri().s[21]++,e.newRubyTestSuite()}},{label:"Open File",icon:"mdi-folder-open",disabled:this.scriptId,command:function(){Ri().f[14]++,Ri().s[22]++,e.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Ri().f[15]++,Ri().s[23]++,e.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Ri().f[16]++,Ri().s[24]++,e.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",disabled:this.scriptId,command:function(){Ri().f[17]++,Ri().s[25]++,e.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",disabled:this.scriptId,command:function(){Ri().f[18]++,Ri().s[26]++,e.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){Ri().f[19]++,Ri().s[27]++,e.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",disabled:this.scriptId,command:function(){Ri().f[20]++,Ri().s[28]++,e.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:function(){Ri().f[21]++,Ri().s[29]++,e.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",disabled:this.scriptId,command:function(){Ri().f[22]++,Ri().s[30]++,e.showEnvironment=!e.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",disabled:this.scriptId,command:function(){Ri().f[23]++,Ri().s[31]++,e.inputMetadata.callback=function(){Ri().f[24]++},Ri().s[32]++,e.showMetadata()}},{label:"Overrides",icon:"mdi-swap-horizontal",command:function(){Ri().f[25]++,Ri().s[33]++,e.showOverrides=!0}},{divider:!0},{label:"Syntax Check",icon:"mdi-language-ruby",disabled:this.scriptId,command:function(){Ri().f[26]++,Ri().s[34]++,e.syntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",disabled:this.scriptId,command:function(){Ri().f[27]++,Ri().s[35]++,e.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",disabled:this.scriptId,command:function(){Ri().f[28]++,Ri().s[36]++,e.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:!this.scriptId,command:function(){Ri().f[29]++,Ri().s[37]++,e.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){Ri().f[30]++,Ri().s[38]++,e.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",disabled:this.scriptId,command:function(){Ri().f[31]++,Ri().s[39]++,e.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",disabled:this.scriptId,command:function(){Ri().f[32]++,Ri().s[40]++,e.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return Ri().f[33]++,Ri().s[41]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear local breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(e){Ri().f[34]++,Ri().s[42]++,this.showReadOnlyToast=e,Ri().s[43]++,this.suiteRunner?Ri().b[5][1]++:(Ri().b[5][0]++,Ri().s[44]++,this.startOrGoDisabled=e),Ri().s[45]++,this.editor.setReadOnly(e)},fullFilename:function(e){Ri().f[35]++,Ri().s[46]++,this.filenameSelect=e,Ri().s[47]++,e===Ii?(Ri().b[6][0]++,Ri().s[48]++,localStorage.removeItem("script_runner__filename")):(Ri().b[6][1]++,Ri().s[49]++,localStorage["script_runner__filename"]=e)}},created:function(){var e=this;Ri().f[36]++,Ri().s[50]++,this.api=new V.k,Ri().s[51]++,this.api.ensure_offline_access(),Ri().s[52]++,this.NEW_FILENAME=Ii,Ri().s[53]++,window.onbeforeunload=this.unlockFile,Ri().s[54]++,p.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(n){Ri().f[37]++,Ri().s[55]++,e.screenKeywords=n.data}))},mounted:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(){var n,t,i,l,s=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Ri().f[38]++,Ri().s[56]++,this.editor=h.edit(this.$refs.editor),Ri().s[57]++,this.editor.setTheme("ace/theme/twilight"),Ri().s[58]++,n=["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"],Ri().s[59]++,t=this.buildOpenC3RubyMode(n),Ri().s[60]++,i=this.buildOpenC3PythonMode(n),Ri().s[61]++,this.openC3RubyMode=new t,Ri().s[62]++,this.openC3PythonMode=new i,Ri().s[63]++,this.editor.session.setMode(this.openC3RubyMode),Ri().s[64]++,this.editor.session.setTabSize(2),Ri().s[65]++,this.editor.session.setUseWrapMode(!0),Ri().s[66]++,this.editor.$blockScrolling=1/0,Ri().s[67]++,this.editor.setOption("enableBasicAutocompletion",!0),Ri().s[68]++,this.editor.setOption("enableLiveAutocompletion",!0),Ri().s[69]++,this.editor.completers=[new Yt,new Jt],Ri().s[70]++,this.editor.setHighlightActiveLine(!1),Ri().s[71]++,this.editor.focus(),Ri().s[72]++,this.editor.on("guttermousedown",this.toggleBreakpoint),Ri().s[73]++,this.editor.session.on("tokenizerUpdate",this.onChange),Ri().s[74]++,l=new Ci(this.editor),Ri().s[75]++,this.editor.session.on("change",(function(e,n){Ri().f[39]++,Ri().s[76]++,l.annotate(e,n),Ri().s[77]++,s.updateBreakpoints(e,n)})),Ri().s[78]++,window.addEventListener("keydown",this.keydown),Ri().s[79]++,this.cable=new A.Z("/script-api/cable"),Ri().s[80]++,e.next=44,this.tryLoadRunningScript(this.$route.params.id);case 44:Ri().s[81]++,this.autoSaveInterval=setInterval((0,c.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Ri().f[40]++,Ri().s[82]++,Ri().b[8][0]++,s.scriptId||(Ri().b[8][1]++,!(s.fileModified.length>0))||(Ri().b[8][2]++,"visible"!==document.visibilityState)){e.next=9;break}return Ri().b[7][0]++,Ri().s[83]++,e.next=7,s.saveFile("auto");case 7:e.next=10;break;case 9:Ri().b[7][1]++;case 10:case"end":return e.stop()}}),e)}))),6e4);case 46:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),beforeDestroy:function(){Ri().f[41]++,Ri().s[84]++,this.editor.destroy(),Ri().s[85]++,this.editor.container.remove()},destroyed:function(){Ri().f[42]++,Ri().s[86]++,this.unlockFile(),Ri().s[87]++,null!=this.autoSaveInterval?(Ri().b[9][0]++,Ri().s[88]++,clearInterval(this.autoSaveInterval)):Ri().b[9][1]++,Ri().s[89]++,this.subscription?(Ri().b[10][0]++,Ri().s[90]++,this.subscription.unsubscribe()):Ri().b[10][1]++,Ri().s[91]++,this.cable.disconnect()},beforeRouteUpdate:function(e,n,t){Ri().f[43]++,Ri().s[92]++,e.params.id?(Ri().b[11][0]++,Ri().s[93]++,this.tryLoadRunningScript(e.params.id).then(t)):(Ri().b[11][1]++,Ri().s[94]++,t())},methods:{showMetadata:function(){var e=this;Ri().f[44]++,Ri().s[95]++,p.Z.get("/openc3-api/metadata").then((function(n){Ri().f[45]++,Ri().s[96]++,e.inputMetadata.events=n.data.map((function(e){return Ri().f[46]++,Ri().s[97]++,{name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e}})),Ri().s[98]++,e.inputMetadata.show=!0}))},buildOpenC3RubyMode:function(e){Ri().f[47]++;var n=(Ri().s[99]++,h.require("ace/lib/oop")),t=(Ri().s[100]++,h.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),i=(Ri().s[101]++,Object.getOwnPropertyNames(V.k.prototype).filter((function(e){return Ri().f[48]++,Ri().s[102]++,"constructor"!==e})).filter((function(e){return Ri().f[49]++,Ri().s[103]++,"exec"!==e})).concat(e)),l=(Ri().s[104]++,new RegExp("(\\b".concat(i.join("\\b|\\b"),"\\b)")));Ri().s[105]++;var s=function(){for(var e in Ri().f[50]++,Ri().s[106]++,t.call(this),Ri().s[107]++,this.$rules)Ri().s[108]++,this.$rules[e].unshift({regex:l,token:"support.function"})};Ri().s[109]++,n.inherits(s,t);var o=(Ri().s[110]++,h.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(Ri().s[111]++,h.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(Ri().s[112]++,h.require("ace/mode/folding/ruby").FoldMode);Ri().s[113]++;var c=function(){Ri().f[51]++,Ri().s[114]++,this.HighlightRules=s,Ri().s[115]++,this.$outdent=new o,Ri().s[116]++,this.$behaviour=new a,Ri().s[117]++,this.foldingRules=new r,Ri().s[118]++,this.indentKeywords=this.foldingRules.indentKeywords},u=(Ri().s[119]++,h.require("ace/mode/ruby").Mode);return Ri().s[120]++,n.inherits(c,u),Ri().s[121]++,function(){Ri().f[52]++,Ri().s[122]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ri().s[123]++,c},buildOpenC3PythonMode:function(e){Ri().f[53]++;var n=(Ri().s[124]++,h.require("ace/lib/oop")),t=(Ri().s[125]++,h.require("ace/mode/python_highlight_rules").PythonHighlightRules),i=(Ri().s[126]++,Object.getOwnPropertyNames(V.k.prototype).filter((function(e){return Ri().f[54]++,Ri().s[127]++,"constructor"!==e})).filter((function(e){return Ri().f[55]++,Ri().s[128]++,"exec"!==e})).concat(e)),l=(Ri().s[129]++,new RegExp("(\\b".concat(i.join("\\b|\\b"),"\\b)")));Ri().s[130]++;var s=function(){for(var e in Ri().f[56]++,Ri().s[131]++,t.call(this),Ri().s[132]++,this.$rules)Ri().s[133]++,this.$rules[e].unshift({regex:l,token:"support.function"})};Ri().s[134]++,n.inherits(s,t);var o=(Ri().s[135]++,h.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(Ri().s[136]++,h.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(Ri().s[137]++,h.require("ace/mode/folding/pythonic").FoldMode);Ri().s[138]++;var c=function(){Ri().f[57]++,Ri().s[139]++,this.HighlightRules=s,Ri().s[140]++,this.$outdent=new o,Ri().s[141]++,this.$behaviour=new a,Ri().s[142]++,this.foldingRules=new r,Ri().s[143]++,this.indentKeywords=this.foldingRules.indentKeywords},u=(Ri().s[144]++,h.require("ace/mode/python").Mode);return Ri().s[145]++,n.inherits(c,u),Ri().s[146]++,function(){Ri().f[58]++,Ri().s[147]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ri().s[148]++,c},fileNameChanged:function(e){Ri().f[59]++,Ri().s[149]++,e=e.split("*")[0],Ri().s[150]++,this.editor.setValue(this.files[e].content),Ri().s[151]++,this.restoreBreakpoints(e),Ri().s[152]++,this.editor.clearSelection(),Ri().s[153]++,this.removeAllMarkers(),Ri().s[154]++,this.editor.session.addMarker(new this.Range(this.files[e].lineNo-1,0,this.files[e].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),Ri().s[155]++,this.editor.gotoLine(this.files[e].lineNo)},tryLoadRunningScript:function(e){var n=this;return Ri().f[60]++,Ri().s[156]++,p.Z.get("/script-api/running-script").then((function(t){Ri().f[61]++;var i=(Ri().s[157]++,t.data.find((function(n){return Ri().f[62]++,Ri().s[158]++,"".concat(n.id)==="".concat(e)})));Ri().s[159]++,i?(Ri().b[12][0]++,Ri().s[160]++,n.filename=i.name,Ri().s[161]++,n.tryLoadSuites(),Ri().s[162]++,n.initScriptStart(),Ri().s[163]++,n.scriptStart(i.id)):(Ri().b[12][1]++,Ri().s[164]++,e?(Ri().b[13][0]++,Ri().s[165]++,n.$notify.caution({title:"Running Script ".concat(e," not found"),body:"Check the Completed Scripts below ..."}),Ri().s[166]++,n.showScripts=!0):(Ri().b[13][1]++,Ri().s[167]++,0!==t.data.length?(Ri().b[14][0]++,Ri().s[168]++,n.alertType="success",Ri().s[169]++,n.alertText="Currently ".concat(t.data.length," running scripts."),Ri().s[170]++,n.showAlert=!0):Ri().b[14][1]++,Ri().s[171]++,localStorage["script_runner__filename"]?(Ri().b[15][0]++,Ri().s[172]++,n.filename=localStorage["script_runner__filename"],Ri().s[173]++,n.reloadFile()):Ri().b[15][1]++))}))},tryLoadSuites:function(){var e=this;Ri().f[63]++,Ri().s[174]++,p.Z.get("/script-api/scripts/".concat(this.filename)).then((function(n){Ri().f[64]++,Ri().s[175]++,n.data.suites?(Ri().b[16][0]++,Ri().s[176]++,e.startOrGoDisabled=!0,Ri().s[177]++,e.suiteRunner=!0,Ri().s[178]++,e.suiteMap=JSON.parse(n.data.suites)):Ri().b[16][1]++,Ri().s[179]++,n.data.error?(Ri().b[17][0]++,Ri().s[180]++,e.suiteError=n.data.error,Ri().s[181]++,e.showSuiteError=!0):Ri().b[17][1]++,Ri().s[182]++,e.disableSuiteButtons=0==n.data.success}))},showExecuteSelectionMenu:function(e){Ri().f[65]++,Ri().s[183]++,this.menuX=e.pageX,Ri().s[184]++,this.menuY=e.pageY,Ri().s[185]++,this.executeSelectionMenu=!0},runFromCursor:function(){Ri().f[66]++;var e=(Ri().s[186]++,this.editor.getCursorPosition().row),n=(Ri().s[187]++,this.editor.session.doc.getLines(e,this.editor.session.doc.getLength()).join("\n")),t=(Ri().s[188]++,this.getBreakpointRows().filter((function(n){return Ri().f[67]++,Ri().s[189]++,n>=e})).map((function(n){return Ri().f[68]++,Ri().s[190]++,n-e})));Ri().s[191]++,this.executeText(n,t)},executeSelection:function(){Ri().f[69]++;var e=(Ri().s[192]++,this.editor.getSelectedText()),n=(Ri().s[193]++,this.editor.getSelectionRange()),t=(Ri().s[194]++,this.getBreakpointRows().filter((function(e){return Ri().f[70]++,Ri().s[195]++,Ri().b[18][0]++,e<=n.end.row&&(Ri().b[18][1]++,e>=n.start.row)})).map((function(e){return Ri().f[71]++,Ri().s[196]++,e-n.start.row})));Ri().s[197]++,this.executeText(e,t)},executeText:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ri().b[19][0]++,[]);Ri().f[72]++;var i=(Ri().s[198]++,Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");Ri().s[199]++,p.Z.post("/script-api/scripts/".concat(i),{data:{text:e,breakpoints:t}}).then((function(e){return Ri().f[73]++,Ri().s[200]++,p.Z.post("/script-api/scripts/".concat(i,"/run"),{data:{environment:n.scriptEnvironment.env}})})).then((function(e){Ri().f[74]++,Ri().s[201]++,window.open("/tools/scriptrunner/".concat(e.data))}))},clearBreakpoints:function(){Ri().f[75]++,Ri().s[202]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(e){if(Ri().f[76]++,Ri().s[203]++,this.scriptId)Ri().b[20][1]++;else{Ri().b[20][0]++;var n=(Ri().s[204]++,e.getDocumentPosition().row);Ri().s[205]++,e.editor.session.getBreakpoints(n,0)[n]?(Ri().b[21][0]++,Ri().s[206]++,e.editor.session.clearBreakpoint(n)):(Ri().b[21][1]++,Ri().s[207]++,e.editor.session.setBreakpoint(n))}},updateBreakpoints:function(e,n){if(Ri().f[77]++,Ri().s[208]++,e.lines.length<=1)return Ri().b[22][0]++,void Ri().s[209]++;Ri().b[22][1]++;var t=(Ri().s[210]++,this.getBreakpointRows(n).filter((function(n){return Ri().f[78]++,Ri().s[211]++,Ri().b[23][0]++,0===e.start.column&&(Ri().b[23][1]++,n===e.start.row)||(Ri().b[23][2]++,n>e.start.row)}))),i=(Ri().s[212]++,[]),l=(Ri().s[213]++,0);switch(Ri().s[214]++,e.action){case"insert":Ri().b[24][0]++,Ri().s[215]++,l=e.lines.length-1,Ri().s[216]++,t.reverse(),Ri().s[217]++;break;case"remove":Ri().b[24][1]++,Ri().s[218]++,l=1-e.lines.length,Ri().s[219]++,i=(0,u.Z)(Array(e.lines.length).keys()).map((function(n){return Ri().f[79]++,Ri().s[220]++,n+e.start.row})),Ri().s[221]++;break}Ri().s[222]++,t.forEach((function(e){Ri().f[80]++,Ri().s[223]++,n.clearBreakpoint(e),Ri().s[224]++,i.includes(e)?Ri().b[25][1]++:(Ri().b[25][0]++,Ri().s[225]++,n.setBreakpoint(e+l))}))},getBreakpointRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ri().b[26][0]++,this.editor.session);return Ri().f[81]++,Ri().s[226]++,e.getBreakpoints().map((function(e,n){return Ri().f[82]++,Ri().s[227]++,Ri().b[27][0]++,e&&(Ri().b[27][1]++,n)})).filter(Number.isInteger)},restoreBreakpoints:function(e){var n,t=this;Ri().f[83]++,Ri().s[228]++,this.clearBreakpoints(),Ri().s[229]++,null===(n=this.breakpoints[e])||void 0===n||n.forEach((function(e){Ri().f[84]++,Ri().s[230]++,t.editor.session.setBreakpoint(e)}))},deleteAllBreakpoints:function(){var e=this;Ri().f[85]++,Ri().s[231]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Ri().f[86]++,Ri().s[232]++,p.Z.delete("/script-api/breakpoints/delete/all")})).then((function(n){Ri().f[87]++,Ri().s[233]++,e.clearBreakpoints()}))},suiteRunnerButton:function(e){Ri().f[88]++,Ri().s[234]++,this.startOrGoButton===Oi?(Ri().b[28][0]++,Ri().s[235]++,this.start(e,"suiteRunner")):(Ri().b[28][1]++,Ri().s[236]++,this.go(e,"suiteRunner"))},keydown:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ri().f[89]++,Ri().s[237]++,Ri().b[30][0]++,!e.metaKey&&(Ri().b[30][1]++,!e.ctrlKey)||(Ri().b[30][2]++,e.keyCode!=="S".charCodeAt(0))){t.next=11;break}return Ri().b[29][0]++,Ri().s[238]++,e.preventDefault(),Ri().s[239]++,t.next=9,n.saveFile();case 9:t.next=14;break;case 11:Ri().b[29][1]++,Ri().s[240]++,Ri().b[32][0]++,(e.metaKey||(Ri().b[32][1]++,e.ctrlKey))&&(Ri().b[32][2]++,e.shiftKey)&&(Ri().b[32][3]++,e.keyCode==="S".charCodeAt(0))?(Ri().b[31][0]++,Ri().s[241]++,e.preventDefault(),Ri().s[242]++,n.saveAs()):Ri().b[31][1]++;case 14:case"end":return t.stop()}}),t)})))()},onChange:function(e){if(Ri().f[90]++,Ri().s[243]++,Ri().b[34][0]++,this.scriptId||(Ri().b[34][1]++,!0===this.editor.getReadOnly()))return Ri().b[33][0]++,void Ri().s[244]++;Ri().b[33][1]++,Ri().s[245]++,this.editor.session.getUndoManager().canUndo()?(Ri().b[35][0]++,Ri().s[246]++,this.fileModified="*"):(Ri().b[35][1]++,Ri().s[247]++,this.fileModified="")},checkMnemonics:function(){var e=this;Ri().f[91]++,Ri().s[248]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(n){var t=n.skipped,i=n.problems;Ri().f[92]++;var l=(Ri().s[249]++,"");if(Ri().s[250]++,i.length){Ri().b[36][0]++;var s=(Ri().s[251]++,i.map((function(e){return Ri().f[93]++,Ri().s[252]++,"".concat(e.lineNumber,": ").concat(e.error)})).join("<br/>"));Ri().s[253]++,l+="<strong>The following lines have problems:</strong><br/>".concat(s,"<br/><br/>")}else Ri().b[36][1]++;Ri().s[254]++,t.length?(Ri().b[37][0]++,Ri().s[255]++,l+="<strong>Mnemonics with string interpolation were not checked.</strong>"):Ri().b[37][1]++,Ri().s[256]++,""===l?(Ri().b[38][0]++,Ri().s[257]++,l="<strong>Everything looks good!</strong>"):Ri().b[38][1]++,Ri().s[258]++,e.$dialog.alert(l.trim(),{html:!0})}))},initScriptStart:function(){Ri().f[94]++,Ri().s[259]++,this.disableSuiteButtons=!0,Ri().s[260]++,this.startOrGoDisabled=!0,Ri().s[261]++,this.envDisabled=!0,Ri().s[262]++,this.pauseOrRetryDisabled=!0,Ri().s[263]++,this.stopDisabled=!0,Ri().s[264]++,this.state="Connecting...",Ri().s[265]++,this.startOrGoButton=Ni,Ri().s[266]++,this.editor.setReadOnly(!0)},scriptStart:function(e){var n=this;Ri().f[95]++,Ri().s[267]++,this.scriptId=e,Ri().s[268]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(e){return Ri().f[96]++,Ri().s[269]++,n.received(e)}},{id:this.scriptId}).then((function(e){Ri().f[97]++,Ri().s[270]++,n.subscription=e}))},scriptComplete:function(){Ri().f[98]++,Ri().s[271]++,this.disableSuiteButtons=!1,Ri().s[272]++,this.startOrGoButton=Oi,Ri().s[273]++,this.pauseOrRetryButton=Zi,Ri().s[274]++,this.startOrGoDisabled=this.suiteRunner,Ri().s[275]++,this.envDisabled=!1,Ri().s[276]++,this.pauseOrRetryDisabled=!0,Ri().s[277]++,this.stopDisabled=!0,Ri().s[278]++,this.state="stopped",Ri().s[279]++,this.fatal=!1,Ri().s[280]++,this.scriptId=null,Ri().s[281]++,this.currentFilename=null,Ri().s[282]++,this.editor.session.getUndoManager().reset(),Ri().s[283]++,this.editor.setReadOnly(!1)},environmentHandler:function(e){Ri().f[99]++,Ri().s[284]++,this.scriptEnvironment.env=e},startHandler:function(){Ri().f[100]++,Ri().s[285]++,this.start()},start:function(e){var n=arguments,t=this;return(0,c.Z)((0,r.Z)().mark((function i(){var l,s,o,a;return(0,r.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return l=n.length>1&&void 0!==n[1]?n[1]:(Ri().b[39][0]++,null),Ri().f[101]++,Ri().s[286]++,t.initScriptStart(),Ri().s[287]++,i.next=7,t.saveFile("start");case 7:Ri().s[288]++,s=t.filename,Ri().s[289]++,t.filename===Ii?(Ri().b[40][0]++,Ri().s[290]++,s=t.tempFilename):Ri().b[40][1]++,Ri().s[291]++,o="/script-api/scripts/".concat(s,"/run"),Ri().s[292]++,t.showDisconnect?(Ri().b[41][0]++,Ri().s[293]++,o+="/disconnect"):Ri().b[41][1]++,Ri().s[294]++,a={environment:t.scriptEnvironment.env},Ri().s[295]++,l?(Ri().b[42][0]++,Ri().s[296]++,a["suiteRunner"]=e):Ri().b[42][1]++,Ri().s[297]++,p.Z.post(o,{data:a}).then((function(e){Ri().f[102]++,Ri().s[298]++,t.scriptStart(e.data)})).catch((function(e){Ri().f[103]++,Ri().s[299]++,t.scriptComplete()}));case 18:case"end":return i.stop()}}),i)})))()},go:function(){Ri().f[104]++,Ri().s[300]++,this.filenameSelect=this.currentFilename,Ri().s[301]++,this.fileNameChanged(this.currentFilename),Ri().s[302]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){Ri().f[105]++,Ri().s[303]++,this.pauseOrRetryButton===Zi?(Ri().b[43][0]++,Ri().s[304]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(Ri().b[43][1]++,Ri().s[305]++,this.pauseOrRetryButton=Zi,Ri().s[306]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){Ri().f[106]++,Ri().s[307]++,this.fatal?(Ri().b[44][0]++,Ri().s[308]++,this.removeAllMarkers(),Ri().s[309]++,this.scriptComplete()):(Ri().b[44][1]++,Ri().s[310]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){Ri().f[107]++,Ri().s[311]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(e){var n=this;Ri().f[108]++,Ri().s[312]++,this.cable.recordPing();var t=(Ri().s[313]++,0);switch(Ri().s[314]++,e.type){case"file":Ri().b[45][0]++,Ri().s[315]++,this.files[e.filename]={content:e.text,lineNo:0},Ri().s[316]++,this.breakpoints[e.filename]=e.breakpoints,Ri().s[317]++,this.currentFilename===e.filename?(Ri().b[46][0]++,Ri().s[318]++,this.restoreBreakpoints(e.filename)):Ri().b[46][1]++,Ri().s[319]++;break;case"line":Ri().b[45][1]++,Ri().s[320]++,Ri().b[48][0]++,e.filename&&(Ri().b[48][1]++,e.filename!==this.currentFilename)?(Ri().b[47][0]++,Ri().s[321]++,this.files[e.filename]?(Ri().b[49][1]++,Ri().s[329]++,this.editor.setValue(this.files[e.filename].content),Ri().s[330]++,this.restoreBreakpoints(e.filename),Ri().s[331]++,this.editor.clearSelection(),Ri().s[332]++,this.currentFilename=e.filename):(Ri().b[49][0]++,Ri().s[322]++,this.files[e.filename]={content:"",lineNo:0},Ri().s[323]++,p.Z.get("/script-api/scripts/".concat(e.filename)).then((function(t){Ri().f[109]++,Ri().s[324]++,n.files[e.filename]={content:t.data.contents,lineNo:0},Ri().s[325]++,n.breakpoints[e.filename]=t.data.breakpoints,Ri().s[326]++,n.restoreBreakpoints(e.filename),Ri().s[327]++,n.currentFilename=null})).catch((function(t){Ri().f[110]++,Ri().s[328]++,n.files[e.filename]=null})))):Ri().b[47][1]++,Ri().s[333]++,this.state=e.state;var i=(Ri().s[334]++,this.editor.session.getMarkers());switch(Ri().s[335]++,this.state){case"running":Ri().b[50][0]++,Ri().s[336]++,this.startOrGoDisabled=!1,Ri().s[337]++,this.pauseOrRetryDisabled=!1,Ri().s[338]++,this.stopDisabled=!1,Ri().s[339]++,this.pauseOrRetryButton=Zi,Ri().s[340]++,this.removeAllMarkers(),Ri().s[341]++,this.editor.session.addMarker(new this.Range(e.line_no-1,0,e.line_no-1,1),"runningMarker","fullLine"),Ri().s[342]++,this.editor.gotoLine(e.line_no),Ri().s[343]++,this.files[e.filename].lineNo=e.line_no,Ri().s[344]++;break;case"fatal":Ri().b[50][1]++,Ri().s[345]++,this.fatal=!0;case"error":Ri().b[50][2]++,Ri().s[346]++,this.pauseOrRetryButton=Li;case"breakpoint":Ri().b[50][3]++;case"waiting":Ri().b[50][4]++;case"paused":Ri().b[50][5]++,Ri().s[347]++,"fatal"==this.state?(Ri().b[51][0]++,Ri().s[348]++,this.startOrGoDisabled=!0,Ri().s[349]++,this.pauseOrRetryDisabled=!0):(Ri().b[51][1]++,Ri().s[350]++,this.startOrGoDisabled=!1,Ri().s[351]++,this.pauseOrRetryDisabled=!1),Ri().s[352]++,this.stopDisabled=!1;var l=(Ri().s[353]++,Object.keys(i).filter((function(e){return Ri().f[111]++,Ri().s[354]++,i[e].clazz==="".concat(n.state,"Marker")})));if(Ri().s[355]++,0===l.length){Ri().b[52][0]++,Ri().s[356]++,this.removeAllMarkers();var s=(Ri().s[357]++,e.line_no>0?(Ri().b[53][0]++,e.line_no):(Ri().b[53][1]++,1));Ri().s[358]++,this.editor.session.addMarker(new this.Range(s-1,0,s-1,1),"".concat(this.state,"Marker"),"fullLine"),Ri().s[359]++,this.editor.gotoLine(s),Ri().s[360]++,e.filename?(Ri().b[54][0]++,Ri().s[361]++,this.files[e.filename].lineNo=s):Ri().b[54][1]++}else Ri().b[52][1]++;Ri().s[362]++;break;default:Ri().b[50][6]++,Ri().s[363]++;break}Ri().s[364]++;break;case"output":Ri().b[45][2]++,Ri().s[365]++;var o,r=(0,a.Z)(e.line.split("\n"));try{for(r.s();!(o=r.n()).done;){var c=o.value;Ri().s[366]++,c?(Ri().b[55][0]++,Ri().s[367]++,this.messages.unshift({message:c})):Ri().b[55][1]++}}catch(b){r.e(b)}finally{r.f()}Ri().s[368]++;while(this.messages.length>this.maxArrayLength)Ri().s[369]++,this.messages.pop();Ri().s[370]++;break;case"script":Ri().b[45][3]++,Ri().s[371]++,this.handleScript(e),Ri().s[372]++;break;case"report":Ri().b[45][4]++,Ri().s[373]++,this.results.text=e.report,Ri().s[374]++,this.results.show=!0,Ri().s[375]++;break;case"complete":Ri().b[45][5]++,Ri().s[376]++,this.fatal?Ri().b[56][1]++:(Ri().b[56][0]++,Ri().s[377]++,this.removeAllMarkers(),Ri().s[378]++,this.scriptComplete()),Ri().s[379]++;break;case"step":Ri().b[45][6]++,Ri().s[380]++,this.showDebug=!0,Ri().s[381]++;break;case"screen":Ri().b[45][7]++;var u=(Ri().s[382]++,!1),d=(Ri().s[383]++,{});Ri().s[384]++;var m,A=(0,a.Z)(this.screens);try{for(A.s();!(m=A.n()).done;){if(screen=m.value,Ri().s[385]++,Ri().b[58][0]++,screen.target==e.target_name&&(Ri().b[58][1]++,screen.screen==e.screen_name)){Ri().b[57][0]++,Ri().s[386]++,d=screen,Ri().s[387]++,u=!0,Ri().s[388]++;break}Ri().b[57][1]++,Ri().s[389]++,t+=1}}catch(b){A.e(b)}finally{A.f()}Ri().s[390]++,this.$set(d,"target",e.target_name),Ri().s[391]++,this.$set(d,"screen",e.screen_name),Ri().s[392]++,this.$set(d,"definition",e.definition),Ri().s[393]++,e.x?(Ri().b[59][0]++,Ri().s[394]++,this.$set(d,"left",e.x)):(Ri().b[59][1]++,Ri().s[395]++,this.$set(d,"left",0)),Ri().s[396]++,e.y?(Ri().b[60][0]++,Ri().s[397]++,this.$set(d,"top",e.y)):(Ri().b[60][1]++,Ri().s[398]++,this.$set(d,"top",0)),Ri().s[399]++,this.$set(d,"count",this.updateCounter++),Ri().s[400]++,u?(Ri().b[61][1]++,Ri().s[403]++,this.$set(this.screens,t,d)):(Ri().b[61][0]++,Ri().s[401]++,this.$set(d,"id",this.idCounter++),Ri().s[402]++,this.$set(this.screens,this.screens.length,d)),Ri().s[404]++;break;case"clearscreen":Ri().b[45][8]++,Ri().s[405]++;var h,f=(0,a.Z)(this.screens);try{for(f.s();!(h=f.n()).done;){if(screen=h.value,Ri().s[406]++,Ri().b[63][0]++,screen.target==e.target_name&&(Ri().b[63][1]++,screen.screen==e.screen_name)){Ri().b[62][0]++,Ri().s[407]++,this.screens.splice(t,1),Ri().s[408]++;break}Ri().b[62][1]++,Ri().s[409]++,t+=1}}catch(b){f.e(b)}finally{f.f()}Ri().s[410]++;break;case"clearallscreens":Ri().b[45][9]++,Ri().s[411]++,this.screens=[],Ri().s[412]++;break;case"downloadfile":Ri().b[45][10]++;var v=(Ri().s[413]++,new Blob([e.text],{type:"text/plain"})),g=(Ri().s[414]++,document.createElement("a"));Ri().s[415]++,g.href=URL.createObjectURL(v),Ri().s[416]++,g.setAttribute("download",e.filename),Ri().s[417]++,g.click(),Ri().s[418]++;break;default:Ri().b[45][11]++,Ri().s[419]++;break}},promptDialogCallback:function(e){Ri().f[112]++,Ri().s[420]++,this.prompt.show=!1,Ri().s[421]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:e,prompt_id:this.activePromptId,multiple:this.prompt.multiple}})},handleScript:function(e){var n=this;if(Ri().f[113]++,Ri().s[422]++,e.prompt_complete)return Ri().b[64][0]++,Ri().s[423]++,this.activePromptId="",Ri().s[424]++,this.prompt.show=!1,Ri().s[425]++,this.ask.show=!1,void Ri().s[426]++;switch(Ri().b[64][1]++,Ri().s[427]++,this.activePromptId=e.prompt_id,Ri().s[428]++,this.prompt.method=e.method,Ri().s[429]++,this.prompt.layout="horizontal",Ri().s[430]++,this.prompt.title="Prompt",Ri().s[431]++,this.prompt.subtitle="",Ri().s[432]++,this.prompt.details="",Ri().s[433]++,this.prompt.buttons=[],Ri().s[434]++,this.prompt.multiple=null,Ri().s[435]++,e.method){case"ask":Ri().b[65][0]++;case"ask_string":Ri().b[65][1]++,Ri().s[436]++,this.ask.default=null,Ri().s[437]++,this.ask.answerRequired=!0,Ri().s[438]++,this.ask.password=!1,Ri().s[439]++,this.ask.question=e.args[0],Ri().s[440]++,Ri().b[67][0]++,e.args[1]&&(Ri().b[67][1]++,!0!==e.args[1])&&(Ri().b[67][2]++,!1!==e.args[1])?(Ri().b[66][0]++,Ri().s[441]++,this.ask.default=e.args[1].toString()):(Ri().b[66][1]++,Ri().s[442]++,!0===e.args[1]?(Ri().b[68][0]++,Ri().s[443]++,this.ask.answerRequired=!1):Ri().b[68][1]++),Ri().s[444]++,!0===e.args[2]?(Ri().b[69][0]++,Ri().s[445]++,this.ask.password=!0):Ri().b[69][1]++,Ri().s[446]++,this.ask.callback=function(t){Ri().f[114]++,Ri().s[447]++,n.ask.show=!1,Ri().s[448]++,n.ask.password?(Ri().b[70][0]++,Ri().s[449]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,password:t,prompt_id:n.activePromptId}})):(Ri().b[70][1]++,Ri().s[450]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}}))},Ri().s[451]++,this.ask.show=!0,Ri().s[452]++;break;case"prompt_for_hazardous":Ri().b[65][2]++,Ri().s[453]++,this.prompt.title="Hazardous Command",Ri().s[454]++,this.prompt.message="Warning: Command ".concat(e.args[0]," ").concat(e.args[1]," is Hazardous. "),Ri().s[455]++,e.args[2]?(Ri().b[71][0]++,Ri().s[456]++,this.prompt.message+=e.args[2]+" "):Ri().b[71][1]++,Ri().s[457]++,this.prompt.message+="Send?",Ri().s[458]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],Ri().s[459]++,this.prompt.callback=this.promptDialogCallback,Ri().s[460]++,this.prompt.show=!0,Ri().s[461]++;break;case"prompt":Ri().b[65][3]++,Ri().s[462]++,Ri().b[73][0]++,e.kwargs&&(Ri().b[73][1]++,e.kwargs.informative)?(Ri().b[72][0]++,Ri().s[463]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[72][1]++,Ri().s[464]++,Ri().b[75][0]++,e.kwargs&&(Ri().b[75][1]++,e.kwargs.details)?(Ri().b[74][0]++,Ri().s[465]++,this.prompt.details=e.kwargs.details):Ri().b[74][1]++,Ri().s[466]++,this.prompt.message=e.args[0],Ri().s[467]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],Ri().s[468]++,this.prompt.callback=this.promptDialogCallback,Ri().s[469]++,this.prompt.show=!0,Ri().s[470]++;break;case"combo_box":Ri().b[65][4]++,Ri().s[471]++,Ri().b[77][0]++,e.kwargs&&(Ri().b[77][1]++,e.kwargs.informative)?(Ri().b[76][0]++,Ri().s[472]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[76][1]++,Ri().s[473]++,Ri().b[79][0]++,e.kwargs&&(Ri().b[79][1]++,e.kwargs.details)?(Ri().b[78][0]++,Ri().s[474]++,this.prompt.details=e.kwargs.details):Ri().b[78][1]++,Ri().s[475]++,Ri().b[81][0]++,e.kwargs&&(Ri().b[81][1]++,e.kwargs.multiple)?(Ri().b[80][0]++,Ri().s[476]++,this.prompt.multiple=!0):Ri().b[80][1]++,Ri().s[477]++,this.prompt.message=e.args[0],Ri().s[478]++,e.args.slice(1).forEach((function(e){Ri().f[115]++,Ri().s[479]++,n.prompt.buttons.push({text:e,value:e})})),Ri().s[480]++,this.prompt.layout="combo",Ri().s[481]++,this.prompt.callback=this.promptDialogCallback,Ri().s[482]++,this.prompt.show=!0,Ri().s[483]++;break;case"message_box":Ri().b[65][5]++;case"vertical_message_box":Ri().b[65][6]++,Ri().s[484]++,Ri().b[83][0]++,e.kwargs&&(Ri().b[83][1]++,e.kwargs.informative)?(Ri().b[82][0]++,Ri().s[485]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[82][1]++,Ri().s[486]++,Ri().b[85][0]++,e.kwargs&&(Ri().b[85][1]++,e.kwargs.details)?(Ri().b[84][0]++,Ri().s[487]++,this.prompt.details=e.kwargs.details):Ri().b[84][1]++,Ri().s[488]++,this.prompt.message=e.args[0],Ri().s[489]++,e.args.slice(1).forEach((function(e){Ri().f[116]++,Ri().s[490]++,n.prompt.buttons.push({text:e,value:e})})),Ri().s[491]++,e.method.includes("vertical")?(Ri().b[86][0]++,Ri().s[492]++,this.prompt.layout="vertical"):Ri().b[86][1]++,Ri().s[493]++,this.prompt.callback=this.promptDialogCallback,Ri().s[494]++,this.prompt.show=!0,Ri().s[495]++;break;case"backtrace":Ri().b[65][7]++,Ri().s[496]++,this.information.title="Call Stack",Ri().s[497]++,this.information.text=e.args,Ri().s[498]++,this.information.show=!0,Ri().s[499]++;break;case"metadata_input":Ri().b[65][8]++,Ri().s[500]++,this.inputMetadata.callback=function(t){Ri().f[117]++,Ri().s[501]++,n.inputMetadata.show=!1,Ri().s[502]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}})},Ri().s[503]++,this.showMetadata(),Ri().s[504]++;break;case"open_file_dialog":Ri().b[65][9]++;case"open_files_dialog":Ri().b[65][10]++,Ri().s[505]++,this.file.title=e.args[0],Ri().s[506]++,this.file.message=e.args[1],Ri().s[507]++,Ri().b[88][0]++,e.kwargs&&(Ri().b[88][1]++,e.kwargs.filter)?(Ri().b[87][0]++,Ri().s[508]++,this.file.filter=e.kwargs.filter):Ri().b[87][1]++,Ri().s[509]++,"open_files_dialog"==e.method?(Ri().b[89][0]++,Ri().s[510]++,this.file.multiple=!0):Ri().b[89][1]++,Ri().s[511]++,this.file.show=!0,Ri().s[512]++;break;default:Ri().b[65][11]++,Ri().s[513]++;break}},fileDialogCallback:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ri().f[118]++,Ri().s[514]++,n.file.show=!1,Ri().s[515]++,i="Cancel",Ri().s[516]++,"Cancel"==e){t.next=14;break}return Ri().b[90][0]++,Ri().s[517]++,i=[],Ri().s[518]++,t.next=12,e.forEach(function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Ri().f[119]++,Ri().s[519]++,i.push(n.name),Ri().s[520]++,e.next=6,p.Z.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(window.openc3Scope,"/tmp/").concat(n.name)),"?bucket=OPENC3_CONFIG_BUCKET"));case 6:return t=e.sent,l=t.data,Ri().s[521]++,e.next=11,m()((0,o.Z)((0,o.Z)({},l),{},{data:n}));case 11:e.sent;case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 12:t.next=15;break;case 14:Ri().b[90][1]++;case 15:return Ri().s[522]++,t.next=18,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:n.file.multiple?(Ri().b[91][0]++,"open_files_dialog"):(Ri().b[91][1]++,"open_file_dialog"),answer:i,prompt_id:n.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(e){Ri().f[120]++,Ri().s[523]++,this.alertType="error",Ri().s[524]++,this.alertText="Error: ".concat(e),Ri().s[525]++,this.showAlert=!0},newFile:function(){Ri().f[121]++,Ri().s[526]++,this.unlockFile(),Ri().s[527]++,this.filename=Ii,Ri().s[528]++,this.currentFilename=null,Ri().s[529]++,this.tempFilename=null,Ri().s[530]++,this.files={},Ri().s[531]++,this.editor.session.setValue(""),Ri().s[532]++,this.fileModified="",Ri().s[533]++,this.suiteRunner=!1,Ri().s[534]++,this.startOrGoDisabled=!1,Ri().s[535]++,this.envDisabled=!1},newRubyTestSuite:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ri().f[122]++,Ri().s[536]++,e.newFile(),Ri().s[537]++,e.editor.session.setValue("require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n"),Ri().s[538]++,n.next=8,e.saveFile("auto");case 8:case"end":return n.stop()}}),n)})))()},newPythonTestSuite:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ri().f[123]++,Ri().s[539]++,e.newFile(),Ri().s[540]++,e.editor.session.setValue("from openc3.script import *\nfrom openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group('Power')\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n"),Ri().s[541]++,n.next=8,e.saveFile("auto");case 8:case"end":return n.stop()}}),n)})))()},openFile:function(){Ri().f[124]++,Ri().s[542]++,this.fileOpen=!0},reloadFile:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:Ri().f[125]++,Ri().s[543]++,e.startOrGoDisabled=!0,Ri().s[544]++,p.Z.get("/script-api/scripts/".concat(e.filename)).then((function(n){Ri().f[126]++;var t=(Ri().s[545]++,{name:e.filename,contents:n.data.contents});Ri().s[546]++,n.data.suites?(Ri().b[92][0]++,Ri().s[547]++,t["suites"]=JSON.parse(n.data.suites)):Ri().b[92][1]++,Ri().s[548]++,n.data.error?(Ri().b[93][0]++,Ri().s[549]++,t["error"]=n.data.error):Ri().b[93][1]++,Ri().s[550]++,n.data.success?(Ri().b[94][0]++,Ri().s[551]++,t["success"]=n.data.success):Ri().b[94][1]++;var i=(Ri().s[552]++,n.data.locked),l=(Ri().s[553]++,n.data.breakpoints);Ri().s[554]++,e.setFile({file:t,locked:i,breakpoints:l},!0)})).catch((function(n){Ri().f[127]++,Ri().s[555]++,e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),Ri().s[556]++,e.clear()}));case 5:case"end":return n.stop()}}),n)})))()},setFile:function(e){var n=e.file,t=e.locked,i=e.breakpoints,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ri().b[95][0]++,!1);Ri().f[128]++,Ri().s[557]++,this.files={};var s=(Ri().s[558]++,n.name.split("*")[0]);Ri().s[559]++,!1===l?(Ri().b[96][0]++,Ri().s[560]++,this.filename!==s?(Ri().b[97][0]++,Ri().s[561]++,this.unlockFile(),Ri().s[562]++,this.lockedBy=t):Ri().b[97][1]++):Ri().b[96][1]++,Ri().s[563]++,this.filename=s,Ri().s[564]++,"py"===this.filename.split(".").pop()?(Ri().b[98][0]++,Ri().s[565]++,this.editor.session.setMode(this.openC3PythonMode)):(Ri().b[98][1]++,Ri().s[566]++,this.editor.session.setMode(this.openC3RubyMode)),Ri().s[567]++,this.currentFilename=null,Ri().s[568]++,this.editor.session.setValue(n.contents),Ri().s[569]++,this.breakpoints[filename]=i,Ri().s[570]++,this.restoreBreakpoints(filename),Ri().s[571]++,this.fileModified="",Ri().s[572]++,this.envDisabled=!1,Ri().s[573]++,n.suites?(Ri().b[99][0]++,Ri().s[574]++,this.suiteRunner=!0,Ri().s[575]++,this.suiteMap=n.suites,Ri().s[576]++,this.startOrGoDisabled=!0):(Ri().b[99][1]++,Ri().s[577]++,this.suiteRunner=!1,Ri().s[578]++,this.startOrGoDisabled=!1),Ri().s[579]++,n.error?(Ri().b[100][0]++,Ri().s[580]++,this.suiteError=n.error,Ri().s[581]++,this.showSuiteError=!0):Ri().b[100][1]++,Ri().s[582]++,this.disableSuiteButtons=0==n.success},detectLanguage:function(){Ri().f[129]++;var e=(Ri().s[583]++,new RegExp("^\\s*(require|load|puts) ")),n=(Ri().s[584]++,new RegExp("^\\s*(import|from) ")),t=(Ri().s[585]++,new RegExp("^\\s*end\\s*$")),i=(Ri().s[586]++,new RegExp("^\\s*(if|def|while|else|elif|class).*:\\s*$")),l=(Ri().s[587]++,this.editor.getValue()),s=(Ri().s[588]++,l.split("\n"));Ri().s[589]++;var o,r=(0,a.Z)(s);try{for(r.s();!(o=r.n()).done;){var c=o.value;if(Ri().s[590]++,c.match(e))return Ri().b[101][0]++,Ri().s[591]++,"ruby";if(Ri().b[101][1]++,Ri().s[592]++,c.match(n))return Ri().b[102][0]++,Ri().s[593]++,"python";if(Ri().b[102][1]++,Ri().s[594]++,c.match(t))return Ri().b[103][0]++,Ri().s[595]++,"ruby";if(Ri().b[103][1]++,Ri().s[596]++,c.match(i))return Ri().b[104][0]++,Ri().s[597]++,"python";Ri().b[104][1]++}}catch(u){r.e(u)}finally{r.f()}return Ri().s[598]++,"unknown"},saveFile:function(){var e=arguments,n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i,l,s;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:(Ri().b[105][0]++,"menu"),Ri().f[130]++,Ri().s[599]++,l=n.getBreakpointRows(),Ri().s[600]++,n.filename!==Ii){t.next=45;break}if(Ri().b[106][0]++,Ri().s[601]++,"menu"!==i){t.next=15;break}return Ri().b[107][0]++,Ri().s[602]++,n.saveAs(),Ri().s[603]++,t.abrupt("return");case 15:if(Ri().b[107][1]++,Ri().s[604]++,null!==n.tempFilename){t.next=42;break}if(Ri().b[108][0]++,Ri().s[605]++,s=n.detectLanguage(),Ri().s[606]++,Ri().b[110][0]++,"ruby"!==s&&(Ri().b[110][1]++,"auto"===i||(Ri().b[110][2]++,"unknown"!=s))){t.next=27;break}Ri().b[109][0]++,Ri().s[607]++,n.tempFilename=Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb",t.next=38;break;case 27:if(Ri().b[109][1]++,Ri().s[608]++,"python"!==s){t.next=35;break}Ri().b[111][0]++,Ri().s[609]++,n.tempFilename=Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.py",t.next=38;break;case 35:return Ri().b[111][1]++,Ri().s[610]++,t.abrupt("return");case 38:Ri().s[611]++,n.filename=n.tempFilename,t.next=43;break;case 42:Ri().b[108][1]++;case 43:t.next=46;break;case 45:Ri().b[106][1]++;case 46:return Ri().s[612]++,n.showSave=!0,Ri().s[613]++,t.next=51,p.Z.post("/script-api/scripts/".concat(n.filename),{data:{text:n.editor.getValue(),breakpoints:l}}).then((function(e){Ri().f[131]++,Ri().s[614]++,200==e.status?(Ri().b[112][0]++,Ri().s[615]++,e.data.suites?(Ri().b[113][0]++,Ri().s[616]++,n.startOrGoDisabled=!0,Ri().s[617]++,n.suiteRunner=!0,Ri().s[618]++,n.suiteMap=JSON.parse(e.data.suites)):(Ri().b[113][1]++,Ri().s[619]++,n.startOrGoDisabled=!1,Ri().s[620]++,n.suiteRunner=!1,Ri().s[621]++,n.suiteMap={}),Ri().s[622]++,e.data.error?(Ri().b[114][0]++,Ri().s[623]++,n.suiteError=e.data.error,Ri().s[624]++,n.showSuiteError=!0):Ri().b[114][1]++,Ri().s[625]++,n.fileModified="",Ri().s[626]++,setTimeout((function(){Ri().f[132]++,Ri().s[627]++,n.showSave=!1}),2e3)):(Ri().b[112][1]++,Ri().s[628]++,n.showSave=!1,Ri().s[629]++,n.alertType="error",Ri().s[630]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),Ri().s[631]++,n.showAlert=!0),Ri().s[632]++,n.lockFile()})).catch((function(e){var t=e.response;Ri().f[133]++,Ri().s[633]++,n.showSave=!1,Ri().s[634]++,422==t.status?(Ri().b[115][0]++,Ri().s[635]++,n.alertType="error",Ri().s[636]++,n.alertText=t.data.suites):(Ri().b[115][1]++,Ri().s[637]++,n.alertType="error",Ri().s[638]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),Ri().s[639]++,n.showAlert=!0}));case 51:case"end":return t.stop()}}),t)})))()},saveAs:function(){Ri().f[134]++,Ri().s[640]++,this.showSaveAs=!0},saveAsFilename:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Ri().f[135]++,Ri().s[641]++,n.filename=e.split("*")[0],Ri().s[642]++,n.currentFilename=null,Ri().s[643]++,n.tempFilename?(Ri().b[116][0]++,Ri().s[644]++,p.Z.post("/script-api/scripts/".concat(n.tempFilename,"/delete")),Ri().s[645]++,n.tempFilename=null):Ri().b[116][1]++,Ri().s[646]++,t.next=10,n.saveFile("menu");case 10:case"end":return t.stop()}}),t)})))()},delete:function(){var e=this;Ri().f[136]++;var n=(Ri().s[647]++,this.filename);Ri().s[648]++,this.tempFilename?(Ri().b[117][0]++,Ri().s[649]++,n=this.tempFilename):Ri().b[117][1]++,Ri().s[650]++,this.$dialog.confirm("Permanently delete file: ".concat(n),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Ri().f[137]++,Ri().s[651]++,p.Z.post("/script-api/scripts/".concat(n,"/delete"),{data:{}})})).then((function(n){Ri().f[138]++,Ri().s[652]++,e.newFile()})).catch((function(n){if(Ri().f[139]++,Ri().s[653]++,n){Ri().b[118][0]++;var t=(Ri().s[654]++,{text:"Failed Multi-Delete. ".concat(n),type:"error"});Ri().s[655]++,e.$emit("alert",t)}else Ri().b[118][1]++}))},download:function(){Ri().f[140]++;var e=(Ri().s[656]++,new Blob([this.editor.getValue()],{type:"text/plain"})),n=(Ri().s[657]++,document.createElement("a"));Ri().s[658]++,n.href=URL.createObjectURL(e),Ri().s[659]++,n.setAttribute("download",this.filename),Ri().s[660]++,n.click()},syntaxCheck:function(){var e=this;Ri().f[141]++,Ri().s[661]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/syntax"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Ri().f[142]++,Ri().s[662]++,e.information.title=n.data.title,Ri().s[663]++,e.information.text=JSON.parse(n.data.description),Ri().s[664]++,e.information.show=!0}))},showInstrumented:function(){var e=this;Ri().f[143]++,Ri().s[665]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Ri().f[144]++,Ri().s[666]++,e.information.title=n.data.title,Ri().s[667]++,e.information.text=JSON.parse(n.data.description),Ri().s[668]++,e.information.show=!0}))},showCallStack:function(){Ri().f[145]++,Ri().s[669]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){Ri().f[146]++,Ri().s[670]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){Ri().f[147]++,Ri().s[671]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(e){Ri().f[148]++,Ri().s[672]++,"Escape"===e.key?(Ri().b[119][0]++,Ri().s[673]++,this.debug="",Ri().s[674]++,this.debugHistoryIndex=this.debugHistory.length):(Ri().b[119][1]++,Ri().s[675]++,"Enter"===e.key?(Ri().b[120][0]++,Ri().s[676]++,this.debugHistory.push(this.debug),Ri().s[677]++,this.debugHistoryIndex=this.debugHistory.length,Ri().s[678]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),Ri().s[679]++,this.debug=""):(Ri().b[120][1]++,Ri().s[680]++,"ArrowUp"===e.key?(Ri().b[121][0]++,Ri().s[681]++,this.debugHistoryIndex-=1,Ri().s[682]++,this.debugHistoryIndex<0?(Ri().b[122][0]++,Ri().s[683]++,this.debugHistoryIndex=this.debugHistory.length-1):Ri().b[122][1]++,Ri().s[684]++,this.debug=this.debugHistory[this.debugHistoryIndex],Ri().s[685]++,e.preventDefault()):(Ri().b[121][1]++,Ri().s[686]++,"ArrowDown"===e.key?(Ri().b[123][0]++,Ri().s[687]++,this.debugHistoryIndex+=1,Ri().s[688]++,this.debugHistoryIndex>=this.debugHistory.length?(Ri().b[124][0]++,Ri().s[689]++,this.debugHistoryIndex=0):Ri().b[124][1]++,Ri().s[690]++,this.debug=this.debugHistory[this.debugHistoryIndex]):Ri().b[123][1]++)))},removeAllMarkers:function(){var e=this;Ri().f[149]++;var n=(Ri().s[691]++,this.editor.session.getMarkers());Ri().s[692]++,Object.keys(n).filter((function(e){return Ri().f[150]++,Ri().s[693]++,"fullLine"===n[e].type})).forEach((function(n){return Ri().f[151]++,Ri().s[694]++,e.editor.session.removeMarker(n)}))},confirmLocalUnlock:function(){var e=this;Ri().f[152]++,Ri().s[695]++,this.$dialog.confirm("Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((function(){return Ri().f[153]++,Ri().s[696]++,e.lockedBy=null,Ri().s[697]++,e.lockFile()}))},lockFile:function(){return Ri().f[154]++,Ri().s[698]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){Ri().f[155]++,Ri().s[699]++,Ri().b[126][0]++,this.filename===Ii||(Ri().b[126][1]++,this.readOnly)?Ri().b[125][1]++:(Ri().b[125][0]++,Ri().s[700]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/unlock")))},screenId:function(e){return Ri().f[156]++,Ri().s[701]++,"scriptRunnerScreen"+e},closeScreen:function(e){Ri().f[157]++;var n=(Ri().s[702]++,0);Ri().s[703]++;var t,i=(0,a.Z)(this.screens);try{for(i.s();!(t=i.n()).done;){if(screen=t.value,Ri().s[704]++,screen.id==e){Ri().b[127][0]++,Ri().s[705]++,this.screens.splice(n,1),Ri().s[706]++;break}Ri().b[127][1]++,Ri().s[707]++,n+=1}}catch(l){i.e(l)}finally{i.f()}}}},Pi=Fi,$i=(t(7803),t(74641),(0,y.Z)(Pi,l,s,!1,null,"38994a83",null)),Hi=$i.exports},93964:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});t(34115),t(634);var i=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===i?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},l=[],s=t(15789),o=t(66964),a=t(49502),r=(t(74083),t(18178),t(32501),t(68995),t(27233),t(28673),t(58188),t(88233),t(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new r.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){var t=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){t.api.get_tlm_values(["".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__RAW"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__CONVERTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__FORMATTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__WITH_UNITS")]).then((function(e){for(var n=0;n<e.length;n++){var i=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?i=e[n][0]["raw"]:"BLOCK"===t.details.data_type&&(i=e[n][0]),null!==i){i=i.slice(0,parseInt(t.details.bit_size)/8);var l=!1;i.length>64&&(l=!0),e[n][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[n][0]+="...")}}t.rawValue=e[0][0],t.convertedValue=e[1][0],t.formattedValue=e[2][0],t.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("tlm"!==e.type){n.next=5;break}return n.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(n){if(e.details=n,n.limits){var t=!1;n.limits.enabled&&(t=!0,delete n.limits.enabled),e.details.limits=(0,o.Z)({enabled:t},n.limits)}}));case 3:n.next=7;break;case 5:return n.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(n){e.details=n}));case 7:case"end":return n.stop()}}),n)})))()},changeLimitsEnabled:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.details.limits.enabled){n.next=5;break}return n.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:n.next=7;break;case 5:return n.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return n.stop()}}),n)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(t(23270),t(93483)),m=(0,d.Z)(u,i,l,!1,null,"1e0f0ab0",null),A=m.exports},27855:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});t(74083);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-card",{nativeOn:{click:function(n){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[n("span",[e._v("Errors")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(n){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit ")])]),n("v-spacer"),n("span",[e._v(e._s(e.title))]),n("v-spacer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v(" mdi-arrow-collapse ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v(" mdi-arrow-expand ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v(" mdi-arrow-collapse-horizontal ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v(" mdi-arrow-expand-horizontal ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v(" mdi-arrow-collapse-vertical ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v(" mdi-arrow-expand-vertical ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(n){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:"chart".concat(e.id)}}),n("div",{attrs:{id:"betweenCharts"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.$emit("input")},input:function(n){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(n){e.editGraph=n},expression:"editGraph"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Edit Graph")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(n){e.graphStartDateTime=n}}}),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(n){e.graphEndDateTime=n}}}),n("v-row",{attrs:{dense:""}},[n("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(n){e.legendPosition=n},expression:"legendPosition"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(n){e.graphMinY=n},expression:"graphMinY"}})],1),n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(n){e.graphMaxY=n},expression:"graphMaxY"}})],1)],1),n("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Errors")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?n("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(n){e.editGraphMenu=n},expression:"editGraphMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?n("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(n){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(n){e.editItem=n},expression:"editItem"}}):e._e(),e.itemMenu?n("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(n){e.itemMenu=n},expression:"itemMenu"}},[n("v-list",{attrs:{nav:"",dense:""}},[n("v-subheader",[e._v(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),n("v-list-item",{on:{click:function(n){e.editItem=!0}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-pencil")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Edit ")])],1)],1),n("v-list-item",{on:{click:function(n){return e.removeItems([e.selectedItem])}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-delete")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e.legendMenu?n("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(n){e.legendMenu=n},expression:"legendMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},l=[],s=t(50615),o=t(97302),a=t(78081),r=t(66964),c=(t(71245),t(43450),t(6710),t(58188),t(6886),t(36728),t(43108),t(18178),t(32501),t(13489),t(34769),t(99805),t(1951),t(35883),t(39529),t(31235),function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-col",[n("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on;return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(n){e.date=n},expression:"date"}},i))]}}])})],1),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(n){e.time=n},expression:"time"}})],1)],1)],1)}),u=[],d=t(31200),m=t(10247),A=t(66700),p=t(73053),h={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(n){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(n){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,A.Z)(this.dateTime/1e6);this.date=(0,p.Z)(e,"yyyy-MM-dd"),this.time=(0,p.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},f=h,v=t(93483),g=(0,v.Z)(f,c,u,!1,null,null,null),b=g.exports,C=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(n){e.$set(e.editItem,"valueType",n)},expression:"editItem.valueType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(n){e.$set(e.editItem,"reduced",n)},expression:"editItem.reduced"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(n){e.$set(e.editItem,"reducedType",n)},expression:"editItem.reducedType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(n){return e.$emit("changeColor",n)}},model:{value:e.editItem.color,callback:function(n){e.$set(e.editItem,"color",n)},expression:"editItem.color"}}),e.limitsNames.length>1?n("div",[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(n){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(n){e.limitsName=n},expression:"limitsName"}}),n("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e(),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){return e.$emit("close",e.editItem)}}},[e._v(" Ok ")])],1)],1)],1)},_=[],y=t(15789),w=t(49502),x=(t(67890),t(49228),t(48392)),k={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},limitsNames:function(){return Object.keys(this.limits)}},created:function(){var e=this;return(0,w.Z)((0,y.Z)().mark((function n(){return(0,y.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.editItem=(0,r.Z)({},e.item),n.next=3,e.api;case 3:e.api=(new x.k).get_item(e.item.targetName,e.item.packetName,e.item.itemName).then((function(n){for(var t=0,i=Object.entries(n.limits);t<i.length;t++){var l=(0,o.Z)(i[t],2),s=l[0],a=l[1];Object.keys(a).includes("red_low")&&e.$set(e.limits,s,Object.values(a))}e.limitsName=Object.keys(e.limits).find((function(n){return e.limits[n]+""===e.editItem.limits+""}))}));case 4:case"end":return n.stop()}}),n)})))()}},S=k,M=(0,v.Z)(S,C,_,!1,null,null,null),E=M.exports,T=t(3276),R=t(86522),D=t.n(R),I=t(59161);t(8514);var O={components:{DateTimeChooser:b,GraphEditItemDialog:E},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new I.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(n){return e+=1,(0,r.Z)((0,r.Z)({},n),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,n=(0,a.Z)(this.items.entries());try{for(n.s();!(e=n.n()).done;){var t=(0,o.Z)(e.value,2),i=t[0],l=t[1];this.data.push([]),this.indexes[this.subscriptionKey(l)]=i+1,void 0===l.color&&(l.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(s){n.e(s)}finally{n.f()}},mounted:function(){var e=this,n=this.items.reduce((function(n,t){var i={spanGaps:!0};return n.chartSeries.push((0,r.Z)((0,r.Z)({},i),{},{item:t,label:e.formatLabel(t),stroke:function(n,t){return e.items[t-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}})),n.overviewSeries.push((0,r.Z)({},i)),n}),{chartSeries:[],overviewSeries:[]}),t=n.chartSeries,i=n.overviewSeries,l={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,l={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));else{l=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{plugins:[this.linesPlugin()],series:[{label:"Time",value:function(e,n){return null==n?"--":(0,p.Z)((0,A.Z)(1e3*n),"yyyy-MM-dd HH:mm:ss")}}].concat((0,s.Z)(t)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:function(n,t,i){return function(t){"pause"===e.state&&0===n.select.width&&e.$emit("start"),i(t)}}}},hooks:{setScale:[function(n,t){if("x"===t&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(n.scales.x.min,"x")),l=Math.round(e.overview.valToPos(n.scales.x.max,"x"));e.overview.setSelect({left:i,width:l-i}),e.zoomChart=!1}}],setSelect:[function(n){"start"===e.state&&n.select.width>0&&e.$emit("pause")}],ready:[function(n){var t=n.root.querySelector(".u-over");t.addEventListener("contextmenu",(function(n){n.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=n.clientX,e.editGraphMenuY=n.clientY,e.editGraphMenu=!0})),t.addEventListener("mouseenter",(function(n){e.$emit("resize")})),t.addEventListener("mouseleave",(function(n){e.$emit("resize")}));var i=n.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(t){t.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=t.clientX,e.itemMenuY=t.clientY;var l=t.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(l),o=n.series[s];o.item?(e.selectedItem=o.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=t.clientX,e.legendMenuY=t.clientY,e.legendMenu=!0)}))}]}}),this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));var o=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,s.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(n){if(!e.zoomChart){"start"===e.state&&n.select.width>0&&e.$emit("pause"),e.zoomOverview=!0;var t=n.posToVal(n.select.left,"x"),i=n.posToVal(n.select.left+n.select.width,"x");e.graph.setScale("x",{min:t,max:i}),e.zoomOverview=!1}}]}});this.overview=new T.Z(o,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,n){switch(e){case"start":"stop"===n&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,n){this.dataChanged=!0},graphMinY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMinY=t),this.setGraphRange()},graphMaxY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMaxY=t),this.setGraphRange()},graphStartDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){var e=this;this.subscribe(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){var e=this;this.updateGraphData(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"!==this.state&&this.dataChanged){this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);var e=this.data[0][this.data[0].length-1],n=this.data[0][this.data[0].length-this.pointsGraphed],t=this.data[0][0];t<e-this.secondsGraphed&&(t=e-this.secondsGraphed),n>t&&(t=n),this.graph.setScale("x",{min:t,max:e}),this.dataChanged=!1}},formatLabel:function(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;var n="";return"CONVERTED"!==e.valueType&&(n+=e.valueType),"DECOM"!==e.reduced&&(""!==n&&(n+=" "),n+="".concat(e.reduced.split("_")[1]," ").concat(e.reducedType)),"".concat(e.itemName," (").concat(n,")")},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){var e=this;if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{var n=JSON.parse(JSON.stringify(this.items));this.removeItems(n),setTimeout((function(){e.addItems(n)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,n=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(n=0),this.graph.scales.y.range=function(t,i,l){var s=i;(e.graphMinY||0===e.graphMinY)&&(s=e.graphMinY);var o=l;return(e.graphMaxY||0===e.graphMaxY)&&(o=e.graphMaxY),T.Z.rangeNum(s,o,n,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(n){e.subscription=n}))},getSize:function(e){var n=document.getElementById("openc3-nav-drawer"),t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var l=document.getElementsByClassName("u-legend")[0];i=l.clientWidth}var s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-i,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=document.getElementsByClassName("c-chooser")[0],r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:a&&(r=o-a.clientHeight-r-190,this.fullHeight||(r=r/2+10));var c=s-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||r}},getScales:function(){return{scales:{x:{range:function(e,n,t){return null==n?[1566453600,1566497660]:[n,t]}},y:{range:function(e,n,t){return null==n?[-100,100]:T.Z.rangeNum(n,t,.1,!0)}}}}},getAxes:function(e){var n="rgba(0, 0, 0, .1)",t="black";return this.$vuetify.theme.dark&&(n="rgba(255, 255, 255, .1)",t="white"),{axes:[{stroke:t,grid:{show:!0,stroke:n,width:2}},{size:80,stroke:t,grid:{show:"overview"!==e,stroke:n,width:2}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[t].style.borderColor=e},changeLimits:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){var e=this;return{hooks:{draw:function(n){var t=n.ctx,i=n.bbox,l=n.valToPos(n.scales.y.min,"y",!0),s=n.valToPos(n.scales.y.max,"y",!0),o=n.valToPos(e.limitsValues[0],"y",!0),a=n.valToPos(e.limitsValues[1],"y",!0),r=n.valToPos(e.limitsValues[2],"y",!0),c=n.valToPos(e.limitsValues[3],"y",!0);if(t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",n.scales.y.min<e.limitsValues[0]){var u=o<s?s:o;t.fillRect(i.left,o,i.width,l-u)}if(n.scales.y.max>e.limitsValues[3]){var d=l<c?l:c;t.fillRect(i.left,s,i.width,d-s)}if(t.fillStyle="rgba(255,255,0,0.15)",n.scales.y.min<e.limitsValues[1]&&n.scales.y.max>e.limitsValues[0]){var m=a<s?s:a;t.fillRect(i.left,m,i.width,o-m)}if(n.scales.y.max>e.limitsValues[2]&&n.scales.y.min<e.limitsValues[3]){var A=l<c?l:c,p=l<r?l:r;t.fillRect(i.left,A,i.width,p-A)}if(t.fillStyle="rgba(0,255,0,0.15)",4===e.limitsValues.length){if(n.scales.y.min<e.limitsValues[2]&&n.scales.y.max>e.limitsValues[1]){var h=r<s?s:r,f=l<a?l:a;t.fillRect(i.left,h,i.width,f-h)}}else{var v=n.valToPos(e.limitsValues[4],"y",!0),g=n.valToPos(e.limitsValues[5],"y",!0);if(n.scales.y.min<e.limitsValues[4]&&n.scales.y.max>e.limitsValues[1]){var b=v<s?s:v;t.fillRect(i.left,b,i.width,a-b)}if(n.scales.y.max>e.limitsValues[5]&&n.scales.y.min<e.limitsValues[2]){var C=l<r?l:r,_=l<g?l:g;t.fillRect(i.left,C,i.width,_-C)}t.fillStyle="rgba(0,0,255,0.15)";var y=g<s?s:g,w=l<v?l:v;t.fillRect(i.left,y,i.width,w-y)}t.stroke(),t.restore()}}}},changeItem:function(e){var n=this;this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((function(){n.addItems([n.selectedItem])}))},addItems:function(e){var n,t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",l=(0,a.Z)(e);try{for(l.s();!(n=l.n()).done;){var s=n.value;s.valueType||(s.valueType=i),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);var o=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:function(e,n){return t.items[n-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}},o),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,n){return t.items[n-1].color}},o);var r=Array(this.data[0].length);this.data.splice(o,0,r),this.indexes[this.subscriptionKey(s)]=o}}catch(c){l.e(c)}finally{l.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(i){i&&OpenC3Auth.setTokens(),e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:n.map(e.subscriptionKey),start_time:t,end_time:e.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var n,t=(0,a.Z)(e.map(this.subscriptionKey));try{for(t.s();!(n=t.n()).done;){var i=n.value,l=this.reorderIndexes(i);this.colors.unshift(this.graph.series[l].stroke),this.items.splice(l-1,1),this.data.splice(l,1),this.graph.delSeries(l),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(l),this.overview.setData(this.data))}}catch(s){t.e(s)}finally{t.f()}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var n=this.indexes[e];for(var t in delete this.indexes[e],this.indexes)this.indexes[t]>n&&(this.indexes[t]-=1);return n},received:function(e){this.cable.recordPing();for(var n=0;n<e.length;n++){var t=e[n].__time/1e9,i=e[0].length;if(0===i||t>e[0][i-1]){for(var l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,t,e[n])}else{var s=D()(this.data[0],t,this.bs_comparator);if(s>=0)this.set_data_at_index(s,t,e[n]);else{for(var o=-s-1,a=0;a<this.data.length;a++)this.data[a].splice(o,0,null);this.set_data_at_index(o,t,e[n])}}}if(null==this.startTime){var r=1e9*this.data[0][0];this.$emit("started",r)}this.dataChanged=!0},bs_comparator:function(e,n){return e-n},set_data_at_index:function(e,n,t){this.data[0][e]=n;for(var i=0,l=Object.entries(t);i<l.length;i++){var s=(0,o.Z)(l[i],2),r=s[0],c=s[1];if("time"!==r){var u=this.indexes[r];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!r.includes("__RAW")){var m,A=(0,a.Z)(this.items);try{for(A.s();!(m=A.n()).done;){var p=m.value;if(this.subscriptionKey(p)===r){this.selectedItem=p;break}}}catch(h){A.e(h)}finally{A.f()}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[e]=c}}}},subscriptionKey:function(e){var n="".concat(e.reduced,"__TLM__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType);return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(n+="__".concat(e.reducedType)),n}}},N=O,Z=(t(34492),t(33647),(0,v.Z)(N,i,l,!1,null,"59b314de",null)),L=Z.exports},91679:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"array-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(45794),t(92318)),a=t(93964),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var n="",t=" ",i="\n",l=0;if(Array.isArray(e)){var o,a=(0,s.Z)(e);try{for(a.s();!(o=a.n()).done;){var r,c=o.value;this.formatter&&"nil"!==(null===(r=this.formatter)||void 0===r?void 0:r.toLowerCase())?n+=sprintf(this.formatter,c):n+=c,l+=1,l%this.itemsPerRow===0?(l=0,n+=i):n+=t}}catch(u){a.e(u)}finally{a.f()}return n.trim()}return e}}}),c=r,u=(t(94776),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"5cd86706",null),m=d.exports},90328:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"block-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(92318)),a=t(93964),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var n="";if(e&&e.raw){var t,i=" ",l="\n",o=0,a=0,r=this.bytesPerWord*this.wordsPerRow,c=(0,s.Z)(e.raw);try{for(c.s();!(t=c.n()).done;){var u=t.value;this.addrFormat&&0===o&&(n+=sprintf(this.addrFormat,a),a+=r),n+=sprintf(this.formatter,u),o+=1,o%r===0?(o=0,n+=l):o%this.bytesPerWord===0&&(n+=i)}}catch(d){c.e(d)}finally{c.f()}}else n=e;return n}}}),c=r,u=(t(14311),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0872fd0e",null),m=d.exports},94307:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var i=function(){var e=this,n=e._self._c;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(n){e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),n("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),n("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),n("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},l=[],s=t(90985),o=s.Z,a=t(93483),r=(0,a.Z)(o,i,l,!1,null,null,null),c=r.exports},37739:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=t(548),o={mixins:[s.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},a=o,r=(t(64550),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"17947dc7",null),u=c.exports},72810:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},l=[],s=t(92202),o={mixins:[s.Z]},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},47696:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},l=[],s=(t(58188),t(1939),t(44112),t(92202)),o=t(1716),a={mixins:[s.Z,o.Z],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?"".concat(this.parameters[3],"px"):"100%"},height:function(){return this.parameters[4]?"".concat(this.parameters[4],"px"):"100%"}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(n){e.imageUrl=n}))},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},15348:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=function(){var e=this,n=e._self._c;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height},on:{click:e.clickHandler}})})),e.defaultImage?n("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},l=[],s=t(66964),o=t(15789),a=t(49502),r=(t(58188),t(1939),t(18178),t(43450),t(95342),t(44112),t(28673),t(6886),t(92202)),c=t(1716),u={mixins:[r.Z,c.Z],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){var e=this;return!this.images.some((function(n){return n.value==e.selectedValue}))}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW"),this.screen&&this.screen.addItem(this.valueId);var n=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var n=(0,a.Z)((0,o.Z)().mark((function n(t){var i;return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t[2],i.startsWith("http")){n.next=5;break}return n.next=4,e.getPresignedUrl(i);case 4:i=n.sent;case 5:return n.abrupt("return",{url:i,value:t[1],x:t[3],y:t[4],width:t[5],height:t[6]});case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());if(Promise.all(n).then((function(n){e.images=n})),this.parameters[4]){var t={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?"".concat(this.parameters[7],"px"):"100%",height:this.parameters[8]?"".concat(this.parameters[8],"px"):"100%"},i=this.parameters[4];i.startsWith("http")?this.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:i}):this.getPresignedUrl(i).then((function(n){e.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:n})}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},d=u,m=t(93483),A=(0,m.Z)(d,i,l,!1,null,null,null),p=A.exports},19091:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},l=[],s=t(92202),o={mixins:[s.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},93856:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},l=[],s=(t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){var e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96068:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},l=[],s=t(92202),o={mixins:[s.Z],computed:{calcStyle:function(){var e="black";this.parameters[4]&&(e=this.parameters[4]);var n=1;return this.parameters[5]&&(n=this.parameters[5]),"stroke:"+e+";stroke-width:"+n}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},17289:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},l=[],s=(t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:0,valueMap:{}}},computed:{calcStyle:function(){var e="black";this.screen&&this.screen.screenValues[this.valueId][0]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);var n=1;return this.parameters[7]&&(n=this.parameters[7]),"stroke:"+e+";stroke-width:"+n}},created:function(){var e=this;this.settings.forEach((function(n){"VALUE_EQ"===n[0]&&(e.valueMap[n[1]]=n[2])}));var n="CONVERTED";this.parameters[8]&&(n=this.parameters[8]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},6122:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],label:"Checkbox",value:!1}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.label=this.parameters[0]},methods:{checked:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},84190:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.items=this.parameters},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39609:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=t(66964),l=function(){var e=this,n=e._self._c;return n(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},s=[],o=t(15789),a=t(49502),r=(t(18178),t(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,a.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,System.import(e.url);case 3:e.widgetType=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return n.stop()}}),n,null,[[0,6]])})))()}}),c=r,u=t(93483),d=(0,u.Z)(c,l,s,!1,null,null,null),m=d.exports},90742:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},l=[],s=t(92202),o=t(87557),a={mixins:[s.Z],components:{ValueWidget:o["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created:function(){this.setWidth(this.parameters[5],"ch",12)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(745),o=t(548),a={mixins:[o.Z],components:{HorizontalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},92398:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var i=function(){var e=this,n=e._self._c;return n("hr")},l=[],s=t(93483),o={},a=(0,s.Z)(o,i,l,!1,null,null,null),r=a.exports},27549:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("iframe",{style:e.computedStyle,attrs:{src:e.parameters[0],width:e.width,height:e.height}})},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1499:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},l=[],s=(t(18178),t(58188),t(49228),t(48392)),o=t(92202),a=t(59161),r={mixins:[o.Z],data:function(){return{api:new s.k,cable:new a.Z,subscription:null,imageData:""}},computed:{src:function(){return"data:image/".concat(this.parameters[3],";base64, ").concat(this.imageData)},itemFullName:function(){return"TLM__".concat(this.targetName,"__").concat(this.packetName,"__").concat(this.itemName,"__").concat(this.valueType)},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){var e=this;this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((function(n){var t=null===n||void 0===n?void 0:n.find((function(n){return n[0]===e.itemName}));t&&(e.imageData=t[1])})).finally((function(){e.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){var n=e[e.length-1];this.imageData=n[this.itemFullName]}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(n){e.subscription=n}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},75318:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created:function(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},a=o,r=(t(88489),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"19db816e",null),u=c.exports},21275:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("led-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(29016),c={mixins:[o.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},15929:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(11826),c={mixins:[o.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},91745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(56803),c={mixins:[o.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},210:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(87557),c={mixins:[o.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},28913:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=(t(34115),t(634),t(32501),t(36728),t(92202)),a=t(75318),r=t(87557),c=t(48392),u={mixins:[o.Z],data:function(){return{description:"",valueParameters:[]}},components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.valueParameters=this.parameters.slice(0,3),this.valueParameters.push(this.parameters[4]),this.parameters.length>3?this.description=this.parameters[3]:(new c.k).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.description=n["description"]}))}},d=u,m=t(93483),A=(0,m.Z)(d,l,s,!1,null,null,null),p=A.exports},68738:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(6449),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},94338:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":1}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=t(75318),a=t(87557),r=t(36652),c=t(92202),u={mixins:[c.Z],components:{LabelWidget:o["default"],ValueWidget:a["default"],LimitscolumnWidget:r["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=u,m=t(93483),A=(0,m.Z)(d,l,s,!1,null,null,null),p=A.exports},45964:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],RangebarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},29016:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"led mt-1",style:e.cssProps})},l=[],s=(t(68995),t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.colors[e];return n||(n=this.colors.ANY),n||(n="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":n}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"LED_COLOR":e.colors[n[1]]=n[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=(t(65818),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"4e68ef1f",null),u=c.exports},6449:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(58188),t(1939),t(68995),t(18178),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(n){"MIN_VALUE"===n[0]&&(e.minValue=parseInt(n[1])),"MAX_VALUE"===n[0]&&(e.maxValue=parseInt(n[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);var n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition:function(e,n){if(null!=e&&n){var t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);n[3],this.scale;if(this.maxValue&&this.maxValue==n[3]&&n[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-t)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(79731),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"344f6330",null),m=d.exports},74865:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("div",{staticClass:"led align-self-center",style:e.cssProps}),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},l=[],s=(t(68995),t(92318)),o={mixins:[s.Z],data:function(){return{radius:15,fullLabelDisplay:!1}},created:function(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName:function(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps:function(){return this.screen&&this.screen.screenValues[this.valueId][0],{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType:function(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},a=o,r=(t(58878),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"47f390ae",null),u=c.exports},36652:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(18178),t(68995),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition:function(e,n){if(e&&n){var t=.8;n[0]===n[1]&&(t+=.1),n[2]===n[3]&&(t+=.1);var i=(n[3]-n[0])/t,l=n[0]-.1*i;n[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var s=parseInt((e-l)/i*100);return s>100?100:s<0?0:s}},calcLimits:function(e){if(e){var n=80;e[0]===e[1]?(this.redLow=0,n+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,n+=10):this.redHigh=10;var t=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/t*n),this.yellowHigh=Math.round((e[3]-e[2])/t*n),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/t*n),this.greenHigh=Math.round((e[2]-e[5])/t*n),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)}},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(48001),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0e4c2263",null),m=d.exports},32554:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:function(){return e.state="pause"},start:function(){return e.state="start"}}})},l=[],s=t(22841),o=t(27855),a={components:{Graph:o.Z},mixins:[s.Z]},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},42509:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("table",{style:e.computedStyle},e._l(e.widgetChunks,(function(t,i){return n("tr",{key:"r"+i},e._l(t,(function(t,i){return n("td",{key:"c"+i},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),0)})),0)},l=[],s=(t(68995),t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o=t(76635),a=t.n(o),r={mixins:[s.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return a().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){var e=this.parameters[1];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},11826:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[n("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},l=[],s=(t(68995),t(13489),t(18178),t(92202)),o={mixins:[s.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:100}},computed:{_value:function(){var e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1882:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},l=[],s=(t(71245),t(92202)),o={props:{value:{type:Number}},mixins:[s.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},22201:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(n){e.selectedIndex=n},expression:"selectedIndex"}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{value:i,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(68995),t(548)),o={mixins:[s.Z],data:function(){return{selectedIndex:0}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected:function(){return this.selectedIndex}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96758:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),n("div",{staticClass:"rangebar__arrow"})])}],s=(t(68995),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{width:160,height:22}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition:function(){var e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;var n=(e-this.min)/this.range*100;return n>100?100:n<0?0:n}}},a=o,r=(t(34363),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"f50bb458",null),u=c.exports},64836:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},l=[],s=t(548),o=t(21833),a={mixins:[s.Z],components:{VerticalWidget:o["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},28560:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},l=[],s=t(92202),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39413:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{style:e.style})},l=[],s=t(92202),o={mixins:[s.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},56803:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},l=[],s=t(22841),o=t(27855),a={components:{Graph:o.Z},mixins:[s.Z],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},51018:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(18178);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab",{key:i},[e._v(" "+e._s(t.parameters[0])+" ")])})),1),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab-item",{key:i},e._l(t.widgets,(function(t,l){return n(t.type,e._g({key:"".concat(i,"-").concat(l),tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},l=[],s=t(548),o={mixins:[s.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},31597:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"textbox-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(92318),o=t(93964),a=(t(80131),{components:{DetailsDialog:o.Z},data:function(){return{width:200,height:200}},mixins:[s.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),r=a,c=(t(13134),t(93483)),u=(0,c.Z)(r,i,l,!1,null,"0b5bfdc6",null),d=u.exports},71447:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},43748:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=(t(71372),t(92202)),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},87557:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),i))]}}])},[n("span",[e._v(e._s(e.fullName))])]),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=(t(68995),t(92318)),o=t(93964),a=4,r={components:{DetailsDialog:o.Z},mixins:[s.Z],data:function(){return{width:12+a}},computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>"),this.setWidth(parseInt(this.parameters[4])+a,"ch",this.width)}},c=r,u=(t(20019),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"2750a386",null),m=d.exports},73437:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=(t(32501),function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:(0,i.Z)(e.settings),"widget-index":1}})],1)}),s=[],o=t(87557),a=t(6449),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},56822:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(36652),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitscolumnWidget:a["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},91312:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],RangebarWidget:a["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},21833:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},59233:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(21833),o=t(548),a={mixins:[o.Z],components:{VerticalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},74301:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-card__subtitle[data-v-33fbf9b4]{padding:0;padding-bottom:10px}",""]),n["default"]=a},43458:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#sr-controls[data-v-38994a83]{padding:0}.editorbox[data-v-38994a83]{height:50vh}.editor[data-v-38994a83]{height:100%;width:100%;font-size:16px}.editor[data-v-38994a83],hr[data-v-38994a83]{position:relative}hr[data-v-38994a83]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-38994a83] input{text-transform:capitalize}",""]),n["default"]=a},21259:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}.grid{position:relative}.item{position:absolute;display:block;margin:5px;z-index:1}.item-content{position:relative;cursor:pointer;border-radius:6px}",""]),n["default"]=a},43208:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),n["default"]=a},73713:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".ace_autocomplete{width:60vw!important}",""]),n["default"]=a},10009:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".editor[data-v-4c92d9b1]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-4c92d9b1]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-4c92d9b1] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},90816:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]),n["default"]=a},12881:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#chart[data-v-59b314de]{background-color:var(--v-tertiary-darken2)}#chart[data-v-59b314de] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),n["default"]=a},27577:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".errors[data-v-75133f21]{padding-top:0;margin-top:0}.v-card[data-v-75133f21]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-75133f21] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},6294:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),n["default"]=a},20652:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]),n["default"]=a},4177:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]),n["default"]=a},18748:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),n["default"]=a},38374:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},19912:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},76658:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]),n["default"]=a},19940:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-37955b8a]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},54780:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-41562d92]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},94811:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-f2badfd2]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},48432:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-ffe4e8e8]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},12364:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#tr-container[data-v-3372ac08]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),n["default"]=a},31023:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),n["default"]=a},30642:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},4931:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;-webkit-transform:translateY(5px);transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]),n["default"]=a},82917:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},15471:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".value-widget-container[data-v-2750a386]{min-height:34px}.value-widget-container[data-v-2750a386] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-2750a386] input{text-align:var(--text-align)!important}.value[data-v-2750a386] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-2750a386] input{color:#00c800}.openc3-yellow[data-v-2750a386] input{color:#ffdc00}.openc3-red[data-v-2750a386] input{color:#ff2d2d}.openc3-blue[data-v-2750a386] input{color:#09f}.openc3-purple[data-v-2750a386] input{color:#c800c8}.openc3-black[data-v-2750a386] input{color:#000}.openc3-white[data-v-2750a386] input{color:#fff}",""]),n["default"]=a},90985:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15789),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49502),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92202);__webpack_exports__.Z={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k},methods:{onClick:function onClick(){var _this=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,runScript,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this.eval.split(";;"),self=_this,screen=_this.screen,api=_this.api,run_script=_this.runScript,runScript=_this.runScript,i=0;case 7:if(!(i<lines.length)){_context.next=28;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=25;break}return _context.prev=10,_context.next=13,result;case 13:_context.next=25;break;case 15:if(_context.prev=15,_context.t0=_context["catch"](10),!_context.t0.message.includes("is Hazardous")){_context.next=25;break}_this.lastCmd=_context.t0.message.split("\n").pop(),_this.displaySendHazardous=!0;case 20:if(!_this.displaySendHazardous){_context.next=25;break}return _context.next=23,new Promise((function(e){return setTimeout(e,500)}));case 23:_context.next=20;break;case 25:i++,_context.next=7;break;case 28:case"end":return _context.stop()}}),_callee,null,[[10,15]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var l in t)i.push({key:l,value:t[l],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){n&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},74087:function(e,n,t){var i=t(74301);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("abc7abfc",i,!0,{sourceMap:!1,shadowMode:!1})},7803:function(e,n,t){var i=t(43458);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("29ae397b",i,!0,{sourceMap:!1,shadowMode:!1})},74641:function(e,n,t){var i=t(21259);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1f19041e",i,!0,{sourceMap:!1,shadowMode:!1})},23270:function(e,n,t){var i=t(43208);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("c388abcc",i,!0,{sourceMap:!1,shadowMode:!1})},16895:function(e,n,t){var i=t(73713);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("26aa5c80",i,!0,{sourceMap:!1,shadowMode:!1})},48038:function(e,n,t){var i=t(10009);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("50d18334",i,!0,{sourceMap:!1,shadowMode:!1})},34492:function(e,n,t){var i=t(90816);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("00db6f5f",i,!0,{sourceMap:!1,shadowMode:!1})},33647:function(e,n,t){var i=t(12881);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1ab3a1eb",i,!0,{sourceMap:!1,shadowMode:!1})},48354:function(e,n,t){var i=t(27577);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("0fb12c02",i,!0,{sourceMap:!1,shadowMode:!1})},94888:function(e,n,t){var i=t(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},94776:function(e,n,t){var i=t(20652);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("771bf989",i,!0,{sourceMap:!1,shadowMode:!1})},14311:function(e,n,t){var i=t(4177);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("7a72c236",i,!0,{sourceMap:!1,shadowMode:!1})},88489:function(e,n,t){var i=t(18748);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("a05f0e64",i,!0,{sourceMap:!1,shadowMode:!1})},65818:function(e,n,t){var i=t(38374);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5d2fe189",i,!0,{sourceMap:!1,shadowMode:!1})},58878:function(e,n,t){var i=t(19912);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("adf28f2a",i,!0,{sourceMap:!1,shadowMode:!1})},13134:function(e,n,t){var i=t(76658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("458ef3b0",i,!0,{sourceMap:!1,shadowMode:!1})},95906:function(e,n,t){var i=t(19940);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("6fbe0352",i,!0,{sourceMap:!1,shadowMode:!1})},98297:function(e,n,t){var i=t(54780);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("624110ac",i,!0,{sourceMap:!1,shadowMode:!1})},20408:function(e,n,t){var i=t(94811);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1dd31bd2",i,!0,{sourceMap:!1,shadowMode:!1})},10204:function(e,n,t){var i=t(48432);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("e6e3a244",i,!0,{sourceMap:!1,shadowMode:!1})},14723:function(e,n,t){var i=t(12364);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("0aed5680",i,!0,{sourceMap:!1,shadowMode:!1})},64550:function(e,n,t){var i=t(31023);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("62b2115a",i,!0,{sourceMap:!1,shadowMode:!1})},79731:function(e,n,t){var i=t(30642);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("6fee9274",i,!0,{sourceMap:!1,shadowMode:!1})},48001:function(e,n,t){var i=t(4931);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5862f0b2",i,!0,{sourceMap:!1,shadowMode:!1})},34363:function(e,n,t){var i=t(82917);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("31a841c7",i,!0,{sourceMap:!1,shadowMode:!1})},20019:function(e,n,t){var i=t(15471);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("c59cda46",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
1
+ (self["webpackChunk_openc3_cosmos_tool_scriptrunner"]=self["webpackChunk_openc3_cosmos_tool_scriptrunner"]||[]).push([[388],{84910:function(e,n,t){var i={"./ArrayWidget.vue":91679,"./BlockWidget.vue":90328,"./ButtonWidget.vue":94307,"./CanvasWidget.vue":37739,"./CanvasdotWidget.vue":72810,"./CanvasimageWidget.vue":47696,"./CanvasimagevalueWidget.vue":15348,"./CanvaslabelWidget.vue":19091,"./CanvaslabelvalueWidget.vue":93856,"./CanvaslineWidget.vue":96068,"./CanvaslinevalueWidget.vue":17289,"./CheckbuttonWidget.vue":6122,"./ComboboxWidget.vue":84190,"./DynamicWidget.vue":39609,"./FormatvalueWidget.vue":90742,"./HorizontalWidget.vue":745,"./HorizontalboxWidget.vue":1835,"./HorizontallineWidget.vue":92398,"./IframeWidget.vue":27549,"./ImageviewerWidget.vue":1499,"./LabelWidget.vue":75318,"./LabelledWidget.vue":21275,"./LabelprogressbarWidget.vue":15929,"./LabelsparklineWidget.vue":91745,"./LabelvalueWidget.vue":210,"./LabelvaluedescWidget.vue":28913,"./LabelvaluelimitsbarWidget.vue":68738,"./LabelvaluelimitscolumnWidget.vue":94338,"./LabelvaluerangebarWidget.vue":45964,"./LedWidget.vue":29016,"./LimitsbarWidget.vue":6449,"./LimitscolorWidget.vue":74865,"./LimitscolumnWidget.vue":36652,"./LinegraphWidget.vue":32554,"./MatrixbycolumnsWidget.vue":42509,"./ProgressbarWidget.vue":11826,"./RadiobuttonWidget.vue":1882,"./RadiogroupWidget.vue":22201,"./RangebarWidget.vue":96758,"./ScrollwindowWidget.vue":64836,"./SectionheaderWidget.vue":28560,"./SpacerWidget.vue":39413,"./SparklineWidget.vue":56803,"./TabbookWidget.vue":51018,"./TextboxWidget.vue":31597,"./TextfieldWidget.vue":71447,"./TitleWidget.vue":43748,"./ValueWidget.vue":87557,"./ValuelimitsbarWidget.vue":73437,"./ValuelimitscolumnWidget.vue":56822,"./ValuerangebarWidget.vue":91312,"./VerticalWidget.vue":21833,"./VerticalboxWidget.vue":59233};function l(e){var n=s(e);return t(n)}function s(e){if(!t.o(i,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return i[e]}l.keys=function(){return Object.keys(i)},l.resolve=s,e.exports=l,l.id=84910},22841:function(e,n,t){"use strict";t(58188),t(1939),t(36728),t(68995),t(32501),t(71372);var i=t(10247),l=t(98365),s=t(92202);n.Z={mixins:[s.Z],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"ITEM":e.items.push({targetName:n[1],packetName:n[2],itemName:n[3],valueType:n[4]||"CONVERTED",reduced:n[5]||"DECOM",reducedType:n[6]||null});case"STARTTIME":var t=(0,i.Z)(n[1],"yyyy/MM/dd HH:mm:ss",new Date);e.startTime=1e6*t.getTime();break;case"HISTORY":var s=parseInt(n[1].slice(0,n[1].length-1)),o=null,a=1;switch(n[1][n[1].length-1]){case"d":o="days",a=86400;break;case"h":o="hours",a=3600;break;case"m":o="minutes",a=60;break;case"s":o="seconds";break;default:throw new Error("Unknown time suffix: ".concat(n[1],"!"))}var r={};r[o]=s,e.startTime=1e6*(0,l.Z)(new Date,r).getTime(),s*a>e.secondsGraphed&&(e.secondsGraphed=s*a),s*a>e.pointsSaved&&(e.pointsSaved=s*a),s*a>e.pointsGraphed&&(e.pointsGraphed=s*a);break;case"SECONDSGRAPHED":e.secondsGraphed=parseInt(n[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(n[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(n[1]);break;case"SIZE":e.size.width=parseInt(n[1]),e.size.height=parseInt(n[2]);break}}))}}},1716:function(e,n,t){"use strict";var i=t(15789),l=t(49502),s=(t(18178),t(16129));n.Z={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,l.Z)((0,i.Z)().mark((function e(n){var t;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(n)),"?bucket=OPENC3_CONFIG_BUCKET"));case 2:return t=e.sent,e.abrupt("return",t.data.url);case 4:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()}}},548:function(e,n,t){"use strict";var i=t(92202);n.Z={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},92318:function(e,n,t){"use strict";t(18178),t(96708),t(27233),t(28673),t(32501),t(58188),t(88233);var i=t(92202);t(80131);n.Z={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.parameters[2],"_blank")}}]}},watch:{_counter:function(e,n){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},limitsColor:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e){var n=e.charAt(0);return e.endsWith("_LOW")&&(n=n.toLowerCase()),n}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var n=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(n+="..."),n}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){for(var t="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?t+='"'+e[i]+'"':t+=e[i],i!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var n=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){n.contextMenuShown=!0}))}}}},92202:function(e,n,t){"use strict";t(71245),t(58188),t(1939),t(68995),t(32501),t(49228),t(18178),t(1951),t(36728);var i=t(63291);n.Z={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data:function(){return{screen:null}},computed:{computedStyle:function(){var e=this,n={};return this.settings.forEach((function(t){var i=parseInt(t[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;t=t.slice(1)}e.applySetting(n,t)})),void 0===n["width"]&&(n["flex"]="0 10 100%"),n}},created:function(){var e=this;this.settings.forEach((function(n){"__SCREEN__"===n[0]&&(e.screen=n[1])}))},methods:{applySetting:function(e,n){switch(n[0]){case"TEXTALIGN":e["text-align"]=n[1].toLowerCase()+" !important",e["--text-align"]=n[1].toLowerCase();break;case"PADDING":isNaN(Number(n[1]))||(n[1]+="px"),e["padding"]=n[1]+" !important";break;case"MARGIN":isNaN(Number(n[1]))||(n[1]+="px"),e["margin"]=n[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(n.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(n.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(n.slice(1))+" !important";break;case"WIDTH":isNaN(Number(n[1]))||(n[1]+="px"),e["width"]=n[1]+" !important";break;case"HEIGHT":isNaN(Number(n[1]))||(n[1]+="px"),e["height"]=n[1]+" !important";break;case"RAW":e[n[1].toLowerCase()]=n[2]+" !important";break}},verifyNumParams:function(e,n,t){for(var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",s={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},o=1;o<=n;o++)if(void 0===this.parameters[o-1])throw new i.y(s,"Not enough parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5");if(t&&void 0===!this.parameters[t])throw new i.y(s,"Too many parameters for ".concat(e,"."),l,"https://openc3.com/docs/v5")},setWidth:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"WIDTH"===e[1]})):this.settings.find((function(e){return"WIDTH"===e[0]})),l)return l["WIDTH"];if(e){var s=["WIDTH","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["WIDTH","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},setHeight:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",l=null;if(l=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===n.widgetIndex&&"HEIGHT"===e[1]})):this.settings.find((function(e){return"HEIGHT"===e[0]})),l)return l["HEIGHT"];if(e){var s=["HEIGHT","".concat(e).concat(t)];return null!==this.widgetIndex&&s.unshift(this.widgetIndex),this.settings.push(s),parseInt(e)}var o=["HEIGHT","".concat(i).concat(t)];return null!==this.widgetIndex&&o.unshift(this.widgetIndex),this.settings.push(o),parseInt(i)},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},16129:function(e,n,t){"use strict";var i=t(66964),l=t(15789),s=t(49502),o=t(89373),a=function(){var e=(0,s.Z)((0,l.Z)().mark((function e(n,t){var i,s,a,r,c,u,d,m,A,p,h=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=h.length>2&&void 0!==h[2]?h[2]:{},s=i.data,a=i.params,r=void 0===a?{}:a,c=i.headers,u=i.noAuth,d=void 0!==u&&u,m=i.noScope,A=void 0!==m&&m,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:p=e.sent,p&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return A||r["scope"]||(r["scope"]=window.openc3Scope),e.abrupt("return",(0,o.Z)({method:n,url:t,data:s,params:r,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),r={Accept:"application/json"},c=(0,i.Z)((0,i.Z)({},r),{},{"Content-Type":"application/json"});n.Z={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("get",e,{params:t,headers:l,noScope:s,noAuth:o})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("put",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,i=n.params,l=n.headers,s=void 0===l?c:l,o=n.noScope,r=n.noAuth;return a("post",e,{data:t,params:i,headers:s,noScope:o,noAuth:r})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,i=n.headers,l=void 0===i?r:i,s=n.noScope,o=n.noAuth;return a("delete",e,{params:t,headers:l,noScope:s,noAuth:o})}}},89373:function(e,n,t){"use strict";t(39529),t(31235),t(58188),t(88233);var i=t(89644),l=t.n(i),s=t(44091),o=new s["default"],a=l().create({baseURL:location.origin,timeout:6e4,params:{}});a.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,i,l,s;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var a="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(a+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(a+="".concat(e.response.config.data," ")),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)a+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.exception)a+="".concat(e.response.data.exception);else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&null!==(s=s.error)&&void 0!==s&&s.message)e.response.data.error.class&&(a+="".concat(e.response.data.error.class," ")),a+="".concat(e.response.data.error.message);else{var r;a+="".concat(null===(r=e.response)||void 0===r?void 0:r.data)}throw o.$notify&&o.$notify.serious({title:"Network error",body:a}),e}throw e})),n.Z=a},59161:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(66964),l=t(50426),s=t(57871),o=t(47146);o.ju.staleThreshold=10;var a=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,l.Z)(this,e),this._cable=null,this._url=n}return(0,s.Z)(e,[{key:"disconnect",value:function(){this._cable&&this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(n){if(n&&OpenC3Auth.setTokens(),null==t._cable){var a=t._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;t._cable=o.zD(encodeURI(a))}return t._cable.subscriptions.create((0,i.Z)({channel:e},s),l)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}()},63291:function(e,n,t){"use strict";t.d(n,{p:function(){return a},y:function(){return o}});var i=t(52261),l=t(57871),s=t(50426),o=(t(77950),t(85940),t(36728),t(45794),(0,l.Z)((function e(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,s.Z)(this,e),this.keyword=n.keyword,this.parameters=n.parameters,this.filename=n.filename,this.line=n.line,this.lineNumber=n.lineNumber,this.message=t,this.usage=i,this.url=l}))),a=function(){function e(){(0,s.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,l.Z)(e,[{key:"verify_num_parameters",value:function(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new o(this,"Not enough parameters for ".concat(this.keyword,"."),t,this.url);if(n&&void 0===!this.parameters[n])throw new o(this,"Too many parameters for ".concat(this.keyword,"."),t,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var n=e.charAt(0);if('"'!==n&&"'"!==n)return e;var t=e.charAt(e.length-1);return n!==t?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,n){if(!n.global)throw"rx must have 'global' flag set";var t=[];return e.replace(n,(function(e){return t.push(e),e})),t}},{key:"parse_string",value:function(e,n,t,i,l){var s=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=n;for(var o=e.split("\n"),a=o.length,r=0;r<a;r++){this.lineNumber=r+1;var c=o[r].trim();if(0!==c.length){if(!0===s){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),s=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}s=!1;var A=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,A),h="";if(p.length>0&&(h+=p[0]),0===h.length||"#"===h.charAt(0)?this.keyword=null:this.keyword=h.toUpperCase(),this.parameters=[],null!==this.keyword){var f=p.length;if(f>1)for(var v=1;v<f;v++){var g=p[v];if(g.length>0&&"#"===g.charAt(0))break;i?this.parameters.push(this.remove_quotes(g)):this.parameters.push(g)}l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else t&&l(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,n,t){"use strict";t.d(n,{k:function(){return d}});var i=t(26259),l=t(15789),s=t(66964),o=t(49502),a=t(50426),r=t(57871),c=t(52261),u=(t(71372),t(71245),t(77950),t(18178),t(39529),t(58188),t(13675),t(94898),t(5825),t(67170),t(38857),t(58329),t(76279),t(427),t(40171),t(57093),t(11159),t(42516),t(64349),t(15273),t(16729),t(41801),t(50574),t(5787),t(39271),t(73160),t(65688),t(93157),t(33333),t(70315),t(50556),t(92529),t(86943),t(29224),t(91157),t(43450),t(27233),t(28673),t(35734),t(88233),t(89373)),d=function(){function e(){(0,a.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,r.Z)(e,[{key:"exec",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,o,a,r,c,d,m=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=m.length>3&&void 0!==m[3]?m[3]:{},a=m.length>4&&void 0!==m[4]?m[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:r=e.sent,r&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,i["scope"]=window.openc3Scope,e.next=18,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:i},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},o),timeout:a});case 18:return c=e.sent,e.abrupt("return",c.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),d=new Error,e.t1.response?(d.name=e.t1.response.data.error.data.class,d.message=e.t1.response.data.error.data.message):e.t1.request?(d.name="Request error",d.message="Request error, no response received"):d.name="Unknown error",d;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),i=1;i<n;i++)t[i-1]=arguments[i];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_target_names",value:function(){return this.exec("get_target_names",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c,u=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:i,stale_time:s});case 3:if(o=e.sent,null!=o)for(a=o.length,r=null,c=0;c<a;c++)r=this.decode_openc3_type(o[c][1]),null!==r&&(o[c][1]=r);return e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s,o,a,r=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t},{},1e4);case 3:for(i=e.sent,s=i[0].length,o=null,a=0;a<s;a++)o=this.decode_openc3_type(i[0][a]),null!==o&&(i[0][a]=o);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t,i){var s,o,a,r,c=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",o=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:o=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:o=e.sent,e.next=19;break;case 15:throw a=new Error,a.name="TypeError",a.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),a;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,i],{type:s});case 23:o=e.sent;case 24:return r=this.decode_openc3_type(o),null!==r&&(o=r),e.abrupt("return",o);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,i){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n,t){var i,s,o=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=o.length>2&&void 0!==o[2]?o[2]:null,s=o.length>3&&void 0!==o[3]?o[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[n,t,i],{type:s});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,i){return this.exec("set_tlm",[e,n,t],{type:i})}},{key:"override_tlm",value:function(e,n,t,i){return this.exec("override_tlm",[e,n,t],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,i){return this.exec("normalize_tlm",[e,n,t],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,i])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,i,l){var s=null;for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s=this.encode_openc3_type(i[o]),null!==s&&(i[o]=s));return this.exec(e,[n,t,i],{},l)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},i):this._cmd("cmd",e,n,t,i)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,t])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var t,i,s;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return i=e.sent,s=new Uint8Array(i),e.abrupt("return",Array.from(s).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()},70388:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Hi}});t(95342),t(58188);function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="72634981601e5ceee792f769d999633e586adde5",t=new Function("return this")(),l="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:35}},4:{start:{line:1,column:265},end:{line:1,column:406}},5:{start:{line:1,column:339},end:{line:1,column:360}},6:{start:{line:1,column:465},end:{line:1,column:482}},7:{start:{line:1,column:730},end:{line:3,column:58}},8:{start:{line:2,column:12},end:{line:2,column:41}},9:{start:{line:3,column:125},end:{line:3,column:150}},10:{start:{line:3,column:386},end:{line:3,column:928}},11:{start:{line:3,column:823},end:{line:3,column:853}},12:{start:{line:3,column:888},end:{line:3,column:918}},13:{start:{line:3,column:1457},end:{line:3,column:1649}},14:{start:{line:3,column:1999},end:{line:3,column:2021}},15:{start:{line:3,column:2297},end:{line:3,column:2313}},16:{start:{line:3,column:2586},end:{line:3,column:2599}},17:{start:{line:3,column:3184},end:{line:3,column:3508}},18:{start:{line:3,column:3359},end:{line:3,column:3415}},19:{start:{line:3,column:4217},end:{line:3,column:4243}},20:{start:{line:3,column:4435},end:{line:3,column:4451}},21:{start:{line:3,column:4581},end:{line:3,column:4605}},22:{start:{line:3,column:4605},end:{line:3,column:4663}},23:{start:{line:3,column:4828},end:{line:3,column:4856}},24:{start:{line:3,column:4961},end:{line:3,column:5137}},25:{start:{line:3,column:5830},end:{line:3,column:5843}},26:{start:{line:3,column:5963},end:{line:3,column:5979}},27:{start:{line:3,column:6139},end:{line:3,column:6165}},28:{start:{line:3,column:6192},end:{line:3,column:6219}},29:{start:{line:3,column:6275},end:{line:3,column:6291}},30:{start:{line:3,column:6526},end:{line:3,column:6559}},31:{start:{line:3,column:6586},end:{line:3,column:6613}},32:{start:{line:3,column:6671},end:{line:3,column:6689}},33:{start:{line:3,column:6834},end:{line:3,column:6857}},34:{start:{line:3,column:7149},end:{line:3,column:7179}},35:{start:{line:3,column:7454},end:{line:3,column:7485}},36:{start:{line:3,column:7697},end:{line:3,column:7735}},37:{start:{line:3,column:8003},end:{line:3,column:8043}},38:{start:{line:3,column:8190},end:{line:3,column:8211}},39:{start:{line:3,column:8591},end:{line:3,column:8624}},40:{start:{line:3,column:8792},end:{line:3,column:8826}},41:{start:{line:3,column:9090},end:{line:3,column:9134}},42:{start:{line:3,column:9342},end:{line:3,column:9364}},43:{start:{line:3,column:9474},end:{line:3,column:9493}},44:{start:{line:4,column:12},end:{line:4,column:35}},45:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:245},end:{line:1,column:246}},loc:{start:{line:1,column:264},end:{line:1,column:407}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:322},end:{line:1,column:323}},loc:{start:{line:1,column:338},end:{line:1,column:361}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:449},end:{line:1,column:450}},loc:{start:{line:1,column:464},end:{line:1,column:483}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:710},end:{line:1,column:711}},loc:{start:{line:1,column:729},end:{line:3,column:59}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:949},end:{line:1,column:950}},loc:{start:{line:1,column:955},end:{line:3,column:11}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:3,column:109},end:{line:3,column:110}},loc:{start:{line:3,column:124},end:{line:3,column:151}},line:3},7:{name:"(anonymous_7)",decl:{start:{line:3,column:372},end:{line:3,column:373}},loc:{start:{line:3,column:385},end:{line:3,column:929}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:806},end:{line:3,column:807}},loc:{start:{line:3,column:822},end:{line:3,column:854}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:871},end:{line:3,column:872}},loc:{start:{line:3,column:887},end:{line:3,column:919}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1433},end:{line:3,column:1434}},loc:{start:{line:3,column:1456},end:{line:3,column:1650}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:1983},end:{line:3,column:1984}},loc:{start:{line:3,column:1998},end:{line:3,column:2022}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2281},end:{line:3,column:2282}},loc:{start:{line:3,column:2296},end:{line:3,column:2314}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:2570},end:{line:3,column:2571}},loc:{start:{line:3,column:2585},end:{line:3,column:2600}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3160},end:{line:3,column:3161}},loc:{start:{line:3,column:3183},end:{line:3,column:3509}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3342},end:{line:3,column:3343}},loc:{start:{line:3,column:3358},end:{line:3,column:3416}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4200},end:{line:3,column:4201}},loc:{start:{line:3,column:4216},end:{line:3,column:4244}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4419},end:{line:3,column:4420}},loc:{start:{line:3,column:4434},end:{line:3,column:4452}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:4564},end:{line:3,column:4565}},loc:{start:{line:3,column:4580},end:{line:3,column:4664}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:4812},end:{line:3,column:4813}},loc:{start:{line:3,column:4827},end:{line:3,column:4857}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:4946},end:{line:3,column:4947}},loc:{start:{line:3,column:4960},end:{line:3,column:5138}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5814},end:{line:3,column:5815}},loc:{start:{line:3,column:5829},end:{line:3,column:5844}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5947},end:{line:3,column:5948}},loc:{start:{line:3,column:5962},end:{line:3,column:5980}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:6122},end:{line:3,column:6123}},loc:{start:{line:3,column:6138},end:{line:3,column:6166}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:6175},end:{line:3,column:6176}},loc:{start:{line:3,column:6191},end:{line:3,column:6220}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:6259},end:{line:3,column:6260}},loc:{start:{line:3,column:6274},end:{line:3,column:6292}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6509},end:{line:3,column:6510}},loc:{start:{line:3,column:6525},end:{line:3,column:6560}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6569},end:{line:3,column:6570}},loc:{start:{line:3,column:6585},end:{line:3,column:6614}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6655},end:{line:3,column:6656}},loc:{start:{line:3,column:6670},end:{line:3,column:6690}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:6818},end:{line:3,column:6819}},loc:{start:{line:3,column:6833},end:{line:3,column:6858}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7133},end:{line:3,column:7134}},loc:{start:{line:3,column:7148},end:{line:3,column:7180}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7438},end:{line:3,column:7439}},loc:{start:{line:3,column:7453},end:{line:3,column:7486}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7681},end:{line:3,column:7682}},loc:{start:{line:3,column:7696},end:{line:3,column:7736}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:7987},end:{line:3,column:7988}},loc:{start:{line:3,column:8002},end:{line:3,column:8044}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8174},end:{line:3,column:8175}},loc:{start:{line:3,column:8189},end:{line:3,column:8212}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8575},end:{line:3,column:8576}},loc:{start:{line:3,column:8590},end:{line:3,column:8625}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8776},end:{line:3,column:8777}},loc:{start:{line:3,column:8791},end:{line:3,column:8827}},line:3},37:{name:"(anonymous_37)",decl:{start:{line:3,column:9074},end:{line:3,column:9075}},loc:{start:{line:3,column:9089},end:{line:3,column:9135}},line:3},38:{name:"(anonymous_38)",decl:{start:{line:3,column:9326},end:{line:3,column:9327}},loc:{start:{line:3,column:9341},end:{line:3,column:9365}},line:3},39:{name:"(anonymous_39)",decl:{start:{line:3,column:9458},end:{line:3,column:9459}},loc:{start:{line:3,column:9473},end:{line:3,column:9494}},line:3},40:{name:"(anonymous_40)",decl:{start:{line:3,column:9669},end:{line:3,column:9670}},loc:{start:{line:3,column:9675},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:980},end:{line:3,column:1138}},type:"cond-expr",locations:[{start:{line:3,column:998},end:{line:3,column:1129}},{start:{line:3,column:1130},end:{line:3,column:1138}}],line:3},1:{loc:{start:{line:3,column:1242},end:{line:3,column:1356}},type:"cond-expr",locations:[{start:{line:3,column:1263},end:{line:3,column:1347}},{start:{line:3,column:1348},end:{line:3,column:1356}}],line:3},2:{loc:{start:{line:3,column:2623},end:{line:3,column:2842}},type:"cond-expr",locations:[{start:{line:3,column:2655},end:{line:3,column:2761}},{start:{line:3,column:2762},end:{line:3,column:2842}}],line:3},3:{loc:{start:{line:3,column:2858},end:{line:3,column:4093}},type:"cond-expr",locations:[{start:{line:3,column:2892},end:{line:3,column:3584}},{start:{line:3,column:3585},end:{line:3,column:4093}}],line:3},4:{loc:{start:{line:3,column:5264},end:{line:3,column:5883}},type:"cond-expr",locations:[{start:{line:3,column:5280},end:{line:3,column:5874}},{start:{line:3,column:5875},end:{line:3,column:5883}}],line:3},5:{loc:{start:{line:3,column:6014},end:{line:3,column:6326}},type:"cond-expr",locations:[{start:{line:3,column:6029},end:{line:3,column:6317}},{start:{line:3,column:6318},end:{line:3,column:6326}}],line:3},6:{loc:{start:{line:3,column:6327},end:{line:3,column:6726}},type:"cond-expr",locations:[{start:{line:3,column:6344},end:{line:3,column:6717}},{start:{line:3,column:6718},end:{line:3,column:6726}}],line:3},7:{loc:{start:{line:3,column:6727},end:{line:3,column:6899}},type:"cond-expr",locations:[{start:{line:3,column:6749},end:{line:3,column:6890}},{start:{line:3,column:6891},end:{line:3,column:6899}}],line:3},8:{loc:{start:{line:3,column:6900},end:{line:3,column:7214}},type:"cond-expr",locations:[{start:{line:3,column:6915},end:{line:3,column:7205}},{start:{line:3,column:7206},end:{line:3,column:7214}}],line:3},9:{loc:{start:{line:3,column:7215},end:{line:3,column:7521}},type:"cond-expr",locations:[{start:{line:3,column:7231},end:{line:3,column:7512}},{start:{line:3,column:7513},end:{line:3,column:7521}}],line:3},10:{loc:{start:{line:3,column:7522},end:{line:3,column:7778}},type:"cond-expr",locations:[{start:{line:3,column:7545},end:{line:3,column:7769}},{start:{line:3,column:7770},end:{line:3,column:7778}}],line:3},11:{loc:{start:{line:3,column:7779},end:{line:3,column:8088}},type:"cond-expr",locations:[{start:{line:3,column:7804},end:{line:3,column:8079}},{start:{line:3,column:8080},end:{line:3,column:8088}}],line:3},12:{loc:{start:{line:3,column:8089},end:{line:3,column:8251}},type:"cond-expr",locations:[{start:{line:3,column:8109},end:{line:3,column:8242}},{start:{line:3,column:8243},end:{line:3,column:8251}}],line:3},13:{loc:{start:{line:3,column:8252},end:{line:3,column:8662}},type:"cond-expr",locations:[{start:{line:3,column:8270},end:{line:3,column:8653}},{start:{line:3,column:8654},end:{line:3,column:8662}}],line:3},14:{loc:{start:{line:3,column:8663},end:{line:3,column:8865}},type:"cond-expr",locations:[{start:{line:3,column:8682},end:{line:3,column:8856}},{start:{line:3,column:8857},end:{line:3,column:8865}}],line:3},15:{loc:{start:{line:3,column:8866},end:{line:3,column:9183}},type:"cond-expr",locations:[{start:{line:3,column:8895},end:{line:3,column:9174}},{start:{line:3,column:9175},end:{line:3,column:9183}}],line:3},16:{loc:{start:{line:3,column:9569},end:{line:5,column:23}},type:"cond-expr",locations:[{start:{line:3,column:9587},end:{line:5,column:14}},{start:{line:5,column:15},end:{line:5,column:23}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"72634981601e5ceee792f769d999633e586adde5"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=s);var a=o[e];return i=function(){return a},a}i(),i().s[0]++;var l=function(){i().f[0]++;var e=(i().s[1]++,this),n=(i().s[2]++,e._self._c);return i().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("v-snackbar",{attrs:{top:"",color:e.alertType,timeout:3e3},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[1]++,i().s[4]++,[n("v-btn",e._b({attrs:{text:""},on:{click:function(n){i().f[2]++,i().s[5]++,e.showAlert=!1}}},"v-btn",l,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(n){i().f[3]++,i().s[6]++,e.showAlert=n},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v(" "+e._s(e.alertText)+" ")],1),n("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:e._u([{key:"action",fn:function(t){var l=t.attrs;return i().f[4]++,i().s[7]++,[n("v-btn",e._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:e.confirmLocalUnlock}},"v-btn",l,!1),[e._v(" Unlock ")]),n("v-btn",e._b({attrs:{text:""},on:{click:function(){i().f[5]++,i().s[8]++,e.showReadOnlyToast=!1}}},"v-btn",l,!1),[e._v(" dismiss ")])]}}]),model:{value:e.showReadOnlyToast,callback:function(n){i().f[6]++,i().s[9]++,e.showReadOnlyToast=n},expression:"showReadOnlyToast"}},[n("v-icon",[e._v(" mdi-pencil-off ")]),e._v(" "+e._s(e.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n("div",{staticClass:"grid"},e._l(e.screens,(function(t){return i().f[7]++,i().s[10]++,n("div",{key:t.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(t.id)}},[n("div",{staticClass:"item-content"},[n("openc3-screen",{attrs:{target:t.target,screen:t.screen,definition:t.definition,keywords:e.screenKeywords,initialFloated:!0,initialTop:t.top,initialLeft:t.left,initialZ:3,minZ:3,fixFloated:!0,count:t.count},on:{"close-screen":function(n){return i().f[8]++,i().s[11]++,e.closeScreen(t.id)},"delete-screen":function(n){return i().f[9]++,i().s[12]++,e.closeScreen(t.id)}}})],1)])})),0),n("v-card",{staticStyle:{padding:"10px"}},[e.suiteRunner?(i().b[0][0]++,n("suite-runner",{attrs:{"suite-map":e.suiteMap,"disable-buttons":e.disableSuiteButtons},on:{button:e.suiteRunnerButton}})):(i().b[0][1]++,e._e()),n("div",{attrs:{id:"sr-controls"}},[n("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[e.showDisconnect?(i().b[1][0]++,n("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[e._v(" mdi-connection ")])):(i().b[1][1]++,e._e()),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[10]++,i().s[13]++,[n("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.filename===e.NEW_FILENAME},on:{click:e.reloadFile}},"v-btn",s,!1),l),[n("v-icon",[e._v("mdi-cached")])],1)]}}])},[n("span",[e._v(" Reload File ")])]),n("v-select",{staticStyle:{width:"300px"},attrs:{items:e.fileList,disabled:e.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename",dense:"",outlined:"","hide-details":""},on:{change:e.fileNameChanged},model:{value:e.filenameSelect,callback:function(n){i().f[11]++,i().s[14]++,e.filenameSelect=n},expression:"filenameSelect"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"100px"},attrs:{label:"Script ID","data-test":"id",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.scriptId,callback:function(n){i().f[12]++,i().s[15]++,e.scriptId=n},expression:"scriptId"}}),n("v-text-field",{staticClass:"shrink ml-2 script-state",staticStyle:{width:"120px"},attrs:{label:"Script State","data-test":"state",dense:"",outlined:"",readonly:"","hide-details":""},model:{value:e.state,callback:function(n){i().f[13]++,i().s[16]++,e.state=n},expression:"state"}}),"Connecting..."===e.state?(i().b[2][0]++,n("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(i().b[2][1]++,n("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),n("v-spacer"),"Start"===e.startOrGoButton?(i().b[3][0]++,n("div",[n("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:e.startOrGoDisabled},on:{click:e.startHandler}},[n("span",[e._v(" Start ")])]),n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return i().f[14]++,i().s[17]++,[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:e.environmentIconColor,disabled:e.envDisabled},on:{click:function(n){i().f[15]++,i().s[18]++,e.scriptEnvironment.show=!e.scriptEnvironment.show}}},"v-btn",s,!1),l),[n("v-icon",[e._v(" "+e._s(e.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[n("span",[e._v("Script Environment")])])],1)):(i().b[3][1]++,n("div",[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.startOrGoDisabled,"data-test":"go-button"},on:{click:e.go}},[e._v(" Go ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:e.pauseOrRetry}},[e._v(" "+e._s(e.pauseOrRetryButton)+" ")]),n("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:e.stopDisabled},on:{click:e.stop}},[e._v(" Stop ")])],1))],1)],1)],1),n("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(n){return i().f[16]++,i().s[19]++,e.editor.resize()}}},[n("div",{staticClass:"editorbox pane"},[n("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:e.showSave,callback:function(n){i().f[17]++,i().s[20]++,e.showSave=n},expression:"showSave"}},[e._v(" Saving... ")]),n("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(n){return i().f[18]++,i().s[21]++,n.preventDefault(),i().s[22]++,e.showExecuteSelectionMenu.apply(null,arguments)}}}),n("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.executeSelectionMenu,callback:function(n){i().f[19]++,i().s[23]++,e.executeSelectionMenu=n},expression:"executeSelectionMenu"}},[n("v-list",e._l(e.executeSelectionMenuItems,(function(t){return i().f[20]++,i().s[24]++,n("v-list-item",{key:t.label,attrs:{link:"",disabled:e.scriptId}},[n("v-list-item-title",{on:{click:t.command}},[e._v(" "+e._s(t.label)+" ")])],1)})),1)],1)],1),n("multipane-resizer",[n("hr")]),n("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[e.showDebug?(i().b[4][0]++,n("div",{staticClass:"pa-0",attrs:{id:"debug"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary",disabled:!e.scriptId,"data-test":"step-button"},on:{click:e.step}},[e._v(" Step "),n("v-icon",{attrs:{right:""}},[e._v(" mdi-step-forward ")])],1),n("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:e.debugKeydown},model:{value:e.debug,callback:function(n){i().f[21]++,i().s[25]++,e.debug=n},expression:"debug"}})],1)],1)):(i().b[4][1]++,e._e()),n("script-log-messages",{model:{value:e.messages,callback:function(n){i().f[22]++,i().s[26]++,e.messages=n},expression:"messages"}})],1)],1),e.fileOpen?(i().b[5][0]++,n("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(n){return i().f[23]++,i().s[27]++,e.setFile(n)},error:function(n){return i().f[24]++,i().s[28]++,e.setError(n)}},model:{value:e.fileOpen,callback:function(n){i().f[25]++,i().s[29]++,e.fileOpen=n},expression:"fileOpen"}})):(i().b[5][1]++,e._e()),e.showSaveAs?(i().b[6][0]++,n("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":e.filenameOrBlank},on:{filename:function(n){return i().f[26]++,i().s[30]++,e.saveAsFilename(n)},error:function(n){return i().f[27]++,i().s[31]++,e.setError(n)}},model:{value:e.showSaveAs,callback:function(n){i().f[28]++,i().s[32]++,e.showSaveAs=n},expression:"showSaveAs"}})):(i().b[6][1]++,e._e()),e.showEnvironment?(i().b[7][0]++,n("environment-dialog",{model:{value:e.showEnvironment,callback:function(n){i().f[29]++,i().s[33]++,e.showEnvironment=n},expression:"showEnvironment"}})):(i().b[7][1]++,e._e()),e.ask.show?(i().b[8][0]++,n("ask-dialog",{attrs:{question:e.ask.question,default:e.ask.default,password:e.ask.password,"answer-required":e.ask.answerRequired},on:{response:e.ask.callback},model:{value:e.ask.show,callback:function(n){i().f[30]++,i().s[34]++,e.$set(e.ask,"show",n)},expression:"ask.show"}})):(i().b[8][1]++,e._e()),e.file.show?(i().b[9][0]++,n("file-dialog",{attrs:{title:e.file.title,message:e.file.message,multiple:e.file.multiple,filter:e.file.filter},on:{response:e.fileDialogCallback},model:{value:e.file.show,callback:function(n){i().f[31]++,i().s[35]++,e.$set(e.file,"show",n)},expression:"file.show"}})):(i().b[9][1]++,e._e()),e.information.show?(i().b[10][0]++,n("information-dialog",{attrs:{title:e.information.title,text:e.information.text},model:{value:e.information.show,callback:function(n){i().f[32]++,i().s[36]++,e.$set(e.information,"show",n)},expression:"information.show"}})):(i().b[10][1]++,e._e()),e.inputMetadata.show?(i().b[11][0]++,n("event-list-dialog",{attrs:{events:e.inputMetadata.events,utc:!1,"new-metadata":""},on:{close:e.inputMetadata.callback},model:{value:e.inputMetadata.show,callback:function(n){i().f[33]++,i().s[37]++,e.$set(e.inputMetadata,"show",n)},expression:"inputMetadata.show"}})):(i().b[11][1]++,e._e()),e.showOverrides?(i().b[12][0]++,n("overrides-dialog",{model:{value:e.showOverrides,callback:function(n){i().f[34]++,i().s[38]++,e.showOverrides=n},expression:"showOverrides"}})):(i().b[12][1]++,e._e()),e.prompt.show?(i().b[13][0]++,n("prompt-dialog",{attrs:{title:e.prompt.title,subtitle:e.prompt.subtitle,message:e.prompt.message,details:e.prompt.details,buttons:e.prompt.buttons,layout:e.prompt.layout,multiple:e.prompt.multiple},on:{response:e.prompt.callback},model:{value:e.prompt.show,callback:function(n){i().f[35]++,i().s[39]++,e.$set(e.prompt,"show",n)},expression:"prompt.show"}})):(i().b[13][1]++,e._e()),e.results.show?(i().b[14][0]++,n("results-dialog",{attrs:{text:e.results.text},model:{value:e.results.show,callback:function(n){i().f[36]++,i().s[40]++,e.$set(e.results,"show",n)},expression:"results.show"}})):(i().b[14][1]++,e._e()),e.scriptEnvironment.show?(i().b[15][0]++,n("script-environment-dialog",{attrs:{"input-environment":e.scriptEnvironment.env},on:{environment:e.environmentHandler},model:{value:e.scriptEnvironment.show,callback:function(n){i().f[37]++,i().s[41]++,e.$set(e.scriptEnvironment,"show",n)},expression:"scriptEnvironment.show"}})):(i().b[15][1]++,e._e()),n("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:e.suiteError,width:1e3},model:{value:e.showSuiteError,callback:function(n){i().f[38]++,i().s[42]++,e.showSuiteError=n},expression:"showSuiteError"}}),n("v-bottom-sheet",{model:{value:e.showScripts,callback:function(n){i().f[39]++,i().s[43]++,e.showScripts=n},expression:"showScripts"}},[n("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e.showScripts?(i().b[16][0]++,n("running-scripts",{attrs:{"connect-in-new-tab":!!e.fileModified},on:{close:function(){i().f[40]++,i().s[44]++,e.showScripts=!1}}})):(i().b[16][1]++,e._e())],1)],1)],1)},s=(i().s[45]++,[]),o=t(66964),a=t(78081),r=t(15789),c=t(49502),u=t(50615),d=(t(34769),t(36728),t(93244),t(28673),t(6886),t(45794),t(18178),t(43450),t(24905),t(17368),t(24471),t(77950),t(51172),t(88233),t(1951),t(49228),t(1939),t(39529),t(31235),t(33132),t(71245),t(99805),t(14121),t(60523),t(43673),t(40753),t(28399),t(32501),t(74069),t(34115),t(634),t(89644)),m=t.n(d),A=t(59161),p=t(16129),h=t(95095),f=(t(5343),t(48121),t(40419),t(83923),t(72375),t(73053)),v=t(67284),g=(t(74083),t(94908),function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600",scrollable:""},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-overlay",{attrs:{value:e.loading}},[n("v-progress-circular",{attrs:{indeterminate:"",absolute:"",size:"64"}})],1),n("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:e.handleSearch},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-row",{staticClass:"mt-2",attrs:{dense:""}},[n("v-treeview",{ref:"tree",staticStyle:{width:"100%","max-height":"60vh",overflow:"auto"},attrs:{dense:"",activatable:"","return-object":"",items:e.items,search:e.search,"open-on-click":"open"===e.type},on:{"update:active":e.activeFile},scopedSlots:e._u([{key:"prepend",fn:function(t){var i=t.item,l=t.open;return[i.file?n("v-icon",[e._v(" "+e._s("mdi-language-ruby")+" ")]):n("v-icon",[e._v(" "+e._s(l?"mdi-folder-open":"mdi-folder")+" ")])]}},{key:"append",fn:function(t){var i=t.item;return["__TEMP__"===i.name?n("v-btn",{attrs:{icon:""},on:{click:e.deleteTemp}},[n("v-icon",[e._v(" mdi-delete ")])],1):e._e()]}}]),model:{value:e.tree,callback:function(n){e.tree=n},expression:"tree"}})],1),n("v-row",{staticClass:"my-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===e.type},model:{value:e.selectedFile,callback:function(n){e.selectedFile=n},expression:"selectedFile"}})],1),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:e.disableButtons},on:{click:function(n){e.show=!1}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:e.disableButtons||!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" "+e._s(e.submit)+" ")])],1)],1)])],1)],1)],1)}),b=[],C=(t(9949),{props:{type:{type:String,required:!0,validator:function(e){return-1!==["open","save"].indexOf(e)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[],loading:!0}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},title:function(){return"open"===this.type?"File Open":"File Save As..."},submit:function(){return"open"===this.type?"OPEN":"SAVE"},error:function(){if(""===this.selectedFile||null===this.selectedFile)return"No file selected must select a file";if(!this.selectedFile.match(this.validFilenameRegex)||this.selectedFile.match(/\.\.|\/\/|\.\/|\/\./)){var e="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(e+="be in a target directory and "),e+="only contain alphanumeric characters and / ! - _ . * ' ( )",e}if("save"===this.type&&this.selectedFile.match(/\*$/)){var n="".concat(this.selectedFile," is not a valid filename. Must not end in '*'.");return n}return null},validFilenameRegex:function(){var e="0-9a-zA-Z",n="".concat(e,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(n,"]+\\.[").concat(e,"]+");if(this.requireTargetParentDir){var i="(".concat(this.targets.join("|"),")");t="\\/?".concat(i,"\\/").concat(t)}return new RegExp(t)}},created:function(){var e=this;this.loadFiles(),this.requireTargetParentDir&&p.Z.get("/openc3-api/targets").then((function(n){e.targets=n.data,e.targets.push("__TEMP__")}))},methods:{loadFiles:function(){var e=this;p.Z.get(this.apiUrl).then((function(n){e.items=[],e.id=1;var t,i=(0,a.Z)(n.data);try{for(i.s();!(t=i.n()).done;){var l=t.value;e.filepath=l,e.insertFile(e.items,1,l),e.id++}}catch(s){i.e(s)}finally{i.f()}e.inputFilename&&(e.selectedFile=e.inputFilename),e.loading=!1})).catch((function(n){e.$emit("error","Failed to connect to OpenC3. ".concat(n))}))},clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(e){e?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(e){0===e.length?this.selectedFile=null:this.selectedFile=e[0].path},exists:function(e,n){var t,i=!1,l=(0,a.Z)(e);try{for(l.s();!(t=l.n()).done;){var s=t.value;if(s.path===n)return!0;if(s.path.length>1&&"*"===s.path[s.path.length-1]&&s.path.slice(0,s.path.length-1)===n)return!0;s.children&&(i=i||this.exists(s.children,n))}}catch(o){l.e(o)}finally{l.f()}return i},success:function(){null!==this.selectedFile&&null===this.error&&("open"===this.type?this.openSuccess():this.saveSuccess())},deleteTemp:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete all the temporary files?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return p.Z.delete("/script-api/scripts/temp_files")})).then((function(n){e.loadFiles()})).catch((function(n){e.$notify.serious({title:"Error",body:"Failed to remove script temporary files due to ".concat(n)})}))},openSuccess:function(){var e=this;this.disableButtons=!0,p.Z.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(n){var t={name:e.selectedFile,contents:n.data.contents};n.data.suites&&(t["suites"]=JSON.parse(n.data.suites)),n.data.error&&(t["error"]=n.data.error),n.data.success&&(t["success"]=n.data.success);var i=n.data.locked,l=n.data.breakpoints;e.$emit("file",{file:t,locked:i,breakpoints:l}),e.clear()})).catch((function(n){e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),e.clear()}))},saveSuccess:function(){var e=this,n=this.exists(this.items,this.selectedFile);n?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(n){e.$emit("filename",e.selectedFile),e.clear()})).catch((function(e){})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(e,n,t){var i=t.split("/");if(1===i.length)return e.push({id:this.id,name:i[0],file:"ruby",path:this.filepath}),void this.id++;var l=e.findIndex((function(e){return e.name===i[0]}));-1===l?(e.push({id:this.id,name:i[0],children:[],path:this.filepath.split("/").slice(0,n).join("/")}),this.id++,this.insertFile(e[e.length-1].children,n+1,i.slice(1).join("/"))):this.insertFile(e[l].children,n+1,i.slice(1).join("/"))}}}),_=C,y=t(93483),w=(0,y.Z)(_,g,b,!1,null,null,null),x=w.exports,k=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Global Environment Variables")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{staticClass:"mb-2",attrs:{dense:""}},[n("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:e.search,headers:e.headers,items:e.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteEnvironment(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("v-col",[n("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:e.key,callback:function(n){e.key=n},expression:"key"}})],1),n("v-col",[n("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:e.keyValue,callback:function(n){e.keyValue=n},expression:"keyValue"}})],1)],1),n("v-row",{attrs:{dense:""}},[n("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!e.key||!e.keyValue},on:{click:function(n){return n.preventDefault(),e.addEnvironment.apply(null,arguments)}}},[e._v(" Add ")])],1)],1)])],1)])],1)},S=[],M={props:{value:Boolean},data:function(){return{alert:"",alertType:"success",showAlert:!1,search:"",key:"",keyValue:"",environment:[],headers:[{text:"Key",value:"key"},{text:"Value",value:"value"},{text:"Actions",value:"actions",align:"end",sortable:!1}]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.update()},methods:{alertHandler:function(e){this.alert=e.text,this.alertType=e.type,this.showAlert=!0},update:function(){var e=this;p.Z.get("/openc3-api/environment").then((function(n){e.environment=n.data})).catch((function(e){}))},addEnvironment:function(){var e=this;p.Z.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(n){"New environment variable: ".concat(n.data.name);e.update()})).catch((function(n){var t={text:"Failed to add environment variable: ".concat(n),type:"error"};e.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.key,"=").concat(e.value),{okText:"Delete",cancelText:"Cancel"}).then((function(n){return p.Z.delete("/openc3-api/environment/".concat(e.name))})).then((function(t){var i={text:"Removed environment variable: ".concat(e.name),type:"success"};n.alertHandler(i),n.update()})).catch((function(e){var t={text:"Failed to delete environment: ".concat(e),type:"error"};n.alertHandler(t)}))}}},E=M,T=(0,y.Z)(E,k,S,!1,null,null,null),R=T.exports,D=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:e.width},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" "+e._s(e.title)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:e.download}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download ")])])],1)],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("span",{staticStyle:{"white-space":"pre-wrap"}},[e._v(e._s(e.text))])])]),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},I=[],O={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{download:function(){var e=new Blob([this.text],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.title,".txt")),n.click()}}},N=O,Z=(0,y.Z)(N,D,I,!1,null,null,null),L=Z.exports,F=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var l=i.on,s=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",s,!1),l),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,l){return[i.divider?n("v-divider"):n("v-list-item",{key:l,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(i.label))},on:{click:function(e){return i.command(i)}}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(n){e.$set(i,"checked",n)},expression:"option.checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},P=[],$=(t(85940),t(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),H=$,B=(t(94888),(0,y.Z)(H,F,P,!1,null,"2eb37f67",null)),W=B.exports,V=t(48392);function U(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6a0c29fb40230da625235b34a5161a9cf22fbc36",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1375}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:895},end:{line:1,column:913}},9:{start:{line:1,column:1267},end:{line:1,column:1291}},10:{start:{line:1,column:1291},end:{line:1,column:1338}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:879},end:{line:1,column:880}},loc:{start:{line:1,column:894},end:{line:1,column:914}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1250},end:{line:1,column:1251}},loc:{start:{line:1,column:1266},end:{line:1,column:1339}},line:1}},branchMap:{0:{loc:{start:{line:1,column:786},end:{line:1,column:820}},type:"cond-expr",locations:[{start:{line:1,column:801},end:{line:1,column:811}},{start:{line:1,column:814},end:{line:1,column:820}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6a0c29fb40230da625235b34a5161a9cf22fbc36"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return U=function(){return o},o}U(),U().s[0]++;var G=function(){U().f[0]++;var e=(U().s[1]++,this),n=(U().s[2]++,e._self._c);return U().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){U().f[1]++,U().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return U().f[2]++,U().s[5]++,n.preventDefault(),U().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){U().f[3]++,U().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" User Input Required ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.question))])],1),n("v-row",{staticClass:"my-1"},[n("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:e.password?(U().b[0][0]++,"password"):(U().b[0][1]++,"text"),rules:e.rules},model:{value:e.inputValue,callback:function(n){U().f[4]++,U().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!e.valid},on:{click:function(n){return U().f[5]++,U().s[9]++,n.preventDefault(),U().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},z=(U().s[11]++,[]);function j(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",n="6372711265e5318070bd384413fbdc2ebb04d2f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:27,column:5}},1:{start:{line:26,column:21},end:{line:26,column:38}},2:{start:{line:30,column:4},end:{line:33,column:5}},3:{start:{line:31,column:6},end:{line:31,column:23}},4:{start:{line:32,column:6},end:{line:32,column:36}},5:{start:{line:34,column:4},end:{line:37,column:5}},6:{start:{line:35,column:6},end:{line:35,column:23}},7:{start:{line:36,column:6},end:{line:36,column:32}},8:{start:{line:36,column:27},end:{line:36,column:31}},9:{start:{line:42,column:8},end:{line:42,column:25}},10:{start:{line:45,column:8},end:{line:45,column:34}},11:{start:{line:51,column:6},end:{line:51,column:45}},12:{start:{line:54,column:6},end:{line:54,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:28,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:14},end:{line:26,column:15}},loc:{start:{line:26,column:21},end:{line:26,column:38}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:38,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:20},end:{line:36,column:21}},loc:{start:{line:36,column:27},end:{line:36,column:31}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:12},end:{line:43,column:7}},line:41},5:{name:"(anonymous_5)",decl:{start:{line:44,column:6},end:{line:44,column:7}},loc:{start:{line:44,column:17},end:{line:46,column:7}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:50,column:19},end:{line:50,column:20}},loc:{start:{line:50,column:31},end:{line:52,column:5}},line:50},7:{name:"(anonymous_7)",decl:{start:{line:53,column:19},end:{line:53,column:20}},loc:{start:{line:53,column:31},end:{line:55,column:5}},line:53}},branchMap:{0:{loc:{start:{line:26,column:21},end:{line:26,column:38}},type:"binary-expr",locations:[{start:{line:26,column:21},end:{line:26,column:24}},{start:{line:26,column:28},end:{line:26,column:38}}],line:26},1:{loc:{start:{line:30,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:33,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:30},2:{loc:{start:{line:34,column:4},end:{line:37,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:37,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["AskDialog.vue"],names:[],mappings:";AA4EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"AskDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> User Input Required </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n question\n }}</v-card-title>\n </v-row>\n <v-row class="my-1">\n <v-text-field\n v-model="inputValue"\n autofocus\n data-test="ask-value-input"\n :type="password ? \'password\' : \'text\'"\n :rules="rules"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="ask-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="ask-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n question: {\n type: String,\n required: true,\n },\n default: {\n type: String,\n default: null,\n },\n password: {\n type: Boolean,\n default: false,\n },\n answerRequired: {\n type: Boolean,\n default: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: \'\',\n valid: false,\n rules: [(v) => !!v || \'Required\'],\n }\n },\n created() {\n if (this.default) {\n this.valid = true\n this.inputValue = this.default\n }\n if (this.answerRequired === false) {\n this.valid = true\n this.rules = [(v) => true]\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6372711265e5318070bd384413fbdc2ebb04d2f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return j=function(){return o},o}j();var q={props:{question:{type:String,required:!0},default:{type:String,default:null},password:{type:Boolean,default:!1},answerRequired:{type:Boolean,default:!0},value:Boolean},data:function(){return j().f[0]++,j().s[0]++,{inputValue:"",valid:!1,rules:[function(e){return j().f[1]++,j().s[1]++,j().b[0][0]++,!!e||(j().b[0][1]++,"Required")}]}},created:function(){j().f[2]++,j().s[2]++,this.default?(j().b[1][0]++,j().s[3]++,this.valid=!0,j().s[4]++,this.inputValue=this.default):j().b[1][1]++,j().s[5]++,!1===this.answerRequired?(j().b[2][0]++,j().s[6]++,this.valid=!0,j().s[7]++,this.rules=[function(e){return j().f[3]++,j().s[8]++,!0}]):j().b[2][1]++},computed:{show:{get:function(){return j().f[4]++,j().s[9]++,this.value},set:function(e){j().f[5]++,j().s[10]++,this.$emit("input",e)}}},methods:{submitHandler:function(){j().f[6]++,j().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){j().f[7]++,j().s[12]++,this.$emit("response","Cancel")}}},Y=q,K=(0,y.Z)(Y,G,z,!1,null,null,null),X=K.exports;function J(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="629f6b9e07f549a90d0e31b255ae07dbdb061503",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1537}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:260},end:{line:1,column:284}},6:{start:{line:1,column:284},end:{line:1,column:331}},7:{start:{line:1,column:384},end:{line:1,column:397}},8:{start:{line:1,column:1055},end:{line:1,column:1073}},9:{start:{line:1,column:1429},end:{line:1,column:1453}},10:{start:{line:1,column:1453},end:{line:1,column:1500}},11:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:243},end:{line:1,column:244}},loc:{start:{line:1,column:259},end:{line:1,column:332}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:368},end:{line:1,column:369}},loc:{start:{line:1,column:383},end:{line:1,column:398}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1039},end:{line:1,column:1040}},loc:{start:{line:1,column:1054},end:{line:1,column:1074}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1412},end:{line:1,column:1413}},loc:{start:{line:1,column:1428},end:{line:1,column:1501}},line:1}},branchMap:{0:{loc:{start:{line:1,column:664},end:{line:1,column:816}},type:"cond-expr",locations:[{start:{line:1,column:678},end:{line:1,column:807}},{start:{line:1,column:808},end:{line:1,column:816}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"629f6b9e07f549a90d0e31b255ae07dbdb061503"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return J=function(){return o},o}J(),J().s[0]++;var Q=function(){J().f[0]++;var e=(J().s[1]++,this),n=(J().s[2]++,e._self._c);return J().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){J().f[1]++,J().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-form",{on:{submit:function(n){return J().f[2]++,J().s[5]++,n.preventDefault(),J().s[6]++,e.submitHandler.apply(null,arguments)}},model:{value:e.valid,callback:function(n){J().f[3]++,J().s[7]++,e.valid=n},expression:"valid"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" File Dialog ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-row",[n("v-card-title",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.title))])],1),e.message?(J().b[0][0]++,n("v-row",[n("span",{staticClass:"ma-3",staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})])):(J().b[0][1]++,e._e()),n("v-row",{staticClass:"my-1"},[n("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:e.filter,"small-chips":"",multiple:e.multiple},model:{value:e.inputValue,callback:function(n){J().f[4]++,J().s[8]++,e.inputValue=n},expression:"inputValue"}})],1)],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!e.valid},on:{click:function(n){return J().f[5]++,J().s[9]++,n.preventDefault(),J().s[10]++,e.submitHandler.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)],1)],1)},ee=(J().s[11]++,[]);function ne(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",n="29cb638f66743dffbb3e707fb1000ac69ffa7e7d",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",statementMap:{0:{start:{line:23,column:4},end:{line:25,column:5}},1:{start:{line:30,column:8},end:{line:30,column:25}},2:{start:{line:33,column:8},end:{line:33,column:34}},3:{start:{line:41,column:6},end:{line:43,column:7}},4:{start:{line:42,column:8},end:{line:42,column:43}},5:{start:{line:44,column:6},end:{line:44,column:45}},6:{start:{line:47,column:6},end:{line:47,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:26,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:29,column:6},end:{line:29,column:7}},loc:{start:{line:29,column:12},end:{line:31,column:7}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:32,column:6},end:{line:32,column:7}},loc:{start:{line:32,column:17},end:{line:34,column:7}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:38,column:19},end:{line:38,column:20}},loc:{start:{line:38,column:31},end:{line:45,column:5}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:46,column:19},end:{line:46,column:20}},loc:{start:{line:46,column:31},end:{line:48,column:5}},line:46}},branchMap:{0:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["FileDialog.vue"],names:[],mappings:";AAqFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"FileDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-form v-model="valid" v-on:submit.prevent="submitHandler">\n <v-system-bar>\n <v-spacer />\n <span> File Dialog </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row>\n <v-card-title style="white-space: pre-line">{{\n title\n }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span\n class="ma-3"\n style="white-space: pre-line"\n v-text="message"\n />\n </v-row>\n <v-row class="my-1">\n <v-file-input\n label="Choose File"\n v-model="inputValue"\n autofocus\n data-test="file-input"\n :accept="filter"\n small-chips\n :multiple="multiple"\n />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n class="mx-1"\n data-test="file-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click.prevent="submitHandler"\n class="mx-1"\n color="primary"\n type="submit"\n data-test="file-ok"\n :disabled="!valid"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-form>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n required: true,\n },\n message: {\n type: String,\n default: null,\n },\n filter: {\n type: String,\n default: \'*\',\n },\n multiple: {\n type: Boolean,\n default: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n inputValue: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n submitHandler: function () {\n // Ensure we send back an array of file names even in the single case\n // to make it easier to deal with a consistent result\n if (!Array.isArray(this.inputValue)) {\n this.inputValue = [this.inputValue]\n }\n this.$emit(\'response\', this.inputValue)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"29cb638f66743dffbb3e707fb1000ac69ffa7e7d"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ne=function(){return o},o}ne();var te={props:{title:{type:String,required:!0},message:{type:String,default:null},filter:{type:String,default:"*"},multiple:{type:Boolean,default:!1},value:Boolean},data:function(){return ne().f[0]++,ne().s[0]++,{inputValue:null}},computed:{show:{get:function(){return ne().f[1]++,ne().s[1]++,this.value},set:function(e){ne().f[2]++,ne().s[2]++,this.$emit("input",e)}}},methods:{submitHandler:function(){ne().f[3]++,ne().s[3]++,Array.isArray(this.inputValue)?ne().b[0][1]++:(ne().b[0][0]++,ne().s[4]++,this.inputValue=[this.inputValue]),ne().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){ne().f[4]++,ne().s[6]++,this.$emit("response","Cancel")}}},ie=te,le=(0,y.Z)(ie,Q,ee,!1,null,null,null),se=le.exports;function oe(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="f3d714e332dcaca74a70e87cc80dff6325e98dd6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:748}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:436},end:{line:1,column:582}},6:{start:{line:1,column:695},end:{line:1,column:715}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:415},end:{line:1,column:416}},loc:{start:{line:1,column:435},end:{line:1,column:583}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:678},end:{line:1,column:679}},loc:{start:{line:1,column:694},end:{line:1,column:716}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f3d714e332dcaca74a70e87cc80dff6325e98dd6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return oe=function(){return o},o}oe(),oe().s[0]++;var ae=function(){oe().f[0]++;var e=(oe().s[1]++,this),n=(oe().s[2]++,e._self._c);return oe().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){oe().f[1]++,oe().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",e._l(e.text,(function(t,i){return oe().f[2]++,oe().s[5]++,n("v-row",{key:i,attrs:{"no-gutters":""}},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(t)}})])})),1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary"},on:{click:function(n){oe().f[3]++,oe().s[6]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},re=(oe().s[7]++,[]);function ce(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",n="0e6f63f54fe8f26950d23e02c85bf37a007389e7",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",statementMap:{0:{start:{line:20,column:8},end:{line:20,column:25}},1:{start:{line:23,column:8},end:{line:23,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,sources:["InformationDialog.vue"],names:[],mappings:";AA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"InformationDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n \x3c!-- INFO --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row no-gutters v-for="(line, index) in text" :key="index">\n <span style="white-space: pre-line" v-text="line" />\n </v-row>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n title: {\n type: String,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0e6f63f54fe8f26950d23e02c85bf37a007389e7"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ce=function(){return o},o}ce();var ue={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return ce().f[0]++,ce().s[0]++,this.value},set:function(e){ce().f[1]++,ce().s[1]++,this.$emit("input",e)}}},methods:{}},de=ue,me=(0,y.Z)(de,ae,re,!1,null,null,null),Ae=me.exports,pe=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"80vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:e.close}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-card-title",[e.newMetadata?n("span",[e._v("Metadata")]):n("span",[e._v("Events")]),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.eventHeaders,items:e.localEvents,search:e.search,"sort-by":"start","sort-desc":""},scopedSlots:e._u([{key:"no-data",fn:function(){return[n("span",[e._v(" No events ")])]},proxy:!0},{key:"item.start",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.start,e.utc))+" ")]}},{key:"item.end",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.logFormat(t.end,e.utc))+" ")]}},{key:"item.type",fn:function(n){var t=n.item;return[e._v(" "+e._s(t.type.charAt(0).toUpperCase()+t.type.slice(1))+" ")]}},{key:"item.data",fn:function(n){var t=n.item;return[e._v(" "+e._s(e.dataFormat(t))+" ")]}},{key:"item.actions",fn:function(t){var i=t.item;return[n("v-icon",{staticClass:"mr-2",attrs:{small:"","data-test":"edit-event"},on:{click:function(n){return e.editAction(i)}}},[e._v(" mdi-pencil ")]),n("v-icon",{attrs:{small:"","data-test":"delete-event"},on:{click:function(n){return e.deleteAction(i)}}},[e._v(" mdi-delete ")])]}}])}),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"close-event-list"},on:{click:e.close}},[e._v(" Close ")]),e.newMetadata?n("v-btn",{attrs:{color:"primary","data-test":"new-event"},on:{click:function(n){e.showMetadataCreate=!0}}},[e._v(" New Metadata ")]):e._e()],1)],1)],1),n("activity-update-dialog",{attrs:{activity:e.editActivity},on:{update:e.updateActivity},model:{value:e.showActivityUpdate,callback:function(n){e.showActivityUpdate=n},expression:"showActivityUpdate"}}),n("metadata-update-dialog",{attrs:{"metadata-obj":e.editMetadata},on:{update:e.updateMetadata},model:{value:e.showMetadataUpdate,callback:function(n){e.showMetadataUpdate=n},expression:"showMetadataUpdate"}}),n("note-update-dialog",{attrs:{note:e.editNote},on:{update:e.updateNote},model:{value:e.showNoteUpdate,callback:function(n){e.showNoteUpdate=n},expression:"showNoteUpdate"}}),n("metadata-create-dialog",{on:{update:e.addMetadata},model:{value:e.showMetadataCreate,callback:function(n){e.showMetadataCreate=n},expression:"showMetadataCreate"}})],1)},he=[],fe=t(97302),ve=(t(35883),t(28391)),ge={filters:{time:function(e,n){return n?e.toUTCString().split(" ")[4]:e.toLocaleString().split(" ")[1]},hourMin:function(e){return e.split(":",2).join(":")},dateTime:function(e,n){return n?e.toISOString():e.toLocaleString()}},methods:{logFormat:function(e,n){return n?(0,ve.Z)(e,"UTC","yyyy-MM-dd HH:mm:ss.SSS"):(0,f.Z)(e,"yyyy-MM-dd HH:mm:ss.SSS")},generateDateTime:function(e,n){return n?e.toISOString():e.toLocaleString()},toIsoString:function(e){var n=new Date(e),t=-n.getTimezoneOffset(),i=t>=0?"+":"-";function l(e){var n=Math.floor(Math.abs(e));return(n<10?"0":"")+n}var s=n.getFullYear(),o=l(n.getMonth()+1),a=l(n.getDate()),r=l(n.getHours()),c=l(n.getMinutes()),u=l(n.getSeconds()),d=l(n.getMilliseconds()),m="utc"===this.utcOrLocal?"00:00":"".concat(l(t/60),":").concat(l(t%60));return"".concat(s,"-").concat(o,"-").concat(a,"T").concat(r,":").concat(c,":").concat(u,".").concat(d).concat(i).concat(m)}}},be={methods:{deleteItem:function(e){var n=this,t=null,i="";switch(e.type.toLowerCase()){case"activity":i="activity",t=e.activity.start;break;case"metadata":i="metadata",t=e.metadata.start;break;case"note":i="notes",t=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.typeStr," at ").concat(e.startStr),{okText:"Delete",cancelText:"Cancel"}).then((function(){return p.Z.delete("/openc3-api/".concat(i,"/").concat(t))})).then((function(){n.$emit("delete",e),n.$notify.normal({title:"Deleted ".concat(e.typeStr),body:"Deleted ".concat(e.typeStr," at ").concat(e.startStr)})})).catch((function(){}))}}},Ce=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Create Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v("Close")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-checkbox",{attrs:{label:"Input Metadata Time"},model:{value:e.userProvidedTime,callback:function(n){e.userProvidedTime=n},expression:"userProvidedTime"}})],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.userProvidedTime,expression:"userProvidedTime"}]},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"metadata-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"metadata-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v("Metadata Input")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"create-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"create-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.createMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},_e=[],ye=(t(43108),t(10247)),we=t(93355),xe={props:{date:{type:String},time:{type:String}},data:function(){return{startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc"}},methods:{calcStartDateTime:function(){if(this.date?(this.startDate=this.date,this.stopDate=this.date):(this.startDate=(0,f.Z)(new Date,"yyyy-MM-dd"),this.stopDate=(0,f.Z)(new Date,"yyyy-MM-dd")),this.time){var e=(0,ye.Z)(this.time,"HH:mm",new Date),n=18e5;e=new Date(Math.floor(e.getTime()/n)*n),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopTime=(0,f.Z)((0,we.Z)(e,{minutes:30}),"HH:mm:ss")}else this.startTime=(0,f.Z)(new Date,"HH:mm:ss"),this.stopTime=(0,f.Z)((0,we.Z)(new Date,{minutes:30}),"HH:mm:ss")}}},ke=function(){var e=this,n=e._self._c;return n("div",[n("v-select",{attrs:{items:e.swatches,label:"Color"},scopedSlots:e._u([{key:"selection",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}},{key:"item",fn:function(t){var i=t.item;return[n("div",[n("v-badge",{attrs:{inline:"",color:i}},[n("span",{domProps:{textContent:e._s(i)}})])],1)]}}]),model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1)},Se=[],Me={components:{},props:{value:{type:String,required:!0}},data:function(){return{}},computed:{color:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},swatches:function(){return["#005a8f","#003784","#8F3400","#df1368","#ff5252","#df323b","#9f0010","#2d9437","#004700","#db7200","#802700","#0f2941"]}},methods:{}},Ee=Me,Te=(0,y.Z)(Ee,ke,Se,!1,null,null,null),Re=Te.exports,De=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.newMetadata}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" New Metadata ")])])],1)]),e._l(e.metadata,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"meta.key"}})],1),n("td",[n("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"meta.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"delete-metadata-icon-".concat(i)},on:{click:function(n){return e.rm(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Metadata ")])])],1)])]}))],2)])],1)},Ie=[],Oe={components:{},props:{value:{type:Array,required:!0}},data:function(){return{}},computed:{metadata:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{newMetadata:function(){this.metadata.push({key:"",value:""})},rm:function(e){this.metadata.splice(e,1)}}},Ne=Oe,Ze=(0,y.Z)(Ne,De,Ie,!1,null,null,null),Le=Ze.exports,Fe={components:{ColorSelectForm:Re,MetadataInputForm:Le},props:{value:Boolean},mixins:[xe,ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,userProvidedTime:!1,color:"#003784",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},mounted:function(){void 0!==this.date&&void 0!==this.time&&(this.userProvidedTime=!0)},computed:{timeError:function(){if(!this.color)return"A color is required.";if(!this.userProvidedTime)return null;var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1,this.calcStartDateTime(),this.metadata=[],this.color="#003784"},createMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i={color:n,metadata:t};this.userProvidedTime&&(i.start=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)))),p.Z.post("/openc3-api/metadata",{data:i}).then((function(n){e.$notify.normal({title:"Created new Metadata",body:"Metadata: (".concat(n.data.start,")")}),e.$emit("update",n.data)})),this.show=!this.show,this.updateValues()}}},Pe=Fe,$e=(t(98297),(0,y.Z)(Pe,Ce,_e,!1,null,"41562d92",null)),He=$e.exports,Be=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Update activity: "+e._s(e.activity.name)+"/"+e._s(e.activity.start)+" ")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-activity-icon"},on:{click:e.cancelActivity}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"activity-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"activity-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"activity-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"activity-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-activity-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Activity type Input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-select",{attrs:{items:e.types,label:"Activity Type"},model:{value:e.kind,callback:function(n){e.kind=n},expression:"kind"}}),"COMMAND"===e.kind?n("div",[n("v-text-field",{attrs:{type:"text",label:"Command Input",placeholder:"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 0",prefix:"cmd('",suffix:"')",hint:"Timeline run commands with cmd_no_hazardous_check","data-test":"activity-cmd"},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}})],1):"SCRIPT"===e.kind?n("div",[n("script-chooser",{staticClass:"my-1",on:{file:e.fileHandler},model:{value:e.activityData,callback:function(n){e.activityData=n},expression:"activityData"}}),n("environment-chooser",{staticClass:"my-2",model:{value:e.activityEnvironment,callback:function(n){e.activityEnvironment=n},expression:"activityEnvironment"}})],1):n("div",[n("span",{staticClass:"ma-2"},[e._v(" No required input ")])]),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-activity-cancel-btn"},on:{click:e.cancelActivity}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-activity-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateActivity.apply(null,arguments)}}},[e._v(" Update ")])],1)],1)])],1)],1)],1)])],1)},We=[],Ve=function(){var e=this,n=e._self._c;return n("div",[n("v-simple-table",{attrs:{dense:""}},[n("tbody",[n("tr",[n("th",{staticClass:"text-left"},[e._v("Key")]),n("th",{staticClass:"text-left"},[e._v("Value")]),n("th",{staticClass:"text-right"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:e.addEnvVar}},[e._v(" mdi-plus ")])],1)]}}])},[n("span",[e._v(" Add Environment ")])])],1)]),e._l(e.selected,(function(t,i){return[n("tr",{key:"tr-".concat(i)},[n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"key-".concat(i)},model:{value:t.key,callback:function(n){e.$set(t,"key",n)},expression:"env.key"}})],1),n("td",[n("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"value-".concat(i)},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"env.value"}})],1),n("td",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-icon",{attrs:{"data-test":"remove-env-icon-".concat(i)},on:{click:function(n){return e.delEnvVar(i)}}},[e._v(" mdi-delete ")])],1)]}}],null,!0)},[n("span",[e._v(" Delete Environment ")])])],1)])]}))],2)])],1)},Ue=[],Ge={props:{value:{type:Array,required:!0}},computed:{selected:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{addEnvVar:function(){this.selected.push({key:"",value:""})},delEnvVar:function(e){this.selected.splice(e,1)}}},ze=Ge,je=(0,y.Z)(ze,Ve,Ue,!1,null,null,null),qe=je.exports,Ye=function(){var e=this,n=e._self._c;return n("div",[n("v-row",{attrs:{"no-gutters":""}},[n("span",[e._v(" Select OpenC3 script ")])]),n("v-row",{staticClass:"my-2"},[n("v-autocomplete",{staticClass:"mx-4",attrs:{"cache-items":"",flat:"","hide-no-data":"","hide-details":"","solo-inverted":"",label:"Select a script",loading:e.loading,items:e.items,"search-input":e.search,"data-test":"select-script"},on:{"update:searchInput":function(n){e.search=n},"update:search-input":function(n){e.search=n}},model:{value:e.selected,callback:function(n){e.selected=n},expression:"selected"}})],1)],1)},Ke=[],Xe={props:{value:String},data:function(){return{loading:!1,search:"",selected:this.value,scripts:[],items:[]}},created:function(){var e=this;this.loading=!0,p.Z.get("/script-api/scripts").then((function(n){e.scripts=n.data.filter((function(e){return e.includes(".rb")||e.includes(".py")})),e.items=e.scripts})).catch((function(n){e.$emit("error",{type:"error",text:"Failed to connect to OpenC3. ".concat(n),error:n})})),this.selected=this.value?this.value:null,this.loading=!1},watch:{selected:function(e,n){e!==n&&this.$emit("file",e)},search:function(e){e&&e!==this.selected&&this.querySelections(e)}},methods:{querySelections:function(e){var n=this;this.loading=!0,setTimeout((function(){n.items=n.scripts.filter((function(n){return(n||"").toLowerCase().indexOf((e||"").toLowerCase())>-1})),n.loading=!1}),500)}}},Je=Xe,Qe=(0,y.Z)(Je,Ye,Ke,!1,null,null,null),en=Qe.exports,nn={components:{EnvironmentChooser:qe,ScriptChooser:en},props:{activity:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",kind:"",types:["COMMAND","SCRIPT","RESERVE"],activityData:"",activityEnvironment:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),t=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return n===t?"Invalid start, stop time. Activity must have different start and stop times.":e>n?"Invalid start time. Activity must be in the future.":n>t?"Invalid start time. Activity start before stop.":null},typeError:function(){return"RESERVE"===this.kind||this.activityData?null:"No data is selected or inputted"},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{changeKind:function(e){e!==this.kind&&(this.kind=e,this.activityData="")},updateValues:function(){var e=new Date(1e3*this.activity.start),n=new Date(1e3*this.activity.stop);this.startDate=(0,f.Z)(e,"yyyy-MM-dd"),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopDate=(0,f.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,f.Z)(n,"HH:mm:ss"),this.kind=this.activity.kind.toUpperCase(),this.activityData=this.activity.data[this.activity.kind],this.activityEnvironment=this.activity.data.environment},fileHandler:function(e){this.activityData=e||null},cancelActivity:function(){this.show=!this.show},updateActivity:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.kind.toLowerCase(),l={environment:this.activityEnvironment};l[i]=this.activityData;var s=this.activity.name,o=this.activity.start;p.Z.put("/openc3-api/timeline/".concat(s,"/activity/").concat(o),{data:{start:n,stop:t,kind:i,data:l}}).then((function(n){var t=e.generateDateTime(new Date(1e3*n.data.start));e.$notify.normal({title:"Updated Activity",body:"".concat(t," (").concat(n.data.start,") on timeline: ").concat(n.data.name)})})),this.$emit("close"),this.show=!this.show}}},tn=nn,ln=(t(95906),(0,y.Z)(tn,Be,We,!1,null,"37955b8a",null)),sn=ln.exports,on=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Metadata")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-metadata-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}}),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"create-metadata-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Metadata input ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",{staticStyle:{"min-height":"200px"}},[n("metadata-input-form",{model:{value:e.metadata,callback:function(n){e.metadata=n},expression:"metadata"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-metadata-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-metadata-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateMetadata.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},an=[],rn={components:{ColorSelectForm:Re,MetadataInputForm:Le},props:{metadataObj:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{scope:window.openc3Scope,dialogStep:1,startDate:"",startTime:"",utcOrLocal:"loc",color:"",metadata:[],rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){var e=new Date,n=Date.parse("".concat(this.startDate,"T").concat(this.startTime));return e<n?"Invalid start time. Can not be in the future":null},typeError:function(){if(this.metadata.length<1)return"Please enter a value in the metadata table.";var e=this.metadata.find((function(e){return""===e.key||""===e.value}));return e?"Missing or empty key, value in the metadata table.":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){var e=this,n=new Date(1e3*this.metadataObj.start);this.startDate=(0,f.Z)(n,"yyyy-MM-dd"),this.startTime=(0,f.Z)(n,"HH:mm:ss"),this.metadata=Object.keys(this.metadataObj.metadata).map((function(n){return{key:n,value:e.metadataObj.metadata[n]}})),this.color=this.metadataObj.color},updateMetadata:function(){var e=this,n=this.color,t=this.metadata.reduce((function(e,n){return e[n.key]=n.value,e}),{}),i=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime)));p.Z.put("/openc3-api/metadata/".concat(this.metadataObj.start),{data:{start:i,color:n,metadata:t}}).then((function(i){e.$notify.normal({title:"Updated Metadata",body:"Metadata updated: (".concat(i.data.start,")")}),console.log("metadata update emit"),e.$emit("update",(0,o.Z)((0,o.Z)({},i.data.start),{},{color:n,metadata:t}))})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},cn=rn,un=(t(20408),(0,y.Z)(cn,on,an,!1,null,"f2badfd2",null)),dn=un.exports,mn=function(){var e=this,n=e._self._c;return n("div",[n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("form",{on:{submit:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Update Note")]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-note-icon"},on:{click:function(n){e.show=!e.show}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-stepper",{attrs:{vertical:"","non-linear":""},model:{value:e.dialogStep,callback:function(n){e.dialogStep=n},expression:"dialogStep"}},[n("v-stepper-step",{attrs:{editable:"",step:"1"}},[e._v(" Input start time, stop time ")]),n("v-stepper-content",{attrs:{step:"1"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"Start Date",rules:[e.rules.required],"data-test":"note-start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"Start Time",rules:[e.rules.required],"data-test":"note-start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}})],1),n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"mx-1",attrs:{type:"date",label:"End Date",rules:[e.rules.required],"data-test":"note-stop-date"},model:{value:e.stopDate,callback:function(n){e.stopDate=n},expression:"stopDate"}}),n("v-text-field",{staticClass:"mx-1",attrs:{type:"time",step:"1",label:"End Time",rules:[e.rules.required],"data-test":"note-stop-time"},model:{value:e.stopTime,callback:function(n){e.stopTime=n},expression:"stopTime"}})],1),n("v-row",{staticClass:"mx-2 mb-2"},[n("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[n("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),n("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1),n("v-row",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.timeError,expression:"timeError"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.timeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{attrs:{"data-test":"update-note-step-two-btn",color:"success",disabled:!!e.timeError},on:{click:function(n){e.dialogStep=2}}},[e._v(" Continue ")])],1)],1)])],1),n("v-stepper-step",{attrs:{editable:"",step:"2"}},[e._v(" Input Description ")]),n("v-stepper-content",{attrs:{step:"2"}},[n("v-card-text",[n("div",{staticClass:"pa-2"},[n("div",[n("color-select-form",{model:{value:e.color,callback:function(n){e.color=n},expression:"color"}})],1),n("div",[n("v-text-field",{attrs:{type:"text",label:"Note Description","data-test":"update-note-description"},model:{value:e.description,callback:function(n){e.description=n},expression:"description"}})],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:e.typeError,expression:"typeError"}]},[n("span",{staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.typeError)}})]),n("v-row",{staticClass:"mt-2"},[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"update-note-cancel-btn"},on:{click:function(n){e.show=!e.show}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary",type:"submit","data-test":"update-note-submit-btn",disabled:!!e.timeError||!!e.typeError},on:{click:function(n){return n.preventDefault(),e.updateNote.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)])],1)],1)},An=[],pn={components:{ColorSelectForm:Re},props:{note:{type:Object,required:!0},value:Boolean},mixins:[ge],data:function(){return{dialogStep:1,startDate:"",startTime:"",stopDate:"",stopTime:"",utcOrLocal:"loc",description:"",color:"",rules:{required:function(e){return!!e||"Required"}}}},watch:{show:function(){this.updateValues()}},computed:{timeError:function(){new Date;var e=Date.parse("".concat(this.startDate,"T").concat(this.startTime)),n=Date.parse("".concat(this.stopDate,"T").concat(this.stopTime));return e===n?"Invalid start, stop time. Notes must have different start and stop times.":e>n?"Invalid start time. Note start before stop.":null},typeError:function(){return this.description?null:"A description is required for a valid note."},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},methods:{updateValues:function(){this.dialogStep=1;var e=new Date(1e3*this.note.start),n=new Date(1e3*this.note.stop);this.startDate=(0,f.Z)(e,"yyyy-MM-dd"),this.startTime=(0,f.Z)(e,"HH:mm:ss"),this.stopDate=(0,f.Z)(n,"yyyy-MM-dd"),this.stopTime=(0,f.Z)(n,"HH:mm:ss"),this.color=this.note.color,this.description=this.note.description},updateNote:function(){var e=this,n=this.toIsoString(Date.parse("".concat(this.startDate,"T").concat(this.startTime))),t=this.toIsoString(Date.parse("".concat(this.stopDate,"T").concat(this.stopTime))),i=this.color,l=this.description;p.Z.put("/openc3-api/notes/".concat(this.note.start),{data:{start:n,stop:t,color:i,description:l}}).then((function(n){var t=n.data.description.length>16?"".concat(n.data.description.substring(0,16),"..."):n.data.description;e.$notify.normal({title:"Updated Note",body:"Note updated: (".concat(n.data.start,'): "').concat(t,'"')}),console.log(n.data),e.$emit("update",n.data)})),this.$emit("close"),this.show=!this.show,this.updateValues()}}},hn=pn,fn=(t(10204),(0,y.Z)(hn,mn,An,!1,null,"ffe4e8e8",null)),vn=fn.exports,gn={components:{MetadataCreateDialog:He,ActivityUpdateDialog:sn,MetadataUpdateDialog:dn,NoteUpdateDialog:vn},mixins:[ge,be],props:{events:{type:Array,required:!0},utc:{type:Boolean,default:!0},value:{type:Boolean,required:!0},types:{type:Array},newMetadata:{type:Boolean,default:!1}},data:function(){return{search:"",localEvents:(0,u.Z)(this.events),eventHeaders:[{text:"Start",value:"start",width:190},{text:"Stop",value:"end",width:190},{text:"Type",value:"type"},{text:"Data",value:"data"},{text:"Actions",value:"actions",sortable:!1}],editActivity:{start:new Date,end:new Date},editMetadata:{start:new Date,end:new Date},editNote:{start:new Date,end:new Date},editIndex:0,showActivityUpdate:!1,showMetadataUpdate:!1,showNoteUpdate:!1,showMetadataCreate:!1}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){var e=this;this.$on("delete",(function(n){var t=e.localEvents.findIndex((function(e){return e.type===n.type&&e.start===n.start}));e.localEvents.splice(t,1)}))},methods:{close:function(){this.$emit("close"),this.show=!1},dataFormat:function(e){var n=e.name;switch(e.type){case"note":n=e.note.description;break;case"metadata":var t=[];Object.entries(e.metadata.metadata).forEach((function(e){var n=(0,fe.Z)(e,2),i=n[0],l=n[1];return t.push("".concat(i," => ").concat(l))})),n=t.join(", ");break}return n},editAction:function(e){switch(this.editIndex=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),e.type){case"activity":this.editActivity=e.activity,this.showActivityUpdate=!0;break;case"metadata":this.editMetadata=e.metadata,this.showMetadataUpdate=!0;break;case"note":this.editNote=e.note,this.showNoteUpdate=!0;break}},deleteAction:function(e){var n=this,t=this.localEvents.findIndex((function(n){return n.type===e.type&&n.start===e.start})),i=null,l=null;switch(e.type){case"activity":i="timeline/".concat(e.activity.name,"/activity"),l=e.activity.start;break;case"metadata":i="metadata",l=e.metadata.start;break;case"note":i="notes",l=e.note.start;break}this.$dialog.confirm("Are you sure you want to remove ".concat(e.type," at ").concat(e.start),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return n.localEvents.splice(t,1),p.Z.delete("/openc3-api/".concat(i,"/").concat(l))})).then((function(t){n.$emit("update"),n.$notify.normal({title:"Deleted ".concat(e.type),body:"Deleted ".concat(e.type," at ").concat(l)})})).catch((function(e){}))},updateActivity:function(e){this.$emit("update"),this.localEvents[this.editIndex].activity=e},updateMetadata:function(e){this.$emit("update"),this.localEvents[this.editIndex].metadata=e},updateNote:function(e){this.$emit("update"),this.localEvents[this.editIndex].note=e},addMetadata:function(e){var n={name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e};this.localEvents.push(n)}}},bn=gn,Cn=(0,y.Z)(bn,pe,he,!1,null,null,null),_n=Cn.exports;function yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="06e0185cc3d18ad16e03681078b2576b22fec3e6",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:9,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:8,column:645}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:697},end:{line:1,column:711}},6:{start:{line:8,column:123},end:{line:8,column:440}},7:{start:{line:8,column:231},end:{line:8,column:382}},8:{start:{line:8,column:295},end:{line:8,column:326}},9:{start:{line:8,column:592},end:{line:8,column:612}},10:{start:{line:10,column:22},end:{line:10,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:9,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:681},end:{line:1,column:682}},loc:{start:{line:1,column:696},end:{line:1,column:712}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:8,column:104},end:{line:8,column:105}},loc:{start:{line:8,column:122},end:{line:8,column:441}},line:8},4:{name:"(anonymous_4)",decl:{start:{line:8,column:207},end:{line:8,column:208}},loc:{start:{line:8,column:230},end:{line:8,column:383}},line:8},5:{name:"(anonymous_5)",decl:{start:{line:8,column:278},end:{line:8,column:279}},loc:{start:{line:8,column:294},end:{line:8,column:327}},line:8},6:{name:"(anonymous_6)",decl:{start:{line:8,column:575},end:{line:8,column:576}},loc:{start:{line:8,column:591},end:{line:8,column:613}},line:8}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"06e0185cc3d18ad16e03681078b2576b22fec3e6"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yn=function(){return o},o}yn(),yn().s[0]++;var wn=function(){yn().f[0]++;var e=(yn().s[1]++,this),n=(yn().s[2]++,e._self._c);return yn().s[3]++,n("v-dialog",{attrs:{width:"700"},model:{value:e.show,callback:function(n){yn().f[1]++,yn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Overrides")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-clear-all"},on:{click:e.clearOverrides}},[e._v(" Clear All Overrides ")]),n("v-card-title",[e._v(" Overrides "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){yn().f[2]++,yn().s[5]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.overrides,search:e.search,"footer-props":{itemsPerPageOptions:[100],showFirstLastPage:!0,firstIcon:"mdi-page-first",lastIcon:"mdi-page-last",prevIcon:"mdi-chevron-left",nextIcon:"mdi-chevron-right"},"calculate-widths":"","multi-sort":"",dense:""},scopedSlots:e._u([{key:"item.delete",fn:function(t){var i=t.item;return yn().f[3]++,yn().s[6]++,[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return yn().f[4]++,yn().s[7]++,[n("v-icon",e._g(e._b({on:{click:function(n){return yn().f[5]++,yn().s[8]++,e.deleteOverride(i)}}},"v-icon",s,!1),l),[e._v(" mdi-delete ")])]}}],null,!0)},[n("span",[e._v("Delete Override")])])]}}])})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"overrides-dialog-ok"},on:{click:function(n){yn().f[6]++,yn().s[9]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},xn=(yn().s[10]++,[]);t(79321);function kn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",n="6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/OverridesDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:25,column:5}},1:{start:{line:28,column:4},end:{line:28,column:30}},2:{start:{line:29,column:4},end:{line:29,column:23}},3:{start:{line:34,column:8},end:{line:34,column:25}},4:{start:{line:37,column:8},end:{line:37,column:34}},5:{start:{line:43,column:6},end:{line:45,column:8}},6:{start:{line:44,column:8},end:{line:44,column:31}},7:{start:{line:48,column:20},end:{line:56,column:7}},8:{start:{line:50,column:39},end:{line:54,column:11}},9:{start:{line:57,column:6},end:{line:68,column:7}},10:{start:{line:58,column:8},end:{line:67,column:12}},11:{start:{line:66,column:12},end:{line:66,column:31}},12:{start:{line:71,column:6},end:{line:81,column:10}},13:{start:{line:79,column:22},end:{line:79,column:50}},14:{start:{line:80,column:10},end:{line:80,column:41}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:26,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:27,column:11},end:{line:27,column:12}},loc:{start:{line:27,column:23},end:{line:30,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:33,column:6},end:{line:33,column:7}},loc:{start:{line:33,column:12},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:6},end:{line:36,column:7}},loc:{start:{line:36,column:17},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:42,column:18},end:{line:42,column:19}},loc:{start:{line:42,column:30},end:{line:46,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:43,column:36},end:{line:43,column:37}},loc:{start:{line:43,column:48},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:20},end:{line:47,column:21}},loc:{start:{line:47,column:32},end:{line:69,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:50,column:29},end:{line:50,column:30}},loc:{start:{line:50,column:39},end:{line:54,column:11}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:65,column:16},end:{line:65,column:17}},loc:{start:{line:65,column:28},end:{line:67,column:11}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:70,column:20},end:{line:70,column:21}},loc:{start:{line:70,column:36},end:{line:82,column:5}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:14},end:{line:78,column:15}},loc:{start:{line:78,column:26},end:{line:81,column:9}},line:78}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{},inputSourceMap:{version:3,sources:["OverridesDialog.vue"],names:[],mappings:";AAmGA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"OverridesDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="700">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Overrides</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-btn\n @click="clearOverrides"\n color="primary"\n data-test="overrides-dialog-clear-all"\n >\n Clear All Overrides\n </v-btn>\n\n <v-card-title>\n Overrides\n <v-spacer />\n <v-text-field\n v-model="search"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers="headers"\n :items="overrides"\n :search="search"\n :footer-props="{\n itemsPerPageOptions: [100],\n showFirstLastPage: true,\n firstIcon: \'mdi-page-first\',\n lastIcon: \'mdi-page-last\',\n prevIcon: \'mdi-chevron-left\',\n nextIcon: \'mdi-chevron-right\',\n }"\n calculate-widths\n multi-sort\n dense\n >\n <template v-slot:item.delete="{ item }">\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click="deleteOverride(item)"\n v-bind="attrs"\n v-on="on"\n >\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Override</span>\n </v-tooltip>\n </template>\n </v-data-table>\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="show = !show"\n color="primary"\n data-test="overrides-dialog-ok"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n api: null,\n overrides: [],\n search: \'\',\n headers: [\n { text: \'Target\', value: \'target_name\' },\n { text: \'Packet\', value: \'packet_name\' },\n { text: \'Item\', value: \'item_name\' },\n { text: \'Type\', value: \'value_type\' },\n { text: \'Value\', value: \'value\' },\n { text: \'Delete\', value: \'delete\' },\n ],\n }\n },\n created: function () {\n this.api = new OpenC3Api()\n this.getOverrides()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n getOverrides: function () {\n this.api.get_overrides().then((result) => {\n this.overrides = result\n })\n },\n clearOverrides: function () {\n const items = [\n ...new Map(\n this.overrides.map((item) => [\n // Create a key based on target, packet, item so we remove duplicates\n `${item.target_name}__${item.packet_name}__${item.item_name}`,\n item,\n ])\n ).values(),\n ]\n for (let item of items) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n \'ALL\'\n )\n .then((result) => {\n this.overrides = []\n })\n }\n },\n deleteOverride: function (item) {\n this.api\n .normalize_tlm(\n item.target_name,\n item.packet_name,\n item.item_name,\n item.value_type\n )\n .then((result) => {\n var index = this.overrides.indexOf(item)\n this.overrides.splice(index, 1)\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6eab611104a9acfa1bdb6fd1d2b8ea3368cb1288"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return kn=function(){return o},o}kn();var Sn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return kn().f[0]++,kn().s[0]++,{api:null,overrides:[],search:"",headers:[{text:"Target",value:"target_name"},{text:"Packet",value:"packet_name"},{text:"Item",value:"item_name"},{text:"Type",value:"value_type"},{text:"Value",value:"value"},{text:"Delete",value:"delete"}]}},created:function(){kn().f[1]++,kn().s[1]++,this.api=new V.k,kn().s[2]++,this.getOverrides()},computed:{show:{get:function(){return kn().f[2]++,kn().s[3]++,this.value},set:function(e){kn().f[3]++,kn().s[4]++,this.$emit("input",e)}}},methods:{getOverrides:function(){var e=this;kn().f[4]++,kn().s[5]++,this.api.get_overrides().then((function(n){kn().f[5]++,kn().s[6]++,e.overrides=n}))},clearOverrides:function(){var e=this;kn().f[6]++;var n=(kn().s[7]++,(0,u.Z)(new Map(this.overrides.map((function(e){return kn().f[7]++,kn().s[8]++,["".concat(e.target_name,"__").concat(e.packet_name,"__").concat(e.item_name),e]}))).values()));kn().s[9]++;var t,i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var l=t.value;kn().s[10]++,this.api.normalize_tlm(l.target_name,l.packet_name,l.item_name,"ALL").then((function(n){kn().f[8]++,kn().s[11]++,e.overrides=[]}))}}catch(s){i.e(s)}finally{i.f()}},deleteOverride:function(e){var n=this;kn().f[9]++,kn().s[12]++,this.api.normalize_tlm(e.target_name,e.packet_name,e.item_name,e.value_type).then((function(t){kn().f[10]++;var i=(kn().s[13]++,n.overrides.indexOf(e));kn().s[14]++,n.overrides.splice(i,1)}))}}},Mn=Sn,En=(0,y.Z)(Mn,wn,xn,!1,null,null,null),Tn=En.exports;function Rn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:2108}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:1101},end:{line:1,column:1129}},6:{start:{line:1,column:1189},end:{line:1,column:1209}},7:{start:{line:1,column:1835},end:{line:1,column:2090}},8:{start:{line:1,column:2006},end:{line:1,column:2044}},9:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1084},end:{line:1,column:1085}},loc:{start:{line:1,column:1100},end:{line:1,column:1130}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1173},end:{line:1,column:1174}},loc:{start:{line:1,column:1188},end:{line:1,column:1210}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1812},end:{line:1,column:1813}},loc:{start:{line:1,column:1834},end:{line:1,column:2091}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1989},end:{line:1,column:1990}},loc:{start:{line:1,column:2005},end:{line:1,column:2045}},line:1}},branchMap:{0:{loc:{start:{line:1,column:414},end:{line:1,column:547}},type:"cond-expr",locations:[{start:{line:1,column:429},end:{line:1,column:538}},{start:{line:1,column:539},end:{line:1,column:547}}],line:1},1:{loc:{start:{line:1,column:680},end:{line:1,column:834}},type:"cond-expr",locations:[{start:{line:1,column:694},end:{line:1,column:825}},{start:{line:1,column:826},end:{line:1,column:834}}],line:1},2:{loc:{start:{line:1,column:843},end:{line:1,column:2100}},type:"cond-expr",locations:[{start:{line:1,column:868},end:{line:1,column:1585}},{start:{line:1,column:1586},end:{line:1,column:2100}}],line:1},3:{loc:{start:{line:1,column:1946},end:{line:1,column:1975}},type:"cond-expr",locations:[{start:{line:1,column:1961},end:{line:1,column:1970}},{start:{line:1,column:1973},end:{line:1,column:1975}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5ca1ffb56cb87cfc1f4eb8f4fc8d2e42cb28e05c"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Rn=function(){return o},o}Rn(),Rn().s[0]++;var Dn=function(){Rn().f[0]++;var e=(Rn().s[1]++,this),n=(Rn().s[2]++,e._self._c);return Rn().s[3]++,n("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:e.show,callback:function(n){Rn().f[1]++,Rn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.title)}}),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[e.subtitle?(Rn().b[0][0]++,n("v-row",[n("v-card-subtitle",{staticStyle:{"white-space":"pre-line"}},[e._v(e._s(e.subtitle))])],1)):(Rn().b[0][1]++,e._e()),n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.message)}})]),e.details?(Rn().b[1][0]++,n("v-row",{staticClass:"mt-1"},[n("span",{staticStyle:{"white-space":"pre-line"},domProps:{textContent:e._s(e.details)}})])):(Rn().b[1][1]++,e._e())],1)],1),"combo"===e.layout?(Rn().b[2][0]++,n("div",[n("v-row",{staticClass:"ma-2"},[n("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:e.buttons,multiple:!0===e.multiple},on:{change:function(n){Rn().f[2]++,Rn().s[5]++,e.selectOkDisabled=!1}},model:{value:e.selectedItem,callback:function(n){Rn().f[3]++,Rn().s[6]++,e.selectedItem=n},expression:"selectedItem"}})],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:e.selectOkDisabled},on:{click:e.submitHandler}},[e._v(" Ok ")])],1)],1)):(Rn().b[2][1]++,n("div",[n("v-card-actions",{class:e.layoutClass},[n("v-spacer"),n("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:e.cancelHandler}},[e._v(" Cancel ")]),e._l(e.buttons,(function(t,i){return Rn().f[4]++,Rn().s[7]++,n("div",{key:i},[n("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?(Rn().b[3][0]++,"primary"):(Rn().b[3][1]++,"")},on:{click:function(n){return Rn().f[5]++,Rn().s[8]++,e.submitWrapper(t.value)}}},[e._v(" "+e._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},In=(Rn().s[9]++,[]);function On(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",n="65d11c40c3eed705d3f7568ff0b6217e128de16b",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:36,column:4},end:{line:39,column:5}},2:{start:{line:44,column:8},end:{line:44,column:25}},3:{start:{line:47,column:8},end:{line:47,column:34}},4:{start:{line:51,column:19},end:{line:51,column:39}},5:{start:{line:52,column:6},end:{line:56,column:7}},6:{start:{line:53,column:8},end:{line:53,column:38}},7:{start:{line:55,column:8},end:{line:55,column:35}},8:{start:{line:61,column:6},end:{line:61,column:32}},9:{start:{line:62,column:6},end:{line:62,column:26}},10:{start:{line:65,column:6},end:{line:65,column:47}},11:{start:{line:68,column:6},end:{line:68,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:15},end:{line:22,column:16}},loc:{start:{line:22,column:21},end:{line:22,column:23}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:35,column:2},end:{line:35,column:3}},loc:{start:{line:35,column:9},end:{line:40,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},3:{name:"(anonymous_3)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:18},end:{line:57,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:60,column:19},end:{line:60,column:20}},loc:{start:{line:60,column:37},end:{line:63,column:5}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:64,column:19},end:{line:64,column:20}},loc:{start:{line:64,column:31},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:31},end:{line:69,column:5}},line:67}},branchMap:{0:{loc:{start:{line:52,column:6},end:{line:56,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:56,column:7}},{start:{line:54,column:13},end:{line:56,column:7}}],line:52}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0]},inputSourceMap:{version:3,sources:["PromptDialog.vue"],names:[],mappings:";AA2GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"PromptDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog persistent v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span style="white-space: pre-line" v-text="title" />\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-row v-if="subtitle">\n <v-card-subtitle style="white-space: pre-line">{{\n subtitle\n }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span style="white-space: pre-line" v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span style="white-space: pre-line" v-text="details" />\n </v-row>\n </v-card-text>\n </div>\n <div v-if="layout === \'combo\'">\n <v-row class="ma-2">\n <v-select\n @change="selectOkDisabled = false"\n v-model="selectedItem"\n label="Select"\n color="secondary"\n class="ma-1"\n data-test="prompt-select"\n :items="buttons"\n :multiple="multiple === true"\n />\n </v-row>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="submitHandler"\n class="ma-1"\n color="primary"\n data-test="prompt-ok"\n :disabled="selectOkDisabled"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </div>\n <div v-else>\n <v-card-actions :class="layoutClass">\n <v-spacer />\n <v-btn\n @click="cancelHandler"\n outlined\n data-test="prompt-cancel"\n class="ma-1"\n >\n Cancel\n </v-btn>\n <div v-for="(button, index) in buttons" :key="index">\n <v-btn\n @click="submitWrapper(button.value)"\n class="ma-1"\n :data-test="`prompt-${button.text}`"\n :color="button.value ? \'primary\' : \'\'"\n >\n {{ button.text }}\n </v-btn>\n </div>\n </v-card-actions>\n </div>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nexport default {\n props: {\n title: {\n type: String,\n default: \'Prompt Dialog\',\n },\n subtitle: {\n type: String,\n default: \'\',\n },\n message: {\n type: String,\n required: true,\n },\n details: {\n type: String,\n default: \'\',\n },\n buttons: {\n type: Array,\n default: () => [],\n },\n layout: {\n type: String,\n default: \'horizontal\', // Also \'vertical\' or \'combo\' when means ComboBox\n },\n multiple: {\n type: Boolean,\n default: false,\n required: false,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {\n selectOkDisabled: true,\n selectedItem: null,\n }\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n layoutClass() {\n let layout = \'d-flex align-start\'\n if (this.layout === \'vertical\') {\n return `${layout} flex-column`\n } else {\n return `${layout} flex-row`\n }\n },\n },\n methods: {\n submitWrapper: function (output) {\n this.selectedItem = output\n this.submitHandler()\n },\n submitHandler: function () {\n this.$emit(\'response\', this.selectedItem)\n },\n cancelHandler: function () {\n this.$emit(\'response\', \'Cancel\')\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-card__subtitle {\n padding: 0;\n padding-bottom: 10px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65d11c40c3eed705d3f7568ff0b6217e128de16b"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return On=function(){return o},o}On();var Nn={props:{title:{type:String,default:"Prompt Dialog"},subtitle:{type:String,default:""},message:{type:String,required:!0},details:{type:String,default:""},buttons:{type:Array,default:function(){return On().f[0]++,On().s[0]++,[]}},layout:{type:String,default:"horizontal"},multiple:{type:Boolean,default:!1,required:!1},value:Boolean},data:function(){return On().f[1]++,On().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return On().f[2]++,On().s[2]++,this.value},set:function(e){On().f[3]++,On().s[3]++,this.$emit("input",e)}},layoutClass:function(){On().f[4]++;var e=(On().s[4]++,"d-flex align-start");return On().s[5]++,"vertical"===this.layout?(On().b[0][0]++,On().s[6]++,"".concat(e," flex-column")):(On().b[0][1]++,On().s[7]++,"".concat(e," flex-row"))}},methods:{submitWrapper:function(e){On().f[5]++,On().s[8]++,this.selectedItem=e,On().s[9]++,this.submitHandler()},submitHandler:function(){On().f[6]++,On().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){On().f[7]++,On().s[11]++,this.$emit("response","Cancel")}}},Zn=Nn,Ln=(t(74087),(0,y.Z)(Zn,Dn,In,!1,null,"33fbf9b4",null)),Fn=Ln.exports;function Pn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="89650bbdcb6d38415a1d1a73e5a9a7a2a78319fb",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:824}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:771},end:{line:1,column:791}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:153},end:{line:1,column:154}},loc:{start:{line:1,column:168},end:{line:1,column:182}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:754},end:{line:1,column:755}},loc:{start:{line:1,column:770},end:{line:1,column:792}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"89650bbdcb6d38415a1d1a73e5a9a7a2a78319fb"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Pn=function(){return o},o}Pn(),Pn().s[0]++;var $n=function(){Pn().f[0]++;var e=(Pn().s[1]++,this),n=(Pn().s[2]++,e._self._c);return Pn().s[3]++,n("v-dialog",{attrs:{scrollable:"",width:"600"},model:{value:e.show,callback:function(n){Pn().f[1]++,Pn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Script Results ")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",{staticStyle:{width:"100%","max-height":"80vh",overflow:"auto"}},[n("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:e.text}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.downloadResults}},[e._v(" Download ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){Pn().f[2]++,Pn().s[5]++,e.show=!e.show}}},[e._v(" Ok ")])],1)],1)],1)},Hn=(Pn().s[6]++,[]);function Bn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",n="8b350299e1753c502da1391866e2c1bb27d46a32",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",statementMap:{0:{start:{line:19,column:8},end:{line:19,column:25}},1:{start:{line:22,column:8},end:{line:22,column:34}},2:{start:{line:28,column:19},end:{line:30,column:8}},3:{start:{line:32,column:19},end:{line:32,column:46}},4:{start:{line:33,column:6},end:{line:33,column:43}},5:{start:{line:34,column:6},end:{line:37,column:7}},6:{start:{line:38,column:6},end:{line:38,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:6},end:{line:18,column:7}},loc:{start:{line:18,column:12},end:{line:20,column:7}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:21,column:6},end:{line:21,column:7}},loc:{start:{line:21,column:17},end:{line:23,column:7}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:27,column:4},end:{line:27,column:5}},loc:{start:{line:27,column:22},end:{line:39,column:5}},line:27}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["ResultsDialog.vue"],names:[],mappings:";AA6CA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ResultsDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" scrollable width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Script Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text style="width: 100%; max-height: 80vh; overflow: auto">\n <v-textarea readonly hide-details dense auto-grow :value="text" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn class="mx-2" outlined @click="downloadResults"> Download </v-btn>\n <v-btn class="mx-2" color="primary" @click="show = !show"> Ok </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n components: {},\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n text: {\n type: String,\n required: true,\n },\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadResults() {\n const blob = new Blob([this.text], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_suite_results.txt\'\n )\n link.click()\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8b350299e1753c502da1391866e2c1bb27d46a32"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bn=function(){return o},o}Bn();var Wn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Bn().f[0]++,Bn().s[0]++,this.value},set:function(e){Bn().f[1]++,Bn().s[1]++,this.$emit("input",e)}}},methods:{downloadResults:function(){Bn().f[2]++;var e=(Bn().s[2]++,new Blob([this.text],{type:"text/plain"})),n=(Bn().s[3]++,document.createElement("a"));Bn().s[4]++,n.href=URL.createObjectURL(e),Bn().s[5]++,n.setAttribute("download",(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Bn().s[6]++,n.click()}}},Vn=Wn,Un=(0,y.Z)(Vn,$n,Hn,!1,null,null,null),Gn=Un.exports;function zn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="fab91814d1f664d7dcc6f1b2beb8e7a3c2545224",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:851}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:434},end:{line:1,column:450}},6:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:418},end:{line:1,column:419}},loc:{start:{line:1,column:433},end:{line:1,column:451}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fab91814d1f664d7dcc6f1b2beb8e7a3c2545224"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return zn=function(){return o},o}zn(),zn().s[0]++;var jn=function(){zn().f[0]++;var e=(zn().s[1]++,this),n=(zn().s[2]++,e._self._c);return zn().s[3]++,n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){zn().f[1]++,zn().s[4]++,e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Script Environment Variables")]),n("v-spacer")],1),n("div",{staticClass:"pa-2"},[n("v-card-text",[n("environment-chooser",{model:{value:e.selected,callback:function(n){zn().f[2]++,zn().s[5]++,e.selected=n},expression:"selected"}})],1)],1),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!e.inputError},on:{click:e.updateEnvironment}},[e._v(" Save ")])],1)],1)],1)},qn=(zn().s[6]++,[]);function Yn(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",n="65e119e98de479afb4b1ef5c4afa2ff2f029eeb0",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",statementMap:{0:{start:{line:19,column:4},end:{line:21,column:5}},1:{start:{line:24,column:4},end:{line:24,column:26}},2:{start:{line:29,column:8},end:{line:29,column:25}},3:{start:{line:32,column:8},end:{line:32,column:34}},4:{start:{line:38,column:6},end:{line:38,column:48}},5:{start:{line:41,column:6},end:{line:41,column:46}},6:{start:{line:42,column:6},end:{line:42,column:28}},7:{start:{line:45,column:6},end:{line:45,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:9},end:{line:22,column:3}},line:18},1:{name:"(anonymous_1)",decl:{start:{line:23,column:11},end:{line:23,column:12}},loc:{start:{line:23,column:23},end:{line:25,column:3}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:28,column:6},end:{line:28,column:7}},loc:{start:{line:28,column:12},end:{line:30,column:7}},line:28},3:{name:"(anonymous_3)",decl:{start:{line:31,column:6},end:{line:31,column:7}},loc:{start:{line:31,column:17},end:{line:33,column:7}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:37,column:21},end:{line:37,column:22}},loc:{start:{line:37,column:33},end:{line:39,column:5}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:40,column:23},end:{line:40,column:24}},loc:{start:{line:40,column:35},end:{line:43,column:5}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:44,column:12},end:{line:44,column:13}},loc:{start:{line:44,column:24},end:{line:46,column:5}},line:44}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptEnvironmentDialog.vue"],names:[],mappings:";AA4DA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptEnvironmentDialog.vue",sourceRoot:"src/tools/ScriptRunner/Dialogs",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Script Environment Variables</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <environment-chooser v-model="selected" />\n </v-card-text>\n </div>\n <v-card-actions>\n <v-spacer />\n <v-btn\n @click="cancel"\n class="mx-2"\n outlined\n data-test="environment-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateEnvironment"\n class="mx-2"\n color="primary"\n data-test="environment-dialog-save"\n :disabled="!!inputError"\n >\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport EnvironmentChooser from \'@openc3/tool-common/src/components/EnvironmentChooser\'\n\nexport default {\n components: {\n EnvironmentChooser,\n },\n props: {\n value: {\n type: Boolean,\n required: true,\n },\n inputEnvironment: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n selected: [],\n }\n },\n mounted: function () {\n this.loadEnvironment()\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n loadEnvironment: function () {\n this.selected = [...this.inputEnvironment]\n },\n updateEnvironment: function () {\n this.$emit(\'environment\', this.selected)\n this.show = !this.show\n },\n cancel: function () {\n this.show = !this.show\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"65e119e98de479afb4b1ef5c4afa2ff2f029eeb0"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Yn=function(){return o},o}Yn();var Kn={components:{EnvironmentChooser:qe},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return Yn().f[0]++,Yn().s[0]++,{selected:[]}},mounted:function(){Yn().f[1]++,Yn().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return Yn().f[2]++,Yn().s[2]++,this.value},set:function(e){Yn().f[3]++,Yn().s[3]++,this.$emit("input",e)}}},methods:{loadEnvironment:function(){Yn().f[4]++,Yn().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){Yn().f[5]++,Yn().s[5]++,this.$emit("environment",this.selected),Yn().s[6]++,this.show=!this.show},cancel:function(){Yn().f[6]++,Yn().s[7]++,this.show=!this.show}}},Xn=Kn,Jn=(0,y.Z)(Xn,jn,qn,!1,null,null,null),Qn=Jn.exports;function et(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="a01de25c5536256c5a667e93833a9611e1c57967",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:106}},4:{start:{line:1,column:448},end:{line:1,column:463}},5:{start:{line:1,column:676},end:{line:1,column:691}},6:{start:{line:1,column:1069},end:{line:1,column:1082}},7:{start:{line:1,column:1288},end:{line:1,column:1375}},8:{start:{line:1,column:1568},end:{line:1,column:1655}},9:{start:{line:1,column:1835},end:{line:1,column:1925}},10:{start:{line:1,column:2318},end:{line:1,column:2333}},11:{start:{line:1,column:2540},end:{line:1,column:2555}},12:{start:{line:1,column:2933},end:{line:1,column:2946}},13:{start:{line:1,column:3152},end:{line:1,column:3257}},14:{start:{line:1,column:3450},end:{line:1,column:3555}},15:{start:{line:1,column:3735},end:{line:1,column:3843}},16:{start:{line:1,column:4227},end:{line:1,column:4242}},17:{start:{line:1,column:4532},end:{line:1,column:4547}},18:{start:{line:1,column:4930},end:{line:1,column:4944}},19:{start:{line:1,column:5133},end:{line:7,column:18}},20:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:432},end:{line:1,column:433}},loc:{start:{line:1,column:447},end:{line:1,column:464}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:660},end:{line:1,column:661}},loc:{start:{line:1,column:675},end:{line:1,column:692}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1053},end:{line:1,column:1054}},loc:{start:{line:1,column:1068},end:{line:1,column:1083}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1271},end:{line:1,column:1272}},loc:{start:{line:1,column:1287},end:{line:1,column:1376}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1551},end:{line:1,column:1552}},loc:{start:{line:1,column:1567},end:{line:1,column:1656}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1818},end:{line:1,column:1819}},loc:{start:{line:1,column:1834},end:{line:1,column:1926}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2302},end:{line:1,column:2303}},loc:{start:{line:1,column:2317},end:{line:1,column:2334}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2524},end:{line:1,column:2525}},loc:{start:{line:1,column:2539},end:{line:1,column:2556}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2917},end:{line:1,column:2918}},loc:{start:{line:1,column:2932},end:{line:1,column:2947}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3135},end:{line:1,column:3136}},loc:{start:{line:1,column:3151},end:{line:1,column:3258}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3433},end:{line:1,column:3434}},loc:{start:{line:1,column:3449},end:{line:1,column:3556}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3718},end:{line:1,column:3719}},loc:{start:{line:1,column:3734},end:{line:1,column:3844}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4211},end:{line:1,column:4212}},loc:{start:{line:1,column:4226},end:{line:1,column:4243}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4516},end:{line:1,column:4517}},loc:{start:{line:1,column:4531},end:{line:1,column:4548}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4914},end:{line:1,column:4915}},loc:{start:{line:1,column:4929},end:{line:1,column:4945}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5116},end:{line:1,column:5117}},loc:{start:{line:1,column:5132},end:{line:7,column:19}},line:1}},branchMap:{0:{loc:{start:{line:1,column:1493},end:{line:1,column:1537}},type:"binary-expr",locations:[{start:{line:1,column:1493},end:{line:1,column:1511}},{start:{line:1,column:1515},end:{line:1,column:1537}}],line:1},1:{loc:{start:{line:1,column:1757},end:{line:1,column:1804}},type:"binary-expr",locations:[{start:{line:1,column:1757},end:{line:1,column:1775}},{start:{line:1,column:1779},end:{line:1,column:1804}}],line:1},2:{loc:{start:{line:1,column:3375},end:{line:1,column:3419}},type:"binary-expr",locations:[{start:{line:1,column:3375},end:{line:1,column:3393}},{start:{line:1,column:3397},end:{line:1,column:3419}}],line:1},3:{loc:{start:{line:1,column:3657},end:{line:1,column:3704}},type:"binary-expr",locations:[{start:{line:1,column:3657},end:{line:1,column:3675}},{start:{line:1,column:3679},end:{line:1,column:3704}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a01de25c5536256c5a667e93833a9611e1c57967"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return et=function(){return o},o}et(),et().s[0]++;var nt=function(){et().f[0]++;var e=(et().s[1]++,this),n=(et().s[2]++,e._self._c);return et().s[3]++,n("div",[n("div",{attrs:{id:"tr-container"}},[n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:e.options,callback:function(n){et().f[1]++,et().s[4]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:e.options,callback:function(n){et().f[2]++,et().s[5]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:e.suites,"data-test":"select-suite"},on:{change:e.suiteChanged},model:{value:e.suite,callback:function(n){et().f[3]++,et().s[6]++,e.suite=n},expression:"suite"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-suite"},on:{click:function(n){return et().f[4]++,et().s[7]++,e.$emit("button",{method:"start",suite:e.suite,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(et().b[0][0]++,e.disableButtons||(et().b[0][1]++,!e.setupSuiteEnabled))},on:{click:function(n){return et().f[5]++,et().s[8]++,e.$emit("button",{method:"setup",suite:e.suite,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(et().b[1][0]++,e.disableButtons||(et().b[1][1]++,!e.teardownSuiteEnabled))},on:{click:function(n){return et().f[6]++,et().s[9]++,e.$emit("button",{method:"teardown",suite:e.suite,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:e.options,callback:function(n){et().f[7]++,et().s[10]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:e.options,callback:function(n){et().f[8]++,et().s[11]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:e.groups,"data-test":"select-group"},on:{change:e.groupChanged},model:{value:e.group,callback:function(n){et().f[9]++,et().s[12]++,e.group=n},expression:"group"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-group"},on:{click:function(n){return et().f[10]++,et().s[13]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Start ")]),n("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(et().b[2][0]++,e.disableButtons||(et().b[2][1]++,!e.setupGroupEnabled))},on:{click:function(n){return et().f[11]++,et().s[14]++,e.$emit("button",{method:"setup",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Setup ")]),n("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(et().b[3][0]++,e.disableButtons||(et().b[3][1]++,!e.teardownGroupEnabled))},on:{click:function(n){return et().f[12]++,et().s[15]++,e.$emit("button",{method:"teardown",suite:e.suite,group:e.group,options:e.options})}}},[e._v(" Teardown ")])],1)],1)],1)],1),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-col",{attrs:{cols:"4"}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:e.options,callback:function(n){et().f[13]++,et().s[16]++,e.options=n},expression:"options"}})],1),n("v-col",{attrs:{cols:"6"}},[n("v-checkbox",{attrs:{disabled:!e.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:e.options,callback:function(n){et().f[14]++,et().s[17]++,e.options=n},expression:"options"}})],1)],1)],1),n("v-col",{attrs:{cols:"8"}},[n("v-row",{attrs:{"no-gutters":"",justify:"end"}},[n("v-col",{attrs:{cols:"5"}},[n("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:e.scripts,"data-test":"select-script"},on:{change:e.scriptChanged},model:{value:e.script,callback:function(n){et().f[15]++,et().s[18]++,e.script=n},expression:"script"}})],1),n("v-col",{attrs:{cols:"auto"}},[n("v-btn",{attrs:{color:"primary",disabled:e.disableButtons,"data-test":"start-script"},on:{click:function(n){return et().f[16]++,et().s[19]++,e.$emit("button",{method:"start",suite:e.suite,group:e.group,script:e.script,options:e.options})}}},[e._v(" Start ")]),n("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},tt=(et().s[20]++,[]);function it(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",n="f2c5bb67e843bcea1658ca32e99187e727ff97f3",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",statementMap:{0:{start:{line:14,column:4},end:{line:22,column:5}},1:{start:{line:26,column:6},end:{line:30,column:7}},2:{start:{line:27,column:8},end:{line:27,column:19}},3:{start:{line:29,column:8},end:{line:29,column:20}},4:{start:{line:33,column:6},end:{line:37,column:7}},5:{start:{line:34,column:8},end:{line:34,column:19}},6:{start:{line:36,column:8},end:{line:36,column:20}},7:{start:{line:40,column:6},end:{line:48,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:8},end:{line:47,column:20}},10:{start:{line:51,column:6},end:{line:59,column:7}},11:{start:{line:56,column:8},end:{line:56,column:19}},12:{start:{line:58,column:8},end:{line:58,column:20}},13:{start:{line:63,column:4},end:{line:63,column:21}},14:{start:{line:69,column:8},end:{line:69,column:29}},15:{start:{line:76,column:6},end:{line:76,column:46}},16:{start:{line:77,column:6},end:{line:85,column:7}},17:{start:{line:81,column:8},end:{line:81,column:25}},18:{start:{line:83,column:8},end:{line:83,column:67}},19:{start:{line:84,column:8},end:{line:84,column:75}},20:{start:{line:88,column:6},end:{line:88,column:46}},21:{start:{line:89,column:6},end:{line:89,column:39}},22:{start:{line:92,column:6},end:{line:92,column:24}},23:{start:{line:93,column:6},end:{line:93,column:21}},24:{start:{line:94,column:6},end:{line:94,column:22}},25:{start:{line:95,column:6},end:{line:95,column:60}},26:{start:{line:97,column:6},end:{line:97,column:39}},27:{start:{line:100,column:6},end:{line:100,column:24}},28:{start:{line:101,column:6},end:{line:101,column:22}},29:{start:{line:102,column:6},end:{line:102,column:68}},30:{start:{line:104,column:6},end:{line:104,column:41}},31:{start:{line:107,column:6},end:{line:107,column:25}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:23,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:24},end:{line:31,column:5}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:32,column:4},end:{line:32,column:5}},loc:{start:{line:32,column:27},end:{line:38,column:5}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:24},end:{line:49,column:5}},line:39},4:{name:"(anonymous_4)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:27},end:{line:60,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:12},end:{line:64,column:3}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:68,column:15},end:{line:68,column:16}},loc:{start:{line:68,column:41},end:{line:70,column:7}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:75,column:4},end:{line:75,column:5}},loc:{start:{line:75,column:21},end:{line:86,column:5}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:17},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:24},end:{line:98,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:99,column:4},end:{line:99,column:5}},loc:{start:{line:99,column:24},end:{line:105,column:5}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:106,column:4},end:{line:106,column:5}},loc:{start:{line:106,column:25},end:{line:108,column:5}},line:106}},branchMap:{0:{loc:{start:{line:26,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:26,column:6},end:{line:30,column:7}},{start:{line:28,column:13},end:{line:30,column:7}}],line:26},1:{loc:{start:{line:26,column:10},end:{line:26,column:55}},type:"binary-expr",locations:[{start:{line:26,column:10},end:{line:26,column:20}},{start:{line:26,column:24},end:{line:26,column:55}}],line:26},2:{loc:{start:{line:33,column:6},end:{line:37,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:37,column:7}},{start:{line:35,column:13},end:{line:37,column:7}}],line:33},3:{loc:{start:{line:33,column:10},end:{line:33,column:58}},type:"binary-expr",locations:[{start:{line:33,column:10},end:{line:33,column:20}},{start:{line:33,column:24},end:{line:33,column:58}}],line:33},4:{loc:{start:{line:40,column:6},end:{line:48,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:48,column:7}},{start:{line:46,column:13},end:{line:48,column:7}}],line:40},5:{loc:{start:{line:41,column:8},end:{line:43,column:58}},type:"binary-expr",locations:[{start:{line:41,column:8},end:{line:41,column:18}},{start:{line:42,column:8},end:{line:42,column:18}},{start:{line:43,column:8},end:{line:43,column:58}}],line:41},6:{loc:{start:{line:51,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:59,column:7}},{start:{line:57,column:13},end:{line:59,column:7}}],line:51},7:{loc:{start:{line:52,column:8},end:{line:54,column:61}},type:"binary-expr",locations:[{start:{line:52,column:8},end:{line:52,column:18}},{start:{line:53,column:8},end:{line:53,column:18}},{start:{line:54,column:8},end:{line:54,column:61}}],line:52},8:{loc:{start:{line:77,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:85,column:7}},{start:{line:82,column:13},end:{line:85,column:7}}],line:77},9:{loc:{start:{line:78,column:8},end:{line:79,column:65}},type:"binary-expr",locations:[{start:{line:78,column:8},end:{line:78,column:46}},{start:{line:79,column:8},end:{line:79,column:65}}],line:78}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,sources:["SuiteRunner.vue"],names:[],mappings:";AA0OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SuiteRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license \n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <div id="tr-container">\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Pause on Error"\n value="pauseOnError"\n hide-details\n data-test="pause-on-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Manual"\n value="manual"\n hide-details\n data-test="manual"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Suite:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="suiteChanged"\n :items="suites"\n v-model="suite"\n data-test="select-suite"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="$emit(\'button\', { method: \'start\', suite, options })"\n data-test="start-suite"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="$emit(\'button\', { method: \'setup\', suite, options })"\n data-test="setup-suite"\n :disabled="disableButtons || !setupSuiteEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="$emit(\'button\', { method: \'teardown\', suite, options })"\n data-test="teardown-suite"\n :disabled="disableButtons || !teardownSuiteEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Continue after Error"\n value="continueAfterError"\n hide-details\n data-test="continue-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Loop"\n value="loop"\n hide-details\n data-test="loop"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Group:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="groupChanged"\n :items="groups"\n v-model="group"\n data-test="select-group"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n class="mr-2"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', { method: \'start\', suite, group, options })\n "\n data-test="start-group"\n >\n Start\n </v-btn>\n <v-btn\n color="primary"\n class="mr-2"\n @click="\n $emit(\'button\', { method: \'setup\', suite, group, options })\n "\n data-test="setup-group"\n :disabled="disableButtons || !setupGroupEnabled"\n >\n Setup\n </v-btn>\n <v-btn\n color="primary"\n @click="\n $emit(\'button\', { method: \'teardown\', suite, group, options })\n "\n data-test="teardown-group"\n :disabled="disableButtons || !teardownGroupEnabled"\n >\n Teardown\n </v-btn>\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n <v-row no-gutters align="center">\n <v-col cols="4">\n <v-row no-gutters>\n <v-col cols="6">\n <v-checkbox\n v-model="options"\n label="Abort after Error"\n value="abortAfterError"\n hide-details\n data-test="abort-after-error"\n />\n </v-col>\n <v-col cols="6">\n <v-checkbox\n :disabled="!options.includes(\'loop\')"\n v-model="options"\n label="Break Loop on Error"\n value="breakLoopOnError"\n hide-details\n data-test="break-loop-on-error"\n />\n </v-col>\n </v-row>\n </v-col>\n <v-col cols="8">\n <v-row no-gutters justify="end">\n <v-col cols="5">\n <v-select\n label="Script:"\n class="mr-2 mb-2"\n hide-details\n dense\n @change="scriptChanged"\n :items="scripts"\n v-model="script"\n data-test="select-script"\n />\n </v-col>\n <v-col cols="auto">\n <v-btn\n color="primary"\n :disabled="disableButtons"\n @click="\n $emit(\'button\', {\n method: \'start\',\n suite,\n group,\n script,\n options,\n })\n "\n data-test="start-script"\n >\n Start\n </v-btn>\n \x3c!-- TODO: Don\'t like this hard coded spacer but not sure how else\n to push the Start button over to line up with the other Starts --\x3e\n <div style="width: 300px" />\n </v-col>\n </v-row>\n </v-col>\n </v-row>\n </div>\n </div>\n</template>\n\n<script>\nexport default {\n props: {\n suiteMap: {\n type: Object,\n required: true,\n },\n disableButtons: {\n type: Boolean,\n required: true,\n },\n },\n data() {\n return {\n suites: [],\n groups: [],\n scripts: [],\n suite: \'\',\n group: \'\',\n script: \'\',\n options: [\'pauseOnError\', \'manual\', \'continueAfterError\'],\n }\n },\n computed: {\n setupSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].setup) {\n return true\n } else {\n return false\n }\n },\n teardownSuiteEnabled() {\n if (this.suite && this.suiteMap[this.suite].teardown) {\n return true\n } else {\n return false\n }\n },\n setupGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].setup\n ) {\n return true\n } else {\n return false\n }\n },\n teardownGroupEnabled() {\n if (\n this.suite &&\n this.group &&\n this.suiteMap[this.suite].groups[this.group].teardown\n ) {\n return true\n } else {\n return false\n }\n },\n },\n created() {\n this.initSuites()\n },\n // Watch the suiteMap so we can recreate the suites and set the initial value\n watch: {\n suiteMap: {\n handler: function (newVal, oldVal) {\n this.updateSuiteMap()\n },\n deep: true, // Deep watcher because suiteMap is a nested Object\n },\n },\n methods: {\n updateSuiteMap() {\n this.suites = Object.keys(this.suiteMap)\n if (\n this.suiteMap[this.suite] == undefined ||\n this.suiteMap[this.suite].groups[this.group] == undefined\n ) {\n this.initSuites()\n } else {\n this.groups = Object.keys(this.suiteMap[this.suite].groups)\n this.scripts = this.suiteMap[this.suite].groups[this.group].scripts\n }\n },\n initSuites() {\n this.suites = Object.keys(this.suiteMap)\n this.suiteChanged(this.suites[0])\n },\n suiteChanged(event) {\n this.suite = event\n this.group = \'\'\n this.script = \'\'\n this.groups = Object.keys(this.suiteMap[event].groups)\n // Make the group default be the first group\n this.groupChanged(this.groups[0])\n },\n groupChanged(event) {\n this.group = event\n this.script = \'\'\n this.scripts = this.suiteMap[this.suite].groups[event].scripts\n // Make the script default be the first\n this.scriptChanged(this.scripts[0])\n },\n scriptChanged(event) {\n this.script = event\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n#tr-container {\n padding-top: 0px;\n padding-bottom: 15px;\n padding-left: 0px;\n padding-right: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f2c5bb67e843bcea1658ca32e99187e727ff97f3"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return it=function(){return o},o}it();var lt={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return it().f[0]++,it().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return it().f[1]++,it().s[1]++,it().b[1][0]++,this.suite&&(it().b[1][1]++,this.suiteMap[this.suite].setup)?(it().b[0][0]++,it().s[2]++,!0):(it().b[0][1]++,it().s[3]++,!1)},teardownSuiteEnabled:function(){return it().f[2]++,it().s[4]++,it().b[3][0]++,this.suite&&(it().b[3][1]++,this.suiteMap[this.suite].teardown)?(it().b[2][0]++,it().s[5]++,!0):(it().b[2][1]++,it().s[6]++,!1)},setupGroupEnabled:function(){return it().f[3]++,it().s[7]++,it().b[5][0]++,this.suite&&(it().b[5][1]++,this.group)&&(it().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(it().b[4][0]++,it().s[8]++,!0):(it().b[4][1]++,it().s[9]++,!1)},teardownGroupEnabled:function(){return it().f[4]++,it().s[10]++,it().b[7][0]++,this.suite&&(it().b[7][1]++,this.group)&&(it().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(it().b[6][0]++,it().s[11]++,!0):(it().b[6][1]++,it().s[12]++,!1)}},created:function(){it().f[5]++,it().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(e,n){it().f[6]++,it().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){it().f[7]++,it().s[15]++,this.suites=Object.keys(this.suiteMap),it().s[16]++,it().b[9][0]++,void 0==this.suiteMap[this.suite]||(it().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(it().b[8][0]++,it().s[17]++,this.initSuites()):(it().b[8][1]++,it().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),it().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){it().f[8]++,it().s[20]++,this.suites=Object.keys(this.suiteMap),it().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(e){it().f[9]++,it().s[22]++,this.suite=e,it().s[23]++,this.group="",it().s[24]++,this.script="",it().s[25]++,this.groups=Object.keys(this.suiteMap[e].groups),it().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(e){it().f[10]++,it().s[27]++,this.group=e,it().s[28]++,this.script="",it().s[29]++,this.scripts=this.suiteMap[this.suite].groups[e].scripts,it().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(e){it().f[11]++,it().s[31]++,this.script=e}}},st=lt,ot=(t(14723),(0,y.Z)(st,nt,tt,!1,null,"3372ac08",null)),at=ot.exports;function rt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="252a0dbc653f53201767f2c9315f1fb523b691dd",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:1346}},4:{start:{line:1,column:206},end:{line:1,column:419}},5:{start:{line:1,column:603},end:{line:1,column:808}},6:{start:{line:1,column:1060},end:{line:1,column:1074}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:182},end:{line:1,column:183}},loc:{start:{line:1,column:205},end:{line:1,column:420}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:579},end:{line:1,column:580}},loc:{start:{line:1,column:602},end:{line:1,column:809}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1044},end:{line:1,column:1045}},loc:{start:{line:1,column:1059},end:{line:1,column:1075}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"252a0dbc653f53201767f2c9315f1fb523b691dd"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return rt=function(){return o},o}rt(),rt().s[0]++;var ct=function(){rt().f[0]++;var e=(rt().s[1]++,this),n=(rt().s[2]++,e._self._c);return rt().s[3]++,n("div",[n("v-card",[n("v-card-title",[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[1]++,rt().s[4]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:e.downloadLog}},[n("v-icon",[e._v(" mdi-download ")])],1)],1)]}}])},[n("span",[e._v(" Download Log ")])]),e._v(" Log Messages "),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return rt().f[2]++,rt().s[5]++,[n("div",e._g(e._b({},"div",l,!1),i),[n("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:e.clearLog}},[n("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[n("span",[e._v(" Clear Log ")])])],1),n("v-card-subtitle",[n("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:e.search,callback:function(n){rt().f[3]++,rt().s[6]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.messages,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},ut=(rt().s[7]++,[]);function dt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",n="4f866ab3685e6a3232e3beb9804b0b4718c61e05",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",statementMap:{0:{start:{line:12,column:4},end:{line:15,column:5}},1:{start:{line:20,column:8},end:{line:20,column:25}},2:{start:{line:23,column:8},end:{line:23,column:34}},3:{start:{line:29,column:21},end:{line:29,column:79}},4:{start:{line:29,column:52},end:{line:29,column:67}},5:{start:{line:30,column:19},end:{line:32,column:8}},6:{start:{line:34,column:19},end:{line:34,column:46}},7:{start:{line:35,column:6},end:{line:35,column:43}},8:{start:{line:36,column:6},end:{line:39,column:7}},9:{start:{line:40,column:6},end:{line:40,column:18}},10:{start:{line:43,column:6},end:{line:50,column:10}},11:{start:{line:49,column:10},end:{line:49,column:28}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:9},end:{line:16,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:19,column:6},end:{line:19,column:7}},loc:{start:{line:19,column:12},end:{line:21,column:7}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:22,column:6},end:{line:22,column:7}},loc:{start:{line:22,column:17},end:{line:24,column:7}},line:22},3:{name:"(anonymous_3)",decl:{start:{line:28,column:4},end:{line:28,column:5}},loc:{start:{line:28,column:18},end:{line:41,column:5}},line:28},4:{name:"(anonymous_4)",decl:{start:{line:29,column:39},end:{line:29,column:40}},loc:{start:{line:29,column:52},end:{line:29,column:67}},line:29},5:{name:"(anonymous_5)",decl:{start:{line:42,column:14},end:{line:42,column:15}},loc:{start:{line:42,column:26},end:{line:51,column:5}},line:42},6:{name:"(anonymous_6)",decl:{start:{line:48,column:14},end:{line:48,column:15}},loc:{start:{line:48,column:26},end:{line:50,column:9}},line:48}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{},inputSourceMap:{version:3,sources:["ScriptLogMessages.vue"],names:[],mappings:";AAiFA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptLogMessages.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card>\n <v-card-title>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn\n icon\n class="mx-2"\n data-test="download-log"\n @click="downloadLog"\n >\n <v-icon> mdi-download </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Download Log </span>\n </v-tooltip>\n Log Messages\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-btn icon class="mx-2" data-test="clear-log" @click="clearLog">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear Log </span>\n </v-tooltip>\n </v-card-title>\n <v-card-subtitle>\n <v-text-field\n v-model="search"\n single-line\n hide-details\n autofocus\n label="Search"\n data-test="search-output-messages"\n />\n </v-card-subtitle>\n <v-data-table\n :headers="headers"\n :items="messages"\n :search="search"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n height="45vh"\n data-test="output-messages"\n />\n </v-card>\n </div>\n</template>\n\n<script>\nimport { format } from \'date-fns\'\n\nexport default {\n props: {\n value: {\n type: Array,\n required: true,\n },\n },\n data() {\n return {\n search: \'\',\n headers: [{ text: \'Message\', value: \'message\' }],\n }\n },\n computed: {\n messages: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {\n downloadLog() {\n const output = this.messages.map((message) => message.message).join(\'\\n\')\n const blob = new Blob([output], {\n type: \'text/plain\',\n })\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = URL.createObjectURL(blob)\n link.setAttribute(\n \'download\',\n format(Date.now(), \'yyyy_MM_dd_HH_mm_ss\') + \'_sr_message_log.txt\'\n )\n link.click()\n },\n clearLog: function () {\n this.$dialog\n .confirm(\'Are you sure you want to clear the logs?\', {\n okText: \'Clear\',\n cancelText: \'Cancel\',\n })\n .then((dialog) => {\n this.messages = []\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4f866ab3685e6a3232e3beb9804b0b4718c61e05"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return dt=function(){return o},o}dt();var mt={props:{value:{type:Array,required:!0}},data:function(){return dt().f[0]++,dt().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return dt().f[1]++,dt().s[1]++,this.value},set:function(e){dt().f[2]++,dt().s[2]++,this.$emit("input",e)}}},methods:{downloadLog:function(){dt().f[3]++;var e=(dt().s[3]++,this.messages.map((function(e){return dt().f[4]++,dt().s[4]++,e.message})).join("\n")),n=(dt().s[5]++,new Blob([e],{type:"text/plain"})),t=(dt().s[6]++,document.createElement("a"));dt().s[7]++,t.href=URL.createObjectURL(n),dt().s[8]++,t.setAttribute("download",(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),dt().s[9]++,t.click()},clearLog:function(){var e=this;dt().f[5]++,dt().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(n){dt().f[6]++,dt().s[11]++,e.messages=[]}))}}},At=mt,pt=(0,y.Z)(At,ct,ut,!1,null,null,null),ht=pt.exports,ft=function(){var e=this,n=e._self._c;return n("div",{ref:"bar",style:e.computedStyle},[n("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[n("v-system-bar",[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[n("span",[e._v(" Errors ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit Screen ")])]),e.fixFloated?e._e():n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v(" "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+" ")])],1)]}}],null,!1,3870545613)},[n("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e.floated?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v(" mdi-arrow-up ")])],1)]}}],null,!1,4034340880)},[n("span",[e._v(" Move Screen Up ")])]):e._e(),e.floated&&e.zIndex>e.minZ?n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v(" mdi-arrow-down ")])],1)]}}],null,!1,3846940455)},[n("span",[e._v(" Move Screen Down ")])]):e._e(),n("v-spacer"),n("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),n("v-spacer"),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(n){return e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close Screen ")])])],1),e.editDialog?e._e():n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[n("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),n("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e.editDialog?n("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(n){return e.saveEdit(n)},cancel:function(n){return e.cancelEdit()},delete:function(n){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(n){e.editDialog=n},expression:"editDialog"}}):e._e(),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),n("v-spacer")],1),n("v-card",[n("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},vt=[],gt=(t(68995),t(13489),t(67789),t(6710),t(63291)),bt=t(44091),Ct=t(23779),_t=t.n(Ct),yt=t(96009),wt=t.n(yt),xt=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[n("span",[e._v(" Delete Screen ")])])],1),n("v-spacer"),n("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),n("v-spacer"),n("div",{staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[n("span",[e._v(" Download Screen ")])])],1)],1),n("v-card-text",[n("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),n("v-row",{attrs:{"no-gutters":"",align:"center"}},[n("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v(" Load ")]),n("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(n){e.file=n},expression:"file"}})],1),n("v-row",[e._v(" Edit the screen definition. ")]),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor"})]),e._l(e.editErrors,(function(t,i){return n("v-row",{key:i,staticClass:"my-3"},[n("span",{staticClass:"red--text",domProps:{textContent:e._s(t)}})])})),n("v-row",[n("span",[e._v("Ctrl-space brings up autocomplete")]),n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(n){e.$emit("save",e.editor.getValue())}}},[e._v(" Save ")])],1)],2)],1)],1)},kt=[],St=(t(71747),t(57871)),Mt=t(50426),Et=t(52261),Tt=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(function(e,n,t,i,l){l(null,(0,u.Z)(this.autocompleteData))})),p.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return n.autocompleteData=e.data}))})),Rt={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},errors:{type:Array,default:function(){return[]}}},data:function(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){var e,n=new Set,t=[],i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="At ".concat(l.lineNumber,": (").concat(l.line,") ").concat(l.message,".");l.usage&&(s+=" Usage: ".concat(l.usage)),t.push(s),n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return[]},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.editor=h.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");var e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new Tt],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode:function(){var e=h.require("ace/lib/oop"),n=h.require("ace/mode/text_highlight_rules").TextHighlightRules,t=this.keywords.join("|"),i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp("^\\s*(".concat(t,")\\b"))}]},this.normalizeRules()};e.inherits(i,n);var l=function(){this.HighlightRules=i},s=h.require("ace/mode/text").Mode;return e.inherits(l,s),function(){this.$id="ace/mode/openc3"}.call(l.prototype),l},downloadScreen:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),n=document.createElement("a");n.href=URL.createObjectURL(e),n.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),n.click()},loadFile:function(){var e=new FileReader;e.readAsText(this.file);var n=this;e.onload=function(){n.editor.setValue(e.result),n.file=null}},deleteScreen:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(n){e.$emit("delete")}))}}},Dt=Rt,It=(t(16895),t(48038),(0,y.Z)(Dt,xt,kt,!1,null,"4c92d9b1",null)),Ot=It.exports,Nt=t(84910);Nt.keys().forEach((function(e){var n=Nt(e),t=_t()(wt()(e.split("/").pop().replace(/\.\w+$/,"")));bt["default"].component(t,n.default||n)}));var Zt={components:{EditScreenDialog:Ot},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0}},data:function(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler:function(e,n){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){var e,n=new Set,t="",i=(0,a.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var l=e.value;if(!n.has(l.message)){var s="".concat(l.time,": (").concat(l.type,") ").concat(l.message,"\n");t+=s,n.add(l.message)}}}catch(o){i.e(o)}finally{i.f()}return t}return null},computedStyle:function(){var e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured:function(e,n,t){return e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0,!1},created:function(){this.api=new V.k,this.configParser=new gt.p,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed:function(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open:function(e,n){this.$parent.showScreen(e,n)},close:function(e,n){this.$parent.closeScreenByName(e,n)},closeAll:function(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){var e=this,n=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((function(){e.update()}),n)},parseDefinition:function(){var e=this;if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,(function(n,t,i,l){var s;if(n)switch(n){case"SCREEN":e.configParser.verify_num_parameters(3,4,"".concat(n," <Width or AUTO> <Height or AUTO> <Polling Period>")),e.width=parseInt(t[0]),e.height=parseInt(t[1]),e.pollingPeriod=parseFloat(t[2]);break;case"END":e.configParser.verify_num_parameters(0,0,"".concat(n)),e.layoutStack.pop(),e.currentLayout=e.layoutStack[e.layoutStack.length-1];break;case"STALE_TIME":e.configParser.verify_num_parameters(1,1,"".concat(n," <Time (s)>")),e.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":var o=null!==(s=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==s?s:e.currentLayout;o.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":e.globalSettings.push(t);break;default:e.processWidget(n,t,i,l);break}})),"undefined"===typeof this.layoutStack[0]){var n,t=[],i=[],l=(0,a.Z)(this.dynamicWidgets);try{for(l.s();!(n=l.n()).done;){var s=n.value;t.push(s.name),i.push(s.lineNumber)}}catch(o){l.e(o)}finally{l.f()}this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(t.join(","),"?"),lineNumber:i.join(","),time:(new Date).getTime()}),this.configError=!0,this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,n){this.namedWidgets[e]=n},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{var e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),n=this.$refs.bar.getBoundingClientRect();this.top=n.top-e.top-5,this.left=n.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();var n=this.dragX-e.clientX,t=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-t,this.left=this.$refs.bar.offsetLeft-n,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){p.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){var e=this;this.editDialog=!1,p.Z.delete("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(n){e.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,n,t,i){var l=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),l=n[0].toUpperCase(),e=n[1].toUpperCase(),n=n.slice(2,n.length));var s=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget",o=[];if(null!==l&&o.push(["NAMED_WIDGET",l,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){var a={type:s,parameters:n,settings:o,widgets:[]};this.layoutStack.push(a),this.currentLayout.widgets.push(a),this.currentLayout=a}else if(o.push(["__SCREEN__",this]),bt["default"].options.components[s])this.currentLayout.widgets.push({type:s,target:this.target,parameters:n,settings:o,line:t,lineNumber:i});else{var r={type:"DynamicWidget",target:this.target,parameters:n,settings:o,name:s,line:t,lineNumber:i};this.currentLayout.widgets.push(r),this.dynamicWidgets.push(r)}},applyGlobalSettings:function(e){var n=this;this.globalSettings.forEach((function(t){e.forEach((function(e){e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1)),e.widgets&&n.applyGlobalSettings(e.widgets)}))}))},update:function(){var e=this;0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime).then((function(n){e.clearErrors(),e.updateValues(n)})).catch((function(n){var t=JSON.stringify(n,null,2);t.includes("no response received")||(e.configError=!0),e.errors.find((function(e){e.message}))||e.errors.push({type:"error",message:t,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(var n=0;n<e.length;n++)e[n].push(this.updateCounter),bt["default"].set(this.screenValues,this.screenItems[n],e[n])},addItem:function(e){this.screenItems.push(e),bt["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){var n=this.screenItems.indexOf(e);this.screenItems.splice(n,1)}}},Lt=Zt,Ft=(t(48354),(0,y.Z)(Lt,ft,vt,!1,null,"75133f21",null)),Pt=Ft.exports,$t=t(89091),Ht=t(58007);function Bt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",n="bc429c989ff6c563268021b0e1f9fc50ed29bd64",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:25,column:20},end:{line:27,column:1}},1:{start:{line:26,column:2},end:{line:26,column:61}},2:{start:{line:29,column:28},end:{line:31,column:1}},3:{start:{line:30,column:2},end:{line:30,column:57}},4:{start:{line:34,column:16},end:{line:44,column:1}},5:{start:{line:35,column:2},end:{line:43,column:8}},6:{start:{line:36,column:16},end:{line:36,column:28}},7:{start:{line:37,column:4},end:{line:41,column:5}},8:{start:{line:38,column:6},end:{line:38,column:28}},9:{start:{line:40,column:6},end:{line:40,column:26}},10:{start:{line:42,column:4},end:{line:42,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:20},end:{line:25,column:21}},loc:{start:{line:25,column:30},end:{line:27,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:29,column:28},end:{line:29,column:29}},loc:{start:{line:29,column:38},end:{line:31,column:1}},line:29},2:{name:"(anonymous_2)",decl:{start:{line:34,column:16},end:{line:34,column:17}},loc:{start:{line:34,column:35},end:{line:44,column:1}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:35,column:22},end:{line:35,column:23}},loc:{start:{line:35,column:40},end:{line:43,column:3}},line:35}},branchMap:{0:{loc:{start:{line:37,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:41,column:5}},{start:{line:39,column:11},end:{line:41,column:5}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"bc429c989ff6c563268021b0e1f9fc50ed29bd64"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Bt=function(){return o},o}Bt(),Bt().s[0]++;var Wt=function(e){return Bt().f[0]++,Bt().s[1]++,p.Z.get("/openc3-api/autocomplete/keywords/".concat(e))};Bt().s[2]++;var Vt=function(e){return Bt().f[1]++,Bt().s[3]++,p.Z.get("/openc3-api/autocomplete/data/".concat(e))};Bt().s[4]++;var Ut=function(e,n){return Bt().f[2]++,Bt().s[5]++,e.reduce((function(e,t){Bt().f[3]++;var i=(Bt().s[6]++,n(t));return Bt().s[7]++,e[i]?(Bt().b[0][0]++,Bt().s[8]++,e[i].push(t)):(Bt().b[0][1]++,Bt().s[9]++,e[i]=[t]),Bt().s[10]++,e}),{})};function Gt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",n="dbda3a6741d49afa955fae563aa43644392aa172",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:25,column:32},end:{line:31,column:1}},1:{start:{line:27,column:17},end:{line:27,column:32}},2:{start:{line:28,column:18},end:{line:28,column:33}},3:{start:{line:29,column:17},end:{line:29,column:34}},4:{start:{line:30,column:2},end:{line:30,column:59}},5:{start:{line:39,column:4},end:{line:39,column:32}},6:{start:{line:40,column:4},end:{line:40,column:30}},7:{start:{line:42,column:4},end:{line:45,column:6}},8:{start:{line:43,column:6},end:{line:43,column:74}},9:{start:{line:44,column:6},end:{line:44,column:32}},10:{start:{line:46,column:4},end:{line:49,column:6}},11:{start:{line:47,column:6},end:{line:47,column:43}},12:{start:{line:48,column:6},end:{line:48,column:25}},13:{start:{line:52,column:19},end:{line:74,column:3}},14:{start:{line:53,column:18},end:{line:53,column:20}},15:{start:{line:54,column:29},end:{line:57,column:5}},16:{start:{line:58,column:4},end:{line:62,column:5}},17:{start:{line:59,column:46},end:{line:59,column:75}},18:{start:{line:61,column:6},end:{line:61,column:37}},19:{start:{line:64,column:4},end:{line:73,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:32},end:{line:25,column:33}},loc:{start:{line:25,column:42},end:{line:31,column:1}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:38,column:4},end:{line:50,column:3}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:36,column:24},end:{line:36,column:25}},loc:{start:{line:36,column:30},end:{line:36,column:32}},line:36},3:{name:"(anonymous_3)",decl:{start:{line:37,column:31},end:{line:37,column:32}},loc:{start:{line:37,column:37},end:{line:37,column:39}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:42,column:27},end:{line:42,column:28}},loc:{start:{line:42,column:41},end:{line:45,column:5}},line:42},5:{name:"(anonymous_5)",decl:{start:{line:46,column:35},end:{line:46,column:36}},loc:{start:{line:46,column:49},end:{line:49,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:52,column:19},end:{line:52,column:20}},loc:{start:{line:52,column:74},end:{line:74,column:3}},line:52},7:{name:"(anonymous_7)",decl:{start:{line:59,column:35},end:{line:59,column:36}},loc:{start:{line:59,column:46},end:{line:59,column:75}},line:59}},branchMap:{0:{loc:{start:{line:36,column:4},end:{line:36,column:32}},type:"default-arg",locations:[{start:{line:36,column:24},end:{line:36,column:32}}],line:36},1:{loc:{start:{line:37,column:4},end:{line:37,column:39}},type:"default-arg",locations:[{start:{line:37,column:31},end:{line:37,column:39}}],line:37},2:{loc:{start:{line:58,column:4},end:{line:62,column:5}},type:"if",locations:[{start:{line:58,column:4},end:{line:62,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:58}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0],1:[0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"dbda3a6741d49afa955fae563aa43644392aa172"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Gt=function(){return o},o}Gt(),Gt().s[0]++;var zt=function(e){Gt().f[0]++;var n=(Gt().s[1]++,"(^|[{\\(\\s])"),t=(Gt().s[2]++,"[\\s\\(]['\"]"),i=(Gt().s[3]++,"(\\S+\\s?){0,3}");return Gt().s[4]++,new RegExp("".concat(n).concat(e).concat(t).concat(i,"$"))},jt=(0,St.Z)((function e(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Gt().b[0][0]++,function(){Gt().f[2]++}),l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Gt().b[1][0]++,function(){Gt().f[3]++});(0,Mt.Z)(this,e),(0,Et.Z)(this,"getCompletions",(Gt().s[13]++,function(e,n,t,i,l){Gt().f[6]++;var s=(Gt().s[14]++,[]),o=(Gt().s[15]++,n.doc.$lines[t.row].slice(0,t.column));Gt().s[16]++,this.keywordExpressions.some((function(e){return Gt().f[7]++,Gt().s[17]++,o.match(e)}))?(Gt().b[2][0]++,Gt().s[18]++,s=this.autocompleteData):Gt().b[2][1]++,Gt().s[19]++,l(null,(0,u.Z)(s))})),Gt().f[1]++,Gt().s[5]++,this.keywordExpressions=[],Gt().s[6]++,this.autocompleteData=[],Gt().s[7]++,Wt(n).then((function(e){Gt().f[4]++,Gt().s[8]++,t.keywordExpressions=e.data.map(zt),Gt().s[9]++,l()})),Gt().s[10]++,Vt(n).then((function(e){Gt().f[5]++,Gt().s[11]++,t.autocompleteData=e.data,Gt().s[12]++,i()}))}));function qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",n="131d227344c79c3d036a025c6ea368aeadc2b775",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:27,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:28,column:3}},line:26}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"131d227344c79c3d036a025c6ea368aeadc2b775"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return qt=function(){return o},o}qt();var Yt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){return(0,Mt.Z)(this,t),qt().f[0]++,qt().s[0]++,n.call(this,"cmd")}return(0,St.Z)(t)}(jt),Kt=t(3484);function Xt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",n="25619d346e32a533485beb72a7572c19417db8fc",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:27,column:4},end:{line:53,column:6}},1:{start:{line:30,column:6},end:{line:45,column:12}},2:{start:{line:31,column:27},end:{line:31,column:60}},3:{start:{line:32,column:25},end:{line:32,column:67}},4:{start:{line:33,column:28},end:{line:37,column:9}},5:{start:{line:39,column:8},end:{line:43,column:9}},6:{start:{line:40,column:10},end:{line:40,column:46}},7:{start:{line:42,column:10},end:{line:42,column:44}},8:{start:{line:44,column:8},end:{line:44,column:21}},9:{start:{line:46,column:6},end:{line:52,column:8}},10:{start:{line:47,column:8},end:{line:51,column:9}},11:{start:{line:57,column:19},end:{line:77,column:3}},12:{start:{line:58,column:18},end:{line:58,column:20}},13:{start:{line:59,column:29},end:{line:62,column:5}},14:{start:{line:63,column:4},end:{line:74,column:5}},15:{start:{line:64,column:46},end:{line:64,column:75}},16:{start:{line:66,column:26},end:{line:68,column:7}},17:{start:{line:67,column:24},end:{line:67,column:61}},18:{start:{line:69,column:6},end:{line:73,column:7}},19:{start:{line:70,column:8},end:{line:70,column:53}},20:{start:{line:72,column:8},end:{line:72,column:30}},21:{start:{line:76,column:4},end:{line:76,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:16},end:{line:54,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:27,column:17},end:{line:27,column:18}},loc:{start:{line:27,column:23},end:{line:53,column:5}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:30,column:60},end:{line:30,column:61}},loc:{start:{line:30,column:78},end:{line:45,column:7}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:46,column:61},end:{line:46,column:62}},loc:{start:{line:46,column:77},end:{line:52,column:7}},line:46},4:{name:"(anonymous_4)",decl:{start:{line:57,column:19},end:{line:57,column:20}},loc:{start:{line:57,column:74},end:{line:77,column:3}},line:57},5:{name:"(anonymous_5)",decl:{start:{line:64,column:35},end:{line:64,column:36}},loc:{start:{line:64,column:46},end:{line:64,column:75}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:67,column:8},end:{line:67,column:9}},loc:{start:{line:67,column:24},end:{line:67,column:61}},line:67}},branchMap:{0:{loc:{start:{line:39,column:8},end:{line:43,column:9}},type:"if",locations:[{start:{line:39,column:8},end:{line:43,column:9}},{start:{line:41,column:15},end:{line:43,column:9}}],line:39},1:{loc:{start:{line:63,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},2:{loc:{start:{line:69,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:69,column:6},end:{line:73,column:7}},{start:{line:71,column:13},end:{line:73,column:7}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"25619d346e32a533485beb72a7572c19417db8fc"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Xt=function(){return o},o}Xt();var Jt=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(){var e;return(0,Mt.Z)(this,t),Xt().f[0]++,Xt().s[0]++,e=n.call(this,"tlm",(function(){Xt().f[1]++,Xt().s[1]++,e.groupedPacketData=e.autocompleteData.reduce((function(e,n){Xt().f[2]++;var t=(Xt().s[2]++,n.caption.match(/\S+\s\S+/)[0]),i=(Xt().s[3]++,n.snippet.replace("".concat(t," "),"")),l=(Xt().s[4]++,{caption:i,snippet:i,meta:"item"});return Xt().s[5]++,e[t]?(Xt().b[0][0]++,Xt().s[6]++,e[t].push(l)):(Xt().b[0][1]++,Xt().s[7]++,e[t]=[l]),Xt().s[8]++,e}),{}),Xt().s[9]++,e.packets=Object.keys(e.groupedPacketData).map((function(e){return Xt().f[3]++,Xt().s[10]++,{caption:e,snippet:e,meta:"packet"}}))})),(0,Et.Z)((0,Kt.Z)(e),"getCompletions",(Xt().s[11]++,function(e,n,t,i,l){Xt().f[4]++;var s=(Xt().s[12]++,[]),o=(Xt().s[13]++,n.doc.$lines[t.row].slice(0,t.column));if(Xt().s[14]++,this.keywordExpressions.some((function(e){return Xt().f[5]++,Xt().s[15]++,o.match(e)}))){Xt().b[1][0]++;var a=(Xt().s[16]++,Object.keys(this.groupedPacketData).find((function(e){return Xt().f[6]++,Xt().s[17]++,o.includes(e)})));Xt().s[18]++,a?(Xt().b[2][0]++,Xt().s[19]++,s=this.groupedPacketData[a]):(Xt().b[2][1]++,Xt().s[20]++,s=this.packets)}else Xt().b[1][1]++;Xt().s[21]++,l(null,s)})),e}return(0,St.Z)(t)}(jt);t(48319),t(43430);function Qt(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",n="7eab98b5dd0e78016006757b92a6afbca1bd2244",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:26,column:23},end:{line:31,column:1}},1:{start:{line:28,column:17},end:{line:28,column:32}},2:{start:{line:29,column:15},end:{line:29,column:37}},3:{start:{line:30,column:2},end:{line:30,column:46}},4:{start:{line:32,column:32},end:{line:32,column:36}},5:{start:{line:33,column:29},end:{line:33,column:43}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:39,column:21}},8:{start:{line:40,column:4},end:{line:47,column:6}},9:{start:{line:41,column:6},end:{line:46,column:8}},10:{start:{line:42,column:8},end:{line:45,column:9}},11:{start:{line:49,column:4},end:{line:49,column:35}},12:{start:{line:50,column:4},end:{line:52,column:6}},13:{start:{line:51,column:6},end:{line:51,column:68}},14:{start:{line:54,column:4},end:{line:54,column:35}},15:{start:{line:55,column:4},end:{line:57,column:6}},16:{start:{line:56,column:6},end:{line:56,column:68}},17:{start:{line:60,column:14},end:{line:141,column:3}},18:{start:{line:61,column:42},end:{line:134,column:5}},19:{start:{line:63,column:8},end:{line:63,column:26}},20:{start:{line:64,column:8},end:{line:66,column:9}},21:{start:{line:65,column:10},end:{line:65,column:23}},22:{start:{line:67,column:25},end:{line:69,column:16}},23:{start:{line:68,column:10},end:{line:68,column:43}},24:{start:{line:70,column:25},end:{line:72,column:16}},25:{start:{line:71,column:10},end:{line:71,column:43}},26:{start:{line:73,column:8},end:{line:75,column:9}},27:{start:{line:74,column:10},end:{line:74,column:23}},28:{start:{line:77,column:23},end:{line:77,column:43}},29:{start:{line:78,column:26},end:{line:78,column:41}},30:{start:{line:79,column:8},end:{line:79,column:44}},31:{start:{line:81,column:30},end:{line:83,column:32}},32:{start:{line:85,column:8},end:{line:88,column:9}},33:{start:{line:86,column:10},end:{line:86,column:44}},34:{start:{line:87,column:10},end:{line:87,column:23}},35:{start:{line:90,column:37},end:{line:90,column:80}},36:{start:{line:91,column:30},end:{line:93,column:9}},37:{start:{line:94,column:8},end:{line:96,column:9}},38:{start:{line:95,column:10},end:{line:95,column:23}},39:{start:{line:98,column:25},end:{line:101,column:9}},40:{start:{line:102,column:8},end:{line:113,column:9}},41:{start:{line:103,column:10},end:{line:103,column:42}},42:{start:{line:105,column:33},end:{line:105,column:55}},43:{start:{line:106,column:10},end:{line:112,column:11}},44:{start:{line:107,column:12},end:{line:109,column:13}},45:{start:{line:108,column:25},end:{line:108,column:45}},46:{start:{line:111,column:12},end:{line:111,column:80}},47:{start:{line:111,column:70},end:{line:111,column:79}},48:{start:{line:116,column:8},end:{line:124,column:9}},49:{start:{line:117,column:10},end:{line:123,column:11}},50:{start:{line:118,column:12},end:{line:118,column:79}},51:{start:{line:120,column:12},end:{line:122,column:13}},52:{start:{line:121,column:14},end:{line:121,column:46}},53:{start:{line:126,column:8},end:{line:130,column:10}},54:{start:{line:131,column:8},end:{line:131,column:21}},55:{start:{line:136,column:21},end:{line:136,column:57}},56:{start:{line:137,column:4},end:{line:140,column:5}},57:{start:{line:139,column:40},end:{line:139,column:67}},58:{start:{line:143,column:16},end:{line:215,column:3}},59:{start:{line:144,column:25},end:{line:144,column:27}},60:{start:{line:145,column:25},end:{line:148,column:5}},61:{start:{line:147,column:19},end:{line:147,column:42}},62:{start:{line:149,column:4},end:{line:213,column:5}},63:{start:{line:150,column:6},end:{line:158,column:7}},64:{start:{line:151,column:8},end:{line:156,column:9}},65:{start:{line:152,column:10},end:{line:155,column:12}},66:{start:{line:157,column:8},end:{line:157,column:16}},67:{start:{line:159,column:27},end:{line:162,column:7}},68:{start:{line:161,column:21},end:{line:161,column:44}},69:{start:{line:163,column:6},end:{line:212,column:7}},70:{start:{line:164,column:8},end:{line:211,column:9}},71:{start:{line:165,column:27},end:{line:165,column:64}},72:{start:{line:166,column:10},end:{line:180,column:11}},73:{start:{line:167,column:27},end:{line:169,column:34}},74:{start:{line:170,column:29},end:{line:170,column:59}},75:{start:{line:171,column:12},end:{line:179,column:13}},76:{start:{line:173,column:16},end:{line:175,column:17}},77:{start:{line:174,column:28},end:{line:174,column:37}},78:{start:{line:176,column:16},end:{line:176,column:29}},79:{start:{line:182,column:24},end:{line:182,column:62}},80:{start:{line:183,column:10},end:{line:191,column:11}},81:{start:{line:184,column:12},end:{line:189,column:14}},82:{start:{line:190,column:12},end:{line:190,column:20}},83:{start:{line:192,column:10},end:{line:210,column:11}},84:{start:{line:193,column:12},end:{line:199,column:13}},85:{start:{line:193,column:38},end:{line:193,column:68}},86:{start:{line:194,column:14},end:{line:197,column:16}},87:{start:{line:198,column:14},end:{line:198,column:22}},88:{start:{line:201,column:12},end:{line:209,column:13}},89:{start:{line:202,column:14},end:{line:208,column:15}},90:{start:{line:202,column:40},end:{line:202,column:54}},91:{start:{line:203,column:16},end:{line:206,column:18}},92:{start:{line:207,column:16},end:{line:207,column:24}},93:{start:{line:214,column:4},end:{line:214,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:23},end:{line:26,column:24}},loc:{start:{line:26,column:33},end:{line:31,column:1}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:16},end:{line:58,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:40,column:37},end:{line:40,column:38}},loc:{start:{line:40,column:51},end:{line:47,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:35},end:{line:46,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:50,column:28},end:{line:50,column:29}},loc:{start:{line:50,column:42},end:{line:52,column:5}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:55,column:28},end:{line:55,column:29}},loc:{start:{line:55,column:42},end:{line:57,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:60,column:14},end:{line:60,column:15}},loc:{start:{line:60,column:36},end:{line:141,column:3}},line:60},7:{name:"(anonymous_7)",decl:{start:{line:62,column:6},end:{line:62,column:7}},loc:{start:{line:62,column:31},end:{line:132,column:7}},line:62},8:{name:"(anonymous_8)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:70,column:59},end:{line:70,column:60}},loc:{start:{line:70,column:77},end:{line:72,column:9}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:108,column:14},end:{line:108,column:15}},loc:{start:{line:108,column:25},end:{line:108,column:45}},line:108},11:{name:"(anonymous_11)",decl:{start:{line:111,column:52},end:{line:111,column:53}},loc:{start:{line:111,column:70},end:{line:111,column:79}},line:111},12:{name:"(anonymous_12)",decl:{start:{line:120,column:56},end:{line:120,column:57}},loc:{start:{line:121,column:14},end:{line:121,column:46}},line:121},13:{name:"(anonymous_13)",decl:{start:{line:139,column:30},end:{line:139,column:31}},loc:{start:{line:139,column:40},end:{line:139,column:67}},line:139},14:{name:"(anonymous_14)",decl:{start:{line:143,column:16},end:{line:143,column:17}},loc:{start:{line:143,column:40},end:{line:215,column:3}},line:143},15:{name:"(anonymous_15)",decl:{start:{line:147,column:6},end:{line:147,column:7}},loc:{start:{line:147,column:19},end:{line:147,column:42}},line:147},16:{name:"(anonymous_16)",decl:{start:{line:161,column:8},end:{line:161,column:9}},loc:{start:{line:161,column:21},end:{line:161,column:44}},line:161},17:{name:"(anonymous_17)",decl:{start:{line:172,column:14},end:{line:172,column:15}},loc:{start:{line:172,column:38},end:{line:177,column:15}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:174,column:18},end:{line:174,column:19}},loc:{start:{line:174,column:28},end:{line:174,column:37}},line:174},19:{name:"(anonymous_19)",decl:{start:{line:193,column:28},end:{line:193,column:29}},loc:{start:{line:193,column:38},end:{line:193,column:68}},line:193},20:{name:"(anonymous_20)",decl:{start:{line:202,column:30},end:{line:202,column:31}},loc:{start:{line:202,column:40},end:{line:202,column:54}},line:202}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:66,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:66,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:68,column:17},end:{line:68,column:43}},type:"binary-expr",locations:[{start:{line:68,column:17},end:{line:68,column:22}},{start:{line:68,column:26},end:{line:68,column:43}}],line:68},2:{loc:{start:{line:71,column:17},end:{line:71,column:43}},type:"binary-expr",locations:[{start:{line:71,column:17},end:{line:71,column:22}},{start:{line:71,column:26},end:{line:71,column:43}}],line:71},3:{loc:{start:{line:73,column:8},end:{line:75,column:9}},type:"if",locations:[{start:{line:73,column:8},end:{line:75,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:73},4:{loc:{start:{line:73,column:12},end:{line:73,column:34}},type:"binary-expr",locations:[{start:{line:73,column:12},end:{line:73,column:21}},{start:{line:73,column:25},end:{line:73,column:34}}],line:73},5:{loc:{start:{line:77,column:23},end:{line:77,column:43}},type:"binary-expr",locations:[{start:{line:77,column:23},end:{line:77,column:31}},{start:{line:77,column:35},end:{line:77,column:43}}],line:77},6:{loc:{start:{line:85,column:8},end:{line:88,column:9}},type:"if",locations:[{start:{line:85,column:8},end:{line:88,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},7:{loc:{start:{line:92,column:10},end:{line:92,column:42}},type:"cond-expr",locations:[{start:{line:92,column:33},end:{line:92,column:36}},{start:{line:92,column:39},end:{line:92,column:42}}],line:92},8:{loc:{start:{line:94,column:8},end:{line:96,column:9}},type:"if",locations:[{start:{line:94,column:8},end:{line:96,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:94},9:{loc:{start:{line:102,column:8},end:{line:113,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:113,column:9}},{start:{line:104,column:15},end:{line:113,column:9}}],line:102},10:{loc:{start:{line:106,column:10},end:{line:112,column:11}},type:"if",locations:[{start:{line:106,column:10},end:{line:112,column:11}},{start:{line:110,column:17},end:{line:112,column:11}}],line:106},11:{loc:{start:{line:117,column:10},end:{line:123,column:11}},type:"if",locations:[{start:{line:117,column:10},end:{line:123,column:11}},{start:{line:119,column:17},end:{line:123,column:11}}],line:117},12:{loc:{start:{line:150,column:6},end:{line:158,column:7}},type:"if",locations:[{start:{line:150,column:6},end:{line:158,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},13:{loc:{start:{line:165,column:27},end:{line:165,column:64}},type:"cond-expr",locations:[{start:{line:165,column:51},end:{line:165,column:56}},{start:{line:165,column:59},end:{line:165,column:64}}],line:165},14:{loc:{start:{line:166,column:10},end:{line:180,column:11}},type:"if",locations:[{start:{line:166,column:10},end:{line:180,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},15:{loc:{start:{line:167,column:27},end:{line:169,column:34}},type:"cond-expr",locations:[{start:{line:168,column:16},end:{line:168,column:35}},{start:{line:169,column:16},end:{line:169,column:34}}],line:167},16:{loc:{start:{line:183,column:10},end:{line:191,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:191,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},17:{loc:{start:{line:187,column:16},end:{line:187,column:57}},type:"cond-expr",locations:[{start:{line:187,column:37},end:{line:187,column:45}},{start:{line:187,column:48},end:{line:187,column:57}}],line:187},18:{loc:{start:{line:192,column:10},end:{line:210,column:11}},type:"if",locations:[{start:{line:192,column:10},end:{line:210,column:11}},{start:{line:200,column:17},end:{line:210,column:11}}],line:192},19:{loc:{start:{line:193,column:12},end:{line:199,column:13}},type:"if",locations:[{start:{line:193,column:12},end:{line:199,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:193},20:{loc:{start:{line:202,column:14},end:{line:208,column:15}},type:"if",locations:[{start:{line:202,column:14},end:{line:208,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:202}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7eab98b5dd0e78016006757b92a6afbca1bd2244"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Qt=function(){return o},o}Qt(),Qt().s[0]++;var ei=function(e){Qt().f[0]++;var n=(Qt().s[1]++,"(^|[{\\(\\s])"),t=(Qt().s[2]++,"((\\s.+)|(\\(.+\\)))");return Qt().s[3]++,new RegExp("".concat(n).concat(e).concat(t))},ni=(Qt().s[4]++,/\{/),ti=(Qt().s[5]++,/['"],\s?['"]/),ii=(0,St.Z)((function e(){var n=this;(0,Mt.Z)(this,e),(0,Et.Z)(this,"checkText",(Qt().s[17]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,i,l,s,o=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Qt().f[6]++,Qt().s[18]++,t=n.split("\n").reduce((function(e,n,t){if(Qt().f[7]++,Qt().s[19]++,n=n.trim(),Qt().s[20]++,n.match(/^#/))return Qt().b[0][0]++,Qt().s[21]++,e;Qt().b[0][1]++;var i=(Qt().s[22]++,o.cmdKeywordExpressions.reduce((function(e,t){return Qt().f[8]++,Qt().s[23]++,Qt().b[1][0]++,e||(Qt().b[1][1]++,n.match(t))}),null)),l=(Qt().s[24]++,o.tlmKeywordExpressions.reduce((function(e,t){return Qt().f[9]++,Qt().s[25]++,Qt().b[2][0]++,e||(Qt().b[2][1]++,n.match(t))}),null));if(Qt().s[26]++,Qt().b[4][0]++,!i&&(Qt().b[4][1]++,!l))return Qt().b[3][0]++,Qt().s[27]++,e;Qt().b[3][1]++;var s=(Qt().s[28]++,Qt().b[5][0]++,i||(Qt().b[5][1]++,l)),a=(Qt().s[29]++,s.length);Qt().s[30]++,s=s[a-1];var r=(Qt().s[31]++,s.substring(s.match(/[\(\s)]/).index+1).replace(/\)+.*$/,""));if(Qt().s[32]++,r.match(ni))return Qt().b[6][0]++,Qt().s[33]++,e.linesToSkip.push(t+1),Qt().s[34]++,e;Qt().b[6][1]++;var c=(Qt().s[35]++,!!r.match(ti)),u=(Qt().s[36]++,r.split(c?(Qt().b[7][0]++,","):(Qt().b[7][1]++," ")));if(Qt().s[37]++,u.length<2)return Qt().b[8][0]++,Qt().s[38]++,e;Qt().b[8][1]++;var d=(Qt().s[39]++,{target:u[0],packet:u[1]});if(Qt().s[40]++,l)Qt().b[9][0]++,Qt().s[41]++,d.item=u[2];else{Qt().b[9][1]++;var m=(Qt().s[42]++,u.slice(2));Qt().s[43]++,c?(Qt().b[10][0]++,Qt().s[44]++,d.params=m.map((function(e){return Qt().f[10]++,Qt().s[45]++,e.split("=>")[0]}))):(Qt().b[10][1]++,Qt().s[46]++,d.params=m.filter((function(e,n){return Qt().f[11]++,Qt().s[47]++,n%2})))}for(var A in Qt().s[48]++,d)Qt().s[49]++,"string"===typeof d[A]?(Qt().b[11][0]++,Qt().s[50]++,d[A]=d[A].replace(/['"]/g,"").trim()):(Qt().b[11][1]++,Qt().s[51]++,d[A]=d[A].map((function(e){return Qt().f[12]++,Qt().s[52]++,e.replace(/['"]/g,"").trim()})));return Qt().s[53]++,e.linesToCheck.push({line:n,mnemonic:d,lineNumber:t+1}),Qt().s[54]++,e}),{linesToCheck:[],linesToSkip:[]}),i=t.linesToCheck,l=t.linesToSkip,Qt().s[55]++,e.next=5,this._checkLines(i);case 5:return s=e.sent,Qt().s[56]++,e.abrupt("return",{skipped:l.sort(),problems:s.sort((function(e,n){return Qt().f[13]++,Qt().s[57]++,e.lineNumber-n.lineNumber}))});case 8:case"end":return e.stop()}}),e,this)})));return function(n){return e.apply(this,arguments)}}())),(0,Et.Z)(this,"_checkLines",(Qt().s[58]++,function(){var e=(0,c.Z)((0,r.Z)().mark((function e(t){var i,l,s,c,u,d,m,A,p,h,f,v;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Qt().f[14]++,Qt().s[59]++,i=[],Qt().s[60]++,l=Ut(t,(function(e){return Qt().f[15]++,Qt().s[61]++,e.mnemonic.target})),Qt().s[62]++,e.t0=(0,r.Z)().keys(l);case 5:if((e.t1=e.t0()).done){e.next=47;break}if(s=e.t1.value,Qt().s[63]++,n.targets[s]){e.next=17;break}Qt().b[12][0]++,Qt().s[64]++,c=(0,a.Z)(l[s]);try{for(c.s();!(u=c.n()).done;)d=u.value,Qt().s[65]++,i.push((0,o.Z)((0,o.Z)({},d),{},{error:'Target "'.concat(s,'" does not exist.')}))}catch(g){c.e(g)}finally{c.f()}return Qt().s[66]++,e.abrupt("continue",5);case 17:Qt().b[12][1]++;case 18:Qt().s[67]++,m=Ut(l[s],(function(e){return Qt().f[16]++,Qt().s[68]++,e.mnemonic.packet})),Qt().s[69]++,e.t2=(0,r.Z)().keys(m);case 21:if((e.t3=e.t2()).done){e.next=45;break}A=e.t3.value,Qt().s[70]++,p=(0,a.Z)(m[A]),e.prev=25,f=(0,r.Z)().mark((function e(){var t,l,c,u,d,m,p,f;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=h.value,Qt().s[71]++,l=t.mnemonic.item?(Qt().b[13][0]++,"tlm"):(Qt().b[13][1]++,"cmd"),Qt().s[72]++,n.targets[s][l]){e.next=14;break}return Qt().b[14][0]++,Qt().s[73]++,c=t.mnemonic.item?(Qt().b[15][0]++,"get_all_telemetry"):(Qt().b[15][1]++,"get_all_commands"),Qt().s[74]++,e.next=9,n.api[c](s);case 9:u=e.sent,Qt().s[75]++,n.targets[s][l]=u.reduce((function(e,n){return Qt().f[17]++,Qt().s[76]++,e[n.packet_name]=n.items.map((function(e){return Qt().f[18]++,Qt().s[77]++,e.name})),Qt().s[78]++,e}),{}),e.next=15;break;case 14:Qt().b[14][1]++;case 15:if(Qt().s[79]++,d=n.targets[s][l][A],Qt().s[80]++,d){e.next=25;break}return Qt().b[16][0]++,Qt().s[81]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:"".concat("tlm"===l?(Qt().b[17][0]++,"Packet"):(Qt().b[17][1]++,"Command"),' "').concat(s," ").concat(A,'" does not exist.')})),Qt().s[82]++,e.abrupt("return",0);case 25:Qt().b[16][1]++;case 26:if(Qt().s[83]++,!t.mnemonic.item){e.next=41;break}if(Qt().b[18][0]++,Qt().s[84]++,d.some((function(e){return Qt().f[19]++,Qt().s[85]++,e===t.mnemonic.item}))){e.next=38;break}return Qt().b[19][0]++,Qt().s[86]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Item "'.concat(s," ").concat(A," ").concat(t.mnemonic.item,'" does not exist.')})),Qt().s[87]++,e.abrupt("return",0);case 38:Qt().b[19][1]++;case 39:e.next=61;break;case 41:Qt().b[18][1]++,Qt().s[88]++,m=(0,a.Z)(t.mnemonic.params),e.prev=44,f=(0,r.Z)().mark((function e(){var n;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=p.value,Qt().s[89]++,d.some((function(e){return Qt().f[20]++,Qt().s[90]++,e===n}))){e.next=10;break}return Qt().b[20][0]++,Qt().s[91]++,i.push((0,o.Z)((0,o.Z)({},t),{},{error:'Command "'.concat(s," ").concat(A,'" param "').concat(n,'" does not exist.')})),Qt().s[92]++,e.abrupt("return",1);case 10:Qt().b[20][1]++;case 11:case"end":return e.stop()}}),e)})),m.s();case 47:if((p=m.n()).done){e.next=53;break}return e.delegateYield(f(),"t0",49);case 49:if(!e.t0){e.next=51;break}return e.abrupt("continue",51);case 51:e.next=47;break;case 53:e.next=58;break;case 55:e.prev=55,e.t1=e["catch"](44),m.e(e.t1);case 58:return e.prev=58,m.f(),e.finish(58);case 61:case"end":return e.stop()}}),e,null,[[44,55,58,61]])})),p.s();case 28:if((h=p.n()).done){e.next=35;break}return e.delegateYield(f(),"t4",30);case 30:if(v=e.t4,0!==v){e.next=33;break}return e.abrupt("continue",33);case 33:e.next=28;break;case 35:e.next=40;break;case 37:e.prev=37,e.t5=e["catch"](25),p.e(e.t5);case 40:return e.prev=40,p.f(),e.finish(40);case 43:e.next=21;break;case 45:e.next=5;break;case 47:return Qt().s[93]++,e.abrupt("return",i);case 49:case"end":return e.stop()}}),e,null,[[25,37,40,43]])})));return function(n){return e.apply(this,arguments)}}())),Qt().f[1]++,Qt().s[6]++,this.api=new V.k,Qt().s[7]++,this.targets={},Qt().s[8]++,this.api.get_target_names().then((function(e){Qt().f[2]++,Qt().s[9]++,e.forEach((function(e){Qt().f[3]++,Qt().s[10]++,n.targets[e]={cmd:null,tlm:null}}))})),Qt().s[11]++,this.cmdKeywordExpressions=[],Qt().s[12]++,Wt("cmd").then((function(e){Qt().f[4]++,Qt().s[13]++,n.cmdKeywordExpressions=e.data.map(ei)})),Qt().s[14]++,this.tlmKeywordExpressions=[],Qt().s[15]++,Wt("tlm").then((function(e){Qt().f[5]++,Qt().s[16]++,n.tlmKeywordExpressions=e.data.map(ei)}))}));function li(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",n="239637faebd5a12da0d2967088a12522b53174c2",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"239637faebd5a12da0d2967088a12522b53174c2"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return li=function(){return o},o}li();var si=t(22124),oi=t(72645),ai=t(82842);t(52356);function ri(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",n="ebd29b6b4771be71b0b3e8465d6a5e919396ec6e",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:31,column:4},end:{line:31,column:71}},1:{start:{line:32,column:4},end:{line:32,column:25}},2:{start:{line:33,column:4},end:{line:33,column:27}},3:{start:{line:34,column:4},end:{line:34,column:21}},4:{start:{line:35,column:4},end:{line:35,column:21}},5:{start:{line:39,column:12},end:{line:49,column:3}},6:{start:{line:40,column:20},end:{line:40,column:40}},7:{start:{line:41,column:4},end:{line:41,column:39}},8:{start:{line:42,column:18},end:{line:47,column:5}},9:{start:{line:48,column:4},end:{line:48,column:33}},10:{start:{line:52,column:13},end:{line:87,column:3}},11:{start:{line:53,column:4},end:{line:71,column:5}},12:{start:{line:55,column:6},end:{line:70,column:7}},13:{start:{line:57,column:10},end:{line:61,column:11}},14:{start:{line:62,column:10},end:{line:62,column:15}},15:{start:{line:64,column:10},end:{line:68,column:11}},16:{start:{line:69,column:10},end:{line:69,column:15}},17:{start:{line:72,column:4},end:{line:86,column:5}},18:{start:{line:72,column:19},end:{line:72,column:35}},19:{start:{line:73,column:19},end:{line:73,column:71}},20:{start:{line:74,column:6},end:{line:85,column:7}},21:{start:{line:75,column:8},end:{line:75,column:37}},22:{start:{line:76,column:8},end:{line:82,column:10}},23:{start:{line:83,column:13},end:{line:85,column:7}},24:{start:{line:84,column:8},end:{line:84,column:51}},25:{start:{line:89,column:19},end:{line:92,column:3}},26:{start:{line:90,column:4},end:{line:90,column:61}},27:{start:{line:91,column:4},end:{line:91,column:72}},28:{start:{line:94,column:29},end:{line:103,column:3}},29:{start:{line:95,column:4},end:{line:102,column:5}},30:{start:{line:100,column:12},end:{line:100,column:70}},31:{start:{line:105,column:22},end:{line:114,column:3}},32:{start:{line:106,column:4},end:{line:113,column:5}},33:{start:{line:108,column:8},end:{line:110,column:9}},34:{start:{line:109,column:10},end:{line:109,column:33}},35:{start:{line:111,column:8},end:{line:111,column:25}},36:{start:{line:116,column:26},end:{line:122,column:3}},37:{start:{line:117,column:4},end:{line:121,column:5}},38:{start:{line:120,column:32},end:{line:120,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:47},end:{line:36,column:3}},line:30},1:{name:"(anonymous_1)",decl:{start:{line:39,column:12},end:{line:39,column:13}},loc:{start:{line:39,column:18},end:{line:49,column:3}},line:39},2:{name:"(anonymous_2)",decl:{start:{line:52,column:13},end:{line:52,column:14}},loc:{start:{line:52,column:34},end:{line:87,column:3}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:89,column:19},end:{line:89,column:20}},loc:{start:{line:89,column:47},end:{line:92,column:3}},line:89},4:{name:"(anonymous_4)",decl:{start:{line:94,column:29},end:{line:94,column:30}},loc:{start:{line:94,column:47},end:{line:103,column:3}},line:94},5:{name:"(anonymous_5)",decl:{start:{line:99,column:10},end:{line:99,column:11}},loc:{start:{line:100,column:12},end:{line:100,column:70}},line:100},6:{name:"(anonymous_6)",decl:{start:{line:105,column:22},end:{line:105,column:23}},loc:{start:{line:105,column:47},end:{line:114,column:3}},line:105},7:{name:"(anonymous_7)",decl:{start:{line:107,column:35},end:{line:107,column:36}},loc:{start:{line:107,column:51},end:{line:112,column:7}},line:107},8:{name:"(anonymous_8)",decl:{start:{line:116,column:26},end:{line:116,column:27}},loc:{start:{line:116,column:39},end:{line:122,column:3}},line:116},9:{name:"(anonymous_9)",decl:{start:{line:120,column:16},end:{line:120,column:17}},loc:{start:{line:120,column:32},end:{line:120,column:64}},line:120}},branchMap:{0:{loc:{start:{line:53,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},1:{loc:{start:{line:55,column:6},end:{line:70,column:7}},type:"switch",locations:[{start:{line:56,column:8},end:{line:62,column:15}},{start:{line:63,column:8},end:{line:69,column:15}}],line:55},2:{loc:{start:{line:74,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:85,column:7}},{start:{line:83,column:13},end:{line:85,column:7}}],line:74},3:{loc:{start:{line:75,column:8},end:{line:75,column:37}},type:"binary-expr",locations:[{start:{line:75,column:8},end:{line:75,column:20}},{start:{line:75,column:25},end:{line:75,column:36}}],line:75},4:{loc:{start:{line:83,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:83,column:13},end:{line:85,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:83},5:{loc:{start:{line:100,column:12},end:{line:100,column:70}},type:"binary-expr",locations:[{start:{line:100,column:12},end:{line:100,column:44}},{start:{line:100,column:48},end:{line:100,column:70}}],line:100},6:{loc:{start:{line:108,column:8},end:{line:110,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:110,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ebd29b6b4771be71b0b3e8465d6a5e919396ec6e"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ri=function(){return o},o}ri();var ci=new WeakMap,ui=new WeakMap,di=new WeakMap,mi=new WeakMap,Ai=new WeakMap,pi=new WeakMap,hi=new WeakMap,fi=new WeakMap,vi=new WeakMap,gi=(0,St.Z)((function e(n,t){var i=this,l=t.pattern,s=t.text,o=t.type;(0,Mt.Z)(this,e),(0,si.Z)(this,ci,{writable:!0,value:void 0}),(0,si.Z)(this,ui,{writable:!0,value:void 0}),(0,si.Z)(this,di,{writable:!0,value:void 0}),(0,si.Z)(this,mi,{writable:!0,value:void 0}),(0,si.Z)(this,Ai,{writable:!0,value:void 0}),(0,Et.Z)(this,"refresh",(ri().s[5]++,function(){ri().f[1]++;var e=(ri().s[6]++,(0,oi.Z)(i,ui).session);ri().s[7]++,(0,oi.Z)(i,vi).call(i,e);var n=(ri().s[8]++,{lines:e.doc.$lines,action:"insert",start:{row:0},end:{row:e.doc.$lines.length}});ri().s[9]++,i.annotate(n,e)})),(0,Et.Z)(this,"annotate",(ri().s[10]++,function(e,n){if(ri().f[2]++,ri().s[11]++,e.lines.length>1)switch(ri().b[0][0]++,ri().s[12]++,e.action){case"insert":ri().b[1][0]++,ri().s[13]++,(0,oi.Z)(i,fi).call(i,n,e.start.row,e.lines.length-1),ri().s[14]++;break;case"remove":ri().b[1][1]++,ri().s[15]++,(0,oi.Z)(i,fi).call(i,n,e.start.row+1,1-e.lines.length),ri().s[16]++;break}else ri().b[0][1]++;ri().s[17]++;for(var t=(ri().s[18]++,e.start.row);t<=e.end.row;t++){var l,s=(ri().s[19]++,null===(l=n.doc.$lines[t])||void 0===l||null===(l=l.match((0,oi.Z)(i,di)))||void 0===l?void 0:l.index);ri().s[20]++,void 0!==s?(ri().b[2][0]++,ri().s[21]++,ri().b[3][0]++,0!==s&&(ri().b[3][1]++,s+=1),ri().s[22]++,(0,oi.Z)(i,pi).call(i,n,{row:t,column:s,text:(0,oi.Z)(i,mi),type:(0,oi.Z)(i,Ai),openc3Id:(0,oi.Z)(i,ci)})):(ri().b[2][1]++,ri().s[23]++,"remove"===e.action?(ri().b[4][0]++,ri().s[24]++,(0,oi.Z)(i,hi).call(i,n,t)):ri().b[4][1]++)}})),(0,si.Z)(this,pi,{writable:!0,value:(ri().s[25]++,function(e,n){ri().f[3]++,ri().s[26]++,(0,oi.Z)(i,hi).call(i,e,n.row),ri().s[27]++,e.setAnnotations([].concat((0,u.Z)(e.getAnnotations()),[n]))})}),(0,si.Z)(this,hi,{writable:!0,value:(ri().s[28]++,function(e,n){ri().f[4]++,ri().s[29]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[5]++,ri().s[30]++,ri().b[5][0]++,e.openc3Id!==(0,oi.Z)(i,ci)||(ri().b[5][1]++,e.row!==n)})))})}),(0,si.Z)(this,fi,{writable:!0,value:(ri().s[31]++,function(e,n,t){ri().f[6]++,ri().s[32]++,e.setAnnotations(e.getAnnotations().map((function(e){return ri().f[7]++,ri().s[33]++,e.row>n?(ri().b[6][0]++,ri().s[34]++,e.row+=t):ri().b[6][1]++,ri().s[35]++,e})))})}),(0,si.Z)(this,vi,{writable:!0,value:(ri().s[36]++,function(e){ri().f[8]++,ri().s[37]++,e.setAnnotations(e.getAnnotations().filter((function(e){return ri().f[9]++,ri().s[38]++,e.openc3Id!==(0,oi.Z)(i,ci)})))})}),ri().f[0]++,ri().s[0]++,(0,ai.Z)(this,ci,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),ri().s[1]++,(0,ai.Z)(this,ui,n),ri().s[2]++,(0,ai.Z)(this,di,l),ri().s[3]++,(0,ai.Z)(this,mi,s),ri().s[4]++,(0,ai.Z)(this,Ai,o)}));function bi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",n="744a728c29aa11b26e0fea7ead3a653b74f7c776",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:27,column:19},end:{line:27,column:31}},1:{start:{line:28,column:20},end:{line:28,column:27}},2:{start:{line:29,column:19},end:{line:29,column:29}},3:{start:{line:30,column:4},end:{line:34,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:22},end:{line:35,column:3}},line:26}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"744a728c29aa11b26e0fea7ead3a653b74f7c776"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return bi=function(){return o},o}bi();var Ci=function(e){(0,$t.Z)(t,e);var n=(0,Ht.Z)(t);function t(e){(0,Mt.Z)(this,t),bi().f[0]++;var i=(bi().s[0]++,"(^|[{\\s])"),l=(bi().s[1]++,"sleep"),s=(bi().s[2]++,"[\\(\\s]");return bi().s[3]++,n.call(this,e,{pattern:new RegExp("".concat(i).concat(l).concat(s)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,St.Z)(t)}(gi);function _i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",n="5703e005e4cf95b0f782738f96d4e334260835ac",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5703e005e4cf95b0f782738f96d4e334260835ac"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return _i=function(){return o},o}function yi(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="a59f1f24ce9680267a5ba92c6c7281425dc7dae1",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:7,column:609}},4:{start:{line:1,column:667},end:{line:1,column:688}},5:{start:{line:4,column:71},end:{line:4,column:381}},6:{start:{line:4,column:146},end:{line:4,column:176}},7:{start:{line:4,column:423},end:{line:4,column:635}},8:{start:{line:4,column:498},end:{line:4,column:525}},9:{start:{line:4,column:679},end:{line:4,column:896}},10:{start:{line:4,column:754},end:{line:4,column:783}},11:{start:{line:4,column:1434},end:{line:4,column:1457}},12:{start:{line:7,column:74},end:{line:7,column:591}},13:{start:{line:7,column:249},end:{line:7,column:283}},14:{start:{line:7,column:334},end:{line:7,column:376}},15:{start:{line:9,column:22},end:{line:9,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:651},end:{line:1,column:652}},loc:{start:{line:1,column:666},end:{line:1,column:689}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:4,column:52},end:{line:4,column:53}},loc:{start:{line:4,column:70},end:{line:4,column:382}},line:4},3:{name:"(anonymous_3)",decl:{start:{line:4,column:129},end:{line:4,column:130}},loc:{start:{line:4,column:145},end:{line:4,column:177}},line:4},4:{name:"(anonymous_4)",decl:{start:{line:4,column:404},end:{line:4,column:405}},loc:{start:{line:4,column:422},end:{line:4,column:636}},line:4},5:{name:"(anonymous_5)",decl:{start:{line:4,column:481},end:{line:4,column:482}},loc:{start:{line:4,column:497},end:{line:4,column:526}},line:4},6:{name:"(anonymous_6)",decl:{start:{line:4,column:660},end:{line:4,column:661}},loc:{start:{line:4,column:678},end:{line:4,column:897}},line:4},7:{name:"(anonymous_7)",decl:{start:{line:4,column:737},end:{line:4,column:738}},loc:{start:{line:4,column:753},end:{line:4,column:784}},line:4},8:{name:"(anonymous_8)",decl:{start:{line:4,column:1418},end:{line:4,column:1419}},loc:{start:{line:4,column:1433},end:{line:4,column:1458}},line:4},9:{name:"(anonymous_9)",decl:{start:{line:7,column:55},end:{line:7,column:56}},loc:{start:{line:7,column:73},end:{line:7,column:592}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:232},end:{line:7,column:233}},loc:{start:{line:7,column:248},end:{line:7,column:284}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:323},end:{line:7,column:324}},loc:{start:{line:7,column:333},end:{line:7,column:377}},line:7}},branchMap:{0:{loc:{start:{line:7,column:159},end:{line:7,column:218}},type:"binary-expr",locations:[{start:{line:7,column:159},end:{line:7,column:177}},{start:{line:7,column:181},end:{line:7,column:218}}],line:7},1:{loc:{start:{line:7,column:404},end:{line:7,column:512}},type:"cond-expr",locations:[{start:{line:7,column:442},end:{line:7,column:478}},{start:{line:7,column:479},end:{line:7,column:512}}],line:7}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a59f1f24ce9680267a5ba92c6c7281425dc7dae1"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return yi=function(){return o},o}_i(),yi(),yi().s[0]++;var wi=function(){yi().f[0]++;var e=(yi().s[1]++,this),n=(yi().s[2]++,e._self._c);return yi().s[3]++,n("div",[n("v-card",{attrs:{flat:""}},[n("v-card-text",{staticClass:"overflow-y-auto",attrs:{"max-height":"400"}},[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Running Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getRunningScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:e.runningSearch,callback:function(n){yi().f[1]++,yi().s[4]++,e.runningSearch=n},expression:"runningSearch"}})],1)])]),n("v-data-table",{attrs:{headers:e.runningHeaders,items:e.runningScripts,search:e.runningSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start_time","sort-desc":"","data-test":"running-scripts","footer-props":{itemsPerPageOptions:[3],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.connect",fn:function(t){var i=t.item;return yi().f[2]++,yi().s[5]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[3]++,yi().s[6]++,e.connectScript(i)}}},[n("span",[e._v("Connect")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[e._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(t){var i=t.item;return yi().f[4]++,yi().s[7]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[5]++,yi().s[8]++,e.stopScript(i)}}},[n("span",[e._v("Stop")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(t){var i=t.item;return yi().f[6]++,yi().s[9]++,[n("v-btn",{attrs:{color:"primary"},on:{click:function(n){return yi().f[7]++,yi().s[10]++,e.deleteScript(i)}}},[n("span",[e._v("Delete")]),n("v-icon",{attrs:{right:""}},[e._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),n("v-card",{staticClass:"mt-3",attrs:{flat:""}},[n("v-card-text",[n("div",{staticClass:"row"},[n("div",{staticClass:"v-card__title col-2"},[e._v("Completed Scripts")]),n("div",{staticClass:"col-2"},[n("v-btn",{attrs:{color:"primary"},on:{click:e.getCompletedScripts}},[e._v("Refresh")])],1),n("div",{staticClass:"col-8"},[n("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.completedSearch,callback:function(n){yi().f[8]++,yi().s[11]++,e.completedSearch=n},expression:"completedSearch"}})],1)])]),n("v-container",{staticClass:"overflow-y-auto",staticStyle:{"max-height":"400px",padding:"0px",margin:"0px"}},[n("v-data-table",{attrs:{headers:e.completedHeaders,items:e.completedScripts,search:e.completedSearch,dense:"","calculate-widths":"","multi-sort":"","sort-by":"start","sort-desc":"","data-test":"completed-scripts","footer-props":{itemsPerPageOptions:[5],showFirstLastPage:!0}},scopedSlots:e._u([{key:"item.download",fn:function(t){var i=t.item;return yi().f[9]++,yi().s[12]++,[n("v-btn",{attrs:{color:"primary",disabled:e.downloadScript,loading:(yi().b[0][0]++,e.downloadScript&&(yi().b[0][1]++,e.downloadScript.name===i.name))},on:{click:function(n){return yi().f[10]++,yi().s[13]++,e.downloadScriptLog(i)}},scopedSlots:e._u([{key:"loader",fn:function(){return yi().f[11]++,yi().s[14]++,[n("span",[e._v("Loading...")])]},proxy:!0}],null,!0)},[i.name.includes("Script Report")?(yi().b[1][0]++,n("span",[e._v("Script Report")])):(yi().b[1][1]++,n("span",[e._v("Script Log")])),n("v-icon",{attrs:{right:""}},[e._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)],1)},xi=(yi().s[15]++,[]);function ki(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",n="d800ae370cd2f118479305ed2e0fc536992cea80",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",statementMap:{0:{start:{line:11,column:4},end:{line:50,column:5}},1:{start:{line:53,column:4},end:{line:53,column:28}},2:{start:{line:54,column:4},end:{line:54,column:30}},3:{start:{line:58,column:6},end:{line:60,column:8}},4:{start:{line:59,column:8},end:{line:59,column:43}},5:{start:{line:64,column:6},end:{line:66,column:8}},6:{start:{line:65,column:8},end:{line:65,column:45}},7:{start:{line:69,column:26},end:{line:72,column:7}},8:{start:{line:73,column:6},end:{line:79,column:7}},9:{start:{line:74,column:23},end:{line:74,column:56}},10:{start:{line:75,column:8},end:{line:75,column:35}},11:{start:{line:77,column:8},end:{line:77,column:38}},12:{start:{line:78,column:8},end:{line:78,column:27}},13:{start:{line:82,column:6},end:{line:105,column:10}},14:{start:{line:91,column:10},end:{line:91,column:73}},15:{start:{line:94,column:10},end:{line:96,column:12}},16:{start:{line:97,column:10},end:{line:97,column:34}},17:{start:{line:100,column:10},end:{line:104,column:11}},18:{start:{line:101,column:12},end:{line:103,column:14}},19:{start:{line:108,column:6},end:{line:132,column:10}},20:{start:{line:118,column:10},end:{line:118,column:75}},21:{start:{line:121,column:10},end:{line:123,column:12}},22:{start:{line:124,column:10},end:{line:124,column:34}},23:{start:{line:127,column:10},end:{line:131,column:11}},24:{start:{line:128,column:12},end:{line:130,column:14}},25:{start:{line:135,column:6},end:{line:135,column:34}},26:{start:{line:136,column:6},end:{line:156,column:10}},27:{start:{line:142,column:32},end:{line:142,column:53}},28:{start:{line:143,column:27},end:{line:143,column:66}},29:{start:{line:145,column:23},end:{line:145,column:50}},30:{start:{line:146,column:10},end:{line:146,column:39}},31:{start:{line:147,column:10},end:{line:147,column:49}},32:{start:{line:148,column:10},end:{line:148,column:22}},33:{start:{line:149,column:10},end:{line:149,column:36}},34:{start:{line:152,column:10},end:{line:155,column:12}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:9},end:{line:51,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:52,column:2},end:{line:52,column:3}},loc:{start:{line:52,column:12},end:{line:55,column:3}},line:52},2:{name:"(anonymous_2)",decl:{start:{line:57,column:23},end:{line:57,column:24}},loc:{start:{line:57,column:35},end:{line:61,column:5}},line:57},3:{name:"(anonymous_3)",decl:{start:{line:58,column:49},end:{line:58,column:50}},loc:{start:{line:58,column:63},end:{line:60,column:7}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:62,column:25},end:{line:62,column:26}},loc:{start:{line:62,column:37},end:{line:67,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:64,column:52},end:{line:64,column:53}},loc:{start:{line:64,column:66},end:{line:66,column:7}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:68,column:19},end:{line:68,column:20}},loc:{start:{line:68,column:37},end:{line:80,column:5}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:81,column:16},end:{line:81,column:17}},loc:{start:{line:81,column:34},end:{line:106,column:5}},line:81},8:{name:"(anonymous_8)",decl:{start:{line:90,column:14},end:{line:90,column:15}},loc:{start:{line:90,column:26},end:{line:92,column:9}},line:90},9:{name:"(anonymous_9)",decl:{start:{line:93,column:14},end:{line:93,column:15}},loc:{start:{line:93,column:28},end:{line:98,column:9}},line:93},10:{name:"(anonymous_10)",decl:{start:{line:99,column:15},end:{line:99,column:16}},loc:{start:{line:99,column:26},end:{line:105,column:9}},line:99},11:{name:"(anonymous_11)",decl:{start:{line:107,column:18},end:{line:107,column:19}},loc:{start:{line:107,column:36},end:{line:133,column:5}},line:107},12:{name:"(anonymous_12)",decl:{start:{line:117,column:14},end:{line:117,column:15}},loc:{start:{line:117,column:26},end:{line:119,column:9}},line:117},13:{name:"(anonymous_13)",decl:{start:{line:120,column:14},end:{line:120,column:15}},loc:{start:{line:120,column:28},end:{line:125,column:9}},line:120},14:{name:"(anonymous_14)",decl:{start:{line:126,column:15},end:{line:126,column:16}},loc:{start:{line:126,column:26},end:{line:132,column:9}},line:126},15:{name:"(anonymous_15)",decl:{start:{line:134,column:23},end:{line:134,column:24}},loc:{start:{line:134,column:41},end:{line:157,column:5}},line:134},16:{name:"(anonymous_16)",decl:{start:{line:141,column:14},end:{line:141,column:15}},loc:{start:{line:141,column:28},end:{line:150,column:9}},line:141},17:{name:"(anonymous_17)",decl:{start:{line:151,column:15},end:{line:151,column:16}},loc:{start:{line:151,column:21},end:{line:156,column:9}},line:151}},branchMap:{0:{loc:{start:{line:73,column:6},end:{line:79,column:7}},type:"if",locations:[{start:{line:73,column:6},end:{line:79,column:7}},{start:{line:76,column:13},end:{line:79,column:7}}],line:73},1:{loc:{start:{line:100,column:10},end:{line:104,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:104,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},2:{loc:{start:{line:127,column:10},end:{line:131,column:11}},type:"if",locations:[{start:{line:127,column:10},end:{line:131,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:127}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["RunningScripts.vue"],names:[],mappings:";AA8IA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"RunningScripts.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-text class="overflow-y-auto" max-height="400">\n <div class="row">\n <div class="v-card__title col-2">Running Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="runningSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n data-test="running-search"\n />\n </div>\n </div>\n </v-card-text>\n <v-data-table\n :headers="runningHeaders"\n :items="runningScripts"\n :search="runningSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start_time"\n sort-desc\n data-test="running-scripts"\n :footer-props="{\n itemsPerPageOptions: [3],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.connect="{ item }">\n <v-btn color="primary" @click="connectScript(item)">\n <span>Connect</span>\n <v-icon right v-show="connectInNewTab"> mdi-open-in-new </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.stop="{ item }">\n <v-btn color="primary" @click="stopScript(item)">\n <span>Stop</span>\n <v-icon right> mdi-close-circle-outline </v-icon>\n </v-btn>\n </template>\n <template v-slot:item.delete="{ item }">\n <v-btn color="primary" @click="deleteScript(item)">\n <span>Delete</span>\n <v-icon right> mdi-alert-octagon-outline </v-icon>\n </v-btn>\n </template>\n </v-data-table>\n </v-card>\n <v-card class="mt-3" flat>\n <v-card-text>\n <div class="row">\n <div class="v-card__title col-2">Completed Scripts</div>\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-8">\n <v-text-field\n v-model="completedSearch"\n class="pt-0"\n append-icon="mdi-magnify"\n label="Search"\n single-line\n hide-details\n />\n </div>\n </div>\n </v-card-text>\n <v-container\n style="max-height: 400px; padding: 0px; margin: 0px"\n class="overflow-y-auto"\n >\n \x3c!-- TODO: This probably needs to be paginated --\x3e\n <v-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n dense\n calculate-widths\n multi-sort\n sort-by="start"\n sort-desc\n data-test="completed-scripts"\n :footer-props="{\n itemsPerPageOptions: [5],\n showFirstLastPage: true,\n }"\n >\n <template v-slot:item.download="{ item }">\n <v-btn\n color="primary"\n :disabled="downloadScript"\n :loading="downloadScript && downloadScript.name === item.name"\n @click="downloadScriptLog(item)"\n >\n <span v-if="item.name.includes(\'Script Report\')"\n >Script Report</span\n >\n <span v-else>Script Log</span>\n <v-icon right> mdi-file-download-outline </v-icon>\n <template v-slot:loader>\n <span>Loading...</span>\n </template>\n </v-btn>\n </template>\n </v-data-table>\n </v-container>\n </v-card>\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n tabId: Number,\n curTab: Number,\n connectInNewTab: Boolean,\n },\n data() {\n return {\n downloadScript: null,\n runningSearch: \'\',\n runningScripts: [],\n runningHeaders: [\n {\n text: \'Connect\',\n value: \'connect\',\n sortable: false,\n filterable: false,\n },\n { text: \'Id\', value: \'id\' },\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start_time\' },\n {\n text: \'Stop\',\n value: \'stop\',\n sortable: false,\n filterable: false,\n },\n {\n text: \'Force Quit\',\n value: \'delete\',\n sortable: false,\n filterable: false,\n },\n ],\n completedSearch: \'\',\n completedScripts: [],\n completedHeaders: [\n { text: \'Name\', value: \'name\' },\n { text: \'Start Time\', value: \'start\' },\n {\n text: \'Download\',\n value: \'download\',\n sortable: false,\n filterable: false,\n },\n ],\n }\n },\n created() {\n this.getRunningScripts()\n this.getCompletedScripts()\n },\n methods: {\n getRunningScripts: function () {\n Api.get(\'/script-api/running-script\').then((response) => {\n this.runningScripts = response.data\n })\n },\n getCompletedScripts: function () {\n // TODO: Support pagination because you could have a lot of completed scripts\n Api.get(\'/script-api/completed-scripts\').then((response) => {\n this.completedScripts = response.data\n })\n },\n connectScript: function (script) {\n const destination = {\n name: \'ScriptRunner\',\n params: { id: script.id },\n }\n if (this.connectInNewTab) {\n let { href } = this.$router.resolve(destination)\n window.open(href, \'_blank\')\n } else {\n this.$router.push(destination)\n this.$emit(\'close\')\n }\n },\n stopScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to stop script: ${script.id} ${script.name}?`,\n {\n okText: \'Stop\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/stop`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n deleteScript: function (script) {\n this.$dialog\n .confirm(\n `Are you sure you want to force quit script: ${script.id} ${script.name}?\\n` +\n \'Did you try to stop the script first to allow the script to stop gracefully?\',\n {\n okText: \'Force Quit\',\n cancelText: \'Cancel\',\n }\n )\n .then((dialog) => {\n return Api.post(`/script-api/running-script/${script.id}/delete`)\n })\n .then((response) => {\n this.$notify.normal({\n body: `Stopped script: ${script.id} ${script.name}`,\n })\n this.getRunningScripts()\n })\n .catch((error) => {\n if (error) {\n this.$notify.caution({\n body: `Failed to stop script: ${script.id} ${script.name}`,\n })\n }\n })\n },\n downloadScriptLog: function (script) {\n this.downloadScript = script\n Api.get(\n `/openc3-api/storage/download/${encodeURIComponent(\n script.log\n )}?bucket=OPENC3_LOGS_BUCKET`\n )\n .then((response) => {\n const filenameParts = script.log.split(\'/\')\n const basename = filenameParts[filenameParts.length - 1]\n // Make a link and then \'click\' on it to start the download\n const link = document.createElement(\'a\')\n link.href = response.data.url\n link.setAttribute(\'download\', basename)\n link.click()\n this.downloadScript = null\n })\n .catch(() => {\n this.$notify.caution({\n title: `Unable to download log for ${script.name}`,\n body: `You may be able to download this log manually from the \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d800ae370cd2f118479305ed2e0fc536992cea80"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return ki=function(){return o},o}ki();var Si={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return ki().f[0]++,ki().s[0]++,{downloadScript:null,runningSearch:"",runningScripts:[],runningHeaders:[{text:"Connect",value:"connect",sortable:!1,filterable:!1},{text:"Id",value:"id"},{text:"Name",value:"name"},{text:"Start Time",value:"start_time"},{text:"Stop",value:"stop",sortable:!1,filterable:!1},{text:"Force Quit",value:"delete",sortable:!1,filterable:!1}],completedSearch:"",completedScripts:[],completedHeaders:[{text:"Name",value:"name"},{text:"Start Time",value:"start"},{text:"Download",value:"download",sortable:!1,filterable:!1}]}},created:function(){ki().f[1]++,ki().s[1]++,this.getRunningScripts(),ki().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var e=this;ki().f[2]++,ki().s[3]++,p.Z.get("/script-api/running-script").then((function(n){ki().f[3]++,ki().s[4]++,e.runningScripts=n.data}))},getCompletedScripts:function(){var e=this;ki().f[4]++,ki().s[5]++,p.Z.get("/script-api/completed-scripts").then((function(n){ki().f[5]++,ki().s[6]++,e.completedScripts=n.data}))},connectScript:function(e){ki().f[6]++;var n=(ki().s[7]++,{name:"ScriptRunner",params:{id:e.id}});if(ki().s[8]++,this.connectInNewTab){ki().b[0][0]++;var t=(ki().s[9]++,this.$router.resolve(n)),i=t.href;ki().s[10]++,window.open(i,"_blank")}else ki().b[0][1]++,ki().s[11]++,this.$router.push(n),ki().s[12]++,this.$emit("close")},stopScript:function(e){var n=this;ki().f[7]++,ki().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(e.id," ").concat(e.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(n){return ki().f[8]++,ki().s[14]++,p.Z.post("/script-api/running-script/".concat(e.id,"/stop"))})).then((function(t){ki().f[9]++,ki().s[15]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[16]++,n.getRunningScripts()})).catch((function(t){ki().f[10]++,ki().s[17]++,t?(ki().b[1][0]++,ki().s[18]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[1][1]++}))},deleteScript:function(e){var n=this;ki().f[11]++,ki().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(e.id," ").concat(e.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(n){return ki().f[12]++,ki().s[20]++,p.Z.post("/script-api/running-script/".concat(e.id,"/delete"))})).then((function(t){ki().f[13]++,ki().s[21]++,n.$notify.normal({body:"Stopped script: ".concat(e.id," ").concat(e.name)}),ki().s[22]++,n.getRunningScripts()})).catch((function(t){ki().f[14]++,ki().s[23]++,t?(ki().b[2][0]++,ki().s[24]++,n.$notify.caution({body:"Failed to stop script: ".concat(e.id," ").concat(e.name)})):ki().b[2][1]++}))},downloadScriptLog:function(e){var n=this;ki().f[15]++,ki().s[25]++,this.downloadScript=e,ki().s[26]++,p.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent(e.log),"?bucket=OPENC3_LOGS_BUCKET")).then((function(t){ki().f[16]++;var i=(ki().s[27]++,e.log.split("/")),l=(ki().s[28]++,i[i.length-1]),s=(ki().s[29]++,document.createElement("a"));ki().s[30]++,s.href=t.data.url,ki().s[31]++,s.setAttribute("download",l),ki().s[32]++,s.click(),ki().s[33]++,n.downloadScript=null})).catch((function(){ki().f[17]++,ki().s[34]++,n.$notify.caution({title:"Unable to download log for ".concat(e.name),body:"You may be able to download this log manually from the 'logs' bucket at ".concat(e.log)})}))}}},Mi=Si,Ei=(0,y.Z)(Mi,wi,xi,!1,null,null,null),Ti=Ei.exports;function Ri(){var e="/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",n="2a9c5c33537bf130160b84c4e5bbeb66f7307c2c",t=new Function("return this")(),i="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:39,column:20},end:{line:39,column:30}},1:{start:{line:40,column:21},end:{line:40,column:33}},2:{start:{line:41,column:14},end:{line:41,column:21}},3:{start:{line:42,column:11},end:{line:42,column:15}},4:{start:{line:43,column:14},end:{line:43,column:21}},5:{start:{line:44,column:14},end:{line:44,column:21}},6:{start:{line:68,column:4},end:{line:181,column:5}},7:{start:{line:185,column:24},end:{line:185,column:47}},8:{start:{line:186,column:6},end:{line:186,column:39}},9:{start:{line:187,column:6},end:{line:187,column:36}},10:{start:{line:190,column:6},end:{line:192,column:32}},11:{start:{line:195,column:6},end:{line:195,column:67}},12:{start:{line:198,column:6},end:{line:198,column:28}},13:{start:{line:201,column:6},end:{line:201,column:59}},14:{start:{line:201,column:32},end:{line:201,column:59}},15:{start:{line:203,column:6},end:{line:203,column:61}},16:{start:{line:203,column:42},end:{line:203,column:61}},17:{start:{line:204,column:6},end:{line:204,column:59}},18:{start:{line:209,column:6},end:{line:209,column:64}},19:{start:{line:212,column:6},end:{line:414,column:7}},20:{start:{line:221,column:16},end:{line:221,column:30}},21:{start:{line:229,column:16},end:{line:229,column:39}},22:{start:{line:245,column:16},end:{line:245,column:31}},23:{start:{line:256,column:16},end:{line:256,column:31}},24:{start:{line:264,column:16},end:{line:264,column:29}},25:{start:{line:275,column:16},end:{line:275,column:31}},26:{start:{line:286,column:16},end:{line:286,column:29}},27:{start:{line:298,column:16},end:{line:298,column:47}},28:{start:{line:306,column:16},end:{line:306,column:50}},29:{start:{line:318,column:16},end:{line:318,column:39}},30:{start:{line:329,column:16},end:{line:329,column:60}},31:{start:{line:337,column:16},end:{line:337,column:54}},32:{start:{line:338,column:16},end:{line:338,column:35}},33:{start:{line:345,column:16},end:{line:345,column:41}},34:{start:{line:356,column:16},end:{line:356,column:34}},35:{start:{line:364,column:16},end:{line:364,column:37}},36:{start:{line:372,column:16},end:{line:372,column:39}},37:{start:{line:380,column:16},end:{line:380,column:36}},38:{start:{line:390,column:16},end:{line:390,column:34}},39:{start:{line:398,column:16},end:{line:398,column:39}},40:{start:{line:409,column:16},end:{line:409,column:43}},41:{start:{line:417,column:6},end:{line:430,column:7}},42:{start:{line:435,column:6},end:{line:435,column:34}},43:{start:{line:436,column:6},end:{line:438,column:7}},44:{start:{line:437,column:8},end:{line:437,column:36}},45:{start:{line:439,column:6},end:{line:439,column:34}},46:{start:{line:442,column:6},end:{line:442,column:36}},47:{start:{line:443,column:6},end:{line:447,column:7}},48:{start:{line:444,column:8},end:{line:444,column:58}},49:{start:{line:446,column:8},end:{line:446,column:58}},50:{start:{line:452,column:4},end:{line:452,column:30}},51:{start:{line:453,column:4},end:{line:453,column:36}},52:{start:{line:456,column:4},end:{line:456,column:36}},53:{start:{line:457,column:4},end:{line:457,column:43}},54:{start:{line:459,column:4},end:{line:461,column:6}},55:{start:{line:460,column:6},end:{line:460,column:41}},56:{start:{line:464,column:4},end:{line:464,column:45}},57:{start:{line:465,column:4},end:{line:465,column:46}},58:{start:{line:467,column:23},end:{line:488,column:5}},59:{start:{line:489,column:27},end:{line:489,column:63}},60:{start:{line:490,column:29},end:{line:490,column:67}},61:{start:{line:491,column:4},end:{line:491,column:46}},62:{start:{line:492,column:4},end:{line:492,column:50}},63:{start:{line:493,column:4},end:{line:493,column:52}},64:{start:{line:494,column:4},end:{line:494,column:37}},65:{start:{line:495,column:4},end:{line:495,column:44}},66:{start:{line:496,column:4},end:{line:496,column:42}},67:{start:{line:497,column:4},end:{line:497,column:60}},68:{start:{line:498,column:4},end:{line:498,column:59}},69:{start:{line:499,column:4},end:{line:499,column:69}},70:{start:{line:500,column:4},end:{line:500,column:45}},71:{start:{line:501,column:4},end:{line:501,column:23}},72:{start:{line:502,column:4},end:{line:502,column:60}},73:{start:{line:506,column:4},end:{line:506,column:60}},74:{start:{line:508,column:27},end:{line:508,column:58}},75:{start:{line:509,column:4},end:{line:512,column:6}},76:{start:{line:510,column:6},end:{line:510,column:46}},77:{start:{line:511,column:6},end:{line:511,column:45}},78:{start:{line:514,column:4},end:{line:514,column:52}},79:{start:{line:515,column:4},end:{line:515,column:47}},80:{start:{line:516,column:4},end:{line:516,column:58}},81:{start:{line:517,column:4},end:{line:526,column:13}},82:{start:{line:519,column:6},end:{line:525,column:7}},83:{start:{line:524,column:8},end:{line:524,column:35}},84:{start:{line:529,column:4},end:{line:529,column:25}},85:{start:{line:530,column:4},end:{line:530,column:34}},86:{start:{line:533,column:4},end:{line:533,column:21}},87:{start:{line:534,column:4},end:{line:536,column:5}},88:{start:{line:535,column:6},end:{line:535,column:42}},89:{start:{line:537,column:4},end:{line:539,column:5}},90:{start:{line:538,column:6},end:{line:538,column:37}},91:{start:{line:540,column:4},end:{line:540,column:27}},92:{start:{line:543,column:4},end:{line:547,column:5}},93:{start:{line:544,column:6},end:{line:544,column:56}},94:{start:{line:546,column:6},end:{line:546,column:12}},95:{start:{line:551,column:6},end:{line:565,column:8}},96:{start:{line:553,column:8},end:{line:563,column:10}},97:{start:{line:554,column:10},end:{line:562,column:11}},98:{start:{line:564,column:8},end:{line:564,column:38}},99:{start:{line:568,column:16},end:{line:568,column:42}},100:{start:{line:569,column:31},end:{line:571,column:26}},101:{start:{line:573,column:17},end:{line:576,column:27}},102:{start:{line:574,column:23},end:{line:574,column:42}},103:{start:{line:575,column:23},end:{line:575,column:35}},104:{start:{line:577,column:18},end:{line:577,column:63}},105:{start:{line:578,column:33},end:{line:587,column:7}},106:{start:{line:579,column:8},end:{line:579,column:37}},107:{start:{line:581,column:8},end:{line:586,column:9}},108:{start:{line:582,column:10},end:{line:585,column:12}},109:{start:{line:588,column:6},end:{line:588,column:60}},110:{start:{line:590,column:33},end:{line:592,column:28}},111:{start:{line:593,column:28},end:{line:595,column:23}},112:{start:{line:596,column:21},end:{line:596,column:66}},113:{start:{line:597,column:17},end:{line:603,column:7}},114:{start:{line:598,column:8},end:{line:598,column:50}},115:{start:{line:599,column:8},end:{line:599,column:50}},116:{start:{line:600,column:8},end:{line:600,column:47}},117:{start:{line:601,column:8},end:{line:601,column:42}},118:{start:{line:602,column:8},end:{line:602,column:62}},119:{start:{line:604,column:21},end:{line:604,column:54}},120:{start:{line:605,column:6},end:{line:606,column:7}},121:{start:{line:606,column:7},end:{line:608,column:29}},122:{start:{line:607,column:8},end:{line:607,column:36}},123:{start:{line:609,column:6},end:{line:609,column:17}},124:{start:{line:612,column:16},end:{line:612,column:42}},125:{start:{line:613,column:33},end:{line:615,column:28}},126:{start:{line:617,column:17},end:{line:620,column:27}},127:{start:{line:618,column:23},end:{line:618,column:42}},128:{start:{line:619,column:23},end:{line:619,column:35}},129:{start:{line:621,column:18},end:{line:621,column:63}},130:{start:{line:622,column:33},end:{line:631,column:7}},131:{start:{line:623,column:8},end:{line:623,column:39}},132:{start:{line:625,column:8},end:{line:630,column:9}},133:{start:{line:626,column:10},end:{line:629,column:12}},134:{start:{line:632,column:6},end:{line:632,column:62}},135:{start:{line:634,column:33},end:{line:636,column:28}},136:{start:{line:637,column:28},end:{line:639,column:23}},137:{start:{line:640,column:21},end:{line:640,column:70}},138:{start:{line:641,column:17},end:{line:647,column:7}},139:{start:{line:642,column:8},end:{line:642,column:50}},140:{start:{line:643,column:8},end:{line:643,column:50}},141:{start:{line:644,column:8},end:{line:644,column:47}},142:{start:{line:645,column:8},end:{line:645,column:42}},143:{start:{line:646,column:8},end:{line:646,column:62}},144:{start:{line:648,column:23},end:{line:648,column:58}},145:{start:{line:649,column:6},end:{line:650,column:7}},146:{start:{line:650,column:7},end:{line:652,column:29}},147:{start:{line:651,column:8},end:{line:651,column:36}},148:{start:{line:653,column:6},end:{line:653,column:17}},149:{start:{line:658,column:6},end:{line:658,column:39}},150:{start:{line:659,column:6},end:{line:659,column:56}},151:{start:{line:660,column:6},end:{line:660,column:39}},152:{start:{line:661,column:6},end:{line:661,column:34}},153:{start:{line:662,column:6},end:{line:662,column:29}},154:{start:{line:663,column:6},end:{line:672,column:7}},155:{start:{line:673,column:6},end:{line:673,column:55}},156:{start:{line:676,column:6},end:{line:702,column:8}},157:{start:{line:677,column:34},end:{line:679,column:9}},158:{start:{line:678,column:17},end:{line:678,column:38}},159:{start:{line:680,column:8},end:{line:701,column:9}},160:{start:{line:681,column:10},end:{line:681,column:48}},161:{start:{line:682,column:10},end:{line:682,column:30}},162:{start:{line:683,column:10},end:{line:683,column:32}},163:{start:{line:684,column:10},end:{line:684,column:48}},164:{start:{line:685,column:15},end:{line:701,column:9}},165:{start:{line:686,column:10},end:{line:689,column:12}},166:{start:{line:690,column:10},end:{line:690,column:33}},167:{start:{line:692,column:10},end:{line:696,column:11}},168:{start:{line:693,column:12},end:{line:693,column:38}},169:{start:{line:694,column:12},end:{line:694,column:81}},170:{start:{line:695,column:12},end:{line:695,column:33}},171:{start:{line:697,column:10},end:{line:700,column:11}},172:{start:{line:698,column:12},end:{line:698,column:67}},173:{start:{line:699,column:12},end:{line:699,column:29}},174:{start:{line:705,column:6},end:{line:717,column:8}},175:{start:{line:706,column:8},end:{line:710,column:9}},176:{start:{line:707,column:10},end:{line:707,column:39}},177:{start:{line:708,column:10},end:{line:708,column:33}},178:{start:{line:709,column:10},end:{line:709,column:58}},179:{start:{line:711,column:8},end:{line:714,column:9}},180:{start:{line:712,column:10},end:{line:712,column:47}},181:{start:{line:713,column:10},end:{line:713,column:36}},182:{start:{line:716,column:8},end:{line:716,column:65}},183:{start:{line:720,column:6},end:{line:720,column:31}},184:{start:{line:721,column:6},end:{line:721,column:31}},185:{start:{line:722,column:6},end:{line:722,column:38}},186:{start:{line:725,column:20},end:{line:725,column:55}},187:{start:{line:726,column:19},end:{line:728,column:19}},188:{start:{line:729,column:26},end:{line:731,column:34}},189:{start:{line:730,column:25},end:{line:730,column:37}},190:{start:{line:731,column:22},end:{line:731,column:33}},191:{start:{line:732,column:6},end:{line:732,column:41}},192:{start:{line:735,column:19},end:{line:735,column:48}},193:{start:{line:736,column:20},end:{line:736,column:51}},194:{start:{line:737,column:26},end:{line:739,column:44}},195:{start:{line:738,column:25},end:{line:738,column:71}},196:{start:{line:739,column:22},end:{line:739,column:43}},197:{start:{line:740,column:6},end:{line:740,column:41}},198:{start:{line:745,column:8},end:{line:748,column:18}},199:{start:{line:749,column:6},end:{line:764,column:10}},200:{start:{line:756,column:10},end:{line:760,column:12}},201:{start:{line:763,column:10},end:{line:763,column:61}},202:{start:{line:767,column:6},end:{line:767,column:44}},203:{start:{line:771,column:6},end:{line:778,column:7}},204:{start:{line:772,column:20},end:{line:772,column:52}},205:{start:{line:773,column:8},end:{line:777,column:9}},206:{start:{line:774,column:10},end:{line:774,column:52}},207:{start:{line:776,column:10},end:{line:776,column:50}},208:{start:{line:781,column:6},end:{line:783,column:7}},209:{start:{line:782,column:8},end:{line:782,column:14}},210:{start:{line:784,column:27},end:{line:788,column:7}},211:{start:{line:786,column:10},end:{line:787,column:32}},212:{start:{line:789,column:25},end:{line:789,column:27}},213:{start:{line:790,column:19},end:{line:790,column:20}},214:{start:{line:791,column:6},end:{line:802,column:7}},215:{start:{line:793,column:10},end:{line:793,column:42}},216:{start:{line:794,column:10},end:{line:794,column:32}},217:{start:{line:795,column:10},end:{line:795,column:15}},218:{start:{line:797,column:10},end:{line:797,column:43}},219:{start:{line:798,column:10},end:{line:800,column:11}},220:{start:{line:799,column:21},end:{line:799,column:43}},221:{start:{line:801,column:10},end:{line:801,column:15}},222:{start:{line:803,column:6},end:{line:808,column:8}},223:{start:{line:804,column:8},end:{line:804,column:36}},224:{start:{line:805,column:8},end:{line:807,column:9}},225:{start:{line:806,column:10},end:{line:806,column:45}},226:{start:{line:811,column:6},end:{line:814,column:33}},227:{start:{line:813,column:34},end:{line:813,column:51}},228:{start:{line:817,column:6},end:{line:817,column:29}},229:{start:{line:818,column:6},end:{line:820,column:8}},230:{start:{line:819,column:8},end:{line:819,column:53}},231:{start:{line:823,column:6},end:{line:833,column:10}},232:{start:{line:829,column:10},end:{line:829,column:65}},233:{start:{line:832,column:10},end:{line:832,column:33}},234:{start:{line:836,column:6},end:{line:840,column:7}},235:{start:{line:837,column:8},end:{line:837,column:40}},236:{start:{line:839,column:8},end:{line:839,column:37}},237:{start:{line:845,column:6},end:{line:858,column:7}},238:{start:{line:849,column:8},end:{line:849,column:30}},239:{start:{line:850,column:8},end:{line:850,column:29}},240:{start:{line:851,column:13},end:{line:858,column:7}},241:{start:{line:856,column:8},end:{line:856,column:30}},242:{start:{line:857,column:8},end:{line:857,column:21}},243:{start:{line:862,column:6},end:{line:864,column:7}},244:{start:{line:863,column:8},end:{line:863,column:14}},245:{start:{line:865,column:6},end:{line:869,column:7}},246:{start:{line:866,column:8},end:{line:866,column:31}},247:{start:{line:868,column:8},end:{line:868,column:30}},248:{start:{line:872,column:6},end:{line:890,column:10}},249:{start:{line:875,column:26},end:{line:875,column:28}},250:{start:{line:876,column:10},end:{line:881,column:11}},251:{start:{line:877,column:32},end:{line:879,column:28}},252:{start:{line:878,column:32},end:{line:878,column:73}},253:{start:{line:880,column:12},end:{line:880,column:107}},254:{start:{line:882,column:10},end:{line:885,column:11}},255:{start:{line:883,column:12},end:{line:884,column:86}},256:{start:{line:886,column:10},end:{line:888,column:11}},257:{start:{line:887,column:12},end:{line:887,column:65}},258:{start:{line:889,column:10},end:{line:889,column:62}},259:{start:{line:893,column:6},end:{line:893,column:37}},260:{start:{line:894,column:6},end:{line:894,column:35}},261:{start:{line:895,column:6},end:{line:895,column:29}},262:{start:{line:896,column:6},end:{line:896,column:38}},263:{start:{line:897,column:6},end:{line:897,column:30}},264:{start:{line:898,column:6},end:{line:898,column:34}},265:{start:{line:899,column:6},end:{line:899,column:31}},266:{start:{line:900,column:6},end:{line:900,column:35}},267:{start:{line:903,column:6},end:{line:903,column:24}},268:{start:{line:904,column:6},end:{line:917,column:10}},269:{start:{line:909,column:32},end:{line:909,column:51}},270:{start:{line:916,column:10},end:{line:916,column:42}},271:{start:{line:920,column:6},end:{line:920,column:38}},272:{start:{line:921,column:6},end:{line:921,column:34}},273:{start:{line:922,column:6},end:{line:922,column:37}},274:{start:{line:924,column:6},end:{line:924,column:47}},275:{start:{line:925,column:6},end:{line:925,column:30}},276:{start:{line:926,column:6},end:{line:926,column:38}},277:{start:{line:927,column:6},end:{line:927,column:30}},278:{start:{line:929,column:6},end:{line:929,column:28}},279:{start:{line:930,column:6},end:{line:930,column:24}},280:{start:{line:931,column:6},end:{line:931,column:26}},281:{start:{line:932,column:6},end:{line:932,column:33}},282:{start:{line:935,column:6},end:{line:935,column:50}},283:{start:{line:936,column:6},end:{line:936,column:36}},284:{start:{line:939,column:6},end:{line:939,column:40}},285:{start:{line:942,column:6},end:{line:942,column:18}},286:{start:{line:948,column:6},end:{line:948,column:28}},287:{start:{line:949,column:6},end:{line:949,column:34}},288:{start:{line:950,column:21},end:{line:950,column:34}},289:{start:{line:951,column:6},end:{line:954,column:7}},290:{start:{line:953,column:8},end:{line:953,column:36}},291:{start:{line:955,column:16},end:{line:955,column:53}},292:{start:{line:956,column:6},end:{line:958,column:7}},293:{start:{line:957,column:8},end:{line:957,column:28}},294:{start:{line:959,column:17},end:{line:961,column:7}},295:{start:{line:962,column:6},end:{line:964,column:7}},296:{start:{line:963,column:8},end:{line:963,column:35}},297:{start:{line:965,column:6},end:{line:971,column:10}},298:{start:{line:967,column:10},end:{line:967,column:41}},299:{start:{line:970,column:10},end:{line:970,column:31}},300:{start:{line:976,column:6},end:{line:976,column:48}},301:{start:{line:977,column:6},end:{line:977,column:48}},302:{start:{line:978,column:6},end:{line:978,column:64}},303:{start:{line:981,column:6},end:{line:986,column:7}},304:{start:{line:982,column:8},end:{line:982,column:69}},305:{start:{line:984,column:8},end:{line:984,column:39}},306:{start:{line:985,column:8},end:{line:985,column:69}},307:{start:{line:992,column:6},end:{line:997,column:7}},308:{start:{line:993,column:8},end:{line:993,column:31}},309:{start:{line:994,column:8},end:{line:994,column:29}},310:{start:{line:996,column:8},end:{line:996,column:68}},311:{start:{line:1e3,column:6},end:{line:1e3,column:66}},312:{start:{line:1003,column:6},end:{line:1003,column:29}},313:{start:{line:1006,column:18},end:{line:1006,column:19}},314:{start:{line:1007,column:6},end:{line:1196,column:7}},315:{start:{line:1009,column:10},end:{line:1009,column:71}},316:{start:{line:1010,column:10},end:{line:1010,column:60}},317:{start:{line:1011,column:10},end:{line:1013,column:11}},318:{start:{line:1012,column:12},end:{line:1012,column:50}},319:{start:{line:1014,column:10},end:{line:1014,column:15}},320:{start:{line:1016,column:10},end:{line:1045,column:11}},321:{start:{line:1017,column:12},end:{line:1044,column:13}},322:{start:{line:1020,column:14},end:{line:1020,column:68}},323:{start:{line:1023,column:14},end:{line:1038,column:18}},324:{start:{line:1027,column:18},end:{line:1030,column:19}},325:{start:{line:1031,column:18},end:{line:1031,column:77}},326:{start:{line:1032,column:18},end:{line:1032,column:56}},327:{start:{line:1033,column:18},end:{line:1033,column:45}},328:{start:{line:1037,column:18},end:{line:1037,column:50}},329:{start:{line:1040,column:14},end:{line:1040,column:69}},330:{start:{line:1041,column:14},end:{line:1041,column:52}},331:{start:{line:1042,column:14},end:{line:1042,column:42}},332:{start:{line:1043,column:14},end:{line:1043,column:50}},333:{start:{line:1046,column:10},end:{line:1046,column:33}},334:{start:{line:1047,column:26},end:{line:1047,column:58}},335:{start:{line:1048,column:10},end:{line:1101,column:11}},336:{start:{line:1050,column:14},end:{line:1050,column:44}},337:{start:{line:1051,column:14},end:{line:1051,column:47}},338:{start:{line:1052,column:14},end:{line:1052,column:39}},339:{start:{line:1053,column:14},end:{line:1053,column:45}},340:{start:{line:1055,column:14},end:{line:1055,column:37}},341:{start:{line:1056,column:14},end:{line:1060,column:15}},342:{start:{line:1061,column:14},end:{line:1061,column:48}},343:{start:{line:1062,column:14},end:{line:1062,column:61}},344:{start:{line:1063,column:14},end:{line:1063,column:19}},345:{start:{line:1065,column:14},end:{line:1065,column:31}},346:{start:{line:1068,column:14},end:{line:1068,column:45}},347:{start:{line:1073,column:14},end:{line:1079,column:15}},348:{start:{line:1074,column:16},end:{line:1074,column:45}},349:{start:{line:1075,column:16},end:{line:1075,column:48}},350:{start:{line:1077,column:16},end:{line:1077,column:46}},351:{start:{line:1078,column:16},end:{line:1078,column:49}},352:{start:{line:1080,column:14},end:{line:1080,column:39}},353:{start:{line:1081,column:29},end:{line:1083,column:15}},354:{start:{line:1082,column:25},end:{line:1082,column:69}},355:{start:{line:1084,column:14},end:{line:1097,column:15}},356:{start:{line:1085,column:16},end:{line:1085,column:39}},357:{start:{line:1086,column:27},end:{line:1086,column:62}},358:{start:{line:1087,column:16},end:{line:1091,column:17}},359:{start:{line:1092,column:16},end:{line:1092,column:42}},360:{start:{line:1094,column:16},end:{line:1096,column:17}},361:{start:{line:1095,column:18},end:{line:1095,column:57}},362:{start:{line:1098,column:14},end:{line:1098,column:19}},363:{start:{line:1100,column:14},end:{line:1100,column:19}},364:{start:{line:1102,column:10},end:{line:1102,column:15}},365:{start:{line:1106,column:10},end:{line:1110,column:11}},366:{start:{line:1107,column:12},end:{line:1109,column:13}},367:{start:{line:1108,column:14},end:{line:1108,column:54}},368:{start:{line:1111,column:10},end:{line:1113,column:11}},369:{start:{line:1112,column:12},end:{line:1112,column:31}},370:{start:{line:1114,column:10},end:{line:1114,column:15}},371:{start:{line:1116,column:10},end:{line:1116,column:33}},372:{start:{line:1117,column:10},end:{line:1117,column:15}},373:{start:{line:1119,column:10},end:{line:1119,column:41}},374:{start:{line:1120,column:10},end:{line:1120,column:34}},375:{start:{line:1121,column:10},end:{line:1121,column:15}},376:{start:{line:1124,column:10},end:{line:1127,column:11}},377:{start:{line:1125,column:12},end:{line:1125,column:35}},378:{start:{line:1126,column:12},end:{line:1126,column:33}},379:{start:{line:1128,column:10},end:{line:1128,column:15}},380:{start:{line:1130,column:10},end:{line:1130,column:31}},381:{start:{line:1131,column:10},end:{line:1131,column:15}},382:{start:{line:1133,column:22},end:{line:1133,column:27}},383:{start:{line:1134,column:27},end:{line:1134,column:29}},384:{start:{line:1135,column:10},end:{line:1145,column:11}},385:{start:{line:1136,column:12},end:{line:1143,column:13}},386:{start:{line:1140,column:14},end:{line:1140,column:33}},387:{start:{line:1141,column:14},end:{line:1141,column:26}},388:{start:{line:1142,column:14},end:{line:1142,column:19}},389:{start:{line:1144,column:12},end:{line:1144,column:22}},390:{start:{line:1146,column:10},end:{line:1146,column:59}},391:{start:{line:1147,column:10},end:{line:1147,column:59}},392:{start:{line:1148,column:10},end:{line:1148,column:62}},393:{start:{line:1149,column:10},end:{line:1153,column:11}},394:{start:{line:1150,column:12},end:{line:1150,column:49}},395:{start:{line:1152,column:12},end:{line:1152,column:44}},396:{start:{line:1154,column:10},end:{line:1158,column:11}},397:{start:{line:1155,column:12},end:{line:1155,column:48}},398:{start:{line:1157,column:12},end:{line:1157,column:43}},399:{start:{line:1159,column:10},end:{line:1159,column:62}},400:{start:{line:1160,column:10},end:{line:1165,column:11}},401:{start:{line:1161,column:12},end:{line:1161,column:57}},402:{start:{line:1162,column:12},end:{line:1162,column:68}},403:{start:{line:1164,column:12},end:{line:1164,column:54}},404:{start:{line:1166,column:10},end:{line:1166,column:15}},405:{start:{line:1168,column:10},end:{line:1177,column:11}},406:{start:{line:1169,column:12},end:{line:1175,column:13}},407:{start:{line:1173,column:14},end:{line:1173,column:43}},408:{start:{line:1174,column:14},end:{line:1174,column:19}},409:{start:{line:1176,column:12},end:{line:1176,column:22}},410:{start:{line:1178,column:10},end:{line:1178,column:15}},411:{start:{line:1180,column:10},end:{line:1180,column:27}},412:{start:{line:1181,column:10},end:{line:1181,column:15}},413:{start:{line:1183,column:23},end:{line:1185,column:12}},414:{start:{line:1187,column:23},end:{line:1187,column:50}},415:{start:{line:1188,column:10},end:{line:1188,column:47}},416:{start:{line:1189,column:10},end:{line:1189,column:54}},417:{start:{line:1190,column:10},end:{line:1190,column:22}},418:{start:{line:1191,column:10},end:{line:1191,column:15}},419:{start:{line:1195,column:10},end:{line:1195,column:15}},420:{start:{line:1199,column:6},end:{line:1199,column:30}},421:{start:{line:1200,column:6},end:{line:1207,column:8}},422:{start:{line:1210,column:6},end:{line:1215,column:7}},423:{start:{line:1211,column:8},end:{line:1211,column:32}},424:{start:{line:1212,column:8},end:{line:1212,column:32}},425:{start:{line:1213,column:8},end:{line:1213,column:29}},426:{start:{line:1214,column:8},end:{line:1214,column:14}},427:{start:{line:1216,column:6},end:{line:1216,column:42}},428:{start:{line:1217,column:6},end:{line:1217,column:38}},429:{start:{line:1218,column:6},end:{line:1218,column:39}},430:{start:{line:1219,column:6},end:{line:1219,column:34}},431:{start:{line:1220,column:6},end:{line:1220,column:31}},432:{start:{line:1221,column:6},end:{line:1221,column:30}},433:{start:{line:1222,column:6},end:{line:1222,column:30}},434:{start:{line:1223,column:6},end:{line:1223,column:33}},435:{start:{line:1224,column:6},end:{line:1359,column:7}},436:{start:{line:1228,column:10},end:{line:1228,column:33}},437:{start:{line:1229,column:10},end:{line:1229,column:40}},438:{start:{line:1230,column:10},end:{line:1230,column:35}},439:{start:{line:1231,column:10},end:{line:1231,column:42}},440:{start:{line:1233,column:10},end:{line:1238,column:11}},441:{start:{line:1234,column:12},end:{line:1234,column:54}},442:{start:{line:1235,column:17},end:{line:1238,column:11}},443:{start:{line:1237,column:12},end:{line:1237,column:43}},444:{start:{line:1240,column:10},end:{line:1242,column:11}},445:{start:{line:1241,column:12},end:{line:1241,column:36}},446:{start:{line:1243,column:10},end:{line:1262,column:11}},447:{start:{line:1244,column:12},end:{line:1244,column:33}},448:{start:{line:1245,column:12},end:{line:1261,column:13}},449:{start:{line:1246,column:14},end:{line:1252,column:16}},450:{start:{line:1254,column:14},end:{line:1260,column:16}},451:{start:{line:1263,column:10},end:{line:1263,column:30}},452:{start:{line:1264,column:10},end:{line:1264,column:15}},453:{start:{line:1266,column:10},end:{line:1266,column:49}},454:{start:{line:1267,column:10},end:{line:1267,column:97}},455:{start:{line:1268,column:10},end:{line:1270,column:11}},456:{start:{line:1269,column:12},end:{line:1269,column:53}},457:{start:{line:1271,column:10},end:{line:1271,column:40}},458:{start:{line:1272,column:10},end:{line:1272,column:63}},459:{start:{line:1273,column:10},end:{line:1273,column:58}},460:{start:{line:1274,column:10},end:{line:1274,column:33}},461:{start:{line:1275,column:10},end:{line:1275,column:15}},462:{start:{line:1277,column:10},end:{line:1279,column:11}},463:{start:{line:1278,column:12},end:{line:1278,column:58}},464:{start:{line:1280,column:10},end:{line:1282,column:11}},465:{start:{line:1281,column:12},end:{line:1281,column:53}},466:{start:{line:1283,column:10},end:{line:1283,column:44}},467:{start:{line:1284,column:10},end:{line:1284,column:61}},468:{start:{line:1285,column:10},end:{line:1285,column:58}},469:{start:{line:1286,column:10},end:{line:1286,column:33}},470:{start:{line:1287,column:10},end:{line:1287,column:15}},471:{start:{line:1289,column:10},end:{line:1291,column:11}},472:{start:{line:1290,column:12},end:{line:1290,column:58}},473:{start:{line:1292,column:10},end:{line:1294,column:11}},474:{start:{line:1293,column:12},end:{line:1293,column:53}},475:{start:{line:1295,column:10},end:{line:1297,column:11}},476:{start:{line:1296,column:12},end:{line:1296,column:39}},477:{start:{line:1298,column:10},end:{line:1298,column:44}},478:{start:{line:1299,column:10},end:{line:1301,column:12}},479:{start:{line:1300,column:12},end:{line:1300,column:59}},480:{start:{line:1302,column:10},end:{line:1302,column:38}},481:{start:{line:1303,column:10},end:{line:1303,column:58}},482:{start:{line:1304,column:10},end:{line:1304,column:33}},483:{start:{line:1305,column:10},end:{line:1305,column:15}},484:{start:{line:1308,column:10},end:{line:1310,column:11}},485:{start:{line:1309,column:12},end:{line:1309,column:58}},486:{start:{line:1311,column:10},end:{line:1313,column:11}},487:{start:{line:1312,column:12},end:{line:1312,column:53}},488:{start:{line:1314,column:10},end:{line:1314,column:44}},489:{start:{line:1315,column:10},end:{line:1317,column:12}},490:{start:{line:1316,column:12},end:{line:1316,column:59}},491:{start:{line:1318,column:10},end:{line:1320,column:11}},492:{start:{line:1319,column:12},end:{line:1319,column:43}},493:{start:{line:1321,column:10},end:{line:1321,column:58}},494:{start:{line:1322,column:10},end:{line:1322,column:33}},495:{start:{line:1323,column:10},end:{line:1323,column:15}},496:{start:{line:1325,column:10},end:{line:1325,column:47}},497:{start:{line:1326,column:10},end:{line:1326,column:43}},498:{start:{line:1327,column:10},end:{line:1327,column:38}},499:{start:{line:1328,column:10},end:{line:1328,column:15}},500:{start:{line:1330,column:10},end:{line:1339,column:11}},501:{start:{line:1331,column:12},end:{line:1331,column:43}},502:{start:{line:1332,column:12},end:{line:1338,column:14}},503:{start:{line:1340,column:10},end:{line:1340,column:29}},504:{start:{line:1341,column:10},end:{line:1341,column:15}},505:{start:{line:1344,column:10},end:{line:1344,column:40}},506:{start:{line:1345,column:10},end:{line:1345,column:42}},507:{start:{line:1346,column:10},end:{line:1348,column:11}},508:{start:{line:1347,column:12},end:{line:1347,column:49}},509:{start:{line:1349,column:10},end:{line:1351,column:11}},510:{start:{line:1350,column:12},end:{line:1350,column:37}},511:{start:{line:1352,column:10},end:{line:1352,column:31}},512:{start:{line:1353,column:10},end:{line:1353,column:15}},513:{start:{line:1358,column:10},end:{line:1358,column:15}},514:{start:{line:1362,column:6},end:{line:1362,column:28}},515:{start:{line:1365,column:22},end:{line:1365,column:30}},516:{start:{line:1366,column:6},end:{line:1383,column:7}},517:{start:{line:1367,column:8},end:{line:1367,column:22}},518:{start:{line:1368,column:8},end:{line:1382,column:10}},519:{start:{line:1369,column:10},end:{line:1369,column:35}},520:{start:{line:1371,column:45},end:{line:1375,column:11}},521:{start:{line:1378,column:27},end:{line:1381,column:12}},522:{start:{line:1384,column:6},end:{line:1390,column:8}},523:{start:{line:1393,column:6},end:{line:1393,column:30}},524:{start:{line:1394,column:6},end:{line:1394,column:40}},525:{start:{line:1395,column:6},end:{line:1395,column:27}},526:{start:{line:1399,column:6},end:{line:1399,column:23}},527:{start:{line:1400,column:6},end:{line:1400,column:34}},528:{start:{line:1401,column:6},end:{line:1401,column:33}},529:{start:{line:1402,column:6},end:{line:1402,column:30}},530:{start:{line:1403,column:6},end:{line:1403,column:21}},531:{start:{line:1404,column:6},end:{line:1404,column:38}},532:{start:{line:1405,column:6},end:{line:1405,column:28}},533:{start:{line:1406,column:6},end:{line:1406,column:30}},534:{start:{line:1407,column:6},end:{line:1407,column:36}},535:{start:{line:1408,column:6},end:{line:1408,column:30}},536:{start:{line:1411,column:6},end:{line:1411,column:20}},537:{start:{line:1412,column:6},end:{line:1449,column:2}},538:{start:{line:1450,column:6},end:{line:1450,column:33}},539:{start:{line:1453,column:6},end:{line:1453,column:20}},540:{start:{line:1454,column:6},end:{line:1490,column:2}},541:{start:{line:1491,column:6},end:{line:1491,column:33}},542:{start:{line:1494,column:6},end:{line:1494,column:26}},543:{start:{line:1499,column:6},end:{line:1499,column:35}},544:{start:{line:1500,column:6},end:{line:1522,column:10}},545:{start:{line:1502,column:23},end:{line:1505,column:11}},546:{start:{line:1506,column:10},end:{line:1508,column:11}},547:{start:{line:1507,column:12},end:{line:1507,column:61}},548:{start:{line:1509,column:10},end:{line:1511,column:11}},549:{start:{line:1510,column:12},end:{line:1510,column:47}},550:{start:{line:1512,column:10},end:{line:1514,column:11}},551:{start:{line:1513,column:12},end:{line:1513,column:51}},552:{start:{line:1515,column:25},end:{line:1515,column:45}},553:{start:{line:1516,column:30},end:{line:1516,column:55}},554:{start:{line:1517,column:10},end:{line:1517,column:59}},555:{start:{line:1520,column:10},end:{line:1520,column:78}},556:{start:{line:1521,column:10},end:{line:1521,column:22}},557:{start:{line:1526,column:6},end:{line:1526,column:21}},558:{start:{line:1528,column:24},end:{line:1528,column:47}},559:{start:{line:1529,column:6},end:{line:1535,column:7}},560:{start:{line:1531,column:8},end:{line:1534,column:9}},561:{start:{line:1532,column:10},end:{line:1532,column:27}},562:{start:{line:1533,column:10},end:{line:1533,column:32}},563:{start:{line:1536,column:6},end:{line:1536,column:33}},564:{start:{line:1537,column:6},end:{line:1541,column:7}},565:{start:{line:1538,column:8},end:{line:1538,column:58}},566:{start:{line:1540,column:8},end:{line:1540,column:56}},567:{start:{line:1542,column:6},end:{line:1542,column:33}},568:{start:{line:1543,column:6},end:{line:1543,column:49}},569:{start:{line:1544,column:6},end:{line:1544,column:46}},570:{start:{line:1545,column:6},end:{line:1545,column:39}},571:{start:{line:1546,column:6},end:{line:1546,column:28}},572:{start:{line:1547,column:6},end:{line:1547,column:30}},573:{start:{line:1549,column:6},end:{line:1556,column:7}},574:{start:{line:1550,column:8},end:{line:1550,column:31}},575:{start:{line:1551,column:8},end:{line:1551,column:35}},576:{start:{line:1552,column:8},end:{line:1552,column:37}},577:{start:{line:1554,column:8},end:{line:1554,column:32}},578:{start:{line:1555,column:8},end:{line:1555,column:38}},579:{start:{line:1557,column:6},end:{line:1560,column:7}},580:{start:{line:1558,column:8},end:{line:1558,column:36}},581:{start:{line:1559,column:8},end:{line:1559,column:34}},582:{start:{line:1562,column:6},end:{line:1562,column:54}},583:{start:{line:1565,column:23},end:{line:1565,column:62}},584:{start:{line:1566,column:25},end:{line:1566,column:58}},585:{start:{line:1567,column:23},end:{line:1567,column:50}},586:{start:{line:1568,column:25},end:{line:1570,column:7}},587:{start:{line:1571,column:17},end:{line:1571,column:39}},588:{start:{line:1572,column:18},end:{line:1572,column:34}},589:{start:{line:1573,column:6},end:{line:1586,column:7}},590:{start:{line:1574,column:8},end:{line:1576,column:9}},591:{start:{line:1575,column:10},end:{line:1575,column:23}},592:{start:{line:1577,column:8},end:{line:1579,column:9}},593:{start:{line:1578,column:10},end:{line:1578,column:25}},594:{start:{line:1580,column:8},end:{line:1582,column:9}},595:{start:{line:1581,column:10},end:{line:1581,column:23}},596:{start:{line:1583,column:8},end:{line:1585,column:9}},597:{start:{line:1584,column:10},end:{line:1584,column:25}},598:{start:{line:1587,column:6},end:{line:1587,column:22}},599:{start:{line:1592,column:26},end:{line:1592,column:50}},600:{start:{line:1593,column:6},end:{line:1623,column:7}},601:{start:{line:1594,column:8},end:{line:1622,column:9}},602:{start:{line:1596,column:10},end:{line:1596,column:23}},603:{start:{line:1597,column:10},end:{line:1597,column:16}},604:{start:{line:1599,column:10},end:{line:1621,column:11}},605:{start:{line:1600,column:27},end:{line:1600,column:48}},606:{start:{line:1601,column:12},end:{line:1619,column:13}},607:{start:{line:1605,column:14},end:{line:1609,column:26}},608:{start:{line:1610,column:19},end:{line:1619,column:13}},609:{start:{line:1611,column:14},end:{line:1615,column:26}},610:{start:{line:1618,column:14},end:{line:1618,column:20}},611:{start:{line:1620,column:12},end:{line:1620,column:45}},612:{start:{line:1624,column:6},end:{line:1624,column:26}},613:{start:{line:1625,column:6},end:{line:1670,column:10}},614:{start:{line:1632,column:10},end:{line:1655,column:11}},615:{start:{line:1633,column:12},end:{line:1641,column:13}},616:{start:{line:1634,column:14},end:{line:1634,column:43}},617:{start:{line:1635,column:14},end:{line:1635,column:37}},618:{start:{line:1636,column:14},end:{line:1636,column:62}},619:{start:{line:1638,column:14},end:{line:1638,column:44}},620:{start:{line:1639,column:14},end:{line:1639,column:38}},621:{start:{line:1640,column:14},end:{line:1640,column:32}},622:{start:{line:1642,column:12},end:{line:1645,column:13}},623:{start:{line:1643,column:14},end:{line:1643,column:51}},624:{start:{line:1644,column:14},end:{line:1644,column:40}},625:{start:{line:1646,column:12},end:{line:1646,column:34}},626:{start:{line:1647,column:12},end:{line:1649,column:20}},627:{start:{line:1648,column:14},end:{line:1648,column:35}},628:{start:{line:1651,column:12},end:{line:1651,column:33}},629:{start:{line:1652,column:12},end:{line:1652,column:36}},630:{start:{line:1653,column:12},end:{line:1653,column:103}},631:{start:{line:1654,column:12},end:{line:1654,column:33}},632:{start:{line:1656,column:10},end:{line:1656,column:25}},633:{start:{line:1659,column:10},end:{line:1659,column:31}},634:{start:{line:1662,column:10},end:{line:1668,column:11}},635:{start:{line:1663,column:12},end:{line:1663,column:36}},636:{start:{line:1664,column:12},end:{line:1664,column:49}},637:{start:{line:1666,column:12},end:{line:1666,column:36}},638:{start:{line:1667,column:12},end:{line:1667,column:103}},639:{start:{line:1669,column:10},end:{line:1669,column:31}},640:{start:{line:1673,column:6},end:{line:1673,column:28}},641:{start:{line:1676,column:6},end:{line:1676,column:44}},642:{start:{line:1677,column:6},end:{line:1677,column:33}},643:{start:{line:1678,column:6},end:{line:1681,column:7}},644:{start:{line:1679,column:8},end:{line:1679,column:67}},645:{start:{line:1680,column:8},end:{line:1680,column:32}},646:{start:{line:1682,column:6},end:{line:1682,column:33}},647:{start:{line:1685,column:21},end:{line:1685,column:34}},648:{start:{line:1686,column:6},end:{line:1688,column:7}},649:{start:{line:1687,column:8},end:{line:1687,column:36}},650:{start:{line:1689,column:6},end:{line:1710,column:10}},651:{start:{line:1695,column:10},end:{line:1697,column:12}},652:{start:{line:1700,column:10},end:{line:1700,column:24}},653:{start:{line:1703,column:10},end:{line:1709,column:11}},654:{start:{line:1704,column:32},end:{line:1707,column:13}},655:{start:{line:1708,column:12},end:{line:1708,column:44}},656:{start:{line:1713,column:19},end:{line:1715,column:8}},657:{start:{line:1717,column:19},end:{line:1717,column:46}},658:{start:{line:1718,column:6},end:{line:1718,column:43}},659:{start:{line:1719,column:6},end:{line:1719,column:50}},660:{start:{line:1720,column:6},end:{line:1720,column:18}},661:{start:{line:1724,column:6},end:{line:1734,column:8}},662:{start:{line:1731,column:8},end:{line:1731,column:52}},663:{start:{line:1732,column:8},end:{line:1732,column:69}},664:{start:{line:1733,column:8},end:{line:1733,column:36}},665:{start:{line:1737,column:6},end:{line:1747,column:8}},666:{start:{line:1744,column:8},end:{line:1744,column:52}},667:{start:{line:1745,column:8},end:{line:1745,column:69}},668:{start:{line:1746,column:8},end:{line:1746,column:36}},669:{start:{line:1750,column:6},end:{line:1750,column:71}},670:{start:{line:1753,column:6},end:{line:1753,column:38}},671:{start:{line:1756,column:6},end:{line:1756,column:48}},672:{start:{line:1759,column:6},end:{line:1786,column:7}},673:{start:{line:1760,column:8},end:{line:1760,column:23}},674:{start:{line:1761,column:8},end:{line:1761,column:57}},675:{start:{line:1762,column:13},end:{line:1786,column:7}},676:{start:{line:1763,column:8},end:{line:1763,column:42}},677:{start:{line:1764,column:8},end:{line:1764,column:57}},678:{start:{line:1766,column:8},end:{line:1770,column:10}},679:{start:{line:1771,column:8},end:{line:1771,column:23}},680:{start:{line:1772,column:13},end:{line:1786,column:7}},681:{start:{line:1773,column:8},end:{line:1773,column:35}},682:{start:{line:1774,column:8},end:{line:1776,column:9}},683:{start:{line:1775,column:10},end:{line:1775,column:63}},684:{start:{line:1777,column:8},end:{line:1777,column:62}},685:{start:{line:1779,column:8},end:{line:1779,column:30}},686:{start:{line:1780,column:13},end:{line:1786,column:7}},687:{start:{line:1781,column:8},end:{line:1781,column:35}},688:{start:{line:1782,column:8},end:{line:1784,column:9}},689:{start:{line:1783,column:10},end:{line:1783,column:36}},690:{start:{line:1785,column:8},end:{line:1785,column:62}},691:{start:{line:1789,column:25},end:{line:1789,column:57}},692:{start:{line:1790,column:6},end:{line:1792,column:70}},693:{start:{line:1791,column:25},end:{line:1791,column:60}},694:{start:{line:1792,column:29},end:{line:1792,column:69}},695:{start:{line:1795,column:6},end:{line:1806,column:10}},696:{start:{line:1804,column:10},end:{line:1804,column:30}},697:{start:{line:1805,column:10},end:{line:1805,column:32}},698:{start:{line:1809,column:6},end:{line:1809,column:66}},699:{start:{line:1812,column:6},end:{line:1814,column:7}},700:{start:{line:1813,column:8},end:{line:1813,column:63}},701:{start:{line:1817,column:6},end:{line:1817,column:38}},702:{start:{line:1820,column:18},end:{line:1820,column:19}},703:{start:{line:1821,column:6},end:{line:1827,column:7}},704:{start:{line:1822,column:8},end:{line:1825,column:9}},705:{start:{line:1823,column:10},end:{line:1823,column:39}},706:{start:{line:1824,column:10},end:{line:1824,column:15}},707:{start:{line:1826,column:8},end:{line:1826,column:18}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:67,column:2},end:{line:67,column:3}},loc:{start:{line:67,column:9},end:{line:182,column:3}},line:67},1:{name:"(anonymous_1)",decl:{start:{line:129,column:18},end:{line:129,column:19}},loc:{start:{line:129,column:24},end:{line:129,column:26}},line:129},2:{name:"(anonymous_2)",decl:{start:{line:137,column:18},end:{line:137,column:19}},loc:{start:{line:137,column:24},end:{line:137,column:26}},line:137},3:{name:"(anonymous_3)",decl:{start:{line:147,column:18},end:{line:147,column:19}},loc:{start:{line:147,column:24},end:{line:147,column:26}},line:147},4:{name:"(anonymous_4)",decl:{start:{line:157,column:18},end:{line:157,column:19}},loc:{start:{line:157,column:24},end:{line:157,column:26}},line:157},5:{name:"(anonymous_5)",decl:{start:{line:184,column:14},end:{line:184,column:15}},loc:{start:{line:184,column:26},end:{line:188,column:5}},line:184},6:{name:"(anonymous_6)",decl:{start:{line:189,column:21},end:{line:189,column:22}},loc:{start:{line:189,column:33},end:{line:193,column:5}},line:189},7:{name:"(anonymous_7)",decl:{start:{line:194,column:26},end:{line:194,column:27}},loc:{start:{line:194,column:38},end:{line:196,column:5}},line:194},8:{name:"(anonymous_8)",decl:{start:{line:197,column:14},end:{line:197,column:15}},loc:{start:{line:197,column:26},end:{line:199,column:5}},line:197},9:{name:"(anonymous_9)",decl:{start:{line:200,column:18},end:{line:200,column:19}},loc:{start:{line:200,column:30},end:{line:205,column:5}},line:200},10:{name:"(anonymous_10)",decl:{start:{line:208,column:21},end:{line:208,column:22}},loc:{start:{line:208,column:33},end:{line:210,column:5}},line:208},11:{name:"(anonymous_11)",decl:{start:{line:211,column:11},end:{line:211,column:12}},loc:{start:{line:211,column:23},end:{line:415,column:5}},line:211},12:{name:"(anonymous_12)",decl:{start:{line:220,column:23},end:{line:220,column:24}},loc:{start:{line:220,column:29},end:{line:222,column:15}},line:220},13:{name:"(anonymous_13)",decl:{start:{line:228,column:23},end:{line:228,column:24}},loc:{start:{line:228,column:29},end:{line:230,column:15}},line:228},14:{name:"(anonymous_14)",decl:{start:{line:244,column:23},end:{line:244,column:24}},loc:{start:{line:244,column:29},end:{line:246,column:15}},line:244},15:{name:"(anonymous_15)",decl:{start:{line:255,column:23},end:{line:255,column:24}},loc:{start:{line:255,column:29},end:{line:257,column:15}},line:255},16:{name:"(anonymous_16)",decl:{start:{line:263,column:23},end:{line:263,column:24}},loc:{start:{line:263,column:29},end:{line:265,column:15}},line:263},17:{name:"(anonymous_17)",decl:{start:{line:274,column:23},end:{line:274,column:24}},loc:{start:{line:274,column:29},end:{line:276,column:15}},line:274},18:{name:"(anonymous_18)",decl:{start:{line:285,column:23},end:{line:285,column:24}},loc:{start:{line:285,column:29},end:{line:287,column:15}},line:285},19:{name:"(anonymous_19)",decl:{start:{line:297,column:23},end:{line:297,column:24}},loc:{start:{line:297,column:29},end:{line:299,column:15}},line:297},20:{name:"(anonymous_20)",decl:{start:{line:305,column:23},end:{line:305,column:24}},loc:{start:{line:305,column:29},end:{line:307,column:15}},line:305},21:{name:"(anonymous_21)",decl:{start:{line:317,column:23},end:{line:317,column:24}},loc:{start:{line:317,column:29},end:{line:319,column:15}},line:317},22:{name:"(anonymous_22)",decl:{start:{line:328,column:23},end:{line:328,column:24}},loc:{start:{line:328,column:29},end:{line:330,column:15}},line:328},23:{name:"(anonymous_23)",decl:{start:{line:336,column:23},end:{line:336,column:24}},loc:{start:{line:336,column:29},end:{line:339,column:15}},line:336},24:{name:"(anonymous_24)",decl:{start:{line:337,column:46},end:{line:337,column:47}},loc:{start:{line:337,column:52},end:{line:337,column:54}},line:337},25:{name:"(anonymous_25)",decl:{start:{line:344,column:23},end:{line:344,column:24}},loc:{start:{line:344,column:29},end:{line:346,column:15}},line:344},26:{name:"(anonymous_26)",decl:{start:{line:355,column:23},end:{line:355,column:24}},loc:{start:{line:355,column:29},end:{line:357,column:15}},line:355},27:{name:"(anonymous_27)",decl:{start:{line:363,column:23},end:{line:363,column:24}},loc:{start:{line:363,column:29},end:{line:365,column:15}},line:363},28:{name:"(anonymous_28)",decl:{start:{line:371,column:23},end:{line:371,column:24}},loc:{start:{line:371,column:29},end:{line:373,column:15}},line:371},29:{name:"(anonymous_29)",decl:{start:{line:379,column:23},end:{line:379,column:24}},loc:{start:{line:379,column:29},end:{line:381,column:15}},line:379},30:{name:"(anonymous_30)",decl:{start:{line:389,column:23},end:{line:389,column:24}},loc:{start:{line:389,column:29},end:{line:391,column:15}},line:389},31:{name:"(anonymous_31)",decl:{start:{line:397,column:23},end:{line:397,column:24}},loc:{start:{line:397,column:29},end:{line:399,column:15}},line:397},32:{name:"(anonymous_32)",decl:{start:{line:408,column:23},end:{line:408,column:24}},loc:{start:{line:408,column:29},end:{line:410,column:15}},line:408},33:{name:"(anonymous_33)",decl:{start:{line:416,column:31},end:{line:416,column:32}},loc:{start:{line:416,column:43},end:{line:431,column:5}},line:416},34:{name:"(anonymous_34)",decl:{start:{line:434,column:14},end:{line:434,column:15}},loc:{start:{line:434,column:29},end:{line:440,column:5}},line:434},35:{name:"(anonymous_35)",decl:{start:{line:441,column:18},end:{line:441,column:19}},loc:{start:{line:441,column:38},end:{line:448,column:5}},line:441},36:{name:"(anonymous_36)",decl:{start:{line:450,column:11},end:{line:450,column:12}},loc:{start:{line:450,column:23},end:{line:462,column:3}},line:450},37:{name:"(anonymous_37)",decl:{start:{line:459,column:61},end:{line:459,column:62}},loc:{start:{line:459,column:75},end:{line:461,column:5}},line:459},38:{name:"(anonymous_38)",decl:{start:{line:463,column:11},end:{line:463,column:12}},loc:{start:{line:463,column:29},end:{line:527,column:3}},line:463},39:{name:"(anonymous_39)",decl:{start:{line:509,column:37},end:{line:509,column:38}},loc:{start:{line:509,column:58},end:{line:512,column:5}},line:509},40:{name:"(anonymous_40)",decl:{start:{line:517,column:40},end:{line:517,column:41}},loc:{start:{line:517,column:52},end:{line:526,column:5}},line:517},41:{name:"(anonymous_41)",decl:{start:{line:528,column:2},end:{line:528,column:3}},loc:{start:{line:528,column:18},end:{line:531,column:3}},line:528},42:{name:"(anonymous_42)",decl:{start:{line:532,column:2},end:{line:532,column:3}},loc:{start:{line:532,column:14},end:{line:541,column:3}},line:532},43:{name:"(anonymous_43)",decl:{start:{line:542,column:21},end:{line:542,column:22}},loc:{start:{line:542,column:47},end:{line:548,column:3}},line:542},44:{name:"(anonymous_44)",decl:{start:{line:550,column:4},end:{line:550,column:5}},loc:{start:{line:550,column:19},end:{line:566,column:5}},line:550},45:{name:"(anonymous_45)",decl:{start:{line:551,column:43},end:{line:551,column:44}},loc:{start:{line:551,column:57},end:{line:565,column:7}},line:551},46:{name:"(anonymous_46)",decl:{start:{line:553,column:54},end:{line:553,column:55}},loc:{start:{line:553,column:65},end:{line:563,column:9}},line:553},47:{name:"(anonymous_47)",decl:{start:{line:567,column:4},end:{line:567,column:5}},loc:{start:{line:567,column:36},end:{line:610,column:5}},line:567},48:{name:"(anonymous_48)",decl:{start:{line:574,column:16},end:{line:574,column:17}},loc:{start:{line:574,column:23},end:{line:574,column:42}},line:574},49:{name:"(anonymous_49)",decl:{start:{line:575,column:16},end:{line:575,column:17}},loc:{start:{line:575,column:23},end:{line:575,column:35}},line:575},50:{name:"(anonymous_50)",decl:{start:{line:578,column:33},end:{line:578,column:34}},loc:{start:{line:578,column:45},end:{line:587,column:7}},line:578},51:{name:"(anonymous_51)",decl:{start:{line:597,column:17},end:{line:597,column:18}},loc:{start:{line:597,column:29},end:{line:603,column:7}},line:597},52:{name:"(anonymous_52)",decl:{start:{line:606,column:8},end:{line:606,column:9}},loc:{start:{line:606,column:20},end:{line:608,column:7}},line:606},53:{name:"(anonymous_53)",decl:{start:{line:611,column:4},end:{line:611,column:5}},loc:{start:{line:611,column:38},end:{line:654,column:5}},line:611},54:{name:"(anonymous_54)",decl:{start:{line:618,column:16},end:{line:618,column:17}},loc:{start:{line:618,column:23},end:{line:618,column:42}},line:618},55:{name:"(anonymous_55)",decl:{start:{line:619,column:16},end:{line:619,column:17}},loc:{start:{line:619,column:23},end:{line:619,column:35}},line:619},56:{name:"(anonymous_56)",decl:{start:{line:622,column:33},end:{line:622,column:34}},loc:{start:{line:622,column:45},end:{line:631,column:7}},line:622},57:{name:"(anonymous_57)",decl:{start:{line:641,column:17},end:{line:641,column:18}},loc:{start:{line:641,column:29},end:{line:647,column:7}},line:641},58:{name:"(anonymous_58)",decl:{start:{line:650,column:8},end:{line:650,column:9}},loc:{start:{line:650,column:20},end:{line:652,column:7}},line:650},59:{name:"(anonymous_59)",decl:{start:{line:656,column:4},end:{line:656,column:5}},loc:{start:{line:656,column:30},end:{line:674,column:5}},line:656},60:{name:"(anonymous_60)",decl:{start:{line:675,column:26},end:{line:675,column:27}},loc:{start:{line:675,column:40},end:{line:703,column:5}},line:675},61:{name:"(anonymous_61)",decl:{start:{line:676,column:56},end:{line:676,column:57}},loc:{start:{line:676,column:70},end:{line:702,column:7}},line:676},62:{name:"(anonymous_62)",decl:{start:{line:678,column:10},end:{line:678,column:11}},loc:{start:{line:678,column:17},end:{line:678,column:38}},line:678},63:{name:"(anonymous_63)",decl:{start:{line:704,column:19},end:{line:704,column:20}},loc:{start:{line:704,column:31},end:{line:718,column:5}},line:704},64:{name:"(anonymous_64)",decl:{start:{line:705,column:59},end:{line:705,column:60}},loc:{start:{line:705,column:73},end:{line:717,column:7}},line:705},65:{name:"(anonymous_65)",decl:{start:{line:719,column:30},end:{line:719,column:31}},loc:{start:{line:719,column:48},end:{line:723,column:5}},line:719},66:{name:"(anonymous_66)",decl:{start:{line:724,column:19},end:{line:724,column:20}},loc:{start:{line:724,column:31},end:{line:733,column:5}},line:724},67:{name:"(anonymous_67)",decl:{start:{line:730,column:16},end:{line:730,column:17}},loc:{start:{line:730,column:25},end:{line:730,column:37}},line:730},68:{name:"(anonymous_68)",decl:{start:{line:731,column:13},end:{line:731,column:14}},loc:{start:{line:731,column:22},end:{line:731,column:33}},line:731},69:{name:"(anonymous_69)",decl:{start:{line:734,column:22},end:{line:734,column:23}},loc:{start:{line:734,column:34},end:{line:741,column:5}},line:734},70:{name:"(anonymous_70)",decl:{start:{line:738,column:16},end:{line:738,column:17}},loc:{start:{line:738,column:25},end:{line:738,column:71}},line:738},71:{name:"(anonymous_71)",decl:{start:{line:739,column:13},end:{line:739,column:14}},loc:{start:{line:739,column:22},end:{line:739,column:43}},line:739},72:{name:"(anonymous_72)",decl:{start:{line:742,column:17},end:{line:742,column:18}},loc:{start:{line:742,column:51},end:{line:765,column:5}},line:742},73:{name:"(anonymous_73)",decl:{start:{line:755,column:14},end:{line:755,column:15}},loc:{start:{line:755,column:28},end:{line:761,column:9}},line:755},74:{name:"(anonymous_74)",decl:{start:{line:762,column:14},end:{line:762,column:15}},loc:{start:{line:762,column:28},end:{line:764,column:9}},line:762},75:{name:"(anonymous_75)",decl:{start:{line:766,column:22},end:{line:766,column:23}},loc:{start:{line:766,column:34},end:{line:768,column:5}},line:766},76:{name:"(anonymous_76)",decl:{start:{line:769,column:22},end:{line:769,column:23}},loc:{start:{line:769,column:40},end:{line:779,column:5}},line:769},77:{name:"(anonymous_77)",decl:{start:{line:780,column:23},end:{line:780,column:24}},loc:{start:{line:780,column:50},end:{line:809,column:5}},line:780},78:{name:"(anonymous_78)",decl:{start:{line:785,column:8},end:{line:785,column:9}},loc:{start:{line:786,column:10},end:{line:787,column:32}},line:786},79:{name:"(anonymous_79)",decl:{start:{line:799,column:12},end:{line:799,column:13}},loc:{start:{line:799,column:21},end:{line:799,column:43}},line:799},80:{name:"(anonymous_80)",decl:{start:{line:803,column:27},end:{line:803,column:28}},loc:{start:{line:803,column:36},end:{line:808,column:7}},line:803},81:{name:"(anonymous_81)",decl:{start:{line:810,column:23},end:{line:810,column:24}},loc:{start:{line:810,column:64},end:{line:815,column:5}},line:810},82:{name:"(anonymous_82)",decl:{start:{line:813,column:13},end:{line:813,column:14}},loc:{start:{line:813,column:34},end:{line:813,column:51}},line:813},83:{name:"(anonymous_83)",decl:{start:{line:816,column:24},end:{line:816,column:25}},loc:{start:{line:816,column:44},end:{line:821,column:5}},line:816},84:{name:"(anonymous_84)",decl:{start:{line:818,column:42},end:{line:818,column:43}},loc:{start:{line:818,column:58},end:{line:820,column:7}},line:818},85:{name:"(anonymous_85)",decl:{start:{line:822,column:26},end:{line:822,column:27}},loc:{start:{line:822,column:38},end:{line:834,column:5}},line:822},86:{name:"(anonymous_86)",decl:{start:{line:828,column:14},end:{line:828,column:15}},loc:{start:{line:828,column:26},end:{line:830,column:9}},line:828},87:{name:"(anonymous_87)",decl:{start:{line:831,column:14},end:{line:831,column:15}},loc:{start:{line:831,column:28},end:{line:833,column:9}},line:831},88:{name:"(anonymous_88)",decl:{start:{line:835,column:4},end:{line:835,column:5}},loc:{start:{line:835,column:29},end:{line:841,column:5}},line:835},89:{name:"(anonymous_89)",decl:{start:{line:842,column:4},end:{line:842,column:5}},loc:{start:{line:842,column:25},end:{line:859,column:5}},line:842},90:{name:"(anonymous_90)",decl:{start:{line:860,column:4},end:{line:860,column:5}},loc:{start:{line:860,column:20},end:{line:870,column:5}},line:860},91:{name:"(anonymous_91)",decl:{start:{line:871,column:20},end:{line:871,column:21}},loc:{start:{line:871,column:32},end:{line:891,column:5}},line:871},92:{name:"(anonymous_92)",decl:{start:{line:874,column:14},end:{line:874,column:15}},loc:{start:{line:874,column:41},end:{line:890,column:9}},line:874},93:{name:"(anonymous_93)",decl:{start:{line:878,column:19},end:{line:878,column:20}},loc:{start:{line:878,column:32},end:{line:878,column:73}},line:878},94:{name:"(anonymous_94)",decl:{start:{line:892,column:4},end:{line:892,column:5}},loc:{start:{line:892,column:22},end:{line:901,column:5}},line:892},95:{name:"(anonymous_95)",decl:{start:{line:902,column:4},end:{line:902,column:5}},loc:{start:{line:902,column:20},end:{line:918,column:5}},line:902},96:{name:"(anonymous_96)",decl:{start:{line:909,column:22},end:{line:909,column:23}},loc:{start:{line:909,column:32},end:{line:909,column:51}},line:909},97:{name:"(anonymous_97)",decl:{start:{line:915,column:14},end:{line:915,column:15}},loc:{start:{line:915,column:32},end:{line:917,column:9}},line:915},98:{name:"(anonymous_98)",decl:{start:{line:919,column:4},end:{line:919,column:5}},loc:{start:{line:919,column:21},end:{line:937,column:5}},line:919},99:{name:"(anonymous_99)",decl:{start:{line:938,column:24},end:{line:938,column:25}},loc:{start:{line:938,column:41},end:{line:940,column:5}},line:938},100:{name:"(anonymous_100)",decl:{start:{line:941,column:18},end:{line:941,column:19}},loc:{start:{line:941,column:30},end:{line:943,column:5}},line:941},101:{name:"(anonymous_101)",decl:{start:{line:944,column:4},end:{line:944,column:5}},loc:{start:{line:944,column:43},end:{line:972,column:5}},line:944},102:{name:"(anonymous_102)",decl:{start:{line:966,column:14},end:{line:966,column:15}},loc:{start:{line:966,column:28},end:{line:968,column:9}},line:966},103:{name:"(anonymous_103)",decl:{start:{line:969,column:15},end:{line:969,column:16}},loc:{start:{line:969,column:26},end:{line:971,column:9}},line:969},104:{name:"(anonymous_104)",decl:{start:{line:973,column:4},end:{line:973,column:5}},loc:{start:{line:973,column:9},end:{line:979,column:5}},line:973},105:{name:"(anonymous_105)",decl:{start:{line:980,column:4},end:{line:980,column:5}},loc:{start:{line:980,column:19},end:{line:987,column:5}},line:980},106:{name:"(anonymous_106)",decl:{start:{line:988,column:4},end:{line:988,column:5}},loc:{start:{line:988,column:11},end:{line:998,column:5}},line:988},107:{name:"(anonymous_107)",decl:{start:{line:999,column:4},end:{line:999,column:5}},loc:{start:{line:999,column:11},end:{line:1001,column:5}},line:999},108:{name:"(anonymous_108)",decl:{start:{line:1002,column:4},end:{line:1002,column:5}},loc:{start:{line:1002,column:19},end:{line:1197,column:5}},line:1002},109:{name:"(anonymous_109)",decl:{start:{line:1024,column:22},end:{line:1024,column:23}},loc:{start:{line:1024,column:36},end:{line:1034,column:17}},line:1024},110:{name:"(anonymous_110)",decl:{start:{line:1035,column:23},end:{line:1035,column:24}},loc:{start:{line:1035,column:32},end:{line:1038,column:17}},line:1035},111:{name:"(anonymous_111)",decl:{start:{line:1082,column:16},end:{line:1082,column:17}},loc:{start:{line:1082,column:25},end:{line:1082,column:69}},line:1082},112:{name:"(anonymous_112)",decl:{start:{line:1198,column:4},end:{line:1198,column:5}},loc:{start:{line:1198,column:32},end:{line:1208,column:5}},line:1198},113:{name:"(anonymous_113)",decl:{start:{line:1209,column:4},end:{line:1209,column:5}},loc:{start:{line:1209,column:23},end:{line:1360,column:5}},line:1209},114:{name:"(anonymous_114)",decl:{start:{line:1243,column:30},end:{line:1243,column:31}},loc:{start:{line:1243,column:41},end:{line:1262,column:11}},line:1243},115:{name:"(anonymous_115)",decl:{start:{line:1299,column:37},end:{line:1299,column:38}},loc:{start:{line:1299,column:44},end:{line:1301,column:11}},line:1299},116:{name:"(anonymous_116)",decl:{start:{line:1315,column:37},end:{line:1315,column:38}},loc:{start:{line:1315,column:44},end:{line:1317,column:11}},line:1315},117:{name:"(anonymous_117)",decl:{start:{line:1330,column:40},end:{line:1330,column:41}},loc:{start:{line:1330,column:51},end:{line:1339,column:11}},line:1330},118:{name:"(anonymous_118)",decl:{start:{line:1361,column:4},end:{line:1361,column:5}},loc:{start:{line:1361,column:36},end:{line:1391,column:5}},line:1361},119:{name:"(anonymous_119)",decl:{start:{line:1368,column:28},end:{line:1368,column:29}},loc:{start:{line:1368,column:44},end:{line:1382,column:9}},line:1368},120:{name:"(anonymous_120)",decl:{start:{line:1392,column:4},end:{line:1392,column:5}},loc:{start:{line:1392,column:20},end:{line:1396,column:5}},line:1392},121:{name:"(anonymous_121)",decl:{start:{line:1398,column:4},end:{line:1398,column:5}},loc:{start:{line:1398,column:14},end:{line:1409,column:5}},line:1398},122:{name:"(anonymous_122)",decl:{start:{line:1410,column:4},end:{line:1410,column:5}},loc:{start:{line:1410,column:29},end:{line:1451,column:5}},line:1410},123:{name:"(anonymous_123)",decl:{start:{line:1452,column:4},end:{line:1452,column:5}},loc:{start:{line:1452,column:31},end:{line:1492,column:5}},line:1452},124:{name:"(anonymous_124)",decl:{start:{line:1493,column:4},end:{line:1493,column:5}},loc:{start:{line:1493,column:15},end:{line:1495,column:5}},line:1493},125:{name:"(anonymous_125)",decl:{start:{line:1496,column:4},end:{line:1496,column:5}},loc:{start:{line:1496,column:23},end:{line:1523,column:5}},line:1496},126:{name:"(anonymous_126)",decl:{start:{line:1501,column:14},end:{line:1501,column:15}},loc:{start:{line:1501,column:28},end:{line:1518,column:9}},line:1501},127:{name:"(anonymous_127)",decl:{start:{line:1519,column:15},end:{line:1519,column:16}},loc:{start:{line:1519,column:26},end:{line:1522,column:9}},line:1519},128:{name:"(anonymous_128)",decl:{start:{line:1525,column:4},end:{line:1525,column:5}},loc:{start:{line:1525,column:58},end:{line:1563,column:5}},line:1525},129:{name:"(anonymous_129)",decl:{start:{line:1564,column:4},end:{line:1564,column:5}},loc:{start:{line:1564,column:21},end:{line:1588,column:5}},line:1564},130:{name:"(anonymous_130)",decl:{start:{line:1591,column:4},end:{line:1591,column:5}},loc:{start:{line:1591,column:34},end:{line:1671,column:5}},line:1591},131:{name:"(anonymous_131)",decl:{start:{line:1631,column:14},end:{line:1631,column:15}},loc:{start:{line:1631,column:28},end:{line:1657,column:9}},line:1631},132:{name:"(anonymous_132)",decl:{start:{line:1647,column:23},end:{line:1647,column:24}},loc:{start:{line:1647,column:29},end:{line:1649,column:13}},line:1647},133:{name:"(anonymous_133)",decl:{start:{line:1658,column:15},end:{line:1658,column:16}},loc:{start:{line:1658,column:33},end:{line:1670,column:9}},line:1658},134:{name:"(anonymous_134)",decl:{start:{line:1672,column:4},end:{line:1672,column:5}},loc:{start:{line:1672,column:13},end:{line:1674,column:5}},line:1672},135:{name:"(anonymous_135)",decl:{start:{line:1675,column:4},end:{line:1675,column:5}},loc:{start:{line:1675,column:35},end:{line:1683,column:5}},line:1675},136:{name:"(anonymous_136)",decl:{start:{line:1684,column:4},end:{line:1684,column:5}},loc:{start:{line:1684,column:13},end:{line:1711,column:5}},line:1684},137:{name:"(anonymous_137)",decl:{start:{line:1694,column:14},end:{line:1694,column:15}},loc:{start:{line:1694,column:26},end:{line:1698,column:9}},line:1694},138:{name:"(anonymous_138)",decl:{start:{line:1699,column:14},end:{line:1699,column:15}},loc:{start:{line:1699,column:28},end:{line:1701,column:9}},line:1699},139:{name:"(anonymous_139)",decl:{start:{line:1702,column:15},end:{line:1702,column:16}},loc:{start:{line:1702,column:26},end:{line:1710,column:9}},line:1702},140:{name:"(anonymous_140)",decl:{start:{line:1712,column:4},end:{line:1712,column:5}},loc:{start:{line:1712,column:15},end:{line:1721,column:5}},line:1712},141:{name:"(anonymous_141)",decl:{start:{line:1723,column:4},end:{line:1723,column:5}},loc:{start:{line:1723,column:18},end:{line:1735,column:5}},line:1723},142:{name:"(anonymous_142)",decl:{start:{line:1730,column:14},end:{line:1730,column:15}},loc:{start:{line:1730,column:28},end:{line:1734,column:7}},line:1730},143:{name:"(anonymous_143)",decl:{start:{line:1736,column:4},end:{line:1736,column:5}},loc:{start:{line:1736,column:23},end:{line:1748,column:5}},line:1736},144:{name:"(anonymous_144)",decl:{start:{line:1743,column:14},end:{line:1743,column:15}},loc:{start:{line:1743,column:28},end:{line:1747,column:7}},line:1743},145:{name:"(anonymous_145)",decl:{start:{line:1749,column:4},end:{line:1749,column:5}},loc:{start:{line:1749,column:20},end:{line:1751,column:5}},line:1749},146:{name:"(anonymous_146)",decl:{start:{line:1752,column:4},end:{line:1752,column:5}},loc:{start:{line:1752,column:18},end:{line:1754,column:5}},line:1752},147:{name:"(anonymous_147)",decl:{start:{line:1755,column:4},end:{line:1755,column:5}},loc:{start:{line:1755,column:23},end:{line:1757,column:5}},line:1755},148:{name:"(anonymous_148)",decl:{start:{line:1758,column:4},end:{line:1758,column:5}},loc:{start:{line:1758,column:24},end:{line:1787,column:5}},line:1758},149:{name:"(anonymous_149)",decl:{start:{line:1788,column:22},end:{line:1788,column:23}},loc:{start:{line:1788,column:34},end:{line:1793,column:5}},line:1788},150:{name:"(anonymous_150)",decl:{start:{line:1791,column:16},end:{line:1791,column:17}},loc:{start:{line:1791,column:25},end:{line:1791,column:60}},line:1791},151:{name:"(anonymous_151)",decl:{start:{line:1792,column:17},end:{line:1792,column:18}},loc:{start:{line:1792,column:29},end:{line:1792,column:69}},line:1792},152:{name:"(anonymous_152)",decl:{start:{line:1794,column:24},end:{line:1794,column:25}},loc:{start:{line:1794,column:36},end:{line:1807,column:5}},line:1794},153:{name:"(anonymous_153)",decl:{start:{line:1803,column:14},end:{line:1803,column:15}},loc:{start:{line:1803,column:20},end:{line:1806,column:9}},line:1803},154:{name:"(anonymous_154)",decl:{start:{line:1808,column:14},end:{line:1808,column:15}},loc:{start:{line:1808,column:26},end:{line:1810,column:5}},line:1808},155:{name:"(anonymous_155)",decl:{start:{line:1811,column:16},end:{line:1811,column:17}},loc:{start:{line:1811,column:28},end:{line:1815,column:5}},line:1811},156:{name:"(anonymous_156)",decl:{start:{line:1816,column:4},end:{line:1816,column:5}},loc:{start:{line:1816,column:17},end:{line:1818,column:5}},line:1816},157:{name:"(anonymous_157)",decl:{start:{line:1819,column:4},end:{line:1819,column:5}},loc:{start:{line:1819,column:20},end:{line:1828,column:5}},line:1819}},branchMap:{0:{loc:{start:{line:190,column:13},end:{line:192,column:32}},type:"cond-expr",locations:[{start:{line:191,column:10},end:{line:191,column:24}},{start:{line:192,column:10},end:{line:192,column:32}}],line:190},1:{loc:{start:{line:195,column:13},end:{line:195,column:67}},type:"cond-expr",locations:[{start:{line:195,column:53},end:{line:195,column:62}},{start:{line:195,column:65},end:{line:195,column:67}}],line:195},2:{loc:{start:{line:201,column:6},end:{line:201,column:59}},type:"if",locations:[{start:{line:201,column:6},end:{line:201,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:201},3:{loc:{start:{line:203,column:6},end:{line:203,column:61}},type:"if",locations:[{start:{line:203,column:6},end:{line:203,column:61}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},4:{loc:{start:{line:209,column:13},end:{line:209,column:64}},type:"cond-expr",locations:[{start:{line:209,column:46},end:{line:209,column:48}},{start:{line:209,column:51},end:{line:209,column:64}}],line:209},5:{loc:{start:{line:436,column:6},end:{line:438,column:7}},type:"if",locations:[{start:{line:436,column:6},end:{line:438,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:436},6:{loc:{start:{line:443,column:6},end:{line:447,column:7}},type:"if",locations:[{start:{line:443,column:6},end:{line:447,column:7}},{start:{line:445,column:13},end:{line:447,column:7}}],line:443},7:{loc:{start:{line:519,column:6},end:{line:525,column:7}},type:"if",locations:[{start:{line:519,column:6},end:{line:525,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:519},8:{loc:{start:{line:520,column:8},end:{line:522,column:46}},type:"binary-expr",locations:[{start:{line:520,column:8},end:{line:520,column:22}},{start:{line:521,column:8},end:{line:521,column:36}},{start:{line:522,column:8},end:{line:522,column:46}}],line:520},9:{loc:{start:{line:534,column:4},end:{line:536,column:5}},type:"if",locations:[{start:{line:534,column:4},end:{line:536,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:534},10:{loc:{start:{line:537,column:4},end:{line:539,column:5}},type:"if",locations:[{start:{line:537,column:4},end:{line:539,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:537},11:{loc:{start:{line:543,column:4},end:{line:547,column:5}},type:"if",locations:[{start:{line:543,column:4},end:{line:547,column:5}},{start:{line:545,column:11},end:{line:547,column:5}}],line:543},12:{loc:{start:{line:680,column:8},end:{line:701,column:9}},type:"if",locations:[{start:{line:680,column:8},end:{line:701,column:9}},{start:{line:685,column:15},end:{line:701,column:9}}],line:680},13:{loc:{start:{line:685,column:15},end:{line:701,column:9}},type:"if",locations:[{start:{line:685,column:15},end:{line:701,column:9}},{start:{line:691,column:15},end:{line:701,column:9}}],line:685},14:{loc:{start:{line:692,column:10},end:{line:696,column:11}},type:"if",locations:[{start:{line:692,column:10},end:{line:696,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:692},15:{loc:{start:{line:697,column:10},end:{line:700,column:11}},type:"if",locations:[{start:{line:697,column:10},end:{line:700,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:697},16:{loc:{start:{line:706,column:8},end:{line:710,column:9}},type:"if",locations:[{start:{line:706,column:8},end:{line:710,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:706},17:{loc:{start:{line:711,column:8},end:{line:714,column:9}},type:"if",locations:[{start:{line:711,column:8},end:{line:714,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:711},18:{loc:{start:{line:738,column:25},end:{line:738,column:71}},type:"binary-expr",locations:[{start:{line:738,column:25},end:{line:738,column:45}},{start:{line:738,column:49},end:{line:738,column:71}}],line:738},19:{loc:{start:{line:742,column:33},end:{line:742,column:49}},type:"default-arg",locations:[{start:{line:742,column:47},end:{line:742,column:49}}],line:742},20:{loc:{start:{line:771,column:6},end:{line:778,column:7}},type:"if",locations:[{start:{line:771,column:6},end:{line:778,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:771},21:{loc:{start:{line:773,column:8},end:{line:777,column:9}},type:"if",locations:[{start:{line:773,column:8},end:{line:777,column:9}},{start:{line:775,column:15},end:{line:777,column:9}}],line:773},22:{loc:{start:{line:781,column:6},end:{line:783,column:7}},type:"if",locations:[{start:{line:781,column:6},end:{line:783,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:781},23:{loc:{start:{line:786,column:10},end:{line:787,column:32}},type:"binary-expr",locations:[{start:{line:786,column:11},end:{line:786,column:36}},{start:{line:786,column:40},end:{line:786,column:64}},{start:{line:787,column:10},end:{line:787,column:32}}],line:786},24:{loc:{start:{line:791,column:6},end:{line:802,column:7}},type:"switch",locations:[{start:{line:792,column:8},end:{line:795,column:15}},{start:{line:796,column:8},end:{line:801,column:15}}],line:791},25:{loc:{start:{line:805,column:8},end:{line:807,column:9}},type:"if",locations:[{start:{line:805,column:8},end:{line:807,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:805},26:{loc:{start:{line:810,column:33},end:{line:810,column:62}},type:"default-arg",locations:[{start:{line:810,column:43},end:{line:810,column:62}}],line:810},27:{loc:{start:{line:813,column:34},end:{line:813,column:51}},type:"binary-expr",locations:[{start:{line:813,column:34},end:{line:813,column:44}},{start:{line:813,column:48},end:{line:813,column:51}}],line:813},28:{loc:{start:{line:836,column:6},end:{line:840,column:7}},type:"if",locations:[{start:{line:836,column:6},end:{line:840,column:7}},{start:{line:838,column:13},end:{line:840,column:7}}],line:836},29:{loc:{start:{line:845,column:6},end:{line:858,column:7}},type:"if",locations:[{start:{line:845,column:6},end:{line:858,column:7}},{start:{line:851,column:13},end:{line:858,column:7}}],line:845},30:{loc:{start:{line:846,column:8},end:{line:847,column:43}},type:"binary-expr",locations:[{start:{line:846,column:9},end:{line:846,column:22}},{start:{line:846,column:26},end:{line:846,column:39}},{start:{line:847,column:8},end:{line:847,column:43}}],line:846},31:{loc:{start:{line:851,column:13},end:{line:858,column:7}},type:"if",locations:[{start:{line:851,column:13},end:{line:858,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:851},32:{loc:{start:{line:852,column:8},end:{line:854,column:43}},type:"binary-expr",locations:[{start:{line:852,column:9},end:{line:852,column:22}},{start:{line:852,column:26},end:{line:852,column:39}},{start:{line:853,column:8},end:{line:853,column:22}},{start:{line:854,column:8},end:{line:854,column:43}}],line:852},33:{loc:{start:{line:862,column:6},end:{line:864,column:7}},type:"if",locations:[{start:{line:862,column:6},end:{line:864,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:862},34:{loc:{start:{line:862,column:10},end:{line:862,column:61}},type:"binary-expr",locations:[{start:{line:862,column:10},end:{line:862,column:23}},{start:{line:862,column:27},end:{line:862,column:61}}],line:862},35:{loc:{start:{line:865,column:6},end:{line:869,column:7}},type:"if",locations:[{start:{line:865,column:6},end:{line:869,column:7}},{start:{line:867,column:13},end:{line:869,column:7}}],line:865},36:{loc:{start:{line:876,column:10},end:{line:881,column:11}},type:"if",locations:[{start:{line:876,column:10},end:{line:881,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:876},37:{loc:{start:{line:882,column:10},end:{line:885,column:11}},type:"if",locations:[{start:{line:882,column:10},end:{line:885,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:882},38:{loc:{start:{line:886,column:10},end:{line:888,column:11}},type:"if",locations:[{start:{line:886,column:10},end:{line:888,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:886},39:{loc:{start:{line:944,column:23},end:{line:944,column:41}},type:"default-arg",locations:[{start:{line:944,column:37},end:{line:944,column:41}}],line:944},40:{loc:{start:{line:951,column:6},end:{line:954,column:7}},type:"if",locations:[{start:{line:951,column:6},end:{line:954,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:951},41:{loc:{start:{line:956,column:6},end:{line:958,column:7}},type:"if",locations:[{start:{line:956,column:6},end:{line:958,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:956},42:{loc:{start:{line:962,column:6},end:{line:964,column:7}},type:"if",locations:[{start:{line:962,column:6},end:{line:964,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:962},43:{loc:{start:{line:981,column:6},end:{line:986,column:7}},type:"if",locations:[{start:{line:981,column:6},end:{line:986,column:7}},{start:{line:983,column:13},end:{line:986,column:7}}],line:981},44:{loc:{start:{line:992,column:6},end:{line:997,column:7}},type:"if",locations:[{start:{line:992,column:6},end:{line:997,column:7}},{start:{line:995,column:13},end:{line:997,column:7}}],line:992},45:{loc:{start:{line:1007,column:6},end:{line:1196,column:7}},type:"switch",locations:[{start:{line:1008,column:8},end:{line:1014,column:15}},{start:{line:1015,column:8},end:{line:1102,column:15}},{start:{line:1103,column:8},end:{line:1114,column:15}},{start:{line:1115,column:8},end:{line:1117,column:15}},{start:{line:1118,column:8},end:{line:1121,column:15}},{start:{line:1122,column:8},end:{line:1128,column:15}},{start:{line:1129,column:8},end:{line:1131,column:15}},{start:{line:1132,column:8},end:{line:1166,column:15}},{start:{line:1167,column:8},end:{line:1178,column:15}},{start:{line:1179,column:8},end:{line:1181,column:15}},{start:{line:1182,column:8},end:{line:1191,column:15}},{start:{line:1192,column:8},end:{line:1195,column:15}}],line:1007},46:{loc:{start:{line:1011,column:10},end:{line:1013,column:11}},type:"if",locations:[{start:{line:1011,column:10},end:{line:1013,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1011},47:{loc:{start:{line:1016,column:10},end:{line:1045,column:11}},type:"if",locations:[{start:{line:1016,column:10},end:{line:1045,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1016},48:{loc:{start:{line:1016,column:14},end:{line:1016,column:69}},type:"binary-expr",locations:[{start:{line:1016,column:14},end:{line:1016,column:27}},{start:{line:1016,column:31},end:{line:1016,column:69}}],line:1016},49:{loc:{start:{line:1017,column:12},end:{line:1044,column:13}},type:"if",locations:[{start:{line:1017,column:12},end:{line:1044,column:13}},{start:{line:1039,column:19},end:{line:1044,column:13}}],line:1017},50:{loc:{start:{line:1048,column:10},end:{line:1101,column:11}},type:"switch",locations:[{start:{line:1049,column:12},end:{line:1063,column:19}},{start:{line:1064,column:12},end:{line:1065,column:31}},{start:{line:1067,column:12},end:{line:1068,column:45}},{start:{line:1070,column:12},end:{line:1070,column:30}},{start:{line:1071,column:12},end:{line:1071,column:27}},{start:{line:1072,column:12},end:{line:1098,column:19}},{start:{line:1099,column:12},end:{line:1100,column:19}}],line:1048},51:{loc:{start:{line:1073,column:14},end:{line:1079,column:15}},type:"if",locations:[{start:{line:1073,column:14},end:{line:1079,column:15}},{start:{line:1076,column:21},end:{line:1079,column:15}}],line:1073},52:{loc:{start:{line:1084,column:14},end:{line:1097,column:15}},type:"if",locations:[{start:{line:1084,column:14},end:{line:1097,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1084},53:{loc:{start:{line:1086,column:27},end:{line:1086,column:62}},type:"cond-expr",locations:[{start:{line:1086,column:46},end:{line:1086,column:58}},{start:{line:1086,column:61},end:{line:1086,column:62}}],line:1086},54:{loc:{start:{line:1094,column:16},end:{line:1096,column:17}},type:"if",locations:[{start:{line:1094,column:16},end:{line:1096,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1094},55:{loc:{start:{line:1107,column:12},end:{line:1109,column:13}},type:"if",locations:[{start:{line:1107,column:12},end:{line:1109,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1107},56:{loc:{start:{line:1124,column:10},end:{line:1127,column:11}},type:"if",locations:[{start:{line:1124,column:10},end:{line:1127,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1124},57:{loc:{start:{line:1136,column:12},end:{line:1143,column:13}},type:"if",locations:[{start:{line:1136,column:12},end:{line:1143,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1136},58:{loc:{start:{line:1137,column:14},end:{line:1138,column:47}},type:"binary-expr",locations:[{start:{line:1137,column:14},end:{line:1137,column:47}},{start:{line:1138,column:14},end:{line:1138,column:47}}],line:1137},59:{loc:{start:{line:1149,column:10},end:{line:1153,column:11}},type:"if",locations:[{start:{line:1149,column:10},end:{line:1153,column:11}},{start:{line:1151,column:17},end:{line:1153,column:11}}],line:1149},60:{loc:{start:{line:1154,column:10},end:{line:1158,column:11}},type:"if",locations:[{start:{line:1154,column:10},end:{line:1158,column:11}},{start:{line:1156,column:17},end:{line:1158,column:11}}],line:1154},61:{loc:{start:{line:1160,column:10},end:{line:1165,column:11}},type:"if",locations:[{start:{line:1160,column:10},end:{line:1165,column:11}},{start:{line:1163,column:17},end:{line:1165,column:11}}],line:1160},62:{loc:{start:{line:1169,column:12},end:{line:1175,column:13}},type:"if",locations:[{start:{line:1169,column:12},end:{line:1175,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1169},63:{loc:{start:{line:1170,column:14},end:{line:1171,column:47}},type:"binary-expr",locations:[{start:{line:1170,column:14},end:{line:1170,column:47}},{start:{line:1171,column:14},end:{line:1171,column:47}}],line:1170},64:{loc:{start:{line:1210,column:6},end:{line:1215,column:7}},type:"if",locations:[{start:{line:1210,column:6},end:{line:1215,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1210},65:{loc:{start:{line:1224,column:6},end:{line:1359,column:7}},type:"switch",locations:[{start:{line:1225,column:8},end:{line:1225,column:19}},{start:{line:1226,column:8},end:{line:1264,column:15}},{start:{line:1265,column:8},end:{line:1275,column:15}},{start:{line:1276,column:8},end:{line:1287,column:15}},{start:{line:1288,column:8},end:{line:1305,column:15}},{start:{line:1306,column:8},end:{line:1306,column:27}},{start:{line:1307,column:8},end:{line:1323,column:15}},{start:{line:1324,column:8},end:{line:1328,column:15}},{start:{line:1329,column:8},end:{line:1341,column:15}},{start:{line:1342,column:8},end:{line:1342,column:32}},{start:{line:1343,column:8},end:{line:1353,column:15}},{start:{line:1354,column:8},end:{line:1358,column:15}}],line:1224},66:{loc:{start:{line:1233,column:10},end:{line:1238,column:11}},type:"if",locations:[{start:{line:1233,column:10},end:{line:1238,column:11}},{start:{line:1235,column:17},end:{line:1238,column:11}}],line:1233},67:{loc:{start:{line:1233,column:14},end:{line:1233,column:77}},type:"binary-expr",locations:[{start:{line:1233,column:14},end:{line:1233,column:26}},{start:{line:1233,column:30},end:{line:1233,column:51}},{start:{line:1233,column:55},end:{line:1233,column:77}}],line:1233},68:{loc:{start:{line:1235,column:17},end:{line:1238,column:11}},type:"if",locations:[{start:{line:1235,column:17},end:{line:1238,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1235},69:{loc:{start:{line:1240,column:10},end:{line:1242,column:11}},type:"if",locations:[{start:{line:1240,column:10},end:{line:1242,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1240},70:{loc:{start:{line:1245,column:12},end:{line:1261,column:13}},type:"if",locations:[{start:{line:1245,column:12},end:{line:1261,column:13}},{start:{line:1253,column:19},end:{line:1261,column:13}}],line:1245},71:{loc:{start:{line:1268,column:10},end:{line:1270,column:11}},type:"if",locations:[{start:{line:1268,column:10},end:{line:1270,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1268},72:{loc:{start:{line:1277,column:10},end:{line:1279,column:11}},type:"if",locations:[{start:{line:1277,column:10},end:{line:1279,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1277},73:{loc:{start:{line:1277,column:14},end:{line:1277,column:52}},type:"binary-expr",locations:[{start:{line:1277,column:14},end:{line:1277,column:25}},{start:{line:1277,column:29},end:{line:1277,column:52}}],line:1277},74:{loc:{start:{line:1280,column:10},end:{line:1282,column:11}},type:"if",locations:[{start:{line:1280,column:10},end:{line:1282,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1280},75:{loc:{start:{line:1280,column:14},end:{line:1280,column:48}},type:"binary-expr",locations:[{start:{line:1280,column:14},end:{line:1280,column:25}},{start:{line:1280,column:29},end:{line:1280,column:48}}],line:1280},76:{loc:{start:{line:1289,column:10},end:{line:1291,column:11}},type:"if",locations:[{start:{line:1289,column:10},end:{line:1291,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1289},77:{loc:{start:{line:1289,column:14},end:{line:1289,column:52}},type:"binary-expr",locations:[{start:{line:1289,column:14},end:{line:1289,column:25}},{start:{line:1289,column:29},end:{line:1289,column:52}}],line:1289},78:{loc:{start:{line:1292,column:10},end:{line:1294,column:11}},type:"if",locations:[{start:{line:1292,column:10},end:{line:1294,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1292},79:{loc:{start:{line:1292,column:14},end:{line:1292,column:48}},type:"binary-expr",locations:[{start:{line:1292,column:14},end:{line:1292,column:25}},{start:{line:1292,column:29},end:{line:1292,column:48}}],line:1292},80:{loc:{start:{line:1295,column:10},end:{line:1297,column:11}},type:"if",locations:[{start:{line:1295,column:10},end:{line:1297,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1295},81:{loc:{start:{line:1295,column:14},end:{line:1295,column:49}},type:"binary-expr",locations:[{start:{line:1295,column:14},end:{line:1295,column:25}},{start:{line:1295,column:29},end:{line:1295,column:49}}],line:1295},82:{loc:{start:{line:1308,column:10},end:{line:1310,column:11}},type:"if",locations:[{start:{line:1308,column:10},end:{line:1310,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1308},83:{loc:{start:{line:1308,column:14},end:{line:1308,column:52}},type:"binary-expr",locations:[{start:{line:1308,column:14},end:{line:1308,column:25}},{start:{line:1308,column:29},end:{line:1308,column:52}}],line:1308},84:{loc:{start:{line:1311,column:10},end:{line:1313,column:11}},type:"if",locations:[{start:{line:1311,column:10},end:{line:1313,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1311},85:{loc:{start:{line:1311,column:14},end:{line:1311,column:48}},type:"binary-expr",locations:[{start:{line:1311,column:14},end:{line:1311,column:25}},{start:{line:1311,column:29},end:{line:1311,column:48}}],line:1311},86:{loc:{start:{line:1318,column:10},end:{line:1320,column:11}},type:"if",locations:[{start:{line:1318,column:10},end:{line:1320,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1318},87:{loc:{start:{line:1346,column:10},end:{line:1348,column:11}},type:"if",locations:[{start:{line:1346,column:10},end:{line:1348,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1346},88:{loc:{start:{line:1346,column:14},end:{line:1346,column:47}},type:"binary-expr",locations:[{start:{line:1346,column:14},end:{line:1346,column:25}},{start:{line:1346,column:29},end:{line:1346,column:47}}],line:1346},89:{loc:{start:{line:1349,column:10},end:{line:1351,column:11}},type:"if",locations:[{start:{line:1349,column:10},end:{line:1351,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1349},90:{loc:{start:{line:1366,column:6},end:{line:1383,column:7}},type:"if",locations:[{start:{line:1366,column:6},end:{line:1383,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1366},91:{loc:{start:{line:1386,column:18},end:{line:1386,column:79}},type:"cond-expr",locations:[{start:{line:1386,column:39},end:{line:1386,column:58}},{start:{line:1386,column:61},end:{line:1386,column:79}}],line:1386},92:{loc:{start:{line:1506,column:10},end:{line:1508,column:11}},type:"if",locations:[{start:{line:1506,column:10},end:{line:1508,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1506},93:{loc:{start:{line:1509,column:10},end:{line:1511,column:11}},type:"if",locations:[{start:{line:1509,column:10},end:{line:1511,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1509},94:{loc:{start:{line:1512,column:10},end:{line:1514,column:11}},type:"if",locations:[{start:{line:1512,column:10},end:{line:1514,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1512},95:{loc:{start:{line:1525,column:43},end:{line:1525,column:56}},type:"default-arg",locations:[{start:{line:1525,column:51},end:{line:1525,column:56}}],line:1525},96:{loc:{start:{line:1529,column:6},end:{line:1535,column:7}},type:"if",locations:[{start:{line:1529,column:6},end:{line:1535,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1529},97:{loc:{start:{line:1531,column:8},end:{line:1534,column:9}},type:"if",locations:[{start:{line:1531,column:8},end:{line:1534,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1531},98:{loc:{start:{line:1537,column:6},end:{line:1541,column:7}},type:"if",locations:[{start:{line:1537,column:6},end:{line:1541,column:7}},{start:{line:1539,column:13},end:{line:1541,column:7}}],line:1537},99:{loc:{start:{line:1549,column:6},end:{line:1556,column:7}},type:"if",locations:[{start:{line:1549,column:6},end:{line:1556,column:7}},{start:{line:1553,column:13},end:{line:1556,column:7}}],line:1549},100:{loc:{start:{line:1557,column:6},end:{line:1560,column:7}},type:"if",locations:[{start:{line:1557,column:6},end:{line:1560,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1557},101:{loc:{start:{line:1574,column:8},end:{line:1576,column:9}},type:"if",locations:[{start:{line:1574,column:8},end:{line:1576,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1574},102:{loc:{start:{line:1577,column:8},end:{line:1579,column:9}},type:"if",locations:[{start:{line:1577,column:8},end:{line:1579,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1577},103:{loc:{start:{line:1580,column:8},end:{line:1582,column:9}},type:"if",locations:[{start:{line:1580,column:8},end:{line:1582,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1580},104:{loc:{start:{line:1583,column:8},end:{line:1585,column:9}},type:"if",locations:[{start:{line:1583,column:8},end:{line:1585,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1583},105:{loc:{start:{line:1591,column:19},end:{line:1591,column:32}},type:"default-arg",locations:[{start:{line:1591,column:26},end:{line:1591,column:32}}],line:1591},106:{loc:{start:{line:1593,column:6},end:{line:1623,column:7}},type:"if",locations:[{start:{line:1593,column:6},end:{line:1623,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1593},107:{loc:{start:{line:1594,column:8},end:{line:1622,column:9}},type:"if",locations:[{start:{line:1594,column:8},end:{line:1622,column:9}},{start:{line:1598,column:15},end:{line:1622,column:9}}],line:1594},108:{loc:{start:{line:1599,column:10},end:{line:1621,column:11}},type:"if",locations:[{start:{line:1599,column:10},end:{line:1621,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1599},109:{loc:{start:{line:1601,column:12},end:{line:1619,column:13}},type:"if",locations:[{start:{line:1601,column:12},end:{line:1619,column:13}},{start:{line:1610,column:19},end:{line:1619,column:13}}],line:1601},110:{loc:{start:{line:1602,column:14},end:{line:1603,column:56}},type:"binary-expr",locations:[{start:{line:1602,column:14},end:{line:1602,column:33}},{start:{line:1603,column:15},end:{line:1603,column:30}},{start:{line:1603,column:34},end:{line:1603,column:55}}],line:1602},111:{loc:{start:{line:1610,column:19},end:{line:1619,column:13}},type:"if",locations:[{start:{line:1610,column:19},end:{line:1619,column:13}},{start:{line:1616,column:19},end:{line:1619,column:13}}],line:1610},112:{loc:{start:{line:1632,column:10},end:{line:1655,column:11}},type:"if",locations:[{start:{line:1632,column:10},end:{line:1655,column:11}},{start:{line:1650,column:17},end:{line:1655,column:11}}],line:1632},113:{loc:{start:{line:1633,column:12},end:{line:1641,column:13}},type:"if",locations:[{start:{line:1633,column:12},end:{line:1641,column:13}},{start:{line:1637,column:19},end:{line:1641,column:13}}],line:1633},114:{loc:{start:{line:1642,column:12},end:{line:1645,column:13}},type:"if",locations:[{start:{line:1642,column:12},end:{line:1645,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1642},115:{loc:{start:{line:1662,column:10},end:{line:1668,column:11}},type:"if",locations:[{start:{line:1662,column:10},end:{line:1668,column:11}},{start:{line:1665,column:17},end:{line:1668,column:11}}],line:1662},116:{loc:{start:{line:1678,column:6},end:{line:1681,column:7}},type:"if",locations:[{start:{line:1678,column:6},end:{line:1681,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1678},117:{loc:{start:{line:1686,column:6},end:{line:1688,column:7}},type:"if",locations:[{start:{line:1686,column:6},end:{line:1688,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1686},118:{loc:{start:{line:1703,column:10},end:{line:1709,column:11}},type:"if",locations:[{start:{line:1703,column:10},end:{line:1709,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1703},119:{loc:{start:{line:1759,column:6},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1759,column:6},end:{line:1786,column:7}},{start:{line:1762,column:13},end:{line:1786,column:7}}],line:1759},120:{loc:{start:{line:1762,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1762,column:13},end:{line:1786,column:7}},{start:{line:1772,column:13},end:{line:1786,column:7}}],line:1762},121:{loc:{start:{line:1772,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1772,column:13},end:{line:1786,column:7}},{start:{line:1780,column:13},end:{line:1786,column:7}}],line:1772},122:{loc:{start:{line:1774,column:8},end:{line:1776,column:9}},type:"if",locations:[{start:{line:1774,column:8},end:{line:1776,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1774},123:{loc:{start:{line:1780,column:13},end:{line:1786,column:7}},type:"if",locations:[{start:{line:1780,column:13},end:{line:1786,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1780},124:{loc:{start:{line:1782,column:8},end:{line:1784,column:9}},type:"if",locations:[{start:{line:1782,column:8},end:{line:1784,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1782},125:{loc:{start:{line:1812,column:6},end:{line:1814,column:7}},type:"if",locations:[{start:{line:1812,column:6},end:{line:1814,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1812},126:{loc:{start:{line:1812,column:10},end:{line:1812,column:58}},type:"binary-expr",locations:[{start:{line:1812,column:10},end:{line:1812,column:40}},{start:{line:1812,column:44},end:{line:1812,column:58}}],line:1812},127:{loc:{start:{line:1822,column:8},end:{line:1825,column:9}},type:"if",locations:[{start:{line:1822,column:8},end:{line:1825,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1822}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242:0,243:0,244:0,245:0,246:0,247:0,248:0,249:0,250:0,251:0,252:0,253:0,254:0,255:0,256:0,257:0,258:0,259:0,260:0,261:0,262:0,263:0,264:0,265:0,266:0,267:0,268:0,269:0,270:0,271:0,272:0,273:0,274:0,275:0,276:0,277:0,278:0,279:0,280:0,281:0,282:0,283:0,284:0,285:0,286:0,287:0,288:0,289:0,290:0,291:0,292:0,293:0,294:0,295:0,296:0,297:0,298:0,299:0,300:0,301:0,302:0,303:0,304:0,305:0,306:0,307:0,308:0,309:0,310:0,311:0,312:0,313:0,314:0,315:0,316:0,317:0,318:0,319:0,320:0,321:0,322:0,323:0,324:0,325:0,326:0,327:0,328:0,329:0,330:0,331:0,332:0,333:0,334:0,335:0,336:0,337:0,338:0,339:0,340:0,341:0,342:0,343:0,344:0,345:0,346:0,347:0,348:0,349:0,350:0,351:0,352:0,353:0,354:0,355:0,356:0,357:0,358:0,359:0,360:0,361:0,362:0,363:0,364:0,365:0,366:0,367:0,368:0,369:0,370:0,371:0,372:0,373:0,374:0,375:0,376:0,377:0,378:0,379:0,380:0,381:0,382:0,383:0,384:0,385:0,386:0,387:0,388:0,389:0,390:0,391:0,392:0,393:0,394:0,395:0,396:0,397:0,398:0,399:0,400:0,401:0,402:0,403:0,404:0,405:0,406:0,407:0,408:0,409:0,410:0,411:0,412:0,413:0,414:0,415:0,416:0,417:0,418:0,419:0,420:0,421:0,422:0,423:0,424:0,425:0,426:0,427:0,428:0,429:0,430:0,431:0,432:0,433:0,434:0,435:0,436:0,437:0,438:0,439:0,440:0,441:0,442:0,443:0,444:0,445:0,446:0,447:0,448:0,449:0,450:0,451:0,452:0,453:0,454:0,455:0,456:0,457:0,458:0,459:0,460:0,461:0,462:0,463:0,464:0,465:0,466:0,467:0,468:0,469:0,470:0,471:0,472:0,473:0,474:0,475:0,476:0,477:0,478:0,479:0,480:0,481:0,482:0,483:0,484:0,485:0,486:0,487:0,488:0,489:0,490:0,491:0,492:0,493:0,494:0,495:0,496:0,497:0,498:0,499:0,500:0,501:0,502:0,503:0,504:0,505:0,506:0,507:0,508:0,509:0,510:0,511:0,512:0,513:0,514:0,515:0,516:0,517:0,518:0,519:0,520:0,521:0,522:0,523:0,524:0,525:0,526:0,527:0,528:0,529:0,530:0,531:0,532:0,533:0,534:0,535:0,536:0,537:0,538:0,539:0,540:0,541:0,542:0,543:0,544:0,545:0,546:0,547:0,548:0,549:0,550:0,551:0,552:0,553:0,554:0,555:0,556:0,557:0,558:0,559:0,560:0,561:0,562:0,563:0,564:0,565:0,566:0,567:0,568:0,569:0,570:0,571:0,572:0,573:0,574:0,575:0,576:0,577:0,578:0,579:0,580:0,581:0,582:0,583:0,584:0,585:0,586:0,587:0,588:0,589:0,590:0,591:0,592:0,593:0,594:0,595:0,596:0,597:0,598:0,599:0,600:0,601:0,602:0,603:0,604:0,605:0,606:0,607:0,608:0,609:0,610:0,611:0,612:0,613:0,614:0,615:0,616:0,617:0,618:0,619:0,620:0,621:0,622:0,623:0,624:0,625:0,626:0,627:0,628:0,629:0,630:0,631:0,632:0,633:0,634:0,635:0,636:0,637:0,638:0,639:0,640:0,641:0,642:0,643:0,644:0,645:0,646:0,647:0,648:0,649:0,650:0,651:0,652:0,653:0,654:0,655:0,656:0,657:0,658:0,659:0,660:0,661:0,662:0,663:0,664:0,665:0,666:0,667:0,668:0,669:0,670:0,671:0,672:0,673:0,674:0,675:0,676:0,677:0,678:0,679:0,680:0,681:0,682:0,683:0,684:0,685:0,686:0,687:0,688:0,689:0,690:0,691:0,692:0,693:0,694:0,695:0,696:0,697:0,698:0,699:0,700:0,701:0,702:0,703:0,704:0,705:0,706:0,707:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0],20:[0,0],21:[0,0],22:[0,0],23:[0,0,0],24:[0,0],25:[0,0],26:[0],27:[0,0],28:[0,0],29:[0,0],30:[0,0,0],31:[0,0],32:[0,0,0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0,0,0,0,0,0,0,0,0,0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0,0,0,0,0,0],51:[0,0],52:[0,0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0],58:[0,0],59:[0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0,0,0,0,0,0,0,0,0,0,0],66:[0,0],67:[0,0,0],68:[0,0],69:[0,0],70:[0,0],71:[0,0],72:[0,0],73:[0,0],74:[0,0],75:[0,0],76:[0,0],77:[0,0],78:[0,0],79:[0,0],80:[0,0],81:[0,0],82:[0,0],83:[0,0],84:[0,0],85:[0,0],86:[0,0],87:[0,0],88:[0,0],89:[0,0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0,0],95:[0],96:[0,0],97:[0,0],98:[0,0],99:[0,0],100:[0,0],101:[0,0],102:[0,0],103:[0,0],104:[0,0],105:[0],106:[0,0],107:[0,0],108:[0,0],109:[0,0],110:[0,0,0],111:[0,0],112:[0,0],113:[0,0],114:[0,0],115:[0,0],116:[0,0],117:[0,0],118:[0,0],119:[0,0],120:[0,0],121:[0,0],122:[0,0],123:[0,0],124:[0,0],125:[0,0],126:[0,0],127:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AAsYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"ScriptRunner.vue",sourceRoot:"src/tools/ScriptRunner",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-snackbar v-model=\"showAlert\" top :color=\"alertType\" :timeout=\"3000\">\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alertText }}\n <template v-slot:action=\"{ attrs }\">\n <v-btn text v-bind=\"attrs\" @click=\"showAlert = false\"> Close </v-btn>\n </template>\n </v-snackbar>\n <v-snackbar v-model=\"showReadOnlyToast\" top :timeout=\"-1\" color=\"orange\">\n <v-icon> mdi-pencil-off </v-icon>\n {{ lockedBy }} is editing this script. Editor is in read-only mode\n <template v-slot:action=\"{ attrs }\">\n <v-btn\n text\n v-bind=\"attrs\"\n color=\"danger\"\n @click=\"confirmLocalUnlock\"\n data-test=\"unlock-button\"\n >\n Unlock\n </v-btn>\n <v-btn\n text\n v-bind=\"attrs\"\n @click=\"\n () => {\n showReadOnlyToast = false\n }\n \"\n >\n dismiss\n </v-btn>\n </template>\n </v-snackbar>\n <div class=\"grid\">\n <div\n class=\"item\"\n v-for=\"def in screens\"\n :key=\"def.id\"\n :id=\"screenId(def.id)\"\n ref=\"gridItem\"\n >\n <div class=\"item-content\">\n <openc3-screen\n :target=\"def.target\"\n :screen=\"def.screen\"\n :definition=\"def.definition\"\n :keywords=\"screenKeywords\"\n :initialFloated=\"true\"\n :initialTop=\"def.top\"\n :initialLeft=\"def.left\"\n :initialZ=\"3\"\n :minZ=\"3\"\n :fixFloated=\"true\"\n :count=\"def.count\"\n @close-screen=\"closeScreen(def.id)\"\n @delete-screen=\"closeScreen(def.id)\"\n />\n </div>\n </div>\n </div>\n <v-card style=\"padding: 10px\">\n <suite-runner\n v-if=\"suiteRunner\"\n :suite-map=\"suiteMap\"\n :disable-buttons=\"disableSuiteButtons\"\n @button=\"suiteRunnerButton\"\n />\n <div id=\"sr-controls\">\n <v-row no-gutters justify=\"space-between\">\n <v-icon v-if=\"showDisconnect\" class=\"mr-2\" color=\"red\">\n mdi-connection\n </v-icon>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n icon\n @click=\"reloadFile\"\n :disabled=\"filename === NEW_FILENAME\"\n >\n <v-icon>mdi-cached</v-icon>\n </v-btn>\n </template>\n <span> Reload File </span>\n </v-tooltip>\n <v-select\n v-model=\"filenameSelect\"\n @change=\"fileNameChanged\"\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n id=\"filename\"\n data-test=\"filename\"\n style=\"width: 300px\"\n dense\n outlined\n hide-details\n />\n <v-text-field\n v-model=\"scriptId\"\n label=\"Script ID\"\n data-test=\"id\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 100px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-text-field\n v-model=\"state\"\n label=\"Script State\"\n data-test=\"state\"\n class=\"shrink ml-2 script-state\"\n style=\"width: 120px\"\n dense\n outlined\n readonly\n hide-details\n />\n <v-progress-circular\n v-if=\"state === 'Connecting...'\"\n :size=\"40\"\n class=\"ml-2 mr-2\"\n indeterminate\n color=\"primary\"\n />\n <div v-else style=\"width: 40px; height: 40px\" class=\"ml-2 mr-2\"></div>\n\n \x3c!-- Disable the Start button when Suite Runner controls are showing --\x3e\n <v-spacer />\n <div v-if=\"startOrGoButton === 'Start'\">\n <v-btn\n @click=\"startHandler\"\n class=\"mx-1\"\n color=\"primary\"\n data-test=\"start-button\"\n :disabled=\"startOrGoDisabled\"\n >\n <span> Start </span>\n </v-btn>\n <v-tooltip bottom>\n <template v-slot:activator=\"{ on, attrs }\">\n <v-btn\n v-on=\"on\"\n v-bind=\"attrs\"\n @click=\"scriptEnvironment.show = !scriptEnvironment.show\"\n class=\"mx-1\"\n data-test=\"env-button\"\n :color=\"environmentIconColor\"\n :disabled=\"envDisabled\"\n >\n <v-icon> {{ environmentIcon }} </v-icon>\n </v-btn>\n </template>\n <span>Script Environment</span>\n </v-tooltip>\n </div>\n <div v-else>\n <v-btn\n @click=\"go\"\n color=\"primary\"\n class=\"mr-2\"\n :disabled=\"startOrGoDisabled\"\n data-test=\"go-button\"\n >\n Go\n </v-btn>\n <v-btn\n color=\"primary\"\n @click=\"pauseOrRetry\"\n class=\"mr-2\"\n :disabled=\"pauseOrRetryDisabled\"\n data-test=\"pause-retry-button\"\n >\n {{ pauseOrRetryButton }}\n </v-btn>\n\n <v-btn\n color=\"primary\"\n @click=\"stop\"\n data-test=\"stop-button\"\n :disabled=\"stopDisabled\"\n >\n Stop\n </v-btn>\n </div>\n </v-row>\n </div>\n </v-card>\n \x3c!-- Create Multipane container to support resizing.\n NOTE: We listen to paneResize event and call editor.resize() to prevent weird sizing issues,\n The event must be paneResize and not pane-resize --\x3e\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <div class=\"editorbox pane\">\n <v-snackbar\n v-model=\"showSave\"\n absolute\n top\n right\n :timeout=\"-1\"\n class=\"saving\"\n >\n Saving...\n </v-snackbar>\n <pre\n ref=\"editor\"\n class=\"editor\"\n @contextmenu.prevent=\"showExecuteSelectionMenu\"\n ></pre>\n <v-menu\n v-model=\"executeSelectionMenu\"\n :position-x=\"menuX\"\n :position-y=\"menuY\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"item in executeSelectionMenuItems\"\n link\n :key=\"item.label\"\n :disabled=\"scriptId\"\n >\n <v-list-item-title @click=\"item.command\">\n {{ item.label }}\n </v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n </div>\n <multipane-resizer><hr /></multipane-resizer>\n <div id=\"messages\" class=\"mt-2 pane\" ref=\"messagesDiv\">\n <div id=\"debug\" class=\"pa-0\" v-if=\"showDebug\">\n <v-row no-gutters>\n <v-btn\n color=\"primary\"\n @click=\"step\"\n style=\"width: 100px\"\n class=\"mr-4\"\n :disabled=\"!scriptId\"\n data-test=\"step-button\"\n >\n Step\n <v-icon right> mdi-step-forward </v-icon>\n </v-btn>\n <v-text-field\n class=\"mb-2\"\n outlined\n dense\n hide-details\n label=\"Debug\"\n v-model=\"debug\"\n @keydown=\"debugKeydown\"\n data-test=\"debug-text\"\n />\n </v-row>\n </div>\n <script-log-messages v-model=\"messages\" />\n </div>\n </multipane>\n \x3c!--- MENUS ---\x3e\n <file-open-save-dialog\n v-if=\"fileOpen\"\n v-model=\"fileOpen\"\n type=\"open\"\n api-url=\"/script-api/scripts\"\n @file=\"setFile($event)\"\n @error=\"setError($event)\"\n />\n <file-open-save-dialog\n v-if=\"showSaveAs\"\n v-model=\"showSaveAs\"\n type=\"save\"\n api-url=\"/script-api/scripts\"\n require-target-parent-dir\n :input-filename=\"filenameOrBlank\"\n @filename=\"saveAsFilename($event)\"\n @error=\"setError($event)\"\n />\n <environment-dialog v-if=\"showEnvironment\" v-model=\"showEnvironment\" />\n <ask-dialog\n v-if=\"ask.show\"\n v-model=\"ask.show\"\n :question=\"ask.question\"\n :default=\"ask.default\"\n :password=\"ask.password\"\n :answer-required=\"ask.answerRequired\"\n @response=\"ask.callback\"\n />\n <file-dialog\n v-if=\"file.show\"\n v-model=\"file.show\"\n :title=\"file.title\"\n :message=\"file.message\"\n :multiple=\"file.multiple\"\n :filter=\"file.filter\"\n @response=\"fileDialogCallback\"\n />\n <information-dialog\n v-if=\"information.show\"\n v-model=\"information.show\"\n :title=\"information.title\"\n :text=\"information.text\"\n />\n <event-list-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :events=\"inputMetadata.events\"\n :utc=\"false\"\n new-metadata\n @close=\"inputMetadata.callback\"\n />\n <overrides-dialog v-if=\"showOverrides\" v-model=\"showOverrides\" />\n <prompt-dialog\n v-if=\"prompt.show\"\n v-model=\"prompt.show\"\n :title=\"prompt.title\"\n :subtitle=\"prompt.subtitle\"\n :message=\"prompt.message\"\n :details=\"prompt.details\"\n :buttons=\"prompt.buttons\"\n :layout=\"prompt.layout\"\n :multiple=\"prompt.multiple\"\n @response=\"prompt.callback\"\n />\n <results-dialog\n v-if=\"results.show\"\n v-model=\"results.show\"\n :text=\"results.text\"\n />\n <script-environment-dialog\n v-if=\"scriptEnvironment.show\"\n v-model=\"scriptEnvironment.show\"\n :input-environment=\"scriptEnvironment.env\"\n @environment=\"environmentHandler\"\n />\n <simple-text-dialog\n v-model=\"showSuiteError\"\n title=\"Suite Analysis Error\"\n :text=\"suiteError\"\n :width=\"1000\"\n />\n <v-bottom-sheet v-model=\"showScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n v-if=\"showScripts\"\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showScripts = false\n }\n \"\n />\n </v-sheet>\n </v-bottom-sheet>\n </div>\n</template>\n\n<script>\nimport axios from 'axios'\nimport Cable from '@openc3/tool-common/src/services/cable.js'\nimport Api from '@openc3/tool-common/src/services/api'\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/mode-python'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { format } from 'date-fns'\nimport { Multipane, MultipaneResizer } from 'vue-multipane'\nimport FileOpenSaveDialog from '@openc3/tool-common/src/components/FileOpenSaveDialog'\nimport EnvironmentDialog from '@openc3/tool-common/src/components/EnvironmentDialog'\nimport SimpleTextDialog from '@openc3/tool-common/src/components/SimpleTextDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\n\nimport AskDialog from '@/tools/ScriptRunner/Dialogs/AskDialog'\nimport FileDialog from '@/tools/ScriptRunner/Dialogs/FileDialog'\nimport InformationDialog from '@/tools/ScriptRunner/Dialogs/InformationDialog'\nimport EventListDialog from '@openc3/tool-common/src/tools/calendar/Dialogs/EventListDialog'\nimport OverridesDialog from '@/tools/ScriptRunner/Dialogs/OverridesDialog'\nimport PromptDialog from '@/tools/ScriptRunner/Dialogs/PromptDialog'\nimport ResultsDialog from '@/tools/ScriptRunner/Dialogs/ResultsDialog'\nimport ScriptEnvironmentDialog from '@/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog'\nimport SuiteRunner from '@/tools/ScriptRunner/SuiteRunner'\nimport ScriptLogMessages from '@/tools/ScriptRunner/ScriptLogMessages'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\n// Matches target_file.rb TEMP_FOLDER\nconst TEMP_FOLDER = '__TEMP__'\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n Openc3Screen,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n EventListDialog,\n OverridesDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: 'COSMOS Script Runner',\n suiteRunner: false, // Whether to display the SuiteRunner GUI\n disableSuiteButtons: false,\n suiteMap: {\n // Useful for testing the various options in the SuiteRunner GUI\n // Suite: {\n // teardown: true,\n // groups: {\n // Group: {\n // setup: true,\n // cases: ['case1', 'case2', 'really_long_test_case_name3'],\n // },\n // ReallyLongGroupName: {\n // cases: ['case1', 'case2', 'case3'],\n // },\n // },\n // },\n },\n filenameSelect: null,\n currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: null,\n scriptId: null,\n startOrGoButton: START,\n startOrGoDisabled: false,\n envDisabled: false,\n pauseOrRetryButton: PAUSE,\n pauseOrRetryDisabled: false,\n stopDisabled: false,\n showEnvironment: false,\n showDebug: false,\n debug: '',\n debugHistory: [],\n debugHistoryIndex: 0,\n showDisconnect: false,\n files: {},\n breakpoints: {},\n filename: NEW_FILENAME,\n tempFilename: null,\n fileModified: '',\n fileOpen: false,\n lockedBy: null,\n showReadOnlyToast: false,\n showSaveAs: false,\n areYouSure: false,\n subscription: null,\n cable: null,\n fatal: false,\n messages: [],\n maxArrayLength: 200,\n Range: ace.require('ace/range').Range,\n ask: {\n show: false,\n question: '',\n default: null,\n password: false,\n answerRequired: true,\n callback: () => {},\n },\n file: {\n show: false,\n message: '',\n directory: null,\n filter: '*',\n multiple: false,\n callback: () => {},\n },\n prompt: {\n show: false,\n title: '',\n subtitle: '',\n message: '',\n details: '',\n buttons: null,\n layout: 'horizontal',\n callback: () => {},\n },\n information: {\n show: false,\n title: '',\n text: [],\n },\n inputMetadata: {\n show: false,\n events: [],\n callback: () => {},\n },\n results: {\n show: false,\n text: '',\n },\n scriptEnvironment: {\n show: false,\n env: [],\n },\n showSuiteError: false,\n suiteError: '',\n executeSelectionMenu: false,\n menuX: 0,\n menuY: 0,\n mnemonicChecker: new MnemonicChecker(),\n showScripts: false,\n showOverrides: false,\n activePromptId: '',\n api: null,\n screens: [],\n screenKeywords: null,\n idCounter: 0,\n updateCounter: 0,\n }\n },\n computed: {\n fileList: function () {\n const filenames = Object.keys(this.files)\n filenames.push(this.fullFilename)\n return [...new Set(filenames)] // ensure unique\n },\n environmentIcon: function () {\n return this.scriptEnvironment.env.length > 0\n ? 'mdi-bookmark'\n : 'mdi-bookmark-outline'\n },\n environmentIconColor: function () {\n return this.scriptEnvironment.env.length > 0 ? 'primary' : ''\n },\n readOnly: function () {\n return !!this.lockedBy\n },\n fullFilename: function () {\n if (this.currentFilename) return this.currentFilename\n // New filenames should not indicate modified\n if (this.filename === NEW_FILENAME) return NEW_FILENAME\n return `${this.filename} ${this.fileModified}`.trim()\n },\n // It's annoying for people (and tests) to clear the <Untitled>\n // when saving a new file so replace with blank\n filenameOrBlank: function () {\n return this.filename === NEW_FILENAME ? '' : this.filename\n },\n menus: function () {\n return [\n {\n label: 'File',\n items: [\n {\n label: 'New File',\n icon: 'mdi-file-plus',\n disabled: this.scriptId,\n command: () => {\n this.newFile()\n },\n },\n {\n label: 'New Ruby Test Suite',\n icon: 'mdi-language-ruby',\n disabled: this.scriptId,\n command: () => {\n this.newRubyTestSuite()\n },\n },\n // {\n // label: 'New Python Test Suite',\n // icon: 'mdi-language-python',\n // disabled: this.scriptId,\n // command: () => {\n // this.newPythonTestSuite()\n // },\n // },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n disabled: this.scriptId,\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n disabled: this.scriptId,\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n disabled: this.scriptId,\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\n disabled: this.scriptId,\n command: () => {\n this.delete()\n },\n },\n ],\n },\n {\n label: 'Edit',\n items: [\n {\n label: 'Find',\n icon: 'mdi-magnify',\n command: () => {\n this.editor.execCommand('find')\n },\n },\n {\n label: 'Replace',\n icon: 'mdi-find-replace',\n disabled: this.scriptId,\n command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'Execution Status',\n icon: 'mdi-run',\n command: () => {\n this.showScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Global Environment',\n icon: 'mdi-library',\n disabled: this.scriptId,\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Metadata',\n icon: 'mdi-calendar',\n disabled: this.scriptId,\n command: () => {\n this.inputMetadata.callback = () => {}\n this.showMetadata()\n },\n },\n {\n label: 'Overrides',\n icon: 'mdi-swap-horizontal',\n command: () => {\n this.showOverrides = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Syntax Check',\n icon: 'mdi-language-ruby',\n disabled: this.scriptId,\n command: () => {\n this.syntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n disabled: this.scriptId,\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'Instrumented Script',\n icon: 'mdi-code-braces-box',\n disabled: this.scriptId,\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId,\n command: () => {\n this.showCallStack()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Toggle Debug',\n icon: 'mdi-bug',\n command: () => {\n this.toggleDebug()\n },\n },\n {\n label: 'Toggle Disconnect',\n icon: 'mdi-connection',\n disabled: this.scriptId,\n command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\n disabled: this.scriptId,\n command: () => {\n this.deleteAllBreakpoints()\n },\n },\n ],\n },\n ]\n },\n executeSelectionMenuItems: function () {\n return [\n {\n label: 'Execute selection',\n command: this.executeSelection,\n },\n {\n label: 'Run from here',\n command: this.runFromCursor,\n },\n {\n label: 'Clear local breakpoints',\n command: this.clearBreakpoints,\n },\n ]\n },\n },\n watch: {\n readOnly: function (val) {\n this.showReadOnlyToast = val\n if (!this.suiteRunner) {\n this.startOrGoDisabled = val\n }\n this.editor.setReadOnly(val)\n },\n fullFilename: function (filename) {\n this.filenameSelect = filename\n if (filename === NEW_FILENAME) {\n localStorage.removeItem('script_runner__filename')\n } else {\n localStorage['script_runner__filename'] = filename\n }\n },\n },\n created: function () {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n\n Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.screenKeywords = response.data\n })\n },\n mounted: async function () {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n // Public apis in api_shared but not in OpenC3Api\n const api_shared = [\n 'check',\n 'check_raw',\n 'check_formatted',\n 'check_with_units',\n 'check_exception',\n 'check_tolerance',\n 'check_expression',\n 'wait',\n 'wait_tolerance',\n 'wait_expression',\n 'wait_check',\n 'wait_check_tolerance',\n 'wait_check_expression',\n 'wait_packet',\n 'wait_check_packet',\n 'disable_instrumentation',\n 'set_line_delay',\n 'get_line_delay',\n 'set_max_output',\n 'get_max_output',\n ]\n const openC3RubyMode = this.buildOpenC3RubyMode(api_shared)\n const openC3PythonMode = this.buildOpenC3PythonMode(api_shared)\n this.openC3RubyMode = new openC3RubyMode()\n this.openC3PythonMode = new openC3PythonMode()\n this.editor.session.setMode(this.openC3RubyMode)\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.$blockScrolling = Infinity\n this.editor.setOption('enableBasicAutocompletion', true)\n this.editor.setOption('enableLiveAutocompletion', true)\n this.editor.completers = [new CmdCompleter(), new TlmCompleter()]\n this.editor.setHighlightActiveLine(false)\n this.editor.focus()\n this.editor.on('guttermousedown', this.toggleBreakpoint)\n // We listen to tokenizerUpdate rather than change because this\n // is the background process that updates as changes are processed\n // while change fires immediately before the UndoManager is updated.\n this.editor.session.on('tokenizerUpdate', this.onChange)\n\n const sleepAnnotator = new SleepAnnotator(this.editor)\n this.editor.session.on('change', ($event, session) => {\n sleepAnnotator.annotate($event, session)\n this.updateBreakpoints($event, session)\n })\n\n window.addEventListener('keydown', this.keydown)\n this.cable = new Cable('/script-api/cable')\n await this.tryLoadRunningScript(this.$route.params.id)\n this.autoSaveInterval = setInterval(async () => {\n // Only save if not-running, modified, and visible (e.g. not open in another tab)\n if (\n !this.scriptId &&\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n await this.saveFile('auto')\n }\n }, 60000) // Save every minute\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n destroyed() {\n this.unlockFile()\n if (this.autoSaveInterval != null) {\n clearInterval(this.autoSaveInterval)\n }\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n beforeRouteUpdate: function (to, from, next) {\n if (to.params.id) {\n this.tryLoadRunningScript(to.params.id).then(next)\n } else {\n next()\n }\n },\n methods: {\n showMetadata() {\n Api.get('/openc3-api/metadata').then((response) => {\n // TODO: This is how Calendar creates new metadata items via makeMetadataEvent\n this.inputMetadata.events = response.data.map((event) => {\n return {\n name: 'Metadata',\n start: new Date(event.start * 1000),\n end: new Date(event.start * 1000),\n color: event.color,\n type: event.type,\n timed: true,\n metadata: event,\n }\n })\n this.inputMetadata.show = true\n })\n },\n buildOpenC3RubyMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var RubyHighlightRules = ace.require(\n 'ace/mode/ruby_highlight_rules'\n ).RubyHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n RubyHighlightRules.call(this)\n // add openc3 rules to the ruby rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, RubyHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent'\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle'\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/ruby').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var RubyMode = ace.require('ace/mode/ruby').Mode\n oop.inherits(Mode, RubyMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n buildOpenC3PythonMode(api_shared) {\n var oop = ace.require('ace/lib/oop')\n var PythonHighlightRules = ace.require(\n 'ace/mode/python_highlight_rules'\n ).PythonHighlightRules\n\n let apis = Object.getOwnPropertyNames(OpenC3Api.prototype)\n .filter((a) => a !== 'constructor')\n .filter((a) => a !== 'exec')\n .concat(api_shared)\n let regex = new RegExp(`(\\\\b${apis.join('\\\\b|\\\\b')}\\\\b)`)\n var OpenC3HighlightRules = function () {\n PythonHighlightRules.call(this)\n // add openc3 rules to the python rules\n for (var rule in this.$rules) {\n this.$rules[rule].unshift({\n regex: regex,\n token: 'support.function',\n })\n }\n }\n oop.inherits(OpenC3HighlightRules, PythonHighlightRules)\n\n var MatchingBraceOutdent = ace.require(\n 'ace/mode/matching_brace_outdent'\n ).MatchingBraceOutdent\n var CstyleBehaviour = ace.require(\n 'ace/mode/behaviour/cstyle'\n ).CstyleBehaviour\n var FoldMode = ace.require('ace/mode/folding/pythonic').FoldMode\n var Mode = function () {\n this.HighlightRules = OpenC3HighlightRules\n this.$outdent = new MatchingBraceOutdent()\n this.$behaviour = new CstyleBehaviour()\n this.foldingRules = new FoldMode()\n this.indentKeywords = this.foldingRules.indentKeywords\n }\n var PythonMode = ace.require('ace/mode/python').Mode\n oop.inherits(Mode, PythonMode)\n ;(function () {\n this.$id = 'ace/mode/openc3'\n }).call(Mode.prototype)\n return Mode\n },\n // This only gets called when the user changes the filename dropdown\n fileNameChanged(filename) {\n // Split off the '*' which indicates modified\n filename = filename.split('*')[0]\n this.editor.setValue(this.files[filename].content)\n this.restoreBreakpoints(filename)\n this.editor.clearSelection()\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(\n this.files[filename].lineNo - 1,\n 0,\n this.files[filename].lineNo - 1,\n 1\n ),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(this.files[filename].lineNo)\n },\n tryLoadRunningScript: function (id) {\n return Api.get('/script-api/running-script').then((response) => {\n const loadRunningScript = response.data.find(\n (s) => `${s.id}` === `${id}`\n )\n if (loadRunningScript) {\n this.filename = loadRunningScript.name\n this.tryLoadSuites()\n this.initScriptStart()\n this.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: `Running Script ${id} not found`,\n body: 'Check the Completed Scripts below ...',\n })\n this.showScripts = true\n } else {\n if (response.data.length !== 0) {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\n }\n if (localStorage['script_runner__filename']) {\n this.filename = localStorage['script_runner__filename']\n this.reloadFile()\n }\n }\n })\n },\n tryLoadSuites: function () {\n Api.get(`/script-api/scripts/${this.filename}`).then((response) => {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = response.data.success == false\n })\n },\n showExecuteSelectionMenu: function ($event) {\n this.menuX = $event.pageX\n this.menuY = $event.pageY\n this.executeSelectionMenu = true\n },\n runFromCursor: function () {\n const start = this.editor.getCursorPosition().row\n const text = this.editor.session.doc\n .getLines(start, this.editor.session.doc.getLength())\n .join('\\n')\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row >= start)\n .map((row) => row - start)\n this.executeText(text, breakpoints)\n },\n executeSelection: function () {\n const text = this.editor.getSelectedText()\n const range = this.editor.getSelectionRange()\n const breakpoints = this.getBreakpointRows()\n .filter((row) => row <= range.end.row && row >= range.start.row)\n .map((row) => row - range.start.row)\n this.executeText(text, breakpoints)\n },\n executeText: function (text, breakpoints = []) {\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(`/script-api/scripts/${selectionTempFilename}/run`, {\n data: {\n environment: this.scriptEnvironment.env,\n },\n })\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n // Don't allow setting breakpoints while running\n if (!this.scriptId) {\n const row = $event.getDocumentPosition().row\n if ($event.editor.session.getBreakpoints(row, 0)[row]) {\n $event.editor.session.clearBreakpoint(row)\n } else {\n $event.editor.session.setBreakpoint(row)\n }\n }\n },\n updateBreakpoints: function ($event, session) {\n if ($event.lines.length <= 1) {\n return\n }\n const rowsToUpdate = this.getBreakpointRows(session).filter(\n (row) =>\n ($event.start.column === 0 && row === $event.start.row) ||\n row > $event.start.row\n )\n let rowsToDelete = []\n let offset = 0\n switch ($event.action) {\n case 'insert':\n offset = $event.lines.length - 1\n rowsToUpdate.reverse() // shift the lower ones down out of the way first\n break\n case 'remove':\n offset = -$event.lines.length + 1\n rowsToDelete = [...Array($event.lines.length).keys()].map(\n (row) => row + $event.start.row\n )\n break\n }\n rowsToUpdate.forEach((row) => {\n session.clearBreakpoint(row)\n if (!rowsToDelete.includes(row)) {\n session.setBreakpoint(row + offset)\n }\n })\n },\n getBreakpointRows: function (session = this.editor.session) {\n return session\n .getBreakpoints()\n .map((breakpoint, row) => breakpoint && row) // [empty, 'ace_breakpoint', 'ace_breakpoint', empty] -> [empty, 1, 2, empty]\n .filter(Number.isInteger) // [empty, 1, 2, empty] -> [1, 2]\n },\n restoreBreakpoints: function (filename) {\n this.clearBreakpoints()\n this.breakpoints[filename]?.forEach((breakpoint) => {\n this.editor.session.setBreakpoint(breakpoint)\n })\n },\n deleteAllBreakpoints: function () {\n this.$dialog\n .confirm('Permanently delete all breakpoints for ALL scripts?', {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.delete('/script-api/breakpoints/delete/all')\n })\n .then((response) => {\n this.clearBreakpoints()\n })\n },\n suiteRunnerButton(event) {\n if (this.startOrGoButton === START) {\n this.start(event, 'suiteRunner')\n } else {\n this.go(event, 'suiteRunner')\n }\n },\n async keydown(event) {\n // NOTE: Chrome does not allow overriding Ctrl-N, Ctrl-Shift-N, Ctrl-T, Ctrl-Shift-T, Ctrl-W\n // NOTE: metaKey == Command on Mac\n if (\n (event.metaKey || event.ctrlKey) &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n await this.saveFile()\n } else if (\n (event.metaKey || event.ctrlKey) &&\n event.shiftKey &&\n event.keyCode === 'S'.charCodeAt(0)\n ) {\n event.preventDefault()\n this.saveAs()\n }\n },\n onChange(event) {\n // Don't track changes when we're running or read-only (locked)\n if (this.scriptId || this.editor.getReadOnly() === true) {\n return\n }\n if (this.editor.session.getUndoManager().canUndo()) {\n this.fileModified = '*'\n } else {\n this.fileModified = ''\n }\n },\n checkMnemonics: function () {\n this.mnemonicChecker\n .checkText(this.editor.getValue())\n .then(({ skipped, problems }) => {\n let alertText = ''\n if (problems.length) {\n const problemText = problems\n .map((problem) => `${problem.lineNumber}: ${problem.error}`)\n .join('<br/>')\n alertText += `<strong>The following lines have problems:</strong><br/>${problemText}<br/><br/>`\n }\n if (skipped.length) {\n alertText +=\n '<strong>Mnemonics with string interpolation were not checked.</strong>'\n }\n if (alertText === '') {\n alertText = '<strong>Everything looks good!</strong>'\n }\n this.$dialog.alert(alertText.trim(), { html: true })\n })\n },\n initScriptStart() {\n this.disableSuiteButtons = true\n this.startOrGoDisabled = true\n this.envDisabled = true\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n this.state = 'Connecting...'\n this.startOrGoButton = GO\n this.editor.setReadOnly(true)\n },\n scriptStart(id) {\n this.scriptId = id\n this.cable\n .createSubscription(\n 'RunningScriptChannel',\n window.openc3Scope,\n {\n received: (data) => this.received(data),\n },\n {\n id: this.scriptId,\n }\n )\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n scriptComplete() {\n this.disableSuiteButtons = false\n this.startOrGoButton = START\n this.pauseOrRetryButton = PAUSE\n // Disable start if suiteRunner\n this.startOrGoDisabled = this.suiteRunner\n this.envDisabled = false\n this.pauseOrRetryDisabled = true\n this.stopDisabled = true\n // Ensure stopped, if the script has an error we don't get the server stopped message\n this.state = 'stopped'\n this.fatal = false\n this.scriptId = null\n this.currentFilename = null\n // We may have changed the contents (if there were sub-scripts)\n // so don't let the undo manager think this is a chanage\n this.editor.session.getUndoManager().reset()\n this.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n async start(event, suiteRunner = null) {\n // Initialize variables and disable buttons before actually posting.\n // This prevents delays in the backend from delaying frontend changes\n // like disabling start which could allow users to click start twice.\n this.initScriptStart()\n await this.saveFile('start')\n let filename = this.filename\n if (this.filename === NEW_FILENAME) {\n // NEW_FILENAME so use tempFilename created by saveFile()\n filename = this.tempFilename\n }\n let url = `/script-api/scripts/${filename}/run`\n if (this.showDisconnect) {\n url += '/disconnect'\n }\n let data = {\n environment: this.scriptEnvironment.env,\n }\n if (suiteRunner) {\n data['suiteRunner'] = event\n }\n Api.post(url, { data })\n .then((response) => {\n this.scriptStart(response.data)\n })\n .catch((error) => {\n this.scriptComplete()\n })\n },\n go() {\n // Ensure we're on the correct filename when we hit go\n // They may have changed it using the drop down\n this.filenameSelect = this.currentFilename\n this.fileNameChanged(this.currentFilename)\n Api.post(`/script-api/running-script/${this.scriptId}/go`)\n },\n pauseOrRetry() {\n if (this.pauseOrRetryButton === PAUSE) {\n Api.post(`/script-api/running-script/${this.scriptId}/pause`)\n } else {\n this.pauseOrRetryButton = PAUSE\n Api.post(`/script-api/running-script/${this.scriptId}/retry`)\n }\n },\n stop() {\n // We previously encountered a fatal error so remove the marker\n // and cleanup by calling scriptComplete() because the script\n // is already stopped in the backend\n if (this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/stop`)\n }\n },\n step() {\n Api.post(`/script-api/running-script/${this.scriptId}/step`)\n },\n received(data) {\n this.cable.recordPing()\n // eslint-disable-next-line\n // console.log(data) // Uncomment for debugging\n let index = 0\n switch (data.type) {\n case 'file':\n this.files[data.filename] = { content: data.text, lineNo: 0 }\n this.breakpoints[data.filename] = data.breakpoints\n if (this.currentFilename === data.filename) {\n this.restoreBreakpoints(data.filename)\n }\n break\n case 'line':\n if (data.filename && data.filename !== this.currentFilename) {\n if (!this.files[data.filename]) {\n // We don't have the contents of the running file (probably because connected to running script)\n // Set the contents initially to an empty string so we don't start slamming the API\n this.files[data.filename] = { content: '', lineNo: 0 }\n\n // Request the script we need\n Api.get(`/script-api/scripts/${data.filename}`)\n .then((response) => {\n // Success - Save the script text and mark the currentFilename as null\n // so it will get loaded in on the next line executed\n this.files[data.filename] = {\n content: response.data.contents,\n lineNo: 0,\n }\n this.breakpoints[data.filename] = response.data.breakpoints\n this.restoreBreakpoints(data.filename)\n this.currentFilename = null\n })\n .catch((err) => {\n // Error - Restore the file contents to null so we'll try the API again on the next line\n this.files[data.filename] = null\n })\n } else {\n this.editor.setValue(this.files[data.filename].content)\n this.restoreBreakpoints(data.filename)\n this.editor.clearSelection()\n this.currentFilename = data.filename\n }\n }\n this.state = data.state\n const markers = this.editor.session.getMarkers()\n switch (this.state) {\n case 'running':\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n this.stopDisabled = false\n this.pauseOrRetryButton = PAUSE\n\n this.removeAllMarkers()\n this.editor.session.addMarker(\n new this.Range(data.line_no - 1, 0, data.line_no - 1, 1),\n 'runningMarker',\n 'fullLine'\n )\n this.editor.gotoLine(data.line_no)\n this.files[data.filename].lineNo = data.line_no\n break\n case 'fatal':\n this.fatal = true\n // Deliberate fall through (no break)\n case 'error':\n this.pauseOrRetryButton = RETRY\n // Deliberate fall through (no break)\n case 'breakpoint':\n case 'waiting':\n case 'paused':\n if (this.state == 'fatal') {\n this.startOrGoDisabled = true\n this.pauseOrRetryDisabled = true\n } else {\n this.startOrGoDisabled = false\n this.pauseOrRetryDisabled = false\n }\n this.stopDisabled = false\n let existing = Object.keys(markers).filter(\n (key) => markers[key].clazz === `${this.state}Marker`\n )\n if (existing.length === 0) {\n this.removeAllMarkers()\n let line = data.line_no > 0 ? data.line_no : 1\n this.editor.session.addMarker(\n new this.Range(line - 1, 0, line - 1, 1),\n `${this.state}Marker`,\n 'fullLine'\n )\n this.editor.gotoLine(line)\n // Fatal errors don't always have a filename set\n if (data.filename) {\n this.files[data.filename].lineNo = line\n }\n }\n break\n default:\n break\n }\n break\n case 'output':\n // data.line can consist of multiple lines split by newlines\n // thus we split and only output if the content is not empty\n for (const line of data.line.split('\\n')) {\n if (line) {\n this.messages.unshift({ message: line })\n }\n }\n while (this.messages.length > this.maxArrayLength) {\n this.messages.pop()\n }\n break\n case 'script':\n this.handleScript(data)\n break\n case 'report':\n this.results.text = data.report\n this.results.show = true\n break\n case 'complete':\n // Don't complete on fatal because we just sit there on the fatal line\n if (!this.fatal) {\n this.removeAllMarkers()\n this.scriptComplete()\n }\n break\n case 'step':\n this.showDebug = true\n break\n case 'screen':\n let found = false\n let definition = {}\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n definition = screen\n found = true\n break\n }\n index += 1\n }\n this.$set(definition, 'target', data.target_name)\n this.$set(definition, 'screen', data.screen_name)\n this.$set(definition, 'definition', data.definition)\n if (data.x) {\n this.$set(definition, 'left', data.x)\n } else {\n this.$set(definition, 'left', 0)\n }\n if (data.y) {\n this.$set(definition, 'top', data.y)\n } else {\n this.$set(definition, 'top', 0)\n }\n this.$set(definition, 'count', this.updateCounter++)\n if (!found) {\n this.$set(definition, 'id', this.idCounter++)\n this.$set(this.screens, this.screens.length, definition)\n } else {\n this.$set(this.screens, index, definition)\n }\n break\n case 'clearscreen':\n for (screen of this.screens) {\n if (\n screen.target == data.target_name &&\n screen.screen == data.screen_name\n ) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n break\n case 'clearallscreens':\n this.screens = []\n break\n case 'downloadfile':\n const blob = new Blob([data.text], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', data.filename)\n link.click()\n break\n default:\n // console.log('Unexpected ActionCable message')\n // console.log(data)\n break\n }\n },\n promptDialogCallback(value) {\n this.prompt.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.prompt.method,\n answer: value,\n prompt_id: this.activePromptId,\n multiple: this.prompt.multiple,\n },\n })\n },\n handleScript(data) {\n if (data.prompt_complete) {\n this.activePromptId = ''\n this.prompt.show = false\n this.ask.show = false\n return\n }\n this.activePromptId = data.prompt_id\n this.prompt.method = data.method // Set it here since all prompts use this\n this.prompt.layout = 'horizontal' // Reset the layout since most are horizontal\n this.prompt.title = 'Prompt'\n this.prompt.subtitle = ''\n this.prompt.details = ''\n this.prompt.buttons = []\n this.prompt.multiple = null\n switch (data.method) {\n case 'ask':\n case 'ask_string':\n // Reset values since this dialog can be re-used\n this.ask.default = null\n this.ask.answerRequired = true\n this.ask.password = false\n this.ask.question = data.args[0]\n // If the second parameter is not true or false it indicates a default value\n if (data.args[1] && data.args[1] !== true && data.args[1] !== false) {\n this.ask.default = data.args[1].toString()\n } else if (data.args[1] === true) {\n // If the second parameter is true it means no value is required to be entered\n this.ask.answerRequired = false\n }\n // The third parameter indicates a password textfield\n if (data.args[2] === true) {\n this.ask.password = true\n }\n this.ask.callback = (value) => {\n this.ask.show = false // Close the dialog\n if (this.ask.password) {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n password: value, // Using password as a key automatically filters it from rails logs\n prompt_id: this.activePromptId,\n },\n })\n } else {\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n }\n this.ask.show = true // Display the dialog\n break\n case 'prompt_for_hazardous':\n this.prompt.title = 'Hazardous Command'\n this.prompt.message = `Warning: Command ${data.args[0]} ${data.args[1]} is Hazardous. `\n if (data.args[2]) {\n this.prompt.message += data.args[2] + ' '\n }\n this.prompt.message += 'Send?'\n this.prompt.buttons = [{ text: 'Yes', value: 'Yes' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'prompt':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n this.prompt.buttons = [{ text: 'Ok', value: 'Ok' }]\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'combo_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n if (data.kwargs && data.kwargs.multiple) {\n this.prompt.multiple = true\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n this.prompt.layout = 'combo'\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'message_box':\n case 'vertical_message_box':\n if (data.kwargs && data.kwargs.informative) {\n this.prompt.subtitle = data.kwargs.informative\n }\n if (data.kwargs && data.kwargs.details) {\n this.prompt.details = data.kwargs.details\n }\n this.prompt.message = data.args[0]\n data.args.slice(1).forEach((v) => {\n this.prompt.buttons.push({ text: v, value: v })\n })\n if (data.method.includes('vertical')) {\n this.prompt.layout = 'vertical'\n }\n this.prompt.callback = this.promptDialogCallback\n this.prompt.show = true\n break\n case 'backtrace':\n this.information.title = 'Call Stack'\n this.information.text = data.args\n this.information.show = true\n break\n case 'metadata_input':\n this.inputMetadata.callback = (value) => {\n this.inputMetadata.show = false\n Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: data.method,\n answer: value,\n prompt_id: this.activePromptId,\n },\n })\n }\n this.showMetadata()\n break\n case 'open_file_dialog':\n case 'open_files_dialog':\n this.file.title = data.args[0]\n this.file.message = data.args[1]\n if (data.kwargs && data.kwargs.filter) {\n this.file.filter = data.kwargs.filter\n }\n if (data.method == 'open_files_dialog') {\n this.file.multiple = true\n }\n this.file.show = true\n break\n default:\n /* console.log(\n 'Unknown script method:' + data.method + ' with args:' + data.args\n ) */\n break\n }\n },\n async fileDialogCallback(files) {\n this.file.show = false // Close the dialog\n // Set fileNames to 'Cancel' in case they cancelled\n // otherwise we will populate it with the file names they selected\n let fileNames = 'Cancel'\n if (files != 'Cancel') {\n fileNames = []\n await files.forEach(async (file) => {\n fileNames.push(file.name)\n // Reassign data to presignedRequest for readability\n const { data: presignedRequest } = await Api.get(\n `/openc3-api/storage/upload/${encodeURIComponent(\n `${window.openc3Scope}/tmp/${file.name}`\n )}?bucket=OPENC3_CONFIG_BUCKET`\n )\n // This pushes the file into storage by using the fields in the presignedRequest\n // See storage_controller.rb get_presigned_request()\n const response = await axios({\n ...presignedRequest,\n data: file,\n })\n })\n }\n await Api.post(`/script-api/running-script/${this.scriptId}/prompt`, {\n data: {\n method: this.file.multiple ? 'open_files_dialog' : 'open_file_dialog',\n answer: fileNames,\n prompt_id: this.activePromptId,\n },\n })\n },\n setError(event) {\n this.alertType = 'error'\n this.alertText = `Error: ${event}`\n this.showAlert = true\n },\n // ScriptRunner File menu actions\n newFile() {\n this.unlockFile()\n this.filename = NEW_FILENAME\n this.currentFilename = null\n this.tempFilename = null\n this.files = {} // Clear the cached file list\n this.editor.session.setValue('')\n this.fileModified = ''\n this.suiteRunner = false\n this.startOrGoDisabled = false\n this.envDisabled = false\n },\n async newRubyTestSuite() {\n this.newFile()\n this.editor.session.setValue(`require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n`)\n await this.saveFile('auto')\n },\n async newPythonTestSuite() {\n this.newFile()\n this.editor.session.setValue(`from openc3.script import *\nfrom openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group('Power')\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n`)\n await this.saveFile('auto')\n },\n openFile() {\n this.fileOpen = true\n },\n async reloadFile() {\n // Disable start while we're loading the file so we don't hit Start\n // before it's fully loaded and then save over it with a blank file\n this.startOrGoDisabled = true\n Api.get(`/script-api/scripts/${this.filename}`)\n .then((response) => {\n const file = {\n name: this.filename,\n contents: response.data.contents,\n }\n if (response.data.suites) {\n file['suites'] = JSON.parse(response.data.suites)\n }\n if (response.data.error) {\n file['error'] = response.data.error\n }\n if (response.data.success) {\n file['success'] = response.data.success\n }\n const locked = response.data.locked\n const breakpoints = response.data.breakpoints\n this.setFile({ file, locked, breakpoints }, true)\n })\n .catch((error) => {\n this.$emit('error', `Failed to open ${this.selectedFile}. ${error}`)\n this.clear()\n })\n },\n // Called by the FileOpenDialog to set the file contents\n setFile({ file, locked, breakpoints }, local = false) {\n this.files = {} // Clear the cached file list\n // Split off the ' *' which indicates a file is modified on the server\n let newFilename = file.name.split('*')[0]\n if (local === false) {\n // We only need to unlock if the file is different\n if (this.filename !== newFilename) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n }\n this.filename = newFilename\n if (this.filename.split('.').pop() === 'py') {\n this.editor.session.setMode(this.openC3PythonMode)\n } else {\n this.editor.session.setMode(this.openC3RubyMode)\n }\n this.currentFilename = null\n this.editor.session.setValue(file.contents)\n this.breakpoints[filename] = breakpoints\n this.restoreBreakpoints(filename)\n this.fileModified = ''\n this.envDisabled = false\n\n if (file.suites) {\n this.suiteRunner = true\n this.suiteMap = file.suites\n this.startOrGoDisabled = true\n } else {\n this.suiteRunner = false\n this.startOrGoDisabled = false\n }\n if (file.error) {\n this.suiteError = file.error\n this.showSuiteError = true\n }\n // Disable suite buttons if we didn't successfully parse the suite\n this.disableSuiteButtons = file.success == false\n },\n detectLanguage() {\n let rubyRegex1 = new RegExp('^\\\\s*(require|load|puts) ')\n let pythonRegex1 = new RegExp('^\\\\s*(import|from) ')\n let rubyRegex2 = new RegExp('^\\\\s*end\\\\s*$')\n let pythonRegex2 = new RegExp(\n '^\\\\s*(if|def|while|else|elif|class).*:\\\\s*$'\n )\n let text = this.editor.getValue()\n let lines = text.split('\\n')\n for (let line of lines) {\n if (line.match(rubyRegex1)) {\n return 'ruby'\n }\n if (line.match(pythonRegex1)) {\n return 'python'\n }\n if (line.match(rubyRegex2)) {\n return 'ruby'\n }\n if (line.match(pythonRegex2)) {\n return 'python'\n }\n }\n return 'unknown' // otherwise unknown\n },\n // saveFile takes a type to indicate if it was called by the Menu\n // or automatically by 'Start' (to ensure a consistent backend file) or autoSave\n async saveFile(type = 'menu') {\n const breakpoints = this.getBreakpointRows()\n if (this.filename === NEW_FILENAME) {\n if (type === 'menu') {\n // Menu driven saves on a new file should prompt SaveAs\n this.saveAs()\n return\n } else {\n if (this.tempFilename === null) {\n let language = this.detectLanguage()\n if (\n language === 'ruby' ||\n (type !== 'auto' && language == 'unknown')\n ) {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.rb'\n } else if (language === 'python') {\n this.tempFilename =\n TEMP_FOLDER +\n '/' +\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') +\n '_temp.py'\n } else {\n // No autosave for unknown language\n return\n }\n this.filename = this.tempFilename\n }\n }\n }\n this.showSave = true\n await Api.post(`/script-api/scripts/${this.filename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n if (response.status == 200) {\n if (response.data.suites) {\n this.startOrGoDisabled = true\n this.suiteRunner = true\n this.suiteMap = JSON.parse(response.data.suites)\n } else {\n this.startOrGoDisabled = false\n this.suiteRunner = false\n this.suiteMap = {}\n }\n if (response.data.error) {\n this.suiteError = response.data.error\n this.showSuiteError = true\n }\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n } else {\n this.showSave = false\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n this.showAlert = true\n }\n this.lockFile() // Ensure this file is locked for editing\n })\n .catch(({ response }) => {\n this.showSave = false\n // 422 error means we couldn't parse the script file into Suites\n // response.data.suites holds the parse result\n if (response.status == 422) {\n this.alertType = 'error'\n this.alertText = response.data.suites\n } else {\n this.alertType = 'error'\n this.alertText = `Error saving file. Code: ${response.status} Text: ${response.statusText}`\n }\n this.showAlert = true\n })\n },\n saveAs() {\n this.showSaveAs = true\n },\n async saveAsFilename(filename) {\n this.filename = filename.split('*')[0]\n this.currentFilename = null\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n await this.saveFile('menu')\n },\n delete() {\n let filename = this.filename\n if (this.tempFilename) {\n filename = this.tempFilename\n }\n this.$dialog\n .confirm(`Permanently delete file: ${filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${filename}/delete`, {\n data: {},\n })\n })\n .then((response) => {\n this.newFile()\n })\n .catch((error) => {\n if (error) {\n const alertObject = {\n text: `Failed Multi-Delete. ${error}`,\n type: 'error',\n }\n this.$emit('alert', alertObject)\n }\n })\n },\n download() {\n const blob = new Blob([this.editor.getValue()], {\n type: 'text/plain',\n })\n // Make a link and then 'click' on it to start the download\n const link = document.createElement('a')\n link.href = URL.createObjectURL(blob)\n link.setAttribute('download', this.filename)\n link.click()\n },\n // ScriptRunner Script menu actions\n syntaxCheck() {\n Api.post(`/script-api/scripts/${this.filename}/syntax`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showInstrumented() {\n Api.post(`/script-api/scripts/${this.filename}/instrumented`, {\n data: this.editor.getValue(),\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'plain/text',\n },\n }).then((response) => {\n this.information.title = response.data.title\n this.information.text = JSON.parse(response.data.description)\n this.information.show = true\n })\n },\n showCallStack() {\n Api.post(`/script-api/running-script/${this.scriptId}/backtrace`)\n },\n toggleDebug() {\n this.showDebug = !this.showDebug\n },\n toggleDisconnect() {\n this.showDisconnect = !this.showDisconnect\n },\n debugKeydown(event) {\n if (event.key === 'Escape') {\n this.debug = ''\n this.debugHistoryIndex = this.debugHistory.length\n } else if (event.key === 'Enter') {\n this.debugHistory.push(this.debug)\n this.debugHistoryIndex = this.debugHistory.length\n // Post the code to /debug, output is processed by receive()\n Api.post(`/script-api/running-script/${this.scriptId}/debug`, {\n data: {\n args: this.debug,\n },\n })\n this.debug = ''\n } else if (event.key === 'ArrowUp') {\n this.debugHistoryIndex -= 1\n if (this.debugHistoryIndex < 0) {\n this.debugHistoryIndex = this.debugHistory.length - 1\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n // Prevent the cursor/caret from moving to the front\n event.preventDefault()\n } else if (event.key === 'ArrowDown') {\n this.debugHistoryIndex += 1\n if (this.debugHistoryIndex >= this.debugHistory.length) {\n this.debugHistoryIndex = 0\n }\n this.debug = this.debugHistory[this.debugHistoryIndex]\n }\n },\n removeAllMarkers: function () {\n const allMarkers = this.editor.session.getMarkers()\n Object.keys(allMarkers)\n .filter((key) => allMarkers[key].type === 'fullLine')\n .forEach((marker) => this.editor.session.removeMarker(marker))\n },\n confirmLocalUnlock: function () {\n this.$dialog\n .confirm(\n 'Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.',\n {\n okText: 'Force Unlock',\n cancelText: 'Cancel',\n }\n )\n .then(() => {\n this.lockedBy = null\n return this.lockFile() // Re-lock it as this user so it's locked for anyone else who opens it\n })\n },\n lockFile: function () {\n return Api.post(`/script-api/scripts/${this.filename}/lock`)\n },\n unlockFile: function () {\n if (this.filename !== NEW_FILENAME && !this.readOnly) {\n Api.post(`/script-api/scripts/${this.filename}/unlock`)\n }\n },\n screenId(id) {\n return 'scriptRunnerScreen' + id\n },\n closeScreen(id) {\n let index = 0\n for (screen of this.screens) {\n if (screen.id == id) {\n this.screens.splice(index, 1)\n break\n }\n index += 1\n }\n },\n },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding: 0px;\n}\n.editorbox {\n height: 50vh;\n}\n.editor {\n height: 100%;\n width: 100%;\n position: relative;\n font-size: 16px;\n}\nhr {\n pointer-events: none;\n position: relative;\n top: 7px;\n background-color: grey;\n height: 3px;\n width: 5%;\n margin: auto;\n}\n.script-state :deep(input) {\n text-transform: capitalize;\n}\n</style>\n<style>\n.runningMarker {\n position: absolute;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.waitingMarker {\n position: absolute;\n background: rgba(0, 155, 0, 1);\n z-index: 20;\n}\n.breakpointMarker {\n position: absolute;\n border-style: solid;\n border-color: red;\n background: rgba(0, 255, 0, 0.5);\n z-index: 20;\n}\n.pausedMarker {\n position: absolute;\n background: rgba(0, 140, 255, 0.5);\n z-index: 20;\n}\n.errorMarker {\n position: absolute;\n background: rgba(255, 0, 119, 0.5);\n z-index: 20;\n}\n.fatalMarker {\n position: absolute;\n background: rgba(255, 0, 0, 0.5);\n z-index: 20;\n}\n.saving {\n z-index: 20;\n opacity: 0.35;\n}\n.ace_gutter-cell.ace_breakpoint {\n border-radius: 20px 0px 0px 20px;\n box-shadow: 0px 0px 1px 1px red inset;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2a9c5c33537bf130160b84c4e5bbeb66f7307c2c"},s=t[i]||(t[i]={});s[e]&&s[e].hash===n||(s[e]=l);var o=s[e];return Ri=function(){return o},o}Ri();var Di=(Ri().s[0]++,"__TEMP__"),Ii=(Ri().s[1]++,"<Untitled>"),Oi=(Ri().s[2]++,"Start"),Ni=(Ri().s[3]++,"Go"),Zi=(Ri().s[4]++,"Pause"),Li=(Ri().s[5]++,"Retry"),Fi={components:{FileOpenSaveDialog:x,Openc3Screen:Pt,EnvironmentDialog:R,Multipane:v.x,MultipaneResizer:v.P,TopBar:W,AskDialog:X,FileDialog:se,InformationDialog:Ae,EventListDialog:_n,OverridesDialog:Tn,PromptDialog:Fn,ResultsDialog:Gn,ScriptEnvironmentDialog:Qn,SimpleTextDialog:L,SuiteRunner:at,RunningScripts:Ti,ScriptLogMessages:ht},data:function(){return Ri().f[0]++,Ri().s[6]++,{title:"COSMOS Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},filenameSelect:null,currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:null,scriptId:null,startOrGoButton:Oi,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:Zi,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:Ii,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:h.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){Ri().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){Ri().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){Ri().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,events:[],callback:function(){Ri().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new ii,showScripts:!1,showOverrides:!1,activePromptId:"",api:null,screens:[],screenKeywords:null,idCounter:0,updateCounter:0}},computed:{fileList:function(){Ri().f[5]++;var e=(Ri().s[7]++,Object.keys(this.files));return Ri().s[8]++,e.push(this.fullFilename),Ri().s[9]++,(0,u.Z)(new Set(e))},environmentIcon:function(){return Ri().f[6]++,Ri().s[10]++,this.scriptEnvironment.env.length>0?(Ri().b[0][0]++,"mdi-bookmark"):(Ri().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return Ri().f[7]++,Ri().s[11]++,this.scriptEnvironment.env.length>0?(Ri().b[1][0]++,"primary"):(Ri().b[1][1]++,"")},readOnly:function(){return Ri().f[8]++,Ri().s[12]++,!!this.lockedBy},fullFilename:function(){return Ri().f[9]++,Ri().s[13]++,this.currentFilename?(Ri().b[2][0]++,Ri().s[14]++,this.currentFilename):(Ri().b[2][1]++,Ri().s[15]++,this.filename===Ii?(Ri().b[3][0]++,Ri().s[16]++,Ii):(Ri().b[3][1]++,Ri().s[17]++,"".concat(this.filename," ").concat(this.fileModified).trim()))},filenameOrBlank:function(){return Ri().f[10]++,Ri().s[18]++,this.filename===Ii?(Ri().b[4][0]++,""):(Ri().b[4][1]++,this.filename)},menus:function(){var e=this;return Ri().f[11]++,Ri().s[19]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",disabled:this.scriptId,command:function(){Ri().f[12]++,Ri().s[20]++,e.newFile()}},{label:"New Ruby Test Suite",icon:"mdi-language-ruby",disabled:this.scriptId,command:function(){Ri().f[13]++,Ri().s[21]++,e.newRubyTestSuite()}},{label:"Open File",icon:"mdi-folder-open",disabled:this.scriptId,command:function(){Ri().f[14]++,Ri().s[22]++,e.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Ri().f[15]++,Ri().s[23]++,e.saveFile()}},{label:"Save As...",icon:"mdi-content-save",disabled:this.scriptId,command:function(){Ri().f[16]++,Ri().s[24]++,e.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",disabled:this.scriptId,command:function(){Ri().f[17]++,Ri().s[25]++,e.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",disabled:this.scriptId,command:function(){Ri().f[18]++,Ri().s[26]++,e.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){Ri().f[19]++,Ri().s[27]++,e.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",disabled:this.scriptId,command:function(){Ri().f[20]++,Ri().s[28]++,e.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"Execution Status",icon:"mdi-run",command:function(){Ri().f[21]++,Ri().s[29]++,e.showScripts=!0}},{divider:!0},{label:"Global Environment",icon:"mdi-library",disabled:this.scriptId,command:function(){Ri().f[22]++,Ri().s[30]++,e.showEnvironment=!e.showEnvironment}},{label:"Metadata",icon:"mdi-calendar",disabled:this.scriptId,command:function(){Ri().f[23]++,Ri().s[31]++,e.inputMetadata.callback=function(){Ri().f[24]++},Ri().s[32]++,e.showMetadata()}},{label:"Overrides",icon:"mdi-swap-horizontal",command:function(){Ri().f[25]++,Ri().s[33]++,e.showOverrides=!0}},{divider:!0},{label:"Syntax Check",icon:"mdi-language-ruby",disabled:this.scriptId,command:function(){Ri().f[26]++,Ri().s[34]++,e.syntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",disabled:this.scriptId,command:function(){Ri().f[27]++,Ri().s[35]++,e.checkMnemonics()}},{label:"Instrumented Script",icon:"mdi-code-braces-box",disabled:this.scriptId,command:function(){Ri().f[28]++,Ri().s[36]++,e.showInstrumented()}},{label:"Call Stack",icon:"mdi-format-list-numbered",disabled:!this.scriptId,command:function(){Ri().f[29]++,Ri().s[37]++,e.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){Ri().f[30]++,Ri().s[38]++,e.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",disabled:this.scriptId,command:function(){Ri().f[31]++,Ri().s[39]++,e.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",disabled:this.scriptId,command:function(){Ri().f[32]++,Ri().s[40]++,e.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return Ri().f[33]++,Ri().s[41]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear local breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(e){Ri().f[34]++,Ri().s[42]++,this.showReadOnlyToast=e,Ri().s[43]++,this.suiteRunner?Ri().b[5][1]++:(Ri().b[5][0]++,Ri().s[44]++,this.startOrGoDisabled=e),Ri().s[45]++,this.editor.setReadOnly(e)},fullFilename:function(e){Ri().f[35]++,Ri().s[46]++,this.filenameSelect=e,Ri().s[47]++,e===Ii?(Ri().b[6][0]++,Ri().s[48]++,localStorage.removeItem("script_runner__filename")):(Ri().b[6][1]++,Ri().s[49]++,localStorage["script_runner__filename"]=e)}},created:function(){var e=this;Ri().f[36]++,Ri().s[50]++,this.api=new V.k,Ri().s[51]++,this.api.ensure_offline_access(),Ri().s[52]++,this.NEW_FILENAME=Ii,Ri().s[53]++,window.onbeforeunload=this.unlockFile,Ri().s[54]++,p.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(n){Ri().f[37]++,Ri().s[55]++,e.screenKeywords=n.data}))},mounted:function(){var e=(0,c.Z)((0,r.Z)().mark((function e(){var n,t,i,l,s=this;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Ri().f[38]++,Ri().s[56]++,this.editor=h.edit(this.$refs.editor),Ri().s[57]++,this.editor.setTheme("ace/theme/twilight"),Ri().s[58]++,n=["check","check_raw","check_formatted","check_with_units","check_exception","check_tolerance","check_expression","wait","wait_tolerance","wait_expression","wait_check","wait_check_tolerance","wait_check_expression","wait_packet","wait_check_packet","disable_instrumentation","set_line_delay","get_line_delay","set_max_output","get_max_output"],Ri().s[59]++,t=this.buildOpenC3RubyMode(n),Ri().s[60]++,i=this.buildOpenC3PythonMode(n),Ri().s[61]++,this.openC3RubyMode=new t,Ri().s[62]++,this.openC3PythonMode=new i,Ri().s[63]++,this.editor.session.setMode(this.openC3RubyMode),Ri().s[64]++,this.editor.session.setTabSize(2),Ri().s[65]++,this.editor.session.setUseWrapMode(!0),Ri().s[66]++,this.editor.$blockScrolling=1/0,Ri().s[67]++,this.editor.setOption("enableBasicAutocompletion",!0),Ri().s[68]++,this.editor.setOption("enableLiveAutocompletion",!0),Ri().s[69]++,this.editor.completers=[new Yt,new Jt],Ri().s[70]++,this.editor.setHighlightActiveLine(!1),Ri().s[71]++,this.editor.focus(),Ri().s[72]++,this.editor.on("guttermousedown",this.toggleBreakpoint),Ri().s[73]++,this.editor.session.on("tokenizerUpdate",this.onChange),Ri().s[74]++,l=new Ci(this.editor),Ri().s[75]++,this.editor.session.on("change",(function(e,n){Ri().f[39]++,Ri().s[76]++,l.annotate(e,n),Ri().s[77]++,s.updateBreakpoints(e,n)})),Ri().s[78]++,window.addEventListener("keydown",this.keydown),Ri().s[79]++,this.cable=new A.Z("/script-api/cable"),Ri().s[80]++,e.next=44,this.tryLoadRunningScript(this.$route.params.id);case 44:Ri().s[81]++,this.autoSaveInterval=setInterval((0,c.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Ri().f[40]++,Ri().s[82]++,Ri().b[8][0]++,s.scriptId||(Ri().b[8][1]++,!(s.fileModified.length>0))||(Ri().b[8][2]++,"visible"!==document.visibilityState)){e.next=9;break}return Ri().b[7][0]++,Ri().s[83]++,e.next=7,s.saveFile("auto");case 7:e.next=10;break;case 9:Ri().b[7][1]++;case 10:case"end":return e.stop()}}),e)}))),6e4);case 46:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),beforeDestroy:function(){Ri().f[41]++,Ri().s[84]++,this.editor.destroy(),Ri().s[85]++,this.editor.container.remove()},destroyed:function(){Ri().f[42]++,Ri().s[86]++,this.unlockFile(),Ri().s[87]++,null!=this.autoSaveInterval?(Ri().b[9][0]++,Ri().s[88]++,clearInterval(this.autoSaveInterval)):Ri().b[9][1]++,Ri().s[89]++,this.subscription?(Ri().b[10][0]++,Ri().s[90]++,this.subscription.unsubscribe()):Ri().b[10][1]++,Ri().s[91]++,this.cable.disconnect()},beforeRouteUpdate:function(e,n,t){Ri().f[43]++,Ri().s[92]++,e.params.id?(Ri().b[11][0]++,Ri().s[93]++,this.tryLoadRunningScript(e.params.id).then(t)):(Ri().b[11][1]++,Ri().s[94]++,t())},methods:{showMetadata:function(){var e=this;Ri().f[44]++,Ri().s[95]++,p.Z.get("/openc3-api/metadata").then((function(n){Ri().f[45]++,Ri().s[96]++,e.inputMetadata.events=n.data.map((function(e){return Ri().f[46]++,Ri().s[97]++,{name:"Metadata",start:new Date(1e3*e.start),end:new Date(1e3*e.start),color:e.color,type:e.type,timed:!0,metadata:e}})),Ri().s[98]++,e.inputMetadata.show=!0}))},buildOpenC3RubyMode:function(e){Ri().f[47]++;var n=(Ri().s[99]++,h.require("ace/lib/oop")),t=(Ri().s[100]++,h.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),i=(Ri().s[101]++,Object.getOwnPropertyNames(V.k.prototype).filter((function(e){return Ri().f[48]++,Ri().s[102]++,"constructor"!==e})).filter((function(e){return Ri().f[49]++,Ri().s[103]++,"exec"!==e})).concat(e)),l=(Ri().s[104]++,new RegExp("(\\b".concat(i.join("\\b|\\b"),"\\b)")));Ri().s[105]++;var s=function(){for(var e in Ri().f[50]++,Ri().s[106]++,t.call(this),Ri().s[107]++,this.$rules)Ri().s[108]++,this.$rules[e].unshift({regex:l,token:"support.function"})};Ri().s[109]++,n.inherits(s,t);var o=(Ri().s[110]++,h.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(Ri().s[111]++,h.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(Ri().s[112]++,h.require("ace/mode/folding/ruby").FoldMode);Ri().s[113]++;var c=function(){Ri().f[51]++,Ri().s[114]++,this.HighlightRules=s,Ri().s[115]++,this.$outdent=new o,Ri().s[116]++,this.$behaviour=new a,Ri().s[117]++,this.foldingRules=new r,Ri().s[118]++,this.indentKeywords=this.foldingRules.indentKeywords},u=(Ri().s[119]++,h.require("ace/mode/ruby").Mode);return Ri().s[120]++,n.inherits(c,u),Ri().s[121]++,function(){Ri().f[52]++,Ri().s[122]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ri().s[123]++,c},buildOpenC3PythonMode:function(e){Ri().f[53]++;var n=(Ri().s[124]++,h.require("ace/lib/oop")),t=(Ri().s[125]++,h.require("ace/mode/python_highlight_rules").PythonHighlightRules),i=(Ri().s[126]++,Object.getOwnPropertyNames(V.k.prototype).filter((function(e){return Ri().f[54]++,Ri().s[127]++,"constructor"!==e})).filter((function(e){return Ri().f[55]++,Ri().s[128]++,"exec"!==e})).concat(e)),l=(Ri().s[129]++,new RegExp("(\\b".concat(i.join("\\b|\\b"),"\\b)")));Ri().s[130]++;var s=function(){for(var e in Ri().f[56]++,Ri().s[131]++,t.call(this),Ri().s[132]++,this.$rules)Ri().s[133]++,this.$rules[e].unshift({regex:l,token:"support.function"})};Ri().s[134]++,n.inherits(s,t);var o=(Ri().s[135]++,h.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),a=(Ri().s[136]++,h.require("ace/mode/behaviour/cstyle").CstyleBehaviour),r=(Ri().s[137]++,h.require("ace/mode/folding/pythonic").FoldMode);Ri().s[138]++;var c=function(){Ri().f[57]++,Ri().s[139]++,this.HighlightRules=s,Ri().s[140]++,this.$outdent=new o,Ri().s[141]++,this.$behaviour=new a,Ri().s[142]++,this.foldingRules=new r,Ri().s[143]++,this.indentKeywords=this.foldingRules.indentKeywords},u=(Ri().s[144]++,h.require("ace/mode/python").Mode);return Ri().s[145]++,n.inherits(c,u),Ri().s[146]++,function(){Ri().f[58]++,Ri().s[147]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ri().s[148]++,c},fileNameChanged:function(e){Ri().f[59]++,Ri().s[149]++,e=e.split("*")[0],Ri().s[150]++,this.editor.setValue(this.files[e].content),Ri().s[151]++,this.restoreBreakpoints(e),Ri().s[152]++,this.editor.clearSelection(),Ri().s[153]++,this.removeAllMarkers(),Ri().s[154]++,this.editor.session.addMarker(new this.Range(this.files[e].lineNo-1,0,this.files[e].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),Ri().s[155]++,this.editor.gotoLine(this.files[e].lineNo)},tryLoadRunningScript:function(e){var n=this;return Ri().f[60]++,Ri().s[156]++,p.Z.get("/script-api/running-script").then((function(t){Ri().f[61]++;var i=(Ri().s[157]++,t.data.find((function(n){return Ri().f[62]++,Ri().s[158]++,"".concat(n.id)==="".concat(e)})));Ri().s[159]++,i?(Ri().b[12][0]++,Ri().s[160]++,n.filename=i.name,Ri().s[161]++,n.tryLoadSuites(),Ri().s[162]++,n.initScriptStart(),Ri().s[163]++,n.scriptStart(i.id)):(Ri().b[12][1]++,Ri().s[164]++,e?(Ri().b[13][0]++,Ri().s[165]++,n.$notify.caution({title:"Running Script ".concat(e," not found"),body:"Check the Completed Scripts below ..."}),Ri().s[166]++,n.showScripts=!0):(Ri().b[13][1]++,Ri().s[167]++,0!==t.data.length?(Ri().b[14][0]++,Ri().s[168]++,n.alertType="success",Ri().s[169]++,n.alertText="Currently ".concat(t.data.length," running scripts."),Ri().s[170]++,n.showAlert=!0):Ri().b[14][1]++,Ri().s[171]++,localStorage["script_runner__filename"]?(Ri().b[15][0]++,Ri().s[172]++,n.filename=localStorage["script_runner__filename"],Ri().s[173]++,n.reloadFile()):Ri().b[15][1]++))}))},tryLoadSuites:function(){var e=this;Ri().f[63]++,Ri().s[174]++,p.Z.get("/script-api/scripts/".concat(this.filename)).then((function(n){Ri().f[64]++,Ri().s[175]++,n.data.suites?(Ri().b[16][0]++,Ri().s[176]++,e.startOrGoDisabled=!0,Ri().s[177]++,e.suiteRunner=!0,Ri().s[178]++,e.suiteMap=JSON.parse(n.data.suites)):Ri().b[16][1]++,Ri().s[179]++,n.data.error?(Ri().b[17][0]++,Ri().s[180]++,e.suiteError=n.data.error,Ri().s[181]++,e.showSuiteError=!0):Ri().b[17][1]++,Ri().s[182]++,e.disableSuiteButtons=0==n.data.success}))},showExecuteSelectionMenu:function(e){Ri().f[65]++,Ri().s[183]++,this.menuX=e.pageX,Ri().s[184]++,this.menuY=e.pageY,Ri().s[185]++,this.executeSelectionMenu=!0},runFromCursor:function(){Ri().f[66]++;var e=(Ri().s[186]++,this.editor.getCursorPosition().row),n=(Ri().s[187]++,this.editor.session.doc.getLines(e,this.editor.session.doc.getLength()).join("\n")),t=(Ri().s[188]++,this.getBreakpointRows().filter((function(n){return Ri().f[67]++,Ri().s[189]++,n>=e})).map((function(n){return Ri().f[68]++,Ri().s[190]++,n-e})));Ri().s[191]++,this.executeText(n,t)},executeSelection:function(){Ri().f[69]++;var e=(Ri().s[192]++,this.editor.getSelectedText()),n=(Ri().s[193]++,this.editor.getSelectionRange()),t=(Ri().s[194]++,this.getBreakpointRows().filter((function(e){return Ri().f[70]++,Ri().s[195]++,Ri().b[18][0]++,e<=n.end.row&&(Ri().b[18][1]++,e>=n.start.row)})).map((function(e){return Ri().f[71]++,Ri().s[196]++,e-n.start.row})));Ri().s[197]++,this.executeText(e,t)},executeText:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ri().b[19][0]++,[]);Ri().f[72]++;var i=(Ri().s[198]++,Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");Ri().s[199]++,p.Z.post("/script-api/scripts/".concat(i),{data:{text:e,breakpoints:t}}).then((function(e){return Ri().f[73]++,Ri().s[200]++,p.Z.post("/script-api/scripts/".concat(i,"/run"),{data:{environment:n.scriptEnvironment.env}})})).then((function(e){Ri().f[74]++,Ri().s[201]++,window.open("/tools/scriptrunner/".concat(e.data))}))},clearBreakpoints:function(){Ri().f[75]++,Ri().s[202]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(e){if(Ri().f[76]++,Ri().s[203]++,this.scriptId)Ri().b[20][1]++;else{Ri().b[20][0]++;var n=(Ri().s[204]++,e.getDocumentPosition().row);Ri().s[205]++,e.editor.session.getBreakpoints(n,0)[n]?(Ri().b[21][0]++,Ri().s[206]++,e.editor.session.clearBreakpoint(n)):(Ri().b[21][1]++,Ri().s[207]++,e.editor.session.setBreakpoint(n))}},updateBreakpoints:function(e,n){if(Ri().f[77]++,Ri().s[208]++,e.lines.length<=1)return Ri().b[22][0]++,void Ri().s[209]++;Ri().b[22][1]++;var t=(Ri().s[210]++,this.getBreakpointRows(n).filter((function(n){return Ri().f[78]++,Ri().s[211]++,Ri().b[23][0]++,0===e.start.column&&(Ri().b[23][1]++,n===e.start.row)||(Ri().b[23][2]++,n>e.start.row)}))),i=(Ri().s[212]++,[]),l=(Ri().s[213]++,0);switch(Ri().s[214]++,e.action){case"insert":Ri().b[24][0]++,Ri().s[215]++,l=e.lines.length-1,Ri().s[216]++,t.reverse(),Ri().s[217]++;break;case"remove":Ri().b[24][1]++,Ri().s[218]++,l=1-e.lines.length,Ri().s[219]++,i=(0,u.Z)(Array(e.lines.length).keys()).map((function(n){return Ri().f[79]++,Ri().s[220]++,n+e.start.row})),Ri().s[221]++;break}Ri().s[222]++,t.forEach((function(e){Ri().f[80]++,Ri().s[223]++,n.clearBreakpoint(e),Ri().s[224]++,i.includes(e)?Ri().b[25][1]++:(Ri().b[25][0]++,Ri().s[225]++,n.setBreakpoint(e+l))}))},getBreakpointRows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ri().b[26][0]++,this.editor.session);return Ri().f[81]++,Ri().s[226]++,e.getBreakpoints().map((function(e,n){return Ri().f[82]++,Ri().s[227]++,Ri().b[27][0]++,e&&(Ri().b[27][1]++,n)})).filter(Number.isInteger)},restoreBreakpoints:function(e){var n,t=this;Ri().f[83]++,Ri().s[228]++,this.clearBreakpoints(),Ri().s[229]++,null===(n=this.breakpoints[e])||void 0===n||n.forEach((function(e){Ri().f[84]++,Ri().s[230]++,t.editor.session.setBreakpoint(e)}))},deleteAllBreakpoints:function(){var e=this;Ri().f[85]++,Ri().s[231]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Ri().f[86]++,Ri().s[232]++,p.Z.delete("/script-api/breakpoints/delete/all")})).then((function(n){Ri().f[87]++,Ri().s[233]++,e.clearBreakpoints()}))},suiteRunnerButton:function(e){Ri().f[88]++,Ri().s[234]++,this.startOrGoButton===Oi?(Ri().b[28][0]++,Ri().s[235]++,this.start(e,"suiteRunner")):(Ri().b[28][1]++,Ri().s[236]++,this.go(e,"suiteRunner"))},keydown:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ri().f[89]++,Ri().s[237]++,Ri().b[30][0]++,!e.metaKey&&(Ri().b[30][1]++,!e.ctrlKey)||(Ri().b[30][2]++,e.keyCode!=="S".charCodeAt(0))){t.next=11;break}return Ri().b[29][0]++,Ri().s[238]++,e.preventDefault(),Ri().s[239]++,t.next=9,n.saveFile();case 9:t.next=14;break;case 11:Ri().b[29][1]++,Ri().s[240]++,Ri().b[32][0]++,(e.metaKey||(Ri().b[32][1]++,e.ctrlKey))&&(Ri().b[32][2]++,e.shiftKey)&&(Ri().b[32][3]++,e.keyCode==="S".charCodeAt(0))?(Ri().b[31][0]++,Ri().s[241]++,e.preventDefault(),Ri().s[242]++,n.saveAs()):Ri().b[31][1]++;case 14:case"end":return t.stop()}}),t)})))()},onChange:function(e){if(Ri().f[90]++,Ri().s[243]++,Ri().b[34][0]++,this.scriptId||(Ri().b[34][1]++,!0===this.editor.getReadOnly()))return Ri().b[33][0]++,void Ri().s[244]++;Ri().b[33][1]++,Ri().s[245]++,this.editor.session.getUndoManager().canUndo()?(Ri().b[35][0]++,Ri().s[246]++,this.fileModified="*"):(Ri().b[35][1]++,Ri().s[247]++,this.fileModified="")},checkMnemonics:function(){var e=this;Ri().f[91]++,Ri().s[248]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(n){var t=n.skipped,i=n.problems;Ri().f[92]++;var l=(Ri().s[249]++,"");if(Ri().s[250]++,i.length){Ri().b[36][0]++;var s=(Ri().s[251]++,i.map((function(e){return Ri().f[93]++,Ri().s[252]++,"".concat(e.lineNumber,": ").concat(e.error)})).join("<br/>"));Ri().s[253]++,l+="<strong>The following lines have problems:</strong><br/>".concat(s,"<br/><br/>")}else Ri().b[36][1]++;Ri().s[254]++,t.length?(Ri().b[37][0]++,Ri().s[255]++,l+="<strong>Mnemonics with string interpolation were not checked.</strong>"):Ri().b[37][1]++,Ri().s[256]++,""===l?(Ri().b[38][0]++,Ri().s[257]++,l="<strong>Everything looks good!</strong>"):Ri().b[38][1]++,Ri().s[258]++,e.$dialog.alert(l.trim(),{html:!0})}))},initScriptStart:function(){Ri().f[94]++,Ri().s[259]++,this.disableSuiteButtons=!0,Ri().s[260]++,this.startOrGoDisabled=!0,Ri().s[261]++,this.envDisabled=!0,Ri().s[262]++,this.pauseOrRetryDisabled=!0,Ri().s[263]++,this.stopDisabled=!0,Ri().s[264]++,this.state="Connecting...",Ri().s[265]++,this.startOrGoButton=Ni,Ri().s[266]++,this.editor.setReadOnly(!0)},scriptStart:function(e){var n=this;Ri().f[95]++,Ri().s[267]++,this.scriptId=e,Ri().s[268]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(e){return Ri().f[96]++,Ri().s[269]++,n.received(e)}},{id:this.scriptId}).then((function(e){Ri().f[97]++,Ri().s[270]++,n.subscription=e}))},scriptComplete:function(){Ri().f[98]++,Ri().s[271]++,this.disableSuiteButtons=!1,Ri().s[272]++,this.startOrGoButton=Oi,Ri().s[273]++,this.pauseOrRetryButton=Zi,Ri().s[274]++,this.startOrGoDisabled=this.suiteRunner,Ri().s[275]++,this.envDisabled=!1,Ri().s[276]++,this.pauseOrRetryDisabled=!0,Ri().s[277]++,this.stopDisabled=!0,Ri().s[278]++,this.state="stopped",Ri().s[279]++,this.fatal=!1,Ri().s[280]++,this.scriptId=null,Ri().s[281]++,this.currentFilename=null,Ri().s[282]++,this.editor.session.getUndoManager().reset(),Ri().s[283]++,this.editor.setReadOnly(!1)},environmentHandler:function(e){Ri().f[99]++,Ri().s[284]++,this.scriptEnvironment.env=e},startHandler:function(){Ri().f[100]++,Ri().s[285]++,this.start()},start:function(e){var n=arguments,t=this;return(0,c.Z)((0,r.Z)().mark((function i(){var l,s,o,a;return(0,r.Z)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return l=n.length>1&&void 0!==n[1]?n[1]:(Ri().b[39][0]++,null),Ri().f[101]++,Ri().s[286]++,t.initScriptStart(),Ri().s[287]++,i.next=7,t.saveFile("start");case 7:Ri().s[288]++,s=t.filename,Ri().s[289]++,t.filename===Ii?(Ri().b[40][0]++,Ri().s[290]++,s=t.tempFilename):Ri().b[40][1]++,Ri().s[291]++,o="/script-api/scripts/".concat(s,"/run"),Ri().s[292]++,t.showDisconnect?(Ri().b[41][0]++,Ri().s[293]++,o+="/disconnect"):Ri().b[41][1]++,Ri().s[294]++,a={environment:t.scriptEnvironment.env},Ri().s[295]++,l?(Ri().b[42][0]++,Ri().s[296]++,a["suiteRunner"]=e):Ri().b[42][1]++,Ri().s[297]++,p.Z.post(o,{data:a}).then((function(e){Ri().f[102]++,Ri().s[298]++,t.scriptStart(e.data)})).catch((function(e){Ri().f[103]++,Ri().s[299]++,t.scriptComplete()}));case 18:case"end":return i.stop()}}),i)})))()},go:function(){Ri().f[104]++,Ri().s[300]++,this.filenameSelect=this.currentFilename,Ri().s[301]++,this.fileNameChanged(this.currentFilename),Ri().s[302]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){Ri().f[105]++,Ri().s[303]++,this.pauseOrRetryButton===Zi?(Ri().b[43][0]++,Ri().s[304]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(Ri().b[43][1]++,Ri().s[305]++,this.pauseOrRetryButton=Zi,Ri().s[306]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){Ri().f[106]++,Ri().s[307]++,this.fatal?(Ri().b[44][0]++,Ri().s[308]++,this.removeAllMarkers(),Ri().s[309]++,this.scriptComplete()):(Ri().b[44][1]++,Ri().s[310]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){Ri().f[107]++,Ri().s[311]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(e){var n=this;Ri().f[108]++,Ri().s[312]++,this.cable.recordPing();var t=(Ri().s[313]++,0);switch(Ri().s[314]++,e.type){case"file":Ri().b[45][0]++,Ri().s[315]++,this.files[e.filename]={content:e.text,lineNo:0},Ri().s[316]++,this.breakpoints[e.filename]=e.breakpoints,Ri().s[317]++,this.currentFilename===e.filename?(Ri().b[46][0]++,Ri().s[318]++,this.restoreBreakpoints(e.filename)):Ri().b[46][1]++,Ri().s[319]++;break;case"line":Ri().b[45][1]++,Ri().s[320]++,Ri().b[48][0]++,e.filename&&(Ri().b[48][1]++,e.filename!==this.currentFilename)?(Ri().b[47][0]++,Ri().s[321]++,this.files[e.filename]?(Ri().b[49][1]++,Ri().s[329]++,this.editor.setValue(this.files[e.filename].content),Ri().s[330]++,this.restoreBreakpoints(e.filename),Ri().s[331]++,this.editor.clearSelection(),Ri().s[332]++,this.currentFilename=e.filename):(Ri().b[49][0]++,Ri().s[322]++,this.files[e.filename]={content:"",lineNo:0},Ri().s[323]++,p.Z.get("/script-api/scripts/".concat(e.filename)).then((function(t){Ri().f[109]++,Ri().s[324]++,n.files[e.filename]={content:t.data.contents,lineNo:0},Ri().s[325]++,n.breakpoints[e.filename]=t.data.breakpoints,Ri().s[326]++,n.restoreBreakpoints(e.filename),Ri().s[327]++,n.currentFilename=null})).catch((function(t){Ri().f[110]++,Ri().s[328]++,n.files[e.filename]=null})))):Ri().b[47][1]++,Ri().s[333]++,this.state=e.state;var i=(Ri().s[334]++,this.editor.session.getMarkers());switch(Ri().s[335]++,this.state){case"running":Ri().b[50][0]++,Ri().s[336]++,this.startOrGoDisabled=!1,Ri().s[337]++,this.pauseOrRetryDisabled=!1,Ri().s[338]++,this.stopDisabled=!1,Ri().s[339]++,this.pauseOrRetryButton=Zi,Ri().s[340]++,this.removeAllMarkers(),Ri().s[341]++,this.editor.session.addMarker(new this.Range(e.line_no-1,0,e.line_no-1,1),"runningMarker","fullLine"),Ri().s[342]++,this.editor.gotoLine(e.line_no),Ri().s[343]++,this.files[e.filename].lineNo=e.line_no,Ri().s[344]++;break;case"fatal":Ri().b[50][1]++,Ri().s[345]++,this.fatal=!0;case"error":Ri().b[50][2]++,Ri().s[346]++,this.pauseOrRetryButton=Li;case"breakpoint":Ri().b[50][3]++;case"waiting":Ri().b[50][4]++;case"paused":Ri().b[50][5]++,Ri().s[347]++,"fatal"==this.state?(Ri().b[51][0]++,Ri().s[348]++,this.startOrGoDisabled=!0,Ri().s[349]++,this.pauseOrRetryDisabled=!0):(Ri().b[51][1]++,Ri().s[350]++,this.startOrGoDisabled=!1,Ri().s[351]++,this.pauseOrRetryDisabled=!1),Ri().s[352]++,this.stopDisabled=!1;var l=(Ri().s[353]++,Object.keys(i).filter((function(e){return Ri().f[111]++,Ri().s[354]++,i[e].clazz==="".concat(n.state,"Marker")})));if(Ri().s[355]++,0===l.length){Ri().b[52][0]++,Ri().s[356]++,this.removeAllMarkers();var s=(Ri().s[357]++,e.line_no>0?(Ri().b[53][0]++,e.line_no):(Ri().b[53][1]++,1));Ri().s[358]++,this.editor.session.addMarker(new this.Range(s-1,0,s-1,1),"".concat(this.state,"Marker"),"fullLine"),Ri().s[359]++,this.editor.gotoLine(s),Ri().s[360]++,e.filename?(Ri().b[54][0]++,Ri().s[361]++,this.files[e.filename].lineNo=s):Ri().b[54][1]++}else Ri().b[52][1]++;Ri().s[362]++;break;default:Ri().b[50][6]++,Ri().s[363]++;break}Ri().s[364]++;break;case"output":Ri().b[45][2]++,Ri().s[365]++;var o,r=(0,a.Z)(e.line.split("\n"));try{for(r.s();!(o=r.n()).done;){var c=o.value;Ri().s[366]++,c?(Ri().b[55][0]++,Ri().s[367]++,this.messages.unshift({message:c})):Ri().b[55][1]++}}catch(b){r.e(b)}finally{r.f()}Ri().s[368]++;while(this.messages.length>this.maxArrayLength)Ri().s[369]++,this.messages.pop();Ri().s[370]++;break;case"script":Ri().b[45][3]++,Ri().s[371]++,this.handleScript(e),Ri().s[372]++;break;case"report":Ri().b[45][4]++,Ri().s[373]++,this.results.text=e.report,Ri().s[374]++,this.results.show=!0,Ri().s[375]++;break;case"complete":Ri().b[45][5]++,Ri().s[376]++,this.fatal?Ri().b[56][1]++:(Ri().b[56][0]++,Ri().s[377]++,this.removeAllMarkers(),Ri().s[378]++,this.scriptComplete()),Ri().s[379]++;break;case"step":Ri().b[45][6]++,Ri().s[380]++,this.showDebug=!0,Ri().s[381]++;break;case"screen":Ri().b[45][7]++;var u=(Ri().s[382]++,!1),d=(Ri().s[383]++,{});Ri().s[384]++;var m,A=(0,a.Z)(this.screens);try{for(A.s();!(m=A.n()).done;){if(screen=m.value,Ri().s[385]++,Ri().b[58][0]++,screen.target==e.target_name&&(Ri().b[58][1]++,screen.screen==e.screen_name)){Ri().b[57][0]++,Ri().s[386]++,d=screen,Ri().s[387]++,u=!0,Ri().s[388]++;break}Ri().b[57][1]++,Ri().s[389]++,t+=1}}catch(b){A.e(b)}finally{A.f()}Ri().s[390]++,this.$set(d,"target",e.target_name),Ri().s[391]++,this.$set(d,"screen",e.screen_name),Ri().s[392]++,this.$set(d,"definition",e.definition),Ri().s[393]++,e.x?(Ri().b[59][0]++,Ri().s[394]++,this.$set(d,"left",e.x)):(Ri().b[59][1]++,Ri().s[395]++,this.$set(d,"left",0)),Ri().s[396]++,e.y?(Ri().b[60][0]++,Ri().s[397]++,this.$set(d,"top",e.y)):(Ri().b[60][1]++,Ri().s[398]++,this.$set(d,"top",0)),Ri().s[399]++,this.$set(d,"count",this.updateCounter++),Ri().s[400]++,u?(Ri().b[61][1]++,Ri().s[403]++,this.$set(this.screens,t,d)):(Ri().b[61][0]++,Ri().s[401]++,this.$set(d,"id",this.idCounter++),Ri().s[402]++,this.$set(this.screens,this.screens.length,d)),Ri().s[404]++;break;case"clearscreen":Ri().b[45][8]++,Ri().s[405]++;var h,f=(0,a.Z)(this.screens);try{for(f.s();!(h=f.n()).done;){if(screen=h.value,Ri().s[406]++,Ri().b[63][0]++,screen.target==e.target_name&&(Ri().b[63][1]++,screen.screen==e.screen_name)){Ri().b[62][0]++,Ri().s[407]++,this.screens.splice(t,1),Ri().s[408]++;break}Ri().b[62][1]++,Ri().s[409]++,t+=1}}catch(b){f.e(b)}finally{f.f()}Ri().s[410]++;break;case"clearallscreens":Ri().b[45][9]++,Ri().s[411]++,this.screens=[],Ri().s[412]++;break;case"downloadfile":Ri().b[45][10]++;var v=(Ri().s[413]++,new Blob([e.text],{type:"text/plain"})),g=(Ri().s[414]++,document.createElement("a"));Ri().s[415]++,g.href=URL.createObjectURL(v),Ri().s[416]++,g.setAttribute("download",e.filename),Ri().s[417]++,g.click(),Ri().s[418]++;break;default:Ri().b[45][11]++,Ri().s[419]++;break}},promptDialogCallback:function(e){Ri().f[112]++,Ri().s[420]++,this.prompt.show=!1,Ri().s[421]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:e,prompt_id:this.activePromptId,multiple:this.prompt.multiple}})},handleScript:function(e){var n=this;if(Ri().f[113]++,Ri().s[422]++,e.prompt_complete)return Ri().b[64][0]++,Ri().s[423]++,this.activePromptId="",Ri().s[424]++,this.prompt.show=!1,Ri().s[425]++,this.ask.show=!1,void Ri().s[426]++;switch(Ri().b[64][1]++,Ri().s[427]++,this.activePromptId=e.prompt_id,Ri().s[428]++,this.prompt.method=e.method,Ri().s[429]++,this.prompt.layout="horizontal",Ri().s[430]++,this.prompt.title="Prompt",Ri().s[431]++,this.prompt.subtitle="",Ri().s[432]++,this.prompt.details="",Ri().s[433]++,this.prompt.buttons=[],Ri().s[434]++,this.prompt.multiple=null,Ri().s[435]++,e.method){case"ask":Ri().b[65][0]++;case"ask_string":Ri().b[65][1]++,Ri().s[436]++,this.ask.default=null,Ri().s[437]++,this.ask.answerRequired=!0,Ri().s[438]++,this.ask.password=!1,Ri().s[439]++,this.ask.question=e.args[0],Ri().s[440]++,Ri().b[67][0]++,e.args[1]&&(Ri().b[67][1]++,!0!==e.args[1])&&(Ri().b[67][2]++,!1!==e.args[1])?(Ri().b[66][0]++,Ri().s[441]++,this.ask.default=e.args[1].toString()):(Ri().b[66][1]++,Ri().s[442]++,!0===e.args[1]?(Ri().b[68][0]++,Ri().s[443]++,this.ask.answerRequired=!1):Ri().b[68][1]++),Ri().s[444]++,!0===e.args[2]?(Ri().b[69][0]++,Ri().s[445]++,this.ask.password=!0):Ri().b[69][1]++,Ri().s[446]++,this.ask.callback=function(t){Ri().f[114]++,Ri().s[447]++,n.ask.show=!1,Ri().s[448]++,n.ask.password?(Ri().b[70][0]++,Ri().s[449]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,password:t,prompt_id:n.activePromptId}})):(Ri().b[70][1]++,Ri().s[450]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}}))},Ri().s[451]++,this.ask.show=!0,Ri().s[452]++;break;case"prompt_for_hazardous":Ri().b[65][2]++,Ri().s[453]++,this.prompt.title="Hazardous Command",Ri().s[454]++,this.prompt.message="Warning: Command ".concat(e.args[0]," ").concat(e.args[1]," is Hazardous. "),Ri().s[455]++,e.args[2]?(Ri().b[71][0]++,Ri().s[456]++,this.prompt.message+=e.args[2]+" "):Ri().b[71][1]++,Ri().s[457]++,this.prompt.message+="Send?",Ri().s[458]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],Ri().s[459]++,this.prompt.callback=this.promptDialogCallback,Ri().s[460]++,this.prompt.show=!0,Ri().s[461]++;break;case"prompt":Ri().b[65][3]++,Ri().s[462]++,Ri().b[73][0]++,e.kwargs&&(Ri().b[73][1]++,e.kwargs.informative)?(Ri().b[72][0]++,Ri().s[463]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[72][1]++,Ri().s[464]++,Ri().b[75][0]++,e.kwargs&&(Ri().b[75][1]++,e.kwargs.details)?(Ri().b[74][0]++,Ri().s[465]++,this.prompt.details=e.kwargs.details):Ri().b[74][1]++,Ri().s[466]++,this.prompt.message=e.args[0],Ri().s[467]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],Ri().s[468]++,this.prompt.callback=this.promptDialogCallback,Ri().s[469]++,this.prompt.show=!0,Ri().s[470]++;break;case"combo_box":Ri().b[65][4]++,Ri().s[471]++,Ri().b[77][0]++,e.kwargs&&(Ri().b[77][1]++,e.kwargs.informative)?(Ri().b[76][0]++,Ri().s[472]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[76][1]++,Ri().s[473]++,Ri().b[79][0]++,e.kwargs&&(Ri().b[79][1]++,e.kwargs.details)?(Ri().b[78][0]++,Ri().s[474]++,this.prompt.details=e.kwargs.details):Ri().b[78][1]++,Ri().s[475]++,Ri().b[81][0]++,e.kwargs&&(Ri().b[81][1]++,e.kwargs.multiple)?(Ri().b[80][0]++,Ri().s[476]++,this.prompt.multiple=!0):Ri().b[80][1]++,Ri().s[477]++,this.prompt.message=e.args[0],Ri().s[478]++,e.args.slice(1).forEach((function(e){Ri().f[115]++,Ri().s[479]++,n.prompt.buttons.push({text:e,value:e})})),Ri().s[480]++,this.prompt.layout="combo",Ri().s[481]++,this.prompt.callback=this.promptDialogCallback,Ri().s[482]++,this.prompt.show=!0,Ri().s[483]++;break;case"message_box":Ri().b[65][5]++;case"vertical_message_box":Ri().b[65][6]++,Ri().s[484]++,Ri().b[83][0]++,e.kwargs&&(Ri().b[83][1]++,e.kwargs.informative)?(Ri().b[82][0]++,Ri().s[485]++,this.prompt.subtitle=e.kwargs.informative):Ri().b[82][1]++,Ri().s[486]++,Ri().b[85][0]++,e.kwargs&&(Ri().b[85][1]++,e.kwargs.details)?(Ri().b[84][0]++,Ri().s[487]++,this.prompt.details=e.kwargs.details):Ri().b[84][1]++,Ri().s[488]++,this.prompt.message=e.args[0],Ri().s[489]++,e.args.slice(1).forEach((function(e){Ri().f[116]++,Ri().s[490]++,n.prompt.buttons.push({text:e,value:e})})),Ri().s[491]++,e.method.includes("vertical")?(Ri().b[86][0]++,Ri().s[492]++,this.prompt.layout="vertical"):Ri().b[86][1]++,Ri().s[493]++,this.prompt.callback=this.promptDialogCallback,Ri().s[494]++,this.prompt.show=!0,Ri().s[495]++;break;case"backtrace":Ri().b[65][7]++,Ri().s[496]++,this.information.title="Call Stack",Ri().s[497]++,this.information.text=e.args,Ri().s[498]++,this.information.show=!0,Ri().s[499]++;break;case"metadata_input":Ri().b[65][8]++,Ri().s[500]++,this.inputMetadata.callback=function(t){Ri().f[117]++,Ri().s[501]++,n.inputMetadata.show=!1,Ri().s[502]++,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:e.method,answer:t,prompt_id:n.activePromptId}})},Ri().s[503]++,this.showMetadata(),Ri().s[504]++;break;case"open_file_dialog":Ri().b[65][9]++;case"open_files_dialog":Ri().b[65][10]++,Ri().s[505]++,this.file.title=e.args[0],Ri().s[506]++,this.file.message=e.args[1],Ri().s[507]++,Ri().b[88][0]++,e.kwargs&&(Ri().b[88][1]++,e.kwargs.filter)?(Ri().b[87][0]++,Ri().s[508]++,this.file.filter=e.kwargs.filter):Ri().b[87][1]++,Ri().s[509]++,"open_files_dialog"==e.method?(Ri().b[89][0]++,Ri().s[510]++,this.file.multiple=!0):Ri().b[89][1]++,Ri().s[511]++,this.file.show=!0,Ri().s[512]++;break;default:Ri().b[65][11]++,Ri().s[513]++;break}},fileDialogCallback:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ri().f[118]++,Ri().s[514]++,n.file.show=!1,Ri().s[515]++,i="Cancel",Ri().s[516]++,"Cancel"==e){t.next=14;break}return Ri().b[90][0]++,Ri().s[517]++,i=[],Ri().s[518]++,t.next=12,e.forEach(function(){var e=(0,c.Z)((0,r.Z)().mark((function e(n){var t,l;return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Ri().f[119]++,Ri().s[519]++,i.push(n.name),Ri().s[520]++,e.next=6,p.Z.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(window.openc3Scope,"/tmp/").concat(n.name)),"?bucket=OPENC3_CONFIG_BUCKET"));case 6:return t=e.sent,l=t.data,Ri().s[521]++,e.next=11,m()((0,o.Z)((0,o.Z)({},l),{},{data:n}));case 11:e.sent;case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 12:t.next=15;break;case 14:Ri().b[90][1]++;case 15:return Ri().s[522]++,t.next=18,p.Z.post("/script-api/running-script/".concat(n.scriptId,"/prompt"),{data:{method:n.file.multiple?(Ri().b[91][0]++,"open_files_dialog"):(Ri().b[91][1]++,"open_file_dialog"),answer:i,prompt_id:n.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(e){Ri().f[120]++,Ri().s[523]++,this.alertType="error",Ri().s[524]++,this.alertText="Error: ".concat(e),Ri().s[525]++,this.showAlert=!0},newFile:function(){Ri().f[121]++,Ri().s[526]++,this.unlockFile(),Ri().s[527]++,this.filename=Ii,Ri().s[528]++,this.currentFilename=null,Ri().s[529]++,this.tempFilename=null,Ri().s[530]++,this.files={},Ri().s[531]++,this.editor.session.setValue(""),Ri().s[532]++,this.fileModified="",Ri().s[533]++,this.suiteRunner=!1,Ri().s[534]++,this.startOrGoDisabled=!1,Ri().s[535]++,this.envDisabled=!1},newRubyTestSuite:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ri().f[122]++,Ri().s[536]++,e.newFile(),Ri().s[537]++,e.editor.session.setValue("require 'openc3/script/suite.rb'\n\n# Group class name should indicate what the scripts are testing\nclass Power < OpenC3::Group\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on\n configure()\n end\n\n # Other methods are not added to Script dropdown\n def configure\n end\n\n def setup\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n end\n\n def teardown\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n end\nend\n\nclass TestSuite < OpenC3::Suite\n def initialize\n add_group('Power')\n end\n def setup\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n end\n def teardown\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n end\nend\n"),Ri().s[538]++,n.next=8,e.saveFile("auto");case 8:case"end":return n.stop()}}),n)})))()},newPythonTestSuite:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ri().f[123]++,Ri().s[539]++,e.newFile(),Ri().s[540]++,e.editor.session.setValue("from openc3.script import *\nfrom openc3.script.suite import Suite, Group\n\n# Group class name should indicate what the scripts are testing\nclass Power(Group):\n # Methods beginning with script_ are added to Script dropdown\n def script_power_on(self):\n self.configure()\n\n # Other methods are not added to Script dropdown\n def configure(self):\n pass\n\n def setup(self):\n # Run when Group Setup button is pressed\n # Run before all scripts when Group Start is pressed\n pass\n\n def teardown(self):\n # Run when Group Teardown button is pressed\n # Run after all scripts when Group Start is pressed\n pass\n\nclass TestSuite(Suite):\n def __init__(self):\n self.add_group('Power')\n\n def setup(self):\n # Run when Suite Setup button is pressed\n # Run before all groups when Suite Start is pressed\n pass\n\n def teardown(self):\n # Run when Suite Teardown button is pressed\n # Run after all groups when Suite Start is pressed\n pass\n"),Ri().s[541]++,n.next=8,e.saveFile("auto");case 8:case"end":return n.stop()}}),n)})))()},openFile:function(){Ri().f[124]++,Ri().s[542]++,this.fileOpen=!0},reloadFile:function(){var e=this;return(0,c.Z)((0,r.Z)().mark((function n(){return(0,r.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:Ri().f[125]++,Ri().s[543]++,e.startOrGoDisabled=!0,Ri().s[544]++,p.Z.get("/script-api/scripts/".concat(e.filename)).then((function(n){Ri().f[126]++;var t=(Ri().s[545]++,{name:e.filename,contents:n.data.contents});Ri().s[546]++,n.data.suites?(Ri().b[92][0]++,Ri().s[547]++,t["suites"]=JSON.parse(n.data.suites)):Ri().b[92][1]++,Ri().s[548]++,n.data.error?(Ri().b[93][0]++,Ri().s[549]++,t["error"]=n.data.error):Ri().b[93][1]++,Ri().s[550]++,n.data.success?(Ri().b[94][0]++,Ri().s[551]++,t["success"]=n.data.success):Ri().b[94][1]++;var i=(Ri().s[552]++,n.data.locked),l=(Ri().s[553]++,n.data.breakpoints);Ri().s[554]++,e.setFile({file:t,locked:i,breakpoints:l},!0)})).catch((function(n){Ri().f[127]++,Ri().s[555]++,e.$emit("error","Failed to open ".concat(e.selectedFile,". ").concat(n)),Ri().s[556]++,e.clear()}));case 5:case"end":return n.stop()}}),n)})))()},setFile:function(e){var n=e.file,t=e.locked,i=e.breakpoints,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ri().b[95][0]++,!1);Ri().f[128]++,Ri().s[557]++,this.files={};var s=(Ri().s[558]++,n.name.split("*")[0]);Ri().s[559]++,!1===l?(Ri().b[96][0]++,Ri().s[560]++,this.filename!==s?(Ri().b[97][0]++,Ri().s[561]++,this.unlockFile(),Ri().s[562]++,this.lockedBy=t):Ri().b[97][1]++):Ri().b[96][1]++,Ri().s[563]++,this.filename=s,Ri().s[564]++,"py"===this.filename.split(".").pop()?(Ri().b[98][0]++,Ri().s[565]++,this.editor.session.setMode(this.openC3PythonMode)):(Ri().b[98][1]++,Ri().s[566]++,this.editor.session.setMode(this.openC3RubyMode)),Ri().s[567]++,this.currentFilename=null,Ri().s[568]++,this.editor.session.setValue(n.contents),Ri().s[569]++,this.breakpoints[filename]=i,Ri().s[570]++,this.restoreBreakpoints(filename),Ri().s[571]++,this.fileModified="",Ri().s[572]++,this.envDisabled=!1,Ri().s[573]++,n.suites?(Ri().b[99][0]++,Ri().s[574]++,this.suiteRunner=!0,Ri().s[575]++,this.suiteMap=n.suites,Ri().s[576]++,this.startOrGoDisabled=!0):(Ri().b[99][1]++,Ri().s[577]++,this.suiteRunner=!1,Ri().s[578]++,this.startOrGoDisabled=!1),Ri().s[579]++,n.error?(Ri().b[100][0]++,Ri().s[580]++,this.suiteError=n.error,Ri().s[581]++,this.showSuiteError=!0):Ri().b[100][1]++,Ri().s[582]++,this.disableSuiteButtons=0==n.success},detectLanguage:function(){Ri().f[129]++;var e=(Ri().s[583]++,new RegExp("^\\s*(require|load|puts) ")),n=(Ri().s[584]++,new RegExp("^\\s*(import|from) ")),t=(Ri().s[585]++,new RegExp("^\\s*end\\s*$")),i=(Ri().s[586]++,new RegExp("^\\s*(if|def|while|else|elif|class).*:\\s*$")),l=(Ri().s[587]++,this.editor.getValue()),s=(Ri().s[588]++,l.split("\n"));Ri().s[589]++;var o,r=(0,a.Z)(s);try{for(r.s();!(o=r.n()).done;){var c=o.value;if(Ri().s[590]++,c.match(e))return Ri().b[101][0]++,Ri().s[591]++,"ruby";if(Ri().b[101][1]++,Ri().s[592]++,c.match(n))return Ri().b[102][0]++,Ri().s[593]++,"python";if(Ri().b[102][1]++,Ri().s[594]++,c.match(t))return Ri().b[103][0]++,Ri().s[595]++,"ruby";if(Ri().b[103][1]++,Ri().s[596]++,c.match(i))return Ri().b[104][0]++,Ri().s[597]++,"python";Ri().b[104][1]++}}catch(u){r.e(u)}finally{r.f()}return Ri().s[598]++,"unknown"},saveFile:function(){var e=arguments,n=this;return(0,c.Z)((0,r.Z)().mark((function t(){var i,l,s;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:(Ri().b[105][0]++,"menu"),Ri().f[130]++,Ri().s[599]++,l=n.getBreakpointRows(),Ri().s[600]++,n.filename!==Ii){t.next=45;break}if(Ri().b[106][0]++,Ri().s[601]++,"menu"!==i){t.next=15;break}return Ri().b[107][0]++,Ri().s[602]++,n.saveAs(),Ri().s[603]++,t.abrupt("return");case 15:if(Ri().b[107][1]++,Ri().s[604]++,null!==n.tempFilename){t.next=42;break}if(Ri().b[108][0]++,Ri().s[605]++,s=n.detectLanguage(),Ri().s[606]++,Ri().b[110][0]++,"ruby"!==s&&(Ri().b[110][1]++,"auto"===i||(Ri().b[110][2]++,"unknown"!=s))){t.next=27;break}Ri().b[109][0]++,Ri().s[607]++,n.tempFilename=Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb",t.next=38;break;case 27:if(Ri().b[109][1]++,Ri().s[608]++,"python"!==s){t.next=35;break}Ri().b[111][0]++,Ri().s[609]++,n.tempFilename=Di+"/"+(0,f.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.py",t.next=38;break;case 35:return Ri().b[111][1]++,Ri().s[610]++,t.abrupt("return");case 38:Ri().s[611]++,n.filename=n.tempFilename,t.next=43;break;case 42:Ri().b[108][1]++;case 43:t.next=46;break;case 45:Ri().b[106][1]++;case 46:return Ri().s[612]++,n.showSave=!0,Ri().s[613]++,t.next=51,p.Z.post("/script-api/scripts/".concat(n.filename),{data:{text:n.editor.getValue(),breakpoints:l}}).then((function(e){Ri().f[131]++,Ri().s[614]++,200==e.status?(Ri().b[112][0]++,Ri().s[615]++,e.data.suites?(Ri().b[113][0]++,Ri().s[616]++,n.startOrGoDisabled=!0,Ri().s[617]++,n.suiteRunner=!0,Ri().s[618]++,n.suiteMap=JSON.parse(e.data.suites)):(Ri().b[113][1]++,Ri().s[619]++,n.startOrGoDisabled=!1,Ri().s[620]++,n.suiteRunner=!1,Ri().s[621]++,n.suiteMap={}),Ri().s[622]++,e.data.error?(Ri().b[114][0]++,Ri().s[623]++,n.suiteError=e.data.error,Ri().s[624]++,n.showSuiteError=!0):Ri().b[114][1]++,Ri().s[625]++,n.fileModified="",Ri().s[626]++,setTimeout((function(){Ri().f[132]++,Ri().s[627]++,n.showSave=!1}),2e3)):(Ri().b[112][1]++,Ri().s[628]++,n.showSave=!1,Ri().s[629]++,n.alertType="error",Ri().s[630]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),Ri().s[631]++,n.showAlert=!0),Ri().s[632]++,n.lockFile()})).catch((function(e){var t=e.response;Ri().f[133]++,Ri().s[633]++,n.showSave=!1,Ri().s[634]++,422==t.status?(Ri().b[115][0]++,Ri().s[635]++,n.alertType="error",Ri().s[636]++,n.alertText=t.data.suites):(Ri().b[115][1]++,Ri().s[637]++,n.alertType="error",Ri().s[638]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),Ri().s[639]++,n.showAlert=!0}));case 51:case"end":return t.stop()}}),t)})))()},saveAs:function(){Ri().f[134]++,Ri().s[640]++,this.showSaveAs=!0},saveAsFilename:function(e){var n=this;return(0,c.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return Ri().f[135]++,Ri().s[641]++,n.filename=e.split("*")[0],Ri().s[642]++,n.currentFilename=null,Ri().s[643]++,n.tempFilename?(Ri().b[116][0]++,Ri().s[644]++,p.Z.post("/script-api/scripts/".concat(n.tempFilename,"/delete")),Ri().s[645]++,n.tempFilename=null):Ri().b[116][1]++,Ri().s[646]++,t.next=10,n.saveFile("menu");case 10:case"end":return t.stop()}}),t)})))()},delete:function(){var e=this;Ri().f[136]++;var n=(Ri().s[647]++,this.filename);Ri().s[648]++,this.tempFilename?(Ri().b[117][0]++,Ri().s[649]++,n=this.tempFilename):Ri().b[117][1]++,Ri().s[650]++,this.$dialog.confirm("Permanently delete file: ".concat(n),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Ri().f[137]++,Ri().s[651]++,p.Z.post("/script-api/scripts/".concat(n,"/delete"),{data:{}})})).then((function(n){Ri().f[138]++,Ri().s[652]++,e.newFile()})).catch((function(n){if(Ri().f[139]++,Ri().s[653]++,n){Ri().b[118][0]++;var t=(Ri().s[654]++,{text:"Failed Multi-Delete. ".concat(n),type:"error"});Ri().s[655]++,e.$emit("alert",t)}else Ri().b[118][1]++}))},download:function(){Ri().f[140]++;var e=(Ri().s[656]++,new Blob([this.editor.getValue()],{type:"text/plain"})),n=(Ri().s[657]++,document.createElement("a"));Ri().s[658]++,n.href=URL.createObjectURL(e),Ri().s[659]++,n.setAttribute("download",this.filename),Ri().s[660]++,n.click()},syntaxCheck:function(){var e=this;Ri().f[141]++,Ri().s[661]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/syntax"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Ri().f[142]++,Ri().s[662]++,e.information.title=n.data.title,Ri().s[663]++,e.information.text=JSON.parse(n.data.description),Ri().s[664]++,e.information.show=!0}))},showInstrumented:function(){var e=this;Ri().f[143]++,Ri().s[665]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(n){Ri().f[144]++,Ri().s[666]++,e.information.title=n.data.title,Ri().s[667]++,e.information.text=JSON.parse(n.data.description),Ri().s[668]++,e.information.show=!0}))},showCallStack:function(){Ri().f[145]++,Ri().s[669]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){Ri().f[146]++,Ri().s[670]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){Ri().f[147]++,Ri().s[671]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(e){Ri().f[148]++,Ri().s[672]++,"Escape"===e.key?(Ri().b[119][0]++,Ri().s[673]++,this.debug="",Ri().s[674]++,this.debugHistoryIndex=this.debugHistory.length):(Ri().b[119][1]++,Ri().s[675]++,"Enter"===e.key?(Ri().b[120][0]++,Ri().s[676]++,this.debugHistory.push(this.debug),Ri().s[677]++,this.debugHistoryIndex=this.debugHistory.length,Ri().s[678]++,p.Z.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),Ri().s[679]++,this.debug=""):(Ri().b[120][1]++,Ri().s[680]++,"ArrowUp"===e.key?(Ri().b[121][0]++,Ri().s[681]++,this.debugHistoryIndex-=1,Ri().s[682]++,this.debugHistoryIndex<0?(Ri().b[122][0]++,Ri().s[683]++,this.debugHistoryIndex=this.debugHistory.length-1):Ri().b[122][1]++,Ri().s[684]++,this.debug=this.debugHistory[this.debugHistoryIndex],Ri().s[685]++,e.preventDefault()):(Ri().b[121][1]++,Ri().s[686]++,"ArrowDown"===e.key?(Ri().b[123][0]++,Ri().s[687]++,this.debugHistoryIndex+=1,Ri().s[688]++,this.debugHistoryIndex>=this.debugHistory.length?(Ri().b[124][0]++,Ri().s[689]++,this.debugHistoryIndex=0):Ri().b[124][1]++,Ri().s[690]++,this.debug=this.debugHistory[this.debugHistoryIndex]):Ri().b[123][1]++)))},removeAllMarkers:function(){var e=this;Ri().f[149]++;var n=(Ri().s[691]++,this.editor.session.getMarkers());Ri().s[692]++,Object.keys(n).filter((function(e){return Ri().f[150]++,Ri().s[693]++,"fullLine"===n[e].type})).forEach((function(n){return Ri().f[151]++,Ri().s[694]++,e.editor.session.removeMarker(n)}))},confirmLocalUnlock:function(){var e=this;Ri().f[152]++,Ri().s[695]++,this.$dialog.confirm("Are you sure you want to unlock this script for editing? If another user is editing this script, your changes might conflict with each other.",{okText:"Force Unlock",cancelText:"Cancel"}).then((function(){return Ri().f[153]++,Ri().s[696]++,e.lockedBy=null,Ri().s[697]++,e.lockFile()}))},lockFile:function(){return Ri().f[154]++,Ri().s[698]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){Ri().f[155]++,Ri().s[699]++,Ri().b[126][0]++,this.filename===Ii||(Ri().b[126][1]++,this.readOnly)?Ri().b[125][1]++:(Ri().b[125][0]++,Ri().s[700]++,p.Z.post("/script-api/scripts/".concat(this.filename,"/unlock")))},screenId:function(e){return Ri().f[156]++,Ri().s[701]++,"scriptRunnerScreen"+e},closeScreen:function(e){Ri().f[157]++;var n=(Ri().s[702]++,0);Ri().s[703]++;var t,i=(0,a.Z)(this.screens);try{for(i.s();!(t=i.n()).done;){if(screen=t.value,Ri().s[704]++,screen.id==e){Ri().b[127][0]++,Ri().s[705]++,this.screens.splice(n,1),Ri().s[706]++;break}Ri().b[127][1]++,Ri().s[707]++,n+=1}}catch(l){i.e(l)}finally{i.f()}}}},Pi=Fi,$i=(t(7803),t(74641),(0,y.Z)(Pi,l,s,!1,null,"38994a83",null)),Hi=$i.exports},99689:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});t(34115),t(634);var i=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===i?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==i?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,i){return n("v-row",{key:i,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},l=[],s=t(15789),o=t(66964),a=t(49502),r=(t(74083),t(18178),t(32501),t(68995),t(27233),t(28673),t(58188),t(88233),t(39529),t(31235),t(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new r.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){var t=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){t.api.get_tlm_values(["".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__RAW"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__CONVERTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__FORMATTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__WITH_UNITS")]).then((function(e){for(var n=0;n<e.length;n++){var i=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?i=e[n][0]["raw"]:"BLOCK"===t.details.data_type&&(i=e[n][0]),null!==i){i=i.slice(0,parseInt(t.details.bit_size)/8);var l=!1;i.length>64&&(l=!0),e[n][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),l&&(e[n][0]+="...")}}t.details.data_type.includes("INT")&&!t.details.array_size?t.rawValue="".concat(e[0][0]," (0x").concat(e[0][0].toString(16).toUpperCase(),")"):t.rawValue=e[0][0],t.convertedValue=e[1][0],t.formattedValue=e[2][0],t.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("tlm"!==e.type){n.next=5;break}return n.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(n){if(e.details=n,n.limits){var t=!1;n.limits.enabled&&(t=!0,delete n.limits.enabled),e.details.limits=(0,o.Z)({enabled:t},n.limits)}}));case 3:n.next=7;break;case 5:return n.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(n){e.details=n}));case 7:case"end":return n.stop()}}),n)})))()},changeLimitsEnabled:function(){var e=this;return(0,a.Z)((0,s.Z)().mark((function n(){return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.details.limits.enabled){n.next=5;break}return n.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:n.next=7;break;case 5:return n.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return n.stop()}}),n)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(t(28011),t(93483)),m=(0,d.Z)(u,i,l,!1,null,"9697eed8",null),A=m.exports},27855:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});t(74083);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-card",{nativeOn:{click:function(n){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(n){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[n("span",[e._v("Errors")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(n){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit ")])]),n("v-spacer"),n("span",[e._v(e._s(e.title))]),n("v-spacer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v(" mdi-arrow-collapse ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v(" mdi-arrow-expand ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v(" mdi-arrow-collapse-horizontal ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v(" mdi-arrow-expand-horizontal ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v(" mdi-arrow-collapse-vertical ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v(" mdi-arrow-expand-vertical ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-minimize ")]),n("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v(" mdi-window-maximize ")])],1)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("div",e._g(e._b({},"div",l,!1),i),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(n){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:"chart".concat(e.id)}}),n("div",{attrs:{id:"betweenCharts"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.$emit("input")},input:function(n){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(n){e.editGraph=n},expression:"editGraph"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Edit Graph")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(n){e.graphStartDateTime=n}}}),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(n){e.graphEndDateTime=n}}}),n("v-row",{attrs:{dense:""}},[n("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(n){e.legendPosition=n},expression:"legendPosition"}})],1),n("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(n){e.graphMinY=n},expression:"graphMinY"}})],1),n("v-col",{staticClass:"px-2"},[n("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(n){e.graphMaxY=n},expression:"graphMaxY"}})],1)],1),n("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(t){var i=t.item;return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var l=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),l),[n("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(n){e.errorDialog=n},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Errors")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(n){e.title=n},expression:"title"}})],1),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?n("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(n){e.editGraphMenu=n},expression:"editGraphMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?n("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(n){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(n){e.editItem=n},expression:"editItem"}}):e._e(),e.itemMenu?n("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(n){e.itemMenu=n},expression:"itemMenu"}},[n("v-list",{attrs:{nav:"",dense:""}},[n("v-subheader",[e._v(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),n("v-list-item",{on:{click:function(n){e.editItem=!0}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-pencil")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Edit ")])],1)],1),n("v-list-item",{on:{click:function(n){return e.removeItems([e.selectedItem])}}},[n("v-list-item-icon",[n("v-icon",[e._v("mdi-delete")])],1),n("v-list-item-content",[n("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e.legendMenu?n("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(n){e.legendMenu=n},expression:"legendMenu"}},[n("v-list",[n("v-list-item",{on:{click:function(n){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),n("v-list-item",{on:{click:function(n){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},l=[],s=t(50615),o=t(97302),a=t(78081),r=t(66964),c=(t(71245),t(43450),t(6710),t(58188),t(6886),t(36728),t(43108),t(18178),t(32501),t(13489),t(34769),t(99805),t(1951),t(35883),t(39529),t(31235),function(){var e=this,n=e._self._c;return n("div",[n("v-row",[n("v-col",[n("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on;return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(n){e.date=n},expression:"date"}},i))]}}])})],1),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(n){e.time=n},expression:"time"}})],1)],1)],1)}),u=[],d=t(31200),m=t(10247),A=t(66700),p=t(73053),h={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(n){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(n){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,A.Z)(this.dateTime/1e6);this.date=(0,p.Z)(e,"yyyy-MM-dd"),this.time=(0,p.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},f=h,v=t(93483),g=(0,v.Z)(f,c,u,!1,null,null,null),b=g.exports,C=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(n){e.$set(e.editItem,"valueType",n)},expression:"editItem.valueType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(n){e.$set(e.editItem,"reduced",n)},expression:"editItem.reduced"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(n){e.$set(e.editItem,"reducedType",n)},expression:"editItem.reducedType"}}),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(n){return e.$emit("changeColor",n)}},model:{value:e.editItem.color,callback:function(n){e.$set(e.editItem,"color",n)},expression:"editItem.color"}}),e.limitsNames.length>1?n("div",[n("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(n){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(n){e.limitsName=n},expression:"limitsName"}}),n("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e(),n("v-card-actions",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){return e.$emit("cancel")}}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(n){return e.$emit("close",e.editItem)}}},[e._v(" Ok ")])],1)],1)],1)},_=[],y=t(15789),w=t(49502),x=(t(67890),t(49228),t(48392)),k={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},limitsNames:function(){return Object.keys(this.limits)}},created:function(){var e=this;return(0,w.Z)((0,y.Z)().mark((function n(){return(0,y.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.editItem=(0,r.Z)({},e.item),n.next=3,e.api;case 3:e.api=(new x.k).get_item(e.item.targetName,e.item.packetName,e.item.itemName).then((function(n){for(var t=0,i=Object.entries(n.limits);t<i.length;t++){var l=(0,o.Z)(i[t],2),s=l[0],a=l[1];Object.keys(a).includes("red_low")&&e.$set(e.limits,s,Object.values(a))}e.limitsName=Object.keys(e.limits).find((function(n){return e.limits[n]+""===e.editItem.limits+""}))}));case 4:case"end":return n.stop()}}),n)})))()}},S=k,M=(0,v.Z)(S,C,_,!1,null,null,null),E=M.exports,T=t(3276),R=t(86522),D=t.n(R),I=t(59161);t(8514);var O={components:{DateTimeChooser:b,GraphEditItemDialog:E},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new I.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(n){return e+=1,(0,r.Z)((0,r.Z)({},n),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,n=(0,a.Z)(this.items.entries());try{for(n.s();!(e=n.n()).done;){var t=(0,o.Z)(e.value,2),i=t[0],l=t[1];this.data.push([]),this.indexes[this.subscriptionKey(l)]=i+1,void 0===l.color&&(l.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(s){n.e(s)}finally{n.f()}},mounted:function(){var e=this,n=this.items.reduce((function(n,t){var i={spanGaps:!0};return n.chartSeries.push((0,r.Z)((0,r.Z)({},i),{},{item:t,label:e.formatLabel(t),stroke:function(n,t){return e.items[t-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}})),n.overviewSeries.push((0,r.Z)({},i)),n}),{chartSeries:[],overviewSeries:[]}),t=n.chartSeries,i=n.overviewSeries,l={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,l={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));else{l=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{plugins:[this.linesPlugin()],series:[{label:"Time",value:function(e,n){return null==n?"--":(0,p.Z)((0,A.Z)(1e3*n),"yyyy-MM-dd HH:mm:ss")}}].concat((0,s.Z)(t)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:function(n,t,i){return function(t){"pause"===e.state&&0===n.select.width&&e.$emit("start"),i(t)}}}},hooks:{setScale:[function(n,t){if("x"===t&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(n.scales.x.min,"x")),l=Math.round(e.overview.valToPos(n.scales.x.max,"x"));e.overview.setSelect({left:i,width:l-i}),e.zoomChart=!1}}],setSelect:[function(n){"start"===e.state&&n.select.width>0&&e.$emit("pause")}],ready:[function(n){var t=n.root.querySelector(".u-over");t.addEventListener("contextmenu",(function(n){n.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=n.clientX,e.editGraphMenuY=n.clientY,e.editGraphMenu=!0})),t.addEventListener("mouseenter",(function(n){e.$emit("resize")})),t.addEventListener("mouseleave",(function(n){e.$emit("resize")}));var i=n.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(t){t.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=t.clientX,e.itemMenuY=t.clientY;var l=t.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(l),o=n.series[s];o.item?(e.selectedItem=o.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=t.clientX,e.legendMenuY=t.clientY,e.legendMenu=!0)}))}]}}),this.graph=new T.Z(l,this.data,document.getElementById("chart".concat(this.id)));var o=(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,s.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(n){if(!e.zoomChart){"start"===e.state&&n.select.width>0&&e.$emit("pause"),e.zoomOverview=!0;var t=n.posToVal(n.select.left,"x"),i=n.posToVal(n.select.left+n.select.width,"x");e.graph.setScale("x",{min:t,max:i}),e.zoomOverview=!1}}]}});this.overview=new T.Z(o,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,n){switch(e){case"start":"stop"===n&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,n){this.dataChanged=!0},graphMinY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMinY=t),this.setGraphRange()},graphMaxY:function(e,n){var t=parseFloat(e);isNaN(t)||(this.graphMaxY=t),this.setGraphRange()},graphStartDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,n){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){var e=this;this.subscribe(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){var e=this;this.updateGraphData(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"!==this.state&&this.dataChanged){this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);var e=this.data[0][this.data[0].length-1],n=this.data[0][this.data[0].length-this.pointsGraphed],t=this.data[0][0];t<e-this.secondsGraphed&&(t=e-this.secondsGraphed),n>t&&(t=n),this.graph.setScale("x",{min:t,max:e}),this.dataChanged=!1}},formatLabel:function(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;var n="";return"CONVERTED"!==e.valueType&&(n+=e.valueType),"DECOM"!==e.reduced&&(""!==n&&(n+=" "),n+="".concat(e.reduced.split("_")[1]," ").concat(e.reducedType)),"".concat(e.itemName," (").concat(n,")")},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){var e=this;if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{var n=JSON.parse(JSON.stringify(this.items));this.removeItems(n),setTimeout((function(){e.addItems(n)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,n=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(n=0),this.graph.scales.y.range=function(t,i,l){var s=i;(e.graphMinY||0===e.graphMinY)&&(s=e.graphMinY);var o=l;return(e.graphMaxY||0===e.graphMaxY)&&(o=e.graphMaxY),T.Z.rangeNum(s,o,n,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(n){e.subscription=n}))},getSize:function(e){var n=document.getElementById("openc3-nav-drawer"),t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var l=document.getElementsByClassName("u-legend")[0];i=l.clientWidth}var s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-i,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=document.getElementsByClassName("c-chooser")[0],r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:a&&(r=o-a.clientHeight-r-190,this.fullHeight||(r=r/2+10));var c=s-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||r}},getScales:function(){return{scales:{x:{range:function(e,n,t){return null==n?[1566453600,1566497660]:[n,t]}},y:{range:function(e,n,t){return null==n?[-100,100]:T.Z.rangeNum(n,t,.1,!0)}}}}},getAxes:function(e){var n="rgba(0, 0, 0, .1)",t="black";return this.$vuetify.theme.dark&&(n="rgba(255, 255, 255, .1)",t="white"),{axes:[{stroke:t,grid:{show:!0,stroke:n,width:2}},{size:80,stroke:t,grid:{show:"overview"!==e,stroke:n,width:2}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[t].style.borderColor=e},changeLimits:function(e){var n=this.subscriptionKey(this.selectedItem),t=this.indexes[n];this.items[t-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){var e=this;return{hooks:{draw:function(n){var t=n.ctx,i=n.bbox,l=n.valToPos(n.scales.y.min,"y",!0),s=n.valToPos(n.scales.y.max,"y",!0),o=n.valToPos(e.limitsValues[0],"y",!0),a=n.valToPos(e.limitsValues[1],"y",!0),r=n.valToPos(e.limitsValues[2],"y",!0),c=n.valToPos(e.limitsValues[3],"y",!0);if(t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",n.scales.y.min<e.limitsValues[0]){var u=o<s?s:o;t.fillRect(i.left,o,i.width,l-u)}if(n.scales.y.max>e.limitsValues[3]){var d=l<c?l:c;t.fillRect(i.left,s,i.width,d-s)}if(t.fillStyle="rgba(255,255,0,0.15)",n.scales.y.min<e.limitsValues[1]&&n.scales.y.max>e.limitsValues[0]){var m=a<s?s:a;t.fillRect(i.left,m,i.width,o-m)}if(n.scales.y.max>e.limitsValues[2]&&n.scales.y.min<e.limitsValues[3]){var A=l<c?l:c,p=l<r?l:r;t.fillRect(i.left,A,i.width,p-A)}if(t.fillStyle="rgba(0,255,0,0.15)",4===e.limitsValues.length){if(n.scales.y.min<e.limitsValues[2]&&n.scales.y.max>e.limitsValues[1]){var h=r<s?s:r,f=l<a?l:a;t.fillRect(i.left,h,i.width,f-h)}}else{var v=n.valToPos(e.limitsValues[4],"y",!0),g=n.valToPos(e.limitsValues[5],"y",!0);if(n.scales.y.min<e.limitsValues[4]&&n.scales.y.max>e.limitsValues[1]){var b=v<s?s:v;t.fillRect(i.left,b,i.width,a-b)}if(n.scales.y.max>e.limitsValues[5]&&n.scales.y.min<e.limitsValues[2]){var C=l<r?l:r,_=l<g?l:g;t.fillRect(i.left,C,i.width,_-C)}t.fillStyle="rgba(0,0,255,0.15)";var y=g<s?s:g,w=l<v?l:v;t.fillRect(i.left,y,i.width,w-y)}t.stroke(),t.restore()}}}},changeItem:function(e){var n=this;this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((function(){n.addItems([n.selectedItem])}))},addItems:function(e){var n,t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",l=(0,a.Z)(e);try{for(l.s();!(n=l.n()).done;){var s=n.value;s.valueType||(s.valueType=i),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);var o=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:function(e,n){return t.items[n-1].color},value:function(e,n){return"string"===typeof n||isNaN(n)?"NaN":null==n?"--":n.toFixed(2)}},o),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,n){return t.items[n-1].color}},o);var r=Array(this.data[0].length);this.data.splice(o,0,r),this.indexes[this.subscriptionKey(s)]=o}}catch(c){l.e(c)}finally{l.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(i){i&&OpenC3Auth.setTokens(),e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:n.map(e.subscriptionKey),start_time:t,end_time:e.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var n,t=(0,a.Z)(e.map(this.subscriptionKey));try{for(t.s();!(n=t.n()).done;){var i=n.value,l=this.reorderIndexes(i);this.colors.unshift(this.graph.series[l].stroke),this.items.splice(l-1,1),this.data.splice(l,1),this.graph.delSeries(l),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(l),this.overview.setData(this.data))}}catch(s){t.e(s)}finally{t.f()}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var n=this.indexes[e];for(var t in delete this.indexes[e],this.indexes)this.indexes[t]>n&&(this.indexes[t]-=1);return n},received:function(e){this.cable.recordPing();for(var n=0;n<e.length;n++){var t=e[n].__time/1e9,i=e[0].length;if(0===i||t>e[0][i-1]){for(var l=0;l<this.data.length;l++)this.data[l].push(null);this.set_data_at_index(this.data[0].length-1,t,e[n])}else{var s=D()(this.data[0],t,this.bs_comparator);if(s>=0)this.set_data_at_index(s,t,e[n]);else{for(var o=-s-1,a=0;a<this.data.length;a++)this.data[a].splice(o,0,null);this.set_data_at_index(o,t,e[n])}}}if(null==this.startTime){var r=1e9*this.data[0][0];this.$emit("started",r)}this.dataChanged=!0},bs_comparator:function(e,n){return e-n},set_data_at_index:function(e,n,t){this.data[0][e]=n;for(var i=0,l=Object.entries(t);i<l.length;i++){var s=(0,o.Z)(l[i],2),r=s[0],c=s[1];if("time"!==r){var u=this.indexes[r];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!r.includes("__RAW")){var m,A=(0,a.Z)(this.items);try{for(A.s();!(m=A.n()).done;){var p=m.value;if(this.subscriptionKey(p)===r){this.selectedItem=p;break}}}catch(h){A.e(h)}finally{A.f()}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[e]=c}}}},subscriptionKey:function(e){var n="".concat(e.reduced,"__TLM__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType);return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(n+="__".concat(e.reducedType)),n}}},N=O,Z=(t(34492),t(33647),(0,v.Z)(N,i,l,!1,null,"59b314de",null)),L=Z.exports},91679:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"array-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(45794),t(92318)),a=t(99689),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var n="",t=" ",i="\n",l=0;if(Array.isArray(e)){var o,a=(0,s.Z)(e);try{for(a.s();!(o=a.n()).done;){var r,c=o.value;this.formatter&&"nil"!==(null===(r=this.formatter)||void 0===r?void 0:r.toLowerCase())?n+=sprintf(this.formatter,c):n+=c,l+=1,l%this.itemsPerRow===0?(l=0,n+=i):n+=t}}catch(u){a.e(u)}finally{a.f()}return n.trim()}return e}}}),c=r,u=(t(94776),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"5cd86706",null),m=d.exports},90328:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"block-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(78081),o=(t(68995),t(92318)),a=t(99689),r=(t(80131),{components:{DetailsDialog:a.Z},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[o.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var n="";if(e&&e.raw){var t,i=" ",l="\n",o=0,a=0,r=this.bytesPerWord*this.wordsPerRow,c=(0,s.Z)(e.raw);try{for(c.s();!(t=c.n()).done;){var u=t.value;this.addrFormat&&0===o&&(n+=sprintf(this.addrFormat,a),a+=r),n+=sprintf(this.formatter,u),o+=1,o%r===0?(o=0,n+=l):o%this.bytesPerWord===0&&(n+=i)}}catch(d){c.e(d)}finally{c.f()}}else n=e;return n}}}),c=r,u=(t(14311),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0872fd0e",null),m=d.exports},94307:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return c}});var i=function(){var e=this,n=e._self._c;return n("div",[n("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v(" "+e._s(e.buttonText)+" ")]),n("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(n){e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),n("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),n("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),n("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},l=[],s=t(90985),o=s.Z,a=t(93483),r=(0,a.Z)(o,i,l,!1,null,null,null),c=r.exports},37739:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=t(548),o={mixins:[s.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},a=o,r=(t(64550),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"17947dc7",null),u=c.exports},72810:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},l=[],s=t(92202),o={mixins:[s.Z]},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},47696:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return e.imageUrl?n("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},l=[],s=(t(58188),t(1939),t(44112),t(92202)),o=t(1716),a={mixins:[s.Z,o.Z],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?"".concat(this.parameters[3],"px"):"100%"},height:function(){return this.parameters[4]?"".concat(this.parameters[4],"px"):"100%"}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(n){e.imageUrl=n}))},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},15348:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=function(){var e=this,n=e._self._c;return n("g",[e._l(e.images,(function(t){return n("image",{directives:[{name:"show",rawName:"v-show",value:t.value==e.selectedValue,expression:"image.value == selectedValue"}],key:t.value,attrs:{href:t.url,x:t.x,y:t.y,width:t.width,height:t.height},on:{click:e.clickHandler}})})),e.defaultImage?n("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},l=[],s=t(66964),o=t(15789),a=t(49502),r=(t(58188),t(1939),t(18178),t(43450),t(95342),t(44112),t(28673),t(6886),t(92202)),c=t(1716),u={mixins:[r.Z,c.Z],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){var e=this;return!this.images.some((function(n){return n.value==e.selectedValue}))}},created:function(){var e=this;this.settings.forEach((function(n){"SCREEN"===n[0]&&(e.screenTarget=n[1],e.screenName=n[2])})),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW"),this.screen&&this.screen.addItem(this.valueId);var n=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var n=(0,a.Z)((0,o.Z)().mark((function n(t){var i;return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t[2],i.startsWith("http")){n.next=5;break}return n.next=4,e.getPresignedUrl(i);case 4:i=n.sent;case 5:return n.abrupt("return",{url:i,value:t[1],x:t[3],y:t[4],width:t[5],height:t[6]});case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());if(Promise.all(n).then((function(n){e.images=n})),this.parameters[4]){var t={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?"".concat(this.parameters[7],"px"):"100%",height:this.parameters[8]?"".concat(this.parameters[8],"px"):"100%"},i=this.parameters[4];i.startsWith("http")?this.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:i}):this.getPresignedUrl(i).then((function(n){e.defaultImage=(0,s.Z)((0,s.Z)({},t),{},{url:n})}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},d=u,m=t(93483),A=(0,m.Z)(d,i,l,!1,null,null,null),p=A.exports},19091:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v(" "+e._s(e.parameters[2])+" ")])},l=[],s=t(92202),o={mixins:[s.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},93856:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v(" "+e._s(e._value)+" ")])},l=[],s=(t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){var e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96068:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},l=[],s=t(92202),o={mixins:[s.Z],computed:{calcStyle:function(){var e="black";this.parameters[4]&&(e=this.parameters[4]);var n=1;return this.parameters[5]&&(n=this.parameters[5]),"stroke:"+e+";stroke-width:"+n}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},17289:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},l=[],s=(t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:0,valueMap:{}}},computed:{calcStyle:function(){var e="black";this.screen&&this.screen.screenValues[this.valueId][0]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);var n=1;return this.parameters[7]&&(n=this.parameters[7]),"stroke:"+e+";stroke-width:"+n}},created:function(){var e=this;this.settings.forEach((function(n){"VALUE_EQ"===n[0]&&(e.valueMap[n[1]]=n[2])}));var n="CONVERTED";this.parameters[8]&&(n=this.parameters[8]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},6122:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],label:"Checkbox",value:!1}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.label=this.parameters[0]},methods:{checked:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},84190:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{items:[],value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.items=this.parameters},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39609:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=t(66964),l=function(){var e=this,n=e._self._c;return n(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},s=[],o=t(15789),a=t(49502),r=(t(18178),t(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,a.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,System.import(e.url);case 3:e.widgetType=n.sent,n.next=9;break;case 6:throw n.prev=6,n.t0=n["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return n.stop()}}),n,null,[[0,6]])})))()}}),c=r,u=t(93483),d=(0,u.Z)(c,l,s,!1,null,null,null),m=d.exports},90742:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},l=[],s=t(92202),o=t(87557),a={mixins:[s.Z],components:{ValueWidget:o["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created:function(){this.setWidth(this.parameters[5],"ch",12)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1835:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(745),o=t(548),a={mixins:[o.Z],components:{HorizontalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},92398:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return r}});var i=function(){var e=this,n=e._self._c;return n("hr")},l=[],s=t(93483),o={},a=(0,s.Z)(o,i,l,!1,null,null,null),r=a.exports},27549:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("iframe",{style:e.computedStyle,attrs:{src:e.parameters[0],width:e.width,height:e.height}})},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1499:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},l=[],s=(t(18178),t(58188),t(49228),t(48392)),o=t(92202),a=t(59161),r={mixins:[o.Z],data:function(){return{api:new s.k,cable:new a.Z,subscription:null,imageData:""}},computed:{src:function(){return"data:image/".concat(this.parameters[3],";base64, ").concat(this.imageData)},itemFullName:function(){return"TLM__".concat(this.targetName,"__").concat(this.packetName,"__").concat(this.itemName,"__").concat(this.valueType)},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){var e=this;this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((function(n){var t=null===n||void 0===n?void 0:n.find((function(n){return n[0]===e.itemName}));t&&(e.imageData=t[1])})).finally((function(){e.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){var n=e[e.length-1];this.imageData=n[this.itemFullName]}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(n){return e.received(n)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(n){e.subscription=n}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},75318:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=t(92202),o={mixins:[s.Z],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created:function(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},a=o,r=(t(88489),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"19db816e",null),u=c.exports},21275:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("led-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(29016),c={mixins:[o.Z],components:{LabelWidget:a["default"],LedWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},15929:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(11826),c={mixins:[o.Z],components:{LabelWidget:a["default"],ProgressbarWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},91745:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(56803),c={mixins:[o.Z],components:{LabelWidget:a["default"],SparklineWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},210:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=t(92202),a=t(75318),r=t(87557),c={mixins:[o.Z],components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},28913:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},s=[],o=(t(34115),t(634),t(32501),t(36728),t(92202)),a=t(75318),r=t(87557),c=t(48392),u={mixins:[o.Z],data:function(){return{description:"",valueParameters:[]}},components:{LabelWidget:a["default"],ValueWidget:r["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.valueParameters=this.parameters.slice(0,3),this.valueParameters.push(this.parameters[4]),this.parameters.length>3?this.description=this.parameters[3]:(new c.k).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.description=n["description"]}))}},d=u,m=t(93483),A=(0,m.Z)(d,l,s,!1,null,null,null),p=A.exports},68738:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),n("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(6449),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},94338:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return p}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("label-widget",{attrs:{parameters:[e.parameters[2]],settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":1}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=t(75318),a=t(87557),r=t(36652),c=t(92202),u={mixins:[c.Z],components:{LabelWidget:o["default"],ValueWidget:a["default"],LimitscolumnWidget:r["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=u,m=t(93483),A=(0,m.Z)(d,l,s,!1,null,null,null),p=A.exports},45964:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},s=[],o=(t(18178),t(95342),t(58188),t(68995),t(210)),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{LabelvalueWidget:o["default"],RangebarWidget:a["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},29016:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"led mt-1",style:e.cssProps})},l=[],s=(t(68995),t(58188),t(1939),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.colors[e];return n||(n=this.colors.ANY),n||(n="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":n}}},created:function(){var e=this;this.settings.forEach((function(n){switch(n[0]){case"LED_COLOR":e.colors[n[1]]=n[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=(t(65818),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"4e68ef1f",null),u=c.exports},6449:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(58188),t(1939),t(68995),t(18178),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var n=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(n),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,n)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(n){"MIN_VALUE"===n[0]&&(e.minValue=parseInt(n[1])),"MAX_VALUE"===n[0]&&(e.maxValue=parseInt(n[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);var n=80;return 0==this.redLow&&(n+=10),0==this.redHigh&&(n+=10),this.scale=(e[3]-e[0])/n,e},calcPosition:function(e,n){if(null!=e&&n){var t=n[0]-10*this.scale;this.minValue&&this.minValue==n[0]&&(t=n[0]);n[3],this.scale;if(this.maxValue&&this.maxValue==n[3]&&n[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-t)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(79731),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"344f6330",null),m=d.exports},74865:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("div",{staticClass:"led align-self-center",style:e.cssProps}),n("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},l=[],s=(t(68995),t(92318)),o={mixins:[s.Z],data:function(){return{radius:15,fullLabelDisplay:!1}},created:function(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName:function(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps:function(){return this.screen&&this.screen.screenValues[this.valueId][0],{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType:function(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},a=o,r=(t(58878),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"47f390ae",null),u=c.exports},36652:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"limitsbar__container"},[n("div",{staticClass:"limitsbar__redlow"}),n("div",{staticClass:"limitsbar__redhigh"}),n("div",{staticClass:"limitsbar__yellowlow"}),n("div",{staticClass:"limitsbar__yellowhigh"}),n("div",{staticClass:"limitsbar__greenlow"}),n("div",{staticClass:"limitsbar__greenhigh"}),n("div",{staticClass:"limitsbar__blue"}),n("div",{staticClass:"limitsbar__line"}),n("div",{staticClass:"limitsbar__arrow"})])}],s=(t(18178),t(68995),t(92202)),o=t(48392),a="DEFAULT",r={mixins:[s.Z],data:function(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:a,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:a}},created:function(){var e=this;this.api=new o.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(n){e.limitsSettings=n})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var n="CONVERTED";this.parameters[3]&&(n=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(n),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition:function(e,n){if(e&&n){var t=.8;n[0]===n[1]&&(t+=.1),n[2]===n[3]&&(t+=.1);var i=(n[3]-n[0])/t,l=n[0]-.1*i;n[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var s=parseInt((e-l)/i*100);return s>100?100:s<0?0:s}},calcLimits:function(e){if(e){var n=80;e[0]===e[1]?(this.redLow=0,n+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,n+=10):this.redHigh=10;var t=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/t*n),this.yellowHigh=Math.round((e[3]-e[2])/t*n),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/t*n),this.greenHigh=Math.round((e[2]-e[5])/t*n),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)}},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(n){e.currentLimitsSet=n}))}}},c=r,u=(t(48001),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"0e4c2263",null),m=d.exports},32554:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:function(){return e.state="pause"},start:function(){return e.state="start"}}})},l=[],s=t(22841),o=t(27855),a={components:{Graph:o.Z},mixins:[s.Z]},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},42509:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("table",{style:e.computedStyle},e._l(e.widgetChunks,(function(t,i){return n("tr",{key:"r"+i},e._l(t,(function(t,i){return n("td",{key:"c"+i},[n(t.type,e._g({tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))],1)})),0)})),0)},l=[],s=(t(68995),t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o=t(76635),a=t.n(o),r={mixins:[s.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return a().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){var e=this.parameters[1];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},c=r,u=t(93483),d=(0,u.Z)(c,i,l,!1,null,null,null),m=d.exports},11826:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[n("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},l=[],s=(t(68995),t(13489),t(18178),t(92202)),o={mixins:[s.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:100}},computed:{_value:function(){var e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},1882:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},l=[],s=(t(71245),t(92202)),o={props:{value:{type:Number}},mixins:[s.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},22201:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(n){e.selectedIndex=n},expression:"selectedIndex"}},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{value:i,target:t.target,parameters:t.parameters,settings:t.settings,name:t.name}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(68995),t(548)),o={mixins:[s.Z],data:function(){return{selectedIndex:0}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected:function(){return this.selectedIndex}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},96758:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},l=[function(){var e=this,n=e._self._c;return n("div",{staticClass:"rangebar__container"},[n("div",{staticClass:"rangebar__line"}),n("div",{staticClass:"rangebar__arrow"})])}],s=(t(68995),t(18178),t(92202)),o={mixins:[s.Z],data:function(){return{width:160,height:22}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition:function(){var e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;var n=(e-this.min)/this.range*100;return n>100?100:n<0?0:n}}},a=o,r=(t(34363),t(93483)),c=(0,r.Z)(a,i,l,!1,null,"f50bb458",null),u=c.exports},64836:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},l=[],s=t(548),o=t(21833),a={mixins:[s.Z],components:{VerticalWidget:o["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},28560:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},l=[],s=t(92202),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},39413:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{style:e.style})},l=[],s=t(92202),o={mixins:[s.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},56803:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},l=[],s=t(22841),o=t(27855),a={components:{Graph:o.Z},mixins:[s.Z],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},51018:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(18178);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab",{key:i},[e._v(" "+e._s(t.parameters[0])+" ")])})),1),n("v-tabs-items",{model:{value:e.curTab,callback:function(n){e.curTab=n},expression:"curTab"}},e._l(e.widgets,(function(t,i){return n("v-tab-item",{key:i},e._l(t.widgets,(function(t,l){return n(t.type,e._g({key:"".concat(i,"-").concat(l),tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)})),1)],1)},l=[],s=t(548),o={mixins:[s.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},31597:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"textbox-widget-container"},[n("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=t(92318),o=t(99689),a=(t(80131),{components:{DetailsDialog:o.Z},data:function(){return{width:200,height:200}},mixins:[s.Z],computed:{aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}}),r=a,c=(t(13134),t(93483)),u=(0,c.Z)(r,i,l,!1,null,"0b5bfdc6",null),d=u.exports},71447:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(n){e.value=n},expression:"value"}})},l=[],s=(t(58188),t(1939),t(92202)),o={mixins:[s.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(n){"NAMED_WIDGET"===n[0]&&n[2].setNamedWidget(n[1],e)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},43748:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v(" "+e._s(e.labelText)+" ")])},l=[],s=(t(71372),t(92202)),o={mixins:[s.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},87557:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return m}});var i=function(){var e=this,n=e._self._c;return n("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[n("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,l=t.attrs;return[n("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",l,!1),i))]}}])},[n("span",[e._v(e._s(e.fullName))])]),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,i){return n("v-list-item",{key:i,on:{click:function(e){return e.stopPropagation(),t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(n){e.viewDetails=n},expression:"viewDetails"}})],1)},l=[],s=(t(68995),t(92318)),o=t(99689),a=4,r={components:{DetailsDialog:o.Z},mixins:[s.Z],data:function(){return{width:12+a}},computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>"),this.setWidth(parseInt(this.parameters[4])+a,"ch",this.width)}},c=r,u=(t(20019),t(93483)),d=(0,u.Z)(c,i,l,!1,null,"2750a386",null),m=d.exports},73437:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=(t(32501),function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:(0,i.Z)(e.settings),"widget-index":1}})],1)}),s=[],o=t(87557),a=t(6449),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitsbarWidget:a["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},56822:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[n("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(36652),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],LimitscolumnWidget:a["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},91312:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var i=t(50615),l=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[n("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),n("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},s=[],o=t(87557),a=t(96758),r=t(92202),c={mixins:[r.Z],components:{ValueWidget:o["default"],RangebarWidget:a["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},u=c,d=t(93483),m=(0,d.Z)(u,l,s,!1,null,null,null),A=m.exports},21833:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var i=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(t,i){return n(t.type,e._g({key:i,tag:"component",attrs:{target:t.target,parameters:t.parameters,settings:t.settings,widgets:t.widgets,name:t.name,line:t.line,lineNumber:t.lineNumber}},e.$listeners))})),1)},l=[],s=(t(58188),t(1939),t(49228),t(39529),t(31235),t(36728),t(548)),o={mixins:[s.Z],created:function(){if(this.parameters[0]){var e=this.parameters[0];this.widgets.forEach((function(n){var t=n.settings.find((function(e){return"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")}));void 0===t&&n.settings.push(["MARGIN",e])}))}}},a=o,r=t(93483),c=(0,r.Z)(a,i,l,!1,null,null,null),u=c.exports},59233:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});t(32501);var i=function(){var e=this,n=e._self._c;return n("div",[n("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),n("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},l=[],s=t(21833),o=t(548),a={mixins:[o.Z],components:{VerticalWidget:s["default"]}},r=a,c=t(93483),u=(0,c.Z)(r,i,l,!1,null,null,null),d=u.exports},74301:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-card__subtitle[data-v-33fbf9b4]{padding:0;padding-bottom:10px}",""]),n["default"]=a},43458:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#sr-controls[data-v-38994a83]{padding:0}.editorbox[data-v-38994a83]{height:50vh}.editor[data-v-38994a83]{height:100%;width:100%;font-size:16px}.editor[data-v-38994a83],hr[data-v-38994a83]{position:relative}hr[data-v-38994a83]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-38994a83] input{text-transform:capitalize}",""]),n["default"]=a},21259:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".runningMarker{position:absolute;background:rgba(0,255,0,.5);z-index:20}.waitingMarker{position:absolute;background:#009b00;z-index:20}.breakpointMarker{position:absolute;border-style:solid;border-color:red;background:rgba(0,255,0,.5);z-index:20}.pausedMarker{background:rgba(0,140,255,.5)}.errorMarker,.pausedMarker{position:absolute;z-index:20}.errorMarker{background:rgba(255,0,119,.5)}.fatalMarker{position:absolute;background:rgba(255,0,0,.5);z-index:20}.saving{z-index:20;opacity:.35}.ace_gutter-cell.ace_breakpoint{border-radius:20px 0 0 20px;box-shadow:inset 0 0 1px 1px red}.grid{position:relative}.item{position:absolute;display:block;margin:5px;z-index:1}.item-content{position:relative;cursor:pointer;border-radius:6px}",""]),n["default"]=a},518:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-9697eed8]{font-weight:700;text-transform:capitalize}[data-v-9697eed8] .v-input--selection-controls{padding:0;margin:0}",""]),n["default"]=a},73713:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".ace_autocomplete{width:60vw!important}",""]),n["default"]=a},10009:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".editor[data-v-4c92d9b1]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-4c92d9b1]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-4c92d9b1] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},90816:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]),n["default"]=a},12881:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#chart[data-v-59b314de]{background-color:var(--v-tertiary-darken2)}#chart[data-v-59b314de] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),n["default"]=a},27577:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".errors[data-v-75133f21]{padding-top:0;margin-top:0}.v-card[data-v-75133f21]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-75133f21] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),n["default"]=a},6294:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),n["default"]=a},20652:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]),n["default"]=a},4177:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]),n["default"]=a},18748:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),n["default"]=a},38374:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},19912:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),n["default"]=a},76658:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]),n["default"]=a},19940:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-37955b8a]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},54780:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-41562d92]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},94811:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-f2badfd2]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},48432:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".v-stepper--vertical .v-stepper__content[data-v-ffe4e8e8]{width:auto;margin:0 0 0 36px;padding:0}",""]),n["default"]=a},12364:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"#tr-container[data-v-3372ac08]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),n["default"]=a},31023:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),n["default"]=a},30642:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},4931:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;-webkit-transform:translateY(5px);transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]),n["default"]=a},82917:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),n["default"]=a},15471:function(e,n,t){"use strict";t.r(n);var i=t(39601),l=t.n(i),s=t(82609),o=t.n(s),a=o()(l());a.push([e.id,".value-widget-container[data-v-2750a386]{min-height:34px}.value-widget-container[data-v-2750a386] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-2750a386] input{text-align:var(--text-align)!important}.value[data-v-2750a386] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-2750a386] input{color:#00c800}.openc3-yellow[data-v-2750a386] input{color:#ffdc00}.openc3-red[data-v-2750a386] input{color:#ff2d2d}.openc3-blue[data-v-2750a386] input{color:#09f}.openc3-purple[data-v-2750a386] input{color:#c800c8}.openc3-black[data-v-2750a386] input{color:#000}.openc3-white[data-v-2750a386] input{color:#fff}",""]),n["default"]=a},90985:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15789),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49502),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92202);__webpack_exports__.Z={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k},methods:{onClick:function onClick(){var _this=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,runScript,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this.eval.split(";;"),self=_this,screen=_this.screen,api=_this.api,run_script=_this.runScript,runScript=_this.runScript,i=0;case 7:if(!(i<lines.length)){_context.next=28;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=25;break}return _context.prev=10,_context.next=13,result;case 13:_context.next=25;break;case 15:if(_context.prev=15,_context.t0=_context["catch"](10),!_context.t0.message.includes("is Hazardous")){_context.next=25;break}_this.lastCmd=_context.t0.message.split("\n").pop(),_this.displaySendHazardous=!0;case 20:if(!_this.displaySendHazardous){_context.next=25;break}return _context.next=23,new Promise((function(e){return setTimeout(e,500)}));case 23:_context.next=20;break;case 25:i++,_context.next=7;break;case 28:case"end":return _context.stop()}}),_callee,null,[[10,15]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var l in t)i.push({key:l,value:t[l],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){n&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},74087:function(e,n,t){var i=t(74301);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("abc7abfc",i,!0,{sourceMap:!1,shadowMode:!1})},7803:function(e,n,t){var i=t(43458);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("29ae397b",i,!0,{sourceMap:!1,shadowMode:!1})},74641:function(e,n,t){var i=t(21259);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1f19041e",i,!0,{sourceMap:!1,shadowMode:!1})},28011:function(e,n,t){var i=t(518);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5fb99d80",i,!0,{sourceMap:!1,shadowMode:!1})},16895:function(e,n,t){var i=t(73713);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("26aa5c80",i,!0,{sourceMap:!1,shadowMode:!1})},48038:function(e,n,t){var i=t(10009);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("50d18334",i,!0,{sourceMap:!1,shadowMode:!1})},34492:function(e,n,t){var i=t(90816);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("00db6f5f",i,!0,{sourceMap:!1,shadowMode:!1})},33647:function(e,n,t){var i=t(12881);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1ab3a1eb",i,!0,{sourceMap:!1,shadowMode:!1})},48354:function(e,n,t){var i=t(27577);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("0fb12c02",i,!0,{sourceMap:!1,shadowMode:!1})},94888:function(e,n,t){var i=t(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},94776:function(e,n,t){var i=t(20652);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("771bf989",i,!0,{sourceMap:!1,shadowMode:!1})},14311:function(e,n,t){var i=t(4177);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("7a72c236",i,!0,{sourceMap:!1,shadowMode:!1})},88489:function(e,n,t){var i=t(18748);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("a05f0e64",i,!0,{sourceMap:!1,shadowMode:!1})},65818:function(e,n,t){var i=t(38374);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5d2fe189",i,!0,{sourceMap:!1,shadowMode:!1})},58878:function(e,n,t){var i=t(19912);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("adf28f2a",i,!0,{sourceMap:!1,shadowMode:!1})},13134:function(e,n,t){var i=t(76658);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("458ef3b0",i,!0,{sourceMap:!1,shadowMode:!1})},95906:function(e,n,t){var i=t(19940);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("6fbe0352",i,!0,{sourceMap:!1,shadowMode:!1})},98297:function(e,n,t){var i=t(54780);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("624110ac",i,!0,{sourceMap:!1,shadowMode:!1})},20408:function(e,n,t){var i=t(94811);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("1dd31bd2",i,!0,{sourceMap:!1,shadowMode:!1})},10204:function(e,n,t){var i=t(48432);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("e6e3a244",i,!0,{sourceMap:!1,shadowMode:!1})},14723:function(e,n,t){var i=t(12364);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("0aed5680",i,!0,{sourceMap:!1,shadowMode:!1})},64550:function(e,n,t){var i=t(31023);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("62b2115a",i,!0,{sourceMap:!1,shadowMode:!1})},79731:function(e,n,t){var i=t(30642);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("6fee9274",i,!0,{sourceMap:!1,shadowMode:!1})},48001:function(e,n,t){var i=t(4931);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("5862f0b2",i,!0,{sourceMap:!1,shadowMode:!1})},34363:function(e,n,t){var i=t(82917);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("31a841c7",i,!0,{sourceMap:!1,shadowMode:!1})},20019:function(e,n,t){var i=t(15471);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var l=t(3514).Z;l("c59cda46",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
2
  //# sourceMappingURL=388.js.map