openc3-tool-scriptrunner 5.0.10 → 5.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/scriptrunner/js/186.js +2 -2
- data/tools/scriptrunner/js/186.js.map +1 -1
- data/tools/scriptrunner/js/796.js +2 -0
- data/tools/scriptrunner/js/796.js.map +1 -0
- data/tools/scriptrunner/js/app.js +1 -1
- data/tools/scriptrunner/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/scriptrunner/js/651.js +0 -2
- data/tools/scriptrunner/js/651.js.map +0 -1
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_tool_scriptrunner"]=self["webpackChunk_openc3_tool_scriptrunner"]||[]).push([[651],{8651:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Rt}});t(5342),t(8188);function l(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="a8aeadb7ca5ae05bc2d5a0119575a26c070cf083",t=new Function("return this")(),i="__coverage__",o={path:"/openc3/plugins/packages/openc3-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:26}},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:798},end:{line:3,column:990}},11:{start:{line:3,column:1308},end:{line:3,column:1328}},12:{start:{line:3,column:1602},end:{line:3,column:1618}},13:{start:{line:3,column:1891},end:{line:3,column:1904}},14:{start:{line:3,column:2489},end:{line:3,column:2813}},15:{start:{line:3,column:2664},end:{line:3,column:2720}},16:{start:{line:3,column:3525},end:{line:3,column:3551}},17:{start:{line:3,column:3758},end:{line:3,column:3774}},18:{start:{line:3,column:3892},end:{line:3,column:3916}},19:{start:{line:3,column:3916},end:{line:3,column:3974}},20:{start:{line:3,column:4139},end:{line:3,column:4167}},21:{start:{line:3,column:4272},end:{line:3,column:4406}},22:{start:{line:3,column:5074},end:{line:3,column:5087}},23:{start:{line:3,column:5207},end:{line:3,column:5223}},24:{start:{line:3,column:5383},end:{line:3,column:5409}},25:{start:{line:3,column:5436},end:{line:3,column:5463}},26:{start:{line:3,column:5519},end:{line:3,column:5535}},27:{start:{line:3,column:5770},end:{line:3,column:5803}},28:{start:{line:3,column:5830},end:{line:3,column:5857}},29:{start:{line:3,column:5915},end:{line:3,column:5933}},30:{start:{line:3,column:6078},end:{line:3,column:6101}},31:{start:{line:3,column:6393},end:{line:3,column:6423}},32:{start:{line:3,column:6698},end:{line:3,column:6729}},33:{start:{line:3,column:6941},end:{line:3,column:6979}},34:{start:{line:3,column:7224},end:{line:3,column:7264}},35:{start:{line:3,column:7618},end:{line:3,column:7651}},36:{start:{line:3,column:7819},end:{line:3,column:7853}},37:{start:{line:3,column:8117},end:{line:3,column:8161}},38:{start:{line:3,column:8369},end:{line:3,column:8391}},39:{start:{line:3,column:8508},end:{line:3,column:8534}},40:{start:{line:4,column:12},end:{line:4,column:42}},41:{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:774},end:{line:3,column:775}},loc:{start:{line:3,column:797},end:{line:3,column:991}},line:3},8:{name:"(anonymous_8)",decl:{start:{line:3,column:1292},end:{line:3,column:1293}},loc:{start:{line:3,column:1307},end:{line:3,column:1329}},line:3},9:{name:"(anonymous_9)",decl:{start:{line:3,column:1586},end:{line:3,column:1587}},loc:{start:{line:3,column:1601},end:{line:3,column:1619}},line:3},10:{name:"(anonymous_10)",decl:{start:{line:3,column:1875},end:{line:3,column:1876}},loc:{start:{line:3,column:1890},end:{line:3,column:1905}},line:3},11:{name:"(anonymous_11)",decl:{start:{line:3,column:2465},end:{line:3,column:2466}},loc:{start:{line:3,column:2488},end:{line:3,column:2814}},line:3},12:{name:"(anonymous_12)",decl:{start:{line:3,column:2647},end:{line:3,column:2648}},loc:{start:{line:3,column:2663},end:{line:3,column:2721}},line:3},13:{name:"(anonymous_13)",decl:{start:{line:3,column:3508},end:{line:3,column:3509}},loc:{start:{line:3,column:3524},end:{line:3,column:3552}},line:3},14:{name:"(anonymous_14)",decl:{start:{line:3,column:3742},end:{line:3,column:3743}},loc:{start:{line:3,column:3757},end:{line:3,column:3775}},line:3},15:{name:"(anonymous_15)",decl:{start:{line:3,column:3875},end:{line:3,column:3876}},loc:{start:{line:3,column:3891},end:{line:3,column:3975}},line:3},16:{name:"(anonymous_16)",decl:{start:{line:3,column:4123},end:{line:3,column:4124}},loc:{start:{line:3,column:4138},end:{line:3,column:4168}},line:3},17:{name:"(anonymous_17)",decl:{start:{line:3,column:4257},end:{line:3,column:4258}},loc:{start:{line:3,column:4271},end:{line:3,column:4407}},line:3},18:{name:"(anonymous_18)",decl:{start:{line:3,column:5058},end:{line:3,column:5059}},loc:{start:{line:3,column:5073},end:{line:3,column:5088}},line:3},19:{name:"(anonymous_19)",decl:{start:{line:3,column:5191},end:{line:3,column:5192}},loc:{start:{line:3,column:5206},end:{line:3,column:5224}},line:3},20:{name:"(anonymous_20)",decl:{start:{line:3,column:5366},end:{line:3,column:5367}},loc:{start:{line:3,column:5382},end:{line:3,column:5410}},line:3},21:{name:"(anonymous_21)",decl:{start:{line:3,column:5419},end:{line:3,column:5420}},loc:{start:{line:3,column:5435},end:{line:3,column:5464}},line:3},22:{name:"(anonymous_22)",decl:{start:{line:3,column:5503},end:{line:3,column:5504}},loc:{start:{line:3,column:5518},end:{line:3,column:5536}},line:3},23:{name:"(anonymous_23)",decl:{start:{line:3,column:5753},end:{line:3,column:5754}},loc:{start:{line:3,column:5769},end:{line:3,column:5804}},line:3},24:{name:"(anonymous_24)",decl:{start:{line:3,column:5813},end:{line:3,column:5814}},loc:{start:{line:3,column:5829},end:{line:3,column:5858}},line:3},25:{name:"(anonymous_25)",decl:{start:{line:3,column:5899},end:{line:3,column:5900}},loc:{start:{line:3,column:5914},end:{line:3,column:5934}},line:3},26:{name:"(anonymous_26)",decl:{start:{line:3,column:6062},end:{line:3,column:6063}},loc:{start:{line:3,column:6077},end:{line:3,column:6102}},line:3},27:{name:"(anonymous_27)",decl:{start:{line:3,column:6377},end:{line:3,column:6378}},loc:{start:{line:3,column:6392},end:{line:3,column:6424}},line:3},28:{name:"(anonymous_28)",decl:{start:{line:3,column:6682},end:{line:3,column:6683}},loc:{start:{line:3,column:6697},end:{line:3,column:6730}},line:3},29:{name:"(anonymous_29)",decl:{start:{line:3,column:6925},end:{line:3,column:6926}},loc:{start:{line:3,column:6940},end:{line:3,column:6980}},line:3},30:{name:"(anonymous_30)",decl:{start:{line:3,column:7208},end:{line:3,column:7209}},loc:{start:{line:3,column:7223},end:{line:3,column:7265}},line:3},31:{name:"(anonymous_31)",decl:{start:{line:3,column:7602},end:{line:3,column:7603}},loc:{start:{line:3,column:7617},end:{line:3,column:7652}},line:3},32:{name:"(anonymous_32)",decl:{start:{line:3,column:7803},end:{line:3,column:7804}},loc:{start:{line:3,column:7818},end:{line:3,column:7854}},line:3},33:{name:"(anonymous_33)",decl:{start:{line:3,column:8101},end:{line:3,column:8102}},loc:{start:{line:3,column:8116},end:{line:3,column:8162}},line:3},34:{name:"(anonymous_34)",decl:{start:{line:3,column:8353},end:{line:3,column:8354}},loc:{start:{line:3,column:8368},end:{line:3,column:8392}},line:3},35:{name:"(anonymous_35)",decl:{start:{line:3,column:8492},end:{line:3,column:8493}},loc:{start:{line:3,column:8507},end:{line:3,column:8535}},line:3},36:{name:"(anonymous_36)",decl:{start:{line:3,column:8699},end:{line:3,column:8700}},loc:{start:{line:3,column:8705},end:{line:5,column:11}},line:3}},branchMap:{0:{loc:{start:{line:3,column:321},end:{line:3,column:479}},type:"cond-expr",locations:[{start:{line:3,column:339},end:{line:3,column:470}},{start:{line:3,column:471},end:{line:3,column:479}}],line:3},1:{loc:{start:{line:3,column:583},end:{line:3,column:697}},type:"cond-expr",locations:[{start:{line:3,column:604},end:{line:3,column:688}},{start:{line:3,column:689},end:{line:3,column:697}}],line:3},2:{loc:{start:{line:3,column:1928},end:{line:3,column:2147}},type:"cond-expr",locations:[{start:{line:3,column:1960},end:{line:3,column:2066}},{start:{line:3,column:2067},end:{line:3,column:2147}}],line:3},3:{loc:{start:{line:3,column:2163},end:{line:3,column:3405}},type:"cond-expr",locations:[{start:{line:3,column:2197},end:{line:3,column:2896}},{start:{line:3,column:2897},end:{line:3,column:3405}}],line:3},4:{loc:{start:{line:3,column:4533},end:{line:3,column:5127}},type:"cond-expr",locations:[{start:{line:3,column:4549},end:{line:3,column:5118}},{start:{line:3,column:5119},end:{line:3,column:5127}}],line:3},5:{loc:{start:{line:3,column:5258},end:{line:3,column:5570}},type:"cond-expr",locations:[{start:{line:3,column:5273},end:{line:3,column:5561}},{start:{line:3,column:5562},end:{line:3,column:5570}}],line:3},6:{loc:{start:{line:3,column:5571},end:{line:3,column:5970}},type:"cond-expr",locations:[{start:{line:3,column:5588},end:{line:3,column:5961}},{start:{line:3,column:5962},end:{line:3,column:5970}}],line:3},7:{loc:{start:{line:3,column:5971},end:{line:3,column:6143}},type:"cond-expr",locations:[{start:{line:3,column:5993},end:{line:3,column:6134}},{start:{line:3,column:6135},end:{line:3,column:6143}}],line:3},8:{loc:{start:{line:3,column:6144},end:{line:3,column:6458}},type:"cond-expr",locations:[{start:{line:3,column:6159},end:{line:3,column:6449}},{start:{line:3,column:6450},end:{line:3,column:6458}}],line:3},9:{loc:{start:{line:3,column:6459},end:{line:3,column:6765}},type:"cond-expr",locations:[{start:{line:3,column:6475},end:{line:3,column:6756}},{start:{line:3,column:6757},end:{line:3,column:6765}}],line:3},10:{loc:{start:{line:3,column:6766},end:{line:3,column:7022}},type:"cond-expr",locations:[{start:{line:3,column:6789},end:{line:3,column:7013}},{start:{line:3,column:7014},end:{line:3,column:7022}}],line:3},11:{loc:{start:{line:3,column:7023},end:{line:3,column:7309}},type:"cond-expr",locations:[{start:{line:3,column:7048},end:{line:3,column:7300}},{start:{line:3,column:7301},end:{line:3,column:7309}}],line:3},12:{loc:{start:{line:3,column:7310},end:{line:3,column:7689}},type:"cond-expr",locations:[{start:{line:3,column:7328},end:{line:3,column:7680}},{start:{line:3,column:7681},end:{line:3,column:7689}}],line:3},13:{loc:{start:{line:3,column:7690},end:{line:3,column:7892}},type:"cond-expr",locations:[{start:{line:3,column:7709},end:{line:3,column:7883}},{start:{line:3,column:7884},end:{line:3,column:7892}}],line:3},14:{loc:{start:{line:3,column:7893},end:{line:3,column:8210}},type:"cond-expr",locations:[{start:{line:3,column:7922},end:{line:3,column:8201}},{start:{line:3,column:8202},end:{line:3,column:8210}}],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},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},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]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a8aeadb7ca5ae05bc2d5a0119575a26c070cf083"},s=t[i]||(t[i]={});s[n]&&s[n].hash===e||(s[n]=o);var a=s[n];return l=function(){return a},a}l(),l().s[0]++;var i=function(){l().f[0]++;var n=(l().s[1]++,this),e=(l().s[2]++,n._self._c);return l().s[3]++,e("div",[e("top-bar",{attrs:{menus:n.menus,title:n.title}}),e("v-snackbar",{attrs:{top:"",color:n.alertType,timeout:3e3},scopedSlots:n._u([{key:"action",fn:function(t){var i=t.attrs;return l().f[1]++,l().s[4]++,[e("v-btn",n._b({attrs:{text:""},on:{click:function(e){l().f[2]++,l().s[5]++,n.showAlert=!1}}},"v-btn",i,!1),[n._v(" Close ")])]}}]),model:{value:n.showAlert,callback:function(e){l().f[3]++,l().s[6]++,n.showAlert=e},expression:"showAlert"}},[e("v-icon",[n._v(" mdi-"+n._s(n.alertType)+" ")]),n._v(" "+n._s(n.alertText)+" ")],1),e("v-snackbar",{attrs:{top:"",timeout:-1,color:"orange"},scopedSlots:n._u([{key:"action",fn:function(t){var i=t.attrs;return l().f[4]++,l().s[7]++,[e("v-btn",n._b({attrs:{text:"",color:"danger","data-test":"unlock-button"},on:{click:n.confirmLocalUnlock}},"v-btn",i,!1),[n._v(" Unlock ")]),e("v-btn",n._b({attrs:{text:""},on:{click:function(){l().f[5]++,l().s[8]++,n.showReadOnlyToast=!1}}},"v-btn",i,!1),[n._v(" dismiss ")])]}}]),model:{value:n.showReadOnlyToast,callback:function(e){l().f[6]++,l().s[9]++,n.showReadOnlyToast=e},expression:"showReadOnlyToast"}},[e("v-icon",[n._v(" mdi-pencil-off ")]),n._v(" "+n._s(n.lockedBy)+" is editing this script. Editor is in read-only mode ")],1),n.suiteRunner?(l().b[0][0]++,e("suite-runner",{attrs:{"suite-map":n.suiteMap,"disable-buttons":n.disableSuiteButtons},on:{button:n.suiteRunnerButton}})):(l().b[0][1]++,n._e()),e("div",{attrs:{id:"sr-controls"}},[e("v-row",{attrs:{"no-gutters":"",justify:"space-between"}},[n.showDisconnect?(l().b[1][0]++,e("v-icon",{staticClass:"mr-2",attrs:{color:"red"}},[n._v(" mdi-connection ")])):(l().b[1][1]++,n._e()),e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[7]++,l().s[10]++,[e("v-btn",n._g(n._b({attrs:{icon:"",disabled:n.filename===n.NEW_FILENAME},on:{click:n.reloadFile}},"v-btn",o,!1),i),[e("v-icon",[n._v("mdi-cached")])],1)]}}])},[e("span",[n._v(" Reload File ")])]),e("v-select",{attrs:{outlined:"",dense:"","hide-details":"",items:n.fileList,disabled:n.fileList.length<=1,label:"Filename",id:"filename","data-test":"filename"},on:{change:n.fileNameChanged},model:{value:n.fullFilename,callback:function(e){l().f[8]++,l().s[11]++,n.fullFilename=e},expression:"fullFilename"}}),e("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:n.scriptId,callback:function(e){l().f[9]++,l().s[12]++,n.scriptId=e},expression:"scriptId"}}),e("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:n.state,callback:function(e){l().f[10]++,l().s[13]++,n.state=e},expression:"state"}}),"Connecting..."===n.state?(l().b[2][0]++,e("v-progress-circular",{staticClass:"ml-2 mr-2",attrs:{size:40,indeterminate:"",color:"primary"}})):(l().b[2][1]++,e("div",{staticClass:"ml-2 mr-2",staticStyle:{width:"40px",height:"40px"}})),e("v-spacer"),"Start"===n.startOrGoButton?(l().b[3][0]++,e("div",[e("v-btn",{staticClass:"mx-1",attrs:{color:"primary","data-test":"start-button",disabled:n.startOrGoDisabled},on:{click:n.startHandler}},[e("span",[n._v(" Start ")])]),e("v-tooltip",{attrs:{bottom:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return l().f[11]++,l().s[14]++,[e("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{"data-test":"env-button",color:n.environmentIconColor,disabled:n.envDisabled},on:{click:function(e){l().f[12]++,l().s[15]++,n.scriptEnvironment.show=!n.scriptEnvironment.show}}},"v-btn",o,!1),i),[e("v-icon",[n._v(" "+n._s(n.environmentIcon)+" ")])],1)]}}],null,!1,3991735395)},[e("span",[n._v(" Open Environment Dialog ")])])],1)):(l().b[3][1]++,e("div",[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.startOrGoDisabled,"data-test":"go-button"},on:{click:n.go}},[n._v(" Go ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.pauseOrRetryDisabled,"data-test":"pause-retry-button"},on:{click:n.pauseOrRetry}},[n._v(" "+n._s(n.pauseOrRetryButton)+" ")]),e("v-btn",{attrs:{color:"primary","data-test":"stop-button",disabled:n.stopDisabled},on:{click:n.stop}},[n._v(" Stop ")])],1))],1)],1),e("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(e){return l().f[13]++,l().s[16]++,n.editor.resize()}}},[e("div",{staticClass:"pane",attrs:{id:"editorbox"}},[e("v-snackbar",{staticClass:"saving",attrs:{absolute:"",top:"",right:"",timeout:-1},model:{value:n.showSave,callback:function(e){l().f[14]++,l().s[17]++,n.showSave=e},expression:"showSave"}},[n._v(" Saving... ")]),e("pre",{attrs:{id:"editor"},on:{contextmenu:function(e){return l().f[15]++,l().s[18]++,e.preventDefault(),l().s[19]++,n.showExecuteSelectionMenu.apply(null,arguments)}}}),e("v-menu",{attrs:{"position-x":n.menuX,"position-y":n.menuY,absolute:"","offset-y":""},model:{value:n.executeSelectionMenu,callback:function(e){l().f[16]++,l().s[20]++,n.executeSelectionMenu=e},expression:"executeSelectionMenu"}},[e("v-list",n._l(n.executeSelectionMenuItems,(function(t){return l().f[17]++,l().s[21]++,e("v-list-item",{key:t.label},[e("v-list-item-title",{on:{click:t.command}},[n._v(" "+n._s(t.label)+" ")])],1)})),1)],1)],1),e("multipane-resizer",[e("hr")]),e("div",{ref:"messagesDiv",staticClass:"mt-2 pane",attrs:{id:"messages"}},[n.showDebug?(l().b[4][0]++,e("div",{staticClass:"pa-0",attrs:{id:"debug"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-btn",{staticClass:"mr-4",staticStyle:{width:"100px"},attrs:{color:"primary","data-test":"step-button"},on:{click:n.step}},[n._v(" Step "),e("v-icon",{attrs:{right:""}},[n._v(" mdi-step-forward ")])],1),e("v-text-field",{staticClass:"mb-2",attrs:{outlined:"",dense:"","hide-details":"",label:"Debug","data-test":"debug-text"},on:{keydown:n.debugKeydown},model:{value:n.debug,callback:function(e){l().f[18]++,l().s[22]++,n.debug=e},expression:"debug"}})],1)],1)):(l().b[4][1]++,n._e()),e("script-log-messages",{model:{value:n.messages,callback:function(e){l().f[19]++,l().s[23]++,n.messages=e},expression:"messages"}})],1)],1),n.fileOpen?(l().b[5][0]++,e("file-open-save-dialog",{attrs:{type:"open","api-url":"/script-api/scripts"},on:{file:function(e){return l().f[20]++,l().s[24]++,n.setFile(e)},error:function(e){return l().f[21]++,l().s[25]++,n.setError(e)}},model:{value:n.fileOpen,callback:function(e){l().f[22]++,l().s[26]++,n.fileOpen=e},expression:"fileOpen"}})):(l().b[5][1]++,n._e()),n.showSaveAs?(l().b[6][0]++,e("file-open-save-dialog",{attrs:{type:"save","api-url":"/script-api/scripts","require-target-parent-dir":"","input-filename":n.filenameOrBlank},on:{filename:function(e){return l().f[23]++,l().s[27]++,n.saveAsFilename(e)},error:function(e){return l().f[24]++,l().s[28]++,n.setError(e)}},model:{value:n.showSaveAs,callback:function(e){l().f[25]++,l().s[29]++,n.showSaveAs=e},expression:"showSaveAs"}})):(l().b[6][1]++,n._e()),n.showEnvironment?(l().b[7][0]++,e("environment-dialog",{model:{value:n.showEnvironment,callback:function(e){l().f[26]++,l().s[30]++,n.showEnvironment=e},expression:"showEnvironment"}})):(l().b[7][1]++,n._e()),n.ask.show?(l().b[8][0]++,e("ask-dialog",{attrs:{question:n.ask.question,default:n.ask.default,password:n.ask.password,"answer-required":n.ask.answerRequired},on:{response:n.ask.callback},model:{value:n.ask.show,callback:function(e){l().f[27]++,l().s[31]++,n.$set(n.ask,"show",e)},expression:"ask.show"}})):(l().b[8][1]++,n._e()),n.file.show?(l().b[9][0]++,e("file-dialog",{attrs:{title:n.file.title,message:n.file.message,multiple:n.file.multiple,filter:n.file.filter},on:{response:n.fileDialogCallback},model:{value:n.file.show,callback:function(e){l().f[28]++,l().s[32]++,n.$set(n.file,"show",e)},expression:"file.show"}})):(l().b[9][1]++,n._e()),n.information.show?(l().b[10][0]++,e("information-dialog",{attrs:{title:n.information.title,text:n.information.text},model:{value:n.information.show,callback:function(e){l().f[29]++,l().s[33]++,n.$set(n.information,"show",e)},expression:"information.show"}})):(l().b[10][1]++,n._e()),n.inputMetadata.show?(l().b[11][0]++,e("input-metadata-dialog",{attrs:{target:n.inputMetadata.target},on:{response:n.inputMetadata.callback},model:{value:n.inputMetadata.show,callback:function(e){l().f[30]++,l().s[34]++,n.$set(n.inputMetadata,"show",e)},expression:"inputMetadata.show"}})):(l().b[11][1]++,n._e()),n.prompt.show?(l().b[12][0]++,e("prompt-dialog",{attrs:{title:n.prompt.title,subtitle:n.prompt.subtitle,message:n.prompt.message,details:n.prompt.details,buttons:n.prompt.buttons,layout:n.prompt.layout},on:{response:n.prompt.callback},model:{value:n.prompt.show,callback:function(e){l().f[31]++,l().s[35]++,n.$set(n.prompt,"show",e)},expression:"prompt.show"}})):(l().b[12][1]++,n._e()),n.results.show?(l().b[13][0]++,e("results-dialog",{attrs:{text:n.results.text},model:{value:n.results.show,callback:function(e){l().f[32]++,l().s[36]++,n.$set(n.results,"show",e)},expression:"results.show"}})):(l().b[13][1]++,n._e()),n.scriptEnvironment.show?(l().b[14][0]++,e("script-environment-dialog",{attrs:{"input-environment":n.scriptEnvironment.env},on:{environment:n.environmentHandler},model:{value:n.scriptEnvironment.show,callback:function(e){l().f[33]++,l().s[37]++,n.$set(n.scriptEnvironment,"show",e)},expression:"scriptEnvironment.show"}})):(l().b[14][1]++,n._e()),e("simple-text-dialog",{attrs:{title:"Suite Analysis Error",text:n.suiteError,width:1e3},model:{value:n.showSuiteError,callback:function(e){l().f[34]++,l().s[38]++,n.showSuiteError=e},expression:"showSuiteError"}}),e("v-bottom-sheet",{model:{value:n.showStartedScripts,callback:function(e){l().f[35]++,l().s[39]++,n.showStartedScripts=e},expression:"showStartedScripts"}},[e("v-sheet",{staticClass:"pb-11 pt-5 px-5"},[e("running-scripts",{attrs:{"connect-in-new-tab":!!n.fileModified},on:{close:function(){l().f[36]++,l().s[40]++,n.showStartedScripts=!1}}})],1)],1)],1)},o=(l().s[41]++,[]),s=t(4948),a=t(4282),c=t(21),r=t(6706),u=t(6041),m=(t(4769),t(6728),t(3244),t(8673),t(6886),t(4905),t(7368),t(4471),t(7950),t(1172),t(8233),t(1951),t(9228),t(3450),t(5794),t(1939),t(9529),t(1235),t(3132),t(1245),t(8178),t(2501),t(4121),t(523),t(4115),t(634),t(9644)),d=t.n(m),A=t(4567),p=t(6812),h=t(7146);h.ju.staleThreshold=60;var f=function(){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,A.Z)(this,n),this._cable=h.zD(e)}return(0,p.Z)(n,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(n,e){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return t._cable.subscriptions.create((0,s.Z)({channel:n,scope:e,token:localStorage.openc3Token},i),l)}))}}]),n}(),v=t(4091),C=new v["default"],b=d().create({baseURL:location.origin,timeout:6e4,params:{}});b.interceptors.response.use((function(n){return n}),(function(n){if(n.response){var e,t,l,i,o,s,a,c,r,u;if(401===n.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),n.response.headers["ignore-errors"]&&n.response.headers["ignore-errors"].includes(n.response.status.toString()))return Promise.reject(n);var m="HTTP ".concat(n.response.status," - ");if(null!==(e=n.response)&&void 0!==e&&e.statusText&&(m+="".concat(n.response.statusText," ")),null!==(t=n.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(m+="".concat(n.response.config.data," ")),null!==(i=n.response)&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&o.message)m+="".concat(n.response.data.message);else if(null!==(s=n.response)&&void 0!==s&&null!==(a=s.data)&&void 0!==a&&a.exception)m+="".concat(n.response.data.exception);else if(null!==(c=n.response)&&void 0!==c&&null!==(r=c.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)n.response.data.error.class&&(m+="".concat(n.response.data.error.class," ")),m+="".concat(n.response.data.error.message);else{var d;m+="".concat(null===(d=n.response)||void 0===d?void 0:d.data)}throw C.$notify.serious({title:"Network error",body:m}),n}throw n}));var g=b,y=function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t){var l,i,o,s,a,r,u,m,d,A=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(l=A.length>2&&void 0!==A[2]?A[2]:{},i=l.data,o=l.params,s=void 0===o?{}:o,a=l.headers,r=l.noAuth,u=void 0!==r&&r,m=l.noScope,d=void 0!==m&&m,u){n.next=11;break}return n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](2),OpenC3Auth.login();case 10:a["Authorization"]=localStorage.openc3Token;case 11:return d||s["scope"]||(s["scope"]=window.openc3Scope),n.abrupt("return",g({method:e,url:t,data:i,params:s,headers:a}));case 13:case"end":return n.stop()}}),n,null,[[2,7]])})));return function(e,t){return n.apply(this,arguments)}}(),_={Accept:"application/json"},k=(0,s.Z)((0,s.Z)({},_),{},{"Content-Type":"application/json"}),w={get:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?_:l,o=e.noScope,s=e.noAuth;return y("get",n,{params:t,headers:i,noScope:o,noAuth:s})},put:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?k:i,s=e.noScope,a=e.noAuth;return y("put",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},post:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.data,l=e.params,i=e.headers,o=void 0===i?k:i,s=e.noScope,a=e.noAuth;return y("post",n,{data:t,params:l,headers:o,noScope:s,noAuth:a})},delete:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.params,l=e.headers,i=void 0===l?_:l,o=e.noScope,s=e.noAuth;return y("delete",n,{params:t,headers:i,noScope:o,noAuth:s})}},x=t(5095),S=(t(1411),t(419),t(3923),t(2375),t(8966)),R=t(7284),M=(t(4083),t(4908),function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:"600"},on:{keydown:function(e){return!e.type.indexOf("key")&&n._k(e.keyCode,"enter",13,e.key,"Enter")?null:n.success()}},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer")],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{attrs:{dense:""}},[e("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Search","data-test":"file-open-save-search"},on:{input:n.handleSearch},model:{value:n.search,callback:function(e){n.search=e},expression:"search"}})],1),e("v-row",{staticClass:"mt-2",attrs:{dense:""}},[e("v-treeview",{ref:"tree",staticStyle:{width:"100%"},attrs:{dense:"",activatable:"","return-object":"",items:n.items,search:n.search,"open-on-click":"open"===n.type},on:{"update:active":n.activeFile},scopedSlots:n._u([{key:"prepend",fn:function(t){var l=t.item,i=t.open;return[l.file?e("v-icon",[n._v(" "+n._s("mdi-language-ruby")+" ")]):e("v-icon",[n._v(" "+n._s(i?"mdi-folder-open":"mdi-folder")+" ")])]}}]),model:{value:n.tree,callback:function(e){n.tree=e},expression:"tree"}})],1),e("v-row",{staticClass:"my-2"},[e("v-text-field",{attrs:{"hide-details":"",label:"Filename","data-test":"file-open-save-filename",disabled:"open"===n.type},model:{value:n.selectedFile,callback:function(e){n.selectedFile=e},expression:"selectedFile"}})],1),e("v-row",{attrs:{dense:""}},[e("span",{directives:[{name:"show",rawName:"v-show",value:n.error,expression:"error"}],staticClass:"my-2 red--text",domProps:{textContent:n._s(n.error)}})]),e("v-row",{staticClass:"mt-2"},[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"file-open-save-cancel-btn",disabled:n.disableButtons},on:{click:function(e){n.show=!1}}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"file-open-save-submit-btn",disabled:n.disableButtons||!!n.error},on:{click:function(e){return e.preventDefault(),n.success.apply(null,arguments)}}},[n._v(" "+n._s(n.submit)+" ")])],1)],1)])],1)])],1)}),E=[],D=(t(4069),t(9949),{props:{type:{type:String,required:!0,validator:function(n){return-1!==["open","save"].indexOf(n)}},apiUrl:String,requireTargetParentDir:Boolean,inputFilename:String,value:Boolean},data:function(){return{tree:[],items:[],id:1,search:null,selectedFile:null,disableButtons:!1,targets:[]}},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},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 n="".concat(this.selectedFile," is not a valid filename. Must ");return this.requireTargetParentDir&&(n+="be in a target directory and "),n+="only contain alphanumeric characters and / ! - _ . * ' ( )",n}return null},validFilenameRegex:function(){var n="0-9a-zA-Z",e="".concat(n,"\\/\\!\\-\\_\\.\\*\\'\\(\\)"),t="[".concat(e,"]+\\.[").concat(n,"]+");if(this.requireTargetParentDir){var l="(".concat(this.targets.join("|"),")");t="\\/?".concat(l,"\\/").concat(t)}return new RegExp(t)}},created:function(){var n=this;w.get(this.apiUrl).then((function(e){n.items=[],n.id=1;var t,l=(0,a.Z)(e.data);try{for(l.s();!(t=l.n()).done;){var i=t.value;n.filepath=i,n.insertFile(n.items,1,i),n.id++}}catch(o){l.e(o)}finally{l.f()}n.inputFilename&&(n.selectedFile=n.inputFilename)})).catch((function(e){n.$emit("error","Failed to connect to OpenC3. ".concat(e))})),this.requireTargetParentDir&&w.get("/openc3-api/targets").then((function(e){n.targets=e.data}))},methods:{clear:function(){this.show=!1,this.overwrite=!1,this.disableButtons=!1},handleSearch:function(n){n?this.$refs.tree.updateAll(!0):this.$refs.tree.updateAll(!1)},activeFile:function(n){0===n.length?this.selectedFile=null:this.selectedFile=n[0].path},exists:function(n,e){var t,l=!1,i=(0,a.Z)(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o.path===e)return!0;if(o.path.length>1&&"*"===o.path[o.path.length-1]&&o.path.slice(0,o.path.length-1)===e)return!0;o.children&&(l=l||this.exists(o.children,e))}}catch(s){i.e(s)}finally{i.f()}return l},success:function(){null!==this.selectedFile&&("open"===this.type?this.openSuccess():this.saveSuccess())},openSuccess:function(){var n=this;this.disableButtons=!0,w.get("".concat(this.apiUrl,"/").concat(this.selectedFile)).then((function(e){var t={name:n.selectedFile,contents:e.data.contents};e.data.suites&&(t["suites"]=JSON.parse(e.data.suites)),e.data.error&&(t["error"]=e.data.error),e.data.success&&(t["success"]=e.data.success);var l=e.data.locked,i=e.data.breakpoints;n.$emit("file",{file:t,locked:l,breakpoints:i}),n.clear()})).catch((function(e){n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),n.clear()}))},saveSuccess:function(){var n=this,e=this.exists(this.items,this.selectedFile);e?this.$dialog.confirm("Are you sure you want to overwrite: ".concat(this.selectedFile),{okText:"Overwrite",cancelText:"Cancel"}).then((function(e){n.$emit("filename",n.selectedFile),n.clear()})):(this.$emit("filename",this.selectedFile),this.clear())},insertFile:function(n,e,t){var l=t.split("/");if(1===l.length)return n.push({id:this.id,name:l[0],file:"ruby",path:this.filepath}),void this.id++;var i=n.findIndex((function(n){return n.name===l[0]}));-1===i?(n.push({id:this.id,name:l[0],children:[],path:this.filepath.split("/").slice(0,e).join("/")}),this.id++,this.insertFile(n[n.length-1].children,e+1,l.slice(1).join("/"))):this.insertFile(n[i].children,e+1,l.slice(1).join("/"))}}}),T=D,O=t(3483),F=(0,O.Z)(T,M,E,!1,null,null,null),I=F.exports,$=function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("form",{on:{submit:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v("Environment Variables")]),e("v-spacer")],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{staticClass:"mb-2",attrs:{dense:""}},[e("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:n.search,callback:function(e){n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{"item-key":"name","hide-default-header":"","data-test":"env-table",search:n.search,headers:n.headers,items:n.environment,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:n._u([{key:"item.actions",fn:function(t){var l=t.item;return[e("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(e){return n.deleteEnvironment(l)}}},[e("v-icon",[n._v("mdi-delete")])],1)]}}])}),e("v-row",{attrs:{dense:""}},[e("v-col",[e("v-text-field",{attrs:{label:"Key","data-test":"env-key"},model:{value:n.key,callback:function(e){n.key=e},expression:"key"}})],1),e("v-col",[e("v-text-field",{attrs:{label:"Value","data-test":"env-value"},model:{value:n.keyValue,callback:function(e){n.keyValue=e},expression:"keyValue"}})],1)],1),e("v-row",{attrs:{dense:""}},[e("v-btn",{attrs:{block:"",type:"submit",color:"primary","data-test":"add-env",disabled:!n.key||!n.keyValue},on:{click:function(e){return e.preventDefault(),n.addEnvironment.apply(null,arguments)}}},[n._v(" Add ")])],1)],1)])],1)])],1)},B=[],N={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(n){this.$emit("input",n)}}},mounted:function(){this.update()},methods:{alertHandler:function(n){this.alert=n.text,this.alertType=n.type,this.showAlert=!0},update:function(){var n=this;w.get("/openc3-api/environment").then((function(e){n.environment=e.data})).catch((function(n){}))},addEnvironment:function(){var n=this;w.post("/openc3-api/environment",{data:{key:this.key.toUpperCase(),value:this.keyValue}}).then((function(e){"New environment variable: ".concat(e.data.name);n.update()})).catch((function(e){var t={text:"Failed to add environment variable: ".concat(e),type:"error"};n.alertHandler(t)})),this.key="",this.keyValue=""},deleteEnvironment:function(n){var e=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(n.key,"=").concat(n.value),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return w["delete"]("/openc3-api/environment/".concat(n.name))})).then((function(t){var l={text:"Removed environment variable: ".concat(n.name),type:"success"};e.alertHandler(l),e.update()})).catch((function(n){var t={text:"Failed to delete environment: ".concat(n),type:"error"};e.alertHandler(t)}))}}},L=N,H=(0,O.Z)(L,$,B,!1,null,null,null),Z=H.exports,U=function(){var n=this,e=n._self._c;return e("v-dialog",{attrs:{width:n.width},model:{value:n.show,callback:function(e){n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" "+n._s(n.title)+" ")]),e("v-spacer"),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:n.download}},[n._v(" mdi-download ")])],1)]}}])},[e("span",[n._v(" Download ")])])],1)],1),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[n._v(n._s(n.text))])])]),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},P=[],G={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get:function(){return this.value},set:function(n){this.$emit("input",n)}}},methods:{download:function(){var n=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(n),e.setAttribute("download","".concat(this.title,".txt")),e.click()}}},q=G,j=(0,O.Z)(q,U,P,!1,null,null,null),V=j.exports,z=function(){var n=this,e=n._self._c;return e("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[e("div",{staticClass:"v-toolbar__content"},[n._l(n.menus,(function(t,l){return e("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:n._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[e("v-btn",n._g(n._b({staticClass:"mx-1",attrs:{outlined:"","data-test":n.formatDT("".concat(n.title," ").concat(t.label))}},"v-btn",o,!1),i),[e("span",{domProps:{textContent:n._s(t.label)}}),e("v-icon",{attrs:{right:""}},[n._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e("v-list",[e("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[n._l(t.items,(function(l,i){return[l.divider?e("v-divider"):e("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":n.formatDT("".concat(n.title," ").concat(t.label," ").concat(l.label))},on:{click:l.command}},[l.radio?e("v-list-item-action",[e("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):n._e(),l.checkbox?e("v-list-item-action",[e("v-checkbox",{attrs:{color:"secondary",label:l.label,value:l.label},model:{value:n.checked,callback:function(e){n.checked=e},expression:"checked"}})],1):n._e(),l.icon?e("v-list-item-icon",[e("v-icon",{attrs:{disabled:l.disabled}},[n._v(n._s(l.icon))])],1):n._e(),l.radio||l.checkbox?n._e():e("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[n._v(n._s(l.label))])],1)]}))],2)],1)],1)})),e("v-spacer"),e("v-toolbar-title",[n._v(n._s(n.title))]),e("v-spacer")],2)])},W=[],Y=(t(5940),t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(n){return n.replaceAll(" ","-").toLowerCase()}},mounted:function(){document.title=this.title}}),K=Y,J=(t(9824),(0,O.Z)(K,z,W,!1,null,"5fb8d7fb",null)),X=J.exports,Q=t(6632),nn=t(6274),en=(t(1372),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(171),t(7093),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(9224),t(7233),t(5734),function(){function n(){(0,A.Z)(this,n),(0,nn.Z)(this,"id",1)}return(0,p.Z)(n,[{key:"exec",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t){var l,i,o,a,r=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return l=r.length>2&&void 0!==r[2]?r[2]:{},i=r.length>3&&void 0!==r[3]?r[3]:{},n.prev=2,n.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](2),OpenC3Auth.login();case 10:return this.id=this.id+1,n.prev=11,l["scope"]=window.openc3Scope,n.next=15,g.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:l},{headers:(0,s.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},i)});case 15:return o=n.sent,n.abrupt("return",o.data.result);case 19:throw n.prev=19,n.t1=n["catch"](11),a=new Error,n.t1.response?(a.name=n.t1.response.data.error.data.class,a.message=n.t1.response.data.error.data.message):n.t1.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a;case 24:case"end":return n.stop()}}),n,this,[[2,7],[11,19]])})));function e(e,t){return n.apply(this,arguments)}return e}()},{key:"decode_openc3_type",value:function(n){if(null!==n&&"object"===(0,Q.Z)(n)&&"Float"==n.json_class&&n.raw){if("NaN"==n.raw)return NaN;if("Infinity"==n.raw)return 1/0;if("-Infinity"==n.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(n){return Number.isNaN(n)?{json_class:"Float",raw:"NaN"}:n==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:n==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(n){return this.exec("connect_interface",[n])}},{key:"disconnect_interface",value:function(n){return this.exec("disconnect_interface",[n])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(n){return this.exec("connect_router",[n])}},{key:"disconnect_router",value:function(n){return this.exec("disconnect_router",[n])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(n){return this.exec("get_tlm_cnts",[n])}},{key:"get_item",value:function(n,e,t){return this.exec("get_item",[n,e,t])}},{key:"get_parameter",value:function(n,e,t){return this.exec("get_parameter",[n,e,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(n){return this.exec("start_cmd_log",[n])}},{key:"start_tlm_log",value:function(n){return this.exec("start_tlm_log",[n])}},{key:"stop_cmd_log",value:function(n){return this.exec("stop_cmd_log",[n])}},{key:"stop_tlm_log",value:function(n){return this.exec("stop_tlm_log",[n])}},{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(n){return this.exec("set_limits_set",[n])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(n){return this.exec("start_background_task",[n])}},{key:"stop_background_task",value:function(n){return this.exec("stop_background_task",[n])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(n){return this.exec("get_target",[n])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(n,e){return this.exec("get_telemetry",[n,e])}},{key:"get_all_telemetry",value:function(n){return this.exec("get_all_telemetry",[n])}},{key:"get_all_telemetry_names",value:function(n){return this.exec("get_all_telemetry_names",[n])}},{key:"get_tlm_packet",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t,l){var i,o,s,a;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.exec("get_tlm_packet",[e,t],{type:l});case 2:if(i=n.sent,null!=i)for(o=i.length,s=null,a=0;a<o;a++)s=this.decode_openc3_type(i[a][1]),null!==s&&(i[a][1]=s);return n.abrupt("return",i);case 5:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_packet_derived_items",value:function(n,e){return this.exec("get_packet_derived_items",[n,e])}},{key:"get_tlm_buffer",value:function(n,e){return this.exec("get_tlm_buffer",[n,e])}},{key:"get_tlm_values",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i,o;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.exec("get_tlm_values",[e]);case 2:for(t=n.sent,l=t[0].length,i=null,o=0;o<l;o++)i=this.decode_openc3_type(t[0][o]),null!==i&&(t[0][o]=i);return n.abrupt("return",t);case 7:case"end":return n.stop()}}),n,this)})));function e(e){return n.apply(this,arguments)}return e}()},{key:"get_limits",value:function(n,e,t){return this.exec("get_limits",[n,e,t])}},{key:"tlm",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e,t,l){var i,o,s,a,r=arguments;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",o=null,void 0!==t){n.next=8;break}return n.next=5,this.exec("tlm",[e]);case 5:o=n.sent,n.next=24;break;case 8:if(void 0!==l){n.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){n.next=15;break}return n.next=12,this.exec("tlm",[e],{type:t});case 12:o=n.sent,n.next=19;break;case 15:throw s=new Error,s.name="TypeError",s.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),s;case 19:n.next=24;break;case 21:return n.next=23,this.exec("tlm",[e,t,l],{type:i});case 23:o=n.sent;case 24:return a=this.decode_openc3_type(o),null!==a&&(o=a),n.abrupt("return",o);case 27:case"end":return n.stop()}}),n,this)})));function e(e,t,l){return n.apply(this,arguments)}return e}()},{key:"get_all_commands",value:function(n){return this.exec("get_all_commands",[n])}},{key:"get_all_command_names",value:function(n){return this.exec("get_all_command_names",[n])}},{key:"get_command",value:function(n,e){return this.exec("get_command",[n,e])}},{key:"get_cmd_cnts",value:function(n){return this.exec("get_cmd_cnts",[n])}},{key:"get_cmd_value",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[n,e,t,l])}},{key:"get_cmd_buffer",value:function(n,e){return this.exec("get_cmd_buffer",[n,e])}},{key:"_cmd",value:function(n,e,t,l,i){var o=null;for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o=this.encode_openc3_type(l[s]),null!==o&&(l[s]=o));return this.exec(n,[e,t,l],{},i)}},{key:"get_cmd_hazardous",value:function(n,e,t){return void 0===e?this.exec("get_cmd_hazardous",n):this._cmd("get_cmd_hazardous",n,e,t)}},{key:"cmd",value:function(n,e,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===e?this.exec("cmd",n,{},l):this._cmd("cmd",n,e,t,l)}},{key:"cmd_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_range_check",n):this._cmd("cmd_no_range_check",n,e,t)}},{key:"cmd_raw",value:function(n,e,t){return void 0===e?this.exec("cmd_raw",n):this._cmd("cmd_raw",n,e,t)}},{key:"cmd_raw_no_range_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_range_check",n):this._cmd("cmd_raw_no_range_check",n,e,t)}},{key:"cmd_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_no_hazardous_check",n):this._cmd("cmd_no_hazardous_check",n,e,t)}},{key:"cmd_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_no_checks",n):this._cmd("cmd_no_checks",n,e,t)}},{key:"cmd_raw_no_hazardous_check",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_hazardous_check",n):this._cmd("cmd_raw_no_hazardous_check",n,e,t)}},{key:"cmd_raw_no_checks",value:function(n,e,t){return void 0===e?this.exec("cmd_raw_no_checks",n):this._cmd("cmd_raw_no_checks",n,e,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(n,e){return this.exec("send_raw",[n,e])}},{key:"list_configs",value:function(n){return this.exec("list_configs",[n])}},{key:"load_config",value:function(n,e){return this.exec("load_config",[n,e])}},{key:"save_config",value:function(n,e,t){return this.exec("save_config",[n,e,t])}},{key:"delete_config",value:function(n,e){return this.exec("delete_config",[n,e])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(n){return this.exec("get_overall_limits_state",[n])}},{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(n){return this.exec("get_setting",[n])}},{key:"get_settings",value:function(n){return this.exec("get_settings",n)}},{key:"save_setting",value:function(n,e){return this.exec("save_setting",[n,e])}},{key:"hashString",value:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!window.isSecureContext){n.next=7;break}return t=(new TextEncoder).encode(e),n.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=n.sent,i=new Uint8Array(l),n.abrupt("return",Array.from(i).map((function(n){return n.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return n.stop()}}),n)})));function e(e){return n.apply(this,arguments)}return e}()}]),n}());function tn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",e="c596c9aa23ec1ab55e7c1ed05f364d37ab34e90c",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:1334}},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:854},end:{line:1,column:872}},9:{start:{line:1,column:1226},end:{line:1,column:1250}},10:{start:{line:1,column:1250},end:{line:1,column:1297}},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:838},end:{line:1,column:839}},loc:{start:{line:1,column:853},end:{line:1,column:873}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1209},end:{line:1,column:1210}},loc:{start:{line:1,column:1225},end:{line:1,column:1298}},line:1}},branchMap:{0:{loc:{start:{line:1,column:745},end:{line:1,column:779}},type:"cond-expr",locations:[{start:{line:1,column:760},end:{line:1,column:770}},{start:{line:1,column:773},end:{line:1,column:779}}],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:"c596c9aa23ec1ab55e7c1ed05f364d37ab34e90c"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return tn=function(){return s},s}tn(),tn().s[0]++;var ln=function(){tn().f[0]++;var n=(tn().s[1]++,this),e=(tn().s[2]++,n._self._c);return tn().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){tn().f[1]++,tn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-form",{on:{submit:function(e){return tn().f[2]++,tn().s[5]++,e.preventDefault(),tn().s[6]++,n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){tn().f[3]++,tn().s[7]++,n.valid=e},expression:"valid"}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" User Input Required ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-row",[e("v-card-title",[n._v(n._s(n.question))])],1),e("v-row",{staticClass:"my-1"},[e("v-text-field",{attrs:{autofocus:"","data-test":"ask-value-input",type:n.password?(tn().b[0][0]++,"password"):(tn().b[0][1]++,"text"),rules:n.rules},model:{value:n.inputValue,callback:function(e){tn().f[4]++,tn().s[8]++,n.inputValue=e},expression:"inputValue"}})],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"ask-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"ask-ok",disabled:!n.valid},on:{click:function(e){return tn().f[5]++,tn().s[9]++,e.preventDefault(),tn().s[10]++,n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},on=(tn().s[11]++,[]);function sn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/AskDialog.vue",e="3c20c5f02286aeebb9bf285c77330c6b16a4bd66",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AAuEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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>{{ question }}</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:"3c20c5f02286aeebb9bf285c77330c6b16a4bd66"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return sn=function(){return s},s}sn();var an={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 sn().f[0]++,sn().s[0]++,{inputValue:"",valid:!1,rules:[function(n){return sn().f[1]++,sn().s[1]++,sn().b[0][0]++,!!n||(sn().b[0][1]++,"Required")}]}},created:function(){sn().f[2]++,sn().s[2]++,this.default?(sn().b[1][0]++,sn().s[3]++,this.valid=!0,sn().s[4]++,this.inputValue=this.default):sn().b[1][1]++,sn().s[5]++,!1===this.answerRequired?(sn().b[2][0]++,sn().s[6]++,this.valid=!0,sn().s[7]++,this.rules=[function(n){return sn().f[3]++,sn().s[8]++,!0}]):sn().b[2][1]++},computed:{show:{get:function(){return sn().f[4]++,sn().s[9]++,this.value},set:function(n){sn().f[5]++,sn().s[10]++,this.$emit("input",n)}}},methods:{submitHandler:function(){sn().f[6]++,sn().s[11]++,this.$emit("response",this.inputValue)},cancelHandler:function(){sn().f[7]++,sn().s[12]++,this.$emit("response","Cancel")}}},cn=an,rn=(0,O.Z)(cn,ln,on,!1,null,null,null),un=rn.exports;function mn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",e="01374571d3b1ccd96b203eaf37b52b62fa3ffc91",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:1457}},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:975},end:{line:1,column:993}},9:{start:{line:1,column:1349},end:{line:1,column:1373}},10:{start:{line:1,column:1373},end:{line:1,column:1420}},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:959},end:{line:1,column:960}},loc:{start:{line:1,column:974},end:{line:1,column:994}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1332},end:{line:1,column:1333}},loc:{start:{line:1,column:1348},end:{line:1,column:1421}},line:1}},branchMap:{0:{loc:{start:{line:1,column:623},end:{line:1,column:736}},type:"cond-expr",locations:[{start:{line:1,column:637},end:{line:1,column:727}},{start:{line:1,column:728},end:{line:1,column:736}}],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:"01374571d3b1ccd96b203eaf37b52b62fa3ffc91"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return mn=function(){return s},s}mn(),mn().s[0]++;var dn=function(){mn().f[0]++;var n=(mn().s[1]++,this),e=(mn().s[2]++,n._self._c);return mn().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){mn().f[1]++,mn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-form",{on:{submit:function(e){return mn().f[2]++,mn().s[5]++,e.preventDefault(),mn().s[6]++,n.submitHandler.apply(null,arguments)}},model:{value:n.valid,callback:function(e){mn().f[3]++,mn().s[7]++,n.valid=e},expression:"valid"}},[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" File Dialog ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-row",[e("v-card-title",[n._v(n._s(n.title))])],1),n.message?(mn().b[0][0]++,e("v-row",[e("span",{staticClass:"ma-3",domProps:{textContent:n._s(n.message)}})])):(mn().b[0][1]++,n._e()),e("v-row",{staticClass:"my-1"},[e("v-file-input",{attrs:{label:"Choose File",autofocus:"","data-test":"file-input",accept:n.filter,"small-chips":"",multiple:n.multiple},model:{value:n.inputValue,callback:function(e){mn().f[4]++,mn().s[8]++,n.inputValue=e},expression:"inputValue"}})],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-1",attrs:{outlined:"","data-test":"file-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-1",attrs:{color:"primary",type:"submit","data-test":"file-ok",disabled:!n.valid},on:{click:function(e){return mn().f[5]++,mn().s[9]++,e.preventDefault(),mn().s[10]++,n.submitHandler.apply(null,arguments)}}},[n._v(" Ok ")])],1)],1)],1)],1)},An=(mn().s[11]++,[]);function pn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/FileDialog.vue",e="4f34fe407a2721ee959e4501b7d6f4c8a3adec35",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";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",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--\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>{{ title }}</v-card-title>\n </v-row>\n <v-row v-if="message">\n <span class="ma-3" v-text="message" />\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:"4f34fe407a2721ee959e4501b7d6f4c8a3adec35"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return pn=function(){return s},s}pn();var hn={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 pn().f[0]++,pn().s[0]++,{inputValue:null}},computed:{show:{get:function(){return pn().f[1]++,pn().s[1]++,this.value},set:function(n){pn().f[2]++,pn().s[2]++,this.$emit("input",n)}}},methods:{submitHandler:function(){pn().f[3]++,pn().s[3]++,Array.isArray(this.inputValue)?pn().b[0][1]++:(pn().b[0][0]++,pn().s[4]++,this.inputValue=[this.inputValue]),pn().s[5]++,this.$emit("response",this.inputValue)},cancelHandler:function(){pn().f[4]++,pn().s[6]++,this.$emit("response","Cancel")}}},fn=hn,vn=(0,O.Z)(fn,dn,An,!1,null,null,null),Cn=vn.exports;function bn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",e="f6c8b2b10b5c381d296be7be0df7425bff9af4f4",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:670}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:397},end:{line:1,column:504}},6:{start:{line:1,column:617},end:{line:1,column:637}},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:376},end:{line:1,column:377}},loc:{start:{line:1,column:396},end:{line:1,column:505}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:600},end:{line:1,column:601}},loc:{start:{line:1,column:616},end:{line:1,column:638}},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:"f6c8b2b10b5c381d296be7be0df7425bff9af4f4"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return bn=function(){return s},s}bn(),bn().s[0]++;var gn=function(){bn().f[0]++;var n=(bn().s[1]++,this),e=(bn().s[2]++,n._self._c);return bn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){bn().f[1]++,bn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",{domProps:{textContent:n._s(n.title)}}),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",n._l(n.text,(function(t,l){return bn().f[2]++,bn().s[5]++,e("v-row",{key:l,attrs:{"no-gutters":""}},[e("span",{domProps:{textContent:n._s(t)}})])})),1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{attrs:{color:"primary"},on:{click:function(e){bn().f[3]++,bn().s[6]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},yn=(bn().s[7]++,[]);function _n(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InformationDialog.vue",e="4045cc6402f180ade4bc6c5b4cf7cf8bffdb0a68",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AA4CA;AACA;AACA;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--\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 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 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:"4045cc6402f180ade4bc6c5b4cf7cf8bffdb0a68"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return _n=function(){return s},s}_n();var kn={props:{value:{type:Boolean,required:!0},title:{type:String,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return _n().f[0]++,_n().s[0]++,this.value},set:function(n){_n().f[1]++,_n().s[1]++,this.$emit("input",n)}}},methods:{}},wn=kn,xn=(0,O.Z)(wn,gn,yn,!1,null,null,null),Sn=xn.exports;function Rn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",e="6263c9586c7845bd165b3501631fbcfb66920cc0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.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:2473}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:641},end:{line:1,column:810}},6:{start:{line:1,column:900},end:{line:1,column:1684}},7:{start:{line:1,column:1066},end:{line:1,column:1092}},8:{start:{line:1,column:1260},end:{line:1,column:1288}},9:{start:{line:1,column:1427},end:{line:1,column:1620}},10:{start:{line:1,column:1570},end:{line:1,column:1586}},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: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:617},end:{line:1,column:618}},loc:{start:{line:1,column:640},end:{line:1,column:811}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:883},end:{line:1,column:884}},loc:{start:{line:1,column:899},end:{line:1,column:1685}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1050},end:{line:1,column:1051}},loc:{start:{line:1,column:1065},end:{line:1,column:1093}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1244},end:{line:1,column:1245}},loc:{start:{line:1,column:1259},end:{line:1,column:1289}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1403},end:{line:1,column:1404}},loc:{start:{line:1,column:1426},end:{line:1,column:1621}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1553},end:{line:1,column:1554}},loc:{start:{line:1,column:1569},end:{line:1,column:1587}},line:1}},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,7:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6263c9586c7845bd165b3501631fbcfb66920cc0"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Rn=function(){return s},s}Rn(),Rn().s[0]++;var Mn=function(){Rn().f[0]++;var n=(Rn().s[1]++,this),e=(Rn().s[2]++,n._self._c);return Rn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Rn().f[1]++,Rn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v("Input Metadata")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-simple-table",{attrs:{dense:""}},[e("tbody",[e("tr",[e("th",{staticClass:"text-left"},[n._v("Key")]),e("th",{staticClass:"text-left"},[n._v("Value")]),e("th",{staticClass:"text-right"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return Rn().f[2]++,Rn().s[5]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newMetadata}},[n._v(" mdi-plus ")])],1)]}}])},[e("span",[n._v("New Metadata")])])],1)]),n._l(n.metadata,(function(t,l){return Rn().f[3]++,Rn().s[6]++,[e("tr",{key:"tr-".concat(l)},[e("td",[e("v-text-field",{attrs:{type:"text",dense:"","data-test":"key-".concat(l)},model:{value:t.key,callback:function(e){Rn().f[4]++,Rn().s[7]++,n.$set(t,"key",e)},expression:"meta.key"}})],1),e("td",[e("v-text-field",{attrs:{type:"text",dense:"","data-test":"value-".concat(l)},model:{value:t.value,callback:function(e){Rn().f[5]++,Rn().s[8]++,n.$set(t,"value",e)},expression:"meta.value"}})],1),e("td",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return Rn().f[6]++,Rn().s[9]++,[e("div",n._g(n._b({},"div",o,!1),i),[e("v-icon",{attrs:{"data-test":"delete-metadata-icon"},on:{click:function(e){return Rn().f[7]++,Rn().s[10]++,n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[e("span",[n._v("Delete Metadata")])])],1)])]}))],2)]),e("v-row",{directives:[{name:"show",rawName:"v-show",value:n.lastUpdated,expression:"lastUpdated"}]},[e("v-col",[e("span",{staticClass:"pt-3"},[n._v("Last update: "+n._s(n.lastUpdated))])])],1),e("v-row",[e("v-col",[e("span",{directives:[{name:"show",rawName:"v-show",value:n.inputError,expression:"inputError"}],staticClass:"red--text",domProps:{textContent:n._s(n.inputError)}})])],1)],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"metadata-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"metadata-dialog-save",disabled:!!n.inputError},on:{click:n.updateMetadata}},[n._v(" Update ")])],1)],1)],1)},En=(Rn().s[11]++,[]);t(3108),t(9805);function Dn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",e="94c33c8a5090210dde49510801cf9ce2d2f03312",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/InputMetadataDialog.vue",statementMap:{0:{start:{line:14,column:4},end:{line:17,column:5}},1:{start:{line:20,column:4},end:{line:20,column:22}},2:{start:{line:25,column:28},end:{line:27,column:7}},3:{start:{line:26,column:18},end:{line:26,column:54}},4:{start:{line:28,column:6},end:{line:30,column:7}},5:{start:{line:29,column:8},end:{line:29,column:67}},6:{start:{line:31,column:6},end:{line:31,column:17}},7:{start:{line:35,column:8},end:{line:35,column:25}},8:{start:{line:38,column:8},end:{line:38,column:34}},9:{start:{line:44,column:23},end:{line:47,column:12}},10:{start:{line:45,column:8},end:{line:45,column:43}},11:{start:{line:46,column:8},end:{line:46,column:21}},12:{start:{line:48,column:20},end:{line:48,column:29}},13:{start:{line:49,column:6},end:{line:56,column:8}},14:{start:{line:52,column:8},end:{line:55,column:10}},15:{start:{line:57,column:6},end:{line:57,column:38}},16:{start:{line:58,column:6},end:{line:58,column:28}},17:{start:{line:61,column:6},end:{line:61,column:38}},18:{start:{line:62,column:6},end:{line:62,column:28}},19:{start:{line:65,column:6},end:{line:73,column:8}},20:{start:{line:66,column:8},end:{line:72,column:9}},21:{start:{line:67,column:10},end:{line:67,column:28}},22:{start:{line:68,column:10},end:{line:68,column:33}},23:{start:{line:70,column:10},end:{line:70,column:73}},24:{start:{line:71,column:10},end:{line:71,column:51}},25:{start:{line:76,column:6},end:{line:78,column:8}},26:{start:{line:77,column:8},end:{line:77,column:47}},27:{start:{line:81,column:6},end:{line:84,column:8}},28:{start:{line:87,column:6},end:{line:87,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:9},end:{line:18,column:3}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:19,column:11},end:{line:19,column:12}},loc:{start:{line:19,column:23},end:{line:21,column:3}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:23,column:16},end:{line:23,column:17}},loc:{start:{line:23,column:28},end:{line:32,column:5}},line:23},3:{name:"(anonymous_3)",decl:{start:{line:26,column:8},end:{line:26,column:9}},loc:{start:{line:26,column:18},end:{line:26,column:54}},line:26},4:{name:"(anonymous_4)",decl:{start:{line:34,column:6},end:{line:34,column:7}},loc:{start:{line:34,column:12},end:{line:36,column:7}},line:34},5:{name:"(anonymous_5)",decl:{start:{line:37,column:6},end:{line:37,column:7}},loc:{start:{line:37,column:17},end:{line:39,column:7}},line:37},6:{name:"(anonymous_6)",decl:{start:{line:43,column:20},end:{line:43,column:21}},loc:{start:{line:43,column:32},end:{line:59,column:5}},line:43},7:{name:"(anonymous_7)",decl:{start:{line:44,column:44},end:{line:44,column:45}},loc:{start:{line:44,column:65},end:{line:47,column:7}},line:44},8:{name:"(anonymous_8)",decl:{start:{line:51,column:14},end:{line:51,column:15}},loc:{start:{line:51,column:28},end:{line:56,column:7}},line:51},9:{name:"(anonymous_9)",decl:{start:{line:60,column:12},end:{line:60,column:13}},loc:{start:{line:60,column:24},end:{line:63,column:5}},line:60},10:{name:"(anonymous_10)",decl:{start:{line:64,column:17},end:{line:64,column:18}},loc:{start:{line:64,column:29},end:{line:74,column:5}},line:64},11:{name:"(anonymous_11)",decl:{start:{line:65,column:50},end:{line:65,column:51}},loc:{start:{line:65,column:64},end:{line:73,column:7}},line:65},12:{name:"(anonymous_12)",decl:{start:{line:75,column:18},end:{line:75,column:19}},loc:{start:{line:75,column:40},end:{line:79,column:5}},line:75},13:{name:"(anonymous_13)",decl:{start:{line:76,column:50},end:{line:76,column:51}},loc:{start:{line:76,column:57},end:{line:78,column:7}},line:76},14:{name:"(anonymous_14)",decl:{start:{line:80,column:17},end:{line:80,column:18}},loc:{start:{line:80,column:29},end:{line:85,column:5}},line:80},15:{name:"(anonymous_15)",decl:{start:{line:86,column:8},end:{line:86,column:9}},loc:{start:{line:86,column:25},end:{line:88,column:5}},line:86}},branchMap:{0:{loc:{start:{line:26,column:18},end:{line:26,column:54}},type:"binary-expr",locations:[{start:{line:26,column:18},end:{line:26,column:33}},{start:{line:26,column:37},end:{line:26,column:54}}],line:26},1:{loc:{start:{line:28,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:28,column:6},end:{line:30,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28},2:{loc:{start:{line:66,column:8},end:{line:72,column:9}},type:"if",locations:[{start:{line:66,column:8},end:{line:72,column:9}},{start:{line:69,column:15},end:{line:72,column:9}}],line:66}},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},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},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,sources:["InputMetadataDialog.vue"],names:[],mappings:";AA4HA;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",file:"InputMetadataDialog.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--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Input Metadata</span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\n <v-simple-table dense>\n <tbody>\n <tr>\n <th class="text-left">Key</th>\n <th class="text-left">Value</th>\n <th class="text-right">\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="new-metadata-icon"\n @click="newMetadata"\n >\n mdi-plus\n </v-icon>\n </div>\n </template>\n <span>New Metadata</span>\n </v-tooltip>\n </th>\n </tr>\n <template v-for="(meta, i) in metadata">\n <tr :key="`tr-${i}`">\n <td>\n <v-text-field\n v-model="meta.key"\n type="text"\n dense\n :data-test="`key-${i}`"\n />\n </td>\n <td>\n <v-text-field\n v-model="meta.value"\n type="text"\n dense\n :data-test="`value-${i}`"\n />\n </td>\n <td>\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon\n data-test="delete-metadata-icon"\n @click="rm(i)"\n >\n mdi-delete\n </v-icon>\n </div>\n </template>\n <span>Delete Metadata</span>\n </v-tooltip>\n </td>\n </tr>\n </template>\n </tbody>\n </v-simple-table>\n <v-row v-show="lastUpdated">\n <v-col>\n <span class="pt-3">Last update: {{ lastUpdated }}</span>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <span class="red--text" v-show="inputError" v-text="inputError" />\n </v-col>\n </v-row>\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="metadata-dialog-cancel"\n >\n Cancel\n </v-btn>\n <v-btn\n @click="updateMetadata"\n class="mx-2"\n color="primary"\n data-test="metadata-dialog-save"\n :disabled="!!inputError"\n >\n Update\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\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 lastUpdated: null,\n metadata: [],\n }\n },\n mounted: function () {\n this.getMetadata()\n },\n computed: {\n inputError: function () {\n // Don\'t check for this.metadata.length < 1 because we have to allow for deletes\n const emptyKeyValue = this.metadata.find(\n (meta) => meta.key === \'\' || meta.value === \'\'\n )\n if (emptyKeyValue) {\n return \'Missing or empty key, value in the metadata table.\'\n }\n return null\n },\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 updateMetadata: function () {\n const metadata = this.metadata.reduce((result, element) => {\n result[element.key] = element.value\n return result\n }, {})\n const color = \'#003784\'\n Api.post(\'/openc3-api/metadata\', {\n data: { color: color, metadata: metadata },\n }).then((response) => {\n this.$notify.normal({\n title: \'Created Metadata\',\n body: `Metadata created at ${response.data.start}`,\n })\n })\n this.$emit(\'response\', metadata)\n this.show = !this.show\n },\n cancel: function () {\n this.$emit(\'response\', \'Cancel\')\n this.show = !this.show\n },\n getMetadata: function () {\n Api.get(\'/openc3-api/metadata/latest\').then((response) => {\n if (response.status !== 200) {\n this.metadata = []\n this.lastUpdated = null\n } else {\n this.lastUpdated = new Date(response.data.updated_at / 1000000)\n this.updateValues(response.data.metadata)\n }\n })\n },\n updateValues: function (metaValues) {\n this.metadata = Object.keys(metaValues).map((k) => {\n return { key: k, value: metaValues[k] }\n })\n },\n newMetadata: function () {\n this.metadata.push({\n key: \'\',\n value: \'\',\n })\n },\n rm: function (index) {\n this.metadata.splice(index, 1)\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"94c33c8a5090210dde49510801cf9ce2d2f03312"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Dn=function(){return s},s}Dn();var Tn={components:{},props:{value:{type:Boolean,required:!0}},data:function(){return Dn().f[0]++,Dn().s[0]++,{lastUpdated:null,metadata:[]}},mounted:function(){Dn().f[1]++,Dn().s[1]++,this.getMetadata()},computed:{inputError:function(){Dn().f[2]++;var n=(Dn().s[2]++,this.metadata.find((function(n){return Dn().f[3]++,Dn().s[3]++,Dn().b[0][0]++,""===n.key||(Dn().b[0][1]++,""===n.value)})));return Dn().s[4]++,n?(Dn().b[1][0]++,Dn().s[5]++,"Missing or empty key, value in the metadata table."):(Dn().b[1][1]++,Dn().s[6]++,null)},show:{get:function(){return Dn().f[4]++,Dn().s[7]++,this.value},set:function(n){Dn().f[5]++,Dn().s[8]++,this.$emit("input",n)}}},methods:{updateMetadata:function(){var n=this;Dn().f[6]++;var e=(Dn().s[9]++,this.metadata.reduce((function(n,e){return Dn().f[7]++,Dn().s[10]++,n[e.key]=e.value,Dn().s[11]++,n}),{})),t=(Dn().s[12]++,"#003784");Dn().s[13]++,w.post("/openc3-api/metadata",{data:{color:t,metadata:e}}).then((function(e){Dn().f[8]++,Dn().s[14]++,n.$notify.normal({title:"Created Metadata",body:"Metadata created at ".concat(e.data.start)})})),Dn().s[15]++,this.$emit("response",e),Dn().s[16]++,this.show=!this.show},cancel:function(){Dn().f[9]++,Dn().s[17]++,this.$emit("response","Cancel"),Dn().s[18]++,this.show=!this.show},getMetadata:function(){var n=this;Dn().f[10]++,Dn().s[19]++,w.get("/openc3-api/metadata/latest").then((function(e){Dn().f[11]++,Dn().s[20]++,200!==e.status?(Dn().b[2][0]++,Dn().s[21]++,n.metadata=[],Dn().s[22]++,n.lastUpdated=null):(Dn().b[2][1]++,Dn().s[23]++,n.lastUpdated=new Date(e.data.updated_at/1e6),Dn().s[24]++,n.updateValues(e.data.metadata))}))},updateValues:function(n){Dn().f[12]++,Dn().s[25]++,this.metadata=Object.keys(n).map((function(e){return Dn().f[13]++,Dn().s[26]++,{key:e,value:n[e]}}))},newMetadata:function(){Dn().f[14]++,Dn().s[27]++,this.metadata.push({key:"",value:""})},rm:function(n){Dn().f[15]++,Dn().s[28]++,this.metadata.splice(n,1)}}},On=Tn,Fn=(0,O.Z)(On,Mn,En,!1,null,null,null),In=Fn.exports;function $n(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",e="8a96f6fe7ef7706bc49001bf66222598e95330fd",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:1917}},4:{start:{line:1,column:169},end:{line:1,column:181}},5:{start:{line:1,column:910},end:{line:1,column:938}},6:{start:{line:1,column:998},end:{line:1,column:1018}},7:{start:{line:1,column:1644},end:{line:1,column:1899}},8:{start:{line:1,column:1815},end:{line:1,column:1853}},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:893},end:{line:1,column:894}},loc:{start:{line:1,column:909},end:{line:1,column:939}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:982},end:{line:1,column:983}},loc:{start:{line:1,column:997},end:{line:1,column:1019}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1621},end:{line:1,column:1622}},loc:{start:{line:1,column:1643},end:{line:1,column:1900}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1798},end:{line:1,column:1799}},loc:{start:{line:1,column:1814},end:{line:1,column:1854}},line:1}},branchMap:{0:{loc:{start:{line:1,column:375},end:{line:1,column:467}},type:"cond-expr",locations:[{start:{line:1,column:390},end:{line:1,column:458}},{start:{line:1,column:459},end:{line:1,column:467}}],line:1},1:{loc:{start:{line:1,column:561},end:{line:1,column:676}},type:"cond-expr",locations:[{start:{line:1,column:575},end:{line:1,column:667}},{start:{line:1,column:668},end:{line:1,column:676}}],line:1},2:{loc:{start:{line:1,column:685},end:{line:1,column:1909}},type:"cond-expr",locations:[{start:{line:1,column:710},end:{line:1,column:1394}},{start:{line:1,column:1395},end:{line:1,column:1909}}],line:1},3:{loc:{start:{line:1,column:1755},end:{line:1,column:1784}},type:"cond-expr",locations:[{start:{line:1,column:1770},end:{line:1,column:1779}},{start:{line:1,column:1782},end:{line:1,column:1784}}],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:"8a96f6fe7ef7706bc49001bf66222598e95330fd"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return $n=function(){return s},s}$n(),$n().s[0]++;var Bn=function(){$n().f[0]++;var n=($n().s[1]++,this),e=($n().s[2]++,n._self._c);return $n().s[3]++,e("v-dialog",{attrs:{persistent:"",width:"600"},model:{value:n.show,callback:function(e){$n().f[1]++,$n().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",{domProps:{textContent:n._s(n.title)}}),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[n.subtitle?($n().b[0][0]++,e("v-row",[e("v-card-subtitle",[n._v(n._s(n.subtitle))])],1)):($n().b[0][1]++,n._e()),e("v-row",{staticClass:"mt-1"},[e("span",{domProps:{textContent:n._s(n.message)}})]),n.details?($n().b[1][0]++,e("v-row",{staticClass:"mt-1"},[e("span",{domProps:{textContent:n._s(n.details)}})])):($n().b[1][1]++,n._e())],1)],1),"combo"===n.layout?($n().b[2][0]++,e("div",[e("v-row",{staticClass:"ma-2"},[e("v-select",{staticClass:"ma-1",attrs:{label:"Select",color:"secondary","data-test":"prompt-select",items:n.buttons},on:{change:function(e){$n().f[2]++,$n().s[5]++,n.selectOkDisabled=!1}},model:{value:n.selectedItem,callback:function(e){$n().f[3]++,$n().s[6]++,n.selectedItem=e},expression:"selectedItem"}})],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"ma-1",attrs:{color:"primary","data-test":"prompt-ok",disabled:n.selectOkDisabled},on:{click:n.submitHandler}},[n._v(" Ok ")])],1)],1)):($n().b[2][1]++,e("div",[e("v-card-actions",{class:n.layoutClass},[e("v-spacer"),e("v-btn",{staticClass:"ma-1",attrs:{outlined:"","data-test":"prompt-cancel"},on:{click:n.cancelHandler}},[n._v(" Cancel ")]),n._l(n.buttons,(function(t,l){return $n().f[4]++,$n().s[7]++,e("div",{key:l},[e("v-btn",{staticClass:"ma-1",attrs:{"data-test":"prompt-".concat(t.text),color:t.value?($n().b[3][0]++,"primary"):($n().b[3][1]++,"")},on:{click:function(e){return $n().f[5]++,$n().s[8]++,n.submitWrapper(t.value)}}},[n._v(" "+n._s(t.text)+" ")])],1)}))],2)],1))],1)],1)},Nn=($n().s[9]++,[]);function Ln(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",e="4dbf305b63611d12db94da731f126b730c29f850",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/PromptDialog.vue",statementMap:{0:{start:{line:22,column:21},end:{line:22,column:23}},1:{start:{line:31,column:4},end:{line:34,column:5}},2:{start:{line:39,column:8},end:{line:39,column:25}},3:{start:{line:42,column:8},end:{line:42,column:34}},4:{start:{line:46,column:19},end:{line:46,column:39}},5:{start:{line:47,column:6},end:{line:51,column:7}},6:{start:{line:48,column:8},end:{line:48,column:38}},7:{start:{line:50,column:8},end:{line:50,column:35}},8:{start:{line:56,column:6},end:{line:56,column:32}},9:{start:{line:57,column:6},end:{line:57,column:26}},10:{start:{line:60,column:6},end:{line:60,column:47}},11:{start:{line:63,column:6},end:{line:63,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:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:9},end:{line:35,column:3}},line:30},2:{name:"(anonymous_2)",decl:{start:{line:38,column:6},end:{line:38,column:7}},loc:{start:{line:38,column:12},end:{line:40,column:7}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:41,column:6},end:{line:41,column:7}},loc:{start:{line:41,column:17},end:{line:43,column:7}},line:41},4:{name:"(anonymous_4)",decl:{start:{line:45,column:4},end:{line:45,column:5}},loc:{start:{line:45,column:18},end:{line:52,column:5}},line:45},5:{name:"(anonymous_5)",decl:{start:{line:55,column:19},end:{line:55,column:20}},loc:{start:{line:55,column:37},end:{line:58,column:5}},line:55},6:{name:"(anonymous_6)",decl:{start:{line:59,column:19},end:{line:59,column:20}},loc:{start:{line:59,column:31},end:{line:61,column:5}},line:59},7:{name:"(anonymous_7)",decl:{start:{line:62,column:19},end:{line:62,column:20}},loc:{start:{line:62,column:31},end:{line:64,column:5}},line:62}},branchMap:{0:{loc:{start:{line:47,column:6},end:{line:51,column:7}},type:"if",locations:[{start:{line:47,column:6},end:{line:51,column:7}},{start:{line:49,column:13},end:{line:51,column:7}}],line:47}},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:";AAqGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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 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>{{ subtitle }}</v-card-subtitle>\n </v-row>\n <v-row class="mt-1">\n <span v-text="message" />\n </v-row>\n <v-row v-if="details" class="mt-1">\n <span 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 />\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 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']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4dbf305b63611d12db94da731f126b730c29f850"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ln=function(){return s},s}Ln();var Hn={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 Ln().f[0]++,Ln().s[0]++,[]}},layout:{type:String,default:"horizontal"},value:Boolean},data:function(){return Ln().f[1]++,Ln().s[1]++,{selectOkDisabled:!0,selectedItem:null}},computed:{show:{get:function(){return Ln().f[2]++,Ln().s[2]++,this.value},set:function(n){Ln().f[3]++,Ln().s[3]++,this.$emit("input",n)}},layoutClass:function(){Ln().f[4]++;var n=(Ln().s[4]++,"d-flex align-start");return Ln().s[5]++,"vertical"===this.layout?(Ln().b[0][0]++,Ln().s[6]++,"".concat(n," flex-column")):(Ln().b[0][1]++,Ln().s[7]++,"".concat(n," flex-row"))}},methods:{submitWrapper:function(n){Ln().f[5]++,Ln().s[8]++,this.selectedItem=n,Ln().s[9]++,this.submitHandler()},submitHandler:function(){Ln().f[6]++,Ln().s[10]++,this.$emit("response",this.selectedItem)},cancelHandler:function(){Ln().f[7]++,Ln().s[11]++,this.$emit("response","Cancel")}}},Zn=Hn,Un=(0,O.Z)(Zn,Bn,Nn,!1,null,null,null),Pn=Un.exports;function Gn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",e="ab765ece9e21f770af9ae67556e963a287ccbf61",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:739}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:686},end:{line:1,column:706}},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:669},end:{line:1,column:670}},loc:{start:{line:1,column:685},end:{line:1,column:707}},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:"ab765ece9e21f770af9ae67556e963a287ccbf61"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Gn=function(){return s},s}Gn(),Gn().s[0]++;var qn=function(){Gn().f[0]++;var n=(Gn().s[1]++,this),e=(Gn().s[2]++,n._self._c);return Gn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Gn().f[1]++,Gn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" Script Results ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("v-textarea",{attrs:{readonly:"","hide-details":"",dense:"","auto-grow":"",value:n.text}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:n.downloadResults}},[n._v(" Download ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){Gn().f[2]++,Gn().s[5]++,n.show=!n.show}}},[n._v(" Ok ")])],1)],1)],1)},jn=(Gn().s[6]++,[]);function Vn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ResultsDialog.vue",e="d61d75efd854623ac309a19f013af34d90dcd832",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AA0CA;;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--\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 Results </span>\n <v-spacer />\n </v-system-bar>\n <div class="pa-2">\n <v-card-text>\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:"d61d75efd854623ac309a19f013af34d90dcd832"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Vn=function(){return s},s}Vn();var zn={components:{},props:{value:{type:Boolean,required:!0},text:{type:String,required:!0}},computed:{show:{get:function(){return Vn().f[0]++,Vn().s[0]++,this.value},set:function(n){Vn().f[1]++,Vn().s[1]++,this.$emit("input",n)}}},methods:{downloadResults:function(){Vn().f[2]++;var n=(Vn().s[2]++,new Blob([this.text],{type:"text/plain"})),e=(Vn().s[3]++,document.createElement("a"));Vn().s[4]++,e.href=URL.createObjectURL(n),Vn().s[5]++,e.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_suite_results.txt"),Vn().s[6]++,e.click()}}},Wn=zn,Yn=(0,O.Z)(Wn,qn,jn,!1,null,null,null),Kn=Yn.exports;function Jn(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="de8b05457ed8a4df1940f9762b97f44d1700210c",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:856}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:439},end:{line:1,column:455}},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:423},end:{line:1,column:424}},loc:{start:{line:1,column:438},end:{line:1,column:456}},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:"de8b05457ed8a4df1940f9762b97f44d1700210c"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Jn=function(){return s},s}Jn(),Jn().s[0]++;var Xn=function(){Jn().f[0]++;var n=(Jn().s[1]++,this),e=(Jn().s[2]++,n._self._c);return Jn().s[3]++,e("v-dialog",{attrs:{width:"600"},model:{value:n.show,callback:function(e){Jn().f[1]++,Jn().s[4]++,n.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),e("span",[n._v(" Start Environment Configuration ")]),e("v-spacer")],1),e("div",{staticClass:"pa-2"},[e("v-card-text",[e("environment-chooser",{model:{value:n.selected,callback:function(e){Jn().f[2]++,Jn().s[5]++,n.selected=e},expression:"selected"}})],1)],1),e("v-card-actions",[e("v-spacer"),e("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"environment-dialog-cancel"},on:{click:n.cancel}},[n._v(" Cancel ")]),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"environment-dialog-save",disabled:!!n.inputError},on:{click:n.updateEnvironment}},[n._v(" Save ")])],1)],1)],1)},Qn=(Jn().s[6]++,[]),ne=function(){var n=this,e=n._self._c;return e("div",[e("v-row",{attrs:{"no-gutters":""}},[e("span",[n._v(" Select from OpenC3 environment variables ")])]),e("v-row",{staticClass:"ma-0"},[e("v-select",{attrs:{"persistent-hint":"","return-object":"",label:"Select Environment Options",hint:"Inject Environment Variables",items:n.environmentItems},on:{change:n.addEnvironmentItem},scopedSlots:n._u([{key:"item",fn:function(t){var l=t.item;return[e("div",[e("span",{domProps:{textContent:n._s("".concat(l.key,"=").concat(l.value))}})])]}}]),model:{value:n.deadSelect,callback:function(e){n.deadSelect=e},expression:"deadSelect"}},[[e("div",[e("span",[n._v(" Select Environment Options ")])])]],2)],1),e("div",{staticClass:"mt-2"}),e("v-simple-table",{attrs:{dense:""}},[e("tbody",[e("tr",[e("th",{staticClass:"text-left"},[n._v("Key")]),e("th",{staticClass:"text-left"},[n._v("Value")]),e("th",{staticClass:"text-right"},[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return[e("div",n._g(n._b({},"div",i,!1),l),[e("v-icon",{attrs:{"data-test":"new-metadata-icon"},on:{click:n.newEnvironment}},[n._v(" mdi-plus ")])],1)]}}])},[e("span",[n._v(" Add Environment ")])])],1)]),n._l(n.selected,(function(t,l){return[e("tr",{key:"tr-".concat(l)},[e("td",[e("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"key-".concat(l)},model:{value:t.key,callback:function(e){n.$set(t,"key",e)},expression:"env.key"}})],1),e("td",[e("v-text-field",{attrs:{dense:"",type:"text",readonly:t.readonly,"data-test":"value-".concat(l)},model:{value:t.value,callback:function(e){n.$set(t,"value",e)},expression:"env.value"}})],1),e("td",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var i=t.on,o=t.attrs;return[e("div",n._g(n._b({},"div",o,!1),i),[e("v-icon",{attrs:{"data-test":"remove-env-icon-".concat(l)},on:{click:function(e){return n.rm(l)}}},[n._v(" mdi-delete ")])],1)]}}],null,!0)},[e("span",[n._v(" Delete Environment ")])])],1)])]}))],2)])],1)},ee=[],te={props:{value:{type:Array,required:!0}},data:function(){return{deadSelect:null,environmentOptions:[]}},mounted:function(){this.getEnvironment()},computed:{selected:{get:function(){return this.value},set:function(n){this.$emit("input",n)}},environmentItems:function(){var n=this;return this.environmentOptions.filter((function(e){return!n.selected.find((function(n){return n.key===e.key}))}))}},methods:{getEnvironment:function(){var n=this;w.get("/openc3-api/environment").then((function(e){n.environmentOptions=e.data}))},addEnvironmentItem:function(n){this.selected.push({key:n.key,value:n.value,readonly:!0});var e=this.environmentOptions.findIndex((function(e){return e.key===n.key&&e.value===n.value}));this.environmentOptions.splice(e,e>=0?1:0),this.deadSelect=null},newEnvironment:function(){this.selected.push({key:"",value:"",readonly:!1})},rm:function(n){var e=this.selected.splice(n,1)[0];e&&e.readonly&&this.environmentOptions.push(e)}}},le=te,ie=(0,O.Z)(le,ne,ee,!1,null,null,null),oe=ie.exports;function se(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/Dialogs/ScriptEnvironmentDialog.vue",e="7a626aaaf5b22c22fc3bd41fec8fdd5ccbf4b69c",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AAyDA;;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--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Start Environment Configuration </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:"7a626aaaf5b22c22fc3bd41fec8fdd5ccbf4b69c"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return se=function(){return s},s}se();var ae={components:{EnvironmentChooser:oe},props:{value:{type:Boolean,required:!0},inputEnvironment:{type:Array,required:!0}},data:function(){return se().f[0]++,se().s[0]++,{selected:[]}},mounted:function(){se().f[1]++,se().s[1]++,this.loadEnvironment()},computed:{show:{get:function(){return se().f[2]++,se().s[2]++,this.value},set:function(n){se().f[3]++,se().s[3]++,this.$emit("input",n)}}},methods:{loadEnvironment:function(){se().f[4]++,se().s[4]++,this.selected=(0,u.Z)(this.inputEnvironment)},updateEnvironment:function(){se().f[5]++,se().s[5]++,this.$emit("environment",this.selected),se().s[6]++,this.show=!this.show},cancel:function(){se().f[6]++,se().s[7]++,this.show=!this.show}}},ce=ae,re=(0,O.Z)(ce,Xn,Qn,!1,null,null,null),ue=re.exports;function me(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",e="c30853afaa8b26bfc10bdc67c96defd105e39f18",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:"c30853afaa8b26bfc10bdc67c96defd105e39f18"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return me=function(){return s},s}me(),me().s[0]++;var de=function(){me().f[0]++;var n=(me().s[1]++,this),e=(me().s[2]++,n._self._c);return me().s[3]++,e("div",[e("div",{attrs:{id:"tr-container"}},[e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Pause on Error",value:"pauseOnError","hide-details":"","data-test":"pause-on-error"},model:{value:n.options,callback:function(e){me().f[1]++,me().s[4]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Manual",value:"manual","hide-details":"","data-test":"manual"},model:{value:n.options,callback:function(e){me().f[2]++,me().s[5]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Suite:","hide-details":"",dense:"",items:n.suites,"data-test":"select-suite"},on:{change:n.suiteChanged},model:{value:n.suite,callback:function(e){me().f[3]++,me().s[6]++,n.suite=e},expression:"suite"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-suite"},on:{click:function(e){return me().f[4]++,me().s[7]++,n.$emit("button",{method:"start",suite:n.suite,options:n.options})}}},[n._v(" Start ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-suite",disabled:(me().b[0][0]++,n.disableButtons||(me().b[0][1]++,!n.setupSuiteEnabled))},on:{click:function(e){return me().f[5]++,me().s[8]++,n.$emit("button",{method:"setup",suite:n.suite,options:n.options})}}},[n._v(" Setup ")]),e("v-btn",{attrs:{color:"primary","data-test":"teardown-suite",disabled:(me().b[1][0]++,n.disableButtons||(me().b[1][1]++,!n.teardownSuiteEnabled))},on:{click:function(e){return me().f[6]++,me().s[9]++,n.$emit("button",{method:"teardown",suite:n.suite,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Continue after Error",value:"continueAfterError","hide-details":"","data-test":"continue-after-error"},model:{value:n.options,callback:function(e){me().f[7]++,me().s[10]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Loop",value:"loop","hide-details":"","data-test":"loop"},model:{value:n.options,callback:function(e){me().f[8]++,me().s[11]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Group:","hide-details":"",dense:"",items:n.groups,"data-test":"select-group"},on:{change:n.groupChanged},model:{value:n.group,callback:function(e){me().f[9]++,me().s[12]++,n.group=e},expression:"group"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{staticClass:"mr-2",attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-group"},on:{click:function(e){return me().f[10]++,me().s[13]++,n.$emit("button",{method:"start",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Start ")]),e("v-btn",{staticClass:"mr-2",attrs:{color:"primary","data-test":"setup-group",disabled:(me().b[2][0]++,n.disableButtons||(me().b[2][1]++,!n.setupGroupEnabled))},on:{click:function(e){return me().f[11]++,me().s[14]++,n.$emit("button",{method:"setup",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Setup ")]),e("v-btn",{attrs:{color:"primary","data-test":"teardown-group",disabled:(me().b[3][0]++,n.disableButtons||(me().b[3][1]++,!n.teardownGroupEnabled))},on:{click:function(e){return me().f[12]++,me().s[15]++,n.$emit("button",{method:"teardown",suite:n.suite,group:n.group,options:n.options})}}},[n._v(" Teardown ")])],1)],1)],1)],1),e("v-row",{attrs:{"no-gutters":"",align:"center"}},[e("v-col",{attrs:{cols:"4"}},[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{label:"Abort after Error",value:"abortAfterError","hide-details":"","data-test":"abort-after-error"},model:{value:n.options,callback:function(e){me().f[13]++,me().s[16]++,n.options=e},expression:"options"}})],1),e("v-col",{attrs:{cols:"6"}},[e("v-checkbox",{attrs:{disabled:!n.options.includes("loop"),label:"Break Loop on Error",value:"breakLoopOnError","hide-details":"","data-test":"break-loop-on-error"},model:{value:n.options,callback:function(e){me().f[14]++,me().s[17]++,n.options=e},expression:"options"}})],1)],1)],1),e("v-col",{attrs:{cols:"8"}},[e("v-row",{attrs:{"no-gutters":"",justify:"end"}},[e("v-col",{attrs:{cols:"5"}},[e("v-select",{staticClass:"mr-2 mb-2",attrs:{label:"Script:","hide-details":"",dense:"",items:n.scripts,"data-test":"select-script"},on:{change:n.scriptChanged},model:{value:n.script,callback:function(e){me().f[15]++,me().s[18]++,n.script=e},expression:"script"}})],1),e("v-col",{attrs:{cols:"auto"}},[e("v-btn",{attrs:{color:"primary",disabled:n.disableButtons,"data-test":"start-script"},on:{click:function(e){return me().f[16]++,me().s[19]++,n.$emit("button",{method:"start",suite:n.suite,group:n.group,script:n.script,options:n.options})}}},[n._v(" Start ")]),e("div",{staticStyle:{width:"300px"}})],1)],1)],1)],1)],1)])},Ae=(me().s[20]++,[]);function pe(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/SuiteRunner.vue",e="480f6722fd1d471f0144bc3a1723e002b37c114d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AAuOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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--\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:"480f6722fd1d471f0144bc3a1723e002b37c114d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return pe=function(){return s},s}pe();var he={props:{suiteMap:{type:Object,required:!0},disableButtons:{type:Boolean,required:!0}},data:function(){return pe().f[0]++,pe().s[0]++,{suites:[],groups:[],scripts:[],suite:"",group:"",script:"",options:["pauseOnError","manual","continueAfterError"]}},computed:{setupSuiteEnabled:function(){return pe().f[1]++,pe().s[1]++,pe().b[1][0]++,this.suite&&(pe().b[1][1]++,this.suiteMap[this.suite].setup)?(pe().b[0][0]++,pe().s[2]++,!0):(pe().b[0][1]++,pe().s[3]++,!1)},teardownSuiteEnabled:function(){return pe().f[2]++,pe().s[4]++,pe().b[3][0]++,this.suite&&(pe().b[3][1]++,this.suiteMap[this.suite].teardown)?(pe().b[2][0]++,pe().s[5]++,!0):(pe().b[2][1]++,pe().s[6]++,!1)},setupGroupEnabled:function(){return pe().f[3]++,pe().s[7]++,pe().b[5][0]++,this.suite&&(pe().b[5][1]++,this.group)&&(pe().b[5][2]++,this.suiteMap[this.suite].groups[this.group].setup)?(pe().b[4][0]++,pe().s[8]++,!0):(pe().b[4][1]++,pe().s[9]++,!1)},teardownGroupEnabled:function(){return pe().f[4]++,pe().s[10]++,pe().b[7][0]++,this.suite&&(pe().b[7][1]++,this.group)&&(pe().b[7][2]++,this.suiteMap[this.suite].groups[this.group].teardown)?(pe().b[6][0]++,pe().s[11]++,!0):(pe().b[6][1]++,pe().s[12]++,!1)}},created:function(){pe().f[5]++,pe().s[13]++,this.initSuites()},watch:{suiteMap:{handler:function(n,e){pe().f[6]++,pe().s[14]++,this.updateSuiteMap()},deep:!0}},methods:{updateSuiteMap:function(){pe().f[7]++,pe().s[15]++,this.suites=Object.keys(this.suiteMap),pe().s[16]++,pe().b[9][0]++,void 0==this.suiteMap[this.suite]||(pe().b[9][1]++,void 0==this.suiteMap[this.suite].groups[this.group])?(pe().b[8][0]++,pe().s[17]++,this.initSuites()):(pe().b[8][1]++,pe().s[18]++,this.groups=Object.keys(this.suiteMap[this.suite].groups),pe().s[19]++,this.scripts=this.suiteMap[this.suite].groups[this.group].scripts)},initSuites:function(){pe().f[8]++,pe().s[20]++,this.suites=Object.keys(this.suiteMap),pe().s[21]++,this.suiteChanged(this.suites[0])},suiteChanged:function(n){pe().f[9]++,pe().s[22]++,this.suite=n,pe().s[23]++,this.group="",pe().s[24]++,this.script="",pe().s[25]++,this.groups=Object.keys(this.suiteMap[n].groups),pe().s[26]++,this.groupChanged(this.groups[0])},groupChanged:function(n){pe().f[10]++,pe().s[27]++,this.group=n,pe().s[28]++,this.script="",pe().s[29]++,this.scripts=this.suiteMap[this.suite].groups[n].scripts,pe().s[30]++,this.scriptChanged(this.scripts[0])},scriptChanged:function(n){pe().f[11]++,pe().s[31]++,this.script=n}}},fe=he,ve=(t(4462),(0,O.Z)(fe,de,Ae,!1,null,"3677302c",null)),Ce=ve.exports;function be(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",e="b612a429648adde9e3bd42f064368436f0b7013f",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:"b612a429648adde9e3bd42f064368436f0b7013f"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return be=function(){return s},s}be(),be().s[0]++;var ge=function(){be().f[0]++;var n=(be().s[1]++,this),e=(be().s[2]++,n._self._c);return be().s[3]++,e("div",[e("v-card",[e("v-card-title",[e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return be().f[1]++,be().s[4]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"download-log"},on:{click:n.downloadLog}},[e("v-icon",[n._v(" mdi-download ")])],1)],1)]}}])},[e("span",[n._v(" Download Log ")])]),n._v(" Log Messages "),e("v-spacer"),e("v-tooltip",{attrs:{top:""},scopedSlots:n._u([{key:"activator",fn:function(t){var l=t.on,i=t.attrs;return be().f[2]++,be().s[5]++,[e("div",n._g(n._b({},"div",i,!1),l),[e("v-btn",{staticClass:"mx-2",attrs:{icon:"","data-test":"clear-log"},on:{click:n.clearLog}},[e("v-icon",[n._v(" mdi-delete ")])],1)],1)]}}])},[e("span",[n._v(" Clear Log ")])])],1),e("v-card-subtitle",[e("v-text-field",{attrs:{"single-line":"","hide-details":"",autofocus:"",label:"Search","data-test":"search-output-messages"},model:{value:n.search,callback:function(e){be().f[3]++,be().s[6]++,n.search=e},expression:"search"}})],1),e("v-data-table",{attrs:{headers:n.headers,items:n.messages,search:n.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:"",height:"45vh","data-test":"output-messages"}})],1)],1)},ye=(be().s[7]++,[]);function _e(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptLogMessages.vue",e="30a961d6f685791d0a2fd9bfa9e05dad73d251a2",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:";AA8EA;;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--\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:"30a961d6f685791d0a2fd9bfa9e05dad73d251a2"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return _e=function(){return s},s}_e();var ke={props:{value:{type:Array,required:!0}},data:function(){return _e().f[0]++,_e().s[0]++,{search:"",headers:[{text:"Message",value:"message"}]}},computed:{messages:{get:function(){return _e().f[1]++,_e().s[1]++,this.value},set:function(n){_e().f[2]++,_e().s[2]++,this.$emit("input",n)}}},methods:{downloadLog:function(){_e().f[3]++;var n=(_e().s[3]++,this.messages.map((function(n){return _e().f[4]++,_e().s[4]++,n.message})).join("\n")),e=(_e().s[5]++,new Blob([n],{type:"text/plain"})),t=(_e().s[6]++,document.createElement("a"));_e().s[7]++,t.href=URL.createObjectURL(e),_e().s[8]++,t.setAttribute("download",(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss")+"_sr_message_log.txt"),_e().s[9]++,t.click()},clearLog:function(){var n=this;_e().f[5]++,_e().s[10]++,this.$dialog.confirm("Are you sure you want to clear the logs?",{okText:"Clear",cancelText:"Cancel"}).then((function(e){_e().f[6]++,_e().s[11]++,n.messages=[]}))}}},we=ke,xe=(0,O.Z)(we,ge,ye,!1,null,null,null),Se=xe.exports,Re=t(759),Me=t(351);function Ee(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",e="b16bc9dee0846358be552d363173cb2bb62d2f74",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/utilities.js",statementMap:{0:{start:{line:22,column:20},end:{line:24,column:1}},1:{start:{line:23,column:2},end:{line:23,column:61}},2:{start:{line:26,column:28},end:{line:28,column:1}},3:{start:{line:27,column:2},end:{line:27,column:57}},4:{start:{line:31,column:16},end:{line:41,column:1}},5:{start:{line:32,column:2},end:{line:40,column:8}},6:{start:{line:33,column:16},end:{line:33,column:28}},7:{start:{line:34,column:4},end:{line:38,column:5}},8:{start:{line:35,column:6},end:{line:35,column:28}},9:{start:{line:37,column:6},end:{line:37,column:26}},10:{start:{line:39,column:4},end:{line:39,column:17}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:20},end:{line:22,column:21}},loc:{start:{line:22,column:30},end:{line:24,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:26,column:28},end:{line:26,column:29}},loc:{start:{line:26,column:38},end:{line:28,column:1}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:31,column:16},end:{line:31,column:17}},loc:{start:{line:31,column:35},end:{line:41,column:1}},line:31},3:{name:"(anonymous_3)",decl:{start:{line:32,column:22},end:{line:32,column:23}},loc:{start:{line:32,column:40},end:{line:40,column:3}},line:32}},branchMap:{0:{loc:{start:{line:34,column:4},end:{line:38,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:38,column:5}},{start:{line:36,column:11},end:{line:38,column:5}}],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},f:{0:0,1:0,2:0,3:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b16bc9dee0846358be552d363173cb2bb62d2f74"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ee=function(){return s},s}Ee(),Ee().s[0]++;var De=function(n){return Ee().f[0]++,Ee().s[1]++,w.get("/openc3-api/autocomplete/keywords/".concat(n))};Ee().s[2]++;var Te=function(n){return Ee().f[1]++,Ee().s[3]++,w.get("/openc3-api/autocomplete/data/".concat(n))};Ee().s[4]++;var Oe=function(n,e){return Ee().f[2]++,Ee().s[5]++,n.reduce((function(n,t){Ee().f[3]++;var l=(Ee().s[6]++,e(t));return Ee().s[7]++,n[l]?(Ee().b[0][0]++,Ee().s[8]++,n[l].push(t)):(Ee().b[0][1]++,Ee().s[9]++,n[l]=[t]),Ee().s[10]++,n}),{})};function Fe(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",e="6db958dab610ee98cdde719170be3a39b7318ca0",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/packetCompleter.js",statementMap:{0:{start:{line:22,column:32},end:{line:28,column:1}},1:{start:{line:24,column:17},end:{line:24,column:32}},2:{start:{line:25,column:18},end:{line:25,column:33}},3:{start:{line:26,column:17},end:{line:26,column:34}},4:{start:{line:27,column:2},end:{line:27,column:59}},5:{start:{line:36,column:4},end:{line:36,column:32}},6:{start:{line:37,column:4},end:{line:37,column:30}},7:{start:{line:39,column:4},end:{line:42,column:6}},8:{start:{line:40,column:6},end:{line:40,column:74}},9:{start:{line:41,column:6},end:{line:41,column:32}},10:{start:{line:43,column:4},end:{line:46,column:6}},11:{start:{line:44,column:6},end:{line:44,column:43}},12:{start:{line:45,column:6},end:{line:45,column:25}},13:{start:{line:49,column:19},end:{line:71,column:3}},14:{start:{line:50,column:18},end:{line:50,column:20}},15:{start:{line:51,column:29},end:{line:54,column:5}},16:{start:{line:55,column:4},end:{line:59,column:5}},17:{start:{line:56,column:46},end:{line:56,column:75}},18:{start:{line:58,column:6},end:{line:58,column:37}},19:{start:{line:61,column:4},end:{line:70,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:32},end:{line:22,column:33}},loc:{start:{line:22,column:42},end:{line:28,column:1}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:31,column:2},end:{line:31,column:3}},loc:{start:{line:35,column:4},end:{line:47,column:3}},line:35},2:{name:"(anonymous_2)",decl:{start:{line:33,column:24},end:{line:33,column:25}},loc:{start:{line:33,column:30},end:{line:33,column:32}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:34,column:31},end:{line:34,column:32}},loc:{start:{line:34,column:37},end:{line:34,column:39}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:39,column:27},end:{line:39,column:28}},loc:{start:{line:39,column:41},end:{line:42,column:5}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:43,column:35},end:{line:43,column:36}},loc:{start:{line:43,column:49},end:{line:46,column:5}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:49,column:19},end:{line:49,column:20}},loc:{start:{line:49,column:74},end:{line:71,column:3}},line:49},7:{name:"(anonymous_7)",decl:{start:{line:56,column:35},end:{line:56,column:36}},loc:{start:{line:56,column:46},end:{line:56,column:75}},line:56}},branchMap:{0:{loc:{start:{line:33,column:4},end:{line:33,column:32}},type:"default-arg",locations:[{start:{line:33,column:24},end:{line:33,column:32}}],line:33},1:{loc:{start:{line:34,column:4},end:{line:34,column:39}},type:"default-arg",locations:[{start:{line:34,column:31},end:{line:34,column:39}}],line:34},2:{loc:{start:{line:55,column:4},end:{line:59,column:5}},type:"if",locations:[{start:{line:55,column:4},end:{line:59,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:55}},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:"6db958dab610ee98cdde719170be3a39b7318ca0"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Fe=function(){return s},s}Fe(),Fe().s[0]++;var Ie=function(n){Fe().f[0]++;var e=(Fe().s[1]++,"(^|[{\\(\\s])"),t=(Fe().s[2]++,"[\\s\\(]['\"]"),l=(Fe().s[3]++,"(\\S+\\s?){0,3}");return Fe().s[4]++,new RegExp("".concat(e).concat(n).concat(t).concat(l,"$"))},$e=(0,p.Z)((function n(e){var t=this,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Fe().b[0][0]++,function(){Fe().f[2]++}),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(Fe().b[1][0]++,function(){Fe().f[3]++});(0,A.Z)(this,n),(0,nn.Z)(this,"getCompletions",(Fe().s[13]++,function(n,e,t,l,i){Fe().f[6]++;var o=(Fe().s[14]++,[]),s=(Fe().s[15]++,e.doc.$lines[t.row].slice(0,t.column));Fe().s[16]++,this.keywordExpressions.some((function(n){return Fe().f[7]++,Fe().s[17]++,s.match(n)}))?(Fe().b[2][0]++,Fe().s[18]++,o=this.autocompleteData):Fe().b[2][1]++,Fe().s[19]++,i(null,(0,u.Z)(o))})),Fe().f[1]++,Fe().s[5]++,this.keywordExpressions=[],Fe().s[6]++,this.autocompleteData=[],Fe().s[7]++,De(e).then((function(n){Fe().f[4]++,Fe().s[8]++,t.keywordExpressions=n.data.map(Ie),Fe().s[9]++,i()})),Fe().s[10]++,Te(e).then((function(n){Fe().f[5]++,Fe().s[11]++,t.autocompleteData=n.data,Fe().s[12]++,l()}))}));function Be(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",e="9379341eab33e5fa36dac77a584cc49f20c6376d",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/cmdCompleter.js",statementMap:{0:{start:{line:24,column:4},end:{line:24,column:16}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:16},end:{line:25,column:3}},line:23}},branchMap:{},s:{0:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9379341eab33e5fa36dac77a584cc49f20c6376d"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Be=function(){return s},s}Be();var Ne=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(){return(0,A.Z)(this,t),Be().f[0]++,Be().s[0]++,e.call(this,"cmd")}return(0,p.Z)(t)}($e),Le=t(9519);function He(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",e="40bee91558da1f724dd057bcfbfea9216581f157",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/tlmCompleter.js",statementMap:{0:{start:{line:24,column:4},end:{line:50,column:6}},1:{start:{line:27,column:6},end:{line:42,column:12}},2:{start:{line:28,column:27},end:{line:28,column:60}},3:{start:{line:29,column:25},end:{line:29,column:67}},4:{start:{line:30,column:28},end:{line:34,column:9}},5:{start:{line:36,column:8},end:{line:40,column:9}},6:{start:{line:37,column:10},end:{line:37,column:46}},7:{start:{line:39,column:10},end:{line:39,column:44}},8:{start:{line:41,column:8},end:{line:41,column:21}},9:{start:{line:43,column:6},end:{line:49,column:8}},10:{start:{line:44,column:8},end:{line:48,column:9}},11:{start:{line:54,column:19},end:{line:74,column:3}},12:{start:{line:55,column:18},end:{line:55,column:20}},13:{start:{line:56,column:29},end:{line:59,column:5}},14:{start:{line:60,column:4},end:{line:71,column:5}},15:{start:{line:61,column:46},end:{line:61,column:75}},16:{start:{line:63,column:26},end:{line:65,column:7}},17:{start:{line:64,column:24},end:{line:64,column:61}},18:{start:{line:66,column:6},end:{line:70,column:7}},19:{start:{line:67,column:8},end:{line:67,column:53}},20:{start:{line:69,column:8},end:{line:69,column:30}},21:{start:{line:73,column:4},end:{line:73,column:27}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:16},end:{line:51,column:3}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:24,column:17},end:{line:24,column:18}},loc:{start:{line:24,column:23},end:{line:50,column:5}},line:24},2:{name:"(anonymous_2)",decl:{start:{line:27,column:60},end:{line:27,column:61}},loc:{start:{line:27,column:78},end:{line:42,column:7}},line:27},3:{name:"(anonymous_3)",decl:{start:{line:43,column:61},end:{line:43,column:62}},loc:{start:{line:43,column:77},end:{line:49,column:7}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:54,column:19},end:{line:54,column:20}},loc:{start:{line:54,column:74},end:{line:74,column:3}},line:54},5:{name:"(anonymous_5)",decl:{start:{line:61,column:35},end:{line:61,column:36}},loc:{start:{line:61,column:46},end:{line:61,column:75}},line:61},6:{name:"(anonymous_6)",decl:{start:{line:64,column:8},end:{line:64,column:9}},loc:{start:{line:64,column:24},end:{line:64,column:61}},line:64}},branchMap:{0:{loc:{start:{line:36,column:8},end:{line:40,column:9}},type:"if",locations:[{start:{line:36,column:8},end:{line:40,column:9}},{start:{line:38,column:15},end:{line:40,column:9}}],line:36},1:{loc:{start:{line:60,column:4},end:{line:71,column:5}},type:"if",locations:[{start:{line:60,column:4},end:{line:71,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},2:{loc:{start:{line:66,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:66,column:6},end:{line:70,column:7}},{start:{line:68,column:13},end:{line:70,column:7}}],line:66}},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:"40bee91558da1f724dd057bcfbfea9216581f157"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return He=function(){return s},s}He();var Ze=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(){var n;return(0,A.Z)(this,t),He().f[0]++,He().s[0]++,n=e.call(this,"tlm",(function(){He().f[1]++,He().s[1]++,n.groupedPacketData=n.autocompleteData.reduce((function(n,e){He().f[2]++;var t=(He().s[2]++,e.caption.match(/\S+\s\S+/)[0]),l=(He().s[3]++,e.snippet.replace("".concat(t," "),"")),i=(He().s[4]++,{caption:l,snippet:l,meta:"item"});return He().s[5]++,n[t]?(He().b[0][0]++,He().s[6]++,n[t].push(i)):(He().b[0][1]++,He().s[7]++,n[t]=[i]),He().s[8]++,n}),{}),He().s[9]++,n.packets=Object.keys(n.groupedPacketData).map((function(n){return He().f[3]++,He().s[10]++,{caption:n,snippet:n,meta:"packet"}}))})),(0,nn.Z)((0,Le.Z)(n),"getCompletions",(He().s[11]++,function(n,e,t,l,i){He().f[4]++;var o=(He().s[12]++,[]),s=(He().s[13]++,e.doc.$lines[t.row].slice(0,t.column));if(He().s[14]++,this.keywordExpressions.some((function(n){return He().f[5]++,He().s[15]++,s.match(n)}))){He().b[1][0]++;var a=(He().s[16]++,Object.keys(this.groupedPacketData).find((function(n){return He().f[6]++,He().s[17]++,s.includes(n)})));He().s[18]++,a?(He().b[2][0]++,He().s[19]++,o=this.groupedPacketData[a]):(He().b[2][1]++,He().s[20]++,o=this.packets)}else He().b[1][1]++;He().s[21]++,i(null,o)})),n}return(0,p.Z)(t)}($e);t(8319),t(3430);function Ue(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",e="7185fdff633ffd3edabf15fd2c15091af9669e53",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/mnemonicChecker.js",statementMap:{0:{start:{line:23,column:23},end:{line:28,column:1}},1:{start:{line:25,column:17},end:{line:25,column:32}},2:{start:{line:26,column:15},end:{line:26,column:37}},3:{start:{line:27,column:2},end:{line:27,column:46}},4:{start:{line:29,column:32},end:{line:29,column:41}},5:{start:{line:30,column:29},end:{line:30,column:43}},6:{start:{line:34,column:4},end:{line:34,column:30}},7:{start:{line:36,column:4},end:{line:36,column:21}},8:{start:{line:37,column:4},end:{line:44,column:6}},9:{start:{line:38,column:6},end:{line:43,column:8}},10:{start:{line:39,column:8},end:{line:42,column:9}},11:{start:{line:46,column:4},end:{line:46,column:35}},12:{start:{line:47,column:4},end:{line:49,column:6}},13:{start:{line:48,column:6},end:{line:48,column:68}},14:{start:{line:51,column:4},end:{line:51,column:35}},15:{start:{line:52,column:4},end:{line:54,column:6}},16:{start:{line:53,column:6},end:{line:53,column:68}},17:{start:{line:57,column:14},end:{line:135,column:3}},18:{start:{line:58,column:42},end:{line:128,column:5}},19:{start:{line:60,column:8},end:{line:60,column:26}},20:{start:{line:61,column:8},end:{line:63,column:9}},21:{start:{line:62,column:10},end:{line:62,column:23}},22:{start:{line:64,column:25},end:{line:66,column:16}},23:{start:{line:65,column:10},end:{line:65,column:43}},24:{start:{line:67,column:25},end:{line:69,column:16}},25:{start:{line:68,column:10},end:{line:68,column:43}},26:{start:{line:70,column:8},end:{line:72,column:9}},27:{start:{line:71,column:10},end:{line:71,column:23}},28:{start:{line:74,column:25},end:{line:74,column:50}},29:{start:{line:75,column:30},end:{line:77,column:32}},30:{start:{line:79,column:8},end:{line:82,column:9}},31:{start:{line:80,column:10},end:{line:80,column:44}},32:{start:{line:81,column:10},end:{line:81,column:23}},33:{start:{line:84,column:37},end:{line:84,column:80}},34:{start:{line:85,column:30},end:{line:87,column:9}},35:{start:{line:88,column:8},end:{line:90,column:9}},36:{start:{line:89,column:10},end:{line:89,column:23}},37:{start:{line:92,column:25},end:{line:95,column:9}},38:{start:{line:96,column:8},end:{line:107,column:9}},39:{start:{line:97,column:10},end:{line:97,column:42}},40:{start:{line:99,column:33},end:{line:99,column:55}},41:{start:{line:100,column:10},end:{line:106,column:11}},42:{start:{line:101,column:12},end:{line:103,column:13}},43:{start:{line:102,column:25},end:{line:102,column:45}},44:{start:{line:105,column:12},end:{line:105,column:80}},45:{start:{line:105,column:70},end:{line:105,column:79}},46:{start:{line:110,column:8},end:{line:118,column:9}},47:{start:{line:111,column:10},end:{line:117,column:11}},48:{start:{line:112,column:12},end:{line:112,column:79}},49:{start:{line:114,column:12},end:{line:116,column:13}},50:{start:{line:115,column:14},end:{line:115,column:46}},51:{start:{line:120,column:8},end:{line:124,column:10}},52:{start:{line:125,column:8},end:{line:125,column:21}},53:{start:{line:130,column:21},end:{line:130,column:57}},54:{start:{line:131,column:4},end:{line:134,column:5}},55:{start:{line:133,column:40},end:{line:133,column:67}},56:{start:{line:137,column:16},end:{line:209,column:3}},57:{start:{line:138,column:25},end:{line:138,column:27}},58:{start:{line:139,column:25},end:{line:142,column:5}},59:{start:{line:141,column:19},end:{line:141,column:42}},60:{start:{line:143,column:4},end:{line:207,column:5}},61:{start:{line:144,column:6},end:{line:152,column:7}},62:{start:{line:145,column:8},end:{line:150,column:9}},63:{start:{line:146,column:10},end:{line:149,column:12}},64:{start:{line:151,column:8},end:{line:151,column:16}},65:{start:{line:153,column:27},end:{line:156,column:7}},66:{start:{line:155,column:21},end:{line:155,column:44}},67:{start:{line:157,column:6},end:{line:206,column:7}},68:{start:{line:158,column:8},end:{line:205,column:9}},69:{start:{line:159,column:27},end:{line:159,column:64}},70:{start:{line:160,column:10},end:{line:174,column:11}},71:{start:{line:161,column:27},end:{line:163,column:34}},72:{start:{line:164,column:29},end:{line:164,column:59}},73:{start:{line:165,column:12},end:{line:173,column:13}},74:{start:{line:167,column:16},end:{line:169,column:17}},75:{start:{line:168,column:28},end:{line:168,column:37}},76:{start:{line:170,column:16},end:{line:170,column:29}},77:{start:{line:176,column:24},end:{line:176,column:62}},78:{start:{line:177,column:10},end:{line:185,column:11}},79:{start:{line:178,column:12},end:{line:183,column:14}},80:{start:{line:184,column:12},end:{line:184,column:20}},81:{start:{line:186,column:10},end:{line:204,column:11}},82:{start:{line:187,column:12},end:{line:193,column:13}},83:{start:{line:187,column:38},end:{line:187,column:68}},84:{start:{line:188,column:14},end:{line:191,column:16}},85:{start:{line:192,column:14},end:{line:192,column:22}},86:{start:{line:195,column:12},end:{line:203,column:13}},87:{start:{line:196,column:14},end:{line:202,column:15}},88:{start:{line:196,column:40},end:{line:196,column:54}},89:{start:{line:197,column:16},end:{line:200,column:18}},90:{start:{line:201,column:16},end:{line:201,column:24}},91:{start:{line:208,column:4},end:{line:208,column:23}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:23},end:{line:23,column:24}},loc:{start:{line:23,column:33},end:{line:28,column:1}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:16},end:{line:55,column:3}},line:33},2:{name:"(anonymous_2)",decl:{start:{line:37,column:36},end:{line:37,column:37}},loc:{start:{line:37,column:50},end:{line:44,column:5}},line:37},3:{name:"(anonymous_3)",decl:{start:{line:38,column:23},end:{line:38,column:24}},loc:{start:{line:38,column:35},end:{line:43,column:7}},line:38},4:{name:"(anonymous_4)",decl:{start:{line:47,column:28},end:{line:47,column:29}},loc:{start:{line:47,column:42},end:{line:49,column:5}},line:47},5:{name:"(anonymous_5)",decl:{start:{line:52,column:28},end:{line:52,column:29}},loc:{start:{line:52,column:42},end:{line:54,column:5}},line:52},6:{name:"(anonymous_6)",decl:{start:{line:57,column:14},end:{line:57,column:15}},loc:{start:{line:57,column:36},end:{line:135,column:3}},line:57},7:{name:"(anonymous_7)",decl:{start:{line:59,column:6},end:{line:59,column:7}},loc:{start:{line:59,column:31},end:{line:126,column:7}},line:59},8:{name:"(anonymous_8)",decl:{start:{line:64,column:59},end:{line:64,column:60}},loc:{start:{line:64,column:77},end:{line:66,column:9}},line:64},9:{name:"(anonymous_9)",decl:{start:{line:67,column:59},end:{line:67,column:60}},loc:{start:{line:67,column:77},end:{line:69,column:9}},line:67},10:{name:"(anonymous_10)",decl:{start:{line:102,column:14},end:{line:102,column:15}},loc:{start:{line:102,column:25},end:{line:102,column:45}},line:102},11:{name:"(anonymous_11)",decl:{start:{line:105,column:52},end:{line:105,column:53}},loc:{start:{line:105,column:70},end:{line:105,column:79}},line:105},12:{name:"(anonymous_12)",decl:{start:{line:114,column:56},end:{line:114,column:57}},loc:{start:{line:115,column:14},end:{line:115,column:46}},line:115},13:{name:"(anonymous_13)",decl:{start:{line:133,column:30},end:{line:133,column:31}},loc:{start:{line:133,column:40},end:{line:133,column:67}},line:133},14:{name:"(anonymous_14)",decl:{start:{line:137,column:16},end:{line:137,column:17}},loc:{start:{line:137,column:40},end:{line:209,column:3}},line:137},15:{name:"(anonymous_15)",decl:{start:{line:141,column:6},end:{line:141,column:7}},loc:{start:{line:141,column:19},end:{line:141,column:42}},line:141},16:{name:"(anonymous_16)",decl:{start:{line:155,column:8},end:{line:155,column:9}},loc:{start:{line:155,column:21},end:{line:155,column:44}},line:155},17:{name:"(anonymous_17)",decl:{start:{line:166,column:14},end:{line:166,column:15}},loc:{start:{line:166,column:38},end:{line:171,column:15}},line:166},18:{name:"(anonymous_18)",decl:{start:{line:168,column:18},end:{line:168,column:19}},loc:{start:{line:168,column:28},end:{line:168,column:37}},line:168},19:{name:"(anonymous_19)",decl:{start:{line:187,column:28},end:{line:187,column:29}},loc:{start:{line:187,column:38},end:{line:187,column:68}},line:187},20:{name:"(anonymous_20)",decl:{start:{line:196,column:30},end:{line:196,column:31}},loc:{start:{line:196,column:40},end:{line:196,column:54}},line:196}},branchMap:{0:{loc:{start:{line:61,column:8},end:{line:63,column:9}},type:"if",locations:[{start:{line:61,column:8},end:{line:63,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},1:{loc:{start:{line:65,column:17},end:{line:65,column:43}},type:"binary-expr",locations:[{start:{line:65,column:17},end:{line:65,column:22}},{start:{line:65,column:26},end:{line:65,column:43}}],line:65},2:{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},3:{loc:{start:{line:70,column:8},end:{line:72,column:9}},type:"if",locations:[{start:{line:70,column:8},end:{line:72,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:70},4:{loc:{start:{line:70,column:12},end:{line:70,column:34}},type:"binary-expr",locations:[{start:{line:70,column:12},end:{line:70,column:21}},{start:{line:70,column:25},end:{line:70,column:34}}],line:70},5:{loc:{start:{line:74,column:26},end:{line:74,column:46}},type:"binary-expr",locations:[{start:{line:74,column:26},end:{line:74,column:34}},{start:{line:74,column:38},end:{line:74,column:46}}],line:74},6:{loc:{start:{line:79,column:8},end:{line:82,column:9}},type:"if",locations:[{start:{line:79,column:8},end:{line:82,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:79},7:{loc:{start:{line:86,column:10},end:{line:86,column:42}},type:"cond-expr",locations:[{start:{line:86,column:33},end:{line:86,column:36}},{start:{line:86,column:39},end:{line:86,column:42}}],line:86},8:{loc:{start:{line:88,column:8},end:{line:90,column:9}},type:"if",locations:[{start:{line:88,column:8},end:{line:90,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},9:{loc:{start:{line:96,column:8},end:{line:107,column:9}},type:"if",locations:[{start:{line:96,column:8},end:{line:107,column:9}},{start:{line:98,column:15},end:{line:107,column:9}}],line:96},10:{loc:{start:{line:100,column:10},end:{line:106,column:11}},type:"if",locations:[{start:{line:100,column:10},end:{line:106,column:11}},{start:{line:104,column:17},end:{line:106,column:11}}],line:100},11:{loc:{start:{line:111,column:10},end:{line:117,column:11}},type:"if",locations:[{start:{line:111,column:10},end:{line:117,column:11}},{start:{line:113,column:17},end:{line:117,column:11}}],line:111},12:{loc:{start:{line:144,column:6},end:{line:152,column:7}},type:"if",locations:[{start:{line:144,column:6},end:{line:152,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:144},13:{loc:{start:{line:159,column:27},end:{line:159,column:64}},type:"cond-expr",locations:[{start:{line:159,column:51},end:{line:159,column:56}},{start:{line:159,column:59},end:{line:159,column:64}}],line:159},14:{loc:{start:{line:160,column:10},end:{line:174,column:11}},type:"if",locations:[{start:{line:160,column:10},end:{line:174,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:160},15:{loc:{start:{line:161,column:27},end:{line:163,column:34}},type:"cond-expr",locations:[{start:{line:162,column:16},end:{line:162,column:35}},{start:{line:163,column:16},end:{line:163,column:34}}],line:161},16:{loc:{start:{line:177,column:10},end:{line:185,column:11}},type:"if",locations:[{start:{line:177,column:10},end:{line:185,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:177},17:{loc:{start:{line:181,column:16},end:{line:181,column:57}},type:"cond-expr",locations:[{start:{line:181,column:37},end:{line:181,column:45}},{start:{line:181,column:48},end:{line:181,column:57}}],line:181},18:{loc:{start:{line:186,column:10},end:{line:204,column:11}},type:"if",locations:[{start:{line:186,column:10},end:{line:204,column:11}},{start:{line:194,column:17},end:{line:204,column:11}}],line:186},19:{loc:{start:{line:187,column:12},end:{line:193,column:13}},type:"if",locations:[{start:{line:187,column:12},end:{line:193,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:187},20:{loc:{start:{line:196,column:14},end:{line:202,column:15}},type:"if",locations:[{start:{line:196,column:14},end:{line:202,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:196}},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},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:"7185fdff633ffd3edabf15fd2c15091af9669e53"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ue=function(){return s},s}Ue(),Ue().s[0]++;var Pe=function(n){Ue().f[0]++;var e=(Ue().s[1]++,"(^|[{\\(\\s])"),t=(Ue().s[2]++,"((\\s.+)|(\\(.+\\)))");return Ue().s[3]++,new RegExp("".concat(e).concat(n).concat(t))},Ge=(Ue().s[4]++,/#\{.+\}/),qe=(Ue().s[5]++,/['"],\s?['"]/),je=(0,p.Z)((function n(){var e=this;(0,A.Z)(this,n),(0,nn.Z)(this,"checkText",(Ue().s[17]++,function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,l,i,o,s=this;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ue().f[6]++,Ue().s[18]++,t=e.split("\n").reduce((function(n,e,t){if(Ue().f[7]++,Ue().s[19]++,e=e.trim(),Ue().s[20]++,e.match(/^#/))return Ue().b[0][0]++,Ue().s[21]++,n;Ue().b[0][1]++;var l=(Ue().s[22]++,s.cmdKeywordExpressions.reduce((function(n,t){return Ue().f[8]++,Ue().s[23]++,Ue().b[1][0]++,n||(Ue().b[1][1]++,e.match(t))}),null)),i=(Ue().s[24]++,s.tlmKeywordExpressions.reduce((function(n,t){return Ue().f[9]++,Ue().s[25]++,Ue().b[2][0]++,n||(Ue().b[2][1]++,e.match(t))}),null));if(Ue().s[26]++,Ue().b[4][0]++,!l&&(Ue().b[4][1]++,!i))return Ue().b[3][0]++,Ue().s[27]++,n;Ue().b[3][1]++;var o=(Ue().s[28]++,(Ue().b[5][0]++,l||(Ue().b[5][1]++,i))[0]),a=(Ue().s[29]++,o.substring(o.match(/[\(\s)]/).index+1).replace(/\)\s*$/,""));if(Ue().s[30]++,a.match(Ge))return Ue().b[6][0]++,Ue().s[31]++,n.linesToSkip.push(t+1),Ue().s[32]++,n;Ue().b[6][1]++;var c=(Ue().s[33]++,!!a.match(qe)),r=(Ue().s[34]++,a.split(c?(Ue().b[7][0]++,","):(Ue().b[7][1]++," ")));if(Ue().s[35]++,r.length<2)return Ue().b[8][0]++,Ue().s[36]++,n;Ue().b[8][1]++;var u=(Ue().s[37]++,{target:r[0],packet:r[1]});if(Ue().s[38]++,i)Ue().b[9][0]++,Ue().s[39]++,u.item=r[2];else{Ue().b[9][1]++;var m=(Ue().s[40]++,r.slice(2));Ue().s[41]++,c?(Ue().b[10][0]++,Ue().s[42]++,u.params=m.map((function(n){return Ue().f[10]++,Ue().s[43]++,n.split("=>")[0]}))):(Ue().b[10][1]++,Ue().s[44]++,u.params=m.filter((function(n,e){return Ue().f[11]++,Ue().s[45]++,e%2})))}for(var d in Ue().s[46]++,u)Ue().s[47]++,"string"===typeof u[d]?(Ue().b[11][0]++,Ue().s[48]++,u[d]=u[d].replace(/['"]/g,"").trim()):(Ue().b[11][1]++,Ue().s[49]++,u[d]=u[d].map((function(n){return Ue().f[12]++,Ue().s[50]++,n.replace(/['"]/g,"").trim()})));return Ue().s[51]++,n.linesToCheck.push({line:e,mnemonic:u,lineNumber:t+1}),Ue().s[52]++,n}),{linesToCheck:[],linesToSkip:[]}),l=t.linesToCheck,i=t.linesToSkip,Ue().s[53]++,n.next=5,this._checkLines(l);case 5:return o=n.sent,Ue().s[54]++,n.abrupt("return",{skipped:i.sort(),problems:o.sort((function(n,e){return Ue().f[13]++,Ue().s[55]++,n.lineNumber-e.lineNumber}))});case 8:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}())),(0,nn.Z)(this,"_checkLines",(Ue().s[56]++,function(){var n=(0,r.Z)((0,c.Z)().mark((function n(t){var l,i,o,r,u,m,d,A,p,h,f,v;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:Ue().f[14]++,Ue().s[57]++,l=[],Ue().s[58]++,i=Oe(t,(function(n){return Ue().f[15]++,Ue().s[59]++,n.mnemonic.target})),Ue().s[60]++,n.t0=(0,c.Z)().keys(i);case 5:if((n.t1=n.t0()).done){n.next=47;break}if(o=n.t1.value,Ue().s[61]++,e.targets[o]){n.next=17;break}Ue().b[12][0]++,Ue().s[62]++,r=(0,a.Z)(i[o]);try{for(r.s();!(u=r.n()).done;)m=u.value,Ue().s[63]++,l.push((0,s.Z)((0,s.Z)({},m),{},{error:'Target "'.concat(o,'" does not exist.')}))}catch(C){r.e(C)}finally{r.f()}return Ue().s[64]++,n.abrupt("continue",5);case 17:Ue().b[12][1]++;case 18:Ue().s[65]++,d=Oe(i[o],(function(n){return Ue().f[16]++,Ue().s[66]++,n.mnemonic.packet})),Ue().s[67]++,n.t2=(0,c.Z)().keys(d);case 21:if((n.t3=n.t2()).done){n.next=45;break}A=n.t3.value,Ue().s[68]++,p=(0,a.Z)(d[A]),n.prev=25,f=(0,c.Z)().mark((function n(){var t,i,r,u,m,d,p,f,v;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t=h.value,Ue().s[69]++,i=t.mnemonic.item?(Ue().b[13][0]++,"tlm"):(Ue().b[13][1]++,"cmd"),Ue().s[70]++,e.targets[o][i]){n.next=14;break}return Ue().b[14][0]++,Ue().s[71]++,r=t.mnemonic.item?(Ue().b[15][0]++,"get_all_telemetry"):(Ue().b[15][1]++,"get_all_commands"),Ue().s[72]++,n.next=9,e.api[r](o);case 9:u=n.sent,Ue().s[73]++,e.targets[o][i]=u.reduce((function(n,e){return Ue().f[17]++,Ue().s[74]++,n[e.packet_name]=e.items.map((function(n){return Ue().f[18]++,Ue().s[75]++,n.name})),Ue().s[76]++,n}),{}),n.next=15;break;case 14:Ue().b[14][1]++;case 15:if(Ue().s[77]++,m=e.targets[o][i][A],Ue().s[78]++,m){n.next=25;break}return Ue().b[16][0]++,Ue().s[79]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:"".concat("tlm"===i?(Ue().b[17][0]++,"Packet"):(Ue().b[17][1]++,"Command"),' "').concat(o," ").concat(A,'" does not exist.')})),Ue().s[80]++,n.abrupt("return","continue");case 25:Ue().b[16][1]++;case 26:if(Ue().s[81]++,!t.mnemonic.item){n.next=41;break}if(Ue().b[18][0]++,Ue().s[82]++,m.some((function(n){return Ue().f[19]++,Ue().s[83]++,n===t.mnemonic.item}))){n.next=38;break}return Ue().b[19][0]++,Ue().s[84]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Item "'.concat(o," ").concat(A," ").concat(t.mnemonic.item,'" does not exist.')})),Ue().s[85]++,n.abrupt("return","continue");case 38:Ue().b[19][1]++;case 39:n.next=61;break;case 41:Ue().b[18][1]++,Ue().s[86]++,d=(0,a.Z)(t.mnemonic.params),n.prev=44,f=function(){var n=p.value;if(Ue().s[87]++,!m.some((function(e){return Ue().f[20]++,Ue().s[88]++,e===n})))return Ue().b[20][0]++,Ue().s[89]++,l.push((0,s.Z)((0,s.Z)({},t),{},{error:'Command "'.concat(o," ").concat(A,'" param "').concat(n,'" does not exist.')})),Ue().s[90]++,"continue";Ue().b[20][1]++},d.s();case 47:if((p=d.n()).done){n.next=53;break}if(v=f(),"continue"!==v){n.next=51;break}return n.abrupt("continue",51);case 51:n.next=47;break;case 53:n.next=58;break;case 55:n.prev=55,n.t0=n["catch"](44),d.e(n.t0);case 58:return n.prev=58,d.f(),n.finish(58);case 61:case"end":return n.stop()}}),n,null,[[44,55,58,61]])})),p.s();case 28:if((h=p.n()).done){n.next=35;break}return n.delegateYield(f(),"t4",30);case 30:if(v=n.t4,"continue"!==v){n.next=33;break}return n.abrupt("continue",33);case 33:n.next=28;break;case 35:n.next=40;break;case 37:n.prev=37,n.t5=n["catch"](25),p.e(n.t5);case 40:return n.prev=40,p.f(),n.finish(40);case 43:n.next=21;break;case 45:n.next=5;break;case 47:return Ue().s[91]++,n.abrupt("return",l);case 49:case"end":return n.stop()}}),n,null,[[25,37,40,43]])})));return function(e){return n.apply(this,arguments)}}())),Ue().f[1]++,Ue().s[6]++,this.api=new en,Ue().s[7]++,this.targets={},Ue().s[8]++,this.api.get_target_list().then((function(n){Ue().f[2]++,Ue().s[9]++,n.forEach((function(n){Ue().f[3]++,Ue().s[10]++,e.targets[n]={cmd:null,tlm:null}}))})),Ue().s[11]++,this.cmdKeywordExpressions=[],Ue().s[12]++,De("cmd").then((function(n){Ue().f[4]++,Ue().s[13]++,e.cmdKeywordExpressions=n.data.map(Pe)})),Ue().s[14]++,this.tlmKeywordExpressions=[],Ue().s[15]++,De("tlm").then((function(n){Ue().f[5]++,Ue().s[16]++,e.tlmKeywordExpressions=n.data.map(Pe)}))}));function Ve(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",e="fd94693c255479a235de640b3b8e491b7638c7c7",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/autocomplete/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fd94693c255479a235de640b3b8e491b7638c7c7"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ve=function(){return s},s}Ve();var ze=t(6534),We=t(8418),Ye=t(7608);t(2356);function Ke(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",e="8ecd4081a963e7bd3a3a9212bd7919d3c9380ebd",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/regexAnnotator.js",statementMap:{0:{start:{line:28,column:4},end:{line:28,column:71}},1:{start:{line:29,column:4},end:{line:29,column:25}},2:{start:{line:30,column:4},end:{line:30,column:27}},3:{start:{line:31,column:4},end:{line:31,column:21}},4:{start:{line:32,column:4},end:{line:32,column:21}},5:{start:{line:36,column:12},end:{line:46,column:3}},6:{start:{line:37,column:20},end:{line:37,column:40}},7:{start:{line:38,column:4},end:{line:38,column:39}},8:{start:{line:39,column:18},end:{line:44,column:5}},9:{start:{line:45,column:4},end:{line:45,column:33}},10:{start:{line:49,column:13},end:{line:84,column:3}},11:{start:{line:50,column:4},end:{line:68,column:5}},12:{start:{line:52,column:6},end:{line:67,column:7}},13:{start:{line:54,column:10},end:{line:58,column:11}},14:{start:{line:59,column:10},end:{line:59,column:15}},15:{start:{line:61,column:10},end:{line:65,column:11}},16:{start:{line:66,column:10},end:{line:66,column:15}},17:{start:{line:69,column:4},end:{line:83,column:5}},18:{start:{line:69,column:19},end:{line:69,column:35}},19:{start:{line:70,column:19},end:{line:70,column:71}},20:{start:{line:71,column:6},end:{line:82,column:7}},21:{start:{line:72,column:8},end:{line:72,column:37}},22:{start:{line:73,column:8},end:{line:79,column:10}},23:{start:{line:80,column:13},end:{line:82,column:7}},24:{start:{line:81,column:8},end:{line:81,column:51}},25:{start:{line:86,column:19},end:{line:89,column:3}},26:{start:{line:87,column:4},end:{line:87,column:61}},27:{start:{line:88,column:4},end:{line:88,column:72}},28:{start:{line:91,column:29},end:{line:100,column:3}},29:{start:{line:92,column:4},end:{line:99,column:5}},30:{start:{line:97,column:12},end:{line:97,column:70}},31:{start:{line:102,column:22},end:{line:111,column:3}},32:{start:{line:103,column:4},end:{line:110,column:5}},33:{start:{line:105,column:8},end:{line:107,column:9}},34:{start:{line:106,column:10},end:{line:106,column:33}},35:{start:{line:108,column:8},end:{line:108,column:25}},36:{start:{line:113,column:26},end:{line:119,column:3}},37:{start:{line:114,column:4},end:{line:118,column:5}},38:{start:{line:117,column:32},end:{line:117,column:64}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:47},end:{line:33,column:3}},line:27},1:{name:"(anonymous_1)",decl:{start:{line:36,column:12},end:{line:36,column:13}},loc:{start:{line:36,column:18},end:{line:46,column:3}},line:36},2:{name:"(anonymous_2)",decl:{start:{line:49,column:13},end:{line:49,column:14}},loc:{start:{line:49,column:34},end:{line:84,column:3}},line:49},3:{name:"(anonymous_3)",decl:{start:{line:86,column:19},end:{line:86,column:20}},loc:{start:{line:86,column:47},end:{line:89,column:3}},line:86},4:{name:"(anonymous_4)",decl:{start:{line:91,column:29},end:{line:91,column:30}},loc:{start:{line:91,column:47},end:{line:100,column:3}},line:91},5:{name:"(anonymous_5)",decl:{start:{line:96,column:10},end:{line:96,column:11}},loc:{start:{line:97,column:12},end:{line:97,column:70}},line:97},6:{name:"(anonymous_6)",decl:{start:{line:102,column:22},end:{line:102,column:23}},loc:{start:{line:102,column:47},end:{line:111,column:3}},line:102},7:{name:"(anonymous_7)",decl:{start:{line:104,column:35},end:{line:104,column:36}},loc:{start:{line:104,column:51},end:{line:109,column:7}},line:104},8:{name:"(anonymous_8)",decl:{start:{line:113,column:26},end:{line:113,column:27}},loc:{start:{line:113,column:39},end:{line:119,column:3}},line:113},9:{name:"(anonymous_9)",decl:{start:{line:117,column:16},end:{line:117,column:17}},loc:{start:{line:117,column:32},end:{line:117,column:64}},line:117}},branchMap:{0:{loc:{start:{line:50,column:4},end:{line:68,column:5}},type:"if",locations:[{start:{line:50,column:4},end:{line:68,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},1:{loc:{start:{line:52,column:6},end:{line:67,column:7}},type:"switch",locations:[{start:{line:53,column:8},end:{line:59,column:15}},{start:{line:60,column:8},end:{line:66,column:15}}],line:52},2:{loc:{start:{line:71,column:6},end:{line:82,column:7}},type:"if",locations:[{start:{line:71,column:6},end:{line:82,column:7}},{start:{line:80,column:13},end:{line:82,column:7}}],line:71},3:{loc:{start:{line:72,column:8},end:{line:72,column:37}},type:"binary-expr",locations:[{start:{line:72,column:8},end:{line:72,column:20}},{start:{line:72,column:25},end:{line:72,column:36}}],line:72},4:{loc:{start:{line:80,column:13},end:{line:82,column:7}},type:"if",locations:[{start:{line:80,column:13},end:{line:82,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:80},5:{loc:{start:{line:97,column:12},end:{line:97,column:70}},type:"binary-expr",locations:[{start:{line:97,column:12},end:{line:97,column:44}},{start:{line:97,column:48},end:{line:97,column:70}}],line:97},6:{loc:{start:{line:105,column:8},end:{line:107,column:9}},type:"if",locations:[{start:{line:105,column:8},end:{line:107,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:105}},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:"8ecd4081a963e7bd3a3a9212bd7919d3c9380ebd"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ke=function(){return s},s}Ke();var Je=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,nt=new WeakMap,et=new WeakMap,tt=new WeakMap,lt=new WeakMap,it=new WeakMap,ot=new WeakMap,st=(0,p.Z)((function n(e,t){var l=this,i=t.pattern,o=t.text,s=t.type;(0,A.Z)(this,n),(0,ze.Z)(this,Je,{writable:!0,value:void 0}),(0,ze.Z)(this,Xe,{writable:!0,value:void 0}),(0,ze.Z)(this,Qe,{writable:!0,value:void 0}),(0,ze.Z)(this,nt,{writable:!0,value:void 0}),(0,ze.Z)(this,et,{writable:!0,value:void 0}),(0,nn.Z)(this,"refresh",(Ke().s[5]++,function(){Ke().f[1]++;var n=(Ke().s[6]++,(0,We.Z)(l,Xe).session);Ke().s[7]++,(0,We.Z)(l,ot).call(l,n);var e=(Ke().s[8]++,{lines:n.doc.$lines,action:"insert",start:{row:0},end:{row:n.doc.$lines.length}});Ke().s[9]++,l.annotate(e,n)})),(0,nn.Z)(this,"annotate",(Ke().s[10]++,function(n,e){if(Ke().f[2]++,Ke().s[11]++,n.lines.length>1)switch(Ke().b[0][0]++,Ke().s[12]++,n.action){case"insert":Ke().b[1][0]++,Ke().s[13]++,(0,We.Z)(l,it).call(l,e,n.start.row,n.lines.length-1),Ke().s[14]++;break;case"remove":Ke().b[1][1]++,Ke().s[15]++,(0,We.Z)(l,it).call(l,e,n.start.row+1,1-n.lines.length),Ke().s[16]++;break}else Ke().b[0][1]++;Ke().s[17]++;for(var t=(Ke().s[18]++,n.start.row);t<=n.end.row;t++){var i,o,s=(Ke().s[19]++,null===(i=e.doc.$lines[t])||void 0===i||null===(o=i.match((0,We.Z)(l,Qe)))||void 0===o?void 0:o.index);Ke().s[20]++,void 0!==s?(Ke().b[2][0]++,Ke().s[21]++,Ke().b[3][0]++,0!==s&&(Ke().b[3][1]++,s+=1),Ke().s[22]++,(0,We.Z)(l,tt).call(l,e,{row:t,column:s,text:(0,We.Z)(l,nt),type:(0,We.Z)(l,et),openc3Id:(0,We.Z)(l,Je)})):(Ke().b[2][1]++,Ke().s[23]++,"remove"===n.action?(Ke().b[4][0]++,Ke().s[24]++,(0,We.Z)(l,lt).call(l,e,t)):Ke().b[4][1]++)}})),(0,ze.Z)(this,tt,{writable:!0,value:(Ke().s[25]++,function(n,e){Ke().f[3]++,Ke().s[26]++,(0,We.Z)(l,lt).call(l,n,e.row),Ke().s[27]++,n.setAnnotations([].concat((0,u.Z)(n.getAnnotations()),[e]))})}),(0,ze.Z)(this,lt,{writable:!0,value:(Ke().s[28]++,function(n,e){Ke().f[4]++,Ke().s[29]++,n.setAnnotations(n.getAnnotations().filter((function(n){return Ke().f[5]++,Ke().s[30]++,Ke().b[5][0]++,n.openc3Id!==(0,We.Z)(l,Je)||(Ke().b[5][1]++,n.row!==e)})))})}),(0,ze.Z)(this,it,{writable:!0,value:(Ke().s[31]++,function(n,e,t){Ke().f[6]++,Ke().s[32]++,n.setAnnotations(n.getAnnotations().map((function(n){return Ke().f[7]++,Ke().s[33]++,n.row>e?(Ke().b[6][0]++,Ke().s[34]++,n.row+=t):Ke().b[6][1]++,Ke().s[35]++,n})))})}),(0,ze.Z)(this,ot,{writable:!0,value:(Ke().s[36]++,function(n){Ke().f[8]++,Ke().s[37]++,n.setAnnotations(n.getAnnotations().filter((function(n){return Ke().f[9]++,Ke().s[38]++,n.openc3Id!==(0,We.Z)(l,Je)})))})}),Ke().f[0]++,Ke().s[0]++,(0,Ye.Z)(this,Je,"regexAnnotator-".concat(Math.floor(1e7*Math.random()))),Ke().s[1]++,(0,Ye.Z)(this,Xe,e),Ke().s[2]++,(0,Ye.Z)(this,Qe,i),Ke().s[3]++,(0,Ye.Z)(this,nt,o),Ke().s[4]++,(0,Ye.Z)(this,et,s)}));function at(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",e="cc32d28b60175ea9b5230399dcae57135b764eff",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/sleepAnnotator.js",statementMap:{0:{start:{line:24,column:19},end:{line:24,column:31}},1:{start:{line:25,column:20},end:{line:25,column:27}},2:{start:{line:26,column:19},end:{line:26,column:29}},3:{start:{line:27,column:4},end:{line:31,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:22},end:{line:32,column:3}},line:23}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cc32d28b60175ea9b5230399dcae57135b764eff"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return at=function(){return s},s}at();var ct=function(n){(0,Re.Z)(t,n);var e=(0,Me.Z)(t);function t(n){(0,A.Z)(this,t),at().f[0]++;var l=(at().s[0]++,"(^|[{\\s])"),i=(at().s[1]++,"sleep"),o=(at().s[2]++,"[\\(\\s]");return at().s[3]++,e.call(this,n,{pattern:new RegExp("".concat(l).concat(i).concat(o)),text:"Use `wait` instead of `sleep` in OpenC3 scripts",type:"warning"})}return(0,p.Z)(t)}(st);function rt(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",e="817ff7e0f9295814dffc4684e6764474b53b153e",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/annotations/index.js",statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"817ff7e0f9295814dffc4684e6764474b53b153e"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return rt=function(){return s},s}function ut(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="f1b8b98cec52681a32d5fc140383e036f95cd121",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.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:3139}},4:{start:{line:1,column:584},end:{line:1,column:605}},5:{start:{line:1,column:934},end:{line:1,column:1244}},6:{start:{line:1,column:1009},end:{line:1,column:1039}},7:{start:{line:1,column:1286},end:{line:1,column:1498}},8:{start:{line:1,column:1361},end:{line:1,column:1388}},9:{start:{line:1,column:1542},end:{line:1,column:1759}},10:{start:{line:1,column:1617},end:{line:1,column:1646}},11:{start:{line:1,column:2273},end:{line:1,column:2296}},12:{start:{line:1,column:2612},end:{line:1,column:3125}},13:{start:{line:1,column:2787},end:{line:1,column:2821}},14:{start:{line:1,column:2872},end:{line:1,column:2914}},15:{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:568},end:{line:1,column:569}},loc:{start:{line:1,column:583},end:{line:1,column:606}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:915},end:{line:1,column:916}},loc:{start:{line:1,column:933},end:{line:1,column:1245}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:992},end:{line:1,column:993}},loc:{start:{line:1,column:1008},end:{line:1,column:1040}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1267},end:{line:1,column:1268}},loc:{start:{line:1,column:1285},end:{line:1,column:1499}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1344},end:{line:1,column:1345}},loc:{start:{line:1,column:1360},end:{line:1,column:1389}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1523},end:{line:1,column:1524}},loc:{start:{line:1,column:1541},end:{line:1,column:1760}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1600},end:{line:1,column:1601}},loc:{start:{line:1,column:1616},end:{line:1,column:1647}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2257},end:{line:1,column:2258}},loc:{start:{line:1,column:2272},end:{line:1,column:2297}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2593},end:{line:1,column:2594}},loc:{start:{line:1,column:2611},end:{line:1,column:3126}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2770},end:{line:1,column:2771}},loc:{start:{line:1,column:2786},end:{line:1,column:2822}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2861},end:{line:1,column:2862}},loc:{start:{line:1,column:2871},end:{line:1,column:2915}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2697},end:{line:1,column:2756}},type:"binary-expr",locations:[{start:{line:1,column:2697},end:{line:1,column:2715}},{start:{line:1,column:2719},end:{line:1,column:2756}}],line:1},1:{loc:{start:{line:1,column:2942},end:{line:1,column:3046}},type:"cond-expr",locations:[{start:{line:1,column:2978},end:{line:1,column:3012}},{start:{line:1,column:3013},end:{line:1,column:3046}}],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},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:"f1b8b98cec52681a32d5fc140383e036f95cd121"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return ut=function(){return s},s}rt(),ut(),ut().s[0]++;var mt=function(){ut().f[0]++;var n=(ut().s[1]++,this),e=(ut().s[2]++,n._self._c);return ut().s[3]++,e("div",[e("v-card",{attrs:{flat:""}},[e("v-card-title",[n._v(" Running Scripts ")]),e("v-card-text",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getRunningScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-10"},[e("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":"","data-test":"running-search"},model:{value:n.runningSearch,callback:function(e){ut().f[1]++,ut().s[4]++,n.runningSearch=e},expression:"runningSearch"}})],1)])]),e("v-data-table",{attrs:{headers:n.runningHeaders,items:n.runningScripts,search:n.runningSearch,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"","data-test":"running-scripts"},scopedSlots:n._u([{key:"item.connect",fn:function(t){var l=t.item;return ut().f[2]++,ut().s[5]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[3]++,ut().s[6]++,n.connectScript(l)}}},[e("span",[n._v("Connect")]),e("v-icon",{directives:[{name:"show",rawName:"v-show",value:n.connectInNewTab,expression:"connectInNewTab"}],attrs:{right:""}},[n._v(" mdi-open-in-new ")])],1)]}},{key:"item.stop",fn:function(t){var l=t.item;return ut().f[4]++,ut().s[7]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[5]++,ut().s[8]++,n.stopScript(l)}}},[e("span",[n._v("Stop")]),e("v-icon",{attrs:{right:""}},[n._v(" mdi-close-circle-outline ")])],1)]}},{key:"item.delete",fn:function(t){var l=t.item;return ut().f[6]++,ut().s[9]++,[e("v-btn",{attrs:{color:"primary"},on:{click:function(e){return ut().f[7]++,ut().s[10]++,n.deleteScript(l)}}},[e("span",[n._v("Delete")]),e("v-icon",{attrs:{right:""}},[n._v(" mdi-alert-octagon-outline ")])],1)]}}])})],1),e("v-card",{staticClass:"mt-3",attrs:{flat:""}},[e("v-card-title",[n._v(" Completed Scripts ")]),e("v-card-text",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-2"},[e("v-btn",{attrs:{color:"primary"},on:{click:n.getCompletedScripts}},[n._v("Refresh")])],1),e("div",{staticClass:"col-10"},[e("v-text-field",{staticClass:"pt-0",attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:n.completedSearch,callback:function(e){ut().f[8]++,ut().s[11]++,n.completedSearch=e},expression:"completedSearch"}})],1)])]),e("v-data-table",{attrs:{headers:n.completedHeaders,items:n.completedScripts,search:n.completedSearch,"calculate-widths":"","hide-default-footer":"","multi-sort":"","data-test":"completed-scripts"},scopedSlots:n._u([{key:"item.download",fn:function(t){var l=t.item;return ut().f[9]++,ut().s[12]++,[e("v-btn",{attrs:{color:"primary",disabled:n.downloadScript,loading:(ut().b[0][0]++,n.downloadScript&&(ut().b[0][1]++,n.downloadScript.name===l.name))},on:{click:function(e){return ut().f[10]++,ut().s[13]++,n.downloadScriptLog(l)}},scopedSlots:n._u([{key:"loader",fn:function(){return ut().f[11]++,ut().s[14]++,[e("span",[n._v("Loading...")])]},proxy:!0}],null,!0)},[l.name.includes("Test Report")?(ut().b[1][0]++,e("span",[n._v("Test Report")])):(ut().b[1][1]++,e("span",[n._v("Script Log")])),e("v-icon",{attrs:{right:""}},[n._v(" mdi-file-download-outline ")])],1)]}}])})],1)],1)},dt=(ut().s[15]++,[]);function At(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/RunningScripts.vue",e="da557a64d75c06b8522a875a003bf5421674a47c",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-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:63,column:6},end:{line:65,column:8}},6:{start:{line:64,column:8},end:{line:64,column:45}},7:{start:{line:68,column:26},end:{line:71,column:7}},8:{start:{line:72,column:6},end:{line:78,column:7}},9:{start:{line:73,column:23},end:{line:73,column:56}},10:{start:{line:74,column:8},end:{line:74,column:35}},11:{start:{line:76,column:8},end:{line:76,column:38}},12:{start:{line:77,column:8},end:{line:77,column:27}},13:{start:{line:81,column:6},end:{line:104,column:10}},14:{start:{line:90,column:10},end:{line:90,column:73}},15:{start:{line:93,column:10},end:{line:95,column:12}},16:{start:{line:96,column:10},end:{line:96,column:34}},17:{start:{line:99,column:10},end:{line:103,column:11}},18:{start:{line:100,column:12},end:{line:102,column:14}},19:{start:{line:107,column:6},end:{line:131,column:10}},20:{start:{line:117,column:10},end:{line:117,column:75}},21:{start:{line:120,column:10},end:{line:122,column:12}},22:{start:{line:123,column:10},end:{line:123,column:34}},23:{start:{line:126,column:10},end:{line:130,column:11}},24:{start:{line:127,column:12},end:{line:129,column:14}},25:{start:{line:134,column:6},end:{line:134,column:34}},26:{start:{line:135,column:6},end:{line:155,column:10}},27:{start:{line:141,column:32},end:{line:141,column:53}},28:{start:{line:142,column:27},end:{line:142,column:66}},29:{start:{line:144,column:23},end:{line:144,column:50}},30:{start:{line:145,column:10},end:{line:145,column:39}},31:{start:{line:146,column:10},end:{line:146,column:49}},32:{start:{line:147,column:10},end:{line:147,column:22}},33:{start:{line:148,column:10},end:{line:148,column:36}},34:{start:{line:151,column:10},end:{line:154,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:66,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:63,column:52},end:{line:63,column:53}},loc:{start:{line:63,column:66},end:{line:65,column:7}},line:63},6:{name:"(anonymous_6)",decl:{start:{line:67,column:19},end:{line:67,column:20}},loc:{start:{line:67,column:37},end:{line:79,column:5}},line:67},7:{name:"(anonymous_7)",decl:{start:{line:80,column:16},end:{line:80,column:17}},loc:{start:{line:80,column:34},end:{line:105,column:5}},line:80},8:{name:"(anonymous_8)",decl:{start:{line:89,column:14},end:{line:89,column:15}},loc:{start:{line:89,column:26},end:{line:91,column:9}},line:89},9:{name:"(anonymous_9)",decl:{start:{line:92,column:14},end:{line:92,column:15}},loc:{start:{line:92,column:28},end:{line:97,column:9}},line:92},10:{name:"(anonymous_10)",decl:{start:{line:98,column:15},end:{line:98,column:16}},loc:{start:{line:98,column:26},end:{line:104,column:9}},line:98},11:{name:"(anonymous_11)",decl:{start:{line:106,column:18},end:{line:106,column:19}},loc:{start:{line:106,column:36},end:{line:132,column:5}},line:106},12:{name:"(anonymous_12)",decl:{start:{line:116,column:14},end:{line:116,column:15}},loc:{start:{line:116,column:26},end:{line:118,column:9}},line:116},13:{name:"(anonymous_13)",decl:{start:{line:119,column:14},end:{line:119,column:15}},loc:{start:{line:119,column:28},end:{line:124,column:9}},line:119},14:{name:"(anonymous_14)",decl:{start:{line:125,column:15},end:{line:125,column:16}},loc:{start:{line:125,column:26},end:{line:131,column:9}},line:125},15:{name:"(anonymous_15)",decl:{start:{line:133,column:23},end:{line:133,column:24}},loc:{start:{line:133,column:41},end:{line:156,column:5}},line:133},16:{name:"(anonymous_16)",decl:{start:{line:140,column:14},end:{line:140,column:15}},loc:{start:{line:140,column:28},end:{line:149,column:9}},line:140},17:{name:"(anonymous_17)",decl:{start:{line:150,column:15},end:{line:150,column:16}},loc:{start:{line:150,column:21},end:{line:155,column:9}},line:150}},branchMap:{0:{loc:{start:{line:72,column:6},end:{line:78,column:7}},type:"if",locations:[{start:{line:72,column:6},end:{line:78,column:7}},{start:{line:75,column:13},end:{line:78,column:7}}],line:72},1:{loc:{start:{line:99,column:10},end:{line:103,column:11}},type:"if",locations:[{start:{line:99,column:10},end:{line:103,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:99},2:{loc:{start:{line:126,column:10},end:{line:130,column:11}},type:"if",locations:[{start:{line:126,column:10},end:{line:130,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:126}},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:";AAwHA;;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",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--\x3e\n\n<template>\n <div>\n <v-card flat>\n <v-card-title> Running Scripts </v-card-title>\n <v-card-text>\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getRunningScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\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 calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n data-test="running-scripts"\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-title> Completed Scripts </v-card-title>\n <v-card-text>\n <div class="row">\n <div class="col-2">\n <v-btn color="primary" @click="getCompletedScripts">Refresh</v-btn>\n </div>\n <div class="col-10">\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-data-table\n :headers="completedHeaders"\n :items="completedScripts"\n :search="completedSearch"\n calculate-widths\n hide-default-footer\n multi-sort\n data-test="completed-scripts"\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(\'Test Report\')">Test Report</span>\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-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 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=logs`\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 Minio \'logs\' bucket at ${script.log}`,\n })\n })\n },\n },\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"da557a64d75c06b8522a875a003bf5421674a47c"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return At=function(){return s},s}At();var pt={props:{tabId:Number,curTab:Number,connectInNewTab:Boolean},data:function(){return At().f[0]++,At().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(){At().f[1]++,At().s[1]++,this.getRunningScripts(),At().s[2]++,this.getCompletedScripts()},methods:{getRunningScripts:function(){var n=this;At().f[2]++,At().s[3]++,w.get("/script-api/running-script").then((function(e){At().f[3]++,At().s[4]++,n.runningScripts=e.data}))},getCompletedScripts:function(){var n=this;At().f[4]++,At().s[5]++,w.get("/script-api/completed-scripts").then((function(e){At().f[5]++,At().s[6]++,n.completedScripts=e.data}))},connectScript:function(n){At().f[6]++;var e=(At().s[7]++,{name:"ScriptRunner",params:{id:n.id}});if(At().s[8]++,this.connectInNewTab){At().b[0][0]++;var t=(At().s[9]++,this.$router.resolve(e)),l=t.href;At().s[10]++,window.open(l,"_blank")}else At().b[0][1]++,At().s[11]++,this.$router.push(e),At().s[12]++,this.$emit("close")},stopScript:function(n){var e=this;At().f[7]++,At().s[13]++,this.$dialog.confirm("Are you sure you want to stop script: ".concat(n.id," ").concat(n.name,"?"),{okText:"Stop",cancelText:"Cancel"}).then((function(e){return At().f[8]++,At().s[14]++,w.post("/script-api/running-script/".concat(n.id,"/stop"))})).then((function(t){At().f[9]++,At().s[15]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),At().s[16]++,e.getRunningScripts()})).catch((function(t){At().f[10]++,At().s[17]++,t?(At().b[1][0]++,At().s[18]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):At().b[1][1]++}))},deleteScript:function(n){var e=this;At().f[11]++,At().s[19]++,this.$dialog.confirm("Are you sure you want to force quit script: ".concat(n.id," ").concat(n.name,"?\n")+"Did you try to stop the script first to allow the script to stop gracefully?",{okText:"Force Quit",cancelText:"Cancel"}).then((function(e){return At().f[12]++,At().s[20]++,w.post("/script-api/running-script/".concat(n.id,"/delete"))})).then((function(t){At().f[13]++,At().s[21]++,e.$notify.normal({body:"Stopped script: ".concat(n.id," ").concat(n.name)}),At().s[22]++,e.getRunningScripts()})).catch((function(t){At().f[14]++,At().s[23]++,t?(At().b[2][0]++,At().s[24]++,e.$notify.caution({body:"Failed to stop script: ".concat(n.id," ").concat(n.name)})):At().b[2][1]++}))},downloadScriptLog:function(n){var e=this;At().f[15]++,At().s[25]++,this.downloadScript=n,At().s[26]++,w.get("/openc3-api/storage/download/".concat(encodeURIComponent(n.log),"?bucket=logs")).then((function(t){At().f[16]++;var l=(At().s[27]++,n.log.split("/")),i=(At().s[28]++,l[l.length-1]),o=(At().s[29]++,document.createElement("a"));At().s[30]++,o.href=t.data.url,At().s[31]++,o.setAttribute("download",i),At().s[32]++,o.click(),At().s[33]++,e.downloadScript=null})).catch((function(){At().f[17]++,At().s[34]++,e.$notify.caution({title:"Unable to download log for ".concat(n.name),body:"You may be able to download this log manually from the Minio 'logs' bucket at ".concat(n.log)})}))}}},ht=pt,ft=(0,O.Z)(ht,mt,dt,!1,null,null,null),vt=ft.exports;function Ct(){var n="/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",e="56b70df486d04cbffcba15e5a67ddb83123ff461",t=new Function("return this")(),l="__coverage__",i={path:"/openc3/plugins/packages/openc3-tool-scriptrunner/src/tools/ScriptRunner/ScriptRunner.vue",statementMap:{0:{start:{line:35,column:21},end:{line:35,column:33}},1:{start:{line:36,column:14},end:{line:36,column:21}},2:{start:{line:37,column:11},end:{line:37,column:15}},3:{start:{line:38,column:14},end:{line:38,column:21}},4:{start:{line:39,column:14},end:{line:39,column:21}},5:{start:{line:61,column:4},end:{line:167,column:5}},6:{start:{line:171,column:24},end:{line:171,column:47}},7:{start:{line:172,column:6},end:{line:172,column:39}},8:{start:{line:173,column:6},end:{line:173,column:36}},9:{start:{line:176,column:6},end:{line:178,column:32}},10:{start:{line:181,column:6},end:{line:181,column:67}},11:{start:{line:184,column:6},end:{line:184,column:28}},12:{start:{line:187,column:6},end:{line:187,column:59}},13:{start:{line:187,column:32},end:{line:187,column:59}},14:{start:{line:188,column:6},end:{line:188,column:26}},15:{start:{line:193,column:6},end:{line:193,column:64}},16:{start:{line:196,column:6},end:{line:361,column:7}},17:{start:{line:204,column:16},end:{line:204,column:30}},18:{start:{line:211,column:16},end:{line:211,column:31}},19:{start:{line:221,column:16},end:{line:221,column:31}},20:{start:{line:228,column:16},end:{line:228,column:29}},21:{start:{line:238,column:16},end:{line:238,column:31}},22:{start:{line:248,column:16},end:{line:248,column:29}},23:{start:{line:260,column:16},end:{line:260,column:47}},24:{start:{line:267,column:16},end:{line:267,column:50}},25:{start:{line:279,column:16},end:{line:279,column:46}},26:{start:{line:289,column:16},end:{line:289,column:60}},27:{start:{line:296,column:17},end:{line:297,column:70}},28:{start:{line:307,column:16},end:{line:307,column:38}},29:{start:{line:314,column:16},end:{line:314,column:37}},30:{start:{line:321,column:16},end:{line:321,column:39}},31:{start:{line:329,column:16},end:{line:329,column:36}},32:{start:{line:339,column:16},end:{line:339,column:34}},33:{start:{line:346,column:16},end:{line:346,column:39}},34:{start:{line:356,column:16},end:{line:356,column:43}},35:{start:{line:364,column:6},end:{line:377,column:7}},36:{start:{line:382,column:6},end:{line:382,column:34}},37:{start:{line:383,column:6},end:{line:385,column:7}},38:{start:{line:384,column:8},end:{line:384,column:36}},39:{start:{line:386,column:6},end:{line:386,column:34}},40:{start:{line:391,column:4},end:{line:391,column:36}},41:{start:{line:392,column:4},end:{line:392,column:43}},42:{start:{line:395,column:4},end:{line:395,column:36}},43:{start:{line:396,column:4},end:{line:396,column:46}},44:{start:{line:397,column:23},end:{line:397,column:45}},45:{start:{line:398,column:4},end:{line:398,column:49}},46:{start:{line:399,column:4},end:{line:399,column:37}},47:{start:{line:400,column:4},end:{line:400,column:44}},48:{start:{line:401,column:4},end:{line:401,column:42}},49:{start:{line:402,column:4},end:{line:402,column:60}},50:{start:{line:403,column:4},end:{line:403,column:59}},51:{start:{line:404,column:4},end:{line:404,column:69}},52:{start:{line:405,column:4},end:{line:405,column:45}},53:{start:{line:406,column:4},end:{line:406,column:23}},54:{start:{line:407,column:4},end:{line:407,column:60}},55:{start:{line:411,column:4},end:{line:411,column:60}},56:{start:{line:413,column:27},end:{line:413,column:58}},57:{start:{line:414,column:4},end:{line:417,column:6}},58:{start:{line:415,column:6},end:{line:415,column:46}},59:{start:{line:416,column:6},end:{line:416,column:45}},60:{start:{line:419,column:4},end:{line:419,column:52}},61:{start:{line:420,column:4},end:{line:420,column:47}},62:{start:{line:421,column:4},end:{line:421,column:58}},63:{start:{line:422,column:4},end:{line:430,column:13}},64:{start:{line:424,column:6},end:{line:429,column:7}},65:{start:{line:428,column:8},end:{line:428,column:29}},66:{start:{line:433,column:4},end:{line:433,column:25}},67:{start:{line:434,column:4},end:{line:434,column:34}},68:{start:{line:437,column:4},end:{line:437,column:21}},69:{start:{line:438,column:4},end:{line:440,column:5}},70:{start:{line:439,column:6},end:{line:439,column:42}},71:{start:{line:441,column:4},end:{line:443,column:5}},72:{start:{line:442,column:6},end:{line:442,column:65}},73:{start:{line:444,column:4},end:{line:446,column:5}},74:{start:{line:445,column:6},end:{line:445,column:37}},75:{start:{line:447,column:4},end:{line:447,column:27}},76:{start:{line:450,column:4},end:{line:454,column:5}},77:{start:{line:451,column:6},end:{line:451,column:56}},78:{start:{line:453,column:6},end:{line:453,column:12}},79:{start:{line:458,column:16},end:{line:458,column:42}},80:{start:{line:459,column:31},end:{line:461,column:26}},81:{start:{line:463,column:17},end:{line:465,column:36}},82:{start:{line:464,column:23},end:{line:464,column:42}},83:{start:{line:465,column:23},end:{line:465,column:35}},84:{start:{line:466,column:18},end:{line:466,column:63}},85:{start:{line:467,column:33},end:{line:476,column:7}},86:{start:{line:468,column:8},end:{line:468,column:37}},87:{start:{line:470,column:8},end:{line:475,column:9}},88:{start:{line:471,column:10},end:{line:474,column:12}},89:{start:{line:477,column:6},end:{line:477,column:60}},90:{start:{line:479,column:33},end:{line:481,column:28}},91:{start:{line:482,column:28},end:{line:484,column:23}},92:{start:{line:485,column:21},end:{line:485,column:66}},93:{start:{line:486,column:17},end:{line:492,column:7}},94:{start:{line:487,column:8},end:{line:487,column:50}},95:{start:{line:488,column:8},end:{line:488,column:50}},96:{start:{line:489,column:8},end:{line:489,column:47}},97:{start:{line:490,column:8},end:{line:490,column:42}},98:{start:{line:491,column:8},end:{line:491,column:62}},99:{start:{line:493,column:21},end:{line:493,column:54}},100:{start:{line:494,column:6},end:{line:495,column:7}},101:{start:{line:495,column:7},end:{line:497,column:29}},102:{start:{line:496,column:8},end:{line:496,column:36}},103:{start:{line:498,column:6},end:{line:498,column:17}},104:{start:{line:501,column:6},end:{line:501,column:56}},105:{start:{line:502,column:6},end:{line:502,column:39}},106:{start:{line:503,column:6},end:{line:503,column:34}},107:{start:{line:504,column:6},end:{line:504,column:29}},108:{start:{line:505,column:6},end:{line:514,column:7}},109:{start:{line:515,column:6},end:{line:515,column:55}},110:{start:{line:516,column:6},end:{line:516,column:30}},111:{start:{line:519,column:6},end:{line:537,column:8}},112:{start:{line:520,column:34},end:{line:522,column:9}},113:{start:{line:521,column:17},end:{line:521,column:38}},114:{start:{line:523,column:8},end:{line:536,column:9}},115:{start:{line:524,column:10},end:{line:524,column:48}},116:{start:{line:525,column:10},end:{line:525,column:30}},117:{start:{line:526,column:10},end:{line:526,column:48}},118:{start:{line:527,column:15},end:{line:536,column:9}},119:{start:{line:528,column:10},end:{line:531,column:12}},120:{start:{line:533,column:10},end:{line:533,column:36}},121:{start:{line:534,column:10},end:{line:534,column:79}},122:{start:{line:535,column:10},end:{line:535,column:31}},123:{start:{line:540,column:6},end:{line:552,column:8}},124:{start:{line:541,column:8},end:{line:545,column:9}},125:{start:{line:542,column:10},end:{line:542,column:39}},126:{start:{line:543,column:10},end:{line:543,column:33}},127:{start:{line:544,column:10},end:{line:544,column:58}},128:{start:{line:546,column:8},end:{line:549,column:9}},129:{start:{line:547,column:10},end:{line:547,column:47}},130:{start:{line:548,column:10},end:{line:548,column:36}},131:{start:{line:551,column:8},end:{line:551,column:65}},132:{start:{line:555,column:6},end:{line:555,column:31}},133:{start:{line:556,column:6},end:{line:556,column:31}},134:{start:{line:557,column:6},end:{line:557,column:38}},135:{start:{line:560,column:20},end:{line:560,column:55}},136:{start:{line:561,column:19},end:{line:563,column:19}},137:{start:{line:564,column:26},end:{line:566,column:34}},138:{start:{line:565,column:25},end:{line:565,column:37}},139:{start:{line:566,column:22},end:{line:566,column:33}},140:{start:{line:567,column:6},end:{line:567,column:41}},141:{start:{line:570,column:19},end:{line:570,column:48}},142:{start:{line:571,column:20},end:{line:571,column:51}},143:{start:{line:572,column:26},end:{line:574,column:44}},144:{start:{line:573,column:25},end:{line:573,column:71}},145:{start:{line:574,column:22},end:{line:574,column:43}},146:{start:{line:575,column:6},end:{line:575,column:41}},147:{start:{line:578,column:6},end:{line:608,column:7}},148:{start:{line:580,column:22},end:{line:580,column:38}},149:{start:{line:581,column:8},end:{line:584,column:9}},150:{start:{line:582,column:10},end:{line:582,column:34}},151:{start:{line:583,column:10},end:{line:583,column:45}},152:{start:{line:588,column:10},end:{line:588,column:68}},153:{start:{line:589,column:8},end:{line:607,column:12}},154:{start:{line:596,column:12},end:{line:603,column:13}},155:{start:{line:606,column:12},end:{line:606,column:63}},156:{start:{line:611,column:6},end:{line:611,column:44}},157:{start:{line:614,column:6},end:{line:624,column:7}},158:{start:{line:618,column:20},end:{line:618,column:52}},159:{start:{line:619,column:8},end:{line:623,column:9}},160:{start:{line:620,column:10},end:{line:620,column:52}},161:{start:{line:622,column:10},end:{line:622,column:50}},162:{start:{line:627,column:6},end:{line:629,column:7}},163:{start:{line:628,column:8},end:{line:628,column:14}},164:{start:{line:630,column:27},end:{line:634,column:7}},165:{start:{line:632,column:10},end:{line:633,column:32}},166:{start:{line:635,column:25},end:{line:635,column:27}},167:{start:{line:636,column:19},end:{line:636,column:20}},168:{start:{line:637,column:6},end:{line:648,column:7}},169:{start:{line:639,column:10},end:{line:639,column:42}},170:{start:{line:640,column:10},end:{line:640,column:32}},171:{start:{line:641,column:10},end:{line:641,column:15}},172:{start:{line:643,column:10},end:{line:643,column:43}},173:{start:{line:644,column:10},end:{line:646,column:11}},174:{start:{line:645,column:21},end:{line:645,column:43}},175:{start:{line:647,column:10},end:{line:647,column:15}},176:{start:{line:649,column:6},end:{line:654,column:8}},177:{start:{line:650,column:8},end:{line:650,column:36}},178:{start:{line:651,column:8},end:{line:653,column:9}},179:{start:{line:652,column:10},end:{line:652,column:45}},180:{start:{line:657,column:6},end:{line:660,column:33}},181:{start:{line:659,column:34},end:{line:659,column:51}},182:{start:{line:663,column:6},end:{line:663,column:29}},183:{start:{line:664,column:6},end:{line:666,column:8}},184:{start:{line:665,column:8},end:{line:665,column:53}},185:{start:{line:669,column:6},end:{line:679,column:10}},186:{start:{line:675,column:10},end:{line:675,column:65}},187:{start:{line:678,column:10},end:{line:678,column:33}},188:{start:{line:682,column:6},end:{line:686,column:7}},189:{start:{line:683,column:8},end:{line:683,column:40}},190:{start:{line:685,column:8},end:{line:685,column:37}},191:{start:{line:691,column:6},end:{line:704,column:7}},192:{start:{line:695,column:8},end:{line:695,column:30}},193:{start:{line:696,column:8},end:{line:696,column:23}},194:{start:{line:697,column:13},end:{line:704,column:7}},195:{start:{line:702,column:8},end:{line:702,column:30}},196:{start:{line:703,column:8},end:{line:703,column:21}},197:{start:{line:708,column:6},end:{line:710,column:7}},198:{start:{line:709,column:8},end:{line:709,column:14}},199:{start:{line:711,column:6},end:{line:715,column:7}},200:{start:{line:712,column:8},end:{line:712,column:31}},201:{start:{line:714,column:8},end:{line:714,column:30}},202:{start:{line:718,column:6},end:{line:736,column:10}},203:{start:{line:721,column:26},end:{line:721,column:28}},204:{start:{line:722,column:10},end:{line:727,column:11}},205:{start:{line:723,column:32},end:{line:725,column:28}},206:{start:{line:724,column:32},end:{line:724,column:73}},207:{start:{line:726,column:12},end:{line:726,column:107}},208:{start:{line:728,column:10},end:{line:731,column:11}},209:{start:{line:729,column:12},end:{line:730,column:86}},210:{start:{line:732,column:10},end:{line:734,column:11}},211:{start:{line:733,column:12},end:{line:733,column:65}},212:{start:{line:735,column:10},end:{line:735,column:62}},213:{start:{line:739,column:6},end:{line:739,column:37}},214:{start:{line:740,column:6},end:{line:740,column:35}},215:{start:{line:741,column:6},end:{line:741,column:29}},216:{start:{line:742,column:6},end:{line:742,column:38}},217:{start:{line:743,column:6},end:{line:743,column:30}},218:{start:{line:744,column:6},end:{line:744,column:34}},219:{start:{line:745,column:6},end:{line:745,column:31}},220:{start:{line:746,column:6},end:{line:746,column:24}},221:{start:{line:747,column:6},end:{line:747,column:35}},222:{start:{line:748,column:6},end:{line:761,column:10}},223:{start:{line:753,column:32},end:{line:753,column:51}},224:{start:{line:760,column:10},end:{line:760,column:42}},225:{start:{line:764,column:6},end:{line:764,column:38}},226:{start:{line:765,column:6},end:{line:765,column:34}},227:{start:{line:766,column:6},end:{line:766,column:37}},228:{start:{line:768,column:6},end:{line:768,column:47}},229:{start:{line:769,column:6},end:{line:769,column:30}},230:{start:{line:770,column:6},end:{line:770,column:38}},231:{start:{line:771,column:6},end:{line:771,column:30}},232:{start:{line:773,column:6},end:{line:773,column:28}},233:{start:{line:774,column:6},end:{line:774,column:24}},234:{start:{line:775,column:6},end:{line:775,column:26}},235:{start:{line:776,column:6},end:{line:776,column:36}},236:{start:{line:779,column:6},end:{line:779,column:40}},237:{start:{line:782,column:6},end:{line:782,column:18}},238:{start:{line:785,column:6},end:{line:785,column:28}},239:{start:{line:786,column:21},end:{line:786,column:34}},240:{start:{line:787,column:6},end:{line:790,column:7}},241:{start:{line:789,column:8},end:{line:789,column:36}},242:{start:{line:791,column:16},end:{line:791,column:53}},243:{start:{line:792,column:6},end:{line:794,column:7}},244:{start:{line:793,column:8},end:{line:793,column:28}},245:{start:{line:795,column:17},end:{line:797,column:7}},246:{start:{line:798,column:6},end:{line:800,column:7}},247:{start:{line:799,column:8},end:{line:799,column:35}},248:{start:{line:801,column:6},end:{line:803,column:8}},249:{start:{line:802,column:8},end:{line:802,column:39}},250:{start:{line:806,column:6},end:{line:806,column:64}},251:{start:{line:809,column:6},end:{line:814,column:7}},252:{start:{line:810,column:8},end:{line:810,column:69}},253:{start:{line:812,column:8},end:{line:812,column:39}},254:{start:{line:813,column:8},end:{line:813,column:69}},255:{start:{line:820,column:6},end:{line:825,column:7}},256:{start:{line:821,column:8},end:{line:821,column:31}},257:{start:{line:822,column:8},end:{line:822,column:29}},258:{start:{line:824,column:8},end:{line:824,column:68}},259:{start:{line:828,column:6},end:{line:828,column:66}},260:{start:{line:832,column:6},end:{line:951,column:7}},261:{start:{line:834,column:10},end:{line:834,column:71}},262:{start:{line:835,column:10},end:{line:835,column:60}},263:{start:{line:836,column:10},end:{line:838,column:11}},264:{start:{line:837,column:12},end:{line:837,column:50}},265:{start:{line:839,column:10},end:{line:839,column:15}},266:{start:{line:841,column:10},end:{line:870,column:11}},267:{start:{line:842,column:12},end:{line:869,column:13}},268:{start:{line:845,column:14},end:{line:845,column:68}},269:{start:{line:848,column:14},end:{line:863,column:18}},270:{start:{line:852,column:18},end:{line:855,column:19}},271:{start:{line:856,column:18},end:{line:856,column:77}},272:{start:{line:857,column:18},end:{line:857,column:56}},273:{start:{line:858,column:18},end:{line:858,column:45}},274:{start:{line:862,column:18},end:{line:862,column:50}},275:{start:{line:865,column:14},end:{line:865,column:69}},276:{start:{line:866,column:14},end:{line:866,column:52}},277:{start:{line:867,column:14},end:{line:867,column:42}},278:{start:{line:868,column:14},end:{line:868,column:50}},279:{start:{line:871,column:10},end:{line:871,column:33}},280:{start:{line:872,column:26},end:{line:872,column:58}},281:{start:{line:873,column:10},end:{line:926,column:11}},282:{start:{line:875,column:14},end:{line:875,column:44}},283:{start:{line:876,column:14},end:{line:876,column:47}},284:{start:{line:877,column:14},end:{line:877,column:39}},285:{start:{line:878,column:14},end:{line:878,column:45}},286:{start:{line:880,column:14},end:{line:880,column:37}},287:{start:{line:881,column:14},end:{line:885,column:15}},288:{start:{line:886,column:14},end:{line:886,column:48}},289:{start:{line:887,column:14},end:{line:887,column:61}},290:{start:{line:888,column:14},end:{line:888,column:19}},291:{start:{line:890,column:14},end:{line:890,column:31}},292:{start:{line:893,column:14},end:{line:893,column:45}},293:{start:{line:898,column:14},end:{line:904,column:15}},294:{start:{line:899,column:16},end:{line:899,column:45}},295:{start:{line:900,column:16},end:{line:900,column:48}},296:{start:{line:902,column:16},end:{line:902,column:46}},297:{start:{line:903,column:16},end:{line:903,column:49}},298:{start:{line:905,column:14},end:{line:905,column:39}},299:{start:{line:906,column:29},end:{line:908,column:15}},300:{start:{line:907,column:25},end:{line:907,column:69}},301:{start:{line:909,column:14},end:{line:922,column:15}},302:{start:{line:910,column:16},end:{line:910,column:39}},303:{start:{line:911,column:27},end:{line:911,column:62}},304:{start:{line:912,column:16},end:{line:916,column:17}},305:{start:{line:917,column:16},end:{line:917,column:42}},306:{start:{line:919,column:16},end:{line:921,column:17}},307:{start:{line:920,column:18},end:{line:920,column:57}},308:{start:{line:923,column:14},end:{line:923,column:19}},309:{start:{line:925,column:14},end:{line:925,column:19}},310:{start:{line:927,column:10},end:{line:927,column:15}},311:{start:{line:929,column:10},end:{line:929,column:55}},312:{start:{line:930,column:10},end:{line:932,column:11}},313:{start:{line:931,column:12},end:{line:931,column:31}},314:{start:{line:933,column:10},end:{line:933,column:15}},315:{start:{line:935,column:10},end:{line:935,column:33}},316:{start:{line:936,column:10},end:{line:936,column:15}},317:{start:{line:938,column:10},end:{line:938,column:41}},318:{start:{line:939,column:10},end:{line:939,column:34}},319:{start:{line:940,column:10},end:{line:940,column:15}},320:{start:{line:943,column:10},end:{line:946,column:11}},321:{start:{line:944,column:12},end:{line:944,column:35}},322:{start:{line:945,column:12},end:{line:945,column:33}},323:{start:{line:950,column:10},end:{line:950,column:15}},324:{start:{line:954,column:6},end:{line:954,column:30}},325:{start:{line:955,column:6},end:{line:961,column:8}},326:{start:{line:964,column:6},end:{line:969,column:7}},327:{start:{line:965,column:8},end:{line:965,column:32}},328:{start:{line:966,column:8},end:{line:966,column:32}},329:{start:{line:967,column:8},end:{line:967,column:29}},330:{start:{line:968,column:8},end:{line:968,column:14}},331:{start:{line:970,column:6},end:{line:970,column:42}},332:{start:{line:971,column:6},end:{line:971,column:38}},333:{start:{line:972,column:6},end:{line:972,column:39}},334:{start:{line:973,column:6},end:{line:973,column:34}},335:{start:{line:974,column:6},end:{line:974,column:31}},336:{start:{line:975,column:6},end:{line:975,column:30}},337:{start:{line:976,column:6},end:{line:976,column:30}},338:{start:{line:977,column:6},end:{line:1111,column:7}},339:{start:{line:981,column:10},end:{line:981,column:33}},340:{start:{line:982,column:10},end:{line:982,column:40}},341:{start:{line:983,column:10},end:{line:983,column:35}},342:{start:{line:984,column:10},end:{line:984,column:42}},343:{start:{line:986,column:10},end:{line:991,column:11}},344:{start:{line:987,column:12},end:{line:987,column:54}},345:{start:{line:988,column:17},end:{line:991,column:11}},346:{start:{line:990,column:12},end:{line:990,column:43}},347:{start:{line:993,column:10},end:{line:995,column:11}},348:{start:{line:994,column:12},end:{line:994,column:36}},349:{start:{line:996,column:10},end:{line:1015,column:11}},350:{start:{line:997,column:12},end:{line:997,column:33}},351:{start:{line:998,column:12},end:{line:1014,column:13}},352:{start:{line:999,column:14},end:{line:1005,column:16}},353:{start:{line:1007,column:14},end:{line:1013,column:16}},354:{start:{line:1016,column:10},end:{line:1016,column:30}},355:{start:{line:1017,column:10},end:{line:1017,column:15}},356:{start:{line:1019,column:10},end:{line:1019,column:49}},357:{start:{line:1020,column:10},end:{line:1020,column:97}},358:{start:{line:1021,column:10},end:{line:1023,column:11}},359:{start:{line:1022,column:12},end:{line:1022,column:53}},360:{start:{line:1024,column:10},end:{line:1024,column:40}},361:{start:{line:1025,column:10},end:{line:1025,column:63}},362:{start:{line:1026,column:10},end:{line:1026,column:58}},363:{start:{line:1027,column:10},end:{line:1027,column:33}},364:{start:{line:1028,column:10},end:{line:1028,column:15}},365:{start:{line:1030,column:10},end:{line:1032,column:11}},366:{start:{line:1031,column:12},end:{line:1031,column:58}},367:{start:{line:1033,column:10},end:{line:1035,column:11}},368:{start:{line:1034,column:12},end:{line:1034,column:53}},369:{start:{line:1036,column:10},end:{line:1036,column:44}},370:{start:{line:1037,column:10},end:{line:1037,column:61}},371:{start:{line:1038,column:10},end:{line:1038,column:58}},372:{start:{line:1039,column:10},end:{line:1039,column:33}},373:{start:{line:1040,column:10},end:{line:1040,column:15}},374:{start:{line:1042,column:10},end:{line:1044,column:11}},375:{start:{line:1043,column:12},end:{line:1043,column:58}},376:{start:{line:1045,column:10},end:{line:1047,column:11}},377:{start:{line:1046,column:12},end:{line:1046,column:53}},378:{start:{line:1048,column:10},end:{line:1048,column:44}},379:{start:{line:1049,column:10},end:{line:1051,column:12}},380:{start:{line:1050,column:12},end:{line:1050,column:59}},381:{start:{line:1052,column:10},end:{line:1052,column:34}},382:{start:{line:1053,column:10},end:{line:1053,column:38}},383:{start:{line:1054,column:10},end:{line:1054,column:58}},384:{start:{line:1055,column:10},end:{line:1055,column:33}},385:{start:{line:1056,column:10},end:{line:1056,column:15}},386:{start:{line:1059,column:10},end:{line:1061,column:11}},387:{start:{line:1060,column:12},end:{line:1060,column:58}},388:{start:{line:1062,column:10},end:{line:1064,column:11}},389:{start:{line:1063,column:12},end:{line:1063,column:53}},390:{start:{line:1065,column:10},end:{line:1065,column:44}},391:{start:{line:1066,column:10},end:{line:1068,column:12}},392:{start:{line:1067,column:12},end:{line:1067,column:59}},393:{start:{line:1069,column:10},end:{line:1071,column:11}},394:{start:{line:1070,column:12},end:{line:1070,column:43}},395:{start:{line:1072,column:10},end:{line:1072,column:58}},396:{start:{line:1073,column:10},end:{line:1073,column:33}},397:{start:{line:1074,column:10},end:{line:1074,column:15}},398:{start:{line:1076,column:10},end:{line:1076,column:47}},399:{start:{line:1077,column:10},end:{line:1077,column:43}},400:{start:{line:1078,column:10},end:{line:1078,column:38}},401:{start:{line:1079,column:10},end:{line:1079,column:15}},402:{start:{line:1081,column:10},end:{line:1081,column:50}},403:{start:{line:1082,column:10},end:{line:1091,column:11}},404:{start:{line:1083,column:12},end:{line:1083,column:43}},405:{start:{line:1084,column:12},end:{line:1090,column:14}},406:{start:{line:1092,column:10},end:{line:1092,column:40}},407:{start:{line:1093,column:10},end:{line:1093,column:15}},408:{start:{line:1096,column:10},end:{line:1096,column:40}},409:{start:{line:1097,column:10},end:{line:1097,column:42}},410:{start:{line:1098,column:10},end:{line:1100,column:11}},411:{start:{line:1099,column:12},end:{line:1099,column:49}},412:{start:{line:1101,column:10},end:{line:1103,column:11}},413:{start:{line:1102,column:12},end:{line:1102,column:37}},414:{start:{line:1104,column:10},end:{line:1104,column:31}},415:{start:{line:1105,column:10},end:{line:1105,column:15}},416:{start:{line:1110,column:10},end:{line:1110,column:15}},417:{start:{line:1114,column:6},end:{line:1114,column:28}},418:{start:{line:1117,column:22},end:{line:1117,column:30}},419:{start:{line:1118,column:6},end:{line:1135,column:7}},420:{start:{line:1119,column:8},end:{line:1119,column:22}},421:{start:{line:1120,column:8},end:{line:1134,column:10}},422:{start:{line:1121,column:10},end:{line:1121,column:35}},423:{start:{line:1123,column:45},end:{line:1127,column:11}},424:{start:{line:1130,column:27},end:{line:1133,column:12}},425:{start:{line:1136,column:6},end:{line:1142,column:8}},426:{start:{line:1145,column:6},end:{line:1145,column:30}},427:{start:{line:1146,column:6},end:{line:1146,column:40}},428:{start:{line:1147,column:6},end:{line:1147,column:27}},429:{start:{line:1151,column:6},end:{line:1151,column:34}},430:{start:{line:1152,column:6},end:{line:1152,column:33}},431:{start:{line:1153,column:6},end:{line:1153,column:21}},432:{start:{line:1154,column:6},end:{line:1154,column:38}},433:{start:{line:1155,column:6},end:{line:1155,column:28}},434:{start:{line:1156,column:6},end:{line:1156,column:30}},435:{start:{line:1157,column:6},end:{line:1157,column:36}},436:{start:{line:1158,column:6},end:{line:1158,column:30}},437:{start:{line:1161,column:6},end:{line:1161,column:26}},438:{start:{line:1164,column:6},end:{line:1186,column:10}},439:{start:{line:1166,column:23},end:{line:1169,column:11}},440:{start:{line:1170,column:10},end:{line:1172,column:11}},441:{start:{line:1171,column:12},end:{line:1171,column:61}},442:{start:{line:1173,column:10},end:{line:1175,column:11}},443:{start:{line:1174,column:12},end:{line:1174,column:47}},444:{start:{line:1176,column:10},end:{line:1178,column:11}},445:{start:{line:1177,column:12},end:{line:1177,column:51}},446:{start:{line:1179,column:25},end:{line:1179,column:45}},447:{start:{line:1180,column:30},end:{line:1180,column:55}},448:{start:{line:1181,column:10},end:{line:1181,column:59}},449:{start:{line:1184,column:10},end:{line:1184,column:78}},450:{start:{line:1185,column:10},end:{line:1185,column:22}},451:{start:{line:1190,column:6},end:{line:1190,column:21}},452:{start:{line:1191,column:6},end:{line:1194,column:7}},453:{start:{line:1192,column:8},end:{line:1192,column:25}},454:{start:{line:1193,column:8},end:{line:1193,column:30}},455:{start:{line:1196,column:6},end:{line:1196,column:45}},456:{start:{line:1197,column:6},end:{line:1197,column:33}},457:{start:{line:1198,column:6},end:{line:1198,column:49}},458:{start:{line:1199,column:6},end:{line:1199,column:46}},459:{start:{line:1200,column:6},end:{line:1200,column:39}},460:{start:{line:1201,column:6},end:{line:1201,column:28}},461:{start:{line:1202,column:6},end:{line:1202,column:30}},462:{start:{line:1204,column:6},end:{line:1210,column:7}},463:{start:{line:1205,column:8},end:{line:1205,column:31}},464:{start:{line:1206,column:8},end:{line:1206,column:35}},465:{start:{line:1207,column:8},end:{line:1207,column:37}},466:{start:{line:1209,column:8},end:{line:1209,column:32}},467:{start:{line:1211,column:6},end:{line:1214,column:7}},468:{start:{line:1212,column:8},end:{line:1212,column:36}},469:{start:{line:1213,column:8},end:{line:1213,column:34}},470:{start:{line:1216,column:6},end:{line:1216,column:54}},471:{start:{line:1221,column:26},end:{line:1221,column:50}},472:{start:{line:1222,column:6},end:{line:1298,column:7}},473:{start:{line:1223,column:8},end:{line:1247,column:9}},474:{start:{line:1225,column:10},end:{line:1225,column:23}},475:{start:{line:1227,column:10},end:{line:1230,column:11}},476:{start:{line:1228,column:12},end:{line:1229,column:72}},477:{start:{line:1231,column:10},end:{line:1231,column:30}},478:{start:{line:1232,column:10},end:{line:1246,column:14}},479:{start:{line:1239,column:14},end:{line:1239,column:36}},480:{start:{line:1240,column:14},end:{line:1242,column:22}},481:{start:{line:1241,column:16},end:{line:1241,column:37}},482:{start:{line:1245,column:14},end:{line:1245,column:35}},483:{start:{line:1249,column:8},end:{line:1297,column:9}},484:{start:{line:1251,column:10},end:{line:1251,column:30}},485:{start:{line:1252,column:10},end:{line:1296,column:14}},486:{start:{line:1259,column:14},end:{line:1282,column:15}},487:{start:{line:1260,column:16},end:{line:1268,column:17}},488:{start:{line:1261,column:18},end:{line:1261,column:47}},489:{start:{line:1262,column:18},end:{line:1262,column:41}},490:{start:{line:1263,column:18},end:{line:1263,column:66}},491:{start:{line:1265,column:18},end:{line:1265,column:48}},492:{start:{line:1266,column:18},end:{line:1266,column:42}},493:{start:{line:1267,column:18},end:{line:1267,column:36}},494:{start:{line:1269,column:16},end:{line:1272,column:17}},495:{start:{line:1270,column:18},end:{line:1270,column:55}},496:{start:{line:1271,column:18},end:{line:1271,column:44}},497:{start:{line:1273,column:16},end:{line:1273,column:38}},498:{start:{line:1274,column:16},end:{line:1276,column:24}},499:{start:{line:1275,column:18},end:{line:1275,column:39}},500:{start:{line:1278,column:16},end:{line:1278,column:37}},501:{start:{line:1279,column:16},end:{line:1279,column:40}},502:{start:{line:1280,column:16},end:{line:1280,column:107}},503:{start:{line:1281,column:16},end:{line:1281,column:37}},504:{start:{line:1285,column:14},end:{line:1285,column:35}},505:{start:{line:1288,column:14},end:{line:1294,column:15}},506:{start:{line:1289,column:16},end:{line:1289,column:40}},507:{start:{line:1290,column:16},end:{line:1290,column:53}},508:{start:{line:1292,column:16},end:{line:1292,column:40}},509:{start:{line:1293,column:16},end:{line:1293,column:107}},510:{start:{line:1295,column:14},end:{line:1295,column:35}},511:{start:{line:1299,column:6},end:{line:1299,column:21}},512:{start:{line:1302,column:6},end:{line:1302,column:28}},513:{start:{line:1305,column:6},end:{line:1305,column:30}},514:{start:{line:1306,column:6},end:{line:1309,column:7}},515:{start:{line:1307,column:8},end:{line:1307,column:67}},516:{start:{line:1308,column:8},end:{line:1308,column:32}},517:{start:{line:1310,column:6},end:{line:1310,column:27}},518:{start:{line:1314,column:6},end:{line:1335,column:10}},519:{start:{line:1320,column:10},end:{line:1322,column:12}},520:{start:{line:1325,column:10},end:{line:1325,column:24}},521:{start:{line:1328,column:10},end:{line:1334,column:11}},522:{start:{line:1329,column:32},end:{line:1332,column:13}},523:{start:{line:1333,column:12},end:{line:1333,column:44}},524:{start:{line:1338,column:19},end:{line:1340,column:8}},525:{start:{line:1342,column:19},end:{line:1342,column:46}},526:{start:{line:1343,column:6},end:{line:1343,column:43}},527:{start:{line:1344,column:6},end:{line:1344,column:50}},528:{start:{line:1345,column:6},end:{line:1345,column:18}},529:{start:{line:1349,column:6},end:{line:1359,column:8}},530:{start:{line:1356,column:8},end:{line:1356,column:52}},531:{start:{line:1357,column:8},end:{line:1357,column:69}},532:{start:{line:1358,column:8},end:{line:1358,column:36}},533:{start:{line:1362,column:6},end:{line:1372,column:8}},534:{start:{line:1369,column:8},end:{line:1369,column:52}},535:{start:{line:1370,column:8},end:{line:1370,column:69}},536:{start:{line:1371,column:8},end:{line:1371,column:36}},537:{start:{line:1375,column:6},end:{line:1375,column:71}},538:{start:{line:1378,column:6},end:{line:1378,column:38}},539:{start:{line:1381,column:6},end:{line:1381,column:48}},540:{start:{line:1385,column:6},end:{line:1412,column:7}},541:{start:{line:1386,column:8},end:{line:1386,column:23}},542:{start:{line:1387,column:8},end:{line:1387,column:57}},543:{start:{line:1388,column:13},end:{line:1412,column:7}},544:{start:{line:1389,column:8},end:{line:1389,column:42}},545:{start:{line:1390,column:8},end:{line:1390,column:57}},546:{start:{line:1392,column:8},end:{line:1396,column:10}},547:{start:{line:1397,column:8},end:{line:1397,column:23}},548:{start:{line:1398,column:13},end:{line:1412,column:7}},549:{start:{line:1399,column:8},end:{line:1399,column:35}},550:{start:{line:1400,column:8},end:{line:1402,column:9}},551:{start:{line:1401,column:10},end:{line:1401,column:63}},552:{start:{line:1403,column:8},end:{line:1403,column:62}},553:{start:{line:1405,column:8},end:{line:1405,column:30}},554:{start:{line:1406,column:13},end:{line:1412,column:7}},555:{start:{line:1407,column:8},end:{line:1407,column:35}},556:{start:{line:1408,column:8},end:{line:1410,column:9}},557:{start:{line:1409,column:10},end:{line:1409,column:36}},558:{start:{line:1411,column:8},end:{line:1411,column:62}},559:{start:{line:1415,column:25},end:{line:1415,column:57}},560:{start:{line:1416,column:6},end:{line:1418,column:70}},561:{start:{line:1417,column:25},end:{line:1417,column:60}},562:{start:{line:1418,column:29},end:{line:1418,column:69}},563:{start:{line:1421,column:6},end:{line:1432,column:10}},564:{start:{line:1430,column:10},end:{line:1430,column:30}},565:{start:{line:1431,column:10},end:{line:1431,column:32}},566:{start:{line:1435,column:6},end:{line:1435,column:66}},567:{start:{line:1438,column:6},end:{line:1440,column:7}},568:{start:{line:1439,column:8},end:{line:1439,column:63}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:60,column:2},end:{line:60,column:3}},loc:{start:{line:60,column:9},end:{line:168,column:3}},line:60},1:{name:"(anonymous_1)",decl:{start:{line:121,column:18},end:{line:121,column:19}},loc:{start:{line:121,column:24},end:{line:121,column:26}},line:121},2:{name:"(anonymous_2)",decl:{start:{line:129,column:18},end:{line:129,column:19}},loc:{start:{line:129,column:24},end:{line:129,column:26}},line:129},3:{name:"(anonymous_3)",decl:{start:{line:139,column:18},end:{line:139,column:19}},loc:{start:{line:139,column:24},end:{line:139,column:26}},line:139},4:{name:"(anonymous_4)",decl:{start:{line:149,column:18},end:{line:149,column:19}},loc:{start:{line:149,column:24},end:{line:149,column:26}},line:149},5:{name:"(anonymous_5)",decl:{start:{line:170,column:14},end:{line:170,column:15}},loc:{start:{line:170,column:26},end:{line:174,column:5}},line:170},6:{name:"(anonymous_6)",decl:{start:{line:175,column:21},end:{line:175,column:22}},loc:{start:{line:175,column:33},end:{line:179,column:5}},line:175},7:{name:"(anonymous_7)",decl:{start:{line:180,column:26},end:{line:180,column:27}},loc:{start:{line:180,column:38},end:{line:182,column:5}},line:180},8:{name:"(anonymous_8)",decl:{start:{line:183,column:14},end:{line:183,column:15}},loc:{start:{line:183,column:26},end:{line:185,column:5}},line:183},9:{name:"(anonymous_9)",decl:{start:{line:186,column:18},end:{line:186,column:19}},loc:{start:{line:186,column:30},end:{line:189,column:5}},line:186},10:{name:"(anonymous_10)",decl:{start:{line:192,column:21},end:{line:192,column:22}},loc:{start:{line:192,column:33},end:{line:194,column:5}},line:192},11:{name:"(anonymous_11)",decl:{start:{line:195,column:11},end:{line:195,column:12}},loc:{start:{line:195,column:23},end:{line:362,column:5}},line:195},12:{name:"(anonymous_12)",decl:{start:{line:203,column:23},end:{line:203,column:24}},loc:{start:{line:203,column:29},end:{line:205,column:15}},line:203},13:{name:"(anonymous_13)",decl:{start:{line:210,column:23},end:{line:210,column:24}},loc:{start:{line:210,column:29},end:{line:212,column:15}},line:210},14:{name:"(anonymous_14)",decl:{start:{line:220,column:23},end:{line:220,column:24}},loc:{start:{line:220,column:29},end:{line:222,column:15}},line:220},15:{name:"(anonymous_15)",decl:{start:{line:227,column:23},end:{line:227,column:24}},loc:{start:{line:227,column:29},end:{line:229,column:15}},line:227},16:{name:"(anonymous_16)",decl:{start:{line:237,column:23},end:{line:237,column:24}},loc:{start:{line:237,column:29},end:{line:239,column:15}},line:237},17:{name:"(anonymous_17)",decl:{start:{line:247,column:23},end:{line:247,column:24}},loc:{start:{line:247,column:29},end:{line:249,column:15}},line:247},18:{name:"(anonymous_18)",decl:{start:{line:259,column:23},end:{line:259,column:24}},loc:{start:{line:259,column:29},end:{line:261,column:15}},line:259},19:{name:"(anonymous_19)",decl:{start:{line:266,column:23},end:{line:266,column:24}},loc:{start:{line:266,column:29},end:{line:268,column:15}},line:266},20:{name:"(anonymous_20)",decl:{start:{line:278,column:23},end:{line:278,column:24}},loc:{start:{line:278,column:29},end:{line:280,column:15}},line:278},21:{name:"(anonymous_21)",decl:{start:{line:288,column:23},end:{line:288,column:24}},loc:{start:{line:288,column:29},end:{line:290,column:15}},line:288},22:{name:"(anonymous_22)",decl:{start:{line:295,column:23},end:{line:295,column:24}},loc:{start:{line:295,column:29},end:{line:298,column:15}},line:295},23:{name:"(anonymous_23)",decl:{start:{line:296,column:48},end:{line:296,column:49}},loc:{start:{line:296,column:54},end:{line:296,column:56}},line:296},24:{name:"(anonymous_24)",decl:{start:{line:306,column:23},end:{line:306,column:24}},loc:{start:{line:306,column:29},end:{line:308,column:15}},line:306},25:{name:"(anonymous_25)",decl:{start:{line:313,column:23},end:{line:313,column:24}},loc:{start:{line:313,column:29},end:{line:315,column:15}},line:313},26:{name:"(anonymous_26)",decl:{start:{line:320,column:23},end:{line:320,column:24}},loc:{start:{line:320,column:29},end:{line:322,column:15}},line:320},27:{name:"(anonymous_27)",decl:{start:{line:328,column:23},end:{line:328,column:24}},loc:{start:{line:328,column:29},end:{line:330,column:15}},line:328},28:{name:"(anonymous_28)",decl:{start:{line:338,column:23},end:{line:338,column:24}},loc:{start:{line:338,column:29},end:{line:340,column:15}},line:338},29:{name:"(anonymous_29)",decl:{start:{line:345,column:23},end:{line:345,column:24}},loc:{start:{line:345,column:29},end:{line:347,column:15}},line:345},30:{name:"(anonymous_30)",decl:{start:{line:355,column:23},end:{line:355,column:24}},loc:{start:{line:355,column:29},end:{line:357,column:15}},line:355},31:{name:"(anonymous_31)",decl:{start:{line:363,column:31},end:{line:363,column:32}},loc:{start:{line:363,column:43},end:{line:378,column:5}},line:363},32:{name:"(anonymous_32)",decl:{start:{line:381,column:14},end:{line:381,column:15}},loc:{start:{line:381,column:29},end:{line:387,column:5}},line:381},33:{name:"(anonymous_33)",decl:{start:{line:389,column:11},end:{line:389,column:12}},loc:{start:{line:389,column:23},end:{line:393,column:3}},line:389},34:{name:"(anonymous_34)",decl:{start:{line:394,column:11},end:{line:394,column:12}},loc:{start:{line:394,column:29},end:{line:431,column:3}},line:394},35:{name:"(anonymous_35)",decl:{start:{line:414,column:37},end:{line:414,column:38}},loc:{start:{line:414,column:58},end:{line:417,column:5}},line:414},36:{name:"(anonymous_36)",decl:{start:{line:422,column:40},end:{line:422,column:41}},loc:{start:{line:422,column:46},end:{line:430,column:5}},line:422},37:{name:"(anonymous_37)",decl:{start:{line:432,column:2},end:{line:432,column:3}},loc:{start:{line:432,column:18},end:{line:435,column:3}},line:432},38:{name:"(anonymous_38)",decl:{start:{line:436,column:2},end:{line:436,column:3}},loc:{start:{line:436,column:14},end:{line:448,column:3}},line:436},39:{name:"(anonymous_39)",decl:{start:{line:449,column:21},end:{line:449,column:22}},loc:{start:{line:449,column:47},end:{line:455,column:3}},line:449},40:{name:"(anonymous_40)",decl:{start:{line:457,column:4},end:{line:457,column:5}},loc:{start:{line:457,column:22},end:{line:499,column:5}},line:457},41:{name:"(anonymous_41)",decl:{start:{line:464,column:16},end:{line:464,column:17}},loc:{start:{line:464,column:23},end:{line:464,column:42}},line:464},42:{name:"(anonymous_42)",decl:{start:{line:465,column:16},end:{line:465,column:17}},loc:{start:{line:465,column:23},end:{line:465,column:35}},line:465},43:{name:"(anonymous_43)",decl:{start:{line:467,column:33},end:{line:467,column:34}},loc:{start:{line:467,column:45},end:{line:476,column:7}},line:467},44:{name:"(anonymous_44)",decl:{start:{line:486,column:17},end:{line:486,column:18}},loc:{start:{line:486,column:29},end:{line:492,column:7}},line:486},45:{name:"(anonymous_45)",decl:{start:{line:495,column:8},end:{line:495,column:9}},loc:{start:{line:495,column:20},end:{line:497,column:7}},line:495},46:{name:"(anonymous_46)",decl:{start:{line:500,column:4},end:{line:500,column:5}},loc:{start:{line:500,column:30},end:{line:517,column:5}},line:500},47:{name:"(anonymous_47)",decl:{start:{line:518,column:26},end:{line:518,column:27}},loc:{start:{line:518,column:40},end:{line:538,column:5}},line:518},48:{name:"(anonymous_48)",decl:{start:{line:519,column:56},end:{line:519,column:57}},loc:{start:{line:519,column:70},end:{line:537,column:7}},line:519},49:{name:"(anonymous_49)",decl:{start:{line:521,column:10},end:{line:521,column:11}},loc:{start:{line:521,column:17},end:{line:521,column:38}},line:521},50:{name:"(anonymous_50)",decl:{start:{line:539,column:19},end:{line:539,column:20}},loc:{start:{line:539,column:31},end:{line:553,column:5}},line:539},51:{name:"(anonymous_51)",decl:{start:{line:540,column:59},end:{line:540,column:60}},loc:{start:{line:540,column:73},end:{line:552,column:7}},line:540},52:{name:"(anonymous_52)",decl:{start:{line:554,column:30},end:{line:554,column:31}},loc:{start:{line:554,column:48},end:{line:558,column:5}},line:554},53:{name:"(anonymous_53)",decl:{start:{line:559,column:19},end:{line:559,column:20}},loc:{start:{line:559,column:31},end:{line:568,column:5}},line:559},54:{name:"(anonymous_54)",decl:{start:{line:565,column:16},end:{line:565,column:17}},loc:{start:{line:565,column:25},end:{line:565,column:37}},line:565},55:{name:"(anonymous_55)",decl:{start:{line:566,column:13},end:{line:566,column:14}},loc:{start:{line:566,column:22},end:{line:566,column:33}},line:566},56:{name:"(anonymous_56)",decl:{start:{line:569,column:22},end:{line:569,column:23}},loc:{start:{line:569,column:34},end:{line:576,column:5}},line:569},57:{name:"(anonymous_57)",decl:{start:{line:573,column:16},end:{line:573,column:17}},loc:{start:{line:573,column:25},end:{line:573,column:71}},line:573},58:{name:"(anonymous_58)",decl:{start:{line:574,column:13},end:{line:574,column:14}},loc:{start:{line:574,column:22},end:{line:574,column:43}},line:574},59:{name:"(anonymous_59)",decl:{start:{line:577,column:17},end:{line:577,column:18}},loc:{start:{line:577,column:51},end:{line:609,column:5}},line:577},60:{name:"(anonymous_60)",decl:{start:{line:595,column:16},end:{line:595,column:17}},loc:{start:{line:595,column:30},end:{line:604,column:11}},line:595},61:{name:"(anonymous_61)",decl:{start:{line:605,column:16},end:{line:605,column:17}},loc:{start:{line:605,column:30},end:{line:607,column:11}},line:605},62:{name:"(anonymous_62)",decl:{start:{line:610,column:22},end:{line:610,column:23}},loc:{start:{line:610,column:34},end:{line:612,column:5}},line:610},63:{name:"(anonymous_63)",decl:{start:{line:613,column:22},end:{line:613,column:23}},loc:{start:{line:613,column:40},end:{line:625,column:5}},line:613},64:{name:"(anonymous_64)",decl:{start:{line:626,column:23},end:{line:626,column:24}},loc:{start:{line:626,column:50},end:{line:655,column:5}},line:626},65:{name:"(anonymous_65)",decl:{start:{line:631,column:8},end:{line:631,column:9}},loc:{start:{line:632,column:10},end:{line:633,column:32}},line:632},66:{name:"(anonymous_66)",decl:{start:{line:645,column:12},end:{line:645,column:13}},loc:{start:{line:645,column:21},end:{line:645,column:43}},line:645},67:{name:"(anonymous_67)",decl:{start:{line:649,column:27},end:{line:649,column:28}},loc:{start:{line:649,column:36},end:{line:654,column:7}},line:649},68:{name:"(anonymous_68)",decl:{start:{line:656,column:23},end:{line:656,column:24}},loc:{start:{line:656,column:64},end:{line:661,column:5}},line:656},69:{name:"(anonymous_69)",decl:{start:{line:659,column:13},end:{line:659,column:14}},loc:{start:{line:659,column:34},end:{line:659,column:51}},line:659},70:{name:"(anonymous_70)",decl:{start:{line:662,column:24},end:{line:662,column:25}},loc:{start:{line:662,column:44},end:{line:667,column:5}},line:662},71:{name:"(anonymous_71)",decl:{start:{line:664,column:42},end:{line:664,column:43}},loc:{start:{line:664,column:58},end:{line:666,column:7}},line:664},72:{name:"(anonymous_72)",decl:{start:{line:668,column:26},end:{line:668,column:27}},loc:{start:{line:668,column:38},end:{line:680,column:5}},line:668},73:{name:"(anonymous_73)",decl:{start:{line:674,column:14},end:{line:674,column:15}},loc:{start:{line:674,column:26},end:{line:676,column:9}},line:674},74:{name:"(anonymous_74)",decl:{start:{line:677,column:14},end:{line:677,column:15}},loc:{start:{line:677,column:28},end:{line:679,column:9}},line:677},75:{name:"(anonymous_75)",decl:{start:{line:681,column:4},end:{line:681,column:5}},loc:{start:{line:681,column:29},end:{line:687,column:5}},line:681},76:{name:"(anonymous_76)",decl:{start:{line:688,column:4},end:{line:688,column:5}},loc:{start:{line:688,column:19},end:{line:705,column:5}},line:688},77:{name:"(anonymous_77)",decl:{start:{line:706,column:4},end:{line:706,column:5}},loc:{start:{line:706,column:20},end:{line:716,column:5}},line:706},78:{name:"(anonymous_78)",decl:{start:{line:717,column:20},end:{line:717,column:21}},loc:{start:{line:717,column:32},end:{line:737,column:5}},line:717},79:{name:"(anonymous_79)",decl:{start:{line:720,column:14},end:{line:720,column:15}},loc:{start:{line:720,column:41},end:{line:736,column:9}},line:720},80:{name:"(anonymous_80)",decl:{start:{line:724,column:19},end:{line:724,column:20}},loc:{start:{line:724,column:32},end:{line:724,column:73}},line:724},81:{name:"(anonymous_81)",decl:{start:{line:738,column:4},end:{line:738,column:5}},loc:{start:{line:738,column:20},end:{line:762,column:5}},line:738},82:{name:"(anonymous_82)",decl:{start:{line:753,column:22},end:{line:753,column:23}},loc:{start:{line:753,column:32},end:{line:753,column:51}},line:753},83:{name:"(anonymous_83)",decl:{start:{line:759,column:14},end:{line:759,column:15}},loc:{start:{line:759,column:32},end:{line:761,column:9}},line:759},84:{name:"(anonymous_84)",decl:{start:{line:763,column:4},end:{line:763,column:5}},loc:{start:{line:763,column:21},end:{line:777,column:5}},line:763},85:{name:"(anonymous_85)",decl:{start:{line:778,column:24},end:{line:778,column:25}},loc:{start:{line:778,column:41},end:{line:780,column:5}},line:778},86:{name:"(anonymous_86)",decl:{start:{line:781,column:18},end:{line:781,column:19}},loc:{start:{line:781,column:30},end:{line:783,column:5}},line:781},87:{name:"(anonymous_87)",decl:{start:{line:784,column:4},end:{line:784,column:5}},loc:{start:{line:784,column:37},end:{line:804,column:5}},line:784},88:{name:"(anonymous_88)",decl:{start:{line:801,column:35},end:{line:801,column:36}},loc:{start:{line:801,column:49},end:{line:803,column:7}},line:801},89:{name:"(anonymous_89)",decl:{start:{line:805,column:4},end:{line:805,column:5}},loc:{start:{line:805,column:34},end:{line:807,column:5}},line:805},90:{name:"(anonymous_90)",decl:{start:{line:808,column:4},end:{line:808,column:5}},loc:{start:{line:808,column:19},end:{line:815,column:5}},line:808},91:{name:"(anonymous_91)",decl:{start:{line:816,column:4},end:{line:816,column:5}},loc:{start:{line:816,column:11},end:{line:826,column:5}},line:816},92:{name:"(anonymous_92)",decl:{start:{line:827,column:4},end:{line:827,column:5}},loc:{start:{line:827,column:11},end:{line:829,column:5}},line:827},93:{name:"(anonymous_93)",decl:{start:{line:830,column:4},end:{line:830,column:5}},loc:{start:{line:830,column:19},end:{line:952,column:5}},line:830},94:{name:"(anonymous_94)",decl:{start:{line:849,column:22},end:{line:849,column:23}},loc:{start:{line:849,column:36},end:{line:859,column:17}},line:849},95:{name:"(anonymous_95)",decl:{start:{line:860,column:23},end:{line:860,column:24}},loc:{start:{line:860,column:32},end:{line:863,column:17}},line:860},96:{name:"(anonymous_96)",decl:{start:{line:907,column:16},end:{line:907,column:17}},loc:{start:{line:907,column:25},end:{line:907,column:69}},line:907},97:{name:"(anonymous_97)",decl:{start:{line:953,column:4},end:{line:953,column:5}},loc:{start:{line:953,column:32},end:{line:962,column:5}},line:953},98:{name:"(anonymous_98)",decl:{start:{line:963,column:4},end:{line:963,column:5}},loc:{start:{line:963,column:23},end:{line:1112,column:5}},line:963},99:{name:"(anonymous_99)",decl:{start:{line:996,column:30},end:{line:996,column:31}},loc:{start:{line:996,column:41},end:{line:1015,column:11}},line:996},100:{name:"(anonymous_100)",decl:{start:{line:1049,column:37},end:{line:1049,column:38}},loc:{start:{line:1049,column:44},end:{line:1051,column:11}},line:1049},101:{name:"(anonymous_101)",decl:{start:{line:1066,column:37},end:{line:1066,column:38}},loc:{start:{line:1066,column:44},end:{line:1068,column:11}},line:1066},102:{name:"(anonymous_102)",decl:{start:{line:1082,column:40},end:{line:1082,column:41}},loc:{start:{line:1082,column:51},end:{line:1091,column:11}},line:1082},103:{name:"(anonymous_103)",decl:{start:{line:1113,column:4},end:{line:1113,column:5}},loc:{start:{line:1113,column:36},end:{line:1143,column:5}},line:1113},104:{name:"(anonymous_104)",decl:{start:{line:1120,column:28},end:{line:1120,column:29}},loc:{start:{line:1120,column:44},end:{line:1134,column:9}},line:1120},105:{name:"(anonymous_105)",decl:{start:{line:1144,column:4},end:{line:1144,column:5}},loc:{start:{line:1144,column:20},end:{line:1148,column:5}},line:1144},106:{name:"(anonymous_106)",decl:{start:{line:1150,column:4},end:{line:1150,column:5}},loc:{start:{line:1150,column:14},end:{line:1159,column:5}},line:1150},107:{name:"(anonymous_107)",decl:{start:{line:1160,column:4},end:{line:1160,column:5}},loc:{start:{line:1160,column:15},end:{line:1162,column:5}},line:1160},108:{name:"(anonymous_108)",decl:{start:{line:1163,column:4},end:{line:1163,column:5}},loc:{start:{line:1163,column:17},end:{line:1187,column:5}},line:1163},109:{name:"(anonymous_109)",decl:{start:{line:1165,column:14},end:{line:1165,column:15}},loc:{start:{line:1165,column:28},end:{line:1182,column:9}},line:1165},110:{name:"(anonymous_110)",decl:{start:{line:1183,column:15},end:{line:1183,column:16}},loc:{start:{line:1183,column:26},end:{line:1186,column:9}},line:1183},111:{name:"(anonymous_111)",decl:{start:{line:1189,column:4},end:{line:1189,column:5}},loc:{start:{line:1189,column:58},end:{line:1217,column:5}},line:1189},112:{name:"(anonymous_112)",decl:{start:{line:1220,column:4},end:{line:1220,column:5}},loc:{start:{line:1220,column:28},end:{line:1300,column:5}},line:1220},113:{name:"(anonymous_113)",decl:{start:{line:1238,column:18},end:{line:1238,column:19}},loc:{start:{line:1238,column:32},end:{line:1243,column:13}},line:1238},114:{name:"(anonymous_114)",decl:{start:{line:1240,column:25},end:{line:1240,column:26}},loc:{start:{line:1240,column:31},end:{line:1242,column:15}},line:1240},115:{name:"(anonymous_115)",decl:{start:{line:1244,column:19},end:{line:1244,column:20}},loc:{start:{line:1244,column:30},end:{line:1246,column:13}},line:1244},116:{name:"(anonymous_116)",decl:{start:{line:1258,column:18},end:{line:1258,column:19}},loc:{start:{line:1258,column:32},end:{line:1283,column:13}},line:1258},117:{name:"(anonymous_117)",decl:{start:{line:1274,column:27},end:{line:1274,column:28}},loc:{start:{line:1274,column:33},end:{line:1276,column:17}},line:1274},118:{name:"(anonymous_118)",decl:{start:{line:1284,column:19},end:{line:1284,column:20}},loc:{start:{line:1284,column:37},end:{line:1296,column:13}},line:1284},119:{name:"(anonymous_119)",decl:{start:{line:1301,column:4},end:{line:1301,column:5}},loc:{start:{line:1301,column:13},end:{line:1303,column:5}},line:1301},120:{name:"(anonymous_120)",decl:{start:{line:1304,column:4},end:{line:1304,column:5}},loc:{start:{line:1304,column:29},end:{line:1311,column:5}},line:1304},121:{name:"(anonymous_121)",decl:{start:{line:1312,column:4},end:{line:1312,column:5}},loc:{start:{line:1312,column:13},end:{line:1336,column:5}},line:1312},122:{name:"(anonymous_122)",decl:{start:{line:1319,column:14},end:{line:1319,column:15}},loc:{start:{line:1319,column:26},end:{line:1323,column:9}},line:1319},123:{name:"(anonymous_123)",decl:{start:{line:1324,column:14},end:{line:1324,column:15}},loc:{start:{line:1324,column:28},end:{line:1326,column:9}},line:1324},124:{name:"(anonymous_124)",decl:{start:{line:1327,column:15},end:{line:1327,column:16}},loc:{start:{line:1327,column:26},end:{line:1335,column:9}},line:1327},125:{name:"(anonymous_125)",decl:{start:{line:1337,column:4},end:{line:1337,column:5}},loc:{start:{line:1337,column:15},end:{line:1346,column:5}},line:1337},126:{name:"(anonymous_126)",decl:{start:{line:1348,column:4},end:{line:1348,column:5}},loc:{start:{line:1348,column:22},end:{line:1360,column:5}},line:1348},127:{name:"(anonymous_127)",decl:{start:{line:1355,column:14},end:{line:1355,column:15}},loc:{start:{line:1355,column:28},end:{line:1359,column:7}},line:1355},128:{name:"(anonymous_128)",decl:{start:{line:1361,column:4},end:{line:1361,column:5}},loc:{start:{line:1361,column:23},end:{line:1373,column:5}},line:1361},129:{name:"(anonymous_129)",decl:{start:{line:1368,column:14},end:{line:1368,column:15}},loc:{start:{line:1368,column:28},end:{line:1372,column:7}},line:1368},130:{name:"(anonymous_130)",decl:{start:{line:1374,column:4},end:{line:1374,column:5}},loc:{start:{line:1374,column:20},end:{line:1376,column:5}},line:1374},131:{name:"(anonymous_131)",decl:{start:{line:1377,column:4},end:{line:1377,column:5}},loc:{start:{line:1377,column:18},end:{line:1379,column:5}},line:1377},132:{name:"(anonymous_132)",decl:{start:{line:1380,column:4},end:{line:1380,column:5}},loc:{start:{line:1380,column:23},end:{line:1382,column:5}},line:1380},133:{name:"(anonymous_133)",decl:{start:{line:1384,column:4},end:{line:1384,column:5}},loc:{start:{line:1384,column:24},end:{line:1413,column:5}},line:1384},134:{name:"(anonymous_134)",decl:{start:{line:1414,column:22},end:{line:1414,column:23}},loc:{start:{line:1414,column:34},end:{line:1419,column:5}},line:1414},135:{name:"(anonymous_135)",decl:{start:{line:1417,column:16},end:{line:1417,column:17}},loc:{start:{line:1417,column:25},end:{line:1417,column:60}},line:1417},136:{name:"(anonymous_136)",decl:{start:{line:1418,column:17},end:{line:1418,column:18}},loc:{start:{line:1418,column:29},end:{line:1418,column:69}},line:1418},137:{name:"(anonymous_137)",decl:{start:{line:1420,column:24},end:{line:1420,column:25}},loc:{start:{line:1420,column:36},end:{line:1433,column:5}},line:1420},138:{name:"(anonymous_138)",decl:{start:{line:1429,column:14},end:{line:1429,column:15}},loc:{start:{line:1429,column:20},end:{line:1432,column:9}},line:1429},139:{name:"(anonymous_139)",decl:{start:{line:1434,column:14},end:{line:1434,column:15}},loc:{start:{line:1434,column:26},end:{line:1436,column:5}},line:1434},140:{name:"(anonymous_140)",decl:{start:{line:1437,column:16},end:{line:1437,column:17}},loc:{start:{line:1437,column:28},end:{line:1441,column:5}},line:1437}},branchMap:{0:{loc:{start:{line:176,column:13},end:{line:178,column:32}},type:"cond-expr",locations:[{start:{line:177,column:10},end:{line:177,column:24}},{start:{line:178,column:10},end:{line:178,column:32}}],line:176},1:{loc:{start:{line:181,column:13},end:{line:181,column:67}},type:"cond-expr",locations:[{start:{line:181,column:53},end:{line:181,column:62}},{start:{line:181,column:65},end:{line:181,column:67}}],line:181},2:{loc:{start:{line:187,column:6},end:{line:187,column:59}},type:"if",locations:[{start:{line:187,column:6},end:{line:187,column:59}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:187},3:{loc:{start:{line:193,column:13},end:{line:193,column:64}},type:"cond-expr",locations:[{start:{line:193,column:46},end:{line:193,column:48}},{start:{line:193,column:51},end:{line:193,column:64}}],line:193},4:{loc:{start:{line:327,column:24},end:{line:327,column:63}},type:"binary-expr",locations:[{start:{line:327,column:24},end:{line:327,column:38}},{start:{line:327,column:42},end:{line:327,column:63}}],line:327},5:{loc:{start:{line:383,column:6},end:{line:385,column:7}},type:"if",locations:[{start:{line:383,column:6},end:{line:385,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:383},6:{loc:{start:{line:424,column:6},end:{line:429,column:7}},type:"if",locations:[{start:{line:424,column:6},end:{line:429,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:424},7:{loc:{start:{line:425,column:8},end:{line:426,column:46}},type:"binary-expr",locations:[{start:{line:425,column:8},end:{line:425,column:36}},{start:{line:426,column:8},end:{line:426,column:46}}],line:425},8:{loc:{start:{line:438,column:4},end:{line:440,column:5}},type:"if",locations:[{start:{line:438,column:4},end:{line:440,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:438},9:{loc:{start:{line:441,column:4},end:{line:443,column:5}},type:"if",locations:[{start:{line:441,column:4},end:{line:443,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:441},10:{loc:{start:{line:444,column:4},end:{line:446,column:5}},type:"if",locations:[{start:{line:444,column:4},end:{line:446,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:444},11:{loc:{start:{line:450,column:4},end:{line:454,column:5}},type:"if",locations:[{start:{line:450,column:4},end:{line:454,column:5}},{start:{line:452,column:11},end:{line:454,column:5}}],line:450},12:{loc:{start:{line:523,column:8},end:{line:536,column:9}},type:"if",locations:[{start:{line:523,column:8},end:{line:536,column:9}},{start:{line:527,column:15},end:{line:536,column:9}}],line:523},13:{loc:{start:{line:527,column:15},end:{line:536,column:9}},type:"if",locations:[{start:{line:527,column:15},end:{line:536,column:9}},{start:{line:532,column:15},end:{line:536,column:9}}],line:527},14:{loc:{start:{line:541,column:8},end:{line:545,column:9}},type:"if",locations:[{start:{line:541,column:8},end:{line:545,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:541},15:{loc:{start:{line:546,column:8},end:{line:549,column:9}},type:"if",locations:[{start:{line:546,column:8},end:{line:549,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:546},16:{loc:{start:{line:573,column:25},end:{line:573,column:71}},type:"binary-expr",locations:[{start:{line:573,column:25},end:{line:573,column:45}},{start:{line:573,column:49},end:{line:573,column:71}}],line:573},17:{loc:{start:{line:577,column:33},end:{line:577,column:49}},type:"default-arg",locations:[{start:{line:577,column:47},end:{line:577,column:49}}],line:577},18:{loc:{start:{line:578,column:6},end:{line:608,column:7}},type:"if",locations:[{start:{line:578,column:6},end:{line:608,column:7}},{start:{line:585,column:13},end:{line:608,column:7}}],line:578},19:{loc:{start:{line:614,column:6},end:{line:624,column:7}},type:"if",locations:[{start:{line:614,column:6},end:{line:624,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:614},20:{loc:{start:{line:615,column:8},end:{line:616,column:69}},type:"binary-expr",locations:[{start:{line:615,column:8},end:{line:615,column:35}},{start:{line:616,column:8},end:{line:616,column:69}}],line:615},21:{loc:{start:{line:619,column:8},end:{line:623,column:9}},type:"if",locations:[{start:{line:619,column:8},end:{line:623,column:9}},{start:{line:621,column:15},end:{line:623,column:9}}],line:619},22:{loc:{start:{line:627,column:6},end:{line:629,column:7}},type:"if",locations:[{start:{line:627,column:6},end:{line:629,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:627},23:{loc:{start:{line:632,column:10},end:{line:633,column:32}},type:"binary-expr",locations:[{start:{line:632,column:11},end:{line:632,column:36}},{start:{line:632,column:40},end:{line:632,column:64}},{start:{line:633,column:10},end:{line:633,column:32}}],line:632},24:{loc:{start:{line:637,column:6},end:{line:648,column:7}},type:"switch",locations:[{start:{line:638,column:8},end:{line:641,column:15}},{start:{line:642,column:8},end:{line:647,column:15}}],line:637},25:{loc:{start:{line:651,column:8},end:{line:653,column:9}},type:"if",locations:[{start:{line:651,column:8},end:{line:653,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:651},26:{loc:{start:{line:656,column:33},end:{line:656,column:62}},type:"default-arg",locations:[{start:{line:656,column:43},end:{line:656,column:62}}],line:656},27:{loc:{start:{line:659,column:34},end:{line:659,column:51}},type:"binary-expr",locations:[{start:{line:659,column:34},end:{line:659,column:44}},{start:{line:659,column:48},end:{line:659,column:51}}],line:659},28:{loc:{start:{line:682,column:6},end:{line:686,column:7}},type:"if",locations:[{start:{line:682,column:6},end:{line:686,column:7}},{start:{line:684,column:13},end:{line:686,column:7}}],line:682},29:{loc:{start:{line:691,column:6},end:{line:704,column:7}},type:"if",locations:[{start:{line:691,column:6},end:{line:704,column:7}},{start:{line:697,column:13},end:{line:704,column:7}}],line:691},30:{loc:{start:{line:692,column:8},end:{line:693,column:43}},type:"binary-expr",locations:[{start:{line:692,column:9},end:{line:692,column:22}},{start:{line:692,column:26},end:{line:692,column:39}},{start:{line:693,column:8},end:{line:693,column:43}}],line:692},31:{loc:{start:{line:697,column:13},end:{line:704,column:7}},type:"if",locations:[{start:{line:697,column:13},end:{line:704,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:697},32:{loc:{start:{line:698,column:8},end:{line:700,column:43}},type:"binary-expr",locations:[{start:{line:698,column:9},end:{line:698,column:22}},{start:{line:698,column:26},end:{line:698,column:39}},{start:{line:699,column:8},end:{line:699,column:22}},{start:{line:700,column:8},end:{line:700,column:43}}],line:698},33:{loc:{start:{line:708,column:6},end:{line:710,column:7}},type:"if",locations:[{start:{line:708,column:6},end:{line:710,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:708},34:{loc:{start:{line:711,column:6},end:{line:715,column:7}},type:"if",locations:[{start:{line:711,column:6},end:{line:715,column:7}},{start:{line:713,column:13},end:{line:715,column:7}}],line:711},35:{loc:{start:{line:722,column:10},end:{line:727,column:11}},type:"if",locations:[{start:{line:722,column:10},end:{line:727,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:722},36:{loc:{start:{line:728,column:10},end:{line:731,column:11}},type:"if",locations:[{start:{line:728,column:10},end:{line:731,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:728},37:{loc:{start:{line:732,column:10},end:{line:734,column:11}},type:"if",locations:[{start:{line:732,column:10},end:{line:734,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:732},38:{loc:{start:{line:784,column:17},end:{line:784,column:35}},type:"default-arg",locations:[{start:{line:784,column:31},end:{line:784,column:35}}],line:784},39:{loc:{start:{line:787,column:6},end:{line:790,column:7}},type:"if",locations:[{start:{line:787,column:6},end:{line:790,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:787},40:{loc:{start:{line:792,column:6},end:{line:794,column:7}},type:"if",locations:[{start:{line:792,column:6},end:{line:794,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:792},41:{loc:{start:{line:798,column:6},end:{line:800,column:7}},type:"if",locations:[{start:{line:798,column:6},end:{line:800,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:798},42:{loc:{start:{line:805,column:14},end:{line:805,column:32}},type:"default-arg",locations:[{start:{line:805,column:28},end:{line:805,column:32}}],line:805},43:{loc:{start:{line:809,column:6},end:{line:814,column:7}},type:"if",locations:[{start:{line:809,column:6},end:{line:814,column:7}},{start:{line:811,column:13},end:{line:814,column:7}}],line:809},44:{loc:{start:{line:820,column:6},end:{line:825,column:7}},type:"if",locations:[{start:{line:820,column:6},end:{line:825,column:7}},{start:{line:823,column:13},end:{line:825,column:7}}],line:820},45:{loc:{start:{line:832,column:6},end:{line:951,column:7}},type:"switch",locations:[{start:{line:833,column:8},end:{line:839,column:15}},{start:{line:840,column:8},end:{line:927,column:15}},{start:{line:928,column:8},end:{line:933,column:15}},{start:{line:934,column:8},end:{line:936,column:15}},{start:{line:937,column:8},end:{line:940,column:15}},{start:{line:941,column:8},end:{line:946,column:11}},{start:{line:947,column:8},end:{line:950,column:15}}],line:832},46:{loc:{start:{line:836,column:10},end:{line:838,column:11}},type:"if",locations:[{start:{line:836,column:10},end:{line:838,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:836},47:{loc:{start:{line:841,column:10},end:{line:870,column:11}},type:"if",locations:[{start:{line:841,column:10},end:{line:870,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:841},48:{loc:{start:{line:841,column:14},end:{line:841,column:69}},type:"binary-expr",locations:[{start:{line:841,column:14},end:{line:841,column:27}},{start:{line:841,column:31},end:{line:841,column:69}}],line:841},49:{loc:{start:{line:842,column:12},end:{line:869,column:13}},type:"if",locations:[{start:{line:842,column:12},end:{line:869,column:13}},{start:{line:864,column:19},end:{line:869,column:13}}],line:842},50:{loc:{start:{line:873,column:10},end:{line:926,column:11}},type:"switch",locations:[{start:{line:874,column:12},end:{line:888,column:19}},{start:{line:889,column:12},end:{line:890,column:31}},{start:{line:892,column:12},end:{line:893,column:45}},{start:{line:895,column:12},end:{line:895,column:30}},{start:{line:896,column:12},end:{line:896,column:27}},{start:{line:897,column:12},end:{line:923,column:19}},{start:{line:924,column:12},end:{line:925,column:19}}],line:873},51:{loc:{start:{line:898,column:14},end:{line:904,column:15}},type:"if",locations:[{start:{line:898,column:14},end:{line:904,column:15}},{start:{line:901,column:21},end:{line:904,column:15}}],line:898},52:{loc:{start:{line:909,column:14},end:{line:922,column:15}},type:"if",locations:[{start:{line:909,column:14},end:{line:922,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:909},53:{loc:{start:{line:911,column:27},end:{line:911,column:62}},type:"cond-expr",locations:[{start:{line:911,column:46},end:{line:911,column:58}},{start:{line:911,column:61},end:{line:911,column:62}}],line:911},54:{loc:{start:{line:919,column:16},end:{line:921,column:17}},type:"if",locations:[{start:{line:919,column:16},end:{line:921,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:919},55:{loc:{start:{line:943,column:10},end:{line:946,column:11}},type:"if",locations:[{start:{line:943,column:10},end:{line:946,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:943},56:{loc:{start:{line:964,column:6},end:{line:969,column:7}},type:"if",locations:[{start:{line:964,column:6},end:{line:969,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:964},57:{loc:{start:{line:977,column:6},end:{line:1111,column:7}},type:"switch",locations:[{start:{line:978,column:8},end:{line:978,column:19}},{start:{line:979,column:8},end:{line:1017,column:15}},{start:{line:1018,column:8},end:{line:1028,column:15}},{start:{line:1029,column:8},end:{line:1040,column:15}},{start:{line:1041,column:8},end:{line:1056,column:15}},{start:{line:1057,column:8},end:{line:1057,column:27}},{start:{line:1058,column:8},end:{line:1074,column:15}},{start:{line:1075,column:8},end:{line:1079,column:15}},{start:{line:1080,column:8},end:{line:1093,column:15}},{start:{line:1094,column:8},end:{line:1094,column:32}},{start:{line:1095,column:8},end:{line:1105,column:15}},{start:{line:1106,column:8},end:{line:1110,column:15}}],line:977},58:{loc:{start:{line:986,column:10},end:{line:991,column:11}},type:"if",locations:[{start:{line:986,column:10},end:{line:991,column:11}},{start:{line:988,column:17},end:{line:991,column:11}}],line:986},59:{loc:{start:{line:986,column:14},end:{line:986,column:77}},type:"binary-expr",locations:[{start:{line:986,column:14},end:{line:986,column:26}},{start:{line:986,column:30},end:{line:986,column:51}},{start:{line:986,column:55},end:{line:986,column:77}}],line:986},60:{loc:{start:{line:988,column:17},end:{line:991,column:11}},type:"if",locations:[{start:{line:988,column:17},end:{line:991,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:988},61:{loc:{start:{line:993,column:10},end:{line:995,column:11}},type:"if",locations:[{start:{line:993,column:10},end:{line:995,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:993},62:{loc:{start:{line:998,column:12},end:{line:1014,column:13}},type:"if",locations:[{start:{line:998,column:12},end:{line:1014,column:13}},{start:{line:1006,column:19},end:{line:1014,column:13}}],line:998},63:{loc:{start:{line:1021,column:10},end:{line:1023,column:11}},type:"if",locations:[{start:{line:1021,column:10},end:{line:1023,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1021},64:{loc:{start:{line:1030,column:10},end:{line:1032,column:11}},type:"if",locations:[{start:{line:1030,column:10},end:{line:1032,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1030},65:{loc:{start:{line:1030,column:14},end:{line:1030,column:52}},type:"binary-expr",locations:[{start:{line:1030,column:14},end:{line:1030,column:25}},{start:{line:1030,column:29},end:{line:1030,column:52}}],line:1030},66:{loc:{start:{line:1033,column:10},end:{line:1035,column:11}},type:"if",locations:[{start:{line:1033,column:10},end:{line:1035,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1033},67:{loc:{start:{line:1033,column:14},end:{line:1033,column:48}},type:"binary-expr",locations:[{start:{line:1033,column:14},end:{line:1033,column:25}},{start:{line:1033,column:29},end:{line:1033,column:48}}],line:1033},68:{loc:{start:{line:1042,column:10},end:{line:1044,column:11}},type:"if",locations:[{start:{line:1042,column:10},end:{line:1044,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1042},69:{loc:{start:{line:1042,column:14},end:{line:1042,column:52}},type:"binary-expr",locations:[{start:{line:1042,column:14},end:{line:1042,column:25}},{start:{line:1042,column:29},end:{line:1042,column:52}}],line:1042},70:{loc:{start:{line:1045,column:10},end:{line:1047,column:11}},type:"if",locations:[{start:{line:1045,column:10},end:{line:1047,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1045},71:{loc:{start:{line:1045,column:14},end:{line:1045,column:48}},type:"binary-expr",locations:[{start:{line:1045,column:14},end:{line:1045,column:25}},{start:{line:1045,column:29},end:{line:1045,column:48}}],line:1045},72:{loc:{start:{line:1059,column:10},end:{line:1061,column:11}},type:"if",locations:[{start:{line:1059,column:10},end:{line:1061,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1059},73:{loc:{start:{line:1059,column:14},end:{line:1059,column:52}},type:"binary-expr",locations:[{start:{line:1059,column:14},end:{line:1059,column:25}},{start:{line:1059,column:29},end:{line:1059,column:52}}],line:1059},74:{loc:{start:{line:1062,column:10},end:{line:1064,column:11}},type:"if",locations:[{start:{line:1062,column:10},end:{line:1064,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1062},75:{loc:{start:{line:1062,column:14},end:{line:1062,column:48}},type:"binary-expr",locations:[{start:{line:1062,column:14},end:{line:1062,column:25}},{start:{line:1062,column:29},end:{line:1062,column:48}}],line:1062},76:{loc:{start:{line:1069,column:10},end:{line:1071,column:11}},type:"if",locations:[{start:{line:1069,column:10},end:{line:1071,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1069},77:{loc:{start:{line:1098,column:10},end:{line:1100,column:11}},type:"if",locations:[{start:{line:1098,column:10},end:{line:1100,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1098},78:{loc:{start:{line:1098,column:14},end:{line:1098,column:47}},type:"binary-expr",locations:[{start:{line:1098,column:14},end:{line:1098,column:25}},{start:{line:1098,column:29},end:{line:1098,column:47}}],line:1098},79:{loc:{start:{line:1101,column:10},end:{line:1103,column:11}},type:"if",locations:[{start:{line:1101,column:10},end:{line:1103,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1101},80:{loc:{start:{line:1118,column:6},end:{line:1135,column:7}},type:"if",locations:[{start:{line:1118,column:6},end:{line:1135,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1118},81:{loc:{start:{line:1138,column:18},end:{line:1138,column:79}},type:"cond-expr",locations:[{start:{line:1138,column:39},end:{line:1138,column:58}},{start:{line:1138,column:61},end:{line:1138,column:79}}],line:1138},82:{loc:{start:{line:1170,column:10},end:{line:1172,column:11}},type:"if",locations:[{start:{line:1170,column:10},end:{line:1172,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1170},83:{loc:{start:{line:1173,column:10},end:{line:1175,column:11}},type:"if",locations:[{start:{line:1173,column:10},end:{line:1175,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1173},84:{loc:{start:{line:1176,column:10},end:{line:1178,column:11}},type:"if",locations:[{start:{line:1176,column:10},end:{line:1178,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1176},85:{loc:{start:{line:1189,column:43},end:{line:1189,column:56}},type:"default-arg",locations:[{start:{line:1189,column:51},end:{line:1189,column:56}}],line:1189},86:{loc:{start:{line:1191,column:6},end:{line:1194,column:7}},type:"if",locations:[{start:{line:1191,column:6},end:{line:1194,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1191},87:{loc:{start:{line:1204,column:6},end:{line:1210,column:7}},type:"if",locations:[{start:{line:1204,column:6},end:{line:1210,column:7}},{start:{line:1208,column:13},end:{line:1210,column:7}}],line:1204},88:{loc:{start:{line:1211,column:6},end:{line:1214,column:7}},type:"if",locations:[{start:{line:1211,column:6},end:{line:1214,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1211},89:{loc:{start:{line:1220,column:13},end:{line:1220,column:26}},type:"default-arg",locations:[{start:{line:1220,column:20},end:{line:1220,column:26}}],line:1220},90:{loc:{start:{line:1222,column:6},end:{line:1298,column:7}},type:"if",locations:[{start:{line:1222,column:6},end:{line:1298,column:7}},{start:{line:1248,column:13},end:{line:1298,column:7}}],line:1222},91:{loc:{start:{line:1223,column:8},end:{line:1247,column:9}},type:"if",locations:[{start:{line:1223,column:8},end:{line:1247,column:9}},{start:{line:1226,column:15},end:{line:1247,column:9}}],line:1223},92:{loc:{start:{line:1227,column:10},end:{line:1230,column:11}},type:"if",locations:[{start:{line:1227,column:10},end:{line:1230,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1227},93:{loc:{start:{line:1249,column:8},end:{line:1297,column:9}},type:"if",locations:[{start:{line:1249,column:8},end:{line:1297,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1249},94:{loc:{start:{line:1249,column:12},end:{line:1249,column:58}},type:"binary-expr",locations:[{start:{line:1249,column:12},end:{line:1249,column:40}},{start:{line:1249,column:44},end:{line:1249,column:58}}],line:1249},95:{loc:{start:{line:1259,column:14},end:{line:1282,column:15}},type:"if",locations:[{start:{line:1259,column:14},end:{line:1282,column:15}},{start:{line:1277,column:21},end:{line:1282,column:15}}],line:1259},96:{loc:{start:{line:1260,column:16},end:{line:1268,column:17}},type:"if",locations:[{start:{line:1260,column:16},end:{line:1268,column:17}},{start:{line:1264,column:23},end:{line:1268,column:17}}],line:1260},97:{loc:{start:{line:1269,column:16},end:{line:1272,column:17}},type:"if",locations:[{start:{line:1269,column:16},end:{line:1272,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1269},98:{loc:{start:{line:1288,column:14},end:{line:1294,column:15}},type:"if",locations:[{start:{line:1288,column:14},end:{line:1294,column:15}},{start:{line:1291,column:21},end:{line:1294,column:15}}],line:1288},99:{loc:{start:{line:1306,column:6},end:{line:1309,column:7}},type:"if",locations:[{start:{line:1306,column:6},end:{line:1309,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1306},100:{loc:{start:{line:1328,column:10},end:{line:1334,column:11}},type:"if",locations:[{start:{line:1328,column:10},end:{line:1334,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1328},101:{loc:{start:{line:1385,column:6},end:{line:1412,column:7}},type:"if",locations:[{start:{line:1385,column:6},end:{line:1412,column:7}},{start:{line:1388,column:13},end:{line:1412,column:7}}],line:1385},102:{loc:{start:{line:1388,column:13},end:{line:1412,column:7}},type:"if",locations:[{start:{line:1388,column:13},end:{line:1412,column:7}},{start:{line:1398,column:13},end:{line:1412,column:7}}],line:1388},103:{loc:{start:{line:1398,column:13},end:{line:1412,column:7}},type:"if",locations:[{start:{line:1398,column:13},end:{line:1412,column:7}},{start:{line:1406,column:13},end:{line:1412,column:7}}],line:1398},104:{loc:{start:{line:1400,column:8},end:{line:1402,column:9}},type:"if",locations:[{start:{line:1400,column:8},end:{line:1402,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1400},105:{loc:{start:{line:1406,column:13},end:{line:1412,column:7}},type:"if",locations:[{start:{line:1406,column:13},end:{line:1412,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1406},106:{loc:{start:{line:1408,column:8},end:{line:1410,column:9}},type:"if",locations:[{start:{line:1408,column:8},end:{line:1410,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1408},107:{loc:{start:{line:1438,column:6},end:{line:1440,column:7}},type:"if",locations:[{start:{line:1438,column:6},end:{line:1440,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1438},108:{loc:{start:{line:1438,column:10},end:{line:1438,column:58}},type:"binary-expr",locations:[{start:{line:1438,column:10},end:{line:1438,column:40}},{start:{line:1438,column:44},end:{line:1438,column:58}}],line:1438}},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},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},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],18:[0,0],19:[0,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],39:[0,0],40:[0,0],41:[0,0],42:[0],43:[0,0],44:[0,0],45:[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,0,0,0,0,0,0,0,0,0,0],58:[0,0],59:[0,0,0],60:[0,0],61:[0,0],62:[0,0],63:[0,0],64:[0,0],65:[0,0],66:[0,0],67:[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],86:[0,0],87:[0,0],88:[0,0],89:[0],90:[0,0],91:[0,0],92:[0,0],93:[0,0],94:[0,0],95:[0,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,0],106:[0,0],107:[0,0],108:[0,0]},inputSourceMap:{version:3,sources:["ScriptRunner.vue"],names:[],mappings:";AA0VA;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;;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;;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;;AAEA;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;;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;;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;;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",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--\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\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 outlined\n dense\n hide-details\n :items=\"fileList\"\n :disabled=\"fileList.length <= 1\"\n label=\"Filename\"\n v-model=\"fullFilename\"\n @change=\"fileNameChanged\"\n id=\"filename\"\n data-test=\"filename\"\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> Open Environment Dialog </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 \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 id=\"editorbox\" class=\"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 id=\"editor\" @contextmenu.prevent=\"showExecuteSelectionMenu\"></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 :key=\"item.label\"\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 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 <input-metadata-dialog\n v-if=\"inputMetadata.show\"\n v-model=\"inputMetadata.show\"\n :target=\"inputMetadata.target\"\n @response=\"inputMetadata.callback\"\n />\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 @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=\"showStartedScripts\">\n <v-sheet class=\"pb-11 pt-5 px-5\">\n <running-scripts\n :connect-in-new-tab=\"!!fileModified\"\n @close=\"\n () => {\n showStartedScripts = 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/theme-twilight'\nimport 'ace-builds/src-min-noconflict/ext-language_tools'\nimport 'ace-builds/src-min-noconflict/ext-searchbox'\nimport { toDate, 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 InputMetadataDialog from '@/tools/ScriptRunner/Dialogs/InputMetadataDialog'\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 {\n CmdCompleter,\n TlmCompleter,\n MnemonicChecker,\n} from '@/tools/ScriptRunner/autocomplete'\nimport { SleepAnnotator } from '@/tools/ScriptRunner/annotations'\nimport RunningScripts from './RunningScripts.vue'\n\nconst NEW_FILENAME = '<Untitled>'\nconst START = 'Start'\nconst GO = 'Go'\nconst PAUSE = 'Pause'\nconst RETRY = 'Retry'\n\nexport default {\n components: {\n FileOpenSaveDialog,\n EnvironmentDialog,\n Multipane,\n MultipaneResizer,\n TopBar,\n AskDialog,\n FileDialog,\n InformationDialog,\n InputMetadataDialog,\n PromptDialog,\n ResultsDialog,\n ScriptEnvironmentDialog,\n SimpleTextDialog,\n SuiteRunner,\n RunningScripts,\n ScriptLogMessages,\n },\n data() {\n return {\n title: '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 currentFilename: null,\n showSave: false,\n showAlert: false,\n alertType: null,\n alertText: '',\n state: ' ',\n scriptId: ' ',\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 target: null,\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 showStartedScripts: false,\n activePromptId: '',\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 return this.filename //`${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 command: () => {\n this.newFile()\n },\n },\n {\n label: 'Open File',\n icon: 'mdi-folder-open',\n command: () => {\n this.openFile()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Save File',\n icon: 'mdi-content-save',\n command: () => {\n this.saveFile()\n },\n },\n {\n label: 'Save As...',\n icon: 'mdi-content-save',\n command: () => {\n this.saveAs()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Download',\n icon: 'mdi-cloud-download',\n command: () => {\n this.download()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete File',\n icon: 'mdi-delete',\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 command: () => {\n this.editor.execCommand('replace')\n },\n },\n ],\n },\n {\n label: 'Script',\n items: [\n {\n label: 'View Started Scripts',\n icon: 'mdi-run',\n command: () => {\n this.showStartedScripts = true\n },\n },\n {\n divider: true,\n },\n {\n label: 'Show Environment',\n icon: 'mdi-library',\n command: () => {\n this.showEnvironment = !this.showEnvironment\n },\n },\n {\n label: 'Show Metadata',\n icon: 'mdi-calendar',\n command: () => {\n ;(this.inputMetadata.callback = () => {}),\n (this.inputMetadata.show = !this.inputMetadata.show)\n },\n },\n {\n divider: true,\n },\n {\n label: 'Ruby Syntax Check',\n icon: 'mdi-language-ruby',\n command: () => {\n this.rubySyntaxCheck()\n },\n },\n {\n label: 'Mnemonic Check',\n icon: 'mdi-spellcheck',\n command: () => {\n this.checkMnemonics()\n },\n },\n {\n label: 'View Instrumented Script',\n icon: 'mdi-code-braces-box',\n command: () => {\n this.showInstrumented()\n },\n },\n {\n label: 'Show Call Stack',\n icon: 'mdi-format-list-numbered',\n disabled: !this.scriptId || 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 command: () => {\n this.toggleDisconnect()\n },\n },\n {\n divider: true,\n },\n {\n label: 'Delete All Breakpoints',\n icon: 'mdi-delete-circle-outline',\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 these 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 },\n created: function () {\n // Make NEW_FILENAME available to the template\n this.NEW_FILENAME = NEW_FILENAME\n window.onbeforeunload = this.unlockFile\n },\n mounted: async function () {\n this.editor = ace.edit('editor')\n this.editor.setTheme('ace/theme/twilight')\n const openC3Mode = this.buildOpenC3Mode()\n this.editor.session.setMode(new openC3Mode())\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(() => {\n // Only save if modified and visible (e.g. not open in another tab)\n if (\n this.fileModified.length > 0 &&\n document.visibilityState === 'visible'\n ) {\n 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.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\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 buildOpenC3Mode() {\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 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 fileNameChanged(filename) {\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 this.filename = filename\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.scriptStart(loadRunningScript.id)\n } else if (id) {\n this.$notify.caution({\n title: '404 Not Found',\n body: `Failed to load running script id: ${id}`,\n })\n } else {\n this.alertType = 'success'\n this.alertText = `Currently ${response.data.length} running scripts.`\n this.showAlert = true\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 if (this.state === 'error') {\n // Execute via debugger\n const lines = text.split('\\n')\n for (const line of lines) {\n this.debug = line.trim()\n this.debugKeydown({ key: 'Enter' })\n }\n } else {\n // Create a new temp script and open in new tab\n const selectionTempFilename =\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') + '_temp.rb'\n Api.post(`/script-api/scripts/${selectionTempFilename}`, {\n data: {\n text,\n breakpoints,\n },\n })\n .then((response) => {\n return Api.post(\n `/script-api/scripts/${selectionTempFilename}/run`,\n {\n data: {\n environment: this.scriptEnvironment.env,\n },\n }\n )\n })\n .then((response) => {\n window.open(`/tools/scriptrunner/${response.data}`)\n })\n }\n },\n clearBreakpoints: function () {\n this.editor.session.clearBreakpoints()\n },\n toggleBreakpoint: function ($event) {\n if (\n $event.domEvent.which === 1 && // left click\n $event.domEvent.path[0].classList.contains('ace_gutter-cell') // on a line number\n ) {\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 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 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 read-only (we're running)\n if (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 scriptStart(id) {\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.scriptId = id\n this.editor.setReadOnly(true)\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.editor.setReadOnly(false)\n },\n environmentHandler: function (event) {\n this.scriptEnvironment.env = event\n },\n startHandler: function () {\n this.start()\n },\n start(event, suiteRunner = null) {\n 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 }).then((response) => {\n this.scriptStart(response.data)\n })\n },\n go(event, suiteRunner = null) {\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 // console.log(data) // Uncomment for debugging\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 this.messages.unshift({ message: data.line })\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 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 },\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 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 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.combo = true\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 'input_metadata':\n this.inputMetadata.target = data.args[0]\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.inputMetadata.show = true\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=config`\n )\n // This pushes the file into S3 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.filename = NEW_FILENAME\n this.currentFilename = 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 openFile() {\n this.fileOpen = true\n },\n reloadFile() {\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 if (local === false) {\n this.unlockFile() // first unlock what was just being edited\n this.lockedBy = locked\n }\n // Split off the ' *' which indicates a file is modified on the server\n this.filename = file.name.split('*')[0]\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 }\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 // 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 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 } else {\n if (this.tempFilename === null) {\n this.tempFilename =\n format(Date.now(), 'yyyy_MM_dd_HH_mm_ss_SSS') + '_temp.rb'\n }\n this.showSave = true\n Api.post(`/script-api/scripts/${this.tempFilename}`, {\n data: {\n text: this.editor.getValue(), // Pass in the raw file text\n breakpoints,\n },\n })\n .then((response) => {\n this.fileModified = ''\n setTimeout(() => {\n this.showSave = false\n }, 2000)\n })\n .catch((error) => {\n this.showSave = false\n })\n }\n } else {\n if (this.fileModified.length > 0 || type == 'menu') {\n // Save a file by posting the new contents\n this.showSave = true\n 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 })\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 }\n this.lockFile() // Ensure this file is locked for editing\n },\n saveAs() {\n this.showSaveAs = true\n },\n saveAsFilename(filename) {\n this.filename = filename\n if (this.tempFilename) {\n Api.post(`/script-api/scripts/${this.tempFilename}/delete`)\n this.tempFilename = null\n }\n this.saveFile('menu')\n },\n delete() {\n // TODO: Delete instead of post\n this.$dialog\n .confirm(`Permanently delete file: ${this.filename}`, {\n okText: 'Delete',\n cancelText: 'Cancel',\n })\n .then((dialog) => {\n return Api.post(`/script-api/scripts/${this.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 rubySyntaxCheck() {\n Api.post('/script-api/scripts/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\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 },\n}\n<\/script>\n\n<style scoped>\n#sr-controls {\n padding-top: 0px;\n padding-bottom: 5px;\n padding-left: 0px;\n padding-right: 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</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"56b70df486d04cbffcba15e5a67ddb83123ff461"},o=t[l]||(t[l]={});o[n]&&o[n].hash===e||(o[n]=i);var s=o[n];return Ct=function(){return s},s}Ct();var bt=(Ct().s[0]++,"<Untitled>"),gt=(Ct().s[1]++,"Start"),yt=(Ct().s[2]++,"Go"),_t=(Ct().s[3]++,"Pause"),kt=(Ct().s[4]++,"Retry"),wt={components:{FileOpenSaveDialog:I,EnvironmentDialog:Z,Multipane:R.x,MultipaneResizer:R.P,TopBar:X,AskDialog:un,FileDialog:Cn,InformationDialog:Sn,InputMetadataDialog:In,PromptDialog:Pn,ResultsDialog:Kn,ScriptEnvironmentDialog:ue,SimpleTextDialog:V,SuiteRunner:Ce,RunningScripts:vt,ScriptLogMessages:Se},data:function(){return Ct().f[0]++,Ct().s[5]++,{title:"Script Runner",suiteRunner:!1,disableSuiteButtons:!1,suiteMap:{},currentFilename:null,showSave:!1,showAlert:!1,alertType:null,alertText:"",state:" ",scriptId:" ",startOrGoButton:gt,startOrGoDisabled:!1,envDisabled:!1,pauseOrRetryButton:_t,pauseOrRetryDisabled:!1,stopDisabled:!1,showEnvironment:!1,showDebug:!1,debug:"",debugHistory:[],debugHistoryIndex:0,showDisconnect:!1,files:{},breakpoints:{},filename:bt,tempFilename:null,fileModified:"",fileOpen:!1,lockedBy:null,showReadOnlyToast:!1,showSaveAs:!1,areYouSure:!1,subscription:null,cable:null,fatal:!1,messages:[],maxArrayLength:200,Range:x.require("ace/range").Range,ask:{show:!1,question:"",default:null,password:!1,answerRequired:!0,callback:function(){Ct().f[1]++}},file:{show:!1,message:"",directory:null,filter:"*",multiple:!1,callback:function(){Ct().f[2]++}},prompt:{show:!1,title:"",subtitle:"",message:"",details:"",buttons:null,layout:"horizontal",callback:function(){Ct().f[3]++}},information:{show:!1,title:"",text:[]},inputMetadata:{show:!1,target:null,callback:function(){Ct().f[4]++}},results:{show:!1,text:""},scriptEnvironment:{show:!1,env:[]},showSuiteError:!1,suiteError:"",executeSelectionMenu:!1,menuX:0,menuY:0,mnemonicChecker:new je,showStartedScripts:!1,activePromptId:""}},computed:{fileList:function(){Ct().f[5]++;var n=(Ct().s[6]++,Object.keys(this.files));return Ct().s[7]++,n.push(this.fullFilename),Ct().s[8]++,(0,u.Z)(new Set(n))},environmentIcon:function(){return Ct().f[6]++,Ct().s[9]++,this.scriptEnvironment.env.length>0?(Ct().b[0][0]++,"mdi-bookmark"):(Ct().b[0][1]++,"mdi-bookmark-outline")},environmentIconColor:function(){return Ct().f[7]++,Ct().s[10]++,this.scriptEnvironment.env.length>0?(Ct().b[1][0]++,"primary"):(Ct().b[1][1]++,"")},readOnly:function(){return Ct().f[8]++,Ct().s[11]++,!!this.lockedBy},fullFilename:function(){return Ct().f[9]++,Ct().s[12]++,this.currentFilename?(Ct().b[2][0]++,Ct().s[13]++,this.currentFilename):(Ct().b[2][1]++,Ct().s[14]++,this.filename)},filenameOrBlank:function(){return Ct().f[10]++,Ct().s[15]++,this.filename===bt?(Ct().b[3][0]++,""):(Ct().b[3][1]++,this.filename)},menus:function(){var n=this;return Ct().f[11]++,Ct().s[16]++,[{label:"File",items:[{label:"New File",icon:"mdi-file-plus",command:function(){Ct().f[12]++,Ct().s[17]++,n.newFile()}},{label:"Open File",icon:"mdi-folder-open",command:function(){Ct().f[13]++,Ct().s[18]++,n.openFile()}},{divider:!0},{label:"Save File",icon:"mdi-content-save",command:function(){Ct().f[14]++,Ct().s[19]++,n.saveFile()}},{label:"Save As...",icon:"mdi-content-save",command:function(){Ct().f[15]++,Ct().s[20]++,n.saveAs()}},{divider:!0},{label:"Download",icon:"mdi-cloud-download",command:function(){Ct().f[16]++,Ct().s[21]++,n.download()}},{divider:!0},{label:"Delete File",icon:"mdi-delete",command:function(){Ct().f[17]++,Ct().s[22]++,n.delete()}}]},{label:"Edit",items:[{label:"Find",icon:"mdi-magnify",command:function(){Ct().f[18]++,Ct().s[23]++,n.editor.execCommand("find")}},{label:"Replace",icon:"mdi-find-replace",command:function(){Ct().f[19]++,Ct().s[24]++,n.editor.execCommand("replace")}}]},{label:"Script",items:[{label:"View Started Scripts",icon:"mdi-run",command:function(){Ct().f[20]++,Ct().s[25]++,n.showStartedScripts=!0}},{divider:!0},{label:"Show Environment",icon:"mdi-library",command:function(){Ct().f[21]++,Ct().s[26]++,n.showEnvironment=!n.showEnvironment}},{label:"Show Metadata",icon:"mdi-calendar",command:function(){Ct().f[22]++,Ct().s[27]++,n.inputMetadata.callback=function(){Ct().f[23]++},n.inputMetadata.show=!n.inputMetadata.show}},{divider:!0},{label:"Ruby Syntax Check",icon:"mdi-language-ruby",command:function(){Ct().f[24]++,Ct().s[28]++,n.rubySyntaxCheck()}},{label:"Mnemonic Check",icon:"mdi-spellcheck",command:function(){Ct().f[25]++,Ct().s[29]++,n.checkMnemonics()}},{label:"View Instrumented Script",icon:"mdi-code-braces-box",command:function(){Ct().f[26]++,Ct().s[30]++,n.showInstrumented()}},{label:"Show Call Stack",icon:"mdi-format-list-numbered",disabled:(Ct().b[4][0]++,!this.scriptId||(Ct().b[4][1]++," "===this.scriptId)),command:function(){Ct().f[27]++,Ct().s[31]++,n.showCallStack()}},{divider:!0},{label:"Toggle Debug",icon:"mdi-bug",command:function(){Ct().f[28]++,Ct().s[32]++,n.toggleDebug()}},{label:"Toggle Disconnect",icon:"mdi-connection",command:function(){Ct().f[29]++,Ct().s[33]++,n.toggleDisconnect()}},{divider:!0},{label:"Delete All Breakpoints",icon:"mdi-delete-circle-outline",command:function(){Ct().f[30]++,Ct().s[34]++,n.deleteAllBreakpoints()}}]}]},executeSelectionMenuItems:function(){return Ct().f[31]++,Ct().s[35]++,[{label:"Execute selection",command:this.executeSelection},{label:"Run from here",command:this.runFromCursor},{label:"Clear these breakpoints",command:this.clearBreakpoints}]}},watch:{readOnly:function(n){Ct().f[32]++,Ct().s[36]++,this.showReadOnlyToast=n,Ct().s[37]++,this.suiteRunner?Ct().b[5][1]++:(Ct().b[5][0]++,Ct().s[38]++,this.startOrGoDisabled=n),Ct().s[39]++,this.editor.setReadOnly(n)}},created:function(){Ct().f[33]++,Ct().s[40]++,this.NEW_FILENAME=bt,Ct().s[41]++,window.onbeforeunload=this.unlockFile},mounted:function(){var n=(0,r.Z)((0,c.Z)().mark((function n(){var e,t,l=this;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ct().f[34]++,Ct().s[42]++,this.editor=x.edit("editor"),Ct().s[43]++,this.editor.setTheme("ace/theme/twilight"),Ct().s[44]++,e=this.buildOpenC3Mode(),Ct().s[45]++,this.editor.session.setMode(new e),Ct().s[46]++,this.editor.session.setTabSize(2),Ct().s[47]++,this.editor.session.setUseWrapMode(!0),Ct().s[48]++,this.editor.$blockScrolling=1/0,Ct().s[49]++,this.editor.setOption("enableBasicAutocompletion",!0),Ct().s[50]++,this.editor.setOption("enableLiveAutocompletion",!0),Ct().s[51]++,this.editor.completers=[new Ne,new Ze],Ct().s[52]++,this.editor.setHighlightActiveLine(!1),Ct().s[53]++,this.editor.focus(),Ct().s[54]++,this.editor.on("guttermousedown",this.toggleBreakpoint),Ct().s[55]++,this.editor.session.on("tokenizerUpdate",this.onChange),Ct().s[56]++,t=new ct(this.editor),Ct().s[57]++,this.editor.session.on("change",(function(n,e){Ct().f[35]++,Ct().s[58]++,t.annotate(n,e),Ct().s[59]++,l.updateBreakpoints(n,e)})),Ct().s[60]++,window.addEventListener("keydown",this.keydown),Ct().s[61]++,this.cable=new f("/script-api/cable"),Ct().s[62]++,n.next=38,this.tryLoadRunningScript(this.$route.params.id);case 38:Ct().s[63]++,this.autoSaveInterval=setInterval((function(){Ct().f[36]++,Ct().s[64]++,Ct().b[7][0]++,l.fileModified.length>0&&(Ct().b[7][1]++,"visible"===document.visibilityState)?(Ct().b[6][0]++,Ct().s[65]++,l.saveFile("auto")):Ct().b[6][1]++}),6e4);case 40:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),beforeDestroy:function(){Ct().f[37]++,Ct().s[66]++,this.editor.destroy(),Ct().s[67]++,this.editor.container.remove()},destroyed:function(){Ct().f[38]++,Ct().s[68]++,this.unlockFile(),Ct().s[69]++,null!=this.autoSaveInterval?(Ct().b[8][0]++,Ct().s[70]++,clearInterval(this.autoSaveInterval)):Ct().b[8][1]++,Ct().s[71]++,this.tempFilename?(Ct().b[9][0]++,Ct().s[72]++,w.post("/script-api/scripts/".concat(this.tempFilename,"/delete"))):Ct().b[9][1]++,Ct().s[73]++,this.subscription?(Ct().b[10][0]++,Ct().s[74]++,this.subscription.unsubscribe()):Ct().b[10][1]++,Ct().s[75]++,this.cable.disconnect()},beforeRouteUpdate:function(n,e,t){Ct().f[39]++,Ct().s[76]++,n.params.id?(Ct().b[11][0]++,Ct().s[77]++,this.tryLoadRunningScript(n.params.id).then(t)):(Ct().b[11][1]++,Ct().s[78]++,t())},methods:{buildOpenC3Mode:function(){Ct().f[40]++;var n=(Ct().s[79]++,x.require("ace/lib/oop")),e=(Ct().s[80]++,x.require("ace/mode/ruby_highlight_rules").RubyHighlightRules),t=(Ct().s[81]++,Object.getOwnPropertyNames(en.prototype).filter((function(n){return Ct().f[41]++,Ct().s[82]++,"constructor"!==n})).filter((function(n){return Ct().f[42]++,Ct().s[83]++,"exec"!==n}))),l=(Ct().s[84]++,new RegExp("(\\b".concat(t.join("\\b|\\b"),"\\b)")));Ct().s[85]++;var i=function(){for(var n in Ct().f[43]++,Ct().s[86]++,e.call(this),Ct().s[87]++,this.$rules)Ct().s[88]++,this.$rules[n].unshift({regex:l,token:"support.function"})};Ct().s[89]++,n.inherits(i,e);var o=(Ct().s[90]++,x.require("ace/mode/matching_brace_outdent").MatchingBraceOutdent),s=(Ct().s[91]++,x.require("ace/mode/behaviour/cstyle").CstyleBehaviour),a=(Ct().s[92]++,x.require("ace/mode/folding/ruby").FoldMode);Ct().s[93]++;var c=function(){Ct().f[44]++,Ct().s[94]++,this.HighlightRules=i,Ct().s[95]++,this.$outdent=new o,Ct().s[96]++,this.$behaviour=new s,Ct().s[97]++,this.foldingRules=new a,Ct().s[98]++,this.indentKeywords=this.foldingRules.indentKeywords},r=(Ct().s[99]++,x.require("ace/mode/ruby").Mode);return Ct().s[100]++,n.inherits(c,r),Ct().s[101]++,function(){Ct().f[45]++,Ct().s[102]++,this.$id="ace/mode/openc3"}.call(c.prototype),Ct().s[103]++,c},fileNameChanged:function(n){Ct().f[46]++,Ct().s[104]++,this.editor.setValue(this.files[n].content),Ct().s[105]++,this.restoreBreakpoints(n),Ct().s[106]++,this.editor.clearSelection(),Ct().s[107]++,this.removeAllMarkers(),Ct().s[108]++,this.editor.session.addMarker(new this.Range(this.files[n].lineNo-1,0,this.files[n].lineNo-1,1),"".concat(this.state,"Marker"),"fullLine"),Ct().s[109]++,this.editor.gotoLine(this.files[n].lineNo),Ct().s[110]++,this.filename=n},tryLoadRunningScript:function(n){var e=this;return Ct().f[47]++,Ct().s[111]++,w.get("/script-api/running-script").then((function(t){Ct().f[48]++;var l=(Ct().s[112]++,t.data.find((function(e){return Ct().f[49]++,Ct().s[113]++,"".concat(e.id)==="".concat(n)})));Ct().s[114]++,l?(Ct().b[12][0]++,Ct().s[115]++,e.filename=l.name,Ct().s[116]++,e.tryLoadSuites(),Ct().s[117]++,e.scriptStart(l.id)):(Ct().b[12][1]++,Ct().s[118]++,n?(Ct().b[13][0]++,Ct().s[119]++,e.$notify.caution({title:"404 Not Found",body:"Failed to load running script id: ".concat(n)})):(Ct().b[13][1]++,Ct().s[120]++,e.alertType="success",Ct().s[121]++,e.alertText="Currently ".concat(t.data.length," running scripts."),Ct().s[122]++,e.showAlert=!0))}))},tryLoadSuites:function(){var n=this;Ct().f[50]++,Ct().s[123]++,w.get("/script-api/scripts/".concat(this.filename)).then((function(e){Ct().f[51]++,Ct().s[124]++,e.data.suites?(Ct().b[14][0]++,Ct().s[125]++,n.startOrGoDisabled=!0,Ct().s[126]++,n.suiteRunner=!0,Ct().s[127]++,n.suiteMap=JSON.parse(e.data.suites)):Ct().b[14][1]++,Ct().s[128]++,e.data.error?(Ct().b[15][0]++,Ct().s[129]++,n.suiteError=e.data.error,Ct().s[130]++,n.showSuiteError=!0):Ct().b[15][1]++,Ct().s[131]++,n.disableSuiteButtons=0==e.data.success}))},showExecuteSelectionMenu:function(n){Ct().f[52]++,Ct().s[132]++,this.menuX=n.pageX,Ct().s[133]++,this.menuY=n.pageY,Ct().s[134]++,this.executeSelectionMenu=!0},runFromCursor:function(){Ct().f[53]++;var n=(Ct().s[135]++,this.editor.getCursorPosition().row),e=(Ct().s[136]++,this.editor.session.doc.getLines(n,this.editor.session.doc.getLength()).join("\n")),t=(Ct().s[137]++,this.getBreakpointRows().filter((function(e){return Ct().f[54]++,Ct().s[138]++,e>=n})).map((function(e){return Ct().f[55]++,Ct().s[139]++,e-n})));Ct().s[140]++,this.executeText(e,t)},executeSelection:function(){Ct().f[56]++;var n=(Ct().s[141]++,this.editor.getSelectedText()),e=(Ct().s[142]++,this.editor.getSelectionRange()),t=(Ct().s[143]++,this.getBreakpointRows().filter((function(n){return Ct().f[57]++,Ct().s[144]++,Ct().b[16][0]++,n<=e.end.row&&(Ct().b[16][1]++,n>=e.start.row)})).map((function(n){return Ct().f[58]++,Ct().s[145]++,n-e.start.row})));Ct().s[146]++,this.executeText(n,t)},executeText:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[17][0]++,[]);if(Ct().f[59]++,Ct().s[147]++,"error"===this.state){Ct().b[18][0]++;var l=(Ct().s[148]++,n.split("\n"));Ct().s[149]++;var i,o=(0,a.Z)(l);try{for(o.s();!(i=o.n()).done;){var s=i.value;Ct().s[150]++,this.debug=s.trim(),Ct().s[151]++,this.debugKeydown({key:"Enter"})}}catch(r){o.e(r)}finally{o.f()}}else{Ct().b[18][1]++;var c=(Ct().s[152]++,(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb");Ct().s[153]++,w.post("/script-api/scripts/".concat(c),{data:{text:n,breakpoints:t}}).then((function(n){return Ct().f[60]++,Ct().s[154]++,w.post("/script-api/scripts/".concat(c,"/run"),{data:{environment:e.scriptEnvironment.env}})})).then((function(n){Ct().f[61]++,Ct().s[155]++,window.open("/tools/scriptrunner/".concat(n.data))}))}},clearBreakpoints:function(){Ct().f[62]++,Ct().s[156]++,this.editor.session.clearBreakpoints()},toggleBreakpoint:function(n){if(Ct().f[63]++,Ct().s[157]++,Ct().b[20][0]++,1===n.domEvent.which&&(Ct().b[20][1]++,n.domEvent.path[0].classList.contains("ace_gutter-cell"))){Ct().b[19][0]++;var e=(Ct().s[158]++,n.getDocumentPosition().row);Ct().s[159]++,n.editor.session.getBreakpoints(e,0)[e]?(Ct().b[21][0]++,Ct().s[160]++,n.editor.session.clearBreakpoint(e)):(Ct().b[21][1]++,Ct().s[161]++,n.editor.session.setBreakpoint(e))}else Ct().b[19][1]++},updateBreakpoints:function(n,e){if(Ct().f[64]++,Ct().s[162]++,n.lines.length<=1)return Ct().b[22][0]++,void Ct().s[163]++;Ct().b[22][1]++;var t=(Ct().s[164]++,this.getBreakpointRows(e).filter((function(e){return Ct().f[65]++,Ct().s[165]++,Ct().b[23][0]++,0===n.start.column&&(Ct().b[23][1]++,e===n.start.row)||(Ct().b[23][2]++,e>n.start.row)}))),l=(Ct().s[166]++,[]),i=(Ct().s[167]++,0);switch(Ct().s[168]++,n.action){case"insert":Ct().b[24][0]++,Ct().s[169]++,i=n.lines.length-1,Ct().s[170]++,t.reverse(),Ct().s[171]++;break;case"remove":Ct().b[24][1]++,Ct().s[172]++,i=1-n.lines.length,Ct().s[173]++,l=(0,u.Z)(Array(n.lines.length).keys()).map((function(e){return Ct().f[66]++,Ct().s[174]++,e+n.start.row})),Ct().s[175]++;break}Ct().s[176]++,t.forEach((function(n){Ct().f[67]++,Ct().s[177]++,e.clearBreakpoint(n),Ct().s[178]++,l.includes(n)?Ct().b[25][1]++:(Ct().b[25][0]++,Ct().s[179]++,e.setBreakpoint(n+i))}))},getBreakpointRows:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ct().b[26][0]++,this.editor.session);return Ct().f[68]++,Ct().s[180]++,n.getBreakpoints().map((function(n,e){return Ct().f[69]++,Ct().s[181]++,Ct().b[27][0]++,n&&(Ct().b[27][1]++,e)})).filter(Number.isInteger)},restoreBreakpoints:function(n){var e,t=this;Ct().f[70]++,Ct().s[182]++,this.clearBreakpoints(),Ct().s[183]++,null===(e=this.breakpoints[n])||void 0===e||e.forEach((function(n){Ct().f[71]++,Ct().s[184]++,t.editor.session.setBreakpoint(n)}))},deleteAllBreakpoints:function(){var n=this;Ct().f[72]++,Ct().s[185]++,this.$dialog.confirm("Permanently delete all breakpoints for ALL scripts?",{okText:"Delete",cancelText:"Cancel"}).then((function(n){return Ct().f[73]++,Ct().s[186]++,w["delete"]("/script-api/breakpoints/delete/all")})).then((function(e){Ct().f[74]++,Ct().s[187]++,n.clearBreakpoints()}))},suiteRunnerButton:function(n){Ct().f[75]++,Ct().s[188]++,this.startOrGoButton===gt?(Ct().b[28][0]++,Ct().s[189]++,this.start(n,"suiteRunner")):(Ct().b[28][1]++,Ct().s[190]++,this.go(n,"suiteRunner"))},keydown:function(n){Ct().f[76]++,Ct().s[191]++,Ct().b[30][0]++,(n.metaKey||(Ct().b[30][1]++,n.ctrlKey))&&(Ct().b[30][2]++,n.keyCode==="S".charCodeAt(0))?(Ct().b[29][0]++,Ct().s[192]++,n.preventDefault(),Ct().s[193]++,this.saveFile()):(Ct().b[29][1]++,Ct().s[194]++,Ct().b[32][0]++,(n.metaKey||(Ct().b[32][1]++,n.ctrlKey))&&(Ct().b[32][2]++,n.shiftKey)&&(Ct().b[32][3]++,n.keyCode==="S".charCodeAt(0))?(Ct().b[31][0]++,Ct().s[195]++,n.preventDefault(),Ct().s[196]++,this.saveAs()):Ct().b[31][1]++)},onChange:function(n){if(Ct().f[77]++,Ct().s[197]++,!0===this.editor.getReadOnly())return Ct().b[33][0]++,void Ct().s[198]++;Ct().b[33][1]++,Ct().s[199]++,this.editor.session.getUndoManager().canUndo()?(Ct().b[34][0]++,Ct().s[200]++,this.fileModified="*"):(Ct().b[34][1]++,Ct().s[201]++,this.fileModified="")},checkMnemonics:function(){var n=this;Ct().f[78]++,Ct().s[202]++,this.mnemonicChecker.checkText(this.editor.getValue()).then((function(e){var t=e.skipped,l=e.problems;Ct().f[79]++;var i=(Ct().s[203]++,"");if(Ct().s[204]++,l.length){Ct().b[35][0]++;var o=(Ct().s[205]++,l.map((function(n){return Ct().f[80]++,Ct().s[206]++,"".concat(n.lineNumber,": ").concat(n.error)})).join("<br/>"));Ct().s[207]++,i+="<strong>The following lines have problems:</strong><br/>".concat(o,"<br/><br/>")}else Ct().b[35][1]++;Ct().s[208]++,t.length?(Ct().b[36][0]++,Ct().s[209]++,i+="<strong>Mnemonics with string interpolation were not checked.</strong>"):Ct().b[36][1]++,Ct().s[210]++,""===i?(Ct().b[37][0]++,Ct().s[211]++,i="<strong>Everything looks good!</strong>"):Ct().b[37][1]++,Ct().s[212]++,n.$dialog.alert(i.trim(),{html:!0})}))},scriptStart:function(n){var e=this;Ct().f[81]++,Ct().s[213]++,this.disableSuiteButtons=!0,Ct().s[214]++,this.startOrGoDisabled=!0,Ct().s[215]++,this.envDisabled=!0,Ct().s[216]++,this.pauseOrRetryDisabled=!0,Ct().s[217]++,this.stopDisabled=!0,Ct().s[218]++,this.state="Connecting...",Ct().s[219]++,this.startOrGoButton=yt,Ct().s[220]++,this.scriptId=n,Ct().s[221]++,this.editor.setReadOnly(!0),Ct().s[222]++,this.cable.createSubscription("RunningScriptChannel",window.openc3Scope,{received:function(n){return Ct().f[82]++,Ct().s[223]++,e.received(n)}},{id:this.scriptId}).then((function(n){Ct().f[83]++,Ct().s[224]++,e.subscription=n}))},scriptComplete:function(){Ct().f[84]++,Ct().s[225]++,this.disableSuiteButtons=!1,Ct().s[226]++,this.startOrGoButton=gt,Ct().s[227]++,this.pauseOrRetryButton=_t,Ct().s[228]++,this.startOrGoDisabled=this.suiteRunner,Ct().s[229]++,this.envDisabled=!1,Ct().s[230]++,this.pauseOrRetryDisabled=!0,Ct().s[231]++,this.stopDisabled=!0,Ct().s[232]++,this.state="stopped",Ct().s[233]++,this.fatal=!1,Ct().s[234]++,this.scriptId=null,Ct().s[235]++,this.editor.setReadOnly(!1)},environmentHandler:function(n){Ct().f[85]++,Ct().s[236]++,this.scriptEnvironment.env=n},startHandler:function(){Ct().f[86]++,Ct().s[237]++,this.start()},start:function(n){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[38][0]++,null);Ct().f[87]++,Ct().s[238]++,this.saveFile("start");var l=(Ct().s[239]++,this.filename);Ct().s[240]++,this.filename===bt?(Ct().b[39][0]++,Ct().s[241]++,l=this.tempFilename):Ct().b[39][1]++;var i=(Ct().s[242]++,"/script-api/scripts/".concat(l,"/run"));Ct().s[243]++,this.showDisconnect?(Ct().b[40][0]++,Ct().s[244]++,i+="/disconnect"):Ct().b[40][1]++;var o=(Ct().s[245]++,{environment:this.scriptEnvironment.env});Ct().s[246]++,t?(Ct().b[41][0]++,Ct().s[247]++,o["suiteRunner"]=n):Ct().b[41][1]++,Ct().s[248]++,w.post(i,{data:o}).then((function(n){Ct().f[88]++,Ct().s[249]++,e.scriptStart(n.data)}))},go:function(n){arguments.length>1&&void 0!==arguments[1]||Ct().b[42][0]++;Ct().f[89]++,Ct().s[250]++,w.post("/script-api/running-script/".concat(this.scriptId,"/go"))},pauseOrRetry:function(){Ct().f[90]++,Ct().s[251]++,this.pauseOrRetryButton===_t?(Ct().b[43][0]++,Ct().s[252]++,w.post("/script-api/running-script/".concat(this.scriptId,"/pause"))):(Ct().b[43][1]++,Ct().s[253]++,this.pauseOrRetryButton=_t,Ct().s[254]++,w.post("/script-api/running-script/".concat(this.scriptId,"/retry")))},stop:function(){Ct().f[91]++,Ct().s[255]++,this.fatal?(Ct().b[44][0]++,Ct().s[256]++,this.removeAllMarkers(),Ct().s[257]++,this.scriptComplete()):(Ct().b[44][1]++,Ct().s[258]++,w.post("/script-api/running-script/".concat(this.scriptId,"/stop")))},step:function(){Ct().f[92]++,Ct().s[259]++,w.post("/script-api/running-script/".concat(this.scriptId,"/step"))},received:function(n){var e=this;switch(Ct().f[93]++,Ct().s[260]++,n.type){case"file":Ct().b[45][0]++,Ct().s[261]++,this.files[n.filename]={content:n.text,lineNo:0},Ct().s[262]++,this.breakpoints[n.filename]=n.breakpoints,Ct().s[263]++,this.currentFilename===n.filename?(Ct().b[46][0]++,Ct().s[264]++,this.restoreBreakpoints(n.filename)):Ct().b[46][1]++,Ct().s[265]++;break;case"line":Ct().b[45][1]++,Ct().s[266]++,Ct().b[48][0]++,n.filename&&(Ct().b[48][1]++,n.filename!==this.currentFilename)?(Ct().b[47][0]++,Ct().s[267]++,this.files[n.filename]?(Ct().b[49][1]++,Ct().s[275]++,this.editor.setValue(this.files[n.filename].content),Ct().s[276]++,this.restoreBreakpoints(n.filename),Ct().s[277]++,this.editor.clearSelection(),Ct().s[278]++,this.currentFilename=n.filename):(Ct().b[49][0]++,Ct().s[268]++,this.files[n.filename]={content:"",lineNo:0},Ct().s[269]++,w.get("/script-api/scripts/".concat(n.filename)).then((function(t){Ct().f[94]++,Ct().s[270]++,e.files[n.filename]={content:t.data.contents,lineNo:0},Ct().s[271]++,e.breakpoints[n.filename]=t.data.breakpoints,Ct().s[272]++,e.restoreBreakpoints(n.filename),Ct().s[273]++,e.currentFilename=null})).catch((function(t){Ct().f[95]++,Ct().s[274]++,e.files[n.filename]=null})))):Ct().b[47][1]++,Ct().s[279]++,this.state=n.state;var t=(Ct().s[280]++,this.editor.session.getMarkers());switch(Ct().s[281]++,this.state){case"running":Ct().b[50][0]++,Ct().s[282]++,this.startOrGoDisabled=!1,Ct().s[283]++,this.pauseOrRetryDisabled=!1,Ct().s[284]++,this.stopDisabled=!1,Ct().s[285]++,this.pauseOrRetryButton=_t,Ct().s[286]++,this.removeAllMarkers(),Ct().s[287]++,this.editor.session.addMarker(new this.Range(n.line_no-1,0,n.line_no-1,1),"runningMarker","fullLine"),Ct().s[288]++,this.editor.gotoLine(n.line_no),Ct().s[289]++,this.files[n.filename].lineNo=n.line_no,Ct().s[290]++;break;case"fatal":Ct().b[50][1]++,Ct().s[291]++,this.fatal=!0;case"error":Ct().b[50][2]++,Ct().s[292]++,this.pauseOrRetryButton=kt;case"breakpoint":Ct().b[50][3]++;case"waiting":Ct().b[50][4]++;case"paused":Ct().b[50][5]++,Ct().s[293]++,"fatal"==this.state?(Ct().b[51][0]++,Ct().s[294]++,this.startOrGoDisabled=!0,Ct().s[295]++,this.pauseOrRetryDisabled=!0):(Ct().b[51][1]++,Ct().s[296]++,this.startOrGoDisabled=!1,Ct().s[297]++,this.pauseOrRetryDisabled=!1),Ct().s[298]++,this.stopDisabled=!1;var l=(Ct().s[299]++,Object.keys(t).filter((function(n){return Ct().f[96]++,Ct().s[300]++,t[n].clazz==="".concat(e.state,"Marker")})));if(Ct().s[301]++,0===l.length){Ct().b[52][0]++,Ct().s[302]++,this.removeAllMarkers();var i=(Ct().s[303]++,n.line_no>0?(Ct().b[53][0]++,n.line_no):(Ct().b[53][1]++,1));Ct().s[304]++,this.editor.session.addMarker(new this.Range(i-1,0,i-1,1),"".concat(this.state,"Marker"),"fullLine"),Ct().s[305]++,this.editor.gotoLine(i),Ct().s[306]++,n.filename?(Ct().b[54][0]++,Ct().s[307]++,this.files[n.filename].lineNo=i):Ct().b[54][1]++}else Ct().b[52][1]++;Ct().s[308]++;break;default:Ct().b[50][6]++,Ct().s[309]++;break}Ct().s[310]++;break;case"output":Ct().b[45][2]++,Ct().s[311]++,this.messages.unshift({message:n.line}),Ct().s[312]++;while(this.messages.length>this.maxArrayLength)Ct().s[313]++,this.messages.pop();Ct().s[314]++;break;case"script":Ct().b[45][3]++,Ct().s[315]++,this.handleScript(n),Ct().s[316]++;break;case"report":Ct().b[45][4]++,Ct().s[317]++,this.results.text=n.report,Ct().s[318]++,this.results.show=!0,Ct().s[319]++;break;case"complete":Ct().b[45][5]++,Ct().s[320]++,this.fatal?Ct().b[55][1]++:(Ct().b[55][0]++,Ct().s[321]++,this.removeAllMarkers(),Ct().s[322]++,this.scriptComplete());default:Ct().b[45][6]++,Ct().s[323]++;break}},promptDialogCallback:function(n){Ct().f[97]++,Ct().s[324]++,this.prompt.show=!1,Ct().s[325]++,w.post("/script-api/running-script/".concat(this.scriptId,"/prompt"),{data:{method:this.prompt.method,answer:n,prompt_id:this.activePromptId}})},handleScript:function(n){var e=this;if(Ct().f[98]++,Ct().s[326]++,n.prompt_complete)return Ct().b[56][0]++,Ct().s[327]++,this.activePromptId="",Ct().s[328]++,this.prompt.show=!1,Ct().s[329]++,this.ask.show=!1,void Ct().s[330]++;switch(Ct().b[56][1]++,Ct().s[331]++,this.activePromptId=n.prompt_id,Ct().s[332]++,this.prompt.method=n.method,Ct().s[333]++,this.prompt.layout="horizontal",Ct().s[334]++,this.prompt.title="Prompt",Ct().s[335]++,this.prompt.subtitle="",Ct().s[336]++,this.prompt.details="",Ct().s[337]++,this.prompt.buttons=[],Ct().s[338]++,n.method){case"ask":Ct().b[57][0]++;case"ask_string":Ct().b[57][1]++,Ct().s[339]++,this.ask.default=null,Ct().s[340]++,this.ask.answerRequired=!0,Ct().s[341]++,this.ask.password=!1,Ct().s[342]++,this.ask.question=n.args[0],Ct().s[343]++,Ct().b[59][0]++,n.args[1]&&(Ct().b[59][1]++,!0!==n.args[1])&&(Ct().b[59][2]++,!1!==n.args[1])?(Ct().b[58][0]++,Ct().s[344]++,this.ask.default=n.args[1].toString()):(Ct().b[58][1]++,Ct().s[345]++,!0===n.args[1]?(Ct().b[60][0]++,Ct().s[346]++,this.ask.answerRequired=!1):Ct().b[60][1]++),Ct().s[347]++,!0===n.args[2]?(Ct().b[61][0]++,Ct().s[348]++,this.ask.password=!0):Ct().b[61][1]++,Ct().s[349]++,this.ask.callback=function(t){Ct().f[99]++,Ct().s[350]++,e.ask.show=!1,Ct().s[351]++,e.ask.password?(Ct().b[62][0]++,Ct().s[352]++,w.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,password:t,prompt_id:e.activePromptId}})):(Ct().b[62][1]++,Ct().s[353]++,w.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}}))},Ct().s[354]++,this.ask.show=!0,Ct().s[355]++;break;case"prompt_for_hazardous":Ct().b[57][2]++,Ct().s[356]++,this.prompt.title="Hazardous Command",Ct().s[357]++,this.prompt.message="Warning: Command ".concat(n.args[0]," ").concat(n.args[1]," is Hazardous. "),Ct().s[358]++,n.args[2]?(Ct().b[63][0]++,Ct().s[359]++,this.prompt.message+=n.args[2]+" "):Ct().b[63][1]++,Ct().s[360]++,this.prompt.message+="Send?",Ct().s[361]++,this.prompt.buttons=[{text:"Yes",value:"Yes"}],Ct().s[362]++,this.prompt.callback=this.promptDialogCallback,Ct().s[363]++,this.prompt.show=!0,Ct().s[364]++;break;case"prompt":Ct().b[57][3]++,Ct().s[365]++,Ct().b[65][0]++,n.kwargs&&(Ct().b[65][1]++,n.kwargs.informative)?(Ct().b[64][0]++,Ct().s[366]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[64][1]++,Ct().s[367]++,Ct().b[67][0]++,n.kwargs&&(Ct().b[67][1]++,n.kwargs.details)?(Ct().b[66][0]++,Ct().s[368]++,this.prompt.details=n.kwargs.details):Ct().b[66][1]++,Ct().s[369]++,this.prompt.message=n.args[0],Ct().s[370]++,this.prompt.buttons=[{text:"Ok",value:"Ok"}],Ct().s[371]++,this.prompt.callback=this.promptDialogCallback,Ct().s[372]++,this.prompt.show=!0,Ct().s[373]++;break;case"combo_box":Ct().b[57][4]++,Ct().s[374]++,Ct().b[69][0]++,n.kwargs&&(Ct().b[69][1]++,n.kwargs.informative)?(Ct().b[68][0]++,Ct().s[375]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[68][1]++,Ct().s[376]++,Ct().b[71][0]++,n.kwargs&&(Ct().b[71][1]++,n.kwargs.details)?(Ct().b[70][0]++,Ct().s[377]++,this.prompt.details=n.kwargs.details):Ct().b[70][1]++,Ct().s[378]++,this.prompt.message=n.args[0],Ct().s[379]++,n.args.slice(1).forEach((function(n){Ct().f[100]++,Ct().s[380]++,e.prompt.buttons.push({text:n,value:n})})),Ct().s[381]++,this.prompt.combo=!0,Ct().s[382]++,this.prompt.layout="combo",Ct().s[383]++,this.prompt.callback=this.promptDialogCallback,Ct().s[384]++,this.prompt.show=!0,Ct().s[385]++;break;case"message_box":Ct().b[57][5]++;case"vertical_message_box":Ct().b[57][6]++,Ct().s[386]++,Ct().b[73][0]++,n.kwargs&&(Ct().b[73][1]++,n.kwargs.informative)?(Ct().b[72][0]++,Ct().s[387]++,this.prompt.subtitle=n.kwargs.informative):Ct().b[72][1]++,Ct().s[388]++,Ct().b[75][0]++,n.kwargs&&(Ct().b[75][1]++,n.kwargs.details)?(Ct().b[74][0]++,Ct().s[389]++,this.prompt.details=n.kwargs.details):Ct().b[74][1]++,Ct().s[390]++,this.prompt.message=n.args[0],Ct().s[391]++,n.args.slice(1).forEach((function(n){Ct().f[101]++,Ct().s[392]++,e.prompt.buttons.push({text:n,value:n})})),Ct().s[393]++,n.method.includes("vertical")?(Ct().b[76][0]++,Ct().s[394]++,this.prompt.layout="vertical"):Ct().b[76][1]++,Ct().s[395]++,this.prompt.callback=this.promptDialogCallback,Ct().s[396]++,this.prompt.show=!0,Ct().s[397]++;break;case"backtrace":Ct().b[57][7]++,Ct().s[398]++,this.information.title="Call Stack",Ct().s[399]++,this.information.text=n.args,Ct().s[400]++,this.information.show=!0,Ct().s[401]++;break;case"input_metadata":Ct().b[57][8]++,Ct().s[402]++,this.inputMetadata.target=n.args[0],Ct().s[403]++,this.inputMetadata.callback=function(t){Ct().f[102]++,Ct().s[404]++,e.inputMetadata.show=!1,Ct().s[405]++,w.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:n.method,answer:t,prompt_id:e.activePromptId}})},Ct().s[406]++,this.inputMetadata.show=!0,Ct().s[407]++;break;case"open_file_dialog":Ct().b[57][9]++;case"open_files_dialog":Ct().b[57][10]++,Ct().s[408]++,this.file.title=n.args[0],Ct().s[409]++,this.file.message=n.args[1],Ct().s[410]++,Ct().b[78][0]++,n.kwargs&&(Ct().b[78][1]++,n.kwargs.filter)?(Ct().b[77][0]++,Ct().s[411]++,this.file.filter=n.kwargs.filter):Ct().b[77][1]++,Ct().s[412]++,"open_files_dialog"==n.method?(Ct().b[79][0]++,Ct().s[413]++,this.file.multiple=!0):Ct().b[79][1]++,Ct().s[414]++,this.file.show=!0,Ct().s[415]++;break;default:Ct().b[57][11]++,Ct().s[416]++;break}},fileDialogCallback:function(n){var e=this;return(0,r.Z)((0,c.Z)().mark((function t(){var l;return(0,c.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(Ct().f[103]++,Ct().s[417]++,e.file.show=!1,Ct().s[418]++,l="Cancel",Ct().s[419]++,"Cancel"==n){t.next=14;break}return Ct().b[80][0]++,Ct().s[420]++,l=[],Ct().s[421]++,t.next=12,n.forEach(function(){var n=(0,r.Z)((0,c.Z)().mark((function n(e){var t,i;return(0,c.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return Ct().f[104]++,Ct().s[422]++,l.push(e.name),Ct().s[423]++,n.next=6,w.get("/openc3-api/storage/upload/".concat(encodeURIComponent("".concat(window.openc3Scope,"/tmp/").concat(e.name)),"?bucket=config"));case 6:return t=n.sent,i=t.data,Ct().s[424]++,n.next=11,d()((0,s.Z)((0,s.Z)({},i),{},{data:e}));case 11:n.sent;case 12:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}());case 12:t.next=15;break;case 14:Ct().b[80][1]++;case 15:return Ct().s[425]++,t.next=18,w.post("/script-api/running-script/".concat(e.scriptId,"/prompt"),{data:{method:e.file.multiple?(Ct().b[81][0]++,"open_files_dialog"):(Ct().b[81][1]++,"open_file_dialog"),answer:l,prompt_id:e.activePromptId}});case 18:case"end":return t.stop()}}),t)})))()},setError:function(n){Ct().f[105]++,Ct().s[426]++,this.alertType="error",Ct().s[427]++,this.alertText="Error: ".concat(n),Ct().s[428]++,this.showAlert=!0},newFile:function(){Ct().f[106]++,Ct().s[429]++,this.filename=bt,Ct().s[430]++,this.currentFilename=null,Ct().s[431]++,this.files={},Ct().s[432]++,this.editor.session.setValue(""),Ct().s[433]++,this.fileModified="",Ct().s[434]++,this.suiteRunner=!1,Ct().s[435]++,this.startOrGoDisabled=!1,Ct().s[436]++,this.envDisabled=!1},openFile:function(){Ct().f[107]++,Ct().s[437]++,this.fileOpen=!0},reloadFile:function(){var n=this;Ct().f[108]++,Ct().s[438]++,w.get("/script-api/scripts/".concat(this.filename)).then((function(e){Ct().f[109]++;var t=(Ct().s[439]++,{name:n.filename,contents:e.data.contents});Ct().s[440]++,e.data.suites?(Ct().b[82][0]++,Ct().s[441]++,t["suites"]=JSON.parse(e.data.suites)):Ct().b[82][1]++,Ct().s[442]++,e.data.error?(Ct().b[83][0]++,Ct().s[443]++,t["error"]=e.data.error):Ct().b[83][1]++,Ct().s[444]++,e.data.success?(Ct().b[84][0]++,Ct().s[445]++,t["success"]=e.data.success):Ct().b[84][1]++;var l=(Ct().s[446]++,e.data.locked),i=(Ct().s[447]++,e.data.breakpoints);Ct().s[448]++,n.setFile({file:t,locked:l,breakpoints:i},!0)})).catch((function(e){Ct().f[110]++,Ct().s[449]++,n.$emit("error","Failed to open ".concat(n.selectedFile,". ").concat(e)),Ct().s[450]++,n.clear()}))},setFile:function(n){var e=n.file,t=n.locked,l=n.breakpoints,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ct().b[85][0]++,!1);Ct().f[111]++,Ct().s[451]++,this.files={},Ct().s[452]++,!1===i?(Ct().b[86][0]++,Ct().s[453]++,this.unlockFile(),Ct().s[454]++,this.lockedBy=t):Ct().b[86][1]++,Ct().s[455]++,this.filename=e.name.split("*")[0],Ct().s[456]++,this.currentFilename=null,Ct().s[457]++,this.editor.session.setValue(e.contents),Ct().s[458]++,this.breakpoints[filename]=l,Ct().s[459]++,this.restoreBreakpoints(filename),Ct().s[460]++,this.fileModified="",Ct().s[461]++,this.envDisabled=!1,Ct().s[462]++,e.suites?(Ct().b[87][0]++,Ct().s[463]++,this.suiteRunner=!0,Ct().s[464]++,this.suiteMap=e.suites,Ct().s[465]++,this.startOrGoDisabled=!0):(Ct().b[87][1]++,Ct().s[466]++,this.suiteRunner=!1),Ct().s[467]++,e.error?(Ct().b[88][0]++,Ct().s[468]++,this.suiteError=e.error,Ct().s[469]++,this.showSuiteError=!0):Ct().b[88][1]++,Ct().s[470]++,this.disableSuiteButtons=0==e.success},saveFile:function(){var n=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(Ct().b[89][0]++,"menu");Ct().f[112]++;var t=(Ct().s[471]++,this.getBreakpointRows());Ct().s[472]++,this.filename===bt?(Ct().b[90][0]++,Ct().s[473]++,"menu"===e?(Ct().b[91][0]++,Ct().s[474]++,this.saveAs()):(Ct().b[91][1]++,Ct().s[475]++,null===this.tempFilename?(Ct().b[92][0]++,Ct().s[476]++,this.tempFilename=(0,S.Z)(Date.now(),"yyyy_MM_dd_HH_mm_ss_SSS")+"_temp.rb"):Ct().b[92][1]++,Ct().s[477]++,this.showSave=!0,Ct().s[478]++,w.post("/script-api/scripts/".concat(this.tempFilename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){Ct().f[113]++,Ct().s[479]++,n.fileModified="",Ct().s[480]++,setTimeout((function(){Ct().f[114]++,Ct().s[481]++,n.showSave=!1}),2e3)})).catch((function(e){Ct().f[115]++,Ct().s[482]++,n.showSave=!1})))):(Ct().b[90][1]++,Ct().s[483]++,Ct().b[94][0]++,this.fileModified.length>0||(Ct().b[94][1]++,"menu"==e)?(Ct().b[93][0]++,Ct().s[484]++,this.showSave=!0,Ct().s[485]++,w.post("/script-api/scripts/".concat(this.filename),{data:{text:this.editor.getValue(),breakpoints:t}}).then((function(e){Ct().f[116]++,Ct().s[486]++,200==e.status?(Ct().b[95][0]++,Ct().s[487]++,e.data.suites?(Ct().b[96][0]++,Ct().s[488]++,n.startOrGoDisabled=!0,Ct().s[489]++,n.suiteRunner=!0,Ct().s[490]++,n.suiteMap=JSON.parse(e.data.suites)):(Ct().b[96][1]++,Ct().s[491]++,n.startOrGoDisabled=!1,Ct().s[492]++,n.suiteRunner=!1,Ct().s[493]++,n.suiteMap={}),Ct().s[494]++,e.data.error?(Ct().b[97][0]++,Ct().s[495]++,n.suiteError=e.data.error,Ct().s[496]++,n.showSuiteError=!0):Ct().b[97][1]++,Ct().s[497]++,n.fileModified="",Ct().s[498]++,setTimeout((function(){Ct().f[117]++,Ct().s[499]++,n.showSave=!1}),2e3)):(Ct().b[95][1]++,Ct().s[500]++,n.showSave=!1,Ct().s[501]++,n.alertType="error",Ct().s[502]++,n.alertText="Error saving file. Code: ".concat(e.status," Text: ").concat(e.statusText),Ct().s[503]++,n.showAlert=!0)})).catch((function(e){var t=e.response;Ct().f[118]++,Ct().s[504]++,n.showSave=!1,Ct().s[505]++,422==t.status?(Ct().b[98][0]++,Ct().s[506]++,n.alertType="error",Ct().s[507]++,n.alertText=t.data.suites):(Ct().b[98][1]++,Ct().s[508]++,n.alertType="error",Ct().s[509]++,n.alertText="Error saving file. Code: ".concat(t.status," Text: ").concat(t.statusText)),Ct().s[510]++,n.showAlert=!0}))):Ct().b[93][1]++),Ct().s[511]++,this.lockFile()},saveAs:function(){Ct().f[119]++,Ct().s[512]++,this.showSaveAs=!0},saveAsFilename:function(n){Ct().f[120]++,Ct().s[513]++,this.filename=n,Ct().s[514]++,this.tempFilename?(Ct().b[99][0]++,Ct().s[515]++,w.post("/script-api/scripts/".concat(this.tempFilename,"/delete")),Ct().s[516]++,this.tempFilename=null):Ct().b[99][1]++,Ct().s[517]++,this.saveFile("menu")},delete:function(){var n=this;Ct().f[121]++,Ct().s[518]++,this.$dialog.confirm("Permanently delete file: ".concat(this.filename),{okText:"Delete",cancelText:"Cancel"}).then((function(e){return Ct().f[122]++,Ct().s[519]++,w.post("/script-api/scripts/".concat(n.filename,"/delete"),{data:{}})})).then((function(e){Ct().f[123]++,Ct().s[520]++,n.newFile()})).catch((function(e){if(Ct().f[124]++,Ct().s[521]++,e){Ct().b[100][0]++;var t=(Ct().s[522]++,{text:"Failed Multi-Delete. ".concat(e),type:"error"});Ct().s[523]++,n.$emit("alert",t)}else Ct().b[100][1]++}))},download:function(){Ct().f[125]++;var n=(Ct().s[524]++,new Blob([this.editor.getValue()],{type:"text/plain"})),e=(Ct().s[525]++,document.createElement("a"));Ct().s[526]++,e.href=URL.createObjectURL(n),Ct().s[527]++,e.setAttribute("download",this.filename),Ct().s[528]++,e.click()},rubySyntaxCheck:function(){var n=this;Ct().f[126]++,Ct().s[529]++,w.post("/script-api/scripts/syntax",{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){Ct().f[127]++,Ct().s[530]++,n.information.title=e.data.title,Ct().s[531]++,n.information.text=JSON.parse(e.data.description),Ct().s[532]++,n.information.show=!0}))},showInstrumented:function(){var n=this;Ct().f[128]++,Ct().s[533]++,w.post("/script-api/scripts/".concat(this.filename,"/instrumented"),{data:this.editor.getValue(),headers:{Accept:"application/json","Content-Type":"plain/text"}}).then((function(e){Ct().f[129]++,Ct().s[534]++,n.information.title=e.data.title,Ct().s[535]++,n.information.text=JSON.parse(e.data.description),Ct().s[536]++,n.information.show=!0}))},showCallStack:function(){Ct().f[130]++,Ct().s[537]++,w.post("/script-api/running-script/".concat(this.scriptId,"/backtrace"))},toggleDebug:function(){Ct().f[131]++,Ct().s[538]++,this.showDebug=!this.showDebug},toggleDisconnect:function(){Ct().f[132]++,Ct().s[539]++,this.showDisconnect=!this.showDisconnect},debugKeydown:function(n){Ct().f[133]++,Ct().s[540]++,"Escape"===n.key?(Ct().b[101][0]++,Ct().s[541]++,this.debug="",Ct().s[542]++,this.debugHistoryIndex=this.debugHistory.length):(Ct().b[101][1]++,Ct().s[543]++,"Enter"===n.key?(Ct().b[102][0]++,Ct().s[544]++,this.debugHistory.push(this.debug),Ct().s[545]++,this.debugHistoryIndex=this.debugHistory.length,Ct().s[546]++,w.post("/script-api/running-script/".concat(this.scriptId,"/debug"),{data:{args:this.debug}}),Ct().s[547]++,this.debug=""):(Ct().b[102][1]++,Ct().s[548]++,"ArrowUp"===n.key?(Ct().b[103][0]++,Ct().s[549]++,this.debugHistoryIndex-=1,Ct().s[550]++,this.debugHistoryIndex<0?(Ct().b[104][0]++,Ct().s[551]++,this.debugHistoryIndex=this.debugHistory.length-1):Ct().b[104][1]++,Ct().s[552]++,this.debug=this.debugHistory[this.debugHistoryIndex],Ct().s[553]++,n.preventDefault()):(Ct().b[103][1]++,Ct().s[554]++,"ArrowDown"===n.key?(Ct().b[105][0]++,Ct().s[555]++,this.debugHistoryIndex+=1,Ct().s[556]++,this.debugHistoryIndex>=this.debugHistory.length?(Ct().b[106][0]++,Ct().s[557]++,this.debugHistoryIndex=0):Ct().b[106][1]++,Ct().s[558]++,this.debug=this.debugHistory[this.debugHistoryIndex]):Ct().b[105][1]++)))},removeAllMarkers:function(){var n=this;Ct().f[134]++;var e=(Ct().s[559]++,this.editor.session.getMarkers());Ct().s[560]++,Object.keys(e).filter((function(n){return Ct().f[135]++,Ct().s[561]++,"fullLine"===e[n].type})).forEach((function(e){return Ct().f[136]++,Ct().s[562]++,n.editor.session.removeMarker(e)}))},confirmLocalUnlock:function(){var n=this;Ct().f[137]++,Ct().s[563]++,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 Ct().f[138]++,Ct().s[564]++,n.lockedBy=null,Ct().s[565]++,n.lockFile()}))},lockFile:function(){return Ct().f[139]++,Ct().s[566]++,w.post("/script-api/scripts/".concat(this.filename,"/lock"))},unlockFile:function(){Ct().f[140]++,Ct().s[567]++,Ct().b[108][0]++,this.filename===bt||(Ct().b[108][1]++,this.readOnly)?Ct().b[107][1]++:(Ct().b[107][0]++,Ct().s[568]++,w.post("/script-api/scripts/".concat(this.filename,"/unlock")))}}},xt=wt,St=(t(7346),t(7178),(0,O.Z)(xt,i,o,!1,null,"700cab85",null)),Rt=St.exports},363:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,".v-list[data-v-5fb8d7fb] .v-label{margin-left:5px}.v-list-item__icon[data-v-5fb8d7fb]{margin-right:15px!important}.v-list-item__title[data-v-5fb8d7fb]{color:#fff}",""]),e["default"]=a},3221:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,"#sr-controls[data-v-700cab85]{padding-top:0;padding-bottom:5px;padding-left:0;padding-right:0}#editorbox[data-v-700cab85]{height:50vh}#editor[data-v-700cab85]{height:100%;width:100%;font-size:16px}#editor[data-v-700cab85],hr[data-v-700cab85]{position:relative}hr[data-v-700cab85]{pointer-events:none;top:7px;background-color:grey;height:3px;width:5%;margin:auto}.script-state[data-v-700cab85] input{text-transform:capitalize}",""]),e["default"]=a},5478:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.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}",""]),e["default"]=a},8514:function(n,e,t){"use strict";t.r(e);var l=t(9601),i=t.n(l),o=t(2609),s=t.n(o),a=s()(i());a.push([n.id,"#tr-container[data-v-3677302c]{padding-top:0;padding-bottom:15px;padding-left:0;padding-right:0}",""]),e["default"]=a},9824:function(n,e,t){var l=t(363);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("7bc1978b",l,!0,{sourceMap:!1,shadowMode:!1})},7346:function(n,e,t){var l=t(3221);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("52120bb7",l,!0,{sourceMap:!1,shadowMode:!1})},7178:function(n,e,t){var l=t(5478);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("4eee7c81",l,!0,{sourceMap:!1,shadowMode:!1})},4462:function(n,e,t){var l=t(8514);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[n.id,l,""]]),l.locals&&(n.exports=l.locals);var i=t(3514).Z;i("44bd3cea",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=651.js.map
|